@latticexyz/explorer 2.2.15-entrykit-a12e0377cb4a99f5d6891ae74070213ebf07e3a9 → 2.2.15-entrykit-1c24e4739090d185171d9f8e4a257735e4710b70
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.next/standalone/packages/explorer/.next/BUILD_ID +1 -1
- package/.next/standalone/packages/explorer/.next/app-build-manifest.json +18 -18
- package/.next/standalone/packages/explorer/.next/app-path-routes-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/build-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/prerender-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js +4 -4
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/[worldAddress]/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/[chainName]/worlds/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js +8 -11
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/api/world-abi/route.js.nft.json +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/(explorer)/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/_not-found.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay/page_client-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/app/internal/observer-relay.rsc +1 -1
- package/.next/standalone/packages/explorer/.next/server/app-paths-manifest.json +2 -2
- package/.next/standalone/packages/explorer/.next/server/chunks/6561.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/chunks/{8995.js → 7555.js} +2 -2
- package/.next/standalone/packages/explorer/.next/server/chunks/965.js +2 -2
- package/.next/standalone/packages/explorer/.next/server/middleware-build-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/404.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/pages/500.html +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.js +1 -1
- package/.next/standalone/packages/explorer/.next/server/server-reference-manifest.json +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/5168-c7610465a2f00a64.js +36 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/{7245-8718e0edac702589.js → 7245-535f0db1bf9f2b3f.js} +2 -2
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/explore/{page-88f9d9278a7a63e2.js → page-002897355bb5607a.js} +1 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-045170dd7214f0c7.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-ae2b94d38f489df9.js +1 -0
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/observe/{page-f411909c5450de9a.js → page-63abf4231598be45.js} +1 -1
- package/package.json +10 -10
- package/.next/standalone/packages/explorer/.next/server/chunks/555.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/1156-5dc32370790768d2.js +0 -36
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/interact/page-c49d20af32aa3b94.js +0 -1
- package/.next/standalone/packages/explorer/.next/static/chunks/app/(explorer)/[chainName]/worlds/[worldAddress]/layout-012ae6b441d74aa1.js +0 -1
- /package/.next/standalone/packages/explorer/.next/static/{sGddeaw1fKaYcaSLGY6iH → jw1ZnKfnq9aXOTU3iK_H2}/_buildManifest.js +0 -0
- /package/.next/standalone/packages/explorer/.next/static/{sGddeaw1fKaYcaSLGY6iH → jw1ZnKfnq9aXOTU3iK_H2}/_ssgManifest.js +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";exports.id=965,exports.ids=[965],exports.modules={20080:(e,t,s)=>{function n(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function i(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function r(e){if("function"!=typeof e||"function"!=typeof e.create)throw Error("Hash should be wrapped by utils.wrapConstructor");n(e.outputLen),n(e.blockLen)}function o(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function a(e,t){i(e);let s=t.outputLen;if(e.length<s)throw Error(`digestInto() expects output buffer of length at least ${s}`)}s.d(t,{Gg:()=>o,J8:()=>a,Rx:()=>n,aI:()=>i,vp:()=>r})},11120:(e,t,s)=>{s.d(t,{JQ:()=>d});var n=s(20080),i=s(31916);let r=(e,t,s)=>e&t^~e&s,o=(e,t,s)=>e&t^e&s^t&s;class a extends i.kb{constructor(e,t,s,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,i.GL)(this.buffer)}update(e){(0,n.Gg)(this);let{view:t,buffer:s,blockLen:r}=this,o=(e=(0,i.O0)(e)).length;for(let n=0;n<o;){let a=Math.min(r-this.pos,o-n);if(a===r){let t=(0,i.GL)(e);for(;r<=o-n;n+=r)this.process(t,n);continue}s.set(e.subarray(n,n+a),this.pos),this.pos+=a,n+=a,this.pos===r&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,n.Gg)(this),(0,n.J8)(e,this),this.finished=!0;let{buffer:t,view:s,blockLen:r,isLE:o}=this,{pos:a}=this;t[a++]=128,this.buffer.subarray(a).fill(0),this.padOffset>r-a&&(this.process(s,0),a=0);for(let e=a;e<r;e++)t[e]=0;(function(e,t,s,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,n);let i=BigInt(32),r=BigInt(4294967295),o=Number(s>>i&r),a=Number(s&r),l=n?4:0,c=n?0:4;e.setUint32(t+l,o,n),e.setUint32(t+c,a,n)})(s,r-8,BigInt(8*this.length),o),this.process(s,0);let l=(0,i.GL)(e),c=this.outputLen;if(c%4)throw Error("_sha2: outputLen should be aligned to 32bit");let u=c/4,h=this.get();if(u>h.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<u;e++)l.setUint32(4*e,h[e],o)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:n,finished:i,destroyed:r,pos:o}=this;return e.length=n,e.pos=o,e.finished=i,e.destroyed=r,n%t&&e.buffer.set(s),e}}let l=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),c=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),u=new Uint32Array(64);class h extends a{constructor(){super(64,32,8,!1),this.A=0|c[0],this.B=0|c[1],this.C=0|c[2],this.D=0|c[3],this.E=0|c[4],this.F=0|c[5],this.G=0|c[6],this.H=0|c[7]}get(){let{A:e,B:t,C:s,D:n,E:i,F:r,G:o,H:a}=this;return[e,t,s,n,i,r,o,a]}set(e,t,s,n,i,r,o,a){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|n,this.E=0|i,this.F=0|r,this.G=0|o,this.H=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)u[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=u[e-15],s=u[e-2],n=(0,i.np)(t,7)^(0,i.np)(t,18)^t>>>3,r=(0,i.np)(s,17)^(0,i.np)(s,19)^s>>>10;u[e]=r+u[e-7]+n+u[e-16]|0}let{A:s,B:n,C:a,D:c,E:h,F:d,G:f,H:p}=this;for(let e=0;e<64;e++){let t=p+((0,i.np)(h,6)^(0,i.np)(h,11)^(0,i.np)(h,25))+r(h,d,f)+l[e]+u[e]|0,g=((0,i.np)(s,2)^(0,i.np)(s,13)^(0,i.np)(s,22))+o(s,n,a)|0;p=f,f=d,d=h,h=c+t|0,c=a,a=n,n=s,s=t+g|0}s=s+this.A|0,n=n+this.B|0,a=a+this.C|0,c=c+this.D|0,h=h+this.E|0,d=d+this.F|0,f=f+this.G|0,p=p+this.H|0,this.set(s,n,a,c,h,d,f,p)}roundClean(){u.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let d=(0,i.hE)(()=>new h)},31916:(e,t,s)=>{s.d(t,{kb:()=>g,l1:()=>d,eV:()=>p,GL:()=>l,iA:()=>u,O6:()=>m,np:()=>c,O0:()=>f,Jq:()=>a,hE:()=>b});var n=s(6005),i=s.t(n,2);let r=i&&"object"==typeof i&&"webcrypto"in i?n.webcrypto:i&&"object"==typeof i&&"randomBytes"in i?i:void 0;var o=s(20080);let a=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),l=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),c=(e,t)=>e<<32-t|e>>>t,u=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],h=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function d(e){for(let t=0;t<e.length;t++)e[t]=h(e[t])}function f(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,o.aI)(e),e}function p(...e){let t=0;for(let s=0;s<e.length;s++){let n=e[s];(0,o.aI)(n),t+=n.length}let s=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){let i=e[t];s.set(i,n),n+=i.length}return s}class g{clone(){return this._cloneInto()}}function b(e){let t=t=>e().update(f(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}function m(e=32){if(r&&"function"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&"function"==typeof r.randomBytes)return r.randomBytes(e);throw Error("crypto.getRandomValues must be defined")}},89272:(e,t,s)=>{s.d(t,{O:()=>n});let n=(0,s(38596).a)({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},7769:(e,t,s)=>{s.d(t,{t:()=>n});let n=(0,s(38596).a)({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},18061:(e,t,s)=>{s.d(t,{T:()=>i});var n=s(23272);let i=(0,s(38596).a)({...n.i,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...n.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},27094:(e,t,s)=>{s.d(t,{g:()=>i});var n=s(23272);let i=(0,s(38596).a)({...n.i,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...n.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},968:(e,t,s)=>{s.d(t,{l:()=>n});let n=1},2380:(e,t,s)=>{s.d(t,{zL:()=>n});let n=2n**256n-1n},19612:(e,t,s)=>{s.d(t,{Zn:()=>i,ez:()=>n});let n={gwei:9,wei:18},i={ether:-9,wei:9}},35130:(e,t,s)=>{s.d(t,{b:()=>i});var n=s(44357);class i extends n.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},44357:(e,t,s)=>{s.d(t,{G:()=>r});let n="2.21.19",i={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:s})=>t?`${e??"https://viem.sh"}${t}${s?`#${s}`:""}`:void 0,version:n};class r extends Error{constructor(e,t={}){let s=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=i.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...s?[`Details: ${s}`]:[],...i.version?[`Version: ${i.version}`]:[]].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,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=s,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=n}walk(e){return function e(t,s){return s?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,s):s?null:t}(this,e)}}},26279:(e,t,s)=>{s.d(t,{RX:()=>o,cJ:()=>l,m7:()=>r,xd:()=>a});var n=s(968),i=s(44357);class r extends i.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class o extends i.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class a extends i.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class l extends i.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:[`Expected: ${n.l}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}},96316:(e,t,s)=>{s.d(t,{Bk:()=>r,Yl:()=>i,hJ:()=>o});var n=s(44357);class i extends n.G{constructor({chain:e,currentChainId:t}){super(`The current chain of the wallet (id: ${t}) does not match the target chain for the transaction (id: ${e.id} – ${e.name}).`,{metaMessages:[`Current Chain ID: ${t}`,`Expected Chain ID: ${e.id} – ${e.name}`],name:"ChainMismatchError"})}}class r extends n.G{constructor(){super("No chain was provided to the request.\nPlease provide a chain with the `chain` argument on the Action, or by supplying a `chain` to WalletClient.",{name:"ChainNotFoundError"})}}class o extends n.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}},69535:(e,t,s)=>{s.d(t,{KD:()=>o,T_:()=>i,lQ:()=>r});var n=s(44357);class i extends n.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends n.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends n.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},36180:(e,t,s)=>{s.d(t,{$s:()=>r,W_:()=>o,mV:()=>i});var n=s(44357);class i extends n.G{constructor({offset:e,position:t,size:s}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${s}).`,{name:"SliceOffsetOutOfBoundsError"})}}class r extends n.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}class o extends n.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} is expected to be ${t} ${s} long, but is ${e} ${s} long.`,{name:"InvalidBytesLengthError"})}}},12322:(e,t,s)=>{s.d(t,{Cd:()=>o,J5:()=>i,M6:()=>a,yr:()=>r});var n=s(44357);class i extends n.G{constructor({max:e,min:t,signed:s,size:n,value:i}){super(`Number "${i}" is not in safe ${n?`${8*n}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class r extends n.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends n.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends n.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},75908:(e,t,s)=>{s.d(t,{C_:()=>h,G$:()=>a,Hh:()=>o,M_:()=>r,WF:()=>d,ZI:()=>l,cj:()=>b,cs:()=>g,dR:()=>f,pZ:()=>p,se:()=>u,vU:()=>c});var n=s(68087),i=s(44357);class r extends i.G{constructor({cause:e,message:t}={}){let s=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${s?`with reason: ${s}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(r,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(r,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class o extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(o,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class a extends i.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${(0,n.o)(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(a,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class l extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(l,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class c extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
2
|
-
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(c,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class u extends i.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(u,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class h extends i.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(h,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(d,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class f extends i.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(f,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends i.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(p,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class g extends i.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:s}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${(0,n.o)(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s?` = ${(0,n.o)(s)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(g,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class b extends i.G{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:"UnknownNodeError"})}}},22435:(e,t,s)=>{s.d(t,{JC:()=>u,j3:()=>c,mk:()=>h,vl:()=>l,xY:()=>a,xr:()=>o});var n=s(21809),i=s(68087),r=s(44357);function o(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),s=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(s+1)} ${t}`).join("\n")}class a extends r.G{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others.",{name:"FeeConflictError"})}}class l extends r.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class c extends r.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",o(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class u extends r.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}class h extends r.G{constructor(e,{account:t,docsPath:s,chain:r,data:a,gas:l,gasPrice:c,maxFeePerGas:u,maxPriorityFeePerGas:h,nonce:d,to:f,value:p}){super(e.shortMessage,{cause:e,docsPath:s,metaMessages:[...e.metaMessages?[...e.metaMessages," "]:[],"Request Arguments:",o({chain:r&&`${r?.name} (id: ${r?.id})`,from:t?.address,to:f,value:void 0!==p&&`${(0,n.d)(p)} ${r?.nativeCurrency?.symbol||"ETH"}`,data:a,gas:l,gasPrice:void 0!==c&&`${(0,i.o)(c)} gwei`,maxFeePerGas:void 0!==u&&`${(0,i.o)(u)} gwei`,maxPriorityFeePerGas:void 0!==h&&`${(0,i.o)(h)} gwei`,nonce:d})].filter(Boolean),name:"TransactionExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}},23272:(e,t,s)=>{s.d(t,{i:()=>L});var n=s(1504),i=s(98707),r=s(88328),o=s(73308),a=s(8297);let l={"0x0":"reverted","0x1":"success"},c=(0,o.$)("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,a.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,n.ly)(e.transactionIndex):null,status:e.status?l[e.status]:null,type:e.type?r.c8[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),u={block:(0,i.G)({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=r.Tr(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?n.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:(0,r.y_)({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,n.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:c({format:e=>({l1GasPrice:e.l1GasPrice?(0,n.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,n.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,n.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var h=s(35130),d=s(99487),f=s(68095),p=s(88090),g=s(7573),b=s(22435),m=s(88897),y=s(23678),x=s(56655),v=s(44353),w=s(65484),P=s(968),$=s(2380),G=s(44357),I=s(26279),B=s(96316),C=s(75908),E=s(41399),U=s(19611);function z(e){let{chainId:t,maxPriorityFeePerGas:s,maxFeePerGas:n,to:i}=e;if(t<=0)throw new B.hJ({chainId:t});if(i&&!(0,d.U)(i))throw new h.b({address:i});if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n});if(s&&n&&s>n)throw new C.cs({maxFeePerGas:n,maxPriorityFeePerGas:s})}var N=s(98793);function k(e){if(!e||0===e.length)return[];let t=[];for(let s=0;s<e.length;s++){let{address:n,storageKeys:i}=e[s];for(let e=0;e<i.length;e++)if(i[e].length-2!=64)throw new b.JC({storageKey:i[e]});if(!(0,d.U)(n,{strict:!1}))throw new h.b({address:n});t.push([n,i])}return t}function F(e,t){let s=t??e,{v:n,yParity:i}=s;if(void 0===s.r||void 0===s.s||void 0===n&&void 0===i)return[];let r=(0,w.f)(s.r),o=(0,w.f)(s.s);return["number"==typeof i?i?(0,p.NC)(1):"0x":0n===n?"0x":1n===n?(0,p.NC)(1):27n===n?"0x":(0,p.NC)(1),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}let L={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:u,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){(function(e){let{from:t,to:s}=e;if(t&&!(0,d.U)(t))throw new h.b({address:t});if(s&&!(0,d.U)(s))throw new h.b({address:s})})(e);let{sourceHash:t,data:s,from:n,gas:i,isSystemTx:r,mint:o,to:a,value:l}=e,c=[t,n,a??"0x",o?(0,p.NC)(o):"0x",l?(0,p.NC)(l):"0x",i?(0,p.NC)(i):"0x",r?"0x1":"0x",s??"0x"];return(0,f.SM)(["0x7e",(0,g.LV)(c)])}(e):function(e,t){let s=(0,N.l)(e);return"eip1559"===s?function(e,t){let{chainId:s,gas:n,nonce:i,to:r,value:o,maxFeePerGas:a,maxPriorityFeePerGas:l,accessList:c,data:u}=e;z(e);let h=k(c),d=[(0,p.NC)(s),i?(0,p.NC)(i):"0x",l?(0,p.NC)(l):"0x",a?(0,p.NC)(a):"0x",n?(0,p.NC)(n):"0x",r??"0x",o?(0,p.NC)(o):"0x",u??"0x",h,...F(e,t)];return(0,f.SM)(["0x02",(0,g.LV)(d)])}(e,t):"eip2930"===s?function(e,t){let{chainId:s,gas:n,data:i,nonce:r,to:o,value:a,accessList:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:i,to:r}=e;if(t<=0)throw new B.hJ({chainId:t});if(r&&!(0,d.U)(r))throw new h.b({address:r});if(s||i)throw new G.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n})}(e);let u=k(l),b=[(0,p.NC)(s),r?(0,p.NC)(r):"0x",c?(0,p.NC)(c):"0x",n?(0,p.NC)(n):"0x",o??"0x",a?(0,p.NC)(a):"0x",i??"0x",u,...F(e,t)];return(0,f.SM)(["0x01",(0,g.LV)(b)])}(e,t):"eip4844"===s?function(e,t){let{chainId:s,gas:i,nonce:r,to:o,value:a,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:h,data:d}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new I.RX;for(let e of t){let t=(0,E.d)(e),s=(0,n.ly)((0,U.tP)(e,0,1));if(32!==t)throw new I.xd({hash:e,size:t});if(s!==P.l)throw new I.cJ({hash:e,version:s})}}z(e)}(e);let b=e.blobVersionedHashes,w=e.sidecars;if(e.blobs&&(void 0===b||void 0===w)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,p.ci)(e)),s=e.kzg,n=(0,m.P)({blobs:t,kzg:s});if(void 0===b&&(b=(0,x.C)({commitments:n})),void 0===w){let e=(0,y.y)({blobs:t,commitments:n,kzg:s});w=(0,v.j)({blobs:t,commitments:n,proofs:e})}}let $=k(h),G=[(0,p.NC)(s),r?(0,p.NC)(r):"0x",u?(0,p.NC)(u):"0x",c?(0,p.NC)(c):"0x",i?(0,p.NC)(i):"0x",o??"0x",a?(0,p.NC)(a):"0x",d??"0x",$,l?(0,p.NC)(l):"0x",b??[],...F(e,t)],B=[],C=[],N=[];if(w)for(let e=0;e<w.length;e++){let{blob:t,commitment:s,proof:n}=w[e];B.push(t),C.push(s),N.push(n)}return(0,f.SM)(["0x03",w?(0,g.LV)([G,B,C,N]):(0,g.LV)(G)])}(e,t):"eip7702"===s?function(e,t){let{authorizationList:s,chainId:n,gas:i,nonce:r,to:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:b}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:s}=e;if(!(0,d.U)(t))throw new h.b({address:t});if(s<=0)throw new B.hJ({chainId:s})}z(e)}(e);let m=k(u),y=function(e){if(!e||0===e.length)return[];let t=[];for(let s of e){let{contractAddress:e,chainId:n,nonce:i,...r}=s;t.push([(0,p.NC)(n),e,i?(0,p.NC)(i):"0x",...F({},r)])}return t}(s);return(0,f.SM)(["0x04",(0,g.LV)([(0,p.NC)(n),r?(0,p.NC)(r):"0x",c?(0,p.NC)(c):"0x",l?(0,p.NC)(l):"0x",i?(0,p.NC)(i):"0x",o??"0x",a?(0,p.NC)(a):"0x",b??"0x",m,y,...F(e,t)])])}(e,t):function(e,t){let{chainId:s=0,gas:n,data:i,nonce:r,to:o,value:a,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:n,maxFeePerGas:i,to:r}=e;if(r&&!(0,d.U)(r))throw new h.b({address:r});if(void 0!==t&&t<=0)throw new B.hJ({chainId:t});if(s||i)throw new G.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(n&&n>$.zL)throw new C.Hh({maxFeePerGas:n})}(e);let c=[r?(0,p.NC)(r):"0x",l?(0,p.NC)(l):"0x",n?(0,p.NC)(n):"0x",o??"0x",a?(0,p.NC)(a):"0x",i??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(s>0)return BigInt(2*s)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new b.vl({v:t.v});return e})(),n=(0,w.f)(t.r),i=(0,w.f)(t.s);c=[...c,(0,p.NC)(e),"0x00"===n?"0x":n,"0x00"===i?"0x":i]}else s>0&&(c=[...c,(0,p.NC)(s),"0x","0x"]);return(0,g.LV)(c)}(e,t)}(e,t)}}}},76670:(e,t,s)=>{s.d(t,{K:()=>u,x:()=>c});var n=s(35130),i=s(35217),r=s(50916),o=s(5898),a=s(99487);let l=new o.k(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let s=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),n=(0,r.w)((0,i.qX)(s),"bytes"),o=(t?s.substring(`${t}0x`.length):s).split("");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&n[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return l.set(`${e}.${t}`,a),a}function u(e,t){if(!(0,a.U)(e,{strict:!1}))throw new n.b({address:e});return c(e,t)}},99487:(e,t,s)=>{s.d(t,{U:()=>a});var n=s(5898),i=s(76670);let r=/^0x[a-fA-F0-9]{40}$/,o=new n.k(8192);function a(e,t){let{strict:s=!0}=t??{},n=`${e}.${s}`;if(o.has(n))return o.get(n);let a=!!r.test(e)&&(e.toLowerCase()===e||!s||(0,i.x)(e)===e);return o.set(n,a),a}},88897:(e,t,s)=>{s.d(t,{P:()=>r});var n=s(35217),i=s(88090);function r(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,o=[];for(let e of r)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===s?o:o.map(e=>(0,i.ci)(e))}},23678:(e,t,s)=>{s.d(t,{y:()=>r});var n=s(35217),i=s(88090);function r(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),r="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,n.nr)(e)):e.blobs,o="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,n.nr)(e)):e.commitments,a=[];for(let e=0;e<r.length;e++){let s=r[e],n=o[e];a.push(Uint8Array.from(t.computeBlobKzgProof(s,n)))}return"bytes"===s?a:a.map(e=>(0,i.ci)(e))}},56655:(e,t,s)=>{s.d(t,{C:()=>a});var n=s(88090),i=s(11120),r=s(56928),o=s(35217);function a(e){let{commitments:t,version:s}=e,a=e.to??("string"==typeof t[0]?"hex":"bytes"),l=[];for(let e of t)l.push(function(e){let{commitment:t,version:s=1}=e,a=e.to??("string"==typeof t?"hex":"bytes"),l=function(e,t){let s=(0,i.JQ)((0,r.v)(e,{strict:!1})?(0,o.O0)(e):e);return"bytes"===(t||"hex")?s:(0,n.NC)(s)}(t,"bytes");return l.set([s],0),"bytes"===a?l:(0,n.ci)(l)}({commitment:e,to:a,version:s}));return l}},44353:(e,t,s)=>{s.d(t,{j:()=>u});var n=s(88897),i=s(23678),r=s(26279),o=s(16272),a=s(41399),l=s(35217),c=s(88090);function u(e){let{data:t,kzg:s,to:u}=e,h=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),s="string"==typeof e.data?(0,l.nr)(e.data):e.data,n=(0,a.d)(s);if(!n)throw new r.RX;if(n>761855)throw new r.m7({maxSize:761855,size:n});let i=[],u=!0,h=0;for(;u;){let e=(0,o.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let n=s.slice(h,h+31);if(e.pushByte(0),e.pushBytes(n),n.length<31){e.pushByte(128),u=!1;break}t++,h+=31}i.push(e)}return"bytes"===t?i.map(e=>e.bytes):i.map(e=>(0,c.ci)(e.bytes))}({data:t,to:u}),d=e.commitments??(0,n.P)({blobs:h,kzg:s,to:u}),f=e.proofs??(0,i.y)({blobs:h,commitments:d,kzg:s,to:u}),p=[];for(let e=0;e<h.length;e++)p.push({blob:h[e],commitment:d[e],proof:f[e]});return p}},38596:(e,t,s)=>{s.d(t,{a:()=>n});function n(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},16272:(e,t,s)=>{s.d(t,{q:()=>r});var n=s(69535);let i={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new n.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new n.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new n.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let s=t??this.position;return this.assertPosition(s+e-1),this.bytes.subarray(s,s+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let s=this.inspectBytes(e);return this.position+=t??e,s},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function r(e,{recursiveReadLimit:t=8192}={}){let s=Object.create(i);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}},68095:(e,t,s)=>{function n(e){return"string"==typeof e[0]?i(e):function(e){let t=0;for(let s of e)t+=s.length;let s=new Uint8Array(t),n=0;for(let t of e)s.set(t,n),n+=t.length;return s}(e)}function i(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}s.d(t,{SM:()=>i,zo:()=>n})},56928:(e,t,s)=>{s.d(t,{v:()=>n});function n(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},77157:(e,t,s)=>{s.d(t,{gc:()=>r,vk:()=>i});var n=s(36180);function i(e,{dir:t,size:s=32}={}){return"string"==typeof e?r(e,{dir:t,size:s}):function(e,{dir:t,size:s=32}={}){if(null===s)return e;if(e.length>s)throw new n.$s({size:e.length,targetSize:s,type:"bytes"});let i=new Uint8Array(s);for(let n=0;n<s;n++){let r="right"===t;i[r?n:s-n-1]=e[r?n:e.length-n-1]}return i}(e,{dir:t,size:s})}function r(e,{dir:t,size:s=32}={}){if(null===s)return e;let i=e.replace("0x","");if(i.length>2*s)throw new n.$s({size:Math.ceil(i.length/2),targetSize:s,type:"hex"});return`0x${i["right"===t?"padEnd":"padStart"](2*s,"0")}`}},41399:(e,t,s)=>{s.d(t,{d:()=>i});var n=s(56928);function i(e){return(0,n.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},19611:(e,t,s)=>{s.d(t,{T4:()=>c,p5:()=>u,tP:()=>o});var n=s(36180),i=s(56928),r=s(41399);function o(e,t,s,{strict:n}={}){return(0,i.v)(e,{strict:!1})?u(e,t,s,{strict:n}):c(e,t,s,{strict:n})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,r.d)(e)-1)throw new n.mV({offset:t,position:"start",size:(0,r.d)(e)})}function l(e,t,s){if("number"==typeof t&&"number"==typeof s&&(0,r.d)(e)!==s-t)throw new n.mV({offset:s,position:"end",size:(0,r.d)(e)})}function c(e,t,s,{strict:n}={}){a(e,t);let i=e.slice(t,s);return n&&l(i,t,s),i}function u(e,t,s,{strict:n}={}){a(e,t);let i=`0x${e.replace("0x","").slice((t??0)*2,(s??e.length)*2)}`;return n&&l(i,t,s),i}},65484:(e,t,s)=>{s.d(t,{f:()=>n});function n(e,{dir:t="left"}={}){let s="string"==typeof e?e.replace("0x",""):e,n=0;for(let e=0;e<s.length-1&&"0"===s["left"===t?e:s.length-e-1].toString();e++)n++;return(s="left"===t?s.slice(n):s.slice(0,s.length-n),"string"==typeof e)?(1===s.length&&"right"===t&&(s=`${s}0`),`0x${s.length%2==1?`0${s}`:s}`):s}},1504:(e,t,s)=>{s.d(t,{XA:()=>c,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>l});var n=s(12322),i=s(41399),r=s(65484),o=s(35217);function a(e,{size:t}){if((0,i.d)(e)>t)throw new n.M6({givenSize:(0,i.d)(e),maxSize:t})}function l(e,t={}){let{signed:s}=t;t.size&&a(e,{size:t.size});let n=BigInt(e);if(!s)return n;let i=(e.length-2)/2;return n<=(1n<<8n*BigInt(i)-1n)-1n?n:n-BigInt(`0x${"f".padStart(2*i,"f")}`)-1n}function c(e,t={}){let s=e;if(t.size&&(a(s,{size:t.size}),s=(0,r.f)(s)),"0x00"===(0,r.f)(s))return!1;if("0x01"===(0,r.f)(s))return!0;throw new n.Cd(s)}function u(e,t={}){return Number(l(e,t))}function h(e,t={}){let s=(0,o.nr)(e);return t.size&&(a(s,{size:t.size}),s=(0,r.f)(s,{dir:"right"})),new TextDecoder().decode(s)}},35217:(e,t,s)=>{s.d(t,{O0:()=>c,nr:()=>d,qX:()=>f});var n=s(44357),i=s(56928),r=s(77157),o=s(1504),a=s(88090);let l=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?d((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let s=new Uint8Array(1);return(s[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{size:t.size})):s}(e,t):(0,i.v)(e)?d(e,t):f(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function h(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e,t={}){let s=e;t.size&&((0,o.Yf)(s,{size:t.size}),s=(0,r.vk)(s,{dir:"right",size:t.size}));let i=s.slice(2);i.length%2&&(i=`0${i}`);let a=i.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let s=h(i.charCodeAt(t++)),r=h(i.charCodeAt(t++));if(void 0===s||void 0===r)throw new n.G(`Invalid byte sequence ("${i[t-2]}${i[t-1]}" in "${i}").`);l[e]=16*s+r}return l}function f(e,t={}){let s=l.encode(e);return"number"==typeof t.size?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{dir:"right",size:t.size})):s}},88090:(e,t,s)=>{s.d(t,{$G:()=>d,C4:()=>l,NC:()=>a,ci:()=>c,eC:()=>u});var n=s(12322),i=s(77157),r=s(1504);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let s=`0x${Number(e)}`;return"number"==typeof t.size?((0,r.Yf)(s,{size:t.size}),(0,i.vk)(s,{size:t.size})):s}function c(e,t={}){let s="";for(let t=0;t<e.length;t++)s+=o[e[t]];let n=`0x${s}`;return"number"==typeof t.size?((0,r.Yf)(n,{size:t.size}),(0,i.vk)(n,{dir:"right",size:t.size})):n}function u(e,t={}){let s;let{signed:r,size:o}=t,a=BigInt(e);o?s=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof s&&r?-s-1n:0;if(s&&a>s||a<l){let t="bigint"==typeof e?"n":"";throw new n.J5({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:r,size:o,value:`${e}${t}`})}let c=`0x${(r&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,i.vk)(c,{size:o}):c}let h=new TextEncoder;function d(e,t={}){return c(h.encode(e),t)}},7573:(e,t,s)=>{s.d(t,{LV:()=>a});var n=s(44357),i=s(16272),r=s(35217),o=s(88090);function a(e,t="hex"){let s=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),s=l(t);return{length:t<=55?1+t:1+s+t,encode(n){for(let{encode:i}of(t<=55?n.pushByte(192+t):(n.pushByte(247+s),1===s?n.pushUint8(t):2===s?n.pushUint16(t):3===s?n.pushUint24(t):n.pushUint32(t)),e))i(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,r.nr)(e):e,s=l(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+s+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+s),1===s?e.pushUint8(t.length):2===s?e.pushUint16(t.length):3===s?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,i.q)(new Uint8Array(s.length));return(s.encode(n),"hex"===t)?(0,o.ci)(n.bytes):n.bytes}function l(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new n.G("Length is too large.")}},98707:(e,t,s)=>{s.d(t,{G:()=>o,Z:()=>r});var n=s(73308),i=s(88328);function r(e){let t=e.transactions?.map(e=>"string"==typeof e?e:i.Tr(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}let o=(0,n.$)("block",r)},73308:(e,t,s)=>{s.d(t,{$:()=>n});function n(e,t){return({exclude:s,format:n})=>({exclude:s,format:e=>{let i=t(e);if(s)for(let e of s)delete i[e];return{...i,...n(e)}},type:e})}},8297:(e,t,s)=>{s.d(t,{U:()=>n});function n(e,{args:t,eventName:s}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...s?{args:t,eventName:s}:{}}}},88328:(e,t,s)=>{s.d(t,{Tr:()=>o,c8:()=>r,y_:()=>a});var n=s(1504),i=s(73308);let r={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,n.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,n.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=(0,i.$)("transaction",o)},50916:(e,t,s)=>{s.d(t,{w:()=>U});var n=s(20080);let i=BigInt(4294967296-1),r=BigInt(32),o=(e,t,s)=>e<<s|t>>>32-s,a=(e,t,s)=>t<<s|e>>>32-s,l=(e,t,s)=>t<<s-32|e>>>64-s,c=(e,t,s)=>e<<s-32|t>>>64-s;var u=s(31916);let h=[],d=[],f=[],p=BigInt(0),g=BigInt(1),b=BigInt(2),m=BigInt(7),y=BigInt(256),x=BigInt(113);for(let e=0,t=g,s=1,n=0;e<24;e++){[s,n]=[n,(2*s+3*n)%5],h.push(2*(5*n+s)),d.push((e+1)*(e+2)/2%64);let i=p;for(let e=0;e<7;e++)(t=(t<<g^(t>>m)*x)%y)&b&&(i^=g<<(g<<BigInt(e))-g);f.push(i)}let[v,w]=function(e,t=!1){let s=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&i),l:Number(e>>r&i)}:{h:0|Number(e>>r&i),l:0|Number(e&i)}}(e[o],t);[s[o],n[o]]=[a,l]}return[s,n]}(f,!0),P=(e,t,s)=>s>32?l(e,t,s):o(e,t,s),$=(e,t,s)=>s>32?c(e,t,s):a(e,t,s);class G extends u.kb{constructor(e,t,s,i=!1,r=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=i,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,n.Rx)(s),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),function(e,t=24){let s=new Uint32Array(10);for(let n=24-t;n<24;n++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let n=(t+8)%10,i=(t+2)%10,r=s[i],o=s[i+1],a=P(r,o,1)^s[n],l=$(r,o,1)^s[n+1];for(let s=0;s<50;s+=10)e[t+s]^=a,e[t+s+1]^=l}let t=e[2],i=e[3];for(let s=0;s<24;s++){let n=d[s],r=P(t,i,n),o=$(t,i,n),a=h[s];t=e[a],i=e[a+1],e[a]=r,e[a+1]=o}for(let t=0;t<50;t+=10){for(let n=0;n<10;n++)s[n]=e[t+n];for(let n=0;n<10;n++)e[t+n]^=~s[(n+2)%10]&s[(n+4)%10]}e[0]^=v[n],e[1]^=w[n]}s.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,n.Gg)(this);let{blockLen:t,state:s}=this,i=(e=(0,u.O0)(e)).length;for(let n=0;n<i;){let r=Math.min(t-this.pos,i-n);for(let t=0;t<r;t++)s[this.pos++]^=e[n++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:n}=this;e[s]^=t,(128&t)!=0&&s===n-1&&this.keccak(),e[n-1]^=128,this.keccak()}writeInto(e){(0,n.Gg)(this,!1),(0,n.aI)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let n=0,i=e.length;n<i;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,i-n);e.set(t.subarray(this.posOut,this.posOut+r),n),this.posOut+=r,n+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,n.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,n.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:n,rounds:i,enableXOF:r}=this;return e||(e=new G(t,s,n,r,i)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=i,e.suffix=s,e.outputLen=n,e.enableXOF=r,e.destroyed=this.destroyed,e}}let I=(0,u.hE)(()=>new G(136,1,32));var B=s(56928),C=s(35217),E=s(88090);function U(e,t){let s=I((0,B.v)(e,{strict:!1})?(0,C.O0)(e):e);return"bytes"===(t||"hex")?s:(0,E.NC)(s)}},5898:(e,t,s)=>{s.d(t,{k:()=>n});class n 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}}},98793:(e,t,s)=>{s.d(t,{l:()=>i});var n=s(22435);function i(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new n.j3({transaction:e})}},21809:(e,t,s)=>{s.d(t,{d:()=>r});var n=s(19612),i=s(16131);function r(e,t="wei"){return(0,i.b)(e,n.ez[t])}},68087:(e,t,s)=>{s.d(t,{o:()=>r});var n=s(19612),i=s(16131);function r(e,t="wei"){return(0,i.b)(e,n.Zn[t])}},16131:(e,t,s)=>{s.d(t,{b:()=>n});function n(e,t){let s=e.toString(),n=s.startsWith("-");n&&(s=s.slice(1));let[i,r]=[(s=s.padStart(t,"0")).slice(0,s.length-t),s.slice(s.length-t)];return r=r.replace(/(0+)$/,""),`${n?"-":""}${i||"0"}${r?`.${r}`:""}`}}};
|
|
1
|
+
"use strict";exports.id=965,exports.ids=[965],exports.modules={20080:(e,t,s)=>{function i(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`positive integer expected, not ${e}`)}function n(e,...t){if(!(e instanceof Uint8Array||null!=e&&"object"==typeof e&&"Uint8Array"===e.constructor.name))throw Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw Error(`Uint8Array expected of length ${t}, not of length=${e.length}`)}function r(e,t=!0){if(e.destroyed)throw Error("Hash instance has been destroyed");if(t&&e.finished)throw Error("Hash#digest() has already been called")}function o(e,t){n(e);let s=t.outputLen;if(e.length<s)throw Error(`digestInto() expects output buffer of length at least ${s}`)}s.d(t,{Gg:()=>r,J8:()=>o,Rx:()=>i,aI:()=>n})},37290:(e,t,s)=>{s.d(t,{GL:()=>r,Jq:()=>n,O0:()=>u,hE:()=>d,iA:()=>a,kb:()=>h,l1:()=>c,np:()=>o});var i=s(20080);let n=e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)),r=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),o=(e,t)=>e<<32-t|e>>>t,a=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0],l=e=>e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255;function c(e){for(let t=0;t<e.length;t++)e[t]=l(e[t])}function u(e){return"string"==typeof e&&(e=function(e){if("string"!=typeof e)throw Error(`utf8ToBytes expected string, got ${typeof e}`);return new Uint8Array(new TextEncoder().encode(e))}(e)),(0,i.aI)(e),e}class h{clone(){return this._cloneInto()}}function d(e){let t=t=>e().update(u(t)).digest(),s=e();return t.outputLen=s.outputLen,t.blockLen=s.blockLen,t.create=()=>e(),t}},89272:(e,t,s)=>{s.d(t,{O:()=>i});let i=(0,s(38596).a)({id:31337,name:"Anvil",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},7769:(e,t,s)=>{s.d(t,{t:()=>i});let i=(0,s(38596).a)({id:31337,name:"Foundry",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["http://127.0.0.1:8545"],webSocket:["ws://127.0.0.1:8545"]}}})},18061:(e,t,s)=>{s.d(t,{T:()=>n});var i=s(21322);let n=(0,s(38596).a)({...i.i,name:"Garnet Testnet",testnet:!0,id:17069,sourceId:17e3,nativeCurrency:{name:"Ether",symbol:"ETH",decimals:18},rpcUrls:{default:{http:["https://rpc.garnetchain.com"],webSocket:["wss://rpc.garnetchain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.garnetchain.com"}},contracts:{...i.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{17e3:{address:"0x57ee40586fbE286AfC75E67cb69511A6D9aF5909",blockCreated:1274684}},l2OutputOracle:{17e3:{address:"0xCb8E7AC561b8EF04F2a15865e9fbc0766FEF569B",blockCreated:1274684}},l1StandardBridge:{17e3:{address:"0x09bcDd311FE398F80a78BE37E489f5D440DB95DE",blockCreated:1274684}}}})},27094:(e,t,s)=>{s.d(t,{g:()=>n});var i=s(21322);let n=(0,s(38596).a)({...i.i,name:"Redstone",id:690,sourceId:1,nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"},rpcUrls:{default:{http:["https://rpc.redstonechain.com"],webSocket:["wss://rpc.redstonechain.com"]}},blockExplorers:{default:{name:"Blockscout",url:"https://explorer.redstone.xyz"}},contracts:{...i.i.contracts,multicall3:{address:"0xca11bde05977b3631167028862be2a173976ca11"},portal:{1:{address:"0xC7bCb0e8839a28A1cFadd1CF716de9016CdA51ae",blockCreated:19578329}},l2OutputOracle:{1:{address:"0xa426A052f657AEEefc298b3B5c35a470e4739d69",blockCreated:19578337}},l1StandardBridge:{1:{address:"0xc473ca7E02af24c129c2eEf51F2aDf0411c1Df69",blockCreated:19578331}}}})},35130:(e,t,s)=>{s.d(t,{b:()=>n});var i=s(44357);class n extends i.G{constructor({address:e}){super(`Address "${e}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}}},44357:(e,t,s)=>{s.d(t,{G:()=>r});let i="2.21.19",n={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:s})=>t?`${e??"https://viem.sh"}${t}${s?`#${s}`:""}`:void 0,version:i};class r extends Error{constructor(e,t={}){let s=t.cause instanceof r?t.cause.details:t.cause?.message?t.cause.message:t.details,o=t.cause instanceof r&&t.cause.docsPath||t.docsPath,a=n.getDocsUrl?.({...t,docsPath:o});super([e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...a?[`Docs: ${a}`]:[],...s?[`Details: ${s}`]:[],...n.version?[`Version: ${n.version}`]:[]].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,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"BaseError"}),this.details=s,this.docsPath=o,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=i}walk(e){return function e(t,s){return s?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,s):s?null:t}(this,e)}}},69535:(e,t,s)=>{s.d(t,{KD:()=>o,T_:()=>n,lQ:()=>r});var i=s(44357);class n extends i.G{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`,{name:"NegativeOffsetError"})}}class r extends i.G{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`,{name:"PositionOutOfBoundsError"})}}class o extends i.G{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`,{name:"RecursiveReadLimitExceededError"})}}},36180:(e,t,s)=>{s.d(t,{$s:()=>r,mV:()=>n});var i=s(44357);class n extends i.G{constructor({offset:e,position:t,size:s}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${s}).`,{name:"SliceOffsetOutOfBoundsError"})}}class r extends i.G{constructor({size:e,targetSize:t,type:s}){super(`${s.charAt(0).toUpperCase()}${s.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:"SizeExceedsPaddingSizeError"})}}},12322:(e,t,s)=>{s.d(t,{Cd:()=>o,J5:()=>n,M6:()=>a,yr:()=>r});var i=s(44357);class n extends i.G{constructor({max:e,min:t,signed:s,size:i,value:n}){super(`Number "${n}" is not in safe ${i?`${8*i}-bit ${s?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:"IntegerOutOfRangeError"})}}class r extends i.G{constructor(e){super(`Bytes value "${e}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}}class o extends i.G{constructor(e){super(`Hex value "${e}" is not a valid boolean. The hex value must be "0x0" (false) or "0x1" (true).`,{name:"InvalidHexBooleanError"})}}class a extends i.G{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:"SizeOverflowError"})}}},21322:(e,t,s)=>{s.d(t,{i:()=>ec});var i=s(1504);function n(e,t){return({exclude:s,format:i})=>({exclude:s,format:e=>{let n=t(e);if(s)for(let e of s)delete n[e];return{...n,...i(e)}},type:e})}let r={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function o(e){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,i.ly)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,i.ly)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?r[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(t.authorizationList=e.authorizationList.map(e=>({contractAddress:e.address,r:e.r,s:e.s,chainId:Number(e.chainId),nonce:Number(e.nonce),...void 0!==e.yParity?{yParity:Number(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:Number(e.v)}:{}}))),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if("bigint"==typeof t.v){if(0n===t.v||27n===t.v)return 0;if(1n===t.v||28n===t.v)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),"legacy"===t.type&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),"eip2930"===t.type&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),"eip1559"===t.type&&delete t.maxFeePerBlobGas,t}let a=n("transaction",o),l=n("block",function(e){let t=e.transactions?.map(e=>"string"==typeof e?e:o(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}});var c=s(8297);let u={"0x0":"reverted","0x1":"success"},h=n("transactionReceipt",function(e){let t={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>(0,c.U)(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,i.ly)(e.transactionIndex):null,status:e.status?u[e.status]:null,type:e.type?r[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}),d={block:l({format:e=>({transactions:e.transactions?.map(e=>{if("string"==typeof e)return e;let t=o(e);return"0x7e"===t.typeHex&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?i.y_(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}),stateRoot:e.stateRoot})}),transaction:a({format(e){let t={};return"0x7e"===e.type&&(t.isSystemTx=e.isSystemTx,t.mint=e.mint?(0,i.y_)(e.mint):void 0,t.sourceHash=e.sourceHash,t.type="deposit"),t}}),transactionReceipt:h({format:e=>({l1GasPrice:e.l1GasPrice?(0,i.y_)(e.l1GasPrice):null,l1GasUsed:e.l1GasUsed?(0,i.y_)(e.l1GasUsed):null,l1Fee:e.l1Fee?(0,i.y_)(e.l1Fee):null,l1FeeScalar:e.l1FeeScalar?Number(e.l1FeeScalar):null})})};var f=s(35130),p=s(99487),b=s(68095),g=s(88090),m=s(44357),y=s(16272),x=s(35217);function v(e,t="hex"){let s=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),s=w(t);return{length:t<=55?1+t:1+s+t,encode(i){for(let{encode:n}of(t<=55?i.pushByte(192+t):(i.pushByte(247+s),1===s?i.pushUint8(t):2===s?i.pushUint16(t):3===s?i.pushUint24(t):i.pushUint32(t)),e))n(i)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,x.nr)(e):e,s=w(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+s+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+s),1===s?e.pushUint8(t.length):2===s?e.pushUint16(t.length):3===s?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),i=(0,y.q)(new Uint8Array(s.length));return(s.encode(i),"hex"===t)?(0,g.ci)(i.bytes):i.bytes}function w(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new m.G("Length is too large.")}let P={ether:-9,wei:9};function I(e,t="wei"){return function(e,t){let s=e.toString(),i=s.startsWith("-");i&&(s=s.slice(1));let[n,r]=[(s=s.padStart(t,"0")).slice(0,s.length-t),s.slice(s.length-t)];return r=r.replace(/(0+)$/,""),`${i?"-":""}${n||"0"}${r?`.${r}`:""}`}(e,P[t])}class $ extends m.G{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`,{name:"InvalidLegacyVError"})}}class G extends m.G{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",function(e){let t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),s=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(s+1)} ${t}`).join("\n")}(e),"}","","To infer the type, either provide:","- a `type` to the Transaction, or","- an EIP-1559 Transaction with `maxFeePerGas`, or","- an EIP-2930 Transaction with `gasPrice` & `accessList`, or","- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or","- an EIP-7702 Transaction with `authorizationList`, or","- a Legacy Transaction with `gasPrice`"],name:"InvalidSerializableTransactionError"})}}class B extends m.G{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`,{name:"InvalidStorageKeySizeError"})}}function U(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,x.nr)(e)):e.blobs,n=[];for(let e of i)n.push(Uint8Array.from(t.blobToKzgCommitment(e)));return"bytes"===s?n:n.map(e=>(0,g.ci)(e))}function E(e){let{kzg:t}=e,s=e.to??("string"==typeof e.blobs[0]?"hex":"bytes"),i="string"==typeof e.blobs[0]?e.blobs.map(e=>(0,x.nr)(e)):e.blobs,n="string"==typeof e.commitments[0]?e.commitments.map(e=>(0,x.nr)(e)):e.commitments,r=[];for(let e=0;e<i.length;e++){let s=i[e],o=n[e];r.push(Uint8Array.from(t.computeBlobKzgProof(s,o)))}return"bytes"===s?r:r.map(e=>(0,g.ci)(e))}var C=s(20080),N=s(37290);let z=(e,t,s)=>e&t^~e&s,k=(e,t,s)=>e&t^e&s^t&s;class F extends N.kb{constructor(e,t,s,i){super(),this.blockLen=e,this.outputLen=t,this.padOffset=s,this.isLE=i,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,N.GL)(this.buffer)}update(e){(0,C.Gg)(this);let{view:t,buffer:s,blockLen:i}=this,n=(e=(0,N.O0)(e)).length;for(let r=0;r<n;){let o=Math.min(i-this.pos,n-r);if(o===i){let t=(0,N.GL)(e);for(;i<=n-r;r+=i)this.process(t,r);continue}s.set(e.subarray(r,r+o),this.pos),this.pos+=o,r+=o,this.pos===i&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,C.Gg)(this),(0,C.J8)(e,this),this.finished=!0;let{buffer:t,view:s,blockLen:i,isLE:n}=this,{pos:r}=this;t[r++]=128,this.buffer.subarray(r).fill(0),this.padOffset>i-r&&(this.process(s,0),r=0);for(let e=r;e<i;e++)t[e]=0;(function(e,t,s,i){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,s,i);let n=BigInt(32),r=BigInt(4294967295),o=Number(s>>n&r),a=Number(s&r),l=i?4:0,c=i?0:4;e.setUint32(t+l,o,i),e.setUint32(t+c,a,i)})(s,i-8,BigInt(8*this.length),n),this.process(s,0);let o=(0,N.GL)(e),a=this.outputLen;if(a%4)throw Error("_sha2: outputLen should be aligned to 32bit");let l=a/4,c=this.get();if(l>c.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<l;e++)o.setUint32(4*e,c[e],n)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let s=e.slice(0,t);return this.destroy(),s}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:s,length:i,finished:n,destroyed:r,pos:o}=this;return e.length=i,e.pos=o,e.finished=n,e.destroyed=r,i%t&&e.buffer.set(s),e}}let A=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),O=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),L=new Uint32Array(64);class T extends F{constructor(){super(64,32,8,!1),this.A=0|O[0],this.B=0|O[1],this.C=0|O[2],this.D=0|O[3],this.E=0|O[4],this.F=0|O[5],this.G=0|O[6],this.H=0|O[7]}get(){let{A:e,B:t,C:s,D:i,E:n,F:r,G:o,H:a}=this;return[e,t,s,i,n,r,o,a]}set(e,t,s,i,n,r,o,a){this.A=0|e,this.B=0|t,this.C=0|s,this.D=0|i,this.E=0|n,this.F=0|r,this.G=0|o,this.H=0|a}process(e,t){for(let s=0;s<16;s++,t+=4)L[s]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=L[e-15],s=L[e-2],i=(0,N.np)(t,7)^(0,N.np)(t,18)^t>>>3,n=(0,N.np)(s,17)^(0,N.np)(s,19)^s>>>10;L[e]=n+L[e-7]+i+L[e-16]|0}let{A:s,B:i,C:n,D:r,E:o,F:a,G:l,H:c}=this;for(let e=0;e<64;e++){let t=c+((0,N.np)(o,6)^(0,N.np)(o,11)^(0,N.np)(o,25))+z(o,a,l)+A[e]+L[e]|0,u=((0,N.np)(s,2)^(0,N.np)(s,13)^(0,N.np)(s,22))+k(s,i,n)|0;c=l,l=a,a=o,o=r+t|0,r=n,n=i,i=s,s=t+u|0}s=s+this.A|0,i=i+this.B|0,n=n+this.C|0,r=r+this.D|0,o=o+this.E|0,a=a+this.F|0,l=l+this.G|0,c=c+this.H|0,this.set(s,i,n,r,o,a,l,c)}roundClean(){L.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let S=(0,N.hE)(()=>new T);var M=s(56928);class R extends m.G{constructor({maxSize:e,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}}class H extends m.G{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}}class V extends m.G{constructor({hash:e,size:t}){super(`Versioned hash "${e}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}}class j extends m.G{constructor({hash:e,version:t}){super(`Versioned hash "${e}" version is invalid.`,{metaMessages:["Expected: 1",`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}}var D=s(41399),_=s(65484);let q=2n**256n-1n;class X extends m.G{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}" is invalid.`:"Chain ID is invalid.",{name:"InvalidChainIdError"})}}class Y extends m.G{constructor({cause:e,message:t}={}){let s=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${s?`with reason: ${s}`:"for an unknown reason"}.`,{cause:e,name:"ExecutionRevertedError"})}}Object.defineProperty(Y,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(Y,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class J extends m.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${I(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:"FeeCapTooHighError"})}}Object.defineProperty(J,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});class K extends m.G{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${I(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e,name:"FeeCapTooLowError"})}}Object.defineProperty(K,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class Q extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e,name:"NonceTooHighError"})}}Object.defineProperty(Q,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class W extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account.
|
|
2
|
+
Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e,name:"NonceTooLowError"})}}Object.defineProperty(W,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class Z extends m.G{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e,name:"NonceMaxValueError"})}}Object.defineProperty(Z,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class ee extends m.G{constructor({cause:e}={}){super("The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.",{cause:e,metaMessages:["This error could arise when the account does not have enough funds to:"," - pay for the total gas fee,"," - pay for the value to send."," ","The cost of the transaction is calculated as `gas * gas fee + value`, where:"," - `gas` is the amount of gas needed for transaction to execute,"," - `gas fee` is the gas fee,"," - `value` is the amount of ether to send to the recipient."],name:"InsufficientFundsError"})}}Object.defineProperty(ee,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class et extends m.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:"IntrinsicGasTooHighError"})}}Object.defineProperty(et,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class es extends m.G{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e,name:"IntrinsicGasTooLowError"})}}Object.defineProperty(es,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class ei extends m.G{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e,name:"TransactionTypeNotSupportedError"})}}Object.defineProperty(ei,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class en extends m.G{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:s}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${I(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${s?` = ${I(s)} gwei`:""}).`,{cause:e,name:"TipAboveFeeCapError"})}}Object.defineProperty(en,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});var er=s(19611);function eo(e){let{chainId:t,maxPriorityFeePerGas:s,maxFeePerGas:i,to:n}=e;if(t<=0)throw new X({chainId:t});if(n&&!(0,p.U)(n))throw new f.b({address:n});if(i&&i>q)throw new J({maxFeePerGas:i});if(s&&i&&s>i)throw new en({maxFeePerGas:i,maxPriorityFeePerGas:s})}function ea(e){if(!e||0===e.length)return[];let t=[];for(let s=0;s<e.length;s++){let{address:i,storageKeys:n}=e[s];for(let e=0;e<n.length;e++)if(n[e].length-2!=64)throw new B({storageKey:n[e]});if(!(0,p.U)(i,{strict:!1}))throw new f.b({address:i});t.push([i,n])}return t}function el(e,t){let s=t??e,{v:i,yParity:n}=s;if(void 0===s.r||void 0===s.s||void 0===i&&void 0===n)return[];let r=(0,_.f)(s.r),o=(0,_.f)(s.s);return["number"==typeof n?n?(0,g.NC)(1):"0x":0n===i?"0x":1n===i?(0,g.NC)(1):27n===i?"0x":(0,g.NC)(1),"0x00"===r?"0x":r,"0x00"===o?"0x":o]}let ec={contracts:{gasPriceOracle:{address:"0x420000000000000000000000000000000000000F"},l1Block:{address:"0x4200000000000000000000000000000000000015"},l2CrossDomainMessenger:{address:"0x4200000000000000000000000000000000000007"},l2Erc721Bridge:{address:"0x4200000000000000000000000000000000000014"},l2StandardBridge:{address:"0x4200000000000000000000000000000000000010"},l2ToL1MessagePasser:{address:"0x4200000000000000000000000000000000000016"}},formatters:d,serializers:{transaction:function(e,t){return"deposit"===e.type||void 0!==e.sourceHash?function(e){(function(e){let{from:t,to:s}=e;if(t&&!(0,p.U)(t))throw new f.b({address:t});if(s&&!(0,p.U)(s))throw new f.b({address:s})})(e);let{sourceHash:t,data:s,from:i,gas:n,isSystemTx:r,mint:o,to:a,value:l}=e,c=[t,i,a??"0x",o?(0,g.NC)(o):"0x",l?(0,g.NC)(l):"0x",n?(0,g.NC)(n):"0x",r?"0x1":"0x",s??"0x"];return(0,b.SM)(["0x7e",v(c)])}(e):function(e,t){let s=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return"eip7702";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return"eip4844";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return"eip1559";if(void 0!==e.gasPrice)return void 0!==e.accessList?"eip2930":"legacy";throw new G({transaction:e})}(e);return"eip1559"===s?function(e,t){let{chainId:s,gas:i,nonce:n,to:r,value:o,maxFeePerGas:a,maxPriorityFeePerGas:l,accessList:c,data:u}=e;eo(e);let h=ea(c),d=[(0,g.NC)(s),n?(0,g.NC)(n):"0x",l?(0,g.NC)(l):"0x",a?(0,g.NC)(a):"0x",i?(0,g.NC)(i):"0x",r??"0x",o?(0,g.NC)(o):"0x",u??"0x",h,...el(e,t)];return(0,b.SM)(["0x02",v(d)])}(e,t):"eip2930"===s?function(e,t){let{chainId:s,gas:i,data:n,nonce:r,to:o,value:a,accessList:l,gasPrice:c}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:i,maxFeePerGas:n,to:r}=e;if(t<=0)throw new X({chainId:t});if(r&&!(0,p.U)(r))throw new f.b({address:r});if(s||n)throw new m.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(i&&i>q)throw new J({maxFeePerGas:i})}(e);let u=ea(l),h=[(0,g.NC)(s),r?(0,g.NC)(r):"0x",c?(0,g.NC)(c):"0x",i?(0,g.NC)(i):"0x",o??"0x",a?(0,g.NC)(a):"0x",n??"0x",u,...el(e,t)];return(0,b.SM)(["0x01",v(h)])}(e,t):"eip4844"===s?function(e,t){let{chainId:s,gas:n,nonce:r,to:o,value:a,maxFeePerBlobGas:l,maxFeePerGas:c,maxPriorityFeePerGas:u,accessList:h,data:d}=e;!function(e){let{blobVersionedHashes:t}=e;if(t){if(0===t.length)throw new H;for(let e of t){let t=(0,D.d)(e),s=(0,i.ly)((0,er.tP)(e,0,1));if(32!==t)throw new V({hash:e,size:t});if(1!==s)throw new j({hash:e,version:s})}}eo(e)}(e);let f=e.blobVersionedHashes,p=e.sidecars;if(e.blobs&&(void 0===f||void 0===p)){let t="string"==typeof e.blobs[0]?e.blobs:e.blobs.map(e=>(0,g.ci)(e)),s=e.kzg,i=U({blobs:t,kzg:s});if(void 0===f&&(f=function(e){let{commitments:t,version:s}=e,i=e.to??("string"==typeof t[0]?"hex":"bytes"),n=[];for(let e of t)n.push(function(e){let{commitment:t,version:s=1}=e,i=e.to??("string"==typeof t?"hex":"bytes"),n=function(e,t){let s=S((0,M.v)(e,{strict:!1})?(0,x.O0)(e):e);return"bytes"===(t||"hex")?s:(0,g.NC)(s)}(t,"bytes");return n.set([s],0),"bytes"===i?n:(0,g.ci)(n)}({commitment:e,to:i,version:s}));return n}({commitments:i})),void 0===p){let e=E({blobs:t,commitments:i,kzg:s});p=function(e){let{data:t,kzg:s,to:i}=e,n=e.blobs??function(e){let t=e.to??("string"==typeof e.data?"hex":"bytes"),s="string"==typeof e.data?(0,x.nr)(e.data):e.data,i=(0,D.d)(s);if(!i)throw new H;if(i>761855)throw new R({maxSize:761855,size:i});let n=[],r=!0,o=0;for(;r;){let e=(0,y.q)(new Uint8Array(131072)),t=0;for(;t<4096;){let i=s.slice(o,o+31);if(e.pushByte(0),e.pushBytes(i),i.length<31){e.pushByte(128),r=!1;break}t++,o+=31}n.push(e)}return"bytes"===t?n.map(e=>e.bytes):n.map(e=>(0,g.ci)(e.bytes))}({data:t,to:i}),r=e.commitments??U({blobs:n,kzg:s,to:i}),o=e.proofs??E({blobs:n,commitments:r,kzg:s,to:i}),a=[];for(let e=0;e<n.length;e++)a.push({blob:n[e],commitment:r[e],proof:o[e]});return a}({blobs:t,commitments:i,proofs:e})}}let m=ea(h),w=[(0,g.NC)(s),r?(0,g.NC)(r):"0x",u?(0,g.NC)(u):"0x",c?(0,g.NC)(c):"0x",n?(0,g.NC)(n):"0x",o??"0x",a?(0,g.NC)(a):"0x",d??"0x",m,l?(0,g.NC)(l):"0x",f??[],...el(e,t)],P=[],I=[],$=[];if(p)for(let e=0;e<p.length;e++){let{blob:t,commitment:s,proof:i}=p[e];P.push(t),I.push(s),$.push(i)}return(0,b.SM)(["0x03",p?v([w,P,I,$]):v(w)])}(e,t):"eip7702"===s?function(e,t){let{authorizationList:s,chainId:i,gas:n,nonce:r,to:o,value:a,maxFeePerGas:l,maxPriorityFeePerGas:c,accessList:u,data:h}=e;!function(e){let{authorizationList:t}=e;if(t)for(let e of t){let{contractAddress:t,chainId:s}=e;if(!(0,p.U)(t))throw new f.b({address:t});if(s<=0)throw new X({chainId:s})}eo(e)}(e);let d=ea(u),m=function(e){if(!e||0===e.length)return[];let t=[];for(let s of e){let{contractAddress:e,chainId:i,nonce:n,...r}=s;t.push([(0,g.NC)(i),e,n?(0,g.NC)(n):"0x",...el({},r)])}return t}(s);return(0,b.SM)(["0x04",v([(0,g.NC)(i),r?(0,g.NC)(r):"0x",c?(0,g.NC)(c):"0x",l?(0,g.NC)(l):"0x",n?(0,g.NC)(n):"0x",o??"0x",a?(0,g.NC)(a):"0x",h??"0x",d,m,...el(e,t)])])}(e,t):function(e,t){let{chainId:s=0,gas:i,data:n,nonce:r,to:o,value:a,gasPrice:l}=e;!function(e){let{chainId:t,maxPriorityFeePerGas:s,gasPrice:i,maxFeePerGas:n,to:r}=e;if(r&&!(0,p.U)(r))throw new f.b({address:r});if(void 0!==t&&t<=0)throw new X({chainId:t});if(s||n)throw new m.G("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(i&&i>q)throw new J({maxFeePerGas:i})}(e);let c=[r?(0,g.NC)(r):"0x",l?(0,g.NC)(l):"0x",i?(0,g.NC)(i):"0x",o??"0x",a?(0,g.NC)(a):"0x",n??"0x"];if(t){let e=(()=>{if(t.v>=35n)return(t.v-35n)/2n>0?t.v:27n+(35n===t.v?0n:1n);if(s>0)return BigInt(2*s)+BigInt(35n+t.v-27n);let e=27n+(27n===t.v?0n:1n);if(t.v!==e)throw new $({v:t.v});return e})(),i=(0,_.f)(t.r),n=(0,_.f)(t.s);c=[...c,(0,g.NC)(e),"0x00"===i?"0x":i,"0x00"===n?"0x":n]}else s>0&&(c=[...c,(0,g.NC)(s),"0x","0x"]);return v(c)}(e,t)}(e,t)}}}},76670:(e,t,s)=>{s.d(t,{K:()=>u,x:()=>c});var i=s(35130),n=s(35217),r=s(50916),o=s(5898),a=s(99487);let l=new o.k(8192);function c(e,t){if(l.has(`${e}.${t}`))return l.get(`${e}.${t}`);let s=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),i=(0,r.w)((0,n.qX)(s),"bytes"),o=(t?s.substring(`${t}0x`.length):s).split("");for(let e=0;e<40;e+=2)i[e>>1]>>4>=8&&o[e]&&(o[e]=o[e].toUpperCase()),(15&i[e>>1])>=8&&o[e+1]&&(o[e+1]=o[e+1].toUpperCase());let a=`0x${o.join("")}`;return l.set(`${e}.${t}`,a),a}function u(e,t){if(!(0,a.U)(e,{strict:!1}))throw new i.b({address:e});return c(e,t)}},99487:(e,t,s)=>{s.d(t,{U:()=>a});var i=s(5898),n=s(76670);let r=/^0x[a-fA-F0-9]{40}$/,o=new i.k(8192);function a(e,t){let{strict:s=!0}=t??{},i=`${e}.${s}`;if(o.has(i))return o.get(i);let a=!!r.test(e)&&(e.toLowerCase()===e||!s||(0,n.x)(e)===e);return o.set(i,a),a}},38596:(e,t,s)=>{s.d(t,{a:()=>i});function i(e){return{formatters:void 0,fees:void 0,serializers:void 0,...e}}},16272:(e,t,s)=>{s.d(t,{q:()=>r});var i=s(69535);let n={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new i.KD({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new i.lQ({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new i.T_({offset:e});let t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new i.T_({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let s=t??this.position;return this.assertPosition(s+e-1),this.bytes.subarray(s,s+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let s=this.inspectBytes(e);return this.position+=t??e,s},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function r(e,{recursiveReadLimit:t=8192}={}){let s=Object.create(n);return s.bytes=e,s.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),s.positionReadCount=new Map,s.recursiveReadLimit=t,s}},68095:(e,t,s)=>{function i(e){return"string"==typeof e[0]?n(e):function(e){let t=0;for(let s of e)t+=s.length;let s=new Uint8Array(t),i=0;for(let t of e)s.set(t,i),i+=t.length;return s}(e)}function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}s.d(t,{SM:()=>n,zo:()=>i})},56928:(e,t,s)=>{s.d(t,{v:()=>i});function i(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}},77157:(e,t,s)=>{s.d(t,{gc:()=>r,vk:()=>n});var i=s(36180);function n(e,{dir:t,size:s=32}={}){return"string"==typeof e?r(e,{dir:t,size:s}):function(e,{dir:t,size:s=32}={}){if(null===s)return e;if(e.length>s)throw new i.$s({size:e.length,targetSize:s,type:"bytes"});let n=new Uint8Array(s);for(let i=0;i<s;i++){let r="right"===t;n[r?i:s-i-1]=e[r?i:e.length-i-1]}return n}(e,{dir:t,size:s})}function r(e,{dir:t,size:s=32}={}){if(null===s)return e;let n=e.replace("0x","");if(n.length>2*s)throw new i.$s({size:Math.ceil(n.length/2),targetSize:s,type:"hex"});return`0x${n["right"===t?"padEnd":"padStart"](2*s,"0")}`}},41399:(e,t,s)=>{s.d(t,{d:()=>n});var i=s(56928);function n(e){return(0,i.v)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},19611:(e,t,s)=>{s.d(t,{T4:()=>c,p5:()=>u,tP:()=>o});var i=s(36180),n=s(56928),r=s(41399);function o(e,t,s,{strict:i}={}){return(0,n.v)(e,{strict:!1})?u(e,t,s,{strict:i}):c(e,t,s,{strict:i})}function a(e,t){if("number"==typeof t&&t>0&&t>(0,r.d)(e)-1)throw new i.mV({offset:t,position:"start",size:(0,r.d)(e)})}function l(e,t,s){if("number"==typeof t&&"number"==typeof s&&(0,r.d)(e)!==s-t)throw new i.mV({offset:s,position:"end",size:(0,r.d)(e)})}function c(e,t,s,{strict:i}={}){a(e,t);let n=e.slice(t,s);return i&&l(n,t,s),n}function u(e,t,s,{strict:i}={}){a(e,t);let n=`0x${e.replace("0x","").slice((t??0)*2,(s??e.length)*2)}`;return i&&l(n,t,s),n}},65484:(e,t,s)=>{s.d(t,{f:()=>i});function i(e,{dir:t="left"}={}){let s="string"==typeof e?e.replace("0x",""):e,i=0;for(let e=0;e<s.length-1&&"0"===s["left"===t?e:s.length-e-1].toString();e++)i++;return(s="left"===t?s.slice(i):s.slice(0,s.length-i),"string"==typeof e)?(1===s.length&&"right"===t&&(s=`${s}0`),`0x${s.length%2==1?`0${s}`:s}`):s}},1504:(e,t,s)=>{s.d(t,{XA:()=>c,Yf:()=>a,ly:()=>u,rR:()=>h,y_:()=>l});var i=s(12322),n=s(41399),r=s(65484),o=s(35217);function a(e,{size:t}){if((0,n.d)(e)>t)throw new i.M6({givenSize:(0,n.d)(e),maxSize:t})}function l(e,t={}){let{signed:s}=t;t.size&&a(e,{size:t.size});let i=BigInt(e);if(!s)return i;let n=(e.length-2)/2;return i<=(1n<<8n*BigInt(n)-1n)-1n?i:i-BigInt(`0x${"f".padStart(2*n,"f")}`)-1n}function c(e,t={}){let s=e;if(t.size&&(a(s,{size:t.size}),s=(0,r.f)(s)),"0x00"===(0,r.f)(s))return!1;if("0x01"===(0,r.f)(s))return!0;throw new i.Cd(s)}function u(e,t={}){return Number(l(e,t))}function h(e,t={}){let s=(0,o.nr)(e);return t.size&&(a(s,{size:t.size}),s=(0,r.f)(s,{dir:"right"})),new TextDecoder().decode(s)}},35217:(e,t,s)=>{s.d(t,{O0:()=>c,nr:()=>d,qX:()=>f});var i=s(44357),n=s(56928),r=s(77157),o=s(1504),a=s(88090);let l=new TextEncoder;function c(e,t={}){return"number"==typeof e||"bigint"==typeof e?d((0,a.eC)(e,t)):"boolean"==typeof e?function(e,t={}){let s=new Uint8Array(1);return(s[0]=Number(e),"number"==typeof t.size)?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{size:t.size})):s}(e,t):(0,n.v)(e)?d(e,t):f(e,t)}let u={zero:48,nine:57,A:65,F:70,a:97,f:102};function h(e){return e>=u.zero&&e<=u.nine?e-u.zero:e>=u.A&&e<=u.F?e-(u.A-10):e>=u.a&&e<=u.f?e-(u.a-10):void 0}function d(e,t={}){let s=e;t.size&&((0,o.Yf)(s,{size:t.size}),s=(0,r.vk)(s,{dir:"right",size:t.size}));let n=s.slice(2);n.length%2&&(n=`0${n}`);let a=n.length/2,l=new Uint8Array(a);for(let e=0,t=0;e<a;e++){let s=h(n.charCodeAt(t++)),r=h(n.charCodeAt(t++));if(void 0===s||void 0===r)throw new i.G(`Invalid byte sequence ("${n[t-2]}${n[t-1]}" in "${n}").`);l[e]=16*s+r}return l}function f(e,t={}){let s=l.encode(e);return"number"==typeof t.size?((0,o.Yf)(s,{size:t.size}),(0,r.vk)(s,{dir:"right",size:t.size})):s}},88090:(e,t,s)=>{s.d(t,{$G:()=>d,C4:()=>l,NC:()=>a,ci:()=>c,eC:()=>u});var i=s(12322),n=s(77157),r=s(1504);let o=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function a(e,t={}){return"number"==typeof e||"bigint"==typeof e?u(e,t):"string"==typeof e?d(e,t):"boolean"==typeof e?l(e,t):c(e,t)}function l(e,t={}){let s=`0x${Number(e)}`;return"number"==typeof t.size?((0,r.Yf)(s,{size:t.size}),(0,n.vk)(s,{size:t.size})):s}function c(e,t={}){let s="";for(let t=0;t<e.length;t++)s+=o[e[t]];let i=`0x${s}`;return"number"==typeof t.size?((0,r.Yf)(i,{size:t.size}),(0,n.vk)(i,{dir:"right",size:t.size})):i}function u(e,t={}){let s;let{signed:r,size:o}=t,a=BigInt(e);o?s=r?(1n<<8n*BigInt(o)-1n)-1n:2n**(8n*BigInt(o))-1n:"number"==typeof e&&(s=BigInt(Number.MAX_SAFE_INTEGER));let l="bigint"==typeof s&&r?-s-1n:0;if(s&&a>s||a<l){let t="bigint"==typeof e?"n":"";throw new i.J5({max:s?`${s}${t}`:void 0,min:`${l}${t}`,signed:r,size:o,value:`${e}${t}`})}let c=`0x${(r&&a<0?(1n<<BigInt(8*o))+BigInt(a):a).toString(16)}`;return o?(0,n.vk)(c,{size:o}):c}let h=new TextEncoder;function d(e,t={}){return c(h.encode(e),t)}},8297:(e,t,s)=>{s.d(t,{U:()=>i});function i(e,{args:t,eventName:s}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...s?{args:t,eventName:s}:{}}}},50916:(e,t,s)=>{s.d(t,{w:()=>C});var i=s(20080);let n=BigInt(4294967296-1),r=BigInt(32),o=(e,t,s)=>e<<s|t>>>32-s,a=(e,t,s)=>t<<s|e>>>32-s,l=(e,t,s)=>t<<s-32|e>>>64-s,c=(e,t,s)=>e<<s-32|t>>>64-s;var u=s(37290);let h=[],d=[],f=[],p=BigInt(0),b=BigInt(1),g=BigInt(2),m=BigInt(7),y=BigInt(256),x=BigInt(113);for(let e=0,t=b,s=1,i=0;e<24;e++){[s,i]=[i,(2*s+3*i)%5],h.push(2*(5*i+s)),d.push((e+1)*(e+2)/2%64);let n=p;for(let e=0;e<7;e++)(t=(t<<b^(t>>m)*x)%y)&g&&(n^=b<<(b<<BigInt(e))-b);f.push(n)}let[v,w]=function(e,t=!1){let s=new Uint32Array(e.length),i=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:a,l}=function(e,t=!1){return t?{h:Number(e&n),l:Number(e>>r&n)}:{h:0|Number(e>>r&n),l:0|Number(e&n)}}(e[o],t);[s[o],i[o]]=[a,l]}return[s,i]}(f,!0),P=(e,t,s)=>s>32?l(e,t,s):o(e,t,s),I=(e,t,s)=>s>32?c(e,t,s):a(e,t,s);class $ extends u.kb{constructor(e,t,s,n=!1,r=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=s,this.enableXOF=n,this.rounds=r,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,(0,i.Rx)(s),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(0,u.Jq)(this.state)}keccak(){u.iA||(0,u.l1)(this.state32),function(e,t=24){let s=new Uint32Array(10);for(let i=24-t;i<24;i++){for(let t=0;t<10;t++)s[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let i=(t+8)%10,n=(t+2)%10,r=s[n],o=s[n+1],a=P(r,o,1)^s[i],l=I(r,o,1)^s[i+1];for(let s=0;s<50;s+=10)e[t+s]^=a,e[t+s+1]^=l}let t=e[2],n=e[3];for(let s=0;s<24;s++){let i=d[s],r=P(t,n,i),o=I(t,n,i),a=h[s];t=e[a],n=e[a+1],e[a]=r,e[a+1]=o}for(let t=0;t<50;t+=10){for(let i=0;i<10;i++)s[i]=e[t+i];for(let i=0;i<10;i++)e[t+i]^=~s[(i+2)%10]&s[(i+4)%10]}e[0]^=v[i],e[1]^=w[i]}s.fill(0)}(this.state32,this.rounds),u.iA||(0,u.l1)(this.state32),this.posOut=0,this.pos=0}update(e){(0,i.Gg)(this);let{blockLen:t,state:s}=this,n=(e=(0,u.O0)(e)).length;for(let i=0;i<n;){let r=Math.min(t-this.pos,n-i);for(let t=0;t<r;t++)s[this.pos++]^=e[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:e,suffix:t,pos:s,blockLen:i}=this;e[s]^=t,(128&t)!=0&&s===i-1&&this.keccak(),e[i-1]^=128,this.keccak()}writeInto(e){(0,i.Gg)(this,!1),(0,i.aI)(e),this.finish();let t=this.state,{blockLen:s}=this;for(let i=0,n=e.length;i<n;){this.posOut>=s&&this.keccak();let r=Math.min(s-this.posOut,n-i);e.set(t.subarray(this.posOut,this.posOut+r),i),this.posOut+=r,i+=r}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return(0,i.Rx)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,i.J8)(e,this),this.finished)throw Error("digest() was already called");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(e){let{blockLen:t,suffix:s,outputLen:i,rounds:n,enableXOF:r}=this;return e||(e=new $(t,s,i,r,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=s,e.outputLen=i,e.enableXOF=r,e.destroyed=this.destroyed,e}}let G=(0,u.hE)(()=>new $(136,1,32));var B=s(56928),U=s(35217),E=s(88090);function C(e,t){let s=G((0,B.v)(e,{strict:!1})?(0,U.O0)(e):e);return"bytes"===(t||"hex")?s:(0,E.NC)(s)}},5898:(e,t,s)=>{s.d(t,{k:()=>i});class i 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}}}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/
|
|
1
|
+
self.__BUILD_MANIFEST={polyfillFiles:["static/chunks/polyfills-78c92fac7aa8fdd8.js"],devFiles:[],ampDevFiles:[],lowPriorityFiles:["static/jw1ZnKfnq9aXOTU3iK_H2/_buildManifest.js","static/jw1ZnKfnq9aXOTU3iK_H2/_ssgManifest.js"],rootMainFiles:["static/chunks/webpack-a0d592effc1fc533.js","static/chunks/daf1f047-a3c28a0a13479669.js","static/chunks/8781-7ab719d89e190972.js","static/chunks/main-app-462ae4cbda6f025a.js"],pages:{"/_app":["static/chunks/webpack-a0d592effc1fc533.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-35b856a9841ab2f4.js","static/chunks/pages/_app-e16cc7beb342f9a1.js"],"/_error":["static/chunks/webpack-a0d592effc1fc533.js","static/chunks/framework-af9b1d45774ad36d.js","static/chunks/main-35b856a9841ab2f4.js","static/chunks/pages/_error-59031a98aa832252.js"]},ampFirstPages:[]};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a0d592effc1fc533.js"/><script src="/_next/static/chunks/daf1f047-a3c28a0a13479669.js" async=""></script><script src="/_next/static/chunks/8781-7ab719d89e190972.js" async=""></script><script src="/_next/static/chunks/main-app-462ae4cbda6f025a.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-a0d592effc1fc533.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[32216,[],\"\"]\n3:I[16022,[],\"\"]\n4:I[86321,[],\"\"]\na:I[50641,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="preload" as="script" fetchPriority="low" href="/_next/static/chunks/webpack-a0d592effc1fc533.js"/><script src="/_next/static/chunks/daf1f047-a3c28a0a13479669.js" async=""></script><script src="/_next/static/chunks/8781-7ab719d89e190972.js" async=""></script><script src="/_next/static/chunks/main-app-462ae4cbda6f025a.js" async=""></script><meta name="robots" content="noindex"/><title>404: This page could not be found.</title><meta name="next-size-adjust"/><script src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js" noModule=""></script></head><body><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding:0 23px 0 0;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found.</h2></div></div></div><script src="/_next/static/chunks/webpack-a0d592effc1fc533.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0]);self.__next_f.push([2,null])</script><script>self.__next_f.push([1,"1:I[32216,[],\"\"]\n3:I[16022,[],\"\"]\n4:I[86321,[],\"\"]\na:I[50641,[],\"\"]\n5:{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"}\n6:{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"}\n7:{\"display\":\"inline-block\"}\n8:{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0}\nb:[]\n"])</script><script>self.__next_f.push([1,"0:[null,[\"$\",\"$L1\",null,{\"buildId\":\"jw1ZnKfnq9aXOTU3iK_H2\",\"assetPrefix\":\"\",\"initialCanonicalUrl\":\"/_not-found\",\"initialTree\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{}]}]},\"$undefined\",\"$undefined\",true],\"initialSeedData\":[\"\",{\"children\":[\"/_not-found\",{\"children\":[\"__PAGE__\",{},[[\"$L2\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]],null],null]},[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\",\"/_not-found\",\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"styles\":null}],null]},[[\"$\",\"html\",null,{\"children\":[\"$\",\"body\",null,{\"children\":[\"$\",\"$L3\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"errorScripts\":\"$undefined\",\"template\":[\"$\",\"$L4\",null,{}],\"templateStyles\":\"$undefined\",\"templateScripts\":\"$undefined\",\"notFound\":[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":\"$5\",\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":\"$6\",\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":\"$7\",\"children\":[\"$\",\"h2\",null,{\"style\":\"$8\",\"children\":\"This page could not be found.\"}]}]]}]}]],\"notFoundStyles\":[],\"styles\":null}]}]}],null],null],\"couldBeIntercepted\":false,\"initialHead\":[[\"$\",\"meta\",null,{\"name\":\"robots\",\"content\":\"noindex\"}],\"$L9\"],\"globalErrorComponent\":\"$a\",\"missingSlots\":\"$Wb\"}]]\n"])</script><script>self.__next_f.push([1,"9:[[\"$\",\"meta\",\"0\",{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],[\"$\",\"meta\",\"1\",{\"charSet\":\"utf-8\"}],[\"$\",\"meta\",\"2\",{\"name\":\"next-size-adjust\"}]]\n2:null\n"])</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-a0d592effc1fc533.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-35b856a9841ab2f4.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e16cc7beb342f9a1.js" defer=""></script><script src="/_next/static/chunks/pages/_error-59031a98aa832252.js" defer=""></script><script src="/_next/static/
|
|
1
|
+
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>500: Internal Server Error</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/_next/static/chunks/polyfills-78c92fac7aa8fdd8.js"></script><script src="/_next/static/chunks/webpack-a0d592effc1fc533.js" defer=""></script><script src="/_next/static/chunks/framework-af9b1d45774ad36d.js" defer=""></script><script src="/_next/static/chunks/main-35b856a9841ab2f4.js" defer=""></script><script src="/_next/static/chunks/pages/_app-e16cc7beb342f9a1.js" defer=""></script><script src="/_next/static/chunks/pages/_error-59031a98aa832252.js" defer=""></script><script src="/_next/static/jw1ZnKfnq9aXOTU3iK_H2/_buildManifest.js" defer=""></script><script src="/_next/static/jw1ZnKfnq9aXOTU3iK_H2/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div style="line-height:48px"><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top">500</h1><div style="display:inline-block"><h2 style="font-size:14px;font-weight:400;line-height:28px">Internal Server Error<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":500}},"page":"/_error","query":{},"buildId":"jw1ZnKfnq9aXOTU3iK_H2","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"
|
|
1
|
+
self.__RSC_SERVER_MANIFEST="{\"node\":{},\"edge\":{},\"encryptionKey\":\"RJqVN2eKX00MUjY04R+hWC/XvztN0Q1MuUSUo0u9jlE=\"}"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"node":{},"edge":{},"encryptionKey":"
|
|
1
|
+
{"node":{},"edge":{},"encryptionKey":"RJqVN2eKX00MUjY04R+hWC/XvztN0Q1MuUSUo0u9jlE="}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5168],{65480:function(e){"use strict";var t=Object.prototype.hasOwnProperty,n="~";function r(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,r,i,s){if("function"!=typeof r)throw TypeError("The listener must be a function");var o=new a(r,i||e,s),c=n?n+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],o]:e._events[c].push(o):(e._events[c]=o,e._eventsCount++),e}function s(e,t){0==--e._eventsCount?e._events=new r:delete e._events[t]}function o(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1)),o.prototype.eventNames=function(){var e,r,a=[];if(0===this._eventsCount)return a;for(r in e=this._events)t.call(e,r)&&a.push(n?r.slice(1):r);return Object.getOwnPropertySymbols?a.concat(Object.getOwnPropertySymbols(e)):a},o.prototype.listeners=function(e){var t=n?n+e:e,r=this._events[t];if(!r)return[];if(r.fn)return[r.fn];for(var a=0,i=r.length,s=Array(i);a<i;a++)s[a]=r[a].fn;return s},o.prototype.listenerCount=function(e){var t=n?n+e:e,r=this._events[t];return r?r.fn?1:r.length:0},o.prototype.emit=function(e,t,r,a,i,s){var o=n?n+e:e;if(!this._events[o])return!1;var c,u,d=this._events[o],l=arguments.length;if(d.fn){switch(d.once&&this.removeListener(e,d.fn,void 0,!0),l){case 1:return d.fn.call(d.context),!0;case 2:return d.fn.call(d.context,t),!0;case 3:return d.fn.call(d.context,t,r),!0;case 4:return d.fn.call(d.context,t,r,a),!0;case 5:return d.fn.call(d.context,t,r,a,i),!0;case 6:return d.fn.call(d.context,t,r,a,i,s),!0}for(u=1,c=Array(l-1);u<l;u++)c[u-1]=arguments[u];d.fn.apply(d.context,c)}else{var h,p=d.length;for(u=0;u<p;u++)switch(d[u].once&&this.removeListener(e,d[u].fn,void 0,!0),l){case 1:d[u].fn.call(d[u].context);break;case 2:d[u].fn.call(d[u].context,t);break;case 3:d[u].fn.call(d[u].context,t,r);break;case 4:d[u].fn.call(d[u].context,t,r,a);break;default:if(!c)for(h=1,c=Array(l-1);h<l;h++)c[h-1]=arguments[h];d[u].fn.apply(d[u].context,c)}}return!0},o.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},o.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},o.prototype.removeListener=function(e,t,r,a){var i=n?n+e:e;if(!this._events[i])return this;if(!t)return s(this,i),this;var o=this._events[i];if(o.fn)o.fn!==t||a&&!o.once||r&&o.context!==r||s(this,i);else{for(var c=0,u=[],d=o.length;c<d;c++)(o[c].fn!==t||a&&!o[c].once||r&&o[c].context!==r)&&u.push(o[c]);u.length?this._events[i]=1===u.length?u[0]:u:s(this,i)}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&s(this,t)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o},41766:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
2
|
+
* @license lucide-react v0.408.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/let r=(0,n(47605).Z)("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]])},84321:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
7
|
+
* @license lucide-react v0.408.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/let r=(0,n(47605).Z)("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]])},76081:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
12
|
+
* @license lucide-react v0.408.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/let r=(0,n(47605).Z)("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]])},21805:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
17
|
+
* @license lucide-react v0.408.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/let r=(0,n(47605).Z)("CirclePlus",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M8 12h8",key:"1wcyev"}],["path",{d:"M12 8v8",key:"napkw2"}]])},264:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
22
|
+
* @license lucide-react v0.408.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/let r=(0,n(47605).Z)("Loader",[["path",{d:"M12 2v4",key:"3427ic"}],["path",{d:"m16.2 7.8 2.9-2.9",key:"r700ao"}],["path",{d:"M18 12h4",key:"wj9ykh"}],["path",{d:"m16.2 16.2 2.9 2.9",key:"1bxg5t"}],["path",{d:"M12 18v4",key:"jadmvz"}],["path",{d:"m4.9 19.1 2.9-2.9",key:"bwix9q"}],["path",{d:"M2 12h4",key:"j09sii"}],["path",{d:"m4.9 4.9 2.9 2.9",key:"giyufr"}]])},64541:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
27
|
+
* @license lucide-react v0.408.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/let r=(0,n(47605).Z)("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]])},12010:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});/**
|
|
32
|
+
* @license lucide-react v0.408.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/let r=(0,n(47605).Z)("Zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]])},90966:function(){},32525:function(e,t,n){"use strict";n.d(t,{f:function(){return u}});var r=n(46760),a=n(38098),i=n(25418),s="horizontal",o=["horizontal","vertical"],c=r.forwardRef((e,t)=>{let{decorative:n,orientation:r=s,...c}=e,u=o.includes(r)?r:s;return(0,i.jsx)(a.WV.div,{"data-orientation":u,...n?{role:"none"}:{"aria-orientation":"vertical"===u?u:void 0,role:"separator"},...c,ref:t})});c.displayName="Separator";var u=c},1130:function(e,t,n){"use strict";n.d(t,{$:function(){return o}});var r=n(33216),a="#1A1B1F",i={blue:{accentColor:"#3898FF",accentColorForeground:"#FFF"},green:{accentColor:"#4BD166",accentColorForeground:a},orange:{accentColor:"#FF983D",accentColorForeground:a},pink:{accentColor:"#FF7AB8",accentColorForeground:a},purple:{accentColor:"#7A70FF",accentColorForeground:"#FFF"},red:{accentColor:"#FF6257",accentColorForeground:"#FFF"}},s=i.blue,o=function(){let{accentColor:e=s.accentColor,accentColorForeground:t=s.accentColorForeground,...n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...(0,r.w)(n),colors:{accentColor:e,accentColorForeground:t,actionButtonBorder:"rgba(255, 255, 255, 0.04)",actionButtonBorderMobile:"rgba(255, 255, 255, 0.08)",actionButtonSecondaryBackground:"rgba(255, 255, 255, 0.08)",closeButton:"rgba(224, 232, 255, 0.6)",closeButtonBackground:"rgba(255, 255, 255, 0.08)",connectButtonBackground:a,connectButtonBackgroundError:"#FF494A",connectButtonInnerBackground:"linear-gradient(0deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.15))",connectButtonText:"#FFF",connectButtonTextError:"#FFF",connectionIndicator:"#30E000",downloadBottomCardBackground:"linear-gradient(126deg, rgba(0, 0, 0, 0) 9.49%, rgba(120, 120, 120, 0.2) 71.04%), #1A1B1F",downloadTopCardBackground:"linear-gradient(126deg, rgba(120, 120, 120, 0.2) 9.49%, rgba(0, 0, 0, 0) 71.04%), #1A1B1F",error:"#FF494A",generalBorder:"rgba(255, 255, 255, 0.08)",generalBorderDim:"rgba(255, 255, 255, 0.04)",menuItemBackground:"rgba(224, 232, 255, 0.1)",modalBackdrop:"rgba(0, 0, 0, 0.5)",modalBackground:"#1A1B1F",modalBorder:"rgba(255, 255, 255, 0.08)",modalText:"#FFF",modalTextDim:"rgba(224, 232, 255, 0.3)",modalTextSecondary:"rgba(255, 255, 255, 0.6)",profileAction:"rgba(224, 232, 255, 0.1)",profileActionHover:"rgba(224, 232, 255, 0.2)",profileForeground:"rgba(224, 232, 255, 0.05)",selectedOptionBorder:"rgba(224, 232, 255, 0.1)",standby:"#FFD641"},shadows:{connectButton:"0px 4px 12px rgba(0, 0, 0, 0.1)",dialog:"0px 8px 32px rgba(0, 0, 0, 0.32)",profileDetailsAction:"0px 2px 6px rgba(37, 41, 46, 0.04)",selectedOption:"0px 2px 6px rgba(0, 0, 0, 0.24)",selectedWallet:"0px 2px 6px rgba(0, 0, 0, 0.24)",walletLogo:"0px 2px 16px rgba(0, 0, 0, 0.16)"}}};o.accentColors=i},10286:function(e,t,n){"use strict";n.d(t,{S:function(){return y}});var r=n(31843),a=n(35789),i=n(66714),s=n(52360),o=class extends s.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let i=t.queryKey,s=t.queryHash??(0,r.Rm)(i,t),o=this.get(s);return o||(o=new a.A({cache:this,queryKey:i,queryHash:s,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(i)}),this.add(o)),o}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,r._x)(e,t)):t}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){i.V.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},c=n(77202),u=class extends s.l{constructor(e={}){super(),this.config=e,this.#t=new Map,this.#n=Date.now()}#t;#n;build(e,t,n){let r=new c.m({mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){let t=d(e),n=this.#t.get(t)??[];n.push(e),this.#t.set(t,n),this.notify({type:"added",mutation:e})}remove(e){let t=d(e);if(this.#t.has(t)){let n=this.#t.get(t)?.filter(t=>t!==e);n&&(0===n.length?this.#t.delete(t):this.#t.set(t,n))}this.notify({type:"removed",mutation:e})}canRun(e){let t=this.#t.get(d(e))?.find(e=>"pending"===e.state.status);return!t||t===e}runNext(e){let t=this.#t.get(d(e))?.find(t=>t!==e&&t.state.isPaused);return t?.continue()??Promise.resolve()}clear(){i.V.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}getAll(){return[...this.#t.values()].flat()}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,r.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,r.X7)(e,t))}notify(e){i.V.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return i.V.batch(()=>Promise.all(e.map(e=>e.continue().catch(r.ZT))))}};function d(e){return e.options.scope?.id??String(e.mutationId)}var l=n(81167),h=n(30505);function p(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}var y=class{#r;#a;#i;#s;#o;#c;#u;#d;constructor(e={}){this.#r=e.queryCache||new o,this.#a=e.mutationCache||new u,this.#i=e.defaultOptions||{},this.#s=new Map,this.#o=new Map,this.#c=0}mount(){this.#c++,1===this.#c&&(this.#u=l.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onFocus())}),this.#d=h.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#r.onOnline())}))}unmount(){this.#c--,0===this.#c&&(this.#u?.(),this.#u=void 0,this.#d?.(),this.#d=void 0)}isFetching(e){return this.#r.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#a.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.getQueryData(e.queryKey);if(void 0===t)return this.fetchQuery(e);{let n=this.defaultQueryOptions(e),a=this.#r.build(this,n);return e.revalidateIfStale&&a.isStaleByTime((0,r.KC)(n.staleTime,a))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return this.#r.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let a=this.defaultQueryOptions({queryKey:e}),i=this.#r.get(a.queryHash),s=i?.state.data,o=(0,r.SE)(t,s);if(void 0!==o)return this.#r.build(this,a).setData(o,{...n,manual:!0})}setQueriesData(e,t,n){return i.V.batch(()=>this.#r.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#r.get(t.queryHash)?.state}removeQueries(e){let t=this.#r;i.V.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#r,r={type:"active",...e};return i.V.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){let n={revert:!0,...t};return Promise.all(i.V.batch(()=>this.#r.findAll(e).map(e=>e.cancel(n)))).then(r.ZT).catch(r.ZT)}invalidateQueries(e={},t={}){return i.V.batch(()=>{if(this.#r.findAll(e).forEach(e=>{e.invalidate()}),"none"===e.refetchType)return Promise.resolve();let n={...e,type:e.refetchType??e.type??"active"};return this.refetchQueries(n,t)})}refetchQueries(e={},t){let n={...t,cancelRefetch:t?.cancelRefetch??!0};return Promise.all(i.V.batch(()=>this.#r.findAll(e).filter(e=>!e.isDisabled()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(r.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(r.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let n=this.#r.build(this,t);return n.isStaleByTime((0,r.KC)(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(r.ZT).catch(r.ZT)}fetchInfiniteQuery(e){var t;return e.behavior=(t=e.pages,{onFetch:(e,n)=>{let a=async()=>{let n;let a=e.options,i=e.fetchOptions?.meta?.fetchMore?.direction,s=e.state.data?.pages||[],o=e.state.data?.pageParams||[],c=!1,u=t=>{Object.defineProperty(t,"signal",{enumerable:!0,get:()=>(e.signal.aborted?c=!0:e.signal.addEventListener("abort",()=>{c=!0}),e.signal)})},d=(0,r.cG)(e.options,e.fetchOptions),l=async(t,n,a)=>{if(c)return Promise.reject();if(null==n&&t.pages.length)return Promise.resolve(t);let i={queryKey:e.queryKey,pageParam:n,direction:a?"backward":"forward",meta:e.options.meta};u(i);let s=await d(i),{maxPages:o}=e.options,l=a?r.Ht:r.VX;return{pages:l(t.pages,s,o),pageParams:l(t.pageParams,n,o)}};if(i&&s.length){let e="backward"===i,t={pages:s,pageParams:o},r=(e?function(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}:p)(a,t);n=await l(t,r,e)}else{n=await l({pages:[],pageParams:[]},o[0]??a.initialPageParam);let e=t??s.length;for(let t=1;t<e;t++){let e=p(a,n);if(null==e)break;n=await l(n,e)}}return n};e.options.persister?e.fetchFn=()=>e.options.persister?.(a,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},n):e.fetchFn=a}}),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(r.ZT).catch(r.ZT)}resumePausedMutations(){return h.N.isOnline()?this.#a.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#r}getMutationCache(){return this.#a}getDefaultOptions(){return this.#i}setDefaultOptions(e){this.#i=e}setQueryDefaults(e,t){this.#s.set((0,r.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#s.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.queryKey)&&(n={...n,...t.defaultOptions})}),n}setMutationDefaults(e,t){this.#o.set((0,r.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#o.values()],n={};return t.forEach(t=>{(0,r.to)(e,t.mutationKey)&&(n={...n,...t.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#i.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,r.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),!0!==t.enabled&&t.queryFn===r.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#i.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#r.clear(),this.#a.clear()}}},87244:function(e,t,n){"use strict";n.d(t,{O:function(){return d}});var r=n(87288),a=n(18701),i=n(46812),s=n(98094),o=n(29673),c=n(28956),u=n(72417);function d(e={}){let t,l,h,p,y,m,f,g;return(0,r.K)(r=>({id:"metaMaskSDK",name:"MetaMask",type:d.type,async setup(){let e=await this.getProvider();e&&!m&&(m=this.onConnect.bind(this),e.on("connect",m))},async connect({chainId:e,isReconnecting:n}={}){let r=await this.getProvider();f||(f=this.onDisplayUri,r.on("display_uri",f));let a=[];n&&(a=await this.getAccounts().catch(()=>[]));try{a?.length||(a=(await t.connect()).map(e=>(0,i.K)(e)));let n=await this.getChainId();if(e&&n!==e){let t=await this.switchChain({chainId:e}).catch(e=>{if(e.code===s.ab.code)throw e;return{id:n}});n=t?.id??n}return f&&(r.removeListener("display_uri",f),f=void 0),m&&(r.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),r.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),r.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),r.on("disconnect",g)),{accounts:a,chainId:n}}catch(e){if(e.code===s.ab.code)throw new s.ab(e);if(e.code===s.pT.code)throw new s.pT(e);throw e}},async disconnect(){let e=await this.getProvider();p&&(e.removeListener("accountsChanged",p),p=void 0),y&&(e.removeListener("chainChanged",y),y=void 0),g&&(e.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),e.on("connect",m)),await t.terminate()},async getAccounts(){let e=await this.getProvider();return(await e.request({method:"eth_accounts"})).map(e=>(0,i.K)(e))},async getChainId(){let e=await this.getProvider();return Number(e.getChainId()||await e?.request({method:"eth_chainId"}))},async getProvider(){async function a(){return t=new(await (async()=>{let{default:e}=await Promise.all([n.e(3062),n.e(4735)]).then(n.t.bind(n,49908,19));return"function"!=typeof e&&"function"==typeof e.default?e.default:e})())({_source:"wagmi",...e,readonlyRPCMap:Object.fromEntries(r.chains.map(e=>{let[t]=function(e){let{chain:t}=e,n=t.rpcUrls.default.http[0];if(!e.transports)return[n];let r=e.transports?.[t.id]?.({chain:t});return(r?.value?.transports||[r]).map(({value:e})=>e?.url||n)}({chain:e,transports:r.transports});return[e.id,t]})),dappMetadata:e.dappMetadata??{name:"wagmi"},useDeeplink:e.useDeeplink??!0}),await t.init(),t.getProvider()}return l||(h||(h=a()),l=await h),l},async isAuthorized(){try{return!!(await (0,o.J)(()=>(0,c.F)(()=>this.getAccounts(),{timeout:200}),{delay:201,retryCount:3})).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider(),i=r.chains.find(e=>e.id===t);if(!i)throw new s.x3(new a.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,u.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&r.emitter.emit("change",{chainId:t})}),new Promise(e=>r.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),i}catch(r){if(4902===r.code||r?.data?.originalError?.code===4902)try{let r,a;let{default:o,...c}=i.blockExplorers??{};e?.blockExplorerUrls?r=e.blockExplorerUrls:o&&(r=[o.url,...Object.values(c).map(e=>e.url)]),a=e?.rpcUrls?.length?e.rpcUrls:[i.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:r,chainId:(0,u.eC)(t),chainName:e?.chainName??i.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??i.nativeCurrency,rpcUrls:a};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new s.ab(Error("User rejected switch after adding network."));return i}catch(e){throw new s.ab(e)}if(r.code===s.ab.code)throw new s.ab(r);throw new s.x3(r)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(r.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e})}else r.emitter.emit("change",{accounts:e.map(e=>(0,i.K)(e))})},onChainChanged(e){let t=Number(e);r.emitter.emit("change",{chainId:t})},async onConnect(e){let t=await this.getAccounts();if(0===t.length)return;let n=Number(e.chainId);r.emitter.emit("connect",{accounts:t,chainId:n});let a=await this.getProvider();m&&(a.removeListener("connect",m),m=void 0),p||(p=this.onAccountsChanged.bind(this),a.on("accountsChanged",p)),y||(y=this.onChainChanged.bind(this),a.on("chainChanged",y)),g||(g=this.onDisconnect.bind(this),a.on("disconnect",g))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(r.emitter.emit("disconnect"),p||(p=this.onAccountsChanged.bind(this),t.on("accountsChanged",p)),y&&(t.removeListener("chainChanged",y),y=void 0),g&&(t.removeListener("disconnect",g),g=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m)))},onDisplayUri(e){r.emitter.emit("message",{type:"display_uri",data:e})}}))}d.type="metaMask"},62856:function(e,t,n){"use strict";n.d(t,{T:function(){return o}});var r=n(87288),a=n(4858),i=n(46812),s=n(28956);function o(e={}){let t,c;let{shimDisconnect:u=!1}=e;return(0,r.K)(r=>({id:"safe",name:"Safe",type:o.type,async connect(){let e=await this.getProvider();if(!e)throw new a.M;let t=await this.getAccounts(),n=await this.getChainId();return c||(c=this.onDisconnect.bind(this),e.on("disconnect",c)),u&&await r.storage?.removeItem("safe.disconnected"),{accounts:t,chainId:n}},async disconnect(){let e=await this.getProvider();if(!e)throw new a.M;c&&(e.removeListener("disconnect",c),c=void 0),u&&await r.storage?.setItem("safe.disconnected",!0)},async getAccounts(){let e=await this.getProvider();if(!e)throw new a.M;return(await e.request({method:"eth_accounts"})).map(i.K)},async getProvider(){if("undefined"!=typeof window&&window?.parent!==window){if(!t){let{default:r}=await n.e(4732).then(n.bind(n,44732)),a=new r(e),i=await (0,s.F)(()=>a.safe.getInfo(),{timeout:e.unstable_getInfoTimeout??10});if(!i)throw Error("Could not load Safe information");let{SafeAppProvider:o}=await n.e(5956).then(n.t.bind(n,15956,19));t=new o(i,a)}return t}},async getChainId(){let e=await this.getProvider();if(!e)throw new a.M;return Number(e.chainId)},async isAuthorized(){try{if(u&&await r.storage?.getItem("safe.disconnected"))return!1;return!!(await this.getAccounts()).length}catch{return!1}},onAccountsChanged(){},onChainChanged(){},onDisconnect(){r.emitter.emit("disconnect")}}))}o.type="safe"},7168:function(e,t,n){"use strict";n.d(t,{Q:function(){return i}});var r=n(44705),a=n(84151);async function i(e,t={}){let{chainId:n,...i}=t,s=e.getClient({chainId:n}),o=(0,a.s)(s,r.Q,"getBlock");return{...await o(i),chainId:s.chain.id}}},30393:function(e,t,n){"use strict";n.d(t,{f:function(){return i}});var r=n(17263),a=n(84151);function i(e,t){let{chainId:n,...i}=t,s=e.getClient({chainId:n});return(0,a.s)(s,r.f,"getTransaction")(i)}},87288:function(e,t,n){"use strict";function r(e){return e}n.d(t,{K:function(){return r}})},89821:function(e,t,n){"use strict";n.d(t,{L:function(){return p}});var r=n(46812),a=n(98094),i=n(28956),s=n(29673),o=n(72417),c=n(18701),u=n(4858),d=n(87288);let l=/(rabby|trustwallet)/,h={coinbaseWallet:{id:"coinbaseWallet",name:"Coinbase Wallet",provider:e=>e?.coinbaseWalletExtension?e.coinbaseWalletExtension:y(e,"isCoinbaseWallet")},metaMask:{id:"metaMask",name:"MetaMask",provider:e=>y(e,e=>{if(!e.isMetaMask||e.isBraveWallet&&!e._events&&!e._state)return!1;for(let t of["isApexWallet","isAvalanche","isBitKeep","isBlockWallet","isKuCoinWallet","isMathWallet","isOkxWallet","isOKExWallet","isOneInchIOSWallet","isOneInchAndroidWallet","isOpera","isPortal","isRabby","isTokenPocket","isTokenary","isZerion"])if(e[t])return!1;return!0})},phantom:{id:"phantom",name:"Phantom",provider:e=>e?.phantom?.ethereum?e.phantom?.ethereum:y(e,"isPhantom")}};function p(e={}){let t,n,m,f;let{shimDisconnect:g=!0,unstable_shimAsyncInject:w}=e;function b(){let t=e.target;if("function"==typeof t){let e=t();if(e)return e}return"object"==typeof t?t:"string"==typeof t?{...h[t]??{id:t,name:`${t[0].toUpperCase()}${t.slice(1)}`,provider:`is${t[0].toUpperCase()}${t.slice(1)}`}}:{id:"injected",name:"Injected",provider:e=>e?.ethereum}}return(0,d.K)(d=>({get icon(){return b().icon},get id(){return b().id},get name(){return b().name},get supportsSimulation(){return l.test(this.id.toLowerCase())},type:p.type,async setup(){let n=await this.getProvider();n&&e.target&&(m||(m=this.onConnect.bind(this),n.on("connect",m)),t||(t=this.onAccountsChanged.bind(this),n.on("accountsChanged",t)))},async connect({chainId:i,isReconnecting:s}={}){let o=await this.getProvider();if(!o)throw new u.M;let c=[];if(s)c=await this.getAccounts().catch(()=>[]);else if(g)try{let e=await o.request({method:"wallet_requestPermissions",params:[{eth_accounts:{}}]});(c=e[0]?.caveats?.[0]?.value?.map(e=>r.K(e))).length>0&&(c=await this.getAccounts())}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw e}try{c?.length||s||(c=(await o.request({method:"eth_requestAccounts"})).map(e=>(0,r.K)(e))),m&&(o.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),o.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),o.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),o.on("disconnect",f));let u=await this.getChainId();if(i&&u!==i){let e=await this.switchChain({chainId:i}).catch(e=>{if(e.code===a.ab.code)throw e;return{id:u}});u=e?.id??u}return g&&await d.storage?.removeItem(`${this.id}.disconnected`),e.target||await d.storage?.setItem("injected.connected",!0),{accounts:c,chainId:u}}catch(e){if(e.code===a.ab.code)throw new a.ab(e);if(e.code===a.pT.code)throw new a.pT(e);throw e}},async disconnect(){let t=await this.getProvider();if(!t)throw new u.M;n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m));try{await (0,i.F)(()=>t.request({method:"wallet_revokePermissions",params:[{eth_accounts:{}}]}),{timeout:100})}catch{}g&&await d.storage?.setItem(`${this.id}.disconnected`,!0),e.target||await d.storage?.removeItem("injected.connected")},async getAccounts(){let e=await this.getProvider();if(!e)throw new u.M;return(await e.request({method:"eth_accounts"})).map(e=>(0,r.K)(e))},async getChainId(){let e=await this.getProvider();if(!e)throw new u.M;return Number(await e.request({method:"eth_chainId"}))},async getProvider(){let e;if("undefined"==typeof window)return;let t=b();return(e="function"==typeof t.provider?t.provider(window):"string"==typeof t.provider?y(window,t.provider):t.provider)&&!e.removeListener&&("off"in e&&"function"==typeof e.off?e.removeListener=e.off:e.removeListener=()=>{}),e},async isAuthorized(){try{if(g&&await d.storage?.getItem(`${this.id}.disconnected`)||!e.target&&!await d.storage?.getItem("injected.connected"))return!1;if(!await this.getProvider()){if(void 0!==w&&!1!==w){let e=async()=>("undefined"!=typeof window&&window.removeEventListener("ethereum#initialized",e),!!await this.getProvider()),t="number"==typeof w?w:1e3;if(await Promise.race([..."undefined"!=typeof window?[new Promise(t=>window.addEventListener("ethereum#initialized",()=>t(e()),{once:!0}))]:[],new Promise(n=>setTimeout(()=>n(e()),t))]))return!0}throw new u.M}return!!(await (0,s.J)(()=>this.getAccounts())).length}catch{return!1}},async switchChain({addEthereumChainParameter:e,chainId:t}){let n=await this.getProvider();if(!n)throw new u.M;let r=d.chains.find(e=>e.id===t);if(!r)throw new a.x3(new c.X4);try{return await Promise.all([n.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,o.eC)(t)}]}).then(async()=>{await this.getChainId()===t&&d.emitter.emit("change",{chainId:t})}),new Promise(e=>d.emitter.once("change",({chainId:n})=>{n===t&&e()}))]),r}catch(i){if(4902===i.code||i?.data?.originalError?.code===4902)try{let i,s;let{default:c,...u}=r.blockExplorers??{};e?.blockExplorerUrls?i=e.blockExplorerUrls:c&&(i=[c.url,...Object.values(u).map(e=>e.url)]),s=e?.rpcUrls?.length?e.rpcUrls:[r.rpcUrls.default?.http[0]??""];let d={blockExplorerUrls:i,chainId:(0,o.eC)(t),chainName:e?.chainName??r.name,iconUrls:e?.iconUrls,nativeCurrency:e?.nativeCurrency??r.nativeCurrency,rpcUrls:s};if(await n.request({method:"wallet_addEthereumChain",params:[d]}),await this.getChainId()!==t)throw new a.ab(Error("User rejected switch after adding network."));return r}catch(e){throw new a.ab(e)}if(i.code===a.ab.code)throw new a.ab(i);throw new a.x3(i)}},async onAccountsChanged(e){if(0===e.length)this.onDisconnect();else if(d.emitter.listenerCount("connect")){let e=(await this.getChainId()).toString();this.onConnect({chainId:e}),g&&await d.storage?.removeItem(`${this.id}.disconnected`)}else d.emitter.emit("change",{accounts:e.map(e=>(0,r.K)(e))})},onChainChanged(e){let t=Number(e);d.emitter.emit("change",{chainId:t})},async onConnect(e){let r=await this.getAccounts();if(0===r.length)return;let a=Number(e.chainId);d.emitter.emit("connect",{accounts:r,chainId:a});let i=await this.getProvider();i&&(m&&(i.removeListener("connect",m),m=void 0),t||(t=this.onAccountsChanged.bind(this),i.on("accountsChanged",t)),n||(n=this.onChainChanged.bind(this),i.on("chainChanged",n)),f||(f=this.onDisconnect.bind(this),i.on("disconnect",f)))},async onDisconnect(e){let t=await this.getProvider();e&&1013===e.code&&t&&(await this.getAccounts()).length||(d.emitter.emit("disconnect"),t&&(n&&(t.removeListener("chainChanged",n),n=void 0),f&&(t.removeListener("disconnect",f),f=void 0),m||(m=this.onConnect.bind(this),t.on("connect",m))))}}))}function y(e,t){function n(e){return"function"==typeof t?t(e):"string"!=typeof t||e[t]}let r=e.ethereum;return r?.providers?r.providers.find(e=>n(e)):r&&n(r)?r:void 0}p.type="injected"},32226:function(e,t,n){"use strict";let r;n.d(t,{_:function(){return I}});var a=n(82095);let i=e=>(t,n,r)=>{let a=r.subscribe;return r.subscribe=(e,t,n)=>{let i=e;if(t){let a=(null==n?void 0:n.equalityFn)||Object.is,s=e(r.getState());i=n=>{let r=e(n);if(!a(s,r)){let e=s;t(s=r,e)}},(null==n?void 0:n.fireImmediately)&&t(s,s)}return a(i)},e(t,n,r)},s=e=>t=>{try{let n=e(t);if(n instanceof Promise)return n;return{then:e=>s(e)(n),catch(e){return this}}}catch(e){return{then(e){return this},catch:t=>s(t)(e)}}},o=(e,t)=>(n,r,a)=>{let i,o,c={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},u=!1,d=new Set,l=new Set;try{i=c.getStorage()}catch(e){}if(!i)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${c.name}', the given storage is currently unavailable.`),n(...e)},r,a);let h=s(c.serialize),p=()=>{let e;let t=h({state:c.partialize({...r()}),version:c.version}).then(e=>i.setItem(c.name,e)).catch(t=>{e=t});if(e)throw e;return t},y=a.setState;a.setState=(e,t)=>{y(e,t),p()};let m=e((...e)=>{n(...e),p()},r,a),f=()=>{var e;if(!i)return;u=!1,d.forEach(e=>e(r()));let t=(null==(e=c.onRehydrateStorage)?void 0:e.call(c,r()))||void 0;return s(i.getItem.bind(i))(c.name).then(e=>{if(e)return c.deserialize(e)}).then(e=>{if(e){if("number"!=typeof e.version||e.version===c.version)return e.state;if(c.migrate)return c.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(o=c.merge(e,null!=(t=r())?t:m),!0),p()}).then(()=>{null==t||t(o,void 0),u=!0,l.forEach(e=>e(o))}).catch(e=>{null==t||t(void 0,e)})};return a.persist={setOptions:e=>{c={...c,...e},e.getStorage&&(i=e.getStorage())},clearStorage:()=>{null==i||i.removeItem(c.name)},getOptions:()=>c,rehydrate:()=>f(),hasHydrated:()=>u,onHydrate:e=>(d.add(e),()=>{d.delete(e)}),onFinishHydration:e=>(l.add(e),()=>{l.delete(e)})},f(),o||m},c=(e,t)=>(n,r,a)=>{let i,o={storage:function(e,t){let n;try{n=e()}catch(e){return}return{getItem:e=>{var t;let r=e=>null===e?null:JSON.parse(e,void 0),a=null!=(t=n.getItem(e))?t:null;return a instanceof Promise?a.then(r):r(a)},setItem:(e,t)=>n.setItem(e,JSON.stringify(t,void 0)),removeItem:e=>n.removeItem(e)}}(()=>localStorage),partialize:e=>e,version:0,merge:(e,t)=>({...t,...e}),...t},c=!1,u=new Set,d=new Set,l=o.storage;if(!l)return e((...e)=>{console.warn(`[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`),n(...e)},r,a);let h=()=>{let e=o.partialize({...r()});return l.setItem(o.name,{state:e,version:o.version})},p=a.setState;a.setState=(e,t)=>{p(e,t),h()};let y=e((...e)=>{n(...e),h()},r,a),m=()=>{var e,t;if(!l)return;c=!1,u.forEach(e=>{var t;return e(null!=(t=r())?t:y)});let a=(null==(t=o.onRehydrateStorage)?void 0:t.call(o,null!=(e=r())?e:y))||void 0;return s(l.getItem.bind(l))(o.name).then(e=>{if(e){if("number"!=typeof e.version||e.version===o.version)return e.state;if(o.migrate)return o.migrate(e.state,e.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}}).then(e=>{var t;return n(i=o.merge(e,null!=(t=r())?t:y),!0),h()}).then(()=>{null==a||a(i,void 0),i=r(),c=!0,d.forEach(e=>e(i))}).catch(e=>{null==a||a(void 0,e)})};return a.persist={setOptions:e=>{o={...o,...e},e.storage&&(l=e.storage)},clearStorage:()=>{null==l||l.removeItem(o.name)},getOptions:()=>o,rehydrate:()=>m(),hasHydrated:()=>c,onHydrate:e=>(u.add(e),()=>{u.delete(e)}),onFinishHydration:e=>(d.add(e),()=>{d.delete(e)})},o.skipHydration||m(),i||y},u=(e,t)=>"getStorage"in t||"serialize"in t||"deserialize"in t?(console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),o(e,t)):c(e,t),d=e=>{let t;let n=new Set,r=(e,r)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=(null!=r?r:"object"!=typeof a)?a:Object.assign({},t,a),n.forEach(n=>n(t,e))}},a=()=>t,i={setState:r,getState:a,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}};return t=e(r,a,i),i},l=e=>e?d(e):d;var h=n(89821),p=n(82636);class y{constructor(e){Object.defineProperty(this,"uid",{enumerable:!0,configurable:!0,writable:!0,value:e}),Object.defineProperty(this,"_emitter",{enumerable:!0,configurable:!0,writable:!0,value:new p.v})}on(e,t){this._emitter.on(e,t)}once(e,t){this._emitter.once(e,t)}off(e,t){this._emitter.off(e,t)}emit(e,...t){let n=t[0];this._emitter.emit(e,{uid:this.uid,...n})}listenerCount(e){return this._emitter.listenerCount(e)}}function m(e,t){return JSON.parse(e,(e,n)=>{let r=n;return r?.__type==="bigint"&&(r=BigInt(r.value)),r?.__type==="Map"&&(r=new Map(r.value)),t?.(e,r)??r})}function f(e,t){return e.slice(0,t).join(".")||"."}function g(e,t){let{length:n}=e;for(let r=0;r<n;++r)if(e[r]===t)return r+1;return 0}function w(e,t,n,r){return JSON.stringify(e,function(e,t){let n="function"==typeof e,r="function"==typeof t,a=[],i=[];return function(s,o){if("object"==typeof o){if(a.length){let e=g(a,this);0===e?a[a.length]=this:(a.splice(e),i.splice(e)),i[i.length]=s;let n=g(a,o);if(0!==n)return r?t.call(this,s,o,f(i,n)):`[ref=${f(i,n)}]`}else a[0]=o,i[0]=s}return n?e.call(this,s,o):o}}((e,n)=>{let r=n;return"bigint"==typeof r&&(r={__type:"bigint",value:n.toString()}),r instanceof Map&&(r={__type:"Map",value:Array.from(n.entries())}),t?.(e,r)??r},r),n??void 0)}let b={getItem:()=>null,setItem:()=>{},removeItem:()=>{}};var v=n(18701);let C=256;var x=n(46881);function I(e){let t;let{multiInjectedProviderDiscovery:n=!0,storage:s=function(e){let{deserialize:t=m,key:n="wagmi",serialize:r=w,storage:a=b}=e;function i(e){return e instanceof Promise?e.then(e=>e).catch(()=>null):e}return{...a,key:n,async getItem(e,r){let s=a.getItem(`${n}.${e}`),o=await i(s);return o?t(o)??null:r??null},async setItem(e,t){let s=`${n}.${e}`;null===t?await i(a.removeItem(s)):await i(a.setItem(s,r(t)))},async removeItem(e){await i(a.removeItem(`${n}.${e}`))}}}({storage:"undefined"!=typeof window&&window.localStorage?window.localStorage:b}),syncConnectedChain:o=!0,ssr:c=!1,...d}=e,p="undefined"!=typeof window&&n?function(){let e=new Set,t=[],n=()=>(function(e){if("undefined"==typeof window)return;let t=t=>e(t.detail);return window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new CustomEvent("eip6963:requestProvider")),()=>window.removeEventListener("eip6963:announceProvider",t)})(n=>{t.some(({info:e})=>e.uuid===n.info.uuid)||(t=[...t,n],e.forEach(e=>e(t,{added:[n]})))}),r=n();return{_listeners:()=>e,clear(){e.forEach(e=>e([],{removed:[...t]})),t=[]},destroy(){this.clear(),e.clear(),r?.()},findProvider:({rdns:e})=>t.find(t=>t.info.rdns===e),getProviders:()=>t,reset(){this.clear(),r?.(),r=n()},subscribe:(n,{emitImmediately:r}={})=>(e.add(n),r&&n(t,{added:t}),()=>e.delete(n))}}():void 0,f=l(()=>d.chains),g=l(()=>[...d.connectors??[],...c?[]:p?.getProviders().map(S)??[]].map(I));function I(e){let t=new y(function(e=11){if(!r||C+e>512){r="",C=0;for(let e=0;e<256;e++)r+=(256+256*Math.random()|0).toString(16).substring(1)}return r.substring(C,C+++e)}()),n={...e({emitter:t,chains:f.getState(),storage:s,transports:d.transports}),emitter:t,uid:t.uid};return t.on("connect",E),n.setup?.(),n}function S(e){let{info:t}=e,n=e.provider;return(0,h.L)({target:{...t,id:t.rdns,provider:n}})}let k=new Map;function P(){return{chainId:f.getState()[0].id,connections:new Map,current:null,status:"disconnected"}}let O="0.0.0-canary-";t=x.i.startsWith(O)?Number.parseInt(x.i.replace(O,"")):Number.parseInt(x.i.split(".")[0]??"0");let M=l(i(s?u(P,{migrate(e,n){if(n===t)return e;let r=P(),a=A(e,r.chainId);return{...r,chainId:a}},name:"store",partialize:e=>({connections:{__type:"Map",value:Array.from(e.connections.entries()).map(([e,t])=>{let{id:n,name:r,type:a,uid:i}=t.connector;return[e,{...t,connector:{id:n,name:r,type:a,uid:i}}]})},chainId:e.chainId,current:e.current}),merge(e,t){"object"==typeof e&&e&&"status"in e&&delete e.status;let n=A(e,t.chainId);return{...t,...e,chainId:n}},skipHydration:c,storage:s,version:t}):P));function A(e,t){return e&&"object"==typeof e&&"chainId"in e&&"number"==typeof e.chainId&&f.getState().some(t=>t.id===e.chainId)?e.chainId:t}function q(e){M.setState(t=>{let n=t.connections.get(e.uid);return n?{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts??n.accounts,chainId:e.chainId??n.chainId,connector:n.connector})}:t})}function E(e){"connecting"!==M.getState().status&&"reconnecting"!==M.getState().status&&M.setState(t=>{let n=g.getState().find(t=>t.uid===e.uid);return n?(n.emitter.listenerCount("connect")&&n.emitter.off("connect",q),n.emitter.listenerCount("change")||n.emitter.on("change",q),n.emitter.listenerCount("disconnect")||n.emitter.on("disconnect",_),{...t,connections:new Map(t.connections).set(e.uid,{accounts:e.accounts,chainId:e.chainId,connector:n}),current:e.uid,status:"connected"}):t})}function _(e){M.setState(t=>{let n=t.connections.get(e.uid);if(n){let e=n.connector;e.emitter.listenerCount("change")&&n.connector.emitter.off("change",q),e.emitter.listenerCount("disconnect")&&n.connector.emitter.off("disconnect",_),e.emitter.listenerCount("connect")||n.connector.emitter.on("connect",E)}if(t.connections.delete(e.uid),0===t.connections.size)return{...t,connections:new Map,current:null,status:"disconnected"};let r=t.connections.values().next().value;return{...t,connections:new Map(t.connections),current:r.connector.uid}})}return o&&M.subscribe(({connections:e,current:t})=>t?e.get(t)?.chainId:void 0,e=>{if(f.getState().some(t=>t.id===e))return M.setState(t=>({...t,chainId:e??t.chainId}))}),p?.subscribe(e=>{let t=new Map;for(let e of g.getState())t.set(e.id,!0);let n=[];for(let r of e){let e=I(S(r));t.has(e.id)||n.push(e)}(!s||M.persist.hasHydrated())&&g.setState(e=>[...e,...n],!0)}),{get chains(){return f.getState()},get connectors(){return g.getState()},storage:s,getClient:function(e={}){let t;let n=e.chainId??M.getState().chainId,r=f.getState().find(e=>e.id===n);if(e.chainId&&!r)throw new v.X4;{let e=k.get(M.getState().chainId);if(e&&!r)return e;if(!r)throw new v.X4}{let e=k.get(n);if(e)return e}if(d.client)t=d.client({chain:r});else{let e=r.id,n=f.getState().map(e=>e.id),i={};for(let[t,r]of Object.entries(d))if("chains"!==t&&"client"!==t&&"connectors"!==t&&"transports"!==t){if("object"==typeof r){if(e in r)i[t]=r[e];else{if(n.some(e=>e in r))continue;i[t]=r}}else i[t]=r}t=(0,a.e)({...i,chain:r,batch:i.batch??{multicall:!0},transport:t=>d.transports[e]({...t,connectors:g})})}return k.set(n,t),t},get state(){return M.getState()},setState(e){let t;t="function"==typeof e?e(M.getState()):e;let n=P();"object"!=typeof t&&(t=n),Object.keys(n).some(e=>!(e in t))&&(t=n),M.setState(t,!0)},subscribe:(e,t,n)=>M.subscribe(e,t,n?{...n,fireImmediately:n.emitImmediately}:void 0),_internal:{mipd:p,store:M,ssr:!!c,syncConnectedChain:o,transports:d.transports,chains:{setState(e){let t="function"==typeof e?e(f.getState()):e;if(0!==t.length)return f.setState(t,!0)},subscribe:e=>f.subscribe(e)},connectors:{providerDetailToConnector:S,setup:I,setState:e=>g.setState("function"==typeof e?e(g.getState()):e,!0),subscribe:e=>g.subscribe(e)},events:{change:q,connect:E,disconnect:_}}}}},65835:function(e,t,n){"use strict";n.d(t,{t:function(){return s}});var r=n(98094),a=n(11877),i=n(3638);function s(e,t){return function(e,t={}){let{key:n="fallback",name:s="Fallback",rank:o=!1,retryCount:c,retryDelay:u}=t;return({chain:t,pollingInterval:d=4e3,timeout:l,...h})=>{let p=e,y=()=>{},m=(0,i.q)({key:n,name:s,async request({method:e,params:n}){let a=async(i=0)=>{let s=p[i]({...h,chain:t,retryCount:0,timeout:l});try{let t=await s.request({method:e,params:n});return y({method:e,params:n,response:t,transport:s,status:"success"}),t}catch(t){if(y({error:t,method:e,params:n,transport:s,status:"error"}),"code"in t&&"number"==typeof t.code&&(t.code===r.KB.code||t.code===r.ab.code||5e3===t.code)||i===p.length-1)throw t;return a(i+1)}};return a()},retryCount:c,retryDelay:u,type:"fallback"},{onResponse:e=>y=e,transports:p.map(e=>e({chain:t,retryCount:0}))});if(o){let e="object"==typeof o?o:{};!function({chain:e,interval:t=4e3,onTransports:n,sampleCount:r=10,timeout:i=1e3,transports:s,weights:o={}}){let{stability:c=.7,latency:u=.3}=o,d=[],l=async()=>{let o=await Promise.all(s.map(async t=>{let n,r;let a=t({chain:e,retryCount:0,timeout:i}),s=Date.now();try{await a.request({method:"net_listening"}),r=1}catch{r=0}finally{n=Date.now()}return{latency:n-s,success:r}}));d.push(o),d.length>r&&d.shift();let h=Math.max(...d.map(e=>Math.max(...e.map(({latency:e})=>e))));n(s.map((e,t)=>{let n=d.map(e=>e[t].latency),r=n.reduce((e,t)=>e+t,0)/n.length,a=d.map(e=>e[t].success),i=a.reduce((e,t)=>e+t,0)/a.length;return 0===i?[0,t]:[u*(1-r/h)+c*i,t]}).sort((e,t)=>t[0]-e[0]).map(([,e])=>s[e])),await (0,a.D)(t),l()};l()}({chain:t,interval:e.interval??d,onTransports:e=>p=e,sampleCount:e.sampleCount,timeout:e.timeout,transports:p,weights:e.weights})}return m}}(e,t)}},82636:function(e,t,n){"use strict";n.d(t,{v:function(){return r}});var r=n(65480)},54472:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});let r=[{inputs:[{name:"success",type:"bool"},{name:"ret",type:"bytes"}],name:"DelegateAndRevert",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"}],name:"FailedOp",type:"error"},{inputs:[{name:"opIndex",type:"uint256"},{name:"reason",type:"string"},{name:"inner",type:"bytes"}],name:"FailedOpWithRevert",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"PostOpReverted",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{name:"sender",type:"address"}],name:"SenderAddressResult",type:"error"},{inputs:[{name:"aggregator",type:"address"}],name:"SignatureValidationFailed",type:"error"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"factory",type:"address"},{indexed:!1,name:"paymaster",type:"address"}],name:"AccountDeployed",type:"event"},{anonymous:!1,inputs:[],name:"BeforeExecution",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalDeposit",type:"uint256"}],name:"Deposited",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"PostOpRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"aggregator",type:"address"}],name:"SignatureAggregatorChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"totalStaked",type:"uint256"},{indexed:!1,name:"unstakeDelaySec",type:"uint256"}],name:"StakeLocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawTime",type:"uint256"}],name:"StakeUnlocked",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"StakeWithdrawn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!0,name:"paymaster",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"success",type:"bool"},{indexed:!1,name:"actualGasCost",type:"uint256"},{indexed:!1,name:"actualGasUsed",type:"uint256"}],name:"UserOperationEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"}],name:"UserOperationPrefundTooLow",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"userOpHash",type:"bytes32"},{indexed:!0,name:"sender",type:"address"},{indexed:!1,name:"nonce",type:"uint256"},{indexed:!1,name:"revertReason",type:"bytes"}],name:"UserOperationRevertReason",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"account",type:"address"},{indexed:!1,name:"withdrawAddress",type:"address"},{indexed:!1,name:"amount",type:"uint256"}],name:"Withdrawn",type:"event"},{inputs:[{name:"unstakeDelaySec",type:"uint32"}],name:"addStake",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"target",type:"address"},{name:"data",type:"bytes"}],name:"delegateAndRevert",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"account",type:"address"}],name:"depositTo",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{name:"",type:"address"}],name:"deposits",outputs:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{name:"account",type:"address"}],name:"getDepositInfo",outputs:[{components:[{name:"deposit",type:"uint256"},{name:"staked",type:"bool"},{name:"stake",type:"uint112"},{name:"unstakeDelaySec",type:"uint32"},{name:"withdrawTime",type:"uint48"}],name:"info",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{name:"sender",type:"address"},{name:"key",type:"uint192"}],name:"getNonce",outputs:[{name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"initCode",type:"bytes"}],name:"getSenderAddress",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOp",type:"tuple"}],name:"getUserOpHash",outputs:[{name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"userOps",type:"tuple[]"},{name:"aggregator",type:"address"},{name:"signature",type:"bytes"}],name:"opsPerAggregator",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleAggregatedOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"initCode",type:"bytes"},{name:"callData",type:"bytes"},{name:"accountGasLimits",type:"bytes32"},{name:"preVerificationGas",type:"uint256"},{name:"gasFees",type:"bytes32"},{name:"paymasterAndData",type:"bytes"},{name:"signature",type:"bytes"}],name:"ops",type:"tuple[]"},{name:"beneficiary",type:"address"}],name:"handleOps",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"key",type:"uint192"}],name:"incrementNonce",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"callData",type:"bytes"},{components:[{components:[{name:"sender",type:"address"},{name:"nonce",type:"uint256"},{name:"verificationGasLimit",type:"uint256"},{name:"callGasLimit",type:"uint256"},{name:"paymasterVerificationGasLimit",type:"uint256"},{name:"paymasterPostOpGasLimit",type:"uint256"},{name:"preVerificationGas",type:"uint256"},{name:"paymaster",type:"address"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"}],name:"mUserOp",type:"tuple"},{name:"userOpHash",type:"bytes32"},{name:"prefund",type:"uint256"},{name:"contextOffset",type:"uint256"},{name:"preOpGas",type:"uint256"}],name:"opInfo",type:"tuple"},{name:"context",type:"bytes"}],name:"innerHandleOp",outputs:[{name:"actualGasCost",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"",type:"address"},{name:"",type:"uint192"}],name:"nonceSequenceNumber",outputs:[{name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"unlockStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"}],name:"withdrawStake",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{name:"withdrawAddress",type:"address"},{name:"withdrawAmount",type:"uint256"}],name:"withdrawTo",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]},74334:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});let r="0x0000000071727De22E5E9d8BAf0edAc6f37da032"},85598:function(e,t,n){"use strict";n.d(t,{L:function(){return b}});var r=n(89922),a=n(72417),i=n(67832),s=n(15254),o=n(6431),c=n(95033);async function u({hash:e,privateKey:t,to:n="object"}){let{r:i,s,recovery:o}=r.secp256k1.sign(e.slice(2),t.slice(2)),u={r:(0,a.eC)(i,{size:32}),s:(0,a.eC)(s,{size:32}),v:o?28n:27n,yParity:o};return"bytes"===n||"hex"===n?(0,c.V)({...u,to:n}):u}var d=n(56114);async function l(e){let{contractAddress:t,chainId:n,nonce:r,privateKey:a,to:i="object"}=e,s=await u({hash:(0,d.t)({contractAddress:t,chainId:n,nonce:r}),privateKey:a,to:i});return"object"===i?{contractAddress:t,chainId:n,nonce:r,...s}:s}var h=n(5878);async function p({message:e,privateKey:t}){return await u({hash:(0,h.r)(e),privateKey:t,to:"hex"})}var y=n(56026),m=n(10359);async function f(e){let{privateKey:t,transaction:n,serializer:r=m.D}=e,a="eip4844"===n.type?{...n,sidecars:!1}:n,i=await u({hash:(0,y.w)(r(a)),privateKey:t});return r(n,i)}var g=n(52440);async function w(e){let{privateKey:t,...n}=e;return await u({hash:(0,g.Jv)(n),privateKey:t,to:"hex"})}function b(e,t={}){let{nonceManager:n}=t,c=(0,a.NC)(r.secp256k1.getPublicKey(e.slice(2),!1));return{...function(e){if("string"==typeof e){if(!(0,s.U)(e,{strict:!1}))throw new i.b({address:e});return{address:e,type:"json-rpc"}}if(!(0,s.U)(e.address,{strict:!1}))throw new i.b({address:e.address});return{address:e.address,nonceManager:e.nonceManager,sign:e.sign,experimental_signAuthorization:e.experimental_signAuthorization,signMessage:e.signMessage,signTransaction:e.signTransaction,signTypedData:e.signTypedData,source:"custom",type:"local"}}({address:(0,o.y)(c),nonceManager:n,sign:async({hash:t})=>u({hash:t,privateKey:e,to:"hex"}),experimental_signAuthorization:async t=>l({...t,privateKey:e}),signMessage:async({message:t})=>p({message:t,privateKey:e}),signTransaction:async(t,{serializer:n}={})=>f({privateKey:e,transaction:t,serializer:n}),signTypedData:async t=>w({...t,privateKey:e})}),publicKey:c,source:"privateKey"}}},57015:function(e,t,n){"use strict";n.d(t,{d:function(){return c}});var r=n(10042),a=n(74392),i=n(15514),s=n(27421),o=n(3638);function c(e,t={}){let{batch:n,fetchOptions:c,key:u="http",name:d="HTTP JSON-RPC",onFetchRequest:l,onFetchResponse:h,retryDelay:p}=t;return({chain:y,retryCount:m,timeout:f})=>{let{batchSize:g=1e3,wait:w=0}="object"==typeof n?n:{},b=t.retryCount??m,v=f??t.timeout??1e4,C=e||y?.rpcUrls.default.http[0];if(!C)throw new a.I;let x=(0,s.x)(C,{fetchOptions:c,onRequest:l,onResponse:h,timeout:v});return(0,o.q)({key:u,name:d,async request({method:e,params:t}){let a={method:e,params:t},{schedule:s}=(0,i.S)({id:C,wait:w,shouldSplitBatch:e=>e.length>g,fn:e=>x.request({body:e}),sort:(e,t)=>e.id-t.id}),o=async e=>n?s(e):[await x.request({body:e})],[{error:c,result:u}]=await o(a);if(c)throw new r.bs({body:a,error:c,url:C});return u},retryCount:b,retryDelay:p,timeout:v,type:"http"},{fetchOptions:c,url:C})}}},32932:function(e,t,n){"use strict";n.d(t,{j:function(){return p}});var r=n(10042),a=n(74392);n(27421);var i=n(15514),s=n(28956),o=n(70626);let c=new Map;async function u(e){let{getSocket:t,keepAlive:n=!0,key:a="socket",reconnect:u=!0,url:d}=e,{interval:l=3e4}="object"==typeof n?n:{},{attempts:h=5,delay:p=2e3}="object"==typeof u?u:{},y=c.get(`${a}:${d}`);if(y)return y;let m=0,{schedule:f}=(0,i.S)({id:`${a}:${d}`,fn:async()=>{let e,i,f;let g=new Map,w=new Map;async function b(){let a=await t({onClose(){for(let e of g.values())e.onError?.(new r.Cc({url:d}));for(let e of w.values())e.onError?.(new r.Cc({url:d}));g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onError(t){for(let n of(e=t,g.values()))n.onError?.(e);for(let t of w.values())t.onError?.(e);g.clear(),w.clear(),u&&m<h&&setTimeout(async()=>{m++,await b().catch(console.error)},p)},onOpen(){e=void 0,m=0},onResponse(e){let t="eth_subscription"===e.method,n=t?e.params.subscription:e.id,r=t?w:g,a=r.get(n);a&&a.onResponse(e),t||r.delete(n)}});return i=a,n&&(f&&clearInterval(f),f=setInterval(()=>i.ping?.(),l)),a}return await b(),e=void 0,y={close(){f&&clearInterval(f),i.close(),c.delete(`${a}:${d}`)},get socket(){return i},request({body:t,onError:n,onResponse:r}){e&&n&&n(e);let a=t.id??o.d.take(),s=e=>{("number"!=typeof e.id||a===e.id)&&("eth_subscribe"===t.method&&"string"==typeof e.result&&w.set(e.result,{onResponse:s,onError:n}),"eth_unsubscribe"===t.method&&w.delete(t.params?.[0]),r(e))};g.set(a,{onResponse:s,onError:n});try{i.request({body:{jsonrpc:"2.0",id:a,...t}})}catch(e){n?.(e)}},requestAsync({body:e,timeout:t=1e4}){return(0,s.F)(()=>new Promise((t,n)=>this.request({body:e,onError:n,onResponse:t})),{errorInstance:new r.W5({body:e,url:d}),timeout:t})},requests:g,subscriptions:w,url:d},c.set(`${a}:${d}`,y),[y]}}),[g,[w]]=await f();return w}async function d(e,t={}){let{keepAlive:a,reconnect:i}=t;return u({async getSocket({onClose:t,onError:a,onOpen:i,onResponse:s}){let o=await n.e(8847).then(n.bind(n,78847)).then(e=>e.WebSocket),c=new o(e);function u({data:e}){s(JSON.parse(e))}c.addEventListener("close",function e(){t(),c.removeEventListener("close",e),c.removeEventListener("message",u),c.removeEventListener("error",a),c.removeEventListener("open",i)}),c.addEventListener("message",u),c.addEventListener("error",a),c.addEventListener("open",i),c.readyState===o.CONNECTING&&await new Promise((e,t)=>{c&&(c.onopen=e,c.onerror=t)});let{close:d}=c;return Object.assign(c,{close(){d.bind(c)(),t()},ping(){try{if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({url:c.url,cause:new r.Cc({url:c.url})});c.send(JSON.stringify({jsonrpc:"2.0",method:"net_version",params:[]}))}catch(e){a(e)}},request({body:e}){if(c.readyState===c.CLOSED||c.readyState===c.CLOSING)throw new r.c9({body:e,url:c.url,cause:new r.Cc({url:c.url})});return c.send(JSON.stringify(e))}})},keepAlive:a,reconnect:i,url:e})}async function l(e){let t=await d(e);return Object.assign(t.socket,{requests:t.requests,subscriptions:t.subscriptions})}var h=n(3638);function p(e,t={}){let{keepAlive:n,key:i="webSocket",name:s="WebSocket JSON-RPC",reconnect:o,retryDelay:c}=t;return({chain:u,retryCount:p,timeout:y})=>{let m=t.retryCount??p,f=y??t.timeout??1e4,g=e||u?.rpcUrls.default.webSocket?.[0];if(!g)throw new a.I;return(0,h.q)({key:i,name:s,async request({method:e,params:t}){let a={method:e,params:t},i=await d(g,{keepAlive:n,reconnect:o}),{error:s,result:c}=await i.requestAsync({body:a,timeout:f});if(s)throw new r.bs({body:a,error:s,url:g});return c},retryCount:m,retryDelay:c,timeout:f,type:"webSocket"},{getSocket:()=>l(g),getRpcClient:()=>d(g),async subscribe({params:e,onData:t,onError:n}){let r=await d(g),{result:a}=await new Promise((a,i)=>r.request({body:{method:"eth_subscribe",params:e},onError(e){i(e),n?.(e)},onResponse(e){if(e.error){i(e.error),n?.(e.error);return}if("number"==typeof e.id){a(e);return}"eth_subscription"===e.method&&t(e.params)}}));return{subscriptionId:a,unsubscribe:async()=>new Promise(e=>r.request({body:{method:"eth_unsubscribe",params:[a]},onResponse:e}))}}})}}},74392:function(e,t,n){"use strict";n.d(t,{I:function(){return a}});var r=n(86708);class a extends r.G{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}}},47268:function(e,t,n){"use strict";n.d(t,{p:function(){return c}});var r=n(16096),a=n(41690),i=n(83258),s=n(24240),o=n(43067);function c(e){let{abi:t,data:n}=e,c=(0,a.tP)(n,0,4),u=t.find(e=>"function"===e.type&&c===(0,i.C)((0,o.t)(e)));if(!u)throw new r.eF(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,s.r)(u.inputs,(0,a.tP)(n,4)):void 0}}},28956:function(e,t,n){"use strict";function r(e,{errorInstance:t=Error("timed out"),timeout:n,signal:r}){return new Promise((a,i)=>{(async()=>{let s;try{let o=new AbortController;n>0&&(s=setTimeout(()=>{r?o.abort():i(t)},n)),a(await e({signal:o?.signal||null}))}catch(e){e?.name==="AbortError"&&i(t),i(e)}finally{clearTimeout(s)}})()})}n.d(t,{F:function(){return r}})},27421:function(e,t,n){"use strict";n.d(t,{x:function(){return o}});var r=n(10042),a=n(28956),i=n(49476),s=n(70626);function o(e,t={}){return{async request(n){let{body:o,onRequest:c=t.onRequest,onResponse:u=t.onResponse,timeout:d=t.timeout??1e4}=n,l={...t.fetchOptions??{},...n.fetchOptions??{}},{headers:h,method:p,signal:y}=l;try{let t;let n=await (0,a.F)(async({signal:t})=>{let n={...l,body:Array.isArray(o)?(0,i.P)(o.map(e=>({jsonrpc:"2.0",id:e.id??s.d.take(),...e}))):(0,i.P)({jsonrpc:"2.0",id:o.id??s.d.take(),...o}),headers:{"Content-Type":"application/json",...h},method:p||"POST",signal:y||(d>0?t:null)},r=new Request(e,n);return c&&await c(r),await fetch(e,n)},{errorInstance:new r.W5({body:o,url:e}),timeout:d,signal:!0});if(u&&await u(n),n.headers.get("Content-Type")?.startsWith("application/json"))t=await n.json();else{t=await n.text();try{t=JSON.parse(t||"{}")}catch(e){if(n.ok)throw e;t={error:t}}}if(!n.ok)throw new r.Gg({body:o,details:(0,i.P)(t.error)||n.statusText,headers:n.headers,status:n.status,url:e});return t}catch(t){if(t instanceof r.Gg||t instanceof r.W5)throw t;throw new r.Gg({body:o,cause:t,url:e})}}}}},70626:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});let r={current:0,take(){return this.current++},reset(){this.current=0}}},52724:function(e,t,n){"use strict";n.d(t,{O:function(){return h}});var r=n(86655),a=n(8258),i=n(84151),s=n(24339),o=n(65684),c=n(39870),u=n(24143),d=n(75487),l=n(46760);function h(){var e,t;let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{query:h={},watch:p}=n,y=(0,u.Z)(n),m=(0,r.NL)(),f=(0,c.x)({config:y}),g=null!==(e=n.chainId)&&void 0!==e?e:f,w=function(e,t={}){return{gcTime:0,async queryFn({queryKey:t}){let{scopeKey:n,...r}=t[1];return await function(e,t={}){let{chainId:n,...r}=t,s=e.getClient({chainId:n});return(0,i.s)(s,a.z,"getBlockNumber")(r)}(e,r)??null},queryKey:function(e={}){return["blockNumber",(0,s.OP)(e)]}(t)}}(y,{...n,chainId:g});return!function(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlockNumber:r,config:a,...s}=t,o=(0,u.Z)(t),h=(0,c.x)({config:o}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,l.useEffect)(()=>{if(n&&r)return function(e,t){let n,r;let{syncConnectedChain:a=e._internal.syncConnectedChain,...s}=t,o=t=>{n&&n();let r=e.getClient({chainId:t});return n=(0,i.s)(r,d.q,"watchBlockNumber")(s)},c=o(t.chainId);return a&&!t.chainId&&(r=e.subscribe(({chainId:e})=>e,async e=>o(e))),()=>{c?.(),r?.()}}(o,{...s,chainId:p,onBlockNumber:r})},[p,o,n,r,s.onError,s.emitMissed,s.emitOnBegin,s.poll,s.pollingInterval,s.syncConnectedChain])}({...{config:n.config,chainId:n.chainId,..."object"==typeof p?p:{}},enabled:!!((null===(t=h.enabled)||void 0===t||t)&&("object"==typeof p?p.enabled:p)),onBlockNumber(e){m.setQueryData(w.queryKey,e)}}),(0,o.aM)({...h,...w})}},39854:function(e,t,n){"use strict";n.d(t,{C:function(){return c}});var r=n(15899),a=n(84151),i=n(46760),s=n(39870),o=n(24143);function c(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{enabled:n=!0,onBlock:c,config:u,...d}=t,l=(0,o.Z)(t),h=(0,s.x)({config:l}),p=null!==(e=t.chainId)&&void 0!==e?e:h;(0,i.useEffect)(()=>{if(n&&c)return function(e,t){let n,i;let{syncConnectedChain:s=e._internal.syncConnectedChain,...o}=t,c=t=>{n&&n();let i=e.getClient({chainId:t});return n=(0,a.s)(i,r.p,"watchBlocks")(o)},u=c(t.chainId);return s&&!t.chainId&&(i=e.subscribe(({chainId:e})=>e,async e=>c(e))),()=>{u?.(),i?.()}}(l,{...d,chainId:p,onBlock:c})},[p,l,n,c,d.blockTag,d.emitMissed,d.emitOnBegin,d.includeTransactions,d.onError,d.poll,d.pollingInterval,d.syncConnectedChain])}},88620:function(e,t,n){"use strict";n.d(t,{oR:function(){return i}});var r=n(46760);let{useSyncExternalStoreWithSelector:a}=n(23064);function i(e,t=e.getState,n){let i=a(e.subscribe,e.getState,e.getServerState||e.getState,t,n);return(0,r.useDebugValue)(i),i}}}]);
|
|
@@ -130,7 +130,7 @@
|
|
|
130
130
|
*/Object.defineProperty(e,"__esModule",{value:!0})},35547:function(t,e,r){"use strict";/*!
|
|
131
131
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
132
132
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
133
|
-
*/var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let o=r(38940),i=r(3649);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===i.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e?e:this.getSymbolicName(t)||String(t)}}s.EMPTY_VOCABULARY=new s([],[],[]),n([o.NotNull],s.prototype,"literalNames",void 0),n([o.NotNull],s.prototype,"symbolicNames",void 0),n([o.NotNull],s.prototype,"displayNames",void 0),n([o.Override],s.prototype,"maxTokenType",null),n([o.Override],s.prototype,"getLiteralName",null),n([o.Override],s.prototype,"getSymbolicName",null),n([o.Override,o.NotNull],s.prototype,"getDisplayName",null),n([o.NotNull],s,"EMPTY_VOCABULARY",void 0),e.VocabularyImpl=s},
|
|
133
|
+
*/var n=this&&this.__decorate||function(t,e,r,n){var o,i=arguments.length,s=i<3?e:null===n?n=Object.getOwnPropertyDescriptor(e,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(t,e,r,n);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(i<3?o(s):i>3?o(e,r,s):o(e,r))||s);return i>3&&s&&Object.defineProperty(e,r,s),s};Object.defineProperty(e,"__esModule",{value:!0}),e.VocabularyImpl=void 0;let o=r(38940),i=r(3649);class s{constructor(t,e,r){this.literalNames=t,this.symbolicNames=e,this.displayNames=r,this._maxTokenType=Math.max(this.displayNames.length,Math.max(this.literalNames.length,this.symbolicNames.length))-1}get maxTokenType(){return this._maxTokenType}getLiteralName(t){if(t>=0&&t<this.literalNames.length)return this.literalNames[t]}getSymbolicName(t){return t>=0&&t<this.symbolicNames.length?this.symbolicNames[t]:t===i.Token.EOF?"EOF":void 0}getDisplayName(t){if(t>=0&&t<this.displayNames.length){let e=this.displayNames[t];if(e)return e}let e=this.getLiteralName(t);return e?e:this.getSymbolicName(t)||String(t)}}s.EMPTY_VOCABULARY=new s([],[],[]),n([o.NotNull],s.prototype,"literalNames",void 0),n([o.NotNull],s.prototype,"symbolicNames",void 0),n([o.NotNull],s.prototype,"displayNames",void 0),n([o.Override],s.prototype,"maxTokenType",null),n([o.Override],s.prototype,"getLiteralName",null),n([o.Override],s.prototype,"getSymbolicName",null),n([o.Override,o.NotNull],s.prototype,"getDisplayName",null),n([o.NotNull],s,"EMPTY_VOCABULARY",void 0),e.VocabularyImpl=s},92649:function(t,e){"use strict";/*!
|
|
134
134
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
135
135
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
136
136
|
*/Object.defineProperty(e,"__esModule",{value:!0})},62445:function(t,e,r){"use strict";/*!
|
|
@@ -361,7 +361,7 @@
|
|
|
361
361
|
*/var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(69823),e),o(r(53464),e),o(r(6633),e),o(r(11917),e),o(r(11209),e)},48579:function(t,e,r){"use strict";/*!
|
|
362
362
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
363
363
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
364
|
-
*/var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(4787),e),o(r(8987),e),o(r(63646),e),o(r(68611),e),o(r(77583),e),o(r(48556),e),o(r(36956),e),o(r(20261),e),o(r(18381),e),o(r(27208),e),o(r(51227),e),o(r(82500),e),o(r(83326),e),o(r(98571),e),o(r(87587),e),o(r(54103),e),o(r(35290),e),o(r(779),e),o(r(91095),e),o(r(91603),e),o(r(72985),e),o(r(48452),e),o(r(25543),e),o(r(61726),e),o(r(35025),e),o(r(63914),e),o(r(28827),e),o(r(26357),e),o(r(21403),e),o(r(18179),e),o(r(36463),e),o(r(56384),e),o(r(70040),e),o(r(19051),e),o(r(51118),e),o(r(10873),e),o(r(89190),e),o(r(3649),e),o(r(23746),e),o(r(50427),e),o(r(18145),e),o(r(40553),e),o(r(66049),e),o(r(35547),e),o(r(
|
|
364
|
+
*/var n=this&&this.__createBinding||(Object.create?function(t,e,r,n){void 0===n&&(n=r),Object.defineProperty(t,n,{enumerable:!0,get:function(){return e[r]}})}:function(t,e,r,n){void 0===n&&(n=r),t[n]=e[r]}),o=this&&this.__exportStar||function(t,e){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(e,r)||n(e,t,r)};Object.defineProperty(e,"__esModule",{value:!0}),o(r(4787),e),o(r(8987),e),o(r(63646),e),o(r(68611),e),o(r(77583),e),o(r(48556),e),o(r(36956),e),o(r(20261),e),o(r(18381),e),o(r(27208),e),o(r(51227),e),o(r(82500),e),o(r(83326),e),o(r(98571),e),o(r(87587),e),o(r(54103),e),o(r(35290),e),o(r(779),e),o(r(91095),e),o(r(91603),e),o(r(72985),e),o(r(48452),e),o(r(25543),e),o(r(61726),e),o(r(35025),e),o(r(63914),e),o(r(28827),e),o(r(26357),e),o(r(21403),e),o(r(18179),e),o(r(36463),e),o(r(56384),e),o(r(70040),e),o(r(19051),e),o(r(51118),e),o(r(10873),e),o(r(89190),e),o(r(3649),e),o(r(23746),e),o(r(50427),e),o(r(18145),e),o(r(40553),e),o(r(66049),e),o(r(35547),e),o(r(92649),e)},20549:function(t,e){"use strict";/*!
|
|
365
365
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
366
366
|
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
367
367
|
*/Object.defineProperty(e,"__esModule",{value:!0}),e.notNull=void 0,e.notNull=function(t,e){if(null==e)throw TypeError(t+" cannot be null or undefined.")}},11623:function(t,e,r){"use strict";/*!
|