1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1196],{21196:(e,t,i)=>{i.d(t,{$:()=>eF,A:()=>eP,B:()=>s,C:()=>ex,D:()=>C,E:()=>a,F:()=>eB,G:()=>x,H:()=>D,I:()=>eA,J:()=>eb,K:()=>g,L:()=>w,M:()=>P,N:()=>ec,O:()=>eq,P:()=>el,Q:()=>eC,R:()=>eE,S:()=>r,T:()=>e_,U:()=>eO,V:()=>U,W:()=>n,X:()=>ek,Y:()=>eT,Z:()=>eM,_:()=>eS,a:()=>L,a0:()=>eR,a1:()=>eN,a2:()=>eG,a3:()=>eV,a4:()=>eH,a5:()=>b,a6:()=>ez,a7:()=>eJ,a8:()=>eL,b:()=>v,c:()=>ev,d:()=>k,e:()=>I,f:()=>V,g:()=>F,h:()=>A,i:()=>u,j:()=>E,k:()=>y,l:()=>eD,m:()=>ed,n:()=>B,o:()=>R,p:()=>eI,q:()=>eU,r:()=>_,s:()=>c,t:()=>H,u:()=>ep,v:()=>ej,w:()=>X,x:()=>h,y:()=>eQ,z:()=>p});let r=e=>e,n=e=>e;class s extends Error{constructor(e,t={}){super(),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"docsPath",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"metaMessages",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"shortMessage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ViemError"}),Object.defineProperty(this,"version",{enumerable:!0,configurable:!0,writable:!0,value:"[email protected]"});let i=t.cause instanceof s?t.cause.details:t.cause?.message?t.cause.message:t.details,r=t.cause instanceof s&&t.cause.docsPath||t.docsPath;this.message=[e||"An error occurred.","",...t.metaMessages?[...t.metaMessages,""]:[],...r?[`Docs: https://viem.sh${r}${t.docsSlug?`#${t.docsSlug}`:""}`]:[],...i?[`Details: ${i}`]:[],`Version: ${this.version}`].join("\n"),t.cause&&(this.cause=t.cause),this.details=i,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}walk(e){return function e(t,i){return i?.(t)?t:t&&"object"==typeof t&&"cause"in t?e(t.cause,i):i?null:t}(this,e)}}class o extends s{constructor({max:e,min:t,signed:i,size:r,value:n}){super(`Number "${n}" is not in safe ${r?`${8*r}-bit ${i?"signed":"unsigned"} `:""}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntegerOutOfRangeError"})}}class a extends s{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.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesBooleanError"})}}class l extends s{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeOverflowError"})}}function u(e,{strict:t=!0}={}){return!!e&&"string"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x"))}function c(e){return u(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}function h(e,{dir:t="left"}={}){let i="string"==typeof e?e.replace("0x",""):e,r=0;for(let e=0;e<i.length-1;e++)if("0"===i["left"===t?e:i.length-e-1].toString())r++;else break;return(i="left"===t?i.slice(r):i.slice(0,i.length-r),"string"==typeof e)?(1===i.length&&"right"===t&&(i=`${i}0`),`0x${i.length%2==1?`0${i}`:i}`):i}class f extends s{constructor({offset:e,position:t,size:i}){super(`Slice ${"start"===t?"starting":"ending"} at offset "${e}" is out-of-bounds (size: ${i}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SliceOffsetOutOfBoundsError"})}}class d extends s{constructor({size:e,targetSize:t,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SizeExceedsPaddingSizeError"})}}class b extends s{constructor({size:e,targetSize:t,type:i}){super(`${i.charAt(0).toUpperCase()}${i.slice(1).toLowerCase()} is expected to be ${t} ${i} long, but is ${e} ${i} long.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidBytesLengthError"})}}function p(e,{dir:t,size:i=32}={}){return"string"==typeof e?g(e,{dir:t,size:i}):function(e,{dir:t,size:i=32}={}){if(null===i)return e;if(e.length>i)throw new d({size:e.length,targetSize:i,type:"bytes"});let r=new Uint8Array(i);for(let n=0;n<i;n++){let s="right"===t;r[s?n:i-n-1]=e[s?n:e.length-n-1]}return r}(e,{dir:t,size:i})}function g(e,{dir:t,size:i=32}={}){if(null===i)return e;let r=e.replace("0x","");if(r.length>2*i)throw new d({size:Math.ceil(r.length/2),targetSize:i,type:"hex"});return`0x${r["right"===t?"padEnd":"padStart"](2*i,"0")}`}let m=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function y(e,t={}){return"number"==typeof e||"bigint"==typeof e?x(e,t):"string"==typeof e?P(e,t):"boolean"==typeof e?w(e,t):v(e,t)}function w(e,t={}){let i=`0x${Number(e)}`;return"number"==typeof t.size?(C(i,{size:t.size}),p(i,{size:t.size})):i}function v(e,t={}){let i="";for(let t=0;t<e.length;t++)i+=m[e[t]];let r=`0x${i}`;return"number"==typeof t.size?(C(r,{size:t.size}),p(r,{dir:"right",size:t.size})):r}function x(e,t={}){let i,{signed:r,size:n}=t,s=BigInt(e);n?i=r?(1n<<8n*BigInt(n)-1n)-1n:2n**(8n*BigInt(n))-1n:"number"==typeof e&&(i=BigInt(Number.MAX_SAFE_INTEGER));let a="bigint"==typeof i&&r?-i-1n:0;if(i&&s>i||s<a){let t="bigint"==typeof e?"n":"";throw new o({max:i?`${i}${t}`:void 0,min:`${a}${t}`,signed:r,size:n,value:`${e}${t}`})}let l=`0x${(r&&s<0?(1n<<BigInt(8*n))+BigInt(s):s).toString(16)}`;return n?p(l,{size:n}):l}let $=new TextEncoder;function P(e,t={}){return v($.encode(e),t)}let O=new TextEncoder;function E(e,t={}){return"number"==typeof e||"bigint"==typeof e?I(x(e,t)):"boolean"==typeof e?function(e,t={}){let i=new Uint8Array(1);return(i[0]=Number(e),"number"==typeof t.size)?(C(i,{size:t.size}),p(i,{size:t.size})):i}(e,t):u(e)?I(e,t):U(e,t)}let z={zero:48,nine:57,A:65,F:70,a:97,f:102};function j(e){return e>=z.zero&&e<=z.nine?e-z.zero:e>=z.A&&e<=z.F?e-(z.A-10):e>=z.a&&e<=z.f?e-(z.a-10):void 0}function I(e,t={}){let i=e;t.size&&(C(i,{size:t.size}),i=p(i,{dir:"right",size:t.size}));let r=i.slice(2);r.length%2&&(r=`0${r}`);let n=r.length/2,o=new Uint8Array(n);for(let e=0,t=0;e<n;e++){let i=j(r.charCodeAt(t++)),n=j(r.charCodeAt(t++));if(void 0===i||void 0===n)throw new s(`Invalid byte sequence ("${r[t-2]}${r[t-1]}" in "${r}").`);o[e]=16*i+n}return o}function U(e,t={}){let i=O.encode(e);return"number"==typeof t.size?(C(i,{size:t.size}),p(i,{dir:"right",size:t.size})):i}function C(e,{size:t}){if(c(e)>t)throw new l({givenSize:c(e),maxSize:t})}function L(e,t={}){let{signed:i}=t;t.size&&C(e,{size:t.size});let r=BigInt(e);if(!i)return r;let n=(e.length-2)/2;return r<=(1n<<8n*BigInt(n)-1n)-1n?r:r-BigInt(`0x${"f".padStart(2*n,"f")}`)-1n}function A(e,t={}){return Number(L(e,t))}function k(e,t){return({exclude:i,format:r})=>({exclude:i,format:e=>{let n=t(e);if(i)for(let e of i)delete n[e];return{...n,...r(e)}},type:e})}class B extends s{constructor({address:e}){super(`Address "${e}
1" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAddressError"})}}class T extends Map{constructor(e){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}set(e,t){return super.set(e,t),this.maxSize&&this.size>this.maxSize&&this.delete(this.keys().next().value),this}}function M(e){if(!Number.isSafeInteger(e)||e<0)throw Error(`Wrong positive integer: ${e}`)}function S(e,...t){if(!(e instanceof Uint8Array))throw Error("Expected Uint8Array");if(t.length>0&&!t.includes(e.length))throw Error(`Expected Uint8Array of length ${t}, not of length=${e.length}`)}function F(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 R(e,t){S(e);let i=t.outputLen;if(e.length<i)throw Error(`digestInto() expects output buffer of length at least ${i}`)}let N=BigInt(0x100000000-1),G=BigInt(32),V=e=>new DataView(e.buffer,e.byteOffset,e.byteLength),_=(e,t)=>e<<32-t|e>>>t;if(68!==new Uint8Array(new Uint32Array([0x11223344]).buffer)[0])throw Error("Non little-endian hardware is not supported");function H(e){if("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)),!(e instanceof Uint8Array))throw Error(`expected Uint8Array, got ${typeof e}`);return e}class D{clone(){return this._cloneInto()}}function X(e){let t=t=>e().update(H(t)).digest(),i=e();return t.outputLen=i.outputLen,t.blockLen=i.blockLen,t.create=()=>e(),t}let[W,q,K]=[[],[],[]],J=BigInt(0),Q=BigInt(1),Y=BigInt(2),Z=BigInt(7),ee=BigInt(256),et=BigInt(113);for(let e=0,t=Q,i=1,r=0;e<24;e++){[i,r]=[r,(2*i+3*r)%5],W.push(2*(5*r+i)),q.push((e+1)*(e+2)/2%64);let n=J;for(let e=0;e<7;e++)(t=(t<<Q^(t>>Z)*et)%ee)&Y&&(n^=Q<<(Q<<BigInt(e))-Q);K.push(n)}let[ei,er]=function(e,t=!1){let i=new Uint32Array(e.length),r=new
1Uint32Array(e.length);for(let n=0;n<e.length;n++){let{h:s,l:o}=function(e,t=!1){return t?{h:Number(e&N),l:Number(e>>G&N)}:{h:0|Number(e>>G&N),l:0|Number(e&N)}}(e[n],t);[i[n],r[n]]=[s,o]}return[i,r]}(K,!0),en=(e,t,i)=>i>32?((e,t,i)=>t<<i-32|e>>>64-i)(e,t,i):((e,t,i)=>e<<i|t>>>32-i)(e,t,i),es=(e,t,i)=>i>32?((e,t,i)=>e<<i-32|t>>>64-i)(e,t,i):((e,t,i)=>t<<i|e>>>32-i)(e,t,i);class eo extends D{constructor(e,t,i,r=!1,n=24){if(super(),this.blockLen=e,this.suffix=t,this.outputLen=i,this.enableXOF=r,this.rounds=n,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,M(i),0>=this.blockLen||this.blockLen>=200)throw Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=(e=>new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4)))(this.state)}keccak(){!function(e,t=24){let i=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)i[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){let r=(t+8)%10,n=(t+2)%10,s=i[n],o=i[n+1],a=en(s,o,1)^i[r],l=es(s,o,1)^i[r+1];for(let i=0;i<50;i+=10)e[t+i]^=a,e[t+i+1]^=l}let t=e[2],n=e[3];for(let i=0;i<24;i++){let r=q[i],s=en(t,n,r),o=es(t,n,r),a=W[i];t=e[a],n=e[a+1],e[a]=s,e[a+1]=o}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)i[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~i[(r+2)%10]&i[(r+4)%10]}e[0]^=ei[r],e[1]^=er[r]}i.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}update(e){F(this);let{blockLen:t,state:i}=this,r=(e=H(e)).length;for(let n=0;n<r;){let s=Math.min(t-this.pos,r-n);for(let t=0;t<s;t++)i[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:i,blockLen:r}=this;e[i]^=t,(128&t)!=0&&i===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){F(this,!1),S(e),this.finish();let t=this.state,{blockLen:i}=this;for(let r=0,n=e.length;r<n;){this.posOut>=i&&this.keccak();let s=Math.min(i-this.posOut,n-r);e.set(t.subarray(this.posOut,this.posOut+s),r),this.posOut+=s,r+=s}return e}xofInto(e){if(!this.enableXOF)throw Error("XOF is not possible for this instance");return this.writeInto(e)}xof(e){return M(e),this.xofInto(new Uint8Array(e))}digestInto(e){if(R(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:i,outputLen:r,rounds:n,enableXOF:s}=this;return e||(e=new eo(t,i,r,s,n)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=n,e.suffix=i,e.outputLen=r,e.enableXOF=s,e.destroyed=this.destroyed,e}}let ea=X(()=>new eo(136,1,32));function el(e,t){let i=ea(u(e,{strict:!1})?E(e):e);return"bytes"===(t||"hex")?i:y(i)}let eu=new T(8192);function ec(e,t){if(eu.has(`${e}.${t}`))return eu.get(`${e}.${t}`);let i=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=el(U(i),"bytes"),n=(t?i.substring(`${t}0x`.length):i).split("");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&n[e]&&(n[e]=n[e].toUpperCase()),(15&r[e>>1])>=8&&n[e+1]&&(n[e+1]=n[e+1].toUpperCase());let s=`0x${n.join("")}`;return eu.set(`${e}.${t}`,s),s}let eh=/^0x[a-fA-F0-9]{40}$/,ef=new T(8192);function ed(e,t){let{strict:i=!0}=t??{};if(ef.has(e))return ef.get(e);let r=!!eh.test(e)&&(e.toLowerCase()===e||!i||ec(e)===e);return ef.set(e,r),r}function eb(e){return"string"==typeof e[0]?ep(e):function(e){let t=0;for(let i of e)t+=i.length;let i=new Uint8Array(t),r=0;for(let t of e)i.set(t,r),r+=t.length;return i}(e)}function ep(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}class eg extends s{constructor({offset:e}){super(`Offset \`${e}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NegativeOffsetError"})}}class em extends s{constructor({length:e,position:t}){super(`Position \`${t}\` is out of bounds (\`0 < position < ${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PositionOutOfBoundsError"})}}class ey extends s{constructor({count:e,limit:t}){super(`Recursive read limit of \`${t}\` exceeded (recursive read count: \`${e}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"RecursiveReadLimitExceededError"})}}let ew={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:1/0,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new ey({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new em({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new eg({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 eg({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 i=t??this.position;return this.assertPosition(i+e-1),this.bytes.subarray(i,i+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 i=this.inspectBytes(e);return this.position+=t??e,i},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===1/0)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function ev(e,{recursiveReadLimit:t=8192}={}){let i=Object.create(ew);return i.bytes=e,i.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),i.positionReadCount=new Map,i.recursiveReadLimit=t,i}let ex={gwei:9,wei:18},e$={ether:-9,wei:9};function eP(e,t){let i=e.toString(),r=i.startsWith("-");r&&(i=i.slice(1));let[n,s]=[(i=i.padStart(t,"0")).slice(0,i.length-t),i.slice(i.length-t)];return s=s.replace(/(0+)$/,""),`${r?"-":""}${n||"0"}${s?`.${s}`:""}`}function eO(e,t="wei"){return eP(e,e$[t])}function eE(e){let t=Object.entries(e).map(([e,t])=>
vendor: 2,365 bytes, line 1
1void 0===t||!1===t?null:[e,t]).filter(Boolean),i=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>` ${`${e}:`.padEnd(i+1)} ${t}`).join("\n")}class ez extends s{constructor(){super("Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.\nUse `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeConflictError"})}}class ej extends s{constructor({v:e}){super(`Invalid \`v\` value "${e}". Expected 27 or 28.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidLegacyVError"})}}class eI extends s{constructor({transaction:e}){super("Cannot infer a transaction type from provided transaction.",{metaMessages:["Provided Transaction:","{",eE(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","- a Legacy Transaction with `gasPrice`"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSerializableTransactionError"})}}class eU extends s{constructor({storageKey:e}){super(`Size for storage key "${e}" is invalid. Expected 32 bytes. Got ${Math.floor((e.length-2)/2)} bytes.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStorageKeySizeError"})}}class eC extends s{constructor({blockNumber:e,chain:t,contract:i}){super(`Chain "${t.name}" does not support contract "${i.name}".`,{metaMessages:["This could be due to any of the following:",...e&&i.blockCreated&&i.blockCreated>e?[`- The contract "${i.name}" was not deployed until block ${i.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract "${i.name}" configured.`]]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ChainDoesNotSupportContract"})}}class eL extends s{constructor(){super("No chain was provided to the Client."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ClientChainNotConfiguredError"})}}class eA extends s{constructor({chainId:e}){super("number"==typeof e?`Chain ID "${e}
1" is invalid.`:"Chain ID is invalid."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidChainIdError"})}}class ek extends s{constructor({cause:e,message:t}={}){let i=t?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${i?`with reason: ${i}`:"for an unknown reason"}.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"ExecutionRevertedError"})}}Object.defineProperty(ek,"code",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(ek,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});class eB extends s{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${eO(t)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooHigh"})}}Object.defineProperty(eB,"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 eT extends s{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\`maxFeePerGas\`${t?` = ${eO(t)}`:""} gwei) cannot be lower than the block base fee.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"FeeCapTooLow"})}}Object.defineProperty(eT,"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 eM extends s{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is higher than the next one expected.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooHighError"})}}Object.defineProperty(eM,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class eS extends s{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}is lower than the current nonce of the account. 2Try increasing the nonce or find the latest nonce with \`getTransactionCount\`.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceTooLowError"})}}Object.defineProperty(eS,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class eF extends s{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:""}exceeds the maximum allowed nonce.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"NonceMaxValueError"})}}Object.defineProperty(eF,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class eR extends s{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."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InsufficientFundsError"})}}Object.defineProperty(eR,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds/});class eN extends s{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}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooHighError"})}}Object.defineProperty(eN,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class eG extends s{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:""}provided for the transaction is too low.`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"IntrinsicGasTooLowError"})}}Object.defineProperty(eG,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class eV extends s{constructor({cause:e}){super("The transaction type is not supported for this chain.",{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TransactionTypeNotSupportedError"})}}Object.defineProperty(eV,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class e_ extends s{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:i}={}){super(`The provided tip (\`maxPriorityFeePerGas\`${t?` = ${eO(t)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${i?` = ${eO(i)} gwei`:""}).`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"TipAboveFeeCapError"})}}Object.defineProperty(e_,"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 eH extends s{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownNodeError"})}}function eD(e,t,i,{strict:r}={}){return u(e,{strict:!1})?function(e,t,i,{strict:r}={}){eX(e,t);let n=`0x${e.replace("0x","").slice((t??0)*2,(i??e.length)*2)}`;
2return r&&eW(n,t,i),n}(e,t,i,{strict:r}):eq(e,t,i,{strict:r})}function eX(e,t){if("number"==typeof t&&t>0&&t>c(e)-1)throw new f({offset:t,position:"start",size:c(e)})}function eW(e,t,i){if("number"==typeof t&&"number"==typeof i&&c(e)!==i-t)throw new f({offset:i,position:"end",size:c(e)})}function eq(e,t,i,{strict:r}={}){eX(e,t);let n=e.slice(t,i);return r&&eW(n,t,i),n}let eK={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3"};function eJ(e){let t={};return void 0!==e.accessList&&(t.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(t.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&("string"!=typeof e.blobs[0]?t.blobs=e.blobs.map(e=>v(e)):t.blobs=e.blobs),void 0!==e.data&&(t.data=e.data),void 0!==e.from&&(t.from=e.from),void 0!==e.gas&&(t.gas=x(e.gas)),void 0!==e.gasPrice&&(t.gasPrice=x(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(t.maxFeePerBlobGas=x(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(t.maxFeePerGas=x(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=x(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(t.nonce=x(e.nonce)),void 0!==e.to&&(t.to=e.to),void 0!==e.type&&(t.type=eK[e.type]),void 0!==e.value&&(t.value=x(e.value)),t}let eQ=k("transactionRequest",eJ)}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.