1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._posthogChunkIds=e._posthogChunkIds||{},e._posthogChunkIds[n]="01a0ab1d-2077-7341-a701-fe73a96cd844")}catch(e){}}();(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,320604,e=>{"use strict";function t(e){return"string"==typeof e?{address:e,type:"json-rpc"}:e}e.s(["parseAccount",()=>t])},535440,e=>{"use strict";let t=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],r=[{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"}]}],i=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],s=[...i,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",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"}]}],n=[...i,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],a=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],o=[{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"}]}],c=[{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"}];e.s(["addressResolverAbi",()=>o,"batchGatewayAbi",()=>r,"multicall3Abi",()=>t,"textResolverAbi",()=>a,"universalResolverResolveAbi",()=>s,"universalResolverReverseAbi",()=>n,"universalSignatureValidatorAbi",()=>c])},122521,e=>{"use strict";e.s(["formatAbiItem",()=>r,"formatAbiParams",()=>i]);var t=e.i(712918);function r(e,{includeName:s=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new t.InvalidDefinitionTypeError(e.type);return`${e.name}(${i(e.inputs,{includeName:s})})`}function i(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${i(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},839920,e=>{"use strict";function t(e,{strict:r=!0}={}){return!!e&&"string"==typeof e&&(r?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}e.s(["isHex",()=>t])},129753,e=>{"use strict";var t=e.i(839920);function r(e){return(0,t.isHex)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}e.s(["size",()=>r])},89679,e=>{"use strict";e.s(["version",()=>"2.33.0"])},905717,e=>{"use strict";var t=e.i(89679);let r={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:r})=>t?`${e??"https://viem.sh"}${t}${r?`#${r}`:""}`:void 0,version:`viem@${t.version}`};
1class i extends Error{constructor(e,s={}){const n=s.cause instanceof i?s.cause.details:s.cause?.message?s.cause.message:s.details,a=s.cause instanceof i&&s.cause.docsPath||s.docsPath,o=r.getDocsUrl?.({...s,docsPath:a});super([e||"An error occurred.","",...s.metaMessages?[...s.metaMessages,""]:[],...o?[`Docs: ${o}`]:[],...n?[`Details: ${n}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(` 2`),s.cause?{cause:s.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=n,this.docsPath=a,this.metaMessages=s.metaMessages,this.name=s.name??this.name,this.shortMessage=e,this.version=t.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)}}e.s(["BaseError",()=>i])},712918,e=>{"use strict";e.s(["AbiConstructorNotFoundError",()=>s,"AbiConstructorParamsNotFoundError",()=>n,"AbiDecodingDataSizeTooSmallError",()=>a,"AbiDecodingZeroDataError",()=>o,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>u,"AbiEncodingLengthMismatchError",()=>l,"AbiErrorInputsNotFoundError",()=>d,"AbiErrorNotFoundError",()=>f,"AbiErrorSignatureNotFoundError",()=>p,"AbiEventNotFoundError",()=>m,"AbiEventSignatureEmptyTopicsError",()=>b,"AbiEventSignatureNotFoundError",()=>h,"AbiFunctionNotFoundError",()=>y,"AbiFunctionOutputsNotFoundError",()=>g,"AbiFunctionSignatureNotFoundError",()=>v,"AbiItemAmbiguityError",()=>E,"BytesSizeMismatchError",()=>w,"DecodeLogDataMismatch",()=>x,"DecodeLogTopicsMismatch",()=>P,"InvalidAbiDecodingTypeError",()=>A,"InvalidAbiEncodingTypeError",()=>$,"InvalidArrayError",()=>B,"InvalidDefinitionTypeError",()=>I]);var t=e.i(122521),r=e.i(129753),i=e.i(905717);class s extends i.BaseError{constructor({docsPath:e}){super(["A constructor was not found on the ABI.","Make sure you are using the correct ABI and that the constructor exists on it."].join(` 3`),{docsPath:e,name:"AbiConstructorNotFoundError"})}}class n extends i.BaseError{constructor({docsPath:e}){super(["Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.","Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists."].join(` 4`),{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}class a extends i.BaseError{constructor({data:e,params:r,size:i}){super([`Data size of ${i} bytes is too small for given parameters.`].join(` 5`),{metaMessages:[`Params: (${(0,t.formatAbiParams)(r,{includeName:!0})})`,`Data: ${e} (${i} 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=r,this.size=i}}class o extends i.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class c extends i.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${e}`,`Given length: ${t}`].join(` 6`),{name:"AbiEncodingArrayLengthMismatchError"})}}class u extends i.BaseError{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,r.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class l extends i.BaseError{constructor({expectedLength:e,givenLength:t}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(` 7`),{name:"AbiEncodingLengthMismatchError"})}}class d extends i.BaseError{constructor(e,{docsPath:t}){super([`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`).`,"Cannot encode error result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the inputs exist on it."].join(` 8`),{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class f extends i.BaseError{constructor(e,{docsPath:t}={}){super([`Error ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the error exists on it."].join(` 9`),{docsPath:t,name:"AbiErrorNotFoundError"})}}class p extends i.BaseError{constructor(e,{docsPath:t}){super([`Encoded error signature "${e}" not found on 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=${e}.`].join(` 10`),{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class b extends i.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class h extends i.BaseError{constructor(e,{docsPath:t}){super([`Encoded event signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(` 11`),{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends i.BaseError{constructor(e,{docsPath:t}={}){super([`Event ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the event exists on it."].join(` 12`),{docsPath:t,name:"AbiEventNotFoundError"})}}class y extends i.BaseError{constructor(e,{docsPath:t}={}){super([`Function ${e?`"${e}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(` 13`),{docsPath:t,name:"AbiFunctionNotFoundError"})}}class g extends i.BaseError{constructor(e,{docsPath:t}){super([`Function "${e}" does not contain any \`outputs\` on ABI.`,"Cannot decode function result without knowing what the parameter types are.","Make sure you are using the correct ABI and that the function exists on it."].join(` 14`),{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class v extends i.BaseError{constructor(e,{docsPath:t}){super([`Encoded function signature "${e}" not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it.",`You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`].join(` 15`),{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class E extends i.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}
15\` in \`${(0,t.formatAbiItem)(e.abiItem)}\`, and`,`\`${r.type}\` in \`${(0,t.formatAbiItem)(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class w extends i.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class x extends i.BaseError{constructor({abiItem:e,data:r,params:i,size:s}){super([`Data size of ${s} bytes is too small for non-indexed event parameters.`].join(` 16`),{metaMessages:[`Params: (${(0,t.formatAbiParams)(i,{includeName:!0})})`,`Data: ${r} (${s} 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=r,this.params=i,this.size=s}}class P extends i.BaseError{constructor({abiItem:e,param:r}){super([`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${(0,t.formatAbiItem)(e,{includeName:!0})}".`].join(` 17`),{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class $ extends i.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(` 18`),{docsPath:t,name:"InvalidAbiEncodingType"})}}class A extends i.BaseError{constructor(e,{docsPath:t}){super([`Type "${e}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(` 19`),{docsPath:t,name:"InvalidAbiDecodingType"})}}class B extends i.BaseError{constructor(e){super([`Value "${e}" is not a valid array.`].join(` 20`),{name:"InvalidArrayError"})}}class I extends i.BaseError{constructor(e){super([`"${e}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(` 21`),{name:"InvalidDefinitionTypeError"})}}},337787,e=>{"use strict";var t=e.i(905717);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",()=>r])},649086,e=>{"use strict";var t=e.i(905717);class r extends t.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"})}}class i extends t.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"})}}class s extends t.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"})}}e.s(["InvalidBytesLengthError",()=>s,"SizeExceedsPaddingSizeError",()=>i,"SliceOffsetOutOfBoundsError",()=>r])},997666,e=>{"use strict";var t=e.i(649086);function r(e,{dir:s,size:n=32}={}){return"string"==typeof e?i(e,{dir:s,size:n}):function(e,{dir:r,size:i=32}={}){if(null===i)return e;if(e.length>i)throw new t.SizeExceedsPaddingSizeError({size:e.length,targetSize:i,type:"bytes"});let s=new Uint8Array(i);for(let t=0;t<i;t++){let n="right"===r;s[n?t:i-t-1]=e[n?t:e.length-t-1]}return s}(e,{dir:s,size:n})}function i(e,{dir:r,size:s=32}={}){if(null===s)return e;let n=e.replace("0x","");if(n.length>2*s)throw new t.SizeExceedsPaddingSizeError({size:Math.ceil(n.length/2),targetSize:s,type:"hex"});return`0x${n["right"===r?"padEnd":"padStart"](2*s,"0")}`}e.s(["pad",()=>r,"padHex",()=>i])},438552,e=>{"use strict";var t=e.i(905717);class r extends t.BaseError{constructor({max:e,min:t,signed:r,size:i,value:s}){super(`Number "${s}" is not in safe ${i?`${8*i}-bit ${r?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class i extends t.BaseError{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class s extends t.BaseError{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class n extends t.BaseError{constructor({givenSize:e,maxSize:t}
21){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}e.s(["IntegerOutOfRangeError",()=>r,"InvalidBytesBooleanError",()=>i,"InvalidHexBooleanError",()=>s,"SizeOverflowError",()=>n])},60522,e=>{"use strict";function t(e,{dir:r="left"}={}){let i="string"==typeof e?e.replace("0x",""):e,s=0;for(let e=0;e<i.length-1&&"0"===i["left"===r?e:i.length-e-1].toString();e++)s++;return i="left"===r?i.slice(s):i.slice(0,i.length-s),"string"==typeof e?(1===i.length&&"right"===r&&(i=`${i}0`),`0x${i.length%2==1?`0${i}`:i}`):i}e.s(["trim",()=>t])},547502,e=>{"use strict";var t=e.i(438552),r=e.i(129753),i=e.i(60522);function s(e,{size:i}){if((0,r.size)(e)>i)throw new t.SizeOverflowError({givenSize:(0,r.size)(e),maxSize:i})}function n(e,t={}){let{signed:r}=t;t.size&&s(e,{size:t.size});let i=BigInt(e);if(!r)return i;let a=(e.length-2)/2;return i<=(1n<<8n*BigInt(a)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*a,"f")}`)-1n}function a(e,r={}){let n=e;if(r.size&&(s(n,{size:r.size}),n=(0,i.trim)(n)),"0x00"===(0,i.trim)(n))return!1;if("0x01"===(0,i.trim)(n))return!0;throw new t.InvalidHexBooleanError(n)}function o(e,t={}){return Number(n(e,t))}e.s(["assertSize",()=>s,"hexToBigInt",()=>n,"hexToBool",()=>a,"hexToNumber",()=>o])},433208,e=>{"use strict";var t=e.i(438552),r=e.i(997666),i=e.i(547502);let s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function n(e,t={}){return"number"==typeof e||"bigint"==typeof e?c(e,t):"string"==typeof e?l(e,t):"boolean"==typeof e?a(e,t):o(e,t)}function a(e,t={}){let s=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.assertSize)(s,{size:t.size}),(0,r.pad)(s,{size:t.size})):s}function o(e,t={}){let n="";for(let t=0;t<e.length;t++)n+=s[e[t]];let a=`0x${n}`;return"number"==typeof t.size?((0,i.assertSize)(a,{size:t.size}),(0,r.pad)(a,{dir:"right",size:t.size})):a}function c(e,i={}){let s,{signed:n,size:a}=i,o=BigInt(e);a?s=n?(1n<<8n*BigInt(a)-1n)-1n:2n**(8n*BigInt(a))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));let u="bigint"==typeof s&&n?-s-1n:0;if(s&&o>s||o<u){let r="bigint"==typeof e?"n":"";throw new t.IntegerOutOfRangeError({max:s?`${s}${r}`:void 0,min:`${u}${r}`,signed:n,size:a,value:`${e}${r}`})}let l=`0x${(n&&o<0?(1n<<BigInt(8*a))+BigInt(o):o).toString(16)}`;return a?(0,r.pad)(l,{size:a}):l}let u=new TextEncoder;function l(e,t={}){return o(u.encode(e),t)}e.s(["boolToHex",()=>a,"bytesToHex",()=>o,"numberToHex",()=>c,"stringToHex",()=>l,"toHex",()=>n])},219902,e=>{"use strict";var t=e.i(905717),r=e.i(839920),i=e.i(997666),s=e.i(547502),n=e.i(433208);let a=new TextEncoder;function o(e,t={}){var a,c;return"number"==typeof e||"bigint"==typeof e?(a=e,c=t,u((0,n.numberToHex)(a,c))):"boolean"==typeof e?function(e,t={}){let r=new Uint8Array(1);return r[0]=Number(e),"number"==typeof t.size?((0,s.assertSize)(r,{size:t.size}),(0,i.pad)(r,{size:t.size})):r}(e,t):(0,r.isHex)(e)?u(e,t):l(e,t)}function c(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function u(e,r={}){let n=e;r.size&&((0,s.assertSize)(n,{size:r.size}),n=(0,i.pad)(n,{dir:"right",size:r.size}));let a=n.slice(2);a.length%2&&(a=`0${a}`);let o=a.length/2,l=new Uint8Array(o);for(let e=0,r=0;e<o;e++){let i=c(a.charCodeAt(r++)),s=c(a.charCodeAt(r++));if(void 0===i||void 0===s)throw new t.BaseError(`Invalid byte sequence ("${a[r-2]}${a[r-1]}" in "${a}").`);l[e]=16*i+s}return l}function l(e,t={}){let r=a.encode(e);return"number"==typeof t.size?((0,s.assertSize)(r,{size:t.size}),(0,i.pad)(r,{dir:"right",size:t.size})):r}e.s(["hexToBytes",()=>u,"stringToBytes",()=>l,"toBytes",()=>o])},974404,e=>{"use strict";let t=BigInt(0xffffffff),r=BigInt(32);function i(e,s=!1){let n=e.length,a=new Uint32Array(n),o=new Uint32Array(n);for(let i=0;i<n;i++){let{h:n,l:c}=function(e,i=!1){return i?{h:Number(e&t),l:Number(e>>r&t)}:{h:0|Number(e>>r&t),l:0|Number(e&t)}}(e[i],s);[a[i],o[i]]=[n,c]}return[a,o]}let s=(e,t,r)=>e<<r|t>>>32-r,n=(e,t,r)=>t<<r|e>>>32-r,a=(e,t,r)=>t<<r-32|e>>>64-r,o=(e,t,r)=>e<<r-32|t>>>64-r;e.s(["rotlBH",()=>a,"rotlBL",()=>o,"rotlSH",()=>s,"rotlSL",()=>n,"split",()=>i])},108319,e=>{"use strict";var t=e.i(974404),r=e.i(382688);let i=BigInt(0),s=BigInt(1),n=BigInt(2),a=BigInt(7),o=BigInt(256),c=BigInt(113),u=[],l=[],d=[];for(let e=0,t=s,r=1,f=0;e<24;e++){[r,f]=[f,(2*r+3*f)%5],u.push(2*(5*f+r)),l.push((e+1)*(e+2)/2%64);let p=i;for(let e=0;e<7;e++)(t=(t<<s^(t>>a)*c)%o)&n&&(p^=s<<(s<<BigInt(e))-s);d.push(p)}let f=(0,t.split)(d,!0),p=f[0],b=f[1],h=(e,r,i)=>i>
vendor: 8,135 bytes, line 21
2132?(0,t.rotlBH)(e,r,i):(0,t.rotlSH)(e,r,i),m=(e,r,i)=>i>32?(0,t.rotlBL)(e,r,i):(0,t.rotlSL)(e,r,i);class y extends r.Hash{constructor(e,t,i,s=!1,n=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=i,this.enableXOF=s,this.rounds=n,(0,r.anumber)(i),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,r.u32)(this.state)}clone(){return this._cloneInto()}keccak(){(0,r.swap32IfBE)(this.state32),function(e,t=24){let i=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)i[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,s=(t+2)%10,n=i[s],a=i[s+1],o=h(n,a,1)^i[r],c=m(n,a,1)^i[r+1];for(let r=0;r<50;r+=10)e[t+r]^=o,e[t+r+1]^=c}let t=e[2],s=e[3];for(let r=0;r<24;r++){let i=l[r],n=h(t,s,i),a=m(t,s,i),o=u[r];t=e[o],s=e[o+1],e[o]=n,e[o+1]=a}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)i[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~i[(r+2)%10]&i[(r+4)%10]}e[0]^=p[r],e[1]^=b[r]}(0,r.clean)(i)}(this.state32,this.rounds),(0,r.swap32IfBE)(this.state32),this.posOut=0,this.pos=0}update(e){(0,r.aexists)(this),e=(0,r.toBytes)(e),(0,r.abytes)(e);let{blockLen:t,state:i}=this,s=e.length;for(let r=0;r<s;){let n=Math.min(t-this.pos,s-r);for(let t=0;t<n;t++)i[this.pos++]^=e[r++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:r,blockLen:i}=this;e[r]^=t,(128&t)!=0&&r===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();let t=this.state,{blockLen:i}=this;for(let r=0,s=e.length;r<s;){this.posOut>=i&&this.keccak();let n=Math.min(i-this.posOut,s-r);e.set(t.subarray(this.posOut,this.posOut+n),r),this.posOut+=n,r+=n}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,r.anumber)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,r.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,r.clean)(this.state)}_cloneInto(e){let{blockLen:t,suffix:r,outputLen:i,rounds:s,enableXOF:n}=this;return e||(e=new y(t,r,i,n,s)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=s,e.suffix=r,e.outputLen=i,e.enableXOF=n,e.destroyed=this.destroyed,e}}let g=(0,r.createHasher)(()=>new y(136,1,32));e.s(["keccak_256",()=>g])},666208,e=>{"use strict";var t=e.i(108319),r=e.i(839920),i=e.i(219902),s=e.i(433208);function n(e,n){let a=(0,t.keccak_256)((0,r.isHex)(e,{strict:!1})?(0,i.toBytes)(e):e);return"bytes"===(n||"hex")?a:(0,s.toHex)(a)}e.s(["keccak256",()=>n])},105075,e=>{"use strict";class t extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&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}}e.s(["LruMap",()=>t])},936568,e=>{"use strict";e.s(["isAddress",()=>n]);var t=e.i(105075),r=e.i(86210);let i=/^0x[a-fA-F0-9]{40}$/,s=new t.LruMap(8192);function n(e,t){let{strict:n=!0}=t??{},a=`${e}.${n}`;if(s.has(a))return s.get(a);let o=!!i.test(e)&&(e.toLowerCase()===e||!n||(0,r.checksumAddress)(e)===e);return s.set(a,o),o}},86210,e=>{"use strict";e.s(["checksumAddress",()=>o,"getAddress",()=>c]);var t=e.i(337787),r=e.i(219902),i=e.i(666208),s=e.i(105075),n=e.i(936568);let a=new s.LruMap(8192);function o(e,t){if(a.has(`${e}.${t}`))return a.get(`${e}.${t}`);let s=e.substring(2).toLowerCase(),n=(0,i.keccak256)((0,r.stringToBytes)(s),"bytes"),o=s.split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let c=`0x${o.join("")}`;return a.set(`${e}.${t}`,c),c}function c(e,r){if(!(0,n.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return o(e,r)}},735387,e=>{"use strict";var t=e.i(905717);class r extends t.BaseError{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class i extends t.BaseError{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class s extends t.BaseError{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}e.s(["NegativeOffsetError",()=>r,"PositionOutOfBoundsError",()=>i,"RecursiveReadLimitExceededError",()=>s])},357514,e=>{"use strict";var t=e.i(735387);let r={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 t.RecursiveReadLimitExceededError({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new t.PositionOutOfBoundsError({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position-e;this.assertPosition(r),this.position=r},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new t.NegativeOffsetError({offset:e});let r=this.position+e;this.assertPosition(r),this.position=r},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++}};function i(e,{recursiveReadLimit:t=8192}={}){let s=Object.create(r);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}e.s(["createCursor",()=>i])},257128,e=>{"use strict";
vendor: 5,783 bytes, line 21
21var t=e.i(649086),r=e.i(839920),i=e.i(129753);function s(e,t,i,{strict:n}={}){return(0,r.isHex)(e,{strict:!1})?c(e,t,i,{strict:n}):o(e,t,i,{strict:n})}function n(e,r){if("number"==typeof r&&r>0&&r>(0,i.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,i.size)(e)})}function a(e,r,s){if("number"==typeof r&&"number"==typeof s&&(0,i.size)(e)!==s-r)throw new t.SliceOffsetOutOfBoundsError({offset:s,position:"end",size:(0,i.size)(e)})}function o(e,t,r,{strict:i}={}){n(e,t);let s=e.slice(t,r);return i&&a(s,t,r),s}function c(e,t,r,{strict:i}={}){n(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&a(s,t,r),s}e.s(["slice",()=>s,"sliceBytes",()=>o,"sliceHex",()=>c])},176536,e=>{"use strict";var t=e.i(438552),r=e.i(60522),i=e.i(547502),s=e.i(433208);function n(e,t={}){"u">typeof t.size&&(0,i.assertSize)(e,{size:t.size});let r=(0,s.bytesToHex)(e,t);return(0,i.hexToBigInt)(r,t)}function a(e,s={}){let n=e;if("u">typeof s.size&&((0,i.assertSize)(n,{size:s.size}),n=(0,r.trim)(n)),n.length>1||n[0]>1)throw new t.InvalidBytesBooleanError(n);return!!n[0]}function o(e,t={}){"u">typeof t.size&&(0,i.assertSize)(e,{size:t.size});let r=(0,s.bytesToHex)(e,t);return(0,i.hexToNumber)(r,t)}function c(e,t={}){let s=e;return"u">typeof t.size&&((0,i.assertSize)(s,{size:t.size}),s=(0,r.trim)(s,{dir:"right"})),new TextDecoder().decode(s)}e.s(["bytesToBigInt",()=>n,"bytesToBool",()=>a,"bytesToNumber",()=>o,"bytesToString",()=>c])},722175,e=>{"use strict";function t(e){return"string"==typeof e[0]?r(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),i=0;for(let t of e)r.set(t,i),i+=t.length;return r}(e)}function r(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}e.s(["concat",()=>t,"concatHex",()=>r])},389855,e=>{"use strict";let t=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,r=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;e.s(["bytesRegex",()=>t,"integerRegex",()=>r])},716427,e=>{"use strict";var t=e.i(712918),r=e.i(337787),i=e.i(905717),s=e.i(438552),n=e.i(936568),a=e.i(722175),o=e.i(997666),c=e.i(129753),u=e.i(257128),l=e.i(433208),d=e.i(389855);function f(e,f){if(e.length!==f.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:f.length});let h=p(function({params:e,values:f}){let h=[];for(let m=0;m<e.length;m++)h.push(function e({param:f,value:h}){let m=b(f.type);if(m){let[r,i]=m;return function(r,{length:i,param:s}){let n=null===i;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!n&&r.length!==i)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:i,givenLength:r.length,type:`${s.type}[${i}]`});let o=!1,c=[];for(let t=0;t<r.length;t++){let i=e({param:s,value:r[t]});i.dynamic&&(o=!0),c.push(i)}if(n||o){let e=p(c);if(n){let t=(0,l.numberToHex)(c.length,{size:32});return{dynamic:!0,encoded:c.length>0?(0,a.concat)([t,e]):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,a.concat)(c.map(({encoded:e})=>e))}}(h,{length:r,param:{...f,type:i}})}if("tuple"===f.type)return function(t,{param:r}){let i=!1,s=[];for(let n=0;n<r.components.length;n++){let a=r.components[n],o=Array.isArray(t)?n:a.name,c=e({param:a,value:t[o]});s.push(c),c.dynamic&&(i=!0)}return{dynamic:i,encoded:i?p(s):(0,a.concat)(s.map(({encoded:e})=>e))}}(h,{param:f});if("address"===f.type){var y=h;if(!(0,n.isAddress)(y))throw new r.InvalidAddressError({address:y});return{dynamic:!1,encoded:(0,o.padHex)(y.toLowerCase())}}if("bool"===f.type){var g=h;if("boolean"!=typeof g)throw new i.BaseError(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,o.padHex)((0,l.boolToHex)(g))}}if(f.type.startsWith("uint")||f.type.startsWith("int")){let e=f.type.startsWith("int"),[,,t="256"]=d.integerRegex.exec(f.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let i=2n**(BigInt(r)-(t?1n:0n))-1n,n=t?-i-1n:0n;if(e>i||e<n)throw new s.IntegerOutOfRangeError({max:i.toString(),min:n.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(h,{signed:e,size:Number(t)})}if(f.type.startsWith("bytes"))return function(e,{param:r}){let[,i]=r.type.split("bytes"),s=(0,c.size)(e);if(!i){let t=e;return s%32!=0&&(t=(0,o.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,a.concat)([(0,o.padHex)((0,l.numberToHex)(s,{size:32})),t])}}if(s!==Number.parseInt(i))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(i),value:e});return{dynamic:!1,encoded:(0,o.padHex)(e,{dir:"right"})}}(h,{param:f});if("string"===f.type){var v=h;let e=(0,l.stringToHex)(v),t=Math.ceil((0,c.size)(e)/32),r=[];for(let i=0;i<t;i++)r.push((0,o.padHex)((0,u.slice)(e,32*i,(i+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,a.concat)([(0,o.padHex)((0,l.numberToHex)((0,c.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(f.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[m],value:f[m]}));return h}({params:e,values:f}));return 0===h.length?"0x":h}function p(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:i,encoded:s}=e[r];i?t+=32:t+=(0,c.size)(s)}let r=[],i=[],s=0;for(let n=0;n<e.length;n++){let{dynamic:a,encoded:o}=e[n];a?(r.push((0,l.numberToHex)(t+s,{size:32})),i.push(o),s+=(0,c.size)(o)):r.push(o)}return(0,a.concat)([...r,...i])}function b(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",()=>f,"getArrayComponents",()=>b])},319350,e=>{"use strict";var t=e.i(712918),r=e.i(86210),i=e.i(357514),s=e.i(129753),n=e.i(257128),a=e.i(60522),o=e.i(176536),c=e.i(219902),u=e.i(433208),l=e.i(716427);
21function d(e,d){let p="string"==typeof d?(0,c.hexToBytes)(d):d,b=(0,i.createCursor)(p);if(0===(0,s.size)(p)&&e.length>0)throw new t.AbiDecodingZeroDataError;if((0,s.size)(d)&&32>(0,s.size)(d))throw new t.AbiDecodingDataSizeTooSmallError({data:"string"==typeof d?d:(0,u.bytesToHex)(d),params:e,size:(0,s.size)(d)});let h=0,m=[];for(let i=0;i<e.length;++i){let s=e[i];b.setPosition(h);let[c,d]=function e(i,s,{staticPosition:c}){var d,p,b;let h=(0,l.getArrayComponents)(s.type);if(h){let[t,r]=h;return function(t,r,{length:i,staticPosition:s}){if(!i){let i=s+(0,o.bytesToNumber)(t.readBytes(32)),n=i+32;t.setPosition(i);let a=(0,o.bytesToNumber)(t.readBytes(32)),c=f(r),u=0,l=[];for(let i=0;i<a;++i){t.setPosition(n+(c?32*i:u));let[s,a]=e(t,r,{staticPosition:n});u+=a,l.push(s)}return t.setPosition(s+32),[l,32]}if(f(r)){let n=s+(0,o.bytesToNumber)(t.readBytes(32)),a=[];for(let s=0;s<i;++s){t.setPosition(n+32*s);let[i]=e(t,r,{staticPosition:n});a.push(i)}return t.setPosition(s+32),[a,32]}let n=0,a=[];for(let o=0;o<i;++o){let[i,o]=e(t,r,{staticPosition:s+n});n+=o,a.push(i)}return[a,n]}(i,{...s,type:r},{length:t,staticPosition:c})}if("tuple"===s.type)return function(t,r,{staticPosition:i}){let s=0===r.components.length||r.components.some(({name:e})=>!e),n=s?[]:{},a=0;if(f(r)){let c=i+(0,o.bytesToNumber)(t.readBytes(32));for(let i=0;i<r.components.length;++i){let o=r.components[i];t.setPosition(c+a);let[u,l]=e(t,o,{staticPosition:c});a+=l,n[s?i:o?.name]=u}return t.setPosition(i+32),[n,32]}for(let o=0;o<r.components.length;++o){let c=r.components[o],[u,l]=e(t,c,{staticPosition:i});n[s?o:c?.name]=u,a+=l}return[n,a]}(i,s,{staticPosition:c});if("address"===s.type){let e;return e=i.readBytes(32),[(0,r.checksumAddress)((0,u.bytesToHex)((0,n.sliceBytes)(e,-20))),32]}if("bool"===s.type){return d=i,[(0,o.bytesToBool)(d.readBytes(32),{size:32}),32]}if(s.type.startsWith("bytes"))return function(e,t,{staticPosition:r}){let[i,s]=t.type.split("bytes");if(!s){let t=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(r+t);let i=(0,o.bytesToNumber)(e.readBytes(32));if(0===i)return e.setPosition(r+32),["0x",32];let s=e.readBytes(i);return e.setPosition(r+32),[(0,u.bytesToHex)(s),32]}return[(0,u.bytesToHex)(e.readBytes(Number.parseInt(s),32)),32]}(i,s,{staticPosition:c});if(s.type.startsWith("uint")||s.type.startsWith("int")){let e,t,r;return p=i,e=(b=s).type.startsWith("int"),t=Number.parseInt(b.type.split("int")[1]||"256"),r=p.readBytes(32),[t>48?(0,o.bytesToBigInt)(r,{signed:e}):(0,o.bytesToNumber)(r,{signed:e}),32]}if("string"===s.type)return function(e,{staticPosition:t}){let r=(0,o.bytesToNumber)(e.readBytes(32));e.setPosition(t+r);let i=(0,o.bytesToNumber)(e.readBytes(32));if(0===i)return e.setPosition(t+32),["",32];let s=e.readBytes(i,32),n=(0,o.bytesToString)((0,a.trim)(s));return e.setPosition(t+32),[n,32]}(i,{staticPosition:c});throw new t.InvalidAbiDecodingTypeError(s.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(b,s,{staticPosition:0});h+=d,m.push(c)}return m}function f(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(f);let r=(0,l.getArrayComponents)(e.type);return!!(r&&f({...e,type:r[1]}))}e.s(["decodeAbiParameters",()=>d])},928675,e=>{"use strict";var t=e.i(219902),r=e.i(666208);function i(e){return(0,r.keccak256)((0,t.toBytes)(e))}e.s(["hashSignature",()=>i])},780650,e=>{"use strict";var t=e.i(905717);function r(e){let r=!0,i="",s=0,n="",a=!1;for(let t=0;t<e.length;t++){let o=e[t];if(["(",")",","].includes(o)&&(r=!0),"("===o&&s++,")"===o&&s--,r){if(0===s){if(" "===o&&["event","function",""].includes(n))n="";else if(n+=o,")"===o){a=!0;break}continue}if(" "===o){","!==e[t-1]&&","!==i&&",("!==i&&(i="",r=!1);continue}n+=o,i+=o}}if(!a)throw new t.BaseError("Unable to normalize signature.");return n}e.s(["normalizeSignature",()=>r])},913096,e=>{"use strict";function t(e,t){return e.exec(t)?.groups}let r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^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)?$/,s=/^\(.+?\).*?$/;e.s(["bytesRegex",()=>r,"execTyped",()=>t,"integerRegex",()=>i,"isTupleRegex",()=>s])},868314,e=>{"use strict";var t=e.i(913096);let r=/^tuple(?<array>(\[(\d*)\])*)$/;e.s(["formatAbiParameter",()=>function e(i){let s=i.type;if(r.test(i.type)&&"components"in i){s="(";let n=i.components.length;for(let t=0;t<n;t++)s+=e(i.components[t]),t<n-1&&(s+=", ");
21let a=(0,t.execTyped)(r,i.type);return s+=`)${a?.array??""}`,e({...i,type:s})}return"indexed"in i&&i.indexed&&(s=`${s} indexed`),i.name?`${s} ${i.name}`:s}])},674174,e=>{"use strict";var t=e.i(868314);function r(e){let r="",i=e.length;for(let s=0;s<i;s++){let n=e[s];r+=(0,t.formatAbiParameter)(n),s!==i-1&&(r+=", ")}return r}e.s(["formatAbiParameters",()=>r])},128590,e=>{"use strict";var t=e.i(674174);function r(e){return"function"===e.type?`function ${e.name}(${(0,t.formatAbiParameters)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,t.formatAbiParameters)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,t.formatAbiParameters)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,t.formatAbiParameters)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,t.formatAbiParameters)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiItem",()=>r])},232735,e=>{"use strict";var t=e.i(780650),r=e.i(128590);let i=e=>{let i="string"==typeof e?e:(0,r.formatAbiItem)(e);return(0,t.normalizeSignature)(i)};e.s(["toSignature",()=>i])},311775,e=>{"use strict";var t=e.i(928675),r=e.i(232735);function i(e){return(0,t.hashSignature)((0,r.toSignature)(e))}e.s(["toSignatureHash",()=>i])},698021,e=>{"use strict";let t=e.i(311775).toSignatureHash;e.s(["toEventSelector",()=>t])},823045,e=>{"use strict";var t=e.i(257128),r=e.i(311775);let i=e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4);e.s(["toFunctionSelector",()=>i])},726923,e=>{"use strict";var t=e.i(712918),r=e.i(839920),i=e.i(936568),s=e.i(698021),n=e.i(823045);function a(e){let a,{abi:o,args:c=[],name:u}=e,l=(0,r.isHex)(u,{strict:!1}),d=o.filter(e=>l?"function"===e.type?(0,n.toFunctionSelector)(e)===u:"event"===e.type&&(0,s.toEventSelector)(e)===u:"name"in e&&e.name===u);if(0!==d.length){if(1===d.length)return d[0];for(let e of d)if("inputs"in e){if(!c||0===c.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===c.length&&c.every((t,r)=>{let s="inputs"in e&&e.inputs[r];return!!s&&function e(t,r){let s=typeof t,n=r.type;switch(n){case"address":return(0,i.isAddress)(t,{strict:!1});case"bool":return"boolean"===s;case"function":case"string":return"string"===s;default:return"tuple"===n&&"components"in r?Object.values(r.components).every((r,i)=>e(Object.values(t)[i],r)):/^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)?"number"===s||"bigint"===s:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(n)?"string"===s||t instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(n)&&Array.isArray(t)&&t.every(t=>e(t,{...r,type:n.replace(/(\[[0-9]{0,}\])$/,"")}))}}(t,s)})){if(a&&"inputs"in a&&a.inputs){let r=function e(t,r,s){for(let n in t){let a=t[n],o=r[n];if("tuple"===a.type&&"tuple"===o.type&&"components"in a&&"components"in o)return e(a.components,o.components,s[n]);let c=[a.type,o.type];if(c.includes("address")&&c.includes("bytes20")||(c.includes("address")&&c.includes("string")?(0,i.isAddress)(s[n],{strict:!1}):!!(c.includes("address")&&c.includes("bytes"))&&(0,i.isAddress)(s[n],{strict:!1})))return c}}(e.inputs,a.inputs,c);if(r)throw new t.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:a,type:r[1]})}a=e}}return a||d[0]}}e.s(["getAbiItem",()=>a])},948859,e=>{"use strict";var t=e.i(712918),r=e.i(319350),i=e.i(726923);let s="/docs/contract/decodeFunctionResult";function n(e){let{abi:n,args:a,functionName:o,data:c}=e,u=n[0];if(o){let e=(0,i.getAbiItem)({abi:n,args:a,name:o});if(!e)throw new t.AbiFunctionNotFoundError(o,{docsPath:s});u=e}if("function"!==u.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:s});if(!u.outputs)throw new t.AbiFunctionOutputsNotFoundError(u.name,{docsPath:s});let l=(0,r.decodeAbiParameters)(u.outputs,c);return l&&l.length>1?l:l&&1===l.length?l[0]:void 0}e.s(["decodeFunctionResult",()=>n])},337692,e=>{"use strict";var t=e.i(712918),r=e.i(823045),i=e.i(122521),s=e.i(726923);let n="/docs/contract/encodeFunctionData";function a(e){let{abi:a,args:o,functionName:c}=e,u=a[0];if(c){let e=(0,s.getAbiItem)({abi:a,args:o,name:c});if(!e)throw new t.AbiFunctionNotFoundError(c,{docsPath:n});u=e}if("function"!==u.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:n});return{abi:[u],functionName:(0,r.toFunctionSelector)((0,i.formatAbiItem)(u))}}e.s(["prepareEncodeFunctionData",()=>a])},370107,e=>{"use strict";var t=e.i(722175),r=e.i(716427),i=e.i(337692);function s(e){let{args:s}=e,{abi:n,functionName:a}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:(0,i.prepareEncodeFunctionData)(e),o=n[0],c="inputs"in o&&o.inputs?(0,r.encodeAbiParameters)(o.inputs,s??[]):void 0;return(0,t.concatHex)([a,c??"0x"])}e.s(["encodeFunctionData",()=>s])},240991,e=>{"use strict";var t=e.i(905717);class r extends t.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"})}}class i extends t.BaseError{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}}class s extends t.BaseError{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
21" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}e.s(["ChainDoesNotSupportContract",()=>r,"ClientChainNotConfiguredError",()=>i,"InvalidChainIdError",()=>s])},757420,e=>{"use strict";var t=e.i(240991);function r({blockNumber:e,chain:r,contract:i}){let s=r?.contracts?.[i];if(!s)throw new t.ChainDoesNotSupportContract({chain:r,contract:{name:i}});if(e&&s.blockCreated&&s.blockCreated>e)throw new t.ChainDoesNotSupportContract({blockNumber:e,chain:r,contract:{name:i,blockCreated:s.blockCreated}});return s.address}e.s(["getChainContractAddress",()=>r])},733338,e=>{"use strict";let t={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."},r={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},i={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};e.s(["panicReasons",()=>t,"solidityError",()=>r,"solidityPanic",()=>i])},657213,e=>{"use strict";var t=e.i(733338),r=e.i(712918),i=e.i(257128),s=e.i(823045),n=e.i(319350),a=e.i(122521);function o(e){let{abi:o,data:c}=e,u=(0,i.slice)(c,0,4);if("0x"===u)throw new r.AbiDecodingZeroDataError;let l=[...o||[],t.solidityError,t.solidityPanic].find(e=>"error"===e.type&&u===(0,s.toFunctionSelector)((0,a.formatAbiItem)(e)));if(!l)throw new r.AbiErrorSignatureNotFoundError(u,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:l,args:"inputs"in l&&l.inputs&&l.inputs.length>0?(0,n.decodeAbiParameters)(l.inputs,(0,i.slice)(c,4)):void 0,errorName:l.name}}e.s(["decodeErrorResult",()=>o])},878302,e=>{"use strict";let t=(e,t,r)=>JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString():t,r);e.s(["stringify",()=>t])},931187,e=>{"use strict";var t=e.i(878302);function r({abiItem:e,args:r,includeFunctionName:i=!0,includeName:s=!1}){if("name"in e&&"inputs"in e&&e.inputs)return`${i?e.name:""}(${e.inputs.map((e,i)=>`${s&&e.name?`${e.name}: `:""}${"object"==typeof r[i]?(0,t.stringify)(r[i]):r[i]}`).join(", ")})`}e.s(["formatAbiItemWithArgs",()=>r])},862584,e=>{"use strict";let t={gwei:9,wei:18},r={ether:-9,wei:9};e.s(["etherUnits",()=>t,"gweiUnits",()=>r])},700973,e=>{"use strict";function t(e,t){let r=e.toString(),i=r.startsWith("-");i&&(r=r.slice(1));let[s,n]=[(r=r.padStart(t,"0")).slice(0,r.length-t),r.slice(r.length-t)];return n=n.replace(/(0+)$/,""),`${i?"-":""}${s||"0"}${n?`.${n}`:""}`}e.s(["formatUnits",()=>t])},583900,e=>{"use strict";var t=e.i(862584),r=e.i(700973);function i(e,s="wei"){return(0,r.formatUnits)(e,t.etherUnits[s])}e.s(["formatEther",()=>i])},235911,e=>{"use strict";var t=e.i(862584),r=e.i(700973);function i(e,s="wei"){return(0,r.formatUnits)(e,t.gweiUnits[s])}e.s(["formatGwei",()=>i])},239770,e=>{"use strict";var t=e.i(905717);class r extends t.BaseError{constructor({address:e}){super(`State for account "${e}" is set multiple times.`,{name:"AccountStateConflictError"})}}class i extends t.BaseError{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}}function s(e){return e.reduce((e,{slot:t,value:r})=>`${e} ${t}: ${r} 22`,"")}function n(e){return e.reduce((e,{address:t,...r})=>{let i=`${e} ${t}: 23`;return r.nonce&&(i+=` nonce: ${r.nonce} 24`),r.balance&&(i+=` balance: ${r.balance} 25`),r.code&&(i+=` code: ${r.code} 26`),r.state&&(i+=` state: 27`,i+=s(r.state)),r.stateDiff&&(i+=` stateDiff: 28`,i+=s(r.stateDiff)),i},` State Override: 29`).slice(0,-1)}e.s(["AccountStateConflictError",()=>r,"StateAssignmentConflictError",()=>i,"prettyStateOverride",()=>n])},443545,e=>{"use strict";var t=e.i(905717);function r(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(` 30`)}class i extends t.BaseError{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(` 31`),{name:"FeeConflictError"})}}class s extends t.BaseError{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class n extends t.BaseError{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",r(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class a extends t.BaseError{constructor({storageKey:e}){super(`Size for storage key "${e}
31" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class o extends t.BaseError{constructor({blockHash:e,blockNumber:t,blockTag:r,hash:i,index:s}){let n="Transaction";r&&void 0!==s&&(n=`Transaction at block time "${r}" at index "${s}"`),e&&void 0!==s&&(n=`Transaction at block hash "${e}" at index "${s}"`),t&&void 0!==s&&(n=`Transaction at block number "${t}" at index "${s}"`),i&&(n=`Transaction with hash "${i}"`),super(`${n} could not be found.`,{name:"TransactionNotFoundError"})}}class c extends t.BaseError{constructor({hash:e}){super(`Transaction receipt with hash "${e}" could not be found. The Transaction may not be processed on a block yet.`,{name:"TransactionReceiptNotFoundError"})}}class u extends t.BaseError{constructor({hash:e}){super(`Timed out while waiting for transaction with hash "${e}" to be confirmed.`,{name:"WaitForTransactionReceiptTimeoutError"})}}e.s(["FeeConflictError",()=>i,"InvalidLegacyVError",()=>s,"InvalidSerializableTransactionError",()=>n,"InvalidStorageKeySizeError",()=>a,"TransactionNotFoundError",()=>o,"TransactionReceiptNotFoundError",()=>c,"WaitForTransactionReceiptTimeoutError",()=>u,"prettyPrint",()=>r])},97508,e=>{"use strict";let t=e=>e,r=e=>e;e.s(["getContractAddress",()=>t,"getUrl",()=>r])},532036,e=>{"use strict";var t=e.i(320604),r=e.i(733338),i=e.i(657213),s=e.i(122521),n=e.i(931187),a=e.i(726923),o=e.i(583900),c=e.i(235911),u=e.i(712918),l=e.i(905717),d=e.i(239770),f=e.i(443545),p=e.i(97508);class b extends l.BaseError{constructor(e,{account:r,docsPath:i,chain:s,data:n,gas:a,gasPrice:u,maxFeePerGas:l,maxPriorityFeePerGas:p,nonce:b,to:h,value:m,stateOverride:y}){const g=r?(0,t.parseAccount)(r):void 0;let v=(0,f.prettyPrint)({from:g?.address,to:h,value:"u">typeof m&&`${(0,o.formatEther)(m)} ${s?.nativeCurrency?.symbol||"ETH"}`,data:n,gas:a,gasPrice:"u">typeof u&&`${(0,c.formatGwei)(u)} gwei`,maxFeePerGas:"u">typeof l&&`${(0,c.formatGwei)(l)} gwei`,maxPriorityFeePerGas:"u">typeof p&&`${(0,c.formatGwei)(p)} gwei`,nonce:b});y&&(v+=` 32${(0,d.prettyStateOverride)(y)}`),super(e.shortMessage,{cause:e,docsPath:i,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Raw Call Arguments:",v].filter(
vendor: 6,122 bytes, lines 32-33
32Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class h extends l.BaseError{constructor(e,{abi:t,args:r,contractAddress:i,docsPath:o,functionName:c,sender:u}){const l=(0,a.getAbiItem)({abi:t,args:r,name:c}),d=l?(0,n.formatAbiItemWithArgs)({abiItem:l,args:r,includeFunctionName:!1,includeName:!1}):void 0,b=l?(0,s.formatAbiItem)(l,{includeName:!0}):void 0,h=(0,f.prettyPrint)({address:i&&(0,p.getContractAddress)(i),function:b,args:d&&"()"!==d&&`${[...Array(c?.length??0).keys()].map(()=>" ").join("")}${d}`,sender:u});super(e.shortMessage||`An unknown error occurred while executing the contract function "${c}".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],h&&"Contract Call:",h].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=i,this.functionName=c,this.sender=u}}class m extends l.BaseError{constructor({abi:e,data:t,functionName:a,message:o}){let c,l,d,f,p;if(t&&"0x"!==t)try{const{abiItem:a,errorName:o,args:c}=l=(0,i.decodeErrorResult)({abi:e,data:t});if("Error"===o)f=c[0];else if("Panic"===o){const[e]=c;f=r.panicReasons[e]}else{const e=a?(0,s.formatAbiItem)(a,{includeName:!0}):void 0,t=a&&c?(0,n.formatAbiItemWithArgs)({abiItem:a,args:c,includeFunctionName:!1,includeName:!1}):void 0;d=[e?`Error: ${e}`:"",t&&"()"!==t?` ${[...Array(o?.length??0).keys()].map(()=>" ").join("")}${t}`:""]}}catch(e){c=e}else o&&(f=o);c instanceof u.AbiErrorSignatureNotFoundError&&(p=c.signature,d=[`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 "${a}" reverted with the following ${p?"signature":"reason"}:`,f||p].join(` 33`):`The contract function "${a}" reverted.`,{cause:c,metaMessages:d,name:"ContractFunctionRevertedError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"raw",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"reason",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=l,this.raw=t,this.reason=f,this.signature=p}}class y extends l.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"})}}class g extends l.BaseError{constructor({factory:e}){super(`Deployment for counterfactual contract call failed${e?` for factory "${e}".`:""}`,{metaMessages:["Please ensure:","- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).","- The `factoryData` is a valid encoded function call for contract deployment function on the factory."],name:"CounterfactualDeploymentFailedError"})}}class v extends l.BaseError{constructor({data:e,message:t}){super(t||"",{name:"RawContractError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}e.s(["CallExecutionError",()=>b,"ContractFunctionExecutionError",()=>h,"ContractFunctionRevertedError",()=>m,"ContractFunctionZeroDataError",()=>y,"CounterfactualDeploymentFailedError",()=>g,"RawContractError",()=>v])},572014,e=>{"use strict";var t=e.i(712918),r=e.i(257128),i=e.i(823045),s=e.i(319350),n=e.i(122521);function a(e){let{abi:a,data:o}=e,c=(0,r.slice)(o,0,4),u=a.find(e=>"function"===e.type&&c===(0,i.toFunctionSelector)((0,n.formatAbiItem)(e)));if(!u)throw new t.AbiFunctionSignatureNotFoundError(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.decodeAbiParameters)(u.inputs,(0,r.slice)(o,4)):void 0}}e.s(["decodeFunctionData",()=>a])},551984,e=>{"use strict";var t=e.i(712918),r=e.i(722175),i=e.i(823045),s=e.i(716427),n=e.i(122521),a=e.i(726923);let o="/docs/contract/encodeErrorResult";function c(e){let{abi:c,errorName:u,args:l}=e,d=c[0];if(u){let e=(0,a.getAbiItem)({abi:c,args:l,name:u});if(!e)throw new t.AbiErrorNotFoundError(u,{docsPath:o});d=e}if("error"!==d.type)throw new t.AbiErrorNotFoundError(void 0,{docsPath:o});let f=(0,n.formatAbiItem)(d),p=(0,i.toFunctionSelector)(f),b="0x";if(l&&l.length>0){if(!d.inputs)throw new t.AbiErrorInputsNotFoundError(d.name,{docsPath:o});b=(0,s.encodeAbiParameters)(d.inputs,l)}return(0,r.concatHex)([p,b])}e.s(["encodeErrorResult",()=>c])},283634,e=>{"use strict";var t=e.i(712918),r=e.i(716427),i=e.i(726923);let s="/docs/contract/encodeFunctionResult";function n(e){let{abi:n,functionName:a,result:o}=e,c=n[0];if(a){let e=(0,i.getAbiItem)({abi:n,name:a});if(!e)throw new t.AbiFunctionNotFoundError(a,{docsPath:s});c=e}if("function"!==c.type)throw new t.AbiFunctionNotFoundError(void 0,{docsPath:s});if(!c.outputs)throw new t.AbiFunctionOutputsNotFoundError(c.name,{docsPath:s});let u=(()=>
33{if(0===c.outputs.length)return[];if(1===c.outputs.length)return[o];if(Array.isArray(o))return o;throw new t.InvalidArrayError(o)})();return(0,r.encodeAbiParameters)(c.outputs,u)}e.s(["encodeFunctionResult",()=>n])},77390,e=>{"use strict";var t=e.i(535440),r=e.i(733338),i=e.i(572014),s=e.i(551984),n=e.i(283634);let a="x-batch-gateway:true";async function o(e){let{data:c,ccipRequest:u}=e,{args:[l]}=(0,i.decodeFunctionData)({abi:t.batchGatewayAbi,data:c}),d=[],f=[];return await Promise.all(l.map(async(e,i)=>{try{f[i]=e.urls.includes(a)?await o({data:e.data,ccipRequest:u}):await u(e),d[i]=!1}catch(e){var n;d[i]=!0,f[i]="HttpRequestError"===(n=e).name&&n.status?(0,s.encodeErrorResult)({abi:t.batchGatewayAbi,errorName:"HttpError",args:[n.status,n.shortMessage]}):(0,s.encodeErrorResult)({abi:[r.solidityError],errorName:"Error",args:["shortMessage"in n?n.shortMessage:n.message]})}})),(0,n.encodeFunctionResult)({abi:t.batchGatewayAbi,functionName:"query",result:[d,f]})}e.s(["localBatchGatewayRequest",()=>o,"localBatchGatewayUrl",()=>a])},541524,e=>{"use strict";var t=e.i(878302),r=e.i(905717),i=e.i(97508);class s extends r.BaseError{constructor({body:e,cause:r,details:s,headers:n,status:a,url:o}){super("HTTP request failed.",{cause:r,details:s,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,i.getUrl)(o)}`,e&&`Request body: ${(0,t.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=n,this.status=a,this.url=o}}class n extends r.BaseError{constructor({body:e,error:r,url:s}){super("RPC Request failed.",{cause:r,details:r.message,metaMessages:[`URL: ${(0,i.getUrl)(s)}`,`Request body: ${(0,t.stringify)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=r.code,this.data=r.data}}class a extends r.BaseError{constructor({body:e,url:r}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,i.getUrl)(r)}`,`Request body: ${(0,t.stringify)(e)}`],name:"TimeoutError"})}}e.s(["HttpRequestError",()=>s,"RpcRequestError",()=>n,"TimeoutError",()=>a])},520281,e=>{"use strict";e.s(["version",()=>"0.1.1"])},715640,e=>{"use strict";var t=e.i(520281);function r(){return t.version}e.s(["getVersion",()=>r])},246877,e=>{"use strict";var t=e.i(715640);class r extends Error{constructor(e,i={}){const s=(()=>{if(i.cause instanceof r){if(i.cause.details)return i.cause.details;if(i.cause.shortMessage)return i.cause.shortMessage}return i.cause&&"details"in i.cause&&"string"==typeof i.cause.details?i.cause.details:i.cause?.message?i.cause.message:i.details})(),n=i.cause instanceof r&&i.cause.docsPath||i.docsPath,a=`https://oxlib.sh${n??""}`;super([e||"An error occurred.",...i.metaMessages?["",...i.metaMessages]:[],...s||n?["",s?`Details: ${s}`:void 0,n?`See: ${a}`:void 0]:[]].filter(e=>"string"==typeof e).join(` 34`),i.cause?{cause:i.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,t.getVersion)()}`}),this.cause=i.cause,this.details=s,this.docs=a,this.docsPath=n,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)}}e.s(["BaseError",()=>r])},414603,e=>{"use strict";function t(e,t,r){return JSON.stringify(e,(e,t)=>"bigint"==typeof t?t.toString()+"#__bigint":t,r)}e.s(["stringify",()=>t])},300934,e=>{"use strict";e.s(["assertEndOffset",()=>s,"assertSize",()=>r,"assertStartOffset",()=>i,"pad",()=>n]);var t=e.i(128995);function r(e,r){if((0,t.size)(e)>r)throw new t.SizeOverflowError({givenSize:(0,t.size)(e),maxSize:r})}function i(e,r){if("number"==typeof r&&r>0&&r>(0,t.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,t.size)(e)})}
34function s(e,r,i){if("number"==typeof r&&"number"==typeof i&&(0,t.size)(e)!==i-r)throw new t.SliceOffsetOutOfBoundsError({offset:i,position:"end",size:(0,t.size)(e)})}function n(e,r={}){let{dir:i,size:s=32}=r;if(0===s)return e;let a=e.replace("0x","");if(a.length>2*s)throw new t.SizeExceedsPaddingSizeError({size:Math.ceil(a.length/2),targetSize:s,type:"Hex"});return`0x${a["right"===i?"padEnd":"padStart"](2*s,"0")}`}},128995,e=>{"use strict";e.s(["IntegerOutOfRangeError",()=>m,"SizeExceedsPaddingSizeError",()=>w,"SizeOverflowError",()=>v,"SliceOffsetOutOfBoundsError",()=>E,"concat",()=>a,"fromBoolean",()=>o,"fromBytes",()=>c,"fromNumber",()=>u,"fromString",()=>l,"padLeft",()=>d,"padRight",()=>f,"size",()=>b,"slice",()=>p,"validate",()=>h]);var t=e.i(246877),r=e.i(414603),i=e.i(300934);let s=new TextEncoder,n=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(...e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}function o(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?((0,i.assertSize)(r,t.size),d(r,t.size)):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=n[e[t]];let s=`0x${r}`;return"number"==typeof t.size?((0,i.assertSize)(s,t.size),f(s,t.size)):s}function u(e,t={}){let r,{signed:i,size:s}=t,n=BigInt(e);s?r=i?(1n<<8n*BigInt(s)-1n)-1n:2n**(8n*BigInt(s))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof r&&i?-r-1n:0;if(r&&n>r||n<a){let t="bigint"==typeof e?"n":"";throw new m({max:r?`${r}${t}`:void 0,min:`${a}${t}`,signed:i,size:s,value:`${e}${t}`})}let o=`0x${(i&&n<0?(1n<<BigInt(8*s))+BigInt(n):n).toString(16)}`;return s?d(o,s):o}function l(e,t={}){return c(s.encode(e),t)}function d(e,t){return(0,i.pad)(e,{dir:"left",size:t})}function f(e,t){return(0,i.pad)(e,{dir:"right",size:t})}function p(e,t,r,s={}){let{strict:n}=s;(0,i.assertStartOffset)(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&(0,i.assertEndOffset)(a,t,r),a}function b(e){return Math.ceil((e.length-2)/2)}function h(e,t={}){let{strict:r=!1}=t;try{return function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new y(e);if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new g(e)}(e,{strict:r}),!0}catch{return!1}}class m extends t.BaseError{constructor({max:e,min:t,signed:r,size:i,value:s}){super(`Number \`${s}\` is not in safe${i?` ${8*i}-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"})}}class y extends t.BaseError{constructor(e){super(`Value \`${"object"==typeof e?(0,r.stringify)(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class g extends t.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"})}}class v extends t.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"})}}class E extends t.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"})}}class w extends t.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"})}}},591466,e=>{"use strict";var t=e.i(128995);function r(e){return{address:e.address,amount:(0,t.fromNumber)(e.amount),index:(0,t.fromNumber)(e.index),validatorIndex:(0,t.fromNumber)(e.validatorIndex)}}e.s(["toRpc",()=>r])},430027,e=>{"use strict";var t=e.i(128995),r=e.i(591466);function i(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:(0,t.fromNumber)(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:(0,t.fromNumber)(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:(0,t.fromNumber)(e.gasLim
34it)},..."bigint"==typeof e.number&&{number:(0,t.fromNumber)(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:(0,t.fromNumber)(e.prevRandao)},..."bigint"==typeof e.time&&{time:(0,t.fromNumber)(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(r.toRpc)}}}e.s(["toRpc",()=>i])},556211,e=>{"use strict";e.s(["aggregate3Signature",()=>"0x82ad56cb"])},873639,e=>{"use strict";e.s(["deploylessCallViaBytecodeBytecode",()=>"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe","deploylessCallViaFactoryBytecode",()=>"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe","universalSignatureValidatorByteCode",()=>"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b8152
3460206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848
34603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"])},462663,e=>{"use strict";var t=e.i(712918),r=e.i(722175),i=e.i(716427);let s="/docs/contract/encodeDeployData";function n(e){let{abi:n,args:a,bytecode:o}=e;if(!a||0===a.length)return o;let c=n.find(e=>"type"in e&&"constructor"===e.type);if(!c)throw new t.AbiConstructorNotFoundError({docsPath:s});if(!("inputs"in c)||!c.inputs||0===c.inputs.length)throw new t.AbiConstructorParamsNotFoundError({docsPath:s});let u=(0,i.encodeAbiParameters)(c.inputs,a);return(0,r.concatHex)([o,u])}e.s(["encodeDeployData",()=>n])},523294,e=>{"use strict";var t=e.i(235911),r=e.i(905717);class i extends r.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"})}}Object.defineProperty(i,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(i,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class s extends r.BaseError{constructor({cause:e,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(s,"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 n extends r.BaseError{constructor({cause:e,maxFeePerGas:r}={}){super(`The fee cap (\`maxFeePerGas\`${r?` = ${(0,t.formatGwei)(r)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(n,"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 a extends r.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class o extends r.BaseError{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(` 35`),{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class c extends r.BaseError{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class u extends r.BaseError{constructor({cause:e}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(` 36`),{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class l extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class d extends r.BaseError{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class f extends r.BaseError{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}
36Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class p extends r.BaseError{constructor({cause:e,maxPriorityFeePerGas:r,maxFeePerGas:i}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${r?` = ${(0,t.formatGwei)(r)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${i?` = ${(0,t.formatGwei)(i)} gwei`:""}).`].join(` 37`),{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class b extends r.BaseError{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}e.s(["ExecutionRevertedError",()=>i,"FeeCapTooHighError",()=>s,"FeeCapTooLowError",()=>n,"InsufficientFundsError",()=>u,"IntrinsicGasTooHighError",()=>l,"IntrinsicGasTooLowError",()=>d,"NonceMaxValueError",()=>c,"NonceTooHighError",()=>a,"NonceTooLowError",()=>o,"TipAboveFeeCapError",()=>p,"TransactionTypeNotSupportedError",()=>f,"UnknownNodeError",()=>b])},149170,e=>{"use strict";var t=e.i(905717),r=e.i(523294);function i(e,i){let s=(e.details||"").toLowerCase(),n=e instanceof t.BaseError?e.walk(e=>e?.code===r.ExecutionRevertedError.code):e;return n instanceof t.BaseError?new r.ExecutionRevertedError({cause:e,message:n.details}):r.ExecutionRevertedError.nodeMessage.test(s)?new r.ExecutionRevertedError({cause:e,message:e.details}):r.FeeCapTooHighError.nodeMessage.test(s)?new r.FeeCapTooHighError({cause:e,maxFeePerGas:i?.maxFeePerGas}):r.FeeCapTooLowError.nodeMessage.test(s)?new r.FeeCapTooLowError({cause:e,maxFeePerGas:i?.maxFeePerGas}):r.NonceTooHighError.nodeMessage.test(s)?new r.NonceTooHighError({cause:e,nonce:i?.nonce}):r.NonceTooLowError.nodeMessage.test(s)?new r.NonceTooLowError({cause:e,nonce:i?.nonce}):r.NonceMaxValueError.nodeMessage.test(s)?new r.NonceMaxValueError({cause:e,nonce:i?.nonce}):r.InsufficientFundsError.nodeMessage.test(s)?new r.InsufficientFundsError({cause:e}):r.IntrinsicGasTooHighError.nodeMessage.test(s)?new r.IntrinsicGasTooHighError({cause:e,gas:i?.gas}):r.IntrinsicGasTooLowError.nodeMessage.test(s)?new r.IntrinsicGasTooLowError({cause:e,gas:i?.gas}):r.TransactionTypeNotSupportedError.nodeMessage.test(s)?new r.TransactionTypeNotSupportedError({cause:e}):r.TipAboveFeeCapError.nodeMessage.test(s)?new r.TipAboveFeeCapError({cause:e,maxFeePerGas:i?.maxFeePerGas,maxPriorityFeePerGas:i?.maxPriorityFeePerGas}):new r.UnknownNodeError({cause:e})}e.s(["getNodeError",()=>i])},189801,e=>{"use strict";var t=e.i(532036),r=e.i(523294),i=e.i(149170);function s(e,{docsPath:s,...n}){let a,o=(a=(0,i.getNodeError)(e,n))instanceof r.UnknownNodeError?e:a;return new t.CallExecutionError(o,{docsPath:s,...n})}e.s(["getCallError",()=>s])},652413,e=>{"use strict";function t(e,{format:t}){if(!t)return{};let r={};return function t(i){for(let s of Object.keys(i))s in e&&(r[s]=e[s]),i[s]&&"object"==typeof i[s]&&!Array.isArray(i[s])&&t(i[s])}(t(e||{})),r}e.s(["extract",()=>t])},538302,e=>{"use strict";var t=e.i(433208);let r={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function i(e){let i={};return"u">typeof e.authorizationList&&(i.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,t.numberToHex)(BigInt(e.r)):e.r,s:e.s?(0,t.numberToHex)(BigInt(e.s)):e.s,chainId:(0,t.numberToHex)(e.chainId),nonce:(0,t.numberToHex)(e.nonce),..."u">typeof e.yParity?{yParity:(0,t.numberToHex)(e.yParity)}:{},..."u">typeof e.v&&typeof e.yParity>"u"?{v:(0,t.numberToHex)(e.v)}:{}}))),"u">typeof e.accessList&&(i.accessList=e.accessList),"u">typeof e.blobVersionedHashes&&(i.blobVersionedHashes=e.blobVersionedHashes),"u">typeof e.blobs&&("string"!=typeof e.blobs[0]?i.blobs=e.blobs.map(e=>(0,t.bytesToHex)(e)):i.blobs=e.blobs),"u">typeof e.data&&(i.data=e.data),"u">typeof e.from&&(i.from=e.from),"u">typeof e.gas&&(i.gas=(0,t.numberToHex)(e.gas)),"u">typeof e.gasPrice&&(i.gasPrice=(0,t.numberToHex)(e.gasPrice)),"u">typeof e.maxFeePerBlobGas&&(i.maxFeePerBlobGas=(0,t.numberToHex)(e.maxFeePerBlobGas)),"u">typeof e.maxFeePerGas&&(i.maxFeePerGas=(0,t.numberToHex)(e.maxFeePerGas)),"u">typeof e.maxPriorityFeePerGas&&(i.maxPriorityFeePerGas=(0,t.numberToHex)(e.maxPriorityFeePerGas)),"u">typeof e.nonce&&(i.nonce=(0,t.numberToHex)(e.nonce)),"u">typeof e.to&&(i.to=e.to),"u">typeof e.type&&(i.type=r[e.type]),"u">typeof e.value&&(i.value=(0,t.numberToHex)(e.value)),i}e.s(["formatTransactionRequest",()=>i])}
37,17615,e=>{"use strict";function t(){let e=()=>{},t=()=>{};return{promise:new Promise((r,i)=>{e=r,t=i}),resolve:e,reject:t}}e.s(["withResolvers",()=>t])},10578,e=>{"use strict";var t=e.i(17615);let r=new Map;function i({fn:e,id:i,shouldSplitBatch:s,wait:n=0,sort:a}){let o=async()=>{let t=u();c();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r<t.length;r++){let{resolve:i}=t[r];i?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:i}=t[r];i?.(e)}})},c=()=>r.delete(i),u=()=>r.get(i)||[],l=e=>r.set(i,[...u(),e]);return{flush:c,async schedule(e){let{promise:r,resolve:i,reject:a}=(0,t.withResolvers)();return s?.([...u().map(({args:e})=>e),e])&&o(),u().length>0?l({args:e,resolve:i,reject:a}):(l({args:e,resolve:i,reject:a}),setTimeout(o,n)),r}}}e.s(["createBatchScheduler",()=>i])},693577,e=>{"use strict";var t=e.i(337787),r=e.i(649086),i=e.i(239770),s=e.i(936568),n=e.i(433208);function a(e){if(!(!e||0===e.length))return e.reduce((e,{slot:t,value:i})=>{if(66!==t.length)throw new r.InvalidBytesLengthError({size:t.length,targetSize:66,type:"hex"});if(66!==i.length)throw new r.InvalidBytesLengthError({size:i.length,targetSize:66,type:"hex"});return e[t]=i,e},{})}function o(e){if(!e)return;let r={};for(let{address:o,...c}of e){if(!(0,s.isAddress)(o,{strict:!1}))throw new t.InvalidAddressError({address:o});if(r[o])throw new i.AccountStateConflictError({address:o});r[o]=function(e){let{balance:t,nonce:r,state:s,stateDiff:o,code:c}=e,u={};if(void 0!==c&&(u.code=c),void 0!==t&&(u.balance=(0,n.numberToHex)(t)),void 0!==r&&(u.nonce=(0,n.numberToHex)(r)),void 0!==s&&(u.state=a(s)),void 0!==o){if(u.state)throw new i.StateAssignmentConflictError;u.stateDiff=a(o)}return u}(c)}return r}e.s(["serializeStateOverride",()=>o])},714594,e=>{"use strict";let t=2n**256n-1n;e.s(["maxUint256",()=>t])},558310,e=>{"use strict";var t=e.i(320604),r=e.i(714594),i=e.i(337787),s=e.i(523294),n=e.i(443545),a=e.i(936568);function o(e){let{account:o,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:l,to:d}=e,f=o?(0,t.parseAccount)(o):void 0;if(f&&!(0,a.isAddress)(f.address))throw new i.InvalidAddressError({address:f.address});if(d&&!(0,a.isAddress)(d))throw new i.InvalidAddressError({address:d});if("u">typeof c&&("u">typeof u||"u">typeof l))throw new n.FeeConflictError;if(u&&u>r.maxUint256)throw new s.FeeCapTooHighError({maxFeePerGas:u});if(l&&u&&l>u)throw new s.TipAboveFeeCapError({maxFeePerGas:u,maxPriorityFeePerGas:l})}e.s(["assertRequest",()=>o])},304899,e=>{"use strict";var t=e.i(913096);let r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function i(e){return r.test(e)}function s(e){return(0,t.execTyped)(r,e)}let n=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function a(e){return n.test(e)}function o(e){return(0,t.execTyped)(n,e)}let c=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function u(e){return c.test(e)}function l(e){return(0,t.execTyped)(c,e)}let d=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function f(e){return d.test(e)}function p(e){return(0,t.execTyped)(d,e)}let b=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(e){return b.test(e)}function m(e){return(0,t.execTyped)(b,e)}let y=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(e){return y.test(e)}function v(e){return(0,t.execTyped)(y,e)}let E=/^receive\(\) external payable$/;function w(e){return E.test(e)}let x=new Set(["indexed"]),P=new Set(["calldata","memory","storage"]);e.s(["eventModifiers",()=>x,"execConstructorSignature",()=>m,"execErrorSignature",()=>s,"execEventSignature",()=>o,"execFallbackSignature",()=>v,"execFunctionSignature",()=>l,"execStructSignature",()=>p,"functionModifiers",()=>P,"isConstructorSignature",()=>h,"isErrorSignature",()=>i,"isEventSignature",()=>a,"isFallbackSignature",()=>g,"isFunctionSignature",()=>u,"isReceiveSignature",()=>w,"isStructSignature",()=>f])},846567,e=>{"use strict";e.s(["version",()=>"1.0.8"])},332389,e=>{"use strict";var t=e.i(846567);
37class r extends Error{constructor(e,i={}){const s=i.cause instanceof r?i.cause.details:i.cause?.message?i.cause.message:i.details,n=i.cause instanceof r&&i.cause.docsPath||i.docsPath;super([e||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${t.version}`].join(` 38`)),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"}),i.cause&&(this.cause=i.cause),this.details=s,this.docsPath=n,this.metaMessages=i.metaMessages,this.shortMessage=e}}e.s(["BaseError",()=>r])},795544,e=>{"use strict";var t=e.i(332389);class r extends t.BaseError{constructor({signature:e}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}class i extends t.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class s extends t.BaseError{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}e.s(["InvalidAbiItemError",()=>r,"UnknownSolidityTypeError",()=>s,"UnknownTypeError",()=>i])},21413,e=>{"use strict";var t=e.i(332389);class r extends t.BaseError{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class i extends t.BaseError{constructor({param:e,name:t}){super("Invalid ABI parameter.",{details:e,metaMessages:[`"${t}" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SolidityProtectedKeywordError"})}}class s extends t.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"})}}class n extends t.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"})}}class a extends t.BaseError{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}e.s(["InvalidAbiTypeParameterError",()=>a,"InvalidFunctionModifierError",()=>n,"InvalidModifierError",()=>s,"InvalidParameterError",()=>r,"SolidityProtectedKeywordError",()=>i])},207429,e=>{"use strict";var t=e.i(332389);class r extends t.BaseError{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class i extends t.BaseError{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class s extends t.BaseError{constructor({signature:e}){super("Invalid struct signature.",{details:e,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}e.s(["InvalidSignatureError",()=>r,"InvalidStructSignatureError",()=>s,"UnknownSignatureError",()=>i])},810594,e=>{"use strict";var t=e.i(332389);class r extends t.BaseError{constructor({type:e}){super("Circular reference detected.",{metaMessages:[`Struct "${e}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}}e.s(["CircularReferenceError",()=>r])},19870,e=>{"use strict";var t=e.i(332389);class r extends t.BaseError{constructor({current:e,depth:t}){super("Unbalanced parentheses.",{metaMessages:[`"${e.trim()}" has too many ${t>0?"opening":"closing"} parentheses.`],details:`Depth "${t}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}e.s(["InvalidParenthesisError",()=>r])},403877,e=>{"use strict";function t(e,t,r){let i="";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}`:""}]`;i+=`(${e[0]}{${t}})`}return t?`${t}:${e}${i}`:e}let r=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}]]);e.s(["getParameterCacheKey",()=>t,"parameterCache",()=>r])},979595,e=>{"use strict";var t=e.i(913096),r=e.i(795544),i=e.i(21413),s=e.i(207429),n=e.i(19870),a=e.i(403877),o=e.i(304899);function c(e,t={}){if((0,o.isFunctionSignature)(e))return function(e,t={}){let r=(0,o.execFunctionSignature)(e);if(!r)throw new s.InvalidSignatureError({signature:e,type:"function"});let i=p(r.parameters),n=[],a=i.length;for(let e=0;e<a;e++)n.push(f(i[e],{modifiers:o.functionModifiers,structs:t,type:"function"}));let c=[];if(r.returns){let e=p(r.returns),i=e.length;for(let r=0;r<i;r++)c.push(f(e[r],{modifiers:o.functionModifiers,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:n,outputs:c}}(e,t);if((0,o.isEventSignature)(e))return function(e,t={}){let r=(0,o.execEventSignature)(e);if(!r)throw new s.InvalidSignatureError({signature:e,type:"event"});let i=p(r.parameters),n=[],a=i.length;for(let e=0;e<a;e++)n.push(f(i[e],{modifiers:o.eventModifiers,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:n}}(e,t);if((0,o.isErrorSignature)(e))return function(e,t={}){let r=(0,o.execErrorSignature)(e);if(!r)throw new s.InvalidSignatureError({signature:e,type:"error"});let i=p(r.parameters),n=[],a=i.length;for(let e=0;e<a;e++)n.push(f(i[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:n}}(e,t);if((0,o.isConstructorSignature)(e))return function(e,t={}){let r=(0,o.execConstructorSignature)(e);if(!r)throw new s.InvalidSignatureError({signature:e,type:"constructor"});let i=p(r.parameters),n=[],a=i.length;for(let e=0;e<a;e++)n.push(f(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:n}}(e,t);if((0,o.isFallbackSignature)(e)){var r=e;let t=(0,o.execFallbackSignature)(r);if(!t)throw new s.InvalidSignatureError({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if((0,o.isReceiveSignature)(e))return{type:"receive",stateMutability:"payable"};throw new s.UnknownSignatureError({signature:e})}let u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,l=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,d=/^u?int$/;function f(e,s){var n,c;let m=(0,a.getParameterCacheKey)(e,s?.type,s?.structs);if(a.parameterCache.has(m))return a.parameterCache.get(m);let y=t.isTupleRegex.test(e),g=(0,t.execTyped)(y?l:u,e);if(!g)throw new i.InvalidParameterError({param:e});if(g.name&&("address"===(n=g.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||t.bytesRegex.test(n)||t.integerRegex.test(n)||h.test(n)))throw new i.SolidityProtectedKeywordError({param:e,name:g.name});let v=g.name?{name:g.name}:{},E="indexed"===g.modifier?{indexed:!0}:{},w=s?.structs??{},x,P={};if(y){x="tuple";let e=p(g.type),t=[],r=e.length;for(let i=0;i<r;i++)t.push(f(e[i],{structs:w}));P={components:t}}else if(g.type in w)x="tuple",P={components:w[g.type]};else if(d.test(g.type))x=`${g.type}256`;else if(x=g.type,s?.type!=="struct"&&!b(x))throw new r.UnknownSolidityTypeError({type:x});if(g.modifier){if(!s?.modifiers?.has?.(g.modifier))throw new i.InvalidModifierError({param:e,type:s?.type,modifier:g.modifier});if(o.functionModifiers.has(g.modifier)&&(c=x,!g.array&&"bytes"!==c&&"string"!==c&&"tuple"!==c))throw new i.InvalidFunctionModifierError({param:e,type:s?.type,modifier:g.modifier})}let $={type:`${x}${g.array??""}`,...v,...E,...P};return a.parameterCache.set(m,$),$}function p(e,t=[],r="",i=0){let s=e.trim().length;for(let n=0;n<s;n++){let s=e[n],a=e.slice(n+1);switch(s){case",":return 0===i?p(a,[...t,r.trim()]):p(a,t,`${r}${s}`,i);case"(":return p(a,t,`${r}${s}`,i+1);case")":return p(a,t,`${r}${s}`,i-1);default:return p(a,t,`${r}${s}`,i)}}if(""===r)return t;if(0!==i)throw new n.InvalidParenthesisError({current:r,depth:i});return t.push(r.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||t.bytesRegex.test(e)||t.integerRegex.test(e)}let h=/^(?: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)$/;e.s(["isSolidityType",()=>b,"parseAbiParameter",()=>f,"parseSignature",()=>c])},935064,e=>{"use strict";var t=e.i(913096),r=e.i(795544),i=e.i(21413),s=e.i(207429),n=e.i(810594),a=e.i(304899),o=e.i(979595);function c(e){let c={},l=e.length;for(let t=0;t<l;t++){let r=e[t];
38if(!(0,a.isStructSignature)(r))continue;let i=(0,a.execStructSignature)(r);if(!i)throw new s.InvalidSignatureError({signature:r,type:"struct"});let n=i.properties.split(";"),u=[],l=n.length;for(let e=0;e<l;e++){let t=n[e].trim();if(!t)continue;let r=(0,o.parseAbiParameter)(t,{type:"struct"});u.push(r)}if(!u.length)throw new s.InvalidStructSignatureError({signature:r});c[i.name]=u}let d={},f=Object.entries(c),p=f.length;for(let e=0;e<p;e++){let[s,a]=f[e];d[s]=function e(s,a,c=new Set){let l=[],d=s.length;for(let f=0;f<d;f++){let d=s[f];if(t.isTupleRegex.test(d.type))l.push(d);else{let s=(0,t.execTyped)(u,d.type);if(!s?.type)throw new i.InvalidAbiTypeParameterError({abiParameter:d});let{array:f,type:p}=s;if(p in a){if(c.has(p))throw new n.CircularReferenceError({type:p});l.push({...d,type:`tuple${f??""}`,components:e(a[p]??[],a,new Set([...c,p]))})}else if((0,o.isSolidityType)(p))l.push(d);else throw new r.UnknownTypeError({type:p})}}return l}(a,c)}return d}let u=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;e.s(["parseStructs",()=>c])},13102,e=>{"use strict";var t=e.i(304899),r=e.i(935064),i=e.i(979595);function s(e){let s=(0,r.parseStructs)(e),n=[],a=e.length;for(let r=0;r<a;r++){let a=e[r];(0,t.isStructSignature)(a)||n.push((0,i.parseSignature)(a,s))}return n}e.s(["parseAbi",()=>s])},208689,e=>{"use strict";var t=e.i(430027),r=e.i(320604),i=e.i(535440),s=e.i(556211),n=e.i(873639),a=e.i(905717),o=e.i(240991),c=e.i(532036),u=e.i(948859),l=e.i(462663),d=e.i(370107),f=e.i(757420),p=e.i(433208),b=e.i(189801),h=e.i(652413),m=e.i(538302),y=e.i(10578),g=e.i(693577),v=e.i(558310),E=e.i(13102);async function w(i,u){let{account:d=i.account,authorizationList:f,batch:y=!!i.batch?.multicall,blockNumber:w,blockTag:P=i.experimental_blockTag??"latest",accessList:$,blobs:A,blockOverrides:B,code:I,data:S,factory:z,factoryData:T,gas:F,gasPrice:N,maxFeePerBlobGas:O,maxFeePerGas:M,maxPriorityFeePerGas:C,nonce:R,to:k,value:j,stateOverride:H,...L}=u,D=d?(0,r.parseAccount)(d):void 0;if(I&&(z||T))throw new a.BaseError("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(I&&k)throw new a.BaseError("Cannot provide both `code` & `to` as parameters.");let U=I&&S,G=z&&T&&k&&S,_=U||G,V=U?function(e){let{code:t,data:r}=e;return(0,l.encodeDeployData)({abi:(0,E.parseAbi)(["constructor(bytes, bytes)"]),bytecode:n.deploylessCallViaBytecodeBytecode,args:[t,r]})}({code:I,data:S}):G?function(e){let{data:t,factory:r,factoryData:i,to:s}=e;return(0,l.encodeDeployData)({abi:(0,E.parseAbi)(["constructor(address, bytes, address, bytes)"]),bytecode:n.deploylessCallViaFactoryBytecode,args:[s,t,r,i]})}({data:S,factory:z,factoryData:T,to:k}):S;try{let e;(0,v.assertRequest)(u);let r=("bigint"==typeof w?(0,p.numberToHex)(w):void 0)||P,n=B?(0,t.toRpc)(B):void 0,a=(0,g.serializeStateOverride)(H),c=i.chain?.formatters?.transactionRequest?.format,l=(c||m.formatTransactionRequest)({...(0,h.extract)(L,{format:c}),from:D?.address,accessList:$,authorizationList:f,blobs:A,data:V,gas:F,gasPrice:N,maxFeePerBlobGas:O,maxFeePerGas:M,maxPriorityFeePerGas:C,nonce:R,to:_?void 0:k,value:j});if(y&&function({request:e}){let{data:t,to:r,...i}=e;return!(!t||t.startsWith(s.aggregate3Signature)||!r||Object.values(i).filter(e=>"u">typeof e).length>0)}({request:l})&&!a&&!n)try{return await x(i,{...l,blockNumber:w,blockTag:P})}catch(e){if(!(e instanceof o.ClientChainNotConfiguredError)&&!(e instanceof o.ChainDoesNotSupportContract))throw e}let d=(e=[l,r],a&&n?[...e,a,n]:a?[...e,a]:n?[...e,{},n]:e),b=await i.request({method:"eth_call",params:d});return"0x"===b?{data:void 0}:{data:b}}catch(n){let t=function(e){if(!(e instanceof a.BaseError))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(n),{offchainLookup:r,offchainLookupSignature:s}=await e.A(210175);if(!1!==i.ccipRead&&t?.slice(0,10)===s&&k)return{data:await r(i,{data:t,to:k})};throw _&&t?.slice(0,10)==="0x101bb98d"?new c.CounterfactualDeploymentFailedError({factory:z}):(0,b.getCallError)(n,{...u,account:D,chain:i.chain})}}async function x(e,t){let{batchSize:r=1024,wait:s=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:n,blockTag:a=e.experimental_blockTag??"latest",data:l,multicallAddress:b,to:h}=t,m=b;if(!m){if(!e.chain)throw new o.ClientChainNotConfiguredError;m=(0,f.getChainContractAddress)({blockNumber:n,chain:e.chain,contract:"multicall3"})}let g=("bigint"==typeof n?(0,p.numberToHex)(n):void 0)||a,{schedule:v}=(0,y.createBatchScheduler)({id:`${e.uid}.${g}`,wait:s,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>
38({allowFailure:!0,callData:e.data,target:e.to})),s=(0,d.encodeFunctionData)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3"}),n=await e.request({method:"eth_call",params:[{data:s,to:m},g]});return(0,u.decodeFunctionResult)({abi:i.multicall3Abi,args:[r],functionName:"aggregate3",data:n||"0x"})}}),[{returnData:E,success:w}]=await v({data:l,to:h});if(!w)throw new c.RawContractError({data:E});return"0x"===E?{data:void 0}:{data:E}}e.s(["call",()=>w])},566423,e=>{"use strict";var t=e.i(337787),r=e.i(936568);function i(e,i){if(!(0,r.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});if(!(0,r.isAddress)(i,{strict:!1}))throw new t.InvalidAddressError({address:i});return e.toLowerCase()===i.toLowerCase()}e.s(["isAddressEqual",()=>i])}]); 39 40//# chunkId=01a0ab1d-2077-7341-a701-fe73a96cd844
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.