PageSourceSearch

https://bakarts.io/_next/static/chunks/81647-df857c8a4924a53c.js

js bakarts.io collected 2026-10-07 11:18:47 UTC 60,911 bytes, 21 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[81647],{94:(e,t,n)=>{n.d(t,{r:()=>r});async function r(e){return"function"==typeof e?await e():e}},7135:(e,t,n)=>{n.d(t,{e:()=>d});var r=n(80431),i=n(77692),s=n(46618),a=n(88647),o=n(67157);class u extends o.C{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"})}}var l=n(14783),c=n(97899);function d(e){let t={},n=e.length;for(let r=0;r<n;r++){let n=e[r];if(!(0,l.WL)(n))continue;let i=(0,l.FO)(n);if(!i)throw new a.s7({signature:n,type:"struct"});let s=i.properties.split(";"),o=[],u=s.length;for(let e=0;e<u;e++){let t=s[e].trim();if(!t)continue;let n=(0,c.Pj)(t,{type:"struct"});o.push(n)}if(!o.length)throw new a.X9({signature:n});t[i.name]=o}let o={},d=Object.entries(t),f=d.length;for(let e=0;e<f;e++){let[n,a]=d[e];o[n]=function e(t,n,a=new Set){let o=[],l=t.length;for(let d=0;d<l;d++){let l=t[d];if(r.wj.test(l.type))o.push(l);else{let t=(0,r.Yv)(p,l.type);if(!t?.type)throw new s.nx({abiParameter:l});let{array:d,type:f}=t;if(f in n){if(a.has(f))throw new u({type:f});o.push({...l,type:`tuple${d??""}`,components:e(n[f]??[],n,new Set([...a,f]))})}else if((0,c._o)(f))o.push(l);else throw new i.zz({type:f})}}return o}(a,t)}return o}let p=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/},7437:(e,t,n)=>{n.d(t,{B:()=>i});var r=n(25475);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"}},8121:(e,t,n)=>{n.d(t,{encode:()=>i});let r=new WeakMap;async function i(e){if(r.has(e))return r.get(e);let t=(async()=>{let[t,r,{concatHex:i}]=await Promise.all([s(e),a(e),n.e(3348).then(n.bind(n,3348))]);return r?i([t,r]):t})();return r.set(e,t),t}async function s(e){if(void 0===e.data)return"0x";if("function"==typeof e.data){let t=await e.data();return t||"0x"}return e.data}async function a(e){if(e.extraCallData){if("function"==typeof e.extraCallData){let t=await e.extraCallData();if(!t)return;if(!t.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");if("0x"===t)return;return t}if(!e.extraCallData.startsWith("0x"))throw Error("Invalid extra calldata - must be a hex string");return e.extraCallData}}},8512:(e,t,n)=>{let r,i,s;n.d(t,{lY:()=>P});var a=n(48701),o=n(19989);let u=BigInt(0),l=BigInt(1),c=BigInt(2),d=BigInt(7),p=BigInt(256),f=BigInt(113),h=[],y=[],m=[];for(let e=0,t=l,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],h.push(2*(5*r+n)),y.push((e+1)*(e+2)/2%64);let i=u;for(let e=0;e<7;e++)(t=(t<<l^(t>>d)*f)%p)&c&&(i^=l<<(l<<BigInt(e))-l);m.push(i)}let b=(0,a.lD)(m,!0),g=b[0],v=b[1],w=(e,t,n)=>n>32?(0,a.WM)(e,t,n):(0,a.P5)(e,t,n),x=(e,t,n)=>n>32?(0,a.im)(e,t,n):(0,a.B4)(e,t,n);class $ extends o.Vw{constructor(e,t,n,r=!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=r,this.rounds=i,(0,o.Fe)(n),!(0<e&&e<200))throw Error("only keccak-f1600 function is supported");this.state=new Uint8Array(200),this.state32=(0,o.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,o.fd)(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,i=(t+2)%10,s=n[i],a=n[i+1],o=w(s,a,1)^n[r],u=x(s,a,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=o,e[t+n+1]^=u}let t=e[2],i=e[3];for(let n=0;n<24;n++){let r=y[n],s=w(t,i,r),a=x(t,i,r),o=h[n];t=e[o],i=e[o+1],e[o]=s,e[o+1]=a}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]^=g[r],e[1]^=v[r]}(0,o.uH)(n)}(this.state32,this.rounds),(0,o.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,o.CC)(this),e=(0,o.ZJ)(e),(0,o.DO)(e);let{blockLen:t,state:n}=this,r=e.length;for(let i=0;i<r;){let s=Math.min(t-this.pos,r-i);for(let t=0;t<s;t++)n[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,(128&t)!=0&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,o.CC)(this,!1),(0,o.DO)(e),this.finish();let t=this.state,{blockLen:n}=this;for(let r=0,i=e.length;r<i;){this.posOut>=n&&this.keccak();let s=Math.min(n-this.posOut,i-r);e.set(t.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,o.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,o.Ht)(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,o.uH)(this.state)}_cloneInto(e){let{blockLen:t,suffix:n,outputLen:r,rounds:i,enableXOF:s}=this;return e||(e=new $(t,n,r,s,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=n,e.outputLen=r,e.enableXOF=s,e.destroyed=this.destroyed,e}}let P=(r=1,i=136,s=32,(0,o.qj)(()=>new $(136,1,32)))},11213:(e,t,n)=>{n.r(t),n.d(t,{getDefaultGasOverrides:()=>y,getGasOverridesForTransaction:()=>h});var r=n(17327),i=n(23471);async function s(e,t){let n=t.blockTag??"latest",s=t.includeTransactions??!1,a=void 0!==t.blockNumber?(0,i.cK)(t.blockNumber):void 0,o=await e({method:"eth_getBlockByNumber",params:[a||n,s]});if(!o)throw Error("Block not found");return(0,r.$)(o)}async function a(e){let t=await e({method:"eth_maxPriorityFeePerGas"});return(0,i.uU)(t)}var o=n(92942),u=n(94),l=n(19131);async function c(e){let t=await e({method:"eth_gasPrice"});return(0,i.uU)(t)}async function d(e){let{client:t,chain:n,percentMultiplier:r}=e,i=(0,o.getRpcClient)({chain:n,client:t}
1),s=await c(i),a=r?s/BigInt(100)*BigInt(r):0n;return s+a}var p=n(41863);let f=[78600,2040,248,9372,841,842,2016,9768,2442,0x73cfd175,0x7467cbf8,0x3b4c8eb9,19011,40875,0x5a1a42b1,5464,2020,2021,98866,0x547c40be];async function h(e){let[t,n,r,i]=await Promise.all([(0,u.r)(e.maxFeePerGas),(0,u.r)(e.maxPriorityFeePerGas),(0,u.r)(e.gasPrice),(0,u.r)(e.type)]);if(void 0!==t&&void 0!==n)return{maxFeePerGas:t,maxPriorityFeePerGas:n};if("bigint"==typeof r)return{gasPrice:r};let s=await y(e.client,e.chain,"legacy"===i?"legacy":"eip1559");return e.chain.experimental?.increaseZeroByteCount?s.gasPrice?{gasPrice:(0,p.d)(s.gasPrice)}:{maxFeePerGas:t??(0,p.d)(s.maxFeePerGas??0n),maxPriorityFeePerGas:n??(0,p.d)(s.maxPriorityFeePerGas??0n)}:void 0!==s.gasPrice?s:{maxFeePerGas:t??s.maxFeePerGas,maxPriorityFeePerGas:n??s.maxPriorityFeePerGas}}async function y(e,t,n){if("legacy"===(n??t.feeType)||f.includes(t.id))return{gasPrice:await d({chain:t,client:e,percentMultiplier:10})};let r=await m(e,t);return null!==r.maxFeePerGas&&null!==r.maxPriorityFeePerGas?{maxFeePerGas:r.maxFeePerGas,maxPriorityFeePerGas:r.maxPriorityFeePerGas}:{gasPrice:await d({chain:t,client:e,percentMultiplier:10})}}async function m(e,t,n=10){let r=null,i=null,u=(0,o.getRpcClient)({chain:t,client:e}),[l,c]=await Promise.all([s(u,{blockTag:"latest"}),a(u).catch(()=>null)]),d=l?.baseFeePerGas,p=t.id;return 220===p||1220===p||(80002===p||137===p?i=await b(p):null!==c&&(i=c),null==i||null==d)?{maxFeePerGas:null,maxPriorityFeePerGas:null}:(r=2n*d+(i=function(e,t=10){let n=e/BigInt(100)*BigInt(t);return e+n}(i,n)),(42220===p||44787===p||62320===p)&&(i=r),{maxFeePerGas:r,maxPriorityFeePerGas:i})}async function b(e){let t=function(e){switch(e){case 137:return"https://gasstation.polygon.technology/v2";case 80002:return"https://gasstation.polygon.technology/amoy"}}(e);try{let e=(await (await fetch(t)).json()).fast.maxPriorityFee;if(e>0){let t=Number.parseFloat(e).toFixed(9);return(0,l.J1)(t,9)}}catch(e){console.error("failed to fetch gas",e)}return 31n}},13423:(e,t,n)=>{n.d(t,{h:()=>h,k:()=>m});var r=n(99702),i=n(36444),s=n(7441),a=n(94201),o=n(81757),u=n(79731),l=n(36984),c=n(87094),d=n(93727),p=n(67622),f=n(38697);function h(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});let n=y(function({params:e,values:t}){let n=[];for(let h=0;h<e.length;h++)n.push(function e({param:t,value:n}){let h=m(t.type);if(h){let[i,s]=h;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 a=!1,o=[];for(let n=0;n<t.length;n++){let r=e({param:i,value:t[n]});r.dynamic&&(a=!0),o.push(r)}if(s||a){let e=y(o);if(s){let t=(0,p.cK)(o.length,{size:32});return{dynamic:!0,encoded:o.length>0?(0,u.xW)([t,e]):t}}if(a)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,u.xW)(o.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 a=n.components[s],o=Array.isArray(t)?s:a.name,u=e({param:a,value:t[o]});i.push(u),u.dynamic&&(r=!0)}return{dynamic:r,encoded:r?y(i):(0,u.xW)(i.map(({encoded:e})=>e))}}(n,{param:t});if("address"===t.type){var b=n;if(!(0,o.P)(b))throw new i.M({address:b});return{dynamic:!1,encoded:(0,l.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,l.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 a.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,c.E)(e);if(!n){let t=e;return i%32!=0&&(t=(0,l.db)(t,{dir:"right",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,u.xW)([(0,l.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,l.db)(e,{dir:"right"})}}(n,{param:t});if("string"===t.type){var v=n;let e=(0,p.i3)(v),t=Math.ceil((0,c.E)(e)/32),r=[];for(let n=0;n<t;n++)r.push((0,l.db)((0,d.di)(e,32*n,(n+1)*32),{dir:"right"}));return{dynamic:!0,encoded:(0,u.xW)([(0,l.db)((0,p.cK)((0,c.E)(e),{size:32})),...r])}}throw new r.nK(t.type,{docsPath:"/docs/contract/encodeAbiParameters"})}({param:e[h],value:t[h]}));return n}({params:e,values:t}));return 0===n.length?"0x":n}function y(e){let t=0;for(let n=0;n<e.length;n++){let{dynamic:r,encoded:i}=e[n];r?t+=32:t+=(0,c.E)(i)}let n=[],r=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:a,encoded:o}=e[s];a?(n.push((0,p.cK)(t+i,{size:32})),r.push(o),i+=(0,c.E)(o)):n.push(o)}return(0,u.xW)([...n,...r])}function m(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}}
1,14783:(e,t,n)=>{n.d(t,{FO:()=>y,If:()=>x,Ji:()=>d,Rv:()=>u,WL:()=>h,Yo:()=>g,ej:()=>p,fC:()=>I,iB:()=>l,kz:()=>a,l9:()=>b,pc:()=>s,sP:()=>P,v7:()=>A,v8:()=>w});var r=n(80431);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(e){return i.test(e)}function a(e){return(0,r.Yv)(i,e)}let o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function u(e){return o.test(e)}function l(e){return(0,r.Yv)(o,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 d(e){return c.test(e)}function p(e){return(0,r.Yv)(c,e)}let f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function h(e){return f.test(e)}function y(e){return(0,r.Yv)(f,e)}let m=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function b(e){return m.test(e)}function g(e){return(0,r.Yv)(m,e)}let v=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function w(e){return v.test(e)}function x(e){return(0,r.Yv)(v,e)}let $=/^receive\(\) external payable$/;function P(e){return $.test(e)}let I=new Set(["indexed"]),A=new Set(["calldata","memory","storage"])},17327:(e,t,n)=>{n.d(t,{$:()=>s,R:()=>a});var r=n(33572),i=n(12914);function s(e,t){let n=(e.transactions??[]).map(e=>"string"==typeof e?e:(0,i.uP)(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let a=(0,r.q)("block",s)},19131:(e,t,n)=>{function r(e,t){e.includes("e")&&(e=Number(e).toFixed(t));let[n,r=""]=e.split("."),i=n.startsWith("-")?"-":"";if(i&&(n=n.slice(1)),r=r.padEnd(t,"0"),0===t)r[0]&&Number.parseInt(r[0])>=5&&(n=(BigInt(n)+1n).toString()),r="";else if(r.length>t){let e=r[t];e&&Number.parseInt(e,10)>=5?(r=(BigInt(r.substring(0,t))+1n).toString().padStart(t,"0")).length>t&&(n=(BigInt(n)+1n).toString(),r=r.substring(r.length-t)):r=r.substring(0,t)}return BigInt(`${i}${n}${r}`)}function i(e){return r(e,18)}n.d(t,{J1:()=>r,fq:()=>i})}
1,19989:(e,t,n)=>{n.d(t,{Vw:()=>w,DO:()=>s,CC:()=>o,sd:()=>a,Fe:()=>i,Ht:()=>u,My:()=>m,uH:()=>c,Id:()=>v,qj:()=>x,O8:()=>d,po:()=>$,Ow:()=>p,fd:()=>f,ZJ:()=>g,DH:()=>l});let r="object"==typeof globalThis&&"crypto"in globalThis?globalThis.crypto:void 0;function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error("positive integer expected, got "+e)}function s(e,...t){if(!(e instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error("Uint8Array expected of length "+t+", got length="+e.length)}function a(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.createHasher");i(e.outputLen),i(e.blockLen)}function o(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")}function u(e,t){s(e);let n=t.outputLen;if(e.length<n)throw Error("digestInto() expects output buffer of length at least "+n)}function l(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function c(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function d(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function p(e,t){return e<<32-t|e>>>t}let f=68===new Uint8Array(new Uint32Array([0x11223344]).buffer)[0]?e=>e:function(e){for(let n=0;n<e.length;n++){var t;e[n]=(t=e[n])<<24&0xff000000|t<<8&0xff0000|t>>>8&65280|t>>>24&255}return e},h="function"==typeof Uint8Array.from([]).toHex&&"function"==typeof Uint8Array.fromHex,y=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function m(e){if(s(e),h)return e.toHex();let t="";for(let n=0;n<e.length;n++)t+=y[e[n]];return t}let b={_0:48,_9:57,A:65,F:70,a:97,f:102};function g(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error("string expected");return new Uint8Array(new TextEncoder().encode(e))}(e)),s(e),e}function v(...e){let t=0;for(let n=0;n<e.length;n++){let r=e[n];s(r),t+=r.length}let n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){let i=e[t];n.set(i,r),r+=i.length}return n}class w{}function x(e){let t=t=>e().update(g(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function $(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw Error("crypto.getRandomValues must be defined")}},21135:(e,t,n)=>{n.d(t,{V:()=>s});var r=n(93727),i=n(68629);let s=e=>(0,r.di)((0,i.k)(e),0,4)},21159:(e,t,n)=>{n.d(t,{A:()=>s,B:()=>i});var r=n(99702);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?", ":","):""}},22732:(e,t,n)=>{n.d(t,{x:()=>r});function r(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},24578:(e,t,n)=>{n.d(t,{S:()=>o});var r=n(8512),i=n(32840),s=n(80844),a=n(67622);function o(e,t){let n=(0,r.lY)((0,i.q)(e,{strict:!1})?(0,s.ZJ)(e):e);return"bytes"===(t||"hex")?n:(0,a.nj)(n)}},25475:(e,t,n)=>{n.d(t,{Q:()=>s});var r=n(31461);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 a=(0,r.Yv)(i,t.type);return n+=`)${a?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
1 indexed`),t.name)?`${n} ${t.name}`:n}(e[s]),s!==n-1&&(t+=", ");return t}},29995:(e,t,n)=>{n.d(t,{J9:()=>s,Mc:()=>i,fD:()=>r});let r={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."},i={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},s={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"}},31461:(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:()=>a});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)?$/,a=/^\(.+?\).*?$/},35883:(e,t,n)=>{n.d(t,{b:()=>c,o:()=>l});var r=n(36444),i=n(80844),s=n(24578),a=n(65003),o=n(81757);let u=new a.A(8192);function l(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"),a=(t?n.substring(`${t}0x`.length):n).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&a[e]&&(a[e]=a[e].toUpperCase()),(15&r[e>>1])>=8&&a[e+1]&&(a[e+1]=a[e+1].toUpperCase());let o=`0x${a.join("")}`;return u.set(`${e}.${t}`,o),o}function c(e,t){if(!(0,o.P)(e,{strict:!1}))throw new r.M({address:e});return l(e,t)}},36444:(e,t,n)=>{n.d(t,{M:()=>i});var r=n(7441);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"})}}},37154:(e,t,n)=>{n.d(t,{A:()=>s,s:()=>a});var r=n(25955);let i=new Map;async function s(e){let t=(0,r.O)(),n=e.getAll("file");if(!n)throw Error("No file found in FormData");return Promise.all(n.map(async e=>{let n,r=await e.text();try{n=JSON.parse(r)}catch{throw Error("File contents must be valid JSON")}let s="name"in e&&e.name?e.name.replace("files/",""):"",a=`${t}${s?`/${s}`:""}`;return i.set(a,n),`ipfs://${a}`}))}function a(e){return i.get(e)}},38697:(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)?$/},41863:(e,t,n)=>{n.d(t,{d:()=>r});function r(e){if(0n===e||(e&e-1n)===0n)return e;let t=1n;for(;e>0n;)e>>=1n,t<<=1n;return t}},43935:(e,t,n)=>{n.d(t,{n:()=>y});var r=n(99702),i=n(35883),s=n(87456),a=n(87094),o=n(93727),u=n(54335),l=n(94201),c=n(27493),d=n(67622);function p(e,t={}){void 0!==t.size&&(0,c.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,c.ME)(n,t)}var f=n(80844),h=n(13423);function y(e,t){let n="string"==typeof t?(0,f.aT)(t):t,y=(0,s.l)(n);if(0===(0,a.E)(n)&&e.length>0)throw new r.O;if((0,a.E)(t)&&32>(0,a.E)(t))throw new r.Iy({data:"string"==typeof t?t:(0,d.My)(t),params:e,size:(0,a.E)(t)});let b=0,g=[];for(let t=0;t<e.length;++t){let n=e[t];y.setPosition(b);let[s,a]=function e(t,n,{staticPosition:s}){let a=(0,h.k)(n.type);if(a){let[r,i]=a;return function(t,n,{length:r,staticPosition:i}){if(!r){let r=i+p(t.readBytes(32)),s=r+32;t.setPosition(r);let a=p(t.readBytes(32)),o=m(n),u=0,l=[];for(let r=0;r<a;++r){t.setPosition(s+(o?32*r:u));let[i,a]=e(t,n,{staticPosition:s});u+=a,l.push(i)}return t.setPosition(i+32),[l,32]}if(m(n)){let s=i+p(t.readBytes(32)),a=[];for(let i=0;i<r;++i){t.setPosition(s+32*i);let[r]=e(t,n,{staticPosition:s});a.push(r)}return t.setPosition(i+32),[a,32]}let s=0,a=[];for(let o=0;o<r;++o){let[r,o]=e(t,n,{staticPosition:i+s});s+=o,a.push(r)}return[a,s]}(t,{...n,type:i},{length:r,staticPosition:s})}if("tuple"===n.type)return function(t,n,{staticPosition:r}
vendor: 4,679 bytes, line 1
1){let i=0===n.components.length||n.components.some(({name:e})=>!e),s=i?[]:{},a=0;if(m(n)){let o=r+p(t.readBytes(32));for(let r=0;r<n.components.length;++r){let u=n.components[r];t.setPosition(o+a);let[l,c]=e(t,u,{staticPosition:o});a+=c,s[i?r:u?.name]=l}return t.setPosition(r+32),[s,32]}for(let o=0;o<n.components.length;++o){let u=n.components[o],[l,c]=e(t,u,{staticPosition:r});s[i?o:u?.name]=l,a+=c}return[s,a]}(t,n,{staticPosition:s});if("address"===n.type){var f=t;let e=f.readBytes(32);return[(0,i.o)((0,d.My)((0,o.A1)(e,-20))),32]}if("bool"===n.type)return[function(e,t={}){let n=e;if(void 0!==t.size&&((0,c.Sl)(n,{size:t.size}),n=(0,u.B)(n)),n.length>1||n[0]>1)throw new l.xO(n);return!!n[0]}(t.readBytes(32),{size:32}),32];if(n.type.startsWith("bytes"))return function(e,t,{staticPosition:n}){let[r,i]=t.type.split("bytes");if(!i){let t=p(e.readBytes(32));e.setPosition(n+t);let r=p(e.readBytes(32));if(0===r)return e.setPosition(n+32),["0x",32];let i=e.readBytes(r);return e.setPosition(n+32),[(0,d.My)(i),32]}return[(0,d.My)(e.readBytes(Number.parseInt(i,10),32)),32]}(t,n,{staticPosition:s});if(n.type.startsWith("uint")||n.type.startsWith("int")){var y=t,b=n;let e=b.type.startsWith("int"),r=Number.parseInt(b.type.split("int")[1]||"256",10),i=y.readBytes(32);return[r>48?function(e,t={}){void 0!==t.size&&(0,c.Sl)(e,{size:t.size});let n=(0,d.My)(e,t);return(0,c.uU)(n,t)}(i,{signed:e}):p(i,{signed:e}),32]}if("string"===n.type)return function(e,{staticPosition:t}){let n=p(e.readBytes(32));e.setPosition(t+n);let r=p(e.readBytes(32));if(0===r)return e.setPosition(t+32),["",32];let i=e.readBytes(r,32),s=function(e,t={}){let n=e;return void 0!==t.size&&((0,c.Sl)(n,{size:t.size}),n=(0,u.B)(n,{dir:"right"})),new TextDecoder().decode(n)}((0,u.B)(i));return e.setPosition(t+32),[s,32]}(t,{staticPosition:s});throw new r.j(n.type,{docsPath:"/docs/contract/decodeAbiParameters"})}(y,n,{staticPosition:0});b+=a,g.push(s)}return g}function m(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(m);let n=(0,h.k)(e.type);return!!(n&&m({...e,type:n[1]}))}},46618:(e,t,n)=>{n.d(t,{NO:()=>a,Pj:()=>o,dV:()=>i,nx:()=>u,zd:()=>s});var r=n(67157);r.C,r.C;class i extends r.C{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class s extends r.C{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 a extends r.C{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class o extends r.C{constructor({param:e,type:t,modifier:n}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${n}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${n}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class u extends r.C{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"})}}},47826:(e,t,n)=>{n.d(t,{W:()=>l});var r=n(29995),i=n(99702),s=n(93727),a=n(21135),o=n(43935),u=n(21159);function l(e){let{abi:t,data:n}=e,l=(0,s.di)(n,0,4);if("0x"===l)throw new i.O;let c=[...t||[],r.Mc,r.J9].find(e=>"error"===e.type&&l===(0,a.V)((0,u.B)(e)));if(!c)throw new i.Wq(l,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:c,args:"inputs"in c&&c.inputs&&c.inputs.length>0?(0,o.n)(c.inputs,(0,s.di)(n,4)):void 0,errorName:c.name}}},48701:(e,t,n)=>{n.d(t,{B4:()=>f,CQ:()=>w,CW:()=>v,Ei:()=>d,F8:()=>x,P5:()=>p,TH:()=>$,Vl:()=>b,Vr:()=>g,WM:()=>h,WQ:()=>m,im:()=>y,jm:()=>o,lD:()=>s,qh:()=>c,rE:()=>u,ry:()=>l,xn:()=>a});let r=BigInt(0x100000000-1),i=BigInt(32);function s(e,t=!1){let n=e.length,a=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){let{h:n,l:u}=function(e,t=!1){return t?{h:Number(e&r),l:Number(e>>i&r)}:{h:0|Number(e>>i&r),l:0|Number(e&r)}}(e[s],t);[a[s],o[s]]=[n,u]}return[a,o]}let a=(e,t,n)=>e>>>n,o=(e,t,n)=>e<<32-n|t>>>
1n,u=(e,t,n)=>e>>>n|t<<32-n,l=(e,t,n)=>e<<32-n|t>>>n,c=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n,p=(e,t,n)=>e<<n|t>>>32-n,f=(e,t,n)=>t<<n|e>>>32-n,h=(e,t,n)=>t<<n-32|e>>>64-n,y=(e,t,n)=>e<<n-32|t>>>64-n;function m(e,t,n,r){let i=(t>>>0)+(r>>>0);return{h:e+n+(i/0x100000000|0)|0,l:0|i}}let b=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),g=(e,t,n,r)=>t+n+r+(e/0x100000000|0)|0,v=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),w=(e,t,n,r,i)=>t+n+r+i+(e/0x100000000|0)|0,x=(e,t,n,r,i)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(i>>>0),$=(e,t,n,r,i,s)=>t+n+r+i+s+(e/0x100000000|0)|0},55557:(e,t,n)=>{n.d(t,{G:()=>r});let r=(0,n(22732).x)({id:0xaa36a7,name:"Sepolia",nativeCurrency:{name:"Sepolia Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://11155111.rpc.thirdweb.com"]}},blockExplorers:{default:{name:"Etherscan",url:"https://sepolia.etherscan.io",apiUrl:"https://api-sepolia.etherscan.io/api"}},contracts:{multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11",blockCreated:751532},ensUniversalResolver:{address:"0xeeeeeeee14d718c2b47d9923deab1335e144eeee",blockCreated:8928790}},testnet:!0})},65003:(e,t,n)=>{n.d(t,{A:()=>r});class r extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){let t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){let e=this.keys().next().value;e&&this.delete(e)}return this}}},67157:(e,t,n)=>{n.d(t,{C:()=>r});class r extends Error{constructor(e,t={}){let n=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,i=t.cause instanceof r&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...i?[`Docs: https://abitype.dev${i}`]:[],...n?[`Details: ${n}`]:[],"Version: [email protected]"].join("\n")),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiTypeError"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=i,this.metaMessages=t.metaMessages,this.shortMessage=e}}},68629:(e,t,n)=>{n.d(t,{k:()=>l});var r=n(80844),i=n(24578);let s=e=>(0,i.S)((0,r.ZJ)(e));var a=n(7437),o=n(7441);let u=e=>(function(e){let t=!0,n="",r=0,i="",s=!1;for(let a=0;a<e.length;a++){let o=e[a];if(["(",")",","].includes(o)&&(t=!0),"("===o&&r++,")"===o&&r--,t){if(0===r){if(" "===o&&["event","function",""].includes(i))i="";else if(i+=o,")"===o){s=!0;break}continue}if(" "===o){","!==e[a-1]&&","!==n&&",("!==n&&(n="",t=!1);continue}i+=o,n+=o}}if(!s)throw new o.C("Unable to normalize signature.");return i})("string"==typeof e?e:(0,a.B)(e));function l(e){return s(u(e))}},76743:(e,t,n)=>{n.d(t,{Bv:()=>s});var r=n(67622);let i={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function s(e,t){let n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.cK)(BigInt(e.r)):e.r,s:e.s?(0,r.cK)(BigInt(e.s)):e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.cK)(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,r.My)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.cK)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.cK)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=i[e.type]),void 0!==e.value&&(n.value=(0,r.cK)(e.value)),n}},77692:(e,t,n)=>{n.d(t,{UG:()=>a,xo:()=>i,zz:()=>s});var r=n(67157);class i extends r.C{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 s extends r.C{constructor({type:e}){super("Unknown type.",{metaMessages:[`Type "${e}" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownTypeError"})}}class a extends r.C{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"})}}}
1,79183:(e,t,n)=>{n.d(t,{A:()=>r});let r=(e,t,n)=>JSON.stringify(e,(e,n)=>{let r="bigint"==typeof n?n.toString():n;return"function"==typeof t?t(e,r):r},n)},79731:(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})},80431:(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:()=>a});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)?$/,a=/^\(.+?\).*?$/},81647:(e,t,n)=>{n.d(t,{$:()=>c});var r=n(11213),i=n(92942),s=n(99232),a=n(67316),o=n(94),u=n(8121),l=n(97406);async function c(e){if(await (0,a.k)(e.transaction.chain)){let{getZkGasFees:t}=await Promise.all([n.e(98693),n.e(58408)]).then(n.bind(n,58408)),{gas:r,maxFeePerGas:i,maxPriorityFeePerGas:a}=await t({from:"string"==typeof e.from?(0,s.bv)(e.from):void 0!==e.from?(0,s.bv)(e.from.address):void 0,transaction:e.transaction});e.transaction={...e.transaction,gas:r,maxFeePerGas:i,maxPriorityFeePerGas:a}}let t=(0,i.getRpcClient)(e.transaction),c=e.transaction.chain.id,d=e.from,[p,f,h,y,m,b,g,v,w]=await Promise.all([(0,u.encode)(e.transaction),(async()=>{let r=await (0,o.r)(e.transaction.nonce);return void 0!==r?r:d?await n.e(90373).then(n.bind(n,90373)).then(({eth_getTransactionCount:e})=>e(t,{address:"string"==typeof d?(0,s.bv)(d):(0,s.bv)(d.address),blockTag:"pending"})):void 0})(),(0,l.estimateGas)({...e,from:e.from}),(0,r.getGasOverridesForTransaction)(e.transaction),(0,o.r)(e.transaction.to),(0,o.r)(e.transaction.accessList),(0,o.r)(e.transaction.value),(0,o.r)(e.transaction.authorizationList),(0,o.r)(e.transaction.type)]),x=await (0,o.r)(e.transaction.extraGas);return x&&(h+=x),{accessList:b,authorizationList:v,chainId:c,data:p,gas:h,nonce:f,to:m,type:w,value:g,...y}}},81757:(e,t,n)=>{n.d(t,{P:()=>o});var r=n(65003),i=n(35883);let s=/^0x[a-fA-F0-9]{40}$/,a=new r.A(8192);function o(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(a.has(r))return a.get(r);let o=!!s.test(e)&&(e.toLowerCase()===e||!n||(0,i.o)(e)===e);return a.set(r,o),o}},87456:(e,t,n)=>{n.d(t,{l:()=>s});var r=n(97118);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.B4({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function s(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(i);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},88647:(e,t,n)=>{n.d(t,{X9:()=>a,s7:()=>i,x8:()=>s});var r=n(67157);class i extends r.C{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class s extends r.C{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class a extends r.C{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"})}}},93727:(e,t,n)=>{n.d(t,{A1:()=>l,di:()=>a,iN:()=>c});var r=n(58980),i=n(32840),s=n(87094);function a(e,t,n,{strict:r}={}){return(0,i.q)(e,{strict:!1})?c(e,t,n,{strict:r}):l(e,t,n,{strict:r})}function o(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 l(e,t,n,{strict:r}={}){o(e,t);let i=e.slice(t,n);return r&&u(i,t,n),i}function c(e,t,n,{strict:r}={}){o(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&u(i,t,n),i}},97118:(e,t,n)=>{n.d(t,{B4:()=>i,SK:()=>s,hX:()=>a});var r=n(7441);class i extends r.C{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class s extends r.C{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class a extends r.C{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},97406:(e,t,n)=>{n.r(t),n.d(t,{estimateGas:()=>_});var r=n(86205),i=n(76743),s=n(41863),a=n(99232),o=n(94),u=n(47826),l=n(79183),c=n(39696),d=n(55389),p=n(80431);let f=/^tuple(?<array>(\[(\d*)\])*)$/;function h(e){let t="",n=e.length;for(let r=0;r<n;r++)t+=function e(t){let n=t.type;if(f.test(t.type)&&"components"in t){n="(";let r=t.components.length;for(let i=0;i<r;i++)n+=e(t.components[i]),i<r-1&&(n+=", ");let i=(0,p.Yv)(f,t.type);return n+=`)${i?.array??""}`,e({...t,type:n})}return("indexed"in t&&t.indexed&&(n=`${n}
1 indexed`),t.name)?`${n} ${t.name}`:n}(e[r]),r!==n-1&&(t+=", ");return t}var y=n(14783),m=n(7135),b=n(97899),g=n(55557),v=n(98864),w=n(71081),x=n(37154);async function $(e){let t;if(w.W){let t=e.uri.split("://")[1];if(!t)throw Error("Invalid hash");let n=(0,x.s)(t);if(n)return{json:()=>Promise.resolve(n),ok:!0,status:200}}if(e.uri.startsWith("ar://")){let{resolveArweaveScheme:r}=await n.e(56055).then(n.bind(n,56055));t=r(e)}else t=function(e){if(e.uri.startsWith("ipfs://")){let t,n=e.client.config?.storage?.gatewayUrl??"https://{clientId}.ipfscdn.io/ipfs/{cid}",r=e.client.clientId,i=function(e){if(!e.startsWith("ipfs://"))return e;let t=e.search(/\/(Qm|baf)/i);return e.slice(t+1)}(e.uri);return"undefined"!=typeof globalThis&&"Application"in globalThis&&(t=globalThis.Application.applicationId),`${n.replace("{clientId}",r).split("/ipfs")[0]}/ipfs/${i}${t?`?bundleId=${t}`:""}`}if(e.uri.startsWith("http"))return e.uri;throw Error('Invalid URI scheme, expected "ipfs://" or "http(s)://"')}(e);let r=await (0,v.KI)(e.client)(t,{headers:e.client.config?.storage?.fetch?.headers,keepalive:e.client.config?.storage?.fetch?.keepalive,requestTimeoutMs:e.requestTimeoutMs??e.client.config?.storage?.fetch?.requestTimeoutMs??6e4});if(!r.ok){let e=await r.text();throw Error(`Failed to download file: ${r.status} ${r.statusText} ${e||""}`)}return r}var P=n(72980),I=n(2579);async function A(e,t="https://contract.thirdweb.com/abi"){let n=await (0,v.KI)(e.client)(`${t}/${e.chain.id}/${e.address}`),r=await n.json();if(!r||r.error)throw Error(`Failed to resolve ABI from contract API. ${r.error||""}`);return r}async function B(e){let[{resolveImplementation:t},{extractIPFSUri:r}]=await Promise.all([n.e(65824).then(n.bind(n,43443)),n.e(66079).then(n.bind(n,66079))]),{bytecode:i}=await t(e);if("0x"===i){let{id:t,name:n}=e.chain;throw Error(`Failed to load contract bytecode. Make sure the contract [${e.address}] exists on the chain [${n||"Unknown Chain"} (chain id: ${t})]`)}let s=r(i);if(!s)return[];try{let t=await $({client:e.client,uri:s});return(await t.json()).output.abi}catch{return[]}}let E={inputs:[],name:"getAllPlugins",outputs:[{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"},{internalType:"address",name:"pluginAddress",type:"address"}],internalType:"struct IPluginMap.Plugin[]",name:"registered",type:"tuple[]"}],stateMutability:"view",type:"function"},M={inputs:[],name:"getAllExtensions",outputs:[{components:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"metadataURI",type:"string"},{internalType:"address",name:"implementation",type:"address"}],internalType:"struct IExtension.ExtensionMetadata",name:"metadata",type:"tuple"},{components:[{internalType:"bytes4",name:"functionSelector",type:"bytes4"},{internalType:"string",name:"functionSignature",type:"string"}],internalType:"struct IExtension.ExtensionFunction[]",name:"functions",type:"tuple[]"}],internalType:"struct IExtension.Extension[]",name:"allExtensions",type:"tuple[]"}],stateMutability:"view",type:"function"},C={inputs:[],name:"facets",outputs:[{components:[{internalType:"address",name:"facetAddress",type:"address"},{internalType:"bytes4[]",name:"functionSelectors",type:"bytes4[]"}],type:"tuple[]"}],stateMutability:"view",type:"function"};async function k(e,t,n){var r;let i,[s,a,o,u,l]=await Promise.all([t||B(e),z(e),F(e),O(e),U(e)]),c=[...new Set([...a,...o,...u,...l])];return c.length?(i=(r={pluginAbis:await S({contract:e,plugins:c,resolveSubAbi:n}),rootAbi:s}).pluginAbis.flat().filter(e=>"constructor"!==e.type),r.rootAbi&&(i=[...r.rootAbi,...i].filter(e=>"fallback"!==e.type&&"receive"!==e.type).filter(Boolean)),function(e){let t=(0,m.e)(e),n=[],r=e.length;for(let i=0;i<r;i++){let r=e[i];(0,y.WL)(r)||n.push((0,b.uT)(r,t))}return n}([...new Set(function(e){let t=[],n=e.length;for(let i=0;i<n;i++){var r;let n="function"===(r=e[i]).type?`function ${r.name}(${h(r.inputs)})${r.stateMutability&&"nonpayable"!==r.stateMutability?` ${r.stateMutability}`:""}${r.outputs?.length?` returns (${h(r.outputs)})`:""}`:"event"===r.type?`event ${r.name}(${h(r.inputs)})`:"error"===r.type?`error ${r.name}(${h(r.inputs)})`:"constructor"===r.type?`constructor(${h(r.inputs)})${"payable"===r.stateMutability?" payable":""}`:"fallback"===r.type?`fallback() external${"payable"===r.stateMutability?" payable":""}`:"receive() external payable";t.push(n)}return t}(i))])):s}async function z(e){try{let{readContract:t}=await n.e(26489).then(n.bind(n,26489)),r=await t({contract:e,method:E}
1);if(!r.length)return[];return[...new Set(r.map(e=>e.pluginAddress))]}catch{}return[]}async function F(e){try{let{readContract:t}=await n.e(26489).then(n.bind(n,26489)),r=await t({contract:e,method:M});if(!r.length)return[];return[...new Set(r.map(e=>e.metadata.implementation))]}catch{}return[]}async function O(e){try{let{getInstalledModules:t}=await n.e(1102).then(n.bind(n,1102)),r=await t({contract:e});if(!r.length)return[];return[...new Set(r.map(e=>e.implementation))]}catch{}return[]}async function U(e){try{let{readContract:t}=await n.e(26489).then(n.bind(n,26489)),r=await t({contract:e,method:C});if(!r.length)return[];return r.map(e=>e.facetAddress)}catch{}return[]}async function S(e){return Promise.all(e.plugins.map(t=>{let n=(0,I.P)({...e.contract,address:t});return e.resolveSubAbi?e.resolveSubAbi(n):B(n)}))}var T=n(53360);async function j(e){let{error:t,contract:n,fromAddress:r}=e;(0,c.Y)(t)&&n&&(0,d.z)({chainId:n.chain?.id,client:n.client,contractAddress:n.address,error:t,walletAddress:r});let i=await G({contract:n,error:t});return i?new L(i,n):t}async function G(e){let{error:t,contract:n}=e;if("object"==typeof t&&t.data&&"0x"!==t.data&&(0,T.q)(t.data)){let e=n?.abi;n&&!e&&(e=await (function(e,t="https://contract.thirdweb.com/abi"){return(0,P.n)(async()=>{if(e.abi)return e.abi;if(31337===e.chain.id||1337===e.chain.id||e.chain.id===g.G.id)return await k(e);try{return await A(e,t)}catch{return await k(e)}},{cacheKey:`${e.chain.id}-${e.address}`,cacheTime:36e5})})(n).catch(()=>void 0));let r=(0,u.W)({abi:e,data:t.data});return`${r.errorName}${r.args?` - ${r.args}`:""}`}return`Execution Reverted: ${(0,l.A)(t)}`}class L extends Error{constructor(e,t){let n=e;w.H&&t&&(n=[e,"",`contract: ${t.address}`,`chainId: ${t.chain?.id}`].join("\n")),super(n),Object.defineProperty(this,"contractAddress",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"chainId",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name="TransactionError",this.contractAddress=t?.address,this.chainId=t?.chain?.id,this.message=n}}let N=new WeakMap;async function _(e){let t="string"==typeof e.from?e.from??void 0:e.from?.address??e.account?.address,u={...e.transaction,from:t};if(N.has(u))return N.get(u);let{account:l}=e,c=(async()=>{let u=await (0,o.r)(e.transaction.gas);if(void 0!==u)return u;if(l?.estimateGas)try{let t=await l.estimateGas(e.transaction);return e.transaction.chain.experimental?.increaseZeroByteCount&&(t=(0,s.d)(t)),t}catch(n){throw await j({contract:e.transaction.__contract,error:n,fromAddress:t})}let{encode:c}=await Promise.resolve().then(n.bind(n,8121)),[d,p,f,h]=await Promise.all([c(e.transaction),(0,o.r)(e.transaction.to),(0,o.r)(e.transaction.value),(0,o.r)(e.transaction.authorizationList)]),[{getRpcClient:y},{eth_estimateGas:m}]=await Promise.all([Promise.resolve().then(n.bind(n,92942)),n.e(64769).then(n.bind(n,64769))]),b=y(e.transaction);try{let n=(0,i.Bv)({authorizationList:h?.map(e=>({...e,address:(0,a.bv)(e.address),nonce:Number(e.nonce),r:r.oB(e.r),s:r.oB(e.s)})),data:d,from:t?(0,a.bv)(t):void 0,to:p?(0,a.bv)(p):void 0,value:f}),o=await m(b,n);return e.transaction.chain.experimental?.increaseZeroByteCount&&(o=(0,s.d)(o)),o}catch(n){throw await j({contract:e.transaction.__contract,error:n,fromAddress:t})}})();return N.set(u,c),c}},97899:(e,t,n)=>{n.d(t,{_o:()=>b,Pj:()=>y,uT:()=>d});var r=n(80431),i=n(77692),s=n(46618),a=n(88647),o=n(67157);class u extends o.C{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"})}}let l=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}]]);var c=n(14783);function d(e,t={}){if((0,c.Ji)(e))return function(e,t={}){let n=(0,c.ej)(e);if(!n)throw new a.s7({signature:e,type:"function"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:c.v7,structs:t,type:"function"}));let o=[];if(n.returns){let e=m(n.returns),r=e.length;for(let n=0;n<r;n++)o.push(y(e[n],{modifiers:c.v7,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:i,outputs:o}}(e,t);if((0,c.Rv)(e))return function(e,t={}){let n=(0,c.iB)(e);if(!n)throw new a.s7({signature:e,type:"event"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{modifiers:c.fC,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:i}}(e,t);if((0,c.pc)(e))return function(e,t={}){let n=(0,c.kz)(e);if(!n)throw new a.s7({signature:e,type:"error"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:i}}(e,t);if((0,c.l9)(e))return function(e,t={}){let n=(0,c.Yo)(e);if(!n)throw new a.s7({signature:e,type:"constructor"});let r=m(n.parameters),i=[],s=r.length;for(let e=0;e<s;e++)i.push(y(r[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:i}}(e,t);if((0,c.v8)(e)){var n=e;let t=(0,c.If)(n);if(!t)throw new a.s7({signature:n,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if((0,c.sP)(e))return{type:"receive",stateMutability:"payable"};throw new a.x8({signature:e})}let p=/^(?<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$_]*))?$/,f=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^u?int$/;function y(e,t){var n,a;let o,u=function(e,t,n){let r="";if(n)for(let e of Object.entries(n)){if(!e)continue;let t="";for(let n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:""}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:e}(e,t?.type,t?.structs);if(l.has(u))return l.get(u);let d=r.wj.test(e),v=(0,r.Yv)(d?f:p,e);if(!v)throw new s.dV({param:e});if(v.name&&("address"===(n=v.name)||"bool"===n||"function"===n||"string"===n||"tuple"===n||r.BD.test(n)||r.Ge.test(n)||g.test(n)))throw new s.zd({param:e,name:v.name});let w=v.name?{name:v.name}:{},x="indexed"===v.modifier?{indexed:!0}:{},$=t?.structs??{},P={};if(d){o="tuple";let e=m(v.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(y(e[r],{structs:$}));P={components:t}}else if(v.type in $)o="tuple",P={components:$[v.type]};else if(h.test(v.type))o=`${v.type}256`;else if(o=v.type,t?.type!=="struct"&&!b(o))throw new i.UG({type:o});if(v.modifier){if(!t?.modifiers?.has?.(v.modifier))throw new s.NO({param:e,type:t?.type,modifier:v.modifier});if(c.v7.has(v.modifier)&&(a=o,!v.array&&"bytes"!==a&&"string"!==a&&"tuple"!==a)
vendor: 8,022 bytes, lines 1-21
1)throw new s.Pj({param:e,type:t?.type,modifier:v.modifier})}let I={type:`${o}${v.array??""}`,...w,...x,...P};return l.set(u,I),I}function m(e,t=[],n="",r=0){let i=e.trim().length;for(let s=0;s<i;s++){let i=e[s],a=e.slice(s+1);switch(i){case",":return 0===r?m(a,[...t,n.trim()]):m(a,t,`${n}${i}`,r);case"(":return m(a,t,`${n}${i}`,r+1);case")":return m(a,t,`${n}${i}`,r-1);default:return m(a,t,`${n}${i}`,r)}}if(""===n)return t;if(0!==r)throw new u({current:n,depth:r});return t.push(n.trim()),t}function b(e){return"address"===e||"bool"===e||"function"===e||"string"===e||r.BD.test(e)||r.Ge.test(e)}let g=/^(?: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)$/},99702:(e,t,n)=>{n.d(t,{BI:()=>P,EB:()=>x,Iy:()=>u,Iz:()=>v,MR:()=>w,M_:()=>g,Nc:()=>c,O:()=>l,Wl:()=>k,Wq:()=>y,YE:()=>p,YF:()=>o,YW:()=>a,ZP:()=>f,_z:()=>m,d_:()=>C,dm:()=>M,fo:()=>I,gH:()=>d,j:()=>E,kE:()=>b,l3:()=>A,nK:()=>B,nM:()=>$,yy:()=>h});var r=n(21159),i=n(87094),s=n(7441);class a 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 o 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 l extends s.C{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}}class c 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 d 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 h 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 y extends s.C{constructor(e,{docsPath:t}){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://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 m 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://openchain.xyz/signatures?query=${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 w 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://openchain.xyz/signatures?query=${e}.`,{docsPath:t,name:"AbiFunctionSignatureNotFoundError"})}}class $ 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 P extends s.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:"BytesSizeMismatchError"})}}class I 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 A 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 B 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 E 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 C 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"})}}}}]);

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.