1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3167],{926:(e,t,r)=>{"use strict";r.d(t,{T:()=>i});var n=r(27493);async function i(e){let t=await e.request({method:"eth_chainId"},{dedupe:!0});return(0,n.ME)(t)}},2806:(e,t,r)=>{"use strict";async function n(e,{serializedTransaction:t}){return e.request({method:"eth_sendRawTransaction",params:[t]},{retryCount:0})}r.d(t,{L:()=>n})},3488:(e,t,r)=>{"use strict";r.d(t,{J:()=>u});var n=r(69330),i=r(60367),s=r(54842),a=r(34524),o=r(77079);async function u(e,t){let{abi:r,address:u,args:l,functionName:c,...f}=t,d=(0,i.p)({abi:r,args:l,functionName:c});try{let{data:t}=await (0,a.T)(e,o.T,"call")({...f,data:d,to:u});return(0,n.e)({abi:r,args:l,functionName:c,data:t||"0x"})}catch(e){throw(0,s.j)(e,{abi:r,address:u,args:l,docsPath:"/docs/contract/readContract",functionName:c})}}},6083:(e,t,r)=>{"use strict";r.d(t,{C:()=>h});var n=r(14493),i=r(99702),s=r(7441),a=r(35109),o=r(69330),u=r(60367),l=r(13861),c=r(54842),f=r(34524),d=r(3488);async function h(e,t){let{account:r,allowFailure:h=!0,batchSize:p,blockNumber:m,blockTag:g,multicallAddress:b,stateOverride:y}=t,A=t.contracts,v=p??("object"==typeof e.batch?.multicall&&e.batch.multicall.batchSize||1024),w=b;if(!w){if(!e.chain)throw Error("client chain not configured. multicallAddress is required.");w=(0,l.M)({blockNumber:m,chain:e.chain,contract:"multicall3"})}let E=[[]],x=0,M=0;for(let e=0;e<A.length;e++){let{abi:t,address:n,args:i,functionName:s}=A[e];try{let e=(0,u.p)({abi:t,args:i,functionName:s});M+=(e.length-2)/2,v>0&&M>v&&E[x].length>0&&(x++,M=(e.length-2)/2,E[x]=[]),E[x]=[...E[x],{allowFailure:!0,callData:e,target:n}]}catch(a){let e=(0,c.j)(a,{abi:t,address:n,args:i,docsPath:"/docs/contract/multicall",functionName:s,sender:r});if(!h)throw e;E[x]=[...E[x],{allowFailure:!0,callData:"0x",target:n}]}}let B=await Promise.allSettled(E.map(t=>(0,f.T)(e,d.J,"readContract")({abi:n.v2,account:r,address:w,args:[t],blockNumber:m,blockTag:g,functionName:"aggregate3",stateOverride:y}))),_=[];for(let e=0;e<B.length;e++){let t=B[e];if("rejected"===t.status){if(!h)throw t.reason;for(let r=0;r<E[e].length;r++)_.push({status:"failure",error:t.reason,result:void 0});continue}let r=t.value;for(let t=0;t<r.length;t++){let{returnData:n,success:s}=r[t],{callData:u}=E[e][t],{abi:l,address:f,functionName:d,args:p}=A[_.length];try{if("0x"===u)throw new i.O;if(!s)throw new a.$S({data:n});let e=(0,o.e)({abi:l,args:p,data:n,functionName:d});_.push(h?{result:e,status:"success"}:e)}catch(t){let e=(0,c.j)(t,{abi:l,address:f,args:p,docsPath:"/docs/contract/multicall",functionName:d});if(!h)throw e;_.push({error:e,result:void 0,status:"failure"})}}}if(_.length!==A.length)throw new s.C("multicall results mismatch");return _}},6528:(e,t,r)=>{"use strict";r.d(t,{M:()=>s});var n=r(35883),i=r(24578);function s(e){let t=(0,i.S)(`0x${e.substring(4)}`).substring(26);return(0,n.o)(`0x${t}`)}},6784:(e,t,r)=>{"use strict";r.d(t,{II:()=>f,v_:()=>u,wm:()=>c});var n=r(50920),i=r(21239),s=r(73504),a=r(52020);function o(e){return Math.min(1e3*2**e,3e4)}function u(e){return(e??"online")!=="online"||i.t.isOnline()}var l=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function c(e){return e instanceof l}function f(e){let t,r=!1,c=0,f=!1,d=(0,s.T)(),h=()=>n.m.isFocused()&&("always"===e.networkMode||i.t.isOnline())&&e.canRun(),p=()=>u(e.networkMode)&&e.canRun(),m=r=>{f||(f=!0,e.onSuccess?.(r),t?.(),d.resolve(r))},g=r=>{f||(f=!0,e.onError?.(r),t?.(),d.reject(r))},b=()=>new Promise(r=>{t=e=>{(f||h())&&r(e)},e.onPause?.()}).then(()=>{t=void 0,f||e.onContinue?.()}),y=()=>{let t;if(f)return;let n=0===c?e.initialPromise:void 0;try{t=n??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(m).catch(t=>{if(f)return;let n=e.retry??3*!a.S$,i=e.retryDelay??o,s="function"==typeof i?i(c,t):i,u=!0===n||"number"==typeof n&&c<n||"function"==typeof n&&n(c,t);if(r||!u){g(t);return}c++,e.onFail?.(c,t),(0,a.yy)(s).then(()=>h()?void 0:b()).then(()=>{r?g(t):y()})})};return{promise:d,cancel:t=>{f||(g(new l(t)),e.abort?.())},continue:()=>(t?.(),d),cancelRetry:()=>{r=!0},continueRetry:()=>{r=!1},canStart:p,start:()=>(p()?y():b().then(y),d)}}},7052:(e,t,r)=>{"use strict";r.d(t,{B:()=>i});var n=r(92077);function i(e,t={}){let r=function(e,t={}){try{return e.getClient(t)}catch{return}}(e,t);return r?.extend(n.$)}},7165:(e,t,r)=>{"use strict";r.d(t,{j:()=>n});var n=function(){let e=[],t=0,r=e=>{e()},n=e=>{e()},i=e=>setTimeout(e,0),s=n=>{t?e.push(n):i(()=>{r(n)})},a=()=>{let t=e;e=[],t.length&&i(()=>{n(()=>
1{t.forEach(e=>{r(e)})})})};return{batch:e=>{let r;t++;try{r=e()}finally{--t||a()}return r},batchCalls:e=>(...t)=>{s(()=>{e(...t)})},schedule:s,setNotifyFunction:e=>{r=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{i=e}}}()},7612:(e,t,r)=>{"use strict";r.d(t,{F:()=>o});var n=r(80844),i=r(67622),s=r(24578),a=r(70872);function o(e){let t=e.replace(/^\.|\.$/gm,"");if(0===t.length)return new Uint8Array(1);let r=new Uint8Array((0,n.Af)(t).byteLength+2),o=0,u=t.split(".");for(let e=0;e<u.length;e++){let t=(0,n.Af)(u[e]);if(t.byteLength>255){var l;t=(0,n.Af)((l=function(e){let t=new Uint8Array(32).fill(0);return e?(0,a.q)(e)||(0,s.S)((0,n.Af)(e)):(0,i.My)(t)}(u[e]),`[${l.slice(2)}]`))}r[o]=t.length,r.set(t,o+1),o+=t.length+1}return r.byteLength!==o+1?r.slice(0,o+1):r}},7900:(e,t,r)=>{"use strict";r.d(t,{Zh:()=>u});var n=r(13423),i=r(79731),s=r(67622),a=r(24578),o=r(90477);function u(e){let{domain:t={},message:r,primaryType:n}=e,s={EIP712Domain:(0,o.H4)({domain:t}),...e.types};(0,o.$$)({domain:t,message:r,primaryType:n,types:s});let u=["0x1901"];return t&&u.push(function({domain:e,types:t}){return l({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:s})),"EIP712Domain"!==n&&u.push(l({data:r,primaryType:n,types:s})),(0,a.S)((0,i.xW)(u))}function l({data:e,primaryType:t,types:r}){let i=function e({data:t,primaryType:r,types:i}){let o=[{type:"bytes32"}],u=[function({primaryType:e,types:t}){let r=(0,s.nj)(function({primaryType:e,types:t}){let r="",n=function e({primaryType:t,types:r},n=new Set){let i=t.match(/^\w*/u),s=i?.[0];if(n.has(s)||void 0===r[s])return n;for(let t of(n.add(s),r[s]))e({primaryType:t.type,types:r},n);return n}({primaryType:e,types:t});for(let i of(n.delete(e),[e,...Array.from(n).sort()]))r+=`${i}(${t[i].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return r}({primaryType:e,types:t}));return(0,a.S)(r)}({primaryType:r,types:i})];for(let l of i[r]){let[r,c]=function t({types:r,name:i,type:o,value:u}){if(void 0!==r[o])return[{type:"bytes32"},(0,a.S)(e({data:u,primaryType:o,types:r}))];if("bytes"===o){let e=u.length%2?"0":"";return u=`0x${e+u.slice(2)}`,[{type:"bytes32"},(0,a.S)(u)]}if("string"===o)return[{type:"bytes32"},(0,a.S)((0,s.nj)(u))];if(o.lastIndexOf("]")===o.length-1){let e=o.slice(0,o.lastIndexOf("[")),s=u.map(n=>t({name:i,type:e,types:r,value:n}));return[{type:"bytes32"},(0,a.S)((0,n.h)(s.map(([e])=>e),s.map(([,e])=>e)))]}return[{type:o},u]}({types:i,name:l.name,type:l.type,value:t[l.name]});o.push(r),u.push(c)}return(0,n.h)(o,u)}({data:e,primaryType:t,types:r});return(0,a.S)(i)}},8870:function(e,t,r){var n;!function(i){"use strict";var s,a={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},o=!0,u="[DecimalError] ",l=u+"Invalid argument: ",c=u+"Exponent out of range: ",f=Math.floor,d=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,p=f(1286742750677284.5),m={};function g(e,t){var r,n,i,s,a,u,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),o?_(t,d):t;if(l=e.d,c=t.d,a=e.e,i=t.e,l=l.slice(),s=a-i){for(s<0?(n=l,s=-s,u=c.length):(n=c,i=a,u=l.length),s>(u=(a=Math.ceil(d/7))>u?a+1:u+1)&&(s=u,n.length=1),n.reverse();s--;)n.push(0);n.reverse()}for((u=l.length)-(s=c.length)<0&&(s=u,n=c,c=l,l=n),r=0;s;)r=(l[--s]=l[s]+c[s]+r)/1e7|0,l[s]%=1e7;for(r&&(l.unshift(r),++i),u=l.length;0==l[--u];)l.pop();return t.d=l,t.e=i,o?_(t,d):t}function b(e,t,r){if(e!==~~e||e<t||e>r)throw Error(l+e)}function y(e){var t,r,n,i=e.length-1,s="",a=e[0];if(i>0){for(s+=a,t=1;t<i;t++)(r=7-(n=e[t]+"").length)&&(s+=x(r)),s+=n;(r=7-(n=(a=e[t])+"").length)&&(s+=x(r))}else if(0===a)return"0";for(;a%10==0;)a/=10;return s+a}m.absoluteValue=m.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},m.comparedTo=m.cmp=function(e){var t,r,n,i;if(e=new this.constructor(e),this.s!==e.s)return this.s||-e.s;if(this.e!==e.e)return this.e>e.e^this.s<0?1:-1;for(t=0,r=(n=this.d.length)<(i=e.d.length)?n:i;t<r;++t)if(this.d[t]!==e.d[t])return this.d[t]>e.d[t]^this.s<0?1:-1;return n===i?0:n>i^this.s<0?1:-1},m.decimalPlaces=m.dp=function(){var e=this.d.length-1,t=(e-this.e)*7;if(e=this.d[e])for(;e%10==0;e/=10)t--;return t<0?0:t},m.dividedBy=m.div=function(e){return A(this,new this.constructor(e))},m.dividedToIntegerBy=m.idiv=function(e){var t=this.constructor;return _(A(this,new t(e),0,1),t.precision)},m.equals=m.eq=function(e){return!this.cmp(e)},m.exponent=function(){return w(this)},m.greaterThan=m.gt=function(e){return this.cmp(e)>0},m.greaterThanOrEqualTo=m.gte=function(e){return this.cmp(e)>=0},m.isInteger=m.isint=function(){return this.e>this.d.length-2},m.isNegative=m.isneg=function(){return this.s<0},m.isPositive=m.ispos=function(){return this.s>0},m.isZero=function(){return 0===this.s},m.lessThan=m.lt=function(e){return 0>this.cmp(e)},m.lessThanOrEqualTo=m.lte=function(e){return 1>this.cmp(e)},m.logarithm=m.log=function(e){var t,r=this.constructor,n=r.precision,i=n+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(s))throw Error(u+"NaN");if(this.s<1)throw Error(u+(this.s?"NaN":"-Infinity"));return this.eq(s)?new r(0):(o=!1,t=A(M(this,i),M(e,i),i),o=!0,_(t,n))},m.minus=m.sub=function(e){return e=new this.constructor(e),this.s==e.s?C(this,e):g(this,(e.s=-e.s,e))},m.modulo=m.mod=function(e){var t,r=this.constructor,n=r.precision;if(!(e=new r(e)).s)throw Error(u+"NaN");return this.s?(o=!1,t=A(this,e,0,1).times(e),o=!0,this.minus(t)):_(new r(this),n)},m.naturalExponential=m.exp=function(){return v(this)},m.naturalLogarithm=m.ln=function(){return M(this)},m.negated=m.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},m.plus=m.add=function(e){return e=new this.constructor(e),this.s==e.s?g(this,e):C(this,(e.s=-e.s,e))},m.precision=m.sd=function(e){var t,r,n;if(void 0!==e&&!!e!==e&&1!==e&&0!==e)throw Error(l+e);if(t=w(this)+1,r=7*(n=this.d.length-1)+1,n=this.d[n]){for(;n%10==0;n/=10)r--;for(n=this.d[0];n>=10;
1n/=10)r++}return e&&t>r?t:r},m.squareRoot=m.sqrt=function(){var e,t,r,n,i,s,a,l=this.constructor;if(this.s<1){if(!this.s)return new l(0);throw Error(u+"NaN")}for(e=w(this),o=!1,0==(i=Math.sqrt(+this))||i==1/0?(((t=y(this.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=f((e+1)/2)-(e<0||e%2),n=new l(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):n=new l(i.toString()),i=a=(r=l.precision)+3;;)if(n=(s=n).plus(A(this,s,a+2)).times(.5),y(s.d).slice(0,a)===(t=y(n.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(_(s,r+1,0),s.times(s).eq(this)){n=s;break}}else if("9999"!=t)break;a+=4}return o=!0,_(n,r)},m.times=m.mul=function(e){var t,r,n,i,s,a,u,l,c,f=this.constructor,d=this.d,h=(e=new f(e)).d;if(!this.s||!e.s)return new f(0);for(e.s*=this.s,r=this.e+e.e,(l=d.length)<(c=h.length)&&(s=d,d=h,h=s,a=l,l=c,c=a),s=[],n=a=l+c;n--;)s.push(0);for(n=c;--n>=0;){for(t=0,i=l+n;i>n;)u=s[i]+h[n]*d[i-n-1]+t,s[i--]=u%1e7|0,t=u/1e7|0;s[i]=(s[i]+t)%1e7|0}for(;!s[--a];)s.pop();return t?++r:s.shift(),e.d=s,e.e=r,o?_(e,f.precision):e},m.toDecimalPlaces=m.todp=function(e,t){var r=this,n=r.constructor;
1return(r=new n(r),void 0===e)?r:(b(e,0,1e9),void 0===t?t=n.rounding:b(t,0,8),_(r,e+w(r)+1,t))},m.toExponential=function(e,t){var r,n=this,i=n.constructor;return void 0===e?r=I(n,!0):(b(e,0,1e9),void 0===t?t=i.rounding:b(t,0,8),r=I(n=_(new i(n),e+1,t),!0,e+1)),r},m.toFixed=function(e,t){var r,n,i=this.constructor;return void 0===e?I(this):(b(e,0,1e9),void 0===t?t=i.rounding:b(t,0,8),r=I((n=_(new i(this),e+w(this)+1,t)).abs(),!1,e+w(n)+1),this.isneg()&&!this.isZero()?"-"+r:r)},m.toInteger=m.toint=function(){var e=this.constructor;return _(new e(this),w(this)+1,e.rounding)},m.toNumber=function(){return+this},m.toPower=m.pow=function(e){var t,r,n,i,a,l,c=this,d=c.constructor,h=+(e=new d(e));if(!e.s)return new d(s);if(!(c=new d(c)).s){if(e.s<1)throw Error(u+"Infinity");return c}if(c.eq(s))return c;if(n=d.precision,e.eq(s))return _(c,n);if(l=(t=e.e)>=(r=e.d.length-1),a=c.s,l){if((r=h<0?-h:h)<=0x1fffffffffffff){for(i=new d(s),t=Math.ceil(n/7+4),o=!1;r%2&&S((i=i.times(c)).d,t),0!==(r=f(r/2));)S((c=c.times(c)).d,t);return o=!0,e.s<0?new d(s).div(i):_(i,n)}}else if(a<0)throw Error(u+"NaN");return a=a<0&&1&e.d[Math.max(t,r)]?-1:1,c.s=1,o=!1,i=e.times(M(c,n+12)),o=!0,(i=v(i)).s=a,i},m.toPrecision=function(e,t){var r,n,i=this,s=i.constructor;return void 0===e?(r=w(i),n=I(i,r<=s.toExpNeg||r>=s.toExpPos)):(b(e,1,1e9),void 0===t?t=s.rounding:b(t,0,8),r=w(i=_(new s(i),e,t)),n=I(i,e<=r||r<=s.toExpNeg,e)),n},m.toSignificantDigits=m.tosd=function(e,t){var r=this.constructor;return void 0===e?(e=r.precision,t=r.rounding):(b(e,1,1e9),void 0===t?t=r.rounding:b(t,0,8)),_(new r(this),e,t)},m.toString=m.valueOf=m.val=m.toJSON=function(){var e=w(this),t=this.constructor;return I(this,e<=t.toExpNeg||e>=t.toExpPos)};var A=function(){function e(e,t){var r,n=0,i=e.length;for(e=e.slice();i--;)r=e[i]*t+n,e[i]=r%1e7|0,n=r/1e7|0;return n&&e.unshift(n),e}function t(e,t,r,n){var i,s;if(r!=n)s=r>n?1:-1;else for(i=s=0;i<r;i++)if(e[i]!=t[i]){s=e[i]>t[i]?1:-1;break}return s}function r(e,t,r){for(var n=0;r--;)e[r]-=n,n=+(e[r]<t[r]),e[r]=1e7*n+e[r]-t[r];for(;!e[0]&&e.length>1;)e.shift()}return function(n,i,s,a){var o,l,c,f,d,h,p,m,g,b,y,A,v,E,x,M,B,C,I=n.constructor,S=n.s==i.s?1:-1,D=n.d,O=i.d;if(!n.s)return new I(n);if(!i.s)throw Error(u+"Division by zero");for(c=0,l=n.e-i.e,B=O.length,x=D.length,m=(p=new I(S)).d=[];O[c]==(D[c]||0);)++c;if(O[c]>(D[c]||0)&&--l,(A=null==s?s=I.precision:a?s+(w(n)-w(i))+1:s)<0)return new I(0);if(A=A/7+2|0,c=0,1==B)for(f=0,O=O[0],A++;(c<x||f)&&A--;c++)v=1e7*f+(D[c]||0),m[c]=v/O|0,f=v%O|0;else{for((f=1e7/(O[0]+1)|0)>1&&(O=e(O,f),D=e(D,f),B=O.length,x=D.length),E=B,b=(g=D.slice(0,B)).length;b<B;)g[b++]=0;(C=O.slice()).unshift(0),M=O[0],O[1]>=1e7/2&&++M;do f=0,(o=t(O,g,B,b))<0?(y=g[0],B!=b&&(y=1e7*y+(g[1]||0)),(f=y/M|0)>1?(f>=1e7&&(f=1e7-1),h=(d=e(O,f)).length,b=g.length,1==(o=t(d,g,h,b))&&(f--,r(d,B<h?C:O,h))):(0==f&&(o=f=1),d=O.
1slice()),(h=d.length)<b&&d.unshift(0),r(g,d,b),-1==o&&(b=g.length,(o=t(O,g,B,b))<1&&(f++,r(g,B<b?C:O,b))),b=g.length):0===o&&(f++,g=[0]),m[c++]=f,o&&g[0]?g[b++]=D[E]||0:(g=[D[E]],b=1);while((E++<x||void 0!==g[0])&&A--)}return m[0]||m.shift(),p.e=l,_(p,a?s+w(p)+1:s)}}();function v(e,t){var r,n,i,a,u,l=0,f=0,h=e.constructor,p=h.precision;if(w(e)>16)throw Error(c+w(e));if(!e.s)return new h(s);for(null==t?(o=!1,u=p):u=t,a=new h(.03125);e.abs().gte(.1);)e=e.times(a),f+=5;for(u+=Math.log(d(2,f))/Math.LN10*2+5|0,r=n=i=new h(s),h.precision=u;;){if(n=_(n.times(e),u),r=r.times(++l),y((a=i.plus(A(n,r,u))).d).slice(0,u)===y(i.d).slice(0,u)){for(;f--;)i=_(i.times(i),u);return h.precision=p,null==t?(o=!0,_(i,p)):i}i=a}}function w(e){for(var t=7*e.e,r=e.d[0];r>=10;r/=10)t++;return t}function E(e,t,r){if(t>e.LN10.sd())throw o=!0,r&&(e.precision=r),Error(u+"LN10 precision limit exceeded");return _(new e(e.LN10),t)}function x(e){for(var t="";e--;)t+="0";return t}function M(e,t){var r,n,i,a,l,c,f,d,h,p=1,m=e,g=m.d,b=m.constructor,v=b.precision;if(m.s<1)throw Error(u+(m.s?"NaN":"-Infinity"));if(m.eq(s))return new b(0);if(null==t?(o=!1,d=v):d=t,m.eq(10))return null==t&&(o=!0),E(b,d);if(b.precision=d+=10,n=(r=y(g)).charAt(0),!(15e14>Math.abs(a=w(m))))return f=E(b,d+2,v).times(a+""),m=M(new b(n+"."+r.slice(1)),d-10).plus(f),b.precision=v,null==t?(o=!0,_(m,v)):m;for(;n<7&&1!=n||1==n&&r.charAt(1)>3;)n=(r=y((m=m.times(e)).d)).charAt(0),p++;for(a=w(m),n>1?(m=new b("0."+r),a++):m=new b(n+"."+r.slice(1)),c=l=m=A(m.minus(s),m.plus(s),d),h=_(m.times(m),d),i=3;;){if(l=_(l.times(h),d),y((f=c.plus(A(l,new b(i),d))).d).slice(0,d)===y(c.d).slice(0,d))return c=c.times(2),0!==a&&(c=c.plus(E(b,d+2,v).times(a+""))),c=A(c,new b(p),d),b.precision=v,null==t?(o=!0,_(c,v)):c;c=f,i+=2}}function B(e,t){var r,n,i;for((r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),n=0;48===t.charCodeAt(n);)++n;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(n,i)){if(i-=n,e.e=f((r=r-n-1)/7),e.d=[],n=(r+1)%7,r<0&&(n+=7),n<i){for(n&&e.d.push(+t.slice(0,n)),i-=7;n<i;)e.d.push(+t.slice(n,n+=7));n=7-(t=t.slice(n)).length}else n-=i;for(;n--;)t+="0";if(e.d.push(+t),o&&(e.e>p||e.e<-p))throw Error(c+r)}else e.s=0,e.e=0,e.d=[0];return e}function _(e,t,r){var n,i,s,a,u,l,h,m,g=e.d;for(a=1,s=g[0];s>=10;s/=10)a++;if((n=t-a)<0)n+=7,i=t,h=g[m=0];else{if((m=Math.ceil((n+1)/7))>=(s=g.length))return e;for(a=1,h=s=g[m];s>=10;s/=10)a++;n%=7,i=n-7+a}if(void 0!==r&&(u=h/(s=d(10,a-i-1))%10|0,l=t<0||void 0!==g[m+1]||h%s,l=r<4?(u||l)&&(0==r||r==(e.s<0?3:2)):u>5||5==u&&(4==r||l||6==r&&(n>0?i>0?h/d(10,a-i):0:g[m-1])%10&1||r==(e.s<0?8:7))),t<1||!g[0])return l?(s=w(e),g.length=1,t=t-s-1,g[0]=d(10,(7-t%7)%7),e.e=f(-t/7)||0):(g.length=1,g[0]=e.e=e.s=0),e;if(0==n?(g.length=m,s=1,m--):(g.length=m+1,s=d(10,7-n),g[m]=i>0?(h/d(10,a-i)%d(10,i)|0)*s:0),l)for(;;)if(0==m){1e7==(g[0]+=s)&&(g[0]=1,++e.e);break}else{if(g[m]+=s,1e7!=g[m])break;g[m--]=0,s=1}for(n=g.length;0===g[--n];)g.pop();if(o&&(e.e>p||e.e<-p))throw Error(c+w(e));return e}function C(e,t){var r,n,i,s,a,u,l,c,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),o?_(t,p):t;if(l=e.d,d=t.d,n=t.e,c=e.e,l=l.slice(),a=c-n){for((f=a<0)?(r=l,a=-a,u=d.length):(r=d,n=c,u=l.length),a>(i=Math.max(Math.ceil(p/7),u)+2)&&(a=i,r.length=1),r.reverse(),i=a;i--;)r.push(0);r.reverse()}else{for((f=(i=l.length)<(u=d.length))&&(u=i),i=0;i<u;i++)if(l[i]!=d[i]){f=l[i]<d[i];break}a=0}for(f&&(r=l,l=d,d=r,t.s=-t.s),u=l.length,i=d.length-u;i>0;--i)l[u++]=0;for(i=d.length;i>a;){if(l[--i]<d[i]){for(s=i;s&&0===l[--s];)l[s]=1e7-1;--l[s],l[i]+=1e7}l[i]-=d[i]}for(;0===l[--u];)l.pop();for(;0===l[0];l.shift())--n;return l[0]?(t.d=l,t.e=n,o?_(t,p):t):new h(0)}function I(e,t,r){var n,i=w(e),s=y(e.d),a=s.length;return t?(r&&(n=r-a)>0?s=s.charAt(0)+"."+s.slice(1)+x(n):a>1&&(s=s.charAt(0)+"."+s.slice(1)),s=s+(i<0?"e":"e+")+i):i<0?(s="0."+x(-i-1)+s,r&&(n=r-a)>0&&(s+=x(n))):i>=a?(s+=x(i+1-a),r&&(n=r-i-1)>0&&(s=s+"."+x(n))):((n=i+1)<a&&(s=s.slice(0,n)+"."+s.slice(n)),r&&(n=r-a)>0&&(i+1===a&&(s+="."),s+=x(n))),e.s<0?"-"+s:s}function S(e,t){if(e.length>t)return e.length=t,!0}function D(e){if(!e||"object"!=typeof e)throw Error(u+"Object expected");var t,r,n,i=["precision",1,1e9,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(n=e[r=i[t]]))if(f(n)===n&&n>=i[t+1]&&n<=i[t+2])this[r]=n;else throw Error(l+r+": "+n);if(void 0!==(n=e[r="LN10"]))if(n==Math.LN10)this[r]=new this(n);else throw Error(l+r+": "+n);return this}(a=function e(t){var r,n,i;function s(e){if(!(this instanceof s))return new s(e);if(this.constructor=s,e instanceof s){this.s=e.s,this.e=e.e,this.d=(e=e.d)?e.slice():e;return}if("number"==typeof e){if(0*e!=0)throw Error(l+e);if(e>0)this.s=1;else if(e<0)e=-e,this.s=-1;else{this.s=0,this.e=0,this.d=[0];return}if(e===~~e&&e<1e7){this.e=0,this.d=[e];return}return B(this,e.toString())}if("string"!=typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),this.s=-1):this.s=1,h.test(e))B(this,e);else throw Error(l+e)}if(s.prototype=m,s.ROUND_UP=0,s.ROUND_DOWN=1,s.ROUND_CEIL=2,s.ROUND_FLOOR=3,s.ROUND_HALF_UP=4,s.ROUND_HALF_DOWN=5,s.ROUND_HALF_EVEN=6,s.ROUND_HALF_CEIL=7,s.ROUND_HALF_FLOOR=8,s.clone=e,s.config=s.set=D,void 0===t&&(t={}),t)for(r=0,i=["precision","rounding","toExpNeg","toExpPos","LN10"];r<i.length;)t.hasOwnProperty(n=i[r++])||(t[n]=this[n]);return s.config(t),s}(a)).default=a.Decimal=a,s=new a(1),void 0!==(n=(function(){return a}).call(t,r,t,e))&&(e.exports=n)}(0)},9428:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(3488),i=r(70030);function s(e,t){let{chainId:r,...s}=t,a=e.getClient({chainId:r});return(0,i.T)(a,n.J,"readContract")(s)}},9775:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(14493),i=r(69330),s=r(60367),a=r(13861),o=r(54335),u=r(67622),l=r(41052),c=r(81896),f=r(32160),d=r(7612),h=r(34524),p=r(3488);async function m(e,t){let{blockNumber:r,blockTag:m,coinType:g,name:b,gatewayUrls:y,strict:A}=t,{chain:v}=e,w=(()=>
1{if(t.universalResolverAddress)return t.universalResolverAddress;if(!v)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.M)({blockNumber:r,chain:v,contract:"ensUniversalResolver"})})(),E=v?.ensTlds;if(E&&!E.some(e=>b.endsWith(e)))return null;try{let t=(0,s.p)({abi:n.Rm,functionName:"addr",...null!=g?{args:[(0,f.k)(b),BigInt(g)]}:{args:[(0,f.k)(b)]}}),a={address:w,abi:n.Ag,functionName:"resolve",args:[(0,u.nj)((0,d.F)(b)),t,y??[c.J]],blockNumber:r,blockTag:m},l=(0,h.T)(e,p.J,"readContract"),A=await l(a);if("0x"===A[0])return null;let v=(0,i.e)({abi:n.Rm,args:null!=g?[(0,f.k)(b),BigInt(g)]:void 0,functionName:"addr",data:A[0]});if("0x"===v||"0x00"===(0,o.B)(v))return null;return v}catch(e){if(A)throw e;if((0,l.J)(e,"resolve"))return null;throw e}}},10231:(e,t,r)=>{"use strict";async function n(e){return new Promise(t=>setTimeout(t,e))}r.d(t,{u:()=>n})},13378:(e,t,r)=>{"use strict";r.d(t,{U:()=>P});var n=r(31461);let i=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,s=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,a=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,o=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,u=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,l=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,c=/^receive\(\) external payable$/,f=new Set(["indexed"]),d=new Set(["calldata","memory","storage"]);
vendor: 6,694 bytes, line 1
1class h extends Error{constructor(e,t={}){let r=t.cause instanceof h?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof h&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"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=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class p extends h{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 m extends h{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"})}}class g extends h{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class b extends h{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 y extends h{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class A extends h{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class v extends h{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"})}}class w extends h{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class E extends h{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class x extends h{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"})}}class M extends h{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"})}}class B extends h{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 _=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}]]),C=/^(?<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$_]*))?$/,I=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,S=/^u?int$/;function D(e,t){var r,i;let s,a=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(_.has(a))return _.get(a);let o=n.wj.test(e),u=(0,n.Yv)(o?I:C,e);if(!u)throw new g({param:e});if(u.name&&("address"===(r=u.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||n.BD.test(r)||n.Ge.test(r)||F.test(r)))throw new b({param:e,name:u.name});let l=u.name?{name:u.name}:{},c="indexed"===u.modifier?{indexed:!0}:{},f=t?.structs??{},h={};
1if(o){s="tuple";let e=O(u.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(D(e[n],{structs:f}));h={components:t}}else if(u.type in f)s="tuple",h={components:f[u.type]};else if(S.test(u.type))s=`${u.type}256`;else if(s=u.type,t?.type!=="struct"&&!N(s))throw new m({type:s});if(u.modifier){if(!t?.modifiers?.has?.(u.modifier))throw new y({param:e,type:t?.type,modifier:u.modifier});if(d.has(u.modifier)&&(i=s,!u.array&&"bytes"!==i&&"string"!==i&&"tuple"!==i))throw new A({param:e,type:t?.type,modifier:u.modifier})}let p={type:`${s}${u.array??""}`,...l,...c,...h};return _.set(a,p),p}function O(e,t=[],r="",n=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===n?O(a,[...t,r.trim()]):O(a,t,`${r}${i}`,n);case"(":return O(a,t,`${r}${i}`,n+1);case")":return O(a,t,`${r}${i}`,n-1);default:return O(a,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new B({current:r,depth:n});return t.push(r.trim()),t}function N(e){return"address"===e||"bool"===e||"function"===e||"string"===e||n.BD.test(e)||n.Ge.test(e)}let F=/^(?: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)$/,R=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function P(e){let t=function(e){let t={},r=e.length;for(let i=0;i<r;i++){let r=e[i];if(!o.test(r))continue;let s=(0,n.Yv)(o,r);if(!s)throw new w({signature:r,type:"struct"});let a=s.properties.split(";"),u=[],l=a.length;for(let e=0;e<l;e++){let t=a[e].trim();if(!t)continue;let r=D(t,{type:"struct"});u.push(r)}if(!u.length)throw new x({signature:r});t[s.name]=u}let i={},s=Object.entries(t),a=s.length;for(let e=0;e<a;e++){let[r,a]=s[e];i[r]=function e(t,r,i=new Set){let s=[],a=t.length;for(let o=0;o<a;o++){let a=t[o];if(n.wj.test(a.type))s.push(a);else{let t=(0,n.Yv)(R,a.type);if(!t?.type)throw new v({abiParameter:a});let{array:o,type:u}=t;if(u in r){if(i.has(u))throw new M({type:u});s.push({...a,type:`tuple${o??""}`,components:e(r[u]??[],r,new Set([...i,u]))})}else if(N(u))s.push(a);else throw new p({type:u})}}return s}(a,t)}return i}(e),r=[],h=e.length;for(let p=0;p<h;p++){let h=e[p];!o.test(h)&&r.push(function(e,t={}){if(a.test(e))return function(e,t={}){let r=(0,n.Yv)(a,e);if(!r)throw new w({signature:e,type:"function"});let i=O(r.parameters),s=[],o=i.length;for(let e=0;e<o;e++)s.push(D(i[e],{modifiers:d,structs:t,type:"function"}));let u=[];if(r.returns){let e=O(r.returns),n=e.length;for(let r=0;r<n;r++)u.push(D(e[r],{modifiers:d,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:s,outputs:u}}(e,t);if(s.test(e))return function(e,t={}){let r=(0,n.Yv)(s,e);if(!r)throw new w({signature:e,type:"event"});let i=O(r.parameters),a=[],o=i.length;for(let e=0;e<o;e++)a.push(D(i[e],{modifiers:f,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:a}}(e,t);if(i.test(e))return function(e,t={}){let r=(0,n.Yv)(i,e);if(!r)throw new w({signature:e,type:"error"});let s=O(r.parameters),a=[],o=s.length;for(let e=0;e<o;e++)a.push(D(s[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:a}}(e,t);if(u.test(e))return function(e,t={}){let r=(0,n.Yv)(u,e);if(!r)throw new w({signature:e,type:"constructor"});let i=O(r.parameters),s=[],a=i.length;for(let e=0;e<a;e++)s.push(D(i[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:s}}(e,t);if(l.test(e))return function(e){let t=(0,n.Yv)(l,e);if(!t)throw new w({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}(e);if(c.test(e))return{type:"receive",stateMutability:"payable"};throw new E({signature:e})}(h,t))}return r}},13494:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(69432),i=r(35886);async function s(e,{hash:t}){let r=await e.request({method:"eth_getTransactionReceipt",params:[t]},{dedupe:!0});if(!r)throw new n.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||i.uL)(r)}},13558:(e,t,r)=>{"use strict";r.d(t,{A:()=>w});var n=r(27493),i=r(54335),s=r(1405),a=r(59742),o=r(70030),u=r(77136);function l(e){return"number"==typeof e?e:"wei"===e?0:Math.abs(u.pj[e])}var c=r(35109),f=r(6083);async function d(e,t){let{allowFailure:r=!0,chainId:n,contracts:i,...s}=t,a=e.getClient({chainId:n});return(0,o.T)(a,f.C,"multicall")({allowFailure:r,contracts:i,...s})}var h=r(9428);async function p(e,t){let{allowFailure:r=!0,blockNumber:n,blockTag:i,...s}=t,a=t.contracts;try{let t={};for(let[r,n]of a.entries()){let i=n.chainId??e.state.chainId;t[i]||(t[i]=[]),t[i]?.push({contract:n,index:r})}let o=(await Promise.all(Object.entries(t).map(([t,a])=>d(e,{...s,allowFailure:r,blockNumber:n,blockTag:i,chainId:Number.parseInt(t),contracts:a.map(({contract:e})=>e)}
1)))).flat(),u=Object.values(t).flatMap(e=>e.map(({index:e})=>e));return o.reduce((e,t,r)=>(e&&(e[u[r]]=t),e),[])}catch(s){if(s instanceof c.bG)throw s;let t=()=>a.map(t=>(0,h.J)(e,{...t,blockNumber:n,blockTag:i}));if(r)return(await Promise.allSettled(t())).map(e=>"fulfilled"===e.status?{result:e.value,status:"success"}:{error:e.reason,result:void 0,status:"failure"});return await Promise.all(t())}}async function m(e,t){let{address:r,blockNumber:u,blockTag:c,chainId:f,token:d,unit:h="ether"}=t;if(d)try{return await g(e,{balanceAddress:r,chainId:f,symbolType:"string",tokenAddress:d})}catch(t){if("ContractFunctionExecutionError"===t.name){let t=await g(e,{balanceAddress:r,chainId:f,symbolType:"bytes32",tokenAddress:d}),s=(0,n.IQ)((0,i.B)(t.symbol,{dir:"right"}));return{...t,symbol:s}}throw t}let p=e.getClient({chainId:f}),m=(0,o.T)(p,a.r,"getBalance"),b=await m(u?{address:r,blockNumber:u}:{address:r,blockTag:c}),y=e.chains.find(e=>e.id===f)??p.chain;return{decimals:y.nativeCurrency.decimals,formatted:(0,s.J)(b,l(h)),symbol:y.nativeCurrency.symbol,value:b}}async function g(e,t){let{balanceAddress:r,chainId:n,symbolType:i,tokenAddress:a,unit:o}=t,u={abi:[{type:"function",name:"balanceOf",stateMutability:"view",inputs:[{type:"address"}],outputs:[{type:"uint256"}]},{type:"function",name:"decimals",stateMutability:"view",inputs:[],outputs:[{type:"uint8"}]},{type:"function",name:"symbol",stateMutability:"view",inputs:[],outputs:[{type:i}]}],address:a}
1,[c,f,d]=await p(e,{allowFailure:!1,contracts:[{...u,functionName:"balanceOf",args:[r],chainId:n},{...u,functionName:"decimals",chainId:n},{...u,functionName:"symbol",chainId:n}]}),h=(0,s.J)(c??"0",l(o??f));return{decimals:f,formatted:h,symbol:d,value:c}}var b=r(62108),y=r(43484),A=r(18224),v=r(53031);function w(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:n,query:i={}}=r,s=(0,v.U)(r),a=(0,A.i)({config:s}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:n,...i}=t[1];if(!r)throw Error("address is required");return await m(e,{...i,address:r})??null},queryKey:function(e={}){return["balance",(0,b.xO)(e)]}(t)}}(s,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:a}),u=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,y.IT)({...i,...o,enabled:u})}},13649:(e,t,r)=>{"use strict";r.d(t,{y:()=>s});var n=r(27493),i=r(67622);async function s(e,{address:t,blockTag:r="latest",blockNumber:s}){let a=await e.request({method:"eth_getTransactionCount",params:[t,"bigint"==typeof s?(0,i.cK)(s):r]},{dedupe:!!s});return(0,n.ME)(a)}},13861:(e,t,r)=>{"use strict";r.d(t,{M:()=>i});var n=r(30445);function i({blockNumber:e,chain:t,contract:r}){let i=t?.contracts?.[r];if(!i)throw new n.rj({chain:t,contract:{name:r}});if(e&&i.blockCreated&&i.blockCreated>e)throw new n.rj({blockNumber:e,chain:t,contract:{name:r,blockCreated:i.blockCreated}});return i.address}},14493:(e,t,r)=>{"use strict";r.d(t,{Ag:()=>a,Rm:()=>l,SJ:()=>u,_:()=>c,b2:()=>i,oX:()=>o,v2:()=>n});let n=[{inputs:[{components:[{name:"target",type:"address"},{name:"allowFailure",type:"bool"},{name:"callData",type:"bytes"}],name:"calls",type:"tuple[]"}],name:"aggregate3",outputs:[{components:[{name:"success",type:"bool"},{name:"returnData",type:"bytes"}],name:"returnData",type:"tuple[]"}],stateMutability:"view",type:"function"}],i=[{name:"query",type:"function",stateMutability:"view",inputs:[{type:"tuple[]",name:"queries",components:[{type:"address",name:"sender"},{type:"string[]",name:"urls"},{type:"bytes",name:"data"}]}],outputs:[{type:"bool[]",name:"failures"},{type:"bytes[]",name:"responses"}]},{name:"HttpError",type:"error",inputs:[{type:"uint16",name:"status"},{type:"string",name:"message"}]}],s=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],a=[...s,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"},{name:"gateways",type:"string[]"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]}],o=[...s,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}],u=[{name:"text",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"key",type:"string"}],outputs:[{name:"",type:"string"}]}],l=[{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"}],outputs:[{name:"",type:"address"}]},{name:"addr",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes32"},{name:"coinType",type:"uint256"}],outputs:[{name:"",type:"bytes"}]}],c=[{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{name:"_signer",type:"address"},{name:"_hash",type:"bytes32"},{name:"_signature",type:"bytes"}],outputs:[{type:"bool"}],stateMutability:"nonpayable",type:"function",name:"isValidSig"}]},15071:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var n=r(55394),i=r(70030),s=r(62108),a=r(43484),o=r(18224),u=r(53031);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{address:l,query:c={}}=r,f=(0,u.U)(r),d=(0,o.i)({config:f}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{address:r,scopeKey:s,...a}=t[1];if(!r)throw Error("address is required");let{chainId:o,...u}={...a,address:r},l=e.getClient({chainId:o});return(0,i.T)(l,n.s,"getEnsName")(u)},queryKey:function(e={}){return["ensName",(0,s.xO)(e)]}(t)}}(f,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.IT)({...c,...h,enabled:p})}},15313:(e,t,r)=>{"use strict";r.d(t,{LX:()=>n,WN:()=>i,nP:()=>s});let n="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b
1602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",i="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe",s="0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848
1603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572"},16712:(e,t,r)=>{"use strict";r.d(t,{Q:()=>A});var n=r(19405),i=r(7441),s=r(39755),a=r(67622),o=r(44494),u=r(31942),l=r(69432);class c extends i.C{constructor(e,{account:t,docsPath:r,chain:n,data:i,gas:s,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:f,nonce:d,to:h,value:p}){super(e.shortMessage,{cause:e,docsPath:r,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Estimate Gas Arguments:",(0,l.aO)({from:t?.address,to:h,value:void 0!==p&&`${(0,o.c)(p)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:void 0!==a&&`${(0,u.Q)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,u.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==f&&`${(0,u.Q)(f)} gwei`,nonce:d})].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var f=r(42264),d=r(35020),h=r(7671),p=r(76743),m=r(25507),g=r(84062),b=r(82700),y=r(59742);async function A(e,t){let{account:r=e.account}=t,o=r?(0,n.J)(r):void 0;try{let{accessList:r,authorizationList:n,blobs:l,blobVersionedHashes:c,blockNumber:f,blockTag:d,data:A,gas:v,gasPrice:w,maxFeePerBlobGas:E,maxFeePerGas:x,maxPriorityFeePerGas:M,nonce:B,value:_,stateOverride:C,...I}=await (0,b.ft)(e,{...t,parameters:o?.type==="local"?void 0:["blobVersionedHashes"]}),S=("bigint"==typeof f?(0,a.cK)(f):void 0)||d,D=(0,m.yH)(C),O=await (async()=>I.to?I.to:n&&n.length>0?await (0,s.g)({authorization:n[0]}).catch(()=>{throw new i.C("`to` is required. Could not infer from `authorizationList`")}):void 0)();(0,g.c)(t);let N=e.chain?.formatters?.transactionRequest?.format,F=(N||p.Bv)({...(0,h.o)(I,{format:N}),from:o?.address,accessList:r,authorizationList:n,blobs:l,blobVersionedHashes:c,data:A,gas:v,gasPrice:w,maxFeePerBlobGas:E,maxFeePerGas:x,maxPriorityFeePerGas:M,nonce:B,to:O,value:_});function u(t){let{block:r,request:n,rpcStateOverride:i}=t;return e.request({method:"eth_estimateGas",params:i?[n,r??e.experimental_blockTag??"latest",i]:r?[n,r]:[n]})}let R=BigInt(await u({block:S,request:F,rpcStateOverride:D}));if(n){let t=await (0,y.r)(e,{address:F.from}),r=await Promise.all(n.map(async e=>{let{address:r}=e,n=await u({block:S,request:{authorizationList:void 0,data:A,from:o?.address,to:r,value:(0,a.cK)(t)},rpcStateOverride:D}).catch(()=>100000n);return 2n*BigInt(n)}));R+=r.reduce((e,t)=>e+t,0n)}return R}catch(r){throw function(e,{docsPath:t,...r}){return new c((()=>{let t=(0,d.l)(e,r);return t instanceof f.RM?e:t})(),{docsPath:t,...r})}(r,{...t,account:o,chain:e.chain})}}},17255:(e,t,r)=>{"use strict";r.d(t,{h:()=>s});var n=r(36444),i=r(81757);function s(e,t){if(!(0,i.P)(e,{strict:!1}))throw new n.M({address:e});if(!(0,i.P)(t,{strict:!1}))throw new n.M({address:t});return e.toLowerCase()===t.toLowerCase()}},18224:(e,t,r)=>{"use strict";function n(e){return e.state.chainId}r.d(t,{i:()=>a});var i=r(12115),s=r(53031);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.U)(e);return(0,i.useSyncExternalStore)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(e=>e.chainId,r)})(t,{onChange:e}),()=>n(t),()=>n(t))}},19373:(e,t,r)=>{"use strict";r.d(t,{I:()=>I});var n=r(50920),i=r(7165),s=r(39853),a=r(25910),o=r(73504),u=r(52020),l=class extends a.Q{constructor(e,t){super(),this.options=t,this.#e=e,this.#t=null,this.#r=(0,o.T)(),this.options.experimental_prefetchInRender||this.#r.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#e;#n=void 0;#i=void 0;#s=void 0;#a;#o;#r;#t;#u;#l;#c;#f;#d;#h;#p=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#n.addObserver(this),c(this.#n,this.options)?this.#m():this.updateResult(),this.#g())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return f(this.#n,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return f(this.#n,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#y(),this.#n.removeObserver(this)}setOptions(e,t){let r=this.options,n=this.#n;if(this.options=this.#e.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,u.Eh)(this.options.enabled,this.#n))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#A(),this.#n.setOptions(this.options),r._defaulted&&!(0,u.f8)(this.options,r)&&this.#e.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#n,observer:this});let i=this.hasListeners();i&&d(this.#n,n,this.options,r)&&this.#m(),this.updateResult(t),i&&(this.#n!==n||(0,u.Eh)(this.options.enabled,this.#n)!==(0,u.Eh)(r.enabled,this.#n)||(0,u.d2)(this.options.staleTime,this.#n)!==(0,u.d2)(r.staleTime,this.#n))&&this.#v();let s=this.#w();i&&(this.#n!==n||(0,u.Eh)(this.options.enabled,this.#n)!==(0,u.Eh)(r.enabled,this.#n)||s!==this.#h)&&this.#E(s)}getOptimisticResult(e){var t,r;let n=this.#e.getQueryCache().build(this.#e,e),i=this.createResult(n,e);return t=this,r=i,(0,u.f8)(t.getCurrentResult(),r)||(this.#s=i,this.#o=this.options,this.#a=this.#n.state),i}getCurrentResult(){return this.#s}trackResult(e,t){let r={};return Object.keys(e).forEach(n=>{Object.defineProperty(r,n,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(n),t?.(n),e[n])})}),r}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#n}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),r=this.#e.getQueryCache().build(this.#e,t);return r.fetch().then(()=>this.createResult(r,t))}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#s))}#m(e){this.#A();let t=this.#n.fetch(this.options,e);return e?.throwOnError||(t=t.catch(u.lQ)),t}#v(){this.#b();let e=(0,u.d2)(this.options.staleTime,this.#n);if(u.S$||this.#s.isStale||!(0,u.gn)(e))return;let t=(0,u.j3)(this.#s.dataUpdatedAt,e);this.#f=setTimeout(()=>{this.#s.isStale||this.updateResult()},t+1)}#w(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#n):this.options.refetchInterval)??!1}#E(e){this.#y(),this.#h=e,!u.S$&&!1!==(0,u.Eh)(this.options.enabled,this.#n)&&(0,u.gn)(this.#h)&&0!==this.#h&&(this.#d=setInterval(()=>
1{(this.options.refetchIntervalInBackground||n.m.isFocused())&&this.#m()},this.#h))}#g(){this.#v(),this.#E(this.#w())}#b(){this.#f&&(clearTimeout(this.#f),this.#f=void 0)}#y(){this.#d&&(clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let r,n=this.#n,i=this.options,a=this.#s,l=this.#a,f=this.#o,p=e!==n?e.state:this.#i,{state:m}=e,g={...m},b=!1;if(t._optimisticResults){let r=this.hasListeners(),a=!r&&c(e,t),o=r&&d(e,n,t,i);(a||o)&&(g={...g,...(0,s.k)(m.data,e.options)}),"isRestoring"===t._optimisticResults&&(g.fetchStatus="idle")}let{error:y,errorUpdatedAt:A,status:v}=g;if(t.select&&void 0!==g.data)if(a&&g.data===l?.data&&t.select===this.#u)r=this.#l;else try{this.#u=t.select,r=t.select(g.data),r=(0,u.pl)(a?.data,r,t),this.#l=r,this.#t=null}catch(e){this.#t=e}else r=g.data;if(void 0!==t.placeholderData&&void 0===r&&"pending"===v){let e;if(a?.isPlaceholderData&&t.placeholderData===f?.placeholderData)e=a.data;else if(e="function"==typeof t.placeholderData?t.placeholderData(this.#c?.state.data,this.#c):t.placeholderData,t.select&&void 0!==e)try{e=t.select(e),this.#t=null}catch(e){this.#t=e}void 0!==e&&(v="success",r=(0,u.pl)(a?.data,e,t),b=!0)}this.#t&&(y=this.#t,r=this.#l,A=Date.now(),v="error");let w="fetching"===g.fetchStatus,E="pending"===v,x="error"===v,M=E&&w,B=void 0!==r,_={status:v,fetchStatus:g.fetchStatus,isPending:E,isSuccess:"success"===v,isError:x,isInitialLoading:M,isLoading:M,data:r,dataUpdatedAt:g.dataUpdatedAt,error:y,errorUpdatedAt:A,failureCount:g.fetchFailureCount,failureReason:g.fetchFailureReason,errorUpdateCount:g.errorUpdateCount,isFetched:g.dataUpdateCount>0||g.errorUpdateCount>0,isFetchedAfterMount:g.dataUpdateCount>p.dataUpdateCount||g.errorUpdateCount>p.errorUpdateCount,isFetching:w,isRefetching:w&&!E,isLoadingError:x&&!B,isPaused:"paused"===g.fetchStatus,isPlaceholderData:b,isRefetchError:x&&B,isStale:h(e,t),refetch:this.refetch,promise:this.#r};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===_.status?e.reject(_.error):void 0!==_.data&&e.resolve(_.data)},r=()=>{t(this.#r=_.promise=(0,o.T)())},i=this.#r;switch(i.status){case"pending":e.queryHash===n.queryHash&&t(i);break;case"fulfilled":("error"===_.status||_.data!==i.value)&&r();break;case"rejected":("error"!==_.status||_.error!==i.reason)&&r()}}return _}updateResult(e){let t=this.#s,r=this.createResult(this.#n,this.options);if(this.#a=this.#n.state,this.#o=this.options,void 0!==this.#a.data&&(this.#c=this.#n),(0,u.f8)(r,t))return;this.#s=r;let n={};e?.listeners!==!1&&(()=>{if(!t)return!0;let{notifyOnChangeProps:e}=this.options,r="function"==typeof e?e():e;if("all"===r||!r&&!this.#p.size)return!0;let n=new Set(r??this.#p);return this.options.throwOnError&&n.add("error"),Object.keys(this.#s).some(e=>this.#s[e]!==t[e]&&n.has(e))})()&&(n.listeners=!0),this.#x({...n,...e})}#A(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#n)return;let t=this.#n;this.#n=e,this.#i=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#g()}#x(e){i.j.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#s)}),this.#e.getQueryCache().notify({query:this.#n,type:"observerResultsUpdated"})})}};function c(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&void 0===e.state.data&&("error"!==e.state.status||!1!==t.retryOnMount)||void 0!==e.state.data&&f(e,t,t.refetchOnMount)}function f(e,t,r){if(!1!==(0,u.Eh)(t.enabled,e)){let n="function"==typeof r?r(e):r;return"always"===n||!1!==n&&h(e,t)}return!1}function d(e,t,r,n){return(e!==t||!1===(0,u.Eh)(n.enabled,e))&&(!r.suspense||"error"!==e.state.status)&&h(e,r)}function h(e,t){return!1!==(0,u.Eh)(t.enabled,e)&&e.isStaleByTime((0,u.d2)(t.staleTime,e))}var p=r(12115),m=r(26715);r(95155);var g=p.createContext(function(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}()),b=()=>p.useContext(g),y=r(63768),A=(e,t)=>
1{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},v=e=>{p.useEffect(()=>{e.clearReset()},[e])},w=e=>{let{result:t,errorResetBoundary:r,throwOnError:n,query:i}=e;return t.isError&&!r.isReset()&&!t.isFetching&&i&&(0,y.G)(n,[t.error,i])},E=p.createContext(!1),x=()=>p.useContext(E);E.Provider;var M=e=>{e.suspense&&(void 0===e.staleTime&&(e.staleTime=1e3),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3)))},B=(e,t)=>e.isLoading&&e.isFetching&&!t,_=(e,t)=>e?.suspense&&t.isPending,C=(e,t,r)=>t.fetchOptimistic(e).catch(()=>{r.clearReset()});function I(e,t){return function(e,t,r){var n,s,a,o,l;let c=(0,m.jE)(r),f=x(),d=b(),h=c.defaultQueryOptions(e);null===(s=c.getDefaultOptions().queries)||void 0===s||null===(n=s._experimental_beforeQuery)||void 0===n||n.call(s,h),h._optimisticResults=f?"isRestoring":"optimistic",M(h),A(h,d),v(d);let g=!c.getQueryCache().get(h.queryHash),[E]=p.useState(()=>new t(c,h)),I=E.getOptimisticResult(h);if(p.useSyncExternalStore(p.useCallback(e=>{let t=f?()=>void 0:E.subscribe(i.j.batchCalls(e));return E.updateResult(),t},[E,f]),()=>E.getCurrentResult(),()=>E.getCurrentResult()),p.useEffect(()=>{E.setOptions(h,{listeners:!1})},[h,E]),_(h,I))throw C(h,E,d);if(w({result:I,errorResetBoundary:d,throwOnError:h.throwOnError,query:c.getQueryCache().get(h.queryHash)}))throw I.error;if(null===(o=c.getDefaultOptions().queries)||void 0===o||null===(a=o._experimental_afterQuery)||void 0===a||a.call(o,h,I),h.experimental_prefetchInRender&&!u.S$&&B(I,f)){let e=g?C(h,E,d):null===(l=c.getQueryCache().get(h.queryHash))||void 0===l?void 0:l.promise;null==e||e.catch(y.l).finally(()=>{E.updateResult()})}return h.notifyOnChangeProps?I:E.trackResult(I)}(e,l,t)}},20760:(e,t,r)=>{"use strict";r.d(t,{m:()=>o});var n=r(99702),i=r(79731),s=r(13423);let a="/docs/contract/encodeDeployData";function o(e){let{abi:t,args:r,bytecode:o}=e;if(!r||0===r.length)return o;let u=t.find(e=>"type"in e&&"constructor"===e.type);if(!u)throw new n.YW({docsPath:a});if(!("inputs"in u)||!u.inputs||0===u.inputs.length)throw new n.YF({docsPath:a});let l=(0,s.h)(u.inputs,r);return(0,i.aP)([o,l])}},20789:(e,t,r)=>{"use strict";r.d(t,{l:()=>i});var n=r(7441);class i extends n.C{constructor({blockHash:e,blockNumber:t}){let r="Block";e&&(r=`Block at hash "${e}"`),t&&(r=`Block at number "${t}"`),super(`${r} could not be found.`,{name:"BlockNotFoundError"})}}},21239:(e,t,r)=>{"use strict";r.d(t,{t:()=>s});var n=r(25910),i=r(52020),s=new class extends n.Q{#M=!0;#B;#_;constructor(){super(),this.#_=e=>{if(!i.S$&&window.addEventListener){let t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}}}onSubscribe(){this.#B||this.setEventListener(this.#_)}onUnsubscribe(){this.hasListeners()||(this.#B?.(),this.#B=void 0)}setEventListener(e){this.#_=e,this.#B?.(),this.#B=e(this.setOnline.bind(this))}setOnline(e){this.#M!==e&&(this.#M=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#M}}},21894:(e,t,r)=>{"use strict";r.d(t,{C:()=>n});class n extends Error{constructor(e,t={}){let r=(()=>{if(t.cause instanceof n){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&"details"in t.cause&&"string"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),i=t.cause instanceof n&&t.cause.docsPath||t.docsPath,s=`https://oxlib.sh${i??""}`;super([e||"An error occurred.",...t.metaMessages?["",...t.metaMessages]:[],...r||i?["",r?`Details: ${r}`:void 0,i?`See: ${s}`:void 0]:[]].filter(e=>"string"==typeof e).join("\n"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docs",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"}),this.cause=t.cause,this.details=r,this.docs=s,this.docsPath=i,this.shortMessage=e}walk(e){return function e(t,r){return r?.(t)?t:t&&"object"==typeof t&&"cause"in t&&t.cause?e(t.cause,r):r?null:t}(this,e)}}},23335:(e,t,r)=>{"use strict";r.d(t,{g:()=>a});var n=r(20789),i=r(67622),s=r(17327);async function a(e,{blockHash:t,blockNumber:r,blockTag:o=e.experimental_blockTag??"latest",includeTransactions:u}={}){let l=u??!1,c=void 0!==r?(0,i.cK)(r):void 0,f=null;if(!(f=t?await e.request({method:"eth_getBlockByHash",params:[t,l]},{dedupe:!0}):await e.request({method:"eth_getBlockByNumber",params:[c||o,l]},{dedupe:!!c})))throw new n.l({blockHash:t,blockNumber:r});return(e.chain?.formatters?.block?.format||s.$)(f)}},24573:(e,t,r)=>{"use strict";r.d(t,{O:()=>l,_:()=>u});var n=r(91836),i=r(34524),s=r(76654),a=r(23335),o=r(39112);async function u(e,t){return l(e,t)}async function l(e,t){let{block:r,chain:u=e.chain,request:l,type:c="eip1559"}=t||{},f=await (async()=>"function"==typeof u?.fees?.baseFeeMultiplier?u.fees.baseFeeMultiplier({block:r,client:e,request:l}):u?.fees?.baseFeeMultiplier??1.2)();if(f<1)throw new n.sM;
1let d=f.toString().split(".")[1]?.length??0,h=10**d,p=e=>e*BigInt(Math.ceil(f*h))/BigInt(h),m=r||await (0,i.T)(e,a.g,"getBlock")({});if("function"==typeof u?.fees?.estimateFeesPerGas){let t=await u.fees.estimateFeesPerGas({block:r,client:e,multiply:p,request:l,type:c});if(null!==t)return t}if("eip1559"===c){if("bigint"!=typeof m.baseFeePerGas)throw new n.pw;let t="bigint"==typeof l?.maxPriorityFeePerGas?l.maxPriorityFeePerGas:await (0,s.N)(e,{block:m,chain:u,request:l}),r=p(m.baseFeePerGas);return{maxFeePerGas:l?.maxFeePerGas??r+t,maxPriorityFeePerGas:t}}return{gasPrice:l?.gasPrice??p(await (0,i.T)(e,o.L,"getGasPrice")({}))}}},25507:(e,t,r)=>{"use strict";r.d(t,{yH:()=>l});var n=r(36444),i=r(58980),s=r(4805),a=r(81757),o=r(67622);function u(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:r})=>{if(66!==t.length)throw new i.NV({size:t.length,targetSize:66,type:"hex"});if(66!==r.length)throw new i.NV({size:r.length,targetSize:66,type:"hex"});return e[t]=r,e},{})}function l(e){if(!e)return;let t={};for(let{address:r,...i}of e){if(!(0,a.P)(r,{strict:!1}))throw new n.M({address:r});if(t[r])throw new s.Hi({address:r});t[r]=function(e){let{balance:t,nonce:r,state:n,stateDiff:i,code:a}=e,l={};if(void 0!==a&&(l.code=a),void 0!==t&&(l.balance=(0,o.cK)(t)),void 0!==r&&(l.nonce=(0,o.cK)(r)),void 0!==n&&(l.state=u(n)),void 0!==i){if(l.state)throw new s.ft;l.stateDiff=u(i)}return l}(i)}return t}},25910:(e,t,r)=>{"use strict";r.d(t,{Q:()=>n});var n=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},26715:(e,t,r)=>{"use strict";r.d(t,{Ht:()=>o,jE:()=>a});var n=r(12115),i=r(95155),s=n.createContext(void 0),a=e=>{let t=n.useContext(s);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},o=e=>{let{client:t,children:r}=e;return n.useEffect(()=>(t.mount(),()=>{t.unmount()}),[t]),(0,i.jsx)(s.Provider,{value:t,children:r})}},29065:(e,t,r)=>{"use strict";r.d(t,{h:()=>a});var n=r(31452),i=r(27493),s=r(80844);function a({r:e,s:t,to:r="hex",v:a,yParity:o}){let u=(()=>{if(0===o||1===o)return o;if(a&&(27n===a||28n===a||a>=35n))return+(a%2n===0n);throw Error("Invalid `v` or `yParity` value")})(),l=`0x${new n.secp256k1.Signature((0,i.uU)(e),(0,i.uU)(t)).toCompactHex()}${0===u?"1b":"1c"}`;return"hex"===r?l:(0,s.aT)(l)}},29505:(e,t,r)=>{"use strict";r.d(t,{C:()=>u});var n=r(79731),i=r(80844),s=r(67622),a=r(53369),o=r(24578);function u(e){let{chainId:t,nonce:r,to:u}=e,l=e.contractAddress??e.address,c=(0,o.S)((0,n.aP)(["0x05",(0,a.EQ)([t?(0,s.cK)(t):"0x",l,r?(0,s.cK)(r):"0x"])]));return"bytes"===u?(0,i.aT)(c):c}},30106:(e,t,r)=>{"use strict";r.d(t,{x:()=>a});var n=r(69432),i=r(67622),s=r(12914);async function a(e,{blockHash:t,blockNumber:r,blockTag:a,hash:o,index:u}){let l=a||"latest",c=void 0!==r?(0,i.cK)(r):void 0,f=null;if(o?f=await e.request({method:"eth_getTransactionByHash",params:[o]},{dedupe:!0}):t?f=await e.request({method:"eth_getTransactionByBlockHashAndIndex",params:[t,(0,i.cK)(u)]},{dedupe:!0}):(c||l)&&(f=await e.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[c||l,(0,i.cK)(u)]},{dedupe:!!c})),!f)throw new n.Kz({blockHash:t,blockNumber:r,blockTag:l,hash:o,index:u});return(e.chain?.formatters?.transaction?.format||s.uP)(f)}},31452:(e,t,r)=>{"use strict";r.d(t,{secp256k1:()=>eE});var n=r(98693),i=r(98984),s=r(19989);let a=BigInt(0),o=BigInt(1);function u(e,t=""){if("boolean"!=typeof e)throw Error((t&&`"${t}"`)+"expected boolean, got type="+typeof e);return e}function l(e,t,r=""){let n=(0,s.aY)(e),i=e?.length,a=void 0!==t;if(!n||a&&i!==t)throw Error((r&&`"${r}" `)+"expected Uint8Array"+(a?` of length ${t}`:"")+", got "+(n?`length=${i}`:`type=${typeof e}`));return e}function c(e){let t=e.toString(16);return 1&t.length?"0"+t:t}function f(e){if("string"!=typeof e)throw Error("hex string expected, got "+typeof e);return""===e?a:BigInt("0x"+e)}function d(e){return f((0,s.My)(e))}function h(e){return(0,s.DO)(e),f((0,s.My)(Uint8Array.from(e).reverse()))}function p(e,t){return(0,s.aT)(e.toString(16).padStart(2*t,"0"))}function m(e,t){return p(e,t).reverse()}function g(e,t,r){let n;if("string"==typeof t)try{n=(0,s.aT)(t)}catch(t){throw Error(e+" must be hex string or Uint8Array, cause: "+t)}else if((0,s.aY)(t))n=Uint8Array.from(t);else throw Error(e+" must be hex string or Uint8Array");let i=n.length;if("number"==typeof r&&i!==r)throw Error(e+" of length "+r+" expected, got "+i);return n}let b=e=>"bigint"==typeof e&&a<=e;function y(e){let t;for(t=0;e>a;e>>=o,t+=1);return t}let A=e=>(o<<BigInt(e))-o;function v(e,t,r={}){if(!e||"object"!=typeof e)throw Error("expected valid options object");function n(t,r,n){let i=e[t];if(n&&void 0===i)return;let s=typeof i;if(s!==r||null===i)throw Error(`param "${t}
1" is invalid: expected ${r}, got ${s}`)}Object.entries(t).forEach(([e,t])=>n(e,t,!1)),Object.entries(r).forEach(([e,t])=>n(e,t,!0))}function w(e){let t=new WeakMap;return(r,...n)=>{let i=t.get(r);if(void 0!==i)return i;let s=e(r,...n);return t.set(r,s),s}}let E=BigInt(0),x=BigInt(1),M=BigInt(2),B=BigInt(3),_=BigInt(4),C=BigInt(5),I=BigInt(7),S=BigInt(8),D=BigInt(9),O=BigInt(16);function N(e,t){let r=e%t;return r>=E?r:t+r}function F(e,t,r){let n=e;for(;t-- >E;)n*=n,n%=r;return n}function R(e,t){if(e===E)throw Error("invert: expected non-zero number");if(t<=E)throw Error("invert: expected positive modulus, got "+t);let r=N(e,t),n=t,i=E,s=x,a=x,o=E;for(;r!==E;){let e=n/r,t=n%r,u=i-a*e,l=s-o*e;n=r,r=t,i=a,s=o,a=u,o=l}if(n!==x)throw Error("invert: does not exist");return N(i,t)}function P(e,t,r){if(!e.eql(e.sqr(t),r))throw Error("Cannot find square root")}function k(e,t){let r=(e.ORDER+x)/_,n=e.pow(t,r);return P(e,n,t),n}function T(e,t){let r=(e.ORDER-C)/S,n=e.mul(t,M),i=e.pow(n,r),s=e.mul(t,i),a=e.mul(e.mul(s,M),i),o=e.mul(s,e.sub(a,e.ONE));return P(e,o,t),o}function L(e){if(e<B)throw Error("sqrt is not defined for small field");let t=e-x,r=0;for(;t%M===E;)t/=M,r++;let n=M,i=H(e);for(;1===q(i,n);)if(n++>1e3)throw Error("Cannot find square root: probably non-prime P");if(1===r)return k;let s=i.pow(n,t),a=(t+x)/M;return function(e,n){if(e.is0(n))return n;if(1!==q(e,n))throw Error("Cannot find square root");let i=r,o=e.mul(e.ONE,s),u=e.pow(n,t),l=e.pow(n,a);for(;!e.eql(u,e.ONE);){if(e.is0(u))return e.ZERO;let t=1,r=e.sqr(u);for(;!e.eql(r,e.ONE);)if(t++,r=e.sqr(r),t===i)throw Error("Cannot find square root");let n=x<<BigInt(i-t-1),s=e.pow(o,n);i=t,o=e.sqr(s),u=e.mul(u,o),l=e.mul(l,s)}return l}}let U=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function j(e,t,r=!1){let n=Array(t.length).fill(r?e.ZERO:void 0),i=t.reduce((t,r,i)=>e.is0(r)?t:(n[i]=t,e.mul(t,r)),e.ONE),s=e.inv(i);return t.reduceRight((t,r,i)=>e.is0(r)?t:(n[i]=e.mul(t,n[i]),e.mul(t,r)),s),n}function q(e,t){let r=(e.ORDER-x)/M,n=e.pow(t,r),i=e.eql(n,e.ONE),s=e.eql(n,e.ZERO),a=e.eql(n,e.neg(e.ONE));if(!i&&!s&&!a)throw Error("invalid Legendre symbol result");return i?1:s?0:-1}function Q(e,t){void 0!==t&&(0,s.Fe)(t);let r=void 0!==t?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function H(e,t,r=!1,n={}){let i,s,a,o;if(e<=E)throw Error("invalid field: expected ORDER > 0, got "+e);let u=!1;if("object"==typeof t&&null!=t){if(n.sqrt||r)throw Error("cannot specify opts in two arguments");t.BITS&&(s=t.BITS),t.sqrt&&(a=t.sqrt),"boolean"==typeof t.isLE&&(r=t.isLE),"boolean"==typeof t.modFromBytes&&(u=t.modFromBytes),o=t.allowedLengths}else"number"==typeof t&&(s=t),n.sqrt&&(a=n.sqrt);let{nBitLength:l,nByteLength:c}=Q(e,s);if(c>2048)throw Error("invalid field: expected ORDER of <= 2048 bytes");let f=Object.freeze({ORDER:e,isLE:r,BITS:l,BYTES:c,MASK:A(l),ZERO:E,ONE:x,allowedLengths:o,create:t=>N(t,e),isValid:t=>{if("bigint"!=typeof t)throw Error("invalid field element: expected bigint, got "+typeof t);return E<=t&&t<e},is0:e=>e===E,isValidNot0:e=>!f.is0(e)&&f.isValid(e),isOdd:e=>(e&x)===x,neg:t=>N(-t,e),eql:(e,t)=>e===t,sqr:t=>N(t*t,e),add:(t,r)=>N(t+r,e),sub:(t,r)=>N(t-r,e),mul:(t,r)=>N(t*r,e),pow:(e,t)=>(function(e,t,r){if(r<E)throw Error("invalid exponent, negatives unsupported");if(r===E)return e.ONE;if(r===x)return t;let n=e.ONE,i=t;for(;r>E;)r&x&&(n=e.mul(n,i)),i=e.sqr(i),r>>=x;return n})(f,e,t),div:(t,r)=>N(t*R(r,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>R(t,e),sqrt:a||(t=>{if(!i)i=e%_===B?k:e%S===C?T:e%O===D?function(e){let t=H(e),r=L(e),n=r(t,t.neg(t.ONE)),i=r(t,n),s=r(t,t.neg(n)),a=(e+I)/O;return(e,t)=>{let r=e.pow(t,a),o=e.mul(r,n),u=e.mul(r,i),l=e.mul(r,s),c=e.eql(e.sqr(o),t),f=e.eql(e.sqr(u),t);r=e.cmov(r,o,c),o=e.cmov(l,u,f);let d=e.eql(e.sqr(o),t),h=e.cmov(r,o,d);return P(e,h,t),h}}(e):L(e);return i(f,t)}),toBytes:e=>r?m(e,c):p(e,c),fromBytes:(t,n=!0)=>{if(o){if(!o.includes(t.length)||t.length>c)throw Error("Field.fromBytes: expected "+o+" bytes, got "+t.length);let e=new Uint8Array(c);e.set(t,r?0:e.length-t.length),t=e}if(t.length!==c)throw Error("Field.fromBytes: expected "+c+" bytes, got "+t.length);let i=r?h(t):d(t);if(u&&(i=N(i,e)),!n&&!f.isValid(i))throw Error("invalid field element: outside of range 0..ORDER");return i},invertBatch:e=>j(f,e),cmov:(e,t,r)=>r?t:e});return Object.freeze(f)}function G(e){if("bigint"!=typeof e)throw Error("field order must be bigint");return Math.ceil(e.toString(2).length/8)}function z(e){let t=G(e);return t+Math.ceil(t/2)}let J=BigInt(0),K=BigInt(1);function V(e,t){let r=t.negate();return e?r:t}function W(e,t){let r=j(e.Fp,t.map(e=>e.Z));return t.map((t,n)=>e.fromAffine(t.toAffine(r[n])))}function Z(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw Error("invalid window size, expected [1.."+t+"], got W="+e)}function Y(e,t){Z(e,t);let r=Math.ceil(t/e)+1,n=2**(e-1),i=2**e;return{windows:r,windowSize:n,mask:A(e),maxNumber:i,shiftBy:BigInt(e)}}function $(e,t,r){let{windowSize:n,mask:i,maxNumber:s,shiftBy:a}=r,o=Number(e&i),u=e>>a;o>n&&(o-=s,u+=K);let l=t*n,c=l+Math.abs(o)-1,f=0===o;return{nextN:u,offset:c,isZero:f,isNeg:o<0,isNegF:t%2!=0,offsetF:l}}let X=new WeakMap,ee=new WeakMap;function et(e){return ee.get(e)||1}function er(e){if(e!==J)throw Error("invalid wNAF")}class en{constructor(e,t){this.BASE=e.BASE,this.ZERO=e.ZERO,this.Fn=e.Fn,this.bits=t}_unsafeLadder(e,t,r=this.ZERO){let n=e;for(;t>J;)t&K&&(r=r.add(n)),n=n.double(),t>>=K;return r}precomputeWindow(e,t){let{windows:r,windowSize:n}=Y(t,this.bits),i=[],s=e,a=s;for(let e=0;e<r;e++){a=s,i.push(a);for(let e=1;e<n;e++)a=a.add(s),i.push(a);s=a.double()}return i}wNAF(e,t,r){if(!this.Fn.isValid(r))throw Error("invalid scalar");let n=this.ZERO,i=this.BASE,s=Y(e,this.bits);for(let e=0;e<s.windows;e++){let{nextN:a,offset:o,isZero:u,isNeg:l,isNegF:c,offsetF:f}=$(r,e,s);r=a,u?i=i.add(V(c,t[f])):n=n.add(V(l,t[o]))}return er(r),{p:n,f:i}
vendor: 4,580 bytes, line 1
1}wNAFUnsafe(e,t,r,n=this.ZERO){let i=Y(e,this.bits);for(let e=0;e<i.windows&&r!==J;e++){let{nextN:s,offset:a,isZero:o,isNeg:u}=$(r,e,i);if(r=s,!o){let e=t[a];n=n.add(u?e.negate():e)}}return er(r),n}getPrecomputes(e,t,r){let n=X.get(t);return n||(n=this.precomputeWindow(t,e),1!==e&&("function"==typeof r&&(n=r(n)),X.set(t,n))),n}cached(e,t,r){let n=et(e);return this.wNAF(n,this.getPrecomputes(n,e,r),t)}unsafe(e,t,r,n){let i=et(e);return 1===i?this._unsafeLadder(e,t,n):this.wNAFUnsafe(i,this.getPrecomputes(i,e,r),t,n)}createCache(e,t){Z(t,this.bits),ee.set(e,t),X.delete(e)}hasCache(e){return 1!==et(e)}}function ei(e,t,r){if(!t)return H(e,{isLE:r});if(t.ORDER!==e)throw Error("Field.ORDER must match order: Fp == p, Fn == n");return v(t,U.reduce((e,t)=>(e[t]="function",e),{ORDER:"bigint",MASK:"bigint",BYTES:"number",BITS:"number"})),t}let es=(e,t)=>(e+(e>=0?t:-t)/ed)/t;function ea(e){if(!["compact","recovered","der"].includes(e))throw Error('Signature format must be "compact", "recovered", or "der"');return e}function eo(e,t){let r={};for(let n of Object.keys(t))r[n]=void 0===e[n]?t[n]:e[n];return u(r.lowS,"lowS"),u(r.prehash,"prehash"),void 0!==r.format&&ea(r.format),r}class eu extends Error{constructor(e=""){super(e)}}let el={Err:eu,_tlv:{encode:(e,t)=>{let{Err:r}=el;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(1&t.length)throw new r("tlv.encode: unpadded data");let n=t.length/2,i=c(n);if(i.length/2&128)throw new r("tlv.encode: long form length too big");let s=n>127?c(i.length/2|128):"";return c(e)+s+i+t},decode(e,t){let{Err:r}=el,n=0;if(e<0||e>256)throw new r("tlv.encode: wrong tag");if(t.length<2||t[n++]!==e)throw new r("tlv.decode: wrong tlv");let i=t[n++],s=0;if(128&i){let e=127&i;if(!e)throw new r("tlv.decode(long): indefinite length not supported");if(e>4)throw new r("tlv.decode(long): byte length is too big");let a=t.subarray(n,n+e);if(a.length!==e)throw new r("tlv.decode: length bytes not complete");if(0===a[0])throw new r("tlv.decode(long): zero leftmost byte");for(let e of a)s=s<<8|e;if(n+=e,s<128)throw new r("tlv.decode(long): not minimal encoding")}else s=i;let a=t.subarray(n,n+s);if(a.length!==s)throw new r("tlv.decode: wrong value length");return{v:a,l:t.subarray(n+s)}}},_int:{encode(e){let{Err:t}=el;if(e<ec)throw new t("integer: negative integers are not allowed");let r=c(e);if(8&Number.parseInt(r[0],16)&&(r="00"+r),1&r.length)throw new t("unexpected DER parsing assertion: unpadded hex");return r},decode(e){let{Err:t}=el;if(128&e[0])throw new t("invalid signature integer: negative");if(0===e[0]&&!(128&e[1]))throw new t("invalid signature integer: unnecessary leading zero");return d(e)}},toSig(e){let{Err:t,_int:r,_tlv:n}=el,i=g("signature",e),{v:s,l:a}=n.decode(48,i);if(a.length)throw new t("invalid signature: left bytes after parsing");let{v:o,l:u}=n.decode(2,s),{v:l,l:c}=n.decode(2,u);if(c.length)throw new t("invalid signature: left bytes after parsing");return{r:r.decode(o),s:r.decode(l)}},hexFromSig(e){let{_tlv:t,_int:r}=el,n=t.encode(2,r.encode(e.r)),i=t.encode(2,r.encode(e.s));return t.encode(48,n+i)}},ec=BigInt(0),ef=BigInt(1),ed=BigInt(2),eh=BigInt(3),ep=BigInt(4);function em(e,t){let r,{BYTES:n}=e;if("bigint"==typeof t)r=t;else{let i=g("private key",t);try{r=e.fromBytes(i)}catch(e){throw Error(`invalid private key: expected ui8a of size ${n}, got ${typeof t}`)}}if(!e.isValidNot0(r))throw Error("invalid private key: out of range [1..N-1]");return r}function eg(e){return Uint8Array.of(e?2:3)}function eb(e,t){return{secretKey:t.BYTES,publicKey:1+e.BYTES,publicKeyUncompressed:1+2*e.BYTES,publicKeyHasPrefix:!0,signature:2*t.BYTES}}let ey={p:BigInt("0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f"),n:BigInt("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),h:BigInt(1),a:BigInt(0),b:BigInt(7),Gx:BigInt("0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798"),Gy:BigInt("0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8")},eA={beta:BigInt("0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee"),basises:[[BigInt("0x3086d221a7d46bcde86c90e49284eb15"),-BigInt("0xe4437ed6010e88286f547fa90abfe4c3")],[BigInt("0x114ca50f7a8e2f3f657c1108d9d44cfd8"),BigInt("0x3086d221a7d46bcde86c90e49284eb15")]]},ev=BigInt(2),ew=H(ey.p,{sqrt:function(e){let t=ey.p,r=BigInt(3),n=BigInt(6),i=BigInt(11),s=BigInt(22),a=BigInt(23),o=BigInt(44),u=BigInt(88),l=e*e*e%t,c=l*l*e%t,f=F(c,r,t)*c%t,d=F(f,r,t)*c%t,h=F(d,ev,t)*l%t,p=F(h,i,t)*h%t,m=F(p,s,t)*p%t,g=F(m,o,t)*m%t,b=F(g,u,t)*g%t,y=F(b,o,t)*m%t,A=F(y,r,t)*c%t,v=F(A,a,t)*p%t,w=
vendor: 6,150 bytes, line 1
1F(v,n,t)*l%t,E=F(w,ev,t);if(!ew.eql(ew.sqr(E),e))throw Error("Cannot find square root");return E}}),eE=function(e,t){let r=t=>(function(e){let{CURVE:t,curveOpts:r,hash:n,ecdsaOpts:a}=function(e){let{CURVE:t,curveOpts:r}=function(e){let t={a:e.a,b:e.b,p:e.Fp.ORDER,n:e.n,h:e.h,Gx:e.Gx,Gy:e.Gy},r=e.Fp,n=e.allowedPrivateKeyLengths?Array.from(new Set(e.allowedPrivateKeyLengths.map(e=>Math.ceil(e/2)))):void 0,i={Fp:r,Fn:H(t.n,{BITS:e.nBitLength,allowedLengths:n,modFromBytes:e.wrapPrivateKey}),allowInfinityPoint:e.allowInfinityPoint,endo:e.endo,isTorsionFree:e.isTorsionFree,clearCofactor:e.clearCofactor,fromBytes:e.fromBytes,toBytes:e.toBytes};return{CURVE:t,curveOpts:i}}(e),n={hmac:e.hmac,randomBytes:e.randomBytes,lowS:e.lowS,bits2int:e.bits2int,bits2int_modN:e.bits2int_modN};return{CURVE:t,curveOpts:r,hash:e.hash,ecdsaOpts:n}}(e),o=function(e,t,r={}){(0,s.sd)(t),v(r,{},{hmac:"function",lowS:"boolean",randomBytes:"function",bits2int:"function",bits2int_modN:"function"});let n=r.randomBytes||s.po,a=r.hmac||((e,...r)=>(0,i.w)(t,e,(0,s.Id)(...r))),{Fp:o,Fn:u}=e,{ORDER:c,BITS:f}=u,{keygen:y,getPublicKey:w,getSharedSecret:E,utils:M,lengths:B}=function(e,t={}){let{Fn:r}=e,n=t.randomBytes||s.po,i=Object.assign(eb(e.Fp,r),{seed:z(r.ORDER)});function a(e){try{return!!em(r,e)}catch(e){return!1}}function o(e=n(i.seed)){return function(e,t,r=!1){let n=e.length,i=G(t),s=z(t);if(n<16||n<s||n>1024)throw Error("expected "+s+"-1024 bytes of input, got "+n);let a=N(r?h(e):d(e),t-x)+x;return r?m(a,i):p(a,i)}(l(e,i.seed,"seed"),r.ORDER)}function u(t,n=!0){return e.BASE.multiply(em(r,t)).toBytes(n)}function c(t){if("bigint"==typeof t)return!1;if(t instanceof e)return!0;let{secretKey:n,publicKey:s,publicKeyUncompressed:a}=i;if(r.allowedLengths||n===s)return;let o=g("key",t).length;return o===s||o===a}return Object.freeze({getPublicKey:u,getSharedSecret:function(t,n,i=!0){if(!0===c(t))throw Error("first arg must be private key");if(!1===c(n))throw Error("second arg must be public key");let s=em(r,t);return e.fromHex(n).multiply(s).toBytes(i)},keygen:function(e){let t=o(e);return{secretKey:t,publicKey:u(t)}},Point:e,utils:{isValidSecretKey:a,isValidPublicKey:function(t,r){let{publicKey:n,publicKeyUncompressed:s}=i;try{let i=t.length;if(!0===r&&i!==n||!1===r&&i!==s)return!1;return!!e.fromBytes(t)}catch(e){return!1}},randomSecretKey:o,isValidPrivateKey:a,randomPrivateKey:o,normPrivateKeyToScalar:e=>em(r,e),precompute:(t=8,r=e.BASE)=>r.precompute(t,!1)},lengths:i})}(e,r),_={prehash:!1,lowS:"boolean"==typeof r.lowS&&r.lowS,format:void 0,extraEntropy:!1},C="compact";function I(e,t){if(!u.isValidNot0(t))throw Error(`invalid signature ${e}: out of range 1..Point.Fn.ORDER`);return t}class S{constructor(e,t,r){this.r=I("r",e),this.s=I("s",t),null!=r&&(this.recovery=r),Object.freeze(this)}static fromBytes(e,t=C){let r;if(!function(e,t){ea(t);let r=B.signature;l(e,"compact"===t?r:"recovered"===t?r+1:void 0,`${t} signature`)}(e,t),"der"===t){let{r:t,s:r}=el.toSig(l(e));return new S(t,r)}"recovered"===t&&(r=e[0],t="compact",e=e.subarray(1));let n=u.BYTES,i=e.subarray(0,n),s=e.subarray(n,2*n);return new S(u.fromBytes(i),u.fromBytes(s),r)}static fromHex(e,t){return this.fromBytes((0,s.aT)(e),t)}addRecoveryBit(e){return new S(this.r,this.s,e)}recoverPublicKey(t){let r=o.ORDER,{r:n,s:i,recovery:a}=this;if(null==a||![0,1,2,3].includes(a))throw Error("recovery id invalid");if(c*ed<r&&a>1)throw Error("recovery id is ambiguous for h>1 curve");let l=2===a||3===a?n+c:n;if(!o.isValid(l))throw Error("recovery id 2 or 3 invalid");let f=o.toBytes(l),d=e.fromBytes((0,s.Id)(eg((1&a)==0),f)),h=u.inv(l),p=O(g("msgHash",t)),m=u.create(-p*h),b=u.create(i*h),y=e.BASE.multiplyUnsafe(m).add(d.multiplyUnsafe(b));if(y.is0())throw Error("point at infinify");return y.assertValidity(),y}hasHighS(){return this.s>c>>ef}toBytes(e=C){if(ea(e),"der"===e)return(0,s.aT)(el.hexFromSig(this));let t=u.toBytes(this.r),r=u.toBytes(this.s);if("recovered"===e){if(null==this.recovery)throw Error("recovery bit must be present");return(0,s.Id)(Uint8Array.of(this.recovery),t,r)}return(0,s.Id)(t,r)}toHex(e){return(0,s.My)(this.toBytes(e))}assertValidity(){}static fromCompact(e){return S.fromBytes(g("sig",e),"compact")}static fromDER(e){return S.fromBytes(g("sig",e),"der")}normalizeS(){return this.hasHighS()?new S(this.r,u.neg(this.s),this.recovery):this}toDERRawBytes(){return this.toBytes("der")}toDERHex(){return(0,s.My)(this.toBytes("der"))}toCompactRawBytes(){return this.toBytes("compact")}toCompactHex(){return(0,s.My)(this.toBytes("compact"))}}let D=r.bits2int||function(e){if(e.length>8192)throw Error("input is too large");let t=d(e),r=8*e.length-f;return r>0?t>>BigInt(r):t},O=r.bits2int_modN||function(e){return u.create(D(e))},F=A(f);function R(e){return!function(e,t,r,n){if(!(b(t)&&b(r)&&b(n))||!(r<=t)||!(t<n))throw Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}("num < 2^"+f,e,ec,F),u.toBytes(e)}function P(e,r){return l(e,void 0,"message"),r?l(t(e),void 0,"prehashed message"):e}return Object.freeze({keygen:y,getPublicKey:w,getSharedSecret:E,utils:M,lengths:B,Point:e,sign:function(r,i,o={}){let{seed:l,k2sig:f}=function(t,r,i){if(["recovered","canonical"].some(e=>e in i))throw Error("sign() legacy options not supported");let{lowS:a,prehash:o,extraEntropy:l}=eo(i,_),f=O(t=P(t,o)),d=em(u,r),h=[R(d),R(f)];if(null!=l&&!1!==l){let e=!0===l?n(B.secretKey):l;h.push(g("extraEntropy",e))}return{seed:(0,s.Id)(...h),k2sig:function(t){let r=D(t);if(!u.isValidNot0(r))return;let n=u.inv(r),i=e.BASE.multiply(r).toAffine(),s=u.create(i.x);if(s===ec)return;let o=u.create(n*u.create(f+s*d));if(o===ec)return;let l=2*(i.x!==s)|Number(i.y&ef),h=o;return a&&o>c>>ef&&(h=u.neg(o),l^=1),new S(s,h,l)}}}(r=g("message",r),i,o);return(function(e,t,r){if("number"!=typeof e||e<2)throw Error("hashLen must be a number");if("number"!=typeof t||t<2)throw Error("qByteLen must be a number");if("function"!=typeof r)throw Error("hmacFn must be a function");let n=e=>new Uint8Array(e),i=e=>Uint8Array.of(e),a=n(e),o=n(e),u=0,l=()=>{a.fill(1),o.fill(0),u=0},c=(...e)=>r(o,a,...e),f=(e=n(0))=>{o=c(i(0),e),a=c(),0!==e.length&&(o=c(i(1),e),a=c())},d=()=>
vendor: 9,878 bytes, line 1
1{if(u++>=1e3)throw Error("drbg: tried 1000 values");let e=0,r=[];for(;e<t;){let t=(a=c()).slice();r.push(t),e+=a.length}return(0,s.Id)(...r)};return(e,t)=>{let r;for(l(),f(e);!(r=t(d()));)f();return l(),r}})(t.outputLen,u.BYTES,a)(l,f)},verify:function(t,r,n,i={}){let{lowS:a,prehash:o,format:l}=eo(i,_);if(n=g("publicKey",n),r=P(g("message",r),o),"strict"in i)throw Error("options.strict was renamed to lowS");let c=void 0===l?function(e){let t,r="string"==typeof e||(0,s.aY)(e),n=!r&&null!==e&&"object"==typeof e&&"bigint"==typeof e.r&&"bigint"==typeof e.s;if(!r&&!n)throw Error("invalid signature, expected Uint8Array, hex string or Signature instance");if(n)t=new S(e.r,e.s);else if(r){try{t=S.fromBytes(g("sig",e),"der")}catch(e){if(!(e instanceof el.Err))throw e}if(!t)try{t=S.fromBytes(g("sig",e),"compact")}catch(e){return!1}}return!!t&&t}(t):S.fromBytes(g("sig",t),l);if(!1===c)return!1;try{let t=e.fromBytes(n);if(a&&c.hasHighS())return!1;let{r:i,s}=c,o=O(r),l=u.inv(s),f=u.create(o*l),d=u.create(i*l),h=e.BASE.multiplyUnsafe(f).add(t.multiplyUnsafe(d));if(h.is0())return!1;return u.create(h.x)===i}catch(e){return!1}},recoverPublicKey:function(e,t,r={}){let{prehash:n}=eo(r,_);return t=P(t,n),S.fromBytes(e,"recovered").recoverPublicKey(t).toBytes()},Signature:S,hash:t})}(function(e,t={}){let r=function(e,t,r={},n){if(void 0===n&&(n="edwards"===e),!t||"object"!=typeof t)throw Error(`expected valid ${e} CURVE object`);for(let e of["p","n","h"]){let r=t[e];if(!("bigint"==typeof r&&r>J))throw Error(`CURVE.${e} must be positive bigint`)}let i=ei(t.p,r.Fp,n),s=ei(t.n,r.Fn,n);for(let r of["Gx","Gy","a","weierstrass"===e?"b":"d"])if(!i.isValid(t[r]))throw Error(`CURVE.${r} must be valid field element of CURVE.Fp`);return{CURVE:t=Object.freeze(Object.assign({},t)),Fp:i,Fn:s}}("weierstrass",e,t),{Fp:n,Fn:i}=r,a=r.CURVE,{h:o,n:c}=a;v(t,{},{allowInfinityPoint:"boolean",clearCofactor:"function",isTorsionFree:"function",fromBytes:"function",toBytes:"function",endo:"object",wrapPrivateKey:"boolean"});let{endo:f}=t;if(f&&(!n.is0(a.a)||"bigint"!=typeof f.beta||!Array.isArray(f.basises)))throw Error('invalid endo: expected "beta": bigint and "basises": array');let d=eb(n,i);function h(){if(!n.isOdd)throw Error("compression is not supported: Field does not have .isOdd()")}let p=t.toBytes||function(e,t,r){let{x:i,y:a}=t.toAffine(),o=n.toBytes(i);if(u(r,"isCompressed"),!r)return(0,s.Id)(Uint8Array.of(4),o,n.toBytes(a));{h();let e=!n.isOdd(a);return(0,s.Id)(eg(e),o)}},m=t.fromBytes||function(e){l(e,void 0,"Point");let{publicKey:t,publicKeyUncompressed:r}=d,i=e.length,s=e[0],a=e.subarray(1);if(i===t&&(2===s||3===s)){let e,t=n.fromBytes(a);if(!n.isValid(t))throw Error("bad point: is not on curve, wrong x");let r=b(t);try{e=n.sqrt(r)}catch(e){throw Error("bad point: is not on curve, sqrt error"+(e instanceof Error?": "+e.message:""))}return h(),(1&s)==1!==n.isOdd(e)&&(e=n.neg(e)),{x:t,y:e}}if(i===r&&4===s){let e=n.BYTES,t=n.fromBytes(a.subarray(0,e)),r=n.fromBytes(a.subarray(e,2*e));if(!E(t,r))throw Error("bad point: is not on curve");return{x:t,y:r}}throw Error(`bad point: got length ${i}, expected compressed=${t} or uncompressed=${r}`)};function b(e){let t=n.sqr(e),r=n.mul(t,e);return n.add(n.add(r,n.mul(e,a.a)),a.b)}function E(e,t){let r=n.sqr(t),i=b(e);return n.eql(r,i)}if(!E(a.Gx,a.Gy))throw Error("bad curve params: generator point");let x=n.mul(n.pow(a.a,eh),ep),M=n.mul(n.sqr(a.b),BigInt(27));if(n.is0(n.add(x,M)))throw Error("bad curve params: a or b");function B(e,t,r=!1){if(!n.isValid(t)||r&&n.is0(t))throw Error(`bad point coordinate ${e}`);return t}function _(e){if(!(e instanceof O))throw Error("ProjectivePoint expected")}function C(e){if(!f||!f.basises)throw Error("no endo");return function(e,t,r){let[[n,i],[s,a]]=t,o=es(a*e,r),u=es(-i*e,r),l=e-o*n-u*s,c=-o*i-u*a,f=l<ec,d=c<ec;f&&(l=-l),d&&(c=-c);let h=A(Math.ceil(y(r)/2))+ef;if(l<ec||l>=h||c<ec||c>=h)throw Error("splitScalar (endomorphism): failed, k="+e);return{k1neg:f,k1:l,k2neg:d,k2:c}}(e,f.basises,i.ORDER)}let I=w((e,t)=>{let{X:r,Y:i,Z:s}=e;if(n.eql(s,n.ONE))return{x:r,y:i};let a=e.is0();null==t&&(t=a?n.ONE:n.inv(s));let o=n.mul(r,t),u=n.mul(i,t),l=n.mul(s,t);if(a)return{x:n.ZERO,y:n.ZERO};if(!n.eql(l,n.ONE))throw Error("invZ was invalid");return{x:o,y:u}}),S=w(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.Y))return;throw Error("bad point: ZERO")}let{x:r,y:i}=e.toAffine();if(!n.isValid(r)||!n.isValid(i))throw Error("bad point: x or y not field elements");if(!E(r,i))throw Error("bad point: equation left != right");if(!e.isTorsionFree())throw Error("bad point: not in prime-order subgroup");return!0});function D(e,t,r,i,s){return r=new O(n.mul(r.X,e),r.Y,r.Z),t=V(i,t),r=V(s,r),t.add(r)}class O{constructor(e,t,r){this.X=B("x",e),this.Y=B("y",t,!0),this.Z=B("z",r),Object.freeze(this)}static CURVE(){return a}static fromAffine(e){let{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw Error("invalid affine point");if(e instanceof O)throw Error("projective point not allowed");return n.is0(t)&&n.is0(r)?O.ZERO:new O(t,r,n.ONE)}static fromBytes(e){let t=O.fromAffine(m(l(e,void 0,"point")));return t.assertValidity(),t}static fromHex(e){return O.fromBytes(g("pointHex",e))}get x(){return this.toAffine().x}get y(){return this.toAffine().y}precompute(e=8,t=!0){return F.createCache(this,e),t||this.multiply(eh),this}assertValidity(){S(this)}hasEvenY(){let{y:e}=this.toAffine();if(!n.isOdd)throw Error("Field doesn't support isOdd");return!n.isOdd(e)}equals(e){_(e);let{X:t,Y:r,Z:i}=this,{X:s,Y:a,Z:o}=e,u=n.eql(n.mul(t,o),n.mul(s,i)),l=n.eql(n.mul(r,o),n.mul(a,i));return u&&l}negate(){return new O(this.X,n.neg(this.Y),this.Z)}double(){let{a:e,b:t}=a,r=n.mul(t,eh),{X:i,Y:s,Z:o}=this,u=n.ZERO,l=n.ZERO,c=n.ZERO,f=n.mul(i,i),d=n.mul(s,s),h=n.mul(o,o),p=n.mul(i,s);return p=n.add(p,p),c=n.mul(i,o),c=n.add(c,c),u=n.mul(e,c),l=n.mul(r,h),l=n.add(u,l),u=n.sub(d,l),l=n.add(d,l),l=n.mul(u,l),u=n.mul(p,u),c=n.mul(r,c),h=n.mul(e,h),p=n.sub(f,h),p=n.mul(e,p),p=n.add(p,c),c=n.add(f,f),f=n.add(c,f),f=n.add(f,h),f=n.mul(f,p),l=n.add(l,f),h=n.mul(s,o),h=n.add(h,h),f=n.mul(h,p),u=n.sub(u,f),c=n.mul(h,d),c=n.add(c,c),new O(u,l,c=n.add(c,c))}add(e){_(e);let{X:t,Y:r,Z:i}=this,{X:s,Y:o,Z:u}=e,l=n.ZERO,c=n.ZERO,f=n.ZERO,d=a.a,h=n.mul(a.b,eh),p=n.mul(t,s),m=n.mul(r,o),g=n.mul(i,u),b=n.add(t,r),y=n.add(s,o);b=n.mul(b,y),y=n.add(p,m),b=n.sub(b,y),y=n.add(t,i);let A=n.add(s,u);return y=n.mul(y,A),A=n.add(p,g),y=n.sub(y,A),A=n.add(r,i),l=n.add(o,u),A=n.mul(A,l),l=n.add(m,g),A=n.sub(A,l),f=n.mul(d,y),l=n.mul(h,g),f=n.add(l,f),l=n.sub(m,f),f=n.add(m,f),c=n.mul(l,f),m=n.add(p,p),m=n.add(m,p),g=n.mul(d,g),y=n.mul(h,y),m=n.add(m,g),g=n.sub(p,g),g=n.mul(d,g),y=n.add(y,g),p=n.mul(m,y),c=n.add(c,p),p=n.mul(A,y),l=n.mul(b,l),l=n.sub(l,p),p=n.mul(b,m),f=n.mul(A,f),new O(l,c,f=n.add(f,p))}subtract(e){return this.add(e.negate())}is0(){return this.equals(O.ZERO)}multiply(e){let r,n,{endo:s}=t;if(!i.isValidNot0(e))throw Error("invalid scalar: out of range");let a=e=>F.cached(this,e,e=>W(O,e));if(s){let{k1neg:t,k1:i,k2neg:o,k2:u}=C(e),{p:l,f:c}=a(i),{p:f,f:d}=a(u);n=c.add(d),r=D(s.beta,l,f,t,o)}else{let{p:t,f:i}=a(e);r=t,n=i}return W(O,[r,n])[0]}multiplyUnsafe(e){let{endo:r}=t;if(!i.isValid(e))throw Error("invalid scalar: out of range");if(e===ec||this.is0())return O.ZERO;if(e===ef)return this;if(F.hasCache(this))return this.multiply(e);if(!r)return F.unsafe(this,e);{let{k1neg:t,k1:n,k2neg:i,k2:s}=C(e),{p1:a,p2:o}=function(e,t,r,n){let i=t,s=e.ZERO,a=e.ZERO;for(;r>J||n>J;)r&K&&(s=s.add(i)),n&K&&(a=a.add(i)),i=i.double(),r>>=K,n>>=K;return{p1:s,p2:a}}(O,this,n,s);return D(r.beta,a,o,t,i)}}multiplyAndAddUnsafe(e,t,r){let n=this.multiplyUnsafe(t).add(e.multiplyUnsafe(r));return n.is0()?void 0:n}toAffine(e){return I(this,e)}isTorsionFree(){let{isTorsionFree:e}=t;return o===ef||(e?e(O,this):F.unsafe(this,c).is0())}clearCofactor(){let{clearCofactor:e}=t;return o===ef?this:e?e(O,this):this.multiplyUnsafe(o)}isSmallOrder(){return this.multiplyUnsafe(o).is0()}toBytes(e=!0){return u(e,"isCompressed"),this.assertValidity(),p(O,this,e)}toHex(e=!0){return(0,s.My)(this.toBytes(e))}toString(){return`<Point ${this.is0()?"ZERO":this.toHex()}>`}get px(){return this.X}get py(){return this.X}get pz(){return this.Z}toRawBytes(e=!0){return this.toBytes(e)}_setWindowSize(e){this.precompute(e)}static normalizeZ(e){return W(O,e)}static msm(e,t){return function(e,t,r,n){(function(e,t){if(!Array.isArray(e))throw Error("array expected");e.forEach((e,r)=>{if(!(e instanceof t))throw Error("invalid point at index "+r)})})(r,e),function(e,t){if(!Array.isArray(e))throw Error("array of scalars expected");e.forEach((e,r)=>{if(!t.isValid(e))throw Error("invalid scalar at index "+r)})}(n,t);let i=r.length,s=n.length;if(i!==s)throw Error("arrays of points and scalars must have equal length");let a=e.ZERO,o=y(BigInt(i)),u=1;o>12?u=o-3:o>4?u=o-2:o>0&&(u=2);let l=A(u),c=Array(Number(l)+1).fill(a),f=Math.floor((t.BITS-1)/u)*u,d=a;for(let e=f;e>=0;e-=u){c.fill(a);for(let t=0;t<s;t++){let i=Number(n[t]>>BigInt(e)&l);c[i]=c[i].add(r[t])}let t=a;for(let e=c.length-1,r=a;e>0;e--)r=r.add(c[e]),t=t.add(r);if(d=d.add(t),0!==e)for(let e=0;e<u;e++)d=d.double()}return d}(O,i,e,t)}static fromPrivateKey(e){return O.BASE.multiply(em(i,e))}}O.BASE=new O(a.Gx,a.Gy,n.ONE),O.ZERO=new O(n.ZERO,n.ONE,n.ZERO),O.Fp=n,O.Fn=i;let N=i.BITS,F=new en(O,t.endo?Math.ceil(N/2):N);return O.BASE.precompute(8),O}(t,r),n,a),c=o.Point;return Object.assign({},o,{ProjectivePoint:c,CURVE:Object.assign({},e,Q(c.Fn.ORDER,c.Fn.BITS))})})({...e,hash:t});return{...r(t),create:r}}({...ey,Fp:ew,lowS:!0,endo:eA},n.sc),ex={},eM=e=>e.toBytes(!0).slice(1),eB=e=>!1},31716:(e,t,r)=>{"use strict";r.d(t,{x:()=>c});var n=r(6528),i=r(32840),s=r(87094),a=r(27493),o=r(67622);async function u({hash:e,signature:t}){let n=(0,i.q)(e)?e:(0,o.nj)(e),{secp256k1:u}=await Promise.resolve().then(r.bind(r,31452)),c=(()=>
1{if("object"==typeof t&&"r"in t&&"s"in t){let{r:e,s:r,v:n,yParity:i}=t,s=l(Number(i??n));return new u.Signature((0,a.uU)(e),(0,a.uU)(r)).addRecoveryBit(s)}let e=(0,i.q)(t)?t:(0,o.nj)(t);if(65!==(0,s.E)(e))throw Error("invalid signature length");let r=l((0,a.ME)(`0x${e.slice(130)}`));return u.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(r)})().recoverPublicKey(n.substring(2)).toHex(!1);return`0x${c}`}function l(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw Error("Invalid yParityOrV value")}async function c({hash:e,signature:t}){return(0,n.M)(await u({hash:e,signature:t}))}},32160:(e,t,r)=>{"use strict";r.d(t,{k:()=>u});var n=r(79731),i=r(80844),s=r(67622),a=r(24578),o=r(70872);function u(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,s.My)(t);let r=e.split(".");for(let e=r.length-1;e>=0;e-=1){let s=(0,o.q)(r[e]),u=s?(0,i.ZJ)(s):(0,a.S)((0,i.Af)(r[e]),"bytes");t=(0,a.S)((0,n.xW)([t,u]),"bytes")}return(0,s.My)(t)}},34524:(e,t,r)=>{"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{T:()=>n})},39112:(e,t,r)=>{"use strict";async function n(e){return BigInt(await e.request({method:"eth_gasPrice"}))}r.d(t,{L:()=>n})},39755:(e,t,r)=>{"use strict";r.d(t,{g:()=>s});var n=r(31716),i=r(29505);async function s(e){let{authorization:t,signature:r}=e;return(0,n.x)({hash:(0,i.C)(t),signature:r??t})}},39853:(e,t,r)=>{"use strict";r.d(t,{X:()=>o,k:()=>u});var n=r(52020),i=r(7165),s=r(6784),a=r(57948),o=class extends a.k{#C;#I;#S;#D;#O;#N;constructor(e){super(),this.#N=!1,this.#O=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#S=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#C=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,r=void 0!==t,n=r?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?n??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:r?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#C,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#D?.promise}setOptions(e){this.options={...this.#O,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#S.remove(this)}setData(e,t){let r=(0,n.pl)(this.state.data,e,this.options);return this.#F({data:r,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),r}setState(e,t){this.#F({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#D?.promise;return this.#D?.cancel(e),t?t.then(n.lQ).catch(n.lQ):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#C)}isActive(){return this.observers.some(e=>!1!==(0,n.Eh)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===n.hT||this.state.dataUpdateCount+this.state.errorUpdateCount===0}isStale(){return!!this.state.isInvalidated||(this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data)}isStaleByTime(e=0){return this.state.isInvalidated||void 0===this.state.data||!(0,n.j3)(this.state.dataUpdatedAt,e)}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#D?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#D?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#S.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#D&&(this.#N?this.#D.cancel({revert:!0}):this.#D.cancelRetry()),this.scheduleGc()),this.#S.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#F({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#D)return this.#D.continueRetry(),this.#D.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let r=new AbortController,i=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#N=!0,r.signal)}
1)},a={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:()=>{let e=(0,n.ZM)(this.options,t),r={queryKey:this.queryKey,meta:this.meta};return(i(r),this.#N=!1,this.options.persister)?this.options.persister(e,r,this):e(r)}};i(a),this.options.behavior?.onFetch(a,this),this.#I=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#F({type:"fetch",meta:a.fetchOptions?.meta});let o=e=>{(0,s.wm)(e)&&e.silent||this.#F({type:"error",error:e}),(0,s.wm)(e)||(this.#S.config.onError?.(e,this),this.#S.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#D=(0,s.II)({initialPromise:t?.initialPromise,fn:a.fetchFn,abort:r.abort.bind(r),onSuccess:e=>{if(void 0===e){o(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){o(e);return}this.#S.config.onSuccess?.(e,this),this.#S.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:o,onFail:(e,t)=>{this.#F({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#F({type:"pause"})},onContinue:()=>{this.#F({type:"continue"})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0}),this.#D.start()}#F(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...u(t.data,this.options),fetchMeta:e.meta??null};case"success":return{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let r=e.error;if((0,s.wm)(r)&&r.revert&&this.#I)return{...this.#I,fetchStatus:"idle"};return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),i.j.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#S.notify({query:this,type:"updated",action:e})})}};function u(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,s.v_)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},41052:(e,t,r)=>{"use strict";r.d(t,{J:()=>a});var n=r(29995),i=r(7441),s=r(35109);function a(e,t){if(!(e instanceof i.C))return!1;let r=e.walk(e=>e instanceof s.M);return r instanceof s.M&&(!!(r.data?.errorName==="ResolverNotFound"||r.data?.errorName==="ResolverWildcardNotSupported"||r.data?.errorName==="ResolverNotContract"||r.data?.errorName==="ResolverError"||r.data?.errorName==="HttpError"||r.reason?.includes("Wildcard on non-extended resolvers is not supported"))||"reverse"===t&&r.reason===n.fD[50])}},42142:(e,t,r)=>{"use strict";r.d(t,{b:()=>i});var n=r(10231);function i(e,{delay:t=100,retryCount:r=2,shouldRetry:s=()=>!0}={}){return new Promise((i,a)=>{let o=async({count:u=0}={})=>{let l=async({error:e})=>{let r="function"==typeof t?t({count:u,error:e}):t;r&&await (0,n.u)(r),o({count:u+1})};try{let t=await e();i(t)}catch(e){if(u<r&&await s({count:u,error:e}))return l({error:e});a(e)}};o()})}},43484:(e,t,r)=>{"use strict";r.d(t,{IT:()=>s});var n=r(19373),i=r(62108);function s(e){let t=(0,n.I)({...e,queryKeyHashFn:i.Zi});return t.queryKey=e.queryKey,t}},43695:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});function n(e,t,r){return JSON.stringify(e,(e,r)=>"function"==typeof t?t(e,r):"bigint"==typeof r?r.toString()+"#__bigint":r,r)}},50920:(e,t,r)=>{"use strict";r.d(t,{m:()=>s});var n=r(25910),i=r(52020),s=new class extends n.Q{#R;#B;#_;constructor(){super(),this.#_=e=>{if(!i.S$&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#B||this.setEventListener(this.#_)}onUnsubscribe(){this.hasListeners()||(this.#B?.(),this.#B=void 0)}setEventListener(e){this.#_=e,this.#B?.(),this.#B=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#R!==e&&(this.#R=e,this.onFocus())}onFocus(){let e=this.isFocused();
1this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#R?this.#R:globalThis.document?.visibilityState!=="hidden"}}},52020:(e,t,r)=>{"use strict";r.d(t,{BH:()=>m,Cp:()=>p,EN:()=>h,Eh:()=>l,F$:()=>d,MK:()=>c,S$:()=>n,ZM:()=>B,ZZ:()=>x,Zw:()=>s,d2:()=>u,f8:()=>g,gn:()=>a,hT:()=>M,j3:()=>o,lQ:()=>i,nJ:()=>f,pl:()=>w,y9:()=>E,yy:()=>v});var n="undefined"==typeof window||"Deno"in globalThis;function i(){}function s(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function o(e,t){return Math.max(e+(t||0)-Date.now(),0)}function u(e,t){return"function"==typeof e?e(t):e}function l(e,t){return"function"==typeof e?e(t):e}function c(e,t){let{type:r="all",exact:n,fetchStatus:i,predicate:s,queryKey:a,stale:o}=e;if(a){if(n){if(t.queryHash!==d(a,t.options))return!1}else if(!p(t.queryKey,a))return!1}if("all"!==r){let e=t.isActive();if("active"===r&&!e||"inactive"===r&&e)return!1}return("boolean"!=typeof o||t.isStale()===o)&&(!i||i===t.state.fetchStatus)&&(!s||!!s(t))}function f(e,t){let{exact:r,status:n,predicate:i,mutationKey:s}=e;if(s){if(!t.options.mutationKey)return!1;if(r){if(h(t.options.mutationKey)!==h(s))return!1}else if(!p(t.options.mutationKey,s))return!1}return(!n||t.state.status===n)&&(!i||!!i(t))}function d(e,t){return(t?.queryKeyHashFn||h)(e)}function h(e){return JSON.stringify(e,(e,t)=>y(t)?Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}):t)}function p(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&!Object.keys(t).some(r=>!p(e[r],t[r]))}function m(e,t){if(e===t)return e;let r=b(e)&&b(t);if(r||y(e)&&y(t)){let n=r?e:Object.keys(e),i=n.length,s=r?t:Object.keys(t),a=s.length,o=r?[]:{},u=0;for(let i=0;i<a;i++){let a=r?i:s[i];(!r&&n.includes(a)||r)&&void 0===e[a]&&void 0===t[a]?(o[a]=void 0,u++):(o[a]=m(e[a],t[a]),o[a]===e[a]&&void 0!==e[a]&&u++)}return i===a&&u===i?e:o}return t}function g(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let r in e)if(e[r]!==t[r])return!1;return!0}function b(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function y(e){if(!A(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(A(r)&&r.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function v(e){return new Promise(t=>{setTimeout(t,e)})}function w(e,t,r){return"function"==typeof r.structuralSharing?r.structuralSharing(e,t):!1!==r.structuralSharing?m(e,t):t}function E(e,t,r=0){let n=[...e,t];return r&&n.length>r?n.slice(1):n}function x(e,t,r=0){let n=[t,...e];return r&&n.length>r?n.slice(0,-1):n}var M=Symbol();function B(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==M?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}},52438:function(e){e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32,r=Math.abs,n=Math.max,i=Math.floor;class s extends Array{constructor(e,t){if(super(e),this.sign=t,e>s.__kMaxLength)throw RangeError("Maximum BigInt size exceeded")}static BigInt(e){var t=Number.isFinite;if("number"==typeof e){if(0===e)return s.__zero();if(s.__isOneDigitInt(e))return 0>e?s.__oneDigit(-e,!0):s.__oneDigit(e,!1);if(!t(e)||i(e)!==e)throw RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return s.__fromDouble(e)}if("string"==typeof e){let t=s.__fromString(e);if(null===t)throw SyntaxError("Cannot convert "+e+" to a BigInt");return t}if("boolean"==typeof e)return!0===e?s.__oneDigit(1,!1):s.__zero();if("object"==typeof e){if(e.constructor===s)return e;let t=s.__toPrimitive(e);return s.BigInt(t)}throw TypeError("Cannot convert "+e+" to a BigInt")}toDebugString(){let e=["BigInt["];for(let t of this)e.push((t?(t>>>0).toString(16):t)+", ");return e.push("]"),e.join("")}toString(e=10){if(2>e||36<e)throw RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?s.__toStringBasePowerOfTwo(this,e):s.__toStringGeneric(this,e,!1)}static toNumber(e){let t=e.length;if(0===t)return 0;if(1===t){let t=e.__unsignedDigit(0);return e.sign?-t:t}let r=e.__digit(t-1),n=s.__clz30(r),i=30*t-n;if(1024<i)return e.sign?-1/0:1/0;let a=i-1,o=r,u=t-1,l=n+3,c=32===l?0:o<<l;c>>>=12;let f=l-12,d=12<=l?0:o<<20+l,h=20+l;for(0<f&&0<u&&(u--,c|=(o=e.__digit(u))>>>30-f,d=o<<f+2,h=f+2);0<h&&0<u;)u--,o=e.__digit(u),d|=30<=h?o<<h-30:o>>>30-h,h-=30;let p=s.__decideRounding(e,h,u,o);if((1===p||0===p&&1==(1&d))&&0==(d=d+1>>>0)&&0!=++c>>>
120&&(c=0,1023<++a))return e.sign?-1/0:1/0;let m=e.sign?-0x80000000:0;return a=a+1023<<20,s.__kBitConversionInts[1]=m|a|c,s.__kBitConversionInts[0]=d,s.__kBitConversionDouble[0]}static unaryMinus(e){if(0===e.length)return e;let t=e.__copy();return t.sign=!e.sign,t}static bitwiseNot(e){return e.sign?s.__absoluteSubOne(e).__trim():s.__absoluteAddOne(e,!0)}static exponentiate(e,t){if(t.sign)throw RangeError("Exponent must be positive");if(0===t.length)return s.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?s.unaryMinus(e):e;if(1<t.length)throw RangeError("BigInt too big");let r=t.__unsignedDigit(0);if(1===r)return e;if(r>=s.__kMaxLengthBits)throw RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){let t=1+(0|r/30),n=new s(t,e.sign&&0!=(1&r));n.__initializeDigits();let i=1<<r%30;return n.__setDigit(t-1,i),n}let n=null,i=e;for(0!=(1&r)&&(n=e),r>>=1;0!==r;r>>=1)i=s.multiply(i,i),0!=(1&r)&&(n=null===n?i:s.multiply(n,i));return n}static multiply(e,t){if(0===e.length)return e;if(0===t.length)return t;let r=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&r--;let n=new s(r,e.sign!==t.sign);n.__initializeDigits();for(let r=0;r<e.length;r++)s.__multiplyAccumulate(t,e.__digit(r),n,r);return n.__trim()}static divide(e,t){let r;if(0===t.length)throw RangeError("Division by zero");if(0>s.__absoluteCompare(e,t))return s.__zero();let n=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&32767>=i){if(1===i)return n===e.sign?e:s.unaryMinus(e);r=s.__absoluteDivSmall(e,i,null)}else r=s.__absoluteDivLarge(e,t,!0,!1);return r.sign=n,r.__trim()}static remainder(e,t){if(0===t.length)throw RangeError("Division by zero");if(0>s.__absoluteCompare(e,t))return e;let r=t.__unsignedDigit(0);if(1===t.length&&32767>=r){if(1===r)return s.__zero();let t=s.__absoluteModSmall(e,r);return 0===t?s.__zero():s.__oneDigit(t,e.sign)}let n=s.__absoluteDivLarge(e,t,!1,!0);return n.sign=e.sign,n.__trim()}static add(e,t){let r=e.sign;return r===t.sign?s.__absoluteAdd(e,t,r):0<=s.__absoluteCompare(e,t)?s.__absoluteSub(e,t,r):s.__absoluteSub(t,e,!r)}static subtract(e,t){let r=e.sign;return r===t.sign?0<=s.__absoluteCompare(e,t)?s.__absoluteSub(e,t,r):s.__absoluteSub(t,e,!r):s.__absoluteAdd(e,t,r)}static leftShift(e,t){return 0===t.length||0===e.length?e:t.sign?s.__rightShiftByAbsolute(e,t):s.__leftShiftByAbsolute(e,t)}static signedRightShift(e,t){return 0===t.length||0===e.length?e:t.sign?s.__leftShiftByAbsolute(e,t):s.__rightShiftByAbsolute(e,t)}static unsignedRightShift(){throw TypeError("BigInts have no unsigned right shift; use >> instead")}static lessThan(e,t){return 0>s.__compareToBigInt(e,t)}static lessThanOrEqual(e,t){return 0>=s.__compareToBigInt(e,t)}static greaterThan(e,t){return 0<s.__compareToBigInt(e,t)}static greaterThanOrEqual(e,t){return 0<=s.__compareToBigInt(e,t)}static equal(e,t){if(e.sign!==t.sign||e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e.__digit(r)!==t.__digit(r))return!1;return!0}static notEqual(e,t){return!s.equal(e,t)}static bitwiseAnd(e,t){if(!e.sign&&!t.sign)return s.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){let r=n(e.length,t.length)+1,i=s.__absoluteSubOne(e,r),a=s.__absoluteSubOne(t);return i=s.__absoluteOr(i,a,i),s.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&([e,t]=[t,e]),s.__absoluteAndNot(e,s.__absoluteSubOne(t)).__trim()}static bitwiseXor(e,t){if(!e.sign&&!t.sign)return s.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){let r=n(e.length,t.length),i=s.__absoluteSubOne(e,r),a=s.__absoluteSubOne(t);return s.__absoluteXor(i,a,i).__trim()}let r=n(e.length,t.length)+1;e.sign&&([e,t]=[t,e]);let i=s.__absoluteSubOne(t,r);return i=s.__absoluteXor(i,e,i),s.__absoluteAddOne(i,!0,i).__trim()}static bitwiseOr(e,t){let r=n(e.length,t.length);if(!e.sign&&!t.sign)return s.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){let n=s.__absoluteSubOne(e,r),i=s.__absoluteSubOne(t);return n=s.__absoluteAnd(n,i,n),s.__absoluteAddOne(n,!0,n).__trim()}e.sign&&([e,t]=[t,e]);let i=s.__absoluteSubOne(t,r);return i=s.__absoluteAndNot(i,e,i),s.__absoluteAddOne(i,!0,i).__trim()}static asIntN(e,t){if(0===t.length)return t;if(0>
1(e=i(e)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return s.__zero();if(e>=s.__kMaxLengthBits)return t;let r=0|(e+29)/30;if(t.length<r)return t;let n=t.__unsignedDigit(r-1),a=1<<(e-1)%30;if(t.length===r&&n<a)return t;if((n&a)!==a)return s.__truncateToNBits(e,t);if(!t.sign)return s.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(n&a-1)){for(let n=r-2;0<=n;n--)if(0!==t.__digit(n))return s.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===r&&n===a?t:s.__truncateToNBits(e,t)}return s.__truncateAndSubFromPowerOfTwo(e,t,!1)}static asUintN(e,t){if(0===t.length)return t;if(0>(e=i(e)))throw RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return s.__zero();if(t.sign){if(e>s.__kMaxLengthBits)throw RangeError("BigInt too big");return s.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=s.__kMaxLengthBits)return t;let r=0|(e+29)/30;if(t.length<r)return t;let n=e%30;return t.length==r&&(0===n||0==t.__digit(r-1)>>>n)?t:s.__truncateToNBits(e,t)}static ADD(e,t){if(e=s.__toPrimitive(e),t=s.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=s.__toNumeric(e),t=s.__toNumeric(t),s.__isBigInt(e)&&s.__isBigInt(t))return s.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw TypeError("Cannot mix BigInt and other types, use explicit conversions")}static LT(e,t){return s.__compare(e,t,0)}static LE(e,t){return s.__compare(e,t,1)}static GT(e,t){return s.__compare(e,t,2)}static GE(e,t){return s.__compare(e,t,3)}static EQ(e,t){for(;;){if(s.__isBigInt(e))return s.__isBigInt(t)?s.equal(e,t):s.EQ(t,e);if("number"==typeof e){if(s.__isBigInt(t))return s.__equalToNumber(t,e);if("object"!=typeof t)return e==t;t=s.__toPrimitive(t)}else if("string"==typeof e){if(s.__isBigInt(t))return null!==(e=s.__fromString(e))&&s.equal(e,t);if("object"!=typeof t)return e==t;t=s.__toPrimitive(t)}else if("boolean"==typeof e){if(s.__isBigInt(t))return s.__equalToNumber(t,+e);if("object"!=typeof t)return e==t;t=s.__toPrimitive(t)}else if("symbol"==typeof e){if(s.__isBigInt(t))return!1;if("object"!=typeof t)return e==t;t=s.__toPrimitive(t)}else{if("object"!=typeof e||"object"==typeof t&&t.constructor!==s)return e==t;e=s.__toPrimitive(e)}}}static NE(e,t){return!s.EQ(e,t)}static __zero(){return new s(0,!1)}static __oneDigit(e,t){let r=new s(1,t);return r.__setDigit(0,e),r}__copy(){let e=new s(this.length,this.sign);for(let t=0;t<this.length;t++)e[t]=this[t];return e}__trim(){let e=this.length,t=this[e-1];for(;0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}__initializeDigits(){for(let e=0;e<this.length;e++)this[e]=0}static __decideRounding(e,t,r,n){let i;if(0<t)return -1;if(0>t)i=-t-1;else{if(0===r)return -1;r--,n=e.__digit(r),i=29}let s=1<<i;if(0==(n&s))return -1;if(s-=1,0!=(n&s))return 1;for(;0<r;)if(r--,0!==e.__digit(r))return 1;return 0}static __fromDouble(e){s.__kBitConversionDouble[0]=e;let t=(2047&s.__kBitConversionInts[1]>>>20)-1023,r=(0|t/30)+1,n=new s(r,0>e),i=1048575&s.__kBitConversionInts[1]|1048576,a=s.__kBitConversionInts[0],o=t%30,u,l=0;
1if(20>o){let e=20-o;l=e+32,u=i>>>e,i=i<<32-e|a>>>e,a<<=32-e}else if(20===o)l=32,u=i,i=a,a=0;else{let e=o-20;l=32-e,u=i<<e|a>>>32-e,i=a<<e,a=0}n.__setDigit(r-1,u);for(let e=r-2;0<=e;e--)0<l?(l-=30,u=i>>>2,i=i<<30|a>>>2,a<<=30):u=0,n.__setDigit(e,u);return n.__trim()}static __isWhitespace(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}static __fromString(e,t=0){let r=0,n=e.length,i=0;if(0===n)return s.__zero();let a=e.charCodeAt(i);for(;s.__isWhitespace(a);){if(++i===n)return s.__zero();a=e.charCodeAt(i)}if(43===a){if(++i===n)return null;a=e.charCodeAt(i),r=1}else if(45===a){if(++i===n)return null;a=e.charCodeAt(i),r=-1}if(0===t){if(t=10,48===a){if(++i===n)return s.__zero();if(88===(a=e.charCodeAt(i))||120===a){if(t=16,++i===n)return null;a=e.charCodeAt(i)}else if(79===a||111===a){if(t=8,++i===n)return null;a=e.charCodeAt(i)}else if(66===a||98===a){if(t=2,++i===n)return null;a=e.charCodeAt(i)}}}else if(16===t&&48===a){if(++i===n)return s.__zero();if(88===(a=e.charCodeAt(i))||120===a){if(++i===n)return null;a=e.charCodeAt(i)}}if(0!=r&&10!==t)return null;for(;48===a;){if(++i===n)return s.__zero();a=e.charCodeAt(i)}let o=n-i,u=s.__kMaxBitsPerChar[t],l=s.__kBitsPerCharTableMultiplier-1;if(o>0x40000000/u)return null;let c=u*o+l>>>s.__kBitsPerCharTableShift,f=new s(0|(c+29)/30,!1),d=10>t?t:10,h=10<t?t-10:0;if(0==(t&t-1)){u>>=s.__kBitsPerCharTableShift;let t=[],r=[],o=!1;do{let s=0,l=0;for(;;){let t;if(a-48>>>0<d)t=a-48;else if((32|a)-97>>>0<h)t=(32|a)-87;else{o=!0;break}if(l+=u,s=s<<u|t,++i===n){o=!0;break}if(a=e.charCodeAt(i),30<l+u)break}t.push(s),r.push(l)}while(!o);s.__fillFromParts(f,t,r)}else{f.__initializeDigits();let r=!1,o=0;do{let c=0,p=1;for(;;){let s;if(a-48>>>0<d)s=a-48;else if((32|a)-97>>>0<h)s=(32|a)-87;else{r=!0;break}let u=p*t;if(0x3fffffff<u)break;if(p=u,c=c*t+s,o++,++i===n){r=!0;break}a=e.charCodeAt(i)}let m=0|(u*o+(l=30*s.__kBitsPerCharTableMultiplier-1)>>>s.__kBitsPerCharTableShift)/30;f.__inplaceMultiplyAdd(p,c,m)}while(!r)}if(i!==n){if(!s.__isWhitespace(a))return null;for(i++;i<n;i++)if(a=e.charCodeAt(i),!s.__isWhitespace(a))return null}return f.sign=-1==r,f.__trim()}static __fillFromParts(e,t,r){let n=0,i=0,s=0;for(let a=t.length-1;0<=a;a--){let o=t[a],u=r[a];i|=o<<s,30===(s+=u)?(e.__setDigit(n++,i),s=0,i=0):30<s&&(e.__setDigit(n++,0x3fffffff&i),s-=30,i=o>>>u-s)}if(0!==i){if(n>=e.length)throw Error("implementation bug");e.__setDigit(n++,i)}for(;n<e.length;n++)e.__setDigit(n,0)}static __toStringBasePowerOfTwo(e,t){let r=e.length,n=t-1,i=n=(15&(n=(51&(n=(85&n>>>1)+(85&n))>>>2)+(51&n))>>>4)+(15&n),a=t-1,o=e.__digit(r-1),u=0|(30*r-s.__clz30(o)+i-1)/i;if(e.sign&&u++,0x10000000<u)throw Error("string too long");let l=Array(u),c=u-1,f=0,d=0;for(let t=0;t<r-1;t++){let r=e.__digit(t),n=(f|r<<d)&a;l[c--]=s.__kConversionChars[n];let o=i-d;for(f=r>>>o,d=30-o;d>=i;)l[c--]=s.__kConversionChars[f&a],f>>>=i,d-=i}let h=(f|o<<d)&a;for(l[c--]=s.__kConversionChars[h],f=o>>>i-d;0!==f;)l[c--]=s.__kConversionChars[f&a],f>>>=i;if(e.sign&&(l[c--]="-"),-1!=c)throw Error("implementation bug");return l.join("")}static __toStringGeneric(e,t,r){let n,i,a=e.length;if(0===a)return"";if(1===a){let n=e.__unsignedDigit(0).toString(t);return!1===r&&e.sign&&(n="-"+n),n}let o=30*a-s.__clz30(e.__digit(a-1)),u=s.__kMaxBitsPerChar[t]-1,l=o*s.__kBitsPerCharTableMultiplier;l+=u-1;let c=(l=0|l/u)+1>>1,f=s.exponentiate(s.__oneDigit(t,!1),s.__oneDigit(c,!1)),d=f.__unsignedDigit(0);if(1===f.length&&32767>=d){(n=new s(e.length,!1)).__initializeDigits();let r=0;for(let t=2*e.length-1;0<=t;t--){let i=r<<15|e.__halfDigit(t);n.__setHalfDigit(t,0|i/d),r=0|i%d}i=r.toString(t)}else{let r=s.__absoluteDivLarge(e,f,!0,!0);n=r.quotient;let a=r.remainder.__trim();i=s.__toStringGeneric(a,t,!0)}n.__trim();let h=s.__toStringGeneric(n,t,!0);for(;i.length<c;)i="0"+i;return!1===r&&e.sign&&(h="-"+h),h+i}static __unequalSign(e){return e?-1:1}static __absoluteGreater(e){return e?-1:1}static __absoluteLess(e){return e?1:-1}static __compareToBigInt(e,t){let r=e.sign;if(r!==t.sign)return s.__unequalSign(r);let n=s.__absoluteCompare(e,t);return 0<n?s.__absoluteGreater(r):0>n?s.__absoluteLess(r):0}static __compareToNumber(e,t){if(s.__isOneDigitInt(t)){let n=e.sign,i=0>t;if(n!==i)return s.__unequalSign(n);if(0===e.length){if(i)throw Error("implementation bug");return 0===t?0:-1}if(1<e.length)return s.__absoluteGreater(n);let a=r(t),o=e.__unsignedDigit(0);return o>a?s.__absoluteGreater(n):o<a?s.__absoluteLess(n):0}return s.__compareToDouble(e,t)}static __compareToDouble(e,t){if(t!=t)return t;if(t===1/0)return -1;if(t===-1/0)return 1;let r=e.sign;if(r!==0>t)return s.__unequalSign(r);if(0===t)throw Error("implementation bug: should be handled elsewhere");if(0===e.length)return -1;s.__kBitConversionDouble[0]=t;let n=2047&s.__kBitConversionInts[1]>>>20;if(2047==n)throw Error("implementation bug: handled elsewhere");let i=n-1023;if(0>i)return s.__absoluteGreater(r);let a=e.length,o=e.__digit(a-1),u=s.__clz30(o),l=30*a-u,c=i+1;if(l<c)return s.__absoluteLess(r);if(l>c)return s.__absoluteGreater(r);let f=1048576|1048575&s.__kBitConversionInts[1],d=s.__kBitConversionInts[0],h=29-u;if(h!==(0|(l-1)%30))throw Error("implementation bug");let p,m=0;
1if(20>h){let e=20-h;m=e+32,p=f>>>e,f=f<<32-e|d>>>e,d<<=32-e}else if(20===h)m=32,p=f,f=d,d=0;else{let e=h-20;m=32-e,p=f<<e|d>>>32-e,f=d<<e,d=0}if((o>>>=0)>(p>>>=0))return s.__absoluteGreater(r);if(o<p)return s.__absoluteLess(r);for(let t=a-2;0<=t;t--){0<m?(m-=30,p=f>>>2,f=f<<30|d>>>2,d<<=30):p=0;let n=e.__unsignedDigit(t);if(n>p)return s.__absoluteGreater(r);if(n<p)return s.__absoluteLess(r)}if(0!==f||0!==d){if(0===m)throw Error("implementation bug");return s.__absoluteLess(r)}return 0}static __equalToNumber(e,t){return s.__isOneDigitInt(t)?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===r(t):0===s.__compareToDouble(e,t)}static __comparisonResultToBool(e,t){return 0===t?0>e:1===t?0>=e:2===t?0<e:3===t?0<=e:void 0}static __compare(e,t,r){if(e=s.__toPrimitive(e),t=s.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(r){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(s.__isBigInt(e)&&"string"==typeof t)return null!==(t=s.__fromString(t))&&s.__comparisonResultToBool(s.__compareToBigInt(e,t),r);if("string"==typeof e&&s.__isBigInt(t))return null!==(e=s.__fromString(e))&&s.__comparisonResultToBool(s.__compareToBigInt(e,t),r);if(e=s.__toNumeric(e),t=s.__toNumeric(t),s.__isBigInt(e)){if(s.__isBigInt(t))return s.__comparisonResultToBool(s.__compareToBigInt(e,t),r);if("number"!=typeof t)throw Error("implementation bug");return s.__comparisonResultToBool(s.__compareToNumber(e,t),r)}if("number"!=typeof e)throw Error("implementation bug");if(s.__isBigInt(t))return s.__comparisonResultToBool(s.__compareToNumber(t,e),2^r);if("number"!=typeof t)throw Error("implementation bug");return 0===r?e<t:1===r?e<=t:2===r?e>t:3===r?e>=t:void 0}__clzmsd(){return s.__clz30(this.__digit(this.length-1))}static __absoluteAdd(e,t,r){if(e.length<t.length)return s.__absoluteAdd(t,e,r);if(0===e.length)return e;if(0===t.length)return e.sign===r?e:s.unaryMinus(e);let n=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&n++;let i=new s(n,r),a=0,o=0;for(;o<t.length;o++){let r=e.__digit(o)+t.__digit(o)+a;a=r>>>30,i.__setDigit(o,0x3fffffff&r)}for(;o<e.length;o++){let t=e.__digit(o)+a;a=t>>>30,i.__setDigit(o,0x3fffffff&t)}return o<i.length&&i.__setDigit(o,a),i.__trim()}static __absoluteSub(e,t,r){if(0===e.length)return e;if(0===t.length)return e.sign===r?e:s.unaryMinus(e);let n=new s(e.length,r),i=0,a=0;for(;a<t.length;a++){let r=e.__digit(a)-t.__digit(a)-i;i=1&r>>>30,n.__setDigit(a,0x3fffffff&r)}for(;a<e.length;a++){let t=e.__digit(a)-i;i=1&t>>>30,n.__setDigit(a,0x3fffffff&t)}return n.__trim()}static __absoluteAddOne(e,t,r=null){let n=e.length;null===r?r=new s(n,t):r.sign=t;let i=1;for(let t=0;t<n;t++){let n=e.__digit(t)+i;i=n>>>30,r.__setDigit(t,0x3fffffff&n)}return 0!=i&&r.__setDigitGrow(n,1),r}static __absoluteSubOne(e,t){let r=e.length,n=new s(t=t||r,!1),i=1;for(let t=0;t<r;t++){let r=e.__digit(t)-i;i=1&r>>>30,n.__setDigit(t,0x3fffffff&r)}if(0!=i)throw Error("implementation bug");for(let e=r;e<t;e++)n.__setDigit(e,0);return n}static __absoluteAnd(e,t,r=null){let n=e.length,i=t.length,a=i;if(n<i){a=n;let r=e,s=n;e=t,n=i,t=r,i=s}let o=a;null===r?r=new s(o,!1):o=r.length;let u=0;for(;u<a;u++)r.__setDigit(u,e.__digit(u)&t.__digit(u));for(;u<o;u++)r.__setDigit(u,0);return r}static __absoluteAndNot(e,t,r=null){let n=e.length,i=t.length,a=i;n<i&&(a=n);let o=n;null===r?r=new s(o,!1):o=r.length;let u=0;for(;u<a;u++)r.__setDigit(u,e.__digit(u)&~t.__digit(u));for(;u<n;u++)r.__setDigit(u,e.__digit(u));for(;u<o;u++)r.__setDigit(u,0);return r}static __absoluteOr(e,t,r=null){let n=e.length,i=t.length,a=i;if(n<i){a=n;let r=e,s=n;e=t,n=i,t=r,i=s}let o=n;null===r?r=new s(o,!1):o=r.length;let u=0;for(;u<a;u++)r.__setDigit(u,e.__digit(u)|t.__digit(u));for(;u<n;u++)r.__setDigit(u,e.__digit(u));for(;u<o;u++)r.__setDigit(u,0);return r}static __absoluteXor(e,t,r=null){let n=e.length,i=t.length,a=i;if(n<i){a=n;let r=e,s=n;e=t,n=i,t=r,i=s}let o=n;null===r?r=new s(o,!1):o=r.length;let u=0;for(;u<a;u++)r.__setDigit(u,e.__digit(u)^t.__digit(u));for(;u<n;u++)r.__setDigit(u,e.__digit(u));for(;u<o;u++)r.__setDigit(u,0);return r}static __absoluteCompare(e,t){let r=e.length-t.length;if(0!=r)return r;let n=e.length-1;for(;0<=n&&e.__digit(n)===t.__digit(n);)n--;return 0>n?0:e.__unsignedDigit(n)>t.__unsignedDigit(n)?1:-1}static __multiplyAccumulate(e,t,r,n){if(0===t)return;let i=32767&t,a=t>>>15,o=0,u=0;for(let t,l=0;l<e.length;l++,n++){t=r.__digit(n);let c=e.__digit(l),f=32767&c,d=c>>>15,h=s.__imul(f,i),p=s.__imul(f,a),m=s.__imul(d,i),g=s.__imul(d,a);t+=u+h+o,o=t>>>30,t&=0x3fffffff,t+=((32767&p)<<15)+((32767&m)<<15),o+=t>>>30,u=g+(p>>>15)+(m>>>15),r.__setDigit(n,0x3fffffff&t)}for(;0!=o||0!==u;n++){let e=r.__digit(n);e+=o+u,u=0,o=e>>>30,r.__setDigit(n,0x3fffffff&e)}}static __internalMultiplyAdd(e,t,r,n,i){let a=r,o=0;for(let r=0;r<n;r++){let n=e.__digit(r),u=s.__imul(32767&n,t),l=s.__imul(n>>>15,t),c=u+((32767&l)<<15)+o+a;a=c>>>30,o=l>>>15,i.__setDigit(r,0x3fffffff&c)}if(i.length>n)for(i.__setDigit(n++,a+o);n<i.length;)i.__setDigit(n++,0);else if(0!==a+o)throw Error("implementation bug")}__inplaceMultiplyAdd(e,t,r){r>this.length&&(r=this.length);let n=32767&e,i=e>>>15,a=0,o=t;for(let e=0;e<r;e++){let t=this.__digit(e),r=32767&t,u=t>>>15,l=s.__imul(r,n),c=s.__imul(r,i),f=s.__imul(u,n),d=s.__imul(u,i),h=o+l+a;a=h>>>30,h&=0x3fffffff,h+=((32767&c)<<15)+((32767&f)<<15),a+=h>>>30,o=d+(c>>>15)+(f>>>15),this.__setDigit(e,0x3fffffff&h)}if(0!=a||0!==o)throw Error("implementation bug")}static __absoluteDivSmall(e,t,r=null){null===r&&(r=new s(e.length,!1));let n=0;for(let i,s=2*e.length-1;0<=s;s-=2){let a=0|(i=(n<<15|e.__halfDigit(s))>>>0)/t,o=0|(i=((n=0|i%t)<<15|e.__halfDigit(s-1))>>>0)/t;n=0|i%t,r.__setDigit(s>>>1,a<<15|o)}return r}static __absoluteModSmall(e,t){let r=0;for(let n=2*e.length-1;0<=n;n--)r=0|((r<<15|e.__halfDigit(n))>>>0)%t;return r}static __absoluteDivLarge(e,t,r,n){let i=t.__halfDigitLength(),a=t.length,o=e.__halfDigitLength()-i,u=null;r&&(u=new s(o+2>>>1,!1)).__initializeDigits();let l=new s(i+2>>>1,!1);l.__initializeDigits();let c=s.__clz15(t.__halfDigit(i-1));0<c&&(t=s.__specialLeftShift(t,c,0));let f=s.__specialLeftShift(e,c,1),d=t.__halfDigit(i-1),h=0;
1for(let e,n=o;0<=n;n--){e=32767;let o=f.__halfDigit(n+i);if(o!==d){let r=(o<<15|f.__halfDigit(n+i-1))>>>0;e=0|r/d;let a=0|r%d,u=t.__halfDigit(i-2),l=f.__halfDigit(n+i-2);for(;s.__imul(e,u)>>>0>(a<<16|l)>>>0&&(e--,!(32767<(a+=d))););}s.__internalMultiplyAdd(t,e,0,a,l);let c=f.__inplaceSub(l,n,i+1);0!==c&&(c=f.__inplaceAdd(t,n,i),f.__setHalfDigit(n+i,32767&f.__halfDigit(n+i)+c),e--),r&&(1&n?h=e<<15:u.__setDigit(n>>>1,h|e))}if(n)return f.__inplaceRightShift(c),r?{quotient:u,remainder:f}:f;if(r)return u;throw Error("unreachable")}static __clz15(e){return s.__clz30(e)-15}__inplaceAdd(e,t,r){let n=0;for(let i=0;i<r;i++){let r=this.__halfDigit(t+i)+e.__halfDigit(i)+n;n=r>>>15,this.__setHalfDigit(t+i,32767&r)}return n}__inplaceSub(e,t,r){let n=0;if(1&t){t>>=1;let i=this.__digit(t),s=32767&i,a=0;for(;a<r-1>>>1;a++){let r=e.__digit(a),o=(i>>>15)-(32767&r)-n;n=1&o>>>15,this.__setDigit(t+a,(32767&o)<<15|32767&s),n=1&(s=(32767&(i=this.__digit(t+a+1)))-(r>>>15)-n)>>>15}let o=e.__digit(a),u=(i>>>15)-(32767&o)-n;if(n=1&u>>>15,this.__setDigit(t+a,(32767&u)<<15|32767&s),t+a+1>=this.length)throw RangeError("out of bounds");0==(1&r)&&(n=1&(s=(32767&(i=this.__digit(t+a+1)))-(o>>>15)-n)>>>15,this.__setDigit(t+e.length,0x3fff8000&i|32767&s))}else{t>>=1;let i=0;for(;i<e.length-1;i++){let r=this.__digit(t+i),s=e.__digit(i),a=(32767&r)-(32767&s)-n,o=(r>>>15)-(s>>>15)-(n=1&a>>>15);n=1&o>>>15,this.__setDigit(t+i,(32767&o)<<15|32767&a)}let s=this.__digit(t+i),a=e.__digit(i),o=(32767&s)-(32767&a)-n;n=1&o>>>15;let u=0;0==(1&r)&&(n=1&(u=(s>>>15)-(a>>>15)-n)>>>15),this.__setDigit(t+i,(32767&u)<<15|32767&o)}return n}__inplaceRightShift(e){if(0===e)return;let t=this.__digit(0)>>>e,r=this.length-1;for(let n=0;n<r;n++){let r=this.__digit(n+1);this.__setDigit(n,0x3fffffff&r<<30-e|t),t=r>>>e}this.__setDigit(r,t)}static __specialLeftShift(e,t,r){let n=e.length,i=new s(n+r,!1);if(0===t){for(let t=0;t<n;t++)i.__setDigit(t,e.__digit(t));return 0<r&&i.__setDigit(n,0),i}let a=0;for(let r=0;r<n;r++){let n=e.__digit(r);i.__setDigit(r,0x3fffffff&n<<t|a),a=n>>>30-t}return 0<r&&i.__setDigit(n,a),i}static __leftShiftByAbsolute(e,t){let r=s.__toShiftAmount(t);if(0>r)throw RangeError("BigInt too big");let n=0|r/30,i=r%30,a=e.length,o=0!==i&&0!=e.__digit(a-1)>>>30-i,u=a+n+ +!!o,l=new s(u,e.sign);if(0===i){let t=0;for(;t<n;t++)l.__setDigit(t,0);for(;t<u;t++)l.__setDigit(t,e.__digit(t-n))}else{let t=0;for(let e=0;e<n;e++)l.__setDigit(e,0);for(let r=0;r<a;r++){let s=e.__digit(r);l.__setDigit(r+n,0x3fffffff&s<<i|t),t=s>>>30-i}if(o)l.__setDigit(a+n,t);else if(0!==t)throw Error("implementation bug")}return l.__trim()}static __rightShiftByAbsolute(e,t){let r=e.length,n=e.sign,i=s.__toShiftAmount(t);if(0>i)return s.__rightShiftByMaximum(n);let a=0|i/30,o=i%30,u=r-a;if(0>=u)return s.__rightShiftByMaximum(n);let l=!1;if(n){if(0!=(e.__digit(a)&(1<<o)-1))l=!0;else for(let t=0;t<a;t++)if(0!==e.__digit(t)){l=!0;break}}l&&0===o&&0==~e.__digit(r-1)&&u++;let c=new s(u,n);if(0===o){c.__setDigit(u-1,0);for(let t=a;t<r;t++)c.__setDigit(t-a,e.__digit(t))}else{let t=e.__digit(a)>>>o,n=r-a-1;for(let r=0;r<n;r++){let n=e.__digit(r+a+1);c.__setDigit(r,0x3fffffff&n<<30-o|t),t=n>>>o}c.__setDigit(n,t)}return l&&(c=s.__absoluteAddOne(c,!0,c)),c.__trim()}static __rightShiftByMaximum(e){return e?s.__oneDigit(1,!0):s.__zero()}static __toShiftAmount(e){if(1<e.length)return -1;let t=e.__unsignedDigit(0);return t>s.__kMaxLengthBits?-1:t}static __toPrimitive(e,t="default"){if("object"!=typeof e||e.constructor===s)return e;if("undefined"!=typeof Symbol&&"symbol"==typeof Symbol.toPrimitive){let r=e[Symbol.toPrimitive];if(r){let e=r(t);if("object"!=typeof e)return e;throw TypeError("Cannot convert object to primitive value")}}let r=e.valueOf;if(r){let t=r.call(e);if("object"!=typeof t)return t}let n=e.toString;if(n){let t=n.call(e);if("object"!=typeof t)return t}throw TypeError("Cannot convert object to primitive value")}static __toNumeric(e){return s.__isBigInt(e)?e:+e}static __isBigInt(e){return"object"==typeof e&&null!==e&&e.constructor===s}static __truncateToNBits(e,t){let r=0|(e+29)/30,n=new s(r,t.sign),i=r-1;for(let e=0;e<i;e++)n.__setDigit(e,t.__digit(e));let a=t.__digit(i);if(0!=e%30){let t=32-e%30;a=a<<t>>>t}return n.__setDigit(i,a),n.__trim()}static __truncateAndSubFromPowerOfTwo(e,t,r){let n;var i=Math.min;let a=0|(e+29)/30,o=new s(a,r),u=0,l=a-1,c=0;for(let e=i(l,t.length);u<e;u++){let e=0-t.__digit(u)-c;c=1&e>>>30,o.__setDigit(u,0x3fffffff&e)}for(;u<l;u++)o.__setDigit(u,0|0x3fffffff&-c);let f=l<t.length?t.__digit(l):0,d=e%30;if(0==d)n=0-f-c&0x3fffffff;else{let e=32-d;f=f<<e>>>e;let t=1<<32-e;n=t-f-c&t-1}return o.__setDigit(l,n),o.__trim()}__digit(e){return this[e]}__unsignedDigit(e){return this[e]>>>0}__setDigit(e,t){this[e]=0|t}__setDigitGrow(e,t){this[e]=0|t}__halfDigitLength(){let e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}__halfDigit(e){return 32767&this[e>>>1]>>>15*(1&e)}__setHalfDigit(e,t){let r=e>>>1,n=this.__digit(r);
1this.__setDigit(r,1&e?32767&n|t<<15:0x3fff8000&n|32767&t)}static __digitPow(e,t){let r=1;for(;0<t;)1&t&&(r*=e),t>>>=1,e*=e;return r}static __isOneDigitInt(e){return(0x3fffffff&e)===e}}return s.__kMaxLength=0x2000000,s.__kMaxLengthBits=s.__kMaxLength<<5,s.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],s.__kBitsPerCharTableShift=5,s.__kBitsPerCharTableMultiplier=1<<s.__kBitsPerCharTableShift,s.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],s.__kBitConversionBuffer=new ArrayBuffer(8),s.__kBitConversionDouble=new Float64Array(s.__kBitConversionBuffer),s.__kBitConversionInts=new Int32Array(s.__kBitConversionBuffer),s.__clz30=t?function(e){return t(e)-2}:function(e){var t=Math.LN2,r=Math.log;return 0===e?30:0|29-(0|r(e>>>0)/t)},s.__imul=e||function(e,t){return 0|e*t},s}()},54052:(e,t,r)=>{var n=0/0,i=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,u=parseInt,l="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g,c="object"==typeof self&&self&&self.Object===Object&&self,f=l||c||Function("return this")(),d=Object.prototype.toString,h=Math.max,p=Math.min,m=function(){return f.Date.now()};function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function b(e){if("number"==typeof e)return e;if("symbol"==typeof(t=e)||t&&"object"==typeof t&&"[object Symbol]"==d.call(t))return n;if(g(e)){var t,r="function"==typeof e.valueOf?e.valueOf():e;e=g(r)?r+"":r}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(i,"");var l=a.test(e);return l||o.test(e)?u(e.slice(2),l?2:8):s.test(e)?n:+e}e.exports=function(e,t,r){var n,i,s,a,o,u,l=0,c=!1,f=!1,d=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var r=n,s=i;return n=i=void 0,l=t,a=e.apply(s,r)}function A(e){var r=e-u,n=e-l;return void 0===u||r>=t||r<0||f&&n>=s}function v(){var e,r,n,i=m();if(A(i))return w(i);o=setTimeout(v,(e=i-u,r=i-l,n=t-e,f?p(n,s-r):n))}function w(e){return(o=void 0,d&&n)?y(e):(n=i=void 0,a)}function E(){var e,r=m(),s=A(r);if(n=arguments,i=this,u=r,s){if(void 0===o)return l=e=u,o=setTimeout(v,t),c?y(e):a;if(f)return o=setTimeout(v,t),y(u)}return void 0===o&&(o=setTimeout(v,t)),a}return t=b(t)||0,g(r)&&(c=!!r.leading,s=(f="maxWait"in r)?h(b(r.maxWait)||0,t):s,d="trailing"in r?!!r.trailing:d),E.cancel=function(){void 0!==o&&clearTimeout(o),l=0,n=u=i=o=void 0},E.flush=function(){return void 0===o?a:w(m())},E}},54184:e=>{e.exports&&(e.exports=function(e){return e.prototype.toFormat=function(e,t,r){if(!this.e&&0!==this.e)return this.toString();var n,i,s,a,o,u,l,c,f,d,h,p,m,g,b,y=this.format||{},A=this.constructor.format||{};if(e!=o?"object"==typeof e?(r=e,e=o):t!=o?"object"==typeof t?(r=t,t=o):"object"!=typeof r&&(r={}):r={}:r={},c=(n=this.toFixed(e,t).split("."))[0],f=n[1],u=(l=this.s<0?c.slice(1):c).length,(d=r.decimalSeparator)==o&&(d=y.decimalSeparator)==o&&(d=A.decimalSeparator)==o&&(d="."),(h=r.groupSeparator)==o&&(h=y.groupSeparator)==o&&(h=A.groupSeparator),h&&((p=r.groupSize)==o&&(p=y.groupSize)==o&&(p=A.groupSize)==o&&(p=0),(m=r.secondaryGroupSize)==o&&(m=y.secondaryGroupSize)==o&&(m=A.secondaryGroupSize)==o&&(m=0),m?(i=+m,u-=s=+p):(i=+p,s=+m),i>0&&u>0)){for(a=u%i||i,c=l.substr(0,a);a<u;a+=i)c+=h+l.substr(a,i);s>0&&(c+=h+l.slice(a)),this.s<0&&(c="-"+c)}return f?((g=r.fractionGroupSeparator)==o&&(g=y.fractionGroupSeparator)==o&&(g=A.fractionGroupSeparator),g&&((b=r.fractionGroupSize)==o&&(b=y.fractionGroupSize)==o&&(b=A.fractionGroupSize)==o&&(b=0),(b*=1)&&(f=f.replace(RegExp("\\d{"+b+"}\\B","g"),"$&"+g))),c+d+f):c},e.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},e})},54842:(e,t,r)=>{"use strict";r.d(t,{j:()=>u});var n=r(99702),i=r(7441),s=r(35109),a=r(90557),o=r(81379);function u(e,{abi:t,address:r,args:u,docsPath:l,functionName:c,sender:f}){let d=e instanceof s.$S?e:e instanceof i.C?e.walk(e=>"data"in e)||e.walk():{},{code:h,data:p,details:m,message:g,shortMessage:b}=d,y=e instanceof n.O?new s.rR({functionName:c}
1):[3,o.bq.code].includes(h)&&(p||m||g||b)?new s.M({abi:t,data:"object"==typeof p?p.data:p,functionName:c,message:d instanceof a.J8?m:b??g}):e;return new s.bG(y,{abi:t,args:u,contractAddress:r,docsPath:l,functionName:c,sender:f})}},55394:(e,t,r)=>{"use strict";r.d(t,{s:()=>c});var n=r(14493),i=r(13861),s=r(67622),a=r(41052),o=r(7612),u=r(34524),l=r(3488);async function c(e,{address:t,blockNumber:r,blockTag:c,gatewayUrls:f,strict:d,universalResolverAddress:h}){let p=h;if(!p){if(!e.chain)throw Error("client chain not configured. universalResolverAddress is required.");p=(0,i.M)({blockNumber:r,chain:e.chain,contract:"ensUniversalResolver"})}let m=`${t.toLowerCase().substring(2)}.addr.reverse`;try{let i={address:p,abi:n.oX,functionName:"reverse",args:[(0,s.nj)((0,o.F)(m))],blockNumber:r,blockTag:c},a=(0,u.T)(e,l.J,"readContract"),[d,h]=f?await a({...i,args:[...i.args,f]}):await a(i);if(t.toLowerCase()!==h.toLowerCase())return null;return d}catch(e){if(d)throw e;if((0,a.J)(e,"reverse"))return null;throw e}}},56937:(e,t,r)=>{var n,i=r(87358);!function(){"use strict";var s="input is invalid type",a="object"==typeof window,o=a?window:{};o.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof i&&i.versions&&i.versions.node?o=r.g:u&&(o=self);var l=!o.JS_SHA3_NO_COMMON_JS&&e.exports,c=r.amdO,f=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,d="0123456789abcdef".split(""),h=[4,1024,262144,0x4000000],p=[0,8,16,24],m=[1,0,32898,0,32906,0x80000000,0x80008000,0x80000000,32907,0,0x80000001,0,0x80008081,0x80000000,32777,0x80000000,138,0,136,0,0x80008009,0,0x8000000a,0,0x8000808b,0,139,0x80000000,32905,0x80000000,32771,0x80000000,32770,0x80000000,128,0x80000000,32778,0,0x8000000a,0x80000000,0x80008081,0x80000000,32896,0x80000000,0x80000001,0,0x80008008,0x80000000],g=[224,256,384,512],b=[128,256],y=["hex","buffer","arrayBuffer","array","digest"],A={128:168,256:136};(o.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),f&&(o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new P(e,t,e).update(n)[r]()}},w=function(e,t,r){return function(n,i){return new P(e,t,i).update(n)[r]()}},E=function(e,t,r){return function(t,n,i,s){return C["cshake"+e].update(t,n,i,s)[r]()}},x=function(e,t,r){return function(t,n,i,s){return C["kmac"+e].update(t,n,i,s)[r]()}},M=function(e,t,r,n){for(var i=0;i<y.length;++i){var s=y[i];e[s]=t(r,n,s)}return e},B=function(e,t){var r=v(e,t,"hex");return r.create=function(){return new P(e,t,e)},r.update=function(e){return r.create().update(e)},M(r,v,e,t)},_=[{name:"keccak",padding:[1,256,65536,0x1000000],bits:g,createMethod:B},{name:"sha3",padding:[6,1536,393216,0x6000000],bits:g,createMethod:B},{name:"shake",padding:[31,7936,2031616,0x1f000000],bits:b,createMethod:function(e,t){var r=w(e,t,"hex");return r.create=function(r){return new P(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},M(r,w,e,t)}},{name:"cshake",padding:h,bits:b,createMethod:function(e,t){var r=A[e],n=E(e,t,"hex");return n.create=function(n,i,s){return i||s?new P(e,t,n).bytepad([i,s],r):C["shake"+e].create(n)},n.update=function(e,t,r,i){return n.create(t,r,i).update(e)},M(n,E,e,t)}},{name:"kmac",padding:h,bits:b,createMethod:function(e,t){var r=A[e],n=x(e,t,"hex");return n.create=function(n,i,s){return new k(e,t,i).bytepad(["KMAC",s],r).bytepad([n],r)},n.update=function(e,t,r,i){return n.create(e,r,i).update(t)},M(n,x,e,t)}}],C={},I=[],S=0;S<_.length;++S)for(var D=_[S],O=D.bits,N=0;N<O.length;++N){var F=D.name+"_"+O[N];if(I.push(F),C[F]=D.createMethod(O[N],D.padding),"sha3"!==D.name){var R=D.name+O[N];I.push(R),C[R]=C[F]}}function P(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function k(e,t,r){P.call(this,e,t,r)}P.prototype.update=function(e){if(this.finalized)throw Error("finalize already called");var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(s);
1else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}for(var n,i,a=this.blocks,o=this.byteCount,u=e.length,l=this.blockCount,c=0,d=this.s;c<u;){if(this.reset)for(n=1,this.reset=!1,a[0]=this.block;n<l+1;++n)a[n]=0;if(t)for(n=this.start;c<u&&n<o;++c)a[n>>2]|=e[c]<<p[3&n++];else for(n=this.start;c<u&&n<o;++c)(i=e.charCodeAt(c))<128?a[n>>2]|=i<<p[3&n++]:(i<2048?a[n>>2]|=(192|i>>6)<<p[3&n++]:(i<55296||i>=57344?a[n>>2]|=(224|i>>12)<<p[3&n++]:(i=65536+((1023&i)<<10|1023&e.charCodeAt(++c)),a[n>>2]|=(240|i>>18)<<p[3&n++],a[n>>2]|=(128|i>>12&63)<<p[3&n++]),a[n>>2]|=(128|i>>6&63)<<p[3&n++]),a[n>>2]|=(128|63&i)<<p[3&n++]);if(this.lastByteIndex=n,n>=o){for(this.start=n-o,this.block=a[l],n=0;n<l;++n)d[n]^=a[n];T(d),this.reset=!0}else this.start=n}return this},P.prototype.encode=function(e,t){var r=255&e,n=1,i=[r];for(e>>=8,r=255&e;r>0;)i.unshift(r),e>>=8,r=255&e,++n;return t?i.push(n):i.unshift(n),this.update(i),i.length},P.prototype.encodeString=function(e){var t,r=typeof e;if("string"!==r){if("object"===r){if(null===e)throw Error(s);else if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw Error(s)}else throw Error(s);t=!0}var n=0,i=e.length;if(t)n=i;else for(var a=0;a<e.length;++a){var o=e.charCodeAt(a);o<128?n+=1:o<2048?n+=2:o<55296||o>=57344?n+=3:(o=65536+((1023&o)<<10|1023&e.charCodeAt(++a)),n+=4)}return n+=this.encode(8*n),this.update(e),n},P.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var i=[];return i.length=t-r%t,this.update(i),this},P.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(t=1,e[0]=e[r];t<r+1;++t)e[t]=0;for(e[r-1]|=0x80000000,t=0;t<r;++t)n[t]^=e[t];T(n)}},P.prototype.toString=P.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,a=0,o="";a<n;){for(s=0;s<t&&a<n;++s,++a)o+=d[(e=r[s])>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t==0&&(T(r),s=0)}return i&&(o+=d[(e=r[s])>>4&15]+d[15&e],i>1&&(o+=d[e>>12&15]+d[e>>8&15]),i>2&&(o+=d[e>>20&15]+d[e>>16&15])),o},P.prototype.arrayBuffer=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,i=this.extraBytes,s=0,a=0,o=this.outputBits>>3,u=new Uint32Array(e=new ArrayBuffer(i?n+1<<2:o));a<n;){for(s=0;s<t&&a<n;++s,++a)u[a]=r[s];a%t==0&&T(r)}return i&&(u[s]=r[s],e=e.slice(0,o)),e},P.prototype.buffer=P.prototype.arrayBuffer,P.prototype.digest=P.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,i=this.outputBlocks,s=this.extraBytes,a=0,o=0,u=[];o<i;){for(a=0;a<r&&o<i;++a,++o)e=o<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;o%r==0&&T(n)}return s&&(e=o<<2,t=n[a],u[e]=255&t,s>1&&(u[e+1]=t>>8&255),s>2&&(u[e+2]=t>>16&255)),u},k.prototype=new P,k.prototype.finalize=function(){return this.encode(this.outputBits,!0),P.prototype.finalize.call(this)};var T=function(e){var t,r,n,i,s,a,o,u,l,c,f,d,h,p,g,b,y,A,v,w,E,x,M,B,_,C,I,S,D,O,N,F,R,P,k,T,L,U,j,q,Q,H,G,z,J,K,V,W,Z,Y,$,X,ee,et,er,en,ei,es,ea,eo,eu,el,ec;for(n=0;n<48;n+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],s=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],o=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],l=e[5]^e[15]^e[25]^e[35]^e[45],c=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],h=e[9]^e[19]^e[29]^e[39]^e[49],t=d^(a<<1|o>>>31),r=h^(o<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=i^(u<<1|l>>>31),r=s^(l<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(c<<1|f>>>31),r=o^(f<<1|c>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|h>>>31),r=l^(h<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=c^(i<<1|s>>>31),r=f^(s<<1|i>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,p=e[0],g=e[1],K=e[11]<<4|e[10]>>>28,V=e[10]<<4|e[11]>>>28,S=e[20]<<3|e[21]>>>29,D=e[21]<<3|e[20]>>>29,eo=e[31]<<9|e[30]>>>23,eu=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,P=e[2]<<1|e[3]>>>31,k=e[3]<<1|e[2]>>>31,b=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,W=e[22]<<10|e[23]>>>22,Z=e[23]<<10|e[22]>>>22,O=e[33]<<13|e[32]>>>19,N=e[32]<<13|e[33]>>>19,el=e[42]<<2|e[43]>>>30,ec=e[43]<<2|e[42]>>>30,et=e[5]<<30|e[4]>>>2,er=e[4]<<30|e[5]>>>2,T=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,A=e[25]<<11|e[24]>>>21,v=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,F=e[45]<<29|e[44]>>>3,R=e[44]<<29|e[45]>>>3,B=e[6]<<28|e[7]>>>4,_=e[7]<<28|e[6]>>>4,en=e[17]<<23|e[16]>>>9,ei=e[16]<<23|e[17]>>>9,U=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,X=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,J=e[9]<<27|e[8]>>>5,C=e[18]<<20|e[19]>>>12,I=e[19]<<20|e[18]>>>12,es=e[29]<<7|e[28]>>>25,ea=e[28]<<7|e[29]>>>25,q=e[38]<<8|e[39]>>>24,Q=e[39]<<8|e[38]>>>24,x=e[48]<<14|e[49]>>>18,M=e[49]<<14|e[48]>>>18,e[0]=p^~b&A,e[1]=g^~y&v,e[10]=B^~C&S,e[11]=_^~I&D,e[20]=P^~T&U,e[21]=k^~L&j,e[30]=z^~K&W,e[31]=J^~V&Z,e[40]=et^~en&es,e[41]=er^~ei&ea,e[2]=b^~A&w,e[3]=y^~v&E,e[12]=C^~S&O,e[13]=I^~D&N,e[22]=T^~U&q,e[23]=L^~j&Q,e[32]=K^~W&Y,e[33]=V^~Z&$,e[42]=en^~es&eo,e[43]=ei^~ea&eu,e[4]=A^~w&x,e[5]=v^~E&M,e[14]=S^~O&F,e[15]=D^~N&R,e[24]=U^~q&H,e[25]=j^~Q&G,e[34]=W^~Y&X,e[35]=Z^~$&ee,e[44]=es^~eo&el,e[45]=ea^~eu&ec,e[6]=w^~x&p,e[7]=E^~M&g,e[16]=O^~F&B,e[17]=N^~R&_,e[26]=q^~H&P,e[27]=Q^~G&k,e[36]=Y^~X&z,e[37]=$^~ee&J,e[46]=eo^~el&et,e[47]=eu^~ec&er,e[8]=x^~p&b,e[9]=M^~g&y,e[18]=F^~B&C,e[19]=R^~_&I,e[28]=H^~P&T,e[29]=G^~k&L,e[38]=X^~z&K,e[39]=ee^~J&V,e[48]=el^~et&en,e[49]=ec^~er&ei,e[0]^=m[n],e[1]^=m[n+1]};if(l)e.exports=C;else{for(S=0;S<I.length;++S)o[I[S]]=C[I[S]];c&&void 0!==(n=(function(){return C}).call(t,r,t,e))&&(e.exports=n)}}()},57948:(e,t,r)=>{"use strict";r.d(t,{k:()=>i});var n=r(52020),i=class{#P;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,n.gn)(this.gcTime)&&(this.#P=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(n.S$?1/0:3e5))}clearGcTimeout(){this.#P&&(clearTimeout(this.#P),this.#P=void 0)}}},58950:(e,t,r)=>{"use strict";r.d(t,{v:()=>l});var n=r(19405),i=r(69330),s=r(60367),a=r(54842),o=r(34524),u=r(77079);async function l(e,t){let{abi:r,address:l,args:c,dataSuffix:f,functionName:d,...h}=t,p=h.account?(0,n.J)(h.account):e.account,m=(0,s.p)({abi:r,args:c,functionName:d});try{let{data:n}=await (0,o.T)(e,u.T,"call")({batch:!1,data:`${m}${f?f.replace("0x",""):""}`,to:l,...h,account:p}),s=(0,i.e)({abi:r,args:c,functionName:d,data:n||"0x"}),a=r.filter(e=>"name"in e&&e.name===t.functionName);return{result:s,request:{abi:a,address:l,args:c,dataSuffix:f,functionName:d,...h,account:p}}}catch(e){throw(0,a.j)(e,{abi:r,address:l,args:c,docsPath:"/docs/contract/simulateContract",functionName:d,sender:p?.address})}}},59243:(e,t,r)=>{"use strict";r.d(t,{A:()=>
1o});var n=r(24578),i=r(79731),s=r(87094),a=r(67622);function o(e,t){return(0,n.S)(function(e){let t="string"==typeof e?(0,a.i3)(e):"string"==typeof e.raw?e.raw:(0,a.My)(e.raw),r=(0,a.i3)(`\x19Ethereum Signed Message: 2${(0,s.E)(t)}`);return(0,i.xW)([r,t])}(e),t)}},59742:(e,t,r)=>{"use strict";r.d(t,{r:()=>i});var n=r(67622);async function i(e,{address:t,blockNumber:r,blockTag:i=e.experimental_blockTag??"latest"}){let s="bigint"==typeof r?(0,n.cK)(r):void 0;return BigInt(await e.request({method:"eth_getBalance",params:[t,s||i]}))}},60367:(e,t,r)=>{"use strict";r.d(t,{p:()=>c});var n=r(79731),i=r(13423),s=r(99702),a=r(21135),o=r(21159),u=r(23008);let l="/docs/contract/encodeFunctionData";function c(e){let{args:t}=e,{abi:r,functionName:c}=(()=>{if(1===e.abi.length&&e.functionName?.startsWith("0x"))return e;let{abi:t,args:r,functionName:n}=e,i=t[0];if(n){let e=(0,u.iY)({abi:t,args:r,name:n});if(!e)throw new s.Iz(n,{docsPath:l});i=e}if("function"!==i.type)throw new s.Iz(void 0,{docsPath:l});return{abi:[i],functionName:(0,a.V)((0,o.B)(i))}}
2)(),f=r[0],d="inputs"in f&&f.inputs?(0,i.h)(f.inputs,t??[]):void 0;return(0,n.aP)([c,d??"0x"])}},62108:(e,t,r)=>{"use strict";r.d(t,{I_:()=>i,Zi:()=>s,xO:()=>o});var n=r(52020);function i(e,t){return(0,n.BH)(e,t)}function s(e){return JSON.stringify(e,(e,t)=>!function(e){if(!a(e))return!1;let t=e.constructor;if(void 0===t)return!0;let r=t.prototype;return!!(a(r)&&r.hasOwnProperty("isPrototypeOf"))}(t)?"bigint"==typeof t?t.toString():t:Object.keys(t).sort().reduce((e,r)=>(e[r]=t[r],e),{}))}function a(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){let{_defaulted:t,behavior:r,gcTime:n,initialData:i,initialDataUpdatedAt:s,maxPages:a,meta:o,networkMode:u,queryFn:l,queryHash:c,queryKey:f,queryKeyHashFn:d,retry:h,retryDelay:p,structuralSharing:m,getPreviousPageParam:g,getNextPageParam:b,initialPageParam:y,_optimisticResults:A,enabled:v,notifyOnChangeProps:w,placeholderData:E,refetchInterval:x,refetchIntervalInBackground:M,refetchOnMount:B,refetchOnReconnect:_,refetchOnWindowFocus:C,retryOnMount:I,select:S,staleTime:D,suspense:O,throwOnError:N,config:F,connector:R,query:P,...k}=e;return k}},62739:(e,t,r)=>{"use strict";function n(){let e=()=>void 0,t=()=>void 0;return{promise:new Promise((r,n)=>{e=r,t=n}),resolve:e,reject:t}}r.d(t,{Y:()=>n})},63768:(e,t,r)=>{"use strict";function n(e,t){return"function"==typeof e?e(...t):!!e}function i(){}r.d(t,{G:()=>n,l:()=>i})},64007:(e,t,r)=>{"use strict";r.d(t,{pV:()=>b,NI:()=>E,TU:()=>A,aE:()=>v,ZK:()=>B});var n=r(95155),i=r(98761),s=r(37200);let a=({children:e,disableAddressLink:t,blockExplorerAddressLink:r})=>t?(0,n.jsx)(n.Fragment,{children:e}):(0,n.jsx)("a",{href:r,target:"_blank",rel:"noopener noreferrer",children:e});var o=r(12115);let u=({className:e})=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"})}),l=({className:e})=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:e,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 17.25v3.375c0 .621-.504 1.125-1.125 1.125h-9.75a1.125 1.125 0 0 1-1.125-1.125V7.875c0-.621.504-1.125 1.125-1.125H6.75a9.06 9.06 0 0 1 1.5.124m7.5 10.376h3.375c.621 0 1.125-.504 1.125-1.125V11.25c0-4.46-3.243-8.161-7.5-8.876a9.06 9.06 0 0 0-1.5-.124H9.375c-.621 0-1.125.504-1.125 1.125v3.5m7.5 10.375H9.375a1.125 1.125 0 0 1-1.125-1.125v-9.25m12 6.625v-1.875a3.375 3.375 0 0 0-3.375-3.375h-1.5a1.125 1.125 0 0 1-1.125-1.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H9.75"})}),c=({className:e,address:t})=>{let[r,i]=o.useState(!1),s=async e=>{try{await navigator.clipboard.writeText(e),i(!0),setTimeout(()=>{i(!1)},800)}catch(e){console.error("Failed to copy text:",e)}};return(0,n.jsx)("button",{onClick:e=>{e.stopPropagation(),s(t)},type:"button",children:r?(0,n.jsx)(u,{className:e}):(0,n.jsx)(l,{className:e})})},f={"3xs":"text-[10px]","2xs":"text-[11px]",xs:"text-xs",sm:"text-sm",base:"text-base",lg:"text-lg",xl:"text-xl","2xl":"text-2xl","3xl":"text-3xl","4xl":"text-4xl"},d={"3xs":4,"2xs":5,xs:6,sm:7,base:8,lg:9,xl:10,"2xl":12,"3xl":15,"4xl":17,"5xl":19,"6xl":21,"7xl":23},h={"3xs":"h-2.5 w-2.5","2xs":"h-3 w-3",xs:"h-3.5 w-3.5",sm:"h-4 w-4",base:"h-[18px] w-[18px]",lg:"h-5 w-5",xl:"h-[22px] w-[22px]","2xl":"h-6 w-6","3xl":"h-[26px] w-[26px]","4xl":"h-7 w-7"},p=(e,t,r=1)=>{let n=Object.keys(e),i=Math.min(n.indexOf(t)+r,n.length-1);return n[i]},m=(e,t,r=1)=>{let n=Object.keys(e),i=Math.max(n.indexOf(t)-r,0);return n[i]},g=({children:e,className:t="",style:r,as:i,...s})=>(0,n.jsx)(i||"div",{className:`${t} font-sans`,style:r,...s,children:e}),b=e=>{let{address:t,disableAddressLink:r,format:o,size:u="base",onlyEnsOrAddress:l,chain:b,style:y,blockExplorerAddressLink:A}=e,{checkSumAddress:v,ens:w,ensAvatar:E,isEnsNameLoading:x,blockExplorerAddressLink:M,shortAddress:B,blockieUrl:_}=(0,i.UD)({address:t,chain:b||s.r});A=A||M;let C="long"===o?v:B,I=w||C,S=!v||!l&&(w||x),D=S&&!l?m(f,u,2):u,O=p(f,D),N=S&&!l?p(d,D,4):D;return v?(0,n.jsxs)(g,{className:"flex items-center shrink-0 text-sui-primary-content",style:y,children:[(0,n.jsx)("div",{className:"shrink-0",children:(0,n.jsx)("img",{className:"rounded-full",src:E||_,width:24*d[N]/d.base,height:24*d[N]/d.base,alt:"".concat(t," avatar")})}),(0,n.jsxs)("div",{className:"flex flex-col",children:[S&&(x?(0,n.jsx)("div",{className:"ml-1.5 sui-skeleton rounded-lg font-bold ".concat(f[O]),children:(0,n.jsx)("span",{className:"invisible",children:B})}):(0,n.jsx)("span",{className:"ml-1.5 ".concat(f[O]," font-bold"),children:(0,n.jsx)(a,{disableAddressLink:r,blockExplorerAddressLink:A,children:w})})),(0,n.jsxs)("div",{className:"flex",children:[(0,n.jsx)("span",{className:"ml-1.5 ".concat(f[D]," font-normal"),children:(0,n.jsx)(a,{disableAddressLink:r,blockExplorerAddressLink:A,children:l?I:C})}),(0,n.jsx)(c,{className:"ml-1 ".concat(h[D]," cursor-pointer"),address:v})]})]})]}):(0,n.jsxs)(g,{className:"flex items-center text-sui-primary-content",style:y,children:[(0,n.jsx)("div",{className:"shrink-0 sui-skeleton !rounded-full",style:{width:24*d[N]/d.base,height:24*d[N]/d.base}}),(0,n.jsxs)("div",{className:"flex flex-col space-y-1",children:[!l&&(0,n.jsx)("div",{className:"ml-1.5 sui-skeleton rounded-lg font-bold ".concat(f[O]),children:(0,n.jsx)("span",{className:"invisible",children:"0x1234...56789"})}),(0,n.jsx)("div",{className:"ml-1.5 sui-skeleton rounded-lg ".concat(f[D]),children:(0,n.jsx)("span",{className:"invisible",children:"0x1234...56789"})})]})]})};var y=r(2145);let A=e=>{let{address:t,chain:r,defaultUsdMode:a,style:o}=e,{chain:u}=(0,y.F)(),l=r||(null!=u?u:s.r),{displayUsdMode:c,toggleDisplayUsdMode:f,formattedBalance:d,balanceInUsd:h,isLoading:p,isError:m,balance:b}=(0,i.Av)({address:t,chain:l,defaultUsdMode:a});return p||!b?(0,n.jsx)(g,{className:"flex items-center animate-pulse",style:o,children:(0,n.jsx)("div",{className:"h-4 w-20 bg-sui-skeleton-base rounded"})}):m?(0,n.jsx)(g,{className:"border border-gray-300 rounded px-2 flex flex-col items-center max-w-fit text-sui-primary-content",style:o,children:(0,n.jsx)("div",{className:"text-sui-warning text-sm",children:"Error"})}):(0,n.jsx)(g,{as:"button",className:"flex flex-col items-center font-normal bg-transparent focus:outline-none cursor-pointer text-sui-primary-content",onClick:f,type:"button",title:"Toggle balance display mode",style:o,children:(0,n.jsx)("div",{className:"flex items-center justify-center",children:c?(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("span",{className:"text-xs font-bold mr-1",children:"$"}),(0,n.jsx)("span",{children:h.toFixed(2)})]}):(0,n.jsxs)("div",{className:"flex items-center",children:[(0,n.jsx)("span",{children:d.toFixed(4)}),(0,n.jsx)("span",{className:"text-xs font-bold ml-1",children:null==l?void 0:l.nativeCurrency.symbol})]})})})},v=e=>{let{name:t,value:r,onChange:i,placeholder:s,error:a,disabled:u,prefix:l,suffix:c,reFocus:f,style:d}=e,h=(0,o.useRef)(null),p="";a?p="border-sui-input-border-error!":u&&(p="border-sui-input-border-disabled!");let m=(0,o.useCallback)(e=>{i(e.target.value)},[i]);return(0,o.useEffect)(()=>{var e;f&&(null===(e=h.current)||void 0===e||e.focus({preventScroll:!0}))},[f]),(0,n.jsxs)(g,{className:"flex border-2 rounded-full border-sui-input-border bg-sui-input-background text-sui-input-text ".concat(p),style:d,children:[l,(0,n.jsx)("input",{className:"w-full h-[2.2rem] min-h-[2.2rem] px-4 border-0 bg-transparent font-medium placeholder:text-sui-accent/70 focus:text-sui-input-text text-sui-input-text disabled:text-sui-base-content/40 text-sm focus:outline-none focus:ring-0 ".concat(u?"cursor-not-allowed":""),placeholder:s,name:t,value:null==r?void 0:r.toString(),onChange:m,disabled:u,autoComplete:"off",ref:h,onFocus:e=>{void 0!==f&&e.currentTarget.setSelectionRange(e.currentTarget.value.length,e.currentTarget.value.length)}}),c]})};var w=r(91986);let E=e=>{let{value:t,name:r,placeholder:s,onChange:a,disabled:u,style:l}=e,{ensAddress:c,ensName:f,ensAvatar:d,isEnsAddressLoading:h,isEnsNameLoading:p,isEnsAvatarLoading:m,isEnsAddressError:g,isEnsNameError:b,settledValue:y}
2=(0,i.gB)({value:t}),[A,E]=(0,o.useState)(),x=g||b||null===f||null===c;return(0,o.useEffect)(()=>{c&&(E(y),a(c))},[c,a,y]),(0,o.useEffect)(()=>{E(void 0)},[t]),(0,n.jsx)(v,{name:r,placeholder:s,error:null===c,value:t,onChange:a,style:l,disabled:h||p||u,reFocus:x,prefix:f?(0,n.jsxs)("div",{className:"flex rounded-l-full items-center bg-sui-input-border",style:l,children:[m&&(0,n.jsx)("div",{className:"animate-pulse w-[35px] h-[35px] rounded-full shrink-0 bg-sui-input-background"}),d?(0,n.jsx)("span",{className:"w-[35px]",children:(0,n.jsx)("img",{className:"w-full rounded-full",src:d,alt:"".concat(c," avatar")})}):null,(0,n.jsx)("span",{className:"px-2 text-sui-accent",children:null!=A?A:f})]}):(p||h)&&(0,n.jsxs)("div",{className:"flex rounded-l-full items-center gap-2 pr-2 bg-sui-input-border",style:l,children:[(0,n.jsx)("div",{className:"animate-pulse w-[35px] h-[35px] rounded-full shrink-0 bg-sui-input-background"}),(0,n.jsx)("div",{className:"animate-pulse h-3 w-20 bg-sui-input-background"})]}),suffix:t&&(0,n.jsx)("img",{alt:"",className:"rounded-full!",src:(0,w.SS)(t),width:"35",height:"35"})})},x=({width:e=24,height:t=24})=>(0,n.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",width:e,height:t,children:(0,n.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M7.5 21 3 16.5m0 0L7.5 12M3 16.5h13.5m0-13.5L21 7.5m0 0L16.5 12M21 7.5H7.5"})}),M=/^-?\d+\.?\d*$/,B=e=>{let{name:t,placeholder:r,defaultValue:s,defaultUsdMode:a,disabled:u,onValueChange:l,style:c}=e,[f,d]=(0,o.useState)(null!=s?s:""),[h,p]=(0,o.useState)(null!=a&&a),[m,g]=(0,o.useState)(null!=a&&a),b=(0,o.useRef)(l);b.current=l;let{valueInEth:y,valueInUsd:A,isNativeCurrencyPriceLoading:w,isNativeCurrencyPriceError:E}=(0,i.Ou)({value:f,usdMode:h}),B=m?A:y;(0,o.useEffect)(()=>{b.current&&b.current({valueInEth:y,valueInUsd:A,displayUsdMode:m})},[y,A,m]);let _=()=>{g(e=>!e)};return(0,n.jsx)("div",{className:"flex items-center gap-2",children:(0,n.jsx)(v,{name:t,value:B,placeholder:r,onChange:e=>{if(!e||M.test(e)){if(m){let t=e.split(".")[1];if(t&&t.length>i.ZA)return}d(e),h!==m&&p(m)}},disabled:w||u,prefix:(0,n.jsx)("span",{className:"pl-4 -mr-2 self-center",children:m?"$":"Ξ"}),style:c,suffix:(0,n.jsx)("button",{className:"h-[2.2rem] min-h-[2.2rem] cursor-pointer mr-3",onClick:e=>{e.preventDefault(),_()},disabled:w||E||u,type:"button",tabIndex:-1,title:w?"Fetching price":E?"Unable to fetch price":"Toggle USD/ETH",children:(0,n.jsx)(x,{height:15,width:15})})})})}},65453:(e,t,r)=>{"use strict";r.d(t,{v:()=>u});var n=r(12115);let i=e=>{let t,r=new Set,n=(e,n)=>{let i="function"==typeof e?e(t):e;if(!Object.is(i,t)){let e=t;t=(null!=n?n:"object"!=typeof i||null===i)?i:Object.assign({},t,i),r.forEach(r=>r(t,e))}},i=()=>t,s={setState:n,getState:i,getInitialState:()=>a,subscribe:e=>(r.add(e),()=>r.delete(e))},a=t=e(n,i,s);return s},s=e=>e?i(e):i,a=e=>e,o=e=>{let t=s(e),r=e=>(function(e,t=a){let r=n.useSyncExternalStore(e.subscribe,n.useCallback(()=>t(e.getState()),[e,t]),n.useCallback(()=>t(e.getInitialState()),[e,t]));return n.useDebugValue(r),r})(t,e);return Object.assign(r,t),r},u=e=>e?o(e):o},65830:(e,t,r)=>{"use strict";r.d(t,{m:()=>p});var n=r(14493),i=r(69330),s=r(60367),a=r(13861),o=r(67622),u=r(41052),l=r(81896),c=r(32160),f=r(7612),d=r(34524),h=r(3488);async function p(e,t){let{blockNumber:r,blockTag:p,key:m,name:g,gatewayUrls:b,strict:y}=t,{chain:A}=e,v=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!A)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.M)({blockNumber:r,chain:A,contract:"ensUniversalResolver"})})(),w=A?.ensTlds;if(w&&!w.some(e=>g.endsWith(e)))return null;try{let t={address:v,abi:n.Ag,functionName:"resolve",args:[(0,o.nj)((0,f.F)(g)),(0,s.p)({abi:n.SJ,functionName:"text",args:[(0,c.k)(g),m]}),b??[l.J]],blockNumber:r,blockTag:p},a=(0,d.T)(e,h.J,"readContract"),u=await a(t);if("0x"===u[0])return null;let y=(0,i.e)({abi:n.SJ,functionName:"text",data:u[0]});return""===y?null:y}catch(e){if(y)throw e;if((0,u.J)(e,"resolve"))return null;throw e}}},65996:(e,t,r)=>{"use strict";r.d(t,{e:()=>a});var n=r(7052),i=r(45566),s=r(53031);function a(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=(0,s.U)(e);return(0,i.useSyncExternalStoreWithSelector)(e=>(function(e,t){let{onChange:r}=t;return e.subscribe(()=>(0,n.B)(e),r,{equalityFn:(e,t)=>e?.uid===t?.uid})})(t,{onChange:e}),()=>(0,n.B)(t,e),()=>(0,n.B)(t,e),e=>e,(e,t)=>(null==e?void 0:e.uid)===(null==t?void 0:t.uid))}},69330:(e,t,r)=>{"use strict";r.d(t,{e:()=>o});var n=r(99702),i=r(38451),s=r(23008);let a="/docs/contract/decodeFunctionResult";function o(e){let{abi:t,args:r,functionName:o,data:u}=e,l=t[0];if(o){let e=(0,s.iY)({abi:t,args:r,name:o});if(!e)throw new n.Iz(o,{docsPath:a});l=e}if("function"!==l.type)throw new n.Iz(void 0,{docsPath:a});if(!l.outputs)throw new n.MR(l.name,{docsPath:a});let c=(0,i.n)(l.outputs,u);return c&&c.length>1?c:c&&1===c.length?c[0]:void 0}},70030:(e,t,r)=>{"use strict";function n(e,t,r){let n=e[t.name];if("function"==typeof n)return n;let i=e[r];return"function"==typeof i?i:r=>t(e,r)}r.d(t,{T:()=>n})},70872:(e,t,r)=>{"use strict";r.d(t,{q:()=>i});var n=r(32840);function i(e){if(66!==e.length||0!==e.indexOf("[")||65!==e.indexOf("]"))return null;let t=`0x${e.slice(1,65)}`;return(0,n.q)(t)?t:null}},72342:(e,t,r)=>{"use strict";r.d(t,{lB:()=>a});let n=new Map,i=new Map,s=0;function a(e,t,r){let a=++s,o=()=>n.get(e)||[],u=()=>
2{let t=o();n.set(e,t.filter(e=>e.id!==a))},l=()=>{let t=o();if(!t.some(e=>e.id===a))return;let r=i.get(e);if(1===t.length&&r){let e=r();e instanceof Promise&&e.catch(()=>{})}u()},c=o();if(n.set(e,[...c,{id:a,fns:t}]),c&&c.length>0)return l;let f={};for(let e in t)f[e]=(...t)=>{let r=o();if(0!==r.length)for(let n of r)n.fns[e]?.(...t)};let d=r(f);return"function"==typeof d&&i.set(e,d),l}},73097:function(e,t,r){var n;!function(i){"use strict";var s,a="[big.js] ",o=a+"Invalid ",u=o+"decimal places",l=o+"rounding mode",c=a+"Division by zero",f={},d=void 0,h=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function p(e,t,r,n){var i=e.c,s=e.e+t+1;if(s<i.length){if(1===r)n=i[s]>=5;else if(2===r)n=i[s]>5||5==i[s]&&(n||s<0||i[s+1]!==d||1&i[s-1]);else if(3===r)n=n||!!i[0];else if(n=!1,0!==r)throw Error(l);if(s<1)i.length=1,n?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=s--,n)for(;++i[s]>9;)i[s]=0,s--||(++e.e,i.unshift(1));for(s=i.length;!i[--s];)i.pop()}}else if(r<0||r>3||r!==~~r)throw Error(l);return e}function m(e,t,r,n){var i,s,a=e.constructor,l=!e.c[0];if(r!==d){if(r!==~~r||r<(3==t)||r>1e6)throw Error(3==t?o+"precision":u);for(r=n-(e=new a(e)).e,e.c.length>++n&&p(e,r,a.RM),2==t&&(n=e.e+r+1);e.c.length<n;)e.c.push(0)}if(i=e.e,r=(s=e.c.join("")).length,2!=t&&(1==t||3==t&&n<=i||i<=a.NE||i>=a.PE))s=s.charAt(0)+(r>1?"."+s.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)s="0"+s;s="0."+s}else if(i>0)if(++i>r)for(i-=r;i--;)s+="0";else i<r&&(s=s.slice(0,i)+"."+s.slice(i));else r>1&&(s=s.charAt(0)+"."+s.slice(1));return e.s<0&&(!l||4==t)?"-"+s:s}f.abs=function(){var e=new this.constructor(this);return e.s=1,e},f.cmp=function(e){var t,r=this.c,n=(e=new this.constructor(e)).c,i=this.s,s=e.s,a=this.e,o=e.e;if(!r[0]||!n[0])return r[0]?i:n[0]?-s:0;if(i!=s)return i;if(t=i<0,a!=o)return a>o^t?1:-1;for(i=-1,s=(a=r.length)<(o=n.length)?a:o;++i<s;)if(r[i]!=n[i])return r[i]>n[i]^t?1:-1;return a==o?0:a>o^t?1:-1},f.div=function(e){var t=this.constructor,r=this.c,n=(e=new t(e)).c,i=this.s==e.s?1:-1,s=t.DP;if(s!==~~s||s<0||s>1e6)throw Error(u);if(!n[0])throw Error(c);if(!r[0])return new t(0*i);var a,o,l,f,h,m=n.slice(),g=a=n.length,b=r.length,y=r.slice(0,a),A=y.length,v=e,w=v.c=[],E=0,x=s+(v.e=this.e-e.e)+1;for(v.s=i,i=x<0?0:x,m.unshift(0);A++<a;)y.push(0);do{for(l=0;l<10;l++){if(a!=(A=y.length))f=a>A?1:-1;else for(h=-1,f=0;++h<a;)if(n[h]!=y[h]){f=n[h]>y[h]?1:-1;break}if(f<0){for(o=A==a?n:m;A;){if(y[--A]<o[A]){for(h=A;h&&!y[--h];)y[h]=9;--y[h],y[A]+=10}y[A]-=o[A]}for(;!y[0];)y.shift()}else break}w[E++]=f?l:++l,y[0]&&f?y[A]=r[g]||0:y=[r[g]]}while((g++<b||y[0]!==d)&&i--);return!w[0]&&1!=E&&(w.shift(),v.e--),E>x&&p(v,s,t.RM,y[0]!==d),v},f.eq=function(e){return!this.cmp(e)},f.gt=function(e){return this.cmp(e)>0},f.gte=function(e){return this.cmp(e)>-1},f.lt=function(e){return 0>this.cmp(e)},f.lte=function(e){return 1>this.cmp(e)},f.minus=f.sub=function(e){var t,r,n,i,s=this.constructor,a=this.s,o=(e=new s(e)).s;if(a!=o)return e.s=-o,this.plus(e);var u=this.c.slice(),l=this.e,c=e.c,f=e.e;if(!u[0]||!c[0])return c[0]?(e.s=-o,e):new s(u[0]?this:0);if(a=l-f){for((i=a<0)?(a=-a,n=u):(f=l,n=c),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else for(r=((i=u.length<c.length)?u:c).length,a=o=0;o<r;o++)if(u[o]!=c[o]){i=u[o]<c[o];break}if(i&&(n=u,u=c,c=n,e.s=-e.s),(o=(r=c.length)-(t=u.length))>0)for(;o--;)u[t++]=0;for(o=t;r>a;){if(u[--r]<c[r]){for(t=r;t&&!u[--t];)u[t]=9;--u[t],u[r]+=10}u[r]-=c[r]}for(;0===u[--o];)u.pop();for(;0===u[0];)u.shift(),--f;return u[0]||(e.s=1,u=[f=0]),e.c=u,e.e=f,e},f.mod=function(e){var t,r=this,n=r.constructor,i=r.s,s=(e=new n(e)).s;if(!e.c[0])throw Error(c);return(r.s=e.s=1,t=1==e.cmp(r),r.s=i,e.s=s,t)?new n(r):(i=n.DP,s=n.RM,n.DP=n.RM=0,r=r.div(e),n.DP=i,n.RM=s,this.minus(r.times(e)))},f.plus=f.add=function(e){var t,r=this.constructor,n=this.s,i=(e=new r(e)).s;if(n!=i)return e.s=-i,this.minus(e);var s=this.e,a=this.c,o=e.e,u=e.c;if(!a[0]||!u[0])return u[0]?e:new r(a[0]?this:0*n);if(a=a.slice(),n=s-o){for(n>0?(o=s,t=u):(n=-n,t=a),t.reverse();n--;)t.push(0);t.reverse()}for(a.length-u.length<0&&(t=u,u=a,a=t),n=u.length,i=0;n;a[n]%=10)i=(a[--n]=a[n]+u[n]+i)/10|0;for(i&&(a.unshift(i),++o),n=a.length;0===a[--n];)a.pop();return e.c=a,e.e=o,e},f.pow=function(e){var t=this,r=new t.constructor(1),n=r,i=e<0;if(e!==~~e||e<-1e6||e>1e6)throw Error(o+"exponent");for(i&&(e=-e);1&e&&(n=n.times(t)),e>>=1;)t=t.times(t);return i?r.div(n):n},f.round=function(e,t){var r=this.constructor;if(e===d)e=0;else if(e!==~~e||e<-1e6||e>1e6)throw Error(u);return p(new r(this),e,t===d?r.RM:t)},f.sqrt=function(){var e,t,r,n=this.constructor,i=this.s,s=this.e,o=new n(.5);if(!this.c[0])return new n(this);if(i<0)throw Error(a+"No square root");0===(i=Math.sqrt(this+""))||i===1/0?((t=this.c.join("")).length+s&1||(t+="0"),s=((s+1)/2|0)-(s<0||1&s),e=new n(((i=Math.sqrt(t))==1/0?"1e":(i=i.toExponential()).slice(0,i.indexOf("e")+1))+s)):e=new n(i),s=e.e+(n.DP+=4);do r=e,e=o.times(r.plus(this.div(r)));while(r.c.slice(0,s).join("")!==e.c.slice(0,s).join(""));return p(e,n.DP-=4,n.RM)},f.times=f.mul=function(e){var t,r=this.constructor,n=this.c,i=(e=new r(e)).c,s=n.length,a=i.length,o=this.e,u=e.e;if(e.s=this.s==e.s?1:-1,!n[0]||!i[0])return new r(0*e.s);for(e.e=o+u,s<a&&(t=n,n=i,i=t,u=s,s=a,a=u),t=Array(u=s+a);u--;)t[u]=0;for(o=a;o--;){for(a=0,u=s+o;u>o;)a=t[u]+i[o]*n[u-o-1]+a,t[u--]=a%10,a=a/10|0;t[u]=(t[u]+a)%10}for(a?++e.e:t.shift(),o=t.length;!t[--o];)t.pop();return e.c=t,e},f.toExponential=function(e){return m(this,1,e,e)},f.toFixed=function(e){return m(this,2,e,this.e+e)},f.toPrecision=function(e){return m(this,3,e,e-1)},f.toString=function(){return m(this)},f.valueOf=f.toJSON=function(){return m(this,4)},(s=function e(){function t(r){if(!(this instanceof t))return r===d?e():new t(r);r instanceof t?(this.s=r.s,this.e=r.e,this.c=r.c.slice()):function(e,t){var r,n,i;if(0===t&&1/t<0)t="-0";else if(!h.test(t+=""))throw Error(o+"number");for(e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(r=t.indexOf("."))>-1&&(t=t.replace(".","")),(n=t.search(/e/i))>0?(r<0&&(r=n),r+=+t.slice(n+1),t=t.substring(0,n)):r<0&&(r=t.length),i=t.length,n=0;n<i&&"0"==t.charAt(n);)++n;if(n==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=r-n-1,e.c=[],r=0;n<=i;)e.c[r++]=+t.charAt(n++)}}(this,r),this.constructor=t}return t.prototype=f,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.version="5.2.2",t}()).default=s.Big=s,void 0!==(n=(function(){return s}).call(t,r,t,e))&&(e.exports=n)}(0)},73142:(e,t,r)=>{"use strict";r.d(t,{Ej:()=>g,Fl:()=>x,Ho:()=>h,M7:()=>p,Ty:()=>y,di:()=>m,ii:()=>E,oB:()=>f,sH:()=>d,tf:()=>b,u:()=>w,uK:()=>c,xW:()=>u,xb:()=>l});var n=r(21894),i=r(43695),s=r(89242);let a=new TextEncoder,o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function u(...e){return`0x${e.reduce((e,t)=>
2e+t.replace("0x",""),"")}`}function l(e,t={}){let r=`0x${Number(e)}`;return"number"==typeof t.size?(s.Sl(r,t.size),h(r,t.size)):r}function c(e,t={}){let r="";for(let t=0;t<e.length;t++)r+=o[e[t]];let n=`0x${r}`;return"number"==typeof t.size?(s.Sl(n,t.size),p(n,t.size)):n}function f(e,t={}){let r,{signed:n,size:i}=t,s=BigInt(e);i?r=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:"number"==typeof e&&(r=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof r&&n?-r-1n:0;if(r&&s>r||s<a){let t="bigint"==typeof e?"n":"";throw new y({max:r?`${r}${t}`:void 0,min:`${a}${t}`,signed:n,size:i,value:`${e}${t}`})}let o=(n&&s<0?(1n<<BigInt(8*i))+BigInt(s):s).toString(16),u=`0x${o}`;return i?h(u,i):u}function d(e,t={}){return c(a.encode(e),t)}function h(e,t){return s.eV(e,{dir:"left",size:t})}function p(e,t){return s.eV(e,{dir:"right",size:t})}function m(e,t,r,n={}){let{strict:i}=n;s.kK(e,t);let a=`0x${e.replace("0x","").slice((t??0)*2,(r??e.length)*2)}`;return i&&s.X(a,t,r),a}function g(e){return Math.ceil((e.length-2)/2)}function b(e,t={}){let{strict:r=!1}=t;try{return!function(e,t={}){let{strict:r=!1}=t;if(!e||"string"!=typeof e)throw new A(e);
2if(r&&!/^0x[0-9a-fA-F]*$/.test(e)||!e.startsWith("0x"))throw new v(e)}(e,{strict:r}),!0}catch{return!1}}class y extends n.C{constructor({max:e,min:t,signed:r,size:n,value:i}){super(`Number \`${i}\` is not in safe${n?` ${8*n}-bit`:""}${r?" signed":" unsigned"} integer range ${e?`(\`${t}\` to \`${e}\`)`:`(above \`${t}\`)`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.IntegerOutOfRangeError"})}}n.C;class A extends n.C{constructor(e){super(`Value \`${"object"==typeof e?i.A(e):e}\` of type \`${typeof e}\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `"0x${string}"`.']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexTypeError"})}}class v extends n.C{constructor(e){super(`Value \`${e}\` is an invalid hex value.`,{metaMessages:['Hex values must start with `"0x"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.InvalidHexValueError"})}}n.C;class w extends n.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeOverflowError"})}}class E extends n.C{constructor({offset:e,position:t,size:r}){super(`Slice ${"start"===t?"starting":"ending"} at offset \`${e}\` is out-of-bounds (size: \`${r}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SliceOffsetOutOfBoundsError"})}}class x extends n.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Hex.SizeExceedsPaddingSizeError"})}}},73504:(e,t,r)=>{"use strict";function n(){let e,t,r=new Promise((r,n)=>{e=r,t=n});function n(e){Object.assign(r,e),delete r.resolve,delete r.reject}return r.status="pending",r.catch(()=>{}),r.resolve=t=>{n({status:"fulfilled",value:t}),e(t)},r.reject=e=>{n({status:"rejected",reason:e}),t(e)},r}r.d(t,{T:()=>n})},74692:(e,t,r)=>{"use strict";r.d(t,{Fo:()=>h,Q3:()=>c,aq:()=>f});var n=r(12115),i=r(54052),s="undefined"!=typeof window?n.useLayoutEffect:n.useEffect;function a(e,t,r,i){let a=(0,n.useRef)(t);s(()=>{a.current=t},[t]),(0,n.useEffect)(()=>{let t=(null==r?void 0:r.current)??window;if(!(t&&t.addEventListener))return;let n=e=>{a.current(e)};return t.addEventListener(e,n,i),()=>{t.removeEventListener(e,n,i)}},[e,r,i])}function o(e){let t=(0,n.useRef)(()=>{throw Error("Cannot call an event handler while rendering.")});return s(()=>{t.current=e},[e]),(0,n.useCallback)((...e)=>{var r;return null==(r=t.current)?void 0:r.call(t,...e)},[t])}var u="undefined"==typeof window,l="undefined"==typeof window;function c(e,t,r){let s=(null==r?void 0:r.equalityFn)??((e,t)=>
2e===t),a=e instanceof Function?e():e,[o,u]=(0,n.useState)(a),l=(0,n.useRef)(a),c=function(e,t=500,r){let s=(0,n.useRef)();var a=()=>{s.current&&s.current.cancel()};let o=(0,n.useRef)(a);o.current=a,(0,n.useEffect)(()=>()=>{o.current()},[]);let u=(0,n.useMemo)(()=>{let n=i(e,t,r),a=(...e)=>n(...e);return a.cancel=()=>{n.cancel()},a.isPending=()=>!!s.current,a.flush=()=>n.flush(),a},[e,t,r]);return(0,n.useEffect)(()=>{s.current=i(e,t,r)},[e,t,r]),u}(u,t,r);return s(l.current,a)||(c(a),l.current=a),[o,c]}function f(){let e=(0,n.useRef)(!1);return(0,n.useEffect)(()=>(e.current=!0,()=>{e.current=!1}),[]),(0,n.useCallback)(()=>e.current,[])}var d="undefined"==typeof window;function h(e,t,r={}){let{initializeWithValue:i=!0}=r,s=(0,n.useCallback)(e=>r.serializer?r.serializer(e):JSON.stringify(e),[r]),u=(0,n.useCallback)(e=>{let n;if(r.deserializer)return r.deserializer(e);if("undefined"===e)return;let i=t instanceof Function?t():t;try{n=JSON.parse(e)}catch(e){return console.error("Error parsing JSON:",e),i}return n},[r,t]),l=(0,n.useCallback)(()=>{let r=t instanceof Function?t():t;if(d)return r;try{let t=window.sessionStorage.getItem(e);return t?u(t):r}catch(t){return console.warn(`Error reading sessionStorage key \u201C${e}\u201D:`,t),r}},[t,e,u]),[c,f]=(0,n.useState)(()=>i?l():t instanceof Function?t():t),p=o(t=>{d&&console.warn(`Tried setting sessionStorage key \u201C${e}\u201D even though environment is not a client`);try{let r=t instanceof Function?t(l()):t;window.sessionStorage.setItem(e,s(r)),f(r),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))}catch(t){console.warn(`Error setting sessionStorage key \u201C${e}\u201D:`,t)}}),m=o(()=>{d&&console.warn(`Tried removing sessionStorage key \u201C${e}\u201D even though environment is not a client`);let r=t instanceof Function?t():t;window.sessionStorage.removeItem(e),f(r),window.dispatchEvent(new StorageEvent("session-storage",{key:e}))});(0,n.useEffect)(()=>{f(l())},[e]);let g=(0,n.useCallback)(t=>{t.key&&t.key!==e||f(l())},[e,l]);return a("storage",g),a("session-storage",g),[c,p,m]}},75794:(e,t,r)=>{"use strict";r.d(t,{i:()=>M});var n=r(3488),i=r(7441);class s extends i.C{constructor({data:e}){super("Unable to extract image from metadata. The metadata may be malformed or invalid.",{metaMessages:["- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.","",`Provided data: ${JSON.stringify(e)}`],name:"EnsAvatarInvalidMetadataError"})}}class a extends i.C{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:"EnsAvatarInvalidNftUriError"})}}class o extends i.C{constructor({uri:e}){super(`Unable to resolve ENS avatar URI "${e}". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:"EnsAvatarUriResolutionError"})}}class u extends i.C{constructor({namespace:e}){super(`ENS NFT avatar namespace "${e}" is not supported. Must be "erc721" or "erc1155".`,{name:"EnsAvatarUnsupportedNamespaceError"})}}let l=/(?<protocol>https?:\/\/[^\/]*|ipfs:\/|ipns:\/|ar:\/)?(?<root>\/)?(?<subpath>ipfs\/|ipns\/)?(?<target>[\w\-.]+)(?<subtarget>\/.*)?/,c=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\/(?<target>[\w\-.]+))?(?<subtarget>\/.*)?$/,f=/^data:([a-zA-Z\-/+]*);base64,([^"].*)/,d=/^data:([a-zA-Z\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;async function h(e){try{let t=await fetch(e,{method:"HEAD"});if(200===t.status){let e=t.headers.get("content-type");return e?.startsWith("image/")}return!1}catch(t){if("object"==typeof t&&void 0!==t.response||!globalThis.hasOwnProperty("Image"))return!1;return new Promise(t=>{let r=new Image;r.onload=()=>{t(!0)},r.onerror=()=>{t(!1)},r.src=e})}}function p(e,t){return e?e.endsWith("/")?e.slice(0,-1):e:t}function m({uri:e,gatewayUrls:t}){let r=f.test(e);
vendor: 4,793 bytes, line 2
2if(r)return{uri:e,isOnChain:!0,isEncoded:r};let n=p(t?.ipfs,"https://ipfs.io"),i=p(t?.arweave,"https://arweave.net"),s=e.match(l),{protocol:a,subpath:u,target:h,subtarget:m=""}=s?.groups||{},g="ipns:/"===a||"ipns/"===u,b="ipfs:/"===a||"ipfs/"===u||c.test(e);if(e.startsWith("http")&&!g&&!b){let r=e;return t?.arweave&&(r=e.replace(/https:\/\/arweave.net/g,t?.arweave)),{uri:r,isOnChain:!1,isEncoded:!1}}if((g||b)&&h)return{uri:`${n}/${g?"ipns":"ipfs"}/${h}${m}`,isOnChain:!1,isEncoded:!1};if("ar:/"===a&&h)return{uri:`${i}/${h}${m||""}`,isOnChain:!1,isEncoded:!1};let y=e.replace(d,"");if(y.startsWith("<svg")&&(y=`data:image/svg+xml;base64,${btoa(y)}`),y.startsWith("data:")||y.startsWith("{"))return{uri:y,isOnChain:!0,isEncoded:!1};throw new o({uri:e})}function g(e){if("object"!=typeof e||!("image"in e)&&!("image_url"in e)&&!("image_data"in e))throw new s({data:e});return e.image||e.image_url||e.image_data}async function b({gatewayUrls:e,uri:t}){try{let r=await fetch(t).then(e=>e.json());return await y({gatewayUrls:e,uri:g(r)})}catch{throw new o({uri:t})}}async function y({gatewayUrls:e,uri:t}){let{uri:r,isOnChain:n}=m({uri:t,gatewayUrls:e});if(n||await h(r))return r;throw new o({uri:t})}async function A(e,{nft:t}){if("erc721"===t.namespace)return(0,n.J)(e,{address:t.contractAddress,abi:[{name:"tokenURI",type:"function",stateMutability:"view",inputs:[{name:"tokenId",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"tokenURI",args:[BigInt(t.tokenID)]});if("erc1155"===t.namespace)return(0,n.J)(e,{address:t.contractAddress,abi:[{name:"uri",type:"function",stateMutability:"view",inputs:[{name:"_id",type:"uint256"}],outputs:[{name:"",type:"string"}]}],functionName:"uri",args:[BigInt(t.tokenID)]});throw new u({namespace:t.namespace})}async function v(e,{gatewayUrls:t,record:r}){return/eip155:/i.test(r)?w(e,{gatewayUrls:t,record:r}):y({uri:r,gatewayUrls:t})}async function w(e,{gatewayUrls:t,record:r}){let n=function(e){let t=e;t.startsWith("did:nft:")&&(t=t.replace("did:nft:","").replace(/_/g,"/"));let[r,n,i]=t.split("/"),[s,o]=r.split(":"),[u,l]=n.split(":");if(!s||"eip155"!==s.toLowerCase())throw new a({reason:"Only EIP-155 supported"});if(!o)throw new a({reason:"Chain ID not found"});if(!l)throw new a({reason:"Contract address not found"});if(!i)throw new a({reason:"Token ID not found"});if(!u)throw new a({reason:"ERC namespace not found"});return{chainID:Number.parseInt(o),namespace:u.toLowerCase(),contractAddress:l,tokenID:i}}(r),{uri:i,isOnChain:s,isEncoded:o}=m({uri:await A(e,{nft:n}),gatewayUrls:t});if(s&&(i.includes("data:application/json;base64,")||i.startsWith("{")))return y({uri:g(JSON.parse(o?atob(i.replace("data:application/json;base64,","")):i)),gatewayUrls:t});let u=n.tokenID;return"erc1155"===n.namespace&&(u=u.replace("0x","").padStart(64,"0")),b({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,u)})}var E=r(34524),x=r(65830);async function M(e,{blockNumber:t,blockTag:r,assetGatewayUrls:n,name:i,gatewayUrls:s,strict:a,universalResolverAddress:o}){let u=await (0,E.T)(e,x.m,"getEnsText")({blockNumber:t,blockTag:r,key:"avatar",name:i,universalResolverAddress:o,gatewayUrls:s,strict:a});if(!u)return null;try{return await v(e,{record:u,gatewayUrls:n})}catch{return null}}},76654:(e,t,r)=>{"use strict";r.d(t,{N:()=>l,b:()=>u});var n=r(91836),i=r(27493),s=r(34524),a=r(23335),o=r(39112);async function u(e,t){return l(e,t)}async function l(e,t){let{block:r,chain:u=e.chain,request:l}=t||{};try{let t=u?.fees?.maxPriorityFeePerGas??u?.fees?.defaultPriorityFee;if("function"==typeof t){let n=r||await (0,s.T)(e,a.g,"getBlock")({}),i=await t({block:n,client:e,request:l});if(null===i)throw Error();return i}if(void 0!==t)return t;let n=await e.request({method:"eth_maxPriorityFeePerGas"});return(0,i.uU)(n)}catch{let[t,i]=await Promise.all([r?Promise.resolve(r):(0,s.T)(e,a.g,"getBlock")({}),(0,s.T)(e,o.L,"getGasPrice")({})]);if("bigint"!=typeof t.baseFeePerGas)throw new n.pw;let u=i-t.baseFeePerGas;if(u<0n)return 0n;return u}}},77079:(e,t,r)=>{"use strict";r.d(t,{T:()=>E});var n=r(13378),i=r(80440),s=r(19405),a=r(14493),o=r(15313),u=r(7441),l=r(30445),c=r(35109),f=r(69330),d=r(20760),h=r(60367),p=r(13861),m=r(67622),g=r(23360),b=r(7671),y=r(76743),A=r(85569),v=r(25507),w=r(84062);async function E(e,t){let{account:a=e.account,authorizationList:f,batch:h=!!e.batch?.multicall,blockNumber:p,blockTag:A=e.experimental_blockTag??"latest",accessList:E,blobs:M,blockOverrides:B,code:_,data:C,factory:I,factoryData:S,gas:D,gasPrice:O,maxFeePerBlobGas:N,maxFeePerGas:F,maxPriorityFeePerGas:R,nonce:P,to:k,value:T,stateOverride:L,...U}=t,j=a?(0,s.J)(a):void 0;if(_&&(I||S))throw new u.C("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(_&&k)throw new u.C("Cannot provide both `code` & `to` as parameters.");
2let q=_&&C,Q=I&&S&&k&&C,H=q||Q,G=q?function(e){let{code:t,data:r}=e;return(0,d.m)({abi:(0,n.U)(["constructor(bytes, bytes)"]),bytecode:o.LX,args:[t,r]})}({code:_,data:C}):Q?function(e){let{data:t,factory:r,factoryData:i,to:s}=e;return(0,d.m)({abi:(0,n.U)(["constructor(address, bytes, address, bytes)"]),bytecode:o.WN,args:[s,t,r,i]})}({data:C,factory:I,factoryData:S,to:k}):C;try{(0,w.c)(t);let r=("bigint"==typeof p?(0,m.cK)(p):void 0)||A,n=B?i.J(B):void 0,s=(0,v.yH)(L),a=e.chain?.formatters?.transactionRequest?.format,o=(a||y.Bv)({...(0,b.o)(U,{format:a}),from:j?.address,accessList:E,authorizationList:f,blobs:M,data:G,gas:D,gasPrice:O,maxFeePerBlobGas:N,maxFeePerGas:F,maxPriorityFeePerGas:R,nonce:P,to:H?void 0:k,value:T});if(h&&function({request:e}){let{data:t,to:r,...n}=e;return!(!t||t.startsWith("0x82ad56cb"))&&!!r&&!(Object.values(n).filter(e=>void 0!==e).length>0)}({request:o})&&!s&&!n)try{return await x(e,{...o,blockNumber:p,blockTag:A})}catch(e){if(!(e instanceof l.YE)&&!(e instanceof l.rj))throw e}let u=(()=>{let e=[o,r];return s&&n?[...e,s,n]:s?[...e,s]:n?[...e,{},n]:e})(),c=await e.request({method:"eth_call",params:u});if("0x"===c)return{data:void 0};return{data:c}}catch(a){let n=function(e){if(!(e instanceof u.C))return;let t=e.walk();return"object"==typeof t?.data?t.data?.data:t.data}(a),{offchainLookup:i,offchainLookupSignature:s}=await r.e(1026).then(r.bind(r,31026));if(!1!==e.ccipRead&&n?.slice(0,10)===s&&k)return{data:await i(e,{data:n,to:k})};if(H&&n?.slice(0,10)==="0x101bb98d")throw new c.Po({factory:I});throw(0,g.d)(a,{...t,account:j,chain:e.chain})}}async function x(e,t){let{batchSize:r=1024,wait:n=0}="object"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s=e.experimental_blockTag??"latest",data:o,multicallAddress:u,to:d}=t,g=u;if(!g){if(!e.chain)throw new l.YE;g=(0,p.M)({blockNumber:i,chain:e.chain,contract:"multicall3"})}let b=("bigint"==typeof i?(0,m.cK)(i):void 0)||s,{schedule:y}=(0,A.u)({id:`${e.uid}.${b}`,wait:n,shouldSplitBatch:e=>e.reduce((e,{data:t})=>e+(t.length-2),0)>2*r,fn:async t=>{let r=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),n=(0,h.p)({abi:a.v2,args:[r],functionName:"aggregate3"}),i=await e.request({method:"eth_call",params:[{data:n,to:g},b]});return(0,f.e)({abi:a.v2,args:[r],functionName:"aggregate3",data:i||"0x"})}}),[{returnData:v,success:w}]=await y({data:o,to:d});if(!w)throw new c.$S({data:v});return"0x"===v?{data:void 0}:{data:v}}},80440:(e,t,r)=>{"use strict";r.d(t,{J:()=>s});var n=r(73142);function i(e){return{address:e.address,amount:n.oB(e.amount),index:n.oB(e.index),validatorIndex:n.oB(e.validatorIndex)}}function s(e){return{..."bigint"==typeof e.baseFeePerGas&&{baseFeePerGas:n.oB(e.baseFeePerGas)},..."bigint"==typeof e.blobBaseFee&&{blobBaseFee:n.oB(e.blobBaseFee)},..."string"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},..."bigint"==typeof e.gasLimit&&{gasLimit:n.oB(e.gasLimit)},..."bigint"==typeof e.number&&{number:n.oB(e.number)},..."bigint"==typeof e.prevRandao&&{prevRandao:n.oB(e.prevRandao)},..."bigint"==typeof e.time&&{time:n.oB(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(i)}}}},81379:(e,t,r)=>{"use strict";r.d(t,{CL:()=>u,D5:()=>c,Di:()=>d,G1:()=>D,Gi:()=>l,L5:()=>B,MI:()=>N,RV:()=>E,Sf:()=>w,WT:()=>_,XU:()=>o,YW:()=>m,ab:()=>g,bq:()=>f,cg:()=>I,ch:()=>M,hA:()=>h,hl:()=>C,jz:()=>O,qZ:()=>p,s0:()=>b,sV:()=>v,uL:()=>S,vx:()=>A,xQ:()=>y,xq:()=>x});var n=r(7441),i=r(90557);class s extends n.C{constructor(e,{code:t,docsPath:r,metaMessages:n,name:s,shortMessage:a}){super(a,{cause:e,docsPath:r,metaMessages:n||e?.metaMessages,name:s||"RpcError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=s||e.name,this.code=e instanceof i.J8?e.code:t??-1}}class a extends s{constructor(e,t){super(e,t),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class o extends s{constructor(e){super(e,{code:o.code,name:"ParseRpcError",shortMessage:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."})}}Object.defineProperty(o,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class u extends s{constructor(e){super(e,{code:u.code,name:"InvalidRequestRpcError",shortMessage:"JSON is not a valid request object."})}}Object.defineProperty(u,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class l extends s{constructor(e,{method:t}={}){super(e,{code:l.code,name:"MethodNotFoundRpcError",shortMessage:`The method${t?` "${t}"`:""} does not exist / is not available.`})}}Object.defineProperty(l,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class c extends s{constructor(e){super(e,{code:c.code,name:"InvalidParamsRpcError",shortMessage:"Invalid parameters were provided to the RPC method.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(c,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class f extends s{constructor(e){super(e,{code:f.code,name:"InternalRpcError",shortMessage:"An internal error was received."})}}Object.defineProperty(f,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class d extends s{constructor(e){super(e,{code:d.code,name:"InvalidInputRpcError",shortMessage:"Missing or invalid parameters.\nDouble check you have provided the correct parameters."})}}Object.defineProperty(d,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});
2class h extends s{constructor(e){super(e,{code:h.code,name:"ResourceNotFoundRpcError",shortMessage:"Requested resource not found."}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ResourceNotFoundRpcError"})}}Object.defineProperty(h,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class p extends s{constructor(e){super(e,{code:p.code,name:"ResourceUnavailableRpcError",shortMessage:"Requested resource not available."})}}Object.defineProperty(p,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class m extends s{constructor(e){super(e,{code:m.code,name:"TransactionRejectedRpcError",shortMessage:"Transaction creation failed."})}}Object.defineProperty(m,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class g extends s{constructor(e,{method:t}={}){super(e,{code:g.code,name:"MethodNotSupportedRpcError",shortMessage:`Method${t?` "${t}"`:""} is not supported.`})}}Object.defineProperty(g,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class b extends s{constructor(e){super(e,{code:b.code,name:"LimitExceededRpcError",shortMessage:"Request exceeds defined limit."})}}Object.defineProperty(b,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class y extends s{constructor(e){super(e,{code:y.code,name:"JsonRpcVersionUnsupportedError",shortMessage:"Version of JSON-RPC protocol is not supported."})}}Object.defineProperty(y,"code",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class A extends a{constructor(e){super(e,{code:A.code,name:"UserRejectedRequestError",shortMessage:"User rejected the request."})}}Object.defineProperty(A,"code",{enumerable:!0,configurable:!0,writable:!0,value:4001});class v extends a{constructor(e){super(e,{code:v.code,name:"UnauthorizedProviderError",shortMessage:"The requested method and/or account has not been authorized by the user."})}}Object.defineProperty(v,"code",{enumerable:!0,configurable:!0,writable:!0,value:4100});class w extends a{constructor(e,{method:t}={}){super(e,{code:w.code,name:"UnsupportedProviderMethodError",shortMessage:`The Provider does not support the requested method${t?` " ${t}"`:""}.`})}}Object.defineProperty(w,"code",{enumerable:!0,configurable:!0,writable:!0,value:4200});class E extends a{constructor(e){super(e,{code:E.code,name:"ProviderDisconnectedError",shortMessage:"The Provider is disconnected from all chains."})}}Object.defineProperty(E,"code",{enumerable:!0,configurable:!0,writable:!0,value:4900});class x extends a{constructor(e){super(e,{code:x.code,name:"ChainDisconnectedError",shortMessage:"The Provider is not connected to the requested chain."})}}Object.defineProperty(x,"code",{enumerable:!0,configurable:!0,writable:!0,value:4901});class M extends a{constructor(e){super(e,{code:M.code,name:"SwitchChainError",shortMessage:"An error occurred when attempting to switch chain."})}}Object.defineProperty(M,"code",{enumerable:!0,configurable:!0,writable:!0,value:4902});class B extends a{constructor(e){super(e,{code:B.code,name:"UnsupportedNonOptionalCapabilityError",shortMessage:"This Wallet does not support a capability that was not marked as optional."})}}Object.defineProperty(B,"code",{enumerable:!0,configurable:!0,writable:!0,value:5700});class _ extends a{constructor(e){super(e,{code:_.code,name:"UnsupportedChainIdError",shortMessage:"This Wallet does not support the requested chain ID."})}}Object.defineProperty(_,"code",{enumerable:!0,configurable:!0,writable:!0,value:5710});class C extends a{constructor(e){super(e,{code:C.code,name:"DuplicateIdError",shortMessage:"There is already a bundle submitted with this ID."})}}Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:5720});class I extends a{constructor(e){super(e,{code:I.code,name:"UnknownBundleIdError",shortMessage:"This bundle id is unknown / has not been submitted"})}}Object.defineProperty(I,"code",{enumerable:!0,configurable:!0,writable:!0,value:5730});class S extends a{constructor(e){super(e,{code:S.code,name:"BundleTooLargeError",shortMessage:"The call bundle is too large for the Wallet to process."})}}Object.defineProperty(S,"code",{enumerable:!0,configurable:!0,writable:!0,value:5740});class D extends a{constructor(e){super(e,{code:D.code,name:"AtomicReadyWalletRejectedUpgradeError",shortMessage:"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade."})}}Object.defineProperty(D,"code",{enumerable:!0,configurable:!0,writable:!0,value:5750}
2);class O extends a{constructor(e){super(e,{code:O.code,name:"AtomicityNotSupportedError",shortMessage:"The wallet does not support atomic execution but the request requires it."})}}Object.defineProperty(O,"code",{enumerable:!0,configurable:!0,writable:!0,value:5760});class N extends s{constructor(e){super(e,{name:"UnknownRpcError",shortMessage:"An unknown RPC error occurred."})}}},81896:(e,t,r)=>{"use strict";r.d(t,{X:()=>g,J:()=>m});var n=r(14493),i=r(29995),s=r(879),a=r(99702),o=r(79731),u=r(21135),l=r(13423),c=r(21159),f=r(23008);let d="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:r,args:n}=e,i=t[0];if(r){let e=(0,f.iY)({abi:t,args:n,name:r});if(!e)throw new a.yy(r,{docsPath:d});i=e}if("error"!==i.type)throw new a.yy(void 0,{docsPath:d});let s=(0,c.B)(i),h=(0,u.V)(s),p="0x";if(n&&n.length>0){if(!i.inputs)throw new a.ZP(i.name,{docsPath:d});p=(0,l.h)(i.inputs,n)}return(0,o.aP)([h,p])}let p="/docs/contract/encodeFunctionResult",m="x-batch-gateway:true";async function g(e){let{data:t,ccipRequest:r}=e,{args:[o]}=(0,s.J)({abi:n.b2,data:t}),u=[],c=[];return await Promise.all(o.map(async(e,t)=>{try{c[t]=e.urls.includes(m)?await g({data:e.data,ccipRequest:r}):await r(e),u[t]=!1}catch(e){var s;u[t]=!0,c[t]="HttpRequestError"===(s=e).name&&s.status?h({abi:n.b2,errorName:"HttpError",args:[s.status,s.shortMessage]}):h({abi:[i.Mc],errorName:"Error",args:["shortMessage"in s?s.shortMessage:s.message]})}})),function(e){let{abi:t,functionName:r,result:n}=e,i=t[0];if(r){let e=(0,f.iY)({abi:t,name:r});if(!e)throw new a.Iz(r,{docsPath:p});i=e}if("function"!==i.type)throw new a.Iz(void 0,{docsPath:p});if(!i.outputs)throw new a.MR(i.name,{docsPath:p});let s=(()=>{if(0===i.outputs.length)return[];if(1===i.outputs.length)return[n];if(Array.isArray(n))return n;throw new a.dm(n)})();return(0,l.h)(i.outputs,s)}({abi:n.b2,functionName:"query",result:[u,c]})}},82700:(e,t,r)=>{"use strict";r.d(t,{MM:()=>b,ft:()=>A});var n=r(19405),i=r(24573),s=r(16712),a=r(23335),o=r(13649),u=r(91836),l=r(16303),c=r(90340),f=r(67002),d=r(29695),h=r(34524),p=r(84062),m=r(96887),g=r(926);let b=["blobVersionedHashes","chainId","fees","gas","nonce","type"],y=new Map;async function A(e,t){let r,A,{account:v=e.account,blobs:w,chain:E,gas:x,kzg:M,nonce:B,nonceManager:_,parameters:C=b,type:I}=t,S=v?(0,n.J)(v):v,D={...t,...S?{from:S?.address}:{}};async function O(){return r||(r=await (0,h.T)(e,a.g,"getBlock")({blockTag:"latest"}))}async function N(){return A||(E?E.id:void 0!==t.chainId?t.chainId:A=await (0,h.T)(e,g.T,"getChainId")({}))}if(C.includes("nonce")&&void 0===B&&S)if(_){let t=await N();D.nonce=await _.consume({address:S.address,chainId:t,client:e})}else D.nonce=await (0,h.T)(e,o.y,"getTransactionCount")({address:S.address,blockTag:"pending"});if((C.includes("blobVersionedHashes")||C.includes("sidecars"))&&w&&M){let e=(0,l.S)({blobs:w,kzg:M});if(C.includes("blobVersionedHashes")&&(D.blobVersionedHashes=(0,f.d)({commitments:e,to:"hex"})),C.includes("sidecars")){let t=(0,c.t)({blobs:w,commitments:e,kzg:M});D.sidecars=(0,d.T)({blobs:w,commitments:e,proofs:t,to:"hex"})}}if(C.includes("chainId")&&(D.chainId=await N()),(C.includes("fees")||C.includes("type"))&&void 0===I)try{D.type=(0,m.L)(D)}catch{let t=y.get(e.uid);if(void 0===t){let r=await O();t="bigint"==typeof r?.baseFeePerGas,y.set(e.uid,t)}D.type=t?"eip1559":"legacy"}if(C.includes("fees"))if("legacy"!==D.type&&"eip2930"!==D.type){if(void 0===D.maxFeePerGas||void 0===D.maxPriorityFeePerGas){let r=await O(),{maxFeePerGas:n,maxPriorityFeePerGas:s}=await (0,i.O)(e,{block:r,chain:E,request:D});if(void 0===t.maxPriorityFeePerGas&&t.maxFeePerGas&&t.maxFeePerGas<s)throw new u.RR({maxPriorityFeePerGas:s});D.maxPriorityFeePerGas=s,D.maxFeePerGas=n}}else{if(void 0!==t.maxFeePerGas||void 0!==t.maxPriorityFeePerGas)throw new u.pw;if(void 0===t.gasPrice){let t=await O(),{gasPrice:r}=await (0,i.O)(e,{block:t,chain:E,request:D,type:"legacy"});D.gasPrice=r}}return C.includes("gas")&&void 0===x&&(D.gas=await (0,h.T)(e,s.Q,"estimateGas")({...D,account:S?{address:S.address,type:"json-rpc"}:S})),(0,p.c)(D),delete D.parameters,D}},84014:(e,t,r)=>{"use strict";r.d(t,{n:()=>p});var n=r(20789),i=r(69432),s=r(34524),a=r(72342),o=r(62739),u=r(42142),l=r(79183),c=r(23335),f=r(30106),d=r(13494),h=r(85543);async function p(e,t){let r,p,m,g,b,{checkReplacement:y=!0,confirmations:A=1,hash:v,onReplaced:w,retryCount:E=6,retryDelay:x=({count:e})=>200*~~(1<<e),timeout:M=18e4}=t,B=(0,l.A)(["waitForTransactionReceipt",e.uid,v]),_=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval,C=!1,{promise:I,resolve:S,reject:D}=(0,o.Y)(),O=M?setTimeout(()=>{b(),g(),D(new i.WA({hash:v}))},M):void 0;return g=(0,a.lB)(B,{onReplaced:w,resolve:S,reject:D},async t=>{if((m=await (0,s.T)(e,d.h,"getTransactionReceipt")({hash:v}).catch(()=>void 0))&&A<=1){clearTimeout(O),t.resolve(m),g();return}b=(0,s.T)(e,h.q,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:_,async onBlockNumber(a){let o=e=>{clearTimeout(O),b(),e(),g()},l=a;if(!C)try{if(m){if(A>1&&(!m.blockNumber||l-m.blockNumber+1n<A))return;o(()=>t.resolve(m));return}if(y&&!r&&(C=!0,await (0,u.b)(async()=>{(r=await (0,s.T)(e,f.x,"getTransaction")({hash:v})).blockNumber&&(l=r.blockNumber)},{delay:x,retryCount:E}
2),C=!1),m=await (0,s.T)(e,d.h,"getTransactionReceipt")({hash:v}),A>1&&(!m.blockNumber||l-m.blockNumber+1n<A))return;o(()=>t.resolve(m))}catch(a){if(a instanceof i.Kz||a instanceof i.Kc){if(!r){C=!1;return}try{p=r,C=!0;let i=await (0,u.b)(()=>(0,s.T)(e,c.g,"getBlock")({blockNumber:l,includeTransactions:!0}),{delay:x,retryCount:E,shouldRetry:({error:e})=>e instanceof n.l});C=!1;let a=i.transactions.find(({from:e,nonce:t})=>e===p.from&&t===p.nonce);if(!a||(m=await (0,s.T)(e,d.h,"getTransactionReceipt")({hash:a.hash}),A>1&&(!m.blockNumber||l-m.blockNumber+1n<A)))return;let f="replaced";a.to===p.to&&a.value===p.value&&a.input===p.input?f="repriced":a.from===a.to&&0n===a.value&&(f="cancelled"),o(()=>{t.onReplaced?.({reason:f,replacedTransaction:p,transaction:a,transactionReceipt:m}),t.resolve(m)})}catch(e){o(()=>t.reject(e))}}else o(()=>t.reject(a))}}})}),I}},85543:(e,t,r)=>{"use strict";r.d(t,{q:()=>l});var n=r(27493),i=r(34524),s=r(72342),a=r(86435),o=r(79183),u=r(94181);function l(e,{emitOnBegin:t=!1,emitMissed:r=!1,onBlockNumber:l,onError:c,poll:f,pollingInterval:d=e.pollingInterval}){let h;return(void 0!==f?f:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
2onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let n=(0,o.A)(["watchBlockNumber",e.uid,t,r,d]);return(0,s.lB)(n,{onBlockNumber:l,onError:c},n=>(0,a.w)(async()=>{try{let t=await (0,i.T)(e,u.G,"getBlockNumber")({cacheTime:0});if(h){if(t===h)return;if(t-h>1&&r)for(let e=h+1n;e<t;e++)n.onBlockNumber(e,h),h=e}(!h||t>h)&&(n.onBlockNumber(t,h),h=t)}catch(e){n.onError?.(e)}},{emitOnBegin:t,interval:d}))})():(()=>{let i=(0,o.A)(["watchBlockNumber",e.uid,t,r]);return(0,s.lB)(i,{onBlockNumber:l,onError:c},t=>{let r=!0,i=()=>r=!1;return(async()=>{try{let s=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await s.subscribe({params:["newHeads"],onData(e){if(!r)return;let i=(0,n.uU)(e.result?.number);t.onBlockNumber(i,h),h=i},onError(e){t.onError?.(e)}});i=a,r||i()}catch(e){c?.(e)}})(),()=>i()})})()}},85569:(e,t,r)=>{"use strict";r.d(t,{u:()=>s});var n=r(62739);let i=new Map;function s({fn:e,id:t,shouldSplitBatch:r,wait:s=0,sort:a}){let o=async()=>{let t=c();u();let r=t.map(({args:e})=>e);0!==r.length&&e(r).then(e=>{a&&Array.isArray(e)&&e.sort(a);for(let r=0;r<t.length;r++){let{resolve:n}=t[r];n?.([e[r],e])}}).catch(e=>{for(let r=0;r<t.length;r++){let{reject:n}=t[r];n?.(e)}})},u=()=>i.delete(t),l=()=>c().map(({args:e})=>e),c=()=>i.get(t)||[],f=e=>i.set(t,[...c(),e]);return{flush:u,async schedule(e){let{promise:t,resolve:i,reject:a}=(0,n.Y)();return(r?.([...l(),e])&&o(),c().length>0)?f({args:e,resolve:i,reject:a}):(f({args:e,resolve:i,reject:a}),setTimeout(o,s)),t}}}},86435:(e,t,r)=>{"use strict";r.d(t,{w:()=>i});var n=r(10231);function i(e,{emitOnBegin:t,initialWaitTime:r,interval:i}){let s=!0,a=()=>s=!1;return(async()=>{let o;t&&(o=await e({unpoll:a}));let u=await r?.(o)??i;await (0,n.u)(u);let l=async()=>{s&&(await e({unpoll:a}),await (0,n.u)(i),l())};l()})(),a}},88610:(e,t,r)=>{"use strict";let n,i,s,a,o,u,l,c,f,d,h,p,m,g,b,y;r.d(t,{S:()=>W});let A=new Map([[8217,"apostrophe"],[8260,"fraction slash"],[12539,"middle dot"]]);function v(e){var t;let r;return t=function(e){let t=0;function r(){return e[t++]<<8|e[t++]}let n=r(),i=1,s=[0,1];for(let e=1;e<n;e++)s.push(i+=r());let a=r(),o=t;t+=a;let u=0,l=0;function c(){return 0==u&&(l=l<<8|e[t++],u=8),l>>--u&1}let f=0x80000000-1,d=0;for(let e=0;e<31;e++)d=d<<1|c();let h=[],p=0,m=0x80000000;for(;;){let e=Math.floor(((d-p+1)*i-1)/m),t=0,r=n;for(;r-t>1;){let n=t+r>>>1;e<s[n]?r=n:t=n}if(0==t)break;h.push(t);let a=p+Math.floor(m*s[t]/i),o=p+Math.floor(m*s[t+1]/i)-1;for(;((a^o)&0x40000000)==0;)d=d<<1&f|c(),a=a<<1&f,o=o<<1&f|1;for(;a&~o&0x20000000;)d=0x40000000&d|d<<1&f>>>1|c(),a=a<<1^0x40000000,o=(0x40000000^o)<<1|0x40000001;p=a,m=1+o-a}let g=n-4;return h.map(t=>{switch(t-g){case 3:return g+65792+(e[o++]<<16|e[o++]<<8|e[o++]);case 2:return g+256+(e[o++]<<8|e[o++]);case 1:return g+e[o++];default:return t-1}})}(function(e){let t=[];[..."ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"].forEach((e,r)=>t[e.charCodeAt(0)]=r);let r=e.length,n=new Uint8Array(6*r>>
23);for(let i=0,s=0,a=0,o=0;i<r;i++)o=o<<6|t[e.charCodeAt(i)],(a+=6)>=8&&(n[s++]=o>>(a-=8));return n}(e)),r=0,()=>t[r++]}function w(e,t=0){let r=[];for(;;){let n=e(),i=e();if(!i)break;t+=n;for(let e=0;e<i;e++)r.push(t+e);t+=i+1}return r}function E(e){return M(()=>{let t=w(e);if(t.length)return t})}function x(e){let t=[];for(;;){let r=e();if(0==r)break;t.push(function(e,t){let r=1+t(),n=t(),i=M(t);return B(i.length,1+e,t).flatMap((e,t)=>{let[s,...a]=e;return Array(i[t]).fill().map((e,t)=>{let i=t*n;return[s+t*r,a.map(e=>e+i)]})})}(r,e))}for(;;){var r,n;let i=e()-1;if(i<0)break;t.push((r=i,B(1+(n=e)(),1+r,n).map(e=>[e[0],e.slice(1)])))}return t.flat()}function M(e){let t=[];for(;;){let r=e(t.length);if(!r)break;t.push(r)}return t}function B(e,t,r){let n=Array(e).fill().map(()=>[]);for(let i=0;i<t;i++)(function(e,t){let r=Array(e);for(let i=0,s=0;i<e;i++){var n;r[i]=s+=1&(n=t())?~n>>1:n>>1}return r})(e,r).forEach((e,t)=>n[t].push(e));return n}function _(e){return`{${e.toString(16).toUpperCase().padStart(2,"0")}}`}function C(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let r=[];for(let n=0;n<t;)r.push(String.fromCodePoint(...e.slice(n,n+=4096)));return r.join("")}function I(e,t){let r=e.length,n=r-t.length;for(let i=0;0==n&&i<r;i++)n=e[i]-t[i];return n}let S=55204;function D(e){return e>>24&255}function O(e){return 0xffffff&e}function N(e){return e>=44032&&e<S}function F(e){if(!n){let e=v("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");for(let[t,r]of(n=new Map(E(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),i=new Set(w(e)),s=new Map,a=new Map,x(e))){if(!i.has(t)&&2==r.length){let[e,n]=r,i=a.get(e);i||(i=new Map,a.set(e,i)),i.set(n,t)}s.set(t,r.reverse())}}let t=[],r=[],o=!1;function u(e){let r=n.get(e);r&&(o=!0,e|=r),t.push(e)}for(let n of e)for(;;){if(n<128)t.push(n);else if(N(n)){let e=n-44032,t=e/588|0,r=e%588/28|0,i=e%28;u(4352+t),u(4449+r),i>0&&u(4519+i)}else{let e=s.get(n);e?r.push(...e):u(n)}if(!r.length)break;n=r.pop()}if(o&&t.length>1){let e=D(t[0]);for(let r=1;r<t.length;r++){let n=D(t[r]);if(0==n||e<=n){e=n;continue}let i=r-1;for(;;){let r=t[i+1];if(t[i+1]=t[i],t[i]=r,!i||(e=D(t[--i]))<=n)break}e=D(t[r])}}return t}function R(e){return F(e).map(O)}function P(e){return function(e){let t=[],r=[],n=-1,i=0;for(let s of e){let e=D(s),o=O(s);if(-1==n)0==e?n=o:t.push(o);else if(i>0&&i>=e)0==e?(t.push(n,...r),r.length=0,n=o):r.push(o),i=e;else{let s=function(e,t){if(e>=4352&&e<4371&&t>=4449&&t<4470)return 44032+(e-4352)*588+(t-4449)*28;{if(N(e)&&t>4519&&t<4547&&(e-44032)%28==0)return e+(t-4519);let r=a.get(e);return r&&(r=r.get(t))?r:-1}}(n,o);s>=0?n=s:0==i&&0==e?(t.push(n),n=o):(r.push(o),i=e)}}return n>=0&&t.push(n,...r),t}(F(e))}let k=e=>Array.from(e);function T(e,t){return e.P.has(t)||e.Q.has(t)}class L extends Array{get is_emoji(){return!0}}function U(){let e,t;if(o)return;let r=v("
vendor: 20,100 bytes, line 2
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
2"),n=()=>w(r),i=()=>new Set(n()),s=(e,t)=>t.forEach(t=>e.add(t));o=new Map(x(r)),u=i(),l=n(),c=new Set(n().map(e=>l[e])),l=new Set(l),f=i(),d=i();let a=E(r),A=r(),B=()=>{let e=new Set;return n().forEach(t=>s(e,a[t])),s(e,n()),e};h=M(e=>{let t=M(r).map(e=>e+96);if(t.length){let n=e>=A;t[0]-=32,t=C(t),n&&(t=`Restricted[${t}]`);let i=B();return{N:t,P:i,Q:B(),M:!r(),R:n}}}),p=i(),m=new Map;let _=n().concat(k(p)).sort((e,t)=>e-t);for(let{V:e,M:t}of(_.forEach((e,t)=>{let n=r(),i=_[t]=n?_[t-n]:{V:[],M:new Map};i.V.push(e),p.has(e)||m.set(e,i)}),new Set(m.values()))){let r=[];for(let t of e){let e=h.filter(e=>T(e,t)),n=r.find(({G:t})=>e.some(e=>t.has(e)));n||(n={G:new Set,V:[]},r.push(n)),n.V.push(t),s(n.G,e)}let n=r.flatMap(e=>k(e.G));for(let{G:e,V:i}of r){let r=new Set(n.filter(t=>!e.has(t)));for(let e of i)t.set(e,r)}}g=new Set;let S=new Set,D=e=>g.has(e)?S.add(e):g.add(e);for(let e of h){for(let t of e.P)D(t);for(let t of e.Q)D(t)}for(let e of g)m.has(e)||S.has(e)||m.set(e,1);for(let n of(s(g,F(g).map(O)),b=(e=[],t=w(r),function t({S:r,B:n},i,s){if(!(4&r)||s!==i[i.length-1])for(let a of(2&r&&(s=i[i.length-1]),1&r&&e.push(i),n))for(let e of a.Q)t(a,[...i,e],s)}(function e(n){return{S:r(),B:M(()=>{let n=w(r).map(e=>t[e]);if(n.length)return e(n)}),Q:n}}([]),[]),e).map(e=>L.from(e)).sort(I),y=new Map,b)){let e=[y];for(let t of n){let r=e.map(e=>{let r=e.get(t);return r||(r=new Map,e.set(t,r)),r});65039===t?e.push(...r):e=r}for(let t of e)t.V=n}}function j(e){return(H(e)?"":`${q(Q([e]))} `)+_(e)}function q(e){return`"${e}"\u200E`}function Q(e,t=1/0,r=_){var n,i;let s=[];n=e[0],U(),l.has(n)&&s.push("◌"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let a=0,o=e.length;for(let t=0;t<o;t++){let n=e[t];
2H(n)&&(s.push(C(e.slice(a,t))),s.push(r(n)),a=t+1)}return s.push(C(e.slice(a,o))),s.join("")}function H(e){return U(),f.has(e)}function G(e){return Error(`disallowed character: ${j(e)}`)}function z(e,t){let r=j(t),n=h.find(e=>e.P.has(t));return n&&(r=`${n.N} ${r}`),Error(`illegal mixture: ${e.N} + ${r}`)}function J(e){return Error(`illegal placement: ${e}`)}function K(e){return e.filter(e=>65039!=e)}let V="valid";function W(e){var t;return(t=function(e,t,r){if(!e)return[];U();let n=0;return e.split(".").map(e=>{let i=function(e){let t=[];for(let r=0,n=e.length;r<n;){let n=e.codePointAt(r);r+=n<65536?1:2,t.push(n)}return t}(e),s={input:i,offset:n};n+=i.length+1;try{let e,n=s.tokens=function(e,t,r){let n=[],i=[];for(e=e.slice().reverse();e.length;){let s=function(e,t){let r,n=y,i=e.length;for(;i&&(n=n.get(e[--i]));){let{V:s}=n;s&&(r=s,t&&t.push(...e.slice(i).reverse()),e.length=i)}return r}(e);if(s)i.length&&(n.push(t(i)),i=[]),n.push(r(s));else{let t=e.pop();if(g.has(t))i.push(t);else{let e=o.get(t);if(e)i.push(...e);else if(!u.has(t))throw G(t)}}}return i.length&&n.push(t(i)),n}(i,t,r),a=n.length;if(!a)throw Error("empty label");let f=s.output=n.flat();for(let e=f.lastIndexOf(95);e>0;)if(95!==f[--e])throw Error("underscore allowed only at start");if(!(s.emoji=a>1||n[0].is_emoji)&&f.every(e=>e<128)){if(f.length>=4&&45==f[2]&&45==f[3])throw Error(`invalid label extension: "${C(f.slice(0,4))}"`);e="ASCII"}else{let t=n.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(l.has(f[0]))throw J("leading combining mark");for(let e=1;e<a;e++){let t=n[e];
2if(!t.is_emoji&&l.has(t[0]))throw J(`emoji + combining mark: "${C(n[e-1])} + ${Q([t[0]])}"`)}!function(e){let t=e[0],r=A.get(t);if(r)throw J(`leading ${r}`);let n=e.length,i=-1;for(let s=1;s<n;s++){t=e[s];let n=A.get(t);if(n){if(i==s)throw J(`${r} + ${n}`);i=s+1,r=n}}if(i==n)throw J(`trailing ${r}`)}(f);let r=k(new Set(t)),[i]=function(e){let t=h;for(let r of e){let e=t.filter(e=>T(e,r));if(!e.length)if(h.some(e=>T(e,r)))throw z(t[0],r);else throw G(r);if(t=e,1==e.length)break}return t}(r);(function(e,t){for(let r of t)if(!T(e,r))throw z(e,r);if(e.M){var r;let e=(r=t,F(r).map(O));for(let t=1,r=e.length;t<r;t++)if(c.has(e[t])){let n=t+1;for(let i;n<r&&c.has(i=e[n]);n++)for(let r=t;r<n;r++)if(e[r]==i)throw Error(`duplicate non-spacing marks: ${j(i)}`);if(n-t>4)throw Error(`excessive non-spacing marks: ${q(Q(e.slice(t-1,n)))} (${n-t}/4)`);t=n}}})(i,t),function(e,t){let r,n=[];for(let e of t){let t=m.get(e);if(1===t)return;if(t){let n=t.M.get(e);if(!(r=r?r.filter(e=>n.has(e)):k(n)).length)return}else n.push(e)}if(r){for(let t of r)if(n.every(e=>T(t,e)))throw Error(`whole-script confusable: ${e.N}/${t.N}`)}}(i,r),e=i.N}else e="Emoji"}s.type=e}catch(e){s.error=e}return s})}(e,P,K)).map(({input:e,error:r,output:n})=>{if(r){let n=r.message;throw Error(1==t.length?n:`Invalid label ${q(Q(e,63))}: ${n}`)}return C(n)}).join(".")}},89242:(e,t,r)=>{"use strict";r.d(t,{Sl:()=>i,X:()=>a,eV:()=>o,kK:()=>s});var n=r(73142);function i(e,t){if(n.Ej(e)>t)throw new n.u({givenSize:n.Ej(e),maxSize:t})}function s(e,t){if("number"==typeof t&&t>0&&t>n.Ej(e)-1)throw new n.ii({offset:t,position:"start",size:n.Ej(e)})}function a(e,t,r){if("number"==typeof t&&"number"==typeof r&&n.Ej(e)!==r-t)throw new n.ii({offset:r,position:"end",size:n.Ej(e)})}function o(e,t={}){let{dir:r,size:i=32}=t;if(0===i)return e;let s=e.replace("0x","");if(s.length>2*i)throw new n.Fl({size:Math.ceil(s.length/2),targetSize:i,type:"Hex"});return`0x${s["right"===r?"padEnd":"padStart"](2*i,"0")}`}},90477:(e,t,r)=>{"use strict";r.d(t,{H4:()=>g,v8:()=>p,$$:()=>m});var n=r(99702),i=r(36444),s=r(79183),a=r(7441);class o extends a.C{constructor({domain:e}){super(`Invalid domain "${(0,s.A)(e)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}}class u extends a.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 l extends a.C{constructor({type:e}){super(`Struct type "${e}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}}var c=r(81757),f=r(87094),d=r(67622),h=r(38697);function p(e){let{domain:t,message:r,primaryType:n,types:i}=e,a=(e,t)=>{let r={...t};for(let t of e){let{name:e,type:n}=t;"address"===n&&(r[e]=r[e].toLowerCase())}return r},o=i.EIP712Domain&&t?a(i.EIP712Domain,t):{},u=(()=>{if("EIP712Domain"!==n)return a(i[n],r)})();return(0,s.A)({domain:o,message:u,primaryType:n,types:i})}function m(e){let{domain:t,message:r,primaryType:s,types:a}=e,p=(e,t)=>{for(let r of e){let{name:e,type:s}=r,o=t[e],u=s.match(h.Ge);if(u&&("number"==typeof o||"bigint"==typeof o)){let[e,t,r]=u;(0,d.cK)(o,{signed:"int"===t,size:Number.parseInt(r)/8})}if("address"===s&&"string"==typeof o&&!(0,c.P)(o))throw new i.M({address:o});let m=s.match(h.BD);if(m){let[e,t]=m;if(t&&(0,f.E)(o)!==Number.parseInt(t))throw new n.BI({expectedSize:Number.parseInt(t),givenSize:(0,f.E)(o)})}let g=a[s];g&&(function(e){if("address"===e||"bool"===e||"string"===e||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new l({type:e})}(s),p(g,o))}};if(a.EIP712Domain&&t){if("object"!=typeof t)throw new o({domain:t});p(a.EIP712Domain,t)}if("EIP712Domain"!==s)if(a[s])p(a[s],r);else throw new u({primaryType:s,types:a})}function g({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"}
2].filter(Boolean)}},90557:(e,t,r)=>{"use strict";r.d(t,{Ci:()=>a,J8:()=>u,MU:()=>c,Oz:()=>l,Pr:()=>o});var n=r(79183),i=r(7441),s=r(41514);class a extends i.C{constructor({body:e,cause:t,details:r,headers:i,status:a,url:o}){super("HTTP request failed.",{cause:t,details:r,metaMessages:[a&&`Status: ${a}`,`URL: ${(0,s.I)(o)}`,e&&`Request body: ${(0,n.A)(e)}`].filter(Boolean),name:"HttpRequestError"}),Object.defineProperty(this,"body",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"headers",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"status",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"url",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=i,this.status=a,this.url=o}}class o extends i.C{constructor({body:e,cause:t,details:r,url:i}){super("WebSocket request failed.",{cause:t,details:r,metaMessages:[`URL: ${(0,s.I)(i)}`,e&&`Request body: ${(0,n.A)(e)}`].filter(Boolean),name:"WebSocketRequestError"})}}class u extends i.C{constructor({body:e,error:t,url:r}){super("RPC Request failed.",{cause:t,details:t.message,metaMessages:[`URL: ${(0,s.I)(r)}`,`Request body: ${(0,n.A)(e)}`],name:"RpcRequestError"}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"data",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data}}class l extends i.C{constructor({url:e}={}){super("The socket has been closed.",{metaMessages:[e&&`URL: ${(0,s.I)(e)}`].filter(Boolean),name:"SocketClosedError"})}}class c extends i.C{constructor({body:e,url:t}){super("The request took too long to respond.",{details:"The request timed out.",metaMessages:[`URL: ${(0,s.I)(t)}`,`Request body: ${(0,n.A)(e)}`],name:"TimeoutError"})}}},91836:(e,t,r)=>{"use strict";r.d(t,{RR:()=>o,pw:()=>a,sM:()=>s});var n=r(31942),i=r(7441);class s extends i.C{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}}class a extends i.C{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}}class o extends i.C{constructor({maxPriorityFeePerGas:e}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${(0,n.Q)(e)} gwei).`,{name:"MaxFeePerGasTooLowError"})}}},91986:(e,t,r)=>{"use strict";r.d(t,{SS:()=>i});function n(e){return new Uint16Array([360*e(),40+60*e(),(e()+e()+e()+e())*25])}function i(e,t=64){return"data:image/svg+xml;base64,"+btoa(function(e,t=64){return function(e,t){let r=function(e){let t=function(e){let t=new Uint32Array([0,0,0,0]);for(let r=0;r<e.length;r++)t[r%4]=(t[r%4]<<5)-t[r%4]+e.charCodeAt(r);return t}(e);return function(){let e=t[0]^t[0]<<11;return t[0]=t[1],t[1]=t[2],t[2]=t[3],t[3]=t[3]^t[3]>>19^e^e>>8,(t[3]>>>0)/0x80000000}}(e.toLowerCase()),[i,s,a]=function(e){let t=n(e);return[n(e),t,n(e)]}(r),o=["M0,0H8V8H0z","",""];for(let e=0,t,n;e<32;e++){t=e%4,n=Math.floor(e/4);let i=Math.floor(2.3*r());i>0&&(o[i]+=`M${t},${n}h1v1h-1zM${7-t},${n}h1v1h-1z`)}return`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 8 8" shape-rendering="optimizeSpeed" width="${t}" height="${t}"><path fill="hsl(${i[0]} ${i[1]}% ${i[2]}%)" d="${o[0]}"/><path fill="hsl(${s[0]} ${s[1]}% ${s[2]}%)" d="${o[1]}"/><path fill="hsl(${a[0]} ${a[1]}% ${a[2]}%)" d="${o[2]}"/></svg>`}(e,t)}(e,t))}},92077:(e,t,r)=>{"use strict";r.d(t,{$:()=>rf});var n=r(9775),i=r(75794),s=r(55394),a=r(13861),o=r(67622),u=r(7612),l=r(34524),c=r(3488);async function f(e,t){let{blockNumber:r,blockTag:n,name:i}=t,{chain:s}=e,f=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!s)throw Error("client chain not configured. universalResolverAddress is required.");return(0,a.M)({blockNumber:r,chain:s,contract:"ensUniversalResolver"})})(),d=s?.ensTlds;if(d&&!d.some(e=>i.endsWith(e)))throw Error(`${i} is not a valid ENS TLD (${d?.join(", ")}) for chain "${s.name}" (id: ${s.id}).`);let[h]=await (0,l.T)(e,c.J,"readContract")({address:f,abi:[{inputs:[{type:"bytes"}],name:"findResolver",outputs:[{type:"address"},{type:"bytes32"}],stateMutability:"view",type:"function"}],functionName:"findResolver",args:[(0,o.nj)((0,u.F)(i))],blockNumber:r,blockTag:n});return h}var d=r(65830),h=r(77079),p=r(19405),m=r(23360),g=r(7671),b=r(76743),y=r(84062);async function A(e,t){let{account:r=e.account,blockNumber:n,blockTag:i="latest",blobs:s,data:a,gas:u,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:f,maxPriorityFeePerGas:d,to:h,value:A,...v}=t,w=r?(0,p.J)(r):void 0;try{(0,y.c)(t);let r="bigint"==typeof n?(0,o.cK)(n):void 0,p=e.chain?.formatters?.transactionRequest?.format,m=(p||b.Bv)({...(0,g.o)(v,{format:p}),from:w?.address,blobs:s,data:a,gas:u,gasPrice:l,maxFeePerBlobGas:c,maxFeePerGas:f,maxPriorityFeePerGas:d,to:h,value:A}),E=await e.request({method:"eth_createAccessList",params:[m,r||i]});return{accessList:E.accessList,gasUsed:BigInt(E.gasUsed)}}catch(r){throw(0,m.d)(r,{...t,account:w,chain:e.chain})}}function v(e,{method:t}){let r={};return"fallback"===e.transport.type&&e.transport.onResponse?.(({method:e,response:n,status:i,transport:s})=>{"success"===i&&t===e&&(r[n]=s.request)}),t=>r[t]||e.request}async function w(e){let t=v(e,{method:"eth_newBlockFilter"}),r=await e.request({method:"eth_newBlockFilter"});return{id:r,request:t(r),type:"block"}}var E=r(99702),x=r(7441);class M extends x.C{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var B=r(80844),_=r(24578),C=r(399),I=r(13423),S=r(21159),D=r(23008);let O="/docs/contract/encodeEventTopics";function N(e){let{abi:t,eventName:r,args:n}=e,i=t[0];if(r){let e=(0,D.iY)({abi:t,name:r});if(!e)throw new E.M_(r,{docsPath:O});i=e}if("event"!==i.type)throw new E.M_(void 0,{docsPath:O});let s=(0,S.B)(i),a=(0,C.h)(s),o=[];
vendor: 4,266 bytes, line 2
2if(n&&"inputs"in i){let e=i.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(o=e?.map((e,r)=>Array.isArray(t[r])?t[r].map((n,i)=>F({param:e,value:t[r][i]})):void 0!==t[r]&&null!==t[r]?F({param:e,value:t[r]}):null)??[])}return[a,...o]}function F({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,_.S)((0,B.ZJ)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new M(e.type);return(0,I.h)([e],[t])}async function R(e,t){let{address:r,abi:n,args:i,eventName:s,fromBlock:a,strict:u,toBlock:l}=t,c=v(e,{method:"eth_newFilter"}),f=s?N({abi:n,args:i,eventName:s}):void 0,d=await e.request({method:"eth_newFilter",params:[{address:r,fromBlock:"bigint"==typeof a?(0,o.cK)(a):a,toBlock:"bigint"==typeof l?(0,o.cK)(l):l,topics:f}]});return{abi:n,args:i,eventName:s,id:d,request:c(d),strict:!!u,type:"event"}}async function P(e,{address:t,args:r,event:n,events:i,fromBlock:s,strict:a,toBlock:u}={}){let l=i??(n?[n]:void 0),c=v(e,{method:"eth_newFilter"}),f=[];l&&(f=[l.flatMap(e=>N({abi:[e],eventName:e.name,args:r}))],n&&(f=f[0]));let d=await e.request({method:"eth_newFilter",params:[{address:t,fromBlock:"bigint"==typeof s?(0,o.cK)(s):s,toBlock:"bigint"==typeof u?(0,o.cK)(u):u,...f.length?{topics:f}:{}}]});return{abi:l,args:r,eventName:n?n.name:void 0,fromBlock:s,id:d,request:c(d),strict:!!a,toBlock:u,type:"event"}}async function k(e){let t=v(e,{method:"eth_newPendingTransactionFilter"}),r=await e.request({method:"eth_newPendingTransactionFilter"});return{id:r,request:t(r),type:"transaction"}}var T=r(60367),L=r(54842),U=r(16712);async function j(e,t){let{abi:r,address:n,args:i,functionName:s,dataSuffix:a,...o}=t,u=(0,T.p)({abi:r,args:i,functionName:s});try{return await (0,l.T)(e,U.Q,"estimateGas")({data:`${u}${a?a.replace("0x",""):""}`,to:n,...o})}catch(t){let e=o.account?(0,p.J)(o.account):void 0;throw(0,L.j)(t,{abi:r,address:n,args:i,docsPath:"/docs/contract/estimateContractGas",functionName:s,sender:e?.address})}}var q=r(24573),Q=r(76654),H=r(59742);async function G(e){return BigInt(await e.request({method:"eth_blobBaseFee"}))}var z=r(23335),J=r(94181),K=r(27493);async function V(e,{blockHash:t,blockNumber:r,blockTag:n="latest"}={}){let i,s=void 0!==r?(0,o.cK)(r):void 0;return i=t?await e.request({method:"eth_getBlockTransactionCountByHash",params:[t]},{dedupe:!0}):await e.request({method:"eth_getBlockTransactionCountByNumber",params:[s||n]},{dedupe:!!s}),(0,K.ME)(i)}var W=r(926);async function Z(e,{address:t,blockNumber:r,blockTag:n="latest"}){let i=void 0!==r?(0,o.cK)(r):void 0,s=await e.request({method:"eth_getCode",params:[t,i||n]},{dedupe:!!i});if("0x"!==s)return s}var Y=r(17255),$=r(87094),X=r(97118),ee=r(38451);let et="/docs/contract/decodeEventLog";function er(e){let{abi:t,data:r,strict:n,topics:i}=e,s=n??!0,[a,...o]=i;if(!a)throw new E._z({docsPath:et});let u=t.find(e=>"event"===e.type&&a===(0,C.h)((0,S.B)(e)));if(!(u&&"name"in u)||"event"!==u.type)throw new E.kE(a,{docsPath:et});let{name:l,inputs:c}=u,f=c?.some(e=>!("name"in e&&e.name)),d=f?[]:{},h=c.map((e,t)=>[e,t]).filter(([e])=>"indexed"in e&&e.indexed);for(let e=0;e<h.length;e++){let[t,r]=h[e],n=o[e];if(!n)throw new E.l3({abiItem:u,param:t});d[f?r:t.name||r]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,ee.n)([e],t)||[])[0]}({param:t,value:n})}let p=c.filter(e=>!("indexed"in e&&e.indexed));if(p.length>0){if(r&&"0x"!==r)try{let e=(0,ee.n)(p,r);if(e)if(f)for(let t=0;t<c.length;t++)d[t]=d[t]??e.shift();else for(let t=0;t<p.length;t++)d[p[t].name]=e[t]}catch(e){if(s){if(e instanceof E.Iy||e instanceof X.SK)throw new E.fo({abiItem:u,data:r,params:p,size:(0,$.E)(r)});throw e}}else if(s)throw new E.fo({abiItem:u,data:"0x",params:p,size:0})}return{eventName:l,args:Object.values(d).length>0?d:void 0}}function en(e){let{abi:t,args:r,logs:n,strict:i=!0}=e,s=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(e=>{try{let n=t.find(t=>"event"===t.type&&e.topics[0]===(0,C.h)(t));if(!n)return null;let a=er({...e,abi:[n],strict:i});if(s&&!s.includes(a.eventName)||!function(e){let{args:t,inputs:r,matchArgs:n}=e;if(!n)return!0;
2if(!t)return!1;function i(e,t,r){try{if("address"===e.type)return(0,Y.h)(t,r);if("string"===e.type||"bytes"===e.type)return(0,_.S)((0,B.ZJ)(t))===r;return t===r}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(null==e)return!0;let s=r[n];return!!s&&(Array.isArray(e)?e:[e]).some(e=>i(s,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(null==n)return!0;let s=r.find(t=>t.name===e);return!!s&&(Array.isArray(n)?n:[n]).some(r=>i(s,r,t[e]))})}({args:a.args,inputs:n.inputs,matchArgs:r}))return null;return{...a,...e}}catch(n){let t,r;if(n instanceof E.kE)return null;if(n instanceof E.fo||n instanceof E.l3){if(i)return null;t=n.abiItem.name,r=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:r?[]:{},eventName:t}}}).filter(Boolean)}var ei=r(87632);async function es(e,{address:t,blockHash:r,fromBlock:n,toBlock:i,event:s,events:a,args:u,strict:l}={}){let c,f=a??(s?[s]:void 0),d=[];f&&(d=[f.flatMap(e=>N({abi:[e],eventName:e.name,args:a?void 0:u}))],s&&(d=d[0]));let h=(r?await e.request({method:"eth_getLogs",params:[{address:t,topics:d,blockHash:r}]}):await e.request({method:"eth_getLogs",params:[{address:t,topics:d,fromBlock:"bigint"==typeof n?(0,o.cK)(n):n,toBlock:"bigint"==typeof i?(0,o.cK)(i):i}]})).map(e=>(0,ei.e)(e));return f?en({abi:f,args:u,logs:h,strict:l??!1}):h}async function ea(e,t){let{abi:r,address:n,args:i,blockHash:s,eventName:a,fromBlock:o,toBlock:u,strict:c}=t,f=a?(0,D.iY)({abi:r,name:a}):void 0,d=f?void 0:r.filter(e=>"event"===e.type);return(0,l.T)(e,es,"getLogs")({address:n,args:i,blockHash:s,event:f,events:d,fromBlock:o,toBlock:u,strict:c})}class eo extends x.C{constructor({address:e}){super(`No EIP-712 domain found on contract "${e}".`,{metaMessages:["Ensure that:",`- The contract is deployed at the address "${e}".`,"- `eip712Domain()` function exists on the contract.","- `eip712Domain()` function matches signature to ERC-5267 specification."],name:"Eip712DomainNotFoundError"})}}async function eu(e,t){let{address:r,factory:n,factoryData:i}=t;try{let[t,s,a,o,u,f,d]=await (0,l.T)(e,c.J,"readContract")({abi:el,address:r,functionName:"eip712Domain",factory:n,factoryData:i});return{domain:{name:s,version:a,chainId:Number(o),verifyingContract:u,salt:f},extensions:d,fields:t}}catch(e){if("ContractFunctionExecutionError"===e.name&&"ContractFunctionZeroDataError"===e.cause.name)throw new eo({address:r});throw e}}let el=[{inputs:[],name:"eip712Domain",outputs:[{name:"fields",type:"bytes1"},{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"},{name:"salt",type:"bytes32"},{name:"extensions",type:"uint256[]"}],stateMutability:"view",type:"function"}];async function ec(e,{blockCount:t,blockNumber:r,blockTag:n="latest",rewardPercentiles:i}){var s;let a="bigint"==typeof r?(0,o.cK)(r):void 0;return{baseFeePerGas:(s=await e.request({method:"eth_feeHistory",params:[(0,o.cK)(t),a||n,i]},{dedupe:!!a})).baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:s.gasUsedRatio,oldestBlock:BigInt(s.oldestBlock),reward:s.reward?.map(e=>e.map(e=>BigInt(e)))}}async function ef(e,{filter:t}){let r="strict"in t&&t.strict,n=await t.request({method:"eth_getFilterChanges",params:[t.id]});if("string"==typeof n[0])return n;let i=n.map(e=>(0,ei.e)(e));return"abi"in t&&t.abi?en({abi:t.abi,logs:i,strict:r}):i}async function ed(e,{filter:t}){let r=t.strict??!1,n=(await t.request({method:"eth_getFilterLogs",params:[t.id]})).map(e=>(0,ei.e)(e));return t.abi?en({abi:t.abi,logs:n,strict:r}):n}var eh=r(39112);async function ep(e,{address:t,blockNumber:r,blockTag:n,storageKeys:i}){let s=void 0!==r?(0,o.cK)(r):void 0;var a=await e.request({method:"eth_getProof",params:[t,i,s||(n??"latest")]});return{...a,balance:a.balance?BigInt(a.balance):void 0,nonce:a.nonce?(0,K.ME)(a.nonce):void 0,storageProof:a.storageProof?a.storageProof.map(e=>({...e,value:BigInt(e.value)})):void 0}}async function em(e,{address:t,blockNumber:r,blockTag:n="latest",slot:i}){let s=void 0!==r?(0,o.cK)(r):void 0;return await e.request({method:"eth_getStorageAt",params:[t,i,s||n]})}var eg=r(30106);async function eb(e,{hash:t,transactionReceipt:r}){let[n,i]=await Promise.all([(0,l.T)(e,J.G,"getBlockNumber")({}),t?(0,l.T)(e,eg.x,"getTransaction")({hash:t}):void 0]),s=r?.blockNumber||i?.blockNumber;return s?n-s+1n:0n}var ey=r(13649),eA=r(13494),ev=r(6083),ew=r(80440),eE=r(35109),ex=r(42264),eM=r(69330),eB=r(79731),e_=r(35020),eC=r(17327),eI=r
vendor: 5,398 bytes, line 2
2(25507);async function eS(e,t){let{blockNumber:r,blockTag:n=e.experimental_blockTag??"latest",blocks:i,returnFullTransactions:s,traceTransfers:a,validation:u}=t;try{let t=[];for(let e of i){let r=e.blockOverrides?ew.J(e.blockOverrides):void 0,n=e.calls.map(e=>{let t=e.account?(0,p.J)(e.account):void 0,r=e.abi?(0,T.p)(e):e.data,n={...e,data:e.dataSuffix?(0,eB.xW)([r||"0x",e.dataSuffix]):r,from:e.from??t?.address};return(0,y.c)(n),(0,b.Bv)(n)}),i=e.stateOverrides?(0,eI.yH)(e.stateOverrides):void 0;t.push({blockOverrides:r,calls:n,stateOverrides:i})}let l="bigint"==typeof r?(0,o.cK)(r):void 0;return(await e.request({method:"eth_simulateV1",params:[{blockStateCalls:t,returnFullTransactions:s,traceTransfers:a,validation:u},l||n]})).map((e,t)=>({...(0,eC.$)(e),calls:e.calls.map((e,r)=>{let{abi:n,args:s,functionName:a,to:o}=i[t].calls[r],u=e.error?.data??e.returnData,l=BigInt(e.gasUsed),c=e.logs?.map(e=>ei.e(e)),f="0x1"===e.status?"success":"failure",d=n&&"success"===f&&"0x"!==u?(0,eM.e)({abi:n,data:u,functionName:a}):null,h=(()=>{let t;if("success"!==f&&(e.error?.data==="0x"?t=new E.O:e.error&&(t=new eE.$S(e.error)),t))return(0,L.j)(t,{abi:n??[],address:o??"0x",args:s,functionName:a??"<unknown>"})})();return{data:u,gasUsed:l,logs:c,status:f,..."success"===f?{result:d}:{error:h}}})}))}catch(t){let e=(0,e_.l)(t,{});if(e instanceof ex.RM)throw t;throw e}}class eD extends Error{constructor(e,t={}){let r=t.cause instanceof eD?t.cause.details:t.cause?.message?t.cause.message:t.details,n=t.cause instanceof eD&&t.cause.docsPath||t.docsPath;super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...n?[`Docs: https://abitype.dev${n}`]:[],...r?[`Details: ${r}`]:[],"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=r,this.docsPath=n,this.metaMessages=t.metaMessages,this.shortMessage=e}}class eO extends eD{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 eN extends eD{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 eF extends eD{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"})}}function eR(e,t){let r=e.exec(t);return r?.groups}let eP=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ek=/^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)?$/,eT=/^\(.+?\).*?$/,eL=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,eU=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/,ej=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/,eq=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/,eQ=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/,eH=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/,eG=/^receive\(\) external payable$/,ez=new Set(["indexed"]),eJ=new Set(["calldata","memory","storage"]);class eK extends eD{constructor({param:e}){super("Invalid ABI parameter.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}class eV extends eD{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 eW extends eD{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}class eZ extends eD{constructor({param:e,type:t,modifier:r}){super("Invalid ABI parameter.",{details:e,metaMessages:[`Modifier "${r}" not allowed${t?` in "${t}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}class eY extends eD{constructor({abiParameter:e}){super("Invalid ABI parameter.",{details:JSON.stringify(e,null,2),metaMessages:["ABI parameter type is invali
2d."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}class e$ extends eD{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}class eX extends eD{constructor({signature:e}){super("Unknown signature.",{details:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}class e0 extends eD{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"})}}class e1 extends eD{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"})}}class e2 extends eD{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 e6=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}]]);function e5(e,t={}){if(ej.test(e))return function(e,t={}){let r=eR(ej,e);if(!r)throw new e$({signature:e,type:"function"});let n=e9(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(e7(n[e],{modifiers:eJ,structs:t,type:"function"}));let a=[];if(r.returns){let e=e9(r.returns),n=e.length;for(let r=0;r<n;r++)a.push(e7(e[r],{modifiers:eJ,structs:t,type:"function"}))}return{name:r.name,type:"function",stateMutability:r.stateMutability??"nonpayable",inputs:i,outputs:a}}(e,t);if(eU.test(e))return function(e,t={}){let r=eR(eU,e);if(!r)throw new e$({signature:e,type:"event"});let n=e9(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(e7(n[e],{modifiers:ez,structs:t,type:"event"}));return{name:r.name,type:"event",inputs:i}}(e,t);if(eL.test(e))return function(e,t={}){let r=eR(eL,e);if(!r)throw new e$({signature:e,type:"error"});let n=e9(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(e7(n[e],{structs:t,type:"error"}));return{name:r.name,type:"error",inputs:i}}(e,t);if(eQ.test(e))return function(e,t={}){let r=eR(eQ,e);if(!r)throw new e$({signature:e,type:"constructor"});let n=e9(r.parameters),i=[],s=n.length;for(let e=0;e<s;e++)i.push(e7(n[e],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:r.stateMutability??"nonpayable",inputs:i}}(e,t);if(eH.test(e)){var r=e;let t=eR(eH,r);if(!t)throw new e$({signature:r,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}if(eG.test(e))return{type:"receive",stateMutability:"payable"};throw new eX({signature:e})}let e3=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,e4=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,e8=/^u?int$/;function e7(e,t){var r,n;let i,s=function(e,t,r){let n="";if(r)for(let e of Object.entries(r)){if(!e)continue;let t="";for(let r of e[1])t+=`[${r.type}${r.name?`:${r.name}`:""}]`;n+=`(${e[0]}{${t}})`}return t?`${t}:${e}${n}`:e}(e,t?.type,t?.structs);if(e6.has(s))return e6.get(s);let a=eT.test(e),o=eR(a?e4:e3,e);if(!o)throw new eK({param:e});if(o.name&&("address"===(r=o.name)||"bool"===r||"function"===r||"string"===r||"tuple"===r||eP.test(r)||ek.test(r)||tt.test(r)))throw new eV({param:e,name:o.name});let u=o.name?{name:o.name}:{},l="indexed"===o.modifier?{indexed:!0}:{},c=t?.structs??{},f={};if(a){i="tuple";let e=e9(o.type),t=[],r=e.length;for(let n=0;n<r;n++)t.push(e7(e[n],{structs:c}));f={components:t}}else if(o.type in c)i="tuple",f={components:c[o.type]};else if(e8.test(o.type))i=`${o.type}256`;else if("address payable"===o.type)i="address";else if(i=o.type,t?.type!=="struct"&&!te(i))throw new eF({type:i});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new eW({param:e,type:t?.type,modifier:o.modifier});if(eJ.has(o.modifier)&&(n=i,!o.array&&"bytes"!==n&&"string"!==n&&"tuple"!==n))throw new eZ({param:e,type:t?.type,modifier:o.modifier})}let d={type:`${i}${o.array??""}`,...u,...l,...f};return e6.set(s,d),d}function e9(e,t=[],r="",n=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===n?e9(a,[...t,r.trim()]):e9(a,t,`${r}${i}`,n);case"(":return e9(a,t,`${r}${i}`,n+1);case")":return e9(a,t,`${r}${i}`,n-1);default:return e9(a,t,`${r}${i}`,n)}}if(""===r)return t;if(0!==n)throw new e2({current:r,depth:n});return t.push(r.trim()),t}function te(e){return"address"===e||"bool"===e||"function"===e||"string"===e||eP.test(e)||ek.test(e)}let tt=/^(?: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)$/,tr=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/,tn=/^tuple(?<array>(\[(\d*)\])*)$/;function ti(e){let t="",r=e.length;for(let n=0;n<r;n++)t+=function e(t){let r=t.type;if(tn.test(t.type)&&"components"in t){r="(";let n=t.components.length;for(let i=0;i<n;i++)r+=e(t.components[i]),i<n-1&&(r+=", ");let i=eR(tn,t.type);return r+=`)${i?.array??""}`,e({...t,type:r})}return("indexed"in t&&t.indexed&&(r=`${r}
2 indexed`),t.name)?`${r} ${t.name}`:r}(e[n]),n!==r-1&&(t+=", ");return t}function ts(e){return"function"===e.type?`function ${e.name}(${ti(e.inputs)})${e.stateMutability&&"nonpayable"!==e.stateMutability?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${ti(e.outputs)})`:""}`:"event"===e.type?`event ${e.name}(${ti(e.inputs)})`:"error"===e.type?`error ${e.name}(${ti(e.inputs)})`:"constructor"===e.type?`constructor(${ti(e.inputs)})${"payable"===e.stateMutability?" payable":""}`:"fallback"===e.type?`fallback() external${"payable"===e.stateMutability?" payable":""}`:"receive() external payable"}var ta=r(21894),to=r(8512),tu=r(73142),tl=r(43695);let tc={zero:48,nine:57,A:65,F:70,a:97,f:102};function tf(e){return e>=tc.zero&&e<=tc.nine?e-tc.zero:e>=tc.A&&e<=tc.F?e-(tc.A-10):e>=tc.a&&e<=tc.f?e-(tc.a-10):void 0}var td=r(89242);let th=new TextEncoder;ta.C,ta.C;class tp extends ta.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \`${t}\` bytes. Given size: \`${e}\` bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeOverflowError"})}}ta.C;class tm extends ta.C{constructor({size:e,targetSize:t,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (\`${e}\`) exceeds padding size (\`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Bytes.SizeExceedsPaddingSizeError"})}}function tg(e,t={}){var r;let{as:n="string"==typeof e?"Hex":"Bytes"}=t,i=(0,to.lY)(e instanceof Uint8Array?e:"string"==typeof e?function(e,t={}){let{size:r}=t,n=e;r&&(td.Sl(e,r),n=tu.M7(e,r));let i=n.slice(2);i.length%2&&(i=`0${i}`);let s=i.length/2,a=new Uint8Array(s);for(let e=0,t=0;e<s;e++){let r=tf(i.charCodeAt(t++)),n=tf(i.charCodeAt(t++));if(void 0===r||void 0===n)throw new ta.C(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);a[e]=16*r+n}return a}(e):(r=e)instanceof Uint8Array?r:new Uint8Array(r));return"Bytes"===n?i:tu.uK(i)}class tb 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}}let ty={checksum:new tb(8192)}.checksum,tA=/^0x[a-fA-F0-9]{40}$/;function tv(e,t={}){let{strict:r=!0}=t;if(!tA.test(e))throw new tE({address:e,cause:new tx});if(r){if(e.toLowerCase()===e)return;if(function(e){if(ty.has(e))return ty.get(e);tv(e,{strict:!1});let t=e.substring(2).toLowerCase(),r=tg(function(e,t={}){let{size:r}=t,n=th.encode(e);if("number"==typeof r){var i;if(n.length>r)throw new tp({givenSize:n.length,maxSize:r});return i=n,function(e,t={}){let{dir:r,size:n=32}=t;if(0===n)return e;if(e.length>n)throw new tm({size:e.length,targetSize:n,type:"Bytes"});let i=new Uint8Array(n);for(let t=0;t<n;t++){let s="right"===r;i[s?t:n-t-1]=e[s?t:e.length-t-1]}return i}(i,{dir:"right",size:r})}return n}(t),{as:"Bytes"}),n=t.split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&n[e]&&(n[e]=n[e].toUpperCase()),(15&r[e>>1])>=8&&n[e+1]&&(n[e+1]=n[e+1].toUpperCase());let i=`0x${n.join("")}`;return ty.set(e,i),i}(e)!==e)throw new tE({address:e,cause:new tM})}}function tw(e,t={}){let{strict:r=!0}=t??{};try{return tv(e,{strict:r}),!0}catch{return!1}}class tE extends ta.C{constructor({address:e,cause:t}){super(`Address "${e}" is invalid.`,{cause:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class tx extends ta.C{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class tM extends ta.C{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}function tB(e){let t=!0,r="",n=0,i="",s=!1;for(let a=0;a<e.length;a++){let o=e[a];if(["(",")",","].includes(o)&&(t=!0),"("===o&&n++,")"===o&&n--,t){if(0===n){if(" "===o&&["event","function","error",""].includes(i))i="";else if(i+=o,")"===o){s=!0;break}continue}if(" "===o){","!==e[a-1]&&","!==r&&",("!==r&&(r="",t=!1);continue}i+=o,r+=o}}if(!s)throw new ta.C("Unable to normalize signature.");return i}function t_(e,t={}){let{prepare:r=!0}=t,n=Array.isArray(e)||"string"==typeof e?function(e){let t;if("string"==typeof e)t=e5(e);else{let r=function(e){let t={},r=e.length;for(let n=0;n<r;n++){let r=e[n];if(!eq.test(r))continue;let i=eR(eq,r);if(!i)throw new e$({signature:r,type:"struct"});let s=i.properties.split(";"),a=[],o=s.length;for(let e=0;e<o;e++){let t=s[e].trim();if(!t)continue;let r=e7(t,{type:"struct"});a.push(r)}if(!a.length)throw new e0({signature:r});t[i.name]=a}let n={},i=Object.entries(t),s=i.length;for(let e=0;e<s;e++){let[r,s]=i[e];n[r]=function e(t,r,n=new Set){let i=[],s=t.length;for(let a=0;a<s;a++){let s=t[a];if(eT.test(s.type))i.push(s);else{let t=eR(tr,s.type);if(!t?.type)throw new eY({abiParameter:s}
2);let{array:a,type:o}=t;if(o in r){if(n.has(o))throw new e1({type:o});i.push({...s,type:`tuple${a??""}`,components:e(r[o]??[],r,new Set([...n,o]))})}else if(te(o))i.push(s);else throw new eN({type:o})}}return i}(s,t)}return n}(e),n=e.length;for(let i=0;i<n;i++){let n=e[i];if(!eq.test(n)){t=e5(n,r);break}}}if(!t)throw new eO({signature:e});return t}(e):e;return{...n,...r?{hash:tI(n)}:{}}}function tC(e){return tu.di(tI(e),0,4)}function tI(e){return"string"!=typeof e&&"hash"in e&&e.hash?e.hash:tg(tu.sH(tB("string"==typeof e?e:ts(e))))}class tS extends ta.C{constructor(e,t){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${e.type}\` in \`${tB(ts(e.abiItem))}\`, and`,`\`${t.type}\` in \`${tB(ts(t.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class tD extends ta.C{constructor({name:e,data:t,type:r="item"}){super(`ABI ${r}${e?` with name "${e}"`:t?` with data "${t}"`:""} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}ta.C;let tO=/^(.*)\[([0-9]*)\]$/,tN=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,tF=/^(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)?$/;function tR(e){let t=0;for(let r=0;r<e.length;r++){let{dynamic:n,encoded:i}=e[r];n?t+=32:t+=tu.Ej(i)}let r=[],n=[],i=0;for(let s=0;s<e.length;s++){let{dynamic:a,encoded:o}=e[s];a?(r.push(tu.oB(t+i,{size:32})),n.push(o),i+=tu.Ej(o)):r.push(o)}return tu.xW(...r,...n)}function tP(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function tk(e){let{type:t}=e;if("string"===t||"bytes"===t||t.endsWith("[]"))return!0;if("tuple"===t)return e.components?.some(tk);let r=tP(e.type);return!!(r&&tk({...e,type:r[1]}))}function tT(e,t,r){let{checksumAddress:n=!1}=r??{};if(e.length!==t.length)throw new tq({expectedLength:e.length,givenLength:t.length});let i=tR(function({checksumAddress:e,parameters:t,values:r}){let n=[];for(let i=0;i<t.length;i++)n.push(function e({checksumAddress:t=!1,parameter:r,value:n}){let i=tP(r.type);if(i){let[s,a]=i;return function(t,r){let{checksumAddress:n,length:i,parameter:s}=r,a=null===i;if(!Array.isArray(t))throw new tQ(t);if(!a&&t.length!==i)throw new tU({expectedLength:i,givenLength:t.length,type:`${s.type}[${i}]`});let o=!1,u=[];for(let r=0;r<t.length;r++){let i=e({checksumAddress:n,parameter:s,value:t[r]});i.dynamic&&(o=!0),u.push(i)}
vendor: 2,238 bytes, line 2
2if(a||o){let e=tR(u);if(a){let t=tu.oB(u.length,{size:32});return{dynamic:!0,encoded:u.length>0?tu.xW(t,e):t}}if(o)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:tu.xW(...u.map(({encoded:e})=>e))}}(n,{checksumAddress:t,length:s,parameter:{...r,type:a}})}if("tuple"===r.type)return function(t,r){let{checksumAddress:n,parameter:i}=r,s=!1,a=[];for(let r=0;r<i.components.length;r++){let o=i.components[r],u=Array.isArray(t)?r:o.name,l=e({checksumAddress:n,parameter:o,value:t[u]});a.push(l),l.dynamic&&(s=!0)}return{dynamic:s,encoded:s?tR(a):tu.xW(...a.map(({encoded:e})=>e))}}(n,{checksumAddress:t,parameter:r});if("address"===r.type){var s=n,a={checksum:t};let{checksum:e=!1}=a;return tv(s,{strict:e}),{dynamic:!1,encoded:tu.Ho(s.toLowerCase())}}if("bool"===r.type){var o=n;if("boolean"!=typeof o)throw new ta.C(`Invalid boolean value: "${o}" (type: ${typeof o}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:tu.Ho(tu.xb(o))}}if(r.type.startsWith("uint")||r.type.startsWith("int")){let e=r.type.startsWith("int"),[,,t="256"]=tF.exec(r.type)??[];return function(e,{signed:t,size:r}){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 tu.Ty({max:n.toString(),min:i.toString(),signed:t,size:r/8,value:e.toString()})}return{dynamic:!1,encoded:tu.oB(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith("bytes"))return function(e,{type:t}){let[,r]=t.split("bytes"),n=tu.Ej(e);if(!r){let t=e;return n%32!=0&&(t=tu.M7(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:tu.xW(tu.Ho(tu.oB(n,{size:32})),t)}}if(n!==Number.parseInt(r))throw new tj({expectedSize:Number.parseInt(r),value:e});return{dynamic:!1,encoded:tu.M7(e)}}(n,{type:r.type});if("string"===r.type){var u=n;let e=tu.sH(u),t=Math.ceil(tu.Ej(e)/32),r=[];for(let n=0;n<t;n++)r.push(tu.M7(tu.di(e,32*n,(n+1)*32)));return{dynamic:!0,encoded:tu.xW(tu.M7(tu.oB(tu.Ej(e),{size:32})),...r)}}throw new tH(r.type)}({checksumAddress:e,parameter:t[i],value:r[i]}));return n}({checksumAddress:n,parameters:e,values:t}));return 0===i.length?"0x":i}function tL(e,t){if(e.length!==t.length)throw new tq({expectedLength:e.length,givenLength:t.length});let r=[];for(let n=0;n<e.length;n++){let i=e[n],s=t[n];
2r.push(tL.encode(i,s))}return tu.xW(...r)}(tL||(tL={})).encode=function e(t,r,n=!1){if("address"===t)return tv(r),tu.Ho(r.toLowerCase(),32*!!n);if("string"===t)return tu.sH(r);if("bytes"===t)return r;if("bool"===t)return tu.Ho(tu.xb(r),n?32:1);let i=t.match(tF);if(i){let[e,t,s="256"]=i,a=Number.parseInt(s)/8;return tu.oB(r,{size:n?32:a,signed:"int"===t})}let s=t.match(tN);if(s){let[e,t]=s;if(Number.parseInt(t)!==(r.length-2)/2)throw new tj({expectedSize:Number.parseInt(t),value:r});return tu.M7(r,32*!!n)}let a=t.match(tO);if(a&&Array.isArray(r)){let[t,n]=a,i=[];for(let t=0;t<r.length;t++)i.push(e(n,r[t],!0));return 0===i.length?"0x":tu.xW(...i)}throw new tH(t)},ta.C,ta.C;class tU extends ta.C{constructor({expectedLength:e,givenLength:t,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${e}\`. Given: \`${t}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class tj extends ta.C{constructor({expectedSize:e,value:t}){super(`Size of bytes "${t}" (bytes${tu.Ej(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class tq extends ta.C{constructor({expectedLength:e,givenLength:t}){super(`ABI encoding parameters/values length mismatch. 3Expected length (parameters): ${e} 4Given length (values): ${t}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class tQ extends ta.C{constructor(e){super(`Value \`${e}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class tH extends ta.C{constructor(e){super(`Type \`${e}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function tG(e,t={}){return t_(e,t)}let tz="0x0000000000000000000000000000000000000000";var tJ=r(15313);async function tK(e,t){let{blockNumber:r,blockTag:n,calls:i,stateOverrides:s,traceAssetChanges:a,traceTransfers:o,validation:u}=t,l=t.account?(0,p.J)(t.account):void 0;if(a&&!l)throw new x.C("`account` is required when `traceAssetChanges` is true");let c=l?function(e,t){let{bytecode:r,args:n}=t;return tu.xW(r,e.inputs?.length&&n?.length?tT(e.inputs,n):"0x")}(t_("constructor(bytes, bytes)"),{bytecode:tJ.LX,args:["0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033",function(e,...t){let{overloads:r}=e,n=r?function(e,t,r){let n=function(e,t,r){let n,{args:i=[],prepare:s=!0}=r??{},a=tu.tf(t,{strict:!1}),o=e.filter(e=>a?"function"===e.type||"error"===e.type?tC(e)===tu.di(t,0,4):"event"===e.type&&tI(e)===t:"name"in e&&e.name===t);if(0===o.length)throw new tD({name:t});if(1===o.length)return{...o[0],...s?{hash:tI(o[0])}:{}};for(let e of o){if("inputs"in e){if(!i||0===i.length){if(!e.inputs||0===e.inputs.length)return{...e,...s?{hash:tI(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,i=r.type;switch(i){case"address":return tw(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===i&&"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(i))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(i))return"string"===n||t instanceof Uint8Array;
4if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(i))return Array.isArray(t)&&t.every(t=>e(t,{...r,type:i.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(n&&"inputs"in n&&n.inputs){let t=function e(t,r,n){for(let i in t){let s=t[i],a=r[i];if("tuple"===s.type&&"tuple"===a.type&&"components"in s&&"components"in a)return e(s.components,a.components,n[i]);let o=[s.type,a.type];if(o.includes("address")&&o.includes("bytes20")||(o.includes("address")&&o.includes("string")||o.includes("address")&&o.includes("bytes"))&&tw(n[i],{strict:!1}))return o}}(e.inputs,n.inputs,i);if(t)throw new tS({abiItem:e,type:t[0]},{abiItem:n,type:t[1]})}n=e}}}let u=(()=>{if(n)return n;let[e,...t]=o;return{...e,overloads:t}})();if(!u)throw new tD({name:t});return{...u,...s?{hash:tI(u)}:{}}}(e,t,r);if("function"!==n.type)throw new tD({name:t,type:"function"});return n}([e,...r],e.name,{args:t[0]}):e,i=tC(n),s=t.length>0?tT(n.inputs,t[0]):void 0;return s?tu.xW(i,s):i}(tG("function getBalance(address)"),[l.address])]}):void 0,f=a?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;let{accessList:r}=await A(e,{account:l.address,...t,data:t.abi?(0,T.p)(t):t.data});return r.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],d=await eS(e,{blockNumber:r,blockTag:n,blocks:[...a?[{calls:[{data:c}],stateOverrides:s},{calls:f.map((e,t)=>({abi:[tG("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:tz,nonce:t})),stateOverrides:[{address:tz,nonce:0}]}]:[],{calls:[...i,{}].map(e=>({...e,from:l?.address})),stateOverrides:s},...a?[{calls:[{data:c}]},{calls:f.map((e,t)=>({abi:[tG("function balanceOf(address) returns (uint256)")],functionName:"balanceOf",args:[l.address],to:e,from:tz,nonce:t})),stateOverrides:[{address:tz,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tG("function decimals() returns (uint256)")],functionName:"decimals",from:tz,nonce:t})),stateOverrides:[{address:tz,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tG("function tokenURI(uint256) returns (string)")],functionName:"tokenURI",args:[0n],from:tz,nonce:t})),stateOverrides:[{address:tz,nonce:0}]},{calls:f.map((e,t)=>({to:e,abi:[tG("function symbol() returns (string)")],functionName:"symbol",from:tz,nonce:t})),stateOverrides:[{address:tz,nonce:0}]}]:[]],traceTransfers:o,validation:u}),h=a?d[2]:d[0],[m,g,,b,y,v,w,E]=a?d:[],{calls:M,...B}=h,_=M.slice(0,-1)??[],C=[...m?.calls??[],...g?.calls??[]].map(e=>"success"===e.status?(0,K.uU)(e.data):null),I=[...b?.calls??[],...y?.calls??[]].map(e=>"success"===e.status?(0,K.uU)(e.data):null),S=(v?.calls??[]).map(e=>"success"===e.status?e.result:null),D=(E?.calls??[]).map(e=>"success"===e.status?e.result:null),O=(w?.calls??[]).map(e=>"success"===e.status?e.result:null),N=[];for(let[e,t]of I.entries()){let r=C[e];if("bigint"!=typeof t||"bigint"!=typeof r)continue;let n=S[e-1],i=D[e-1],s=O[e-1],a=0===e?{address:"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee",decimals:18,symbol:"ETH"}:{address:f[e-1],decimals:s||n?Number(n??1):void 0,symbol:i??void 0};N.some(e=>e.token.address===a.address)||N.push({token:a,value:{pre:r,post:t,diff:t-r}})}return{assetChanges:N,block:B,results:_}}var tV=r(58950);async function tW(e,{filter:t}){return t.request({method:"eth_uninstallFilter",params:[t.id]})}var tZ=r(59243),tY=r(14493),t$=r(20760),tX=r(35883),t0=r(32840);let t1="0x6492649264926492649264926492649264926492649264926492649264926492";var t2=r(93727),t6=r(31716),t5=r(29065);async function t3(e,t){let{address:r,factory:n,factoryData:i,hash:s,signature:a,universalSignatureVerifierAddress:u=e.chain?.contracts?.universalSignatureVerifier?.address,...c}=t,f=(0,t0.q)(a)?a:"object"==typeof a&&"r"in a&&"s"in a?(0,t5.h)(a):(0,o.My)(a),d=await (async()=>{if(!n&&!i||(0,t2.iN)(f,-32)===t1)return f;let{address:e,data:t,signature:r,to:s="hex"}={address:n,data:i,signature:f},a=(0,eB.aP)([(0,I.h)([{type:"address"},{type:"bytes"},{type:"bytes"}],[e,t,r]),t1]);return"hex"===s?a:(0,B.aT)(a)})();try{let t=u?{to:u,data:(0,T.p)({abi:tY._,functionName:"isValidSig",args:[r,s,d]}),...c}:{data:(0,t$.m)({abi:tY._,args:[r,s,d],bytecode:tJ.nP}),...c},{data:n}=await (0,l.T)(e,h.T,"call")(t);return(0,K.Nx)(n??"0x0")}catch(e){try{if((0,Y.h)((0,tX.b)(r),await (0,t6.x)({hash:s,signature:a})))return!0}catch{}if(e instanceof eE.zX)return!1;throw e}}async function t4(e,{address:t,message:r,factory:n,factoryData:i,signature:s,...a}){return t3(e,{address:t,factory:n,factoryData:i,hash:(0,tZ.A)(r),signature:s,...a})}var t8=r(7900);async function t7(e,t){let{address:r,factory:n,factoryData:i,signature:s,message:a,primaryType:o,types:u,domain:l,...c}=t;return t3(e,{address:r,factory:n,factoryData:i,hash:(0,t8.Zh)({message:a,primaryType:o,types:u,domain:l}),signature:s,...c})}var t9=r(84014),re=r(85543),rt=r(72342),rr=r(86435),rn=r(79183),ri=r(81379);let rs=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\/\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\n)(?<address>0x[a-fA-F0-9]{40})\n\n(?:(?<statement>.*)\n\n)?/,ra=/(?:URI: (?<uri>.+))\n(?:Version: (?<version>.+))\n(?:Chain ID: (?<chainId>\d+))\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\n(?:Issued At: (?<issuedAt>.+))(?:\nExpiration Time: (?<expirationTime>.+))?(?:\nNot Before: (?<notBefore>.+))?(?:\nRequest ID: (?<requestId>.+))?/;var ro=r(81757);async function ru(e,t){let{address:r,domain:n,message:i,nonce:s,scheme:a,signature:o,time:u=new Date,...l}=t,c=function(e){let{scheme:t,statement:r,...n}=e.match(rs)?.groups??{},{chainId:i,expirationTime:s,issuedAt:a,notBefore:o,requestId:u,...l}=e.match(ra)?.groups??{},c=e.split("Resources:")[1]?.split("\n- ").slice(1);return{...n,...l,...i?{chainId:Number(i)}:{},...s?{expirationTime:new Date(s)}:{},...a?{issuedAt:new Date(a)}:{},...o?{notBefore:new Date(o)}:{},...u?{requestId:u}:{},...c?{resources:c}:{},...t?{scheme:t}:{},...r?{statement:r}:{}}}(i);if(!c.address||!function(e){let{address:t,domain:r,message:n,nonce:i,scheme:s,time:a=new Date}=e;if(r&&n.domain!==r||i&&n.nonce!==i||s&&n.scheme!==s||n.expirationTime&&a>=n.expirationTime||n.notBefore&&a<n.notBefore)return!1;try{if(!n.address||!(0,ro.P)(n.address,{strict:!1})||t&&!(0,Y.h)(n.address,t))return!1}catch{return!1}return!0}({address:r,domain:n,message:c,nonce:s,scheme:a,time:u}))return!1;let f=(0,tZ.A)(i);return t3(e,{address:c.address,hash:f,signature:o,...l})}var rl=r(82700),rc=r(2806);function rf(e){return{call:t=>(0,h.T)(e,t),createAccessList:t=>A(e,t),createBlockFilter:()=>w(e),createContractEventFilter:t=>R(e,t),createEventFilter:t=>P(e,t),createPendingTransactionFilter:()=>k(e),estimateContractGas:t=>j(e,t),estimateGas:t=>(0,U.Q)(e,t),getBalance:t=>(0,H.r)(e,t),getBlobBaseFee:()=>G(e),getBlock:t=>(0,z.g)(e,t),getBlockNumber:t=>(0,J.G)(e,t),getBlockTransactionCount:t=>V(e,t),getBytecode:t=>Z(e,t),getChainId:()=>(0,W.T)(e),getCode:t=>Z(e,t),getContractEvents:t=>ea(e,t),getEip712Domain:t=>eu(e,t),getEnsAddress:t=>(0,n.B)(e,t),getEnsAvatar:t=>(0,i.i)(e,t),getEnsName:t=>(0,s.s)(e,t),getEnsResolver:t=>f(e,t),getEnsText:t=>(0,d.m)(e,t),getFeeHistory:t=>ec(e,t),estimateFeesPerGas:t=>(0,q._)(e,t),getFilterChanges:t=>ef(e,t),getFilterLogs:t=>ed(e,t),getGasPrice:()=>(0,eh.L)(e),getLogs:t=>es(e,t),getProof:t=>ep(e,t),estimateMaxPriorityFeePerGas:t=>(0,Q.b)(e,t),getStorageAt:t=>em(e,t),getTransaction:t=>(0,eg.x)(e,t),getTransactionConfirmations:t=>eb(e,t),getTransactionCount:t=>(0,ey.y)(e,t),getTransactionReceipt:t=>(0,eA.h)(e,t),multicall:t=>(0,ev.C)(e,t),prepareTransactionRequest:t=>(0,rl.ft)(e,t),readContract:t=>(0,c.J)(e,t),sendRawTransaction:t=>(0,rc.L)(e,t),simulate:t=>eS(e,t),simulateBlocks:t=>eS(e,t),simulateCalls:t=>tK(e,t),simulateContract:t=>(0,tV.v)(e,t),verifyMessage:t=>t4(e,t),verifySiweMessage:t=>ru(e,t),verifyTypedData:t=>t7(e,t),uninstallFilter:t=>tW(e,t),waitForTransactionReceipt:t=>(0,t9.n)(e,t),watchBlocks:t=>(function(e,{blockTag:t=e.experimental_blockTag??"latest",emitMissed:r=!1,emitOnBegin:n=!1,onBlock:i,onError:s,includeTransactions:a,poll:o,pollingInterval:u=e.pollingInterval}){let c,f,d,h,p=void 0!==o?o:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
4onfig.type&&"ipc"!==e.transport.transports[0].config.type),m=a??!1;return p?(()=>{let a=(0,rn.A)(["watchBlocks",e.uid,t,r,n,m,u]);return(0,rt.lB)(a,{onBlock:i,onError:s},i=>(0,rr.w)(async()=>{try{let n=await (0,l.T)(e,z.g,"getBlock")({blockTag:t,includeTransactions:m});if(null!==n.number&&c?.number!=null){if(n.number===c.number)return;if(n.number-c.number>1&&r)for(let t=c?.number+1n;t<n.number;t++){let r=await (0,l.T)(e,z.g,"getBlock")({blockNumber:t,includeTransactions:m});i.onBlock(r,c),c=r}}(c?.number==null||"pending"===t&&n?.number==null||null!==n.number&&n.number>c.number)&&(i.onBlock(n,c),c=n)}catch(e){i.onError?.(e)}},{emitOnBegin:n,interval:u}))})():(f=!0,d=!0,h=()=>f=!1,(async()=>{try{n&&(0,l.T)(e,z.g,"getBlock")({blockTag:t,includeTransactions:m}).then(e=>{f&&d&&(i(e,void 0),d=!1)}).catch(s);let r=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:a}=await r.subscribe({params:["newHeads"],async onData(t){if(!f)return;let r=await (0,l.T)(e,z.g,"getBlock")({blockNumber:t.result?.number,includeTransactions:m}).catch(()=>{});f&&(i(r,c),d=!1,c=r)},onError(e){s?.(e)}});h=a,f||h()}catch(e){s?.(e)}})(),()=>h())})(e,t),watchBlockNumber:t=>(0,re.q)(e,t),watchContractEvent:t=>(function(e,t){let{abi:r,address:n,args:i,batch:s=!0,eventName:a,fromBlock:o,onError:u,onLogs:c,poll:f,pollingInterval:d=e.pollingInterval,strict:h}=t;return(void 0!==f?f:"bigint"==typeof o||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
4onfig.type&&"ipc"!==e.transport.transports[0].config.type))?(()=>{let t=h??!1,f=(0,rn.A)(["watchContractEvent",n,i,s,e.uid,a,d,t,o]);return(0,rt.lB)(f,{onLogs:c,onError:u},u=>{let c,f;void 0!==o&&(c=o-1n);let h=!1,p=(0,rr.w)(async()=>{if(!h){try{f=await (0,l.T)(e,R,"createContractEventFilter")({abi:r,address:n,args:i,eventName:a,strict:t,fromBlock:o})}catch{}h=!0;return}try{let o;if(f)o=await (0,l.T)(e,ef,"getFilterChanges")({filter:f});else{let s=await (0,l.T)(e,J.G,"getBlockNumber")({});o=c&&c<s?await (0,l.T)(e,ea,"getContractEvents")({abi:r,address:n,args:i,eventName:a,fromBlock:c+1n,toBlock:s,strict:t}):[],c=s}if(0===o.length)return;if(s)u.onLogs(o);else for(let e of o)u.onLogs([e])}catch(e){f&&e instanceof ri.Di&&(h=!1),u.onError?.(e)}},{emitOnBegin:!0,interval:d});return async()=>{f&&await (0,l.T)(e,tW,"uninstallFilter")({filter:f}),p()}})})():(()=>{let t=(0,rn.A)(["watchContractEvent",n,i,s,e.uid,a,d,h??!1]),o=!0,l=()=>o=!1;return(0,rt.lB)(t,{onLogs:c,onError:u},t=>((async()=>{try{let s=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),u=a?N({abi:r,eventName:a,args:i}):[],{unsubscribe:c}=await s.subscribe({params:["logs",{address:n,topics:u}],onData(e){if(!o)return;let n=e.result;try{let{eventName:e,args:i}=er({abi:r,data:n.data,topics:n.topics,strict:h}),s=(0,ei.e)(n,{args:i,eventName:e});t.onLogs([s])}catch(s){let e,r;if(s instanceof E.fo||s instanceof E.l3){if(h)return;e=s.abiItem.name,r=s.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let i=(0,ei.e)(n,{args:r?[]:{},eventName:e});t.onLogs([i])}},onError(e){t.onError?.(e)}});l=c,o||l()}catch(e){u?.(e)}})(),()=>l()))})()})(e,t),watchEvent:t=>(function(e,{address:t,args:r,batch:n=!0,event:i,events:s,fromBlock:a,onError:o,onLogs:u,poll:c,pollingInterval:f=e.pollingInterval,strict:d}){let h,p,m=void 0!==c?c:"bigint"==typeof a||"webSocket"!==e.transport.type&&"ipc"!==e.transport.type&&("fallback"!==e.transport.type||"webSocket"!==e.transport.transports[0].c
4onfig.type&&"ipc"!==e.transport.transports[0].config.type),g=d??!1;return m?(()=>{let c=(0,rn.A)(["watchEvent",t,r,n,e.uid,i,f,a]);return(0,rt.lB)(c,{onLogs:u,onError:o},o=>{let u,c;void 0!==a&&(u=a-1n);let d=!1,h=(0,rr.w)(async()=>{if(!d){try{c=await (0,l.T)(e,P,"createEventFilter")({address:t,args:r,event:i,events:s,strict:g,fromBlock:a})}catch{}d=!0;return}try{let a;if(c)a=await (0,l.T)(e,ef,"getFilterChanges")({filter:c});else{let n=await (0,l.T)(e,J.G,"getBlockNumber")({});a=u&&u!==n?await (0,l.T)(e,es,"getLogs")({address:t,args:r,event:i,events:s,fromBlock:u+1n,toBlock:n}):[],u=n}if(0===a.length)return;if(n)o.onLogs(a);else for(let e of a)o.onLogs([e])}catch(e){c&&e instanceof ri.Di&&(d=!1),o.onError?.(e)}},{emitOnBegin:!0,interval:f});return async()=>{c&&await (0,l.T)(e,tW,"uninstallFilter")({filter:c}),h()}})})():(h=!0,p=()=>h=!1,(async()=>{try{let n=(()=>{if("fallback"===e.transport.type){let t=e.transport.transports.find(e=>"webSocket"===e.config.type||"ipc"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=s??(i?[i]:void 0),l=[];a&&(l=[a.flatMap(e=>N({abi:[e],eventName:e.name,args:r}))],i&&(l=l[0]));let{unsubscribe:c}=await n.subscribe({params:["logs",{address:t,topics:l}],onData(e){if(!h)return;let t=e.result;try{let{eventName:e,args:r}=er({abi:a??[],data:t.data,topics:t.topics,strict:g}),n=(0,ei.e)(t,{args:r,eventName:e});u([n])}catch(i){let e,r;if(i instanceof E.fo||i instanceof E.l3){if(d)return;e=i.abiItem.name,r=i.abiItem.inputs?.some(e=>!("name"in e&&e.name))}let n=(0,ei.e)(t,{args:r?[]:{},eventName:e});u([n])}},onError(e){o?.(e)}});p=c,h||p()}catch(e){o?.(e)}})(),()=>p())})(e,t),watchPendingTransactions:t=>(function(e,{batch:t=!0,onError:r,onTransactions:n,poll:i,pollingInterval:s=e.pollingInterval}){let a,o;return(void 0!==i?i:"webSocket"!==e.transport.type&&"ipc"!==e.transport.type)?(()=>{let i=(0,rn.A)(["watchPendingTransactions",e.uid,t,s]);return(0,rt.lB)(i,{onTransactions:n,onError:r},r=>{let n,i=(0,rr.w)(async()=>{try{if(!n)try{n=await (0,l.T)(e,k,"createPendingTransactionFilter")({});return}catch(e){throw i(),e}let s=await (0,l.T)(e,ef,"getFilterChanges")({filter:n});if(0===s.length)return;if(t)r.onTransactions(s);else for(let e of s)r.onTransactions([e])}catch(e){r.onError?.(e)}},{emitOnBegin:!0,interval:s});return async()=>{n&&await (0,l.T)(e,tW,"uninstallFilter")({filter:n}),i()}})})():(a=!0,o=()=>a=!1,(async()=>{try{let{unsubscribe:t}=await e.transport.subscribe({params:["newPendingTransactions"],onData(e){if(!a)return;let t=e.result;n([t])},onError(e){r?.(e)}});o=t,a||o()}catch(e){r?.(e)}})(),()=>o())})(e,t)}}},92437:function(e,t,r){!function(e,t){"use strict";function n(e,t){if(!e)throw Error(t||"Assertion failed")}function i(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function s(e,t,r){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&(("le"===t||"be"===t)&&(r=t,t=10),this._init(e||0,t||10,r||"be"))}
vendor: 39,805 bytes, line 4
4"object"==typeof e?e.exports=s:t.BN=s,s.BN=s,s.wordSize=26;try{f="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:r(47790).Buffer}catch(e){}function a(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function o(e,t,r){var n=a(e,r);return r-1>=t&&(n|=a(e,r-1)<<4),n}function u(e,t,r,i){for(var s=0,a=0,o=Math.min(e.length,r),u=t;u<o;u++){var l=e.charCodeAt(u)-48;s*=i,a=l>=49?l-49+10:l>=17?l-17+10:l,n(l>=0&&a<i,"Invalid character"),s+=a}return s}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,t){return e.cmp(t)>0?e:t},s.min=function(e,t){return 0>e.cmp(t)?e:t},s.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,r):(this._parseBase(e,t,i),"le"===r&&this._initArray(this.toArray(),t,r)))},s.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<0x4000000?(this.words=[0x3ffffff&e],this.length=1):e<0x10000000000000?(this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff],this.length=2):(n(e<0x20000000000000),this.words=[0x3ffffff&e,e/0x4000000&0x3ffffff,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},s.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var i,s,a=0;a<this.length;a++)this.words[a]=0;var o=0;if("be"===r)for(a=e.length-1,i=0;a>=0;a-=3)s=e[a]|e[a-1]<<8|e[a-2]<<16,this.words[i]|=s<<o&0x3ffffff,this.words[i+1]=s>>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,i++);else if("le"===r)for(a=0,i=0;a<e.length;a+=3)s=e[a]|e[a+1]<<8|e[a+2]<<16,this.words[i]|=s<<o&0x3ffffff,this.words[i+1]=s>>>26-o&0x3ffffff,(o+=24)>=26&&(o-=26,i++);return this._strip()},s.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=Array(this.length);for(var n,i=0;i<this.length;i++)this.words[i]=0;var s=0,a=0;if("be"===r)for(i=e.length-1;i>=t;i-=2)n=o(e,t,i)<<s,this.words[a]|=0x3ffffff&n,s>=18?(s-=18,a+=1,this.words[a]|=n>>>26):s+=8;else for(i=(e.length-t)%2==0?t+1:t;i<e.length;i+=2)n=o(e,t,i)<<s,this.words[a]|=0x3ffffff&n,s>=18?(s-=18,a+=1,this.words[a]|=n>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,i=1;i<=0x3ffffff;i*=t)n++;n--,i=i/t|0;for(var s=e.length-r,a=s%n,o=Math.min(s,s-a)+r,l=0,c=r;c<o;c+=n)l=u(e,c,c+n,t),this.imuln(i),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l);if(0!==a){var f=1;for(l=u(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+l<0x4000000?this.words[0]+=l:this._iaddn(l)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){l(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=c}catch(e){s.prototype.inspect=c}else s.prototype.inspect=c;function c(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f,d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,0x2000000,0x290d741,0x1000000,0x2e90edd,0x39aa400,0x267bf47,0x1000000,0x290d741,1e7,0x12959c3,0x222c000,0x3bd7765,7529536,0xadcea1,0x1000000,0x1704f61,0x206fc40,0x2cddcf9,64e6,4084101,5153632,6436343,7962624,9765625,0xb54ba0,0xdaf26b,0x1069c00,0x138f9ad,243e5,0x1b4d89f,0x2000000,0x25528a1,0x2b54a20,0x3216b93,0x39aa400];function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var i=0|e.words[0],s=0|t.words[0],a=i*s,o=0x3ffffff&a,u=a/0x4000000|0;r.words[0]=o;for(var l=1;l<n;l++){for(var c=u>>>26,f=0x3ffffff&u,d=Math.min(l,t.length-1),h=Math.max(0,l-e.length+1);h<=d;h++){var p=l-h|0;c+=(a=(i=0|e.words[p])*(s=0|t.words[h])+f)/0x4000000|0,f=0x3ffffff&a}r.words[l]=0|f,u=0|c}return 0!==u?r.words[l]=0|u:r.length--,r._strip()}s.prototype.toString=function(e,t){if(t=0|t||1,16===(e=e||10)||"hex"===e){for(var r="",i=0,s=0,a=0;a<this.length;a++){var o=this.words[a],u=((o<<i|s)&0xffffff).toString(16);s=o>>>24-i&0xffffff,(i+=2)>=26&&(i-=26,a--),r=0!==s||a!==this.length-1?d[6-u.length]+u+r:u+r}for(0!==s&&(r=s.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=h[e],c=p[e];r="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(c).toString(e);r=(f=f.idivn(c)).isZero()?m+r:d[l-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=0x4000000*this.words[1]:3===this.length&&1===this.words[2]?e+=0x10000000000000+0x4000000*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},f&&(s.prototype.toBuffer=function(e,t){return this.toArrayLike(f,e,t)}),s.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},s.prototype.toArrayLike=function(e,t,r){this._strip();var i=this.byteLength(),s=r||Math.max(1,i);n(i<=s,"byte array longer than desired length"),n(s>0,"Requested array length <= 0");var a=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},s.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,i=0,s=0;i<this.length;i++){var a=this.words[i]<<s|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===s?(r<e.length&&(e[r++]=a>>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},s.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,i=0,s=0;i<this.length;i++){var a=this.words[i]<<s|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===s?(r>=0&&(e[r--]=a>>24&255),n=0,s=0):(n=a>>>24,s+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},s.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return(8191&t)==0&&(r+=13,t>>>=13),(127&t)==0&&(r+=7,t>>>=7),(15&t)==0&&(r+=4,t>>>=4),(3&t)==0&&(r+=2,t>>>=2),(1&t)==0&&r++,r},s.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return(this.length-1)*26+t},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},s.prototype.ior=function(e){return n((this.negative|e.negative)==0),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},s.prototype.iand=function(e){return n((this.negative|e.negative)==0),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){this.length>e.length?(t=this,r=e):(t=e,r=this);for(var t,r,n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},s.prototype.ixor=function(e){return n((this.negative|e.negative)==0),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var i=0;i<t;i++)this.words[i]=0x3ffffff&~this.words[i];return r>0&&(this.words[i]=~this.words[i]&0x3ffffff>>26-r),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,i=e%26;return this._expand(r+1),t?this.words[r]=this.words[r]|1<<i:this.words[r]=this.words[r]&~(1<<i),this._strip()},s.prototype.iadd=function(e){if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var t,r,n,i=0,s=0;s<n.length;s++)t=(0|r.words[s])+(0|n.words[s])+i,this.words[s]=0x3ffffff&t,i=t>>>26;for(;0!==i&&s<r.length;s++)t=(0|r.words[s])+i,this.words[s]=0x3ffffff&t,i=t>>>26;if(this.length=r.length,0!==i)this.words[this.length]=i,this.length++;else if(r!==this)for(;s<r.length;s++)this.words[s]=r.words[s];return this},s.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t,r,n=this.iadd(e);return e.negative=1,n._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(t=this,r=e):(t=e,r=this);for(var s=0,a=0;a<r.length;a++)s=(n=(0|t.words[a])-(0|r.words[a])+s)>>26,this.words[a]=0x3ffffff&n;for(;0!==s&&a<t.length;a++)s=(n=(0|t.words[a])+s)>>26,this.words[a]=0x3ffffff&n;if(0===s&&a<t.length&&t!==this)for(;a<t.length;a++)this.words[a]=t.words[a];return this.length=Math.max(this.length,a),t!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,i,s,a=e.words,o=t.words,u=r.words,l=0,c=0|a[0],f=8191&c,d=c>>>13,h=0|a[1],p=8191&h,m=h>>>13,g=0|a[2],b=8191&g,y=g>>>13,A=0|a[3],v=8191&A,w=A>>>13,E=0|a[4],x=8191&E,M=E>>>13,B=0|a[5],_=8191&B,C=B>>>13,I=0|a[6],S=8191&I,D=I>>>13,O=0|a[7],N=8191&O,F=O>>>13,R=0|a[8],P=8191&R,k=R>>>13,T=0|a[9],L=8191&T,U=T>>>13,j=0|o[0],q=8191&j,Q=j>>>13,H=0|o[1],G=8191&H,z=H>>>13,J=0|o[2],K=8191&J,V=J>>>13,W=0|o[3],Z=8191&W,Y=W>>>13,$=0|o[4],X=8191&$,ee=$>>>13,et=0|o[5],er=8191&et,en=et>>>13,ei=0|o[6],es=8191&ei,ea=ei>>>13,eo=0|o[7],eu=8191&eo,el=eo>>>13,ec=0|o[8],ef=8191&ec,ed=ec>>>13,eh=0|o[9],ep=8191&eh,em=eh>>>13;r.negative=e.negative^t.negative,r.length=19,n=Math.imul(f,q);var eg=(l+n|0)+((8191&(i=(i=Math.imul(f,Q))+Math.imul(d,q)|0))<<13)|0;l=((s=Math.imul(d,Q))+(i>>>13)|0)+(eg>>>26)|0,eg&=0x3ffffff,n=Math.imul(p,q),i=(i=Math.imul(p,Q))+Math.imul(m,q)|0,s=Math.imul(m,Q),n=n+Math.imul(f,G)|0;var eb=(l+n|0)+((8191&(i=(i=i+Math.imul(f,z)|0)+Math.imul(d,G)|0))<<13)|0;l=((s=s+Math.imul(d,z)|0)+(i>>>13)|0)+(eb>>>26)|0,eb&=0x3ffffff,n=Math.imul(b,q),i=(i=Math.imul(b,Q))+Math.imul(y,q)|0,s=Math.imul(y,Q),n=n+Math.imul(p,G)|0,i=(i=i+Math.imul(p,z)|0)+Math.imul(m,G)|0,s=s+Math.imul(m,z)|0,n=n+Math.imul(f,K)|0;var ey=(l+n|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,K)|0))<<13)|0;l=((s=s+Math.imul(d,V)|0)+(i>>>13)|0)+(ey>>>26)|0,ey&=0x3ffffff,n=Math.imul(v,q),i=(i=Math.imul(v,Q))+Math.imul(w,q)|0,s=Math.imul(w,Q),n=n+Math.imul(b,G)|0,i=(i=i+Math.imul(b,z)|0)+Math.imul(y,G)|0,s=s+Math.imul(y,z)|0,n=n+Math.imul(p,K)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(m,K)|0,s=s+Math.imul(m,V)|0,n=n+Math.imul(f,Z)|0;var eA=(l+n|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,Z)|0))<<13)|0;l=((s=s+Math.imul(d,Y)|0)+(i>>>13)|0)+(eA>>>26)|0,eA&=0x3ffffff,n=Math.imul(x,q),i=(i=Math.imul(x,Q))+Math.imul(M,q)|0,s=Math.imul(M,Q),n=n+Math.imul(v,G)|0,i=(i=i+Math.imul(v,z)|0)+Math.imul(w,G)|0,s=s+Math.imul(w,z)|0,n=n+Math.imul(b,K)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(y,K)|0,s=s+Math.imul(y,V)|0,n=n+Math.imul(p,Z)|0,i=(i=i+Math.imul(p,Y)|0)+Math.imul(m,Z)|0,s=s+Math.imul(m,Y)|0,n=n+Math.imul(f,X)|0;var ev=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,X)|0))<<13)|0;l=((s=s+Math.imul(d,ee)|0)+(i>>>13)|0)+(ev>>>26)|0,ev&=0x3ffffff,n=Math.imul(_,q),i=(i=Math.imul(_,Q))+Math.imul(C,q)|0,s=Math.imul(C,Q),n=n+Math.imul(x,G)|0,i=(i=i+Math.imul(x,z)|0)+Math.imul(M,G)|0,s=s+Math.imul(M,z)|0,n=n+Math.imul(v,K)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(w,K)|0,s=s+Math.imul(w,V)|0,n=n+Math.imul(b,Z)|0,i=(i=i+Math.imul(b,Y)|0)+Math.imul(y,Z)|0,s=s+Math.imul(y,Y)|0,n=n+Math.imul(p,X)|0,i=(i=i+Math.imul(p,ee)|0)+Math.imul(m,X)|0,s=s+Math.imul(m,ee)|0,n=n+Math.imul(f,er)|0;var ew=(l+n|0)+((8191&(i=(i=i+Math.imul(f,en)|0)+Math.imul(d,er)|0))<<13)|0;l=((s=s+Math.imul(d,en)|0)+(i>>>13)|0)+(ew>>>26)|0,ew&=0x3ffffff,n=Math.imul(S,q),i=(i=Math.imul(S,Q))+Math.imul(D,q)|0,s=Math.imul(D,Q),n=n+Math.imul(_,G)|0,i=(i=i+Math.imul(_,z)|0)+Math.imul(C,G)|0,s=s+Math.imul(C,z)|0,n=n+Math.imul(x,K)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(M,K)|0,s=s+Math.imul(M,V)|0,n=n+Math.imul(v,Z)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(w,Z)|0,s=s+Math.imul(w,Y)|0,n=n+Math.imul(b,X)|0,i=(i=i+Math.imul(b,ee)|0)+Math.imul(y,X)|0,s=s+Math.imul(y,ee)|0,n=n+Math.imul(p,er)|0,i=(i=i+Math.imul(p,en)|0)+Math.imul(m,er)|0,s=s+Math.imul(m,en)|0,n=n+Math.imul(f,es)|0;var eE=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ea)|0)+Math.imul(d,es)|0))<<13)|0;l=((s=s+Math.imul(d,ea)|0)+(i>>>13)|0)+(eE>>>26)|0,eE&=0x3ffffff,n=Math.imul(N,q),i=(i=Math.imul(N,Q))+Math.imul(F,q)|0,s=Math.imul(F,Q),n=n+Math.imul(S,G)|0,i=(i=i+Math.imul(S,z)|0)+Math.imul(D,G)|0,s=s+Math.imul(D,z)|0,n=n+Math.imul(_,K)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(C,K)|0,s=s+Math.imul(C,V)|0,n=n+Math.imul(x,Z)|0,i=(i=i+Math.imul(x,Y)|0)+Math.imul(M,Z)|0,s=s+Math.imul(M,Y)|0,n=n+Math.imul(v,X)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(w,X)|0,s=s+Math.imul(w,ee)|0,n=n+Math.imul(b,er)|0,i=(i=i+Math.imul(b,en)|0)+Math.imul(y,er)|0,s=s+Math.imul(y,en)|0,n=n+Math.imul(p,es)|0,i=(i=i+Math.imul(p,ea)|0)+Math.imul(m,es)|0,s=s+Math.imul(m,ea)|0,n=n+Math.imul(f,eu)|0;var ex=(l+n|0)+((8191&(i=(i=i+Math.imul(f,el)|0)+Math.imul(d,eu)|0))<<13)|0;l=((s=s+Math.imul(d,el)|0)+(i>>>13)|0)+(ex>>>26)|0,ex&=0x3ffffff,n=Math.imul(P,q),i=(i=Math.imul(P,Q))+Math.imul(k,q)|0,s=Math.imul(k,Q),n=n+Math.imul(N,G)|0,i=(i=i+Math.imul(N,z)|0)+Math.imul(F,G)|0,s=s+Math.imul(F,z)|0,n=n+Math.imul(S,K)|0,i=(i=i+Math.imul(S,V)|0)+Math.imul(D,K)|0,s=s+Math.imul(D,V)|0,n=n+Math.imul(_,Z)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(C,Z)|0,s=s+Math.imul(C,Y)|0,n=n+Math.imul(x,X)|0,i=(i=i+Math.imul(x,ee)|0)+Math.imul(M,X)|0,s=s+Math.imul(M,ee)|0,n=n+Math.imul(v,er)|0,i=(i=i+Math.imul(v,en)|0)+Math.imul(w,er)|0,s=s+Math.imul(w,en)|0,n=n+Math.imul(b,es)|0,i=(i=i+Math.imul(b,ea)|0)+Math.imul(y,es)|0,s=s+Math.imul(y,ea)|0,n=n+Math.imul(p,eu)|0,i=(i=i+Math.imul(p,el)|0)+Math.imul(m,eu)|0,s=s+Math.imul(m,el)|0,n=n+Math.imul(f,ef)|0;var eM=(l+n|0)+((8191&(i=(i=i+Math.imul(f,ed)|0)+Math.imul(d,ef)|0))<<13)|0;l=((s=s+Math.imul(d,ed)|0)+(i>>>13)|0)+(eM>>>26)|0,eM&=0x3ffffff,n=Math.imul(L,q),i=(i=Math.imul(L,Q))+Math.imul(U,q)|0,s=Math.imul(U,Q),n=n+Math.imul(P,G)|0,i=(i=i+Math.imul(P,z)|0)+Math.imul(k,G)|0,s=s+Math.imul(k,z)|0,n=n+Math.imul(N,K)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(F,K)|0,s=s+Math.imul(F,V)|0,n=n+Math.imul(S,Z)|0,i=(i=i+Math.imul(S,Y)|0)+Math.imul(D,Z)|0,s=s+Math.imul(D,Y)|0,n=n+Math.imul(_,X)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(C,X)|0,s=s+Math.imul(C,ee)|0,n=n+Math.imul(x,er)|0,i=(i=i+Math.imul(x,en)|0)+Math.imul(M,er)|0,s=s+Math.imul(M,en)|0,n=n+Math.imul(v,es)|0,i=(i=i+Math.imul(v,ea)|0)+Math.imul(w,es)|0,s=s+Math.imul(w,ea)|0,n=n+Math.imul(b,eu)|0,i=(i=i+Math.imul(b,el)|0)+Math.imul(y,eu)|0,s=s+Math.imul(y,el)|0,n=n+Math.imul(p,ef)|0,i=(i=i+Math.imul(p,ed)|0)+Math.imul(m,ef)|0,s=s+Math.imul(m,ed)|0,n=n+Math.imul(f,ep)|0;var eB=(l+n|0)+((8191&(i=(i=i+Math.imul(f,em)|0)+Math.imul(d,ep)|0))<<13)|0;l=((s=s+Math.imul(d,em)|0)+(i>>>13)|0)+(eB>>>26)|0,eB&=0x3ffffff,n=Math.imul(L,G),i=(i=Math.imul(L,z))+Math.imul(U,G)|0,s=Math.imul(U,z),n=n+Math.imul(P,K)|0,i=(i=i+Math.imul(P,V)|0)+Math.imul(k,K)|0,s=s+Math.imul(k,V)|0,n=n+Math.imul(N,Z)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(F,Z)|0,s=s+Math.imul(F,Y)|0,n=n+Math.imul(S,X)|0,i=(i=i+Math.imul(S,ee)|0)+Math.imul(D,X)|0,s=s+Math.imul(D,ee)|0,n=n+Math.imul(_,er)|0,i=(i=i+Math.imul(_,en)|0)+Math.imul(C,er)|0,s=s+Math.imul(C,en)|0,n=n+Math.imul(x,es)|0,i=(i=i+Math.imul(x,ea)|0)+Math.imul(M,es)|0,s=s+Math.imul(M,ea)|0,n=n+Math.imul(v,eu)|0,i=(i=i+Math.imul(v,el)|0)+Math.imul(w,eu)|0,s=s+Math.imul(w,el)|0,n=n+Math.imul(b,ef)|0,i=(i=i+Math.imul(b,ed)|0)+Math.imul(y,ef)|0,s=s+Math.imul(y,ed)|0,n=n+Math.imul(p,ep)|0;var e_=(l+n|0)+((8191&(i=(i=i+Math.imul(p,em)|0)+Math.imul(m,ep)|0))<<13)|0;l=((s=s+Math.imul(m,em)|0)+(i>>>13)|0)+(e_>>>26)|0,e_&=0x3ffffff,n=Math.imul(L,K),i=(i=Math.imul(L,V))+Math.imul(U,K)|0,s=Math.imul(U,V),n=n+Math.imul(P,Z)|0,i=(i=i+Math.imul(P,Y)|0)+Math.imul(k,Z)|0,s=s+Math.imul(k,Y)|0,n=n+Math.imul(N,X)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(F,X)|0,s=s+Math.imul(F,ee)|0,n=n+Math.imul(S,er)|0,i=(i=i+Math.imul(S,en)|0)+Math.imul(D,er)|0,s=s+Math.imul(D,en)|0,n=n+Math.imul(_,es)|0,i=(i=i+Math.imul(_,ea)|0)+Math.imul(C,es)|0,s=s+Math.imul(C,ea)|0,n=n+Math.imul(x,eu)|0,i=(i=i+Math.imul(x,el)|0)+Math.imul(M,eu)|0,s=s+Math.imul(M,el)|0,n=n+Math.imul(v,ef)|0,i=(i=i+Math.imul(v,ed)|0)+Math.imul(w,ef)|0,s=s+Math.imul(w,ed)|0,n=n+Math.imul(b,ep)|0;var eC=(l+n|0)+((8191&(i=(i=i+Math.imul(b,em)|0)+Math.imul(y,ep)|0))<<13)|0;l=((s=s+Math.imul(y,em)|0)+(i>>>13)|0)+(eC>>>26)|0,eC&=0x3ffffff,n=Math.imul(L,Z),i=(i=Math.imul(L,Y))+Math.imul(U,Z)|0,s=Math.imul(U,Y),n=n+Math.imul(P,X)|0,i=(i=i+Math.imul(P,ee)|0)+Math.imul(k,X)|0,s=s+Math.imul(k,ee)|0,n=n+Math.imul(N,er)|0,i=(i=i+Math.imul(N,en)|0)+Math.imul(F,er)|0,s=s+Math.imul(F,en)|0,n=n+Math.imul(S,es)|0,i=(i=i+Math.imul(S,ea)|0)+Math.imul(D,es)|0,s=s+Math.imul(D,ea)|0,n=n+Math.imul(_,eu)|0,i=(i=i+Math.imul(_,el)|0)+Math.imul(C,eu)|0,s=s+Math.imul(C,el)|0,n=n+Math.imul(x,ef)|0,i=(i=i+Math.imul(x,ed)|0)+Math.imul(M,ef)|0,s=s+Math.imul(M,ed)|0,n=n+Math.imul(v,ep)|0;var eI=(l+n|0)+((8191&(i=(i=i+Math.imul(v,em)|0)+Math.imul(w,ep)|0))<<13)|0;l=((s=s+Math.imul(w,em)|0)+(i>>>13)|0)+(eI>>>26)|0,eI&=0x3ffffff,n=Math.imul(L,X),i=(i=Math.imul(L,ee))+Math.imul(U,X)|0,s=Math.imul(U,ee),n=n+Math.imul(P,er)|0,i=(i=i+Math.imul(P,en)|0)+Math.imul(k,er)|0,s=s+Math.imul(k,en)|0,n=n+Math.imul(N,es)|0,i=(i=i+Math.imul(N,ea)|0)+Math.imul(F,es)|0,s=s+Math.imul(F,ea)|0,n=n+Math.imul(S,eu)|0,i=(i=i+Math.imul(S,el)|0)+Math.imul(D,eu)|0,s=s+Math.imul(D,el)|0,n=n+Math.imul(_,ef)|0,i=(i=i+Math.imul(_,ed)|0)+Math.imul(C,ef)|0,s=s+Math.imul(C,ed)|0,n=n+Math.imul(x,ep)|0;var eS=(l+n|0)+((8191&(i=(i=i+Math.imul(x,em)|0)+Math.imul(M,ep)|0))<<13)|0;l=((s=s+Math.imul(M,em)|0)+(i>>>13)|0)+(eS>>>26)|0,eS&=0x3ffffff,n=Math.imul(L,er),i=(i=Math.imul(L,en))+Math.imul(U,er)|0,s=Math.imul(U,en),n=n+Math.imul(P,es)|0,i=(i=i+Math.imul(P,ea)|0)+Math.imul(k,es)|0,s=s+Math.imul(k,ea)|0,n=n+Math.imul(N,eu)|0,i=(i=i+Math.imul(N,el)|0)+Math.imul(F,eu)|0,s=s+Math.imul(F,el)|0,n=n+Math.imul(S,ef)|0,i=(i=i+Math.imul(S,ed)|0)+Math.imul(D,ef)|0,s=s+Math.imul(D,ed)|0,n=n+Math.imul(_,ep)|0;var eD=(l+n|0)+((8191&(i=(i=i+Math.imul(_,em)|0)+Math.imul(C,ep)|0))<<13)|0;l=((s=s+Math.imul(C,em)|0)+(i>>>13)|0)+(eD>>>26)|0,eD&=0x3ffffff,n=Math.imul(L,es),i=(i=Math.imul(L,ea))+Math.imul(U,es)|0,s=Math.imul(U,ea),n=n+Math.imul(P,eu)|0,i=(i=i+Math.imul(P,el)|0)+Math.imul(k,eu)|0,s=s+Math.imul(k,el)|0,n=n+Math.imul(N,ef)|0,i=(i=i+Math.imul(N,ed)|0)+Math.imul(F,ef)|0,s=s+Math.imul(F,ed)|0,n=n+Math.imul(S,ep)|0;var eO=(l+n|0)+((8191&(i=(i=i+Math.imul(S,em)|0)+Math.imul(D,ep)|0))<<13)|0;l=((s=s+Math.imul(D,em)|0)+(i>>>13)|0)+(eO>>>26)|0,eO&=0x3ffffff,n=Math.imul(L,eu),i=(i=Math.imul(L,el))+Math.imul(U,eu)|0,s=Math.imul(U,el),n=n+Math.imul(P,ef)|0,i=(i=i+Math.imul(P,ed)|0)+Math.imul(k,ef)|0,s=s+Math.imul(k,ed)|0,n=n+Math.imul(N,ep)|0;var eN=(l+n|0)+((8191&(i=(i=i+Math.imul(N,em)|0)+Math.imul(F,ep)|0))<<13)|0;l=((s=s+Math.imul(F,em)|0)+(i>>>13)|0)+(eN>>>26)|0,eN&=0x3ffffff,n=Math.imul(L,ef),i=(i=Math.imul(L,ed))+Math.imul(U,ef)|0,s=Math.imul(U,ed),n=n+Math.imul(P,ep)|0;var eF=(l+n|0)+((8191&(i=(i=i+Math.imul(P,em)|0)+Math.imul(k,ep)|0))<<13)|0;l=((s=s+Math.imul(k,em)|0)+(i>>>13)|0)+(eF>>>26)|0,eF&=0x3ffffff,n=Math.imul(L,ep);var eR=(l+n|0)+((8191&(i=(i=Math.imul(L,em))+Math.imul(U,ep)|0))<<13)|0;return l=((s=Math.imul(U,em))+(i>>>13)|0)+(eR>>>26)|0,eR&=0x3ffffff,u[0]=eg,u[1]=eb,u[2]=ey,u[3]=eA,u[4]=ev,u[5]=ew,u[6]=eE,u[7]=ex,u[8]=eM,u[9]=eB,u[10]=e_,u[11]=eC,u[12]=eI,u[13]=eS,u[14]=eD,u[15]=eO,u[16]=eN,u[17]=eF,u[18]=eR,0!==l&&(u[19]=l,r.length++),r};function b(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,i=0,s=0;s<r.length-1;s++){var a=i;i=0;for(var o=0x3ffffff&n,u=Math.min(s,t.length-1),l=Math.max(0,s-e.length+1);l<=u;l++){var c=s-l,f=(0|e.words[c])*(0|t.words[l]),d=0x3ffffff&f;a=a+(f/0x4000000|0)|0,o=0x3ffffff&(d=d+o|0),i+=(a=a+(d>>>26)|0)>>>26,a&=0x3ffffff}r.words[s]=o,n=a,a=i}return 0!==n?r.words[s]=n:r.length--,r._strip()}function y(e,t){this.x=e,this.y=t}Math.imul||(g=m),s.prototype.mulTo=function(e,t){var r,n=this.length+e.length;return 10===this.length&&10===e.length?r=g(this,e,t):n<63?r=m(this,e,t):r=b(this,e,t),r},y.prototype.makeRBT=function(e){for(var t=Array(e),r=s.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},y.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,i=0;i<t;i++)n|=(1&e)<<t-i-1,e>>=1;return n},y.prototype.permute=function(e,t,r,n,i,s){for(var a=0;a<s;a++)n[a]=t[e[a]],i[a]=r[e[a]]},y.prototype.transform=function(e,t,r,n,i,s){this.permute(s,e,t,r,n,i);for(var a=1;a<i;a<<=1)for(var o=a<<1,u=Math.cos(2*Math.PI/o),l=Math.sin(2*Math.PI/o),c=0;c<i;c+=o)for(var f=u,d=l,h=0;h<a;h++){var p=r[c+h],m=n[c+h],g=r[c+h+a],b=n[c+h+a],y=f*g-d*b;b=f*b+d*g,g=y,r[c+h]=p+g,n[c+h]=m+b,r[c+h+a]=p-g,n[c+h+a]=m-b,h!==o&&(y=u*f-l*d,d=u*d+l*f,f=y)}},y.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,i=0;for(r=r/2|0;r;r>>>=1)i++;return 1<<i+1+n},y.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var i=e[n];e[n]=e[r-n-1],e[r-n-1]=i,i=t[n],t[n]=-t[r-n-1],t[r-n-1]=-i}},y.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var i=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=0x3ffffff&i,r=i<0x4000000?0:i/0x4000000|0}return e},y.prototype.convert13b=function(e,t,r,i){for(var s=0,a=0;a<t;a++)s+=0|e[a],r[2*a]=8191&s,s>>>=13,r[2*a+1]=8191&s,s>>>=13;for(a=2*t;a<i;++a)r[a]=0;n(0===s),n((-8192&s)==0)},y.prototype.stub=function(e){for(var t=Array(e),r=0;r<e;r++)t[r]=0;return t},y.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(n),s=this.stub(n),a=Array(n),o=Array(n),u=Array(n),l=Array(n),c=Array(n),f=Array(n),d=r.words;d.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,s,o,u,n,i),this.transform(l,s,c,f,n,i);for(var h=0;h<n;h++){var p=o[h]*c[h]-u[h]*f[h];u[h]=o[h]*f[h]+u[h]*c[h],o[h]=p}return this.conjugate(o,u,n),this.transform(o,u,d,s,n,i),this.conjugate(d,s,n),this.normalize13b(d,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},s.prototype.mul=function(e){var t=new s(null);return t.words=Array(this.length+e.length),this.mulTo(e,t)},s.prototype.mulf=function(e){var t=new s(null);return t.words=Array(this.length+e.length),b(this,e,t)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<0x4000000);for(var r=0,i=0;i<this.length;i++){var s=(0|this.words[i])*e,a=(0x3ffffff&s)+(0x3ffffff&r);r>>=26,r+=(s/0x4000000|0)+(a>>>26),this.words[i]=0x3ffffff&a}return 0!==r&&(this.words[i]=r,this.length++),this.length=0===e?1:this.length,t?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var t=function(e){for(var t=Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,i=r%26;t[r]=e.words[n]>>>i&1}return t}(e);if(0===t.length)return new s(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var i=r.sqr();n<t.length;n++,i=i.sqr())0!==t[n]&&(r=r.mul(i));return r},s.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,i=(e-r)/26,s=0x3ffffff>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var o=this.words[t]&s,u=(0|this.words[t])-o<<r;this.words[t]=u|a,a=o>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},s.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,t,r){n("number"==typeof e&&e>=0);var i=t?(t-t%26)/26:0,s=e%26,a=Math.min((e-s)/26,this.length),o=0x3ffffff^0x3ffffff>>>s<<s;if(i-=a,i=Math.max(0,i),r){for(var u=0;u<a;u++)r.words[u]=this.words[u];r.length=a}if(0===a);else if(this.length>a)for(this.length-=a,u=0;u<this.length;u++)this.words[u]=this.words[u+a];else this.words[0]=0,this.length=1;var l=0;for(u=this.length-1;u>=0&&(0!==l||u>=i);u--){var c=0|this.words[u];this.words[u]=l<<26-s|c>>>s,l=c&o}return r&&0!==l&&(r.words[r.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return!(this.length<=r)&&!!(this.words[r]&1<<t)},s.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;return(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)?this:(0!==t&&r++,this.length=Math.min(r,this.length),0!==t&&(this.words[this.length-1]&=0x3ffffff^0x3ffffff>>>t<<t),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return(n("number"==typeof e),n(e<0x4000000),e<0)?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=0x4000000;t++)this.words[t]-=0x4000000,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},s.prototype.isubn=function(e){if(n("number"==typeof e),n(e<0x4000000),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=0x4000000,this.words[t+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,t,r){var i,s,a=e.length+r;this._expand(a);var o=0;for(i=0;i<e.length;i++){s=(0|this.words[i+r])+o;var u=(0|e.words[i])*t;s-=0x3ffffff&u,o=(s>>26)-(u/0x4000000|0),this.words[i+r]=0x3ffffff&s}for(;i<this.length-r;i++)o=(s=(0|this.words[i+r])+o)>>26,this.words[i+r]=0x3ffffff&s;if(0===o)return this._strip();for(n(-1===o),o=0,i=0;i<this.length;i++)o=(s=-(0|this.words[i])+o)>>26,this.words[i]=0x3ffffff&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,t){var r,n=this.length-e.length,i=this.clone(),a=e,o=0|a.words[a.length-1];0!=(n=26-this._countBits(o))&&(a=a.ushln(n),i.iushln(n),o=0|a.words[a.length-1]);var u=i.length-a.length;if("mod"!==t){(r=new s(null)).length=u+1,r.words=Array(r.length);for(var l=0;l<r.length;l++)r.words[l]=0}var c=i.clone()._ishlnsubmul(a,1,u);0===c.negative&&(i=c,r&&(r.words[u]=1));for(var f=u-1;f>=0;f--){var d=(0|i.words[a.length+f])*0x4000000+(0|i.words[a.length+f-1]);for(d=Math.min(d/o|0,0x3ffffff),i._ishlnsubmul(a,d,f);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(a,1,f),i.isZero()||(i.negative^=1);r&&(r.words[f]=d)}return r&&r._strip(),i._strip(),"div"!==t&&0!==n&&i.iushrn(n),{div:r||null,mod:i}},s.prototype.divmod=function(e,t,r){var i,a,o;return(n(!e.isZero()),this.isZero())?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(o=this.neg().divmod(e,t),"mod"!==t&&(i=o.div.neg()),"div"!==t&&(a=o.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(o=this.divmod(e.neg(),t),"mod"!==t&&(i=o.div.neg()),{div:i,mod:o.mod}):(this.negative&e.negative)!=0?(o=this.neg().divmod(e.neg(),t),"div"!==t&&(a=o.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:o.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,t)},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),i=e.andln(1),s=r.cmp(n);return s<0||1===i&&0===s?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},s.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0x4000000%e,i=0,s=this.length-1;s>=0;s--)i=(r*i+(0|this.words[s]))%e;return t?-i:i},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=0x3ffffff);for(var r=0,i=this.length-1;i>=0;i--){var s=(0|this.words[i])+0x4000000*r;this.words[i]=s/e|0,r=s%e}return this._strip(),t?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new s(1),a=new s(0),o=new s(0),u=new s(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var d=0,h=1;(t.words[0]&h)==0&&d<26;++d,h<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(c),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var p=0,m=1;(r.words[0]&m)==0&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(o.isOdd()||u.isOdd())&&(o.iadd(c),u.isub(f)),o.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),i.isub(o),a.isub(u)):(r.isub(t),o.isub(i),u.isub(a))}return{a:o,b:u,gcd:r.iushln(l)}},s.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t,r=this,i=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var a=new s(1),o=new s(0),u=i.clone();r.cmpn(1)>0&&i.cmpn(1)>0;){for(var l=0,c=1;(r.words[0]&c)==0&&l<26;++l,c<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;(i.words[0]&d)==0&&f<26;++f,d<<=1);if(f>0)for(i.iushrn(f);f-- >0;)o.isOdd()&&o.iadd(u),o.iushrn(1);r.cmp(i)>=0?(r.isub(i),a.isub(o)):(i.isub(r),o.isub(a))}return 0>(t=0===r.cmpn(1)?a:o).cmpn(0)&&t.iadd(e),t},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var i=t.cmp(r);if(i<0){var s=t;t=r,r=s}else if(0===i||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return(1&this.words[0])==0},s.prototype.isOdd=function(){return(1&this.words[0])==1},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,i=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=i,this;for(var s=i,a=r;0!==s&&a<this.length;a++){var o=0|this.words[a];o+=s,s=o>>>26,o&=0x3ffffff,this.words[a]=o}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return -1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=0x3ffffff,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],i=0|e.words[r];if(n!==i){n<i?t=-1:n>i&&(t=1);break}}return t},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new B(e)},s.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var A={k256:null,p224:null,p192:null,p25519:null};function v(e,t){this.name=e,this.p=new s(t,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function w(){v.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){v.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function x(){v.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function M(){v.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function B(e){if("string"==typeof e){var t=s._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function _(e){B.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}v.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},v.prototype.ireduce=function(e){var t,r=e;do this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength();while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},v.prototype.split=function(e,t){e.iushrn(this.n,0,t)},v.prototype.imulK=function(e){return e.imul(this.k)},i(w,v),w.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9){e.words[0]=0,e.length=1;return}var i=e.words[9];for(n=10,t.words[t.length++]=4194303&i;n<e.length;n++){var s=0|e.words[n];e.words[n-10]=(4194303&s)<<4|i>>>22,i=s}i>>>=22,e.words[n-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},w.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=0x3ffffff&t,t=64*n+(t/0x4000000|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(E,v),i(x,v),i(M,v),M.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;
4r++){var n=(0|e.words[r])*19+t,i=0x3ffffff&n;n>>>=26,e.words[r]=i,t=n}return 0!==t&&(e.words[e.length++]=t),e},s._prime=function(e){var t;if(A[e])return A[e];if("k256"===e)t=new w;else if("p224"===e)t=new E;else if("p192"===e)t=new x;else if("p25519"===e)t=new M;else throw Error("Unknown prime "+e);return A[e]=t,t},B.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},B.prototype._verify2=function(e,t){n((e.negative|t.negative)==0,"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},B.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},B.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},B.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},B.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},B.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r._forceRed(this)},B.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return 0>r.cmpn(0)&&r.iadd(this.m),r},B.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},B.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},B.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},B.prototype.isqr=function(e){return this.imul(e,e.clone())},B.prototype.sqr=function(e){return this.mul(e,e)},B.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new s(1)).iushrn(2);return this.pow(e,r)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);n(!i.isZero());var o=new s(1).toRed(this),u=o.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new s(2*c*c).toRed(this);0!==this.pow(c,l).cmp(u);)c.redIAdd(u);for(var f=this.pow(c,i),d=this.pow(e,i.addn(1).iushrn(1)),h=this.pow(e,i),p=a;0!==h.cmp(o);){for(var m=h,g=0;0!==m.cmp(o);g++)m=m.redSqr();n(g<p);var b=this.pow(f,new s(1).iushln(p-g-1));d=d.redMul(b),f=b.redSqr(),h=h.redMul(f),p=g}return d},B.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},B.prototype.pow=function(e,t){if(t.isZero())return new s(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=Array(16);r[0]=new s(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var i=r[0],a=0,o=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=u-1;c>=0;c--){var f=l>>c&1;if(i!==r[0]&&(i=this.sqr(i)),0===f&&0===a){o=0;continue}a<<=1,a|=f,(4==++o||0===n&&0===c)&&(i=this.mul(i,r[a]),o=0,a=0)}u=26}return i},B.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},B.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},s.mont=function(e){return new _(e)},i(_,B),_.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},_.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},_.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),s=i;return i.cmp(this.m)>=0?s=i.isub(this.m):0>i.cmpn(0)&&(s=i.iadd(this.m)),s._forceRed(this)},_.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new s(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=r.isub(n).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):0>i.cmpn(0)&&(a=i.iadd(this.m)),a._forceRed(this)},_.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=r.nmd(e),this)},92966:(e,t,r)=>{"use strict";r.d(t,{$:()=>l});var n=r(75794),i=r(70030),s=r(62108),a=r(43484),o=r(18224),u=r(53031);function l(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:l,query:c={}}=r,f=(0,u.U)(r),d=(0,o.i)({config:f}),h=function(e,t={}){return{async queryFn({queryKey:t}){let{name:r,scopeKey:s,...a}=t[1];if(!r)throw Error("name is required");let{chainId:o,...u}={...a,name:r},l=e.getClient({chainId:o});return(0,i.T)(l,n.i,"getEnsAvatar")(u)},queryKey:function(e={}){return["ensAvatar",(0,s.xO)(e)]}(t)}}(f,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:d}),p=!!(l&&(null===(t=c.enabled)||void 0===t||t));return(0,a.IT)({...c,...h,enabled:p})}},94181:(e,t,r)=>{"use strict";r.d(t,{G:()=>o});let n=new Map,i=new Map;async function s(e,{cacheKey:t,cacheTime:r=Number.POSITIVE_INFINITY}){let s=function(e){let t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:r=>t.set(e,r)}),r=t(e,n),s=t(e,i);return{clear:()=>{r.clear(),s.clear()},promise:r,response:s}}(t),a=s.response.get();if(a&&r>0&&new Date().getTime()-a.created.getTime()<r)return a.data;let o=s.promise.get();o||(o=e(),s.promise.set(o));try{let e=await o;return s.response.set({created:new Date,data:e}),e}finally{s.promise.clear()}}let a=e=>`blockNumber.${e}`;async function o(e,{cacheTime:t=e.cacheTime}={}){return BigInt(await s(()=>e.request({method:"eth_blockNumber"}),{cacheKey:a(e.uid),cacheTime:t}))}},98761:(e,t,r)=>{"use strict";r.d(t,{ZA:()=>tK,UD:()=>x,gB:()=>F,Av:()=>tJ,Ou:()=>tV,B:()=>tT,jz:()=>tz});var n,i,s,a,o,u,l,c,f,d,h,p,m,g=r(35883),b=r(81757),y=r(88610),A=r(15071),v=r(92966),w=r(91986),E=r(37200);let x=e=>{let t=e?.address?(0,g.b)(e.address):void 0,{data:r,isLoading:n}=(0,A.v)({address:t,chainId:1,query:{enabled:(0,b.P)(t??"")}}),{data:i}=(0,v.$)({name:r?(0,y.S)(r):void 0,chainId:1,query:{enabled:!!r,gcTime:3e4}}),s=t?`${t.slice(0,6)}...${t.slice(-4)}`:void 0,a=!!t&&(0,b.P)(t),o=function(e,t){let r=e.blockExplorers?.default?.url;return r?`${r}/address/${t}`:`https://etherscan.io/address/${t}`}(e?.chain??E.r,t??"");return{checkSumAddress:t,ens:r,ensAvatar:i,isEnsNameLoading:n,blockExplorerAddressLink:o,isValidAddress:a,shortAddress:s,blockieUrl:e.address?(0,w.SS)(e.address):void 0}};var M=r(74692),B=r(9775),_=r(70030),C=r(62108),I=r(43484),S=r(18224),D=r(53031);let O=/.+\..+/,N=(e="")=>O.test(e);function F({value:e,debounceDelay:t=500}){let[r]=(0,M.Q3)(e,t),n=(0,b.P)(e)?e:r,i=n===e,s=i?n:void 0,{data:a,isLoading:o,isError:u,isSuccess:l}=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{name:n,query:i={}}=r,s=(0,D.U)(r),a=(0,S.i)({config:s}),o=function(e,t={}){return{async queryFn({queryKey:t}){let{name:r,scopeKey:n,...i}=t[1];if(!r)throw Error("name is required");let{chainId:s,...a}={...i,name:r},o=e.getClient({chainId:s});return(0,_.T)(o,B.B,"getEnsAddress")(a)},queryKey:function(e={}){return["ensAddress",(0,C.xO)(e)]}(t)}}(s,{...r,chainId:null!==(e=r.chainId)&&void 0!==e?e:a}),u=!!(n&&(null===(t=i.enabled)||void 0===t||t));return(0,I.IT)({...i,...o,enabled:u})}({name:s,chainId:1,query:{gcTime:3e4,enabled:i&&N(n)}}),{data:c,isLoading:f,isError:d,isSuccess:h}=(0,A.v)({address:s,chainId:1,query:{enabled:(0,b.P)(n),gcTime:3e4}}),{data:p,isLoading:m,isError:g,isSuccess:w}=(0,v.$)({name:c?(0,y.S)(c):void 0,chainId:1,query:{enabled:!!c,gcTime:3e4}});return{ensAddress:a,isEnsAddressLoading:o,isEnsAddressError:u,isEnsAddressSuccess:l,ensAvatar:p,isEnsAvatarLoading:m,isEnsAvatarError:g,isEnsAvatarSuccess:w,ensName:c,isEnsNameLoading:f,isEnsNameError:d,isEnsNameSuccess:h,settledValue:s,debouncedValue:n}}var R=r(44494),P=r(52438),k=r.n(P);function T(e,t){if(!e)throw Error("Invariant failed")}var L=r(8870),U=r.n(L),j=r(73097),q=r.n(j),Q=r(54184),H=r.n(Q),G=r(92437),z=r.n(G);let J=!1,K=!1,V={debug:1,default:2,info:2,warning:3,error:4,off:5},W=V.default,Z=null,Y=function(){try{let e=[];
4if(["NFD","NFC","NFKD","NFKC"].forEach(t=>{try{if("test"!=="test".normalize(t))throw Error("bad normalize")}catch(r){e.push(t)}}),e.length)throw Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(n||(n={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(i||(i={}));let $="0123456789abcdef";class X{constructor(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}_log(e,t){let r=e.toLowerCase();null==V[r]&&this.throwArgumentError("invalid log level name","logLevel",e),W>V[r]||console.log.apply(console,t)}debug(...e){this._log(X.levels.DEBUG,e)}info(...e){this._log(X.levels.INFO,e)}warn(...e){this._log(X.levels.WARNING,e)}makeError(e,t,r){if(K)return this.makeError("censored error",t,{});t||(t=X.errors.UNKNOWN_ERROR),r||(r={});let n=[];Object.keys(r).forEach(e=>{let t=r[e];try{if(t instanceof Uint8Array){let r="";for(let e=0;e<t.length;e++)r+=$[t[e]>>4],r+=$[15&t[e]];n.push(e+"=Uint8Array(0x"+r+")")}else n.push(e+"="+JSON.stringify(t))}catch(t){n.push(e+"="+JSON.stringify(r[e].toString()))}}),n.push(`code=${t}`),n.push(`version=${this.version}`);let s=e,a="";switch(t){case i.NUMERIC_FAULT:{a="NUMERIC_FAULT";let t=e;switch(t){case"overflow":case"underflow":case"division-by-zero":a+="-"+t;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break}case i.CALL_EXCEPTION:case i.INSUFFICIENT_FUNDS:case i.MISSING_NEW:case i.NONCE_EXPIRED:case i.REPLACEMENT_UNDERPRICED:case i.TRANSACTION_REPLACED:case i.UNPREDICTABLE_GAS_LIMIT:a=t}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),n.length&&(e+=" ("+n.join(", ")+")");let o=Error(e);return o.reason=s,o.code=t,Object.keys(r).forEach(function(e){o[e]=r[e]}),o}throwError(e,t,r){throw this.makeError(e,t,r)}throwArgumentError(e,t,r){return this.throwError(e,X.errors.INVALID_ARGUMENT,{argument:t,value:r})}assert(e,t,r,n){e||this.throwError(t,r,n)}assertArgument(e,t,r,n){e||this.throwArgumentError(t,r,n)}checkNormalize(e){null==e&&(e="platform missing String.prototype.normalize"),Y&&this.throwError("platform missing String.prototype.normalize",X.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Y})}checkSafeUint53(e,t){"number"==typeof e&&(null==t&&(t="value not safe"),(e<0||e>=0x1fffffffffffff)&&this.throwError(t,X.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(t,X.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}checkArgumentCount(e,t,r){r=r?": "+r:"",e<t&&this.throwError("missing argument"+r,X.errors.MISSING_ARGUMENT,{count:e,expectedCount:t}),e>t&&this.throwError("too many arguments"+r,X.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:t})}checkNew(e,t){(e===Object||null==e)&&this.throwError("missing new",X.errors.MISSING_NEW,{name:t.name})}checkAbstract(e,t){e===t?this.throwError("cannot instantiate abstract class "+JSON.stringify(t.name)+" directly; use a sub-class",X.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",X.errors.MISSING_NEW,{name:t.name})}static globalLogger(){return Z||(Z=new X("logger/5.8.0")),Z}static setCensorship(e,t){if(!e&&t&&this.globalLogger().throwError("cannot permanently disable censorship",X.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),J){if(!e)return;this.globalLogger().throwError("error censorship permanent",X.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}K=!!e,J=!!t}static setLogLevel(e){let t=V[e.toLowerCase()];if(null==t){X.globalLogger().warn("invalid log level - "+e);return}W=t}static from(e){return new X(e)}}X.errors=i,X.levels=n;let ee=new X("bytes/5.8.0");function et(e){return!!e.toHexString}function er(e){return e.slice||(e.slice=function(){let t=Array.prototype.slice.call(arguments);return er(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function en(e){return"number"==typeof e&&e==e&&e%1==0}function ei(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;
4if("string"==typeof e||!en(e.length)||e.length<0)return!1;for(let t=0;t<e.length;t++){let r=e[t];if(!en(r)||r<0||r>=256)return!1}return!0}function es(e,t){if(t||(t={}),"number"==typeof e){ee.checkSafeUint53(e,"invalid arrayify value");let t=[];for(;e;)t.unshift(255&e),e=parseInt(String(e/256));return 0===t.length&&t.push(0),er(new Uint8Array(t))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),et(e)&&(e=e.toHexString()),eu(e)){let r=e.substring(2);r.length%2&&("left"===t.hexPad?r="0"+r:"right"===t.hexPad?r+="0":ee.throwArgumentError("hex data is odd-length","value",e));let n=[];for(let e=0;e<r.length;e+=2)n.push(parseInt(r.substring(e,e+2),16));return er(new Uint8Array(n))}return ei(e)?er(new Uint8Array(e)):ee.throwArgumentError("invalid arrayify value","value",e)}function ea(e){let t=e.map(e=>es(e)),r=new Uint8Array(t.reduce((e,t)=>e+t.length,0));return t.reduce((e,t)=>(r.set(t,e),e+t.length),0),er(r)}function eo(e,t){(e=es(e)).length>t&&ee.throwArgumentError("value out of range","value",arguments[0]);let r=new Uint8Array(t);return r.set(e,t-e.length),er(r)}function eu(e,t){return"string"==typeof e&&!!e.match(/^0x[0-9A-Fa-f]*$/)&&(!t||e.length===2+2*t)}let el="0123456789abcdef";function ec(e,t){if(t||(t={}),"number"==typeof e){ee.checkSafeUint53(e,"invalid hexlify value");let t="";for(;e;)t=el[15&e]+t,e=Math.floor(e/16);return t.length?(t.length%2&&(t="0"+t),"0x"+t):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),et(e))return e.toHexString();if(eu(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":ee.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(ei(e)){let t="0x";for(let r=0;r<e.length;r++){let n=e[r];t+=el[(240&n)>>4]+el[15&n]}return t}return ee.throwArgumentError("invalid hexlify value","value",e)}function ef(e){if("string"!=typeof e)e=ec(e);else if(!eu(e)||e.length%2)return null;return(e.length-2)/2}var ed=z().BN;let eh=new X("bignumber/5.8.0"),ep={},em=!1;class eg{constructor(e,t){e!==ep&&eh.throwError("cannot call constructor directly; use BigNumber.from",X.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}fromTwos(e){return ey(eA(this).fromTwos(e))}toTwos(e){return ey(eA(this).toTwos(e))}abs(){return"-"===this._hex[0]?eg.from(this._hex.substring(1)):this}add(e){return ey(eA(this).add(eA(e)))}sub(e){return ey(eA(this).sub(eA(e)))}div(e){return eg.from(e).isZero()&&ev("division-by-zero","div"),ey(eA(this).div(eA(e)))}mul(e){return ey(eA(this).mul(eA(e)))}mod(e){let t=eA(e);return t.isNeg()&&ev("division-by-zero","mod"),ey(eA(this).umod(t))}pow(e){let t=eA(e);return t.isNeg()&&ev("negative-power","pow"),ey(eA(this).pow(t))}and(e){let t=eA(e);return(this.isNegative()||t.isNeg())&&ev("unbound-bitwise-result","and"),ey(eA(this).and(t))}or(e){let t=eA(e);return(this.isNegative()||t.isNeg())&&ev("unbound-bitwise-result","or"),ey(eA(this).or(t))}xor(e){let t=eA(e);return(this.isNegative()||t.isNeg())&&ev("unbound-bitwise-result","xor"),ey(eA(this).xor(t))}mask(e){return(this.isNegative()||e<0)&&ev("negative-width","mask"),ey(eA(this).maskn(e))}shl(e){return(this.isNegative()||e<0)&&ev("negative-width","shl"),ey(eA(this).shln(e))}shr(e){return(this.isNegative()||e<0)&&ev("negative-width","shr"),ey(eA(this).shrn(e))}eq(e){return eA(this).eq(eA(e))}lt(e){return eA(this).lt(eA(e))}lte(e){return eA(this).lte(eA(e))}gt(e){return eA(this).gt(eA(e))}gte(e){return eA(this).gte(eA(e))}isNegative(){return"-"===this._hex[0]}isZero(){return eA(this).isZero()}toNumber(){try{return eA(this).toNumber()}catch(e){ev("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(e){}return eh.throwError("this platform does not support BigInt",X.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?em||(em=!0,eh.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?eh.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",X.errors.UNEXPECTED_ARGUMENT,{}):eh.throwError("BigNumber.toString does not accept parameters",X.errors.UNEXPECTED_ARGUMENT,{})),eA(this).toString(10)}toHexString(){return this._hex}toJSON(e){return{type:"BigNumber",hex:this.toHexString()}}static from(e){if(e instanceof eg)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new eg(ep,eb(e)):e.match(/^-?[0-9]+$/)?new eg(ep,eb(new ed(e))):eh.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&ev("underflow","BigNumber.from",e),(e>=0x1fffffffffffff||e<=-0x1fffffffffffff)&&ev("overflow","BigNumber.from",e),eg.from(String(e));if("bigint"==typeof e)return eg.from(e.toString());if(ei(e))return eg.from(ec(e));if(e)if(e.toHexString){let t=e.toHexString();if("string"==typeof t)return eg.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(eu(t)||"-"===t[0]&&eu(t.substring(1))))return eg.from(t)}return eh.throwArgumentError("invalid BigNumber value","value",e)}static isBigNumber(e){return!!(e&&e._isBigNumber)}}function eb(e){if("string"!=typeof e)return eb(e.toString(16));if("-"===e[0])return("-"===(e=e.substring(1))[0]&&eh.throwArgumentError("invalid hex","value",e),"0x00"===(e=eb(e)))?e:"-"+e;
4if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function ey(e){return eg.from(eb(e))}function eA(e){let t=eg.from(e).toHexString();return"-"===t[0]?new ed("-"+t.substring(3),16):new ed(t.substring(2),16)}function ev(e,t,r){let n={fault:e,operation:t};return null!=r&&(n.value=r),eh.throwError(e,X.errors.NUMERIC_FAULT,n)}var ew=r(56937),eE=r.n(ew);function ex(e){return"0x"+eE().keccak_256(es(e))}let eM=new X("address/5.8.0");function eB(e){eu(e,20)||eM.throwArgumentError("invalid address","address",e);let t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=es(ex(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let e_={};for(let e=0;e<10;e++)e_[String(e)]=String(e);for(let e=0;e<26;e++)e_[String.fromCharCode(65+e)]=String(10+e);let eC=Math.floor(Math.log10?Math.log10(0x1fffffffffffff):Math.log(0x1fffffffffffff)/Math.LN10);function eI(e){let t=null;if("string"!=typeof e&&eM.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=eB(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&eM.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>e_[e]).join("");for(;t.length>=eC;){let e=t.substring(0,eC);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e)&&eM.throwArgumentError("bad icap checksum","address",e),t=new ed(e.substring(4),36).toString(16);t.length<40;)t="0"+t;t=eB("0x"+t)}else eM.throwArgumentError("invalid address","address",e);return t}function eS(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n.key),n)}}function eD(e,t,r){return t&&eS(e.prototype,t),r&&eS(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function eO(){return(eO=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(null,arguments)}function eN(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,eF(e,t)}function eF(e,t){return(eF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.SEPOLIA=0xaa36a7]="SEPOLIA",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",e[e.OPTIMISM_SEPOLIA=0xaa37dc]="OPTIMISM_SEPOLIA",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.ARBITRUM_SEPOLIA=421614]="ARBITRUM_SEPOLIA",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.CELO=42220]="CELO",e[e.CELO_ALFAJORES=44787]="CELO_ALFAJORES",e[e.GNOSIS=100]="GNOSIS",e[e.MOONBEAM=1284]="MOONBEAM",e[e.BNB=56]="BNB",e[e.AVALANCHE=43114]="AVALANCHE",e[e.BASE_GOERLI=84531]="BASE_GOERLI",e[e.BASE_SEPOLIA=84532]="BASE_SEPOLIA",e[e.BASE=8453]="BASE",e[e.ZORA=7777777]="ZORA",e[e.ZORA_SEPOLIA=0x3b9ac9ff]="ZORA_SEPOLIA",e[e.ROOTSTOCK=30]="ROOTSTOCK",e[e.BLAST=81457]="BLAST",e[e.ZKSYNC=324]="ZKSYNC",e[e.WORLDCHAIN=480]="WORLDCHAIN",e[e.UNICHAIN_SEPOLIA=1301]="UNICHAIN_SEPOLIA",e[e.UNICHAIN=130]="UNICHAIN",e[e.MONAD_TESTNET=10143]="MONAD_TESTNET",e[e.SONEIUM=1868]="SONEIUM",e[e.MONAD=143]="MONAD"}(s||(s={})),s.MAINNET,s.OPTIMISM,s.OPTIMISM_GOERLI,s.OPTIMISM_SEPOLIA,s.ARBITRUM_ONE,s.ARBITRUM_GOERLI,s.ARBITRUM_SEPOLIA,s.POLYGON,s.POLYGON_MUMBAI,s.GOERLI,s.SEPOLIA,s.CELO_ALFAJORES,s.CELO,s.BNB,s.AVALANCHE,s.BASE,s.BASE_GOERLI,s.BASE_SEPO
4LIA,s.ZORA,s.ZORA_SEPOLIA,s.ROOTSTOCK,s.BLAST,s.ZKSYNC,s.WORLDCHAIN,s.UNICHAIN_SEPOLIA,s.UNICHAIN,s.MONAD_TESTNET,s.SONEIUM,s.MONAD,!function(e){e.ETHER="ETH",e.MATIC="MATIC",e.CELO="CELO",e.GNOSIS="XDAI",e.MOONBEAM="GLMR",e.BNB="BNB",e.AVAX="AVAX",e.ROOTSTOCK="RBTC"}(a||(a={}));var eR=[s.MAINNET,s.GOERLI,s.SEPOLIA];s.OPTIMISM,s.ARBITRUM_ONE,s.POLYGON,s.POLYGON_MUMBAI,s.SEPOLIA;var eP=((o={})[s.MAINNET]="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",o[s.GOERLI]="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",o[s.SEPOLIA]="0xF62c03E08ada871A0bEb309762E260a7a6a880E6",o[s.OPTIMISM]="0x0c3c1c532F1e39EdF36BE9Fe0bE1410313E074Bf",o[s.ARBITRUM_ONE]="0xf1D7CC64Fb4452F05c498126312eBE29f30Fbcf9",o[s.AVALANCHE]="0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",o[s.BASE_SEPOLIA]="0x7Ae58f10f7849cA6F5fB71b7f45CB416c9204b1e",o[s.BASE]="0x8909dc15e40173ff4699343b6eb8132c65e18ec6",o[s.BNB]="0x8909Dc15e40173Ff4699343b6eB8132c65e18eC6",o[s.POLYGON]="0x9e5A52f57b3038F1B8EeE45F28b3C1967e22799C",o[s.CELO]="0x79a530c8e2fA8748B7B40dd3629C0520c2cCf03f",o[s.BLAST]="0x5C346464d33F90bABaf70dB6388507CC889C1070",o[s.WORLDCHAIN]="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",o[s.UNICHAIN_SEPOLIA]="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",o[s.UNICHAIN]="0x1f98400000000000000000000000000000000002",o[s.MONAD_TESTNET]="0x733e88f248b742db6c14c0b1713af5ad7fdd59d0",o[s.SONEIUM]="0x97febbc2adbd5644ba22736e962564b23f5828ce",o[s.MONAD]="0x182a927119d56008d921126764bf884221b10f59",o);(u={})[s.MAINNET]="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",u[s.GOERLI]="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",u[s.SEPOLIA]="0xeE567Fe1712Faf6149d80dA1E6934E354124CfE3",u[s.ARBITRUM_ONE]="0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",u[s.OPTIMISM]="0x4a7b5da61326a6379179b40d00f57e5bbdc962c2",u[s.BASE_SEPOLIA]="0x1689E7B1F10000AE47eBfE339a4f69dECd19F602",u[s.BASE]="0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",u[s.AVALANCHE]="0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",u[s.BNB]="0x4752ba5dbc23f44d87826276bf6fd6b1c372ad24",u[s.POLYGON]="0xedf6066a2b290c185783862c7f4776a2c8077ad1",u[s.BLAST]="0xBB66Eb1c5e875933D44DAe661dbD80e5D9B03035",u[s.WORLDCHAIN]="0x541aB7c31A119441eF3575F6973277DE0eF460bd",u[s.UNICHAIN_SEPOLIA]="0x920b806E40A00E02E7D2b94fFc89860fDaEd3640",u[s.UNICHAIN]="0x284f11109359a7e1306c3e447ef14d38400063ff",u[s.MONAD_TESTNET]="0xfb8e1c3b833f9e67a71c859a132cf783b645e436",u[s.SONEIUM]="0x273f68c234fa55b550b40e563c4a488e0d334320",u[s.MONAD]="0x4b2ab38dbf28d31d467aa8993f6c2585981d6804";var ek={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x1F98415757620B543A52E61c46B32eB19261F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",v3MigratorAddress:"0xA5644E29708357803b5A882D272c41cC0dF92B34",nonfungiblePositionManagerAddress:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88"},eT=eO({},ek,{mixedRouteQuoterV1Address:"0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E",v4PoolManagerAddress:"0x000000000004444c5dc75cB358380D2e3dE08A90",v4PositionManagerAddress:"0xbd216513d74c8cf14cf4747e6aaa6420ff64ee9e",v4StateView:"0x7ffe42c4a5deea5b0fec41c94c136cf115597227",v4QuoterAddress:"0x52f0e24d1c21c8a0cb1e5a5dd6198556bd9e1203"}),eL=eO({},ek,{mixedRouteQuoterV1Address:"0xBa60b6e6fF25488308789E6e0A65D838be34194e"}),eU=eO({},ek,{v4PoolManagerAddress:"0x9a13f98cb987694c9f086b1f5eb990eea8264ec3",v4PositionManagerAddress:"0x3c3ea4b57a46241e54610e5f022e5c45859a1017",v4StateView:"0xc18a3169788f4f75a170290584eca6395c75ecdb",v4QuoterAddress:"0x1f3131a13296fb91c90870043742c3cdbff1a8d7"}),ej=eO({},ek,{multicallAddress:"0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB",tickLensAddress:"0xbfd8137f7d1516D3ea5cA83523914859ec47F573",v4PoolManagerAddress:"0x360e68faccca8ca495c1b759fd9eee466db9fb32",v4PositionManagerAddress:"0xd88f38f930b7952f2db2432cb002e7abbf3dd869",v4StateView:"0x76fd297e2d437cd7f76d50f01afe6160f86e9990",v4QuoterAddress:"0x3972c00f7ed4885e145823eb7c655375d275a1c5"}),eq=eO({},ek,{v4PoolManagerAddress:"0x67366782805870060151383f4bbff9dab53e5cd6",v4PositionManagerAddress:"0x1ec2ebf4f37e7363fdfe3551602425af0b3ceef9",v4StateView:"0x5ea1bd7974c8a611cbab0bdcafcb1d9cc9b3ba5a",v4QuoterAddress:"0xb3d5c3dfc3a7aebff71895a7191796bffc2c81b9"}),eQ={v3CoreFactoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",multicallAddress:"0x633987602DE5C4F337e3DbF265303A1080324204",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",v3MigratorAddress:"0x3cFd4d48EDfDCC53D3f173F596f621064614C582",nonfungiblePositionManagerAddress:"0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A",tickLensAddress:"0x5f115D9113F88e0a0Db1b5033D90D4a9690AcD3D",v4PoolManagerAddress:"0x288dc841A52FCA2707c6947B3A777c5E56cd87BC",v4PositionManagerAddress:"0xf7965f3981e4d5bc383bfbcb61501763e9068ca9",v4StateView:"0xbc21f8720babf4b20d195ee5c6e99c52b76f2bfb",v4QuoterAddress:"0x28566da1093609182dff2cb2a91cfd72e61d66cd"};(l={})[s.MAINNET]=eT,l[s.OPTIMISM]=eU,l[s.ARBITRUM_ONE]=ej,l[s.POLYGON]=eq,l[s.POLYGON_MUMBAI]=eq,l[s.GOERLI]=eL,l[s.CELO]=eQ,l[s.CELO_ALFAJORES]=eQ,l[s.BNB]={v3CoreFactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",multicallAddress:"0x963Df249eD09c358A4819E39d9Cd5736c3087184",quoterAddress:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",v3MigratorAddress:"0x32681814957e0C13117
4ddc0c2aba232b5c9e760f",nonfungiblePositionManagerAddress:"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",tickLensAddress:"0xD9270014D396281579760619CCf4c3af0501A47C",swapRouter02Address:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2",v4PoolManagerAddress:"0x28e2ea090877bf75740558f6bfb36a5ffee9e9df",v4PositionManagerAddress:"0x7a4a5c919ae2541aed11041a1aeee68f1287f95b",v4StateView:"0xd13dd3d6e93f276fafc9db9e6bb47c1180aee0c4",v4QuoterAddress:"0x9f75dd27d6664c475b90e105573e550ff69437b0"},l[s.OPTIMISM_GOERLI]={v3CoreFactoryAddress:"0xB656dA17129e7EB733A557f4EBc57B76CFbB5d10",multicallAddress:"0x07F2D8a2a02251B62af965f22fC4744A5f96BCCd",quoterAddress:"0x9569CbA925c8ca2248772A9A4976A516743A246F",v3MigratorAddress:"0xf6c55fBe84B1C8c3283533c53F51bC32F5C7Aba8",nonfungiblePositionManagerAddress:"0x39Ca85Af2F383190cBf7d7c41ED9202D27426EF6",tickLensAddress:"0xe6140Bd164b63E8BfCfc40D5dF952f83e171758e"},l[s.OPTIMISM_SEPOLIA]={v3CoreFactoryAddress:"0x8CE191193D15ea94e11d327b4c7ad8bbE520f6aF",multicallAddress:"0x80e4e06841bb76AA9735E0448cB8d003C0EF009a",quoterAddress:"0x0FBEa6cf957d95ee9313490050F6A0DA68039404",v3MigratorAddress:"0xE7EcbAAaA54D007A00dbb6c1d2f150066D69dA07",nonfungiblePositionManagerAddress:"0xdA75cEf1C93078e8b736FCA5D5a30adb97C8957d",tickLensAddress:"0xCb7f54747F58F8944973cea5b8f4ac2209BadDC5",swapRouter02Address:"0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4"},l[s.ARBITRUM_GOERLI]={v3CoreFactoryAddress:"0x4893376342d5D7b3e31d4184c08b265e5aB2A3f6",multicallAddress:"0x8260CB40247290317a4c062F3542622367F206Ee",quoterAddress:"0x1dd92b83591781D0C6d98d07391eea4b9a6008FA",v3MigratorAddress:"0xA815919D2584Ac3F76ea9CB62E6Fd40a43BCe0C3",nonfungiblePositionManagerAddress:"0x622e4726a167799826d1E1D150b076A7725f5D81",tickLensAddress:"0xb52429333da969a0C79a60930a4Bf0020E5D1DE8"},l[s.ARBITRUM_SEPOLIA]={v3CoreFactoryAddress:"0x248AB79Bbb9bC29bB72f7Cd42F17e054Fc40188e",multicallAddress:"0x2B718b475e385eD29F56775a66aAB1F5cC6B2A0A",quoterAddress:"0x2779a0CC1c3e0E44D2542EC3e79e3864Ae93Ef0B",v3MigratorAddress:"0x398f43ef2c67B941147157DA1c5a868E906E043D",nonfungiblePositionManagerAddress:"0x6b2937Bde17889EDCf8fbD8dE31C3C2a70Bc4d65",tickLensAddress:"0x0fd18587734e5C2dcE2dccDcC7DD1EC89ba557d9",swapRouter02Address:"0x101F443B4d1b059569D643917553c771E1b9663E",v4PoolManagerAddress:"0xFB3e0C6F74eB1a21CC1Da29aeC80D2Dfe6C9a317",v4PositionManagerAddress:"0xAc631556d3d4019C95769033B5E719dD77124BAc",v4StateView:"0x9d467fa9062b6e9b1a46e26007ad82db116c67cb",v4QuoterAddress:"0x7de51022d70a725b508085468052e25e22b5c4c9"},l[s.SEPOLIA]={v3CoreFactoryAddress:"0x0227628f3F023bb0B980b67D528571c95c6DaC1c",multicallAddress:"0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",quoterAddress:"0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",v3MigratorAddress:"0x729004182cF005CEC8Bd85df140094b6aCbe8b15",nonfungiblePositionManagerAddress:"0x1238536071E1c677A632429e3655c799b22cDA52",tickLensAddress:"0xd7f33bcdb21b359c8ee6f0251d30e94832baad07",swapRouter02Address:"0x3bFA4769FB09eefC5a80d6E87c3B9C650f7Ae48E",mixedRouteQuoterV2Address:"0x4745f77b56a0e2294426e3936dc4fab68d9543cd",v4PoolManagerAddress:"0xE03A1074c86CFeDd5C142C4F04F1a1536e203543",v4PositionManagerAddress:"0x429ba70129df741B2Ca2a85BC3A2a3328e5c09b4",v4StateView:"0xe1dd9c3fa50edb962e442f60dfbc432e24537e4c",v4QuoterAddress:"0x61b3f2011a92d183c7dbadbda940a7555ccf9227"},l[s.AVALANCHE]={v3CoreFactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",multicallAddress:"0x0139141Cd4Ee88dF3Cdb65881D411bAE271Ef0C2",quoterAddress:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",v3MigratorAddress:"0x44f5f1f5E452ea8d29C890E8F6e893fC0f1f0f97",nonfungiblePositionManagerAddress:"0x655C406EBFa14EE2006250925e54ec43AD184f8B",tickLensAddress:"0xEB9fFC8bf81b4fFd11fb6A63a6B0f098c6e21950",swapRouter02Address:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE",v4PoolManagerAddress:"0x06380c0e0912312b5150364b9dc4542ba0dbbc85",v4PositionManagerAddress:"0xb74b1f14d2754acfcbbe1a221023a5cf50ab8acd",v4StateView:"0xc3c9e198c735a4b97e3e683f391ccbdd60b69286",v4QuoterAddress:"0xbe40675bb704506a3c2ccfb762dcfd1e979845c2"},l[s.BASE]={v3CoreFactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",multicallAddress:"0x091e99cb1C49331a94dD62755D168E941AbD0693",quoterAddress:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",v3MigratorAddress:"0x23cF10b1ee3AdfCA73B0eF17C07F7577e7ACd2d7",nonfungiblePositionManagerAddress:"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",tickLensAddress:"0x0CdeE061c75D43c82520eD998C23ac2991c9ac6d",swapR
4outer02Address:"0x2626664c2603336E57B271c5C0b26F421741e481",mixedRouteQuoterV1Address:"0xe544efae946f0008ae9a8d64493efa7886b73776",v4PoolManagerAddress:"0x498581ff718922c3f8e6a244956af099b2652b2b",v4PositionManagerAddress:"0x7c5f5a4bbd8fd63184577525326123b519429bdc",v4StateView:"0xa3c0c9b65bad0b08107aa264b0f3db444b867a71",v4QuoterAddress:"0x0d5e0f971ed27fbff6c2837bf31316121532048d"},l[s.BASE_GOERLI]={v3CoreFactoryAddress:"0x9323c1d6D800ed51Bd7C6B216cfBec678B7d0BC2",multicallAddress:"0xB206027a9E0E13F05eBEFa5D2402Bab3eA716439",quoterAddress:"0xedf539058e28E5937dAef3f69cEd0b25fbE66Ae9",v3MigratorAddress:"0x3efe5d02a04b7351D671Db7008ec6eBA9AD9e3aE",nonfungiblePositionManagerAddress:"0x3c61369ef0D1D2AFa70d8feC2F31C5D6Ce134F30",tickLensAddress:"0x1acB873Ee909D0c98adB18e4474943249F931b92",swapRouter02Address:"0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d"},l[s.BASE_SEPOLIA]={v3CoreFactoryAddress:"0x4752ba5DBc23f44D87826276BF6Fd6b1C372aD24",multicallAddress:"0xd867e273eAbD6c853fCd0Ca0bFB6a3aE6491d2C1",quoterAddress:"0xC5290058841028F1614F3A6F0F5816cAd0df5E27",v3MigratorAddress:"0xCbf8b7f80800bd4888Fbc7bf1713B80FE4E23E10",nonfungiblePositionManagerAddress:"0x27F971cb582BF9E50F397e4d29a5C7A34f11faA2",tickLensAddress:"0xedf6066a2b290C185783862C7F4776A2C8077AD1",swapRouter02Address:"0x94cC0AaC535CCDB3C01d6787D6413C739ae12bc4",v4PoolManagerAddress:"0x05E73354cFDd6745C338b50BcFDfA3Aa6fA03408",v4PositionManagerAddress:"0x4b2c77d209d3405f41a037ec6c77f7f5b8e2ca80",v4StateView:"0x571291b572ed32ce6751a2cb2486ebee8defb9b4",v4QuoterAddress:"0x4a6513c898fe1b2d0e78d3b0e0a4a151589b1cba"},l[s.ZORA]={v3CoreFactoryAddress:"0x7145F8aeef1f6510E92164038E1B6F8cB2c42Cbb",multicallAddress:"0xA51c76bEE6746cB487a7e9312E43e2b8f4A37C15",quoterAddress:"0x11867e1b3348F3ce4FcC170BC5af3d23E07E64Df",v3MigratorAddress:"0x048352d8dCF13686982C799da63fA6426a9D0b60",nonfungiblePositionManagerAddress:"0xbC91e8DfA3fF18De43853372A3d7dfe585137D78",tickLensAddress:"0x209AAda09D74Ad3B8D0E92910Eaf85D2357e3044",swapRouter02Address:"0x7De04c96BE5159c3b5CeffC82aa176dc81281557",v4PoolManagerAddress:"0x0575338e4c17006ae181b47900a84404247ca30f",v4PositionManagerAddress:"0xf66c7b99e2040f0d9b326b3b7c152e9663543d63",v4StateView:"0x385785af07d63b50d0a0ea57c4ff89d06adf7328",v4QuoterAddress:"0x5edaccc0660e0a2c44b06e07ce8b915e625dc2c6"},l[s.ZORA_SEPOLIA]={v3CoreFactoryAddress:"0x4324A677D74764f46f33ED447964252441aA8Db6",multicallAddress:"0xA1E7e3A69671C4494EC59Dbd442de930a93F911A",quoterAddress:"0xC195976fEF0985886E37036E2DF62bF371E12Df0",v3MigratorAddress:"0x65ef259b31bf1d977c37e9434658694267674897",nonfungiblePositionManagerAddress:"0xB8458EaAe43292e3c1F7994EFd016bd653d23c20",tickLensAddress:"0x23C0F71877a1Fc4e20A78018f9831365c85f3064"},l[s.ROOTSTOCK]={v3CoreFactoryAddress:"0xaF37EC98A00FD63689CF3060BF3B6784E00caD82",multicallAddress:"0x996a9858cDfa45Ad68E47c9A30a7201E29c6a386",quoterAddress:"0xb51727c996C68E60F598A923a5006853cd2fEB31",v3MigratorAddress:"0x16678977CA4ec3DAD5efc7b15780295FE5f56162",nonfungiblePositionManagerAddress:"0x9d9386c042F194B460Ec424a1e57ACDE25f5C4b1",tickLensAddress:"0x55B9dF5bF68ADe972191a91980459f48ecA16afC",swapRouter02Address:"0x0B14ff67f0014046b4b99057Aec4509640b3947A"},l[s.BLAST]={v3CoreFactoryAddress:"0x792edAdE80af5fC680d96a2eD80A44247D2Cf6Fd",multicallAddress:"0xdC7f370de7631cE9e2c2e1DCDA6B3B5744Cf4705",quoterAddress:"0x6Cdcd65e03c1CEc3730Aee
4Cd45bc140D57A25C77",v3MigratorAddress:"0x15CA7043CD84C5D21Ae76Ba0A1A967d42c40ecE0",nonfungiblePositionManagerAddress:"0xB218e4f7cF0533d4696fDfC419A0023D33345F28",tickLensAddress:"0x2E95185bCdD928a3e984B7e2D6560Ab1b17d7274",swapRouter02Address:"0x549FEB8c9bd4c12Ad2AB27022dA12492aC452B66",v4PoolManagerAddress:"0x1631559198a9e474033433b2958dabc135ab6446",v4PositionManagerAddress:"0x4ad2f4cca2682cbb5b950d660dd458a1d3f1baad",v4StateView:"0x12a88ae16f46dce4e8b15368008ab3380885df30",v4QuoterAddress:"0x6f71cdcb0d119ff72c6eb501abceb576fbf62bcf"},l[s.ZKSYNC]={v3CoreFactoryAddress:"0x8FdA5a7a8dCA67BBcDd10F02Fa0649A937215422",multicallAddress:"0x0c68a7C72f074d1c45C16d41fa74eEbC6D16a65C",quoterAddress:"0x8Cb537fc92E26d8EBBb760E632c95484b6Ea3e28",v3MigratorAddress:"0x611841b24E43C4ACfd290B427a3D6cf1A59dac8E",nonfungiblePositionManagerAddress:"0x0616e5762c1E7Dc3723c50663dF10a162D690a86",tickLensAddress:"0xe10FF11b809f8EE07b056B452c3B2caa7FE24f89",swapRouter02Address:"0x99c56385daBCE3E81d8499d0b8d0257aBC07E8A3"},l[s.WORLDCHAIN]={v3CoreFactoryAddress:"0x7a5028BDa40e7B173C278C5342087826455ea25a",multicallAddress:"0x0a22c04215c97E3F532F4eF30e0aD9458792dAB9",quoterAddress:"0x10158D43e6cc414deE1Bd1eB0EfC6a5cBCfF244c",v3MigratorAddress:"0x9EBDdCBa71C9027E1eB45135672a30bcFEec9de3",nonfungiblePositionManagerAddress:"0xec12a9F9a09f50550686363766Cc153D03c27b5e",tickLensAddress:"0xE61df0CaC9d85876aCE5E3037005D80943570623",swapRouter02Address:"0x091AD9e2e6e5eD44c1c66dB50e49A601F9f36cF6",v4PoolManagerAddress:"0xb1860d529182ac3bc1f51fa2abd56662b7d13f33",v4PositionManagerAddress:"0xc585e0f504613b5fbf874f21af14c65260fb41fa",v4StateView:"0x51d394718bc09297262e368c1a481217fdeb71eb",v4QuoterAddress:"0x55d235b3ff2daf7c3ede0defc9521f1d6fe6c5c0"},l[s.UNICHAIN_SEPOLIA]={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x9D0F15f2cf58655fDDcD1EE6129C547fDaeD01b1",quoterAddress:"0x6Dd37329A1A225a6Fca658265D460423DCafBF89",v3MigratorAddress:"0xb5FA244C9d6D04B2FBac84418b3c4910ED1Ae5f2",nonfungiblePositionManagerAddress:"0xB7F724d6dDDFd008eFf5cc2834edDE5F9eF0d075",tickLensAddress:"0x5f739c790a48E97eec0efb81bab5D152c0A0ecA0",swapRouter02Address:"0xd1AAE39293221B77B0C71fBD6dCb7Ea29Bb5B166",v4PoolManagerAddress:"0x00b036b58a818b1bc34d502d3fe730db729e62ac",v4PositionManagerAddress:"0xf969aee60879c54baaed9f3ed26147db216fd664",v4StateView:"0xc199f1072a74d4e905aba1a84d9a45e2546b6222",v4QuoterAddress:"0x56dcd40a3f2d466f48e7f48bdbe5cc9b92ae4472"},l[s.UNICHAIN]={v3CoreFactoryAddress:"0x1f98400000000000000000000000000000000003",multicallAddress:"0xb7610f9b733e7d45184be3a1bc966960ccc54f0b",quoterAddress:"0x565ac8c7863d9bb16d07e809ff49fe5cd467634c",v3MigratorAddress:"0xb9d0c246f306b1aaf02ae6ba112d5ef25e5b60dc",nonfungiblePositionManagerAddress:"0x943e6e07a7e8e791dafc44083e54041d743c46e9",tickLensAddress:"0xd5d76fa166ab8d8ad4c9f61aaa81457b66cbe443",swapRouter02Address:"0x73855d06de49d0fe4a9c42636ba96c62da12ff9c",v4PoolManagerAddress:"0x1f98400000000000000000000000000000000004",v4PositionManagerAddress:"0x4529a01c7a0410167c5740c487a8de60232617bf",v4StateView:"0x86e8631a016f9068c3f085faf484ee3f5fdee8f2",v4QuoterAddress:"0x333e3c607b141b18ff6de9f258db6e77fe7491e0"},l[s.MONAD_TESTNET]={v3CoreFactoryAddress:"0x961235a9020b05c44df1026d956d1f4d78014276",multicallAddress:"0xa707ceb989cc3728551ed0e6e44b718dd114cf44",quoterAddress:"0x1ba215c17565de7b0cb7ecab971bcf540c24a862",v3MigratorAddress:"0x0a78348b71f8ae8caff2f8f9d4d74a2f36516661",nonfungiblePositionManagerAddress:"0x3dcc735c74f10fe2b9db2bb55c40fbbbf24490f7",tickLensAddress:"0x337478eb6058455ecb3696184b30dd6a29e3a893",swapRouter02Address:"0x4c4eabd5fb1d1a7234a48692551eaecff8194ca7"},l[s.SONEIUM]={v3CoreFactoryAddress:"0x42ae7ec7ff020412639d443e245d936429fbe717",multicallAddress:"0x8ad5ef2f2508288d2de66f04dd883ad5f4ef62b2",quoterAddress:"0x3e6c707d0125226ff60f291b6bd1404634f00aba",v3MigratorAddress:"0xa107580f73bd797bd8b87ff24e98346d99f93ddb",nonfungiblePositionManagerAddress:"0x56c1205b0244332011c1e866f4ea5384eb6bfa2c",tickLensAddress:"0xcd08eefb928c86499e6235ac155906bb7c4dc41a",swapRouter02Address:"0x7e40db01736f88464e5f4e42394f3d5bbb6705b9",v4PoolManagerAddress:"0x360e68faccca8ca495c1b759fd9eee466db9fb32",v4PositionManagerAddress:"0x1b35d13a2e2528f192637f14b05f0dc0e7deb566",v4StateView:"0x76fd297e2d437cd7f76d50f01afe6160f86e9990",v4QuoterAddress:"0x3972c00f7ed4885e145823eb7c655375d275a1c5"},l[s.MONAD]={v3CoreFactoryAddress:"0x204faca1764b154221e35c0d20abb3c525710498",multicallAddress:"0xd1b797d92d87b688193a2b976efc8d577d204343",quoterAddress:"0x2d01411773c8c24805306e89a41f7855c3c4fe65",v3MigratorAddress:"0x7078c4537c04c2b2e52ddba06074dbdacf23ca15",nonfungiblePositionManagerAddress:"0x7197e214c0b767cfb76fb734ab638e2c192f4e53",tickLensAddress:"0xf025e0fe9e331a0ef05c2ad3c4e9c64b625cda6f",swapRouter02Address:"0xfe31f71c1b106eac32f1a19239c9a9a72ddfb900",v4PoolManagerAddress:"0x188d586ddcf52439676ca21a244753fa19f9ea8e",v4PositionManagerAddress:"0x5b7ec4a94ff9bedb700fb82ab09d5846972f4016",v4StateView:"0x77395f3b2e73ae90843717371294fa97cc419d64",v4QuoterAddress:"0xa222dd357a9076d1091ed6aa2e16c9742dd26891"},!function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(c||(c={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(f||(f={}));var eH=k().BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),eG=H()(U()),ez=H()(q()),eJ=((d={})[f.ROUND_DOWN]=eG.ROUND_DOWN,d[f.ROUND_HALF_UP]=eG.ROUND_HALF_UP,d[f.ROUND_UP]=eG.ROUND_UP,d),eK=((h={})[f.ROUND_DOWN]=0,h[f.ROUND_HALF_UP]=1,h[f.ROUND_UP]=3,h),eV=function(){function e(e,t){void 0===t&&(t=k().BigInt(1)),this.numerator=k().BigInt(e),this.denominator=k().BigInt(t)}e.tryParseFraction=function(t){if(t instanceof k()||"number"==typeof t||"string"==typeof t)return new e(t);if("numerator"in t&&"denominator"in t)return t;throw Error("Could not parse fraction")};var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var r=e.tryParseFraction(t);return k().equal(this.denominator,r.denominator)?new e(k().add(this.numerator,r.numerator),this.denominator):new e(k().add(k().multiply(this.numerator,r.denominator),k().multiply(r.numerator,this.denominator)),k().multiply(this.denominator,r.denominator))},t.subtract=function(t){var r=e.tryParseFraction(t);return k().equal(this.denominator,r.denominator)?new e(k().subtract(this.numerator,r.numerator),this.denominator):new e(k().subtract(k().multiply(this.numerator,r.denominator),k().multiply(r.numerator,this.denominator)),k().multiply(this.denominator,r.denominator))},t.lessThan=function(t){var r=e.tryParseFraction(t);return k().lessThan(k().multiply(this.numerator,r.denominator),k().multiply(r.numerator,this.denominator))},t.equalTo=function(t){var r=e.tryParseFraction(t);return k().equal(k().multiply(this.numerator,r.denominator),k().multiply(r.numerator,this.denominator))},t.greaterThan=function(t){var r=e.tryParseFraction(t);return k().greaterThan(k().multiply(this.numerator,r.denominator),k().multiply(r.numerator,this.denominator))},t.multiply=function(t){var r=e.tryParseFraction(t);return new e(k().multiply(this.numerator,r.numerator),k().multiply(this.denominator,r.denominator))},t.divide=function(t){var r=e.tryParseFraction(t);return new e(k().multiply(this.numerator,r.denominator),k().multiply(this.denominator,r.numerator))},t.toSignificant=function(e,t,r){void 0===t&&(t={groupSeparator:""}),void 0===r&&(r=f.ROUND_HALF_UP),Number.isInteger(e)||T(!1),e>0||T(!1),eG.set({precision:e+1,rounding:eJ[r]});var n=new eG(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return n.toFormat(n.decimalPlaces(),t)},t.toFixed=function(e,t,r){return void 0===t&&(t={groupSeparator:""}),void 0===r&&(r=f.ROUND_HALF_UP),Number.isInteger(e)||T(!1),e>=0||T(!1),ez.DP=e,ez.RM=eK[r],new ez(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},eD(e,[{key:"quotient",get:function(){return k().divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(k().remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}])}(),eW=H()(q()),eZ=function(e){function t(t,r,n){var i;return i=e.call(this,r,n)||this,k().lessThanOrEqual(i.quotient,eH)||T(!1),i.currency=t,i.decimalScale=k().exponentiate(k().BigInt(10),k().BigInt(t.decimals)),i}eN(t,e),t.fromRawAmount=function(e,r){return new t(e,r)},t.fromFractionalAmount=function(e,r,n){return new t(e,r,n)};var r=t.prototype;return r.add=function(r){this.currency.equals(r.currency)||T(!1);var n=e.prototype.add.call(this,r);return t.fromFractionalAmount(this.currency,n.numerator,n.denominator)},r.subtract=function(r){this.currency.equals(r.currency)||T(!1);var n=e.prototype.subtract.call(this,r);return t.fromFractionalAmount(this.currency,n.numerator,n.denominator)},r.multiply=function(r){var n=e.prototype.multiply.call(this,r);return t.fromFractionalAmount(this.currency,n.numerator,n.denominator)}
4,r.divide=function(r){var n=e.prototype.divide.call(this,r);return t.fromFractionalAmount(this.currency,n.numerator,n.denominator)},r.toSignificant=function(t,r,n){return void 0===t&&(t=6),void 0===n&&(n=f.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(t,r,n)},r.toFixed=function(t,r,n){return void 0===t&&(t=this.currency.decimals),void 0===n&&(n=f.ROUND_DOWN),t<=this.currency.decimals||T(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(t,r,n)},r.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),eW.DP=this.currency.decimals,new eW(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},eD(t,[{key:"wrapped",get:function(){return this.currency.isToken?this:t.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}])}(eV),eY=new eV(k().BigInt(100));function e$(e){return new eX(e.numerator,e.denominator)}var eX=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.isPercent=!0,t}eN(t,e);var r=t.prototype;return r.add=function(t){return e$(e.prototype.add.call(this,t))},r.subtract=function(t){return e$(e.prototype.subtract.call(this,t))},r.multiply=function(t){return e$(e.prototype.multiply.call(this,t))},r.divide=function(t){return e$(e.prototype.divide.call(this,t))},r.toSignificant=function(t,r,n){return void 0===t&&(t=5),e.prototype.multiply.call(this,eY).toSignificant(t,r,n)},r.toFixed=function(t,r,n){return void 0===t&&(t=2),e.prototype.multiply.call(this,eY).toFixed(t,r,n)},t}(eV),e0=function(e){function t(){for(var t,r,n,i,s,a=arguments.length,o=Array(a),u=0;u<a;u++)o[u]=arguments[u];if(4===o.length)r=o[0],n=o[1],i=o[2],s=o[3];else{var l=o[0].quoteAmount.divide(o[0].baseAmount),c=[o[0].baseAmount.currency,o[0].quoteAmount.currency,l.denominator,l.numerator];r=c[0],n=c[1],i=c[2],s=c[3]}return(t=e.call(this,s,i)||this).baseCurrency=r,t.quoteCurrency=n,t.scalar=new eV(k().exponentiate(k().BigInt(10),k().BigInt(r.decimals)),k().exponentiate(k().BigInt(10),k().BigInt(n.decimals))),t}eN(t,e);var r=t.prototype;return r.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},r.multiply=function(r){this.quoteCurrency.equals(r.baseCurrency)||T(!1);var n=e.prototype.multiply.call(this,r);return new t(this.baseCurrency,r.quoteCurrency,n.denominator,n.numerator)},r.quote=function(t){t.currency.equals(this.baseCurrency)||T(!1);var r=e.prototype.multiply.call(this,t);return eZ.fromFractionalAmount(this.quoteCurrency,r.numerator,r.denominator)},r.toSignificant=function(e,t,r){return void 0===e&&(e=6),this.adjustedForDecimals.toSignificant(e,t,r)},r.toFixed=function(e,t,r){return void 0===e&&(e=4),this.adjustedForDecimals.toFixed(e,t,r)},eD(t,[{key:"adjustedForDecimals",get:function(){return e.prototype.multiply.call(this,this.scalar)}}])}(eV),e1=function(e,t,r,n){Number.isSafeInteger(e)||T(!1),t>=0&&t<255&&Number.isInteger(t)||T(!1),this.chainId=e,this.decimals=t,this.symbol=r,this.name=n},e2=function(e){function t(){var t;return t=e.apply(this,arguments)||this,t.isNative=!0,t.isToken=!1,t}return eN(t,e),t}(e1),e6=/^0x[0-9a-fA-F]{40}$/,e5=function(e){function t(t,r,n,i,s,a,o,u){var l;return(l=e.call(this,t,n,i,s)||this).isNative=!1,l.isToken=!0,a?l.address=function(e){if(e6.test(e))return e;throw Error(e+" is not a valid address.")}(r):l.address=function(e){try{return eI(e)}catch(t){throw Error(e+" is not a valid address.")}}(r),o&&(o.gte(eg.from(0))||T(!1)),u&&(u.gte(eg.from(0))||T(!1)),l.buyFeeBps=o,l.sellFeeBps=u,l}eN(t,e);var r=t.prototype;return r.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},r.sortsBefore=function(e){return this.chainId!==e.chainId&&T(!1),this.address.toLowerCase()===e.address.toLowerCase()&&T(!1),this.address.toLowerCase()<e.address.toLowerCase()},eD(t,[{key:"wrapped",get:function(){return this}}])}(e1),e3={1:new e5(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),0xaa36a7:new e5(0xaa36a7,"0xfFf9976782d46CC05630D1f6eBAb18b2324d6B14",18,"WETH","Wrapped Ether"),3:new e5(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),4:new e5(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),5:new e5(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),42:new e5(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),10:new e5(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),69:new e5(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),0xaa37dc:new e5(0xaa37dc,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),42161:new e5(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),421611:new e5(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),421614:new e5(421614,"0x980B62Da83eFf3D4576C647993b0c1D7faf17c73",18,"WETH","Wrapped Ether"),8453:new e5(8453,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),84532:new e5(84532,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),56:new e5(56,"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",18,"WBNB","Wrapped BNB"),137:new e5(137,"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",18,"WMATIC","Wrapped MATIC"),43114:new e5(43114,"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",18,"WAVAX","Wrapped AVAX"),7777777:new e5(7777777,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),81457:new e5(81457,"0x4300000000000000000000000000000000000004",18,"WETH","Wrapped Ether"),324:new e5(324,"0x5AEa5775959fBC2557Cc8789bC1bf90A239D9a91",18,"WETH","Wrapped Ether"),480:new e5(480,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),1301:new e5(1301,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),130:new e5(130,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),10143:new e5(10143,"0x760AfE86e5de5fa0Ee542fc7B7B713e1c5425701",18,"WMON","Wrapped Monad"),1868:new e5(1868,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),143:new e5(143,"0x3bd359C1119dA7Da1D913D1C4D2B7c461115433A",18,"WMON","Wrapped Monad")};(function(e){function t(t){return e.call(this,t,18,"ETH","Ether")||this}return eN(t,e),t.onChain=function(e){var r;return null!=(r=this._etherCache[e])?r:this._etherCache[e]=new t(e)},t.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},eD(t,[{key:"wrapped",get:function(){var e=e3[this.chainId];return e||T(!1),e}}])})(e2)._etherCache={};var e4=k().BigInt(Number.MAX_SAFE_INTEGER),e8=k().BigInt(0),e7=k().BigInt(1),e9=k().BigInt(2);function te(e){var t,r;if(k().greaterThanOrEqual(e,e8)||T(!1),k().lessThan(e,e4))return k().BigInt(Math.floor(Math.sqrt(k().toNumber(e))));for(t=e,r=k().add(k().divide(e,e9),e7);k().lessThan(r,t);)t=r,r=k().divide(k().add(k().divide(e,r),r),e9);return t}let tt=new X("strings/5.8.0");function tr(e,t,r,n,i){if(e===m.BAD_PREFIX||e===m.UNEXPECTED_CONTINUE){let e=0;
4for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return e===m.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(p||(p={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(m||(m={}));let tn=Object.freeze({error:function(e,t,r,n,i){return tt.throwArgumentError(`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:tr,replace:function(e,t,r,n,i){return e===m.OVERLONG?(n.push(i),0):(n.push(65533),tr(e,t,r,n,i))}}),ti=RegExp("^bytes([0-9]+)$"),ts=RegExp("^(u?int)([0-9]*)$"),ta=RegExp("^(.*)\\[([0-9]*)\\]$"),to=new X("solidity/5.8.0");function tu(e,t){e.length!=t.length&&to.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);let r=[];return e.forEach(function(e,n){r.push(function e(t,r,n){switch(t){case"address":if(n)return eo(r,32);return es(r);case"string":return function(e,t=p.current){t!=p.current&&(tt.checkNormalize(),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);if(t>=e.length||(64512&i)!=56320)throw Error("invalid utf-8 string");let s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return es(r)}(r);case"bytes":return es(r);case"bool":if(r=r?"0x01":"0x00",n)return eo(r,32);return es(r)}let i=t.match(ts);if(i){let e=parseInt(i[2]||"256");return(i[2]&&String(e)!==i[2]||e%8!=0||0===e||e>256)&&to.throwArgumentError("invalid number type","type",t),n&&(e=256),eo(r=eg.from(r).toTwos(e),e/8)}if(i=t.match(ti)){let e=parseInt(i[1]);return((String(e)!==i[1]||0===e||e>32)&&to.throwArgumentError("invalid bytes type","type",t),es(r).byteLength!==e&&to.throwArgumentError(`invalid value for ${t}`,"value",r),n)?es((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((i=t.match(ta))&&Array.isArray(r)){let n=i[1];parseInt(i[2]||String(r.length))!=r.length&&to.throwArgumentError(`invalid array length for ${t}`,"value",r);let s=[];return r.forEach(function(t){s.push(e(n,t,!0))}),ea(s)}return to.throwArgumentError("invalid type","type",t)}(e,t[n]))}),ec(ea(r))}var tl=k().BigInt(1e3),tc=k().BigInt(0),tf=k().BigInt(1),td=k().BigInt(5),th=k().BigInt(997),tp=k().BigInt(1e3),tm=k().BigInt(1e4),tg=new eX(tc),tb=new eX(tf);function ty(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function tA(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(n.key),n)}}function tv(e,t,r){return t&&tA(e.prototype,t),r&&tA(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function tw(e,t){var r="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(r)return(r=r.call(e)).next.bind(r);if(Array.isArray(e)||(r=function(e,t){if(e){if("string"==typeof e)return ty(e,void 0);var r=({}).toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ty(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var n=0;return function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}
4function tE(e){return(tE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function tx(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tB(e,t)}function tM(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(tM=function(){return!!e})()}function tB(e,t){return(tB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function t_(e){var t="function"==typeof Map?new Map:void 0;return(t_=function(e){if(null===e||!function(e){try{return -1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return function(e,t,r){if(tM())return Reflect.construct.apply(null,arguments);var n=[null];n.push.apply(n,t);var i=new(e.bind.apply(e,n));return r&&tB(i,r.prototype),i}(e,arguments,tE(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),tB(r,e)})(e)}var tC="setPrototypeOf"in Object,tI=function(e){function t(){var r;return(r=e.call(this)||this).isInsufficientReservesError=!0,r.name=r.constructor.name,tC&&Object.setPrototypeOf(r,(this instanceof t?this.constructor:void 0).prototype),r}return tx(t,e),t}(t_(Error)),tS=function(e){function t(){var r;return(r=e.call(this)||this).isInsufficientInputAmountError=!0,r.name=r.constructor.name,tC&&Object.setPrototypeOf(r,(this instanceof t?this.constructor:void 0).prototype),r}return tx(t,e),t}(t_(Error)),tD=function(e){var t,r,n,i,s,a=e.factoryAddress,o=e.tokenA,u=e.tokenB,l=o.sortsBefore(u)?[o,u]:[u,o],c=l[0],f=l[1];return t=[tu(["address","address"],[c.address,f.address])],r=ex(tu(["bytes"],t)),n="0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f",32!==ef(r)&&eM.throwArgumentError("salt must be 32 bytes","salt",r),32!==ef(n)&&eM.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),eI((i=ex(ea(["0xff",eI(a),r,n])),s=12,"string"!=typeof i?i=ec(i):(!eu(i)||i.length%2)&&ee.throwArgumentError("invalid hexData","value",i),s=2+2*s,"0x"+i.substring(s)))},tO=function(){function e(t,r){var n=t.currency.sortsBefore(r.currency)?[t,r]:[r,t];this.liquidityToken=new e5(n[0].currency.chainId,e.getAddress(n[0].currency,n[1].currency),18,"UNI-V2","Uniswap V2"),this.tokenAmounts=n}e.getAddress=function(e,t){var r;return tD({factoryAddress:null!=(r=eP[e.chainId])?r:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",tokenA:e,tokenB:t})};var t=e.prototype;return t.involvesToken=function(e){return e.equals(this.token0)||e.equals(this.token1)},t.priceOf=function(e){return this.involvesToken(e)||T(!1),e.equals(this.token0)?this.token0Price:this.token1Price},t.reserveOf=function(e){return this.involvesToken(e)||T(!1),e.equals(this.token0)?this.reserve0:this.reserve1},t.getOutputAmount=function(t,r){if(void 0===r&&(r=!0),this.involvesToken(t.currency)||T(!1),k().equal(this.reserve0.quotient,tc)||k().equal(this.reserve1.quotient,tc))throw new tI;var n=this.reserveOf(t.currency),i=this.reserveOf(t.currency.equals(this.token0)?this.token1:this.token0),s=r?this.derivePercentAfterSellFees(t):tg,a=s.greaterThan(tg)?eZ.fromRawAmount(t.currency,s.multiply(t).quotient):t,o=k().multiply(a.quotient,th),u=k().multiply(o,i.quotient),l=k().add(k().multiply(n.quotient,tp),o),c=eZ.fromRawAmount(t.currency.equals(this.token0)?this.token1:this.token0,k().divide(u,l));if(k().equal(c.quotient,tc))throw new tS;var f=r?this.derivePercentAfterBuyFees(c):tg,d=f.greaterThan(tg)?eZ.fromRawAmount(c.currency,c.multiply(f).quotient):c;if(k().equal(d.quotient,tc))throw new tS;return[d,new e(n.add(a),i.subtract(d))]},t.getInputAmount=function(t,r){void 0===r&&(r=!0),this.involvesToken(t.currency)||T(!1);var n=r?this.derivePercentAfterBuyFees(t):tg,i=n.greaterThan(tg)?eZ.fromRawAmount(t.currency,k().add(t.divide(n).quotient,tf)):t;if(k().equal(this.reserve0.quotient,tc)||k().equal(this.reserve1.quotient,tc)||k().greaterThanOrEqual(t.quotient,this.reserveOf(t.currency).quotient)||k().greaterThanOrEqual(i.quotient,this.reserveOf(t.currency).quotient))throw new tI;var s=this.reserveOf(t.currency),a=this.reserveOf(t.currency.equals(this.token0)?this.token1:this.token0),o=k().multiply(k().multiply(a.quotient,i.quotient),tp),u=k().multiply(k().subtract(s.quotient,i.quotient),th),l=eZ.fromRawAmount(t.currency.equals(this.token0)?this.token1:this.token0,k().add(k().divide(o,u),tf)),c=r?this.derivePercentAfterSellFees(l):tg;return[c.greaterThan(tg)?eZ.fromRawAmount(l.currency,k().add(l.divi
4de(c).quotient,tf)):l,new e(a.add(l),s.subtract(t))]},t.getLiquidityMinted=function(e,t,r){e.currency.equals(this.liquidityToken)||T(!1);var n,i=t.currency.sortsBefore(r.currency)?[t,r]:[r,t];if(i[0].currency.equals(this.token0)&&i[1].currency.equals(this.token1)||T(!1),k().equal(e.quotient,tc))n=k().subtract(te(k().multiply(i[0].quotient,i[1].quotient)),tl);else{var s=k().divide(k().multiply(i[0].quotient,e.quotient),this.reserve0.quotient),a=k().divide(k().multiply(i[1].quotient,e.quotient),this.reserve1.quotient);n=k().lessThanOrEqual(s,a)?s:a}if(!k().greaterThan(n,tc))throw new tS;return eZ.fromRawAmount(this.liquidityToken,n)},t.getLiquidityValue=function(e,t,r,n,i){if(void 0===n&&(n=!1),this.involvesToken(e)||T(!1),t.currency.equals(this.liquidityToken)||T(!1),r.currency.equals(this.liquidityToken)||T(!1),k().lessThanOrEqual(r.quotient,t.quotient)||T(!1),n){i||T(!1);var s,a=k().BigInt(i);if(k().equal(a,tc))s=t;else{var o=te(k().multiply(this.reserve0.quotient,this.reserve1.quotient)),u=te(a);if(k().greaterThan(o,u)){var l=k().multiply(t.quotient,k().subtract(o,u)),c=k().add(k().multiply(o,td),u),f=k().divide(l,c);s=t.add(eZ.fromRawAmount(this.liquidityToken,f))}else s=t}}else s=t;return eZ.fromRawAmount(e,k().divide(k().multiply(r.quotient,this.reserveOf(e).quotient),s.quotient))},t.derivePercentAfterSellFees=function(e){var t=this.token0.wrapped.equals(e.wrapped.currency)?this.token0.wrapped.sellFeeBps:this.token1.wrapped.sellFeeBps;return null!=t&&t.gt(eg.from(0))?tb.subtract(new eX(k().BigInt(t)).divide(tm)):tg},t.derivePercentAfterBuyFees=function(e){var t=this.token0.wrapped.equals(e.wrapped.currency)?this.token0.wrapped.buyFeeBps:this.token1.wrapped.buyFeeBps;return null!=t&&t.gt(eg.from(0))?tb.subtract(new eX(k().BigInt(t)).divide(tm)):tg},tv(e,[{key:"token0Price",get:function(){var e=this.tokenAmounts[1].divide(this.tokenAmounts[0]);return new e0(this.token0,this.token1,e.denominator,e.numerator)}},{key:"token1Price",get:function(){var e=this.tokenAmounts[0].divide(this.tokenAmounts[1]);return new e0(this.token1,this.token0,e.denominator,e.numerator)}},{key:"chainId",get:function(){return this.token0.chainId}},{key:"token0",get:function(){return this.tokenAmounts[0].currency}},{key:"token1",get:function(){return this.tokenAmounts[1].currency}},{key:"reserve0",get:function(){return this.tokenAmounts[0]}},{key:"reserve1",get:function(){return this.tokenAmounts[1]}}])}(),tN=tv(function(e,t,r){this._midPrice=null,e.length>0||T(!1);var n=e[0].chainId;e.every(function(e){return e.chainId===n})||T(!1);var i=t.wrapped;e[0].involvesToken(i)||T(!1),void 0===r||e[e.length-1].involvesToken(r.wrapped)||T(!1);for(var s,a=[i],o=tw(e.entries());!(s=o()).done;){var u=s.value,l=u[0],c=u[1],f=a[l];f.equals(c.token0)||f.equals(c.token1)||T(!1);var d=f.equals(c.token0)?c.token1:c.token0;a.push(d)}this.pairs=e,this.path=a,this.input=t,this.output=r},[{key:"midPrice",get:function(){if(null!==this._midPrice)return this._midPrice;for(var e,t=[],r=tw(this.pairs.entries());!(e=r()).done;){var n=e.value,i=n[0],s=n[1];t.push(this.path[i].equals(s.token0)?new e0(s.reserve0.currency,s.reserve1.currency,s.reserve0.quotient,s.reserve1.quotient):new e0(s.reserve1.currency,s.reserve0.currency,s.reserve1.quotient,s.reserve0.quotient))}var a=t.slice(1).reduce(function(e,t){return e.multiply(t)},t[0]);return this._midPrice=new e0(this.input,this.output,a.denominator,a.numerator)}},{key:"chainId",get:function(){return this.pairs[0].chainId}}]),tF=r(13378),tR=r(65996),tP=r(19373);let tk={[r(65730).n.id]:{nativeCurrencyTokenAddress:"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0"}},tT=(e=E.r)=>{let t=(0,tR.e)({chainId:E.r.id}),{data:r,isLoading:n,error:i,isError:s}=(0,tP.I)({queryKey:["native-currency-price",e.id],queryFn:async()=>t?tU({chain:e,mainnetPublicClient:t}):0,enabled:!!t});return{price:r??0,isLoading:n,error:i,isError:s}},tL=(0,tF.U)(["function getReserves() external view returns (uint112 reserve0, uint112 reserve1, uint32 blockTimestampLast)","function token0() external view returns (address)","function token1() external view returns (address)"]),tU=async({chain:e,mainnetPublicClient:t})=>{try{let r=tk[e.id]?.nativeCurrencyTokenAddress,n=new e5(1,"0x6B175474E89094C44Da98b954EedeAC495271d0F",18),i=new e5(1,r??"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18),s={address:tO.getAddress(i,n),abi:tL},a=await t.readContract({...s,functionName:"getReserves"}),o=await t.readContract({...s,functionName:"token0"}),u=await t.readContract({...s,functionName:"token1"}),l=[i,n].find(e=>e.address===o),c=[i,n].find(e=>e.address===u),f=new tO(eZ.fromRawAmount(l,a[0].toString()),eZ.fromRawAmount(c,a[1].toString())),d=new tN([f],i,n);return parseFloat(d.midPrice.toSignificant(6))}catch(t){return console.error(`useNativeCurrencyPrice - Error fetching ${e.nativeCurrency.symbol} price from Uniswap: `,t),0}};var tj=r(12115),tq=r(26715),tQ=r(94181),tH=r(85543),tG=r(13558);let tz=e=>{let t=(0,tq.jE)(),{data:r}=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:n={},watch:i}=r,s=(0,D.U)(r),a=(0,tq.jE)(),o=(0,S.i)({config:s}),u=null!==(e=r.chainId)&&void 0!==e?e:o,l=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:r,...n}=t[1];return await function(e,t={}){let{chainId:r,...n}=t,i=e.getClient({chainId:r});return(0,_.T)(i,tQ.G,"getBlockNumber")(n)}(e,n)??null},queryKey:function(e={}){return["blockNumber",(0,C.xO)(e)]}(t)}}(s,{...r,chainId:u});return!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:r=!0,onBlockNumber:n,config:i,...s}=t,a=(0,D.U)(t),o=(0,S.i)({config:a}),u=null!==(e=t.chainId)&&void 0!==e?e:o;(0,tj.useEffect)(()=>
4{if(r&&n)return function(e,t){let r,n,{syncConnectedChain:i=e._internal.syncConnectedChain,...s}=t,a=t=>{r&&r();let n=e.getClient({chainId:t});return r=(0,_.T)(n,tH.q,"watchBlockNumber")(s)},o=a(t.chainId);return i&&!t.chainId&&(n=e.subscribe(({chainId:e})=>e,async e=>a(e))),()=>{o?.(),n?.()}}(a,{...s,chainId:u,onBlockNumber:n})},[u,a,r,n,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}({...{config:r.config,chainId:r.chainId,..."object"==typeof i?i:{}},enabled:!!((null===(t=n.enabled)||void 0===t||t)&&("object"==typeof i?i.enabled:i)),onBlockNumber(e){a.setQueryData(l.queryKey,e)}}),(0,I.IT)({...n,...l})}({watch:!0,chainId:e.chain?.id}),{queryKey:n,...i}=(0,tG.A)({...e,chainId:e.chain?.id});return(0,tj.useEffect)(()=>{t.invalidateQueries({queryKey:n})},[r]),i},tJ=({address:e,chain:t,defaultUsdMode:r=!1})=>{let{price:n,isLoading:i,isError:s}=tT(t),a=n>0,o=!!a&&!!r,[u,l]=(0,tj.useState)(o),{data:c,isError:f,isLoading:d}=tz({address:e,chain:t});(0,tj.useEffect)(()=>{l(o)},[o]);let h=(0,tj.useCallback)(()=>{a&&l(!u)},[u,a]),p=c?Number((0,R.c)(c.value)):0;return{displayUsdMode:u,toggleDisplayUsdMode:h,formattedBalance:p,balanceInUsd:p*n,balance:c,isBalanceError:f,isBalanceLoading:d,isNativeCurrencyPriceLoading:i,isNativeCurrencyPriceError:s,isLoading:d||i,isError:f||s}},tK=2,tV=({value:e,usdMode:t})=>{let{price:r,isLoading:n,isError:i}=tT(E.r);return{valueInEth:t?function(e,t){let r=parseFloat(e);return Number.isNaN(r)||!t?"":(r/t).toString()}(e,r||0):e,valueInUsd:t?e:function(e,t){let r=parseFloat(e);return Number.isNaN(r)||!t?"":(Math.round(r*t*10**tK)/10**tK).toString()}(e,r||0),nativeCurrencyPrice:r,isNativeCurrencyPriceLoading:n,isNativeCurrencyPriceError:i}}},98984:(e,t,r)=>{"use strict";r.d(t,{w:()=>s});var n=r(19989);class i extends n.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,n.sd)(e);let r=(0,n.ZJ)(t);if(this.iHash=e.create(),"function"!=typeof this.iHash.update)throw Error("Expected instance of class which extends utils.Hash");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;let i=this.blockLen,s=new Uint8Array(i);s.set(r.length>i?e.create().update(r).digest():r);for(let e=0;e<s.length;e++)s[e]^=54;this.iHash.update(s),this.oHash=e.create();for(let e=0;e<s.length;e++)s[e]^=106;this.oHash.update(s),(0,n.uH)(s)}update(e){return(0,n.CC)(this),this.iHash.update(e),this}digestInto(e){(0,n.CC)(this),(0,n.DO)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){let e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));let{oHash:t,iHash:r,finished:n,destroyed:i,blockLen:s,outputLen:a}=this;return e.finished=n,e.destroyed=i,e.blockLen=s,e.outputLen=a,e.oHash=t._cloneInto(e.oHash),e.iHash=r._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}let s=(e,t,r)=>new i(e,t).update(r).digest();s.create=(e,t)=>new i(e,t)}}]);
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.