vendor: 4,328 bytes, line 1
1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2896],{1276:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(81742);class i extends r.C{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"})}}},2409:(e,t,n)=>{n.d(t,{BD:()=>i,D5:()=>r,Ge:()=>s});let r=/^(.*)\[([0-9]*)\]$/,i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^(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)?$/},3399:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>i});var r=n(54454);function i(e,{includeName:t=!1}={}){if("function"!==e.type&&"event"!==e.type&&"error"!==e.type)throw new r.d_(e.type);return`${e.name}(${s(e.inputs,{includeName:t})})`}function s(e,{includeName:t=!1}={}){return e?e.map(e=>(function(e,{includeName:t}){return e.type.startsWith("tuple")?`(${s(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")})(e,{includeName:t})).join(t?", ":","):""}},6488:(e,t,n)=>{n.d(t,{Zh:()=>b});var r=n(43663),i=n(96275),s=n(42182),o=n(43970),a=n(54454),u=n(1276),c=n(60783),d=n(81742);class l extends d.C{constructor({domain:e}){super(`Invalid domain "${(0,c.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class p extends d.C{constructor({primaryType:e,types:t}){super(`Invalid primary type \`${e}\` must be one of \`${JSON.stringify(Object.keys(t))}\`.`,{docsPath:"/api/glossary/Errors#typeddatainvalidprimarytypeerror",metaMessages:["Check that the primary type is a key in `types`."]})}}class f extends d.C{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var y=n(62525),m=n(50102),h=n(2409);function b(e){let{domain:t={},message:n,primaryType:r}=e,c={EIP712Domain:function({domain:e}){return["string"==typeof e?.name&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},("number"==typeof e?.chainId||"bigint"==typeof e?.chainId)&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}({domain:t}),...e.types},{domain:d,message:b,primaryType:v,types:$}={domain:t,message:n,primaryType:r,types:c},x=(e,t)=>{for(let n of e){let{name:e,type:r}=n,i=t[e],o=r.match(h.Ge);if(o&&("number"==typeof i||"bigint"==typeof i)){let[e,t,n]=o;(0,s.cK)(i,{signed:"int"===t,size:Number.parseInt(n,10)/8})}if("address"===r&&"string"==typeof i&&!(0,y.P)(i))throw new u.M({address:i});let c=r.match(h.BD);if(c){let[e,t]=c;if(t&&(0,m.E)(i)!==Number.parseInt(t,10))throw new a.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,m.E)(i)})}let d=$[r];d&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new f({type:e})}(r),x(d,i))}};if($.EIP712Domain&&d){if("object"!=typeof d)throw new l({domain:d});x($.EIP712Domain,d)}if("EIP712Domain"!==v)if($[v])x($[v],b);else throw new p({primaryType:v,types:$});let w=["0x1901"];return t&&w.push(function({domain:e,types:t}){return g({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:c})),"EIP712Domain"!==r&&w.push(g({data:n,primaryType:r,types:c})),(0,o.S)((0,i.xW)(w))}function g({data:e,primaryType:t,types:n}){let i=function e({data:t,primaryType:n,types:i}){let a=[{type:"bytes32"}],u=[function({primaryType:e,types:t}){let n=(0,s.nj)(function({primaryType:e,types:t}){let n="",r=function e({primaryType:t,types:n},r=new Set){let i=t.match(/^\w*/u),s=i?.[0];if(r.has(s)||void 0===n[s])return r;for(let t of(r.add(s),n[s]))e({primaryType:t.type,types:n},r);return r}({primaryType:e,types:t});for(let i of(r.delete(e),[e,...Array.from(r).sort()]))n+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return n}({primaryType:e,types:t}));return(0,o.S)(n)}({primaryType:n,types:i})];for(let c of i[n]){let[n,d]=function t({types:n,name:i,type:a,value:u}){if(void 0!==n[a])return[{type:"bytes32"},(0,o.S)(e({data:u,primaryType:a,types:n}))];if("bytes"===a)return[{type:"bytes32"},(0,o.S)(u)];if("string"===a)return[{type:"bytes32"},(0,o.S)((0,s.nj)(u))];if(a.lastIndexOf("]")===a.length-1){let e=a.slice(0,a.lastIndexOf("[")),s=u.map(r=>
vendor: 12,555 bytes, lines 1-21
1t({name:i,type:e,types:n,value:r}));return[{type:"bytes32"},(0,o.S)((0,r.h)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:a},u]}({types:i,name:c.name,type:c.type,value:t[c.name]});a.push(n),u.push(d)}return(0,r.h)(a,u)}({data:e,primaryType:t,types:n});return(0,o.S)(i)}},18032:(e,t,n)=>{n.d(t,{B:()=>i});var r=n(54456);function i(e){return"function"===e.type?`function ${e.name}(${(0,r.Q)(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${(0,r.Q)(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${(0,r.Q)(e.inputs)})`:"error"===e.type?`error ${e.name}(${(0,r.Q)(e.inputs)})`:"constructor"===e.type?`constructor(${(0,r.Q)(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}},19087:(e,t,n)=>{n.d(t,{h:()=>r});let r=n(80299).k},28491:(e,t,n)=>{n.d(t,{b:()=>d,o:()=>c});var r=n(1276),i=n(88076),s=n(43970),o=n(1771),a=n(62525);let u=new o.A(8192);function c(e,t){if(u.has(`${e}.${t}`))return u.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,s.S)((0,i.Af)(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&r[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return u.set(`${e}.${t}`,a),a}function d(e,t){if(!(0,a.P)(e,{strict:!1}))throw new r.M({address:e});return c(e,t)}},33359:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(89695),i=n(80299);let s=e=>(0,r.di)((0,i.k)(e),0,4)},43663:(e,t,n)=>{n.d(t,{h:()=>y,k:()=>h});var r=n(54454),i=n(1276),s=n(81742),o=n(91161),a=n(62525),u=n(96275),c=n(41240),d=n(50102),l=n(89695),p=n(42182),f=n(2409);function y(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});return m(function({params:e,values:t}){let n=[];for(let y=0;y<e.length;y++)n.push(function e({param:t,value:n}){let y=h(t.type);if(y){let[i,s]=y;return function(t,{length:n,param:i}){let s=null===n;if(!Array.isArray(t))throw new r.dm(t);if(!s&&t.length!==n)throw new r.Nc({expectedLength:n,givenLength:t.length,type:`${i.type}[${n}]`});let o=0===t.length&&function e(t){let{type:n}=t;if("string"===n||"bytes"===n||n.endsWith("[]"))return!0;if("tuple"===n)return t.components.some(e);let r=h(n);return!!r&&e({...t,type:r[1]})}(i),a=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(o=!0),a.push(r)}if(s||o){let e=m(a);if(s){let t=(0,p.cK)(a.length,{size:32});return{dynamic:!0,encoded:(0,u.aP)([t,e])}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.aP)(a.map(({encoded:e})=>e))}}(n,{length:i,param:{...t,type:s}})}if("tuple"===t.type)return function(t,{param:n}){let r=!1,i=[];for(let s=0;s<n.components.length;s++){let o=n.components[s],a=Array.isArray(t)?s:o.name,u=e({param:o,value:t[a]});i.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?m(i):(0,u.aP)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var b=n;if(!(0,a.P)(b))throw new i.M({address:b});return{dynamic:!1,encoded:(0,c.db)(b.toLowerCase())}}if("bool"===t.type){var g=n;if("boolean"!=typeof g)throw new s.C(`Invalid boolean value: "${g}" (type: ${typeof g}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:(0,c.db)((0,p.$P)(g))}}if(t.type.startsWith("uint")||t.type.startsWith("int")){let e=t.type.startsWith("int"),[,,r="256"]=f.Ge.exec(t.type)??[];return function(e,{signed:t,size:n=256}){if("number"==typeof n){let r=2n**(BigInt(n)-(t?1n:0n))-1n,i=t?-r-1n:0n;if(e>r||e<i)throw new o.Ty({max:r.toString(),min:i.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,p.cK)(e,{size:32,signed:t})}}(n,{signed:e,size:Number(r)})}if(t.type.startsWith("bytes"))return function(e,{param:t}){let[,n]=t.type.split("bytes"),i=(0,d.E)(e);if(!n){let t=e;return i%32!=0&&(t=(0,c.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.aP)([(0,c.db)((0,p.cK)(i,{size:32})),t])}}if(i!==Number.parseInt(n,10))throw new r.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,c.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var v=n;let e=(0,p.i3)(v),t=Math.ceil((0,d.E)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,c.db)((0,l.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.aP)([(0,c.db)((0,p.cK)((0,d.E)(e),{size:32})),...r])}}throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[y],value:t[y]}));return n}({params:e,values:t}))}function m(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,d.E)(i)}let n=[],r=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:o,encoded:a}=e[s];o?(n.push((0,p.cK)(t+i,{size:32})),r.push(a),i+=(0,d.E)(a)):n.push(a)}return(0,u.aP)([...n,...r])}function h(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},43970:(e,t,n)=>{n.d(t,{S:()=>a});var r=n(17641),i=n(13640),s=n(88076),o=n(42182);function a(e,t){let n=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,o.nj)(n)}},54454:(e,t,n)=>{n.d(t,{BI:()=>A,EB:()=>x,Iy:()=>u,Iz:()=>v,MR:()=>$,M_:()=>g,Nc:()=>d,O:()=>c,Wl:()=>k,Wq:()=>m,YE:()=>p,YF:()=>a,YW:()=>o,ZP:()=>f,_z:()=>h,d_:()=>P,dm:()=>M,fo:()=>E,gH:()=>l,j:()=>B,kE:()=>b,l3:()=>I,nK:()=>C,nM:()=>w,yy:()=>y});var r=n(3399),i=n(50102),s=n(81742);class o extends s.C{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 a extends s.C{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"})}}s.C;class u extends s.C{constructor({data:e,params:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${(0,r.A)(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 c extends s.C{constructor({cause:e}={}){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError",cause:e})}}class d extends s.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`ABI encoding array length mismatch for type ${n}. 2Expected length: ${e} 3Given length: ${t}`,{name:"AbiEncodingArrayLengthMismatchError"})}}class l extends s.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${(0,i.E)(t)}) does not match expected size (bytes${e}).`,{name:"AbiEncodingBytesSizeMismatchError"})}}class p extends s.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding params/values length mismatch. 4Expected length (params): ${e} 5Given length (values): ${t}`,{name:"AbiEncodingLengthMismatchError"})}}class f extends s.C{constructor(e,{docsPath:t}){super(`Arguments (\`args\`) were provided to "${e}", but "${e}" on the ABI does not contain any parameters (\`inputs\`). 6Cannot encode error result without knowing what the parameter types are. 7Make sure you are using the correct ABI and that the inputs exist on it.`,{docsPath:t,name:"AbiErrorInputsNotFoundError"})}}class y extends s.C{constructor(e,{docsPath:t}={}){super(`Error ${e?`"${e}" `:""}not found on ABI. 8Make sure you are using the correct ABI and that the error exists on it.`,{docsPath:t,name:"AbiErrorNotFoundError"})}}class m extends s.C{constructor(e,{docsPath:t,cause:n}){super(`Encoded error signature "${e}" not found on ABI. 9Make sure you are using the correct ABI and that the error exists on it. 10You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiErrorSignatureNotFoundError",cause:n}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class h extends s.C{constructor({docsPath:e}){super("Cannot extract event signature from empty topics.",{docsPath:e,name:"AbiEventSignatureEmptyTopicsError"})}}class b extends s.C{constructor(e,{docsPath:t}){super(`Encoded event signature "${e}" not found on ABI. 11Make sure you are using the correct ABI and that the event exists on it. 12You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiEventSignatureNotFoundError"})}}class g extends s.C{constructor(e,{docsPath:t}={}){super(`Event ${e?`"${e}" `:""}not found on ABI. 13Make sure you are using the correct ABI and that the event exists on it.`,{docsPath:t,name:"AbiEventNotFoundError"})}}class v extends s.C{constructor(e,{docsPath:t}={}){super(`Function ${e?`"${e}" `:""}not found on ABI. 14Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionNotFoundError"})}}class $ extends s.C{constructor(e,{docsPath:t}){super(`Function "${e}" does not contain any \`outputs\` on ABI. 15Cannot decode function result without knowing what the parameter types are. 16Make sure you are using the correct ABI and that the function exists on it.`,{docsPath:t,name:"AbiFunctionOutputsNotFoundError"})}}class x extends s.C{constructor(e,{docsPath:t}){super(`Encoded function signature "${e}" not found on ABI. 17Make sure you are using the correct ABI and that the function exists on it. 18You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class w extends s.C{constructor(e,t){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${e.type}\` in \`${(0,r.B)(e.abiItem)}\`, and`,`\`${t.type}\` in \`${(0,r.B)(t.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}}class A extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class E extends s.C{constructor({abiItem:e,data:t,params:n,size:i}){super(`Data size of ${i} bytes is too small for non-indexed event parameters.`,{metaMessages:[`Params: (${(0,r.A)(n,{includeName:!0})})`,`Data: ${t} (${i} 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=i}}class I extends s.C{constructor({abiItem:e,param:t}){super(`Expected a topic for indexed event parameter${t.name?` "${t.name}"`:""} on event "${(0,r.B)(e,{includeName:!0})}".`,{name:"DecodeLogTopicsMismatch"}),Object.defineProperty(this,"abiItem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class C extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid encoding type. 19Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiEncodingType"})}}class B extends s.C{constructor(e,{docsPath:t}){super(`Type "${e}" is not a valid decoding type. 20Please provide a valid ABI type.`,{docsPath:t,name:"InvalidAbiDecodingType"})}}class M extends s.C{constructor(e){super(`Value "${e}" is not a valid array.`,{name:"InvalidArrayError"})}}class P extends s.C{constructor(e){super(`"${e}" is not a valid definition type. 21Valid types: "function", "event", "error"`,{name:"InvalidDefinitionTypeError"})}}class k extends s.C{constructor(e){super(`Type "${e}" is not supported for packed encoding.`,{name:"UnsupportedPackedAbiType"})}}},54456:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(59802);let i=/^tuple(?<array>(\[(\d*)\])*)$/;function s(e){let t="",n=e.length;for(let s=0;s<n;s++)t+=function e(t){let n=t.type;if(i.test(t.type)&&"components"in t){n="(";let s=t.components.length;for(let r=0;r<s;r++)n+=e(t.components[r]),r<s-1&&(n+=", ");let o=(0,r.Yv)(i,t.type);return n+=`)${o?.array||""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
21 indexed`),t.name)?`${n} ${t.name}`:n}(e[s]),s!==n-1&&(t+=", ");return t}},59802:(e,t,n)=>{function r(e,t){let n=e.exec(t);return n?.groups}n.d(t,{BD:()=>i,Ge:()=>s,Yv:()=>r,wj:()=>o});let i=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,s=/^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)?$/,o=/^\(.+?\).*?$/},62525:(e,t,n)=>{n.d(t,{P:()=>a});var r=n(1771),i=n(28491);let s=/^0x[a-fA-F0-9]{40}$/,o=new r.A(8192);function a(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(o.has(r))return o.get(r);let a=!!s.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return o.set(r,a),a}},73424:(e,t,n)=>{n.d(t,{A:()=>a});var r=n(43970),i=n(96275),s=n(50102),o=n(42182);function a(e,t){return(0,r.S)(function(e){let t="string"==typeof e?(0,o.i3)(e):"string"==typeof e.raw?e.raw:(0,o.My)(e.raw),n=(0,o.i3)(`\x19Ethereum Signed Message: 22${(0,s.E)(t)}`);return(0,i.xW)([n,t])}(e),t)}},78288:(e,t,n)=>{n.d(t,{p:()=>d});var r=n(96275),i=n(43663),s=n(54454),o=n(33359),a=n(3399),u=n(97440);let c="/docs/contract/encodeFunctionData";function d(e){let{args:t}=e,{abi:n,functionName:d}=(()=>{if(1===e.abi.length&&e.functionName?.startsWith("0x"))return e;let{abi:t,args:n,functionName:r}=e,i=t[0];if(r){let e=(0,u.iY)({abi:t,args:n,name:r});if(!e)throw new s.Iz(r,{docsPath:c});i=e}if("function"!==i.type)throw new s.Iz(void 0,{docsPath:c});return{abi:[i],functionName:(0,o.V)((0,a.B)(i))}})(),l=n[0],p="inputs"in l&&l.inputs?(0,i.h)(l.inputs,t??[]):void 0;return(0,r.aP)([d,p??"0x"])}},80299:(e,t,n)=>{n.d(t,{k:()=>a});var r=n(88076),i=n(43970),s=n(18032),o=n(81742);function a(e){var t;return t=function(e){let t=!0,n="",r=0,i="",s=!1;for(let o=0;o<e.length;o++){let a=e[o];if(["(",")",","].includes(a)&&(t=!0),"("===a&&r++,")"===a&&r--,t){if(0===r){if(" "===a&&["event","function",""].includes(i))i="";else if(i+=a,")"===a){s=!0;break}continue}if(" "===a){","!==e[o-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=a,n+=a}}if(!s)throw new o.C("Unable to normalize signature.");return i}("string"==typeof e?e:(0,s.B)(e)),(0,i.S)((0,r.ZJ)(t))}},89695:(e,t,n)=>{n.d(t,{A1:()=>c,di:()=>o,iN:()=>d});var r=n(19748),i=n(13640),s=n(50102);function o(e,t,n,{strict:r}={}){return(0,i.q)(e,{strict:!1})?d(e,t,n,{strict:r}):c(e,t,n,{strict:r})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,s.E)(e)-1)throw new r.ii({offset:t,position:"start",size:(0,s.E)(e)})}function u(e,t,n){if("number"==typeof t&&"number"==typeof n&&(0,s.E)(e)!==n-t)throw new r.ii({offset:n,position:"end",size:(0,s.E)(e)})}function c(e,t,n,{strict:r}={}){a(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}function d(e,t,n,{strict:r}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}},96275:(e,t,n)=>{function r(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let n of e)t+=n.length;let n=new Uint8Array(t),r=0;for(let t of e)n.set(t,r),r+=t.length;return n}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}n.d(t,{aP:()=>i,xW:()=>r})},97440:(e,t,n)=>{n.d(t,{iY:()=>u});var r=n(54454),i=n(13640),s=n(62525),o=n(19087),a=n(33359);function u(e){let t,{abi:n,args:u=[],name:c}=e,d=(0,i.q)(c,{strict:!1}),l=n.filter(e=>d?"function"===e.type?(0,a.V)(e)===c:"event"===e.type&&(0,o.h)(e)===c:"name"in e&&e.name===c);if(0!==l.length){if(1===l.length)return l[0];for(let e of l){if("inputs"in e){if(!u||0===u.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===u.length&&u.every((t,n)=>{let r="inputs"in e&&e.inputs[n];return!!r&&function e(t,n){let r=typeof t,i=n.type;switch(i){case"address":return(0,s.P)(t,{strict:!1});case"bool":return"boolean"===r;case"function":case"string":return"string"===r;default:if("tuple"===i&&"components"in n)return Object.values(n.components).every((n,i)=>
vendor: 973 bytes, line 22
22"object"===r&&e(Object.values(t)[i],n));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(i))return"number"===r||"bigint"===r;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===r||t instanceof Uint8Array;if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...n,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,r)})){if(t&&"inputs"in t&&t.inputs){let n=function e(t,n,r){for(let i in t){let o=t[i],a=n[i];if("tuple"===o.type&&"tuple"===a.type&&"components"in o&&"components"in a)return e(o.components,a.components,r[i]);let u=[o.type,a.type];if(u.includes("address")&&u.includes("bytes20")||(u.includes("address")&&u.includes("string")||u.includes("address")&&u.includes("bytes"))&&(0,s.P)(r[i],{strict:!1}))return u}}(e.inputs,t.inputs,u);if(n)throw new r.nM({abiItem:e,type:n[0]},{abiItem:t,type:n[1]})}t=e}}}return t||l[0]}}}}]);
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.