LavaPack.loadBundle([[3409,{lodash:2932},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.infuraProjectId=r.getRpcUrl=r.UNSUPPORTED_RPC_METHODS=r.TEST_NETWORK_TICKER_MAP=r.TEST_ETH_TOKEN_IMAGE_URL=r.TEST_CHAINS=r.SHOULD_SHOW_LINEA_TESTNET_NETWORK=r.SEPOLIA_RPC_URL=r.SEPOLIA_DISPLAY_NAME=r.POLYGON_DISPLAY_NAME=r.PALM_TOKEN_IMAGE_URL=r.PALM_DISPLAY_NAME=r.OPTIMISM_TOKEN_IMAGE_URL=r.OPTIMISM_DISPLAY_NAME=r.NetworkStatus=r.NETWORK_TYPES=r.NETWORK_TO_NAME_MAP=r.NETWORK_NAMES=r.NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP=r.NETWORK_IDS=r.NATIVE_CURRENCY_TOKEN_IMAGE_MAP=r.MAX_SAFE_CHAIN_ID=r.MATIC_TOKEN_IMAGE_URL=r.MAINNET_RPC_URL=r.MAINNET_DISPLAY_NAME=r.LOCALHOST_RPC_URL=r.LOCALHOST_DISPLAY_NAME=r.LINEA_TESTNET_RPC_URL=r.LINEA_TESTNET_DISPLAY_NAME=r.IPFS_DEFAULT_GATEWAY_URL=r.INFURA_PROVIDER_TYPES=r.INFURA_BLOCKED_KEY=r.HARMONY_ONE_TOKEN_IMAGE_URL=r.HARMONY_DISPLAY_NAME=r.HARDFORKS=r.GOERLI_RPC_URL=r.GOERLI_DISPLAY_NAME=r.FTM_TOKEN_IMAGE_URL=r.FEATURED_RPCS=r.FANTOM_DISPLAY_NAME=r.ETH_TOKEN_IMAGE_URL=r.ETHERSCAN_SUPPORTED_NETWORKS=r.CURRENCY_SYMBOLS=r.CHAIN_ID_TO_TYPE_MAP=r.CHAIN_ID_TO_RPC_URL_MAP=r.CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP=r.CHAIN_ID_TO_NETWORK_ID_MAP=r.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP=r.CHAIN_IDS=r.CELO_TOKEN_IMAGE_URL=r.CELO_DISPLAY_NAME=r.BUYABLE_CHAINS_MAP=r.BUILT_IN_NETWORKS=r.BUILT_IN_INFURA_NETWORKS=r.BSC_DISPLAY_NAME=r.BNB_TOKEN_IMAGE_URL=r.BNB_DISPLAY_NAME=r.AVAX_TOKEN_IMAGE_URL=r.AVALANCHE_DISPLAY_NAME=r.AURORA_TOKEN_IMAGE_URL=r.AURORA_DISPLAY_NAME=r.ARBITRUM_DISPLAY_NAME=r.AETH_TOKEN_IMAGE_URL=void 0;var n=e("lodash");const o={GOERLI:"goerli",LOCALHOST:"localhost",MAINNET:"mainnet",RPC:"rpc",SEPOLIA:"sepolia",LINEA_TESTNET:"lineatestnet"};r.NETWORK_TYPES=o;const i={HOMESTEAD:"homestead"};r.NETWORK_NAMES=i;const a={MAINNET:"1",GOERLI:"5",LOCALHOST:"1337",SEPOLIA:"11155111",LINEA_TESTNET:"59140"};r.NETWORK_IDS=a;const s={MAINNET:"0x1",GOERLI:"0x5",LOCALHOST:"0x539",BSC:"0x38",BSC_TESTNET:"0x61",OPTIMISM:"0xa",OPTIMISM_TESTNET:"0x1a4",POLYGON:"0x89",POLYGON_TESTNET:"0x13881",AVALANCHE:"0xa86a",AVALANCHE_TESTNET:"0xa869",FANTOM:"0xfa",FANTOM_TESTNET:"0xfa2",CELO:"0xa4ec",ARBITRUM:"0xa4b1",HARMONY:"0x63564c40",PALM:"0x2a15c308d",SEPOLIA:"0xaa36a7",LINEA_TESTNET:"0xe704",AURORA:"0x4e454152",MOONBEAM:"0x504",MOONBEAM_TESTNET:"0x507",MOONRIVER:"0x505"};r.CHAIN_IDS=s;r.MAX_SAFE_CHAIN_ID=0xfffffffffffec;const u="Ethereum Mainnet";r.MAINNET_DISPLAY_NAME=u;const c="Goerli";r.GOERLI_DISPLAY_NAME=c;const l="Sepolia";r.SEPOLIA_DISPLAY_NAME=l;const h="Linea Goerli test network";r.LINEA_TESTNET_DISPLAY_NAME=h;const f="Localhost 8545";r.LOCALHOST_DISPLAY_NAME=f;r.BSC_DISPLAY_NAME="Binance Smart Chain";const d="Polygon";r.POLYGON_DISPLAY_NAME=d;const p="Avalanche Network C-Chain";r.AVALANCHE_DISPLAY_NAME=p;const m="Arbitrum One";r.ARBITRUM_DISPLAY_NAME=m;const g="BNB Smart Chain (previously Binance Smart Chain Mainnet)";r.BNB_DISPLAY_NAME=g;const v="Optimism";r.OPTIMISM_DISPLAY_NAME=v;const y="Fantom Opera";r.FANTOM_DISPLAY_NAME=y;const b="Harmony Mainnet Shard 0";r.HARMONY_DISPLAY_NAME=b;const w="Palm";r.PALM_DISPLAY_NAME=w;const A="Aurora Mainnet";r.AURORA_DISPLAY_NAME=A;const E="Celo Mainnet";r.CELO_DISPLAY_NAME=E;const _="b6bf7d3508c941499b10025c0776eaf8";r.infuraProjectId=_;const T=({network:e,excludeProjectId:t=!1})=>`https://${e}.infura.io/v3/${t?"":_}`;r.getRpcUrl=T;const P=T({network:o.MAINNET});r.MAINNET_RPC_URL=P;const k=T({network:o.GOERLI});r.GOERLI_RPC_URL=k;const S=T({network:o.SEPOLIA});r.SEPOLIA_RPC_URL=S;const O="https://rpc.goerli.linea.build";r.LINEA_TESTNET_RPC_URL=O;const N="http://localhost:8545";r.LOCALHOST_RPC_URL=N;const C={ARBITRUM:"ETH",AURORA:"Aurora ETH",AVALANCHE:"AVAX",BNB:"BNB",BUSD:"BUSD",CELO:"CELO",DAI:"DAI",ETH:"ETH",FANTOM:"FTM",HARMONY:"ONE",PALM:"PALM",MATIC:"MATIC",TEST_ETH:"TESTETH",USDC:"USDC",USDT:"USDT",WETH:"WETH",OPTIMISM:"OP"};r.CURRENCY_SYMBOLS=C;const I="./images/eth_logo.svg";r.ETH_TOKEN_IMAGE_URL=I;const R="./images/black-eth-logo.svg";r.TEST_ETH_TOKEN_IMAGE_URL=R;const j="./images/bnb.png";r.BNB_TOKEN_IMAGE_URL=j;const M="./images/matic-token.png";r.MATIC_TOKEN_IMAGE_URL=M;const x="./images/avax-token.png";r.AVAX_TOKEN_IMAGE_URL=x;const B="./images/arbitrum.svg";r.AETH_TOKEN_IMAGE_URL=B;const L="./images/fantom-opera.svg";r.FTM_TOKEN_IMAGE_URL=L;const D="./images/harmony-one.svg";r.HARMONY_ONE_TOKEN_IMAGE_URL=D;const F="./images/optimism.svg";r.OPTIMISM_TOKEN_IMAGE_URL=F;const H="./images/palm.svg";r.PALM_TOKEN_IMAGE_URL=H;const U="./images/aurora.png";r.AURORA_TOKEN_IMAGE_URL=U;const G="./images/celo.svg";r.CELO_TOKEN_IMAGE_URL=G;const z=[o.MAINNET,o.GOERLI,o.SEPOLIA];r.INFURA_PROVIDER_TYPES=z;const V=[s.GOERLI,s.SEPOLIA,s.LINEA_TESTNET,s.LOCALHOST];r.TEST_CHAINS=V;const K=e=>(0,n.capitalize)(e),W={[o.GOERLI]:`${K(o.GOERLI)}${C.ETH}`,[o.SEPOLIA]:`${K(o.SEPOLIA)}${C.ETH}`,[o.LINEA_TESTNET]:`Linea${C.ETH}`};r.TEST_NETWORK_TICKER_MAP=W;const q={[o.GOERLI]:{networkId:a.GOERLI,chainId:s.GOERLI,ticker:W[o.GOERLI],blockExplorerUrl:`https://${o.GOERLI}.etherscan.io`},[o.SEPOLIA]:{networkId:a.SEPOLIA,chainId:s.SEPOLIA,ticker:W[o.SEPOLIA],blockExplorerUrl:`https://${o.SEPOLIA}.etherscan.io`},[o.LINEA_TESTNET]:{networkId:a.LINEA_TESTNET,chainId:s.LINEA_TESTNET,ticker:W[o.LINEA_TESTNET],blockExplorerUrl:"https://explorer.goerli.linea.build"},[o.MAINNET]:{networkId:a.MAINNET,chainId:s.MAINNET,blockExplorerUrl:"https://etherscan.io"},[o.LOCALHOST]:{networkId:a.LOCALHOST,chainId:s.LOCALHOST}};r.BUILT_IN_NETWORKS=q;const J=(0,n.pick)(q,z);r.BUILT_IN_INFURA_NETWORKS=J;const Z={[o.MAINNET]:u,[o.GOERLI]:c,[o.SEPOLIA]:l,[o.LINEA_TESTNET]:h,[o.LOCALHOST]:f,[a.GOERLI]:c,[a.SEPOLIA]:l,[a.LINEA_TESTNET]:h,[a.MAINNET]:u,[a.LOCALHOST]:f,[s.GOERLI]:c,[s.SEPOLIA]:l,[s.LINEA_TESTNET]:h,[s.MAINNET]:u,[s.LOCALHOST]:f};r.NETWORK_TO_NAME_MAP=Z;const Y={[s.MAINNET]:o.MAINNET,[s.GOERLI]:o.GOERLI,[s.SEPOLIA]:o.SEPOLIA,[s.LINEA_TESTNET]:o.LINEA_TESTNET,[s.LOCALHOST]:o.LOCALHOST};r.CHAIN_ID_TO_TYPE_MAP=Y;const Q={[s.GOERLI]:k,[s.SEPOLIA]:S,[s.LINEA_TESTNET]:O,[s.MAINNET]:P,[s.LOCALHOST]:N};r.CHAIN_ID_TO_RPC_URL_MAP=Q;const X={[s.MAINNET]:I,[s.AVALANCHE]:x,[s.BSC]:j,[s.POLYGON]:M,[s.ARBITRUM]:B,[s.FANTOM]:L,[s.HARMONY]:D,[s.OPTIMISM]:F,[s.PALM]:H,[s.AURORA]:U,[s.CELO]:G};r.CHAIN_ID_TO_NETWORK_IMAGE_URL_MAP=X;const $={[a.GOERLI]:o.GOERLI,[a.SEPOLIA]:o.SEPOLIA,[a.LINEA_TESTNET]:o.LINEA_TESTNET,[a.MAINNET]:i.HOMESTEAD};r.NETWORK_ID_TO_ETHERS_NETWORK_NAME_MAP=$;const ee={[s.MAINNET]:a.MAINNET,[s.GOERLI]:a.GOERLI,[s.SEPOLIA]:a.SEPOLIA,[s.LINEA_TESTNET]:a.LINEA_TESTNET,[s.LOCALHOST]:a.LOCALHOST};r.CHAIN_ID_TO_NETWORK_ID_MAP=ee;const te={[C.ETH]:I,[C.TEST_ETH]:R,[C.BNB]:j,[C.MATIC]:M,[C.AVALANCHE]:x,[C.OPTIMISM]:F,[C.CELO]:G};r.NATIVE_CURRENCY_TOKEN_IMAGE_MAP=te;r.INFURA_BLOCKED_KEY="countryBlocked";const re="etherscan.io",ne="api",oe={[s.GOERLI]:{domain:re,subdomain:`api-${Y[s.GOERLI]}`,networkId:ee[s.GOERLI]},[s.MAINNET]:{domain:re,subdomain:ne,networkId:ee[s.MAINNET]},[s.SEPOLIA]:{domain:re,subdomain:`api-${Y[s.SEPOLIA]}`,networkId:ee[s.SEPOLIA]},[s.LINEA_TESTNET]:{domain:"linea.build",subdomain:"explorer.goerli",networkId:ee[s.LINEA_TESTNET]},[s.BSC]:{domain:"bscscan.com",subdomain:ne,networkId:parseInt(s.BSC,16).toString()},[s.BSC_TESTNET]:{domain:"bscscan.com",subdomain:"api-testnet",networkId:parseInt(s.BSC_TESTNET,16).toString()},[s.OPTIMISM]:{domain:re,subdomain:"api-optimistic",networkId:parseInt(s.OPTIMISM,16).toString()},[s.OPTIMISM_TESTNET]:{domain:re,subdomain:"api-goerli-optimistic",networkId:parseInt(s.OPTIMISM_TESTNET,16).toString()},[s.POLYGON]:{domain:"polygonscan.com",subdomain:ne,networkId:parseInt(s.POLYGON,16).toString()},[s.POLYGON_TESTNET]:{domain:"polygonscan.com",subdomain:"api-mumbai",networkId:parseInt(s.POLYGON_TESTNET,16).toString()},[s.AVALANCHE]:{domain:"snowtrace.io",subdomain:ne,networkId:parseInt(s.AVALANCHE,16).toString()},[s.AVALANCHE_TESTNET]:{domain:"snowtrace.io",subdomain:"api-testnet",networkId:parseInt(s.AVALANCHE_TESTNET,16).toString()},[s.FANTOM]:{domain:"ftmscan.com",subdomain:ne,networkId:parseInt(s.FANTOM,16).toString()},[s.FANTOM_TESTNET]:{domain:"ftmscan.com",subdomain:"api-testnet",networkId:parseInt(s.FANTOM_TESTNET,16).toString()},[s.MOONBEAM]:{domain:"moonscan.io",subdomain:"api-moonbeam",networkId:parseInt(s.MOONBEAM,16).toString()},[s.MOONBEAM_TESTNET]:{domain:"moonscan.io",subdomain:"api-moonbase",networkId:parseInt(s.MOONBEAM_TESTNET,16).toString()},[s.MOONRIVER]:{domain:"moonscan.io",subdomain:"api-moonriver",networkId:parseInt(s.MOONRIVER,16).toString()}};r.ETHERSCAN_SUPPORTED_NETWORKS=oe;r.HARDFORKS={BERLIN:"berlin",LONDON:"london"};const ie={[s.OPTIMISM]:1,[s.OPTIMISM_TESTNET]:1};r.CHAIN_ID_TO_GAS_LIMIT_BUFFER_MAP=ie;const ae=new Set(["eth_signTransaction"]);r.UNSUPPORTED_RPC_METHODS=ae;r.IPFS_DEFAULT_GATEWAY_URL="dweb.link";const se="ethereum",ue={[s.MAINNET]:{nativeCurrency:C.ETH,network:se},[s.GOERLI]:{nativeCurrency:W[o.GOERLI],network:se},[s.SEPOLIA]:{nativeCurrency:W[o.SEPOLIA],network:se},[s.BSC]:{nativeCurrency:C.BNB,network:"bsc"},[s.POLYGON]:{nativeCurrency:C.MATIC,network:"polygon"},[s.AVALANCHE]:{nativeCurrency:C.AVALANCHE,network:"avaxcchain"},[s.FANTOM]:{nativeCurrency:C.FANTOM,network:"fantom"},[s.CELO]:{nativeCurrency:C.CELO,network:"celo"},[s.OPTIMISM]:{nativeCurrency:C.ETH,network:"optimism"},[s.ARBITRUM]:{nativeCurrency:C.ARBITRUM,network:"arbitrum"}};r.BUYABLE_CHAINS_MAP=ue;const ce=[{chainId:s.ARBITRUM,nickname:m,rpcUrl:`https://arbitrum-mainnet.infura.io/v3/${_}`,ticker:C.ARBITRUM,rpcPrefs:{blockExplorerUrl:"https://explorer.arbitrum.io",imageUrl:B}},{chainId:s.AURORA,nickname:A,rpcUrl:`https://aurora-mainnet.infura.io/v3/${_}`,ticker:C.AURORA,rpcPrefs:{blockExplorerUrl:"https://aurorascan.dev/",imageUrl:U}},{chainId:s.AVALANCHE,nickname:p,rpcUrl:`https://avalanche-mainnet.infura.io/v3/${_}`,ticker:C.AVALANCHE,rpcPrefs:{blockExplorerUrl:"https://snowtrace.io/",imageUrl:x}},{chainId:s.BSC,nickname:g,rpcUrl:"https://bsc-dataseed.binance.org/",ticker:C.BNB,rpcPrefs:{blockExplorerUrl:"https://bscscan.com/",imageUrl:j}},{chainId:s.FANTOM,nickname:y,rpcUrl:"https://rpc.ftm.tools/",ticker:C.FANTOM,rpcPrefs:{blockExplorerUrl:"https://ftmscan.com/",imageUrl:L}},{chainId:s.HARMONY,nickname:b,rpcUrl:"https://api.harmony.one/",ticker:C.HARMONY,rpcPrefs:{blockExplorerUrl:"https://explorer.harmony.one/",imageUrl:D}},{chainId:s.OPTIMISM,nickname:v,rpcUrl:`https://optimism-mainnet.infura.io/v3/${_}`,ticker:C.ETH,rpcPrefs:{blockExplorerUrl:"https://optimistic.etherscan.io/",imageUrl:F}},{chainId:s.PALM,nickname:w,rpcUrl:`https://palm-mainnet.infura.io/v3/${_}`,ticker:C.PALM,rpcPrefs:{blockExplorerUrl:"https://explorer.palm.io/",imageUrl:H}},{chainId:s.POLYGON,nickname:`Polygon ${(0,n.capitalize)(o.MAINNET)}`,rpcUrl:`https://polygon-mainnet.infura.io/v3/${_}`,ticker:C.MATIC,rpcPrefs:{blockExplorerUrl:"https://polygonscan.com/",imageUrl:M}},{chainId:s.CELO,nickname:E,rpcUrl:`https://celo-mainnet.infura.io/v3/${_}`,ticker:C.CELO,rpcPrefs:{blockExplorerUrl:"https://celoscan.io",imageUrl:G}}];r.FEATURED_RPCS=ce;const le=(new Date).getTime()>Date.UTC(2023,2,28,8);let he;r.SHOULD_SHOW_LINEA_TESTNET_NETWORK=le,r.NetworkStatus=he,function(e){e.Unknown="unknown",e.Available="available",e.Unavailable="unavailable",e.Blocked="blocked"}(he||(r.NetworkStatus=he={}))}}},{package:"$root$",file:"shared/constants/network.ts"}],[341,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"berlin",comment:"HF targeted for July 2020 following the Muir Glacier HF",url:"https://eips.ethereum.org/EIPS/eip-2070",status:"Final",eips:[2565,2929,2718,2930]}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/berlin.json"}],[3410,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.RestrictedMethods=r.CaveatTypes=void 0;const n=Object.freeze({restrictReturnedAccounts:"restrictReturnedAccounts"});r.CaveatTypes=n;const o=Object.freeze({eth_accounts:"eth_accounts"});r.RestrictedMethods=o}}},{package:"$root$",file:"shared/constants/permissions.ts"}],[3411,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){let n;Object.defineProperty(r,"__esModule",{value:!0}),r.ThemeType=void 0,r.ThemeType=n,function(e){e.light="light",e.dark="dark",e.os="os"}(n||(r.ThemeType=n={}))}}},{package:"$root$",file:"shared/constants/preferences.ts"}],[3413,{"./network":3409},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WMATIC_CONTRACT_ADDRESS=r.WETH_OPTIMISM_CONTRACT_ADDRESS=r.WETH_GOERLI_CONTRACT_ADDRESS=r.WETH_CONTRACT_ADDRESS=r.WETH_ARBITRUM_CONTRACT_ADDRESS=r.WBNB_CONTRACT_ADDRESS=r.WAVAX_CONTRACT_ADDRESS=r.TokenBucketPriority=r.TEST_ETH_SWAPS_TOKEN_OBJECT=r.Slippage=r.SWAP_FAILED_ERROR=r.SWAPS_WRAPPED_TOKENS_ADDRESSES=r.SWAPS_FETCH_ORDER_CONFLICT=r.SWAPS_DEV_API_V2_BASE_URL=r.SWAPS_CLIENT_ID=r.SWAPS_CHAINID_DEFAULT_TOKEN_MAP=r.SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP=r.SWAPS_CHAINID_CONTRACT_ADDRESS_MAP=r.SWAPS_API_V2_BASE_URL=r.QUOTES_NOT_AVAILABLE_ERROR=r.QUOTES_EXPIRED_ERROR=r.POLYGON=r.OPTIMISM_SWAPS_TOKEN_OBJECT=r.OPTIMISM=r.OFFLINE_FOR_MAINTENANCE=r.MATIC_SWAPS_TOKEN_OBJECT=r.GOERLI_SWAPS_TOKEN_OBJECT=r.GOERLI=r.GAS_DEV_API_BASE_URL=r.GAS_API_BASE_URL=r.ETH_SWAPS_TOKEN_OBJECT=r.ETHEREUM=r.ERROR_FETCHING_QUOTES=r.DEFAULT_ERC20_APPROVE_GAS=r.CONTRACT_DATA_DISABLED_ERROR=r.BSC=r.BNB_SWAPS_TOKEN_OBJECT=r.AVAX_SWAPS_TOKEN_OBJECT=r.AVALANCHE=r.ARBITRUM_SWAPS_TOKEN_OBJECT=r.ARBITRUM=r.ALLOWED_SMART_TRANSACTIONS_CHAIN_IDS=r.ALLOWED_PROD_SWAPS_CHAIN_IDS=r.ALLOWED_DEV_SWAPS_CHAIN_IDS=r.ALLOWED_CONTRACT_ADDRESSES=void 0;var n=e("./network");r.QUOTES_EXPIRED_ERROR="quotes-expired";r.SWAP_FAILED_ERROR="swap-failed-error";r.ERROR_FETCHING_QUOTES="error-fetching-quotes";r.QUOTES_NOT_AVAILABLE_ERROR="quotes-not-avilable";r.CONTRACT_DATA_DISABLED_ERROR="contract-data-disabled";r.OFFLINE_FOR_MAINTENANCE="offline-for-maintenance";r.SWAPS_FETCH_ORDER_CONFLICT="swaps-fetch-order-conflict";const o="0x0000000000000000000000000000000000000000",i={symbol:n.CURRENCY_SYMBOLS.ETH,name:"Ether",address:o,decimals:18,iconUrl:n.ETH_TOKEN_IMAGE_URL};r.ETH_SWAPS_TOKEN_OBJECT=i;const a={symbol:n.CURRENCY_SYMBOLS.BNB,name:"Binance Coin",address:o,decimals:18,iconUrl:n.BNB_TOKEN_IMAGE_URL};r.BNB_SWAPS_TOKEN_OBJECT=a;const s={symbol:n.CURRENCY_SYMBOLS.MATIC,name:"Matic",address:o,decimals:18,iconUrl:n.MATIC_TOKEN_IMAGE_URL};r.MATIC_SWAPS_TOKEN_OBJECT=s;const u={symbol:n.CURRENCY_SYMBOLS.AVALANCHE,name:"Avalanche",address:o,decimals:18,iconUrl:n.AVAX_TOKEN_IMAGE_URL};r.AVAX_SWAPS_TOKEN_OBJECT=u;const c={symbol:n.CURRENCY_SYMBOLS.TEST_ETH,name:"Test Ether",address:o,decimals:18,iconUrl:n.TEST_ETH_TOKEN_IMAGE_URL};r.TEST_ETH_SWAPS_TOKEN_OBJECT=c;const l={symbol:n.CURRENCY_SYMBOLS.ETH,name:"Ether",address:o,decimals:18,iconUrl:n.TEST_ETH_TOKEN_IMAGE_URL};r.GOERLI_SWAPS_TOKEN_OBJECT=l;const h={...i};r.ARBITRUM_SWAPS_TOKEN_OBJECT=h;const f={...i};r.OPTIMISM_SWAPS_TOKEN_OBJECT=f;r.DEFAULT_ERC20_APPROVE_GAS="0x1d4c0";const d="0x881d40237659c251811cec9c364ef91dc08d300c",p="0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2";r.WETH_CONTRACT_ADDRESS=p;const m="0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6";r.WETH_GOERLI_CONTRACT_ADDRESS=m;const g="0xbb4cdb9cbd36b01bd1cbaebf2de08d9173bc095c";r.WBNB_CONTRACT_ADDRESS=g;const v="0x0d500b1d8e8ef31e21c99d1db9a6444d3adf1270";r.WMATIC_CONTRACT_ADDRESS=v;const y="0xb31f66aa3c1e785363f0875a1b74e27b85fd66c7";r.WAVAX_CONTRACT_ADDRESS=y;const b="0x4200000000000000000000000000000000000006";r.WETH_OPTIMISM_CONTRACT_ADDRESS=b;const w="0x82af49447d8a07e3bd95bd0d56f35241523fbab1";r.WETH_ARBITRUM_CONTRACT_ADDRESS=w;const A="0x539";r.SWAPS_API_V2_BASE_URL="https://swap.metaswap.codefi.network";r.SWAPS_DEV_API_V2_BASE_URL="https://swap.metaswap-dev.codefi.network";r.GAS_API_BASE_URL="https://gas-api.metaswap.codefi.network";r.GAS_DEV_API_BASE_URL="https://gas-api.metaswap-dev.codefi.network";const E=[n.CHAIN_IDS.MAINNET,A,n.CHAIN_IDS.BSC,n.CHAIN_IDS.POLYGON,n.CHAIN_IDS.AVALANCHE,n.CHAIN_IDS.OPTIMISM,n.CHAIN_IDS.ARBITRUM];r.ALLOWED_PROD_SWAPS_CHAIN_IDS=E;const _=[...E,n.CHAIN_IDS.GOERLI];r.ALLOWED_DEV_SWAPS_CHAIN_IDS=_;const T=[n.CHAIN_IDS.MAINNET,n.CHAIN_IDS.GOERLI];r.ALLOWED_SMART_TRANSACTIONS_CHAIN_IDS=T;const P={[n.CHAIN_IDS.MAINNET]:"0x881d40237659c251811cec9c364ef91dc08d300c",[A]:d,[n.CHAIN_IDS.BSC]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[n.CHAIN_IDS.POLYGON]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[n.CHAIN_IDS.GOERLI]:d,[n.CHAIN_IDS.AVALANCHE]:"0x1a1ec25dc08e98e5e93f1104b5e5cdd298707d31",[n.CHAIN_IDS.OPTIMISM]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6",[n.CHAIN_IDS.ARBITRUM]:"0x9dda6ef3d919c9bc8885d5560999a3640431e8e6"};r.SWAPS_CHAINID_CONTRACT_ADDRESS_MAP=P;const k={[n.CHAIN_IDS.MAINNET]:p,[A]:p,[n.CHAIN_IDS.BSC]:g,[n.CHAIN_IDS.POLYGON]:v,[n.CHAIN_IDS.GOERLI]:m,[n.CHAIN_IDS.AVALANCHE]:y,[n.CHAIN_IDS.OPTIMISM]:b,[n.CHAIN_IDS.ARBITRUM]:w};r.SWAPS_WRAPPED_TOKENS_ADDRESSES=k;const S={[n.CHAIN_IDS.MAINNET]:[P[n.CHAIN_IDS.MAINNET],k[n.CHAIN_IDS.MAINNET]],[A]:[P["0x539"],k["0x539"]],[n.CHAIN_IDS.GOERLI]:[P[n.CHAIN_IDS.GOERLI],k[n.CHAIN_IDS.GOERLI]],[n.CHAIN_IDS.BSC]:[P[n.CHAIN_IDS.BSC],k[n.CHAIN_IDS.BSC]],[n.CHAIN_IDS.POLYGON]:[P[n.CHAIN_IDS.POLYGON],k[n.CHAIN_IDS.POLYGON]],[n.CHAIN_IDS.AVALANCHE]:[P[n.CHAIN_IDS.AVALANCHE],k[n.CHAIN_IDS.AVALANCHE]],[n.CHAIN_IDS.OPTIMISM]:[P[n.CHAIN_IDS.OPTIMISM],k[n.CHAIN_IDS.OPTIMISM]],[n.CHAIN_IDS.ARBITRUM]:[P[n.CHAIN_IDS.ARBITRUM],k[n.CHAIN_IDS.ARBITRUM]]};r.ALLOWED_CONTRACT_ADDRESSES=S;const O={[n.CHAIN_IDS.MAINNET]:i,[A]:c,[n.CHAIN_IDS.BSC]:a,[n.CHAIN_IDS.POLYGON]:s,[n.CHAIN_IDS.GOERLI]:l,[n.CHAIN_IDS.AVALANCHE]:u,[n.CHAIN_IDS.OPTIMISM]:f,[n.CHAIN_IDS.ARBITRUM]:h};r.SWAPS_CHAINID_DEFAULT_TOKEN_MAP=O;const N={[n.CHAIN_IDS.BSC]:"https://bscscan.com/",[n.CHAIN_IDS.MAINNET]:"https://etherscan.io/",[n.CHAIN_IDS.POLYGON]:"https://polygonscan.com/",[n.CHAIN_IDS.GOERLI]:"https://goerli.etherscan.io/",[n.CHAIN_IDS.AVALANCHE]:"https://snowtrace.io/",[n.CHAIN_IDS.OPTIMISM]:"https://optimistic.etherscan.io/",[n.CHAIN_IDS.ARBITRUM]:"https://arbiscan.io/"};r.SWAPS_CHAINID_DEFAULT_BLOCK_EXPLORER_URL_MAP=N;r.ETHEREUM="ethereum";r.POLYGON="polygon";r.BSC="bsc";r.GOERLI="goerli";r.AVALANCHE="avalanche";r.OPTIMISM="optimism";r.ARBITRUM="arbitrum";let C,I;r.SWAPS_CLIENT_ID="extension",r.TokenBucketPriority=C,function(e){e.owned="owned",e.top="top"}(C||(r.TokenBucketPriority=C={})),r.Slippage=I,function(e){e[e.default=2]="default",e[e.high=3]="high"}(I||(r.Slippage=I={}))}}},{package:"$root$",file:"shared/constants/swaps.ts"}],[3415,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SECOND=r.MINUTE=r.MILLISECOND=r.HOUR=r.DAY=void 0;r.MILLISECOND=1;r.SECOND=1e3;r.MINUTE=6e4;const n=36e5;r.HOUR=n;r.DAY=864e5}}},{package:"$root$",file:"shared/constants/time.ts"}],[3416,{"@metamask/contract-metadata":1082,"bignumber.js":1853},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TOKEN_API_METASWAP_CODEFI_URL=r.STATIC_MAINNET_TOKEN_LIST=r.NUM_W_OPT_DECIMAL_COMMA_OR_DOT_REGEX=r.MAX_TOKEN_ALLOWANCE_AMOUNT=r.LISTED_CONTRACT_ADDRESSES=r.DECIMAL_REGEX=void 0;var n=i(e("@metamask/contract-metadata")),o=i(e("bignumber.js"));function i(e){return e&&e.__esModule?e:{default:e}}const a=Object.keys(n.default).map((e=>e.toLowerCase()));r.LISTED_CONTRACT_ADDRESSES=a;const s=Object.keys(n.default).reduce(((e,t)=>{const{logo:r,...o}=n.default[t];return{...e,[t.toLowerCase()]:{...o,address:t.toLowerCase(),iconUrl:`images/contract/${r}`,aggregators:[]}}}),{});r.STATIC_MAINNET_TOKEN_LIST=s;r.TOKEN_API_METASWAP_CODEFI_URL="https://token-api.metaswap.codefi.network/tokens/";const u=new o.default(2).pow(256).minus(1).toString(10);r.MAX_TOKEN_ALLOWANCE_AMOUNT=u;r.NUM_W_OPT_DECIMAL_COMMA_OR_DOT_REGEX=/^[0-9]{1,}([,.][0-9]{1,})?$/u;r.DECIMAL_REGEX=/\.(\d*)/u}}},{package:"$root$",file:"shared/constants/tokens.js"}],[3417,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){let n,o,i;Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionType=r.TransactionStatus=r.TransactionMetaMetricsEvent=r.TransactionGroupStatus=r.TransactionGroupCategory=r.TransactionEnvelopeType=r.TransactionApprovalAmountType=r.TokenStandard=r.SmartTransactionStatus=r.IN_PROGRESS_TRANSACTION_STATUSES=r.AssetType=void 0,r.TransactionType=n,function(e){e.cancel="cancel",e.contractInteraction="contractInteraction",e.deployContract="contractDeployment",e.ethDecrypt="eth_decrypt",e.ethGetEncryptionPublicKey="eth_getEncryptionPublicKey",e.incoming="incoming",e.personalSign="personal_sign",e.retry="retry",e.sign="eth_sign",e.signTypedData="eth_signTypedData",e.simpleSend="simpleSend",e.smart="smart",e.swap="swap",e.swapApproval="swapApproval",e.tokenMethodApprove="approve",e.tokenMethodSafeTransferFrom="safetransferfrom",e.tokenMethodTransfer="transfer",e.tokenMethodTransferFrom="transferfrom",e.tokenMethodSetApprovalForAll="setapprovalforall"}(n||(r.TransactionType=n={})),r.TransactionEnvelopeType=o,function(e){e.legacy="0x0",e.accessList="0x1",e.feeMarket="0x2"}(o||(r.TransactionEnvelopeType=o={})),r.TransactionStatus=i,function(e){e.unapproved="unapproved",e.approved="approved",e.rejected="rejected",e.signed="signed",e.submitted="submitted",e.failed="failed",e.dropped="dropped",e.confirmed="confirmed",e.pending="pending"}(i||(r.TransactionStatus=i={}));const a=[i.unapproved,i.approved,i.signed,i.submitted,i.pending];let s,u,c,l,h,f,d;r.IN_PROGRESS_TRANSACTION_STATUSES=a,r.TransactionGroupStatus=s,function(e){e.cancelled="cancelled",e.pending="pending"}(s||(r.TransactionGroupStatus=s={})),r.SmartTransactionStatus=u,function(e){e.cancelled="cancelled",e.pending="pending",e.success="success"}(u||(r.SmartTransactionStatus=u={})),r.TransactionApprovalAmountType=c,function(e){e.custom="custom",e.revoke="revoke",e.dappProposed="dapp_proposed"}(c||(r.TransactionApprovalAmountType=c={})),r.TransactionGroupCategory=l,function(e){e.approval="approval",e.interaction="interaction",e.receive="receive",e.send="send",e.signatureRequest="signature-request",e.swap="swap"}(l||(r.TransactionGroupCategory=l={})),r.TransactionMetaMetricsEvent=h,function(e){e.added="Transaction Added",e.approved="Transaction Approved",e.finalized="Transaction Finalized",e.rejected="Transaction Rejected",e.submitted="Transaction Submitted"}(h||(r.TransactionMetaMetricsEvent=h={})),r.AssetType=f,function(e){e.native="NATIVE",e.token="TOKEN",e.NFT="NFT",e.unknown="UNKNOWN"}(f||(r.AssetType=f={})),r.TokenStandard=d,function(e){e.ERC20="ERC20",e.ERC721="ERC721",e.ERC1155="ERC1155",e.none="NONE"}(d||(r.TokenStandard=d={}))}}},{package:"$root$",file:"shared/constants/transaction.ts"}],[3419,{"../constants/time":3415,"../modules/fetch-with-timeout":3433,"./storage-helpers":3421},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n,o=e("../constants/time"),i=(n=e("../modules/fetch-with-timeout"))&&n.__esModule?n:{default:n},a=e("./storage-helpers");var s=async(e,t={},{cacheRefreshTime:r=6*o.MINUTE,timeout:n=30*o.SECOND}={})=>{if(t.body||t.method&&"GET"!==t.method)throw new Error("fetchWithCache only supports GET requests");if(t.headers instanceof window.Headers||(t.headers=new window.Headers(t.headers)),t.headers.has("Content-Type")&&"application/json"!==t.headers.get("Content-Type"))throw new Error("fetchWithCache only supports JSON responses");const s=Date.now(),u=`cachedFetch:${e}`,{cachedResponse:c,cachedTime:l}=await(0,a.getStorageItem)(u)||{};if(c&&s-l<r)return c;t.headers.set("Content-Type","application/json");const h=(0,i.default)(n),f=await h(e,{referrerPolicy:"no-referrer-when-downgrade",body:null,method:"GET",mode:"cors",...t});if(!f.ok)throw new Error(`Fetch failed with status '${f.status}': '${f.statusText}'`);const d=await f.json(),p={cachedResponse:d,cachedTime:s};return await(0,a.setStorageItem)(u,p),d};r.default=s}}},{package:"$root$",file:"shared/lib/fetch-with-cache.js"}],[342,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"byzantium",comment:"Hardfork with new precompiles, instructions and other protocol changes",url:"https://eips.ethereum.org/EIPS/eip-609",status:"Final",gasConfig:{},gasPrices:{modexpGquaddivisor:{v:20,d:"Gquaddivisor from modexp precompile for gas calculation"},ecAdd:{v:500,d:"Gas costs for curve addition precompile"},ecMul:{v:4e4,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:1e5,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:8e4,d:"Gas costs regarding curve pairing precompile input length"},revert:{v:0,d:"Base fee of the REVERT opcode"},staticcall:{v:700,d:"Base fee of the STATICCALL opcode"},returndatasize:{v:2,d:"Base fee of the RETURNDATASIZE opcode"},returndatacopy:{v:3,d:"Base fee of the RETURNDATACOPY opcode"}},vm:{},pow:{minerReward:{v:"3000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:3e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/byzantium.json"}],[3420,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTokenValueParam=function(e={}){var t,r;return null==e||null===(t=e.args)||void 0===t||null===(r=t._value)||void 0===r?void 0:r.toString()}}}},{package:"$root$",file:"shared/lib/metamask-controller-utils.js"}],[3421,{localforage:2770},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getStorageItem=async function(e){try{const t=await o.default.getItem(e);return null===t?undefined:JSON.parse(t)}catch(e){return undefined}},r.setStorageItem=async function(e,t){try{const r=JSON.stringify(t);await o.default.setItem(e,r)}catch(e){console.warn(e)}};var n,o=(n=e("localforage"))&&n.__esModule?n:{default:n}}}},{package:"$root$",file:"shared/lib/storage-helpers.js"}],[3422,{"../../app/scripts/lib/util":82,"../constants/network":3409,"../constants/swaps":3413,"../constants/time":3415,"../modules/conversion.utils":3431,"../modules/hexstring-utils":3435,"../modules/string-utils":3442,"./fetch-with-cache":3419,"bignumber.js":1853,loglevel:2944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.QUOTE_VALIDATORS=void 0,r.addHexPrefixToObjectValues=T,r.calcTokenValue=E,r.constructTxParams=P,r.fetchTradesInfo=async function({slippage:e,sourceToken:t,sourceDecimals:r,destinationToken:n,value:o,fromAddress:i,exchangeList:a},{chainId:u}){const c={destinationToken:n,sourceToken:t,sourceAmount:E(o,r).toString(10),slippage:e,timeout:10*s.SECOND,walletAddress:i};a&&(c.exchangeList=a);_(u,t,n)&&(c.enableDirectWrapping=!0);const l=new URLSearchParams(c).toString(),d=`${A("trade",u)}${l}`,p=await(0,f.default)(d,{method:"GET",headers:m},{cacheRefreshTime:0,timeout:15*s.SECOND});return p.reduce(((t,r)=>{if(r.trade&&!r.error&&b(w,r,d)){const n=P({to:r.trade.to,from:r.trade.from,data:r.trade.data,amount:(0,h.decimalToHex)(r.trade.value),gas:(0,h.decimalToHex)(r.maxGas)});let{approvalNeeded:o}=r;return o&&(o=P({...o})),{...t,[r.aggregator]:{...r,slippage:e,trade:n,approvalNeeded:o}}}return t}),{})},r.validHex=r.truthyString=r.truthyDigitString=r.shouldEnableDirectWrapping=r.getBaseApi=void 0,r.validateData=b;var n=d(e("bignumber.js")),o=d(e("loglevel")),i=e("../constants/network"),a=e("../constants/swaps"),s=e("../constants/time"),u=e("../modules/hexstring-utils"),c=e("../modules/string-utils"),l=e("../../app/scripts/lib/util"),h=e("../modules/conversion.utils"),f=d(e("./fetch-with-cache"));function d(e){return e&&e.__esModule?e:{default:e}}const p=[i.CHAIN_IDS.GOERLI,i.CHAIN_IDS.LOCALHOST],m={"X-Client-Id":a.SWAPS_CLIENT_ID},g=e=>Boolean(null==e?void 0:e.match(/^0x[a-f0-9]+$/u));r.validHex=g;const v=e=>Boolean(null==e?void 0:e.length);r.truthyString=v;const y=e=>v(e)&&Boolean(e.match(/^\d+$/u));function b(e,t,r,n=!0){return e.every((({property:e,type:i,validator:a})=>{const s=i.split("|").some((r=>typeof t[e]===r))&&(!a||a(t[e]));return!s&&n&&o.default.error(`response to GET ${r} invalid for property ${e}; value was:`,t[e],"| type was: ",typeof t[e]),s}))}r.truthyDigitString=y;const w=[{property:"trade",type:"object",validator:e=>e&&g(e.data)&&(0,u.isValidHexAddress)(e.to,{allowNonPrefixed:!1})&&(0,u.isValidHexAddress)(e.from,{allowNonPrefixed:!1})&&v(e.value)},{property:"approvalNeeded",type:"object",validator:e=>null===e||e&&g(e.data)&&(0,u.isValidHexAddress)(e.to,{allowNonPrefixed:!1})&&(0,u.isValidHexAddress)(e.from,{allowNonPrefixed:!1})},{property:"sourceAmount",type:"string",validator:y},{property:"destinationAmount",type:"string",validator:y},{property:"sourceToken",type:"string",validator:e=>(0,u.isValidHexAddress)(e,{allowNonPrefixed:!1})},{property:"destinationToken",type:"string",validator:e=>(0,u.isValidHexAddress)(e,{allowNonPrefixed:!1})},{property:"aggregator",type:"string",validator:v},{property:"aggType",type:"string",validator:v},{property:"error",type:"object",validator:e=>null===e||"object"==typeof e},{property:"averageGas",type:"number"},{property:"maxGas",type:"number"},{property:"gasEstimate",type:"number|undefined",validator:e=>e===undefined||e>0},{property:"fee",type:"number"}];r.QUOTE_VALIDATORS=w;const A=function(e,t){const r=p.includes(t)?i.CHAIN_IDS.MAINNET:t,n=((e,t)=>{const r=a.SWAPS_API_V2_BASE_URL,n=a.GAS_API_BASE_URL;if(["refreshTime"].includes(e))return r;const o=t&&parseInt(t,16);return["gasPrices"].includes(e)?`${n}/networks/${o}`:`${r}/networks/${o}`})(e,r);if(!n)throw new Error(`Swaps API calls are disabled for chainId: ${r}`);switch(e){case"trade":return`${n}/trades?`;case"tokens":return`${n}/tokens`;case"token":return`${n}/token`;case"topAssets":return`${n}/topAssets`;case"aggregatorMetadata":return`${n}/aggregatorMetadata`;case"gasPrices":return`${n}/gasPrices`;case"network":return n;default:throw new Error("getBaseApi requires an api call type")}};function E(e,t){const r=Math.pow(10,Number(t||0));return new n.default(String(e)).times(r)}r.getBaseApi=A;const _=(e,t,r)=>{var n;if(!t||!r)return!1;const o=a.SWAPS_WRAPPED_TOKENS_ADDRESSES[e],i=null===(n=a.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[e])||void 0===n?void 0:n.address;return(0,c.isEqualCaseInsensitive)(t,o)&&(0,c.isEqualCaseInsensitive)(r,i)||(0,c.isEqualCaseInsensitive)(t,i)&&(0,c.isEqualCaseInsensitive)(r,o)};function T(e){return Object.keys(e).reduce(((t,r)=>({...t,[r]:(0,l.addHexPrefix)(e[r])})),{})}function P({sendToken:e,data:t,to:r,amount:n,from:o,gas:i,gasPrice:a}){const s={data:t,from:o,value:"0",gas:i,gasPrice:a};return e||(s.value=n,s.to=r),T(s)}r.shouldEnableDirectWrapping=_}}},{package:"$root$",file:"shared/lib/swaps-utils.js"}],[3424,{"@ethersproject/contracts":420,"@ethersproject/providers":459,"@metamask/metamask-eth-abis":1293},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.fetchTokenBalance=async function(e,t,r){const a=new i.Web3Provider(r),s=new o.Contract(e,n.abiERC20,a),u=s?s.balanceOf(t):Promise.resolve();return await u},r.getTokenIdParam=function(e={}){var t,r,n,o;return(null==e||null===(t=e.args)||void 0===t||null===(r=t._tokenId)||void 0===r?void 0:r.toString())??(null==e||null===(n=e.args)||void 0===n||null===(o=n.id)||void 0===o?void 0:o.toString())};var n=e("@metamask/metamask-eth-abis"),o=e("@ethersproject/contracts"),i=e("@ethersproject/providers")}}},{package:"$root$",file:"shared/lib/token-util.ts"}],[3425,{"../constants/common":3403,"../constants/transaction":3417,"../modules/Numeric":3427,"../modules/swaps.utils":3443,"bignumber.js":1853},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TRANSACTION_NO_CONTRACT_ERROR_KEY=r.TRANSACTION_ENVELOPE_TYPE_NAMES=r.TOKEN_TRANSFER_LOG_TOPIC_HASH=r.TEN_SECONDS_IN_MILLISECONDS=void 0,r.calcGasTotal=l,r.calcTokenAmount=f,r.getSwapsTokensReceivedFromTxMeta=function(e,t,r,n,o,d,p){var m;const g=null==t?void 0:t.txReceipt,v=(null==t||null===(m=t.txReceipt)||void 0===m?void 0:m.type)===a.TransactionEnvelopeType.feeMarket;if((0,u.isSwapsDefaultTokenSymbol)(e,p)){if(!(g&&t&&t.postTxBalance&&t.preTxBalance))return null;if(t.swapMetaData&&t.preTxBalance===t.postTxBalance)return t.swapMetaData.token_to_amount;let e=new s.Numeric("0x0",16);d&&d.txReceipt&&(e=new s.Numeric(l(d.txReceipt.gasUsed,v?d.txReceipt.effectiveGasPrice:d.txParams.gasPrice),16));const r=l(g.gasUsed,v?g.effectiveGasPrice:t.txParams.gasPrice),n=new s.Numeric(r,16).add(e),o=new s.Numeric(t.preTxBalance,16).minus(n);return new s.Numeric(t.postTxBalance,16,i.EtherDenomination.WEI).minus(o).toDenomination(i.EtherDenomination.ETH).toBase(10).round(6).toString()}const y=null==g?void 0:g.logs;if(y&&"0x0"!==(null==g?void 0:g.status)){const e=y.find((e=>{const t=e.topics&&e.topics[0]===c,o=e.address===r,i=e.topics&&e.topics[2]&&e.topics[2].match(n.slice(2));return t&&o&&i}));return e?h(f(e.data,o).toString(10),6):""}return null},r.toPrecisionWithoutTrailingZeros=h;var n,o=(n=e("bignumber.js"))&&n.__esModule?n:{default:n},i=e("../constants/common"),a=e("../constants/transaction"),s=e("../modules/Numeric"),u=e("../modules/swaps.utils");const c="0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef";r.TOKEN_TRANSFER_LOG_TOPIC_HASH=c;r.TRANSACTION_NO_CONTRACT_ERROR_KEY="transactionErrorNoContract";function l(e="0",t="0"){return new s.Numeric(e,16).times(new s.Numeric(t,16)).toString()}function h(e,t){return new o.default(e).toPrecision(t).replace(/(\.[0-9]*[1-9])0*|(\.0*)/u,"$1")}function f(e,t){const r=Math.pow(10,Number(t||0));return new o.default(String(e)).div(r)}r.TEN_SECONDS_IN_MILLISECONDS=1e4;r.TRANSACTION_ENVELOPE_TYPE_NAMES={FEE_MARKET:"fee-market",LEGACY:"legacy"}}}},{package:"$root$",file:"shared/lib/transactions-controller-utils.js"}],[3427,{"../constants/common":3403,"./hexstring-utils":3435,"@metamask/utils":1353,"bignumber.js":1853,"bn.js":1900,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Numeric=void 0;var n,o=e("bignumber.js"),i=(n=e("bn.js"))&&n.__esModule?n:{default:n},a=e("@metamask/utils"),s=e("ethereumjs-util"),u=e("../constants/common"),c=e("./hexstring-utils");function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var r=e[Symbol.toPrimitive];if(r!==undefined){var n=r.call(e,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function h(e){return(0,a.isHexString)(e.replace("-",""))||(0,a.isHexString)(e)}function f(e,t){if("string"!=typeof e)throw new Error(`Value of type ${typeof e} passed to stringToBigNumber`);if(16===t&&(h(e)||function(e){const t=e.split(".");return 1!==t.length&&t.every((e=>h(e)))}(e)))return function(e){const t="number"==typeof e?`${e}`:e,r="-"===(0,c.stripHexPrefix)(t)[0],n=t.replace("-",""),i=new o.BigNumber((0,c.stripHexPrefix)(n),16);return r?i.negated():i}(e);if(10===t&&(isFinite(parseInt(e,10))||isFinite(parseFloat(e))))return function(e){return new o.BigNumber(String(e),10)}(e);throw new Error(`String provided to stringToBigNumber is not a hexadecimal or decimal string: ${e}, ${t}`)}function d(e,t){if("string"==typeof e)return f(e,t);if("number"==typeof e&&!1===isNaN(e))return function(e,t){if("number"!=typeof e)throw new Error(`Value of type ${typeof e} passed to numberToBigNumber`);return 16===t&&(0,a.isHexString)(`${e}`)?new o.BigNumber(`${e}`,16):new o.BigNumber(e,10)}(e,t);throw new Error(`Value: ${e} is not a string, number, BigNumber or BN. Type is: ${typeof e}.`)}const p=new o.BigNumber("1000000000000000000"),m=new o.BigNumber("1000000000"),g=new o.BigNumber("1"),v={WEI:e=>e.div(p),GWEI:e=>e.div(m),ETH:e=>e.div(g)},y={WEI:e=>e.times(p).round(),GWEI:e=>e.times(m).round(9),ETH:e=>e.times(g).round(9)};function b(e,t){return void 0!==t.denomination&&e.denomination!==t.denomination?t.toDenomination(e.denomination):t}class w{constructor(e,t,r){if(l(this,"value",void 0),l(this,"base",void 0),l(this,"denomination",void 0),this.base=t,this.denomination=r,e instanceof o.BigNumber)this.value=e;else if(e instanceof i.default)this.value=function(e){if(e instanceof i.default==0)throw new Error("value passed to bnToBigNumber is not a BN. Received type "+typeof e);return new o.BigNumber(e.toString(16),16)}(e);else if((0,a.isNullOrUndefined)(e)||"number"==typeof e&&isNaN(e)||"string"==typeof e&&""===e)this.value=new o.BigNumber("0",10),this.base=10;else{if(!t)throw new Error("You must specify the base of the provided number if the value is not already a BigNumber");this.value=d(e,t)}}static from(e,t,r){if(e instanceof w){if(t||r)throw new Error(`Numeric.from was called with a value (${e.toString()}) that is already a Numeric but a base and/or denomination was provided. Only supply base or denomination when creating a new Numeric`);return e}return new w(e,t,r)}toBase(e){return this.base!==e?new w(this.value,e,this.denomination):this}toDenomination(e){if(e&&this.denomination!==e){return new w(y[e]((t=this).denomination===u.EtherDenomination.ETH||void 0===t.denomination?t.value:v[t.denomination](t.value)),this.base,e)}var t;return this}shiftedBy(e){const t=new w(Math.pow(10,e),10);return this.divide(t)}applyConversionRate(e,t){if(void 0===e)return this;let r=new w(e,10);return t&&(r=new w(new o.BigNumber(1)).divide(r)),this.times(r)}round(e,t=o.BigNumber.ROUND_HALF_DOWN){return"number"==typeof e?new w(this.value.round(e,t),this.base,this.denomination):this}add(e,t,r){const n=w.from(e,t,r);return new w(this.value.add(b(this,n).value),this.base,this.denomination)}minus(e,t,r){const n=w.from(e,t,r);return new w(this.value.minus(b(this,n).value),this.base,this.denomination)}times(e,t,r){const n=w.from(e,t,r);return new w(this.value.times(b(this,n).value),this.base,this.denomination)}divide(e,t,r){return new w(this.value.div(b(this,w.from(e,t,r)).value),this.base,this.denomination)}greaterThan(e,t,r){return this.value.greaterThan(w.from(e,t,r).value)}greaterThanOrEqualTo(e,t,r){return this.value.greaterThanOrEqualTo(w.from(e,t,r).value)}lessThan(e,t,r){return this.value.lessThan(w.from(e,t,r).value)}lessThanOrEqualTo(e,t,r){return this.value.lessThanOrEqualTo(w.from(e,t,r).value)}isNegative(){return this.value.isNegative()}isPositive(){return!1===this.isNegative()}toPrefixedHexString(){return(0,s.addHexPrefix)(this.value.toString(16))}toString(){return this.value.toString(this.base)}toFixed(e){return this.value.toFixed(e)}toNumber(){return this.value.toNumber()}}r.Numeric=w}}},{package:"$root$",file:"shared/modules/Numeric.ts"}],[3428,{loglevel:2944,"webextension-polyfill":3385},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.checkForLastError=a,r.checkForLastErrorAndLog=function(){const e=a();e&&o.default.error(e);return e},r.checkForLastErrorAndWarn=function(){const e=a();e&&console.warn(e);return e};var n=i(e("webextension-polyfill")),o=i(e("loglevel"));function i(e){return e&&e.__esModule?e:{default:e}}function a(){const{lastError:e}=n.default.runtime;return e?e.stack&&e.message?e:new Error(e.message):undefined}}}},{package:"$root$",file:"shared/modules/browser-runtime.utils.js"}],[343,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"chainstart",comment:"Start of the Ethereum main chain",url:"",status:"",gasConfig:{minGasLimit:{v:5e3,d:"Minimum the gas limit may ever be"},gasLimitBoundDivisor:{v:1024,d:"The bound divisor of the gas limit, used in update calculations"},maxRefundQuotient:{v:2,d:"Maximum refund quotient; max tx refund is min(tx.gasUsed/maxRefundQuotient, tx.gasRefund)"}},gasPrices:{base:{v:2,d:"Gas base cost, used e.g. for ChainID opcode (Istanbul)"},tierStep:{v:[0,2,3,5,8,10,20],d:"Once per operation, for a selection of them"},exp:{v:10,d:"Base fee of the EXP opcode"},expByte:{v:10,d:"Times ceil(log256(exponent)) for the EXP instruction"},sha3:{v:30,d:"Base fee of the SHA3 opcode"},sha3Word:{v:6,d:"Once per word of the SHA3 operation's data"},sload:{v:50,d:"Base fee of the SLOAD opcode"},sstoreSet:{v:2e4,d:"Once per SSTORE operation if the zeroness changes from zero"},sstoreReset:{v:5e3,d:"Once per SSTORE operation if the zeroness does not change from zero"},sstoreRefund:{v:15e3,d:"Once per SSTORE operation if the zeroness changes to zero"},jumpdest:{v:1,d:"Base fee of the JUMPDEST opcode"},log:{v:375,d:"Base fee of the LOG opcode"},logData:{v:8,d:"Per byte in a LOG* operation's data"},logTopic:{v:375,d:"Multiplied by the * of the LOG*, per LOG transaction. e.g. LOG0 incurs 0 * c_txLogTopicGas, LOG4 incurs 4 * c_txLogTopicGas"},create:{v:32e3,d:"Base fee of the CREATE opcode"},call:{v:40,d:"Base fee of the CALL opcode"},callStipend:{v:2300,d:"Free gas given at beginning of call"},callValueTransfer:{v:9e3,d:"Paid for CALL when the value transfor is non-zero"},callNewAccount:{v:25e3,d:"Paid for CALL when the destination address didn't exist prior"},selfdestructRefund:{v:24e3,d:"Refunded following a selfdestruct operation"},memory:{v:3,d:"Times the address of the (highest referenced byte in memory + 1). NOTE: referencing happens on read, write and in instructions such as RETURN and CALL"},quadCoeffDiv:{v:512,d:"Divisor for the quadratic particle of the memory cost equation"},createData:{v:200,d:""},tx:{v:21e3,d:"Per transaction. NOTE: Not payable on data of calls between transactions"},txCreation:{v:32e3,d:"The cost of creating a contract via tx"},txDataZero:{v:4,d:"Per byte of data attached to a transaction that equals zero. NOTE: Not payable on data of calls between transactions"},txDataNonZero:{v:68,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},copy:{v:3,d:"Multiplied by the number of 32-byte words that are copied (round up) for any *COPY operation and added"},ecRecover:{v:3e3,d:""},sha256:{v:60,d:""},sha256Word:{v:12,d:""},ripemd160:{v:600,d:""},ripemd160Word:{v:120,d:""},identity:{v:15,d:""},identityWord:{v:3,d:""},stop:{v:0,d:"Base fee of the STOP opcode"},add:{v:3,d:"Base fee of the ADD opcode"},mul:{v:5,d:"Base fee of the MUL opcode"},sub:{v:3,d:"Base fee of the SUB opcode"},div:{v:5,d:"Base fee of the DIV opcode"},sdiv:{v:5,d:"Base fee of the SDIV opcode"},mod:{v:5,d:"Base fee of the MOD opcode"},smod:{v:5,d:"Base fee of the SMOD opcode"},addmod:{v:8,d:"Base fee of the ADDMOD opcode"},mulmod:{v:8,d:"Base fee of the MULMOD opcode"},signextend:{v:5,d:"Base fee of the SIGNEXTEND opcode"},lt:{v:3,d:"Base fee of the LT opcode"},gt:{v:3,d:"Base fee of the GT opcode"},slt:{v:3,d:"Base fee of the SLT opcode"},sgt:{v:3,d:"Base fee of the SGT opcode"},eq:{v:3,d:"Base fee of the EQ opcode"},iszero:{v:3,d:"Base fee of the ISZERO opcode"},and:{v:3,d:"Base fee of the AND opcode"},or:{v:3,d:"Base fee of the OR opcode"},xor:{v:3,d:"Base fee of the XOR opcode"},not:{v:3,d:"Base fee of the NOT opcode"},byte:{v:3,d:"Base fee of the BYTE opcode"},address:{v:2,d:"Base fee of the ADDRESS opcode"},balance:{v:20,d:"Base fee of the BALANCE opcode"},origin:{v:2,d:"Base fee of the ORIGIN opcode"},caller:{v:2,d:"Base fee of the CALLER opcode"},callvalue:{v:2,d:"Base fee of the CALLVALUE opcode"},calldataload:{v:3,d:"Base fee of the CALLDATALOAD opcode"},calldatasize:{v:2,d:"Base fee of the CALLDATASIZE opcode"},calldatacopy:{v:3,d:"Base fee of the CALLDATACOPY opcode"},codesize:{v:2,d:"Base fee of the CODESIZE opcode"},codecopy:{v:3,d:"Base fee of the CODECOPY opcode"},gasprice:{v:2,d:"Base fee of the GASPRICE opcode"},extcodesize:{v:20,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:20,d:"Base fee of the EXTCODECOPY opcode"},blockhash:{v:20,d:"Base fee of the BLOCKHASH opcode"},coinbase:{v:2,d:"Base fee of the COINBASE opcode"},timestamp:{v:2,d:"Base fee of the TIMESTAMP opcode"},number:{v:2,d:"Base fee of the NUMBER opcode"},difficulty:{v:2,d:"Base fee of the DIFFICULTY opcode"},gaslimit:{v:2,d:"Base fee of the GASLIMIT opcode"},pop:{v:2,d:"Base fee of the POP opcode"},mload:{v:3,d:"Base fee of the MLOAD opcode"},mstore:{v:3,d:"Base fee of the MSTORE opcode"},mstore8:{v:3,d:"Base fee of the MSTORE8 opcode"},sstore:{v:0,d:"Base fee of the SSTORE opcode"},jump:{v:8,d:"Base fee of the JUMP opcode"},jumpi:{v:10,d:"Base fee of the JUMPI opcode"},pc:{v:2,d:"Base fee of the PC opcode"},msize:{v:2,d:"Base fee of the MSIZE opcode"},gas:{v:2,d:"Base fee of the GAS opcode"},push:{v:3,d:"Base fee of the PUSH opcode"},dup:{v:3,d:"Base fee of the DUP opcode"},swap:{v:3,d:"Base fee of the SWAP opcode"},callcode:{v:40,d:"Base fee of the CALLCODE opcode"},return:{v:0,d:"Base fee of the RETURN opcode"},invalid:{v:0,d:"Base fee of the INVALID opcode"},selfdestruct:{v:0,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{stackLimit:{v:1024,d:"Maximum size of VM stack allowed"},callCreateDepth:{v:1024,d:"Maximum depth of call/create stack"},maxExtraDataSize:{v:32,d:"Maximum size extra data may be after Genesis"}},pow:{minimumDifficulty:{v:131072,d:"The minimum that the difficulty may ever be"},difficultyBoundDivisor:{v:2048,d:"The bound divisor of the difficulty, used in the update calculations"},durationLimit:{v:13,d:"The decision boundary on the blocktime duration used to determine whether difficulty should go up or not"},epochDuration:{v:3e4,d:"Duration between proof-of-work epochs"},timebombPeriod:{v:1e5,d:"Exponential difficulty timebomb period"},minerReward:{v:"5000000000000000000",d:"the amount a miner get rewarded for mining a block"},difficultyBombDelay:{v:0,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/chainstart.json"}],[3430,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.readAddressAsContract=void 0;r.readAddressAsContract=async(e,t)=>{let r;try{r=await e.getCode(t)}catch(e){r=null}return{contractCode:r,isContractAddress:!!r&&("0x"!==r&&"0x0"!==r)}}}}},{package:"$root$",file:"shared/modules/contract-utils.ts"}],[3431,{"../constants/common":3403,"./Numeric":3427,"bignumber.js":1853,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addHexes=function(e,t){return new a.Numeric(e,16).add(new a.Numeric(t,16)).round(6,n.BigNumber.ROUND_HALF_DOWN).toString()},r.bnToHex=function(e){return(0,o.addHexPrefix)(e.toString(16))},r.decEthToConvertedCurrency=function(e,t,r){let n=new a.Numeric(e,10,i.EtherDenomination.ETH);t!==i.EtherDenomination.ETH&&(n=n.applyConversionRate(r));return n.round(2)},r.decGWEIToHexWEI=function(e){return new a.Numeric(e,10,i.EtherDenomination.GWEI).toBase(16).toDenomination(i.EtherDenomination.WEI).toString()},r.decWEIToDecETH=function(e){return new a.Numeric(e,10,i.EtherDenomination.WEI).toDenomination(i.EtherDenomination.ETH).toString()},r.decimalToHex=function(e){return new a.Numeric(e,10).toBase(16).toString()},r.getEthConversionFromWeiHex=function({value:e,fromCurrency:t=i.EtherDenomination.ETH,conversionRate:r,numberOfDecimals:n=6}){const o=[i.EtherDenomination.ETH,i.EtherDenomination.GWEI,i.EtherDenomination.WEI];let a;for(let i=0;i<o.length;i++){const u=s({value:e,conversionRate:r,fromCurrency:t,toCurrency:t,numberOfDecimals:n,toDenomination:o[i]});if("0"!==u||i===o.length-1){a=`${u} ${o[i]}`;break}}return a},r.getValueFromWeiHex=s,r.getWeiHexFromDecimalValue=function({value:e,conversionRate:t=1,fromDenomination:r,fromCurrency:n,invertConversionRate:o=!1}){let s=new a.Numeric(e,10,r);n!==i.EtherDenomination.ETH&&(s=s.applyConversionRate(t,o));return s.toBase(16).toDenomination(i.EtherDenomination.WEI).toString()},r.hexToDecimal=function(e){return new a.Numeric(e,16).toBase(10).toString()},r.hexWEIToDecETH=function(e){return new a.Numeric(e,16,i.EtherDenomination.WEI).toDenomination(i.EtherDenomination.ETH).toBase(10).toString()},r.hexWEIToDecGWEI=function(e){return new a.Numeric(e,16,i.EtherDenomination.WEI).toBase(10).toDenomination(i.EtherDenomination.GWEI).toString()},r.subtractHexes=function(e,t){return new a.Numeric(e,16).minus(new a.Numeric(t,16)).round(6,n.BigNumber.ROUND_HALF_DOWN).toString()},r.sumHexes=function(e,...t){const r=new a.Numeric(e,16);return t.reduce(((e,t)=>e.add(new a.Numeric(t,16))),r).toPrefixedHexString()};var n=e("bignumber.js"),o=e("ethereumjs-util"),i=e("../constants/common"),a=e("./Numeric");function s({value:e,fromCurrency:t=i.EtherDenomination.ETH,toCurrency:r,conversionRate:o,numberOfDecimals:s,toDenomination:u=i.EtherDenomination.ETH}){let c=new a.Numeric(e,16,i.EtherDenomination.WEI);return t!==r&&(c=c.applyConversionRate(o)),c.toBase(10).toDenomination(u).round(s,n.BigNumber.ROUND_HALF_DOWN).toString()}}}},{package:"$root$",file:"shared/modules/conversion.utils.ts"}],[3433,{"../constants/time":3415,lodash:2932},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=void 0;var n=e("lodash"),o=e("../constants/time");var i=(0,n.memoize)(((e=30*o.SECOND)=>{if(!Number.isInteger(e)||e<1)throw new Error("Must specify positive integer timeout.");return async function(t,r){const n=new window.AbortController,{signal:o}=n,i=window.fetch(t,{...r,signal:o}),a=setTimeout((()=>n.abort()),e);try{return await i}finally{clearTimeout(a)}}}));r.default=i}}},{package:"$root$",file:"shared/modules/fetch-with-timeout.ts"}],[3435,{"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.BURN_ADDRESS=void 0,r.isBurnAddress=function(e){return e===o},r.isValidHexAddress=function(e,{allowNonPrefixed:t=!0,mixedCaseUseChecksum:r=!1}={}){const o=t?(0,n.addHexPrefix)(e):e;if(!(0,n.isHexString)(o))return!1;if(r){const e=o.slice(2),t=e.toLowerCase(),r=e.toUpperCase();if(!(e===t||e===r))return(0,n.isValidChecksumAddress)(o)}return(0,n.isValidAddress)(o)},r.stripHexPrefix=function(e){if("string"!=typeof e)return e;return(0,n.isHexPrefixed)(e)?e.slice(2):e},r.toChecksumHexAddress=function(e){if(!e)return"";const t=(0,n.addHexPrefix)(e);if(!(0,n.isHexString)(t))return t;return(0,n.toChecksumAddress)(t)};var n=e("ethereumjs-util");const o=(0,n.zeroAddress)();r.BURN_ADDRESS=o}}},{package:"$root$",file:"shared/modules/hexstring-utils.ts"}],[3436,{"webextension-polyfill":3385},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n;Object.defineProperty(r,"__esModule",{value:!0}),r.isManifestV3=void 0;const o=3===((n=e("webextension-polyfill"))&&n.__esModule?n:{default:n}).default.runtime.getManifest().manifest_version;r.isManifestV3=o}}},{package:"$root$",file:"shared/modules/mv3.utils.js"}],[3437,{"../constants/network":3409},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isPrefixedFormattedHexString=function(e){if("string"!=typeof e)return!1;return/^0x[1-9a-f]+[0-9a-f]*$/iu.test(e)},r.isSafeChainId=function(e){return t=e,Number.isSafeInteger(t)&&e>0&&e<=n.MAX_SAFE_CHAIN_ID;var t},r.isTokenDetectionEnabledForNetwork=function(e){switch(e){case n.CHAIN_IDS.MAINNET:case n.CHAIN_IDS.BSC:case n.CHAIN_IDS.POLYGON:case n.CHAIN_IDS.AVALANCHE:return!0;default:return!1}};var n=e("../constants/network")}}},{package:"$root$",file:"shared/modules/network.utils.ts"}],[3438,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.maskObject=function e(t,r){return Object.keys(t).reduce(((n,o)=>(!0===r[o]?n[o]=t[o]:r[o]&&(n[o]=e(t[o],r[o])),n)),{})}}}},{package:"$root$",file:"shared/modules/object.utils.js"}],[3439,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){return o%=n,o++};const n=Number.MAX_SAFE_INTEGER;let o=Math.round(Math.random()*n)}}},{package:"$root$",file:"shared/modules/random-id.js"}],[344,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"constantinople",comment:"Postponed hardfork including EIP-1283 (SSTORE gas metering changes)",url:"https://eips.ethereum.org/EIPS/eip-1013",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:200,d:"Once per SSTORE operation if the value doesn't change"},netSstoreInitGas:{v:2e4,d:"Once per SSTORE operation from clean zero"},netSstoreCleanGas:{v:5e3,d:"Once per SSTORE operation from clean non-zero"},netSstoreDirtyGas:{v:200,d:"Once per SSTORE operation from dirty"},netSstoreClearRefund:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},netSstoreResetRefund:{v:4800,d:"Once per SSTORE operation for resetting to the original non-zero value"},netSstoreResetClearRefund:{v:19800,d:"Once per SSTORE operation for resetting to the original zero value"},shl:{v:3,d:"Base fee of the SHL opcode"},shr:{v:3,d:"Base fee of the SHR opcode"},sar:{v:3,d:"Base fee of the SAR opcode"},extcodehash:{v:400,d:"Base fee of the EXTCODEHASH opcode"},create2:{v:32e3,d:"Base fee of the CREATE2 opcode"}},vm:{},pow:{minerReward:{v:"2000000000000000000",d:"The amount a miner gets rewarded for mining a block"},difficultyBombDelay:{v:5e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/constantinople.json"}],[3442,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isEqualCaseInsensitive=function(e,t){if("string"!=typeof e||"string"!=typeof t)return!1;return e.toLowerCase()===t.toLowerCase()},r.prependZero=function(e,t){return e.toString().padStart(t,"0")}}}},{package:"$root$",file:"shared/modules/string-utils.ts"}],[3443,{"../constants/swaps":3413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.isSwapsDefaultTokenAddress=function(e,t){var r;if(!e||!t)return!1;return e===(null===(r=n.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[t])||void 0===r?void 0:r.address)},r.isSwapsDefaultTokenSymbol=function(e,t){var r;if(!e||!t)return!1;return e===(null===(r=n.SWAPS_CHAINID_DEFAULT_TOKEN_MAP[t])||void 0===r?void 0:r.symbol)};var n=e("../constants/swaps")}}},{package:"$root$",file:"shared/modules/swaps.utils.js"}],[3444,{"../constants/transaction":3417,"./contract-utils":3430,"./string-utils":3442,"@ethersproject/abi":396,"@metamask/metamask-eth-abis":1293,"ethereumjs-util":2231,loglevel:2944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.determineTransactionAssetType=async function(e,t,r){let n=e.type;if(!1===g.includes(e.type)){const r=await m(e.txParams,t);n=r.type}if([u.TransactionType.tokenMethodApprove,u.TransactionType.tokenMethodSetApprovalForAll,u.TransactionType.tokenMethodTransfer,u.TransactionType.tokenMethodTransferFrom].find((e=>e===n))||n===u.TransactionType.contractInteraction)try{const t=await r(e.txParams.to);if(t.standard)return{assetType:t.standard===u.TokenStandard.ERC20?u.AssetType.token:u.AssetType.NFT,tokenStandard:t.standard}}catch{}if(n===u.TransactionType.contractInteraction)return{assetType:u.AssetType.unknown,tokenStandard:u.TokenStandard.none};return{assetType:u.AssetType.native,tokenStandard:u.TokenStandard.none}},r.determineTransactionContractCode=async function(e,t){const{to:r}=e,{contractCode:n}=await(0,c.readAddressAsContract)(t,r);return n},r.determineTransactionType=m,r.isEIP1559Transaction=function(e){var t,r;return(0,o.isHexString)(null==e||null===(t=e.txParams)||void 0===t?void 0:t.maxFeePerGas)&&(0,o.isHexString)(null==e||null===(r=e.txParams)||void 0===r?void 0:r.maxPriorityFeePerGas)},r.isLegacyTransaction=function(e){return void 0===e.txParams.maxFeePerGas&&void 0===e.txParams.maxPriorityFeePerGas&&(void 0===e.txParams.gasPrice||(0,o.isHexString)(e.txParams.gasPrice))},r.parseStandardTokenTransactionData=p,r.transactionMatchesNetwork=function(e,t,r){if(void 0!==e.chainId)return e.chainId===t;return e.metamaskNetworkId===r},r.txParamsAreDappSuggested=function(e){var t,r,n;const{gasPrice:o,maxPriorityFeePerGas:i,maxFeePerGas:a}=(null==e?void 0:e.txParams)||{};return o&&o===(null==e||null===(t=e.dappSuggestedGasFees)||void 0===t?void 0:t.gasPrice)||i&&a&&(null==e||null===(r=e.dappSuggestedGasFees)||void 0===r?void 0:r.maxPriorityFeePerGas)===i&&(null==e||null===(n=e.dappSuggestedGasFees)||void 0===n?void 0:n.maxFeePerGas)===a};var n,o=e("ethereumjs-util"),i=e("@ethersproject/abi"),a=e("@metamask/metamask-eth-abis"),s=(n=e("loglevel"))&&n.__esModule?n:{default:n},u=e("../constants/transaction"),c=e("./contract-utils"),l=e("./string-utils");const h=new i.Interface(a.abiERC20),f=new i.Interface(a.abiERC721),d=new i.Interface(a.abiERC1155);function p(e){try{return h.parseTransaction({data:e})}catch{}try{return f.parseTransaction({data:e})}catch{}try{return d.parseTransaction({data:e})}catch{}return undefined}async function m(e,t){const{data:r,to:n}=e;let o,i,a;try{({name:o}=r&&p(r))}catch(e){s.default.debug("Failed to parse transaction data.",e,r)}if(r&&!n)i=u.TransactionType.deployContract;else{const{contractCode:s,isContractAddress:h}=await(0,c.readAddressAsContract)(t,n);if(a=s,h){const t=[u.TransactionType.tokenMethodApprove,u.TransactionType.tokenMethodSetApprovalForAll,u.TransactionType.tokenMethodTransfer,u.TransactionType.tokenMethodTransferFrom,u.TransactionType.tokenMethodSafeTransferFrom].find((e=>(0,l.isEqualCaseInsensitive)(e,o))),n=e.value&&"0x0"!==e.value&&t===u.TransactionType.tokenMethodApprove;i=r&&t&&!n?t:u.TransactionType.contractInteraction}else i=u.TransactionType.simpleSend}return{type:i,getCodeResponse:a}}const g=[u.TransactionType.tokenMethodApprove,u.TransactionType.tokenMethodSetApprovalForAll,u.TransactionType.tokenMethodTransfer,u.TransactionType.tokenMethodTransferFrom,u.TransactionType.contractInteraction,u.TransactionType.simpleSend]}}},{package:"$root$",file:"shared/modules/transaction.utils.js"}],[3445,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getTranslatedUINotifications=r.UI_NOTIFICATIONS=void 0;const n={1:{id:1,date:"2021-03-17",image:{src:"images/mobile-link-qr.svg",height:"230px",width:"230px",placeImageBelowDescription:!0}},3:{id:3,date:"2021-03-08"},4:{id:4,date:"2021-05-11",image:{src:"images/source-logos-bsc.svg",width:"100%"}},5:{id:5,date:"2021-06-09"},6:{id:6,date:"2021-05-26"},7:{id:7,date:"2021-09-17"},8:{id:8,date:"2021-11-01"},9:{id:9,date:"2021-12-07",image:{src:"images/txinsights.png",width:"80%"}},10:{id:10,date:"2022-09-15",image:{src:"images/token-detection.svg",width:"100%"}},11:{id:11,date:"2022-09-15"},12:{id:12,date:"2022-05-18",image:{src:"images/darkmode-banner.png",width:"100%"}},13:{id:13,date:"2022-09-15"},14:{id:14,date:"2022-09-15"},15:{id:15,date:"2022-09-15"},16:{id:16,date:null},17:{id:17,date:null},18:{id:18,date:null,image:{src:"images/open-sea-security-provider.svg",width:"100%"}},19:{id:19,date:null,image:{src:"images/nfts.svg",width:"100%"}},20:{id:20,date:null}};r.UI_NOTIFICATIONS=n;r.getTranslatedUINotifications=(e,t)=>{const r=t.replace("_","-");return{1:{...n[1],title:e("notifications1Title"),description:e("notifications1Description"),date:new Intl.DateTimeFormat(r).format(new Date(n[1].date))},3:{...n[3],title:e("notifications3Title"),description:e("notifications3Description"),actionText:e("notifications3ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[3].date))},4:{...n[4],title:e("notifications4Title"),description:e("notifications4Description"),actionText:e("notifications4ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[4].date))},5:{...n[5],title:e("secretRecoveryPhrase"),description:e("notifications5Description"),actionText:e("notifications3ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[5].date))},6:{...n[6],title:e("notifications6Title"),description:[e("notifications6DescriptionOne"),e("notifications6DescriptionTwo"),e("notifications6DescriptionThree")],date:new Intl.DateTimeFormat(r).format(new Date(n[6].date))},7:{...n[7],title:e("notifications7Title"),description:[e("notifications7DescriptionOne"),e("notifications7DescriptionTwo")],date:new Intl.DateTimeFormat(r).format(new Date(n[7].date))},8:{...n[8],title:e("notifications8Title"),description:[e("notifications8DescriptionOne"),e("notifications8DescriptionTwo")],date:new Intl.DateTimeFormat(r).format(new Date(n[8].date)),actionText:e("notifications8ActionText")},9:{...n[9],title:e("notifications9Title"),description:[e("notifications9DescriptionOne"),e("notifications9DescriptionTwo")],date:new Intl.DateTimeFormat(r).format(new Date(n[9].date))},10:{...n[10],title:e("notifications10Title"),description:[e("notifications10DescriptionOne"),e("notifications10DescriptionTwo"),e("notifications10DescriptionThree")],actionText:e("notifications10ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[10].date))},11:{...n[11],title:e("notifications11Title"),description:e("notifications11Description"),date:new Intl.DateTimeFormat(r).format(new Date(n[11].date))},12:{...n[12],title:e("notifications12Title"),description:e("notifications12Description"),actionText:e("notifications12ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[12].date))},13:{...n[13],title:e("notifications13Title"),description:e("notifications13Description"),actionText:e("notifications13ActionText"),date:new Intl.DateTimeFormat(r).format(new Date(n[13].date))},14:{...n[14],title:e("notifications14Title"),description:e("notifications14Description"),actionText:e("notifications14ActionText"),date:n[14].date?new Intl.DateTimeFormat(r).format(new Date(n[14].date)):""},15:{...n[15],title:e("notifications15Title"),description:e("notifications15Description"),date:n[15].date?new Intl.DateTimeFormat(r).format(new Date(n[15].date)):""},18:{...n[18],title:e("notifications18Title"),description:[e("notifications18DescriptionOne"),e("notifications18DescriptionTwo"),e("notifications18DescriptionThree")],actionText:e("notifications18ActionText"),date:n[18].date?new Intl.DateTimeFormat(r).format(new Date(n[18].date)):""},19:{...n[19],title:e("notifications19Title"),description:[e("notifications19DescriptionOne"),e("notifications19DescriptionTwo"),e("notifications19DescriptionThree")],actionText:e("notifications19ActionText"),date:n[19].date?new Intl.DateTimeFormat(r).format(new Date(n[19].date)):""},20:{...n[20],title:e("notifications20Title"),description:[e("notifications20Description")],actionText:e("notifications20ActionText"),date:n[20].date?new Intl.DateTimeFormat(r).format(new Date(n[20].date)):""}}}}}},{package:"$root$",file:"shared/notifications/index.js"}],[345,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"dao",comment:"DAO rescue hardfork",url:"https://eips.ethereum.org/EIPS/eip-779",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/dao.json"}],[346,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"grayGlacier",comment:"Delaying the difficulty bomb to Mid September 2022",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/gray-glacier.md",status:"Draft",eips:[5133],gasConfig:{},gasPrices:{},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/grayGlacier.json"}],[347,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"homestead",comment:"Homestead hardfork with protocol and network changes",url:"https://eips.ethereum.org/EIPS/eip-606",status:"Final",gasConfig:{},gasPrices:{delegatecall:{v:40,d:"Base fee of the DELEGATECALL opcode"}},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/homestead.json"}],[348,{"./arrowGlacier.json":340,"./berlin.json":341,"./byzantium.json":342,"./chainstart.json":343,"./constantinople.json":344,"./dao.json":345,"./grayGlacier.json":346,"./homestead.json":347,"./istanbul.json":349,"./london.json":350,"./merge.json":351,"./mergeForkIdTransition.json":352,"./muirGlacier.json":353,"./petersburg.json":354,"./shanghai.json":355,"./spuriousDragon.json":356,"./tangerineWhistle.json":357},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hardforks=void 0,r.hardforks=[["chainstart",e("./chainstart.json")],["homestead",e("./homestead.json")],["dao",e("./dao.json")],["tangerineWhistle",e("./tangerineWhistle.json")],["spuriousDragon",e("./spuriousDragon.json")],["byzantium",e("./byzantium.json")],["constantinople",e("./constantinople.json")],["petersburg",e("./petersburg.json")],["istanbul",e("./istanbul.json")],["muirGlacier",e("./muirGlacier.json")],["berlin",e("./berlin.json")],["london",e("./london.json")],["shanghai",e("./shanghai.json")],["arrowGlacier",e("./arrowGlacier.json")],["grayGlacier",e("./grayGlacier.json")],["mergeForkIdTransition",e("./mergeForkIdTransition.json")],["merge",e("./merge.json")]]}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/index.js"}],[349,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"istanbul",comment:"HF targeted for December 2019 following the Constantinople/Petersburg HF",url:"https://eips.ethereum.org/EIPS/eip-1679",status:"Final",gasConfig:{},gasPrices:{blake2Round:{v:1,d:"Gas cost per round for the Blake2 F precompile"},ecAdd:{v:150,d:"Gas costs for curve addition precompile"},ecMul:{v:6e3,d:"Gas costs for curve multiplication precompile"},ecPairing:{v:45e3,d:"Base gas costs for curve pairing precompile"},ecPairingWord:{v:34e3,d:"Gas costs regarding curve pairing precompile input length"},txDataNonZero:{v:16,d:"Per byte of data attached to a transaction that is not equal to zero. NOTE: Not payable on data of calls between transactions"},sstoreSentryGasEIP2200:{v:2300,d:"Minimum gas required to be present for an SSTORE call, not consumed"},sstoreNoopGasEIP2200:{v:800,d:"Once per SSTORE operation if the value doesn't change"},sstoreDirtyGasEIP2200:{v:800,d:"Once per SSTORE operation if a dirty value is changed"},sstoreInitGasEIP2200:{v:2e4,d:"Once per SSTORE operation from clean zero to non-zero"},sstoreInitRefundEIP2200:{v:19200,d:"Once per SSTORE operation for resetting to the original zero value"},sstoreCleanGasEIP2200:{v:5e3,d:"Once per SSTORE operation from clean non-zero to something else"},sstoreCleanRefundEIP2200:{v:4200,d:"Once per SSTORE operation for resetting to the original non-zero value"},sstoreClearRefundEIP2200:{v:15e3,d:"Once per SSTORE operation for clearing an originally existing storage slot"},balance:{v:700,d:"Base fee of the BALANCE opcode"},extcodehash:{v:700,d:"Base fee of the EXTCODEHASH opcode"},chainid:{v:2,d:"Base fee of the CHAINID opcode"},selfbalance:{v:5,d:"Base fee of the SELFBALANCE opcode"},sload:{v:800,d:"Base fee of the SLOAD opcode"}},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/istanbul.json"}],[350,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"london",comment:"HF targeted for July 2021 following the Berlin fork",url:"https://github.com/ethereum/eth1.0-specs/blob/master/network-upgrades/mainnet-upgrades/london.md",status:"Final",eips:[1559,3198,3529,3541]}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/london.json"}],[351,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"merge",comment:"Hardfork to upgrade the consensus mechanism to Proof-of-Stake",url:"https://github.com/ethereum/execution-specs/blob/master/network-upgrades/mainnet-upgrades/merge.md",status:"Draft",consensus:{type:"pos",algorithm:"casper",casper:{}},eips:[3675,4399]}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/merge.json"}],[352,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"mergeForkIdTransition",comment:"Pre-merge hardfork to fork off non-upgraded clients",url:"https://eips.ethereum.org/EIPS/eip-3675",status:"Draft",eips:[]}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/mergeForkIdTransition.json"}],[353,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"muirGlacier",comment:"HF to delay the difficulty bomb",url:"https://eips.ethereum.org/EIPS/eip-2384",status:"Final",gasConfig:{},gasPrices:{},vm:{},pow:{difficultyBombDelay:{v:9e6,d:"the amount of blocks to delay the difficulty bomb with"}}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/muirGlacier.json"}],[354,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"petersburg",comment:"Aka constantinopleFix, removes EIP-1283, activate together with or after constantinople",url:"https://eips.ethereum.org/EIPS/eip-1716",status:"Final",gasConfig:{},gasPrices:{netSstoreNoopGas:{v:null,d:"Removed along EIP-1283"},netSstoreInitGas:{v:null,d:"Removed along EIP-1283"},netSstoreCleanGas:{v:null,d:"Removed along EIP-1283"},netSstoreDirtyGas:{v:null,d:"Removed along EIP-1283"},netSstoreClearRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetRefund:{v:null,d:"Removed along EIP-1283"},netSstoreResetClearRefund:{v:null,d:"Removed along EIP-1283"}},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/petersburg.json"}],[355,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"shanghai",comment:"Next feature hardfork after the merge hardfork",url:"https://github.com/ethereum/pm/issues/356",status:"Pre-Draft",eips:[]}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/shanghai.json"}],[356,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"spuriousDragon",comment:"HF with EIPs for simple replay attack protection, EXP cost increase, state trie clearing, contract code size limit",url:"https://eips.ethereum.org/EIPS/eip-607",status:"Final",gasConfig:{},gasPrices:{expByte:{v:50,d:"Times ceil(log256(exponent)) for the EXP instruction"}},vm:{maxCodeSize:{v:24576,d:"Maximum length of contract code"}},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/spuriousDragon.json"}],[357,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){t.exports={name:"tangerineWhistle",comment:"Hardfork with gas cost changes for IO-heavy operations",url:"https://eips.ethereum.org/EIPS/eip-608",status:"Final",gasConfig:{},gasPrices:{sload:{v:200,d:"Once per SLOAD operation"},call:{v:700,d:"Once per CALL operation & message call transaction"},extcodesize:{v:700,d:"Base fee of the EXTCODESIZE opcode"},extcodecopy:{v:700,d:"Base fee of the EXTCODECOPY opcode"},balance:{v:400,d:"Base fee of the BALANCE opcode"},delegatecall:{v:700,d:"Base fee of the DELEGATECALL opcode"},callcode:{v:700,d:"Base fee of the CALLCODE opcode"},selfdestruct:{v:5e3,d:"Base fee of the SELFDESTRUCT opcode"}},vm:{},pow:{}}}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/hardforks/tangerineWhistle.json"}],[358,{"./chains":305,"./eips":333,"./genesisStates/goerli.json":334,"./genesisStates/kovan.json":335,"./genesisStates/mainnet.json":336,"./genesisStates/rinkeby.json":337,"./genesisStates/ropsten.json":338,"./genesisStates/sepolia.json":339,"./hardforks":348,buffer:1943,"crc-32":2034,"ethereumjs-util":2231,events:1944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")};Object.defineProperty(r,"__esModule",{value:!0}),r.ConsensusAlgorithm=r.ConsensusType=r.Hardfork=r.Chain=r.CustomChain=void 0;var s,u,c=e("events"),l=e("crc-32"),h=e("ethereumjs-util"),f=e("./chains"),d=e("./hardforks"),p=e("./eips");!function(e){e.PolygonMainnet="polygon-mainnet",e.PolygonMumbai="polygon-mumbai",e.ArbitrumRinkebyTestnet="arbitrum-rinkeby-testnet",e.xDaiChain="x-dai-chain",e.OptimisticKovan="optimistic-kovan",e.OptimisticEthereum="optimistic-ethereum"}(s=r.CustomChain||(r.CustomChain={})),function(e){e[e.Mainnet=1]="Mainnet",e[e.Ropsten=3]="Ropsten",e[e.Rinkeby=4]="Rinkeby",e[e.Kovan=42]="Kovan",e[e.Goerli=5]="Goerli",e[e.Sepolia=11155111]="Sepolia"}(r.Chain||(r.Chain={})),function(e){e.Chainstart="chainstart",e.Homestead="homestead",e.Dao="dao",e.TangerineWhistle="tangerineWhistle",e.SpuriousDragon="spuriousDragon",e.Byzantium="byzantium",e.Constantinople="constantinople",e.Petersburg="petersburg",e.Istanbul="istanbul",e.MuirGlacier="muirGlacier",e.Berlin="berlin",e.London="london",e.ArrowGlacier="arrowGlacier",e.GrayGlacier="grayGlacier",e.MergeForkIdTransition="mergeForkIdTransition",e.Merge="merge",e.Shanghai="shanghai"}(u=r.Hardfork||(r.Hardfork={})),function(e){e.ProofOfStake="pos",e.ProofOfWork="pow",e.ProofOfAuthority="poa"}(r.ConsensusType||(r.ConsensusType={})),function(e){e.Ethash="ethash",e.Clique="clique",e.Casper="casper"}(r.ConsensusAlgorithm||(r.ConsensusAlgorithm={}));var m=function(r){function n(e){var t,n,o,i,s=this;(s=r.call(this)||this)._supportedHardforks=[],s._eips=[],s._customChains=null!==(o=e.customChains)&&void 0!==o?o:[],s._chainParams=s.setChain(e.chain),s.DEFAULT_HARDFORK=null!==(i=s._chainParams.defaultHardfork)&&void 0!==i?i:u.Istanbul;try{for(var c=a(s._chainParams.hardforks),l=c.next();!l.done;l=c.next()){var h=l.value;h.forkHash||(h.forkHash=s._calcForkHash(h.name))}}catch(e){t={error:e}}finally{try{l&&!l.done&&(n=c.return)&&n.call(c)}finally{if(t)throw t.error}}return s._hardfork=s.DEFAULT_HARDFORK,e.supportedHardforks&&(s._supportedHardforks=e.supportedHardforks),e.hardfork&&s.setHardfork(e.hardfork),e.eips&&s.setEIPs(e.eips),s}return o(n,r),n.custom=function(e,t){var r;void 0===t&&(t={});var o=null!==(r=t.baseChain)&&void 0!==r?r:"mainnet",a=i({},n._getChainParams(o));if(a.name="custom-chain","string"!=typeof e)return new n(i({chain:i(i({},a),e)},t));if(e===s.PolygonMainnet)return n.custom({name:s.PolygonMainnet,chainId:137,networkId:137},t);if(e===s.PolygonMumbai)return n.custom({name:s.PolygonMumbai,chainId:80001,networkId:80001},t);if(e===s.ArbitrumRinkebyTestnet)return n.custom({name:s.ArbitrumRinkebyTestnet,chainId:421611,networkId:421611},t);if(e===s.xDaiChain)return n.custom({name:s.xDaiChain,chainId:100,networkId:100},t);if(e===s.OptimisticKovan)return n.custom({name:s.OptimisticKovan,chainId:69,networkId:69},i({hardfork:u.Berlin},t));if(e===s.OptimisticEthereum)return n.custom({name:s.OptimisticEthereum,chainId:10,networkId:10},i({hardfork:u.Berlin},t));throw new Error("Custom chain ".concat(e," not supported"))},n.forCustomChain=function(e,t,r,o){var a=n._getChainParams(e);return new n({chain:i(i({},a),t),hardfork:r,supportedHardforks:o})},n.isSupportedChainId=function(e){var t=(0,f._getInitializedChains)();return Boolean(t.names[e.toString()])},n._getChainParams=function(e,t){var r=(0,f._getInitializedChains)(t);if("number"==typeof e||h.BN.isBN(e)){if(e=e.toString(),r.names[e])return r[r.names[e]];throw new Error("Chain with ID ".concat(e," not supported"))}if(r[e])return r[e];throw new Error("Chain with name ".concat(e," not supported"))},n.prototype.setChain=function(e){var t,r;if("number"==typeof e||"string"==typeof e||h.BN.isBN(e)){var o=void 0;o=this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0])?this._customChains.map((function(e){return e[0]})):this._customChains,this._chainParams=n._getChainParams(e,o)}else{if("object"!=typeof e)throw new Error("Wrong input format");if(this._customChains.length>0)throw new Error("Chain must be a string, number, or BN when initialized with customChains passed in");try{for(var i=a(["networkId","genesis","hardforks","bootstrapNodes"]),s=i.next();!s.done;s=i.next()){var u=s.value;if(e[u]===undefined)throw new Error("Missing required chain parameter: ".concat(u))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(t)throw t.error}}this._chainParams=e}return this._chainParams},n.prototype.setHardfork=function(e){var t,r;if(!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"));var n=!1;try{for(var o=a(d.hardforks),i=o.next();!i.done;i=o.next()){i.value[0]===e&&(this._hardfork!==e&&(this._hardfork=e,this.emit("hardforkChanged",e)),n=!0)}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}if(!n)throw new Error("Hardfork with name ".concat(e," not supported"))},n.prototype.getHardforkByBlockNumber=function(e,t){var r,n;e=(0,h.toType)(e,h.TypeOutput.BN),t=(0,h.toType)(t,h.TypeOutput.BN);var o,i,s,c=u.Chainstart;try{for(var l=a(this.hardforks()),f=l.next();!f.done;f=l.next()){var d=f.value;if(null!==d.block)e.gte(new h.BN(d.block))&&(c=d.name),t&&d.td&&(t.gte(new h.BN(d.td))?o=d.name:i=s),s=d.name;else if(t!==undefined&&null!==t&&d.td!==undefined&&null!==d.td&&t.gte(new h.BN(d.td)))return d.name}}catch(e){r={error:e}}finally{try{f&&!f.done&&(n=l.return)&&n.call(l)}finally{if(r)throw r.error}}if(t){var p="block number: ".concat(e," (-> ").concat(c,"), ");if(o&&!this.hardforkGteHardfork(c,o)){var m="HF determined by block number is lower than the minimum total difficulty HF";throw p+="total difficulty: ".concat(t," (-> ").concat(o,")"),new Error("".concat(m,": ").concat(p))}if(i&&!this.hardforkGteHardfork(i,c)){m="Maximum HF determined by total difficulty is lower than the block number HF";throw p+="total difficulty: ".concat(t," (-> ").concat(i,")"),new Error("".concat(m,": ").concat(p))}}return c},n.prototype.setHardforkByBlockNumber=function(e,t){var r=this.getHardforkByBlockNumber(e,t);return this.setHardfork(r),r},n.prototype._chooseHardfork=function(e,t){if(void 0===t&&(t=!0),e){if(t&&!this._isSupportedHardfork(e))throw new Error("Hardfork ".concat(e," not set as supported in supportedHardforks"))}else e=this._hardfork;return e},n.prototype._getHardfork=function(e){var t,r,n=this.hardforks();try{for(var o=a(n),i=o.next();!i.done;i=o.next()){var s=i.value;if(s.name===e)return s}}catch(e){t={error:e}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}throw new Error("Hardfork ".concat(e," not defined for chain ").concat(this.chainName()))},n.prototype._isSupportedHardfork=function(e){var t,r;if(!(this._supportedHardforks.length>0))return!0;try{for(var n=a(this._supportedHardforks),o=n.next();!o.done;o=n.next()){if(e===o.value)return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},n.prototype.setEIPs=function(e){var t,r,n=this;void 0===e&&(e=[]);var o=function(t){if(!(t in p.EIPs))throw new Error("".concat(t," not supported"));var r=i.gteHardfork(p.EIPs[t].minimumHardfork);if(!r)throw new Error("".concat(t," cannot be activated on hardfork ").concat(i.hardfork(),", minimumHardfork: ").concat(r));p.EIPs[t].requiredEIPs&&p.EIPs[t].requiredEIPs.forEach((function(r){if(!e.includes(r)&&!n.isActivatedEIP(r))throw new Error("".concat(t," requires EIP ").concat(r,", but is not included in the EIP list"))}))},i=this;try{for(var s=a(e),u=s.next();!u.done;u=s.next()){o(u.value)}}catch(e){t={error:e}}finally{try{u&&!u.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}this._eips=e},n.prototype.param=function(e,t){var r,n,o=null;try{for(var i=a(this._eips),s=i.next();!s.done;s=i.next()){var u=s.value;if(null!==(o=this.paramByEIP(e,t,u)))return o}}catch(e){r={error:e}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(r)throw r.error}}return this.paramByHardfork(e,t,this._hardfork)},n.prototype.paramByHardfork=function(e,t,r){var n,o,i,s;r=this._chooseHardfork(r);var u=null;try{for(var c=a(d.hardforks),l=c.next();!l.done;l=c.next()){var h=l.value;if("eips"in h[1]){var f=h[1].eips;try{for(var p=(i=void 0,a(f)),m=p.next();!m.done;m=p.next()){var g=m.value,v=this.paramByEIP(e,t,g);u=null!==v?v:u}}catch(e){i={error:e}}finally{try{m&&!m.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}else{if(!h[1][e])throw new Error("Topic ".concat(e," not defined"));h[1][e][t]!==undefined&&(u=h[1][e][t].v)}if(h[0]===r)break}}catch(e){n={error:e}}finally{try{l&&!l.done&&(o=c.return)&&o.call(c)}finally{if(n)throw n.error}}return u},n.prototype.paramByEIP=function(e,t,r){if(!(r in p.EIPs))throw new Error("".concat(r," not supported"));var n=p.EIPs[r];if(!(e in n))throw new Error("Topic ".concat(e," not defined"));return n[e][t]===undefined?null:n[e][t].v},n.prototype.paramByBlock=function(e,t,r){var n=this.activeHardforks(r),o=n[n.length-1].name;return this.paramByHardfork(e,t,o)},n.prototype.isActivatedEIP=function(e){var t,r;if(this.eips().includes(e))return!0;try{for(var n=a(d.hardforks),o=n.next();!o.done;o=n.next()){var i=o.value[1];if(this.gteHardfork(i.name)&&"eips"in i&&i.eips.includes(e))return!0}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return!1},n.prototype.hardforkIsActiveOnBlock=function(e,t,r){var n;void 0===r&&(r={}),t=(0,h.toType)(t,h.TypeOutput.BN);var o=null!==(n=r.onlySupported)&&void 0!==n&&n;e=this._chooseHardfork(e,o);var i=this.hardforkBlockBN(e);return!(!i||!t.gte(i))},n.prototype.activeOnBlock=function(e,t){return this.hardforkIsActiveOnBlock(null,e,t)},n.prototype.hardforkGteHardfork=function(e,t,r){var n,o;void 0===r&&(r={});var i,s=r.onlyActive!==undefined&&r.onlyActive;e=this._chooseHardfork(e,r.onlySupported),i=s?this.activeHardforks(null,r):this.hardforks();var u=-1,c=-1,l=0;try{for(var h=a(i),f=h.next();!f.done;f=h.next()){var d=f.value;d.name===e&&(u=l),d.name===t&&(c=l),l+=1}}catch(e){n={error:e}}finally{try{f&&!f.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}return u>=c&&-1!==c},n.prototype.gteHardfork=function(e,t){return this.hardforkGteHardfork(null,e,t)},n.prototype.hardforkIsActiveOnChain=function(e,t){var r,n,o;void 0===t&&(t={});var i=null!==(o=t.onlySupported)&&void 0!==o&&o;e=this._chooseHardfork(e,i);try{for(var s=a(this.hardforks()),u=s.next();!u.done;u=s.next()){var c=u.value;if(c.name===e&&null!==c.block)return!0}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return!1},n.prototype.activeHardforks=function(e,t){var r,n;void 0===t&&(t={});var o=[],i=this.hardforks();try{for(var s=a(i),u=s.next();!u.done;u=s.next()){var c=u.value;if(null!==c.block){if(e!==undefined&&null!==e&&e<c.block)break;t.onlySupported&&!this._isSupportedHardfork(c.name)||o.push(c)}}}catch(e){r={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o},n.prototype.activeHardfork=function(e,t){void 0===t&&(t={});var r=this.activeHardforks(e,t);if(r.length>0)return r[r.length-1].name;throw new Error("No (supported) active hardfork found")},n.prototype.hardforkBlock=function(e){var t=this.hardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},n.prototype.hardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).block;return t===undefined||null===t?null:new h.BN(t)},n.prototype.hardforkTD=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e).td;return t===undefined||null===t?null:new h.BN(t)},n.prototype.isHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.hardforkBlockBN(t);return!!r&&r.eq(e)},n.prototype.nextHardforkBlock=function(e){var t=this.nextHardforkBlockBN(e);return(0,h.toType)(t,h.TypeOutput.Number)},n.prototype.nextHardforkBlockBN=function(e){e=this._chooseHardfork(e,!1);var t=this.hardforkBlockBN(e);return null===t?null:this.hardforks().reduce((function(e,r){var n=new h.BN(r.block);return n.gt(t)&&null===e?n:e}),null)},n.prototype.isNextHardforkBlock=function(e,t){e=(0,h.toType)(e,h.TypeOutput.BN),t=this._chooseHardfork(t,!1);var r=this.nextHardforkBlockBN(t);return null!==r&&r.eq(e)},n.prototype._calcForkHash=function(e){var r,n,o=t.from(this.genesis().hash.substr(2),"hex"),i=t.alloc(0),s=0;try{for(var u=a(this.hardforks()),c=u.next();!c.done;c=u.next()){var f=c.value,d=f.block;if(0!==d&&null!==d&&d!==s){var p=t.from(d.toString(16).padStart(16,"0"),"hex");i=t.concat([i,p])}if(f.name===e)break;null!==d&&(s=d)}}catch(e){r={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(r)throw r.error}}var m=t.concat([o,i]),g=(0,h.intToBuffer)((0,l.buf)(m)>>>0).toString("hex");return"0x".concat(g)},n.prototype.forkHash=function(e){e=this._chooseHardfork(e,!1);var t=this._getHardfork(e);if(null===t.block&&t.td===undefined){throw new Error("No fork hash calculation possible for future hardfork")}return t.forkHash!==undefined?t.forkHash:this._calcForkHash(e)},n.prototype.hardforkForForkHash=function(e){var t=this.hardforks().filter((function(t){return t.forkHash===e}));return t.length>=1?t[t.length-1]:null},n.prototype.genesis=function(){return this._chainParams.genesis},n.prototype.genesisState=function(){var t,r;switch(this.chainName()){case"mainnet":return e("./genesisStates/mainnet.json");case"ropsten":return e("./genesisStates/ropsten.json");case"rinkeby":return e("./genesisStates/rinkeby.json");case"kovan":return e("./genesisStates/kovan.json");case"goerli":return e("./genesisStates/goerli.json");case"sepolia":return e("./genesisStates/sepolia.json")}if(this._customChains&&this._customChains.length>0&&Array.isArray(this._customChains[0]))try{for(var n=a(this._customChains),o=n.next();!o.done;o=n.next()){var i=o.value;if(i[0].name===this.chainName())return i[1]}}catch(e){t={error:e}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(t)throw t.error}}return{}},n.prototype.hardforks=function(){return this._chainParams.hardforks},n.prototype.bootstrapNodes=function(){return this._chainParams.bootstrapNodes},n.prototype.dnsNetworks=function(){return this._chainParams.dnsNetworks},n.prototype.hardfork=function(){return this._hardfork},n.prototype.chainId=function(){return(0,h.toType)(this.chainIdBN(),h.TypeOutput.Number)},n.prototype.chainIdBN=function(){return new h.BN(this._chainParams.chainId)},n.prototype.chainName=function(){return this._chainParams.name},n.prototype.networkId=function(){return(0,h.toType)(this.networkIdBN(),h.TypeOutput.Number)},n.prototype.networkIdBN=function(){return new h.BN(this._chainParams.networkId)},n.prototype.eips=function(){return this._eips},n.prototype.consensusType=function(){var e,t,r,n=this.hardfork();try{for(var o=a(d.hardforks),i=o.next();!i.done;i=o.next()){var s=i.value;if("consensus"in s[1]&&(r=s[1].consensus.type),s[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.type},n.prototype.consensusAlgorithm=function(){var e,t,r,n=this.hardfork();try{for(var o=a(d.hardforks),i=o.next();!i.done;i=o.next()){var s=i.value;if("consensus"in s[1]&&(r=s[1].consensus.algorithm),s[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}return r||this._chainParams.consensus.algorithm},n.prototype.consensusConfig=function(){var e,t,r,n=this.hardfork();try{for(var o=a(d.hardforks),i=o.next();!i.done;i=o.next()){var s=i.value;if("consensus"in s[1]&&(r=s[1].consensus[s[1].consensus.algorithm]),s[0]===n)break}}catch(t){e={error:t}}finally{try{i&&!i.done&&(t=o.return)&&t.call(o)}finally{if(e)throw e.error}}if(r)return r;var u=this.consensusAlgorithm();return this._chainParams.consensus[u]},n.prototype.copy=function(){var e=Object.assign(Object.create(Object.getPrototypeOf(this)),this);return e.removeAllListeners(),e},n}(c.EventEmitter);r.default=m}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ethereumjs/common",file:"node_modules/@ethereumjs/common/dist.browser/index.js"}],[359,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e){if(Array.isArray(e)){const t=[];let r=0;for(let o=0;o<e.length;o++){const i=n(e[o]);t.push(i),r+=i.length}return d(a(r,192),...t)}const t=v(e);return 1===t.length&&t[0]<128?t:d(a(t.length,128),t)}function o(e,t,r){if(r>e.length)throw new Error("invalid RLP (safeSlice): end slice of Uint8Array out-of-bounds");return e.slice(t,r)}function i(e){if(0===e[0])throw new Error("invalid RLP: extra zeros");return h(l(e))}function a(e,t){if(e<56)return Uint8Array.from([e+t]);const r=m(e),n=m(t+55+r.length/2);return Uint8Array.from(f(n+r))}function s(e,t=!1){if(null==e||0===e.length)return Uint8Array.from([]);const r=u(v(e));if(t)return r;if(0!==r.remainder.length)throw new Error("invalid RLP: remainder must be zero");return r.data}function u(e){let t,r,n,a,s;const c=[],l=e[0];if(l<=127)return{data:e.slice(0,1),remainder:e.slice(1)};if(l<=183){if(t=l-127,n=128===l?Uint8Array.from([]):o(e,1,t),2===t&&n[0]<128)throw new Error("invalid RLP encoding: invalid prefix, single byte < 0x80 are not prefixed");return{data:n,remainder:e.slice(t)}}if(l<=191){if(r=l-182,e.length-1<r)throw new Error("invalid RLP: not enough bytes for string length");if(t=i(o(e,1,r)),t<=55)throw new Error("invalid RLP: expected string length to be greater than 55");return n=o(e,r,t+r),{data:n,remainder:e.slice(t+r)}}if(l<=247){for(t=l-191,a=o(e,1,t);a.length;)s=u(a),c.push(s.data),a=s.remainder;return{data:c,remainder:e.slice(t)}}{if(r=l-246,t=i(o(e,1,r)),t<56)throw new Error("invalid RLP: encoded list too short");const n=r+t;if(n>e.length)throw new Error("invalid RLP: total length is larger than the data");for(a=o(e,r,n);a.length;)s=u(a),c.push(s.data),a=s.remainder;return{data:c,remainder:e.slice(n)}}}Object.defineProperty(r,"__esModule",{value:!0}),r.RLP=r.utils=r.decode=r.encode=void 0,r.encode=n,r.decode=s;const c=Array.from({length:256},((e,t)=>t.toString(16).padStart(2,"0")));function l(e){let t="";for(let r=0;r<e.length;r++)t+=c[e[r]];return t}function h(e){const t=Number.parseInt(e,16);if(Number.isNaN(t))throw new Error("Invalid byte sequence");return t}function f(e){if("string"!=typeof e)throw new TypeError("hexToBytes: expected string, got "+typeof e);if(e.length%2)throw new Error("hexToBytes: received invalid unpadded hex");const t=new Uint8Array(e.length/2);for(let r=0;r<t.length;r++){const n=2*r;t[r]=h(e.slice(n,n+2))}return t}function d(...e){if(1===e.length)return e[0];const t=e.reduce(((e,t)=>e+t.length),0),r=new Uint8Array(t);for(let t=0,n=0;t<e.length;t++){const o=e[t];r.set(o,n),n+=o.length}return r}function p(e){return(new TextEncoder).encode(e)}function m(e){if(e<0)throw new Error("Invalid integer as argument, must be unsigned!");const t=e.toString(16);return t.length%2?`0${t}`:t}function g(e){return e.length>=2&&"0"===e[0]&&"x"===e[1]}function v(e){if(e instanceof Uint8Array)return e;if("string"==typeof e)return g(e)?f((t="string"!=typeof(r=e)?r:g(r)?r.slice(2):r).length%2?`0${t}`:t):p(e);var t,r;if("number"==typeof e||"bigint"==typeof e)return e?f(m(e)):Uint8Array.from([]);if(null===e||e===undefined)return Uint8Array.from([]);throw new Error("toBytes: received unsupported type "+typeof e)}r.utils={bytesToHex:l,concatBytes:d,hexToBytes:f,utf8ToBytes:p},r.RLP={encode:n,decode:s}}}},{package:"@metamask/utils>@ethereumjs/tx>@ethereumjs/rlp",file:"node_modules/@ethereumjs/rlp/dist/index.js"}],[360,{"./types":366,"@ethereumjs/common":358,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t},a=this&&this.__values||function(e){var t="function"==typeof Symbol&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")},s=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseTransaction=void 0;var u=i(e("@ethereumjs/common")),c=e("ethereumjs-util"),l=e("./types"),h=function(){function e(e){this.cache={hash:undefined,dataFee:undefined},this.activeCapabilities=[],this.DEFAULT_CHAIN=u.Chain.Mainnet,this.DEFAULT_HARDFORK=u.Hardfork.Istanbul;var t=e.nonce,r=e.gasLimit,n=e.to,o=e.value,i=e.data,a=e.v,s=e.r,l=e.s,h=e.type;this._type=new c.BN((0,c.toBuffer)(h)).toNumber();var f=(0,c.toBuffer)(""===n?"0x":n),d=(0,c.toBuffer)(""===a?"0x":a),p=(0,c.toBuffer)(""===s?"0x":s),m=(0,c.toBuffer)(""===l?"0x":l);this.nonce=new c.BN((0,c.toBuffer)(""===t?"0x":t)),this.gasLimit=new c.BN((0,c.toBuffer)(""===r?"0x":r)),this.to=f.length>0?new c.Address(f):undefined,this.value=new c.BN((0,c.toBuffer)(""===o?"0x":o)),this.data=(0,c.toBuffer)(""===i?"0x":i),this.v=d.length>0?new c.BN(d):undefined,this.r=p.length>0?new c.BN(p):undefined,this.s=m.length>0?new c.BN(m):undefined,this._validateCannotExceedMaxInteger({value:this.value,r:this.r,s:this.s}),this._validateCannotExceedMaxInteger({gasLimit:this.gasLimit},64),this._validateCannotExceedMaxInteger({nonce:this.nonce},64,!0)}return Object.defineProperty(e.prototype,"transactionType",{get:function(){return this.type},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),e.prototype.supports=function(e){return this.activeCapabilities.includes(e)},e.prototype.validate=function(e){void 0===e&&(e=!1);var t=[];return this.getBaseFee().gt(this.gasLimit)&&t.push("gasLimit is too low. given ".concat(this.gasLimit,", need at least ").concat(this.getBaseFee())),this.isSigned()&&!this.verifySignature()&&t.push("Invalid Signature"),e?t:0===t.length},e.prototype.getBaseFee=function(){var e=this.getDataFee().addn(this.common.param("gasPrices","tx"));return this.common.gteHardfork("homestead")&&this.toCreationAddress()&&e.iaddn(this.common.param("gasPrices","txCreation")),e},e.prototype.getDataFee=function(){for(var e=this.common.param("gasPrices","txDataZero"),t=this.common.param("gasPrices","txDataNonZero"),r=0,n=0;n<this.data.length;n++)0===this.data[n]?r+=e:r+=t;if(r=new c.BN(r),(this.to===undefined||null===this.to)&&this.common.isActivatedEIP(3860)){var o=Math.ceil(this.data.length/32),i=new c.BN(this.common.param("gasPrices","initCodeWordCost")).imuln(o);r.iadd(i)}return r},e.prototype.toCreationAddress=function(){return this.to===undefined||0===this.to.buf.length},e.prototype.isSigned=function(){var e=this,t=e.v,r=e.r,n=e.s;return 0===this.type?!!(t&&r&&n):!(t===undefined||!r||!n)},e.prototype.verifySignature=function(){try{var e=this.getSenderPublicKey();return 0!==(0,c.unpadBuffer)(e).length}catch(e){return!1}},e.prototype.getSenderAddress=function(){return new c.Address((0,c.publicToAddress)(this.getSenderPublicKey()))},e.prototype.sign=function(e){if(32!==e.length){var t=this._errorMsg("Private key must be 32 bytes in length.");throw new Error(t)}var r=!1;0===this.type&&this.common.gteHardfork("spuriousDragon")&&!this.supports(l.Capability.EIP155ReplayProtection)&&(this.activeCapabilities.push(l.Capability.EIP155ReplayProtection),r=!0);var n=this.getMessageToSign(!0),o=(0,c.ecsign)(n,e),i=o.v,a=o.r,s=o.s,u=this._processSignature(i,a,s);if(r){var h=this.activeCapabilities.indexOf(l.Capability.EIP155ReplayProtection);h>-1&&this.activeCapabilities.splice(h,1)}return u},e.prototype._getCommon=function(e,t){var r;if(t){var n=new c.BN((0,c.toBuffer)(t));if(e){if(!e.chainIdBN().eq(n)){var o=this._errorMsg("The chain ID does not match the chain ID of Common");throw new Error(o)}return e.copy()}return u.default.isSupportedChainId(n)?new u.default({chain:n,hardfork:this.DEFAULT_HARDFORK}):u.default.forCustomChain(this.DEFAULT_CHAIN,{name:"custom-chain",networkId:n,chainId:n},this.DEFAULT_HARDFORK)}return null!==(r=null==e?void 0:e.copy())&&void 0!==r?r:new u.default({chain:this.DEFAULT_CHAIN,hardfork:this.DEFAULT_HARDFORK})},e.prototype._validateCannotExceedMaxInteger=function(e,t,r){var n,o;void 0===t&&(t=256),void 0===r&&(r=!1);try{for(var i=a(Object.entries(e)),u=i.next();!u.done;u=i.next()){var l=s(u.value,2),h=l[0],f=l[1];switch(t){case 64:if(r){if(null==f?void 0:f.gte(c.MAX_UINT64)){var d=this._errorMsg("".concat(h," cannot equal or exceed MAX_UINT64 (2^64-1), given ").concat(f));throw new Error(d)}}else if(null==f?void 0:f.gt(c.MAX_UINT64)){d=this._errorMsg("".concat(h," cannot exceed MAX_UINT64 (2^64-1), given ").concat(f));throw new Error(d)}break;case 256:if(r){if(null==f?void 0:f.gte(c.MAX_INTEGER)){d=this._errorMsg("".concat(h," cannot equal or exceed MAX_INTEGER (2^256-1), given ").concat(f));throw new Error(d)}}else if(null==f?void 0:f.gt(c.MAX_INTEGER)){d=this._errorMsg("".concat(h," cannot exceed MAX_INTEGER (2^256-1), given ").concat(f));throw new Error(d)}break;default:d=this._errorMsg("unimplemented bits value");throw new Error(d)}}}catch(e){n={error:e}}finally{try{u&&!u.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}},e.prototype._getSharedErrorPostfix=function(){var e="";try{e=this.isSigned()?(0,c.bufferToHex)(this.hash()):"not available (unsigned)"}catch(t){e="error"}var t="";try{t=this.isSigned().toString()}catch(t){e="error"}var r="";try{r=this.common.hardfork()}catch(e){r="error"}var n="tx type=".concat(this.type," hash=").concat(e," nonce=").concat(this.nonce," value=").concat(this.value," ");return n+="signed=".concat(t," hf=").concat(r)},e}();r.BaseTransaction=h}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/baseTransaction.js"}],[361,{"./baseTransaction":360,"./types":366,"./util":367,buffer:1943,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(r,"__esModule",{value:!0});var s=e("ethereumjs-util"),u=e("./baseTransaction"),c=e("./types"),l=e("./util"),h=t.from(2..toString(16).padStart(2,"0"),"hex"),f=function(e){function r(t,r){void 0===r&&(r={});var n,o,a=this;(a=e.call(this,i(i({},t),{type:2}))||this).DEFAULT_HARDFORK="london";var u=t.chainId,h=t.accessList,f=t.maxFeePerGas,d=t.maxPriorityFeePerGas;if(a.common=a._getCommon(r.common,u),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(1559))throw new Error("EIP-1559 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([1559,2718,2930]);var p=l.AccessLists.getAccessListData(null!=h?h:[]);if(a.accessList=p.accessList,a.AccessListJSON=p.AccessListJSON,l.AccessLists.verifyAccessList(a.accessList),a.maxFeePerGas=new s.BN((0,s.toBuffer)(""===f?"0x":f)),a.maxPriorityFeePerGas=new s.BN((0,s.toBuffer)(""===d?"0x":d)),a._validateCannotExceedMaxInteger({maxFeePerGas:a.maxFeePerGas,maxPriorityFeePerGas:a.maxPriorityFeePerGas}),a.gasLimit.mul(a.maxFeePerGas).gt(s.MAX_INTEGER)){var m=a._errorMsg("gasLimit * maxFeePerGas cannot exceed MAX_INTEGER (2^256-1)");throw new Error(m)}if(a.maxFeePerGas.lt(a.maxPriorityFeePerGas)){m=a._errorMsg("maxFeePerGas cannot be less than maxPriorityFeePerGas (The total must be the larger of the two)");throw new Error(m)}if(a.v&&!a.v.eqn(0)&&!a.v.eqn(1)){m=a._errorMsg("The y-parity of the transaction should either be 0 or 1");throw new Error(m)}if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(c.N_DIV_2))){m=a._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(m)}return a.common.isActivatedEIP(3860)&&(0,l.checkMaxInitCodeSize)(a.common,a.data.length),(null===(o=null==r?void 0:r.freeze)||void 0===o||o)&&Object.freeze(a),a}return o(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(h))throw new Error("Invalid serialized tx input: not an EIP-1559 transaction (wrong tx type, expected: ".concat(2,", received: ").concat(e.slice(0,1).toString("hex")));var n=s.rlp.decode(e.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),9!==e.length&&12!==e.length)throw new Error("Invalid EIP-1559 transaction. Only expecting 9 values (for unsigned tx) or 12 values (for signed tx).");var n=a(e,12),o=n[0],i=n[1],u=n[2],c=n[3],l=n[4],h=n[5],f=n[6],d=n[7],p=n[8],m=n[9],g=n[10],v=n[11];return(0,s.validateNoLeadingZeroes)({nonce:i,maxPriorityFeePerGas:u,maxFeePerGas:c,gasLimit:l,value:f,v:m,r:g,s:v}),new r({chainId:new s.BN(o),nonce:i,maxPriorityFeePerGas:u,maxFeePerGas:c,gasLimit:l,to:h,value:f,data:d,accessList:null!=p?p:[],v:m!==undefined?new s.BN(m):undefined,r:g,s:v},t)},r.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(l.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},r.prototype.getUpfrontCost=function(e){void 0===e&&(e=new s.BN(0));var t=s.BN.min(this.maxPriorityFeePerGas,this.maxFeePerGas.sub(e)).add(e);return this.gasLimit.mul(t).add(this.value)},r.prototype.raw=function(){return[(0,s.bnToUnpaddedBuffer)(this.chainId),(0,s.bnToUnpaddedBuffer)(this.nonce),(0,s.bnToUnpaddedBuffer)(this.maxPriorityFeePerGas),(0,s.bnToUnpaddedBuffer)(this.maxFeePerGas),(0,s.bnToUnpaddedBuffer)(this.gasLimit),this.to!==undefined?this.to.buf:t.from([]),(0,s.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,this.v!==undefined?(0,s.bnToUnpaddedBuffer)(this.v):t.from([]),this.r!==undefined?(0,s.bnToUnpaddedBuffer)(this.r):t.from([]),this.s!==undefined?(0,s.bnToUnpaddedBuffer)(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([h,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,9),n=t.concat([h,s.rlp.encode(r)]);return e?(0,s.keccak256)(n):n},r.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,s.keccak256)(this.serialize())),this.cache.hash):(0,s.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var r=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(c.N_DIV_2))){t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(t)}var n=this,o=n.v,i=n.r,a=n.s;try{return(0,s.ecrecover)(r,o.addn(27),(0,s.bnToUnpaddedBuffer)(i),(0,s.bnToUnpaddedBuffer)(a))}catch(e){t=this._errorMsg("Invalid Signature");throw new Error(t)}},r.prototype._processSignature=function(e,t,n){var o={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,maxPriorityFeePerGas:this.maxPriorityFeePerGas,maxFeePerGas:this.maxFeePerGas,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(e-27),r:new s.BN(t),s:new s.BN(n)},o)},r.prototype.toJSON=function(){var e=l.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,s.bnToHex)(this.chainId),nonce:(0,s.bnToHex)(this.nonce),maxPriorityFeePerGas:(0,s.bnToHex)(this.maxPriorityFeePerGas),maxFeePerGas:(0,s.bnToHex)(this.maxFeePerGas),gasLimit:(0,s.bnToHex)(this.gasLimit),to:this.to!==undefined?this.to.toString():undefined,value:(0,s.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:this.v!==undefined?(0,s.bnToHex)(this.v):undefined,r:this.r!==undefined?(0,s.bnToHex)(this.r):undefined,s:this.s!==undefined?(0,s.bnToHex)(this.s):undefined}},r.prototype.errorStr=function(){var e=this._getSharedErrorPostfix();return e+=" maxFeePerGas=".concat(this.maxFeePerGas," maxPriorityFeePerGas=").concat(this.maxPriorityFeePerGas)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(u.BaseTransaction);r.default=f}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/eip1559Transaction.js"}],[362,{"./baseTransaction":360,"./types":366,"./util":367,buffer:1943,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(r,"__esModule",{value:!0});var s=e("ethereumjs-util"),u=e("./baseTransaction"),c=e("./types"),l=e("./util"),h=t.from(1..toString(16).padStart(2,"0"),"hex"),f=function(e){function r(t,r){void 0===r&&(r={});var n,o,a=this;(a=e.call(this,i(i({},t),{type:1}))||this).DEFAULT_HARDFORK="berlin";var u=t.chainId,h=t.accessList,f=t.gasPrice;if(a.common=a._getCommon(r.common,u),a.chainId=a.common.chainIdBN(),!a.common.isActivatedEIP(2930))throw new Error("EIP-2930 not enabled on Common");a.activeCapabilities=a.activeCapabilities.concat([2718,2930]);var d=l.AccessLists.getAccessListData(null!=h?h:[]);if(a.accessList=d.accessList,a.AccessListJSON=d.AccessListJSON,l.AccessLists.verifyAccessList(a.accessList),a.gasPrice=new s.BN((0,s.toBuffer)(""===f?"0x":f)),a._validateCannotExceedMaxInteger({gasPrice:a.gasPrice}),a.gasPrice.mul(a.gasLimit).gt(s.MAX_INTEGER)){var p=a._errorMsg("gasLimit * gasPrice cannot exceed MAX_INTEGER");throw new Error(p)}if(a.v&&!a.v.eqn(0)&&!a.v.eqn(1)){p=a._errorMsg("The y-parity of the transaction should either be 0 or 1");throw new Error(p)}if(a.common.gteHardfork("homestead")&&(null===(n=a.s)||void 0===n?void 0:n.gt(c.N_DIV_2))){p=a._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(p)}return a.common.isActivatedEIP(3860)&&(0,l.checkMaxInitCodeSize)(a.common,a.data.length),(null===(o=null==r?void 0:r.freeze)||void 0===o||o)&&Object.freeze(a),a}return o(r,e),Object.defineProperty(r.prototype,"senderR",{get:function(){return this.r},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"senderS",{get:function(){return this.s},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"yParity",{get:function(){return this.v},enumerable:!1,configurable:!0}),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){if(void 0===t&&(t={}),!e.slice(0,1).equals(h))throw new Error("Invalid serialized tx input: not an EIP-2930 transaction (wrong tx type, expected: ".concat(1,", received: ").concat(e.slice(0,1).toString("hex")));var n=s.rlp.decode(e.slice(1));if(!Array.isArray(n))throw new Error("Invalid serialized tx input: must be array");return r.fromValuesArray(n,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),8!==e.length&&11!==e.length)throw new Error("Invalid EIP-2930 transaction. Only expecting 8 values (for unsigned tx) or 11 values (for signed tx).");var n=a(e,11),o=n[0],i=n[1],u=n[2],c=n[3],l=n[4],h=n[5],f=n[6],d=n[7],p=n[8],m=n[9],g=n[10];(0,s.validateNoLeadingZeroes)({nonce:i,gasPrice:u,gasLimit:c,value:h,v:p,r:m,s:g});return new r({chainId:new s.BN(o),nonce:i,gasPrice:u,gasLimit:c,to:l,value:h,data:f,accessList:null!=d?d:[],v:p!==undefined?new s.BN(p):undefined,r:m,s:g},t)},r.prototype.getDataFee=function(){if(this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork())return this.cache.dataFee.value;var t=e.prototype.getDataFee.call(this);return t.iaddn(l.AccessLists.getDataFeeEIP2930(this.accessList,this.common)),Object.isFrozen(this)&&(this.cache.dataFee={value:t,hardfork:this.common.hardfork()}),t},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.raw=function(){return[(0,s.bnToUnpaddedBuffer)(this.chainId),(0,s.bnToUnpaddedBuffer)(this.nonce),(0,s.bnToUnpaddedBuffer)(this.gasPrice),(0,s.bnToUnpaddedBuffer)(this.gasLimit),this.to!==undefined?this.to.buf:t.from([]),(0,s.bnToUnpaddedBuffer)(this.value),this.data,this.accessList,this.v!==undefined?(0,s.bnToUnpaddedBuffer)(this.v):t.from([]),this.r!==undefined?(0,s.bnToUnpaddedBuffer)(this.r):t.from([]),this.s!==undefined?(0,s.bnToUnpaddedBuffer)(this.s):t.from([])]},r.prototype.serialize=function(){var e=this.raw();return t.concat([h,s.rlp.encode(e)])},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var r=this.raw().slice(0,8),n=t.concat([h,s.rlp.encode(r)]);return e?(0,s.keccak256)(n):n},r.prototype.hash=function(){if(!this.isSigned()){var e=this._errorMsg("Cannot call hash method if transaction is not signed");throw new Error(e)}return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,s.keccak256)(this.serialize())),this.cache.hash):(0,s.keccak256)(this.serialize())},r.prototype.getMessageToVerifySignature=function(){return this.getMessageToSign()},r.prototype.getSenderPublicKey=function(){var e;if(!this.isSigned()){var t=this._errorMsg("Cannot call this method if transaction is not signed");throw new Error(t)}var r=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(c.N_DIV_2))){t=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(t)}var n=this,o=n.yParity,i=n.r,a=n.s;try{return(0,s.ecrecover)(r,o.addn(27),(0,s.bnToUnpaddedBuffer)(i),(0,s.bnToUnpaddedBuffer)(a))}catch(e){t=this._errorMsg("Invalid Signature");throw new Error(t)}},r.prototype._processSignature=function(e,t,n){var o={common:this.common};return r.fromTxData({chainId:this.chainId,nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,accessList:this.accessList,v:new s.BN(e-27),r:new s.BN(t),s:new s.BN(n)},o)},r.prototype.toJSON=function(){var e=l.AccessLists.getAccessListJSON(this.accessList);return{chainId:(0,s.bnToHex)(this.chainId),nonce:(0,s.bnToHex)(this.nonce),gasPrice:(0,s.bnToHex)(this.gasPrice),gasLimit:(0,s.bnToHex)(this.gasLimit),to:this.to!==undefined?this.to.toString():undefined,value:(0,s.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),accessList:e,v:this.v!==undefined?(0,s.bnToHex)(this.v):undefined,r:this.r!==undefined?(0,s.bnToHex)(this.r):undefined,s:this.s!==undefined?(0,s.bnToHex)(this.s):undefined}},r.prototype.errorStr=function(){var e,t,r=this._getSharedErrorPostfix();return r+=" gasPrice=".concat(this.gasPrice," accessListCount=").concat(null!==(t=null===(e=this.accessList)||void 0===e?void 0:e.length)&&void 0!==t?t:0)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(u.BaseTransaction);r.default=f}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/eip2930Transaction.js"}],[363,{"./eip1559Transaction":361,"./eip2930Transaction":362,"./legacyTransaction":364,"./transactionFactory":365,"./types":366},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)},i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.FeeMarketEIP1559Transaction=r.TransactionFactory=r.AccessListEIP2930Transaction=r.Transaction=void 0;var a=e("./legacyTransaction");Object.defineProperty(r,"Transaction",{enumerable:!0,get:function(){return i(a).default}});var s=e("./eip2930Transaction");Object.defineProperty(r,"AccessListEIP2930Transaction",{enumerable:!0,get:function(){return i(s).default}});var u=e("./transactionFactory");Object.defineProperty(r,"TransactionFactory",{enumerable:!0,get:function(){return i(u).default}});var c=e("./eip1559Transaction");Object.defineProperty(r,"FeeMarketEIP1559Transaction",{enumerable:!0,get:function(){return i(c).default}}),o(e("./types"),r)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/index.js"}],[364,{"./baseTransaction":360,"./types":366,"./util":367,buffer:1943,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__read||function(e,t){var r="function"==typeof Symbol&&e[Symbol.iterator];if(!r)return e;var n,o,i=r.call(e),a=[];try{for(;(void 0===t||t-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(e){o={error:e}}finally{try{n&&!n.done&&(r=i.return)&&r.call(i)}finally{if(o)throw o.error}}return a};Object.defineProperty(r,"__esModule",{value:!0});var s=e("ethereumjs-util"),u=e("./types"),c=e("./baseTransaction"),l=e("./util"),h=function(e){function r(t,r){void 0===r&&(r={});var n,o=this;if((o=e.call(this,i(i({},t),{type:0}))||this).common=o._validateTxV(o.v,r.common),o.gasPrice=new s.BN((0,s.toBuffer)(""===t.gasPrice?"0x":t.gasPrice)),o.gasPrice.mul(o.gasLimit).gt(s.MAX_INTEGER)){var a=o._errorMsg("gas limit * gasPrice cannot exceed MAX_INTEGER (2^256-1)");throw new Error(a)}if(o._validateCannotExceedMaxInteger({gasPrice:o.gasPrice}),o.common.gteHardfork("spuriousDragon"))if(o.isSigned()){var c=o.v,h=o.common.chainIdBN().muln(2);(c.eq(h.addn(35))||c.eq(h.addn(36)))&&o.activeCapabilities.push(u.Capability.EIP155ReplayProtection)}else o.activeCapabilities.push(u.Capability.EIP155ReplayProtection);return o.common.isActivatedEIP(3860)&&(0,l.checkMaxInitCodeSize)(o.common,o.data.length),(null===(n=null==r?void 0:r.freeze)||void 0===n||n)&&Object.freeze(o),o}return o(r,e),r.fromTxData=function(e,t){return void 0===t&&(t={}),new r(e,t)},r.fromSerializedTx=function(e,t){void 0===t&&(t={});var r=s.rlp.decode(e);if(!Array.isArray(r))throw new Error("Invalid serialized tx input. Must be array");return this.fromValuesArray(r,t)},r.fromRlpSerializedTx=function(e,t){return void 0===t&&(t={}),r.fromSerializedTx(e,t)},r.fromValuesArray=function(e,t){if(void 0===t&&(t={}),6!==e.length&&9!==e.length)throw new Error("Invalid transaction. Only expecting 6 values (for unsigned tx) or 9 values (for signed tx).");var n=a(e,9),o=n[0],i=n[1],u=n[2],c=n[3],l=n[4],h=n[5],f=n[6],d=n[7],p=n[8];return(0,s.validateNoLeadingZeroes)({nonce:o,gasPrice:i,gasLimit:u,value:l,v:f,r:d,s:p}),new r({nonce:o,gasPrice:i,gasLimit:u,to:c,value:l,data:h,v:f,r:d,s:p},t)},r.prototype.raw=function(){return[(0,s.bnToUnpaddedBuffer)(this.nonce),(0,s.bnToUnpaddedBuffer)(this.gasPrice),(0,s.bnToUnpaddedBuffer)(this.gasLimit),this.to!==undefined?this.to.buf:t.from([]),(0,s.bnToUnpaddedBuffer)(this.value),this.data,this.v!==undefined?(0,s.bnToUnpaddedBuffer)(this.v):t.from([]),this.r!==undefined?(0,s.bnToUnpaddedBuffer)(this.r):t.from([]),this.s!==undefined?(0,s.bnToUnpaddedBuffer)(this.s):t.from([])]},r.prototype.serialize=function(){return s.rlp.encode(this.raw())},r.prototype._getMessageToSign=function(){var e=[(0,s.bnToUnpaddedBuffer)(this.nonce),(0,s.bnToUnpaddedBuffer)(this.gasPrice),(0,s.bnToUnpaddedBuffer)(this.gasLimit),this.to!==undefined?this.to.buf:t.from([]),(0,s.bnToUnpaddedBuffer)(this.value),this.data];return this.supports(u.Capability.EIP155ReplayProtection)&&(e.push((0,s.toBuffer)(this.common.chainIdBN())),e.push((0,s.unpadBuffer)((0,s.toBuffer)(0))),e.push((0,s.unpadBuffer)((0,s.toBuffer)(0)))),e},r.prototype.getMessageToSign=function(e){void 0===e&&(e=!0);var t=this._getMessageToSign();return e?(0,s.rlphash)(t):t},r.prototype.getDataFee=function(){return this.cache.dataFee&&this.cache.dataFee.hardfork===this.common.hardfork()?this.cache.dataFee.value:(Object.isFrozen(this)&&(this.cache.dataFee={value:e.prototype.getDataFee.call(this),hardfork:this.common.hardfork()}),e.prototype.getDataFee.call(this))},r.prototype.getUpfrontCost=function(){return this.gasLimit.mul(this.gasPrice).add(this.value)},r.prototype.hash=function(){return Object.isFrozen(this)?(this.cache.hash||(this.cache.hash=(0,s.rlphash)(this.raw())),this.cache.hash):(0,s.rlphash)(this.raw())},r.prototype.getMessageToVerifySignature=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this._getMessageToSign();return(0,s.rlphash)(t)},r.prototype.getSenderPublicKey=function(){var e,t=this.getMessageToVerifySignature();if(this.common.gteHardfork("homestead")&&(null===(e=this.s)||void 0===e?void 0:e.gt(u.N_DIV_2))){var r=this._errorMsg("Invalid Signature: s-values greater than secp256k1n/2 are considered invalid");throw new Error(r)}var n=this,o=n.v,i=n.r,a=n.s;try{return(0,s.ecrecover)(t,o,(0,s.bnToUnpaddedBuffer)(i),(0,s.bnToUnpaddedBuffer)(a),this.supports(u.Capability.EIP155ReplayProtection)?this.common.chainIdBN():undefined)}catch(e){r=this._errorMsg("Invalid Signature");throw new Error(r)}},r.prototype._processSignature=function(e,t,n){var o=new s.BN(e);this.supports(u.Capability.EIP155ReplayProtection)&&o.iadd(this.common.chainIdBN().muln(2).addn(8));var i={common:this.common};return r.fromTxData({nonce:this.nonce,gasPrice:this.gasPrice,gasLimit:this.gasLimit,to:this.to,value:this.value,data:this.data,v:o,r:new s.BN(t),s:new s.BN(n)},i)},r.prototype.toJSON=function(){return{nonce:(0,s.bnToHex)(this.nonce),gasPrice:(0,s.bnToHex)(this.gasPrice),gasLimit:(0,s.bnToHex)(this.gasLimit),to:this.to!==undefined?this.to.toString():undefined,value:(0,s.bnToHex)(this.value),data:"0x"+this.data.toString("hex"),v:this.v!==undefined?(0,s.bnToHex)(this.v):undefined,r:this.r!==undefined?(0,s.bnToHex)(this.r):undefined,s:this.s!==undefined?(0,s.bnToHex)(this.s):undefined}},r.prototype._validateTxV=function(e,t){var r;if(e!==undefined&&!e.eqn(0)&&(!t||t.gteHardfork("spuriousDragon"))&&!e.eqn(27)&&!e.eqn(28))if(t){var n=t.chainIdBN().muln(2);if(!(e.eq(n.addn(35))||e.eq(n.addn(36))))throw new Error("Incompatible EIP155-based V ".concat(e," and chain id ").concat(t.chainIdBN(),". See the Common parameter of the Transaction constructor to set the chain id."))}else{var o=void 0;o=e.subn(35).isEven()?35:36,r=e.subn(o).divn(2)}return this._getCommon(t,r)},r.prototype._unsignedTxImplementsEIP155=function(){return this.common.gteHardfork("spuriousDragon")},r.prototype._signedTxImplementsEIP155=function(){if(!this.isSigned()){var e=this._errorMsg("This transaction is not signed");throw new Error(e)}var t=this.common.gteHardfork("spuriousDragon"),r=this.v,n=this.common.chainIdBN().muln(2);return(r.eq(n.addn(35))||r.eq(n.addn(36)))&&t},r.prototype.errorStr=function(){var e=this._getSharedErrorPostfix();return e+=" gasPrice=".concat(this.gasPrice)},r.prototype._errorMsg=function(e){return"".concat(e," (").concat(this.errorStr(),")")},r}(c.BaseTransaction);r.default=h}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/legacyTransaction.js"}],[365,{".":363,"../../../is-buffer/index.js":2697,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0});var n=e("ethereumjs-util"),o=e("."),i=function(){function e(){}return e.fromTxData=function(e,t){if(void 0===t&&(t={}),"type"in e&&e.type!==undefined){var r=new n.BN((0,n.toBuffer)(e.type)).toNumber();if(0===r)return o.Transaction.fromTxData(e,t);if(1===r)return o.AccessListEIP2930Transaction.fromTxData(e,t);if(2===r)return o.FeeMarketEIP1559Transaction.fromTxData(e,t);throw new Error("Tx instantiation with type ".concat(r," not supported"))}return o.Transaction.fromTxData(e,t)},e.fromSerializedData=function(e,t){if(void 0===t&&(t={}),e[0]<=127){var r=void 0;switch(e[0]){case 1:r=2930;break;case 2:r=1559;break;default:throw new Error("TypedTransaction with ID ".concat(e[0]," unknown"))}return 1559===r?o.FeeMarketEIP1559Transaction.fromSerializedTx(e,t):o.AccessListEIP2930Transaction.fromSerializedTx(e,t)}return o.Transaction.fromSerializedTx(e,t)},e.fromBlockBodyData=function(e,r){if(void 0===r&&(r={}),t.isBuffer(e))return this.fromSerializedData(e,r);if(Array.isArray(e))return o.Transaction.fromValuesArray(e,r);throw new Error("Cannot decode transaction: unknown type input")},e.getTransactionClass=function(e,t){if(void 0===e&&(e=0),0==e||e>=128&&e<=255)return o.Transaction;switch(e){case 1:return o.AccessListEIP2930Transaction;case 2:return o.FeeMarketEIP1559Transaction;default:throw new Error("TypedTransaction with ID ".concat(e," unknown"))}},e}();r.default=i}).call(this)}).call(this,{isBuffer:e("../../../is-buffer/index.js")})}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/transactionFactory.js"}],[366,{"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.N_DIV_2=r.isAccessList=r.isAccessListBuffer=r.Capability=void 0;var n=e("ethereumjs-util");function o(e){if(0===e.length)return!0;var t=e[0];return!!Array.isArray(t)}!function(e){e[e.EIP155ReplayProtection=155]="EIP155ReplayProtection",e[e.EIP1559FeeMarket=1559]="EIP1559FeeMarket",e[e.EIP2718TypedTransaction=2718]="EIP2718TypedTransaction",e[e.EIP2930AccessLists=2930]="EIP2930AccessLists"}(r.Capability||(r.Capability={})),r.isAccessListBuffer=o,r.isAccessList=function(e){return!o(e)},r.N_DIV_2=new n.BN("7fffffffffffffffffffffffffffffff5d576e7357a4501ddfe92f46681b20a0",16)}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/types.js"}],[367,{"./types":366,"ethereumjs-util":2231},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AccessLists=r.checkMaxInitCodeSize=void 0;var n=e("ethereumjs-util"),o=e("./types");r.checkMaxInitCodeSize=function(e,t){if(t>e.param("vm","maxInitCodeSize"))throw new Error("the initcode size of this transaction is too large: it is ".concat(t," while the max is ").concat(e.param("vm","maxInitCodeSize")))};var i=function(){function e(){}return e.getAccessListData=function(e){var t,r;if(e&&(0,o.isAccessList)(e)){t=e;for(var i=[],a=0;a<e.length;a++){for(var s=e[a],u=(0,n.toBuffer)(s.address),c=[],l=0;l<s.storageKeys.length;l++)c.push((0,n.toBuffer)(s.storageKeys[l]));i.push([u,c])}r=i}else{r=null!=e?e:[];var h=[];for(a=0;a<r.length;a++){var f=r[a],d=(0,n.bufferToHex)(f[0]),p=[];for(s=0;s<f[1].length;s++)p.push((0,n.bufferToHex)(f[1][s]));var m={address:d,storageKeys:p};h.push(m)}t=h}return{AccessListJSON:t,accessList:r}},e.verifyAccessList=function(e){for(var t=0;t<e.length;t++){var r=e[t],n=r[0],o=r[1];if(r[2]!==undefined)throw new Error("Access list item cannot have 3 elements. It can only have an address, and an array of storage slots.");if(20!=n.length)throw new Error("Invalid EIP-2930 transaction: address length should be 20 bytes");for(var i=0;i<o.length;i++)if(32!=o[i].length)throw new Error("Invalid EIP-2930 transaction: storage slot length should be 32 bytes")}},e.getAccessListJSON=function(e){for(var t=[],r=0;r<e.length;r++){for(var o=e[r],i={address:"0x"+(0,n.setLengthLeft)(o[0],20).toString("hex"),storageKeys:[]},a=o[1],s=0;s<a.length;s++){var u=a[s];i.storageKeys.push("0x"+(0,n.setLengthLeft)(u,32).toString("hex"))}t.push(i)}return t},e.getDataFeeEIP2930=function(e,t){for(var r=t.param("gasPrices","accessListStorageKeyCost"),n=t.param("gasPrices","accessListAddressCost"),o=0,i=0;i<e.length;i++){o+=e[i][1].length}return e.length*n+o*r},e}();r.AccessLists=i}}},{package:"@ethereumjs/tx",file:"node_modules/@ethereumjs/tx/dist.browser/util.js"}],[368,{"./bytes":371,"./constants":372,"./helpers":373,"./internal":375,"@ethereumjs/rlp":359,buffer:1943,"ethereum-cryptography/keccak":2194,"ethereum-cryptography/secp256k1":2204,"ethereum-cryptography/utils":2205},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.accountBodyToRLP=r.accountBodyToSlim=r.accountBodyFromSlim=r.isZeroAddress=r.zeroAddress=r.importPublic=r.privateToAddress=r.privateToPublic=r.publicToAddress=r.pubToAddress=r.isValidPublic=r.isValidPrivate=r.generateAddress2=r.generateAddress=r.isValidChecksumAddress=r.toChecksumAddress=r.isValidAddress=r.Account=void 0;const n=e("@ethereumjs/rlp"),o=e("ethereum-cryptography/keccak"),i=e("ethereum-cryptography/secp256k1"),a=e("ethereum-cryptography/utils"),s=e("./bytes"),u=e("./constants"),c=e("./helpers"),l=e("./internal"),h=BigInt(0);class f{constructor(e=h,t=h,r=u.KECCAK256_RLP,n=u.KECCAK256_NULL){this.nonce=e,this.balance=t,this.storageRoot=r,this.codeHash=n,this._validate()}static fromAccountData(e){const{nonce:t,balance:r,storageRoot:n,codeHash:o}=e;return new f(t!==undefined?(0,s.bufferToBigInt)((0,s.toBuffer)(t)):undefined,r!==undefined?(0,s.bufferToBigInt)((0,s.toBuffer)(r)):undefined,n!==undefined?(0,s.toBuffer)(n):undefined,o!==undefined?(0,s.toBuffer)(o):undefined)}static fromRlpSerializedAccount(e){const t=(0,s.arrToBufArr)(n.RLP.decode(Uint8Array.from(e)));if(!Array.isArray(t))throw new Error("Invalid serialized account input. Must be array");return this.fromValuesArray(t)}static fromValuesArray(e){const[t,r,n,o]=e;return new f((0,s.bufferToBigInt)(t),(0,s.bufferToBigInt)(r),n,o)}_validate(){if(this.nonce<h)throw new Error("nonce must be greater than zero");if(this.balance<h)throw new Error("balance must be greater than zero");if(32!==this.storageRoot.length)throw new Error("storageRoot must have a length of 32");if(32!==this.codeHash.length)throw new Error("codeHash must have a length of 32")}raw(){return[(0,s.bigIntToUnpaddedBuffer)(this.nonce),(0,s.bigIntToUnpaddedBuffer)(this.balance),this.storageRoot,this.codeHash]}serialize(){return t.from(n.RLP.encode((0,s.bufArrToArr)(this.raw())))}isContract(){return!this.codeHash.equals(u.KECCAK256_NULL)}isEmpty(){return this.balance===h&&this.nonce===h&&this.codeHash.equals(u.KECCAK256_NULL)}}r.Account=f;r.isValidAddress=function(e){try{(0,c.assertIsString)(e)}catch(e){return!1}return/^0x[0-9a-fA-F]{40}$/.test(e)};r.toChecksumAddress=function(e,r){(0,c.assertIsHexString)(e);const n=(0,l.stripHexPrefix)(e).toLowerCase();let i="";if(r!==undefined){i=(0,s.bufferToBigInt)((0,s.toBuffer)(r)).toString()+"0x"}const u=t.from(i+n,"utf8"),h=(0,a.bytesToHex)((0,o.keccak256)(u));let f="0x";for(let e=0;e<n.length;e++)parseInt(h[e],16)>=8?f+=n[e].toUpperCase():f+=n[e];return f};r.isValidChecksumAddress=function(e,t){return(0,r.isValidAddress)(e)&&(0,r.toChecksumAddress)(e,t)===e};r.generateAddress=function(e,r){return(0,c.assertIsBuffer)(e),(0,c.assertIsBuffer)(r),(0,s.bufferToBigInt)(r)===BigInt(0)?t.from((0,o.keccak256)(n.RLP.encode((0,s.bufArrToArr)([e,null])))).slice(-20):t.from((0,o.keccak256)(n.RLP.encode((0,s.bufArrToArr)([e,r])))).slice(-20)};r.generateAddress2=function(e,r,n){if((0,c.assertIsBuffer)(e),(0,c.assertIsBuffer)(r),(0,c.assertIsBuffer)(n),20!==e.length)throw new Error("Expected from to be of length 20");if(32!==r.length)throw new Error("Expected salt to be of length 32");const i=(0,o.keccak256)(t.concat([t.from("ff","hex"),e,r,(0,o.keccak256)(n)]));return(0,s.toBuffer)(i).slice(-20)};r.isValidPrivate=function(e){return i.utils.isValidPrivateKey(e)};r.isValidPublic=function(e,r=!1){if((0,c.assertIsBuffer)(e),64===e.length)try{return i.Point.fromHex(t.concat([t.from([4]),e])),!0}catch(e){return!1}if(!r)return!1;try{return i.Point.fromHex(e),!0}catch(e){return!1}};r.pubToAddress=function(e,r=!1){if((0,c.assertIsBuffer)(e),r&&64!==e.length&&(e=t.from(i.Point.fromHex(e).toRawBytes(!1).slice(1))),64!==e.length)throw new Error("Expected pubKey to be of length 64");return t.from((0,o.keccak256)(e)).slice(-20)},r.publicToAddress=r.pubToAddress;r.privateToPublic=function(e){return(0,c.assertIsBuffer)(e),t.from(i.Point.fromPrivateKey(e).toRawBytes(!1).slice(1))};r.privateToAddress=function(e){return(0,r.publicToAddress)((0,r.privateToPublic)(e))};r.importPublic=function(e){return(0,c.assertIsBuffer)(e),64!==e.length&&(e=t.from(i.Point.fromHex(e).toRawBytes(!1).slice(1))),e};r.zeroAddress=function(){const e=(0,s.zeros)(20);return(0,s.bufferToHex)(e)};function d(e){const[t,r,n,o]=e;return[t,r,0===(0,s.arrToBufArr)(n).length?u.KECCAK256_RLP:n,0===(0,s.arrToBufArr)(o).length?u.KECCAK256_NULL:o]}r.isZeroAddress=function(e){try{(0,c.assertIsString)(e)}catch(e){return!1}return(0,r.zeroAddress)()===e},r.accountBodyFromSlim=d;const p=new Uint8Array(0);r.accountBodyToSlim=function(e){const[t,r,n,o]=e;return[t,r,(0,s.arrToBufArr)(n).equals(u.KECCAK256_RLP)?p:n,(0,s.arrToBufArr)(o).equals(u.KECCAK256_NULL)?p:o]},r.accountBodyToRLP=function(e,t=!0){const r=t?d(e):e;return(0,s.arrToBufArr)(n.RLP.encode(r))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/account.js"}],[369,{"./account":368,"./bytes":371,buffer:1943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.Address=void 0;const n=e("./account"),o=e("./bytes");class i{constructor(e){if(20!==e.length)throw new Error("Invalid address length");this.buf=e}static zero(){return new i((0,o.zeros)(20))}static fromString(e){if(!(0,n.isValidAddress)(e))throw new Error("Invalid address");return new i((0,o.toBuffer)(e))}static fromPublicKey(e){if(!t.isBuffer(e))throw new Error("Public key should be Buffer");const r=(0,n.pubToAddress)(e);return new i(r)}static fromPrivateKey(e){if(!t.isBuffer(e))throw new Error("Private key should be Buffer");const r=(0,n.privateToAddress)(e);return new i(r)}static generate(e,t){if("bigint"!=typeof t)throw new Error("Expected nonce to be a bigint");return new i((0,n.generateAddress)(e.buf,(0,o.bigIntToBuffer)(t)))}static generate2(e,r,o){if(!t.isBuffer(r))throw new Error("Expected salt to be a Buffer");if(!t.isBuffer(o))throw new Error("Expected initCode to be a Buffer");return new i((0,n.generateAddress2)(e.buf,r,o))}equals(e){return this.buf.equals(e.buf)}isZero(){return this.equals(i.zero())}isPrecompileOrSystemAddress(){const e=(0,o.bufferToBigInt)(this.buf),t=BigInt(0),r=BigInt("0xffff");return e>=t&&e<=r}toString(){return"0x"+this.buf.toString("hex")}toBuffer(){return t.from(this.buf)}}r.Address=i}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/address.js"}],[370,{events:1944},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AsyncEventEmitter=void 0;const n=e("events");class o extends n.EventEmitter{emit(e,...t){let[r,n]=t;const o=this;let i=o._events[e]??[];return n===undefined&&"function"==typeof r&&(n=r,r=undefined),"newListener"!==e&&"removeListener"!==e||(r={event:r,fn:n},n=undefined),i=Array.isArray(i)?i:[i],async function(e,t,r){let n;for await(const o of t)try{o.length<2?o.call(e,r):await new Promise(((t,n)=>{o.call(e,r,(e=>{e?n(e):t()}))}))}catch(e){n=e}if(n)throw n}(o,i.slice(),r).then(n).catch(n),o.listenerCount(e)>0}once(e,t){const r=this;let n;if("function"!=typeof t)throw new TypeError("listener must be a function");return n=t.length>=2?function(o,i){r.removeListener(e,n),t(o,i)}:function(o){r.removeListener(e,n),t(o,n)},r.on(e,n),r}first(e,t){let r=this._events[e]??[];if("function"!=typeof t)throw new TypeError("listener must be a function");return Array.isArray(r)||(this._events[e]=r=[r]),r.unshift(t),this}before(e,t,r){return this.beforeOrAfter(e,t,r)}after(e,t,r){return this.beforeOrAfter(e,t,r,"after")}beforeOrAfter(e,t,r,n){let o,i,a=this._events[e]??[];const s="after"===n?1:0;if("function"!=typeof r)throw new TypeError("listener must be a function");if("function"!=typeof t)throw new TypeError("target must be a function");for(Array.isArray(a)||(this._events[e]=a=[a]),i=a.length,o=a.length;o--;)if(a[o]===t){i=o+s;break}return a.splice(i,0,r),this}on(e,t){return super.on(e,t)}addListener(e,t){return super.addListener(e,t)}prependListener(e,t){return super.prependListener(e,t)}prependOnceListener(e,t){return super.prependOnceListener(e,t)}removeAllListeners(e){return super.removeAllListeners(e)}removeListener(e,t){return super.removeListener(e,t)}eventNames(){return super.eventNames()}listeners(e){return super.listeners(e)}listenerCount(e){return super.listenerCount(e)}getMaxListeners(){return super.getMaxListeners()}setMaxListeners(e){return super.setMaxListeners(e)}}r.AsyncEventEmitter=o}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/asyncEventEmitter.js"}],[371,{"./helpers":373,"./internal":375,buffer:1943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.intToUnpaddedBuffer=r.bigIntToUnpaddedBuffer=r.bigIntToHex=r.bufArrToArr=r.arrToBufArr=r.validateNoLeadingZeroes=r.baToJSON=r.toUtf8=r.short=r.addHexPrefix=r.toUnsigned=r.fromSigned=r.bufferToInt=r.bigIntToBuffer=r.bufferToBigInt=r.bufferToHex=r.toBuffer=r.unpadHexString=r.unpadArray=r.unpadBuffer=r.setLengthRight=r.setLengthLeft=r.zeros=r.intToBuffer=r.intToHex=void 0;const n=e("./helpers"),o=e("./internal");r.intToHex=function(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(`Received an invalid integer type: ${e}`);return`0x${e.toString(16)}`};r.intToBuffer=function(e){const n=(0,r.intToHex)(e);return t.from((0,o.padToEven)(n.slice(2)),"hex")};r.zeros=function(e){return t.allocUnsafe(e).fill(0)};const i=function(e,t,n){const o=(0,r.zeros)(t);return n?e.length<t?(e.copy(o),o):e.slice(0,t):e.length<t?(e.copy(o,t-e.length),o):e.slice(-t)};r.setLengthLeft=function(e,t){return(0,n.assertIsBuffer)(e),i(e,t,!1)};r.setLengthRight=function(e,t){return(0,n.assertIsBuffer)(e),i(e,t,!0)};const a=function(e){let t=e[0];for(;e.length>0&&"0"===t.toString();)t=(e=e.slice(1))[0];return e};r.unpadBuffer=function(e){return(0,n.assertIsBuffer)(e),a(e)};r.unpadArray=function(e){return(0,n.assertIsArray)(e),a(e)};r.unpadHexString=function(e){return(0,n.assertIsHexString)(e),e=(0,o.stripHexPrefix)(e),"0x"+a(e)};r.toBuffer=function(e){if(null===e||e===undefined)return t.allocUnsafe(0);if(t.isBuffer(e))return t.from(e);if(Array.isArray(e)||e instanceof Uint8Array)return t.from(e);if("string"==typeof e){if(!(0,o.isHexString)(e))throw new Error(`Cannot convert string to buffer. toBuffer only supports 0x-prefixed hex strings and this string was given: ${e}`);return t.from((0,o.padToEven)((0,o.stripHexPrefix)(e)),"hex")}if("number"==typeof e)return(0,r.intToBuffer)(e);if("bigint"==typeof e){if(e<BigInt(0))throw new Error(`Cannot convert negative bigint to buffer. Given: ${e}`);let r=e.toString(16);return r.length%2&&(r="0"+r),t.from(r,"hex")}if(e.toArray)return t.from(e.toArray());if(e.toBuffer)return t.from(e.toBuffer());throw new Error("invalid type")};function s(e){const t=(0,r.bufferToHex)(e);return"0x"===t?BigInt(0):BigInt(t)}function u(e){return(0,r.toBuffer)("0x"+e.toString(16))}r.bufferToHex=function(e){return"0x"+(e=(0,r.toBuffer)(e)).toString("hex")},r.bufferToBigInt=s,r.bigIntToBuffer=u;r.bufferToInt=function(e){const t=Number(s(e));if(!Number.isSafeInteger(t))throw new Error("Number exceeds 53 bits");return t};r.fromSigned=function(e){return BigInt.asIntN(256,s(e))};r.toUnsigned=function(e){return u(BigInt.asUintN(256,e))};r.addHexPrefix=function(e){return"string"!=typeof e||(0,o.isHexPrefixed)(e)?e:"0x"+e},r.short=function(e,r=50){const n=t.isBuffer(e)?e.toString("hex"):e;return n.length<=r?n:n.slice(0,r)+"…"};r.toUtf8=function(e){if((e=(0,o.stripHexPrefix)(e)).length%2!=0)throw new Error("Invalid non-even hex string input for toUtf8() provided");return t.from(e.replace(/^(00)+|(00)+$/g,""),"hex").toString("utf8")};r.baToJSON=function(e){if(t.isBuffer(e))return`0x${e.toString("hex")}`;if(e instanceof Array){const t=[];for(let n=0;n<e.length;n++)t.push((0,r.baToJSON)(e[n]));return t}};r.validateNoLeadingZeroes=function(e){for(const[t,r]of Object.entries(e))if(r!==undefined&&r.length>0&&0===r[0])throw new Error(`${t} cannot have leading zeroes, received: ${r.toString("hex")}`)},r.arrToBufArr=function e(r){return Array.isArray(r)?r.map((t=>e(t))):t.from(r)},r.bufArrToArr=function e(t){return Array.isArray(t)?t.map((t=>e(t))):Uint8Array.from(t??[])};r.bigIntToHex=e=>"0x"+e.toString(16),r.bigIntToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)(u(e))},r.intToUnpaddedBuffer=function(e){return(0,r.unpadBuffer)((0,r.intToBuffer)(e))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/bytes.js"}],[372,{buffer:1943,"ethereum-cryptography/secp256k1":2204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MAX_WITHDRAWALS_PER_PAYLOAD=r.RLP_EMPTY_STRING=r.KECCAK256_RLP=r.KECCAK256_RLP_S=r.KECCAK256_RLP_ARRAY=r.KECCAK256_RLP_ARRAY_S=r.KECCAK256_NULL=r.KECCAK256_NULL_S=r.TWO_POW256=r.SECP256K1_ORDER_DIV_2=r.SECP256K1_ORDER=r.MAX_INTEGER_BIGINT=r.MAX_INTEGER=r.MAX_UINT64=void 0;const n=e("buffer"),o=e("ethereum-cryptography/secp256k1");r.MAX_UINT64=BigInt("0xffffffffffffffff"),r.MAX_INTEGER=BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),r.MAX_INTEGER_BIGINT=BigInt("115792089237316195423570985008687907853269984665640564039457584007913129639935"),r.SECP256K1_ORDER=o.CURVE.n,r.SECP256K1_ORDER_DIV_2=o.CURVE.n/BigInt(2),r.TWO_POW256=BigInt("0x10000000000000000000000000000000000000000000000000000000000000000"),r.KECCAK256_NULL_S="c5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470",r.KECCAK256_NULL=n.Buffer.from(r.KECCAK256_NULL_S,"hex"),r.KECCAK256_RLP_ARRAY_S="1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347",r.KECCAK256_RLP_ARRAY=n.Buffer.from(r.KECCAK256_RLP_ARRAY_S,"hex"),r.KECCAK256_RLP_S="56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421",r.KECCAK256_RLP=n.Buffer.from(r.KECCAK256_RLP_S,"hex"),r.RLP_EMPTY_STRING=n.Buffer.from([128]),r.MAX_WITHDRAWALS_PER_PAYLOAD=16}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/constants.js"}],[373,{"../../../is-buffer/index.js":2697,"./internal":375},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.assertIsString=r.assertIsArray=r.assertIsBuffer=r.assertIsHexString=void 0;const n=e("./internal");r.assertIsHexString=function(e){if(!(0,n.isHexString)(e)){throw new Error(`This method only supports 0x-prefixed hex strings but input was: ${e}`)}};r.assertIsBuffer=function(e){if(!t.isBuffer(e)){throw new Error(`This method only supports Buffer but input was: ${e}`)}};r.assertIsArray=function(e){if(!Array.isArray(e)){throw new Error(`This method only supports number arrays but input was: ${e}`)}};r.assertIsString=function(e){if("string"!=typeof e){throw new Error(`This method only supports strings but input was: ${e}`)}}}).call(this)}).call(this,{isBuffer:e("../../../is-buffer/index.js")})}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/helpers.js"}],[374,{"./account":368,"./address":369,"./asyncEventEmitter":370,"./bytes":371,"./constants":372,"./internal":375,"./lock":376,"./signature":377,"./ssz":378,"./types":379,"./units":380,"./withdrawal":381},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=Object.create?function(e,t,r,n){n===undefined&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]},o=function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(r,"__esModule",{value:!0}),r.toAscii=r.stripHexPrefix=r.padToEven=r.isHexString=r.isHexPrefixed=r.getKeys=r.getBinarySize=r.fromUtf8=r.fromAscii=r.arrayContainsArray=r.ssz=void 0,o(e("./constants"),r),o(e("./units"),r),o(e("./account"),r),o(e("./address"),r),o(e("./withdrawal"),r),o(e("./signature"),r),o(e("./bytes"),r),r.ssz=e("./ssz"),o(e("./types"),r),o(e("./asyncEventEmitter"),r);var i=e("./internal");Object.defineProperty(r,"arrayContainsArray",{enumerable:!0,get:function(){return i.arrayContainsArray}}),Object.defineProperty(r,"fromAscii",{enumerable:!0,get:function(){return i.fromAscii}}),Object.defineProperty(r,"fromUtf8",{enumerable:!0,get:function(){return i.fromUtf8}}),Object.defineProperty(r,"getBinarySize",{enumerable:!0,get:function(){return i.getBinarySize}}),Object.defineProperty(r,"getKeys",{enumerable:!0,get:function(){return i.getKeys}}),Object.defineProperty(r,"isHexPrefixed",{enumerable:!0,get:function(){return i.isHexPrefixed}}),Object.defineProperty(r,"isHexString",{enumerable:!0,get:function(){return i.isHexString}}),Object.defineProperty(r,"padToEven",{enumerable:!0,get:function(){return i.padToEven}}),Object.defineProperty(r,"stripHexPrefix",{enumerable:!0,get:function(){return i.stripHexPrefix}}),Object.defineProperty(r,"toAscii",{enumerable:!0,get:function(){return i.toAscii}}),o(e("./lock"),r)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/index.js"}],[375,{buffer:1943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){function t(e){if("string"!=typeof e)throw new Error("[isHexPrefixed] input must be type 'string', received type "+typeof e);return"0"===e[0]&&"x"===e[1]}Object.defineProperty(r,"__esModule",{value:!0}),r.isHexString=r.getKeys=r.fromAscii=r.fromUtf8=r.toAscii=r.arrayContainsArray=r.getBinarySize=r.padToEven=r.stripHexPrefix=r.isHexPrefixed=void 0,r.isHexPrefixed=t;function n(e){let t=e;if("string"!=typeof t)throw new Error("[padToEven] value must be type 'string', received "+typeof t);return t.length%2&&(t=`0${t}`),t}r.stripHexPrefix=e=>{if("string"!=typeof e)throw new Error("[stripHexPrefix] input must be type 'string', received "+typeof e);return t(e)?e.slice(2):e},r.padToEven=n,r.getBinarySize=function(t){if("string"!=typeof t)throw new Error("[getBinarySize] method requires input type 'string', received "+typeof t);return e.byteLength(t,"utf8")},r.arrayContainsArray=function(e,t,r){if(!0!==Array.isArray(e))throw new Error(`[arrayContainsArray] method requires input 'superset' to be an array, got type '${typeof e}'`);if(!0!==Array.isArray(t))throw new Error(`[arrayContainsArray] method requires input 'subset' to be an array, got type '${typeof t}'`);return t[!0===r?"some":"every"]((t=>e.indexOf(t)>=0))},r.toAscii=function(e){let t="",r=0;const n=e.length;for("0x"===e.substring(0,2)&&(r=2);r<n;r+=2){const n=parseInt(e.substr(r,2),16);t+=String.fromCharCode(n)}return t},r.fromUtf8=function(t){return`0x${n(e.from(t,"utf8").toString("hex")).replace(/^0+|0+$/g,"")}`},r.fromAscii=function(e){let t="";for(let r=0;r<e.length;r++){const n=e.charCodeAt(r).toString(16);t+=n.length<2?`0${n}`:n}return`0x${t}`},r.getKeys=function(e,t,r){if(!Array.isArray(e))throw new Error("[getKeys] method expects input 'params' to be an array, got "+typeof e);if("string"!=typeof t)throw new Error("[getKeys] method expects input 'key' to be type 'string', got "+typeof e);const n=[];for(let o=0;o<e.length;o++){let i=e[o][t];if(!0!==r||i){if("string"!=typeof i)throw new Error("invalid abi - expected type 'string', received "+typeof i)}else i="";n.push(i)}return n},r.isHexString=function(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&!(void 0!==t&&t>0&&e.length!==2+2*t)}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/internal.js"}],[376,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Lock=void 0;r.Lock=class{constructor(){this.permits=1,this.promiseResolverQueue=[]}async acquire(){return this.permits>0?(this.permits-=1,Promise.resolve(!0)):new Promise((e=>this.promiseResolverQueue.push(e)))}release(){if(this.permits+=1,this.permits>1&&this.promiseResolverQueue.length>0)console.warn("Lock.permits should never be > 0 when there is someone waiting.");else if(1===this.permits&&this.promiseResolverQueue.length>0){this.permits-=1;const e=this.promiseResolverQueue.shift();e&&e(!0)}}}}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/lock.js"}],[377,{"./bytes":371,"./constants":372,"./helpers":373,buffer:1943,"ethereum-cryptography/keccak":2194,"ethereum-cryptography/secp256k1":2204},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.hashPersonalMessage=r.isValidSignature=r.fromRpcSig=r.toCompactSig=r.toRpcSig=r.ecrecover=r.ecsign=void 0;const n=e("ethereum-cryptography/keccak"),o=e("ethereum-cryptography/secp256k1"),i=e("./bytes"),a=e("./constants"),s=e("./helpers");function u(e,t){return e===BigInt(0)||e===BigInt(1)?e:t===undefined?e-BigInt(27):e-(t*BigInt(2)+BigInt(35))}function c(e){return e===BigInt(0)||e===BigInt(1)}r.ecsign=function(e,r,n){const[i,a]=(0,o.signSync)(e,r,{recovered:!0,der:!1});return{r:t.from(i.slice(0,32)),s:t.from(i.slice(32,64)),v:n===undefined?BigInt(a+27):BigInt(a+35)+BigInt(n)*BigInt(2)}};r.ecrecover=function(e,r,n,a,s){const l=t.concat([(0,i.setLengthLeft)(n,32),(0,i.setLengthLeft)(a,32)],64),h=u(r,s);if(!c(h))throw new Error("Invalid signature v value");const f=(0,o.recoverPublicKey)(e,l,Number(h));return t.from(f.slice(1))};r.toRpcSig=function(e,r,n,o){if(!c(u(e,o)))throw new Error("Invalid signature v value");return(0,i.bufferToHex)(t.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(n,32),(0,i.toBuffer)(e)]))};r.toCompactSig=function(e,r,n,o){if(!c(u(e,o)))throw new Error("Invalid signature v value");let a=n;return(e>BigInt(28)&&e%BigInt(2)===BigInt(1)||e===BigInt(1)||e===BigInt(28))&&(a=t.from(n),a[0]|=128),(0,i.bufferToHex)(t.concat([(0,i.setLengthLeft)(r,32),(0,i.setLengthLeft)(a,32)]))};r.fromRpcSig=function(e){const t=(0,i.toBuffer)(e);let r,n,o;if(t.length>=65)r=t.slice(0,32),n=t.slice(32,64),o=(0,i.bufferToBigInt)(t.slice(64));else{if(64!==t.length)throw new Error("Invalid signature length");r=t.slice(0,32),n=t.slice(32,64),o=BigInt((0,i.bufferToInt)(t.slice(32,33))>>7),n[0]&=127}return o<27&&(o+=BigInt(27)),{v:o,r:r,s:n}};r.isValidSignature=function(e,t,r,n=!0,o){if(32!==t.length||32!==r.length)return!1;if(!c(u(e,o)))return!1;const s=(0,i.bufferToBigInt)(t),l=(0,i.bufferToBigInt)(r);return!(s===BigInt(0)||s>=a.SECP256K1_ORDER||l===BigInt(0)||l>=a.SECP256K1_ORDER)&&!(n&&l>=a.SECP256K1_ORDER_DIV_2)};r.hashPersonalMessage=function(e){(0,s.assertIsBuffer)(e);const r=t.from(`Ethereum Signed Message:\n${e.length}`,"utf-8");return t.from((0,n.keccak256)(t.concat([r,e])))}}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/signature.js"}],[378,{"./constants":372,"@chainsafe/ssz":220},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Withdrawals=r.Withdrawal=r.Bytes20=r.UintBigInt64=r.UintNum64=void 0;const n=e("@chainsafe/ssz"),o=e("./constants");r.UintNum64=new n.UintNumberType(8),r.UintBigInt64=new n.UintBigintType(8),r.Bytes20=new n.ByteVectorType(20),r.Withdrawal=new n.ContainerType({index:r.UintBigInt64,validatorIndex:r.UintBigInt64,address:r.Bytes20,amount:r.UintBigInt64},{typeName:"Withdrawal",jsonCase:"eth2"}),r.Withdrawals=new n.ListCompositeType(r.Withdrawal,o.MAX_WITHDRAWALS_PER_PAYLOAD)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/ssz.js"}],[379,{"./bytes":371,"./internal":375},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toType=r.TypeOutput=void 0;const n=e("./bytes"),o=e("./internal");var i;!function(e){e[e.Number=0]="Number",e[e.BigInt=1]="BigInt",e[e.Buffer=2]="Buffer",e[e.PrefixedHexString=3]="PrefixedHexString"}(i=r.TypeOutput||(r.TypeOutput={})),r.toType=function(e,t){if(null===e)return null;if(e===undefined)return undefined;if("string"==typeof e&&!(0,o.isHexString)(e))throw new Error(`A string must be provided with a 0x-prefix, given: ${e}`);if("number"==typeof e&&!Number.isSafeInteger(e))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative input type)");const r=(0,n.toBuffer)(e);switch(t){case i.Buffer:return r;case i.BigInt:return(0,n.bufferToBigInt)(r);case i.Number:{const e=(0,n.bufferToBigInt)(r);if(e>BigInt(Number.MAX_SAFE_INTEGER))throw new Error("The provided number is greater than MAX_SAFE_INTEGER (please use an alternative output type)");return Number(e)}case i.PrefixedHexString:return(0,n.bufferToHex)(r);default:throw new Error("unknown outputType")}}}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/types.js"}],[380,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.GWEI_TO_WEI=void 0,r.GWEI_TO_WEI=BigInt(1e9)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/units.js"}],[381,{"./address":369,"./bytes":371,"./types":379,buffer:1943},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(t){(function(){Object.defineProperty(r,"__esModule",{value:!0}),r.Withdrawal=void 0;const n=e("./address"),o=e("./bytes"),i=e("./types");class a{constructor(e,t,r,n){this.index=e,this.validatorIndex=t,this.address=r,this.amount=n}static fromWithdrawalData(e){const{index:t,validatorIndex:r,address:o,amount:s}=e,u=(0,i.toType)(t,i.TypeOutput.BigInt),c=(0,i.toType)(r,i.TypeOutput.BigInt),l=new n.Address((0,i.toType)(o,i.TypeOutput.Buffer)),h=(0,i.toType)(s,i.TypeOutput.BigInt);return new a(u,c,l,h)}static fromValuesArray(e){if(4!==e.length)throw Error(`Invalid withdrawalArray length expected=4 actual=${e.length}`);const[t,r,n,o]=e;return a.fromWithdrawalData({index:t,validatorIndex:r,address:n,amount:o})}static toBufferArray(e){const{index:r,validatorIndex:o,address:a,amount:s}=e,u=(0,i.toType)(r,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(r,i.TypeOutput.Buffer),c=(0,i.toType)(o,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(o,i.TypeOutput.Buffer);let l;l=a instanceof n.Address?a.buf:(0,i.toType)(a,i.TypeOutput.Buffer);return[u,c,l,(0,i.toType)(s,i.TypeOutput.BigInt)===BigInt(0)?t.alloc(0):(0,i.toType)(s,i.TypeOutput.Buffer)]}raw(){return a.toBufferArray(this)}toValue(){return{index:this.index,validatorIndex:this.validatorIndex,address:this.address.buf,amount:this.amount}}toJSON(){return{index:(0,o.bigIntToHex)(this.index),validatorIndex:(0,o.bigIntToHex)(this.validatorIndex),address:"0x"+this.address.buf.toString("hex"),amount:(0,o.bigIntToHex)(this.amount)}}}r.Withdrawal=a}).call(this)}).call(this,e("buffer").Buffer)}}},{package:"eth-lattice-keyring>@ethereumjs/util",file:"node_modules/@ethereumjs/util/dist/withdrawal.js"}],[382,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="abi/5.7.0"}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/_version.js"}],[383,{"./_version":382,"./coders/abstract-coder":384,"./coders/address":385,"./coders/array":387,"./coders/boolean":388,"./coders/bytes":389,"./coders/fixed-bytes":390,"./coders/null":391,"./coders/number":392,"./coders/string":393,"./coders/tuple":394,"./fragments":395,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.defaultAbiCoder=r.AbiCoder=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),i=e("@ethersproject/logger"),a=e("./_version"),s=new i.Logger(a.version),u=e("./coders/abstract-coder"),c=e("./coders/address"),l=e("./coders/array"),h=e("./coders/boolean"),f=e("./coders/bytes"),d=e("./coders/fixed-bytes"),p=e("./coders/null"),m=e("./coders/number"),g=e("./coders/string"),v=e("./coders/tuple"),y=e("./fragments"),b=new RegExp(/^bytes([0-9]*)$/),w=new RegExp(/^(u?int)([0-9]*)$/),A=function(){function e(e){(0,o.defineReadOnly)(this,"coerceFunc",e||null)}return e.prototype._getCoder=function(e){var t=this;switch(e.baseType){case"address":return new c.AddressCoder(e.name);case"bool":return new h.BooleanCoder(e.name);case"string":return new g.StringCoder(e.name);case"bytes":return new f.BytesCoder(e.name);case"array":return new l.ArrayCoder(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new v.TupleCoder((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new p.NullCoder(e.name)}var r,n=e.type.match(w);return n?((0===(r=parseInt(n[2]||"256"))||r>256||r%8!=0)&&s.throwArgumentError("invalid "+n[1]+" bit length","param",e),new m.NumberCoder(r/8,"int"===n[1],e.name)):(n=e.type.match(b))?((0===(r=parseInt(n[1]))||r>32)&&s.throwArgumentError("invalid bytes length","param",e),new d.FixedBytesCoder(r,e.name)):s.throwArgumentError("invalid type","type",e.type)},e.prototype._getWordSize=function(){return 32},e.prototype._getReader=function(e,t){return new u.Reader(e,this._getWordSize(),this.coerceFunc,t)},e.prototype._getWriter=function(){return new u.Writer(this._getWordSize())},e.prototype.getDefaultValue=function(e){var t=this,r=e.map((function(e){return t._getCoder(y.ParamType.from(e))}));return new v.TupleCoder(r,"_").defaultValue()},e.prototype.encode=function(e,t){var r=this;e.length!==t.length&&s.throwError("types/values length mismatch",i.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(y.ParamType.from(e))})),o=new v.TupleCoder(n,"_"),a=this._getWriter();return o.encode(a,t),a.data},e.prototype.decode=function(e,t,r){var o=this,i=e.map((function(e){return o._getCoder(y.ParamType.from(e))}));return new v.TupleCoder(i,"_").decode(this._getReader((0,n.arrayify)(t),r))},e}();r.AbiCoder=A,r.defaultAbiCoder=new A}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/abi-coder.js"}],[384,{"../_version":382,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Reader=r.Writer=r.Coder=r.checkResultErrors=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/bignumber"),i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("../_version"),u=new a.Logger(s.version);r.checkResultErrors=function(e){var t=[],r=function(e,n){if(Array.isArray(n))for(var o in n){var i=e.slice();i.push(o);try{r(i,n[o])}catch(e){t.push({path:i,error:e})}}};return r([],e),t};var c=function(){function e(e,t,r,n){this.name=e,this.type=t,this.localName=r,this.dynamic=n}return e.prototype._throwError=function(e,t){u.throwArgumentError(e,this.localName,t)},e}();r.Coder=c;var l=function(){function e(e){(0,i.defineReadOnly)(this,"wordSize",e||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(e)}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,n.hexConcat)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._dataLength},enumerable:!1,configurable:!0}),e.prototype._writeData=function(e){return this._data.push(e),this._dataLength+=e.length,e.length},e.prototype.appendWriter=function(e){return this._writeData((0,n.concat)(e._data))},e.prototype.writeBytes=function(e){var t=(0,n.arrayify)(e),r=t.length%this.wordSize;return r&&(t=(0,n.concat)([t,this._padding.slice(r)])),this._writeData(t)},e.prototype._getValue=function(e){var t=(0,n.arrayify)(o.BigNumber.from(e));return t.length>this.wordSize&&u.throwError("value out-of-bounds",a.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,n.concat)([this._padding.slice(t.length%this.wordSize),t])),t},e.prototype.writeValue=function(e){return this._writeData(this._getValue(e))},e.prototype.writeUpdatableValue=function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}},e}();r.Writer=l;var h=function(){function e(e,t,r,o){(0,i.defineReadOnly)(this,"_data",(0,n.arrayify)(e)),(0,i.defineReadOnly)(this,"wordSize",t||32),(0,i.defineReadOnly)(this,"_coerceFunc",r),(0,i.defineReadOnly)(this,"allowLoose",o),this._offset=0}return Object.defineProperty(e.prototype,"data",{get:function(){return(0,n.hexlify)(this._data)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"consumed",{get:function(){return this._offset},enumerable:!1,configurable:!0}),e.coerce=function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t},e.prototype.coerce=function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)},e.prototype._peekBytes=function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:u.throwError("data out-of-bounds",a.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)},e.prototype.subReader=function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)},e.prototype.readBytes=function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)},e.prototype.readValue=function(){return o.BigNumber.from(this.readBytes(this.wordSize))},e}();r.Reader=h}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/abstract-coder.js"}],[385,{"./abstract-coder":384,"@ethersproject/address":403,"@ethersproject/bytes":413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AddressCoder=void 0;var i=e("@ethersproject/address"),a=e("@ethersproject/bytes"),s=function(e){function t(t){return e.call(this,"address","address",t,!1)||this}return o(t,e),t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000"},t.prototype.encode=function(e,t){try{t=(0,i.getAddress)(t)}catch(e){this._throwError(e.message,t)}return e.writeValue(t)},t.prototype.decode=function(e){return(0,i.getAddress)((0,a.hexZeroPad)(e.readValue().toHexString(),20))},t}(e("./abstract-coder").Coder);r.AddressCoder=s}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/address.js"}],[386,{"./abstract-coder":384},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnonymousCoder=void 0;var i=function(e){function t(t){var r=e.call(this,t.name,t.type,undefined,t.dynamic)||this;return r.coder=t,r}return o(t,e),t.prototype.defaultValue=function(){return this.coder.defaultValue()},t.prototype.encode=function(e,t){return this.coder.encode(e,t)},t.prototype.decode=function(e){return this.coder.decode(e)},t}(e("./abstract-coder").Coder);r.AnonymousCoder=i}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/anonymous.js"}],[387,{"../_version":382,"./abstract-coder":384,"./anonymous":386,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ArrayCoder=r.unpack=r.pack=void 0;var i=e("@ethersproject/logger"),a=e("../_version"),s=new i.Logger(a.version),u=e("./abstract-coder"),c=e("./anonymous");function l(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"==typeof r){var o={};n=t.map((function(e){var t=e.localName;return t||s.throwError("cannot encode object for signature with missing names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]&&s.throwError("cannot encode object for signature with duplicate names",i.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]=!0,r[t]}))}else s.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&s.throwArgumentError("types/value length mismatch","tuple",r);var a=new u.Writer(e.wordSize),c=new u.Writer(e.wordSize),l=[];t.forEach((function(e,t){var r=n[t];if(e.dynamic){var o=c.length;e.encode(c,r);var i=a.writeUpdatableValue();l.push((function(e){i(e+o)}))}else e.encode(a,r)})),l.forEach((function(e){e(a.length)}));var h=e.appendWriter(a);return h+=e.appendWriter(c)}function h(e,t){var r=[],n=e.subReader(0);t.forEach((function(t){var o=null;if(t.dynamic){var a=e.readValue(),s=n.subReader(a.toNumber());try{o=t.decode(s)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(o=e).baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(e){if(e.code===i.Logger.errors.BUFFER_OVERRUN)throw e;(o=e).baseType=t.name,o.name=t.localName,o.type=t.type}o!=undefined&&r.push(o)}));var o=t.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach((function(e,t){var n=e.localName;if(n&&1===o[n]&&("length"===n&&(n="_length"),null==r[n])){var i=r[t];i instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw i}}):r[n]=i}}));for(var a=function(e){var t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:function(){throw t}})},s=0;s<r.length;s++)a(s);return Object.freeze(r)}r.pack=l,r.unpack=h;var f=function(e){function t(t,r,n){var o=this,i=t.type+"["+(r>=0?r:"")+"]",a=-1===r||t.dynamic;return(o=e.call(this,"array",i,n,a)||this).coder=t,o.length=r,o}return o(t,e),t.prototype.defaultValue=function(){for(var e=this.coder.defaultValue(),t=[],r=0;r<this.length;r++)t.push(e);return t},t.prototype.encode=function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),s.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],o=0;o<t.length;o++)n.push(this.coder);return l(e,n,t)},t.prototype.decode=function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&s.throwError("insufficient data length",i.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n<t;n++)r.push(new c.AnonymousCoder(this.coder));return e.coerce(this.name,h(e,r))},t}(u.Coder);r.ArrayCoder=f}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/array.js"}],[388,{"./abstract-coder":384},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.BooleanCoder=void 0;var i=function(e){function t(t){return e.call(this,"bool","bool",t,!1)||this}return o(t,e),t.prototype.defaultValue=function(){return!1},t.prototype.encode=function(e,t){return e.writeValue(t?1:0)},t.prototype.decode=function(e){return e.coerce(this.type,!e.readValue().isZero())},t}(e("./abstract-coder").Coder);r.BooleanCoder=i}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/boolean.js"}],[389,{"./abstract-coder":384,"@ethersproject/bytes":413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.BytesCoder=r.DynamicBytesCoder=void 0;var i=e("@ethersproject/bytes"),a=function(e){function t(t,r){return e.call(this,t,t,r,!0)||this}return o(t,e),t.prototype.defaultValue=function(){return"0x"},t.prototype.encode=function(e,t){t=(0,i.arrayify)(t);var r=e.writeValue(t.length);return r+=e.writeBytes(t)},t.prototype.decode=function(e){return e.readBytes(e.readValue().toNumber(),!0)},t}(e("./abstract-coder").Coder);r.DynamicBytesCoder=a;var s=function(e){function t(t){return e.call(this,"bytes",t)||this}return o(t,e),t.prototype.decode=function(t){return t.coerce(this.name,(0,i.hexlify)(e.prototype.decode.call(this,t)))},t}(a);r.BytesCoder=s}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/bytes.js"}],[390,{"./abstract-coder":384,"@ethersproject/bytes":413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.FixedBytesCoder=void 0;var i=e("@ethersproject/bytes"),a=function(e){function t(t,r){var n=this,o="bytes"+String(t);return(n=e.call(this,o,o,r,!1)||this).size=t,n}return o(t,e),t.prototype.defaultValue=function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)},t.prototype.encode=function(e,t){var r=(0,i.arrayify)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)},t.prototype.decode=function(e){return e.coerce(this.name,(0,i.hexlify)(e.readBytes(this.size)))},t}(e("./abstract-coder").Coder);r.FixedBytesCoder=a}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/fixed-bytes.js"}],[391,{"./abstract-coder":384},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.NullCoder=void 0;var i=function(e){function t(t){return e.call(this,"null","",t,!1)||this}return o(t,e),t.prototype.defaultValue=function(){return null},t.prototype.encode=function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])},t.prototype.decode=function(e){return e.readBytes(0),e.coerce(this.name,null)},t}(e("./abstract-coder").Coder);r.NullCoder=i}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/null.js"}],[392,{"./abstract-coder":384,"@ethersproject/bignumber":410,"@ethersproject/constants":417},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.NumberCoder=void 0;var i=e("@ethersproject/bignumber"),a=e("@ethersproject/constants"),s=function(e){function t(t,r,n){var o=this,i=(r?"int":"uint")+8*t;return(o=e.call(this,i,i,n,!1)||this).size=t,o.signed=r,o}return o(t,e),t.prototype.defaultValue=function(){return 0},t.prototype.encode=function(e,t){var r=i.BigNumber.from(t),n=a.MaxUint256.mask(8*e.wordSize);if(this.signed){var o=n.mask(8*this.size-1);(r.gt(o)||r.lt(o.add(a.One).mul(a.NegativeOne)))&&this._throwError("value out-of-bounds",t)}else(r.lt(a.Zero)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)},t.prototype.decode=function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)},t}(e("./abstract-coder").Coder);r.NumberCoder=s}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/number.js"}],[393,{"./bytes":389,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.StringCoder=void 0;var i=e("@ethersproject/strings"),a=function(e){function t(t){return e.call(this,"string",t)||this}return o(t,e),t.prototype.defaultValue=function(){return""},t.prototype.encode=function(t,r){return e.prototype.encode.call(this,t,(0,i.toUtf8Bytes)(r))},t.prototype.decode=function(t){return(0,i.toUtf8String)(e.prototype.decode.call(this,t))},t}(e("./bytes").DynamicBytesCoder);r.StringCoder=a}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/string.js"}],[394,{"./abstract-coder":384,"./array":387},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.TupleCoder=void 0;var i=e("./abstract-coder"),a=e("./array"),s=function(e){function t(t,r){var n=this,o=!1,i=[];t.forEach((function(e){e.dynamic&&(o=!0),i.push(e.type)}));var a="tuple("+i.join(",")+")";return(n=e.call(this,"tuple",a,r,o)||this).coders=t,n}return o(t,e),t.prototype.defaultValue=function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach((function(r,n){var o=r.localName;o&&1===t[o]&&("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[n]))})),Object.freeze(e)},t.prototype.encode=function(e,t){return(0,a.pack)(e,this.coders,t)},t.prototype.decode=function(e){return e.coerce(this.name,(0,a.unpack)(e,this.coders))},t}(i.Coder);r.TupleCoder=s}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/coders/tuple.js"}],[395,{"./_version":382,"@ethersproject/bignumber":410,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.ErrorFragment=r.FunctionFragment=r.ConstructorFragment=r.EventFragment=r.Fragment=r.ParamType=r.FormatTypes=void 0;var i=e("@ethersproject/bignumber"),a=e("@ethersproject/properties"),s=e("@ethersproject/logger"),u=e("./_version"),c=new s.Logger(u.version),l={},h={calldata:!0,memory:!0,storage:!0},f={calldata:!0,memory:!0};function d(e,t){if("bytes"===e||"string"===e){if(h[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&f[t])return!0;return(h[t]||"payable"===t)&&c.throwArgumentError("invalid modifier","name",t),!1}function p(e,t){for(var r in t)(0,a.defineReadOnly)(e,r,t[r])}r.FormatTypes=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"});var m=new RegExp(/^(.*)\[([0-9]*)\]$/),g=function(){function e(t,r){t!==l&&c.throwError("use fromString",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),p(this,r);var n=this.type.match(m);p(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return e.prototype.format=function(e){if(e||(e=r.FormatTypes.sighash),r.FormatTypes[e]||c.throwArgumentError("invalid format type","format",e),e===r.FormatTypes.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||undefined};return"boolean"==typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==r.FormatTypes.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===r.FormatTypes.full?", ":",")+")"):n+=this.type,e!==r.FormatTypes.sighash&&(!0===this.indexed&&(n+=" indexed"),e===r.FormatTypes.full&&this.name&&(n+=" "+this.name)),n},e.from=function(t,r){return"string"==typeof t?e.fromString(t,r):e.fromObject(t)},e.fromObject=function(t){return e.isParamType(t)?t:new e(l,{name:t.name||null,type:S(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})},e.fromString=function(t,r){return n=function(e,t){var r=e;function n(t){c.throwArgumentError("unexpected character at position "+t,"param",e)}function o(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},a=i,s=0;s<e.length;s++){var u=e[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(s),a.state.allowType=!1,a.type=S(a.type),a.components=[o(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),d(a.type,a.name)&&(a.name=""),a.type=S(a.type);var l=a;(a=a.parent)||n(s),delete l.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(s),a.indexed=!0,a.name=""),d(a.type,a.name)&&(a.name=""),a.type=S(a.type);var h=o(a.parent);a.parent.components.push(h),delete a.parent,a=h;break;case" ":a.state.allowType&&""!==a.type&&(a.type=S(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(s),a.indexed&&n(s),a.indexed=!0,a.name=""):d(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:n(s)}}return a.parent&&c.throwArgumentError("unexpected eof","param",e),delete i.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):d(a.type,a.name)&&(a.name=""),i.type=S(i.type),i}(t,!!r),e.fromObject({name:n.name,type:n.type,indexed:n.indexed,components:n.components});var n},e.isParamType=function(e){return!(null==e||!e._isParamType)},e}();function v(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,o=0;o<e.length;o++){var i=e[o];","===i&&0===n?(t.push(r),r=""):(r+=i,"("===i?n++:")"===i&&-1===--n&&c.throwArgumentError("unbalanced parenthesis","value",e))}r&&t.push(r);return t}(e).map((function(e){return g.fromString(e,t)}))}r.ParamType=g;var y=function(){function e(e,t){e!==l&&c.throwError("use a static from method",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),p(this,t),this._isFragment=!0,Object.freeze(this)}return e.from=function(t){return e.isFragment(t)?t:"string"==typeof t?e.fromString(t):e.fromObject(t)},e.fromObject=function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return T.fromObject(t);case"event":return b.fromObject(t);case"constructor":return _.fromObject(t);case"error":return k.fromObject(t);case"fallback":case"receive":return null}return c.throwArgumentError("invalid fragment object","value",t)},e.fromString=function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?b.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?T.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?_.fromString(e.trim()):"error"===e.split(" ")[0]?k.fromString(e.substring(5).trim()):c.throwArgumentError("unsupported fragment","value",e)},e.isFragment=function(e){return!(!e||!e._isFragment)},e}();r.Fragment=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.format=function(e){if(e||(e=r.FormatTypes.sighash),r.FormatTypes[e]||c.throwArgumentError("invalid format type","format",e),e===r.FormatTypes.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==r.FormatTypes.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===r.FormatTypes.full?", ":",")+") ",e!==r.FormatTypes.sighash&&this.anonymous&&(t+="anonymous "),t.trim()},t.from=function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isEventFragment(e))return e;"event"!==e.type&&c.throwArgumentError("invalid event object","value",e);var r={name:N(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(g.fromObject):[],type:"event"};return new t(l,r)},t.fromString=function(e){var r=e.match(C);r||c.throwArgumentError("invalid event string","value",e);var n=!1;return r[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:c.warn("unknown modifier: "+e)}})),t.fromObject({name:r[1].trim(),anonymous:n,inputs:v(r[2],!0),type:"event"})},t.isEventFragment=function(e){return e&&e._isFragment&&"event"===e.type},t}(y);function w(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(r.length>2&&c.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||c.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=i.BigNumber.from(r[1]),r[0]):e}function A(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function E(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&c.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&c.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||c.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&c.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&c.throwArgumentError("unable to determine stateMutability","value",e),t}r.EventFragment=b;var _=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.format=function(e){if(e||(e=r.FormatTypes.sighash),r.FormatTypes[e]||c.throwArgumentError("invalid format type","format",e),e===r.FormatTypes.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:undefined,payable:this.payable,gas:this.gas?this.gas.toNumber():undefined,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===r.FormatTypes.sighash&&c.throwError("cannot format a constructor for sighash",s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===r.FormatTypes.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()},t.from=function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isConstructorFragment(e))return e;"constructor"!==e.type&&c.throwArgumentError("invalid constructor object","value",e);var r=E(e);r.constant&&c.throwArgumentError("constructor cannot be constant","value",e);var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(g.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?i.BigNumber.from(e.gas):null};return new t(l,n)},t.fromString=function(e){var r={type:"constructor"},n=(e=w(e,r)).match(C);return n&&"constructor"===n[1].trim()||c.throwArgumentError("invalid constructor string","value",e),r.inputs=v(n[2].trim(),!1),A(n[3].trim(),r),t.fromObject(r)},t.isConstructorFragment=function(e){return e&&e._isFragment&&"constructor"===e.type},t}(y);r.ConstructorFragment=_;var T=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.format=function(e){if(e||(e=r.FormatTypes.sighash),r.FormatTypes[e]||c.throwArgumentError("invalid format type","format",e),e===r.FormatTypes.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:undefined,payable:this.payable,gas:this.gas?this.gas.toNumber():undefined,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==r.FormatTypes.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===r.FormatTypes.full?", ":",")+") ",e!==r.FormatTypes.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()},t.from=function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isFunctionFragment(e))return e;"function"!==e.type&&c.throwArgumentError("invalid function object","value",e);var r=E(e),n={type:e.type,name:N(e.name),constant:r.constant,inputs:e.inputs?e.inputs.map(g.fromObject):[],outputs:e.outputs?e.outputs.map(g.fromObject):[],payable:r.payable,stateMutability:r.stateMutability,gas:e.gas?i.BigNumber.from(e.gas):null};return new t(l,n)},t.fromString=function(e){var r={type:"function"},n=(e=w(e,r)).split(" returns ");n.length>2&&c.throwArgumentError("invalid function string","value",e);var o=n[0].match(C);if(o||c.throwArgumentError("invalid function signature","value",e),r.name=o[1].trim(),r.name&&N(r.name),r.inputs=v(o[2],!1),A(o[3].trim(),r),n.length>1){var i=n[1].match(C);""==i[1].trim()&&""==i[3].trim()||c.throwArgumentError("unexpected tokens","value",e),r.outputs=v(i[2],!1)}else r.outputs=[];return t.fromObject(r)},t.isFunctionFragment=function(e){return e&&e._isFragment&&"function"===e.type},t}(_);function P(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||c.throwArgumentError("cannot specify user defined "+t+" error","fragment",e),e}r.FunctionFragment=T;var k=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.format=function(e){if(e||(e=r.FormatTypes.sighash),r.FormatTypes[e]||c.throwArgumentError("invalid format type","format",e),e===r.FormatTypes.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==r.FormatTypes.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===r.FormatTypes.full?", ":",")+") ").trim()},t.from=function(e){return"string"==typeof e?t.fromString(e):t.fromObject(e)},t.fromObject=function(e){if(t.isErrorFragment(e))return e;"error"!==e.type&&c.throwArgumentError("invalid error object","value",e);var r={type:e.type,name:N(e.name),inputs:e.inputs?e.inputs.map(g.fromObject):[]};return P(new t(l,r))},t.fromString=function(e){var r={type:"error"},n=e.match(C);return n||c.throwArgumentError("invalid error signature","value",e),r.name=n[1].trim(),r.name&&N(r.name),r.inputs=v(n[2],!1),P(t.fromObject(r))},t.isErrorFragment=function(e){return e&&e._isFragment&&"error"===e.type},t}(y);function S(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}r.ErrorFragment=k;var O=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function N(e){return e&&e.match(O)||c.throwArgumentError('invalid identifier "'+e+'"',"value",e),e}var C=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/fragments.js"}],[396,{"./abi-coder":383,"./fragments":395,"./interface":397},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.TransactionDescription=r.LogDescription=r.checkResultErrors=r.Indexed=r.Interface=r.defaultAbiCoder=r.AbiCoder=r.FormatTypes=r.ParamType=r.FunctionFragment=r.Fragment=r.EventFragment=r.ErrorFragment=r.ConstructorFragment=void 0;var n=e("./fragments");Object.defineProperty(r,"ConstructorFragment",{enumerable:!0,get:function(){return n.ConstructorFragment}}),Object.defineProperty(r,"ErrorFragment",{enumerable:!0,get:function(){return n.ErrorFragment}}),Object.defineProperty(r,"EventFragment",{enumerable:!0,get:function(){return n.EventFragment}}),Object.defineProperty(r,"FormatTypes",{enumerable:!0,get:function(){return n.FormatTypes}}),Object.defineProperty(r,"Fragment",{enumerable:!0,get:function(){return n.Fragment}}),Object.defineProperty(r,"FunctionFragment",{enumerable:!0,get:function(){return n.FunctionFragment}}),Object.defineProperty(r,"ParamType",{enumerable:!0,get:function(){return n.ParamType}});var o=e("./abi-coder");Object.defineProperty(r,"AbiCoder",{enumerable:!0,get:function(){return o.AbiCoder}}),Object.defineProperty(r,"defaultAbiCoder",{enumerable:!0,get:function(){return o.defaultAbiCoder}});var i=e("./interface");Object.defineProperty(r,"checkResultErrors",{enumerable:!0,get:function(){return i.checkResultErrors}}),Object.defineProperty(r,"Indexed",{enumerable:!0,get:function(){return i.Indexed}}),Object.defineProperty(r,"Interface",{enumerable:!0,get:function(){return i.Interface}}),Object.defineProperty(r,"LogDescription",{enumerable:!0,get:function(){return i.LogDescription}}),Object.defineProperty(r,"TransactionDescription",{enumerable:!0,get:function(){return i.TransactionDescription}})}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/index.js"}],[397,{"./_version":382,"./abi-coder":383,"./coders/abstract-coder":384,"./fragments":395,"@ethersproject/address":403,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/hash":426,"@ethersproject/keccak256":439,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.Interface=r.Indexed=r.ErrorDescription=r.TransactionDescription=r.LogDescription=r.checkResultErrors=void 0;var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),u=e("@ethersproject/hash"),c=e("@ethersproject/keccak256"),l=e("@ethersproject/properties"),h=e("./abi-coder"),f=e("./coders/abstract-coder");Object.defineProperty(r,"checkResultErrors",{enumerable:!0,get:function(){return f.checkResultErrors}});var d=e("./fragments"),p=e("@ethersproject/logger"),m=e("./_version"),g=new p.Logger(m.version),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(l.Description);r.LogDescription=v;var y=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(l.Description);r.TransactionDescription=y;var b=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(l.Description);r.ErrorDescription=b;var w=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.isIndexed=function(e){return!(!e||!e._isIndexed)},t}(l.Description);r.Indexed=w;var A={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function E(e,t){var r=new Error("deferred error during ABI decoding triggered accessing "+e);return r.error=t,r}var _=function(){function e(e){var t=this.constructor,r=this,n=[];n="string"==typeof e?JSON.parse(e):e,(0,l.defineReadOnly)(this,"fragments",n.map((function(e){return d.Fragment.from(e)})).filter((function(e){return null!=e}))),(0,l.defineReadOnly)(this,"_abiCoder",(0,l.getStatic)(t,"getAbiCoder")()),(0,l.defineReadOnly)(this,"functions",{}),(0,l.defineReadOnly)(this,"errors",{}),(0,l.defineReadOnly)(this,"events",{}),(0,l.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return r.deploy?void g.warn("duplicate definition - constructor"):void(0,l.defineReadOnly)(r,"deploy",e);case"function":t=r.functions;break;case"event":t=r.events;break;case"error":t=r.errors;break;default:return}var n=e.format();t[n]?g.warn("duplicate definition - "+n):t[n]=e})),this.deploy||(0,l.defineReadOnly)(this,"deploy",d.ConstructorFragment.from({payable:!1,type:"constructor"})),(0,l.defineReadOnly)(this,"_isInterface",!0)}return e.prototype.format=function(e){e||(e=d.FormatTypes.full),e===d.FormatTypes.sighash&&g.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===d.FormatTypes.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t},e.getAbiCoder=function(){return h.defaultAbiCoder},e.getAddress=function(e){return(0,i.getAddress)(e)},e.getSighash=function(e){return(0,s.hexDataSlice)((0,u.id)(e.format()),0,4)},e.getEventTopic=function(e){return(0,u.id)(e.format())},e.prototype.getFunction=function(e){if((0,s.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];g.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?g.throwArgumentError("no matching function","name",r):n.length>1&&g.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var o=this.functions[d.FunctionFragment.fromString(e).format()];return o||g.throwArgumentError("no matching function","signature",e),o},e.prototype.getEvent=function(e){if((0,s.isHexString)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];g.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),o=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===o.length?g.throwArgumentError("no matching event","name",n):o.length>1&&g.throwArgumentError("multiple matching events","name",n),this.events[o[0]]}var i=this.events[d.EventFragment.fromString(e).format()];return i||g.throwArgumentError("no matching event","signature",e),i},e.prototype.getError=function(e){if((0,s.isHexString)(e)){var t=(0,l.getStatic)(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}g.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),o=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===o.length?g.throwArgumentError("no matching error","name",n):o.length>1&&g.throwArgumentError("multiple matching errors","name",n),this.errors[o[0]]}var i=this.errors[d.FunctionFragment.fromString(e).format()];return i||g.throwArgumentError("no matching error","signature",e),i},e.prototype.getSighash=function(e){if("string"==typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(e){throw t}}return(0,l.getStatic)(this.constructor,"getSighash")(e)},e.prototype.getEventTopic=function(e){return"string"==typeof e&&(e=this.getEvent(e)),(0,l.getStatic)(this.constructor,"getEventTopic")(e)},e.prototype._decodeParams=function(e,t){return this._abiCoder.decode(e,t)},e.prototype._encodeParams=function(e,t){return this._abiCoder.encode(e,t)},e.prototype.encodeDeploy=function(e){return this._encodeParams(this.deploy.inputs,e||[])},e.prototype.decodeErrorResult=function(e,t){"string"==typeof e&&(e=this.getError(e));var r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&g.throwArgumentError("data signature does not match error "+e.name+".","data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))},e.prototype.encodeErrorResult=function(e,t){return"string"==typeof e&&(e=this.getError(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},e.prototype.decodeFunctionData=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=(0,s.arrayify)(t);return(0,s.hexlify)(r.slice(0,4))!==this.getSighash(e)&&g.throwArgumentError("data signature does not match function "+e.name+".","data",(0,s.hexlify)(r)),this._decodeParams(e.inputs,r.slice(4))},e.prototype.encodeFunctionData=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)((0,s.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))},e.prototype.decodeFunctionResult=function(e,t){"string"==typeof e&&(e=this.getFunction(e));var r=(0,s.arrayify)(t),n=null,o="",i=null,a=null,u=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(h){}break;case 4:var c=(0,s.hexlify)(r.slice(0,4)),l=A[c];if(l)i=this._abiCoder.decode(l.inputs,r.slice(4)),a=l.name,u=l.signature,l.reason&&(n=i[0]),"Error"===a?o="; VM Exception while processing transaction: reverted with reason string "+JSON.stringify(i[0]):"Panic"===a&&(o="; VM Exception while processing transaction: reverted with panic code "+i[0]);else try{var h=this.getError(c);i=this._abiCoder.decode(h.inputs,r.slice(4)),a=h.name,u=h.format()}catch(h){}}return g.throwError("call revert exception"+o,p.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,s.hexlify)(t),errorArgs:i,errorName:a,errorSignature:u,reason:n})},e.prototype.encodeFunctionResult=function(e,t){return"string"==typeof e&&(e=this.getFunction(e)),(0,s.hexlify)(this._abiCoder.encode(e.outputs,t||[]))},e.prototype.encodeFilterTopics=function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&g.throwError("too many arguments for "+e.format(),p.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var o=function(e,t){return"string"===e.type?(0,u.id)(t):"bytes"===e.type?(0,c.keccak256)((0,s.hexlify)(t)):("bool"===e.type&&"boolean"==typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=a.BigNumber.from(t).toHexString()),"address"===e.type&&r._abiCoder.encode(["address"],[t]),(0,s.hexZeroPad)((0,s.hexlify)(t),32))};for(t.forEach((function(t,r){var i=e.inputs[r];i.indexed?null==t?n.push(null):"array"===i.baseType||"tuple"===i.baseType?g.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?n.push(t.map((function(e){return o(i,e)}))):n.push(o(i,t)):null!=t&&g.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n},e.prototype.encodeEventLog=function(e,t){var r=this;"string"==typeof e&&(e=this.getEvent(e));var n=[],o=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&g.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a];if(e.indexed)if("string"===e.type)n.push((0,u.id)(s));else if("bytes"===e.type)n.push((0,c.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[s]))}else o.push(e),i.push(s)})),{data:this._abiCoder.encode(o,i),topics:n}},e.prototype.decodeEventLog=function(e,t,r){if("string"==typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);(0,s.isHexString)(r[0],32)&&r[0].toLowerCase()===n||g.throwError("fragment/topic mismatch",p.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var o=[],i=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(o.push(d.ParamType.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(o.push(e),a.push(!1)):(i.push(e),a.push(!1))}));var u=null!=r?this._abiCoder.decode(o,(0,s.concat)(r)):null,c=this._abiCoder.decode(i,t,!0),l=[],h=0,f=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==u)l[t]=new w({_isIndexed:!0,hash:null});else if(a[t])l[t]=new w({_isIndexed:!0,hash:u[f++]});else try{l[t]=u[f++]}catch(e){l[t]=e}else try{l[t]=c[h++]}catch(e){l[t]=e}if(e.name&&null==l[e.name]){var r=l[t];r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw E("property "+JSON.stringify(e.name),r)}}):l[e.name]=r}}));for(var m=function(e){var t=l[e];t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw E("index "+e,t)}})},v=0;v<l.length;v++)m(v);return Object.freeze(l)},e.prototype.parseTransaction=function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new y({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:a.BigNumber.from(e.value||"0")}):null},e.prototype.parseLog=function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new v({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})},e.prototype.parseError=function(e){var t=(0,s.hexlify)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new b({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null},e.isInterface=function(e){return!(!e||!e._isInterface)},e}();r.Interface=_}}},{package:"@ethersproject/abi",file:"node_modules/@ethersproject/abi/lib/interface.js"}],[398,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="abstract-provider/5.7.0"}}},{package:"@ethersproject/providers>@ethersproject/abstract-provider",file:"node_modules/@ethersproject/abstract-provider/lib/_version.js"}],[399,{"./_version":398,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.Provider=r.TransactionOrderForkEvent=r.TransactionForkEvent=r.BlockForkEvent=r.ForkEvent=void 0;var s=e("@ethersproject/bignumber"),u=e("@ethersproject/bytes"),c=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),f=new l.Logger(h.version),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.isForkEvent=function(e){return!(!e||!e._isForkEvent)},t}(c.Description);r.ForkEvent=d;var p=function(e){function t(t,r){return(0,u.isHexString)(t,32)||f.throwArgumentError("invalid blockHash","blockHash",t),e.call(this,{_isForkEvent:!0,_isBlockForkEvent:!0,expiry:r||0,blockHash:t})||this}return o(t,e),t}(d);r.BlockForkEvent=p;var m=function(e){function t(t,r){return(0,u.isHexString)(t,32)||f.throwArgumentError("invalid transaction hash","hash",t),e.call(this,{_isForkEvent:!0,_isTransactionForkEvent:!0,expiry:r||0,hash:t})||this}return o(t,e),t}(d);r.TransactionForkEvent=m;var g=function(e){function t(t,r,n){return(0,u.isHexString)(t,32)||f.throwArgumentError("invalid transaction hash","beforeHash",t),(0,u.isHexString)(r,32)||f.throwArgumentError("invalid transaction hash","afterHash",r),e.call(this,{_isForkEvent:!0,_isTransactionOrderForkEvent:!0,expiry:n||0,beforeHash:t,afterHash:r})||this}return o(t,e),t}(d);r.TransactionOrderForkEvent=g;var v=function(){function e(){var t=this.constructor;f.checkAbstract(t,e),(0,c.defineReadOnly)(this,"_isProvider",!0)}return e.prototype.getFeeData=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,(0,c.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(e){return null}))})];case 1:return e=a.sent(),t=e.block,r=e.gasPrice,n=null,o=null,i=null,t&&t.baseFeePerGas&&(n=t.baseFeePerGas,i=s.BigNumber.from("1500000000"),o=t.baseFeePerGas.mul(2).add(i)),[2,{lastBaseFeePerGas:n,maxFeePerGas:o,maxPriorityFeePerGas:i,gasPrice:r}]}}))}))},e.prototype.addListener=function(e,t){return this.on(e,t)},e.prototype.removeListener=function(e,t){return this.off(e,t)},e.isProvider=function(e){return!(!e||!e._isProvider)},e}();r.Provider=v}}},{package:"@ethersproject/providers>@ethersproject/abstract-provider",file:"node_modules/@ethersproject/abstract-provider/lib/index.js"}],[400,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="abstract-signer/5.7.0"}}},{package:"@ethersproject/hdnode>@ethersproject/abstract-signer",file:"node_modules/@ethersproject/abstract-signer/lib/_version.js"}],[401,{"./_version":400,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.VoidSigner=r.Signer=void 0;var s=e("@ethersproject/properties"),u=e("@ethersproject/logger"),c=e("./_version"),l=new u.Logger(c.version),h=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],f=[u.Logger.errors.INSUFFICIENT_FUNDS,u.Logger.errors.NONCE_EXPIRED,u.Logger.errors.REPLACEMENT_UNDERPRICED],d=function(){function e(){var t=this.constructor;l.checkAbstract(t,e),(0,s.defineReadOnly)(this,"_isSigner",!0)}return e.prototype.getBalance=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._checkProvider("getBalance"),[4,this.provider.getBalance(this.getAddress(),e)];case 1:return[2,t.sent()]}}))}))},e.prototype.getTransactionCount=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._checkProvider("getTransactionCount"),[4,this.provider.getTransactionCount(this.getAddress(),e)];case 1:return[2,t.sent()]}}))}))},e.prototype.estimateGas=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return this._checkProvider("estimateGas"),[4,(0,s.resolveProperties)(this.checkTransaction(e))];case 1:return t=r.sent(),[4,this.provider.estimateGas(t)];case 2:return[2,r.sent()]}}))}))},e.prototype.call=function(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return this._checkProvider("call"),[4,(0,s.resolveProperties)(this.checkTransaction(e))];case 1:return r=n.sent(),[4,this.provider.call(r,t)];case 2:return[2,n.sent()]}}))}))},e.prototype.sendTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return this._checkProvider("sendTransaction"),[4,this.populateTransaction(e)];case 1:return t=n.sent(),[4,this.signTransaction(t)];case 2:return r=n.sent(),[4,this.provider.sendTransaction(r)];case 3:return[2,n.sent()]}}))}))},e.prototype.getChainId=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._checkProvider("getChainId"),[4,this.provider.getNetwork()];case 1:return[2,e.sent().chainId]}}))}))},e.prototype.getGasPrice=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._checkProvider("getGasPrice"),[4,this.provider.getGasPrice()];case 1:return[2,e.sent()]}}))}))},e.prototype.getFeeData=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return this._checkProvider("getFeeData"),[4,this.provider.getFeeData()];case 1:return[2,e.sent()]}}))}))},e.prototype.resolveName=function(e){return i(this,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return this._checkProvider("resolveName"),[4,this.provider.resolveName(e)];case 1:return[2,t.sent()]}}))}))},e.prototype.checkTransaction=function(e){for(var t in e)-1===h.indexOf(t)&&l.throwArgumentError("invalid transaction key: "+t,"transaction",e);var r=(0,s.shallowCopy)(e);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&l.throwArgumentError("from address mismatch","transaction",e),t[0]})),r},e.prototype.populateTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,c=this;return a(this,(function(h){switch(h.label){case 0:return[4,(0,s.resolveProperties)(this.checkTransaction(e))];case 1:return null!=(t=h.sent()).to&&(t.to=Promise.resolve(t.to).then((function(e){return i(c,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return null==e?[2,null]:[4,this.resolveName(e)];case 1:return null==(t=r.sent())&&l.throwArgumentError("provided ENS name resolves to null","tx.to",e),[2,t]}}))}))})),t.to.catch((function(e){}))),r=null!=t.maxFeePerGas||null!=t.maxPriorityFeePerGas,null==t.gasPrice||2!==t.type&&!r?0!==t.type&&1!==t.type||!r||l.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):l.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==t.type&&null!=t.type||null==t.maxFeePerGas||null==t.maxPriorityFeePerGas?[3,2]:(t.type=2,[3,5]);case 2:return 0!==t.type&&1!==t.type?[3,3]:(null==t.gasPrice&&(t.gasPrice=this.getGasPrice()),[3,5]);case 3:return[4,this.getFeeData()];case 4:n=h.sent(),null==t.type?null!=n.maxFeePerGas&&null!=n.maxPriorityFeePerGas?(t.type=2,null!=t.gasPrice?(o=t.gasPrice,delete t.gasPrice,t.maxFeePerGas=o,t.maxPriorityFeePerGas=o):(null==t.maxFeePerGas&&(t.maxFeePerGas=n.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=n.maxPriorityFeePerGas))):null!=n.gasPrice?(r&&l.throwError("network does not support EIP-1559",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==t.gasPrice&&(t.gasPrice=n.gasPrice),t.type=0):l.throwError("failed to get consistent fee data",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===t.type&&(null==t.maxFeePerGas&&(t.maxFeePerGas=n.maxFeePerGas),null==t.maxPriorityFeePerGas&&(t.maxPriorityFeePerGas=n.maxPriorityFeePerGas)),h.label=5;case 5:return null==t.nonce&&(t.nonce=this.getTransactionCount("pending")),null==t.gasLimit&&(t.gasLimit=this.estimateGas(t).catch((function(e){if(f.indexOf(e.code)>=0)throw e;return l.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",u.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:t})}))),null==t.chainId?t.chainId=this.getChainId():t.chainId=Promise.all([Promise.resolve(t.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&l.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),[4,(0,s.resolveProperties)(t)];case 6:return[2,h.sent()]}}))}))},e.prototype._checkProvider=function(e){this.provider||l.throwError("missing provider",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})},e.isSigner=function(e){return!(!e||!e._isSigner)},e}();r.Signer=d;var p=function(e){function t(t,r){var n=e.call(this)||this;return(0,s.defineReadOnly)(n,"address",t),(0,s.defineReadOnly)(n,"provider",r||null),n}return o(t,e),t.prototype.getAddress=function(){return Promise.resolve(this.address)},t.prototype._fail=function(e,t){return Promise.resolve().then((function(){l.throwError(e,u.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))},t.prototype.signMessage=function(e){return this._fail("VoidSigner cannot sign messages","signMessage")},t.prototype.signTransaction=function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")},t.prototype._signTypedData=function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")},t.prototype.connect=function(e){return new t(this.address,e)},t}(d);r.VoidSigner=p}}},{package:"@ethersproject/hdnode>@ethersproject/abstract-signer",file:"node_modules/@ethersproject/abstract-signer/lib/index.js"}],[402,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="address/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/address",file:"node_modules/@ethersproject/address/lib/_version.js"}],[403,{"./_version":402,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/keccak256":439,"@ethersproject/logger":442,"@ethersproject/rlp":473},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getCreate2Address=r.getContractAddress=r.getIcapAddress=r.isAddress=r.getAddress=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/bignumber"),i=e("@ethersproject/keccak256"),a=e("@ethersproject/rlp"),s=e("@ethersproject/logger"),u=e("./_version"),c=new s.Logger(u.version);function l(e){(0,n.isHexString)(e,20)||c.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),o=0;o<40;o++)r[o]=t[o].charCodeAt(0);var a=(0,n.arrayify)((0,i.keccak256)(r));for(o=0;o<40;o+=2)a[o>>1]>>4>=8&&(t[o]=t[o].toUpperCase()),(15&a[o>>1])>=8&&(t[o+1]=t[o+1].toUpperCase());return"0x"+t.join("")}for(var h={},f=0;f<10;f++)h[String(f)]=String(f);for(f=0;f<26;f++)h[String.fromCharCode(65+f)]=String(10+f);var d,p=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));function m(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return h[e]})).join("");t.length>=p;){var r=t.substring(0,p);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function g(e){var t=null;if("string"!=typeof e&&c.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=l(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&c.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==m(e)&&c.throwArgumentError("bad icap checksum","address",e),t=(0,o._base36To16)(e.substring(4));t.length<40;)t="0"+t;t=l("0x"+t)}else c.throwArgumentError("invalid address","address",e);return t}r.getAddress=g,r.isAddress=function(e){try{return g(e),!0}catch(e){}return!1},r.getIcapAddress=function(e){for(var t=(0,o._base16To36)(g(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+m("XE00"+t)+t},r.getContractAddress=function(e){var t=null;try{t=g(e.from)}catch(t){c.throwArgumentError("missing from address","transaction",e)}var r=(0,n.stripZeros)((0,n.arrayify)(o.BigNumber.from(e.nonce).toHexString()));return g((0,n.hexDataSlice)((0,i.keccak256)((0,a.encode)([t,r])),12))},r.getCreate2Address=function(e,t,r){return 32!==(0,n.hexDataLength)(t)&&c.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,n.hexDataLength)(r)&&c.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),g((0,n.hexDataSlice)((0,i.keccak256)((0,n.concat)(["0xff",g(e),t,r])),12))}}}},{package:"@ethersproject/abi>@ethersproject/address",file:"node_modules/@ethersproject/address/lib/index.js"}],[404,{"@ethersproject/bytes":413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encode=r.decode=void 0;var n=e("@ethersproject/bytes");r.decode=function(e){e=atob(e);for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return(0,n.arrayify)(t)},r.encode=function(e){e=(0,n.arrayify)(e);for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}}}},{package:"@ethersproject/providers>@ethersproject/base64",file:"node_modules/@ethersproject/base64/lib/browser-base64.js"}],[405,{"./base64":404},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.encode=r.decode=void 0;var n=e("./base64");Object.defineProperty(r,"decode",{enumerable:!0,get:function(){return n.decode}}),Object.defineProperty(r,"encode",{enumerable:!0,get:function(){return n.encode}})}}},{package:"@ethersproject/providers>@ethersproject/base64",file:"node_modules/@ethersproject/base64/lib/index.js"}],[406,{"@ethersproject/bytes":413,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Base58=r.Base32=r.BaseX=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/properties"),i=function(){function e(e){(0,o.defineReadOnly)(this,"alphabet",e),(0,o.defineReadOnly)(this,"base",e.length),(0,o.defineReadOnly)(this,"_alphabetMap",{}),(0,o.defineReadOnly)(this,"_leader",e.charAt(0));for(var t=0;t<e.length;t++)this._alphabetMap[e.charAt(t)]=t}return e.prototype.encode=function(e){var t=(0,n.arrayify)(e);if(0===t.length)return"";for(var r=[0],o=0;o<t.length;++o){for(var i=t[o],a=0;a<r.length;++a)i+=r[a]<<8,r[a]=i%this.base,i=i/this.base|0;for(;i>0;)r.push(i%this.base),i=i/this.base|0}for(var s="",u=0;0===t[u]&&u<t.length-1;++u)s+=this._leader;for(var c=r.length-1;c>=0;--c)s+=this.alphabet[r[c]];return s},e.prototype.decode=function(e){if("string"!=typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var r=0;r<e.length;r++){var o=this._alphabetMap[e[r]];if(o===undefined)throw new Error("Non-base"+this.base+" character");for(var i=o,a=0;a<t.length;++a)i+=t[a]*this.base,t[a]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(var s=0;e[s]===this._leader&&s<e.length-1;++s)t.push(0);return(0,n.arrayify)(new Uint8Array(t.reverse()))},e}();r.BaseX=i;var a=new i("abcdefghijklmnopqrstuvwxyz234567");r.Base32=a;var s=new i("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");r.Base58=s}}},{package:"@ethersproject/hdnode>@ethersproject/basex",file:"node_modules/@ethersproject/basex/lib/index.js"}],[4068,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SUPPORT_REQUEST_LINK=r.SECONDARY=r.PRIMARY=r.PASSWORD_MIN_LENGTH=r.OUTDATED_BROWSER_VERSIONS=r.CONTRACT_ADDRESS_LINK=void 0;r.PRIMARY="PRIMARY";r.SECONDARY="SECONDARY";r.SUPPORT_REQUEST_LINK="https://metamask.zendesk.com/hc/en-us";r.CONTRACT_ADDRESS_LINK="https://metamask.zendesk.com/hc/en-us/articles/360020028092-What-is-the-known-contract-address-warning-";r.PASSWORD_MIN_LENGTH=8;r.OUTDATED_BROWSER_VERSIONS={chrome:"<80",edge:"<80",firefox:"<78",opera:"<67"}}}},{package:"$root$",file:"ui/helpers/constants/common.ts"}],[407,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="bignumber/5.7.0"}}},{package:"@ethersproject/bignumber",file:"node_modules/@ethersproject/bignumber/lib/_version.js"}],[408,{"./_version":407,"@ethersproject/bytes":413,"@ethersproject/logger":442,"bn.js":411},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r._base16To36=r._base36To16=r.BigNumber=r.isBigNumberish=void 0;var o=n(e("bn.js")).default.BN,i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version),c={},l=9007199254740991;r.isBigNumberish=function(e){return null!=e&&(f.isBigNumber(e)||"number"==typeof e&&e%1==0||"string"==typeof e&&!!e.match(/^-?[0-9]+$/)||(0,i.isHexString)(e)||"bigint"==typeof e||(0,i.isBytes)(e))};var h=!1,f=function(){function e(e,t){e!==c&&u.throwError("cannot call constructor directly; use BigNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=t,this._isBigNumber=!0,Object.freeze(this)}return e.prototype.fromTwos=function(e){return p(m(this).fromTwos(e))},e.prototype.toTwos=function(e){return p(m(this).toTwos(e))},e.prototype.abs=function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this},e.prototype.add=function(e){return p(m(this).add(m(e)))},e.prototype.sub=function(e){return p(m(this).sub(m(e)))},e.prototype.div=function(t){return e.from(t).isZero()&&g("division-by-zero","div"),p(m(this).div(m(t)))},e.prototype.mul=function(e){return p(m(this).mul(m(e)))},e.prototype.mod=function(e){var t=m(e);return t.isNeg()&&g("division-by-zero","mod"),p(m(this).umod(t))},e.prototype.pow=function(e){var t=m(e);return t.isNeg()&&g("negative-power","pow"),p(m(this).pow(t))},e.prototype.and=function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","and"),p(m(this).and(t))},e.prototype.or=function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","or"),p(m(this).or(t))},e.prototype.xor=function(e){var t=m(e);return(this.isNegative()||t.isNeg())&&g("unbound-bitwise-result","xor"),p(m(this).xor(t))},e.prototype.mask=function(e){return(this.isNegative()||e<0)&&g("negative-width","mask"),p(m(this).maskn(e))},e.prototype.shl=function(e){return(this.isNegative()||e<0)&&g("negative-width","shl"),p(m(this).shln(e))},e.prototype.shr=function(e){return(this.isNegative()||e<0)&&g("negative-width","shr"),p(m(this).shrn(e))},e.prototype.eq=function(e){return m(this).eq(m(e))},e.prototype.lt=function(e){return m(this).lt(m(e))},e.prototype.lte=function(e){return m(this).lte(m(e))},e.prototype.gt=function(e){return m(this).gt(m(e))},e.prototype.gte=function(e){return m(this).gte(m(e))},e.prototype.isNegative=function(){return"-"===this._hex[0]},e.prototype.isZero=function(){return m(this).isZero()},e.prototype.toNumber=function(){try{return m(this).toNumber()}catch(e){g("overflow","toNumber",this.toString())}return null},e.prototype.toBigInt=function(){try{return BigInt(this.toString())}catch(e){}return u.throwError("this platform does not support BigInt",a.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})},e.prototype.toString=function(){return arguments.length>0&&(10===arguments[0]?h||(h=!0,u.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?u.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",a.Logger.errors.UNEXPECTED_ARGUMENT,{}):u.throwError("BigNumber.toString does not accept parameters",a.Logger.errors.UNEXPECTED_ARGUMENT,{})),m(this).toString(10)},e.prototype.toHexString=function(){return this._hex},e.prototype.toJSON=function(e){return{type:"BigNumber",hex:this.toHexString()}},e.from=function(t){if(t instanceof e)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(c,d(t)):t.match(/^-?[0-9]+$/)?new e(c,d(new o(t))):u.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&g("underflow","BigNumber.from",t),(t>=l||t<=-l)&&g("overflow","BigNumber.from",t),e.from(String(t));var r,n=t;if("bigint"==typeof n)return e.from(n.toString());if((0,i.isBytes)(n))return e.from((0,i.hexlify)(n));if(n)if(n.toHexString){if("string"==typeof(r=n.toHexString()))return e.from(r)}else if(null==(r=n._hex)&&"BigNumber"===n.type&&(r=n.hex),"string"==typeof r&&((0,i.isHexString)(r)||"-"===r[0]&&(0,i.isHexString)(r.substring(1))))return e.from(r);return u.throwArgumentError("invalid BigNumber value","value",t)},e.isBigNumber=function(e){return!(!e||!e._isBigNumber)},e}();function d(e){if("string"!=typeof e)return d(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&u.throwArgumentError("invalid hex","value",e),"0x00"===(e=d(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function p(e){return f.from(d(e))}function m(e){var t=f.from(e).toHexString();return"-"===t[0]?new o("-"+t.substring(3),16):new o(t.substring(2),16)}function g(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),u.throwError(e,a.Logger.errors.NUMERIC_FAULT,n)}r.BigNumber=f,r._base36To16=function(e){return new o(e,36).toString(16)},r._base16To36=function(e){return new o(e,16).toString(36)}}}},{package:"@ethersproject/bignumber",file:"node_modules/@ethersproject/bignumber/lib/bignumber.js"}],[4088,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getBuildSpecificAsset=function(e){if(!n.main||!Object.keys(n.main).includes(e))return console.error(`Cannot find asset "${e}" for build "main", returning main build asset.`),n.main[e];return n.main[e]},r.isBeta=function(){return!1};const n={main:{foxMeshJson:undefined}}}}},{package:"$root$",file:"ui/helpers/utils/build-types.js"}],[409,{"./_version":407,"./bignumber":408,"@ethersproject/bytes":413,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.FixedNumber=r.FixedFormat=r.parseFixed=r.formatFixed=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),i=e("./_version"),a=new o.Logger(i.version),s=e("./bignumber"),u={},c=s.BigNumber.from(0),l=s.BigNumber.from(-1);function h(e,t,r,n){var i={fault:t,operation:r};return n!==undefined&&(i.value=n),a.throwError(e,o.Logger.errors.NUMERIC_FAULT,i)}for(var f="0";f.length<256;)f+=f;function d(e){if("number"!=typeof e)try{e=s.BigNumber.from(e).toNumber()}catch(e){}return"number"==typeof e&&e>=0&&e<=256&&!(e%1)?"1"+f.substring(0,e):a.throwArgumentError("invalid decimal size","decimals",e)}function p(e,t){null==t&&(t=0);var r=d(t),n=(e=s.BigNumber.from(e)).lt(c);n&&(e=e.mul(l));for(var o=e.mod(r).toString();o.length<r.length-1;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];var i=e.div(r).toString();return e=1===r.length?i:i+"."+o,n&&(e="-"+e),e}function m(e,t){null==t&&(t=0);var r=d(t);"string"==typeof e&&e.match(/^-?[0-9.]+$/)||a.throwArgumentError("invalid decimal value","value",e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&a.throwArgumentError("missing value","value",e);var o=e.split(".");o.length>2&&a.throwArgumentError("too many decimal points","value",e);var i=o[0],u=o[1];for(i||(i="0"),u||(u="0");"0"===u[u.length-1];)u=u.substring(0,u.length-1);for(u.length>r.length-1&&h("fractional component exceeds decimals","underflow","parseFixed"),""===u&&(u="0");u.length<r.length-1;)u+="0";var c=s.BigNumber.from(i),f=s.BigNumber.from(u),p=c.mul(r).add(f);return n&&(p=p.mul(l)),p}r.formatFixed=p,r.parseFixed=m;var g=function(){function e(e,t,r,n){e!==u&&a.throwError("cannot use FixedFormat constructor; use FixedFormat.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=t,this.width=r,this.decimals=n,this.name=(t?"":"u")+"fixed"+String(r)+"x"+String(n),this._multiplier=d(n),Object.freeze(this)}return e.from=function(t){if(t instanceof e)return t;"number"==typeof t&&(t="fixed128x"+t);var r=!0,n=128,o=18;if("string"==typeof t)if("fixed"===t);else if("ufixed"===t)r=!1;else{var i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||a.throwArgumentError("invalid fixed format","format",t),r="u"!==i[1],n=parseInt(i[2]),o=parseInt(i[3])}else if(t){var s=function(e,r,n){return null==t[e]?n:(typeof t[e]!==r&&a.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e])};r=s("signed","boolean",r),n=s("width","number",n),o=s("decimals","number",o)}return n%8&&a.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),o>80&&a.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new e(u,r,n,o)},e}();r.FixedFormat=g;var v=function(){function e(e,t,r,n){e!==u&&a.throwError("cannot use FixedNumber constructor; use FixedNumber.from",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=n,this._hex=t,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}return e.prototype._checkFormat=function(e){this.format.name!==e.format.name&&a.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)},e.prototype.addUnsafe=function(t){this._checkFormat(t);var r=m(this._value,this.format.decimals),n=m(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)},e.prototype.subUnsafe=function(t){this._checkFormat(t);var r=m(this._value,this.format.decimals),n=m(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)},e.prototype.mulUnsafe=function(t){this._checkFormat(t);var r=m(this._value,this.format.decimals),n=m(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)},e.prototype.divUnsafe=function(t){this._checkFormat(t);var r=m(this._value,this.format.decimals),n=m(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)},e.prototype.floor=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(y.toFormat(r.format))),r},e.prototype.ceiling=function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(y.toFormat(r.format))),r},e.prototype.round=function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&a.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+f.substring(0,t),this.format),o=b.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(o).floor().divUnsafe(n)},e.prototype.isZero=function(){return"0.0"===this._value||"0"===this._value},e.prototype.isNegative=function(){return"-"===this._value[0]},e.prototype.toString=function(){return this._value},e.prototype.toHexString=function(e){if(null==e)return this._hex;e%8&&a.throwArgumentError("invalid byte width","width",e);var t=s.BigNumber.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,n.hexZeroPad)(t,e/8)},e.prototype.toUnsafeFloat=function(){return parseFloat(this.toString())},e.prototype.toFormat=function(t){return e.fromString(this._value,t)},e.fromValue=function(t,r,n){return null!=n||null==r||(0,s.isBigNumberish)(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(p(t,r),g.from(n))},e.fromString=function(t,r){null==r&&(r="fixed");var o=g.from(r),i=m(t,o.decimals);!o.signed&&i.lt(c)&&h("unsigned value cannot be negative","overflow","value",t);var a=null;o.signed?a=i.toTwos(o.width).toHexString():(a=i.toHexString(),a=(0,n.hexZeroPad)(a,o.width/8));var s=p(i,o.decimals);return new e(u,a,s,o)},e.fromBytes=function(t,r){null==r&&(r="fixed");var o=g.from(r);if((0,n.arrayify)(t).length>o.width/8)throw new Error("overflow");var i=s.BigNumber.from(t);o.signed&&(i=i.fromTwos(o.width));var a=i.toTwos((o.signed?0:1)+o.width).toHexString(),c=p(i,o.decimals);return new e(u,a,c,o)},e.from=function(t,r){if("string"==typeof t)return e.fromString(t,r);if((0,n.isBytes)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(e){if(e.code!==o.Logger.errors.INVALID_ARGUMENT)throw e}return a.throwArgumentError("invalid FixedNumber value","value",t)},e.isFixedNumber=function(e){return!(!e||!e._isFixedNumber)},e}();r.FixedNumber=v;var y=v.from(1),b=v.from("0.5")}}},{package:"@ethersproject/bignumber",file:"node_modules/@ethersproject/bignumber/lib/fixednumber.js"}],[410,{"./bignumber":408,"./fixednumber":409},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r._base36To16=r._base16To36=r.parseFixed=r.FixedNumber=r.FixedFormat=r.formatFixed=r.BigNumber=void 0;var n=e("./bignumber");Object.defineProperty(r,"BigNumber",{enumerable:!0,get:function(){return n.BigNumber}});var o=e("./fixednumber");Object.defineProperty(r,"formatFixed",{enumerable:!0,get:function(){return o.formatFixed}}),Object.defineProperty(r,"FixedFormat",{enumerable:!0,get:function(){return o.FixedFormat}}),Object.defineProperty(r,"FixedNumber",{enumerable:!0,get:function(){return o.FixedNumber}}),Object.defineProperty(r,"parseFixed",{enumerable:!0,get:function(){return o.parseFixed}});var i=e("./bignumber");Object.defineProperty(r,"_base16To36",{enumerable:!0,get:function(){return i._base16To36}}),Object.defineProperty(r,"_base36To16",{enumerable:!0,get:function(){return i._base36To16}})}}},{package:"@ethersproject/bignumber",file:"node_modules/@ethersproject/bignumber/lib/index.js"}],[4101,{"../../../../shared/modules/hexstring-utils":3435,"@ethereumjs/common":358,"@ethereumjs/tx":363,"ethereumjs-util":2231,lodash:2932},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){const t=function(e){return{...(0,n.omit)(e.txParams,"gas"),gasLimit:e.txParams.gas}}(e),r=function(e){return i.default.forCustomChain(i.Chain.Mainnet,{chainId:new o.BN((0,s.stripHexPrefix)(e.chainId),16),networkId:new o.BN(e.metamaskNetworkId,10),defaultHardfork:i.Hardfork.SpuriousDragon})}(e);return a.TransactionFactory.fromTxData(t,{common:r})};var n=e("lodash"),o=e("ethereumjs-util"),i=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=u(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}n.default=e,r&&r.set(e,n);return n}(e("@ethereumjs/common")),a=e("@ethereumjs/tx"),s=e("../../../../shared/modules/hexstring-utils");function u(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(u=function(e){return e?r:t})(e)}}}},{package:"$root$",file:"ui/helpers/utils/optimism/buildUnserializedTransaction.js"}],[4102,{"./buildUnserializedTransaction":4101,"@ethersproject/contracts":420,"@ethersproject/providers":459},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.default=async function(e,t,r){const n=Number(e),u=global.ethereumProvider?new i.Web3Provider(global.ethereumProvider,n):r;0;const c=new o.Contract("0x420000000000000000000000000000000000000F",s,u),l=(0,a.default)(t).serialize(),h=await c.getL1Fee(l);return null==h?void 0:h.toHexString()};var n,o=e("@ethersproject/contracts"),i=e("@ethersproject/providers"),a=(n=e("./buildUnserializedTransaction"))&&n.__esModule?n:{default:n};const s=[{inputs:[{internalType:"bytes",name:"_data",type:"bytes"}],name:"getL1Fee",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}]}}},{package:"$root$",file:"ui/helpers/utils/optimism/fetchEstimatedL1Fee.js"}],[4108,{"../../../shared/constants/labels":3407,"../../../shared/constants/network":3409,"../../../shared/modules/Numeric":3427,"../../../shared/modules/hexstring-utils":3435,"../constants/common":4068,"@metamask/assets-controllers":1055,"@metamask/slip44":1328,"bignumber.js":1853,bowser:1911,"ethereumjs-util":2231,"human-standard-token-abi":2687,lodash:2932,luxon:2947,"punycode/punycode":3042},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.addressSummary=function(e,t=10,r=4,n=!0){if(!e)return"";let o=(0,d.toChecksumHexAddress)(e);n||(o=(0,d.stripHexPrefix)(o));return o?`${o.slice(0,t)}...${o.slice(o.length-r)}`:"..."},r.bnGreaterThan=function(e,t){if(null===e||e===undefined||null===t||t===undefined)return null;return new i.default(e,10).gt(t,10)},r.bnGreaterThanEqualTo=function(e,t){if(null===e||e===undefined||null===t||t===undefined)return null;return new i.default(e,10).gte(t,10)},r.bnLessThan=function(e,t){if(null===e||e===undefined||null===t||t===undefined)return null;return new i.default(e,10).lt(t,10)},r.bnLessThanEqualTo=function(e,t){if(null===e||e===undefined||null===t||t===undefined)return null;return new i.default(e,10).lte(t,10)},r.checkExistingAddresses=function(e,t=[]){if(!e)return!1;return t.some((t=>t.address.toLowerCase()===e.toLowerCase()))},r.clearClipboard=function(){window.navigator.clipboard.writeText("")},r.coinTypeToProtocolName=function(e){var t;if("1"===String(e))return"Test Networks";return(null===(t=c.default[e])||void 0===t?void 0:t.name)||undefined},r.formatBalance=function(e,t,r=!0,n="ETH"){const o=r?A(e):e.split("."),i=o[0];let a=o[1],s="None";if(t===undefined)if("0"===i){if("0"!==a){const e=a.match(/^0*(.{2})/u);e&&(a=e[0]),s=`0.${a} ${n}`}}else s=`${i}.${a.slice(0,3)} ${n}`;else a+=Array(t).join("0"),s=`${i}.${a.slice(0,t)} ${n}`;return s},r.formatDate=function(e,t="M/d/y 'at' T"){if(!e)return"";return s.DateTime.fromMillis(e).toFormat(t)},r.formatDateWithYearContext=function(e,t="MMM d",r="MMM d, y"){if(!e)return"";const n=s.DateTime.fromMillis(e),o=s.DateTime.local();return n.toFormat(o.year===n.year?t:r)},r.getAccountByAddress=function(e=[],t){return e.find((({address:e})=>e===t))},r.getAssetImageURL=function(e,t){if(!e||!t||"string"!=typeof e)return"";if(e.startsWith("ipfs://"))return(0,u.getFormattedIpfsUrl)(t,e,!0);return e},r.getContractAtAddress=function(e){return global.eth.contract(o.default).at(e)},r.getIsBrowserDeprecated=function(e=h.default.getParser(window.navigator.userAgent)){return e.satisfies(g.OUTDATED_BROWSER_VERSIONS)??!1},r.getRandomFileName=function(){let e="";const t=[..."abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"],r=Math.floor(7*Math.random()+6);for(let n=0;n<r;n++)e+=t[Math.floor(Math.random()*t.length)];return e},r.getURL=_,r.getURLHost=function(e){var t;return(null===(t=_(e))||void 0===t?void 0:t.host)||""},r.getURLHostName=function(e){var t;return(null===(t=_(e))||void 0===t?void 0:t.hostname)||""},r.isDefaultMetaMaskChain=function(e){if(!e||e===f.CHAIN_IDS.MAINNET||e===f.CHAIN_IDS.GOERLI||e===f.CHAIN_IDS.SEPOLIA||e===f.CHAIN_IDS.LINEA_TESTNET||e===f.CHAIN_IDS.LOCALHOST)return!0;return!1},r.isExtensionUrl=function(e){const t=["chrome-extension:","moz-extension:"];if("string"==typeof e)for(const r of t)if(e.startsWith(r))return!0;if(null!=e&&e.protocol)return t.includes(e.protocol);return!1},r.isNullish=function(e){return null===e||e===undefined},r.isOriginContractAddress=function(e,t){if(!e||!t)return!1;return e.toLowerCase()===t.toLowerCase()},r.isValidDomainName=function(e){return null!==n.default.toASCII(e).toLowerCase().match(/^(?:[a-z0-9](?:[-a-z0-9]*[a-z0-9])?\.)+[a-z0-9][-a-z0-9]*[a-z0-9]$/u)},r.numericBalance=w,r.parseBalance=A,r.roundToDecimalPlacesRemovingExtraZeroes=function(e,t){if(e===undefined||null===e)return"";return new m.Numeric(new m.Numeric(e,10).toFixed(t),10).toNumber()},r.sanitizeString=r.sanitizeMessage=void 0,r.shortenAddress=function(e=""){if(e.length<p.TRUNCATED_NAME_CHAR_LIMIT)return e;return`${e.slice(0,p.TRUNCATED_ADDRESS_START_CHARS)}...${e.slice(-p.TRUNCATED_ADDRESS_END_CHARS)}`},r.stripHttpSchemes=function(e){return e.replace(/^https?:\/\//u,"")},r.stripHttpsScheme=E,r.stripHttpsSchemeWithoutPort=function(e){if(_(e).port)return e;return E(e)},r.toHumanReadableTime=void 0,r.valuesFor=function(e){if(!e)return[];return Object.keys(e).map((function(t){return e[t]}))};var n=b(e("punycode/punycode")),o=b(e("human-standard-token-abi")),i=b(e("bignumber.js")),a=y(e("ethereumjs-util")),s=e("luxon"),u=e("@metamask/assets-controllers"),c=b(e("@metamask/slip44")),l=y(e("lodash")),h=b(e("bowser")),f=e("../../../shared/constants/network"),d=e("../../../shared/modules/hexstring-utils"),p=e("../../../shared/constants/labels"),m=e("../../../shared/modules/Numeric"),g=e("../constants/common");function v(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(v=function(e){return e?r:t})(e)}function y(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=v(t);if(r&&r.has(e))return r.get(e);var n={},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}function b(e){return e&&e.__esModule?e:{default:e}}function w(e){if(!e)return new a.BN(0,16);const t=(0,d.stripHexPrefix)(e);return new a.BN(t,16)}function A(e){let t;const r=w(e),n=r.toString(),o=n.length>18?n.slice(0,n.length-18):"0";return t=`000000000000000000${r}`.slice(-18).replace(/0+$/u,""),""===t&&(t="0"),[o,t]}function E(e){return e.replace(/^https:\/\//u,"")}function _(e){try{return new URL(e)}catch(e){return""}}r.toHumanReadableTime=(e,t)=>{if(t===undefined||null===t)return"";const r=Math.ceil(t/1e3);return r<=90?e("gasTimingSecondsShort",[r]):r<=5400?e("gasTimingMinutesShort",[Math.ceil(r/60)]):e("gasTimingHoursShort",[Math.ceil(r/3600)])};const T=(()=>{const e=Array.from(new Array(32)).map(((e,t)=>"int"+8*(t+1))),t=Array.from(new Array(32)).map(((e,t)=>"uint"+8*(t+1))),r=Array.from(new Array(32)).map(((e,t)=>`bytes${t+1}`)),n=Array.from(new Array(32)).map(((e,t)=>"fixed"+8*(t+1))),o=Array.from(new Array(32)).map(((e,t)=>"ufixed"+8*(t+1))),i=Array.from(new Array(80)).map(((e,t)=>n.map((e=>`${e}x${t+1}`)))),a=Array.from(new Array(80)).map(((e,t)=>o.map((e=>`${e}x${t+1}`))));return["bool","address","string","bytes","int","uint","fixed","ufixed",...e,...t,...r,...i.flat(),...a.flat()]})(),P=(e,t,r)=>{if(!r)throw new Error("Invalid types definition");const n=t&&null!==t.match(/\[[[0-9]*\]*/u);var o;if(n)return{value:e.map((e=>P(e,(e=>e.replace(/\[[[0-9]*\]/u,""))(t),r))),type:t};if(o=t,T.includes(o))return{value:e,type:t};const i=n?(e=>e.replace(/\[[[0-9]*\]*/gu,""))(t):t,a=r[i];if(!a)throw new Error("Invalid primary type definition");const s={};return Object.keys(e).forEach((t=>{const n=Object.values(a).find((e=>e.name===t));n&&(s[t]=P(e[t],n.type,r))})),{value:s,type:t}};r.sanitizeMessage=P;r.sanitizeString=e=>{if(!e)return e;if(!l.isString(e))return e;return e.replace(/\u202E/giu,"\\u202E")}}}},{package:"$root$",file:"ui/helpers/utils/util.js"}],[411,{buffer:1942},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){!function(t,r){function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"==typeof t?t.exports=i:r.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:e("buffer").Buffer}catch(e){}function s(e,t){var r=e.charCodeAt(t);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+e)}function u(e,t,r){var n=s(e,r);return r-1>=t&&(n|=s(e,r-1)<<4),n}function c(e,t,r,o){for(var i=0,a=0,s=Math.min(e.length,r),u=t;u<s;u++){var c=e.charCodeAt(u)-48;i*=o,a=c>=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a<o,"Invalid character"),i+=a}return i}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(i.isBN=function(e){return e instanceof i||null!==e&&"object"==typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"==typeof e)return this._initNumber(e,t,r);if("object"==typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===t?this._parseHex(e,o,r):(this._parseBase(e,t,o),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,s=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<s&67108863,this.words[i+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,i++);return this._strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)o=u(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(e.length-t)%2==0?t+1:t;n<e.length;n+=2)o=u(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this._strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,s=Math.min(i,i-a)+r,u=0,l=r;l<s;l+=n)u=c(e,l,l+n,t),this.imuln(o),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var h=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)h*=t;this.imuln(h),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype._move=function(e){l(e,this)},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){i.prototype.inspect=h}else i.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<o|i)).toString(16);i=s>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),r=0!==i||a!==this.length-1?f[6-u.length]+u+r:u+r}for(0!==i&&(r=i.toString(16)+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var c=d[e],l=p[e];r="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(l).toString(e);r=(h=h.idivn(l)).isZero()?m+r:f[c-m.length]+m+r}for(this.isZero()&&(r="0"+r);r.length%t!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16,2)},a&&(i.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,s=67108863&a,u=a/67108864|0;r.words[0]=s;for(var c=1;c<n;c++){for(var l=u>>>26,h=67108863&u,f=Math.min(c,t.length-1),d=Math.max(0,c-e.length+1);d<=f;d++){var p=c-d|0;l+=(a=(o=0|e.words[p])*(i=0|t.words[d])+h)/67108864|0,h=67108863&a}r.words[c]=0|h,u=0|l}return 0!==u?r.words[c]=0|u:r.length--,r._strip()}i.prototype.toArrayLike=function(e,t,r){this._strip();var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,i);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,o),a},i.prototype._toArrayLikeLE=function(e,t){for(var r=0,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;e[r++]=255&a,r<e.length&&(e[r++]=a>>8&255),r<e.length&&(e[r++]=a>>16&255),6===i?(r<e.length&&(e[r++]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r<e.length)for(e[r++]=n;r<e.length;)e[r++]=0},i.prototype._toArrayLikeBE=function(e,t){for(var r=e.length-1,n=0,o=0,i=0;o<this.length;o++){var a=this.words[o]<<i|n;e[r--]=255&a,r>=0&&(e[r--]=a>>8&255),r>=0&&(e[r--]=a>>16&255),6===i?(r>=0&&(e[r--]=a>>24&255),n=0,i=0):(n=a>>>24,i+=2)}if(r>=0)for(e[r--]=n;r>=0;)e[r--]=0},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0==(8191&t)&&(r+=13,t>>>=13),0==(127&t)&&(r+=7,t>>>=7),0==(15&t)&&(r+=4,t>>>=4),0==(3&t)&&(r+=2,t>>>=2),0==(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},i.prototype.ior=function(e){return n(0==(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this._strip()},i.prototype.iand=function(e){return n(0==(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this._strip()},i.prototype.ixor=function(e){return n(0==(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"==typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this._strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"==typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this._strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)i=(t=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<r.length;a++)i=(t=(0|r.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this._strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,t,r){var n,o,i,a=e.words,s=t.words,u=r.words,c=0,l=0|a[0],h=8191&l,f=l>>>13,d=0|a[1],p=8191&d,m=d>>>13,g=0|a[2],v=8191&g,y=g>>>13,b=0|a[3],w=8191&b,A=b>>>13,E=0|a[4],_=8191&E,T=E>>>13,P=0|a[5],k=8191&P,S=P>>>13,O=0|a[6],N=8191&O,C=O>>>13,I=0|a[7],R=8191&I,j=I>>>13,M=0|a[8],x=8191&M,B=M>>>13,L=0|a[9],D=8191&L,F=L>>>13,H=0|s[0],U=8191&H,G=H>>>13,z=0|s[1],V=8191&z,K=z>>>13,W=0|s[2],q=8191&W,J=W>>>13,Z=0|s[3],Y=8191&Z,Q=Z>>>13,X=0|s[4],$=8191&X,ee=X>>>13,te=0|s[5],re=8191&te,ne=te>>>13,oe=0|s[6],ie=8191&oe,ae=oe>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],he=8191&le,fe=le>>>13,de=0|s[9],pe=8191&de,me=de>>>13;r.negative=e.negative^t.negative,r.length=19;var ge=(c+(n=Math.imul(h,U))|0)+((8191&(o=(o=Math.imul(h,G))+Math.imul(f,U)|0))<<13)|0;c=((i=Math.imul(f,G))+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(p,U),o=(o=Math.imul(p,G))+Math.imul(m,U)|0,i=Math.imul(m,G);var ve=(c+(n=n+Math.imul(h,V)|0)|0)+((8191&(o=(o=o+Math.imul(h,K)|0)+Math.imul(f,V)|0))<<13)|0;c=((i=i+Math.imul(f,K)|0)+(o>>>13)|0)+(ve>>>26)|0,ve&=67108863,n=Math.imul(v,U),o=(o=Math.imul(v,G))+Math.imul(y,U)|0,i=Math.imul(y,G),n=n+Math.imul(p,V)|0,o=(o=o+Math.imul(p,K)|0)+Math.imul(m,V)|0,i=i+Math.imul(m,K)|0;var ye=(c+(n=n+Math.imul(h,q)|0)|0)+((8191&(o=(o=o+Math.imul(h,J)|0)+Math.imul(f,q)|0))<<13)|0;c=((i=i+Math.imul(f,J)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(w,U),o=(o=Math.imul(w,G))+Math.imul(A,U)|0,i=Math.imul(A,G),n=n+Math.imul(v,V)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(y,V)|0,i=i+Math.imul(y,K)|0,n=n+Math.imul(p,q)|0,o=(o=o+Math.imul(p,J)|0)+Math.imul(m,q)|0,i=i+Math.imul(m,J)|0;var be=(c+(n=n+Math.imul(h,Y)|0)|0)+((8191&(o=(o=o+Math.imul(h,Q)|0)+Math.imul(f,Y)|0))<<13)|0;c=((i=i+Math.imul(f,Q)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(_,U),o=(o=Math.imul(_,G))+Math.imul(T,U)|0,i=Math.imul(T,G),n=n+Math.imul(w,V)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(A,V)|0,i=i+Math.imul(A,K)|0,n=n+Math.imul(v,q)|0,o=(o=o+Math.imul(v,J)|0)+Math.imul(y,q)|0,i=i+Math.imul(y,J)|0,n=n+Math.imul(p,Y)|0,o=(o=o+Math.imul(p,Q)|0)+Math.imul(m,Y)|0,i=i+Math.imul(m,Q)|0;var we=(c+(n=n+Math.imul(h,$)|0)|0)+((8191&(o=(o=o+Math.imul(h,ee)|0)+Math.imul(f,$)|0))<<13)|0;c=((i=i+Math.imul(f,ee)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(k,U),o=(o=Math.imul(k,G))+Math.imul(S,U)|0,i=Math.imul(S,G),n=n+Math.imul(_,V)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(T,V)|0,i=i+Math.imul(T,K)|0,n=n+Math.imul(w,q)|0,o=(o=o+Math.imul(w,J)|0)+Math.imul(A,q)|0,i=i+Math.imul(A,J)|0,n=n+Math.imul(v,Y)|0,o=(o=o+Math.imul(v,Q)|0)+Math.imul(y,Y)|0,i=i+Math.imul(y,Q)|0,n=n+Math.imul(p,$)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(m,$)|0,i=i+Math.imul(m,ee)|0;var Ae=(c+(n=n+Math.imul(h,re)|0)|0)+((8191&(o=(o=o+Math.imul(h,ne)|0)+Math.imul(f,re)|0))<<13)|0;c=((i=i+Math.imul(f,ne)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(N,U),o=(o=Math.imul(N,G))+Math.imul(C,U)|0,i=Math.imul(C,G),n=n+Math.imul(k,V)|0,o=(o=o+Math.imul(k,K)|0)+Math.imul(S,V)|0,i=i+Math.imul(S,K)|0,n=n+Math.imul(_,q)|0,o=(o=o+Math.imul(_,J)|0)+Math.imul(T,q)|0,i=i+Math.imul(T,J)|0,n=n+Math.imul(w,Y)|0,o=(o=o+Math.imul(w,Q)|0)+Math.imul(A,Y)|0,i=i+Math.imul(A,Q)|0,n=n+Math.imul(v,$)|0,o=(o=o+Math.imul(v,ee)|0)+Math.imul(y,$)|0,i=i+Math.imul(y,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(m,re)|0,i=i+Math.imul(m,ne)|0;var Ee=(c+(n=n+Math.imul(h,ie)|0)|0)+((8191&(o=(o=o+Math.imul(h,ae)|0)+Math.imul(f,ie)|0))<<13)|0;c=((i=i+Math.imul(f,ae)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,U),o=(o=Math.imul(R,G))+Math.imul(j,U)|0,i=Math.imul(j,G),n=n+Math.imul(N,V)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(C,V)|0,i=i+Math.imul(C,K)|0,n=n+Math.imul(k,q)|0,o=(o=o+Math.imul(k,J)|0)+Math.imul(S,q)|0,i=i+Math.imul(S,J)|0,n=n+Math.imul(_,Y)|0,o=(o=o+Math.imul(_,Q)|0)+Math.imul(T,Y)|0,i=i+Math.imul(T,Q)|0,n=n+Math.imul(w,$)|0,o=(o=o+Math.imul(w,ee)|0)+Math.imul(A,$)|0,i=i+Math.imul(A,ee)|0,n=n+Math.imul(v,re)|0,o=(o=o+Math.imul(v,ne)|0)+Math.imul(y,re)|0,i=i+Math.imul(y,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(m,ie)|0,i=i+Math.imul(m,ae)|0;var _e=(c+(n=n+Math.imul(h,ue)|0)|0)+((8191&(o=(o=o+Math.imul(h,ce)|0)+Math.imul(f,ue)|0))<<13)|0;c=((i=i+Math.imul(f,ce)|0)+(o>>>13)|0)+(_e>>>26)|0,_e&=67108863,n=Math.imul(x,U),o=(o=Math.imul(x,G))+Math.imul(B,U)|0,i=Math.imul(B,G),n=n+Math.imul(R,V)|0,o=(o=o+Math.imul(R,K)|0)+Math.imul(j,V)|0,i=i+Math.imul(j,K)|0,n=n+Math.imul(N,q)|0,o=(o=o+Math.imul(N,J)|0)+Math.imul(C,q)|0,i=i+Math.imul(C,J)|0,n=n+Math.imul(k,Y)|0,o=(o=o+Math.imul(k,Q)|0)+Math.imul(S,Y)|0,i=i+Math.imul(S,Q)|0,n=n+Math.imul(_,$)|0,o=(o=o+Math.imul(_,ee)|0)+Math.imul(T,$)|0,i=i+Math.imul(T,ee)|0,n=n+Math.imul(w,re)|0,o=(o=o+Math.imul(w,ne)|0)+Math.imul(A,re)|0,i=i+Math.imul(A,ne)|0,n=n+Math.imul(v,ie)|0,o=(o=o+Math.imul(v,ae)|0)+Math.imul(y,ie)|0,i=i+Math.imul(y,ae)|0,n=n+Math.imul(p,ue)|0,o=(o=o+Math.imul(p,ce)|0)+Math.imul(m,ue)|0,i=i+Math.imul(m,ce)|0;var Te=(c+(n=n+Math.imul(h,he)|0)|0)+((8191&(o=(o=o+Math.imul(h,fe)|0)+Math.imul(f,he)|0))<<13)|0;c=((i=i+Math.imul(f,fe)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(D,U),o=(o=Math.imul(D,G))+Math.imul(F,U)|0,i=Math.imul(F,G),n=n+Math.imul(x,V)|0,o=(o=o+Math.imul(x,K)|0)+Math.imul(B,V)|0,i=i+Math.imul(B,K)|0,n=n+Math.imul(R,q)|0,o=(o=o+Math.imul(R,J)|0)+Math.imul(j,q)|0,i=i+Math.imul(j,J)|0,n=n+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,Q)|0)+Math.imul(C,Y)|0,i=i+Math.imul(C,Q)|0,n=n+Math.imul(k,$)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(S,$)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(_,re)|0,o=(o=o+Math.imul(_,ne)|0)+Math.imul(T,re)|0,i=i+Math.imul(T,ne)|0,n=n+Math.imul(w,ie)|0,o=(o=o+Math.imul(w,ae)|0)+Math.imul(A,ie)|0,i=i+Math.imul(A,ae)|0,n=n+Math.imul(v,ue)|0,o=(o=o+Math.imul(v,ce)|0)+Math.imul(y,ue)|0,i=i+Math.imul(y,ce)|0,n=n+Math.imul(p,he)|0,o=(o=o+Math.imul(p,fe)|0)+Math.imul(m,he)|0,i=i+Math.imul(m,fe)|0;var Pe=(c+(n=n+Math.imul(h,pe)|0)|0)+((8191&(o=(o=o+Math.imul(h,me)|0)+Math.imul(f,pe)|0))<<13)|0;c=((i=i+Math.imul(f,me)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(D,V),o=(o=Math.imul(D,K))+Math.imul(F,V)|0,i=Math.imul(F,K),n=n+Math.imul(x,q)|0,o=(o=o+Math.imul(x,J)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,J)|0,n=n+Math.imul(R,Y)|0,o=(o=o+Math.imul(R,Q)|0)+Math.imul(j,Y)|0,i=i+Math.imul(j,Q)|0,n=n+Math.imul(N,$)|0,o=(o=o+Math.imul(N,ee)|0)+Math.imul(C,$)|0,i=i+Math.imul(C,ee)|0,n=n+Math.imul(k,re)|0,o=(o=o+Math.imul(k,ne)|0)+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,n=n+Math.imul(_,ie)|0,o=(o=o+Math.imul(_,ae)|0)+Math.imul(T,ie)|0,i=i+Math.imul(T,ae)|0,n=n+Math.imul(w,ue)|0,o=(o=o+Math.imul(w,ce)|0)+Math.imul(A,ue)|0,i=i+Math.imul(A,ce)|0,n=n+Math.imul(v,he)|0,o=(o=o+Math.imul(v,fe)|0)+Math.imul(y,he)|0,i=i+Math.imul(y,fe)|0;var ke=(c+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,me)|0)+Math.imul(m,pe)|0))<<13)|0;c=((i=i+Math.imul(m,me)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(D,q),o=(o=Math.imul(D,J))+Math.imul(F,q)|0,i=Math.imul(F,J),n=n+Math.imul(x,Y)|0,o=(o=o+Math.imul(x,Q)|0)+Math.imul(B,Y)|0,i=i+Math.imul(B,Q)|0,n=n+Math.imul(R,$)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(j,$)|0,i=i+Math.imul(j,ee)|0,n=n+Math.imul(N,re)|0,o=(o=o+Math.imul(N,ne)|0)+Math.imul(C,re)|0,i=i+Math.imul(C,ne)|0,n=n+Math.imul(k,ie)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,n=n+Math.imul(_,ue)|0,o=(o=o+Math.imul(_,ce)|0)+Math.imul(T,ue)|0,i=i+Math.imul(T,ce)|0,n=n+Math.imul(w,he)|0,o=(o=o+Math.imul(w,fe)|0)+Math.imul(A,he)|0,i=i+Math.imul(A,fe)|0;var Se=(c+(n=n+Math.imul(v,pe)|0)|0)+((8191&(o=(o=o+Math.imul(v,me)|0)+Math.imul(y,pe)|0))<<13)|0;c=((i=i+Math.imul(y,me)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(D,Y),o=(o=Math.imul(D,Q))+Math.imul(F,Y)|0,i=Math.imul(F,Q),n=n+Math.imul(x,$)|0,o=(o=o+Math.imul(x,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(j,re)|0,i=i+Math.imul(j,ne)|0,n=n+Math.imul(N,ie)|0,o=(o=o+Math.imul(N,ae)|0)+Math.imul(C,ie)|0,i=i+Math.imul(C,ae)|0,n=n+Math.imul(k,ue)|0,o=(o=o+Math.imul(k,ce)|0)+Math.imul(S,ue)|0,i=i+Math.imul(S,ce)|0,n=n+Math.imul(_,he)|0,o=(o=o+Math.imul(_,fe)|0)+Math.imul(T,he)|0,i=i+Math.imul(T,fe)|0;var Oe=(c+(n=n+Math.imul(w,pe)|0)|0)+((8191&(o=(o=o+Math.imul(w,me)|0)+Math.imul(A,pe)|0))<<13)|0;c=((i=i+Math.imul(A,me)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,$),o=(o=Math.imul(D,ee))+Math.imul(F,$)|0,i=Math.imul(F,ee),n=n+Math.imul(x,re)|0,o=(o=o+Math.imul(x,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(j,ie)|0,i=i+Math.imul(j,ae)|0,n=n+Math.imul(N,ue)|0,o=(o=o+Math.imul(N,ce)|0)+Math.imul(C,ue)|0,i=i+Math.imul(C,ce)|0,n=n+Math.imul(k,he)|0,o=(o=o+Math.imul(k,fe)|0)+Math.imul(S,he)|0,i=i+Math.imul(S,fe)|0;var Ne=(c+(n=n+Math.imul(_,pe)|0)|0)+((8191&(o=(o=o+Math.imul(_,me)|0)+Math.imul(T,pe)|0))<<13)|0;c=((i=i+Math.imul(T,me)|0)+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,n=Math.imul(D,re),o=(o=Math.imul(D,ne))+Math.imul(F,re)|0,i=Math.imul(F,ne),n=n+Math.imul(x,ie)|0,o=(o=o+Math.imul(x,ae)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,ae)|0,n=n+Math.imul(R,ue)|0,o=(o=o+Math.imul(R,ce)|0)+Math.imul(j,ue)|0,i=i+Math.imul(j,ce)|0,n=n+Math.imul(N,he)|0,o=(o=o+Math.imul(N,fe)|0)+Math.imul(C,he)|0,i=i+Math.imul(C,fe)|0;var Ce=(c+(n=n+Math.imul(k,pe)|0)|0)+((8191&(o=(o=o+Math.imul(k,me)|0)+Math.imul(S,pe)|0))<<13)|0;c=((i=i+Math.imul(S,me)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,ie),o=(o=Math.imul(D,ae))+Math.imul(F,ie)|0,i=Math.imul(F,ae),n=n+Math.imul(x,ue)|0,o=(o=o+Math.imul(x,ce)|0)+Math.imul(B,ue)|0,i=i+Math.imul(B,ce)|0,n=n+Math.imul(R,he)|0,o=(o=o+Math.imul(R,fe)|0)+Math.imul(j,he)|0,i=i+Math.imul(j,fe)|0;var Ie=(c+(n=n+Math.imul(N,pe)|0)|0)+((8191&(o=(o=o+Math.imul(N,me)|0)+Math.imul(C,pe)|0))<<13)|0;c=((i=i+Math.imul(C,me)|0)+(o>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,n=Math.imul(D,ue),o=(o=Math.imul(D,ce))+Math.imul(F,ue)|0,i=Math.imul(F,ce),n=n+Math.imul(x,he)|0,o=(o=o+Math.imul(x,fe)|0)+Math.imul(B,he)|0,i=i+Math.imul(B,fe)|0;var Re=(c+(n=n+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,me)|0)+Math.imul(j,pe)|0))<<13)|0;c=((i=i+Math.imul(j,me)|0)+(o>>>13)|0)+(Re>>>26)|0,Re&=67108863,n=Math.imul(D,he),o=(o=Math.imul(D,fe))+Math.imul(F,he)|0,i=Math.imul(F,fe);var je=(c+(n=n+Math.imul(x,pe)|0)|0)+((8191&(o=(o=o+Math.imul(x,me)|0)+Math.imul(B,pe)|0))<<13)|0;c=((i=i+Math.imul(B,me)|0)+(o>>>13)|0)+(je>>>26)|0,je&=67108863;var Me=(c+(n=Math.imul(D,pe))|0)+((8191&(o=(o=Math.imul(D,me))+Math.imul(F,pe)|0))<<13)|0;return c=((i=Math.imul(F,me))+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,u[0]=ge,u[1]=ve,u[2]=ye,u[3]=be,u[4]=we,u[5]=Ae,u[6]=Ee,u[7]=_e,u[8]=Te,u[9]=Pe,u[10]=ke,u[11]=Se,u[12]=Oe,u[13]=Ne,u[14]=Ce,u[15]=Ie,u[16]=Re,u[17]=je,u[18]=Me,0!==c&&(u[19]=c,r.length++),r};function v(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var s=67108863&n,u=Math.min(i,t.length-1),c=Math.max(0,i-e.length+1);c<=u;c++){var l=i-c,h=(0|e.words[l])*(0|t.words[c]),f=67108863&h;s=67108863&(f=f+s|0),o+=(a=(a=a+(h/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}r.words[i]=s,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r._strip()}function y(e,t,r){return v(e,t,r)}function b(e,t){this.x=e,this.y=t}Math.imul||(g=m),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,t):r<63?m(this,e,t):r<1024?v(this,e,t):y(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},b.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},b.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a<i;a++)n[a]=t[e[a]],o[a]=r[e[a]]},b.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var a=1;a<o;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<o;l+=s)for(var h=u,f=c,d=0;d<a;d++){var p=r[l+d],m=n[l+d],g=r[l+d+a],v=n[l+d+a],y=h*g-f*v;v=h*v+f*g,g=y,r[l+d]=p+g,n[l+d]=m+v,r[l+d+a]=p-g,n[l+d+a]=m-v,d!==s&&(y=u*h-c*f,f=u*f+c*h,h=y)}},b.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},b.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},b.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},b.prototype.convert13b=function(e,t,r,o){for(var i=0,a=0;a<t;a++)i+=0|e[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<o;++a)r[a]=0;n(0===i),n(0==(-8192&i))},b.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},b.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),s=new Array(n),u=new Array(n),c=new Array(n),l=new Array(n),h=new Array(n),f=r.words;f.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,c,n),this.transform(a,i,s,u,n,o),this.transform(c,i,l,h,n,o);for(var d=0;d<n;d++){var p=s[d]*l[d]-u[d]*h[d];u[d]=s[d]*h[d]+u[d]*l[d],s[d]=p}return this.conjugate(s,u,n),this.transform(s,u,f,i,n,o),this.conjugate(f,i,n),this.normalize13b(f,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r._strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),y(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){var t=e<0;t&&(e=-e),n("number"==typeof e),n(e<67108864);for(var r=0,o=0;o<this.length;o++){var i=(0|this.words[o])*e,a=(67108863&i)+(67108863&r);r>>=26,r+=i/67108864|0,r+=a>>>26,this.words[o]=67108863&a}return 0!==r&&(this.words[o]=r,this.length++),t?this.ineg():this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=e.words[n]>>>o&1}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){n("number"==typeof e&&e>=0);var t,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&i,u=(0|this.words[t])-s<<r;this.words[t]=u|a,a=s>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this._strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var o;n("number"==typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),s=67108863^67108863>>>i<<i,u=r;if(o-=a,o=Math.max(0,o),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var h=0|this.words[c];this.words[c]=l<<26-i|h>>>i,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<<t;return!(this.length<=r)&&!!(this.words[r]&o)},i.prototype.imaskn=function(e){n("number"==typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this._strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"==typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"==typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var o,i,a=e.length+r;this._expand(a);var s=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+s;var u=(0|e.words[o])*t;s=((i-=67108863&u)>>26)-(u/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)s=(i=(0|this.words[o+r])+s)>>26,this.words[o+r]=67108863&i;if(0===s)return this._strip();for(n(-1===s),s=0,o=0;o<this.length;o++)s=(i=-(0|this.words[o])+s)>>26,this.words[o]=67108863&i;return this.negative=1,this._strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,a=0|o.words[o.length-1];0!==(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var s,u=n.length-o.length;if("mod"!==t){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=n.clone()._ishlnsubmul(o,1,u);0===l.negative&&(n=l,s&&(s.words[u]=1));for(var h=u-1;h>=0;h--){var f=67108864*(0|n.words[o.length+h])+(0|n.words[o.length+h-1]);for(f=Math.min(f/a|0,67108863),n._ishlnsubmul(o,f,h);0!==n.negative;)f--,n.negative=0,n._ishlnsubmul(o,1,h),n.isZero()||(n.negative^=1);s&&(s.words[h]=f)}return s&&s._strip(),n._strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:s||null,mod:n}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(o=s.div.neg()),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modrn(e.words[0]))}:this._wordDiv(e,t);var o,a,s},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modrn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=(1<<26)%e,o=0,i=this.length-1;i>=0;i--)o=(r*o+(0|this.words[i]))%e;return t?-o:o},i.prototype.modn=function(e){return this.modrn(e)},i.prototype.idivn=function(e){var t=e<0;t&&(e=-e),n(e<=67108863);for(var r=0,o=this.length-1;o>=0;o--){var i=(0|this.words[o])+67108864*r;this.words[o]=i/e|0,r=i%e}return this._strip(),t?this.ineg():this},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=t.clone();!t.isZero();){for(var f=0,d=1;0==(t.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(t.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,m=1;0==(r.words[0]&m)&&p<26;++p,m<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(s),a.isub(u)):(r.isub(t),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,f=1;0==(r.words[0]&f)&&h<26;++h,f<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(s)):(r.isub(t),s.isub(a))}return(o=0===t.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"==typeof e);var t=e%26,r=(e-t)/26,o=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var s=0|this.words[a];i=(s+=i)>>>26,s&=67108863,this.words[a]=s}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new k(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function A(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){A.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function _(){A.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function T(){A.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function P(){A.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}A.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},A.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):r.strip!==undefined?r.strip():r._strip(),r},A.prototype.split=function(e,t){e.iushrn(this.n,0,t)},A.prototype.imulK=function(e){return e.imul(this.k)},o(E,A),E.prototype.split=function(e,t){for(var r=4194303,n=Math.min(e.length,9),o=0;o<n;o++)t.words[o]=e.words[o];if(t.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var i=e.words[9];for(t.words[t.length++]=i&r,o=10;o<e.length;o++){var a=0|e.words[o];e.words[o-10]=(a&r)<<4|i>>>22,i=a}i>>>=22,e.words[o-10]=i,0===i&&e.length>10?e.length-=10:e.length-=9},E.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(_,A),o(T,A),o(P,A),P.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new E;else if("p224"===e)t=new _;else if("p192"===e)t=new T;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new P}return w[e]=t,t},k.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,t){n(0==(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},k.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},k.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},k.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},k.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},k.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},k.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2==1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),f=this.pow(e,o.addn(1).iushrn(1)),d=this.pow(e,o),p=a;0!==d.cmp(s);){for(var m=d,g=0;0!==m.cmp(s);g++)m=m.redSqr();n(g<p);var v=this.pow(h,new i(1).iushln(p-g-1));f=f.redMul(v),h=v.redSqr(),d=d.redMul(h),p=g}return f},k.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},k.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),n=t.length-1;n>=0;n--){for(var c=t.words[n],l=u-1;l>=0;l--){var h=c>>l&1;o!==r[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===n&&0===l)&&(o=this.mul(o,r[a]),s=0,a=0)):s=0}u=26}return o},k.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},k.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},o(S,k),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(void 0===t||t,this)}}},{package:"@ethersproject/bignumber>bn.js",file:"node_modules/@ethersproject/bignumber/node_modules/bn.js/lib/bn.js"}],[412,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="bytes/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/bytes",file:"node_modules/@ethersproject/bytes/lib/_version.js"}],[413,{"./_version":412,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.joinSignature=r.splitSignature=r.hexZeroPad=r.hexStripZeros=r.hexValue=r.hexConcat=r.hexDataSlice=r.hexDataLength=r.hexlify=r.isHexString=r.zeroPad=r.stripZeros=r.concat=r.arrayify=r.isBytes=r.isBytesLike=void 0;var n=e("@ethersproject/logger"),o=e("./_version"),i=new n.Logger(o.version);function a(e){return!!e.toHexString}function s(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return s(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function u(e){return p(e)&&!(e.length%2)||l(e)}function c(e){return"number"==typeof e&&e==e&&e%1==0}function l(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"==typeof e)return!1;if(!c(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var r=e[t];if(!c(r)||r<0||r>=256)return!1}return!0}function h(e,t){if(t||(t={}),"number"==typeof e){i.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),s(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e)&&(e=e.toHexString()),p(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0"+n:"right"===t.hexPad?n+="0":i.throwArgumentError("hex data is odd-length","value",e));r=[];for(var o=0;o<n.length;o+=2)r.push(parseInt(n.substring(o,o+2),16));return s(new Uint8Array(r))}return l(e)?s(new Uint8Array(e)):i.throwArgumentError("invalid arrayify value","value",e)}function f(e){var t=e.map((function(e){return h(e)})),r=t.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(r);return t.reduce((function(e,t){return n.set(t,e),e+t.length}),0),s(n)}function d(e,t){(e=h(e)).length>t&&i.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),s(r)}function p(e,t){return!("string"!=typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}r.isBytesLike=u,r.isBytes=l,r.arrayify=h,r.concat=f,r.stripZeros=function(e){var t=h(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t},r.zeroPad=d,r.isHexString=p;var m="0123456789abcdef";function g(e,t){if(t||(t={}),"number"==typeof e){i.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r=m[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"==typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"==typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),a(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":i.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(l(e)){for(var n="0x",o=0;o<e.length;o++){var s=e[o];n+=m[(240&s)>>4]+m[15&s]}return n}return i.throwArgumentError("invalid hexlify value","value",e)}function v(e){"string"!=typeof e&&(e=g(e)),p(e)||i.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function y(e,t){for("string"!=typeof e?e=g(e):p(e)||i.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&i.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function b(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(u(e)){var r=h(e);64===r.length?(t.v=27+(r[32]>>7),r[32]&=127,t.r=g(r.slice(0,32)),t.s=g(r.slice(32,64))):65===r.length?(t.r=g(r.slice(0,32)),t.s=g(r.slice(32,64)),t.v=r[64]):i.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:i.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=g(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=d(h(t._vs),32);t._vs=g(n);var o=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&i.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=g(n);null==t.s?t.s=a:t.s!==a&&i.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?i.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var s=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==s&&i.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=y(t.r,32):i.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=y(t.s,32):i.throwArgumentError("signature missing or invalid s","signature",e);var c=h(t.s);c[0]>=128&&i.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(c[0]|=128);var l=g(c);t._vs&&(p(t._vs)||i.throwArgumentError("signature invalid _vs","signature",e),t._vs=y(t._vs,32)),null==t._vs?t._vs=l:t._vs!==l&&i.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}r.hexlify=g,r.hexDataLength=function(e){if("string"!=typeof e)e=g(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2},r.hexDataSlice=function(e,t,r){return"string"!=typeof e?e=g(e):(!p(e)||e.length%2)&&i.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)},r.hexConcat=function(e){var t="0x";return e.forEach((function(e){t+=g(e).substring(2)})),t},r.hexValue=function(e){var t=v(g(e,{hexPad:"left"}));return"0x"===t?"0x0":t},r.hexStripZeros=v,r.hexZeroPad=y,r.splitSignature=b,r.joinSignature=function(e){return g(f([(e=b(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}}}},{package:"@ethersproject/abi>@ethersproject/bytes",file:"node_modules/@ethersproject/bytes/lib/index.js"}],[414,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.AddressZero=void 0,r.AddressZero="0x0000000000000000000000000000000000000000"}}},{package:"@ethersproject/abi>@ethersproject/constants",file:"node_modules/@ethersproject/constants/lib/addresses.js"}],[415,{"@ethersproject/bignumber":410},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.MaxInt256=r.MinInt256=r.MaxUint256=r.WeiPerEther=r.Two=r.One=r.Zero=r.NegativeOne=void 0;var n=e("@ethersproject/bignumber"),o=n.BigNumber.from(-1);r.NegativeOne=o;var i=n.BigNumber.from(0);r.Zero=i;var a=n.BigNumber.from(1);r.One=a;var s=n.BigNumber.from(2);r.Two=s;var u=n.BigNumber.from("1000000000000000000");r.WeiPerEther=u;var c=n.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");r.MaxUint256=c;var l=n.BigNumber.from("-0x8000000000000000000000000000000000000000000000000000000000000000");r.MinInt256=l;var h=n.BigNumber.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");r.MaxInt256=h}}},{package:"@ethersproject/abi>@ethersproject/constants",file:"node_modules/@ethersproject/constants/lib/bignumbers.js"}],[416,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.HashZero=void 0,r.HashZero="0x0000000000000000000000000000000000000000000000000000000000000000"}}},{package:"@ethersproject/abi>@ethersproject/constants",file:"node_modules/@ethersproject/constants/lib/hashes.js"}],[417,{"./addresses":414,"./bignumbers":415,"./hashes":416,"./strings":418},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EtherSymbol=r.HashZero=r.MaxInt256=r.MinInt256=r.MaxUint256=r.WeiPerEther=r.Two=r.One=r.Zero=r.NegativeOne=r.AddressZero=void 0;var n=e("./addresses");Object.defineProperty(r,"AddressZero",{enumerable:!0,get:function(){return n.AddressZero}});var o=e("./bignumbers");Object.defineProperty(r,"NegativeOne",{enumerable:!0,get:function(){return o.NegativeOne}}),Object.defineProperty(r,"Zero",{enumerable:!0,get:function(){return o.Zero}}),Object.defineProperty(r,"One",{enumerable:!0,get:function(){return o.One}}),Object.defineProperty(r,"Two",{enumerable:!0,get:function(){return o.Two}}),Object.defineProperty(r,"WeiPerEther",{enumerable:!0,get:function(){return o.WeiPerEther}}),Object.defineProperty(r,"MaxUint256",{enumerable:!0,get:function(){return o.MaxUint256}}),Object.defineProperty(r,"MinInt256",{enumerable:!0,get:function(){return o.MinInt256}}),Object.defineProperty(r,"MaxInt256",{enumerable:!0,get:function(){return o.MaxInt256}});var i=e("./hashes");Object.defineProperty(r,"HashZero",{enumerable:!0,get:function(){return i.HashZero}});var a=e("./strings");Object.defineProperty(r,"EtherSymbol",{enumerable:!0,get:function(){return a.EtherSymbol}})}}},{package:"@ethersproject/abi>@ethersproject/constants",file:"node_modules/@ethersproject/constants/lib/index.js"}],[418,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.EtherSymbol=void 0,r.EtherSymbol="Ξ"}}},{package:"@ethersproject/abi>@ethersproject/constants",file:"node_modules/@ethersproject/constants/lib/strings.js"}],[419,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="contracts/5.7.0"}}},{package:"@ethersproject/contracts",file:"node_modules/@ethersproject/contracts/lib/_version.js"}],[420,{"./_version":419,"@ethersproject/abi":396,"@ethersproject/abstract-provider":399,"@ethersproject/abstract-signer":401,"@ethersproject/address":403,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/transactions":489},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__spreadArray||function(e,t,r){if(r||2===arguments.length)for(var n,o=0,i=t.length;o<i;o++)!n&&o in t||(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))};Object.defineProperty(r,"__esModule",{value:!0}),r.ContractFactory=r.Contract=r.BaseContract=void 0;var u=e("@ethersproject/abi"),c=e("@ethersproject/abstract-provider"),l=e("@ethersproject/abstract-signer"),h=e("@ethersproject/address"),f=e("@ethersproject/bignumber"),d=e("@ethersproject/bytes"),p=e("@ethersproject/properties"),m=e("@ethersproject/transactions"),g=e("@ethersproject/logger"),v=e("./_version"),y=new g.Logger(v.version),b={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function w(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return[4,t];case 1:"string"!=typeof(r=o.sent())&&y.throwArgumentError("invalid address or ENS name","name",r);try{return[2,(0,h.getAddress)(r)]}catch(e){}return e||y.throwError("a provider or signer is needed to resolve ENS names",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),[4,e.resolveName(r)];case 2:return null==(n=o.sent())&&y.throwArgumentError("resolver or addr is not configured for ENS name","name",r),[2,n]}}))}))}function A(e,t,r){return i(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return Array.isArray(r)?[4,Promise.all(r.map((function(r,n){return A(e,Array.isArray(t)?t[n]:t[r.name],r)})))]:[3,2];case 1:case 3:case 5:case 7:return[2,n.sent()];case 2:return"address"!==r.type?[3,4]:[4,w(e,t)];case 4:return"tuple"!==r.type?[3,6]:[4,A(e,t,r.components)];case 6:return"array"!==r.baseType?[3,8]:Array.isArray(t)?[4,Promise.all(t.map((function(t){return A(e,t,r.arrayChildren)})))]:[2,Promise.reject(y.makeError("invalid value for array",g.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t}))];case 8:return[2,t]}}))}))}function E(e,t,r){return i(this,void 0,void 0,(function(){var n,o,s,u,c,l,v,b,E,_,T=this;return a(this,(function(P){switch(P.label){case 0:return n={},r.length===t.inputs.length+1&&"object"==typeof r[r.length-1]&&(n=(0,p.shallowCopy)(r.pop())),y.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?n.from?n.from=(0,p.resolveProperties)({override:w(e.signer,n.from),signer:e.signer.getAddress()}).then((function(e){return i(T,void 0,void 0,(function(){return a(this,(function(t){return(0,h.getAddress)(e.signer)!==e.override&&y.throwError("Contract with a Signer cannot override from",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),[2,e.override]}))}))})):n.from=e.signer.getAddress():n.from&&(n.from=w(e.provider,n.from)),[4,(0,p.resolveProperties)({args:A(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:(0,p.resolveProperties)(n)||{}})];case 1:if(o=P.sent(),s=e.interface.encodeFunctionData(t,o.args),u={data:s,to:o.address},null!=(c=o.overrides).nonce&&(u.nonce=f.BigNumber.from(c.nonce).toNumber()),null!=c.gasLimit&&(u.gasLimit=f.BigNumber.from(c.gasLimit)),null!=c.gasPrice&&(u.gasPrice=f.BigNumber.from(c.gasPrice)),null!=c.maxFeePerGas&&(u.maxFeePerGas=f.BigNumber.from(c.maxFeePerGas)),null!=c.maxPriorityFeePerGas&&(u.maxPriorityFeePerGas=f.BigNumber.from(c.maxPriorityFeePerGas)),null!=c.from&&(u.from=c.from),null!=c.type&&(u.type=c.type),null!=c.accessList&&(u.accessList=(0,m.accessListify)(c.accessList)),null==u.gasLimit&&null!=t.gas){for(l=21e3,v=(0,d.arrayify)(s),b=0;b<v.length;b++)l+=4,v[b]&&(l+=64);u.gasLimit=f.BigNumber.from(t.gas).add(l)}return c.value&&((E=f.BigNumber.from(c.value)).isZero()||t.payable||y.throwError("non-payable method cannot override value",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:n.value}),u.value=E),c.customData&&(u.customData=(0,p.shallowCopy)(c.customData)),c.ccipReadEnabled&&(u.ccipReadEnabled=!!c.ccipReadEnabled),delete n.nonce,delete n.gasLimit,delete n.gasPrice,delete n.from,delete n.value,delete n.type,delete n.accessList,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.customData,delete n.ccipReadEnabled,(_=Object.keys(n).filter((function(e){return null!=n[e]}))).length&&y.throwError("cannot override "+_.map((function(e){return JSON.stringify(e)})).join(","),g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:_}),[2,u]}}))}))}function _(e,t){var r=t.wait.bind(t);t.wait=function(t){return r(t).then((function(t){return t.events=t.logs.map((function(r){var n=(0,p.deepCopy)(r),o=null;try{o=e.interface.parseLog(r)}catch(e){}return o&&(n.args=o.args,n.decode=function(t,r){return e.interface.decodeEventLog(o.eventFragment,t,r)},n.event=o.name,n.eventSignature=o.signature),n.removeListener=function(){return e.provider},n.getBlock=function(){return e.provider.getBlock(t.blockHash)},n.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(t)},n})),t}))}}function T(e,t,r){var n=e.signer||e.provider;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return i(this,void 0,void 0,(function(){var i,s,u,c,l;return a(this,(function(a){switch(a.label){case 0:return i=undefined,o.length!==t.inputs.length+1||"object"!=typeof o[o.length-1]?[3,3]:null==(s=(0,p.shallowCopy)(o.pop())).blockTag?[3,2]:[4,s.blockTag];case 1:i=a.sent(),a.label=2;case 2:delete s.blockTag,o.push(s),a.label=3;case 3:return null==e.deployTransaction?[3,5]:[4,e._deployed(i)];case 4:a.sent(),a.label=5;case 5:return[4,E(e,t,o)];case 6:return u=a.sent(),[4,n.call(u,i)];case 7:c=a.sent();try{return l=e.interface.decodeFunctionResult(t,c),r&&1===t.outputs.length&&(l=l[0]),[2,l]}catch(t){throw t.code===g.Logger.errors.CALL_EXCEPTION&&(t.address=e.address,t.args=o,t.transaction=u),t}return[2]}}))}))}}function P(e,t,r){return t.constant?T(e,t,r):function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return e.signer||y.throwError("sending a transaction requires a signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction?[3,2]:[4,e._deployed()];case 1:i.sent(),i.label=2;case 2:return[4,E(e,t,r)];case 3:return n=i.sent(),[4,e.signer.sendTransaction(n)];case 4:return o=i.sent(),_(e,o),[2,o]}}))}))}}(e,t)}function k(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var S=function(){function e(e,t){(0,p.defineReadOnly)(this,"tag",e),(0,p.defineReadOnly)(this,"filter",t),this._listeners=[]}return e.prototype.addListener=function(e,t){this._listeners.push({listener:e,once:t})},e.prototype.removeListener=function(e){var t=!1;this._listeners=this._listeners.filter((function(r){return!(!t&&r.listener===e)||(t=!0,!1)}))},e.prototype.removeAllListeners=function(){this._listeners=[]},e.prototype.listeners=function(){return this._listeners.map((function(e){return e.listener}))},e.prototype.listenerCount=function(){return this._listeners.length},e.prototype.run=function(e){var t=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=e.slice();return setTimeout((function(){r.listener.apply(t,n)}),0),!r.once})),r},e.prototype.prepareEvent=function(e){},e.prototype.getEmit=function(e){return[e]},e}(),O=function(e){function t(){return e.call(this,"error",null)||this}return o(t,e),t}(S),N=function(e){function t(t,r,n,o){var i,a={address:t},s=r.getEventTopic(n);return o?(s!==o[0]&&y.throwArgumentError("topic mismatch","topics",o),a.topics=o.slice()):a.topics=[s],i=e.call(this,k(a),a)||this,(0,p.defineReadOnly)(i,"address",t),(0,p.defineReadOnly)(i,"interface",r),(0,p.defineReadOnly)(i,"fragment",n),i}return o(t,e),t.prototype.prepareEvent=function(t){var r=this;e.prototype.prepareEvent.call(this,t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=function(e,t){return r.interface.decodeEventLog(r.fragment,e,t)};try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}},t.prototype.getEmit=function(e){var t=(0,u.checkResultErrors)(e.args);if(t.length)throw t[0].error;var r=(e.args||[]).slice();return r.push(e),r},t}(S),C=function(e){function t(t,r){var n=e.call(this,"*",{address:t})||this;return(0,p.defineReadOnly)(n,"address",t),(0,p.defineReadOnly)(n,"interface",r),n}return o(t,e),t.prototype.prepareEvent=function(t){var r=this;e.prototype.prepareEvent.call(this,t);try{var n=this.interface.parseLog(t);t.event=n.name,t.eventSignature=n.signature,t.decode=function(e,t){return r.interface.decodeEventLog(n.eventFragment,e,t)},t.args=n.args}catch(e){}},t}(S),I=function(){function e(e,t,r){var n=this.constructor,o=this;(0,p.defineReadOnly)(this,"interface",(0,p.getStatic)(n,"getInterface")(t)),null==r?((0,p.defineReadOnly)(this,"provider",null),(0,p.defineReadOnly)(this,"signer",null)):l.Signer.isSigner(r)?((0,p.defineReadOnly)(this,"provider",r.provider||null),(0,p.defineReadOnly)(this,"signer",r)):c.Provider.isProvider(r)?((0,p.defineReadOnly)(this,"provider",r),(0,p.defineReadOnly)(this,"signer",null)):y.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,p.defineReadOnly)(this,"callStatic",{}),(0,p.defineReadOnly)(this,"estimateGas",{}),(0,p.defineReadOnly)(this,"functions",{}),(0,p.defineReadOnly)(this,"populateTransaction",{}),(0,p.defineReadOnly)(this,"filters",{});var s={};if(Object.keys(this.interface.events).forEach((function(e){var t=o.interface.events[e];(0,p.defineReadOnly)(o.filters,e,(function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return{address:o.address,topics:o.interface.encodeFilterTopics(t,e)}})),s[t.name]||(s[t.name]=[]),s[t.name].push(e)})),Object.keys(s).forEach((function(e){var t=s[e];1===t.length?(0,p.defineReadOnly)(o.filters,e,o.filters[t[0]]):y.warn("Duplicate definition of "+e+" ("+t.join(", ")+")")})),(0,p.defineReadOnly)(this,"_runningEvents",{}),(0,p.defineReadOnly)(this,"_wrappedEmits",{}),null==e&&y.throwArgumentError("invalid contract address or ENS name","addressOrName",e),(0,p.defineReadOnly)(this,"address",e),this.provider)(0,p.defineReadOnly)(this,"resolvedAddress",w(this.provider,e));else try{(0,p.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,h.getAddress)(e)))}catch(e){y.throwError("provider is required to use ENS name as contract address",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((function(e){}));var u={},f={};Object.keys(this.interface.functions).forEach((function(e){var t=o.interface.functions[e];if(f[e])y.warn("Duplicate ABI entry for "+JSON.stringify(e));else{f[e]=!0;var r=t.name;u["%"+r]||(u["%"+r]=[]),u["%"+r].push(e),null==o[e]&&(0,p.defineReadOnly)(o,e,P(o,t,!0)),null==o.functions[e]&&(0,p.defineReadOnly)(o.functions,e,P(o,t,!1)),null==o.callStatic[e]&&(0,p.defineReadOnly)(o.callStatic,e,T(o,t,!0)),null==o.populateTransaction[e]&&(0,p.defineReadOnly)(o.populateTransaction,e,function(e,t){return function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return E(e,t,r)}}(o,t)),null==o.estimateGas[e]&&(0,p.defineReadOnly)(o.estimateGas,e,function(e,t){var r=e.signer||e.provider;return function(){for(var n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];return i(this,void 0,void 0,(function(){var o;return a(this,(function(i){switch(i.label){case 0:return r||y.throwError("estimate require a provider or signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),[4,E(e,t,n)];case 1:return o=i.sent(),[4,r.estimateGas(o)];case 2:return[2,i.sent()]}}))}))}}(o,t))}})),Object.keys(u).forEach((function(e){var t=u[e];if(!(t.length>1)){e=e.substring(1);var r=t[0];try{null==o[e]&&(0,p.defineReadOnly)(o,e,o[r])}catch(e){}null==o.functions[e]&&(0,p.defineReadOnly)(o.functions,e,o.functions[r]),null==o.callStatic[e]&&(0,p.defineReadOnly)(o.callStatic,e,o.callStatic[r]),null==o.populateTransaction[e]&&(0,p.defineReadOnly)(o.populateTransaction,e,o.populateTransaction[r]),null==o.estimateGas[e]&&(0,p.defineReadOnly)(o.estimateGas,e,o.estimateGas[r])}}))}return e.getContractAddress=function(e){return(0,h.getContractAddress)(e)},e.getInterface=function(e){return u.Interface.isInterface(e)?e:new u.Interface(e)},e.prototype.deployed=function(){return this._deployed()},e.prototype._deployed=function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&y.throwError("contract not deployed",g.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise},e.prototype.fallback=function(e){var t=this;this.signer||y.throwError("sending a transactions require a signer",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=(0,p.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=r[e]&&y.throwError("cannot override "+e,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))},e.prototype.connect=function(e){"string"==typeof e&&(e=new l.VoidSigner(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,p.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t},e.prototype.attach=function(e){return new this.constructor(e,this.interface,this.signer||this.provider)},e.isIndexed=function(e){return u.Indexed.isIndexed(e)},e.prototype._normalizeRunningEvent=function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e},e.prototype._getRunningEvent=function(e){if("string"==typeof e){if("error"===e)return this._normalizeRunningEvent(new O);if("event"===e)return this._normalizeRunningEvent(new S("event",null));if("*"===e)return this._normalizeRunningEvent(new C(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new N(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0];if("string"!=typeof r)throw new Error("invalid topic");t=this.interface.getEvent(r);return this._normalizeRunningEvent(new N(this.address,this.interface,t,e.topics))}catch(e){}var n={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new S(k(n),n))}return this._normalizeRunningEvent(new C(this.address,this.interface))},e.prototype._checkRunningEvents=function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}},e.prototype._wrapEvent=function(e,t,r){var n=this,o=(0,p.deepCopy)(t);return o.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},o.getBlock=function(){return n.provider.getBlock(t.blockHash)},o.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},o.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(o),o},e.prototype._addEventListener=function(e,t,r){var n=this;if(this.provider||y.throwError("events require a provider or a signer with a provider",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var o=function(r){var o=n._wrapEvent(e,r,t);if(null==o.decodeError)try{var i=e.getEmit(o);n.emit.apply(n,s([e.filter],i,!1))}catch(e){o.decodeError=e.error}null!=e.filter&&n.emit("event",o),null!=o.decodeError&&n.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=o,null!=e.filter&&this.provider.on(e.filter,o)}},e.prototype.queryFilter=function(e,t,r){var n=this,o=this._getRunningEvent(e),i=(0,p.shallowCopy)(o.filter);return"string"==typeof t&&(0,d.isHexString)(t,32)?(null!=r&&y.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((function(e){return e.map((function(e){return n._wrapEvent(o,e,null)}))}))},e.prototype.on=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this},e.prototype.once=function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this},e.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];if(!this.provider)return!1;var n=this._getRunningEvent(e),o=n.run(t)>0;return this._checkRunningEvents(n),o},e.prototype.listenerCount=function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0},e.prototype.listeners=function(e){if(!this.provider)return[];if(null==e){var t=[];for(var r in this._runningEvents)this._runningEvents[r].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()},e.prototype.removeAllListeners=function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this},e.prototype.off=function(e,t){if(!this.provider)return this;var r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this},e.prototype.removeListener=function(e,t){return this.off(e,t)},e}();r.BaseContract=I;var R=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t}(I);r.Contract=R;var j=function(){function e(e,t,r){var n=this.constructor,o=null;"0x"!==(o="string"==typeof t?t:(0,d.isBytes)(t)?(0,d.hexlify)(t):t&&"string"==typeof t.object?t.object:"!").substring(0,2)&&(o="0x"+o),(!(0,d.isHexString)(o)||o.length%2)&&y.throwArgumentError("invalid bytecode","bytecode",t),r&&!l.Signer.isSigner(r)&&y.throwArgumentError("invalid signer","signer",r),(0,p.defineReadOnly)(this,"bytecode",o),(0,p.defineReadOnly)(this,"interface",(0,p.getStatic)(n,"getInterface")(e)),(0,p.defineReadOnly)(this,"signer",r||null)}return e.prototype.getDeployTransaction=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var r={};if(e.length===this.interface.deploy.inputs.length+1&&"object"==typeof e[e.length-1])for(var n in r=(0,p.shallowCopy)(e.pop()))if(!b[n])throw new Error("unknown transaction override "+n);if(["data","from","to"].forEach((function(e){null!=r[e]&&y.throwError("cannot override "+e,g.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.value){var o=f.BigNumber.from(r.value);o.isZero()||this.interface.deploy.payable||y.throwError("non-payable constructor cannot override value",g.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:r.value})}return y.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),r.data=(0,d.hexlify)((0,d.concat)([this.bytecode,this.interface.encodeDeploy(e)])),r},e.prototype.deploy=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return i(this,void 0,void 0,(function(){var t,r,n,o,i,s;return a(this,(function(a){switch(a.label){case 0:return t={},e.length===this.interface.deploy.inputs.length+1&&(t=e.pop()),y.checkArgumentCount(e.length,this.interface.deploy.inputs.length," in Contract constructor"),[4,A(this.signer,e,this.interface.deploy.inputs)];case 1:return(r=a.sent()).push(t),n=this.getDeployTransaction.apply(this,r),[4,this.signer.sendTransaction(n)];case 2:return o=a.sent(),i=(0,p.getStatic)(this.constructor,"getContractAddress")(o),_(s=(0,p.getStatic)(this.constructor,"getContract")(i,this.interface,this.signer),o),(0,p.defineReadOnly)(s,"deployTransaction",o),[2,s]}}))}))},e.prototype.attach=function(e){return this.constructor.getContract(e,this.interface,this.signer)},e.prototype.connect=function(e){return new this.constructor(this.interface,this.bytecode,e)},e.fromSolidity=function(e,t){null==e&&y.throwError("missing compiler output",g.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"==typeof e&&(e=JSON.parse(e));var r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)},e.getInterface=function(e){return R.getInterface(e)},e.getContractAddress=function(e){return(0,h.getContractAddress)(e)},e.getContract=function(e,t,r){return new R(e,t,r)},e}();r.ContractFactory=j}}},{package:"@ethersproject/contracts",file:"node_modules/@ethersproject/contracts/lib/index.js"}],[421,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="hash/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/_version.js"}],[422,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){function n(e,t){null==t&&(t=1);var r=[],n=r.forEach,o=function(e,t){n.call(e,(function(e){t>0&&Array.isArray(e)?o(e,t-1):r.push(e)}))};return o(e,t),r}function o(e){var t=0;function r(){return e[t++]<<8|e[t++]}for(var n=r(),o=1,i=[0,1],a=1;a<n;a++)i.push(o+=r());var s=r(),u=t;t+=s;var c=0,l=0;function h(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}var f=Math.pow(2,31),d=f>>>1,p=d>>1,m=f-1,g=0;for(a=0;a<31;a++)g=g<<1|h();for(var v=[],y=0,b=f;;){for(var w=Math.floor(((g-y+1)*o-1)/b),A=0,E=n;E-A>1;){var _=A+E>>>1;w<i[_]?E=_:A=_}if(0==A)break;v.push(A);for(var T=y+Math.floor(b*i[A]/o),P=y+Math.floor(b*i[A+1]/o)-1;0==((T^P)&d);)g=g<<1&m|h(),T=T<<1&m,P=P<<1&m|1;for(;T&~P&p;)g=g&d|g<<1&m>>>1|h(),T=T<<1^d,P=(P^d)<<1|d|1;y=T,b=1+P-T}var k=n-4;return v.map((function(t){switch(t-k){case 3:return k+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return k+256+(e[u++]<<8|e[u++]);case 1:return k+e[u++];default:return t-1}}))}function i(e){var t=0;return function(){return e[t++]}}function a(e){return 1&e?~e>>1:e>>1}function s(e,t){for(var r=Array(e),n=0,o=-1;n<e;n++)r[n]=o+=1+t();return r}function u(e,t){for(var r=Array(e),n=0,o=0;n<e;n++)r[n]=o+=a(t());return r}function c(e,t){for(var r=s(e(),e),n=e(),o=s(n,e),i=function(e,t){for(var r=Array(e),n=0;n<e;n++)r[n]=1+t();return r}(n,e),a=0;a<n;a++)for(var u=0;u<i[a];u++)r.push(o[a]+u);return t?r.map((function(e){return t[e]})):r}function l(e){for(var t=[];;){var r=e();if(0==r)break;t.push(r)}return t}function h(e,t,r){for(var n=Array(e).fill(undefined).map((function(){return[]})),o=0;o<t;o++)u(e,r).forEach((function(e,t){return n[t].push(e)}));return n}function f(e,t){var r=1+t(),o=t(),i=l(t);return n(h(i.length,1+e,t).map((function(e,t){var n=e[0],a=e.slice(1);return Array(i[t]).fill(undefined).map((function(e,t){var i=t*o;return[n+t*r,a.map((function(e){return e+i}))]}))})))}function d(e,t){return h(1+t(),1+e,t).map((function(e){return[e[0],e.slice(1)]}))}Object.defineProperty(r,"__esModule",{value:!0}),r.read_emoji_trie=r.read_zero_terminated_array=r.read_mapped_map=r.read_member_array=r.signed=r.read_compressed_payload=r.read_payload=r.decode_arithmetic=void 0,r.decode_arithmetic=o,r.read_payload=i,r.read_compressed_payload=function(e){return i(o(e))},r.signed=a,r.read_member_array=c,r.read_mapped_map=function(e){for(var t=[];;){if(0==(r=e()))break;t.push(f(r,e))}for(;;){var r;if((r=e()-1)<0)break;t.push(d(r,e))}return function(e){for(var t={},r=0;r<e.length;r++){var n=e[r];t[n[0]]=n[1]}return t}(n(t))},r.read_zero_terminated_array=l,r.read_emoji_trie=function(e){var t=c(e).sort((function(e,t){return e-t}));return function r(){var n=[];for(;;){var o=c(e,t);if(0==o.length)break;n.push({set:new Set(o),node:r()})}n.sort((function(e,t){return t.set.size-e.set.size}));var i=e();return{branches:n,valid:i%3,fe0f:!!(1&(i=i/3|0)),save:1==(i>>=1),check:2==i}}()}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/ens-normalize/decoder.js"}],[423,{"./decoder.js":422,"@ethersproject/base64":405},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getData=void 0;var n=e("@ethersproject/base64"),o=e("./decoder.js");r.getData=function(){return(0,o.read_compressed_payload)((0,n.decode)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA=="))}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/ens-normalize/include.js"}],[424,{"./decoder.js":422,"./include.js":423,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.ens_normalize=r.ens_normalize_post_check=void 0;var n=e("@ethersproject/strings"),o=(0,e("./include.js").getData)(),i=e("./decoder.js"),a=new Set((0,i.read_member_array)(o)),s=new Set((0,i.read_member_array)(o)),u=(0,i.read_mapped_map)(o),c=(0,i.read_emoji_trie)(o);function l(e){return(0,n.toUtf8CodePoints)(e)}function h(e){return e.filter((function(e){return 65039!=e}))}function f(e){for(var t=0,r=e.split(".");t<r.length;t++){var n=r[t],o=l(n);try{for(var i=o.lastIndexOf(95)-1;i>=0;i--)if(95!==o[i])throw new Error("underscore only allowed at start");if(o.length>=4&&o.every((function(e){return e<128}))&&45===o[2]&&45===o[3])throw new Error("invalid label extension")}catch(e){throw new Error('Invalid label "'+n+'": '+e.message)}}return e}function d(e,t){var r,n,o,i=c,a=[],s=e.length;t&&(t.length=0);for(var u=function(){var u=e[--s];if(!(i=null===(r=i.branches.find((function(e){return e.set.has(u)})))||void 0===r?void 0:r.node))return"break";if(i.save)o=u;else if(i.check&&u===o)return"break";a.push(u),i.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),i.valid&&(n=a.slice(),2==i.valid&&n.splice(1,1),t&&t.push.apply(t,e.slice(s).reverse()),e.length=s)};s;){if("break"===u())break}return n}r.ens_normalize_post_check=f,r.ens_normalize=function(e){return f(function(e,t){var r=l(e).reverse(),n=[];for(;r.length;){var o=d(r);if(o)n.push.apply(n,t(o));else{var i=r.pop();if(a.has(i))n.push(i);else if(!s.has(i)){var c=u[i];if(!c)throw new Error("Disallowed codepoint: 0x"+i.toString(16).toUpperCase());n.push.apply(n,c)}}}return f((h=String.fromCodePoint.apply(String,n),h.normalize("NFC")));var h}(e,h))}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/ens-normalize/lib.js"}],[425,{"@ethersproject/keccak256":439,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.id=void 0;var n=e("@ethersproject/keccak256"),o=e("@ethersproject/strings");r.id=function(e){return(0,n.keccak256)((0,o.toUtf8Bytes)(e))}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/id.js"}],[426,{"./id":425,"./message":427,"./namehash":428,"./typed-data":429},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r._TypedDataEncoder=r.hashMessage=r.messagePrefix=r.ensNormalize=r.isValidName=r.namehash=r.dnsEncode=r.id=void 0;var n=e("./id");Object.defineProperty(r,"id",{enumerable:!0,get:function(){return n.id}});var o=e("./namehash");Object.defineProperty(r,"dnsEncode",{enumerable:!0,get:function(){return o.dnsEncode}}),Object.defineProperty(r,"isValidName",{enumerable:!0,get:function(){return o.isValidName}}),Object.defineProperty(r,"namehash",{enumerable:!0,get:function(){return o.namehash}});var i=e("./message");Object.defineProperty(r,"hashMessage",{enumerable:!0,get:function(){return i.hashMessage}}),Object.defineProperty(r,"messagePrefix",{enumerable:!0,get:function(){return i.messagePrefix}});var a=e("./namehash");Object.defineProperty(r,"ensNormalize",{enumerable:!0,get:function(){return a.ensNormalize}});var s=e("./typed-data");Object.defineProperty(r,"_TypedDataEncoder",{enumerable:!0,get:function(){return s.TypedDataEncoder}})}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/index.js"}],[427,{"@ethersproject/bytes":413,"@ethersproject/keccak256":439,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.hashMessage=r.messagePrefix=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/keccak256"),i=e("@ethersproject/strings");r.messagePrefix="Ethereum Signed Message:\n",r.hashMessage=function(e){return"string"==typeof e&&(e=(0,i.toUtf8Bytes)(e)),(0,o.keccak256)((0,n.concat)([(0,i.toUtf8Bytes)(r.messagePrefix),(0,i.toUtf8Bytes)(String(e.length)),e]))}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/message.js"}],[428,{"./_version":421,"./ens-normalize/lib":424,"@ethersproject/bytes":413,"@ethersproject/keccak256":439,"@ethersproject/logger":442,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.dnsEncode=r.namehash=r.isValidName=r.ensNormalize=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/strings"),i=e("@ethersproject/keccak256"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version),c=e("./ens-normalize/lib"),l=new Uint8Array(32);function h(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function f(e){var t=(0,o.toUtf8Bytes)((0,c.ens_normalize)(e)),r=[];if(0===e.length)return r;for(var n=0,i=0;i<t.length;i++){46===t[i]&&(r.push(h(t.slice(n,i))),n=i+1)}if(n>=t.length)throw new Error("invalid ENS name; empty component");return r.push(h(t.slice(n))),r}l.fill(0),r.ensNormalize=function(e){return f(e).map((function(e){return(0,o.toUtf8String)(e)})).join(".")},r.isValidName=function(e){try{return 0!==f(e).length}catch(e){}return!1},r.namehash=function(e){"string"!=typeof e&&u.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=l,r=f(e);r.length;)t=(0,i.keccak256)((0,n.concat)([t,(0,i.keccak256)(r.pop())]));return(0,n.hexlify)(t)},r.dnsEncode=function(e){return(0,n.hexlify)((0,n.concat)(f(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/namehash.js"}],[429,{"./_version":421,"./id":425,"@ethersproject/address":403,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/keccak256":439,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.TypedDataEncoder=void 0;var i=e("@ethersproject/address"),a=e("@ethersproject/bignumber"),s=e("@ethersproject/bytes"),u=e("@ethersproject/keccak256"),c=e("@ethersproject/properties"),l=e("@ethersproject/logger"),h=e("./_version"),f=new l.Logger(h.version),d=e("./id"),p=new Uint8Array(32);p.fill(0);var m=a.BigNumber.from(-1),g=a.BigNumber.from(0),v=a.BigNumber.from(1),y=a.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var b=(0,s.hexZeroPad)(v.toHexString(),32),w=(0,s.hexZeroPad)(g.toHexString(),32),A={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},E=["name","version","chainId","verifyingContract","salt"];function _(e){return function(t){return"string"!=typeof t&&f.throwArgumentError("invalid domain value for "+JSON.stringify(e),"domain."+e,t),t}}var T={name:_("name"),version:_("version"),chainId:function(e){try{return a.BigNumber.from(e).toString()}catch(e){}return f.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,i.getAddress)(e).toLowerCase()}catch(e){}return f.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,s.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,s.hexlify)(t)}catch(e){}return f.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function P(e){var t;if(t=e.match(/^(u?)int(\d*)$/)){var r=""===t[1],n=parseInt(t[2]||"256");(n%8!=0||n>256||t[2]&&t[2]!==String(n))&&f.throwArgumentError("invalid numeric width","type",e);var o=y.mask(r?n-1:n),c=r?o.add(v).mul(m):g;return function(t){var r=a.BigNumber.from(t);return(r.lt(c)||r.gt(o))&&f.throwArgumentError("value out-of-bounds for "+e,"value",t),(0,s.hexZeroPad)(r.toTwos(256).toHexString(),32)}}if(t=e.match(/^bytes(\d+)$/)){var l=parseInt(t[1]);return(0===l||l>32||t[1]!==String(l))&&f.throwArgumentError("invalid bytes width","type",e),function(t){return(0,s.arrayify)(t).length!==l&&f.throwArgumentError("invalid length for "+e,"value",t),function(e){var t=(0,s.arrayify)(e),r=t.length%32;return r?(0,s.hexConcat)([t,p.slice(r)]):(0,s.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,s.hexZeroPad)((0,i.getAddress)(e),32)};case"bool":return function(e){return e?b:w};case"bytes":return function(e){return(0,u.keccak256)(e)};case"string":return function(e){return(0,d.id)(e)}}return null}function k(e,t){return e+"("+t.map((function(e){var t=e.name;return e.type+" "+t})).join(",")+")"}var S=function(){function e(e){(0,c.defineReadOnly)(this,"types",Object.freeze((0,c.deepCopy)(e))),(0,c.defineReadOnly)(this,"_encoderCache",{}),(0,c.defineReadOnly)(this,"_types",{});var t={},r={},n={};Object.keys(e).forEach((function(e){t[e]={},r[e]=[],n[e]={}}));var o=function(n){var o={};e[n].forEach((function(i){o[i.name]&&f.throwArgumentError("duplicate variable name "+JSON.stringify(i.name)+" in "+JSON.stringify(n),"types",e),o[i.name]=!0;var a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===n&&f.throwArgumentError("circular type reference to "+JSON.stringify(a),"types",e),P(a)||(r[a]||f.throwArgumentError("unknown type "+JSON.stringify(a),"types",e),r[a].push(n),t[n][a]=!0)}))};for(var i in e)o(i);var a=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var s in 0===a.length?f.throwArgumentError("missing primary type","types",e):a.length>1&&f.throwArgumentError("ambiguous primary types or unused types: "+a.map((function(e){return JSON.stringify(e)})).join(", "),"types",e),(0,c.defineReadOnly)(this,"primaryType",a[0]),function o(i,a){a[i]&&f.throwArgumentError("circular type reference to "+JSON.stringify(i),"types",e),a[i]=!0,Object.keys(t[i]).forEach((function(e){r[e]&&(o(e,a),Object.keys(a).forEach((function(t){n[t][e]=!0})))})),delete a[i]}(this.primaryType,{}),n){var u=Object.keys(n[s]);u.sort(),this._types[s]=k(s,e[s])+u.map((function(t){return k(t,e[t])})).join("")}}return e.prototype.getEncoder=function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t},e.prototype._getEncoder=function(e){var t=this,r=P(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var o=n[1],i=this.getEncoder(o),a=parseInt(n[3]);return function(e){a>=0&&e.length!==a&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(i);return t._types[o]&&(r=r.map(u.keccak256)),(0,u.keccak256)((0,s.hexConcat)(r))}}var c=this.types[e];if(c){var l=(0,d.id)(this._types[e]);return function(e){var r=c.map((function(r){var n=r.name,o=r.type,i=t.getEncoder(o)(e[n]);return t._types[o]?(0,u.keccak256)(i):i}));return r.unshift(l),(0,s.hexConcat)(r)}}return f.throwArgumentError("unknown type: "+e,"type",e)},e.prototype.encodeType=function(e){var t=this._types[e];return t||f.throwArgumentError("unknown type: "+JSON.stringify(e),"name",e),t},e.prototype.encodeData=function(e,t){return this.getEncoder(e)(t)},e.prototype.hashStruct=function(e,t){return(0,u.keccak256)(this.encodeData(e,t))},e.prototype.encode=function(e){return this.encodeData(this.primaryType,e)},e.prototype.hash=function(e){return this.hashStruct(this.primaryType,e)},e.prototype._visit=function(e,t,r){var n=this;if(P(e))return r(e,t);var o=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(o){var i=o[1],a=parseInt(o[3]);return a>=0&&t.length!==a&&f.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(i,e,r)}))}var s=this.types[e];return s?s.reduce((function(e,o){var i=o.name,a=o.type;return e[i]=n._visit(a,t[i],r),e}),{}):f.throwArgumentError("unknown type: "+e,"type",e)},e.prototype.visit=function(e,t){return this._visit(this.primaryType,e,t)},e.from=function(t){return new e(t)},e.getPrimaryType=function(t){return e.from(t).primaryType},e.hashStruct=function(t,r,n){return e.from(r).hashStruct(t,n)},e.hashDomain=function(t){var r=[];for(var n in t){var o=A[n];o||f.throwArgumentError("invalid typed-data domain key: "+JSON.stringify(n),"domain",t),r.push({name:n,type:o})}return r.sort((function(e,t){return E.indexOf(e.name)-E.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)},e.encode=function(t,r,n){return(0,s.hexConcat)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])},e.hash=function(t,r,n){return(0,u.keccak256)(e.encode(t,r,n))},e.resolveNames=function(t,r,i,a){return n(this,void 0,void 0,(function(){var n,u,l,h,f,d,p,m;return o(this,(function(o){switch(o.label){case 0:for(h in t=(0,c.shallowCopy)(t),n={},t.verifyingContract&&!(0,s.isHexString)(t.verifyingContract,20)&&(n[t.verifyingContract]="0x"),(u=e.from(r)).visit(i,(function(e,t){return"address"!==e||(0,s.isHexString)(t,20)||(n[t]="0x"),t})),l=[],n)l.push(h);f=0,o.label=1;case 1:return f<l.length?(d=l[f],p=n,m=d,[4,a(d)]):[3,4];case 2:p[m]=o.sent(),o.label=3;case 3:return f++,[3,1];case 4:return t.verifyingContract&&n[t.verifyingContract]&&(t.verifyingContract=n[t.verifyingContract]),i=u.visit(i,(function(e,t){return"address"===e&&n[t]?n[t]:t})),[2,{domain:t,value:i}]}}))}))},e.getPayload=function(t,r,n){e.hashDomain(t);var o={},i=[];E.forEach((function(e){var r=t[e];null!=r&&(o[e]=T[e](r),i.push({name:e,type:A[e]}))}));var u=e.from(r),l=(0,c.shallowCopy)(r);return l.EIP712Domain?f.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):l.EIP712Domain=i,u.encode(n),{types:l,domain:o,primaryType:u.primaryType,message:u.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,s.hexlify)((0,s.arrayify)(t));if(e.match(/^u?int/))return a.BigNumber.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!=typeof t&&f.throwArgumentError("invalid string","value",t),t}return f.throwArgumentError("unsupported type","type",e)}))}},e}();r.TypedDataEncoder=S}}},{package:"@ethersproject/abi>@ethersproject/hash",file:"node_modules/@ethersproject/hash/lib/typed-data.js"}],[430,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="hdnode/5.7.0"}}},{package:"@ethersproject/hdnode",file:"node_modules/@ethersproject/hdnode/lib/_version.js"}],[431,{"./_version":430,"@ethersproject/basex":406,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/pbkdf2":446,"@ethersproject/properties":448,"@ethersproject/sha2":476,"@ethersproject/signing-key":480,"@ethersproject/strings":486,"@ethersproject/transactions":489,"@ethersproject/wordlists":498},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getAccountPath=r.isValidMnemonic=r.entropyToMnemonic=r.mnemonicToEntropy=r.mnemonicToSeed=r.HDNode=r.defaultPath=void 0;var n=e("@ethersproject/basex"),o=e("@ethersproject/bytes"),i=e("@ethersproject/bignumber"),a=e("@ethersproject/strings"),s=e("@ethersproject/pbkdf2"),u=e("@ethersproject/properties"),c=e("@ethersproject/signing-key"),l=e("@ethersproject/sha2"),h=e("@ethersproject/transactions"),f=e("@ethersproject/wordlists"),d=e("@ethersproject/logger"),p=e("./_version"),m=new d.Logger(p.version),g=i.BigNumber.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),v=(0,a.toUtf8Bytes)("Bitcoin seed"),y=2147483648;function b(e){return(1<<e)-1<<8-e}function w(e){return(0,o.hexZeroPad)((0,o.hexlify)(e),32)}function A(e){return n.Base58.encode((0,o.concat)([e,(0,o.hexDataSlice)((0,l.sha256)((0,l.sha256)(e)),0,4)]))}function E(e){if(null==e)return f.wordlists.en;if("string"==typeof e){var t=f.wordlists[e];return null==t&&m.throwArgumentError("unknown locale","wordlist",e),t}return e}var _={};r.defaultPath="m/44'/60'/0'/0/0";var T=function(){function e(e,t,r,n,i,a,s,f){if(e!==_)throw new Error("HDNode constructor cannot be called directly");if(t){var d=new c.SigningKey(t);(0,u.defineReadOnly)(this,"privateKey",d.privateKey),(0,u.defineReadOnly)(this,"publicKey",d.compressedPublicKey)}else(0,u.defineReadOnly)(this,"privateKey",null),(0,u.defineReadOnly)(this,"publicKey",(0,o.hexlify)(r));(0,u.defineReadOnly)(this,"parentFingerprint",n),(0,u.defineReadOnly)(this,"fingerprint",(0,o.hexDataSlice)((0,l.ripemd160)((0,l.sha256)(this.publicKey)),0,4)),(0,u.defineReadOnly)(this,"address",(0,h.computeAddress)(this.publicKey)),(0,u.defineReadOnly)(this,"chainCode",i),(0,u.defineReadOnly)(this,"index",a),(0,u.defineReadOnly)(this,"depth",s),null==f?((0,u.defineReadOnly)(this,"mnemonic",null),(0,u.defineReadOnly)(this,"path",null)):"string"==typeof f?((0,u.defineReadOnly)(this,"mnemonic",null),(0,u.defineReadOnly)(this,"path",f)):((0,u.defineReadOnly)(this,"mnemonic",f),(0,u.defineReadOnly)(this,"path",f.path))}return Object.defineProperty(e.prototype,"extendedKey",{get:function(){if(this.depth>=256)throw new Error("Depth too large!");return A((0,o.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,o.hexlify)(this.depth),this.parentFingerprint,(0,o.hexZeroPad)((0,o.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,o.concat)(["0x00",this.privateKey]):this.publicKey]))},enumerable:!1,configurable:!0}),e.prototype.neuter=function(){return new e(_,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)},e.prototype._derive=function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var r=this.path;r&&(r+="/"+(2147483647&t));var n=new Uint8Array(37);if(t&y){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set((0,o.arrayify)(this.privateKey),1),r&&(r+="'")}else n.set((0,o.arrayify)(this.publicKey));for(var a=24;a>=0;a-=8)n[33+(a>>3)]=t>>24-a&255;var s=(0,o.arrayify)((0,l.computeHmac)(l.SupportedAlgorithm.sha512,this.chainCode,n)),u=s.slice(0,32),h=s.slice(32),f=null,d=null;this.privateKey?f=w(i.BigNumber.from(u).add(this.privateKey).mod(g)):d=new c.SigningKey((0,o.hexlify)(u))._addPoint(this.publicKey);var p=r,m=this.mnemonic;return m&&(p=Object.freeze({phrase:m.phrase,path:r,locale:m.locale||"en"})),new e(_,f,d,this.fingerprint,w(h),t,this.depth+1,p)},e.prototype.derivePath=function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var r=this,n=0;n<t.length;n++){var o=t[n];if(o.match(/^[0-9]+'$/)){if((i=parseInt(o.substring(0,o.length-1)))>=y)throw new Error("invalid path index - "+o);r=r._derive(y+i)}else{if(!o.match(/^[0-9]+$/))throw new Error("invalid path component - "+o);var i;if((i=parseInt(o))>=y)throw new Error("invalid path index - "+o);r=r._derive(i)}}return r},e._fromSeed=function(t,r){var n=(0,o.arrayify)(t);if(n.length<16||n.length>64)throw new Error("invalid seed");var i=(0,o.arrayify)((0,l.computeHmac)(l.SupportedAlgorithm.sha512,v,n));return new e(_,w(i.slice(0,32)),null,"0x00000000",w(i.slice(32)),0,0,r)},e.fromMnemonic=function(t,r,n){return t=S(k(t,n=E(n)),n),e._fromSeed(P(t,r),{phrase:t,path:"m",locale:n.locale})},e.fromSeed=function(t){return e._fromSeed(t,null)},e.fromExtendedKey=function(t){var r=n.Base58.decode(t);82===r.length&&A(r.slice(0,78))===t||m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var i=r[4],a=(0,o.hexlify)(r.slice(5,9)),s=parseInt((0,o.hexlify)(r.slice(9,13)).substring(2),16),u=(0,o.hexlify)(r.slice(13,45)),c=r.slice(45,78);switch((0,o.hexlify)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(_,null,(0,o.hexlify)(c),a,u,s,i,null);case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new e(_,(0,o.hexlify)(c.slice(1)),null,a,u,s,i,null)}return m.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")},e}();function P(e,t){t||(t="");var r=(0,a.toUtf8Bytes)("mnemonic"+t,a.UnicodeNormalizationForm.NFKD);return(0,s.pbkdf2)((0,a.toUtf8Bytes)(e,a.UnicodeNormalizationForm.NFKD),r,2048,64,"sha512")}function k(e,t){t=E(t),m.checkNormalize();var r=t.split(e);if(r.length%3!=0)throw new Error("invalid mnemonic");for(var n=(0,o.arrayify)(new Uint8Array(Math.ceil(11*r.length/8))),i=0,a=0;a<r.length;a++){var s=t.getWordIndex(r[a].normalize("NFKD"));if(-1===s)throw new Error("invalid mnemonic");for(var u=0;u<11;u++)s&1<<10-u&&(n[i>>3]|=1<<7-i%8),i++}var c=32*r.length/3,h=b(r.length/3);if(((0,o.arrayify)((0,l.sha256)(n.slice(0,c/8)))[0]&h)!==(n[n.length-1]&h))throw new Error("invalid checksum");return(0,o.hexlify)(n.slice(0,c/8))}function S(e,t){if(t=E(t),(e=(0,o.arrayify)(e)).length%4!=0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,i=0;i<e.length;i++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[i],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[i]>>8-n,r.push(e[i]&(1<<8-n)-1),n+=3);var a=e.length/4,s=(0,o.arrayify)((0,l.sha256)(e))[0]&b(a);return r[r.length-1]<<=a,r[r.length-1]|=s>>8-a,t.join(r.map((function(e){return t.getWord(e)})))}r.HDNode=T,r.mnemonicToSeed=P,r.mnemonicToEntropy=k,r.entropyToMnemonic=S,r.isValidMnemonic=function(e,t){try{return k(e,t),!0}catch(e){}return!1},r.getAccountPath=function(e){return("number"!=typeof e||e<0||e>=y||e%1)&&m.throwArgumentError("invalid account index","index",e),"m/44'/60'/"+e+"'/0/0"}}}},{package:"@ethersproject/hdnode",file:"node_modules/@ethersproject/hdnode/lib/index.js"}],[439,{"@ethersproject/bytes":413,"js-sha3":440},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.keccak256=void 0;var o=n(e("js-sha3")),i=e("@ethersproject/bytes");r.keccak256=function(e){return"0x"+o.default.keccak_256((0,i.arrayify)(e))}}}},{package:"@ethersproject/abi>@ethersproject/keccak256",file:"node_modules/@ethersproject/keccak256/lib/index.js"}],[440,{_process:3027},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){(function(e){(function(){
/**
 * [js-sha3]{@link https://github.com/emn178/js-sha3}
 *
 * @version 0.8.0
 * @author Chen, Yi-Cyuan [emn178@gmail.com]
 * @copyright Chen, Yi-Cyuan 2015-2018
 * @license MIT
 */
!function(){var r="input is invalid type",n="object"==typeof window,o=n?window:{};o.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!o.JS_SHA3_NO_NODE_JS&&"object"==typeof e&&e.versions&&e.versions.node?o=global:i&&(o=self);var a=!o.JS_SHA3_NO_COMMON_JS&&"object"==typeof t&&t.exports,s="function"==typeof define&&define.amd,u=!o.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,c="0123456789abcdef".split(""),l=[4,1024,262144,67108864],h=[0,8,16,24],f=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],d=[224,256,384,512],p=[128,256],m=["hex","buffer","arrayBuffer","array","digest"],g={128:168,256:136};!o.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!u||!o.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"==typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var v=function(e,t,r){return function(n){return new R(e,t,e).update(n)[r]()}},y=function(e,t,r){return function(n,o){return new R(e,t,o).update(n)[r]()}},b=function(e,t,r){return function(t,n,o,i){return T["cshake"+e].update(t,n,o,i)[r]()}},w=function(e,t,r){return function(t,n,o,i){return T["kmac"+e].update(t,n,o,i)[r]()}},A=function(e,t,r,n){for(var o=0;o<m.length;++o){var i=m[o];e[i]=t(r,n,i)}return e},E=function(e,t){var r=v(e,t,"hex");return r.create=function(){return new R(e,t,e)},r.update=function(e){return r.create().update(e)},A(r,v,e,t)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:d,createMethod:E},{name:"sha3",padding:[6,1536,393216,100663296],bits:d,createMethod:E},{name:"shake",padding:[31,7936,2031616,520093696],bits:p,createMethod:function(e,t){var r=y(e,t,"hex");return r.create=function(r){return new R(e,t,r)},r.update=function(e,t){return r.create(t).update(e)},A(r,y,e,t)}},{name:"cshake",padding:l,bits:p,createMethod:function(e,t){var r=g[e],n=b(e,0,"hex");return n.create=function(n,o,i){return o||i?new R(e,t,n).bytepad([o,i],r):T["shake"+e].create(n)},n.update=function(e,t,r,o){return n.create(t,r,o).update(e)},A(n,b,e,t)}},{name:"kmac",padding:l,bits:p,createMethod:function(e,t){var r=g[e],n=w(e,0,"hex");return n.create=function(n,o,i){return new j(e,t,o).bytepad(["KMAC",i],r).bytepad([n],r)},n.update=function(e,t,r,o){return n.create(e,r,o).update(t)},A(n,w,e,t)}}],T={},P=[],k=0;k<_.length;++k)for(var S=_[k],O=S.bits,N=0;N<O.length;++N){var C=S.name+"_"+O[N];if(P.push(C),T[C]=S.createMethod(O[N],S.padding),"sha3"!==S.name){var I=S.name+O[N];P.push(I),T[I]=T[C]}}function R(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}function j(e,t,r){R.call(this,e,t,r)}R.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(r);if(null===e)throw new Error(r);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(r);t=!0}for(var o,i,a=this.blocks,s=this.byteCount,c=e.length,l=this.blockCount,f=0,d=this.s;f<c;){if(this.reset)for(this.reset=!1,a[0]=this.block,o=1;o<l+1;++o)a[o]=0;if(t)for(o=this.start;f<c&&o<s;++f)a[o>>2]|=e[f]<<h[3&o++];else for(o=this.start;f<c&&o<s;++f)(i=e.charCodeAt(f))<128?a[o>>2]|=i<<h[3&o++]:i<2048?(a[o>>2]|=(192|i>>6)<<h[3&o++],a[o>>2]|=(128|63&i)<<h[3&o++]):i<55296||i>=57344?(a[o>>2]|=(224|i>>12)<<h[3&o++],a[o>>2]|=(128|i>>6&63)<<h[3&o++],a[o>>2]|=(128|63&i)<<h[3&o++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++f)),a[o>>2]|=(240|i>>18)<<h[3&o++],a[o>>2]|=(128|i>>12&63)<<h[3&o++],a[o>>2]|=(128|i>>6&63)<<h[3&o++],a[o>>2]|=(128|63&i)<<h[3&o++]);if(this.lastByteIndex=o,o>=s){for(this.start=o-s,this.block=a[l],o=0;o<l;++o)d[o]^=a[o];M(d),this.reset=!0}else this.start=o}return this},R.prototype.encode=function(e,t){var r=255&e,n=1,o=[r];for(r=255&(e>>=8);r>0;)o.unshift(r),r=255&(e>>=8),++n;return t?o.push(n):o.unshift(n),this.update(o),o.length},R.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(r);if(null===e)throw new Error(r);if(u&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!(Array.isArray(e)||u&&ArrayBuffer.isView(e)))throw new Error(r);t=!0}var o=0,i=e.length;if(t)o=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?o+=1:s<2048?o+=2:s<55296||s>=57344?o+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),o+=4)}return o+=this.encode(8*o),this.update(e),o},R.prototype.bytepad=function(e,t){for(var r=this.encode(t),n=0;n<e.length;++n)r+=this.encodeString(e[n]);var o=t-r%t,i=[];return i.length=o,this.update(i),this},R.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];M(n)}},R.prototype.toString=R.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s="";a<n;){for(i=0;i<t&&a<n;++i,++a)e=r[i],s+=c[e>>4&15]+c[15&e]+c[e>>12&15]+c[e>>8&15]+c[e>>20&15]+c[e>>16&15]+c[e>>28&15]+c[e>>24&15];a%t==0&&(M(r),i=0)}return o&&(e=r[i],s+=c[e>>4&15]+c[15&e],o>1&&(s+=c[e>>12&15]+c[e>>8&15]),o>2&&(s+=c[e>>20&15]+c[e>>16&15])),s},R.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,s=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<n;){for(i=0;i<t&&a<n;++i,++a)u[a]=r[i];a%t==0&&M(r)}return o&&(u[i]=r[i],e=e.slice(0,s)),e},R.prototype.buffer=R.prototype.arrayBuffer,R.prototype.digest=R.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,o=this.outputBlocks,i=this.extraBytes,a=0,s=0,u=[];s<o;){for(a=0;a<r&&s<o;++a,++s)e=s<<2,t=n[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%r==0&&M(n)}return i&&(e=s<<2,t=n[a],u[e]=255&t,i>1&&(u[e+1]=t>>8&255),i>2&&(u[e+2]=t>>16&255)),u},j.prototype=new R,j.prototype.finalize=function(){return this.encode(this.outputBits,!0),R.prototype.finalize.call(this)};var M=function(e){var t,r,n,o,i,a,s,u,c,l,h,d,p,m,g,v,y,b,w,A,E,_,T,P,k,S,O,N,C,I,R,j,M,x,B,L,D,F,H,U,G,z,V,K,W,q,J,Z,Y,Q,X,$,ee,te,re,ne,oe,ie,ae,se,ue,ce,le;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(u<<1|c>>>31),r=i^(c<<1|u>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(l<<1|h>>>31),r=s^(h<<1|l>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=u^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=l^(o<<1|i>>>31),r=h^(i<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,m=e[0],g=e[1],q=e[11]<<4|e[10]>>>28,J=e[10]<<4|e[11]>>>28,N=e[20]<<3|e[21]>>>29,C=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,z=e[40]<<18|e[41]>>>14,V=e[41]<<18|e[40]>>>14,x=e[2]<<1|e[3]>>>31,B=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,y=e[12]<<12|e[13]>>>20,Z=e[22]<<10|e[23]>>>22,Y=e[23]<<10|e[22]>>>22,I=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,L=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Q=e[34]<<15|e[35]>>>17,X=e[35]<<15|e[34]>>>17,j=e[45]<<29|e[44]>>>3,M=e[44]<<29|e[45]>>>3,P=e[6]<<28|e[7]>>>4,k=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,F=e[26]<<25|e[27]>>>7,H=e[27]<<25|e[26]>>>7,A=e[36]<<21|e[37]>>>11,E=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,K=e[8]<<27|e[9]>>>5,W=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,O=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,G=e[39]<<8|e[38]>>>24,_=e[48]<<14|e[49]>>>18,T=e[49]<<14|e[48]>>>18,e[0]=m^~v&b,e[1]=g^~y&w,e[10]=P^~S&N,e[11]=k^~O&C,e[20]=x^~L&F,e[21]=B^~D&H,e[30]=K^~q&Z,e[31]=W^~J&Y,e[40]=te^~ne&ie,e[41]=re^~oe&ae,e[2]=v^~b&A,e[3]=y^~w&E,e[12]=S^~N&I,e[13]=O^~C&R,e[22]=L^~F&U,e[23]=D^~H&G,e[32]=q^~Z&Q,e[33]=J^~Y&X,e[42]=ne^~ie&se,e[43]=oe^~ae&ue,e[4]=b^~A&_,e[5]=w^~E&T,e[14]=N^~I&j,e[15]=C^~R&M,e[24]=F^~U&z,e[25]=H^~G&V,e[34]=Z^~Q&$,e[35]=Y^~X&ee,e[44]=ie^~se&ce,e[45]=ae^~ue&le,e[6]=A^~_&m,e[7]=E^~T&g,e[16]=I^~j&P,e[17]=R^~M&k,e[26]=U^~z&x,e[27]=G^~V&B,e[36]=Q^~$&K,e[37]=X^~ee&W,e[46]=se^~ce&te,e[47]=ue^~le&re,e[8]=_^~m&v,e[9]=T^~g&y,e[18]=j^~P&S,e[19]=M^~k&O,e[28]=z^~x&L,e[29]=V^~B&D,e[38]=$^~K&q,e[39]=ee^~W&J,e[48]=ce^~te&ne,e[49]=le^~re&oe,e[0]^=f[n],e[1]^=f[n+1]};if(a)t.exports=T;else{for(k=0;k<P.length;++k)o[P[k]]=T[P[k]];s&&define((function(){return T}))}}()}).call(this)}).call(this,e("_process"))}}},{package:"@ethersproject/abi>@ethersproject/keccak256>js-sha3",file:"node_modules/@ethersproject/keccak256/node_modules/js-sha3/src/sha3.js"}],[441,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="logger/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/logger",file:"node_modules/@ethersproject/logger/lib/_version.js"}],[442,{"./_version":441},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Logger=r.ErrorCode=r.LogLevel=void 0;var n=!1,o=!1,i={debug:1,default:2,info:2,warning:3,error:4,off:5},a=i.default,s=e("./_version"),u=null;var c,l,h=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(e){return e.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c=r.LogLevel||(r.LogLevel={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(l=r.ErrorCode||(r.ErrorCode={}));var f="0123456789abcdef",d=function(){function e(e){Object.defineProperty(this,"version",{enumerable:!0,value:e,writable:!1})}return e.prototype._log=function(e,t){var r=e.toLowerCase();null==i[r]&&this.throwArgumentError("invalid log level name","logLevel",e),a>i[r]||console.log.apply(console,t)},e.prototype.debug=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.DEBUG,t)},e.prototype.info=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.INFO,t)},e.prototype.warn=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];this._log(e.levels.WARNING,t)},e.prototype.makeError=function(t,r,n){if(o)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var i=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",o=0;o<t.length;o++)r+=f[t[o]>>4],r+=f[15&t[o]];i.push(e+"=Uint8Array(0x"+r+")")}else i.push(e+"="+JSON.stringify(t))}catch(t){i.push(e+"="+JSON.stringify(n[e].toString()))}})),i.push("code="+r),i.push("version="+this.version);var a=t,s="";switch(r){case l.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case l.CALL_EXCEPTION:case l.INSUFFICIENT_FUNDS:case l.MISSING_NEW:case l.NONCE_EXPIRED:case l.REPLACEMENT_UNDERPRICED:case l.TRANSACTION_REPLACED:case l.UNPREDICTABLE_GAS_LIMIT:s=r}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var c=new Error(t);return c.reason=a,c.code=r,Object.keys(n).forEach((function(e){c[e]=n[e]})),c},e.prototype.throwError=function(e,t,r){throw this.makeError(e,t,r)},e.prototype.throwArgumentError=function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})},e.prototype.assert=function(e,t,r,n){e||this.throwError(t,r,n)},e.prototype.assertArgument=function(e,t,r,n){e||this.throwArgumentError(t,r,n)},e.prototype.checkNormalize=function(t){null==t&&(t="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})},e.prototype.checkSafeUint53=function(t,r){"number"==typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))},e.prototype.checkArgumentCount=function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})},e.prototype.checkNew=function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.prototype.checkAbstract=function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})},e.globalLogger=function(){return u||(u=new e(s.version)),u},e.setCensorship=function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),n){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}o=!!t,n=!!r},e.setLogLevel=function(t){var r=i[t.toLowerCase()];null!=r?a=r:e.globalLogger().warn("invalid log level - "+t)},e.from=function(t){return new e(t)},e.errors=l,e.levels=c,e}();r.Logger=d}}},{package:"@ethersproject/abi>@ethersproject/logger",file:"node_modules/@ethersproject/logger/lib/index.js"}],[443,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="networks/5.7.1"}}},{package:"@ethersproject/providers>@ethersproject/networks",file:"node_modules/@ethersproject/networks/lib/_version.js"}],[444,{"./_version":443,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.getNetwork=void 0;var n=e("@ethersproject/logger"),o=e("./_version"),i=new n.Logger(o.version);function a(e){var t=function(t,r){null==r&&(r={});var n=[];if(t.InfuraProvider&&"-"!==r.infura)try{n.push(new t.InfuraProvider(e,r.infura))}catch(e){}if(t.EtherscanProvider&&"-"!==r.etherscan)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(e){}if(t.AlchemyProvider&&"-"!==r.alchemy)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(e){}if(t.PocketProvider&&"-"!==r.pocket){var o=["goerli","ropsten","rinkeby","sepolia"];try{(i=new t.PocketProvider(e,r.pocket)).network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(e){}}if(t.CloudflareProvider&&"-"!==r.cloudflare)try{n.push(new t.CloudflareProvider(e))}catch(e){}if(t.AnkrProvider&&"-"!==r.ankr)try{var i;o=["ropsten"];(i=new t.AnkrProvider(e,r.ankr)).network&&-1===o.indexOf(i.network.name)&&n.push(i)}catch(e){}if(0===n.length)return null;if(t.FallbackProvider){var a=1;return null!=r.quorum?a=r.quorum:"homestead"===e&&(a=2),new t.FallbackProvider(n,a)}return n[0]};return t.renetwork=function(e){return a(e)},t}function s(e,t){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return s(e,t)},r}var u={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:a("homestead")},c={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:a("ropsten")},l={chainId:63,name:"classicMordor",_defaultProvider:s("https://www.ethercluster.com/mordor","classicMordor")},h={unspecified:{chainId:0,name:"unspecified"},homestead:u,mainnet:u,morden:{chainId:2,name:"morden"},ropsten:c,testnet:c,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:a("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:a("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:a("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:a("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:s("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:l,classicTestnet:l,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:s("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:a("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:a("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};r.getNetwork=function(e){if(null==e)return null;if("number"==typeof e){for(var t in h){var r=h[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"==typeof e){var n=h[e];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var o=h[e.name];if(!o)return"number"!=typeof e.chainId&&i.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==o.chainId&&i.throwArgumentError("network chainId mismatch","network",e);var a,s=e._defaultProvider||null;return null==s&&o._defaultProvider&&(s=(a=o._defaultProvider)&&"function"==typeof a.renetwork?o._defaultProvider.renetwork(e):o._defaultProvider),{name:e.name,chainId:o.chainId,ensAddress:e.ensAddress||o.ensAddress||null,_defaultProvider:s}}}}},{package:"@ethersproject/providers>@ethersproject/networks",file:"node_modules/@ethersproject/networks/lib/index.js"}],[445,{"@ethersproject/bytes":413,"@ethersproject/sha2":476},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pbkdf2=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/sha2");r.pbkdf2=function(e,t,r,i,a){var s;e=(0,n.arrayify)(e),t=(0,n.arrayify)(t);var u,c,l=1,h=new Uint8Array(i),f=new Uint8Array(t.length+4);f.set(t);for(var d=1;d<=l;d++){f[t.length]=d>>24&255,f[t.length+1]=d>>16&255,f[t.length+2]=d>>8&255,f[t.length+3]=255&d;var p=(0,n.arrayify)((0,o.computeHmac)(a,e,f));s||(s=p.length,c=new Uint8Array(s),u=i-((l=Math.ceil(i/s))-1)*s),c.set(p);for(var m=1;m<r;m++){p=(0,n.arrayify)((0,o.computeHmac)(a,e,p));for(var g=0;g<s;g++)c[g]^=p[g]}var v=(d-1)*s,y=d===l?u:s;h.set((0,n.arrayify)(c).slice(0,y),v)}return(0,n.hexlify)(h)}}}},{package:"@ethersproject/hdnode>@ethersproject/pbkdf2",file:"node_modules/@ethersproject/pbkdf2/lib/browser-pbkdf2.js"}],[446,{"./pbkdf2":445},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.pbkdf2=void 0;var n=e("./pbkdf2");Object.defineProperty(r,"pbkdf2",{enumerable:!0,get:function(){return n.pbkdf2}})}}},{package:"@ethersproject/hdnode>@ethersproject/pbkdf2",file:"node_modules/@ethersproject/pbkdf2/lib/index.js"}],[447,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="properties/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/properties",file:"node_modules/@ethersproject/properties/lib/_version.js"}],[448,{"./_version":447,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.Description=r.deepCopy=r.shallowCopy=r.checkProperties=r.resolveProperties=r.getStatic=r.defineReadOnly=void 0;var i=e("@ethersproject/logger"),a=e("./_version"),s=new i.Logger(a.version);function u(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}r.defineReadOnly=u,r.getStatic=function(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!=typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null},r.resolveProperties=function(e){return n(this,void 0,void 0,(function(){var t;return o(this,(function(r){switch(r.label){case 0:return t=Object.keys(e).map((function(t){var r=e[t];return Promise.resolve(r).then((function(e){return{key:t,value:e}}))})),[4,Promise.all(t)];case 1:return[2,r.sent().reduce((function(e,t){return e[t.key]=t.value,e}),{})]}}))}))},r.checkProperties=function(e,t){e&&"object"==typeof e||s.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(r){t[r]||s.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))},r.shallowCopy=function(e){var t={};for(var r in e)t[r]=e[r];return t};var c={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function l(e){if(e===undefined||null===e||c[typeof e])return!0;if(Array.isArray(e)||"object"==typeof e){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),r=0;r<t.length;r++){var n=null;try{n=e[t[r]]}catch(e){continue}if(!l(n))return!1}return!0}return s.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function h(e){if(l(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return f(e)})));if("object"==typeof e){var t={};for(var r in e){var n=e[r];n!==undefined&&u(t,r,f(n))}return t}return s.throwArgumentError("Cannot deepCopy "+typeof e,"object",e)}function f(e){return h(e)}r.deepCopy=f;var d=function(e){for(var t in e)this[t]=f(e[t])};r.Description=d}}},{package:"@ethersproject/abi>@ethersproject/properties",file:"node_modules/@ethersproject/properties/lib/index.js"}],[449,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="providers/5.7.2"}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/_version.js"}],[450,{"./_version":449,"./formatter":458,"./url-json-rpc-provider":465,"./websocket-provider":467,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AlchemyProvider=r.AlchemyWebSocketProvider=void 0;var i=e("@ethersproject/properties"),a=e("./formatter"),s=e("./websocket-provider"),u=e("@ethersproject/logger"),c=e("./_version"),l=new u.Logger(c.version),h=e("./url-json-rpc-provider"),f="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",d=function(e){function t(t,r){var n,o=new p(t,r),a=o.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return n=e.call(this,a,o.network)||this,(0,i.defineReadOnly)(n,"apiKey",o.apiKey),n}return o(t,e),t.prototype.isCommunityResource=function(){return this.apiKey===f},t}(s.WebSocketProvider);r.AlchemyWebSocketProvider=d;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getWebSocketProvider=function(e,t){return new d(e,t)},t.getApiKey=function(e){return null==e?f:(e&&"string"!=typeof e&&l.throwArgumentError("invalid apiKey","apiKey",e),e)},t.getUrl=function(e,t){var r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.g.alchemy.com/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":r="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":r="arb-goerli.g.alchemy.com/v2/";break;case"optimism":r="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":r="opt-goerli.g.alchemy.com/v2/";break;default:l.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https:/"+"/"+r+t,throttleCallback:function(e,r){return t===f&&(0,a.showThrottleMessage)(),Promise.resolve(!0)}}},t.prototype.isCommunityResource=function(){return this.apiKey===f},t}(h.UrlJsonRpcProvider);r.AlchemyProvider=p}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/alchemy-provider.js"}],[451,{"./_version":449,"./formatter":458,"./url-json-rpc-provider":465,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.AnkrProvider=void 0;var i=e("./formatter"),a=e("./url-json-rpc-provider"),s=e("@ethersproject/logger"),u=e("./_version"),c=new s.Logger(u.version),l="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function h(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return c.throwArgumentError("unsupported network","name",e)}var f=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.isCommunityResource=function(){return this.apiKey===l},t.getApiKey=function(e){return null==e?l:e},t.getUrl=function(e,t){null==t&&(t=l);var r={allowGzip:!0,url:"https://"+h(e.name)+t,throttleCallback:function(e,r){return t.apiKey===l&&(0,i.showThrottleMessage)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r},t}(a.UrlJsonRpcProvider);r.AnkrProvider=f}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/ankr-provider.js"}],[452,{"./_version":449,"./formatter":458,"@ethersproject/abstract-provider":399,"@ethersproject/base64":405,"@ethersproject/basex":406,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/constants":417,"@ethersproject/hash":426,"@ethersproject/logger":442,"@ethersproject/networks":444,"@ethersproject/properties":448,"@ethersproject/sha2":476,"@ethersproject/strings":486,"@ethersproject/web":496,bech32:1852},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.BaseProvider=r.Resolver=r.Event=void 0;var u=e("@ethersproject/abstract-provider"),c=e("@ethersproject/base64"),l=e("@ethersproject/basex"),h=e("@ethersproject/bignumber"),f=e("@ethersproject/bytes"),d=e("@ethersproject/constants"),p=e("@ethersproject/hash"),m=e("@ethersproject/networks"),g=e("@ethersproject/properties"),v=e("@ethersproject/sha2"),y=e("@ethersproject/strings"),b=e("@ethersproject/web"),w=s(e("bech32")),A=e("@ethersproject/logger"),E=e("./_version"),_=new A.Logger(E.version),T=e("./formatter");function P(e){return null==e?"null":(32!==(0,f.hexDataLength)(e)&&_.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function k(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[P(e)]=!0}));var r=Object.keys(t);return r.sort(),r.join("|")}return P(e)})).join("&")}function S(e){if("string"==typeof e){if(e=e.toLowerCase(),32===(0,f.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+k(e);if(u.ForkEvent.isForkEvent(e))throw _.warn("not implemented"),new Error("not implemented");if(e&&"object"==typeof e)return"filter:"+(e.address||"*")+":"+k(e.topics||[])}throw new Error("invalid event - "+e)}function O(){return(new Date).getTime()}function N(e){return new Promise((function(t){setTimeout(t,e)}))}var C=["block","network","pending","poll"],I=function(){function e(e,t,r){(0,g.defineReadOnly)(this,"tag",e),(0,g.defineReadOnly)(this,"listener",t),(0,g.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}return Object.defineProperty(e.prototype,"event",{get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this.tag.split(":")[0]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"filter",{get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),o={};return n.length>0&&(o.topics=n),r&&"*"!==r&&(o.address=r),o},enumerable:!1,configurable:!0}),e.prototype.pollable=function(){return this.tag.indexOf(":")>=0||C.indexOf(this.tag)>=0},e}();r.Event=I;var R={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function j(e){return(0,f.hexZeroPad)(h.BigNumber.from(e).toHexString(),32)}function M(e){return l.Base58.encode((0,f.concat)([e,(0,f.hexDataSlice)((0,v.sha256)((0,v.sha256)(e)),0,4)]))}var x=new RegExp("^(ipfs)://(.*)$","i"),B=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),x,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function L(e,t){try{return(0,y.toUtf8String)(D(e,t))}catch(e){}return null}function D(e,t){if("0x"===e)return null;var r=h.BigNumber.from((0,f.hexDataSlice)(e,t,t+32)).toNumber(),n=h.BigNumber.from((0,f.hexDataSlice)(e,r,r+32)).toNumber();return(0,f.hexDataSlice)(e,r+32,r+32+n)}function F(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):_.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/"+e}function H(e){var t=(0,f.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");var r=new Uint8Array(32);return r.set(t,32-t.length),r}function U(e){if(e.length%32==0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function G(e){for(var t=[],r=0,n=0;n<e.length;n++)t.push(null),r+=32;for(n=0;n<e.length;n++){var o=(0,f.arrayify)(e[n]);t[n]=H(r),t.push(H(o.length)),t.push(U(o)),r+=32+32*Math.ceil(o.length/32)}return(0,f.hexConcat)(t)}var z=function(){function e(e,t,r,n){(0,g.defineReadOnly)(this,"provider",e),(0,g.defineReadOnly)(this,"name",r),(0,g.defineReadOnly)(this,"address",e.formatter.address(t)),(0,g.defineReadOnly)(this,"_resolvedAddress",n)}return e.prototype.supportsWildcard=function(){var e=this;return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((function(e){return h.BigNumber.from(e).eq(1)})).catch((function(t){if(t.code===A.Logger.errors.CALL_EXCEPTION)return!1;throw e._supportsEip2544=null,t}))),this._supportsEip2544},e.prototype._fetch=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return r={to:this.address,ccipReadEnabled:!0,data:(0,f.hexConcat)([e,(0,p.namehash)(this.name),t||"0x"])},n=!1,[4,this.supportsWildcard()];case 1:a.sent()&&(n=!0,r.data=(0,f.hexConcat)(["0x9061b923",G([(0,p.dnsEncode)(this.name),r.data])])),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.provider.call(r)];case 3:return o=a.sent(),(0,f.arrayify)(o).length%32==4&&_.throwError("resolver threw error",A.Logger.errors.CALL_EXCEPTION,{transaction:r,data:o}),n&&(o=D(o,0)),[2,o];case 4:if((i=a.sent()).code===A.Logger.errors.CALL_EXCEPTION)return[2,null];throw i;case 5:return[2]}}))}))},e.prototype._fetchBytes=function(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return[4,this._fetch(e,t)];case 1:return null!=(r=n.sent())?[2,D(r,0)]:[2,null]}}))}))},e.prototype._getAddress=function(e,t){var r=R[String(e)];if(null==r&&_.throwError("unsupported coin type: "+e,A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")"}),"eth"===r.ilk)return this.provider.formatter.address(t);var n=(0,f.arrayify)(t);if(null!=r.p2pkh){var o=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){var i=parseInt(o[1],16);if(o[2].length===2*i&&i>=1&&i<=75)return M((0,f.concat)([[r.p2pkh],"0x"+o[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var s=parseInt(a[1],16);if(a[2].length===2*s&&s>=1&&s<=75)return M((0,f.concat)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var u=n[1],c=n[0];if(0===c?20!==u&&32!==u&&(c=-1):c=-1,c>=0&&n.length===2+u&&u>=1&&u<=75){var l=w.default.toWords(n.slice(2));return l.unshift(c),w.default.encode(r.prefix,l)}}return null},e.prototype.getAddress=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o;return a(this,(function(i){switch(i.label){case 0:if(null==e&&(e=60),60!==e)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this._fetch("0x3b3b57de")];case 2:return"0x"===(t=i.sent())||t===d.HashZero?[2,null]:[2,this.provider.formatter.callAddress(t)];case 3:if((r=i.sent()).code===A.Logger.errors.CALL_EXCEPTION)return[2,null];throw r;case 4:return[4,this._fetchBytes("0xf1cb7e06",j(e))];case 5:return null==(n=i.sent())||"0x"===n?[2,null]:(null==(o=this._getAddress(e,n))&&_.throwError("invalid or unsupported coin data",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress("+e+")",coinType:e,data:n}),[2,o])}}))}))},e.prototype.getAvatar=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,o,i,s,u,c,l,d,p,m,g,v,y,w,A,E,_,T,P;return a(this,(function(a){switch(a.label){case 0:e=[{type:"name",content:this.name}],a.label=1;case 1:return a.trys.push([1,19,,20]),[4,this.getText("avatar")];case 2:if(null==(t=a.sent()))return[2,null];r=0,a.label=3;case 3:if(!(r<B.length))return[3,18];if(null==(n=t.match(B[r])))return[3,17];switch(o=n[1].toLowerCase(),o){case"https":return[3,4];case"data":return[3,5];case"ipfs":return[3,6];case"erc721":case"erc1155":return[3,7]}return[3,17];case 4:return e.push({type:"url",content:t}),[2,{linkage:e,url:t}];case 5:return e.push({type:"data",content:t}),[2,{linkage:e,url:t}];case 6:return e.push({type:"ipfs",content:t}),[2,{linkage:e,url:F(t)}];case 7:return i="erc721"===o?"0xc87b56dd":"0x0e89341c",e.push({type:o,content:t}),(u=this._resolvedAddress)?[3,9]:[4,this.getAddress()];case 8:u=a.sent(),a.label=9;case 9:return s=u,2!==(c=(n[2]||"").split("/")).length?[2,null]:[4,this.provider.formatter.address(c[0])];case 10:return l=a.sent(),d=(0,f.hexZeroPad)(h.BigNumber.from(c[1]).toHexString(),32),"erc721"!==o?[3,12]:(g=(m=this.provider.formatter).callAddress,[4,this.provider.call({to:l,data:(0,f.hexConcat)(["0x6352211e",d])})]);case 11:return p=g.apply(m,[a.sent()]),s!==p?[2,null]:(e.push({type:"owner",content:p}),[3,14]);case 12:return"erc1155"!==o?[3,14]:(w=(y=h.BigNumber).from,[4,this.provider.call({to:l,data:(0,f.hexConcat)(["0x00fdd58e",(0,f.hexZeroPad)(s,32),d])})]);case 13:if((v=w.apply(y,[a.sent()])).isZero())return[2,null];e.push({type:"balance",content:v.toString()}),a.label=14;case 14:return A={to:this.provider.formatter.address(c[0]),data:(0,f.hexConcat)([i,d])},_=L,[4,this.provider.call(A)];case 15:return null==(E=_.apply(void 0,[a.sent(),0]))?[2,null]:(e.push({type:"metadata-url-base",content:E}),"erc1155"===o&&(E=E.replace("{id}",d.substring(2)),e.push({type:"metadata-url-expanded",content:E})),E.match(/^ipfs:/i)&&(E=F(E)),e.push({type:"metadata-url",content:E}),[4,(0,b.fetchJson)(E)]);case 16:if(!(T=a.sent()))return[2,null];if(e.push({type:"metadata",content:JSON.stringify(T)}),"string"!=typeof(P=T.image))return[2,null];if(P.match(/^(https:\/\/|data:)/i));else{if(null==P.match(x))return[2,null];e.push({type:"url-ipfs",content:P}),P=F(P)}return e.push({type:"url",content:P}),[2,{linkage:e,url:P}];case 17:return r++,[3,3];case 18:return[3,20];case 19:return a.sent(),[3,20];case 20:return[2,null]}}))}))},e.prototype.getContentHash=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,o,i,s,u;return a(this,(function(a){switch(a.label){case 0:return[4,this._fetchBytes("0xbc1c58d1")];case 1:return null==(e=a.sent())||"0x"===e?[2,null]:(t=e.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))&&(r=parseInt(t[3],16),t[4].length===2*r)?[2,"ipfs://"+l.Base58.encode("0x"+t[1])]:(n=e.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))&&(o=parseInt(n[3],16),n[4].length===2*o)?[2,"ipns://"+l.Base58.encode("0x"+n[1])]:(i=e.match(/^0xe40101fa011b20([0-9a-f]*)$/))&&64===i[1].length?[2,"bzz://"+i[1]]:(s=e.match(/^0x90b2c605([0-9a-f]*)$/))&&68===s[1].length?(u={"=":"","+":"-","/":"_"},[2,"sia://"+(0,c.encode)("0x"+s[1]).replace(/[=+\/]/g,(function(e){return u[e]}))]):[2,_.throwError("invalid or unsupported content hash data",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:e})]}}))}))},e.prototype.getText=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return t=(0,y.toUtf8Bytes)(e),(t=(0,f.concat)([j(64),j(t.length),t])).length%32!=0&&(t=(0,f.concat)([t,(0,f.hexZeroPad)("0x",32-e.length%32)])),[4,this._fetchBytes("0x59d1d43c",(0,f.hexlify)(t))];case 1:return null==(r=n.sent())||"0x"===r?[2,null]:[2,(0,y.toUtf8String)(r)]}}))}))},e}();r.Resolver=z;var V=null,K=1,W=function(e){function t(t){var r=this.constructor,n=e.call(this)||this;if(n._events=[],n._emitted={block:-2},n.disableCcipRead=!1,n.formatter=r.getFormatter(),(0,g.defineReadOnly)(n,"anyNetwork","any"===t),n.anyNetwork&&(t=n.detectNetwork()),t instanceof Promise)n._networkPromise=t,t.catch((function(e){})),n._ready().catch((function(e){}));else{var o=(0,g.getStatic)(r,"getNetwork")(t);o?((0,g.defineReadOnly)(n,"_network",o),n.emit("network",o,null)):_.throwArgumentError("invalid network","network",t)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._maxFilterBlockRange=10,n._pollingInterval=4e3,n._fastQueryDate=0,n}return o(t,e),t.prototype._ready=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:if(null!=this._network)return[3,7];if(e=null,!this._networkPromise)return[3,4];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this._networkPromise];case 2:return e=t.sent(),[3,4];case 3:return t.sent(),[3,4];case 4:return null!=e?[3,6]:[4,this.detectNetwork()];case 5:e=t.sent(),t.label=6;case 6:e||_.throwError("no network detected",A.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=e:(0,g.defineReadOnly)(this,"_network",e),this.emit("network",e,null)),t.label=7;case 7:return[2,this._network]}}))}))},Object.defineProperty(t.prototype,"ready",{get:function(){var e=this;return(0,b.poll)((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code===A.Logger.errors.NETWORK_ERROR&&"noNetwork"===e.event)return undefined;throw e}))}))},enumerable:!1,configurable:!0}),t.getFormatter=function(){return null==V&&(V=new T.Formatter),V},t.getNetwork=function(e){return(0,m.getNetwork)(null==e?"homestead":e)},t.prototype.ccipReadFetch=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i,s,u,c,l,h,f;return a(this,(function(a){switch(a.label){case 0:if(this.disableCcipRead||0===r.length)return[2,null];n=e.to.toLowerCase(),o=t.toLowerCase(),i=[],s=0,a.label=1;case 1:return s<r.length?(u=r[s],c=u.replace("{sender}",n).replace("{data}",o),l=u.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:n}),[4,(0,b.fetchJson)({url:c,errorPassThrough:!0},l,(function(e,t){return e.status=t.statusCode,e}))]):[3,4];case 2:if((h=a.sent()).data)return[2,h.data];if(f=h.message||"unknown error",h.status>=400&&h.status<500)return[2,_.throwError("response not found during CCIP fetch: "+f,A.Logger.errors.SERVER_ERROR,{url:u,errorMessage:f})];i.push(f),a.label=3;case 3:return s++,[3,1];case 4:return[2,_.throwError("error encountered during CCIP fetch: "+i.map((function(e){return JSON.stringify(e)})).join(", "),A.Logger.errors.SERVER_ERROR,{urls:r,errorMessages:i})]}}))}))},t.prototype._getInternalBlockNumber=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return[4,this._ready()];case 1:if(a.sent(),!(e>0))return[3,7];a.label=2;case 2:if(!this._internalBlockNumber)return[3,7];t=this._internalBlockNumber,a.label=3;case 3:return a.trys.push([3,5,,6]),[4,t];case 4:return r=a.sent(),O()-r.respTime<=e?[2,r.blockNumber]:[3,7];case 5:return a.sent(),this._internalBlockNumber===t?[3,7]:[3,6];case 6:return[3,2];case 7:return n=O(),o=(0,g.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError;if(r)throw i._internalBlockNumber===o&&(i._internalBlockNumber=null),r;var a=O();return(t=h.BigNumber.from(t).toNumber())<i._maxInternalBlockNumber&&(t=i._maxInternalBlockNumber),i._maxInternalBlockNumber=t,i._setFastBlockNumber(t),{blockNumber:t,reqTime:n,respTime:a}})),this._internalBlockNumber=o,o.catch((function(e){i._internalBlockNumber===o&&(i._internalBlockNumber=null)})),[4,o];case 8:return[2,a.sent().blockNumber]}}))}))},t.prototype.poll=function(){return i(this,void 0,void 0,(function(){var e,t,r,n,o,i=this;return a(this,(function(a){switch(a.label){case 0:e=K++,t=[],r=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this._getInternalBlockNumber(100+this.pollingInterval/2)];case 2:return r=a.sent(),[3,4];case 3:return n=a.sent(),this.emit("error",n),[2];case 4:if(this._setFastBlockNumber(r),this.emit("poll",e,r),r===this._lastBlockNumber)return this.emit("didPoll",e),[2];if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)_.warn("network block skew detected; skipping block events (emitted="+this._emitted.block+" blockNumber"+r+")"),this.emit("error",_.makeError("network block skew detected",A.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(o=this._emitted.block+1;o<=r;o++)this.emit("block",o);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=i._emitted[e];"pending"!==t&&r-t>12&&delete i._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var n=e.hash,o=i.getTransactionReceipt(n).then((function(e){return e&&null!=e.blockNumber?(i._emitted["t:"+n]=e.blockNumber,i.emit(n,e),null):null})).catch((function(e){i.emit("error",e)}));t.push(o);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);var a=e.filter;a.fromBlock=e._lastBlockNumber+1,a.toBlock=r;var s=a.toBlock-i._maxFilterBlockRange;s>a.fromBlock&&(a.fromBlock=s),a.fromBlock<0&&(a.fromBlock=0);o=i.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),i._emitted["b:"+t.blockHash]=t.blockNumber,i._emitted["t:"+t.transactionHash]=t.blockNumber,i.emit(a,t)}))})).catch((function(t){i.emit("error",t),e._inflight=!1}));t.push(o)}}})),this._lastBlockNumber=r,Promise.all(t).then((function(){i.emit("didPoll",e)})).catch((function(e){i.emit("error",e)})),[2]}}))}))},t.prototype.resetEventsBlock=function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()},Object.defineProperty(t.prototype,"network",{get:function(){return this._network},enumerable:!1,configurable:!0}),t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,_.throwError("provider does not support network detection",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})]}))}))},t.prototype.getNetwork=function(){return i(this,void 0,void 0,(function(){var e,t,r;return a(this,(function(n){switch(n.label){case 0:return[4,this._ready()];case 1:return e=n.sent(),[4,this.detectNetwork()];case 2:return t=n.sent(),e.chainId===t.chainId?[3,5]:this.anyNetwork?(this._network=t,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",t,e),[4,N(0)]):[3,4];case 3:return n.sent(),[2,this._network];case 4:throw r=_.makeError("underlying network changed",A.Logger.errors.NETWORK_ERROR,{event:"changed",network:e,detectedNetwork:t}),this.emit("error",r),r;case 5:return[2,e]}}))}))},Object.defineProperty(t.prototype,"blockNumber",{get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"polling",{get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pollingInterval",{get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!=typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))},enumerable:!1,configurable:!0}),t.prototype._getFastBlockNumber=function(){var e=this,t=O();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise},t.prototype._setFastBlockNumber=function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=O(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))},t.prototype.waitForTransaction=function(e,t,r){return i(this,void 0,void 0,(function(){return a(this,(function(n){return[2,this._waitForTransaction(e,null==t?1:t,r||0,null)]}))}))},t.prototype._waitForTransaction=function(e,t,r,n){return i(this,void 0,void 0,(function(){var o,s=this;return a(this,(function(u){switch(u.label){case 0:return[4,this.getTransactionReceipt(e)];case 1:return((o=u.sent())?o.confirmations:0)>=t?[2,o]:[2,new Promise((function(o,u){var c=[],l=!1,h=function(){return!!l||(l=!0,c.forEach((function(e){e()})),!1)},f=function(e){e.confirmations<t||h()||o(e)};if(s.on(e,f),c.push((function(){s.removeListener(e,f)})),n){var d=n.startBlock,p=null,m=function(r){return i(s,void 0,void 0,(function(){var o=this;return a(this,(function(s){switch(s.label){case 0:return l?[2]:[4,N(1e3)];case 1:return s.sent(),this.getTransactionCount(n.from).then((function(s){return i(o,void 0,void 0,(function(){var o,i,c,f,g,v;return a(this,(function(a){switch(a.label){case 0:return l?[2]:s<=n.nonce?(d=r,[3,9]):[3,1];case 1:return[4,this.getTransaction(e)];case 2:if((o=a.sent())&&null!=o.blockNumber)return[2];null==p&&(p=d-3)<n.startBlock&&(p=n.startBlock),a.label=3;case 3:return p<=r?l?[2]:[4,this.getBlockWithTransactions(p)]:[3,9];case 4:i=a.sent(),c=0,a.label=5;case 5:return c<i.transactions.length?(f=i.transactions[c]).hash===e?[2]:f.from!==n.from||f.nonce!==n.nonce?[3,7]:l?[2]:[4,this.waitForTransaction(f.hash,t)]:[3,8];case 6:return g=a.sent(),h()?[2]:(v="replaced",f.data===n.data&&f.to===n.to&&f.value.eq(n.value)?v="repriced":"0x"===f.data&&f.from===f.to&&f.value.isZero()&&(v="cancelled"),u(_.makeError("transaction was replaced",A.Logger.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===v||"cancelled"===v,reason:v,replacement:this._wrapTransaction(f),hash:e,receipt:g})),[2]);case 7:return c++,[3,5];case 8:return p++,[3,3];case 9:return l||this.once("block",m),[2]}}))}))}),(function(e){l||o.once("block",m)})),[2]}}))}))};if(l)return;s.once("block",m),c.push((function(){s.removeListener("block",m)}))}if("number"==typeof r&&r>0){var g=setTimeout((function(){h()||u(_.makeError("timeout exceeded",A.Logger.errors.TIMEOUT,{timeout:r}))}),r);g.unref&&g.unref(),c.push((function(){clearTimeout(g)}))}}))]}}))}))},t.prototype.getBlockNumber=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this._getInternalBlockNumber(0)]}))}))},t.prototype.getGasPrice=function(){return i(this,void 0,void 0,(function(){var e;return a(this,(function(t){switch(t.label){case 0:return[4,this.getNetwork()];case 1:return t.sent(),[4,this.perform("getGasPrice",{})];case 2:e=t.sent();try{return[2,h.BigNumber.from(e)]}catch(t){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:e,error:t})]}return[2]}}))}))},t.prototype.getBalance=function(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,g.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getBalance",r)];case 3:n=o.sent();try{return[2,h.BigNumber.from(n)]}catch(e){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:n,error:e})]}return[2]}}))}))},t.prototype.getTransactionCount=function(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,g.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getTransactionCount",r)];case 3:n=o.sent();try{return[2,h.BigNumber.from(n).toNumber()]}catch(e){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:n,error:e})]}return[2]}}))}))},t.prototype.getCode=function(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return[4,this.getNetwork()];case 1:return o.sent(),[4,(0,g.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)})];case 2:return r=o.sent(),[4,this.perform("getCode",r)];case 3:n=o.sent();try{return[2,(0,f.hexlify)(n)]}catch(e){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:n,error:e})]}return[2]}}))}))},t.prototype.getStorageAt=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o;return a(this,(function(i){switch(i.label){case 0:return[4,this.getNetwork()];case 1:return i.sent(),[4,(0,g.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return(0,f.hexValue)(e)}))})];case 2:return n=i.sent(),[4,this.perform("getStorageAt",n)];case 3:o=i.sent();try{return[2,(0,f.hexlify)(o)]}catch(e){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:n,result:o,error:e})]}return[2]}}))}))},t.prototype._wrapTransaction=function(e,t,r){var n=this;if(null!=t&&32!==(0,f.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var o=e;return null!=t&&e.hash!==t&&_.throwError("Transaction hash mismatch from Provider.sendTransaction.",A.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),o.wait=function(t,o){return i(n,void 0,void 0,(function(){var n,i;return a(this,(function(a){switch(a.label){case 0:return null==t&&(t=1),null==o&&(o=0),n=undefined,0!==t&&null!=r&&(n={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),[4,this._waitForTransaction(e.hash,t,o,n)];case 1:return null==(i=a.sent())&&0===t?[2,null]:(this._emitted["t:"+e.hash]=i.blockNumber,0===i.status&&_.throwError("transaction failed",A.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:i}),[2,i])}}))}))},o},t.prototype.sendTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.getNetwork()];case 1:return a.sent(),[4,Promise.resolve(e).then((function(e){return(0,f.hexlify)(e)}))];case 2:return t=a.sent(),null==(r=this.formatter.transaction(e)).confirmations&&(r.confirmations=0),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:n=a.sent(),a.label=4;case 4:return a.trys.push([4,6,,7]),[4,this.perform("sendTransaction",{signedTransaction:t})];case 5:return o=a.sent(),[2,this._wrapTransaction(r,o,n)];case 6:throw(i=a.sent()).transaction=r,i.transactionHash=r.hash,i;case 7:return[2]}}))}))},t.prototype._getTransactionRequest=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return[4,e];case 1:return t=a.sent(),r={},["from","to"].forEach((function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((function(e){return e?h.BigNumber.from(e):null})))})),["type"].forEach((function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((function(e){return null!=e?e:null})))})),t.accessList&&(r.accessList=this.formatter.accessList(t.accessList)),["data"].forEach((function(e){null!=t[e]&&(r[e]=Promise.resolve(t[e]).then((function(e){return e?(0,f.hexlify)(e):null})))})),o=(n=this.formatter).transactionRequest,[4,(0,g.resolveProperties)(r)];case 2:return[2,o.apply(n,[a.sent()])]}}))}))},t.prototype._getFilter=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o=this;return a(this,(function(i){switch(i.label){case 0:return[4,e];case 1:return e=i.sent(),t={},null!=e.address&&(t.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(r){null!=e[r]&&(t[r]=e[r])})),["fromBlock","toBlock"].forEach((function(r){null!=e[r]&&(t[r]=o._getBlockTag(e[r]))})),n=(r=this.formatter).filter,[4,(0,g.resolveProperties)(t)];case 2:return[2,n.apply(r,[i.sent()])]}}))}))},t.prototype._call=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i,s,u,c,l,d,p,m,g,v,y,b,w,E;return a(this,(function(a){switch(a.label){case 0:return r>=10&&_.throwError("CCIP read exceeded maximum redirections",A.Logger.errors.SERVER_ERROR,{redirects:r,transaction:e}),n=e.to,[4,this.perform("call",{transaction:e,blockTag:t})];case 1:if(o=a.sent(),!(r>=0&&"latest"===t&&null!=n&&"0x556f1830"===o.substring(0,10)&&(0,f.hexDataLength)(o)%32==4))return[3,5];a.label=2;case 2:for(a.trys.push([2,4,,5]),i=(0,f.hexDataSlice)(o,4),s=(0,f.hexDataSlice)(i,0,32),h.BigNumber.from(s).eq(n)||_.throwError("CCIP Read sender did not match",A.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u=[],c=h.BigNumber.from((0,f.hexDataSlice)(i,32,64)).toNumber(),l=h.BigNumber.from((0,f.hexDataSlice)(i,c,c+32)).toNumber(),d=(0,f.hexDataSlice)(i,c+32),p=0;p<l;p++)null==(m=L(d,32*p))&&_.throwError("CCIP Read contained corrupt URL string",A.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),u.push(m);return g=D(i,64),h.BigNumber.from((0,f.hexDataSlice)(i,100,128)).isZero()||_.throwError("CCIP Read callback selector included junk",A.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),v=(0,f.hexDataSlice)(i,96,100),y=D(i,128),[4,this.ccipReadFetch(e,g,u)];case 3:return null==(b=a.sent())&&_.throwError("CCIP Read disabled or provided no URLs",A.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),w={to:n,data:(0,f.hexConcat)([v,G([b,y])])},[2,this._call(w,t,r+1)];case 4:if((E=a.sent()).code===A.Logger.errors.SERVER_ERROR)throw E;return[3,5];case 5:try{return[2,(0,f.hexlify)(o)]}catch(r){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:o,error:r})]}return[2]}}))}))},t.prototype.call=function(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,(0,g.resolveProperties)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)})];case 2:return r=n.sent(),[2,this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1)]}}))}))},t.prototype.estimateGas=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,(0,g.resolveProperties)({transaction:this._getTransactionRequest(e)})];case 2:return t=n.sent(),[4,this.perform("estimateGas",t)];case 3:r=n.sent();try{return[2,h.BigNumber.from(r)]}catch(e){return[2,_.throwError("bad result from backend",A.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:t,result:r,error:e})]}return[2]}}))}))},t.prototype._getAddress=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return"string"!=typeof(e=r.sent())&&_.throwArgumentError("invalid address or ENS name","name",e),[4,this.resolveName(e)];case 2:return null==(t=r.sent())&&_.throwError("ENS name not configured",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName("+JSON.stringify(e)+")"}),[2,t]}}))}))},t.prototype._getBlock=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,s=this;return a(this,(function(u){switch(u.label){case 0:return[4,this.getNetwork()];case 1:return u.sent(),[4,e];case 2:return e=u.sent(),r=-128,n={includeTransactions:!!t},(0,f.isHexString)(e,32)?(n.blockHash=e,[3,6]):[3,3];case 3:return u.trys.push([3,5,,6]),o=n,[4,this._getBlockTag(e)];case 4:return o.blockTag=u.sent(),(0,f.isHexString)(n.blockTag)&&(r=parseInt(n.blockTag.substring(2),16)),[3,6];case 5:return u.sent(),_.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e),[3,6];case 6:return[2,(0,b.poll)((function(){return i(s,void 0,void 0,(function(){var e,o,i,s,u,c,l=this;return a(this,(function(a){switch(a.label){case 0:return[4,this.perform("getBlock",n)];case 1:if(null==(e=a.sent()))return null!=n.blockHash&&null==this._emitted["b:"+n.blockHash]||null!=n.blockTag&&r>this._emitted.block?[2,null]:[2,undefined];if(!t)return[3,8];o=null,i=0,a.label=2;case 2:return i<e.transactions.length?null!=(s=e.transactions[i]).blockNumber?[3,3]:(s.confirmations=0,[3,6]):[3,7];case 3:return null!=s.confirmations?[3,6]:null!=o?[3,5]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 4:o=a.sent(),a.label=5;case 5:(u=o-s.blockNumber+1)<=0&&(u=1),s.confirmations=u,a.label=6;case 6:return i++,[3,2];case 7:return(c=this.formatter.blockWithTransactions(e)).transactions=c.transactions.map((function(e){return l._wrapTransaction(e)})),[2,c];case 8:return[2,this.formatter.block(e)]}}))}))}),{oncePoll:this})]}}))}))},t.prototype.getBlock=function(e){return this._getBlock(e,!1)},t.prototype.getBlockWithTransactions=function(e){return this._getBlock(e,!0)},t.prototype.getTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r=this;return a(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,e];case 2:return e=n.sent(),t={transactionHash:this.formatter.hash(e,!0)},[2,(0,b.poll)((function(){return i(r,void 0,void 0,(function(){var r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.perform("getTransaction",t)];case 1:return null==(r=a.sent())?null==this._emitted["t:"+e]?[2,null]:[2,undefined]:null!=(n=this.formatter.transactionResponse(r)).blockNumber?[3,2]:(n.confirmations=0,[3,4]);case 2:return null!=n.confirmations?[3,4]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:o=a.sent(),(i=o-n.blockNumber+1)<=0&&(i=1),n.confirmations=i,a.label=4;case 4:return[2,this._wrapTransaction(n)]}}))}))}),{oncePoll:this})]}}))}))},t.prototype.getTransactionReceipt=function(e){return i(this,void 0,void 0,(function(){var t,r=this;return a(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,e];case 2:return e=n.sent(),t={transactionHash:this.formatter.hash(e,!0)},[2,(0,b.poll)((function(){return i(r,void 0,void 0,(function(){var r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return[4,this.perform("getTransactionReceipt",t)];case 1:return null==(r=a.sent())?null==this._emitted["t:"+e]?[2,null]:[2,undefined]:null==r.blockHash?[2,undefined]:null!=(n=this.formatter.receipt(r)).blockNumber?[3,2]:(n.confirmations=0,[3,4]);case 2:return null!=n.confirmations?[3,4]:[4,this._getInternalBlockNumber(100+2*this.pollingInterval)];case 3:o=a.sent(),(i=o-n.blockNumber+1)<=0&&(i=1),n.confirmations=i,a.label=4;case 4:return[2,n]}}))}))}),{oncePoll:this})]}}))}))},t.prototype.getLogs=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return[4,this.getNetwork()];case 1:return n.sent(),[4,(0,g.resolveProperties)({filter:this._getFilter(e)})];case 2:return t=n.sent(),[4,this.perform("getLogs",t)];case 3:return(r=n.sent()).forEach((function(e){null==e.removed&&(e.removed=!1)})),[2,T.Formatter.arrayOf(this.formatter.filterLog.bind(this.formatter))(r)]}}))}))},t.prototype.getEtherPrice=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,this.getNetwork()];case 1:return e.sent(),[2,this.perform("getEtherPrice",{})]}}))}))},t.prototype._getBlockTag=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,e];case 1:return"number"==typeof(e=r.sent())&&e<0?(e%1&&_.throwArgumentError("invalid BlockTag","blockTag",e),[4,this._getInternalBlockNumber(100+2*this.pollingInterval)]):[3,3];case 2:return t=r.sent(),(t+=e)<0&&(t=0),[2,this.formatter.blockTag(t)];case 3:return[2,this.formatter.blockTag(e)]}}))}))},t.prototype.getResolver=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o;return a(this,(function(i){switch(i.label){case 0:t=e,i.label=1;case 1:return""===t||"."===t||"eth"!==e&&"eth"===t?[2,null]:[4,this._getResolver(t,"getResolver")];case 2:return null==(r=i.sent())?[3,5]:(n=new z(this,r,e),(o=t!==e)?[4,n.supportsWildcard()]:[3,4]);case 3:o=!i.sent(),i.label=4;case 4:return o?[2,null]:[2,n];case 5:return t=t.split(".").slice(1).join("."),[3,1];case 6:return[2]}}))}))},t.prototype._getResolver=function(e,t){return i(this,void 0,void 0,(function(){var r,n;return a(this,(function(o){switch(o.label){case 0:return null==t&&(t="ENS"),[4,this.getNetwork()];case 1:(r=o.sent()).ensAddress||_.throwError("network does not support ENS",A.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name}),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,p.namehash)(e).substring(2)})];case 3:return n=o.sent(),[2,this.formatter.callAddress(n)];case 4:return o.sent(),[3,5];case 5:return[2,null]}}))}))},t.prototype.resolveName=function(e){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return[4,e];case 1:e=r.sent();try{return[2,Promise.resolve(this.formatter.address(e))]}catch(t){if((0,f.isHexString)(e))throw t}return"string"!=typeof e&&_.throwArgumentError("invalid ENS name","name",e),[4,this.getResolver(e)];case 2:return(t=r.sent())?[4,t.getAddress()]:[2,null];case 3:return[2,r.sent()]}}))}))},t.prototype.lookupAddress=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o;return a(this,(function(i){switch(i.label){case 0:return[4,e];case 1:return e=i.sent(),e=this.formatter.address(e),t=e.substring(2).toLowerCase()+".addr.reverse",[4,this._getResolver(t,"lookupAddress")];case 2:return null==(r=i.sent())?[2,null]:(o=L,[4,this.call({to:r,data:"0x691f3431"+(0,p.namehash)(t).substring(2)})]);case 3:return n=o.apply(void 0,[i.sent(),0]),[4,this.resolveName(n)];case 4:return i.sent()!=e?[2,null]:[2,n]}}))}))},t.prototype.getAvatar=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o,i,s,u,c,l,h;return a(this,(function(a){switch(a.label){case 0:return t=null,(0,f.isHexString)(e)?(r=this.formatter.address(e),n=r.substring(2).toLowerCase()+".addr.reverse",[4,this._getResolver(n,"getAvatar")]):[3,10];case 1:if(!(o=a.sent()))return[2,null];t=new z(this,o,n),a.label=2;case 2:return a.trys.push([2,4,,5]),[4,t.getAvatar()];case 3:return(i=a.sent())?[2,i.url]:[3,5];case 4:if((s=a.sent()).code!==A.Logger.errors.CALL_EXCEPTION)throw s;return[3,5];case 5:return a.trys.push([5,8,,9]),c=L,[4,this.call({to:o,data:"0x691f3431"+(0,p.namehash)(n).substring(2)})];case 6:return u=c.apply(void 0,[a.sent(),0]),[4,this.getResolver(u)];case 7:return t=a.sent(),[3,9];case 8:if((l=a.sent()).code!==A.Logger.errors.CALL_EXCEPTION)throw l;return[2,null];case 9:return[3,12];case 10:return[4,this.getResolver(e)];case 11:if(!(t=a.sent()))return[2,null];a.label=12;case 12:return[4,t.getAvatar()];case 13:return null==(h=a.sent())?[2,null]:[2,h.url]}}))}))},t.prototype.perform=function(e,t){return _.throwError(e+" not implemented",A.Logger.errors.NOT_IMPLEMENTED,{operation:e})},t.prototype._startEvent=function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0},t.prototype._stopEvent=function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0},t.prototype._addEventListener=function(e,t,r){var n=new I(S(e),t,r);return this._events.push(n),this._startEvent(n),this},t.prototype.on=function(e,t){return this._addEventListener(e,t,!1)},t.prototype.once=function(e,t){return this._addEventListener(e,t,!0)},t.prototype.emit=function(e){for(var t=this,r=[],n=1;n<arguments.length;n++)r[n-1]=arguments[n];var o=!1,i=[],a=S(e);return this._events=this._events.filter((function(e){return e.tag!==a||(setTimeout((function(){e.listener.apply(t,r)}),0),o=!0,!e.once||(i.push(e),!1))})),i.forEach((function(e){t._stopEvent(e)})),o},t.prototype.listenerCount=function(e){if(!e)return this._events.length;var t=S(e);return this._events.filter((function(e){return e.tag===t})).length},t.prototype.listeners=function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=S(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))},t.prototype.off=function(e,t){var r=this;if(null==t)return this.removeAllListeners(e);var n=[],o=!1,i=S(e);return this._events=this._events.filter((function(e){return e.tag!==i||e.listener!=t||(!!o||(o=!0,n.push(e),!1))})),n.forEach((function(e){r._stopEvent(e)})),this},t.prototype.removeAllListeners=function(e){var t=this,r=[];if(null==e)r=this._events,this._events=[];else{var n=S(e);this._events=this._events.filter((function(e){return e.tag!==n||(r.push(e),!1)}))}return r.forEach((function(e){t._stopEvent(e)})),this},t}(u.Provider);r.BaseProvider=W}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/base-provider.js"}],[453,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.IpcProvider=void 0;r.IpcProvider=null}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/browser-ipc-provider.js"}],[454,{"./_version":449,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocket=void 0;var n=e("@ethersproject/logger"),o=e("./_version"),i=null;r.WebSocket=i;try{if(r.WebSocket=i=WebSocket,null==i)throw new Error("inject please")}catch(e){var a=new n.Logger(o.version);r.WebSocket=i=function(){a.throwError("WebSockets not supported in this environment",n.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/browser-ws.js"}],[455,{"./_version":449,"./url-json-rpc-provider":465,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.CloudflareProvider=void 0;var s=e("./url-json-rpc-provider"),u=e("@ethersproject/logger"),c=e("./_version"),l=new u.Logger(c.version),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getApiKey=function(e){return null!=e&&l.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null},t.getUrl=function(e,t){var r=null;if("homestead"===e.name)r="https://cloudflare-eth.com/";else l.throwArgumentError("unsupported network","network",arguments[0]);return r},t.prototype.perform=function(t,r){return i(this,void 0,void 0,(function(){return a(this,(function(n){switch(n.label){case 0:return"getBlockNumber"!==t?[3,2]:[4,e.prototype.perform.call(this,"getBlock",{blockTag:"latest"})];case 1:return[2,n.sent().number];case 2:return[2,e.prototype.perform.call(this,t,r)]}}))}))},t}(s.UrlJsonRpcProvider);r.CloudflareProvider=h}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/cloudflare-provider.js"}],[456,{"./_version":449,"./base-provider":452,"./formatter":458,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/transactions":489,"@ethersproject/web":496},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.EtherscanProvider=void 0;var s=e("@ethersproject/bytes"),u=e("@ethersproject/properties"),c=e("@ethersproject/transactions"),l=e("@ethersproject/web"),h=e("./formatter"),f=e("@ethersproject/logger"),d=e("./_version"),p=new f.Logger(d.version);function m(e){var t={};for(var r in e)if(null!=e[r]){var n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?(0,s.hexValue)((0,s.hexlify)(n)):"accessList"===r?"["+(0,c.accessListify)(n).map((function(e){return'{address:"'+e.address+'",storageKeys:["'+e.storageKeys.join('","')+'"]}'})).join(",")+"]":(0,s.hexlify)(n),t[r]=n)}return t}function g(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!=typeof e.message||!e.message.match(/^OK/)){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function v(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0)throw(t=new Error("throttled response")).result=JSON.stringify(e),t.throttleRetry=!0,t;if("2.0"!=e.jsonrpc)throw(t=new Error("invalid response")).result=JSON.stringify(e),t;if(e.error){var t=new Error(e.error.message||"unknown error");throw e.error.code&&(t.code=e.error.code),e.error.data&&(t.data=e.error.data),t}return e.result}function y(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function b(e,t,r){if("call"===e&&t.code===f.Logger.errors.SERVER_ERROR){var n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var o=n.data;if(o&&(o="0x"+o.replace(/^.*0x/i,"")),(0,s.isHexString)(o))return o;p.throwError("missing revert data in call exception",f.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var i=t.message;throw t.code===f.Logger.errors.SERVER_ERROR&&(t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&p.throwError("insufficient funds for intrinsic transaction cost",f.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&p.throwError("nonce has already been used",f.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/another transaction with same nonce/)&&p.throwError("replacement fee too low",f.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/execution failed due to an exception|execution reverted/)&&p.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",f.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var w=function(e){function t(t,r){var n=e.call(this,t)||this;return(0,u.defineReadOnly)(n,"baseUrl",n.getBaseUrl()),(0,u.defineReadOnly)(n,"apiKey",r||null),n}return o(t,e),t.prototype.getBaseUrl=function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return p.throwArgumentError("unsupported network","network",this.network.name)},t.prototype.getUrl=function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e+="&"+r+"="+n),e}),""),n=this.apiKey?"&apikey="+this.apiKey:"";return this.baseUrl+"/api?module="+e+r+n},t.prototype.getPostUrl=function(){return this.baseUrl+"/api"},t.prototype.getPostData=function(e,t){return t.module=e,t.apikey=this.apiKey,t},t.prototype.fetch=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i,s,c,f,d=this;return a(this,(function(a){switch(a.label){case 0:return n=r?this.getPostUrl():this.getUrl(e,t),o=r?this.getPostData(e,t):null,i="proxy"===e?v:g,this.emit("debug",{action:"request",request:n,provider:this}),s={url:n,throttleSlotInterval:1e3,throttleCallback:function(e,t){return d.isCommunityResource()&&(0,h.showThrottleMessage)(),Promise.resolve(!0)}},c=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},c=Object.keys(o).map((function(e){return e+"="+o[e]})).join("&")),[4,(0,l.fetchJson)(s,c,i||v)];case 1:return f=a.sent(),this.emit("debug",{action:"response",request:n,response:(0,u.deepCopy)(f),provider:this}),[2,f]}}))}))},t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,this.network]}))}))},t.prototype.perform=function(t,r){return i(this,void 0,void 0,(function(){var n,o,i,s,u,c,l,h,d;return a(this,(function(a){switch(a.label){case 0:switch(t){case"getBlockNumber":return[3,1];case"getGasPrice":return[3,2];case"getBalance":return[3,3];case"getTransactionCount":return[3,4];case"getCode":return[3,5];case"getStorageAt":return[3,6];case"sendTransaction":return[3,7];case"getBlock":return[3,8];case"getTransaction":return[3,9];case"getTransactionReceipt":return[3,10];case"call":return[3,11];case"estimateGas":return[3,15];case"getLogs":return[3,19];case"getEtherPrice":return[3,26]}return[3,28];case 1:return[2,this.fetch("proxy",{action:"eth_blockNumber"})];case 2:return[2,this.fetch("proxy",{action:"eth_gasPrice"})];case 3:return[2,this.fetch("account",{action:"balance",address:r.address,tag:r.blockTag})];case 4:return[2,this.fetch("proxy",{action:"eth_getTransactionCount",address:r.address,tag:r.blockTag})];case 5:return[2,this.fetch("proxy",{action:"eth_getCode",address:r.address,tag:r.blockTag})];case 6:return[2,this.fetch("proxy",{action:"eth_getStorageAt",address:r.address,position:r.position,tag:r.blockTag})];case 7:return[2,this.fetch("proxy",{action:"eth_sendRawTransaction",hex:r.signedTransaction},!0).catch((function(e){return b("sendTransaction",e,r.signedTransaction)}))];case 8:if(r.blockTag)return[2,this.fetch("proxy",{action:"eth_getBlockByNumber",tag:r.blockTag,boolean:r.includeTransactions?"true":"false"})];throw new Error("getBlock by blockHash not implemented");case 9:return[2,this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:r.transactionHash})];case 10:return[2,this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:r.transactionHash})];case 11:if("latest"!==r.blockTag)throw new Error("EtherscanProvider does not support blockTag for call");(n=m(r.transaction)).module="proxy",n.action="eth_call",a.label=12;case 12:return a.trys.push([12,14,,15]),[4,this.fetch("proxy",n,!0)];case 13:return[2,a.sent()];case 14:return[2,b("call",a.sent(),r.transaction)];case 15:(n=m(r.transaction)).module="proxy",n.action="eth_estimateGas",a.label=16;case 16:return a.trys.push([16,18,,19]),[4,this.fetch("proxy",n,!0)];case 17:return[2,a.sent()];case 18:return[2,b("estimateGas",a.sent(),r.transaction)];case 19:return o={action:"getLogs"},r.filter.fromBlock&&(o.fromBlock=y(r.filter.fromBlock)),r.filter.toBlock&&(o.toBlock=y(r.filter.toBlock)),r.filter.address&&(o.address=r.filter.address),r.filter.topics&&r.filter.topics.length>0&&(r.filter.topics.length>1&&p.throwError("unsupported topic count",f.Logger.errors.UNSUPPORTED_OPERATION,{topics:r.filter.topics}),1===r.filter.topics.length&&("string"==typeof(i=r.filter.topics[0])&&66===i.length||p.throwError("unsupported topic format",f.Logger.errors.UNSUPPORTED_OPERATION,{topic0:i}),o.topic0=i)),[4,this.fetch("logs",o)];case 20:s=a.sent(),u={},c=0,a.label=21;case 21:return c<s.length?null!=(l=s[c]).blockHash?[3,24]:null!=u[l.blockNumber]?[3,23]:[4,this.getBlock(l.blockNumber)]:[3,25];case 22:(h=a.sent())&&(u[l.blockNumber]=h.hash),a.label=23;case 23:l.blockHash=u[l.blockNumber],a.label=24;case 24:return c++,[3,21];case 25:return[2,s];case 26:return"homestead"!==this.network.name?[2,0]:(d=parseFloat,[4,this.fetch("stats",{action:"ethprice"})]);case 27:return[2,d.apply(void 0,[a.sent().ethusd])];case 28:return[3,29];case 29:return[2,e.prototype.perform.call(this,t,r)]}}))}))},t.prototype.getHistory=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return o={action:"txlist"},[4,this.resolveName(e)];case 1:return o.address=a.sent(),o.startblock=null==t?0:t,o.endblock=null==r?99999999:r,o.sort="asc",n=o,[4,this.fetch("account",n)];case 2:return[2,a.sent().map((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var t=i.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t}))]}}))}))},t.prototype.isCommunityResource=function(){return null==this.apiKey},t}(e("./base-provider").BaseProvider);r.EtherscanProvider=w}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/etherscan-provider.js"}],[457,{"./_version":449,"./base-provider":452,"./formatter":458,"@ethersproject/abstract-provider":399,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/random":470,"@ethersproject/web":496},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.FallbackProvider=void 0;var s=e("@ethersproject/abstract-provider"),u=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),l=e("@ethersproject/properties"),h=e("@ethersproject/random"),f=e("@ethersproject/web"),d=e("./base-provider"),p=e("./formatter"),m=e("@ethersproject/logger"),g=e("./_version"),v=new m.Logger(g.version);function y(){return(new Date).getTime()}function b(e){for(var t=null,r=0;r<e.length;r++){var n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||v.throwArgumentError("provider mismatch","networks",e):t=n}return t}function w(e,t){e=e.slice().sort();var r=Math.floor(e.length/2);if(e.length%2)return e[r];var n=e[r-1],o=e[r];return null!=t&&Math.abs(n-o)>t?null:(n+o)/2}function A(e){if(null===e)return"null";if("number"==typeof e||"boolean"==typeof e)return JSON.stringify(e);if("string"==typeof e)return e;if(u.BigNumber.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return A(e)})));if("object"==typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var r=e[t];return r="function"==typeof r?"[function]":A(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var E=1;function _(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var T=[m.Logger.errors.CALL_EXCEPTION,m.Logger.errors.INSUFFICIENT_FUNDS,m.Logger.errors.NONCE_EXPIRED,m.Logger.errors.REPLACEMENT_UNDERPRICED,m.Logger.errors.UNPREDICTABLE_GAS_LIMIT],P=["address","args","errorArgs","errorSignature","method","transaction"];function k(e,t){var r={weight:e.weight};return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function S(e,t,r){var n=A;switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=w(t.map((function(e){return e.result})),2);return null==n?undefined:(n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber)};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return w(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).confirmations=-1,A(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=(0,l.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=(0,l.shallowCopy)(e)).confirmations=-1,e})),A(e))}:function(e){return null==e?null:A(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={};r.forEach((function(t){var r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));for(var o=Object.keys(n),i=0;i<o.length;i++){var a=n[o[i]];if(a.count>=t)return a.result}return undefined}}(n,e.quorum)}function O(e,t){return i(this,void 0,void 0,(function(){var r;return a(this,(function(n){return null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t?[2,r]:[2,(0,f.poll)((function(){return new Promise((function(n,o){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(undefined)}),0)}))}),{oncePoll:r})]}))}))}var N=function(e){function t(t,r){var n=this;0===t.length&&v.throwArgumentError("missing providers","providers",t);var o=t.map((function(e,t){if(s.Provider.isProvider(e)){var r=(0,p.isCommunityResource)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:r,priority:1})}var n=(0,l.shallowCopy)(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=(0,p.isCommunityResource)(e)?2e3:750),null==n.weight&&(n.weight=1);var o=n.weight;return(o%1||o>512||o<1)&&v.throwArgumentError("invalid weight; must be integer in [1, 512]","providers["+t+"].weight",o),Object.freeze(n)})),i=o.reduce((function(e,t){return e+t.weight}),0);null==r?r=i/2:r>i&&v.throwArgumentError("quorum will always fail; larger than total weight","quorum",r);var a=b(o.map((function(e){return e.provider.network})));return null==a&&(a=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then(e,t)}),0)}))),n=e.call(this,a)||this,(0,l.defineReadOnly)(n,"providerConfigs",Object.freeze(o)),(0,l.defineReadOnly)(n,"quorum",r),n._highestBlockNumber=-1,n}return o(t,e),t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){switch(e.label){case 0:return[4,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})))];case 1:return[2,b(e.sent())]}}))}))},t.prototype.perform=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,s,u,f,d,p,g,b,w,A=this;return a(this,(function(N){switch(N.label){case 0:return"sendTransaction"!==e?[3,2]:[4,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})))];case 1:for(r=N.sent(),n=0;n<r.length;n++)if("string"==typeof(o=r[n]))return[2,o];throw r[0];case 2:return-1!==this._highestBlockNumber||"getBlockNumber"===e?[3,4]:[4,this.getBlockNumber()];case 3:N.sent(),N.label=4;case 4:s=S(this,e,t),(u=(0,h.shuffled)(this.providerConfigs.map(l.shallowCopy))).sort((function(e,t){return e.priority-t.priority})),f=this._highestBlockNumber,d=0,p=!0,g=function(){var r,n,o,h,g,w,S;return a(this,(function(N){switch(N.label){case 0:for(r=y(),n=u.filter((function(e){return e.runner&&r-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),o=function(){var r=u[d++],o=E++;r.start=y(),r.staller=_(r.stallTimeout),r.staller.wait((function(){r.staller=null})),r.runner=function(e,t,r,n){return i(this,void 0,void 0,(function(){var o,i;return a(this,(function(a){switch(a.label){case 0:switch(o=e.provider,r){case"getBlockNumber":case"getGasPrice":return[3,1];case"getEtherPrice":return[3,2];case"getBalance":case"getTransactionCount":case"getCode":return[3,3];case"getStorageAt":return[3,6];case"getBlock":return[3,9];case"call":case"estimateGas":return[3,12];case"getTransaction":case"getTransactionReceipt":return[3,15];case"getLogs":return[3,16]}return[3,19];case 1:return[2,o[r]()];case 2:return o.getEtherPrice?[2,o.getEtherPrice()]:[3,19];case 3:return n.blockTag&&(0,c.isHexString)(n.blockTag)?[4,O(e,t)]:[3,5];case 4:o=a.sent(),a.label=5;case 5:return[2,o[r](n.address,n.blockTag||"latest")];case 6:return n.blockTag&&(0,c.isHexString)(n.blockTag)?[4,O(e,t)]:[3,8];case 7:o=a.sent(),a.label=8;case 8:return[2,o.getStorageAt(n.address,n.position,n.blockTag||"latest")];case 9:return n.blockTag&&(0,c.isHexString)(n.blockTag)?[4,O(e,t)]:[3,11];case 10:o=a.sent(),a.label=11;case 11:return[2,o[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash)];case 12:return n.blockTag&&(0,c.isHexString)(n.blockTag)?[4,O(e,t)]:[3,14];case 13:o=a.sent(),a.label=14;case 14:return"call"===r&&n.blockTag?[2,o[r](n.transaction,n.blockTag)]:[2,o[r](n.transaction)];case 15:return[2,o[r](n.transactionHash)];case 16:return(i=n.filter).fromBlock&&(0,c.isHexString)(i.fromBlock)||i.toBlock&&(0,c.isHexString)(i.toBlock)?[4,O(e,t)]:[3,18];case 17:o=a.sent(),a.label=18;case 18:return[2,o.getLogs(i)];case 19:return[2,v.throwError("unknown method error",m.Logger.errors.UNKNOWN_ERROR,{method:r,params:n})]}}))}))}(r,f,e,t).then((function(n){r.done=!0,r.result=n,A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:k(r,y()),request:{method:e,params:(0,l.deepCopy)(t)},provider:A})}),(function(n){r.done=!0,r.error=n,A.listenerCount("debug")&&A.emit("debug",{action:"request",rid:o,backend:k(r,y()),request:{method:e,params:(0,l.deepCopy)(t)},provider:A})})),b.listenerCount("debug")&&b.emit("debug",{action:"request",rid:o,backend:k(r,null),request:{method:e,params:(0,l.deepCopy)(t)},provider:b}),n+=r.weight};n<b.quorum&&d<u.length;)o();return h=[],u.forEach((function(e){!e.done&&e.runner&&(h.push(e.runner),e.staller&&h.push(e.staller.getPromise()))})),h.length?[4,Promise.race(h)]:[3,2];case 1:N.sent(),N.label=2;case 2:return(g=u.filter((function(e){return e.done&&null==e.error}))).length>=b.quorum?(w=s(g))!==undefined?(u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),[2,{value:w}]):p?[3,4]:[4,_(100).getPromise()]:[3,5];case 3:N.sent(),N.label=4;case 4:p=!1,N.label=5;case 5:return S=u.reduce((function(e,t){if(!t.done||null==t.error)return e;var r=t.error.code;return T.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(S).forEach((function(e){var t=S[e];if(!(t.weight<A.quorum)){u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var r=t.error,n={};P.forEach((function(e){null!=r[e]&&(n[e]=r[e])})),v.throwError(r.reason||r.message,e,n)}})),0===u.filter((function(e){return!e.done})).length?[2,"break"]:[2]}}))},b=this,N.label=5;case 5:return[5,g()];case 6:return"object"==typeof(w=N.sent())?[2,w.value]:"break"===w?[3,7]:[3,5];case 7:return u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),[2,v.throwError("failed to meet quorum",m.Logger.errors.SERVER_ERROR,{method:e,params:t,results:u.map((function(e){return k(e)})),provider:this})]}}))}))},t}(d.BaseProvider);r.FallbackProvider=N}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/fallback-provider.js"}],[458,{"./_version":449,"@ethersproject/address":403,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/constants":417,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/transactions":489},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.showThrottleMessage=r.isCommunityResource=r.isCommunityResourcable=r.Formatter=void 0;var n=e("@ethersproject/address"),o=e("@ethersproject/bignumber"),i=e("@ethersproject/bytes"),a=e("@ethersproject/constants"),s=e("@ethersproject/properties"),u=e("@ethersproject/transactions"),c=e("@ethersproject/logger"),l=e("./_version"),h=new c.Logger(l.version),f=function(){function e(){this.formats=this.getDefaultFormats()}return e.prototype.getDefaultFormats=function(){var t=this,r={},n=this.address.bind(this),o=this.bigNumber.bind(this),i=this.blockTag.bind(this),a=this.data.bind(this),u=this.hash.bind(this),c=this.hex.bind(this),l=this.number.bind(this),h=this.type.bind(this);return r.transaction={hash:u,type:h,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(u,null),blockNumber:e.allowNull(l,null),transactionIndex:e.allowNull(l,null),confirmations:e.allowNull(l,null),from:n,gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),gasLimit:o,to:e.allowNull(n,null),value:o,nonce:l,data:a,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(l),creates:e.allowNull(n,null),raw:e.allowNull(a)},r.transactionRequest={from:e.allowNull(n),nonce:e.allowNull(l),gasLimit:e.allowNull(o),gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),to:e.allowNull(n),value:e.allowNull(o),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(l),accessList:e.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:u,address:n,topics:e.arrayOf(u),data:a,logIndex:l,blockHash:u},r.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(n,null),transactionIndex:l,root:e.allowNull(c),gasUsed:o,logsBloom:e.allowNull(a),blockHash:u,transactionHash:u,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:e.allowNull(l,null),cumulativeGasUsed:o,effectiveGasPrice:e.allowNull(o),status:e.allowNull(l),type:h},r.block={hash:e.allowNull(u),parentHash:u,number:l,timestamp:l,nonce:e.allowNull(c),difficulty:this.difficulty.bind(this),gasLimit:o,gasUsed:o,miner:e.allowNull(n),extraData:a,transactions:e.allowNull(e.arrayOf(u)),baseFeePerGas:e.allowNull(o)},r.blockWithTransactions=(0,s.shallowCopy)(r.block),r.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:e.allowNull(i,undefined),toBlock:e.allowNull(i,undefined),blockHash:e.allowNull(u,undefined),address:e.allowNull(n,undefined),topics:e.allowNull(this.topics.bind(this),undefined)},r.filterLog={blockNumber:e.allowNull(l),blockHash:e.allowNull(u),transactionIndex:l,removed:e.allowNull(this.boolean.bind(this)),address:n,data:e.allowFalsish(a,"0x"),topics:e.arrayOf(u),transactionHash:u,logIndex:l},r},e.prototype.accessList=function(e){return(0,u.accessListify)(e||[])},e.prototype.number=function(e){return"0x"===e?0:o.BigNumber.from(e).toNumber()},e.prototype.type=function(e){return"0x"===e||null==e?0:o.BigNumber.from(e).toNumber()},e.prototype.bigNumber=function(e){return o.BigNumber.from(e)},e.prototype.boolean=function(e){if("boolean"==typeof e)return e;if("string"==typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)},e.prototype.hex=function(e,t){return"string"==typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,i.isHexString)(e))?e.toLowerCase():h.throwArgumentError("invalid hash","value",e)},e.prototype.data=function(e,t){var r=this.hex(e,t);if(r.length%2!=0)throw new Error("invalid data; odd-length - "+e);return r},e.prototype.address=function(e){return(0,n.getAddress)(e)},e.prototype.callAddress=function(e){if(!(0,i.isHexString)(e,32))return null;var t=(0,n.getAddress)((0,i.hexDataSlice)(e,12));return t===a.AddressZero?null:t},e.prototype.contractAddress=function(e){return(0,n.getContractAddress)(e)},e.prototype.blockTag=function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"==typeof e||(0,i.isHexString)(e))return(0,i.hexValue)(e);throw new Error("invalid blockTag")},e.prototype.hash=function(e,t){var r=this.hex(e,t);return 32!==(0,i.hexDataLength)(r)?h.throwArgumentError("invalid hash","value",e):r},e.prototype.difficulty=function(e){if(null==e)return null;var t=o.BigNumber.from(e);try{return t.toNumber()}catch(e){}return null},e.prototype.uint256=function(e){if(!(0,i.isHexString)(e))throw new Error("invalid uint256");return(0,i.hexZeroPad)(e,32)},e.prototype._block=function(t,r){null!=t.author&&null==t.miner&&(t.miner=t.author);var n=null!=t._difficulty?t._difficulty:t.difficulty,i=e.check(r,t);return i._difficulty=null==n?null:o.BigNumber.from(n),i},e.prototype.block=function(e){return this._block(e,this.formats.block)},e.prototype.blockWithTransactions=function(e){return this._block(e,this.formats.blockWithTransactions)},e.prototype.transactionRequest=function(t){return e.check(this.formats.transactionRequest,t)},e.prototype.transactionResponse=function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&o.BigNumber.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var r=e.check(this.formats.transaction,t);if(null!=t.chainId){var n=t.chainId;(0,i.isHexString)(n)&&(n=o.BigNumber.from(n).toNumber()),r.chainId=n}else{null==(n=t.networkId)&&null==r.v&&(n=t.chainId),(0,i.isHexString)(n)&&(n=o.BigNumber.from(n).toNumber()),"number"!=typeof n&&null!=r.v&&((n=(r.v-35)/2)<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),r.chainId=n}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r},e.prototype.transaction=function(e){return(0,u.parse)(e)},e.prototype.receiptLog=function(t){return e.check(this.formats.receiptLog,t)},e.prototype.receipt=function(t){var r=e.check(this.formats.receipt,t);if(null!=r.root)if(r.root.length<=4){var n=o.BigNumber.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&h.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):h.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&h.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r},e.prototype.topics=function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null},e.prototype.filter=function(t){return e.check(this.formats.filter,t)},e.prototype.filterLog=function(t){return e.check(this.formats.filterLog,t)},e.check=function(e,t){var r={};for(var n in e)try{var o=e[n](t[n]);o!==undefined&&(r[n]=o)}catch(e){throw e.checkKey=n,e.checkValue=t[n],e}return r},e.allowNull=function(e,t){return function(r){return null==r?t:e(r)}},e.allowFalsish=function(e,t){return function(r){return r?e(r):t}},e.arrayOf=function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var r=[];return t.forEach((function(t){r.push(e(t))})),r}},e}();function d(e){return e&&"function"==typeof e.isCommunityResource}r.Formatter=f,r.isCommunityResourcable=d,r.isCommunityResource=function(e){return d(e)&&e.isCommunityResource()};var p=!1;r.showThrottleMessage=function(){p||(p=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (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.io/api-keys/"),console.log("=========================="))}}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/formatter.js"}],[459,{"./_version":449,"./alchemy-provider":450,"./ankr-provider":451,"./base-provider":452,"./cloudflare-provider":455,"./etherscan-provider":456,"./fallback-provider":457,"./formatter":458,"./infura-provider":460,"./ipc-provider":453,"./json-rpc-batch-provider":461,"./json-rpc-provider":462,"./nodesmith-provider":463,"./pocket-provider":464,"./url-json-rpc-provider":465,"./web3-provider":466,"./websocket-provider":467,"@ethersproject/abstract-provider":399,"@ethersproject/logger":442,"@ethersproject/networks":444},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.Formatter=r.showThrottleMessage=r.isCommunityResourcable=r.isCommunityResource=r.getNetwork=r.getDefaultProvider=r.JsonRpcSigner=r.IpcProvider=r.WebSocketProvider=r.Web3Provider=r.StaticJsonRpcProvider=r.PocketProvider=r.NodesmithProvider=r.JsonRpcBatchProvider=r.JsonRpcProvider=r.InfuraWebSocketProvider=r.InfuraProvider=r.EtherscanProvider=r.CloudflareProvider=r.AnkrProvider=r.AlchemyWebSocketProvider=r.AlchemyProvider=r.FallbackProvider=r.UrlJsonRpcProvider=r.Resolver=r.BaseProvider=r.Provider=void 0;var n=e("@ethersproject/abstract-provider");Object.defineProperty(r,"Provider",{enumerable:!0,get:function(){return n.Provider}});var o=e("@ethersproject/networks");Object.defineProperty(r,"getNetwork",{enumerable:!0,get:function(){return o.getNetwork}});var i=e("./base-provider");Object.defineProperty(r,"BaseProvider",{enumerable:!0,get:function(){return i.BaseProvider}}),Object.defineProperty(r,"Resolver",{enumerable:!0,get:function(){return i.Resolver}});var a=e("./alchemy-provider");Object.defineProperty(r,"AlchemyProvider",{enumerable:!0,get:function(){return a.AlchemyProvider}}),Object.defineProperty(r,"AlchemyWebSocketProvider",{enumerable:!0,get:function(){return a.AlchemyWebSocketProvider}});var s=e("./ankr-provider");Object.defineProperty(r,"AnkrProvider",{enumerable:!0,get:function(){return s.AnkrProvider}});var u=e("./cloudflare-provider");Object.defineProperty(r,"CloudflareProvider",{enumerable:!0,get:function(){return u.CloudflareProvider}});var c=e("./etherscan-provider");Object.defineProperty(r,"EtherscanProvider",{enumerable:!0,get:function(){return c.EtherscanProvider}});var l=e("./fallback-provider");Object.defineProperty(r,"FallbackProvider",{enumerable:!0,get:function(){return l.FallbackProvider}});var h=e("./ipc-provider");Object.defineProperty(r,"IpcProvider",{enumerable:!0,get:function(){return h.IpcProvider}});var f=e("./infura-provider");Object.defineProperty(r,"InfuraProvider",{enumerable:!0,get:function(){return f.InfuraProvider}}),Object.defineProperty(r,"InfuraWebSocketProvider",{enumerable:!0,get:function(){return f.InfuraWebSocketProvider}});var d=e("./json-rpc-provider");Object.defineProperty(r,"JsonRpcProvider",{enumerable:!0,get:function(){return d.JsonRpcProvider}}),Object.defineProperty(r,"JsonRpcSigner",{enumerable:!0,get:function(){return d.JsonRpcSigner}});var p=e("./json-rpc-batch-provider");Object.defineProperty(r,"JsonRpcBatchProvider",{enumerable:!0,get:function(){return p.JsonRpcBatchProvider}});var m=e("./nodesmith-provider");Object.defineProperty(r,"NodesmithProvider",{enumerable:!0,get:function(){return m.NodesmithProvider}});var g=e("./pocket-provider");Object.defineProperty(r,"PocketProvider",{enumerable:!0,get:function(){return g.PocketProvider}});var v=e("./url-json-rpc-provider");Object.defineProperty(r,"StaticJsonRpcProvider",{enumerable:!0,get:function(){return v.StaticJsonRpcProvider}}),Object.defineProperty(r,"UrlJsonRpcProvider",{enumerable:!0,get:function(){return v.UrlJsonRpcProvider}});var y=e("./web3-provider");Object.defineProperty(r,"Web3Provider",{enumerable:!0,get:function(){return y.Web3Provider}});var b=e("./websocket-provider");Object.defineProperty(r,"WebSocketProvider",{enumerable:!0,get:function(){return b.WebSocketProvider}});var w=e("./formatter");Object.defineProperty(r,"Formatter",{enumerable:!0,get:function(){return w.Formatter}}),Object.defineProperty(r,"isCommunityResourcable",{enumerable:!0,get:function(){return w.isCommunityResourcable}}),Object.defineProperty(r,"isCommunityResource",{enumerable:!0,get:function(){return w.isCommunityResource}}),Object.defineProperty(r,"showThrottleMessage",{enumerable:!0,get:function(){return w.showThrottleMessage}});var A=e("@ethersproject/logger"),E=e("./_version"),_=new A.Logger(E.version);r.getDefaultProvider=function(e,t){if(null==e&&(e="homestead"),"string"==typeof e){var r=e.match(/^(ws|http)s?:/i);if(r)switch(r[1].toLowerCase()){case"http":case"https":return new d.JsonRpcProvider(e);case"ws":case"wss":return new b.WebSocketProvider(e);default:_.throwArgumentError("unsupported URL scheme","network",e)}}var n=(0,o.getNetwork)(e);return n&&n._defaultProvider||_.throwError("unsupported getDefaultProvider network",A.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:l.FallbackProvider,AlchemyProvider:a.AlchemyProvider,AnkrProvider:s.AnkrProvider,CloudflareProvider:u.CloudflareProvider,EtherscanProvider:c.EtherscanProvider,InfuraProvider:f.InfuraProvider,JsonRpcProvider:d.JsonRpcProvider,NodesmithProvider:m.NodesmithProvider,PocketProvider:g.PocketProvider,Web3Provider:y.Web3Provider,IpcProvider:h.IpcProvider},t)}}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/index.js"}],[460,{"./_version":449,"./formatter":458,"./url-json-rpc-provider":465,"./websocket-provider":467,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.InfuraProvider=r.InfuraWebSocketProvider=void 0;var i=e("@ethersproject/properties"),a=e("./websocket-provider"),s=e("./formatter"),u=e("@ethersproject/logger"),c=e("./_version"),l=new u.Logger(c.version),h=e("./url-json-rpc-provider"),f="84842078b09946638c03157f83405213",d=function(e){function t(t,r){var n,o=new p(t,r),a=o.connection;a.password&&l.throwError("INFURA WebSocket project secrets unsupported",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var s=a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return n=e.call(this,s,t)||this,(0,i.defineReadOnly)(n,"apiKey",o.projectId),(0,i.defineReadOnly)(n,"projectId",o.projectId),(0,i.defineReadOnly)(n,"projectSecret",o.projectSecret),n}return o(t,e),t.prototype.isCommunityResource=function(){return this.projectId===f},t}(a.WebSocketProvider);r.InfuraWebSocketProvider=d;var p=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getWebSocketProvider=function(e,t){return new d(e,t)},t.getApiKey=function(e){var t={apiKey:f,projectId:f,projectSecret:null};return null==e||("string"==typeof e?t.projectId=e:null!=e.projectSecret?(l.assertArgument("string"==typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),l.assertArgument("string"==typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t},t.getUrl=function(e,t){var r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"goerli":r="goerli.infura.io";break;case"sepolia":r="sepolia.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;case"optimism":r="optimism-mainnet.infura.io";break;case"optimism-goerli":r="optimism-goerli.infura.io";break;case"arbitrum":r="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":r="arbitrum-goerli.infura.io";break;default:l.throwError("unsupported network",u.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https:/"+"/"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===f&&(0,s.showThrottleMessage)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n},t.prototype.isCommunityResource=function(){return this.projectId===f},t}(h.UrlJsonRpcProvider);r.InfuraProvider=p}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/infura-provider.js"}],[461,{"./json-rpc-provider":462,"@ethersproject/properties":448,"@ethersproject/web":496},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcBatchProvider=void 0;var i=e("@ethersproject/properties"),a=e("@ethersproject/web"),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.send=function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var o={request:n,resolve:null,reject:null},s=new Promise((function(e,t){o.resolve=e,o.reject=t}));return this._pendingBatch.push(o),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=r._pendingBatch;r._pendingBatch=null,r._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return r.emit("debug",{action:"requestBatch",request:(0,i.deepCopy)(t),provider:r}),(0,a.fetchJson)(r.connection,JSON.stringify(t)).then((function(n){r.emit("debug",{action:"response",request:t,response:n,provider:r}),e.forEach((function(e,t){var r=n[t];if(r.error){var o=new Error(r.error.message);o.code=r.error.code,o.data=r.error.data,e.reject(o)}else e.resolve(r.result)}))}),(function(n){r.emit("debug",{action:"response",error:n,request:t,provider:r}),e.forEach((function(e){e.reject(n)}))}))}),10)),s},t}(e("./json-rpc-provider").JsonRpcProvider);r.JsonRpcBatchProvider=s}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/json-rpc-batch-provider.js"}],[462,{"./_version":449,"./base-provider":452,"@ethersproject/abstract-signer":401,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/hash":426,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/strings":486,"@ethersproject/transactions":489,"@ethersproject/web":496},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcProvider=r.JsonRpcSigner=void 0;var s=e("@ethersproject/abstract-signer"),u=e("@ethersproject/bignumber"),c=e("@ethersproject/bytes"),l=e("@ethersproject/hash"),h=e("@ethersproject/properties"),f=e("@ethersproject/strings"),d=e("@ethersproject/transactions"),p=e("@ethersproject/web"),m=e("@ethersproject/logger"),g=e("./_version"),v=new m.Logger(g.version),y=e("./base-provider"),b=["call","estimateGas"];function w(e,t){if(null==e)return null;if("string"==typeof e.message&&e.message.match("reverted")){var r=(0,c.isHexString)(e.data)?e.data:null;if(!t||r)return{message:e.message,data:r}}if("object"==typeof e){for(var n in e){var o=w(e[n],t);if(o)return o}return null}if("string"==typeof e)try{return w(JSON.parse(e),t)}catch(e){}return null}function A(e,t,r){var n=r.transaction||r.signedTransaction;if("call"===e){var o;if(o=w(t,!0))return o.data;v.throwError("missing revert data in call exception; Transaction reverted without a reason string",m.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:n,error:t})}"estimateGas"===e&&(null==(o=w(t.body,!1))&&(o=w(t,!1)),o&&v.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:e,transaction:n,error:t}));var i=t.message;throw t.code===m.Logger.errors.SERVER_ERROR&&t.error&&"string"==typeof t.error.message?i=t.error.message:"string"==typeof t.body?i=t.body:"string"==typeof t.responseText&&(i=t.responseText),(i=(i||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&v.throwError("insufficient funds for intrinsic transaction cost",m.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),i.match(/nonce (is )?too low/i)&&v.throwError("nonce has already been used",m.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&v.throwError("replacement fee too low",m.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),i.match(/only replay-protected/i)&&v.throwError("legacy pre-eip-155 transactions not supported",m.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:n}),b.indexOf(e)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&v.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",m.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function _(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function T(e){return e?e.toLowerCase():e}var P={},k=function(e){function t(t,r,n){var o=e.call(this)||this;if(t!==P)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,h.defineReadOnly)(o,"provider",r),null==n&&(n=0),"string"==typeof n?((0,h.defineReadOnly)(o,"_address",o.provider.formatter.address(n)),(0,h.defineReadOnly)(o,"_index",null)):"number"==typeof n?((0,h.defineReadOnly)(o,"_index",n),(0,h.defineReadOnly)(o,"_address",null)):v.throwArgumentError("invalid address or index","addressOrIndex",n),o}return o(t,e),t.prototype.connect=function(e){return v.throwError("cannot alter JSON-RPC Signer connection",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})},t.prototype.connectUnchecked=function(){return new S(P,this.provider,this._address||this._index)},t.prototype.getAddress=function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&v.throwError("unknown account #"+e._index,m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))},t.prototype.sendUncheckedTransaction=function(e){var t=this;e=(0,h.shallowCopy)(e);var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var n=(0,h.shallowCopy)(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return i(t,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return null==e?[2,null]:[4,this.provider.resolveName(e)];case 1:return null==(t=r.sent())&&v.throwArgumentError("provided ENS name resolves to null","tx.to",e),[2,t]}}))}))}))),(0,h.resolveProperties)({tx:(0,h.resolveProperties)(e),sender:r}).then((function(r){var n=r.tx,o=r.sender;null!=n.from?n.from.toLowerCase()!==o&&v.throwArgumentError("from address mismatch","transaction",e):n.from=o;var i=t.provider.constructor.hexlifyTransaction(n,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return"string"==typeof e.message&&e.message.match(/user denied/i)&&v.throwError("user rejected transaction",m.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:n}),A("sendTransaction",e,i)}))}))},t.prototype.signTransaction=function(e){return v.throwError("signing transactions is unsupported",m.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})},t.prototype.sendTransaction=function(e){return i(this,void 0,void 0,(function(){var t,r,n,o=this;return a(this,(function(s){switch(s.label){case 0:return[4,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval)];case 1:return t=s.sent(),[4,this.sendUncheckedTransaction(e)];case 2:r=s.sent(),s.label=3;case 3:return s.trys.push([3,5,,6]),[4,(0,p.poll)((function(){return i(o,void 0,void 0,(function(){var e;return a(this,(function(n){switch(n.label){case 0:return[4,this.provider.getTransaction(r)];case 1:return null===(e=n.sent())?[2,undefined]:[2,this.provider._wrapTransaction(e,r,t)]}}))}))}),{oncePoll:this.provider})];case 4:return[2,s.sent()];case 5:throw(n=s.sent()).transactionHash=r,n;case 6:return[2]}}))}))},t.prototype.signMessage=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return a(this,(function(o){switch(o.label){case 0:return t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("personal_sign",[(0,c.hexlify)(t),r.toLowerCase()])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(n=o.sent()).message&&n.message.match(/user denied/i)&&v.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),n;case 5:return[2]}}))}))},t.prototype._legacySignMessage=function(e){return i(this,void 0,void 0,(function(){var t,r,n;return a(this,(function(o){switch(o.label){case 0:return t="string"==typeof e?(0,f.toUtf8Bytes)(e):e,[4,this.getAddress()];case 1:r=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.provider.send("eth_sign",[r.toLowerCase(),(0,c.hexlify)(t)])];case 3:return[2,o.sent()];case 4:throw"string"==typeof(n=o.sent()).message&&n.message.match(/user denied/i)&&v.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),n;case 5:return[2]}}))}))},t.prototype._signTypedData=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i,s=this;return a(this,(function(a){switch(a.label){case 0:return[4,l._TypedDataEncoder.resolveNames(e,t,r,(function(e){return s.provider.resolveName(e)}))];case 1:return n=a.sent(),[4,this.getAddress()];case 2:o=a.sent(),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this.provider.send("eth_signTypedData_v4",[o.toLowerCase(),JSON.stringify(l._TypedDataEncoder.getPayload(n.domain,t,n.value))])];case 4:return[2,a.sent()];case 5:throw"string"==typeof(i=a.sent()).message&&i.message.match(/user denied/i)&&v.throwError("user rejected signing",m.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:o,messageData:{domain:n.domain,types:t,value:n.value}}),i;case 6:return[2]}}))}))},t.prototype.unlock=function(e){return i(this,void 0,void 0,(function(){var t,r;return a(this,(function(n){switch(n.label){case 0:return t=this.provider,[4,this.getAddress()];case 1:return r=n.sent(),[2,t.send("personal_unlockAccount",[r.toLowerCase(),e,null])]}}))}))},t}(s.Signer);r.JsonRpcSigner=k;var S=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.sendTransaction=function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))},t}(k),O={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},N=function(e){function t(t,r){var n=this,o=r;return null==o&&(o=new Promise((function(e,t){setTimeout((function(){n.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),n=e.call(this,o)||this,t||(t=(0,h.getStatic)(n.constructor,"defaultUrl")()),"string"==typeof t?(0,h.defineReadOnly)(n,"connection",Object.freeze({url:t})):(0,h.defineReadOnly)(n,"connection",Object.freeze((0,h.shallowCopy)(t))),n._nextId=42,n}return o(t,e),Object.defineProperty(t.prototype,"_cache",{get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache},enumerable:!1,configurable:!0}),t.defaultUrl=function(){return"http://localhost:8545"},t.prototype.detectNetwork=function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork},t.prototype._uncachedDetectNetwork=function(){return i(this,void 0,void 0,(function(){var e,t;return a(this,(function(r){switch(r.label){case 0:return[4,E(0)];case 1:r.sent(),e=null,r.label=2;case 2:return r.trys.push([2,4,,9]),[4,this.send("eth_chainId",[])];case 3:return e=r.sent(),[3,9];case 4:r.sent(),r.label=5;case 5:return r.trys.push([5,7,,8]),[4,this.send("net_version",[])];case 6:return e=r.sent(),[3,8];case 7:return r.sent(),[3,8];case 8:return[3,9];case 9:if(null!=e){t=(0,h.getStatic)(this.constructor,"getNetwork");try{return[2,t(u.BigNumber.from(e).toNumber())]}catch(t){return[2,v.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{chainId:e,event:"invalidNetwork",serverError:t})]}}return[2,v.throwError("could not detect network",m.Logger.errors.NETWORK_ERROR,{event:"noNetwork"})]}}))}))},t.prototype.getSigner=function(e){return new k(P,this,e)},t.prototype.getUncheckedSigner=function(e){return this.getSigner(e).connectUnchecked()},t.prototype.listAccounts=function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))},t.prototype.send=function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,h.deepCopy)(n),provider:this});var o=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(o&&this._cache[e])return this._cache[e];var i=(0,p.fetchJson)(this.connection,JSON.stringify(n),_).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e}));return o&&(this._cache[e]=i,setTimeout((function(){r._cache[e]=null}),0)),i},t.prototype.prepareRequest=function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[T(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[T(t.address),t.blockTag]];case"getCode":return["eth_getCode",[T(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[T(t.address),(0,c.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,h.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,h.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=T(t.filter.address)),["eth_getLogs",[t.filter]]}return null},t.prototype.perform=function(e,t){return i(this,void 0,void 0,(function(){var r,n,o,i;return a(this,(function(a){switch(a.label){case 0:return"call"!==e&&"estimateGas"!==e?[3,2]:(r=t.transaction)&&null!=r.type&&u.BigNumber.from(r.type).isZero()?null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas?[3,2]:[4,this.getFeeData()]:[3,2];case 1:null==(n=a.sent()).maxFeePerGas&&null==n.maxPriorityFeePerGas&&((t=(0,h.shallowCopy)(t)).transaction=(0,h.shallowCopy)(r),delete t.transaction.type),a.label=2;case 2:null==(o=this.prepareRequest(e,t))&&v.throwError(e+" not implemented",m.Logger.errors.NOT_IMPLEMENTED,{operation:e}),a.label=3;case 3:return a.trys.push([3,5,,6]),[4,this.send(o[0],o[1])];case 4:return[2,a.sent()];case 5:return i=a.sent(),[2,A(e,i,t)];case 6:return[2]}}))}))},t.prototype._startEvent=function(t){"pending"===t.tag&&this._startPending(),e.prototype._startEvent.call(this,t)},t.prototype._startPending=function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;var n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return E(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}},t.prototype._stopEvent=function(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),e.prototype._stopEvent.call(this,t)},t.hexlifyTransaction=function(e,t){var r=(0,h.shallowCopy)(O);if(t)for(var n in t)t[n]&&(r[n]=!0);(0,h.checkProperties)(e,r);var o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=(0,c.hexValue)(u.BigNumber.from(e[t]));"gasLimit"===t&&(t="gas"),o[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=(0,c.hexlify)(e[t]))})),e.accessList&&(o.accessList=(0,d.accessListify)(e.accessList)),o},t}(y.BaseProvider);r.JsonRpcProvider=N}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/json-rpc-provider.js"}],[463,{"./_version":449,"./url-json-rpc-provider":465,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.NodesmithProvider=void 0;var i=e("./url-json-rpc-provider"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getApiKey=function(e){return e&&"string"!=typeof e&&u.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"},t.getUrl=function(e,t){u.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:u.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t},t}(i.UrlJsonRpcProvider);r.NodesmithProvider=c}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/nodesmith-provider.js"}],[464,{"./_version":449,"./url-json-rpc-provider":465,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.PocketProvider=void 0;var i=e("@ethersproject/logger"),a=e("./_version"),s=new i.Logger(a.version),u=e("./url-json-rpc-provider"),c="62e1ad51b37b8e00394bda3b",l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.getApiKey=function(e){var t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=c:"string"==typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:s.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t},t.getUrl=function(e,t){var r=null;switch(e?e.name:"unknown"){case"goerli":r="eth-goerli.gateway.pokt.network";break;case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"kovan":r="poa-kovan.gateway.pokt.network";break;case"matic":r="poly-mainnet.gateway.pokt.network";break;case"maticmum":r="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;default:s.throwError("unsupported network",i.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={headers:{},url:"https://"+r+"/v1/lb/"+t.applicationId};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n},t.prototype.isCommunityResource=function(){return this.applicationId===c},t}(u.UrlJsonRpcProvider);r.PocketProvider=l}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/pocket-provider.js"}],[465,{"./_version":449,"./json-rpc-provider":462,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.UrlJsonRpcProvider=r.StaticJsonRpcProvider=void 0;var s=e("@ethersproject/properties"),u=e("@ethersproject/logger"),c=e("./_version"),l=new u.Logger(c.version),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.prototype.detectNetwork=function(){return i(this,void 0,void 0,(function(){var t;return a(this,(function(r){switch(r.label){case 0:return null!=(t=this.network)?[3,2]:[4,e.prototype.detectNetwork.call(this)];case 1:(t=r.sent())||l.throwError("no network detected",u.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,s.defineReadOnly)(this,"_network",t),this.emit("network",t,null)),r.label=2;case 2:return[2,t]}}))}))},t}(e("./json-rpc-provider").JsonRpcProvider);r.StaticJsonRpcProvider=h;var f=function(e){function t(r,n){var o,i=this.constructor;l.checkAbstract(i,t),r=(0,s.getStatic)(i,"getNetwork")(r),n=(0,s.getStatic)(i,"getApiKey")(n);var a=(0,s.getStatic)(i,"getUrl")(r,n);return o=e.call(this,a,r)||this,"string"==typeof n?(0,s.defineReadOnly)(o,"apiKey",n):null!=n&&Object.keys(n).forEach((function(e){(0,s.defineReadOnly)(o,e,n[e])})),o}return o(t,e),t.prototype._startPending=function(){l.warn("WARNING: API provider does not support pending filters")},t.prototype.isCommunityResource=function(){return!1},t.prototype.getSigner=function(e){return l.throwError("API provider does not support signing",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})},t.prototype.listAccounts=function(){return Promise.resolve([])},t.getApiKey=function(e){return e},t.getUrl=function(e,t){return l.throwError("not implemented; sub-classes must override getUrl",u.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})},t}(h);r.UrlJsonRpcProvider=f}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/url-json-rpc-provider.js"}],[466,{"./_version":449,"./json-rpc-provider":462,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.Web3Provider=void 0;var i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version),c=e("./json-rpc-provider"),l=1;function h(e,t){var r="Web3LegacyFetcher";return function(e,n){var o=this,a={method:e,params:n,id:l++,jsonrpc:"2.0"};return new Promise((function(e,n){o.emit("debug",{action:"request",fetcher:r,request:(0,i.deepCopy)(a),provider:o}),t(a,(function(t,i){if(t)return o.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:o}),n(t);if(o.emit("debug",{action:"response",fetcher:r,request:a,response:i,provider:o}),i.error){var s=new Error(i.error.message);return s.code=i.error.code,s.data=i.error.data,n(s)}e(i.result)}))}))}}var f=function(e){function t(t,r){var n;null==t&&u.throwArgumentError("missing provider","provider",t);var o=null,a=null,s=null;return"function"==typeof t?(o="unknown:",a=t):(!(o=t.host||t.path||"")&&t.isMetaMask&&(o="metamask"),s=t,t.request?(""===o&&(o="eip-1193:"),a=function(e){return function(t,r){var n=this;null==r&&(r=[]);var o={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,i.deepCopy)(o),provider:this}),e.request(o).then((function(e){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:e,provider:n}),e}))}}(t)):t.sendAsync?a=h(0,t.sendAsync.bind(t)):t.send?a=h(0,t.send.bind(t)):u.throwArgumentError("unsupported provider","provider",t),o||(o="unknown:")),n=e.call(this,o,r)||this,(0,i.defineReadOnly)(n,"jsonRpcFetchFunc",a),(0,i.defineReadOnly)(n,"provider",s),n}return o(t,e),t.prototype.send=function(e,t){return this.jsonRpcFetchFunc(e,t)},t}(c.JsonRpcProvider);r.Web3Provider=f}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/web3-provider.js"}],[467,{"./_version":449,"./json-rpc-provider":462,"./ws":454,"@ethersproject/bignumber":410,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.WebSocketProvider=void 0;var s=e("@ethersproject/bignumber"),u=e("@ethersproject/properties"),c=e("./json-rpc-provider"),l=e("./ws"),h=e("@ethersproject/logger"),f=e("./_version"),d=new h.Logger(f.version),p=1,m=function(e){function t(t,r){var n=this;"any"===r&&d.throwError("WebSocketProvider does not support 'any' network yet",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(n="string"==typeof t?e.call(this,t,r)||this:e.call(this,"_websocket",r)||this)._pollingInterval=-1,n._wsReady=!1,"string"==typeof t?(0,u.defineReadOnly)(n,"_websocket",new l.WebSocket(n.connection.url)):(0,u.defineReadOnly)(n,"_websocket",t),(0,u.defineReadOnly)(n,"_requests",{}),(0,u.defineReadOnly)(n,"_subs",{}),(0,u.defineReadOnly)(n,"_subIds",{}),(0,u.defineReadOnly)(n,"_detectNetwork",e.prototype.detectNetwork.call(n)),n.websocket.onopen=function(){n._wsReady=!0,Object.keys(n._requests).forEach((function(e){n.websocket.send(n._requests[e].payload)}))},n.websocket.onmessage=function(e){var t=e.data,r=JSON.parse(t);if(null!=r.id){var o=String(r.id),i=n._requests[o];if(delete n._requests[o],r.result!==undefined)i.callback(null,r.result),n.emit("debug",{action:"response",request:JSON.parse(i.payload),response:r.result,provider:n});else{var a=null;r.error?(a=new Error(r.error.message||"unknown error"),(0,u.defineReadOnly)(a,"code",r.error.code||null),(0,u.defineReadOnly)(a,"response",t)):a=new Error("unknown error"),i.callback(a,undefined),n.emit("debug",{action:"response",error:a,request:JSON.parse(i.payload),provider:n})}}else if("eth_subscription"===r.method){var s=n._subs[r.params.subscription];s&&s.processFunc(r.params.result)}else console.warn("this should not happen")};var o=setInterval((function(){n.emit("poll")}),1e3);return o.unref&&o.unref(),n}return o(t,e),Object.defineProperty(t.prototype,"websocket",{get:function(){return this._websocket},enumerable:!1,configurable:!0}),t.prototype.detectNetwork=function(){return this._detectNetwork},Object.defineProperty(t.prototype,"pollingInterval",{get:function(){return 0},set:function(e){d.throwError("cannot set polling interval on WebSocketProvider",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})},enumerable:!1,configurable:!0}),t.prototype.resetEventsBlock=function(e){d.throwError("cannot reset events block on WebSocketProvider",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})},t.prototype.poll=function(){return i(this,void 0,void 0,(function(){return a(this,(function(e){return[2,null]}))}))},Object.defineProperty(t.prototype,"polling",{set:function(e){e&&d.throwError("cannot set polling on WebSocketProvider",h.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})},enumerable:!1,configurable:!0}),t.prototype.send=function(e,t){var r=this,n=p++;return new Promise((function(o,i){var a=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});r.emit("debug",{action:"request",request:JSON.parse(a),provider:r}),r._requests[String(n)]={callback:function(e,t){return e?i(e):o(t)},payload:a},r._wsReady&&r.websocket.send(a)}))},t.defaultUrl=function(){return"ws://localhost:8546"},t.prototype._subscribe=function(e,t,r){return i(this,void 0,void 0,(function(){var n,o,i=this;return a(this,(function(a){switch(a.label){case 0:return null==(n=this._subIds[e])&&(n=Promise.all(t).then((function(e){return i.send("eth_subscribe",e)})),this._subIds[e]=n),[4,n];case 1:return o=a.sent(),this._subs[o]={tag:e,processFunc:r},[2]}}))}))},t.prototype._startEvent=function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var r=s.BigNumber.from(e.number).toNumber();t._emitted.block=r,t.emit("block",r)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(r){null==r.removed&&(r.removed=!1),t.emit(e.filter,t.formatter.filterLog(r))}));break;case"tx":var r=function(e){var r=e.hash;t.getTransactionReceipt(r).then((function(e){e&&t.emit(r,e)}))};r(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(r)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}},t.prototype._stopEvent=function(e){var t=this,r=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;r="tx"}else if(this.listenerCount(e.event))return;var n=this._subIds[r];n&&(delete this._subIds[r],n.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))},t.prototype.destroy=function(){return i(this,void 0,void 0,(function(){var e=this;return a(this,(function(t){switch(t.label){case 0:return this.websocket.readyState!==l.WebSocket.CONNECTING?[3,2]:[4,new Promise((function(t){e.websocket.onopen=function(){t(!0)},e.websocket.onerror=function(){t(!1)}}))];case 1:t.sent(),t.label=2;case 2:return this.websocket.close(1e3),[2]}}))}))},t}(c.JsonRpcProvider);r.WebSocketProvider=m}}},{package:"@ethersproject/providers",file:"node_modules/@ethersproject/providers/lib/websocket-provider.js"}],[468,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="random/5.7.0"}}},{package:"@ethersproject/providers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/_version.js"}],[469,{"./_version":468,"@ethersproject/bytes":413,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.randomBytes=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),i=e("./_version"),a=new o.Logger(i.version);var s=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if("undefined"!=typeof global)return global;throw new Error("unable to locate global object")}(),u=s.crypto||s.msCrypto;u&&u.getRandomValues||(a.warn("WARNING: Missing strong random number source"),u={getRandomValues:function(e){return a.throwError("no secure random source avaialble",o.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}}),r.randomBytes=function(e){(e<=0||e>1024||e%1||e!=e)&&a.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return u.getRandomValues(t),(0,n.arrayify)(t)}}}},{package:"@ethersproject/providers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/browser-random.js"}],[470,{"./random":469,"./shuffle":471},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shuffled=r.randomBytes=void 0;var n=e("./random");Object.defineProperty(r,"randomBytes",{enumerable:!0,get:function(){return n.randomBytes}});var o=e("./shuffle");Object.defineProperty(r,"shuffled",{enumerable:!0,get:function(){return o.shuffled}})}}},{package:"@ethersproject/providers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/index.js"}],[471,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.shuffled=void 0,r.shuffled=function(e){for(var t=(e=e.slice()).length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}}}},{package:"@ethersproject/providers>@ethersproject/random",file:"node_modules/@ethersproject/random/lib/shuffle.js"}],[472,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="rlp/5.7.0"}}},{package:"@ethersproject/providers>@ethersproject/rlp",file:"node_modules/@ethersproject/rlp/lib/_version.js"}],[473,{"./_version":472,"@ethersproject/bytes":413,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.decode=r.encode=void 0;var n=e("@ethersproject/bytes"),o=e("@ethersproject/logger"),i=e("./_version"),a=new o.Logger(i.version);function s(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function u(e,t,r){for(var n=0,o=0;o<r;o++)n=256*n+e[t+o];return n}function c(e){if(Array.isArray(e)){var t=[];if(e.forEach((function(e){t=t.concat(c(e))})),t.length<=55)return t.unshift(192+t.length),t;var r=s(t.length);return r.unshift(247+r.length),r.concat(t)}(0,n.isBytesLike)(e)||a.throwArgumentError("RLP object must be BytesLike","object",e);var o=Array.prototype.slice.call((0,n.arrayify)(e));if(1===o.length&&o[0]<=127)return o;if(o.length<=55)return o.unshift(128+o.length),o;var i=s(o.length);return i.unshift(183+i.length),i.concat(o)}function l(e,t,r,n){for(var i=[];r<t+1+n;){var s=h(e,r);i.push(s.result),(r+=s.consumed)>t+1+n&&a.throwError("child data too short",o.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:i}}function h(e,t){if(0===e.length&&a.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){t+1+(s=e[t]-247)>e.length&&a.throwError("data short segment too short",o.Logger.errors.BUFFER_OVERRUN,{});var r=u(e,t+1,s);return t+1+s+r>e.length&&a.throwError("data long segment too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+s,s+r)}if(e[t]>=192){var i=e[t]-192;return t+1+i>e.length&&a.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,i)}if(e[t]>=184){var s;t+1+(s=e[t]-183)>e.length&&a.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{});var c=u(e,t+1,s);return t+1+s+c>e.length&&a.throwError("data array too short",o.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+s+c,result:(0,n.hexlify)(e.slice(t+1+s,t+1+s+c))}}if(e[t]>=128){var h=e[t]-128;return t+1+h>e.length&&a.throwError("data too short",o.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+h,result:(0,n.hexlify)(e.slice(t+1,t+1+h))}}return{consumed:1,result:(0,n.hexlify)(e[t])}}r.encode=function(e){return(0,n.hexlify)(c(e))},r.decode=function(e){var t=(0,n.arrayify)(e),r=h(t,0);return r.consumed!==t.length&&a.throwArgumentError("invalid rlp data","data",e),r.result}}}},{package:"@ethersproject/providers>@ethersproject/rlp",file:"node_modules/@ethersproject/rlp/lib/index.js"}],[474,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="sha2/5.7.0"}}},{package:"@ethersproject/hdnode>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/_version.js"}],[475,{"./_version":474,"./types":477,"@ethersproject/bytes":413,"@ethersproject/logger":442,"hash.js":2671},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.computeHmac=r.sha512=r.sha256=r.ripemd160=void 0;var o=n(e("hash.js")),i=e("@ethersproject/bytes"),a=e("./types"),s=e("@ethersproject/logger"),u=e("./_version"),c=new s.Logger(u.version);r.ripemd160=function(e){return"0x"+o.default.ripemd160().update((0,i.arrayify)(e)).digest("hex")},r.sha256=function(e){return"0x"+o.default.sha256().update((0,i.arrayify)(e)).digest("hex")},r.sha512=function(e){return"0x"+o.default.sha512().update((0,i.arrayify)(e)).digest("hex")},r.computeHmac=function(e,t,r){return a.SupportedAlgorithm[e]||c.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+o.default.hmac(o.default[e],(0,i.arrayify)(t)).update((0,i.arrayify)(r)).digest("hex")}}}},{package:"@ethersproject/hdnode>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/browser-sha2.js"}],[476,{"./sha2":475,"./types":477},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SupportedAlgorithm=r.sha512=r.sha256=r.ripemd160=r.computeHmac=void 0;var n=e("./sha2");Object.defineProperty(r,"computeHmac",{enumerable:!0,get:function(){return n.computeHmac}}),Object.defineProperty(r,"ripemd160",{enumerable:!0,get:function(){return n.ripemd160}}),Object.defineProperty(r,"sha256",{enumerable:!0,get:function(){return n.sha256}}),Object.defineProperty(r,"sha512",{enumerable:!0,get:function(){return n.sha512}});var o=e("./types");Object.defineProperty(r,"SupportedAlgorithm",{enumerable:!0,get:function(){return o.SupportedAlgorithm}})}}},{package:"@ethersproject/hdnode>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/index.js"}],[477,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.SupportedAlgorithm=void 0,function(e){e.sha256="sha256",e.sha512="sha512"}(r.SupportedAlgorithm||(r.SupportedAlgorithm={}))}}},{package:"@ethersproject/hdnode>@ethersproject/sha2",file:"node_modules/@ethersproject/sha2/lib/types.js"}],[478,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="signing-key/5.7.0"}}},{package:"@ethersproject/hdnode>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/_version.js"}],[479,{elliptic:2095},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.EC=void 0;var o=n(e("elliptic")).default.ec;r.EC=o}}},{package:"@ethersproject/hdnode>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/elliptic.js"}],[480,{"./_version":478,"./elliptic":479,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.computePublicKey=r.recoverPublicKey=r.SigningKey=void 0;var n=e("./elliptic"),o=e("@ethersproject/bytes"),i=e("@ethersproject/properties"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version),c=null;function l(){return c||(c=new n.EC("secp256k1")),c}var h=function(){function e(e){(0,i.defineReadOnly)(this,"curve","secp256k1"),(0,i.defineReadOnly)(this,"privateKey",(0,o.hexlify)(e)),32!==(0,o.hexDataLength)(this.privateKey)&&u.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey));(0,i.defineReadOnly)(this,"publicKey","0x"+t.getPublic(!1,"hex")),(0,i.defineReadOnly)(this,"compressedPublicKey","0x"+t.getPublic(!0,"hex")),(0,i.defineReadOnly)(this,"_isSigningKey",!0)}return e.prototype._addPoint=function(e){var t=l().keyFromPublic((0,o.arrayify)(this.publicKey)),r=l().keyFromPublic((0,o.arrayify)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")},e.prototype.signDigest=function(e){var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey)),r=(0,o.arrayify)(e);32!==r.length&&u.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return(0,o.splitSignature)({recoveryParam:n.recoveryParam,r:(0,o.hexZeroPad)("0x"+n.r.toString(16),32),s:(0,o.hexZeroPad)("0x"+n.s.toString(16),32)})},e.prototype.computeSharedSecret=function(e){var t=l().keyFromPrivate((0,o.arrayify)(this.privateKey)),r=l().keyFromPublic((0,o.arrayify)(f(e)));return(0,o.hexZeroPad)("0x"+t.derive(r.getPublic()).toString(16),32)},e.isSigningKey=function(e){return!(!e||!e._isSigningKey)},e}();function f(e,t){var r=(0,o.arrayify)(e);if(32===r.length){var n=new h(r);return t?"0x"+l().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?(0,o.hexlify)(r):"0x"+l().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+l().keyFromPublic(r).getPublic(!0,"hex"):(0,o.hexlify)(r):u.throwArgumentError("invalid public or private key","key","[REDACTED]")}r.SigningKey=h,r.recoverPublicKey=function(e,t){var r=(0,o.splitSignature)(t),n={r:(0,o.arrayify)(r.r),s:(0,o.arrayify)(r.s)};return"0x"+l().recoverPubKey((0,o.arrayify)(e),n,r.recoveryParam).encode("hex",!1)},r.computePublicKey=f}}},{package:"@ethersproject/hdnode>@ethersproject/signing-key",file:"node_modules/@ethersproject/signing-key/lib/index.js"}],[483,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="strings/5.7.0"}}},{package:"@ethersproject/abi>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/_version.js"}],[484,{"./utf8":487,"@ethersproject/bytes":413,"@ethersproject/constants":417},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.parseBytes32String=r.formatBytes32String=void 0;var n=e("@ethersproject/constants"),o=e("@ethersproject/bytes"),i=e("./utf8");r.formatBytes32String=function(e){var t=(0,i.toUtf8Bytes)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,o.hexlify)((0,o.concat)([t,n.HashZero]).slice(0,32))},r.parseBytes32String=function(e){var t=(0,o.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return(0,i.toUtf8String)(t.slice(0,r))}}}},{package:"@ethersproject/abi>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/bytes32.js"}],[485,{"./utf8":487},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nameprep=r._nameprepTableC=r._nameprepTableB2=r._nameprepTableA1=void 0;var n=e("./utf8");function o(e,t){t||(t=function(e){return[parseInt(e,16)]});var r=0,n={};return e.split(",").forEach((function(e){var o=e.split(":");r+=parseInt(o[0],16),n[r]=t(o[1])})),n}function i(e){var t=0;return e.split(",").map((function(e){var r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}}))}function a(e,t){for(var r=0,n=0;n<t.length;n++){var o=t[n];if(e>=(r+=o.l)&&e<=r+o.h&&(e-r)%(o.d||1)==0){if(o.e&&-1!==o.e.indexOf(e-r))continue;return o}}return null}var s=i("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],l=o("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),h=o("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),f=o("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!=0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),d=i("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function p(e){return!!a(e,s)}function m(e){var t=a(e,c);if(t)return[e+t.s];var r=l[e];if(r)return r;var n=h[e];if(n)return[e+n[0]];var o=f[e];return o||null}function g(e){return!!a(e,d)}r._nameprepTableA1=p,r._nameprepTableB2=m,r._nameprepTableC=g,r.nameprep=function(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,r=(0,n.toUtf8CodePoints)(e);t=r.map((function(e){if(u.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=m(e);return t||[e]})),r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(r=(0,n.toUtf8CodePoints)((0,n._toUtf8String)(r),n.UnicodeNormalizationForm.NFKC)).forEach((function(e){if(g(e))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(p(e))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var o=(0,n._toUtf8String)(r);if("-"===o.substring(0,1)||"--"===o.substring(2,4)||"-"===o.substring(o.length-1))throw new Error("invalid hyphen");return o}}}},{package:"@ethersproject/abi>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/idna.js"}],[486,{"./bytes32":484,"./idna":485,"./utf8":487},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.nameprep=r.parseBytes32String=r.formatBytes32String=r.UnicodeNormalizationForm=r.Utf8ErrorReason=r.Utf8ErrorFuncs=r.toUtf8String=r.toUtf8CodePoints=r.toUtf8Bytes=r._toEscapedUtf8String=void 0;var n=e("./bytes32");Object.defineProperty(r,"formatBytes32String",{enumerable:!0,get:function(){return n.formatBytes32String}}),Object.defineProperty(r,"parseBytes32String",{enumerable:!0,get:function(){return n.parseBytes32String}});var o=e("./idna");Object.defineProperty(r,"nameprep",{enumerable:!0,get:function(){return o.nameprep}});var i=e("./utf8");Object.defineProperty(r,"_toEscapedUtf8String",{enumerable:!0,get:function(){return i._toEscapedUtf8String}}),Object.defineProperty(r,"toUtf8Bytes",{enumerable:!0,get:function(){return i.toUtf8Bytes}}),Object.defineProperty(r,"toUtf8CodePoints",{enumerable:!0,get:function(){return i.toUtf8CodePoints}}),Object.defineProperty(r,"toUtf8String",{enumerable:!0,get:function(){return i.toUtf8String}}),Object.defineProperty(r,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return i.UnicodeNormalizationForm}}),Object.defineProperty(r,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return i.Utf8ErrorFuncs}}),Object.defineProperty(r,"Utf8ErrorReason",{enumerable:!0,get:function(){return i.Utf8ErrorReason}})}}},{package:"@ethersproject/abi>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/index.js"}],[487,{"./_version":483,"@ethersproject/bytes":413,"@ethersproject/logger":442},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.toUtf8CodePoints=r.toUtf8String=r._toUtf8String=r._toEscapedUtf8String=r.toUtf8Bytes=r.Utf8ErrorFuncs=r.Utf8ErrorReason=r.UnicodeNormalizationForm=void 0;var n,o,i=e("@ethersproject/bytes"),a=e("@ethersproject/logger"),s=e("./_version"),u=new a.Logger(s.version);function c(e,t,r,n,i){if(e===o.BAD_PREFIX||e===o.UNEXPECTED_CONTINUE){for(var a=0,s=t+1;s<r.length&&r[s]>>6==2;s++)a++;return a}return e===o.OVERRUN?r.length-t-1:0}function l(e,t){null==t&&(t=r.Utf8ErrorFuncs.error),e=(0,i.arrayify)(e);for(var n=[],a=0;a<e.length;){var s=e[a++];if(s>>7!=0){var u=null,c=null;if(192==(224&s))u=1,c=127;else if(224==(240&s))u=2,c=2047;else{if(240!=(248&s)){a+=t(128==(192&s)?o.UNEXPECTED_CONTINUE:o.BAD_PREFIX,a-1,e,n);continue}u=3,c=65535}if(a-1+u>=e.length)a+=t(o.OVERRUN,a-1,e,n);else{for(var l=s&(1<<8-u-1)-1,h=0;h<u;h++){var f=e[a];if(128!=(192&f)){a+=t(o.MISSING_CONTINUE,a,e,n),l=null;break}l=l<<6|63&f,a++}null!==l&&(l>1114111?a+=t(o.OUT_OF_RANGE,a-1-u,e,n,l):l>=55296&&l<=57343?a+=t(o.UTF16_SURROGATE,a-1-u,e,n,l):l<=c?a+=t(o.OVERLONG,a-1-u,e,n,l):n.push(l))}}else n.push(s)}return n}function h(e,t){void 0===t&&(t=n.current),t!=n.current&&(u.checkNormalize(),e=e.normalize(t));for(var r=[],o=0;o<e.length;o++){var a=e.charCodeAt(o);if(a<128)r.push(a);else if(a<2048)r.push(a>>6|192),r.push(63&a|128);else if(55296==(64512&a)){o++;var s=e.charCodeAt(o);if(o>=e.length||56320!=(64512&s))throw new Error("invalid utf-8 string");var c=65536+((1023&a)<<10)+(1023&s);r.push(c>>18|240),r.push(c>>12&63|128),r.push(c>>6&63|128),r.push(63&c|128)}else r.push(a>>12|224),r.push(a>>6&63|128),r.push(63&a|128)}return(0,i.arrayify)(r)}function f(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(n=r.UnicodeNormalizationForm||(r.UnicodeNormalizationForm={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(o=r.Utf8ErrorReason||(r.Utf8ErrorReason={})),r.Utf8ErrorFuncs=Object.freeze({error:function(e,t,r,n,o){return u.throwArgumentError("invalid codepoint at offset "+t+"; "+e,"bytes",r)},ignore:c,replace:function(e,t,r,n,i){return e===o.OVERLONG?(n.push(i),0):(n.push(65533),c(e,t,r))}}),r.toUtf8Bytes=h,r._toEscapedUtf8String=function(e,t){return'"'+l(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))})).join("")+'"'},r._toUtf8String=d,r.toUtf8String=function(e,t){return d(l(e,t))},r.toUtf8CodePoints=function(e,t){return void 0===t&&(t=n.current),l(h(e,t))}}}},{package:"@ethersproject/abi>@ethersproject/strings",file:"node_modules/@ethersproject/strings/lib/utf8.js"}],[488,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="transactions/5.7.0"}}},{package:"@ethersproject/hdnode>@ethersproject/transactions",file:"node_modules/@ethersproject/transactions/lib/_version.js"}],[489,{"./_version":488,"@ethersproject/address":403,"@ethersproject/bignumber":410,"@ethersproject/bytes":413,"@ethersproject/constants":417,"@ethersproject/keccak256":439,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/rlp":473,"@ethersproject/signing-key":480},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){n===undefined&&(n=r),Object.defineProperty(e,n,{enumerable:!0,get:function(){return t[r]}})}:function(e,t,r,n){n===undefined&&(n=r),e[n]=t[r]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)"default"!==r&&Object.prototype.hasOwnProperty.call(e,r)&&n(t,e,r);return o(t,e),t};Object.defineProperty(r,"__esModule",{value:!0}),r.parse=r.serialize=r.accessListify=r.recoverAddress=r.computeAddress=r.TransactionTypes=void 0;var a=e("@ethersproject/address"),s=e("@ethersproject/bignumber"),u=e("@ethersproject/bytes"),c=e("@ethersproject/constants"),l=e("@ethersproject/keccak256"),h=e("@ethersproject/properties"),f=i(e("@ethersproject/rlp")),d=e("@ethersproject/signing-key"),p=e("@ethersproject/logger"),m=e("./_version"),g=new p.Logger(m.version);function v(e){return"0x"===e?null:(0,a.getAddress)(e)}function y(e){return"0x"===e?c.Zero:s.BigNumber.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r.TransactionTypes||(r.TransactionTypes={}));var b=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],w={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function A(e){var t=(0,d.computePublicKey)(e);return(0,a.getAddress)((0,u.hexDataSlice)((0,l.keccak256)((0,u.hexDataSlice)(t,1)),12))}function E(e,t){return A((0,d.recoverPublicKey)((0,u.arrayify)(e),t))}function _(e,t){var r=(0,u.stripZeros)(s.BigNumber.from(e).toHexString());return r.length>32&&g.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function T(e,t){return{address:(0,a.getAddress)(e),storageKeys:(t||[]).map((function(t,r){return 32!==(0,u.hexDataLength)(t)&&g.throwArgumentError("invalid access list storageKey","accessList["+e+":"+r+"]",t),t.toLowerCase()}))}}function P(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&g.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value["+t+"]",e),T(e[0],e[1])):T(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return T(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function k(e){return P(e).map((function(e){return[e.address,e.storageKeys]}))}function S(e,t){if(null!=e.gasPrice){var r=s.BigNumber.from(e.gasPrice),n=s.BigNumber.from(e.maxFeePerGas||0);r.eq(n)||g.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var o=[_(e.chainId||0,"chainId"),_(e.nonce||0,"nonce"),_(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),_(e.maxFeePerGas||0,"maxFeePerGas"),_(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",_(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var i=(0,u.splitSignature)(t);o.push(_(i.recoveryParam,"recoveryParam")),o.push((0,u.stripZeros)(i.r)),o.push((0,u.stripZeros)(i.s))}return(0,u.hexConcat)(["0x02",f.encode(o)])}function O(e,t){var r=[_(e.chainId||0,"chainId"),_(e.nonce||0,"nonce"),_(e.gasPrice||0,"gasPrice"),_(e.gasLimit||0,"gasLimit"),null!=e.to?(0,a.getAddress)(e.to):"0x",_(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var n=(0,u.splitSignature)(t);r.push(_(n.recoveryParam,"recoveryParam")),r.push((0,u.stripZeros)(n.r)),r.push((0,u.stripZeros)(n.s))}return(0,u.hexConcat)(["0x01",f.encode(r)])}function N(e,t,r){try{var n=y(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(e){g.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,u.hexZeroPad)(t[1],32),e.s=(0,u.hexZeroPad)(t[2],32);try{var o=(0,l.keccak256)(r(e));e.from=E(o,{r:e.r,s:e.s,recoveryParam:e.v})}catch(e){}}r.computeAddress=A,r.recoverAddress=E,r.accessListify=P,r.serialize=function(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&g.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,h.checkProperties)(e,w);var r=[];b.forEach((function(t){var n=e[t.name]||[],o={};t.numeric&&(o.hexPad="left"),n=(0,u.arrayify)((0,u.hexlify)(n,o)),t.length&&n.length!==t.length&&n.length>0&&g.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=(0,u.stripZeros)(n)).length>t.maxLength&&g.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push((0,u.hexlify)(n))}));var n=0;if(null!=e.chainId?"number"!=typeof(n=e.chainId)&&g.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,u.isBytesLike)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push((0,u.hexlify)(n)),r.push("0x"),r.push("0x")),!t)return f.encode(r);var o=(0,u.splitSignature)(t),i=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),i+=2*n+8,o.v>28&&o.v!==i&&g.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==i&&g.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push((0,u.hexlify)(i)),r.push((0,u.stripZeros)((0,u.arrayify)(o.r))),r.push((0,u.stripZeros)((0,u.arrayify)(o.s))),f.encode(r)}(e,t);switch(e.type){case 1:return O(e,t);case 2:return S(e,t)}return g.throwError("unsupported transaction type: "+e.type,p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})},r.parse=function(e){var t=(0,u.arrayify)(e);if(t[0]>127)return function(e){var t=f.decode(e);9!==t.length&&6!==t.length&&g.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:y(t[0]).toNumber(),gasPrice:y(t[1]),gasLimit:y(t[2]),to:v(t[3]),value:y(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=s.BigNumber.from(t[6]).toNumber()}catch(e){return r}if(r.r=(0,u.hexZeroPad)(t[7],32),r.s=(0,u.hexZeroPad)(t[8],32),s.BigNumber.from(r.r).isZero()&&s.BigNumber.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,o=t.slice(0,6);0!==r.chainId&&(o.push((0,u.hexlify)(r.chainId)),o.push("0x"),o.push("0x"),n-=2*r.chainId+8);var i=(0,l.keccak256)(f.encode(o));try{r.from=E(i,{r:(0,u.hexlify)(r.r),s:(0,u.hexlify)(r.s),recoveryParam:n})}catch(e){}r.hash=(0,l.keccak256)(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=f.decode(e.slice(1));8!==t.length&&11!==t.length&&g.throwArgumentError("invalid component count for transaction type: 1","payload",(0,u.hexlify)(e));var r={type:1,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),gasPrice:y(t[2]),gasLimit:y(t[3]),to:v(t[4]),value:y(t[5]),data:t[6],accessList:P(t[7])};return 8===t.length||(r.hash=(0,l.keccak256)(e),N(r,t.slice(8),O)),r}(t);case 2:return function(e){var t=f.decode(e.slice(1));9!==t.length&&12!==t.length&&g.throwArgumentError("invalid component count for transaction type: 2","payload",(0,u.hexlify)(e));var r=y(t[2]),n=y(t[3]),o={type:2,chainId:y(t[0]).toNumber(),nonce:y(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:y(t[4]),to:v(t[5]),value:y(t[6]),data:t[7],accessList:P(t[8])};return 9===t.length||(o.hash=(0,l.keccak256)(e),N(o,t.slice(9),S)),o}(t)}return g.throwError("unsupported transaction type: "+t[0],p.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}}}},{package:"@ethersproject/hdnode>@ethersproject/transactions",file:"node_modules/@ethersproject/transactions/lib/index.js"}],[494,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="web/5.7.1"}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/_version.js"}],[495,{"@ethersproject/bytes":413},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.getUrl=void 0;var i=e("@ethersproject/bytes");r.getUrl=function(e,t){return n(this,void 0,void 0,(function(){var r,n,a,s,u;return o(this,(function(o){switch(o.label){case 0:return null==t&&(t={}),r={method:t.method||"GET",headers:t.headers||{},body:t.body||undefined},!0!==t.skipFetchSetup&&(r.mode="cors",r.cache="no-cache",r.credentials="same-origin",r.redirect="follow",r.referrer="client"),null!=t.fetchOptions&&((n=t.fetchOptions).mode&&(r.mode=n.mode),n.cache&&(r.cache=n.cache),n.credentials&&(r.credentials=n.credentials),n.redirect&&(r.redirect=n.redirect),n.referrer&&(r.referrer=n.referrer)),[4,fetch(e,r)];case 1:return[4,(a=o.sent()).arrayBuffer()];case 2:return s=o.sent(),u={},a.headers.forEach?a.headers.forEach((function(e,t){u[t.toLowerCase()]=e})):a.headers.keys().forEach((function(e){u[e.toLowerCase()]=a.headers.get(e)})),[2,{headers:u,statusCode:a.status,statusMessage:a.statusText,body:(0,i.arrayify)(new Uint8Array(s))}]}}))}))}}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/browser-geturl.js"}],[496,{"./_version":494,"./geturl":495,"@ethersproject/base64":405,"@ethersproject/bytes":413,"@ethersproject/logger":442,"@ethersproject/properties":448,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{u(n.next(e))}catch(e){i(e)}}function s(e){try{u(n.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,s)}u((n=n.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var r,n,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(i){return function(s){return function(i){if(r)throw new TypeError("Generator is already executing.");for(;a;)try{if(r=1,n&&(o=2&i[0]?n.return:i[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,i[1])).done)return o;switch(n=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return a.label++,{value:i[1],done:!1};case 5:a.label++,n=i[1],i=[0];continue;case 7:i=a.ops.pop(),a.trys.pop();continue;default:if(!(o=a.trys,(o=o.length>0&&o[o.length-1])||6!==i[0]&&2!==i[0])){a=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){a.label=i[1];break}if(6===i[0]&&a.label<o[1]){a.label=o[1],o=i;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(i);break}o[2]&&a.ops.pop(),a.trys.pop();continue}i=t.call(e,a)}catch(e){i=[6,e],n=0}finally{r=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,s])}}};Object.defineProperty(r,"__esModule",{value:!0}),r.poll=r.fetchJson=r._fetchData=void 0;var i=e("@ethersproject/base64"),a=e("@ethersproject/bytes"),s=e("@ethersproject/properties"),u=e("@ethersproject/strings"),c=e("@ethersproject/logger"),l=e("./_version"),h=new c.Logger(l.version),f=e("./geturl");function d(e){return new Promise((function(t){setTimeout(t,e)}))}function p(e,t){if(null==e)return null;if("string"==typeof e)return e;if((0,a.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,u.toUtf8String)(e)}catch(e){}return(0,a.hexlify)(e)}return e}function m(e,t,r){var a="object"==typeof e&&null!=e.throttleLimit?e.throttleLimit:12;h.assertArgument(a>0&&a%1==0,"invalid connection throttle limit","connection.throttleLimit",a);var l="object"==typeof e?e.throttleCallback:null,m="object"==typeof e&&"number"==typeof e.throttleSlotInterval?e.throttleSlotInterval:100;h.assertArgument(m>0&&m%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",m);var g="object"==typeof e&&!!e.errorPassThrough,v={},y=null,b={method:"GET"},w=!1,A=12e4;if("string"==typeof e)y=e;else if("object"==typeof e){if(null!=e&&null!=e.url||h.throwArgumentError("missing URL","connection.url",e),y=e.url,"number"==typeof e.timeout&&e.timeout>0&&(A=e.timeout),e.headers)for(var E in e.headers)v[E.toLowerCase()]={key:E,value:String(e.headers[E])},["if-none-match","if-modified-since"].indexOf(E.toLowerCase())>=0&&(w=!0);if(b.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==y.substring(0,6)&&!0!==e.allowInsecureAuthentication&&h.throwError("basic authentication requires a secure https url",c.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:y,user:e.user,password:"[REDACTED]"});var _=e.user+":"+e.password;v.authorization={key:"Authorization",value:"Basic "+(0,i.encode)((0,u.toUtf8Bytes)(_))}}null!=e.skipFetchSetup&&(b.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(b.fetchOptions=(0,s.shallowCopy)(e.fetchOptions))}var T,P=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),k=y?y.match(P):null;if(k)try{var S={statusCode:200,statusMessage:"OK",headers:{"content-type":k[1]||"text/plain"},body:k[2]?(0,i.decode)(k[3]):(T=k[3],(0,u.toUtf8Bytes)(T.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},O=S.body;return r&&(O=r(S.body,S)),Promise.resolve(O)}catch(e){h.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:p(k[1],k[2]),error:e,requestBody:null,requestMethod:"GET",url:y})}t&&(b.method="POST",b.body=t,null==v["content-type"]&&(v["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==v["content-length"]&&(v["content-length"]={key:"Content-Length",value:String(t.length)}));var N={};Object.keys(v).forEach((function(e){var t=v[e];N[t.key]=t.value})),b.headers=N;var C,I=(C=null,{promise:new Promise((function(e,t){A&&(C=setTimeout((function(){null!=C&&(C=null,t(h.makeError("timeout",c.Logger.errors.TIMEOUT,{requestBody:p(b.body,N["content-type"]),requestMethod:b.method,timeout:A,url:y})))}),A))})),cancel:function(){null!=C&&(clearTimeout(C),C=null)}}),R=function(){return n(this,void 0,void 0,(function(){var e,t,n,i,s,u,v,A,E;return o(this,(function(o){switch(o.label){case 0:e=0,o.label=1;case 1:if(!(e<a))return[3,20];t=null,o.label=2;case 2:return o.trys.push([2,9,,10]),[4,(0,f.getUrl)(y,b)];case 3:return t=o.sent(),e<a?301!==t.statusCode&&302!==t.statusCode?[3,4]:(n=t.headers.location||"","GET"===b.method&&n.match(/^https:/)?(y=t.headers.location,[3,19]):[3,8]):[3,8];case 4:return 429!==t.statusCode?[3,8]:(E=!0,l?[4,l(e,y)]:[3,6]);case 5:E=o.sent(),o.label=6;case 6:return E?(0,i=t.headers["retry-after"],[4,d("string"==typeof i&&i.match(/^[1-9][0-9]*$/)?1e3*parseInt(i):m*parseInt(String(Math.random()*Math.pow(2,e))))]):[3,8];case 7:return o.sent(),[3,19];case 8:return[3,10];case 9:return s=o.sent(),null==(t=s.response)&&(I.cancel(),h.throwError("missing response",c.Logger.errors.SERVER_ERROR,{requestBody:p(b.body,N["content-type"]),requestMethod:b.method,serverError:s,url:y})),[3,10];case 10:if(u=t.body,w&&304===t.statusCode?u=null:!g&&(t.statusCode<200||t.statusCode>=300)&&(I.cancel(),h.throwError("bad response",c.Logger.errors.SERVER_ERROR,{status:t.statusCode,headers:t.headers,body:p(u,t.headers?t.headers["content-type"]:null),requestBody:p(b.body,N["content-type"]),requestMethod:b.method,url:y})),!r)return[3,18];o.label=11;case 11:return o.trys.push([11,13,,18]),[4,r(u,t)];case 12:return v=o.sent(),I.cancel(),[2,v];case 13:return(A=o.sent()).throttleRetry&&e<a?(E=!0,l?[4,l(e,y)]:[3,15]):[3,17];case 14:E=o.sent(),o.label=15;case 15:return E?[4,d(m*parseInt(String(Math.random()*Math.pow(2,e))))]:[3,17];case 16:return o.sent(),[3,19];case 17:return I.cancel(),h.throwError("processing response error",c.Logger.errors.SERVER_ERROR,{body:p(u,t.headers?t.headers["content-type"]:null),error:A,requestBody:p(b.body,N["content-type"]),requestMethod:b.method,url:y}),[3,18];case 18:return I.cancel(),[2,u];case 19:return e++,[3,1];case 20:return[2,h.throwError("failed response",c.Logger.errors.SERVER_ERROR,{requestBody:p(b.body,N["content-type"]),requestMethod:b.method,url:y})]}}))}))}();return Promise.race([I.promise,R])}r._fetchData=m,r.fetchJson=function(e,t,r){var n=null;if(null!=t){n=(0,u.toUtf8Bytes)(t);var o="string"==typeof e?{url:e}:(0,s.shallowCopy)(e);if(o.headers)0!==Object.keys(o.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(o.headers=(0,s.shallowCopy)(o.headers),o.headers["content-type"]="application/json");else o.headers={"content-type":"application/json"};e=o}return m(e,n,(function(e,t){var n=null;if(null!=e)try{n=JSON.parse((0,u.toUtf8String)(e))}catch(t){h.throwError("invalid JSON",c.Logger.errors.SERVER_ERROR,{body:e,error:t})}return r&&(n=r(n,t)),n}))},r.poll=function(e,t){return t||(t={}),null==(t=(0,s.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){var o=null,i=!1,a=function(){return!i&&(i=!0,o&&clearTimeout(o),!0)};t.timeout&&(o=setTimeout((function(){a()&&n(new Error("timeout"))}),t.timeout));var s=t.retryLimit,u=0;!function o(){return e().then((function(e){if(e!==undefined)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",o);else if(t.onceBlock)t.onceBlock.once("block",o);else if(!i){if(++u>s)return void(a()&&n(new Error("retry limit reached")));var c=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));c<t.floor&&(c=t.floor),c>t.ceiling&&(c=t.ceiling),setTimeout(o,c)}return null}),(function(e){a()&&n(e)}))}()}))}}}},{package:"@ethersproject/providers>@ethersproject/web",file:"node_modules/@ethersproject/web/lib/index.js"}],[497,{},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.version=void 0,r.version="wordlists/5.7.0"}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/_version.js"}],[498,{"./wordlist":507,"./wordlists":508},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){Object.defineProperty(r,"__esModule",{value:!0}),r.wordlists=r.Wordlist=r.logger=void 0;var n=e("./wordlist");Object.defineProperty(r,"logger",{enumerable:!0,get:function(){return n.logger}}),Object.defineProperty(r,"Wordlist",{enumerable:!0,get:function(){return n.Wordlist}});var o=e("./wordlists");Object.defineProperty(r,"wordlists",{enumerable:!0,get:function(){return o.wordlists}})}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/index.js"}],[499,{"./wordlist":507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.langCz=void 0;var i=e("./wordlist"),a=null;function s(e){if(null==a&&(a="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==i.Wordlist.check(e)))throw a=null,new Error("BIP39 Wordlist for en (English) FAILED")}var u=new(function(e){function t(){return e.call(this,"cz")||this}return o(t,e),t.prototype.getWord=function(e){return s(this),a[e]},t.prototype.getWordIndex=function(e){return s(this),a.indexOf(e)},t}(i.Wordlist));r.langCz=u,i.Wordlist.register(u)}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/lang-cz.js"}],[500,{"./wordlist":507},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.langEn=void 0;var i=e("./wordlist"),a=null;function s(e){if(null==a&&(a="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==i.Wordlist.check(e)))throw a=null,new Error("BIP39 Wordlist for en (English) FAILED")}var u=new(function(e){function t(){return e.call(this,"en")||this}return o(t,e),t.prototype.getWord=function(e){return s(this),a[e]},t.prototype.getWordIndex=function(e){return s(this),a.indexOf(e)},t}(i.Wordlist));r.langEn=u,i.Wordlist.register(u)}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/lang-en.js"}],[501,{"./wordlist":507,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.langEs=void 0;var i=e("@ethersproject/strings"),a=e("./wordlist"),s={},u=null;function c(e){return a.logger.checkNormalize(),(0,i.toUtf8String)(Array.prototype.filter.call((0,i.toUtf8Bytes)(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function l(e){if(null==u&&((u="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return t=e,r=[],Array.prototype.forEach.call((0,i.toUtf8Bytes)(t),(function(e){47===e?(r.push(204),r.push(129)):126===e?(r.push(110),r.push(204),r.push(131)):r.push(e)})),(0,i.toUtf8String)(r);var t,r}))).forEach((function(e,t){s[c(e)]=t})),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==a.Wordlist.check(e)))throw u=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var h=new(function(e){function t(){return e.call(this,"es")||this}return o(t,e),t.prototype.getWord=function(e){return l(this),u[e]},t.prototype.getWordIndex=function(e){return l(this),s[c(e)]},t}(a.Wordlist));r.langEs=h,a.Wordlist.register(h)}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/lang-es.js"}],[502,{"./wordlist":507,"@ethersproject/strings":486},function(){with(this.scopeTerminator)with(this.globalThis)return function(){"use strict";return function(e,t,r){var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(r,"__esModule",{value:!0}),r.langFr=void 0;var i=e("@ethersproject/strings"),a=e("./wordlist"),s=null,u={};function c(e){return a.logger.checkNormalize(),(0,i.toUtf8String)(Array.prototype.filter.call((0,i.toUtf8Bytes)(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function l(e){if(null==s&&((s="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return t=e,r=[],Array.prototype.forEach.call((0,i.toUtf8Bytes)(t),(function(e){47===e?(r.push(204),r.push(129)):45===e?(r.push(204),r.push(128)):r.push(e)})),(0,i.toUtf8String)(r);var t,r}))).forEach((function(e,t){u[c(e)]=t})),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==a.Wordlist.check(e)))throw s=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var h=new(function(e){function t(){return e.call(this,"fr")||this}return o(t,e),t.prototype.getWord=function(e){return l(this),s[e]},t.prototype.getWordIndex=function(e){return l(this),u[c(e)]},t}(a.Wordlist));r.langFr=h,a.Wordlist.register(h)}}},{package:"@ethersproject/hdnode>@ethersproject/wordlists",file:"node_modules/@ethersproject/wordlists/lib/lang-fr.js"}]],[],{});