PageSourceSearch

https://nativowallet.pages.dev/assets/index-DzIrjYK2.js

js nativowallet.pages.dev collected 2026-10-03 05:42:25 UTC 51,498 bytes, 1 lines download raw bytes

1var It=Object.defineProperty;var Le=a=>{throw TypeError(a)};var Ft=(a,n,e)=>n in a?It(a,n,{enumerable:!0,configurable:!0,writable:!0,value:e}):a[n]=e;var p=(a,n,e)=>Ft(a,typeof n!="symbol"?n+"":n,e),Ee=(a,n,e)=>n.has(a)||Le("Cannot "+e);var c=(a,n,e)=>(Ee(a,n,"read from private field"),e?e.call(a):n.get(a)),g=(a,n,e)=>n.has(a)?Le("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(a):n.set(a,e),h=(a,n,e,t)=>(Ee(a,n,"write to private field"),t?t.call(a,e):n.set(a,e),e),x=(a,n,e)=>(Ee(a,n,"access private method"),e);var ze=(a,n,e,t)=>({set _(r){h(a,n,r,e)},get _(){return c(a,n,t)}});import{as as Ve,bd as Fe,bj as Qe,bk as Ne,bp as Xe,bq as Ze,br as Ye,bs as Be,bt as et,al as d,b2 as Q,at as be,aU as P,bB as Ue,aS as tt,bA as rt,bK as le,bv as st,aw as nt,bJ as De,bD as me,D as at,aG as R,B as ve,au as Bt,bn as Ut,ak as b,aX as it,L as T,Y as N,t as O,bo as ot,Z as ct,a as fe,bz as ut,aj as lt,b9 as ye,A as ht,a3 as mt,e as ft,K as dt,aa as Se,be as de,aT as pt,a_ as X,b as gt,J as Dt,ba as bt,aA as $t,ag as yt,N as wt,c as Mt,d as jt,C as qt,f as Jt,g as Lt,h as zt,i as Wt,E as Gt,j as Ht,k as Kt,l as Vt,m as Qt,n as Xt,o as Zt,p as Yt,F as er,q as tr,r as rr,s as sr,u as nr,v as ar,w as ir,x as or,y as cr,G as ur,H as lr,z as hr,I as mr,M as fr,O as dr,P as pr,Q as gr,R as br,S as yr,T as wr,U as kr,V as Er,W as Rr,X as Pr,_ as Tr,$ as Nr,a0 as vr,a1 as Sr,a2 as _r,a4 as Or,a5 as xr,a6 as Cr,a7 as Ar,a8 as Ir,a9 as Fr,ab as Br,ac as Ur,ad as Dr,ae as $r,af as Mr,ah as jr,ai as qr,am as Jr,an as Lr,ao as zr,ap as Wr,aq as Gr,ar as Hr,av as Kr,ax as Vr,ay as Qr,az as Xr,aB as Zr,aC as Yr,aD as es,aE as ts,aF as rs,aH as ss,aI as ns,aJ as as,aK as is,aL as os,aM as cs,aN as us,aO as ls,aP as hs,aQ as ms,aR as fs,aV as ds,aW as ps,aY as gs,aZ as bs,a$ as ys,b0 as ws,b1 as ks,b3 as Es,b4 as Rs,b5 as Ps,b6 as Ts,b7 as Ns,b8 as vs,bb as Ss,bc as _s,bf as Os,bg as xs,bh as Cs,bi as As,bl as Is,bm as Fs,bu as Bs,bw as Us,bx as Ds,by as $s,bC as Ms,bE as js,bF as qs,bG as Js,bH as Ls,bI as zs}from"./index-B6dFcdvR.js";function Ws(){Ve.lock(),Fe.lock(),Qe.lock(),Ne.lock(),Xe.lock(),Ze.lock(),Ye.lock(),Be.lock(),et.lock(),Ne.lock()}const Gs=new RegExp("^bytes([0-9]+)$"),Hs=new RegExp("^(u?int)([0-9]*)$"),Ks=new RegExp("^(.*)\\[([0-9]*)\\]$");function kt(a,n,e){switch(a){case"address":return e?P(le(n,32)):P(tt(n));case"string":return Ue(n);case"bytes":return P(n);case"bool":return n=n?"0x01":"0x00",e?P(le(n,32)):P(n)}let t=a.match(Hs);if(t){let r=t[1]==="int",s=parseInt(t[2]||"256");return d((!t[2]||t[2]===String(s))&&s%8===0&&s!==0&&s<=256,"invalid number type","type",a),e&&(s=256),r&&(n=rt(n,s)),P(le(st(n),s/8))}if(t=a.match(Gs),t){const r=parseInt(t[1]);return d(String(r)===t[1]&&r!==0&&r<=32,"invalid bytes type","type",a),d(nt(n)===r,`invalid value for ${a}`,"value",n),e?P(De(n,32)):n}if(t=a.match(Ks),t&&Array.isArray(n)){const r=t[1],s=parseInt(t[2]||String(n.length));d(s===n.length,`invalid array length for ${a}`,"value",n);const i=[];return n.forEach(function(o){i.push(kt(r,o,!0))}),P(be(i))}d(!1,"invalid type","type",a)}function $e(a,n){d(a.length===n.length,"wrong number of values; expected ${ types.length }","values",n);const e=[];return a.forEach(function(t,r){e.push(kt(t,n[r]))}),Q(be(e))}function Vs(a,n){return Fe($e(a,n))}function Qs(a,n){return Be($e(a,n))}function Xs(a){const n=Ue(a);if(n.length>31)throw new Error("bytes32 string must be less than 32 bytes");return De(n,32)}function Zs(a){const n=P(a,"bytes");if(n.length!==32)throw new Error("invalid bytes32 - not 32 bytes long");if(n[31]!==0)throw new Error("invalid bytes32 string - no null terminator");let e=31;for(;n[e-1]===0;)e--;return me(n.slice(0,e))}class Me{constructor(n,e,t){p(this,"interface");p(this,"bytecode");p(this,"runner");const r=at.from(n);e instanceof Uint8Array?e=Q(P(e)):(typeof e=="object"&&(e=e.object),e.startsWith("0x")||(e="0x"+e),e=Q(P(e))),R(this,{bytecode:e,interface:r,runner:t||null})}attach(n){return new ve(n,this.interface,this.runner)}async getDeployTransaction(...n){let e={};const t=this.interface.deploy;
1if(t.inputs.length+1===n.length&&(e=await Bt(n.pop())),t.inputs.length!==n.length)throw new Error("incorrect number of arguments to constructor");const r=await Ut(this.runner,t.inputs,n),s=be([this.bytecode,this.interface.encodeDeploy(r)]);return Object.assign({},e,{data:s})}async deploy(...n){const e=await this.getDeployTransaction(...n);b(this.runner&&typeof this.runner.sendTransaction=="function","factory runner does not support sending transactions","UNSUPPORTED_OPERATION",{operation:"sendTransaction"});const t=await this.runner.sendTransaction(e),r=it(t);return new ve(r,this.interface,this.runner,t)}connect(n){return new Me(this.interface,this.bytecode,n)}static fromSolidity(n,e){d(n!=null,"bad compiler output","output",n),typeof n=="string"&&(n=JSON.parse(n));const t=n.abi;let r="";return n.bytecode?r=n.bytecode:n.evm&&n.evm.bytecode&&(r=n.evm.bytecode),new this(t,r,e)}}const We=new Set;function B(a){We.has(a)||(We.add(a),console.log("========= NOTICE ========="),console.log(`Request-Rate Exceeded for ${a} (this message will not be repeated)`),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.org/api-keys/"),console.log("=========================="))}const ae="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function Ys(a){switch(a){case"mainnet":return"rpc.ankr.com/eth";case"goerli":return"rpc.ankr.com/eth_goerli";case"sepolia":return"rpc.ankr.com/eth_sepolia";case"arbitrum":return"rpc.ankr.com/arbitrum";case"base":return"rpc.ankr.com/base";case"base-goerli":return"rpc.ankr.com/base_goerli";case"base-sepolia":return"rpc.ankr.com/base_sepolia";case"bnb":return"rpc.ankr.com/bsc";case"bnbt":return"rpc.ankr.com/bsc_testnet_chapel";case"filecoin":return"rpc.ankr.com/filecoin";case"filecoin-calibration":return"rpc.ankr.com/filecoin_testnet";case"matic":return"rpc.ankr.com/polygon";case"matic-mumbai":return"rpc.ankr.com/polygon_mumbai";case"optimism":return"rpc.ankr.com/optimism";case"optimism-goerli":return"rpc.ankr.com/optimism_testnet";case"optimism-sepolia":return"rpc.ankr.com/optimism_sepolia"}d(!1,"unsupported network","network",a)}class Z extends T{constructor(e,t){e==null&&(e="mainnet");const r=N.from(e);t==null&&(t=ae);const s={polling:!0,staticNetwork:r},i=Z.getRequest(r,t);super(i,r,s);p(this,"apiKey");R(this,{apiKey:t})}_getProvider(e){try{return new Z(e,this.apiKey)}catch{}return super._getProvider(e)}static getRequest(e,t){t==null&&(t=ae);const r=new O(`https://${Ys(e.name)}/${t}`);return r.allowGzip=!0,t===ae&&(r.retryFunc=async(s,i,o)=>(B("AnkrProvider"),!0)),r}getRpcError(e,t){return e.method==="eth_sendRawTransaction"&&t&&t.error&&t.error.message==="INTERNAL_ERROR: could not replace existing tx"&&(t.error.message="replacement transaction underpriced"),super.getRpcError(e,t)}isCommunityResource(){return this.apiKey===ae}}const ie="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC";function en(a){switch(a){case"mainnet":return"eth-mainnet.g.alchemy.com";case"goerli":return"eth-goerli.g.alchemy.com";case"sepolia":return"eth-sepolia.g.alchemy.com";case"arbitrum":return"arb-mainnet.g.alchemy.com";case"arbitrum-goerli":return"arb-goerli.g.alchemy.com";case"arbitrum-sepolia":return"arb-sepolia.g.alchemy.com";case"base":return"base-mainnet.g.alchemy.com";case"base-goerli":return"base-goerli.g.alchemy.com";case"base-sepolia":return"base-sepolia.g.alchemy.com";case"matic":return"polygon-mainnet.g.alchemy.com";case"matic-amoy":return"polygon-amoy.g.alchemy.com";case"matic-mumbai":return"polygon-mumbai.g.alchemy.com";case"optimism":return"opt-mainnet.g.alchemy.com";case"optimism-goerli":return"opt-goerli.g.alchemy.com";case"optimism-sepolia":return"opt-sepolia.g.alchemy.com"}d(!1,"unsupported network","network",a)}class Y extends T{constructor(e,t){e==null&&(e="mainnet");const r=N.from(e);t==null&&(t=ie);
1const s=Y.getRequest(r,t);super(s,r,{staticNetwork:r});p(this,"apiKey");R(this,{apiKey:t})}_getProvider(e){try{return new Y(e,this.apiKey)}catch{}return super._getProvider(e)}async _perform(e){if(e.method==="getTransactionResult"){const{trace:t,tx:r}=await ot({trace:this.send("trace_transaction",[e.hash]),tx:this.getTransaction(e.hash)});if(t==null||r==null)return null;let s,i=!1;try{s=t[0].result.output,i=t[0].error==="Reverted"}catch{}if(s)return b(!i,"an error occurred during transaction executions","CALL_EXCEPTION",{action:"getTransactionResult",data:s,reason:null,transaction:r,invocation:null,revert:null}),s;b(!1,"could not parse trace result","BAD_DATA",{value:t})}return await super._perform(e)}isCommunityResource(){return this.apiKey===ie}static getRequest(e,t){t==null&&(t=ie);const r=new O(`https://${en(e.name)}/v2/${t}`);return r.allowGzip=!0,t===ie&&(r.retryFunc=async(s,i,o)=>(B("alchemy"),!0)),r}}function oe(a){switch(a){case"mainnet":return"39f1d67cedf8b7831010a665328c9197";case"arbitrum":return"0550c209db33c3abf4cc927e1e18cea1";case"bnb":return"98b5a77e531614387366f6fc5da097f8";case"matic":return"cd9d4d70377471aa7c142ec4a4205249"}d(!1,"unsupported network","network",a)}function tn(a){switch(a){case"mainnet":return"ethereum-mainnet.core.chainstack.com";case"arbitrum":return"arbitrum-mainnet.core.chainstack.com";case"bnb":return"bsc-mainnet.core.chainstack.com";case"matic":return"polygon-mainnet.core.chainstack.com"}d(!1,"unsupported network","network",a)}class ee extends T{constructor(e,t){e==null&&(e="mainnet");const r=N.from(e);t==null&&(t=oe(r.name));const s=ee.getRequest(r,t);super(s,r,{staticNetwork:r});p(this,"apiKey");R(this,{apiKey:t})}_getProvider(e){try{return new ee(e,this.apiKey)}catch{}return super._getProvider(e)}isCommunityResource(){return this.apiKey===oe(this._network.name)}static getRequest(e,t){t==null&&(t=oe(e.name));const r=new O(`https://${tn(e.name)}/${t}`);return r.allowGzip=!0,t===oe(e.name)&&(r.retryFunc=async(s,i,o)=>(B("ChainstackProvider"),!0)),r}}class Et extends T{constructor(n){n==null&&(n="mainnet");const e=N.from(n);d(e.name==="mainnet","unsupported network","network",n),super("https://cloudflare-eth.com/",e,{staticNetwork:e})}}const rn="1 11155111 17000 560048 2741 11124 33111 33139 42170 42161 421614 43114 43113 8453 84532 80069 80094 199 1029 81457 168587773 56 97 42220 11142220 252 2523 100 999 737373 747474 59144 59141 5000 5003 43521 143 10143 1287 1284 1285 10 11155420 204 5611 80002 137 534352 534351 1329 1328 146 14601 988 2201 1923 1924 167013 167000 130 1301 480 4801 51 50 324 300".split(/ /g),Ge=2e3;function sn(a){return a&&typeof a.then=="function"}const Rt="org.ethers.plugins.provider.Etherscan";class je extends ct{constructor(e){super(Rt);p(this,"baseUrl");R(this,{baseUrl:e})}clone(){return new je(this.baseUrl)}}const nn=["enableCcipRead"];let an=1;var J;class Pt extends fe{constructor(e,t){const r=t??null;super();p(this,"network");p(this,"apiKey");g(this,J);const s=N.from(e);d(rn.indexOf(`${s.chainId}`)>=0,"unsupported network","network",s),h(this,J,s.getPlugin(Rt)),R(this,{apiKey:r,network:s})}getBaseUrl(){if(c(this,J))return c(this,J).baseUrl;switch(this.network.name){case"mainnet":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"holesky":return"https://api-holesky.etherscan.io";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"base":return"https://api.basescan.org";case"base-sepolia":return"https://api-sepolia.basescan.org";case"bnb":return"https://api.bscscan.com";case"bnbt":return"https://api-testnet.bscscan.com";case"matic":return"https://api.polygonscan.com";case"matic-amoy":return"https://api-amoy.polygonscan.com";case"matic-mumbai":return"https://api-testnet.polygonscan.com";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}d(!1,"unsupported network","network",this.network)}getUrl(e,t){let r=Object.keys(t).reduce((s,i)=>{const o=t[i];return o!=null&&(s+=`&${i}=${o}`),s},"");return this.apiKey&&(r+=`&apikey=${this.apiKey}`),`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}&module=${e}${r}`}getPostUrl(){return`https://api.etherscan.io/v2/api?chainid=${this.network.chainId}`}getPostData(e,t){return t.module=e,t.apikey=this.apiKey,t.chainid=this.network.chainId,t}async detectNetwork(){return this.network}async fetch(e,t,r){const s=an++,i=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null;
1this.emit("debug",{action:"sendRequest",id:s,url:i,payload:o});const u=new O(i);u.setThrottleParams({slotInterval:1e3}),u.retryFunc=(w,m,y)=>(this.isCommunityResource()&&B("Etherscan"),Promise.resolve(!0)),u.processFunc=async(w,m)=>{const y=m.hasBody()?JSON.parse(me(m.body)):{},K=(typeof y.result=="string"?y.result:"").toLowerCase().indexOf("rate limit")>=0;return e==="proxy"?y&&y.status==0&&y.message=="NOTOK"&&K&&(this.emit("debug",{action:"receiveError",id:s,reason:"proxy-NOTOK",error:y}),m.throwThrottleError(y.result,Ge)):K&&(this.emit("debug",{action:"receiveError",id:s,reason:"null result",error:y.result}),m.throwThrottleError(y.result,Ge)),m},o&&(u.setHeader("content-type","application/x-www-form-urlencoded; charset=UTF-8"),u.body=Object.keys(o).map(w=>`${w}=${o[w]}`).join("&"));const f=await u.send();try{f.assertOk()}catch(w){this.emit("debug",{action:"receiveError",id:s,error:w,reason:"assertOk"}),b(!1,"response error","SERVER_ERROR",{request:u,response:f})}f.hasBody()||(this.emit("debug",{action:"receiveError",id:s,error:"missing body",reason:"null body"}),b(!1,"missing response","SERVER_ERROR",{request:u,response:f}));const l=JSON.parse(me(f.body));
1return e==="proxy"?(l.jsonrpc!="2.0"&&(this.emit("debug",{action:"receiveError",id:s,result:l,reason:"invalid JSON-RPC"}),b(!1,"invalid JSON-RPC response (missing jsonrpc='2.0')","SERVER_ERROR",{request:u,response:f,info:{result:l}})),l.error&&(this.emit("debug",{action:"receiveError",id:s,result:l,reason:"JSON-RPC error"}),b(!1,"error response","SERVER_ERROR",{request:u,response:f,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result):l.status==0&&(l.message==="No records found"||l.message==="No transactions found")?(this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result):((l.status!=1||typeof l.message=="string"&&!l.message.match(/^OK/))&&(this.emit("debug",{action:"receiveError",id:s,result:l}),b(!1,"error response","SERVER_ERROR",{request:u,response:f,info:{result:l}})),this.emit("debug",{action:"receiveRequest",id:s,result:l}),l.result)}_getTransactionPostData(e){const t={};for(let r in e){if(nn.indexOf(r)>=0||e[r]==null)continue;let s=e[r];if(!(r==="type"&&s===0)&&!(r==="blockTag"&&s==="latest")){if({type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r])s=ut(s);else if(r==="accessList")s="["+lt(s).map(i=>`{address:"${i.address}",storageKeys:["${i.storageKeys.join('","')}"]}`).join(",")+"]";else if(r==="blobVersionedHashes"){if(s.length===0)continue;b(!1,"Etherscan API does not support blobVersionedHashes","UNSUPPORTED_OPERATION",{operation:"_getTransactionPostData",info:{transaction:e}})}else s=Q(s);t[r]=s}}return t}_checkError(e,t,r){let s="";if(ye(t,"SERVER_ERROR")){try{s=t.info.result.error.message}catch{}if(!s)try{s=t.info.message}catch{}}if(e.method==="estimateGas"&&!s.match(/revert/i)&&s.match(/insufficient funds/i)&&b(!1,"insufficient funds","INSUFFICIENT_FUNDS",{transaction:e.transaction}),(e.method==="call"||e.method==="estimateGas")&&s.match(/execution reverted/i)){let i="";try{i=t.info.result.error.data}catch{}const o=ht.getBuiltinCallException(e.method,e.transaction,i);throw o.info={request:e,error:t},o}if(s&&e.method==="broadcastTransaction"){const i=mt.from(e.signedTransaction);s.match(/replacement/i)&&s.match(/underpriced/i)&&b(!1,"replacement fee too low","REPLACEMENT_UNDERPRICED",{transaction:i}),s.match(/insufficient funds/)&&b(!1,"insufficient funds for intrinsic transaction cost","INSUFFICIENT_FUNDS",{transaction:i}),s.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&b(!1,"nonce has already been used","NONCE_EXPIRED",{transaction:i})}throw t}async _detectNetwork(){return this.network}async _perform(e){switch(e.method){case"chainId":return this.network.chainId;case"getBlockNumber":return this.fetch("proxy",{action:"eth_blockNumber"});case"getGasPrice":return this.fetch("proxy",{action:"eth_gasPrice"});case"getPriorityFee":if(this.network.name==="mainnet")return"1000000000";if(this.network.name==="optimism")return"1000000";throw new Error("fallback onto the AbstractProvider default");case"getBalance":return this.fetch("account",{action:"balance",address:e.address,tag:e.blockTag});case"getTransactionCount":return this.fetch("proxy",{action:"eth_getTransactionCount",address:e.address,tag:e.blockTag});case"getCode":return this.fetch("proxy",{action:"eth_getCode",address:e.address,tag:e.blockTag});case"getStorage":return this.fetch("proxy",{action:"eth_getStorageAt",address:e.address,position:e.position,tag:e.blockTag});case"broadcastTransaction":return this.fetch("proxy",{action:"eth_sendRawTransaction",hex:e.signedTransaction},!0).catch(t=>this._checkError(e,t,e.signedTransaction));case"getBlock":if("blockTag"in e)return this.fetch("proxy",{action:"eth_getBlockByNumber",tag:e.blockTag,boolean:e.includeTransactions?"true":"false"});b(!1,"getBlock by blockHash not supported by Etherscan","UNSUPPORTED_OPERATION",{operation:"getBlock(blockHash)"});case"getTransaction":return this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:e.hash});case"getTransactionReceipt":return this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:e.hash});case"call":{if(e.blockTag!=="latest")throw new Error("EtherscanProvider does not support blockTag for call");const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_call";try{return await this.fetch("proxy",t,!0)}catch(r){return this._checkError(e,r,e.transaction)}}case"estimateGas":{const t=this._getTransactionPostData(e.transaction);t.module="proxy",t.action="eth_estimateGas";try{return await this.fetch("proxy",t,!0)}catch(r){return this._checkError(e,r,e.transaction)}}}return super._perform(e)}async getNetwork(){return this.network}async getEtherPrice(){return this.network.name!=="mainnet"?0:parseFloat((await this.fetch("stats",{action:"ethprice"})).ethusd)}async getContract(e){let t=this._getAddress(e);sn(t)&&(t=await t);try{const r=await this.fetch("contract",{action:"getabi",address:t}),s=JSON.parse(r);return new ft(t,s,this)}catch{return null}}isCommunityResource(){return this.apiKey==null}}J=new WeakMap;function on(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("unable to locate global object")}const cn=on().WebSocket;var S,re,C,D,A;class we{constructor(n,e){g(this,S);g(this,re);g(this,C);g(this,D);g(this,A);h(this,S,n),h(this,re,JSON.stringify(e)),h(this,C,null),h(this,D,null),h(this,A,null)}get filter(){return JSON.parse(c(this,re))}start(){h(this,C,c(this,S).send("eth_subscribe",this.filter).then(n=>(c(this,S)._register(n,this),n)))}stop(){c(this,C).then(n=>{c(this,S).destroyed||c(this,S).send("eth_unsubscribe",[n])}),h(this,C,null)}pause(n){b(n,"preserve logs while paused not supported by SocketSubscriber yet","UNSUPPORTED_OPERATION",{operation:"pause(false)"}),h(this,D,!!n)}resume(){h(this,D,null)}_handleMessage(n){if(c(this,C)!=null&&c(this,D)===null){let e=c(this,A);e==null?e=this._emit(c(this,S),n):e=e.then(async()=>{await this._emit(c(this,S),n)}),h(this,A,e.then(()=>{c(this,A)===e&&h(this,A,null)}))}}async _emit(n,e){throw new Error("sub-classes must implemente this; _emit")}}S=new WeakMap,re=new WeakMap,C=new WeakMap,D=new WeakMap,A=new WeakMap;class Tt extends we{constructor(n){super(n,["newHeads"])}async _emit(n,e){n.emit("block",parseInt(e.number))}}class Nt extends we{constructor(n){super(n,["newPendingTransactions"])}async _emit(n,e){n.emit("pending",e)}}var se;class vt extends we{constructor(e,t){super(e,["logs",t]);g(this,se);h(this,se,JSON.stringify(t))}get logFilter(){return JSON.parse(c(this,se))}async _emit(e,t){e.emit(this.logFilter,e._wrapLog(t,e._network))}}se=new WeakMap;var $,L,I;class St extends dt{constructor(e,t){const r=Object.assign({},t??{});d(r.batchMaxCount==null||r.batchMaxCount===1,"sockets-based providers do not support batches","options.batchMaxCount",t),r.batchMaxCount=1,r.staticNetwork==null&&(r.staticNetwork=!0);super(e,r);g(this,$);g(this,L);g(this,I);h(this,$,new Map),h(this,L,new Map),h(this,I,new Map)}
1_getSubscriber(e){switch(e.type){case"close":return new Se("close");case"block":return new Tt(this);case"pending":return new Nt(this);case"event":return new vt(this,e.filter);case"orphan":if(e.filter.orphan==="drop-log")return new Se("drop-log")}return super._getSubscriber(e)}_register(e,t){c(this,L).set(e,t);const r=c(this,I).get(e);if(r){for(const s of r)t._handleMessage(s);c(this,I).delete(e)}}async _send(e){d(!Array.isArray(e),"WebSocket does not support batch send","payload",e);const t=new Promise((r,s)=>{c(this,$).set(e.id,{payload:e,resolve:r,reject:s})});return await this._waitUntilReady(),await this._write(JSON.stringify(e)),[await t]}async _processMessage(e){const t=JSON.parse(e);if(t&&typeof t=="object"&&"id"in t){const r=c(this,$).get(t.id);if(r==null){this.emit("error",de("received result for unknown id","UNKNOWN_ERROR",{reasonCode:"UNKNOWN_ID",result:t}));return}c(this,$).delete(t.id),r.resolve(t)}else if(t&&t.method==="eth_subscription"){const r=t.params.subscription,s=c(this,L).get(r);if(s)s._handleMessage(t.params.result);else{let i=c(this,I).get(r);i==null&&(i=[],c(this,I).set(r,i)),i.push(t.params.result)}}else{this.emit("error",de("received unexpected message","UNKNOWN_ERROR",{reasonCode:"UNEXPECTED_MESSAGE",result:t}));return}}async _write(e){throw new Error("sub-classes must override this")}}$=new WeakMap,L=new WeakMap,I=new WeakMap;var M,v;class qe extends St{constructor(e,t,r){super(t,r);g(this,M);g(this,v);typeof e=="string"?(h(this,M,()=>new cn(e)),h(this,v,c(this,M).call(this))):typeof e=="function"?(h(this,M,e),h(this,v,e())):(h(this,M,null),h(this,v,e)),this.websocket.onopen=async()=>{try{await this._start(),this.resume()}catch(s){console.log("failed to start WebsocketProvider",s)}},this.websocket.onmessage=s=>{this._processMessage(s.data)}}get websocket(){if(c(this,v)==null)throw new Error("websocket closed");return c(this,v)}async _write(e){this.websocket.send(e)}async destroy(){c(this,v)!=null&&(c(this,v).close(),h(this,v,null)),super.destroy()}}M=new WeakMap,v=new WeakMap;const V="84842078b09946638c03157f83405213";function un(a){switch(a){case"mainnet":return"mainnet.infura.io";case"goerli":return"goerli.infura.io";case"sepolia":return"sepolia.infura.io";case"arbitrum":return"arbitrum-mainnet.infura.io";case"arbitrum-goerli":return"arbitrum-goerli.infura.io";case"arbitrum-sepolia":return"arbitrum-sepolia.infura.io";case"base":return"base-mainnet.infura.io";case"base-goerlia":case"base-goerli":return"base-goerli.infura.io";case"base-sepolia":return"base-sepolia.infura.io";case"bnb":return"bsc-mainnet.infura.io";case"bnbt":return"bsc-testnet.infura.io";case"linea":return"linea-mainnet.infura.io";case"linea-goerli":return"linea-goerli.infura.io";case"linea-sepolia":return"linea-sepolia.infura.io";case"matic":return"polygon-mainnet.infura.io";case"matic-amoy":return"polygon-amoy.infura.io";case"matic-mumbai":return"polygon-mumbai.infura.io";case"optimism":return"optimism-mainnet.infura.io";case"optimism-goerli":return"optimism-goerli.infura.io";case"optimism-sepolia":return"optimism-sepolia.infura.io"}d(!1,"unsupported network","network",a)}class _t extends qe{constructor(e,t){const r=new H(e,t),s=r._getConnection();b(!s.credentials,"INFURA WebSocket project secrets unsupported","UNSUPPORTED_OPERATION",{operation:"InfuraProvider.getWebSocketProvider()"});const i=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");super(i,r._network);p(this,"projectId");p(this,"projectSecret");R(this,{projectId:r.projectId,projectSecret:r.projectSecret})}isCommunityResource(){return this.projectId===V}}class H extends T{constructor(e,t,r){e==null&&(e="mainnet");const s=N.from(e);t==null&&(t=V),r==null&&(r=null);const i=H.getRequest(s,t,r);super(i,s,{staticNetwork:s});p(this,"projectId");p(this,"projectSecret");R(this,{projectId:t,projectSecret:r})}_getProvider(e){try{return new H(e,this.projectId,this.projectSecret)}catch{}return super._getProvider(e)}isCommunityResource(){return this.projectId===V}static getWebSocketProvider(e,t){return new _t(e,t)}static getRequest(e,t,r){t==null&&(t=V),r==null&&(r=null);const s=new O(`https://${un(e.name)}/v3/${t}`);return s.allowGzip=!0,r&&s.setCredentials("",r),t===V&&(s.retryFunc=async(i,o,u)=>(B("InfuraProvider"),!0)),s}}const ce="919b412a057b5e9c9b6dce193c5a60242d6efadb";function ln(a){switch(a){case"mainnet":return"ethers.quiknode.pro";case"goerli":return"ethers.ethereum-goerli.quiknode.pro";case"sepolia":return"ethers.ethereum-sepolia.quiknode.pro";case"holesky":return"ethers.ethereum-holesky.quiknode.pro";case"arbitrum":return"ethers.arbitrum-mainnet.quiknode.pro";case"arbitrum-goerli":return"ethers.arbitrum-goerli.quiknode.pro";case"arbitrum-sepolia":return"ethers.arbitrum-sepolia.quiknode.pro";case"base":return"ethers.base-mainnet.quiknode.pro";case"base-goerli":return"ethers.base-goerli.quiknode.pro";case"base-spolia":return"ethers.base-sepolia.quiknode.pro";case"bnb":return"ethers.bsc.quiknode.pro";case"bnbt":return"ethers.bsc-testnet.quiknode.pro";case"matic":return"ethers.matic.quiknode.pro";case"matic-mumbai":return"ethers.matic-testnet.quiknode.pro";case"optimism":return"ethers.optimism.quiknode.pro";case"optimism-goerli":return"ethers.optimism-goerli.quiknode.pro";case"optimism-sepolia":return"ethers.optimism-sepolia.quiknode.pro";case"xdai":return"ethers.xdai.quiknode.pro"}d(!1,"unsupported network","network",a)}class te extends T{constructor(e,t){e==null&&(e="mainnet");const r=N.from(e);t==null&&(t=ce);
1const s=te.getRequest(r,t);super(s,r,{staticNetwork:r});p(this,"token");R(this,{token:t})}_getProvider(e){try{return new te(e,this.token)}catch{}return super._getProvider(e)}isCommunityResource(){return this.token===ce}static getRequest(e,t){t==null&&(t=ce);const r=new O(`https://${ln(e.name)}/${t}`);return r.allowGzip=!0,t===ce&&(r.retryFunc=async(s,i,o)=>(B("QuickNodeProvider"),!0)),r}}const hn=BigInt("1"),mn=BigInt("2");function fn(a){for(let n=a.length-1;n>0;n--){const e=Math.floor(Math.random()*(n+1)),t=a[n];a[n]=a[e],a[e]=t}}function dn(a){return new Promise(n=>{setTimeout(n,a)})}function _e(){return new Date().getTime()}function Re(a){return JSON.stringify(a,(n,e)=>typeof e=="bigint"?{type:"bigint",value:e.toString()}:e)}const He={stallTimeout:400,priority:1,weight:1},Ke={blockNumber:-2,requests:0,lateResponses:0,errorResponses:0,outOfSync:-1,unsupportedEvents:0,rollingDuration:0,score:0,_network:null,_updateNumber:null,_totalTime:0,_lastFatalError:null,_lastFatalErrorTimestamp:0};async function pn(a,n){for(;(a.blockNumber<0||a.blockNumber<n)&&(a._updateNumber||(a._updateNumber=(async()=>{try{const e=await a.provider.getBlockNumber();e>a.blockNumber&&(a.blockNumber=e)}catch(e){a.blockNumber=-2,a._lastFatalError=e,a._lastFatalErrorTimestamp=_e()}a._updateNumber=null})()),await a._updateNumber,a.outOfSync++,!a._lastFatalError););}function q(a){if(a==null)return"null";if(Array.isArray(a))return"["+a.map(q).join(",")+"]";if(typeof a=="object"&&typeof a.toJSON=="function")return q(a.toJSON());switch(typeof a){case"boolean":case"symbol":return a.toString();case"bigint":case"number":return BigInt(a).toString();case"string":return JSON.stringify(a);case"object":{const n=Object.keys(a);return n.sort(),"{"+n.map(e=>`${JSON.stringify(e)}:${q(a[e])}`).join(",")+"}"}}throw console.log("Could not serialize",a),new Error("Hmm...")}function Pe(a,n){if("error"in n){const t=n.error;let r;return ye(t,"CALL_EXCEPTION")?r=q(Object.assign({},t,{shortMessage:void 0,reason:void 0,info:void 0})):r=q(t),{tag:r,value:t}}const e=n.result;return{tag:q(e),value:e}}function he(a,n){const e=new Map;for(const{value:r,tag:s,weight:i}of n){const o=e.get(s)||{value:r,weight:0};o.weight+=i,e.set(s,o)}let t=null;for(const r of e.values())r.weight>=a&&(!t||r.weight>t.weight)&&(t=r);if(t)return t.value}function Oe(a,n){let e=0;const t=new Map;let r=null;const s=[];for(const{value:o,tag:u,weight:f}of n)if(o instanceof Error){const l=t.get(u)||{value:o,weight:0};l.weight+=f,t.set(u,l),(r==null||l.weight>r.weight)&&(r=l)}else s.push(BigInt(o)),e+=f;if(e<a)return r&&r.weight>=a?r.value:void 0;s.sort((o,u)=>o<u?-1:u>o?1:0);const i=Math.floor(s.length/2);return s.length%2?s[i]:(s[i-1]+s[i]+hn)/mn}function Te(a,n){const e=he(a,n);if(e!==void 0)return e;for(const t of n)if(t.value)return t.value}function gn(a,n){if(a===1)return X(Oe(a,n),"%internal");const e=new Map,t=(i,o)=>{const u=e.get(i)||{result:i,weight:0};u.weight+=o,e.set(i,u)};for(const{weight:i,value:o}of n){const u=X(o);t(u-1,i),t(u,i),t(u+1,i)}let r=0,s;for(const{weight:i,result:o}of e.values())i>=a&&(i>r||s!=null&&i===r&&o>s)&&(r=i,s=o);return s}var k,_,z,E,xt,xe,Ct,At,Ce;class Ot extends fe{constructor(e,t,r){super(t,r);g(this,E);p(this,"quorum");p(this,"eventQuorum");p(this,"eventWorkers");g(this,k);g(this,_);g(this,z);h(this,k,e.map(s=>s instanceof fe?Object.assign({provider:s},He,Ke):Object.assign({},He,s,Ke))),h(this,_,-2),h(this,z,null),r&&r.quorum!=null?this.quorum=r.quorum:this.quorum=Math.ceil(c(this,k).reduce((s,i)=>(s+=i.weight,s),0)/2),this.eventQuorum=1,this.eventWorkers=1,d(this.quorum<=c(this,k).reduce((s,i)=>s+i.weight,0),"quorum exceed provider weight","quorum",this.quorum)}get providerConfigs(){return c(this,k).map(e=>{const t=Object.assign({},e);for(const r in t)r[0]==="_"&&delete t[r];return t})}async _detectNetwork(){return N.from(pt(await this._perform({method:"chainId"})))}async _translatePerform(e,t){switch(t.method){case"broadcastTransaction":return await e.broadcastTransaction(t.signedTransaction);case"call":return await e.call(Object.assign({},t.transaction,{blockTag:t.blockTag}));case"chainId":return(await e.getNetwork()).chainId;case"estimateGas":return await e.estimateGas(t.transaction);case"getBalance":return await e.getBalance(t.address,t.blockTag);case"getBlock":{const r="blockHash"in t?t.blockHash:t.blockTag;return await e.getBlock(r,t.includeTransactions)}case"getBlockNumber":return await e.getBlockNumber();case"getCode":return await e.getCode(t.address,t.blockTag);case"getGasPrice":return(await e.getFeeData()).gasPrice;case"getPriorityFee":return(await e.getFeeData()).maxPriorityFeePerGas;case"getLogs":return await e.getLogs(t.filter);case"getStorage":return await e.getStorage(t.address,t.position,t.blockTag);case"getTransaction":return await e.getTransaction(t.hash);case"getTransactionCount":return await e.getTransactionCount(t.address,t.blockTag);case"getTransactionReceipt":return await e.getTransactionReceipt(t.hash);case"getTransactionResult":return await e.getTransactionResult(t.hash)}}async _perform(e){if(e.method==="broadcastTransaction"){const i=c(this,k).map(f=>null),o=c(this,k).map(async({provider:f,weight:l},w)=>{try{const m=await f._perform(e);i[w]=Object.assign(Pe(e.method,{result:m}),{weight:l})}catch(m){i[w]=Object.assign(Pe(e.method,{error:m}),{weight:l})}});for(;;){const f=i.filter(m=>m!=null);for(const{value:m}of f)if(!(m instanceof Error))return m;const l=he(this.quorum,i.filter(m=>m!=null));if(ye(l,"INSUFFICIENT_FUNDS"))throw l;const w=o.filter((m,y)=>i[y]==null);if(w.length===0)break;await Promise.race(w)}const u=Te(this.quorum,i);if(b(u!==void 0,"problem multi-broadcasting","SERVER_ERROR",{request:"%sub-requests",info:{request:e,results:i.map(Re)}}),u instanceof Error)throw u;return u}await x(this,E,Ct).call(this);const t=new Set;let r=0;for(;;){const i=x(this,E,xe).call(this,t,e);if(i==null||(r+=i.config.weight,r>=this.quorum))break}const s=await x(this,E,Ce).call(this,t,e);for(const i of t)i.perform&&i.result==null&&i.config.lateResponses++;return s}async destroy(){for(const{provider:e}of c(this,k))e.destroy();super.destroy()}}k=new WeakMap,_=new WeakMap,z=new WeakMap,E=new WeakSet,xt=function(e){const t=Array.from(e).map(s=>s.config),r=c(this,k).slice();fn(r),r.sort((s,i)=>s.priority-i.priority);for(const s of r)if(!s._lastFatalError&&t.indexOf(s)===-1)return s;return null},xe=function(e,t){const r=x(this,E,xt).call(this,e);if(r==null)return null;const s={config:r,result:null,didBump:!1,perform:null,staller:null},i=_e();return s.perform=(async()=>{try{r.requests++;const u=await this._translatePerform(r.provider,t);
1s.result={result:u}}catch(u){r.errorResponses++,s.result={error:u}}const o=_e()-i;r._totalTime+=o,r.rollingDuration=.95*r.rollingDuration+.05*o,s.perform=null})(),s.staller=(async()=>{await dn(r.stallTimeout),s.staller=null})(),e.add(s),s},Ct=async function(){let e=c(this,z);if(!e){const t=[];c(this,k).forEach(r=>{t.push((async()=>{await pn(r,0),r._lastFatalError||(r._network=await r.provider.getNetwork())})())}),h(this,z,e=(async()=>{await Promise.all(t);let r=null;for(const s of c(this,k)){if(s._lastFatalError)continue;const i=s._network;r==null?r=i.chainId:i.chainId!==r&&b(!1,"cannot mix providers on different networks","UNSUPPORTED_OPERATION",{operation:"new FallbackProvider"})}})())}await e},At=async function(e,t){const r=[];for(const s of e)if(s.result!=null){const{tag:i,value:o}=Pe(t.method,s.result);r.push({tag:i,value:o,weight:s.config.weight})}if(!(r.reduce((s,i)=>s+i.weight,0)<this.quorum)){switch(t.method){case"getBlockNumber":{c(this,_)===-2&&h(this,_,Math.ceil(X(Oe(this.quorum,c(this,k).filter(i=>!i._lastFatalError).map(i=>({value:i.blockNumber,tag:X(i.blockNumber).toString(),weight:i.weight}))))));const s=gn(this.quorum,r);return s===void 0?void 0:(s>c(this,_)&&h(this,_,s),c(this,_))}case"getGasPrice":case"getPriorityFee":case"estimateGas":return Oe(this.quorum,r);case"getBlock":return"blockTag"in t&&t.blockTag==="pending"?Te(this.quorum,r):he(this.quorum,r);case"call":case"chainId":case"getBalance":case"getTransactionCount":case"getCode":case"getStorage":case"getTransaction":case"getTransactionReceipt":case"getLogs":return he(this.quorum,r);case"broadcastTransaction":return Te(this.quorum,r)}b(!1,"unsupported method","UNSUPPORTED_OPERATION",{operation:`_perform(${Re(t.method)})`})}},Ce=async function(e,t){if(e.size===0)throw new Error("no runners?!");const r=[];let s=0;for(const o of e){if(o.perform&&r.push(o.perform),o.staller){r.push(o.staller);continue}o.didBump||(o.didBump=!0,s++)}const i=await x(this,E,At).call(this,e,t);if(i!==void 0){if(i instanceof Error)throw i;return i}for(let o=0;o<s;o++)x(this,E,xe).call(this,e,t);return b(r.length>0,"quorum not met","SERVER_ERROR",{request:"%sub-requests",info:{request:t,results:Array.from(e).map(o=>Re(o.result))}}),await Promise.race(r),await x(this,E,Ce).call(this,e,t)};function bn(a){return a&&typeof a.send=="function"&&typeof a.close=="function"}const yn="goerli kovan sepolia classicKotti optimism-goerli arbitrum-goerli matic-mumbai bnbt".split(" ");function wn(a,n){n==null&&(n={});const e=i=>n[i]==="-"?!1:typeof n.exclusive=="string"?i===n.exclusive:Array.isArray(n.exclusive)?n.exclusive.indexOf(i)!==-1:!0;if(typeof a=="string"&&a.match(/^https?:/))return new T(a);if(typeof a=="string"&&a.match(/^wss?:/)||bn(a))return new qe(a);let t=null;try{t=N.from(a)}catch{}const r=[];if(e("publicPolygon")&&t&&(t.name==="matic"?r.push(new T("https://polygon-rpc.com/",t,{staticNetwork:t})):t.name==="matic-amoy"&&r.push(new T("https://rpc-amoy.polygon.technology/",t,{staticNetwork:t}))),e("alchemy"))try{r.push(new Y(a,n.alchemy))}catch{}if(e("ankr")&&n.ankr!=null)try{r.push(new Z(a,n.ankr))}catch{}if(e("chainstack"))try{r.push(new ee(a,n.chainstack))}catch{}if(e("cloudflare"))try{r.push(new Et(a))}catch{}if(e("etherscan"))try{r.push(new Pt(a,n.etherscan))}catch{}if(e("infura"))try{let i=n.infura,o;typeof i=="object"&&(o=i.projectSecret,i=i.projectId),r.push(new H(a,i,o))}catch{}if(e("quicknode"))try{let i=n.quicknode;r.push(new te(a,i))}catch{}if(b(r.length,"unsupported default network","UNSUPPORTED_OPERATION",{operation:"getDefaultProvider"}),r.length===1)return r[0];let s=Math.floor(r.length/2);return s>2&&(s=2),t&&yn.indexOf(t.name)!==-1&&(s=1),n&&n.quorum&&(s=n.quorum),new Ot(r,void 0,{quorum:s})}var F,j;const Je=class Je extends gt{constructor(e){super(e.provider);p(this,"signer");g(this,F);g(this,j);R(this,{signer:e}),h(this,F,null),h(this,j,0)}async getAddress(){return this.signer.getAddress()}connect(e){return new Je(this.signer.connect(e))}async getNonce(e){if(e==="pending"){c(this,F)==null&&h(this,F,super.getNonce("pending"));const t=c(this,j);return await c(this,F)+t}return super.getNonce(e)}
1increment(){ze(this,j)._++}reset(){h(this,j,0),h(this,F,null)}async sendTransaction(e){const t=this.getNonce("pending");return this.increment(),e=await this.signer.populateTransaction(e),e.nonce=await t,await this.signer.sendTransaction(e)}signTransaction(e){return this.signer.signTransaction(e)}signMessage(e){return this.signer.signMessage(e)}signTypedData(e,t,r){return this.signer.signTypedData(e,t,r)}};F=new WeakMap,j=new WeakMap;let Ae=Je;var W,G;const U=class U extends Dt{constructor(e,t,r){const s=Object.assign({},r??{},{batchMaxCount:1});d(e&&e.request,"invalid EIP-1193 provider","ethereum",e);super(t,s);g(this,W);g(this,G);h(this,G,null),r&&r.providerInfo&&h(this,G,r.providerInfo),h(this,W,async(i,o)=>{const u={method:i,params:o};this.emit("debug",{action:"sendEip1193Request",payload:u});try{const f=await e.request(u);return this.emit("debug",{action:"receiveEip1193Result",result:f}),f}catch(f){const l=new Error(f.message);throw l.code=f.code,l.data=f.data,l.payload=u,this.emit("debug",{action:"receiveEip1193Error",error:l}),l}})}get providerInfo(){return c(this,G)}async send(e,t){return await this._start(),await super.send(e,t)}async _send(e){d(!Array.isArray(e),"EIP-1193 does not support batch request","payload",e);try{const t=await c(this,W).call(this,e.method,e.params||[]);return[{id:e.id,result:t}]}catch(t){return[{id:e.id,error:{code:t.code,data:t.data,message:t.message}}]}}getRpcError(e,t){switch(t=JSON.parse(JSON.stringify(t)),t.error.code||-1){case 4001:t.error.message=`ethers-user-denied: ${t.error.message}`;break;case 4200:t.error.message=`ethers-unsupported: ${t.error.message}`;break}return super.getRpcError(e,t)}async hasSigner(e){e==null&&(e=0);const t=await this.send("eth_accounts",[]);return typeof e=="number"?t.length>e:(e=e.toLowerCase(),t.filter(r=>r.toLowerCase()===e).length!==0)}async getSigner(e){if(e==null&&(e=0),!await this.hasSigner(e))try{await c(this,W).call(this,"eth_requestAccounts",[])}catch(t){const r=t.payload;throw this.getRpcError(r,{id:r.id,error:t})}return await super.getSigner(e)}static async discover(e){if(e==null&&(e={}),e.provider)return new U(e.provider);const t=e.window?e.window:typeof window<"u"?window:null;if(t==null)return null;const r=e.anyProvider;if(r&&t.ethereum)return new U(t.ethereum);if(!("addEventListener"in t&&"dispatchEvent"in t&&"removeEventListener"in t))return null;const s=e.timeout?e.timeout:300;return s===0?null:await new Promise((i,o)=>{let u=[];const f=m=>{u.push(m.detail),r&&l()},l=()=>{if(clearTimeout(w),u.length)if(e&&e.filter){const m=e.filter(u.map(y=>Object.assign({},y.info)));if(m==null)i(null);else if(m instanceof U)i(m);else{let y=null;if(m.uuid&&(y=u.filter(ke=>m.uuid===ke.info.uuid)[0]),y){const{provider:K,info:ke}=y;i(new U(K,void 0,{providerInfo:ke}))}else o(de("filter returned unknown info","UNSUPPORTED_OPERATION",{value:m}))}}else{const{provider:m,info:y}=u[0];i(new U(m,void 0,{providerInfo:y}))}else i(null);t.removeEventListener("eip6963:announceProvider",f)},w=setTimeout(()=>{l()},s);t.addEventListener("eip6963:announceProvider",f),t.dispatchEvent(new Event("eip6963:requestProvider"))})}};W=new WeakMap,G=new WeakMap;let Ie=U;function kn(a){switch(a){case"mainnet":return"https://eth.blockscout.com/api/eth-rpc";case"sepolia":return"https://eth-sepolia.blockscout.com/api/eth-rpc";case"holesky":return"https://eth-holesky.blockscout.com/api/eth-rpc";case"classic":return"https://etc.blockscout.com/api/eth-rpc";case"arbitrum":return"https://arbitrum.blockscout.com/api/eth-rpc";case"base":return"https://base.blockscout.com/api/eth-rpc";case"base-sepolia":return"https://base-sepolia.blockscout.com/api/eth-rpc";case"matic":return"https://polygon.blockscout.com/api/eth-rpc";case"optimism":return"https://optimism.blockscout.com/api/eth-rpc";case"optimism-sepolia":return"https://optimism-sepolia.blockscout.com/api/eth-rpc";case"xdai":return"https://gnosis.blockscout.com/api/eth-rpc"}d(!1,"unsupported network","network",a)}class pe extends T{constructor(e,t){e==null&&(e="mainnet");const r=N.from(e);t==null&&(t=null);const s=pe.getRequest(r);super(s,r,{staticNetwork:r});p(this,"apiKey");R(this,{apiKey:t})}_getProvider(e){try{return new pe(e,this.apiKey)}catch{}return super._getProvider(e)}isCommunityResource(){return this.apiKey===null}getRpcRequest(e){const t=super.getRpcRequest(e);return t&&t.method==="eth_estimateGas"&&t.args.length==1&&(t.args=t.args.slice(),t.args.push("latest")),t}getRpcError(e,t){const r=t?t.error:null;if(r&&r.code===-32015&&!bt(r.data||"",!0)){const s={"assert(false)":"01","arithmetic underflow or overflow":"11","division or modulo by zero":"12","out-of-bounds array access; popping on an empty array":"31","out-of-bounds access of an array or bytesN":"32"};let i="";r.message==="VM execution error."?i=s[r.data]||"":s[r.message||""]&&(i=s[r.message||""]),i&&(r.message+=` (reverted: ${r.data})`,r.data="0x4e487b7100000000000000000000000000000000000000000000000000000000000000"+i)}else r&&r.code===-32e3&&r.message==="wrong transaction nonce"&&(r.message+=" (nonce too low)");return super.getRpcError(e,t)}
1static getRequest(e){const t=new O(kn(e.name));return t.allowGzip=!0,t}}const ue="62e1ad51b37b8e00394bda3b";function En(a){switch(a){case"mainnet":return"eth-mainnet.gateway.pokt.network";case"goerli":return"eth-goerli.gateway.pokt.network";case"matic":return"poly-mainnet.gateway.pokt.network";case"matic-mumbai":return"polygon-mumbai-rpc.gateway.pokt.network"}d(!1,"unsupported network","network",a)}class ge extends T{constructor(e,t,r){e==null&&(e="mainnet");const s=N.from(e);t==null&&(t=ue),r==null&&(r=null);const i={staticNetwork:s},o=ge.getRequest(s,t,r);super(o,s,i);p(this,"applicationId");p(this,"applicationSecret");R(this,{applicationId:t,applicationSecret:r})}_getProvider(e){try{return new ge(e,this.applicationId,this.applicationSecret)}catch{}return super._getProvider(e)}static getRequest(e,t,r){t==null&&(t=ue);const s=new O(`https://${En(e.name)}/v1/lb/${t}`);return s.allowGzip=!0,r&&s.setCredentials("",r),t===ue&&(s.retryFunc=async(i,o,u)=>(B("PocketProvider"),!0)),s}isCommunityResource(){return this.applicationId===ue}}const Rn=void 0,Pn=")!@#$%^&*(ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-_";function Tn(a,n){const e=(1<<a)-1,t=[];let r=0,s=0,i=0;for(let o=0;o<n.length;o++)for(r=r<<6|Pn.indexOf(n[o]),s+=6;s>=a;){const u=r>>s-a;r&=(1<<s-a)-1,s-=a,u===0?i+=e:(t.push(u+i),i=0)}return t}function Nn(a,n){let e=$t(a).join(",");return n.split(/,/g).forEach(t=>{const r=t.match(/^([a-z]*)([0-9]+)([0-9])(.*)$/);d(r!==null,"internal error parsing accents","accents",n);let s=0;const i=Tn(parseInt(r[3]),r[4]),o=parseInt(r[2]),u=new RegExp(`([${r[1]}])`,"g");e=e.replace(u,(f,l)=>(--i[s]===0&&(l=String.fromCharCode(l.charCodeAt(0),o),s++),l))}),e.split(",")}var ne;class vn extends yt{constructor(e,t,r,s){super(e,t,s);g(this,ne);h(this,ne,r)}get _accent(){return c(this,ne)}_decodeWords(){return Nn(this._data,this._accent)}}ne=new WeakMap;const Sn={en:wt.wordlist()},xn=Object.freeze(Object.defineProperty({__proto__:null,AbiCoder:ht,AbstractProvider:fe,AbstractSigner:gt,AlchemyProvider:Y,AnkrProvider:Z,BaseContract:ve,BaseWallet:Mt,Block:jt,BlockscoutProvider:pe,BrowserProvider:Ie,ChainstackProvider:ee,CloudflareProvider:Et,ConstructorFragment:qt,Contract:ft,ContractEventPayload:Jt,ContractFactory:Me,ContractTransactionReceipt:Lt,ContractTransactionResponse:zt,ContractUnknownEventPayload:Wt,EnsPlugin:Gt,EnsResolver:Ht,ErrorDescription:Kt,ErrorFragment:Vt,EtherSymbol:Qt,EtherscanPlugin:je,EtherscanProvider:Pt,EventFragment:Xt,EventLog:Zt,EventPayload:Yt,FallbackFragment:er,FallbackProvider:Ot,FeeData:tr,FeeDataNetworkPlugin:rr,FetchCancelSignal:sr,FetchRequest:O,FetchResponse:nr,FetchUrlFeeDataNetworkPlugin:ar,FixedNumber:ir,Fragment:or,FunctionFragment:cr,GasCostPlugin:ur,HDNodeVoidWallet:lr,HDNodeWallet:hr,Indexed:mr,InfuraProvider:H,InfuraWebSocketProvider:_t,Interface:at,IpcSocketProvider:Rn,JsonRpcApiProvider:dt,JsonRpcProvider:T,JsonRpcSigner:fr,LangEn:wt,
1Log:dr,LogDescription:pr,MaxInt256:gr,MaxUint256:br,MessagePrefix:yr,MinInt256:wr,Mnemonic:kr,MulticoinProviderPlugin:Er,N:Rr,NamedFragment:Pr,Network:N,NetworkPlugin:ct,NonceManager:Ae,ParamType:Tr,PocketProvider:ge,QuickNodeProvider:te,Result:Nr,Signature:vr,SigningKey:Sr,SocketBlockSubscriber:Tt,SocketEventSubscriber:vt,SocketPendingSubscriber:Nt,SocketProvider:St,SocketSubscriber:we,StructFragment:_r,Transaction:mt,TransactionDescription:Or,TransactionReceipt:xr,TransactionResponse:Cr,Typed:Ar,TypedDataEncoder:Ir,UndecodedEventLog:Fr,UnmanagedSubscriber:Se,Utf8ErrorFuncs:Br,VoidSigner:Ur,Wallet:Dr,WebSocketProvider:qe,WeiPerEther:$r,Wordlist:Mr,WordlistOwl:yt,WordlistOwlA:vn,ZeroAddress:jr,ZeroHash:qr,accessListify:lt,assert:b,assertArgument:d,assertArgumentCount:Jr,assertNormalize:Lr,assertPrivate:zr,authorizationify:Wr,checkResultErrors:Gr,computeAddress:Hr,computeHmac:Ve,concat:be,copyRequest:Kr,dataLength:nt,dataSlice:Vr,decodeBase58:Qr,decodeBase64:Xr,decodeBytes32String:Zs,decodeRlp:Zr,decryptCrowdsaleJson:Yr,decryptKeystoreJson:es,decryptKeystoreJsonSync:ts,defaultPath:rs,defineProperties:R,dnsEncode:ss,encodeBase58:ns,encodeBase64:as,encodeBytes32String:Xs,encodeRlp:is,encryptKeystoreJson:os,encryptKeystoreJsonSync:cs,ensNormalize:us,formatEther:ls,formatUnits:hs,fromTwos:ms,getAccountPath:fs,getAddress:tt,getBigInt:pt,getBytes:P,getBytesCopy:ds,getCreate2Address:ps,getCreateAddress:it,getDefaultProvider:wn,getIcapAddress:gs,getIndexedAccountPath:bs,getNumber:X,getUint:ys,hashAuthorization:ws,hashMessage:ks,hexlify:Q,id:Es,isAddress:Rs,isAddressable:Ps,isBytesLike:Ts,isCallException:Ns,isCrowdsaleJson:vs,isError:ye,isHexString:bt,isKeystoreJson:Ss,isValidName:_s,keccak256:Fe,lock:Ws,makeError:de,mask:Os,namehash:xs,parseEther:Cs,parseUnits:As,pbkdf2:Qe,randomBytes:Ne,recoverAddress:Is,resolveAddress:Fs,resolveProperties:ot,ripemd160:Xe,scrypt:Ze,scryptSync:Ye,sha256:Be,sha512:et,showThrottleMessage:B,solidityPacked:$e,solidityPackedKeccak256:Vs,solidityPackedSha256:Qs,stripZerosLeft:Bs,toBeArray:st,toBeHex:Us,toBigInt:Ds,toNumber:$s,toQuantity:ut,toTwos:rt,toUtf8Bytes:Ue,toUtf8CodePoints:Ms,toUtf8String:me,uuidV4:js,verifyAuthorization:qs,verifyMessage:Js,verifyTypedData:Ls,version:zs,wordlists:Sn,zeroPadBytes:De,zeroPadValue:le},Symbol.toStringTag,{value:"Module"}));export{ht as AbiCoder,fe as AbstractProvider,gt as AbstractSigner,Y as AlchemyProvider,Z as AnkrProvider,ve as BaseContract,Mt as BaseWallet,jt as Block,pe as BlockscoutProvider,Ie as BrowserProvider,ee as ChainstackProvider,Et as CloudflareProvider,qt as ConstructorFragment,ft as Contract,Jt as ContractEventPayload,Me as ContractFactory,Lt as ContractTransactionReceipt,zt as ContractTransactionResponse,Wt as ContractUnknownEventPayload,Gt as EnsPlugin,Ht as EnsResolver,Kt as ErrorDescription,Vt as ErrorFragment,Qt as EtherSymbol,je as EtherscanPlugin,Pt as EtherscanProvider,Xt as EventFragment,Zt as EventLog,Yt as EventPayload,er as FallbackFragment,Ot as FallbackProvider,tr as FeeData,rr as FeeDataNetworkPlugin,sr as FetchCancelSignal,O as FetchRequest,nr as FetchResponse,ar as FetchUrlFeeDataNetworkPlugin,ir as FixedNumber,or as Fragment,cr as FunctionFragment,ur as GasCostPlugin,lr as HDNodeVoidWallet,hr as HDNodeWallet,mr as Indexed,H as InfuraProvider,_t as InfuraWebSocketProvider,at as Interface,Rn as IpcSocketProvider,dt as JsonRpcApiProvider,T as JsonRpcProvider,fr as JsonRpcSigner,wt as LangEn,dr as Log,pr as LogDescription,gr as MaxInt256,br as MaxUint256,yr as MessagePrefix,wr as MinInt256,kr as Mnemonic,Er as MulticoinProviderPlugin,Rr as N,Pr as NamedFragment,N as Network,ct as NetworkPlugin,Ae as NonceManager,Tr as ParamType,ge as PocketProvider,te as QuickNodeProvider,Nr as Result,vr as Signature,Sr as SigningKey,Tt as SocketBlockSubscriber,vt as SocketEventSubscriber,Nt as SocketPendingSubscriber,St as SocketProvider,we as SocketSubscriber,_r as StructFragment,mt as Transaction,Or as TransactionDescription,xr as TransactionReceipt,Cr as TransactionResponse,Ar as Typed,Ir as TypedDataEncoder,Fr as UndecodedEventLog,Se as UnmanagedSubscriber,Br as Utf8ErrorFuncs,Ur as VoidSigner,Dr as Wallet,qe as WebSocketProvider,$r as WeiPerEther,Mr as Wordlist,yt as WordlistOwl,vn as WordlistOwlA,jr as ZeroAddress,qr as ZeroHash,lt as accessListify,b as assert,d as assertArgument,Jr as assertArgumentCount,Lr as assertNormalize,zr as assertPrivate,Wr as authorizationify,Gr as checkResultErrors,Hr as computeAddress,Ve as computeHmac,be as concat,Kr as copyRequest,nt as dataLength,Vr as dataSlice,Qr as decodeBase58,Xr as decodeBase64,Zs as decodeBytes32String,Zr as decodeRlp,Yr as decryptCrowdsaleJson,es as decryptKeystoreJson,ts as decryptKeystoreJsonSync,rs as defaultPath,R as defineProperties,ss as dnsEncode,ns as encodeBase58,as as encodeBase64,Xs as encodeBytes32String,is as encodeRlp,os as encryptKe
1ystoreJson,cs as encryptKeystoreJsonSync,us as ensNormalize,xn as ethers,ls as formatEther,hs as formatUnits,ms as fromTwos,fs as getAccountPath,tt as getAddress,pt as getBigInt,P as getBytes,ds as getBytesCopy,ps as getCreate2Address,it as getCreateAddress,wn as getDefaultProvider,gs as getIcapAddress,bs as getIndexedAccountPath,X as getNumber,ys as getUint,ws as hashAuthorization,ks as hashMessage,Q as hexlify,Es as id,Rs as isAddress,Ps as isAddressable,Ts as isBytesLike,Ns as isCallException,vs as isCrowdsaleJson,ye as isError,bt as isHexString,Ss as isKeystoreJson,_s as isValidName,Fe as keccak256,Ws as lock,de as makeError,Os as mask,xs as namehash,Cs as parseEther,As as parseUnits,Qe as pbkdf2,Ne as randomBytes,Is as recoverAddress,Fs as resolveAddress,ot as resolveProperties,Xe as ripemd160,Ze as scrypt,Ye as scryptSync,Be as sha256,et as sha512,B as showThrottleMessage,$e as solidityPacked,Vs as solidityPackedKeccak256,Qs as solidityPackedSha256,Bs as stripZerosLeft,st as toBeArray,Us as toBeHex,Ds as toBigInt,$s as toNumber,ut as toQuantity,rt as toTwos,Ue as toUtf8Bytes,Ms as toUtf8CodePoints,me as toUtf8String,js as uuidV4,qs as verifyAuthorization,Js as verifyMessage,Ls as verifyTypedData,zs as version,Sn as wordlists,De as zeroPadBytes,le as zeroPadValue};

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.