1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="393b84b1-3f44-3e40-fba3-59ce1eeab55e")}catch(e){}}(); 2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,882469,e=>{"use strict";let t=BigInt(0x100000000-1),r=BigInt(32);e.s(["add",0,function(e,t,r,n){let o=(t>>>0)+(n>>>0);return{h:e+r+(o/0x100000000|0)|0,l:0|o}},"add3H",0,(e,t,r,n)=>t+r+n+(e/0x100000000|0)|0,"add3L",0,(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),"add4H",0,(e,t,r,n,o)=>t+r+n+o+(e/0x100000000|0)|0,"add4L",0,(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),"add5H",0,(e,t,r,n,o,i)=>t+r+n+o+i+(e/0x100000000|0)|0,"add5L",0,(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),"rotlBH",0,(e,t,r)=>t<<r-32|e>>>64-r,"rotlBL",0,(e,t,r)=>e<<r-32|t>>>64-r,"rotlSH",0,(e,t,r)=>e<<r|t>>>32-r,"rotlSL",0,(e,t,r)=>t<<r|e>>>32-r,"rotrBH",0,(e,t,r)=>e<<64-r|t>>>r-32,"rotrBL",0,(e,t,r)=>e>>>r-32|t<<64-r,"rotrSH",0,(e,t,r)=>e>>>r|t<<32-r,"rotrSL",0,(e,t,r)=>e<<32-r|t>>>r,"shrSH",0,(e,t,r)=>e>>>r,"shrSL",0,(e,t,r)=>e<<32-r|t>>>r,"split",0,function(e,n=!1){let o=e.length,i=new Uint32Array(o),s=new Uint32Array(o);for(let a=0;a<o;a++){let{h:o,l:u}=function(e,n=!1){return n?{h:Number(e&t),l:Number(e>>r&t)}:{h:0|Number(e>>r&t),l:0|Number(e&t)}}(e[a],n);[i[a],s[a]]=[o,u]}return[i,s]}])},944445,e=>{"use strict";let t="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function r(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name}function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function o(e,...t){if(!r(e))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}let i=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let r=0;r<e.length;r++){var t;e[r]=(t=e[r])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},s="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(e){return e>=48&&e<=57?e-48:e>=65&&e<=70?e-55:e>=97&&e<=102?e-87:void 0}function c(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}function l(e){return"string"==typeof e&&(e=c(e)),o(e),e}e.s(["Hash",0,class{},"abytes",0,o,"aexists",0,function(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")},"ahash",0,function(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");n(e.outputLen),n(e.blockLen)},"anumber",0,n,"aoutput",0,function(e,t){o(e);let r=t.outputLen;if(e.length<r)throw Error("digestInto() expects output buffer of length at least "+r)},"bytesToHex",0,function(e){if(o(e),s)return e.toHex();let t="";for(let r=0;r<e.length;r++)t+=a[e[r]];return t},"bytesToUtf8",0,function(e){return new TextDecoder().decode(e)},"clean",0,function(...e){for(let t=0;t<e.length;t++)e[t].fill(0)},"concatBytes",0,function(...e){let t=0;for(let r=0;r<e.length;r++){let n=e[r];o(n),t+=n.length}let r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let o=e[t];r.set(o,n),n+=o.length}return r},"createHasher",0,function(e){let t=t=>e().update(l(t)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t},"createView",0,function(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)},"createXOFer",0,function(e){let t=(t,r)=>e(r).update(l(t)).digest(),r=e({});return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=t=>e(t),t},"hexToBytes",0,function(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);if(s)return Uint8Array.fromHex(e);let t=e.length,r=t/2;if(t%2)throw Error("hex string expected, got unpadded hex of length "+t);let n=new Uint8Array(r);for(let t=0,o=0;t<r;t++,o+=2){let r=u(e.charCodeAt(o)),i=u(e.charCodeAt(o+1));if(void 0===r||void 0===i)throw Error('hex string expected, got non-hex character "'+(e[o]+e[o+1])+'" at index '+o);n[t]=16*r+i}return n},"isBytes",0,r,"randomBytes",0,function(e=32){if(t&&"function"==typeof t.getRandomValues)return t.getRandomValues(new Uint8Array(e));if(t&&"function"==typeof t.randomBytes)return Uint8Array.from(t.randomBytes(e));throw Error("crypto.getRandomValues must be defined")},"rotr",0,function(e,t){return e<<32-t|e>>>t},"swap32IfBE",0,i,"toBytes",0,l,"u32",0,function(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))},"utf8ToBytes",0,c],944445)},501787,e=>{"use strict";var t=e.i(318272);class r extends t.BaseError{constructor({address:e}){super(`Address "${e}
2" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}e.s(["InvalidAddressError",0,r])},554860,626014,e=>{"use strict";var t=e.i(882469),r=e.i(944445);let n=BigInt(0),o=BigInt(1),i=BigInt(2),s=BigInt(7),a=BigInt(256),u=BigInt(113),c=[],l=[],d=[];for(let e=0,t=o,r=1,h=0;e<24;e++){[r,h]=[h,(2*r+3*h)%5],c.push(2*(5*h+r)),l.push((e+1)*(e+2)/2%64);let p=n;for(let e=0;e<7;e++)(t=(t<<o^(t>>s)*u)%a)&i&&(p^=o<<(o<<BigInt(e))-o);d.push(p)}let h=(0,t.split)(d,!0),p=h[0],f=h[1],y=(e,r,n)=>n>32?(0,t.rotlBH)(e,r,n):(0,t.rotlSH)(e,r,n),g=(e,r,n)=>n>32?(0,t.rotlBL)(e,r,n):(0,t.rotlSL)(e,r,n);class m extends r.Hash{constructor(e,t,n,o=!1,i=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=n,this.enableXOF=o,this.rounds=i,(0,r.anumber)(n),!(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 n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[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,o=(t+2)%10,i=n[o],s=n[o+1],a=y(i,s,1)^n[r],u=g(i,s,1)^n[r+1];for(let r=0;r<50;r+=10)e[t+r]^=a,e[t+r+1]^=u}let t=e[2],o=e[3];for(let r=0;r<24;r++){let n=l[r],i=y(t,o,n),s=g(t,o,n),a=c[r];t=e[a],o=e[a+1],e[a]=i,e[a+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=p[r],e[1]^=f[r]}(0,r.clean)(n)}(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:n}=this,o=e.length;for(let r=0;r<o;){let i=Math.min(t-this.pos,o-r);for(let t=0;t<i;t++)n[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:n}=this;e[r]^=t,(128&t)!=0&&r===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,r.aexists)(this,!1),(0,r.abytes)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,o=e.length;r<o;){this.posOut>=n&&this.keccak();let i=Math.min(n-this.posOut,o-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}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:n,rounds:o,enableXOF:i}=this;return e||(e=new m(t,r,n,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=r,e.outputLen=n,e.enableXOF=i,e.destroyed=this.destroyed,e}}let b=(0,r.createHasher)(()=>new m(136,1,32));e.s(["keccak_256",0,b],626014);var A=e.i(832199),E=e.i(951082),x=e.i(402956);
2e.s(["keccak256",0,function(e,t){let r=b((0,A.isHex)(e,{strict:!1})?(0,E.toBytes)(e):e);return"bytes"===(t||"hex")?r:(0,x.toHex)(r)}],554860)},544577,e=>{"use strict";e.s(["isAddress",()=>i]);var t=e.i(244655),r=e.i(194742);let n=/^0x[a-fA-F0-9]{40}$/,o=new t.LruMap(8192);function i(e,t){let{strict:i=!0}=t??{},s=`${e}.${i}`;if(o.has(s))return o.get(s);let a=!!n.test(e)&&(e.toLowerCase()===e||!i||(0,r.checksumAddress)(e)===e);return o.set(s,a),a}},194742,e=>{"use strict";e.s(["checksumAddress",()=>a,"getAddress",()=>u]);var t=e.i(501787),r=e.i(951082),n=e.i(554860),o=e.i(244655),i=e.i(544577);let s=new o.LruMap(8192);function a(e,t){if(s.has(`${e}.${t}`))return s.get(`${e}.${t}`);let o=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,n.keccak256)((0,r.stringToBytes)(o),"bytes"),a=(t?o.substring(`${t}0x`.length):o).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&i[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let u=`0x${a.join("")}`;return s.set(`${e}.${t}`,u),u}function u(e,r){if(!(0,i.isAddress)(e,{strict:!1}))throw new t.InvalidAddressError({address:e});return a(e,r)}},72691,350258,e=>{"use strict";function t(e,{includeName:n=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new H(e.type);return`${e.name}(${r(e.inputs,{includeName:n})})`}function r(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${r(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}e.s(["AbiConstructorNotFoundError",()=>i,"AbiConstructorParamsNotFoundError",()=>s,"AbiDecodingDataSizeTooSmallError",()=>a,"AbiDecodingZeroDataError",()=>u,"AbiEncodingArrayLengthMismatchError",()=>c,"AbiEncodingBytesSizeMismatchError",()=>l,"AbiEncodingLengthMismatchError",()=>d,"AbiErrorInputsNotFoundError",()=>h,"AbiErrorNotFoundError",()=>p,"AbiErrorSignatureNotFoundError",()=>f,"AbiEventNotFoundError",()=>m,"AbiEventSignatureEmptyTopicsError",()=>y,"AbiEventSignatureNotFoundError",()=>g,"AbiFunctionNotFoundError",()=>b,"AbiFunctionOutputsNotFoundError",()=>A,"AbiFunctionSignatureNotFoundError",()=>E,"AbiItemAmbiguityError",()=>x,"BytesSizeMismatchError",()=>v,"DecodeLogDataMismatch",()=>w,"DecodeLogTopicsMismatch",()=>$,"InvalidAbiDecodingTypeError",()=>I,"InvalidAbiEncodingTypeError",()=>B,"InvalidArrayError",()=>k,"InvalidDefinitionTypeError",()=>H,"UnsupportedPackedAbiType",()=>L],72691),e.s(["formatAbiItem",()=>t,"formatAbiParams",()=>r],350258);var n=e.i(263880),o=e.i(318272);class i extends o.BaseError{constructor({docsPath:e}){super("A constructor was not found on the ABI.\nMake sure you are using the correct ABI and that the constructor exists on it.",{docsPath:e,name:"AbiConstructorNotFoundError"})}}class s extends o.BaseError{constructor({docsPath:e}){super("Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\nMake sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.",{docsPath:e,name:"AbiConstructorParamsNotFoundError"})}}o.BaseError;class a extends o.BaseError{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${r(t,{includeName:!0})})`,`Data: ${e} (${n} bytes)`],name:"AbiDecodingDataSizeTooSmallError"}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends o.BaseError{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class c extends o.BaseError{constructor({expectedLength:e,givenLength:t,type:r}){super(`ABI encoding array length mismatch for type ${r}. 3Expected length: ${e} 4Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class l extends o.BaseError{constructor({expectedSize:e,value:t}
4){super(`Size of bytes "${t}" (bytes${(0,n.size)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class d extends o.BaseError{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 5Expected length (params): ${e} 6Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class h extends o.BaseError{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 7Cannot encode error result without knowing what the parameter types are. 8Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class p extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 9Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class f extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded error signature "${e}" not found on ABI. 10Make sure you are using the correct ABI and that the error exists on it. 11You can look up the decoded signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class y extends o.BaseError{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class g extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 12Make sure you are using the correct ABI and that the event exists on it. 13You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class m extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 14Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class b extends o.BaseError{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 15Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class A extends o.BaseError{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 16Cannot decode function result without knowing what the parameter types are. 17Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class E extends o.BaseError{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 18Make sure you are using the correct ABI and that the function exists on it. 19You can look up the signature here: https://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class x extends o.BaseError{constructor(e,r){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${t(e.abiItem)}\`, and`,`\`${r.type}\` in \`${t(r.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class v extends o.BaseError{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class w extends o.BaseError{constructor({abiItem:e,data:t,params:n,size:o}){super(`Data size of ${o} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${r(n,{includeName:!0})})`,`Data: ${t} (${o} bytes)`],name:"DecodeLogDataMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"params",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"size",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=o}}class $ extends o.BaseError{constructor({abiItem:e,param:r}){super(`Expected a topic for indexed event parameter${r.name?` "${r.name}"`:""} on event "${t(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class B extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class I extends o.BaseError{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 21Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class k extends o.BaseError{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class H extends o.BaseError{constructor(e){super(`"${e}" is not a valid definition type. 22Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class L extends o.BaseError{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},151945,e=>{"use strict";var t=e.i(554868),r=e.i(832199),n=e.i(263880);function o(e,r){if("number"==typeof r&&r>0&&r>(0,n.size)(e)-1)throw new t.SliceOffsetOutOfBoundsError({offset:r,position:"start",size:(0,n.size)(e)})}function i(e,r,o){if("number"==typeof r&&"number"==typeof o&&(0,n.size)(e)!==o-r)throw new t.SliceOffsetOutOfBoundsError({offset:o,position:"end",size:(0,n.size)(e)})}function s(e,t,r,{strict:n}={}){o(e,t);let a=e.slice(t,r);return n&&i(a,t,r),a}function a(e,t,r,{strict:n}={}){o(e,t);let s=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return n&&i(s,t,r),s}e.s(["slice",0,function(e,t,n,{strict:o}={}){return(0,r.isHex)(e,{strict:!1})?a(e,t,n,{strict:o}):s(e,t,n,{strict:o})},"sliceBytes",0,s,"sliceHex",0,a])},518317,e=>{"use strict";function t(e){return`0x${e.reduce((e,t)=>
22e+t.replace("0x",""),"")}`}e.s(["concat",0,function(e){return"string"==typeof e[0]?t(e):function(e){let t=0;for(let r of e)t+=r.length;let r=new Uint8Array(t),n=0;for(let t of e)r.set(t,n),n+=t.length;return r}(e)},"concatHex",0,t])},596398,631813,e=>{"use strict";var t=e.i(72691),r=e.i(501787),n=e.i(318272),o=e.i(286208),i=e.i(544577),s=e.i(518317),a=e.i(242677),u=e.i(263880),c=e.i(151945),l=e.i(402956);let d=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/;e.s(["arrayRegex",0,/^(.*)\[([0-9]*)\]$/,"bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"integerRegex",0,d],631813);function h(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:o}=e[r];n?t+=32:t+=(0,u.size)(o)}let r=[],n=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:a}=e[i];s?(r.push((0,l.numberToHex)(t+o,{size:32})),n.push(a),o+=(0,u.size)(a)):r.push(a)}return(0,s.concat)([...r,...n])}function p(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}e.s(["encodeAbiParameters",0,function(e,f){if(e.length!==f.length)throw new t.AbiEncodingLengthMismatchError({expectedLength:e.length,givenLength:f.length});let y=h(function({params:e,values:f}){let y=[];for(let g=0;g<e.length;g++)y.push(function e({param:f,value:y}){let g=p(f.type);if(g){let[r,n]=g;return function(r,{length:n,param:o}){let i=null===n;if(!Array.isArray(r))throw new t.InvalidArrayError(r);if(!i&&r.length!==n)throw new t.AbiEncodingArrayLengthMismatchError({expectedLength:n,givenLength:r.length,type:`${o.type}[${n}]`});let a=!1,u=[];for(let t=0;t<r.length;t++){let n=e({param:o,value:r[t]});n.dynamic&&(a=!0),u.push(n)}if(i||a){let e=h(u);if(i){let t=(0,l.numberToHex)(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?(0,s.concat)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,s.concat)(u.map(({encoded:e})=>e))}}(y,{length:r,param:{...f,type:n}})}if("tuple"===f.type)return function(t,{param:r}){let n=!1,o=[];for(let i=0;i<r.components.length;i++){let s=r.components[i],a=Array.isArray(t)?i:s.name,u=e({param:s,value:t[a]});o.push(u),u.dynamic&&(n=!0)}return{dynamic:n,encoded:n?h(o):(0,s.concat)(o.map(({encoded:e})=>e))}}(y,{param:f});if("address"===f.type){var m=y;if(!(0,i.isAddress)(m))throw new r.InvalidAddressError({address:m});return{dynamic:!1,encoded:(0,a.padHex)(m.toLowerCase())}}if("bool"===f.type){var b=y;if("boolean"!=typeof b)throw new n.BaseError(`Invalid boolean value: "${b}" (type: ${typeof b}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,a.padHex)((0,l.boolToHex)(b))}}if(f.type.startsWith("uint")||f.type.startsWith("int")){let e=f.type.startsWith("int"),[,,t="256"]=d.exec(f.type)??[];return function(e,{signed:t,size:r=256}){if("number"==typeof r){let n=2n**(BigInt(r)-(t?1n:0n))-1n,i=t?-n-1n:0n;if(e>n||e<i)throw new o.IntegerOutOfRangeError({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:(0,l.numberToHex)(e,{size:32,signed:t})}}(y,{signed:e,size:Number(t)})}if(f.type.startsWith("bytes"))return function(e,{param:r}){let[,n]=r.type.split("bytes"),o=(0,u.size)(e);if(!n){let t=e;return o%32!=0&&(t=(0,a.padHex)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,l.numberToHex)(o,{size:32})),t])}}if(o!==Number.parseInt(n,10))throw new t.AbiEncodingBytesSizeMismatchError({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,a.padHex)(e,{dir:"right"})}}(y,{param:f});if("string"===f.type){var A=y;let e=(0,l.stringToHex)(A),t=Math.ceil((0,u.size)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,a.padHex)((0,c.slice)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,s.concat)([(0,a.padHex)((0,l.numberToHex)((0,u.size)(e),{size:32})),...r])}}throw new t.InvalidAbiEncodingTypeError(f.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[g],value:f[g]}));return y}({params:e,values:f}));return 0===y.length?"0x":y},"getArrayComponents",0,p],596398)},500609,e=>{"use strict";var t=e.i(951082),r=e.i(554860);e.s(["hashSignature",0,function(e){return(0,r.keccak256)((0,t.toBytes)(e))}])},882148,e=>{"use strict";e.s(["bytesRegex",0,/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,"execTyped",0,function(e,t){let r=e.exec(t);return r?.groups},"integerRegex",0,/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,"isTupleRegex",0,/^\(.+?\).*?$/])},480166,102737,115218,e=>{"use strict";var t=e.i(500609),r=e.i(882148);let n=/^tuple(?<array>(\[(\d*)\])*)$/;function o(e){let t="",o=e.length;for(let i=0;i<o;i++)t+=function e(t){let o=t.type;if(n.test(t.type)&&"components"in t){o="(";let i=t.components.length;for(let r=0;r<i;r++)o+=e(t.components[r]),r<i-1&&(o+=", ");let s=(0,r.execTyped)(n,t.type);return o+=`)${s?.array||""}`,e({...t,type:o})}return("indexed"in t&&t.indexed&&(o=`${o}
22 indexed`),t.name)?`${o} ${t.name}`:o}(e[i]),i!==o-1&&(t+=", ");return t}function i(e){return"function"===e.type?`function ${e.name}(${o(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${o(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${o(e.inputs)})`:"error"===e.type?`error ${e.name}(${o(e.inputs)})`:"constructor"===e.type?`constructor(${o(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}e.s(["formatAbiParameters",0,o],102737),e.s(["formatAbiItem",0,i],115218);var s=e.i(318272);e.s(["toSignatureHash",0,function(e){return(0,t.hashSignature)(function(e){let t=!0,r="",n=0,o="",i=!1;for(let s=0;s<e.length;s++){let a=e[s];if(["(",")",","].includes(a)&&(t=!0),"("===a&&n++,")"===a&&n--,t){if(0===n){if(" "===a&&["event","function",""].includes(o))o="";else if(o+=a,")"===a){i=!0;break}continue}if(" "===a){","!==e[s-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}o+=a,r+=a}}if(!i)throw new s.BaseError("Unable to normalize signature.");return o}
22("string"==typeof e?e:i(e)))}],480166)},674796,e=>{"use strict";let t=e.i(480166).toSignatureHash;e.s(["toEventSelector",0,t])},395878,e=>{"use strict";var t=e.i(151945),r=e.i(480166);e.s(["toFunctionSelector",0,e=>(0,t.slice)((0,r.toSignatureHash)(e),0,4)])},463366,118922,e=>{"use strict";var t=e.i(518317),r=e.i(596398),n=e.i(72691),o=e.i(395878),i=e.i(350258),s=e.i(832199),a=e.i(544577),u=e.i(674796);function c(e){let t,{abi:r,args:i=[],name:c}=e,l=(0,s.isHex)(c,{strict:!1}),d=r.filter(e=>l?"function"===e.type?(0,o.toFunctionSelector)(e)===c:"event"===e.type&&(0,u.toEventSelector)(e)===c:"name"in e&&e.name===c);if(0!==d.length){if(1===d.length)return d[0];for(let e of d){if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===i.length&&i.every((t,r)=>{let n="inputs"in e&&e.inputs[r];return!!n&&function e(t,r){let n=typeof t,o=r.type;switch(o){case"address":return(0,a.isAddress)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===o&&"components"in r)return Object.values(r.components).every((r,n)=>e(Object.values(t)[n],r));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(o))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(o))return"string"===n||t instanceof Uint8Array;
22if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(o))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:o.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let r=function e(t,r,n){for(let o in t){let i=t[o],s=r[o];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,n[o]);let u=[i.type,s.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,a.isAddress)(n[o],{strict:!1}))return u}}(e.inputs,t.inputs,i);if(r)throw new n.AbiItemAmbiguityError({abiItem:e,type:r[0]},{abiItem:t,type:r[1]})}t=e}}}return t||d[0]}}e.s(["getAbiItem",0,c],118922);let l="/docs/contract/encodeFunctionData";e.s(["encodeFunctionData",0,function(e){let{args:s}=e,{abi:a,functionName:u}=1===e.abi.length&&e.functionName?.startsWith("0x")?e:function(e){let{abi:t,args:r,functionName:s}=e,a=t[0];if(s){let e=c({abi:t,args:r,name:s});if(!e)throw new n.AbiFunctionNotFoundError(s,{docsPath:l});a=e}if("function"!==a.type)throw new n.AbiFunctionNotFoundError(void 0,{docsPath:l});return{abi:[a],functionName:(0,o.toFunctionSelector)((0,i.formatAbiItem)(a))}}(e),d=a[0],h="inputs"in d&&d.inputs?(0,r.encodeAbiParameters)(d.inputs,s??[]):void 0;return(0,t.concatHex)([u,h??"0x"])}],463366)}]); 23 24//# debugId=393b84b1-3f44-3e40-fba3-59ce1eeab55e 25//# sourceMappingURL=0h862wvsdr8_w.js.map
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.