worldswap.wtf Open in urlscan Pro
35.156.224.161  Public Scan

URL: https://worldswap.wtf/static/js/main.d3f0a383.chunk.js
Submission: On October 26 via api from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

(this["webpackJsonp@baguette-exchange/interface"]=this["webpackJsonp@baguette-exchange/interface"]||[]).push([[0],{139:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_spender","type":"address"},{"name":"_value","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_from","type":"address"},{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"balanceOf","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"}],"name":"nonces","outputs":[{"name":"nonce","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"_to","type":"address"},{"name":"_value","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"name":"_owner","type":"address"},{"name":"_spender","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"owner","type":"address"},{"indexed":true,"name":"spender","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"from","type":"address"},{"indexed":true,"name":"to","type":"address"},{"indexed":false,"name":"value","type":"uint256"}],"name":"Transfer","type":"event"}]')},140:function(e,n,t){e.exports=t.p+"static/media/big_unicorn.02ff316b.png"},141:function(e,n,t){e.exports=t.p+"static/media/blue-loader.904b44c2.svg"},142:function(e,n,t){e.exports=t.p+"static/media/noise.17ab2292.png"},143:function(e,n,t){e.exports=t.p+"static/media/xl_uni.ed12c533.png"},144:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAADICAYAAADGFbfiAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAA6pSURBVHgB7d3tsRu3Fcbxx5l8jzsQXEGUCgRVELuCu65ATgVkKpBdAdcVSKmAdAV2Kth1BXIqYIShrn19xbddAjgHy/9v5nyx5BG4S+LgHRIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAwNzXHyMKANoVdajLUNn+UwwikQBoS9Sh7nqsx1DZB/3x8FOsBAD+pbrqad31Qaiu159fQoqNAMCvVEdRbzkQ9fmL4GUA8OpY8kjBHIiBL/X5MBZJBIBHp5IH8x+Gtjr9Ut4KAOytdLqe2gpm1jr9YlJ8JwCw80bn66i1YCaNHZ57OWmIKwgA6gs6PczO/IcDQedfToqfBQD1DbpcP70UTO2viLUAoJ6VrqubYOyal5S6kV8KAMoLujx0RQJxYn9lrAUA5W10fb0EY9e+KHohAEoLur5Oaj6B/EVtm5IQ0t9lWS+AkqKmoVFrKK1gmJLtWZEFoKRUx0ypk5pehdV6D2Tqw09//4UAIL+geX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CJqqpCA8EiMPqOQUoCBAQithTAeLQer7At2+NBQQIlOA1lkuCAKH84a0wfaD+ECCg8YAA0Yw8j+cwkSFAQLPE+RIguLVXnaY8KwgQKBUObs7WUoBQ6kY7+/MrbBAgIPQxhQgQNKT6jTTLs2h61lOAgGIGAULP23z31zheY7m4IEBAw4PJ3K40h0Nv35rimj2w7qZKE4hDjIsG1lSAIOAAAYIm7eaHsyhAwPSh2YEA0awBwSxAyB5oihUECKYQ3JatKwIE0wc4nwIEMGkjQAA3ZWsrQFCYChNTiAABcNlBgIAmZwoRIgIEzQ4QIEATphABAmhwJUMEAYImB86vAAEq8ipLgACaGwIENDdMIc6yAAFBDQIEMIUIagGCWzEIEQECaGwIEABTiLD+l90SUKnAjm5AmgomEEBwm0JcGAQICkuzw1kXIKCZ20sECOBWbL0FCIQrppU3Vrdl6ypAAISIKUSAQL9Gp6EhQKDQLRX7K0AAhAACRIFVKvBInzvyHmZv4AIoJpsS0NHvsmcV55GfO0NDiboeFfZp9fc9Ag0AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAKj4Bt5wjS2vyB94AAAAASUVORK5CYII="},176:function(e,n,t){e.exports=t.p+"static/media/upleft.569bf022.svg"},179:function(e){e.exports=JSON.parse('[{"type":"constructor","stateMutability":"nonpayable","inputs":[{"type":"string","name":"_name","internalType":"string"},{"type":"string","name":"_symbol","internalType":"string"},{"type":"address","name":"_depositToken","internalType":"address"},{"type":"address","name":"_rewardToken","internalType":"address"},{"type":"address","name":"_stakingContract","internalType":"address"},{"type":"address","name":"_timelock","internalType":"address"},{"type":"uint256","name":"_minTokensToReinvest","internalType":"uint256"},{"type":"uint256","name":"_adminFeeBips","internalType":"uint256"},{"type":"uint256","name":"_devFeeBips","internalType":"uint256"},{"type":"uint256","name":"_reinvestRewardBips","internalType":"uint256"}]},{"type":"event","name":"AllowDepositor","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Approval","inputs":[{"type":"address","name":"owner","internalType":"address","indexed":true},{"type":"address","name":"spender","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Deposit","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"DepositsEnabled","inputs":[{"type":"bool","name":"newValue","internalType":"bool","indexed":false}],"anonymous":false},{"type":"event","name":"OwnershipTransferred","inputs":[{"type":"address","name":"previousOwner","internalType":"address","indexed":true},{"type":"address","name":"newOwner","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Recovered","inputs":[{"type":"address","name":"token","internalType":"address","indexed":false},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Reinvest","inputs":[{"type":"uint256","name":"newTotalDeposits","internalType":"uint256","indexed":false},{"type":"uint256","name":"newTotalSupply","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"RemoveDepositor","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true}],"anonymous":false},{"type":"event","name":"Transfer","inputs":[{"type":"address","name":"from","internalType":"address","indexed":true},{"type":"address","name":"to","internalType":"address","indexed":true},{"type":"uint256","name":"value","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateAdminFee","inputs":[{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateDevAddr","inputs":[{"type":"address","name":"oldValue","internalType":"address","indexed":false},{"type":"address","name":"newValue","internalType":"address","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateDevFee","inputs":[{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateMaxTokensToDepositWithoutReinvest","inputs":[{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateMinTokensToReinvest","inputs":[{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"UpdateReinvestReward","inputs":[{"type":"uint256","name":"oldValue","internalType":"uint256","indexed":false},{"type":"uint256","name":"newValue","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"event","name":"Withdraw","inputs":[{"type":"address","name":"account","internalType":"address","indexed":true},{"type":"uint256","name":"amount","internalType":"uint256","indexed":false}],"anonymous":false},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"ADMIN_FEE_BIPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"DEPOSITS_ENABLED","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"DEV_FEE_BIPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"DOMAIN_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MAX_TOKENS_TO_DEPOSIT_WITHOUT_REINVEST","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"MIN_TOKENS_TO_REINVEST","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"PERMIT_TYPEHASH","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"REINVEST_REWARD_BIPS","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"VERSION_HASH","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"allowDepositor","inputs":[{"type":"address","name":"depositor","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"allowance","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"allowedDepositors","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"approve","inputs":[{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"balanceOf","inputs":[{"type":"address","name":"account","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"checkReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint8","name":"","internalType":"uint8"}],"name":"decimals","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"deposit","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositFor","inputs":[{"type":"address","name":"account","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"depositToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"depositWithPermit","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"devAddr","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"estimateDeployedBalance","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"estimateReinvestReward","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getDepositTokensForShares","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"bytes32","name":"","internalType":"bytes32"}],"name":"getDomainSeparator","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"getSharesForDepositTokens","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"name","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"nonces","inputs":[{"type":"address","name":"","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"numberOfAllowedDepositors","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"address"}],"name":"owner","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"permit","inputs":[{"type":"address","name":"owner","internalType":"address"},{"type":"address","name":"spender","internalType":"address"},{"type":"uint256","name":"value","internalType":"uint256"},{"type":"uint256","name":"deadline","internalType":"uint256"},{"type":"uint8","name":"v","internalType":"uint8"},{"type":"bytes32","name":"r","internalType":"bytes32"},{"type":"bytes32","name":"s","internalType":"bytes32"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverAVAX","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"recoverERC20","inputs":[{"type":"address","name":"tokenAddress","internalType":"address"},{"type":"uint256","name":"tokenAmount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"reinvest","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"removeDepositor","inputs":[{"type":"address","name":"depositor","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"renounceOwnership","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"rescueDeployedFunds","inputs":[{"type":"uint256","name":"minReturnAmountAccepted","internalType":"uint256"},{"type":"bool","name":"disableDeposits","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"revokeAllowance","inputs":[{"type":"address","name":"token","internalType":"address"},{"type":"address","name":"spender","internalType":"address"}]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IERC20"}],"name":"rewardToken","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"setAllowances","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"address","name":"","internalType":"contract IStakingRewards"}],"name":"stakingContract","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"string","name":"","internalType":"string"}],"name":"symbol","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalDeposits","inputs":[]},{"type":"function","stateMutability":"view","outputs":[{"type":"uint256","name":"","internalType":"uint256"}],"name":"totalSupply","inputs":[]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transfer","inputs":[{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[{"type":"bool","name":"","internalType":"bool"}],"name":"transferFrom","inputs":[{"type":"address","name":"src","internalType":"address"},{"type":"address","name":"dst","internalType":"address"},{"type":"uint256","name":"amount","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"transferOwnership","inputs":[{"type":"address","name":"newOwner","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateAdminFee","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDepositsEnabled","inputs":[{"type":"bool","name":"newValue","internalType":"bool"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDevAddr","inputs":[{"type":"address","name":"newValue","internalType":"address"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateDevFee","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMaxTokensToDepositWithoutReinvest","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateMinTokensToReinvest","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"updateReinvestReward","inputs":[{"type":"uint256","name":"newValue","internalType":"uint256"}]},{"type":"function","stateMutability":"nonpayable","outputs":[],"name":"withdraw","inputs":[{"type":"uint256","name":"amount","internalType":"uint256"}]}]')},188:function(e,n,t){var a={"./arrow-down-blue.svg":406,"./arrow-down-grey.svg":407,"./arrow-right-white.png":408,"./arrow-right.svg":409,"./avalanche_token_round.png":217,"./big_unicorn.png":140,"./blue-loader.svg":141,"./circle-grey.svg":410,"./circle.svg":411,"./coinbaseWalletIcon.svg":412,"./dropdown-blue.svg":413,"./dropdown.svg":414,"./dropup-blue.svg":415,"./ethereum-logo.png":416,"./fortmaticIcon.png":417,"./link.svg":418,"./magnifying-glass.svg":419,"./menu.svg":420,"./metamask.png":216,"./noise.png":142,"./plus-blue.svg":421,"./plus-grey.svg":422,"./portisIcon.png":423,"./powered-by-avax.png":424,"./question-mark.svg":425,"./question.svg":426,"./rabby.png":427,"./spinner.svg":428,"./token-list/lists-dark.png":429,"./token-list/lists-light.png":430,"./token-logo.png":218,"./trustWallet.png":431,"./walletConnectIcon.svg":432,"./x.svg":433,"./xl_uni.png":143,"./yieldyak-logo-black.png":144,"./yieldyak-logo-grey.png":145,"./yieldyak-logo-white.png":219};function r(e){var n=i(e);return t(n)}function i(e){if(!t.o(a,e)){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}return a[e]}r.keys=function(){return Object.keys(a)},r.resolve=i,e.exports=r,r.id=188},213:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"}]')},214:function(e){e.exports=JSON.parse('[{"name":"TokenPurchase","inputs":[{"type":"address","name":"buyer","indexed":true},{"type":"uint256","name":"eth_sold","indexed":true},{"type":"uint256","name":"tokens_bought","indexed":true}],"anonymous":false,"type":"event"},{"name":"EthPurchase","inputs":[{"type":"address","name":"buyer","indexed":true},{"type":"uint256","name":"tokens_sold","indexed":true},{"type":"uint256","name":"eth_bought","indexed":true}],"anonymous":false,"type":"event"},{"name":"AddLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256","name":"eth_amount","indexed":true},{"type":"uint256","name":"token_amount","indexed":true}],"anonymous":false,"type":"event"},{"name":"RemoveLiquidity","inputs":[{"type":"address","name":"provider","indexed":true},{"type":"uint256","name":"eth_amount","indexed":true},{"type":"uint256","name":"token_amount","indexed":true}],"anonymous":false,"type":"event"},{"name":"Transfer","inputs":[{"type":"address","name":"_from","indexed":true},{"type":"address","name":"_to","indexed":true},{"type":"uint256","name":"_value","indexed":false}],"anonymous":false,"type":"event"},{"name":"Approval","inputs":[{"type":"address","name":"_owner","indexed":true},{"type":"address","name":"_spender","indexed":true},{"type":"uint256","name":"_value","indexed":false}],"anonymous":false,"type":"event"},{"name":"setup","outputs":[],"inputs":[{"type":"address","name":"token_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"addLiquidity","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"min_liquidity"},{"type":"uint256","name":"max_tokens"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":true,"type":"function"},{"name":"removeLiquidity","outputs":[{"type":"uint256","name":"outA"},{"type":"uint256","name":"outB"}],"inputs":[{"type":"uint256","name":"amount"},{"type":"uint256","name":"min_eth"},{"type":"uint256","name":"min_tokens"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":false,"type":"function"},{"name":"__default__","outputs":[],"inputs":[],"constant":false,"payable":true,"type":"function"},{"name":"ethToTokenSwapInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"min_tokens"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":true,"type":"function"},{"name":"ethToTokenTransferInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"min_tokens"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"}],"constant":false,"payable":true,"type":"function"},{"name":"ethToTokenSwapOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":true,"type":"function"},{"name":"ethToTokenTransferOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"}],"constant":false,"payable":true,"type":"function"},{"name":"tokenToEthSwapInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_eth"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToEthTransferInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_eth"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToEthSwapOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"eth_bought"},{"type":"uint256","name":"max_tokens"},{"type":"uint256","name":"deadline"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToEthTransferOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"eth_bought"},{"type":"uint256","name":"max_tokens"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToTokenSwapInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_tokens_bought"},{"type":"uint256","name":"min_eth_bought"},{"type":"uint256","name":"deadline"},{"type":"address","name":"token_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToTokenTransferInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_tokens_bought"},{"type":"uint256","name":"min_eth_bought"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"},{"type":"address","name":"token_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToTokenSwapOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"max_tokens_sold"},{"type":"uint256","name":"max_eth_sold"},{"type":"uint256","name":"deadline"},{"type":"address","name":"token_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToTokenTransferOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"max_tokens_sold"},{"type":"uint256","name":"max_eth_sold"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"},{"type":"address","name":"token_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToExchangeSwapInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_tokens_bought"},{"type":"uint256","name":"min_eth_bought"},{"type":"uint256","name":"deadline"},{"type":"address","name":"exchange_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToExchangeTransferInput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"},{"type":"uint256","name":"min_tokens_bought"},{"type":"uint256","name":"min_eth_bought"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"},{"type":"address","name":"exchange_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToExchangeSwapOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"max_tokens_sold"},{"type":"uint256","name":"max_eth_sold"},{"type":"uint256","name":"deadline"},{"type":"address","name":"exchange_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"tokenToExchangeTransferOutput","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"},{"type":"uint256","name":"max_tokens_sold"},{"type":"uint256","name":"max_eth_sold"},{"type":"uint256","name":"deadline"},{"type":"address","name":"recipient"},{"type":"address","name":"exchange_addr"}],"constant":false,"payable":false,"type":"function"},{"name":"getEthToTokenInputPrice","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"eth_sold"}],"constant":true,"payable":false,"type":"function"},{"name":"getEthToTokenOutputPrice","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_bought"}],"constant":true,"payable":false,"type":"function"},{"name":"getTokenToEthInputPrice","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"tokens_sold"}],"constant":true,"payable":false,"type":"function"},{"name":"getTokenToEthOutputPrice","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"uint256","name":"eth_bought"}],"constant":true,"payable":false,"type":"function"},{"name":"tokenAddress","outputs":[{"type":"address","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"factoryAddress","outputs":[{"type":"address","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"balanceOf","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"address","name":"_owner"}],"constant":true,"payable":false,"type":"function"},{"name":"transfer","outputs":[{"type":"bool","name":"out"}],"inputs":[{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"constant":false,"payable":false,"type":"function"},{"name":"transferFrom","outputs":[{"type":"bool","name":"out"}],"inputs":[{"type":"address","name":"_from"},{"type":"address","name":"_to"},{"type":"uint256","name":"_value"}],"constant":false,"payable":false,"type":"function"},{"name":"approve","outputs":[{"type":"bool","name":"out"}],"inputs":[{"type":"address","name":"_spender"},{"type":"uint256","name":"_value"}],"constant":false,"payable":false,"type":"function"},{"name":"allowance","outputs":[{"type":"uint256","name":"out"}],"inputs":[{"type":"address","name":"_owner"},{"type":"address","name":"_spender"}],"constant":true,"payable":false,"type":"function"},{"name":"name","outputs":[{"type":"bytes32","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"symbol","outputs":[{"type":"bytes32","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"decimals","outputs":[{"type":"uint256","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"totalSupply","outputs":[{"type":"uint256","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"}]')},215:function(e){e.exports=JSON.parse('[{"name":"NewExchange","inputs":[{"type":"address","name":"token","indexed":true},{"type":"address","name":"exchange","indexed":true}],"anonymous":false,"type":"event"},{"name":"initializeFactory","outputs":[],"inputs":[{"type":"address","name":"template"}],"constant":false,"payable":false,"type":"function"},{"name":"createExchange","outputs":[{"type":"address","name":"out"}],"inputs":[{"type":"address","name":"token"}],"constant":false,"payable":false,"type":"function"},{"name":"getExchange","outputs":[{"type":"address","name":"out"}],"inputs":[{"type":"address","name":"token"}],"constant":true,"payable":false,"type":"function"},{"name":"getToken","outputs":[{"type":"address","name":"out"}],"inputs":[{"type":"address","name":"exchange"}],"constant":true,"payable":false,"type":"function"},{"name":"getTokenWithId","outputs":[{"type":"address","name":"out"}],"inputs":[{"type":"uint256","name":"token_id"}],"constant":true,"payable":false,"type":"function"},{"name":"exchangeTemplate","outputs":[{"type":"address","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"},{"name":"tokenCount","outputs":[{"type":"uint256","name":"out"}],"inputs":[],"constant":true,"payable":false,"type":"function"}]')},216:function(e,n,t){e.exports=t.p+"static/media/metamask.023762b6.png"},217:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADxdJREFUeJztXVtzFMcVplwuP8VVeYmf7HJ+RKqSl/AQP6X8H+yqXUEIjhMnQY5jO9oVCIzA5mowdzAYG4xAGAyWLC5G3IyDL8gOASUYKrarYGZWC7qi23b6692VV6uZ7e6ZnT3di07VV6JUaLfnnG+6z+lz+vScOXUoL6SzP52/2PtlQ9p7piHlLU2k3P2JJqcjkXLO8589/OdN/tPjvx8VEP8Wv+sp/J8O/A3+Fp+Bz8JnUj/XrPjIwjT7ybxm57fJlLsy2eR2cwPe4QZksYB/Nr4D34XvxHdTP/8DJ+k0e4S/lb9Jpr2WZJNzgRtjPDaDS4DvFmPgY8GYMDZq/dStNKQzv0qmnA1c6RkqgysQIoMxYqzU+qoLWZDO/jyZdl7lir1ObdwQZLiOseMZqPVonSTS7i+4AtsTTW6O2pDR4ebEs/Bnotar8dKw2Pk1n0I76Y0W16zgdOIZqfVsnCSbvaeEB2+AkWpCBEQS/Jmp9U4u3Fl6nIdWB6gNQgb+7NABtR1qLjxcejiZdhfxKXGA3AjUswHXAXQBnVDbpSbCPeO5fAr8hlrxpgE6gW6o7ROb5N96Z3l9ePZxgUcMXEd1NxssbMk8kWxyztEr2A5AV3XjGySb3acTSLYYoFjL4EF31PYLLXwaeyiZcltnp/woEJtIrdAltT21BEkR7tnuo1dgfQC6tCbRlGh1H02k3C5qpalg/bt3WdOGDPk4lACdct1S27eiLEgPPMbDmcvkylLAgiUOc/sm2LHuITavmX48KoBun1828DNqO/tKsiX7JF+zeqmVpIqPzg2xyckc++Sfw2ImoB6POtxe6Jra3tM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ESgwelrB0IIMiOwVFFdFPGClnIJJ+lrBc01LcjgMACzXN7P3VWYonbej3OKScL2YIAAguDYK2reemODxfSUN+CAIKsKF8V1dWn4xBELuTvcGFEQ30DAghyo3xVzlmHCxsN9YZ8IyCv2s3d0gvQc9UrJd0O6rpSJ+K23hAUR/krg8aG+pvw9V0LnxFAkE14g61Vd+75tdVUxU1SBlCzFxEzviv1Je7IGuRPvCfrXPiMEhZyqn32o0YT9kp19TJo6rN0uLD6iOcHDOlDEhICCLJwMvd8VGFp99Coutbqz4V8buu9pKH+DwIIcqkePNKBtBpqH4Lr7tR/+ll63NYbgwfbehMCCHKpvfuqZskjNlZrflruroyVuD1cmGbdnDwCCI7mYHDUp9LN87tSGat2zb67T8WOZ4ZErwUCCLIYVNdb1Vf7a+hlXvoXQhCJWcgof2LWd/ID0wggyOGUy1d/SzuHapexvlOfvGYhJ3+4kADiR+1a7zEHpFaqZ0qLtwe1m76Pt/y32gfgFv9+O54Z0s1dZEsRQPy4Ut0g8ruWm1TPj/IjlltqLdTTjr/7SvV+v8YMJ7jjz3mSLx5Kp8CNOAY2vD7MZX2cj7xtNDbRK3zd7+absbmuhK8pDnu6Ss+1lPh37azHz3V+v97NmXYszTe/Z6Wf7SYfZnZi6ZHgznyzMJbYlhk/kU5pt8vRCn3dWb9mS16fR8Hfr8nqbE5avFeqw+z7AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgtP8DRSNFWqdAQn0AAAAASUVORK5CYII="},249:function(e){e.exports=JSON.parse('[{"inputs":[{"internalType":"address","name":"_factoryV1","type":"address"},{"internalType":"address","name":"_router","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountTokenMin","type":"uint256"},{"internalType":"uint256","name":"amountETHMin","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"name":"migrate","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]')},250:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"getCurrentBlockTimestamp","outputs":[{"name":"timestamp","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"components":[{"name":"target","type":"address"},{"name":"callData","type":"bytes"}],"name":"calls","type":"tuple[]"}],"name":"aggregate","outputs":[{"name":"blockNumber","type":"uint256"},{"name":"returnData","type":"bytes[]"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getLastBlockHash","outputs":[{"name":"blockHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"addr","type":"address"}],"name":"getEthBalance","outputs":[{"name":"balance","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockDifficulty","outputs":[{"name":"difficulty","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockGasLimit","outputs":[{"name":"gaslimit","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"getCurrentBlockCoinbase","outputs":[{"name":"coinbase","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"blockNumber","type":"uint256"}],"name":"getBlockHash","outputs":[{"name":"blockHash","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"}]')},305:function(e){e.exports=JSON.parse('[{"inputs":[{"internalType":"contract ENS","name":"_ens","type":"address"}],"payable":false,"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":true,"internalType":"uint256","name":"contentType","type":"uint256"}],"name":"ABIChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"address","name":"a","type":"address"}],"name":"AddrChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"coinType","type":"uint256"},{"indexed":false,"internalType":"bytes","name":"newAddress","type":"bytes"}],"name":"AddressChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"target","type":"address"},{"indexed":false,"internalType":"bool","name":"isAuthorised","type":"bool"}],"name":"AuthorisationChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"hash","type":"bytes"}],"name":"ContenthashChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"name","type":"bytes"},{"indexed":false,"internalType":"uint16","name":"resource","type":"uint16"},{"indexed":false,"internalType":"bytes","name":"record","type":"bytes"}],"name":"DNSRecordChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"bytes","name":"name","type":"bytes"},{"indexed":false,"internalType":"uint16","name":"resource","type":"uint16"}],"name":"DNSRecordDeleted","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"DNSZoneCleared","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":true,"internalType":"bytes4","name":"interfaceID","type":"bytes4"},{"indexed":false,"internalType":"address","name":"implementer","type":"address"}],"name":"InterfaceChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"string","name":"name","type":"string"}],"name":"NameChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"x","type":"bytes32"},{"indexed":false,"internalType":"bytes32","name":"y","type":"bytes32"}],"name":"PubkeyChanged","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"node","type":"bytes32"},{"indexed":true,"internalType":"string","name":"indexedKey","type":"string"},{"indexed":false,"internalType":"string","name":"key","type":"string"}],"name":"TextChanged","type":"event"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"uint256","name":"contentTypes","type":"uint256"}],"name":"ABI","outputs":[{"internalType":"uint256","name":"","type":"uint256"},{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"addr","outputs":[{"internalType":"address payable","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"},{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"authorisations","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"clearDNSZone","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"contenthash","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes32","name":"name","type":"bytes32"},{"internalType":"uint16","name":"resource","type":"uint16"}],"name":"dnsRecord","outputs":[{"internalType":"bytes","name":"","type":"bytes"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes32","name":"name","type":"bytes32"}],"name":"hasDNSRecords","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes4","name":"interfaceID","type":"bytes4"}],"name":"interfaceImplementer","outputs":[{"internalType":"address","name":"","type":"address"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"}],"name":"pubkey","outputs":[{"internalType":"bytes32","name":"x","type":"bytes32"},{"internalType":"bytes32","name":"y","type":"bytes32"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"uint256","name":"contentType","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"setABI","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"uint256","name":"coinType","type":"uint256"},{"internalType":"bytes","name":"a","type":"bytes"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"address","name":"a","type":"address"}],"name":"setAddr","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"address","name":"target","type":"address"},{"internalType":"bool","name":"isAuthorised","type":"bool"}],"name":"setAuthorisation","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes","name":"hash","type":"bytes"}],"name":"setContenthash","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"setDNSRecords","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes4","name":"interfaceID","type":"bytes4"},{"internalType":"address","name":"implementer","type":"address"}],"name":"setInterface","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"string","name":"name","type":"string"}],"name":"setName","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"bytes32","name":"x","type":"bytes32"},{"internalType":"bytes32","name":"y","type":"bytes32"}],"name":"setPubkey","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"string","name":"key","type":"string"},{"internalType":"string","name":"value","type":"string"}],"name":"setText","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes4","name":"interfaceID","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"payable":false,"stateMutability":"pure","type":"function"},{"constant":true,"inputs":[{"internalType":"bytes32","name":"node","type":"bytes32"},{"internalType":"string","name":"key","type":"string"}],"name":"text","outputs":[{"internalType":"string","name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"}]')},306:function(e){e.exports=JSON.parse('[{"constant":true,"inputs":[],"name":"name","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"guy","type":"address"},{"name":"wad","type":"uint256"}],"name":"approve","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"totalSupply","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"src","type":"address"},{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transferFrom","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[{"name":"wad","type":"uint256"}],"name":"withdraw","outputs":[],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":true,"inputs":[],"name":"decimals","outputs":[{"name":"","type":"uint8"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"}],"name":"balanceOf","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":true,"inputs":[],"name":"symbol","outputs":[{"name":"","type":"string"}],"payable":false,"stateMutability":"view","type":"function"},{"constant":false,"inputs":[{"name":"dst","type":"address"},{"name":"wad","type":"uint256"}],"name":"transfer","outputs":[{"name":"","type":"bool"}],"payable":false,"stateMutability":"nonpayable","type":"function"},{"constant":false,"inputs":[],"name":"deposit","outputs":[],"payable":true,"stateMutability":"payable","type":"function"},{"constant":true,"inputs":[{"name":"","type":"address"},{"name":"","type":"address"}],"name":"allowance","outputs":[{"name":"","type":"uint256"}],"payable":false,"stateMutability":"view","type":"function"},{"payable":true,"stateMutability":"payable","type":"fallback"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"guy","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Transfer","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"dst","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Deposit","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"name":"src","type":"address"},{"indexed":false,"name":"wad","type":"uint256"}],"name":"Withdrawal","type":"event"}]')},315:function(e){e.exports=JSON.parse('{"$schema":"http://json-schema.org/draft-07/schema#","$id":"https://uniswap.org/tokenlist.schema.json","title":"Uniswap Token List","description":"Schema for lists of tokens compatible with the Uniswap Interface","definitions":{"Version":{"type":"object","description":"The version of the list, used in change detection","examples":[{"major":1,"minor":0,"patch":0}],"additionalProperties":false,"properties":{"major":{"type":"integer","description":"The major version of the list. Must be incremented when tokens are removed from the list or token addresses are changed.","minimum":0,"examples":[1,2]},"minor":{"type":"integer","description":"The minor version of the list. Must be incremented when tokens are added to the list.","minimum":0,"examples":[0,1]},"patch":{"type":"integer","description":"The patch version of the list. Must be incremented for any changes to the list.","minimum":0,"examples":[0,1]}},"required":["major","minor","patch"]},"TagIdentifier":{"type":"string","description":"The unique identifier of a tag","minLength":1,"maxLength":10,"pattern":"^[\\\\w]+$","examples":["compound","stablecoin"]},"ExtensionIdentifier":{"type":"string","description":"The name of a token extension property","minLength":1,"maxLength":30,"pattern":"^[\\\\w]+$","examples":["color","is_fee_on_transfer","aliases"]},"ExtensionValue":{"anyOf":[{"type":"string","minLength":1,"maxLength":42,"examples":["#00000"]},{"type":"boolean","examples":[true]},{"type":"number","examples":[15]},{"type":"null"}]},"TagDefinition":{"type":"object","description":"Definition of a tag that can be associated with a token via its identifier","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the tag","pattern":"^[ \\\\w]+$","minLength":1,"maxLength":20},"description":{"type":"string","description":"A user-friendly description of the tag","pattern":"^[ \\\\w\\\\.,:]+$","minLength":1,"maxLength":200}},"required":["name","description"],"examples":[{"name":"Stablecoin","description":"A token with value pegged to another asset"}]},"TokenInfo":{"type":"object","description":"Metadata for a single token in a token list","additionalProperties":false,"properties":{"chainId":{"type":"integer","description":"The chain ID of the Ethereum network where this token is deployed","minimum":1,"examples":[1,42]},"address":{"type":"string","description":"The checksummed address of the token on the specified chain ID","pattern":"^0x[a-fA-F0-9]{40}$","examples":["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"]},"decimals":{"type":"integer","description":"The number of decimals for the token balance","minimum":0,"maximum":255,"examples":[18]},"name":{"type":"string","description":"The name of the token","minLength":1,"maxLength":40,"pattern":"^[ \\\\w.\'+\\\\-%\\\\/\xc0-\xd6\xd8-\xf6\xf8-\xff:]+$","examples":["USD Coin"]},"symbol":{"type":"string","description":"The symbol for the token; must be alphanumeric","pattern":"^[a-zA-Z0-9+\\\\-%\\\\/\\\\$\\\\.]+$","minLength":1,"maxLength":20,"examples":["USDC"]},"logoURI":{"type":"string","description":"A URI to the token logo asset; if not set, interface will attempt to find a logo based on the token address; suggest SVG or PNG of size 64x64","format":"uri","examples":["ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"]},"tags":{"type":"array","description":"An array of tag identifiers associated with the token; tags are defined at the list level","items":{"$ref":"#/definitions/TagIdentifier"},"maxItems":10,"examples":["stablecoin","compound"]},"extensions":{"type":"object","description":"An object containing any arbitrary or vendor-specific token metadata","propertyNames":{"$ref":"#/definitions/ExtensionIdentifier"},"additionalProperties":{"$ref":"#/definitions/ExtensionValue"},"maxProperties":10,"examples":[{"color":"#000000","is_verified_by_me":true}]}},"required":["chainId","address","decimals","name","symbol"]}},"type":"object","additionalProperties":false,"properties":{"name":{"type":"string","description":"The name of the token list","minLength":1,"maxLength":20,"pattern":"^[\\\\w ]+$","examples":["My Token List"]},"timestamp":{"type":"string","format":"date-time","description":"The timestamp of this list version; i.e. when this immutable version of the list was created"},"version":{"$ref":"#/definitions/Version"},"tokens":{"type":"array","description":"The list of tokens included in the list","items":{"$ref":"#/definitions/TokenInfo"},"minItems":1,"maxItems":10000},"keywords":{"type":"array","description":"Keywords associated with the contents of the list; may be used in list discoverability","items":{"type":"string","description":"A keyword to describe the contents of the list","minLength":1,"maxLength":20,"pattern":"^[\\\\w ]+$","examples":["compound","lending","personal tokens"]},"maxItems":20,"uniqueItems":true},"tags":{"type":"object","description":"A mapping of tag identifiers to their name and description","propertyNames":{"$ref":"#/definitions/TagIdentifier"},"additionalProperties":{"$ref":"#/definitions/TagDefinition"},"maxProperties":20,"examples":[{"stablecoin":{"name":"Stablecoin","description":"A token with value pegged to another asset"}}]},"logoURI":{"type":"string","description":"A URI for the logo of the token list; prefer SVG or PNG of size 256x256","format":"uri","examples":["ipfs://QmXfzKRvjZz3u5JRgC4v5mGVbm9ahrUiB4DgzHBsnWbTMM"]}},"required":["name","timestamp","version","tokens"]}')},320:function(e,n,t){e.exports=t.p+"static/media/newbg.9055856b.svg"},321:function(e,n,t){e.exports=t.p+"static/media/web_bg.833ad9c5.webp"},322:function(e,n,t){e.exports=t.p+"static/media/x2.3bfaa09e.svg"},323:function(e,n,t){e.exports=t.p+"static/media/tg2.4b7fa3d2.svg"},337:function(e,n,t){e.exports=t(619)},348:function(e,n){},406:function(e,n,t){e.exports=t.p+"static/media/arrow-down-blue.cd061363.svg"},407:function(e,n,t){e.exports=t.p+"static/media/arrow-down-grey.c0dedd2f.svg"},408:function(e,n,t){e.exports=t.p+"static/media/arrow-right-white.337ad716.png"},409:function(e,n,t){e.exports=t.p+"static/media/arrow-right.d285b6cf.svg"},410:function(e,n,t){e.exports=t.p+"static/media/circle-grey.ed2a1dad.svg"},411:function(e,n,t){e.exports=t.p+"static/media/circle.2d975615.svg"},412:function(e,n,t){e.exports=t.p+"static/media/coinbaseWalletIcon.62578f59.svg"},413:function(e,n,t){e.exports=t.p+"static/media/dropdown-blue.b20914ec.svg"},414:function(e,n,t){e.exports=t.p+"static/media/dropdown.7d32d2fa.svg"},415:function(e,n,t){e.exports=t.p+"static/media/dropup-blue.b96d70e1.svg"},416:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADd9JREFUeNrtXdtzE+cV38kweWpm+tI8JZP8EZ0pL+UhferkfyAzFqEpadq0hbRNUlsYQ2ycBEgCgQQIgVxMbC6BAHbEJZg7dW4OpeCWwDTNDOyuLFuybMsX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pUgjjzy7NVKiMMLWx6VII488uzVSojDC1selSCOPPLs1UqIwwtbHpXiuPPJ0h/tgp4/dtocyQN7Gq1Ez5FGnoJECXEEwZ6GU4gjjTwFiRLiCII9DacQRxp5ChIlxBEEexpOIY408hQkSogjCPY0nEIcaeQpSJQQRxDsaTiFONLIU5AoIY4g2NNwCnGkkacgUUIcQbCn4RTiSCNPQaKEOIJgT8NpHDf7RMKqfDdYcQN9agraHUlIocJo84+Pfo2eIxT+BPxCHAkkKVSIEEco8gn4hTgSSFKoECGOUOQT8AtxJJCkUCFCHKHIJ+AX4kggSaFChDhCkU/AL8SRQJJChQhxhCKfgF+II4EkhQoR4ghFPgG/EEcCSQoVIsQRinwCfnE/h0jSyhVaHNxGb/Bbim4Vm5s1Dd3Ib6Dbw07vbdbxRm8Qh2Dy5hmzxMXXxKbGzX1Ddudgi3bxzTYhxdHmhv+G00rj6U/AIb+ynl8c+B3EkUCuAoS4wm+WnIM4ApCP3qWhy9sMzUIc0Weq2QCNpUV+Ie3I4UkzD3E0yz5ub5b4Qol+vmOSXi4DhTjiTlfT0V3ky9fHh4kfzuAFl7JN44/RH3cXpkU/8TjjwfJ04kKEOByJXNd8KuGmn99xle4/NGv+lBggDkkjP3uJpfH62Ix5oVPTIY5OVPp/W8HzGN9evkp73vrQLGzWXIhjMzIBt9uCLH+/878sfKm6wL3FwdEZ8043BxBHN0IB/s+DQ7M6EqjJNwviGg8sztoWPTE2ZX7sdbcQR6+kEvwci+IvFsTowi307IkTpvwybUsLxLElXNF/eIV7nM948uqlkWkzWzVaiKMqwRD1y4tPQ8sshC94qntigGh6ZIrO8cbyP7Ut/wACdD2e0mLveQAAAABJRU5ErkJggg=="},418:function(e,n,t){e.exports=t.p+"static/media/link.50c67f3c.svg"},419:function(e,n,t){e.exports=t.p+"static/media/magnifying-glass.67440097.svg"},420:function(e,n,t){e.exports=t.p+"static/media/menu.4f2c4440.svg"},421:function(e,n,t){e.exports=t.p+"static/media/plus-blue.e8021e51.svg"},422:function(e,n,t){e.exports=t.p+"static/media/plus-grey.d8e0be7d.svg"},423:function(e,n,t){e.exports=t.p+"static/media/portisIcon.b234b2bf.png"},424:function(e,n,t){e.exports=t.p+"static/media/powered-by-avax.3d02ba3b.png"},425:function(e,n,t){e.exports=t.p+"static/media/question-mark.1ae4d9f4.svg"},426:function(e,n,t){e.exports=t.p+"static/media/question.a46e8bc1.svg"},427:function(e,n){e.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/4gKgSUNDX1BST0ZJTEUAAQEAAAKQbGNtcwQwAABtbnRyUkdCIFhZWiAAAAAAAAAAAAAAAABhY3NwQVBQTAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA9tYAAQAAAADTLWxjbXMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtkZXNjAAABCAAAADhjcHJ0AAABQAAAAE53dHB0AAABkAAAABRjaGFkAAABpAAAACxyWFlaAAAB0AAAABRiWFlaAAAB5AAAABRnWFlaAAAB+AAAABRyVFJDAAACDAAAACBnVFJDAAACLAAAACBiVFJDAAACTAAAACBjaHJtAAACbAAAACRtbHVjAAAAAAAAAAEAAAAMZW5VUwAAABwAAAAcAHMAUgBHAEIAIABiAHUAaQBsAHQALQBpAG4AAG1sdWMAAAAAAAAAAQAAAAxlblVTAAAAMgAAABwATgBvACAAYwBvAHAAeQByAGkAZwBoAHQALAAgAHUAcwBlACAAZgByAGUAZQBsAHkAAAAAWFlaIAAAAAAAAPbWAAEAAAAA0y1zZjMyAAAAAAABDEoAAAXj///zKgAAB5sAAP2H///7ov///aMAAAPYAADAlFhZWiAAAAAAAABvlAAAOO4AAAOQWFlaIAAAAAAAACSdAAAPgwAAtr5YWVogAAAAAAAAYqUAALeQAAAY3nBhcmEAAAAAAAMAAAACZmYAAPKnAAANWQAAE9AAAApbcGFyYQAAAAAAAwAAAAJmZgAA8qcAAA1ZAAAT0AAACltwYXJhAAAAAAAD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QZnnPfhMKuvSZb/UZkfLWYSdCiKraq+HpOuqH2hitCRYt3C4AoIliaxYsWLFixYsWKXDaAQB2XFx9IY5BB0tfk7VPuQoAzWX4cCu4+u5Urxl2YhGb+DDpFixYsWLFixYsWLFcbkZt5sLjcH4jGNIrGBX86+Q61FrusEy1hhQWmLguyfcWLFixYsUWLFixhYuEWr2+ZydJYoo5/L++RZXVlqUxZDhepg+0KL9oLPXCUYW5/CI3lxRYsWLFixYrFhNgUiYJBw/8A6A8h5Tn2AERMkZrphQDVccCB+jGvbk6S2TNCxDGi5gHqQn44b8kFrSdfMH+wjgfG+VzAl9yhERF5N7DFi4Q5mF1YJ/beSJ55Yd10IOILamL+jhNe0NsHVxesttHAfacfeG73i32fYco5avuVwEyTZ6MqXHi1+QlTbNZ3XyMIlmGwft4Q+VuKGLuv1Me4vzfLRAAqxBRcGnzyjNyLVbV7uEryLWYWDdu5vuHWEiPgaruurL3e0cxWig6wHRu2H2P9jLec4IcDI8q1gzHsLSpHDjYQkhuahPS4Na3IX1AW/wBlx9aiwnGW+j9lUEbtrlDDsw/46f/Z"},428:function(e,n,t){e.exports=t.p+"static/media/spinner.be00fc4a.svg"},429:function(e,n){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAU8AAADACAYAAACEXOFLAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABL+SURBVHgB7d2/jxvVFsDxs0+vJvtEDUygBPQ2tBTPKaEgS0eQIE4FBVI2DZGgiLegCE0SQRGqdUJBuiQFoVwjAe0GhRbZQIuUDf/Afffs3Em8ju+vmfGP9X4/0uCwMx6PPdfH98e5MyIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAtWxMgwhjTsQ8bdlmX5Tayy4O1tbUHAswYwRNeNmgW9mHHLh39/7/++kvm5cSJE/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496RW+5OrzXDbHQH54Feh/ZABgKpPTUgbd3rlzZ9HyotvVQ40NSx4vZ6drqV+USVCkfMozQ33AUdE90xFQKrGA6XYeGf28T4RTkO+R6UL89vGbkE0PeDu1TG2z8tKYCuEceEjsZqn3OOyg2xFE27Nmo5/RqaUYObo22Gcv9qOmb7vT75cXRYhSIT7qdJ9skZsbZSDlUgnyltfdN/2Co5slMJqivUCy0zT01UsDhKeEe6zub5Sy7Yh2UNGTnkte2+QZ1f3aQw0O4pqGo09rRAOtzbODL0SL10Y9M19JaAdPi8TByYjzegqNBLnaY/TNkHORQrWCb8rSEkTjWa8RlyoqKgIfU7df+o7cVGxAZl2wmvTMg/LbL9UTiOW3icp+0kC/gvdrjdKlU4/+3lZoW5jfLch99yoXcn+ozPh9XznhctWW971tPh082igABe7xTN2tOPti1eW7VV+7VKlddkW0ZRJEpw892V2gEx7fV3QULucZlThWzqVP+9mFyqj7+WTRxUsdAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD0Pv8PjY22r3rJBu8AAAAASUVORK5CYII="},431:function(e,n,t){e.exports=t.p+"static/media/trustWallet.edcc1ab5.png"},432:function(e,n,t){e.exports=t.p+"static/media/walletConnectIcon.8215855c.svg"},433:function(e,n,t){e.exports=t.p+"static/media/x.5b8e2186.svg"},619:function(e,n,t){"use strict";t.r(n);var a=t(47),r=(t(339),t(0)),i=t.n(r),o=t(72),c=t(118),u=t.n(c),l=t(32),s=t(19),d=t(41),p=t(30),m=t(21),f=t(8),b=t(1),A=t(212),v=t(298),g=t(12),y=t(5),h=t.n(y),E=t(149),x=t(25),O=t(11),w=t(14),j=t(15),k=t(151),C=t(138),T=t(18),B=function(e){Object(w.a)(t,e);var n=Object(j.a)(t);function t(e,a,r){var i;return Object(O.a)(this,t),(i=n.call(this,e)).code=a,i.data=r,i}return t}(Object(k.a)(Error)),I=function e(n,t,a){var r=this;Object(O.a)(this,e),this.isMetaMask=!1,this.chainId=void 0,this.url=void 0,this.host=void 0,this.path=void 0,this.batchWaitTimeMs=void 0,this.nextId=1,this.batchTimeoutId=null,this.batch=[],this.clearBatch=Object(x.a)(h.a.mark((function e(){var n,t,a,i,o,c,u,l,s,d,p,m,f,b;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("Clearing batch",r.batch),n=r.batch,r.batch=[],r.batchTimeoutId=null,e.prev=4,e.next=7,fetch(r.url,{method:"POST",headers:{"content-type":"application/json",accept:"application/json"},body:JSON.stringify(n.map((function(e){return e.request})))});case 7:t=e.sent,e.next=14;break;case 10:return e.prev=10,e.t0=e.catch(4),n.forEach((function(e){return(0,e.reject)(new Error("Failed to send batch call"))})),e.abrupt("return");case 14:if(t.ok){e.next=17;break}return n.forEach((function(e){return(0,e.reject)(new B("".concat(t.status,": ").concat(t.statusText),-32e3))})),e.abrupt("return");case 17:return e.prev=17,e.next=20,t.json();case 20:a=e.sent,e.next=27;break;case 23:return e.prev=23,e.t1=e.catch(17),n.forEach((function(e){return(0,e.reject)(new Error("Failed to parse JSON response"))})),e.abrupt("return");case 27:i=n.reduce((function(e,n){return e[n.request.id]=n,e}),{}),o=Object(E.a)(a);try{for(o.s();!(c=o.n()).done;)u=c.value,l=i[u.id],s=l.resolve,d=l.reject,p=l.request.method,s&&d&&("error"in u?d(new B(null===u||void 0===u||null===(m=u.error)||void 0===m?void 0:m.message,null===u||void 0===u||null===(f=u.error)||void 0===f?void 0:f.code,null===u||void 0===u||null===(b=u.error)||void 0===b?void 0:b.data)):"result"in u?s(u.result):d(new B("Received unexpected JSON-RPC response to ".concat(p," request."),-32e3,u)))}catch(A){o.e(A)}finally{o.f()}case 30:case"end":return e.stop()}}),e,null,[[4,10],[17,23]])}))),this.sendAsync=function(e,n){r.request(e.method,e.params).then((function(t){return n(null,{jsonrpc:"2.0",id:e.id,result:t})})).catch((function(e){return n(e,null)}))},this.request=function(){var e=Object(x.a)(h.a.mark((function e(n,t){var a,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("string"===typeof n){e.next=2;break}return e.abrupt("return",r.request(n.method,n.params));case 2:if("eth_chainId"!==n){e.next=4;break}return e.abrupt("return","0x".concat(r.chainId.toString(16)));case 4:return i=new Promise((function(e,a){r.batch.push({request:{jsonrpc:"2.0",id:r.nextId++,method:n,params:t},resolve:e,reject:a})})),r.batchTimeoutId=null!==(a=r.batchTimeoutId)&&void 0!==a?a:setTimeout(r.clearBatch,r.batchWaitTimeMs),e.abrupt("return",i);case 7:case"end":return e.stop()}}),e)})));return function(n,t){return e.apply(this,arguments)}}(),this.chainId=n,this.url=t;var i=new URL(t);this.host=i.host,this.path=i.pathname,this.batchWaitTimeMs=null!==a&&void 0!==a?a:50},S=function(e){Object(w.a)(t,e);var n=Object(j.a)(t);function t(e){var a,r=e.urls,i=e.defaultChainId;return Object(O.a)(this,t),Object(T.a)(i||1===Object.keys(r).length,"defaultChainId is a required argument with >1 url"),(a=n.call(this,{supportedChainIds:Object.keys(r).map((function(e){return Number(e)}))})).providers=void 0,a.currentChainId=void 0,a.currentChainId=i||Number(Object.keys(r)[0]),a.providers=Object.keys(r).reduce((function(e,n){return e[Number(n)]=new I(Number(n),r[Number(n)]),e}),{}),a}return Object(g.a)(t,[{key:"activate",value:function(){var e=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",{provider:this.providers[this.currentChainId],chainId:this.currentChainId,account:null});case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getProvider",value:function(){var e=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.providers[this.currentChainId]);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getChainId",value:function(){var e=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.currentChainId);case 1:case"end":return e.stop()}}),e,this)})));return function(){return e.apply(this,arguments)}}()},{key:"getAccount",value:function(){var e=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}()},{key:"deactivate",value:function(){}},{key:"provider",get:function(){return this.providers[this.currentChainId]}}]),t}(C.AbstractConnector),R="https://worldchain-mainnet.g.alchemy.com/public",N=parseInt(null!=="480"?"480":"360");var L=new S({urls:Object(f.a)({},N,R)});var U,P,D,F,W,M,V,z,Y,H,q,Q,K,J,X,G,Z,_,$,ee,ne,te,ae,re,ie,oe,ce,ue,le,se,de,pe,me,fe=new v.InjectedConnector({supportedChainIds:[43113,480]}),be="0x0000000000000000000000000000000000000000",Ae=(U={},Object(f.a)(U,b.b.FUJI,"0xC386631E7D35c7231bE146b14cf4430b4A524F8A"),Object(f.a)(U,b.b.AVALANCHE,"0x49711C25891776F3c93D4180ef352198A458b03C"),Object(f.a)(U,b.b.CRYPTOSEALS,"0x848E8511F673baecC51f4e98380042E850340497"),U),ve=(P={},Object(f.a)(P,b.b.FUJI,"0xBB6e8C136ca537874a6808dBFC5DaebEd9a57554"),Object(f.a)(P,b.b.AVALANCHE,"0x51d193E2E0a5C826B2De32722adF367ee697dD00"),Object(f.a)(P,b.b.CRYPTOSEALS,"0x1b55417301ba66e2E53E82B28EF87FeEd98663b7"),P),ge=(D={},Object(f.a)(D,b.b.FUJI,new b.k(b.b.FUJI,"0x5eb9f3D24fe25C582fCec2a32aEb774Ea8D47ae8",18,"BAG","Baguette")),Object(f.a)(D,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xa1144a6A1304bd9cbb16c800F7a867508726566E",18,"BAG","Baguette")),Object(f.a)(D,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,18,"BAG","Baguette")),D),ye=(F={},Object(f.a)(F,b.b.FUJI,new b.k(b.b.FUJI,be,18,"PNG","Pangolin")),Object(f.a)(F,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x60781C2586D68229fde47564546784ab3fACA982",18,"PNG","Pangolin")),Object(f.a)(F,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),W={},Object(f.a)(W,b.b.FUJI,new b.k(b.b.FUJI,"0x89B2eC9b2fB0CDdd09954dbEE07DB48F8cc934e3",18,"ETH","Ether")),Object(f.a)(W,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x4200000000000000000000000000000000000006",18,"ETH","Ether")),Object(f.a)(W,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),W),he=(M={},Object(f.a)(M,b.b.FUJI,new b.k(b.b.FUJI,be,6,"USDT","Tether USD")),Object(f.a)(M,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xde3A24028580884448a5397872046a019649b084",6,"USDT","Tether USD")),Object(f.a)(M,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),M),Ee=(V={},Object(f.a)(V,b.b.FUJI,new b.k(b.b.FUJI,be,8,"WBTC","Wrapped Bitcoin")),Object(f.a)(V,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x408D4cD0ADb7ceBd1F1A1C33A0Ba2098E1295bAB",8,"WBTC","Wrapped Bitcoin")),Object(f.a)(V,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),V),xe=(z={},Object(f.a)(z,b.b.FUJI,new b.k(b.b.FUJI,be,18,"LINK","ChainLink Token")),Object(f.a)(z,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xB3fe5374F67D7a22886A0eE082b2E2f9d2651651",18,"LINK","ChainLink Token")),Object(f.a)(z,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),z),Oe=(Y={},Object(f.a)(Y,b.b.FUJI,new b.k(b.b.FUJI,be,18,"DAI","Dai Stablecoin")),Object(f.a)(Y,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xbA7dEebBFC5fA1100Fb055a87773e1E99Cd3507a",18,"DAI","Dai Stablecoin")),Object(f.a)(Y,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),Y),we=(H={},Object(f.a)(H,b.b.FUJI,new b.k(b.b.FUJI,be,18,"UNI","Uniswap")),Object(f.a)(H,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xf39f9671906d8630812f9d9863bBEf5D523c84Ab",18,"UNI","Uniswap")),Object(f.a)(H,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),q={},Object(f.a)(q,b.b.FUJI,new b.k(b.b.FUJI,be,18,"SUSHI","SushiToken")),Object(f.a)(q,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x39cf1BD5f15fb22eC3D9Ff86b0727aFc203427cc",18,"SUSHI","SushiToken")),Object(f.a)(q,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),Q={},Object(f.a)(Q,b.b.FUJI,new b.k(b.b.FUJI,be,18,"AAVE","Aave Token")),Object(f.a)(Q,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x8cE2Dee54bB9921a2AE0A63dBb2DF8eD88B91dD9",18,"AAVE","Aave Token")),Object(f.a)(Q,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),K={},Object(f.a)(K,b.b.FUJI,new b.k(b.b.FUJI,be,18,"YFI","yearn.finance")),Object(f.a)(K,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x99519AcB025a0e0d44c3875A4BbF03af65933627",18,"YFI","yearn.finance")),Object(f.a)(K,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),J={},Object(f.a)(J,b.b.FUJI,new b.k(b.b.FUJI,be,18,"XAVA","Avalaunch")),Object(f.a)(J,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xd1c3f94de7e5b45fa4edbba472491a9f4b166fc4",18,"XAVA","Avalaunch")),Object(f.a)(J,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),J),je=(X={},Object(f.a)(X,b.b.FUJI,new b.k(b.b.FUJI,be,18,"SHIBX","SHIBAVAX")),Object(f.a)(X,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x440abbf18c54b2782a4917b80a1746d3a2c2cce1",18,"SHIBX","SHIBAVAX")),Object(f.a)(X,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),X),ke=(G={},Object(f.a)(G,b.b.FUJI,new b.k(b.b.FUJI,be,18,"LYD","LydiaFinance")),Object(f.a)(G,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x4C9B4E1AC6F24CdE3660D5E4Ef1eBF77C710C084",18,"LYD","LydiaFinance")),Object(f.a)(G,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),Z={},Object(f.a)(Z,b.b.FUJI,new b.k(b.b.FUJI,be,18,"QI","BENQI")),Object(f.a)(Z,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x8729438eb15e2c8b576fcc6aecda6a148776c0f5",18,"QI","BENQI")),Object(f.a)(Z,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),Z),Ce=(_={},Object(f.a)(_,b.b.FUJI,new b.k(b.b.FUJI,be,6,"USDT.e","Tether USD")),Object(f.a)(_,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xc7198437980c041c805a1edcba50c1ce5db95118",6,"USDTE","Tether USD")),Object(f.a)(_,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),_),Te=($={},Object(f.a)($,b.b.FUJI,new b.k(b.b.FUJI,be,18,"LINK.e","Chainlink Token")),Object(f.a)($,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x5947bb275c521040051d82396192181b413227a3",18,"LINK.e","Chainlink Token")),Object(f.a)($,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),ee={},Object(f.a)(ee,b.b.FUJI,new b.k(b.b.FUJI,be,18,"WETH.e","Wrapped Ether")),Object(f.a)(ee,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x49d5c2bdffac6ce2bfdb6640f4f80f226bc10bab",18,"WETH.e","Wrapped Ether")),Object(f.a)(ee,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),ne={},Object(f.a)(ne,b.b.FUJI,new b.k(b.b.FUJI,be,18,"WET","Weble Ecosystem Token")),Object(f.a)(ne,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xb1466d4cf0dcfc0bcddcf3500f473cdacb88b56d",18,"WET","Weble Ecosystem Token")),Object(f.a)(ne,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),ne),Be=(te={},Object(f.a)(te,b.b.FUJI,new b.k(b.b.FUJI,be,18,"YAK","Yak Token")),Object(f.a)(te,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x59414b3089ce2af0010e7523dea7e2b35d776ec7",18,"YAK","Yak Token")),Object(f.a)(te,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),te),Ie=(ae={},Object(f.a)(ae,b.b.FUJI,new b.k(b.b.FUJI,be,18,"KLO","Kalao Token")),Object(f.a)(ae,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xb27c8941a7df8958a1778c0259f76d1f8b711c35",18,"KLO","Kalao Token")),Object(f.a)(ae,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),re={},Object(f.a)(re,b.b.FUJI,new b.k(b.b.FUJI,be,18,"XSLR","NovaXSolarEnergy")),Object(f.a)(re,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xe6ee049183b474ecf7704da3f6f555a1dcaf240f",18,"XSLR","NovaXSolarEnergy")),Object(f.a)(re,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),re),Se=(ie={},Object(f.a)(ie,b.b.FUJI,new b.k(b.b.FUJI,be,18,"XMTL","NovaXMetal")),Object(f.a)(ie,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x4c1057455747e3ee5871d374fdd77a304ce10989",18,"XMTL","NovaXMetal")),Object(f.a)(ie,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),ie),Re=(oe={},Object(f.a)(oe,b.b.FUJI,new b.k(b.b.FUJI,be,18,"XCRS","NovaXCrystal")),Object(f.a)(oe,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x70b4ae8eb7bd572fc0eb244cd8021066b3ce7ee4",18,"XCRS","NovaXCrystal")),Object(f.a)(oe,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),oe),Ne=(ce={},Object(f.a)(ce,b.b.FUJI,new b.k(b.b.FUJI,be,6,"USDC.e","USD Coin")),Object(f.a)(ce,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xa7d7079b0fead91f3e65f86e8915cb59c1a4c664",6,"USDC.e","USD Coin")),Object(f.a)(ce,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),ce),Le=(ue={},Object(f.a)(ue,b.b.FUJI,new b.k(b.b.FUJI,be,18,"VOID","https://twitter.com/AvalancheVoid")),Object(f.a)(ue,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0x02fe8adc1b58a63ccb1bb8c39930dcedd7cef4db",18,"VOID","https://twitter.com/AvalancheVoid")),Object(f.a)(ue,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),le={},Object(f.a)(le,b.b.FUJI,new b.k(b.b.FUJI,be,18,"CASH","Avacash Finance")),Object(f.a)(le,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,"0xcd426834d733e5b4bffc89d3f21fa7e16d0bf583",18,"CASH","Avacash Finance")),Object(f.a)(le,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0,"","")),se={},Object(f.a)(se,b.b.FUJI,new b.k(b.b.FUJI,be,0)),Object(f.a)(se,b.b.AVALANCHE,new b.k(b.b.AVALANCHE,be,0)),Object(f.a)(se,b.b.CRYPTOSEALS,new b.k(b.b.CRYPTOSEALS,be,0)),se),Ue=(de={},Object(f.a)(de,b.b.FUJI,be),Object(f.a)(de,b.b.AVALANCHE,be),Object(f.a)(de,b.b.CRYPTOSEALS,be),pe={},Object(f.a)(pe,b.b.FUJI,[b.o[b.b.FUJI]]),Object(f.a)(pe,b.b.AVALANCHE,[b.o[b.b.AVALANCHE]]),Object(f.a)(pe,b.b.CRYPTOSEALS,[b.o[b.b.CRYPTOSEALS]]),pe),Pe=(me={},Object(f.a)(me,b.b.FUJI,[b.o[b.b.FUJI],ge[b.b.FUJI]]),Object(f.a)(me,b.b.AVALANCHE,[b.o[b.b.AVALANCHE],ge[b.b.AVALANCHE],Ce[b.b.AVALANCHE],Ne[b.b.AVALANCHE]]),Object(f.a)(me,b.b.CRYPTOSEALS,[b.o[b.b.CRYPTOSEALS]]),me),De=Object(f.a)({},b.b.AVALANCHE,{}),Fe=Object(m.a)(Object(m.a)({},Ue),{},Object(f.a)({},b.b.AVALANCHE,Object(p.a)(Ue[b.b.AVALANCHE]))),We=Object(m.a)(Object(m.a)({},Ue),{},Object(f.a)({},b.b.AVALANCHE,Object(p.a)(Ue[b.b.AVALANCHE]))),Me=Object(f.a)({},b.b.AVALANCHE,[]),Ve=[ke[b.b.AVALANCHE]],ze={INJECTED:{connector:fe,name:"Injected",iconName:"arrow-right.svg",description:"Injected web3 provider.",href:null,color:"#010101",primary:!0},METAMASK:{connector:fe,name:"MetaMask",iconName:"metamask.png",description:"Easy-to-use browser extension.",href:null,color:"#E8831D"},RABBY:{connector:fe,name:"Rabby",iconName:"rabby.png",description:"A better extension wallet for DeFi users.",href:null,color:"#8697FF"}},Ye=b.f.BigInt(0),He=new b.h(b.f.BigInt(1),b.f.BigInt(1e4)),qe=b.f.BigInt(1e4),Qe=new b.h(b.f.BigInt(100),qe),Ke=new b.h(b.f.BigInt(300),qe),Je=new b.h(b.f.BigInt(500),qe),Xe=new b.h(b.f.BigInt(1e3),qe),Ge=new b.h(b.f.BigInt(1500),qe),Ze=b.f.exponentiate(b.f.BigInt(10),b.f.BigInt(16)),_e=(new b.h(b.f.BigInt(75),b.f.BigInt(1e4)),t(230)),$e=t(58),en=t(302),nn=t.n(en),tn=t(303),an=t.n(tn);_e.a.use(nn.a).use(an.a).use($e.a).init({backend:{loadPath:"./locales/{{lng}}.json"},react:{useSuspense:!0},fallbackLng:"en",preload:["en"],keySeparator:!1,interpolation:{escapeValue:!1}});_e.a;var rn=t(2),on=t(40),cn=t(3);function un(e){var n=e.location,t=n.pathname,a=n.search;return Object(r.useEffect)((function(){l.a.pageview("".concat(t).concat(a))}),[t,a]),null}var ln=t(9),sn=t(13),dn=t(20),pn=t(176),mn=t.n(pn);function fn(){var e=Object(a.d)(),n=Object(a.d)("NETWORK");return e.active?e:n}var bn,An=t(167),vn=t.n(An),gn=t(187),yn=function(e){Object(w.a)(t,e);var n=Object(j.a)(t);function t(e,a){var r;return Object(O.a)(this,t),(r=n.call(this,e.chainId,e.address,e.decimals,e.symbol,e.name)).tokenInfo=void 0,r.tags=void 0,r.tokenInfo=e,r.tags=a,r}return Object(g.a)(t,[{key:"logoURI",get:function(){return this.tokenInfo.logoURI}}]),t}(b.k),hn=(bn={},Object(f.a)(bn,b.b.FUJI,{}),Object(f.a)(bn,b.b.AVALANCHE,{}),Object(f.a)(bn,b.b.CRYPTOSEALS,{}),bn),En="undefined"!==typeof WeakMap?new WeakMap:null;function xn(e){var n=Object(s.d)((function(e){return e.lists.byUrl}));return Object(r.useMemo)((function(){var t;if(!e)return hn;var a=null===(t=n[e])||void 0===t?void 0:t.current;if(!a)return hn;try{return function(e){var n=null===En||void 0===En?void 0:En.get(e);if(n)return n;var t=e.tokens.reduce((function(n,t){var a,r,i,o=null!==(a=null===(r=t.tags)||void 0===r||null===(i=r.map((function(n){var t;if(null===(t=e.tags)||void 0===t?void 0:t[n])return Object(m.a)(Object(m.a)({},e.tags[n]),{},{id:n})})))||void 0===i?void 0:i.filter((function(e){return Boolean(e)})))&&void 0!==a?a:[],c=new yn(t,o);if(void 0!==n[c.chainId][c.address])throw Error("Duplicate tokens.");return Object(m.a)(Object(m.a)({},n),{},Object(f.a)({},c.chainId,Object(m.a)(Object(m.a)({},n[c.chainId]),{},Object(f.a)({},c.address,c))))}),Object(m.a)({},hn));return null===En||void 0===En||En.set(e,t),t}(a)}catch(r){return console.error("Could not show token list due to error",r),hn}}),[n,e])}function On(){return Object(s.d)((function(e){return e.lists.selectedListUrl}))}function wn(){return xn(On())}var jn,kn=t(22);!function(e){e[e.WALLET=0]="WALLET",e[e.SETTINGS=1]="SETTINGS",e[e.SELF_CLAIM=2]="SELF_CLAIM",e[e.ADDRESS_CLAIM=3]="ADDRESS_CLAIM",e[e.CLAIM_POPUP=4]="CLAIM_POPUP",e[e.MENU=5]="MENU"}(jn||(jn={}));var Cn=Object(kn.b)("application/updateBlockNumber"),Tn=Object(kn.b)("application/setOpenModal"),Bn=Object(kn.b)("application/addPopup"),In=Object(kn.b)("application/removePopup");function Sn(){var e=fn().chainId;return Object(s.d)((function(n){return n.application.blockNumber[null!==e&&void 0!==e?e:-1]}))}function Rn(e){return Object(s.d)((function(e){return e.application.openModal}))===e}function Nn(e){var n=Rn(e),t=Object(s.c)();return Object(r.useCallback)((function(){return t(Tn(n?null:e))}),[t,e,n])}function Ln(){return Nn(jn.WALLET)}function Un(){return Nn(jn.SETTINGS)}function Pn(){var e=Object(s.c)();return Object(r.useCallback)((function(n){e(In({key:n}))}),[e])}var Dn=/^0x[a-fA-F0-9]{40}$/,Fn=/^0x[a-f0-9]*$/;function Wn(e){if(!Dn.test(e.address))throw new Error("Invalid address: ".concat(e.address));if(!Fn.test(e.callData))throw new Error("Invalid hex: ".concat(e.callData));return"".concat(e.address,"-").concat(e.callData)}function Mn(e){var n=e.split("-");if(2!==n.length)throw new Error("Invalid call key: ".concat(e));return{address:n[0],callData:n[1]}}var Vn=Object(kn.b)("multicall/addMulticallListeners"),zn=Object(kn.b)("multicall/removeMulticallListeners"),Yn=Object(kn.b)("multicall/fetchingMulticallResults"),Hn=Object(kn.b)("multicall/errorFetchingMulticallResults"),qn=Object(kn.b)("multicall/updateMulticallResults");function Qn(e){return-1!==["string","number"].indexOf(typeof e)}function Kn(e){return void 0===e||Array.isArray(e)&&e.every((function(e){return Qn(e)||Array.isArray(e)&&e.every(Qn)}))}var Jn={valid:!1,blockNumber:void 0,data:void 0},Xn={blocksPerFetch:1/0};function Gn(e,n){var t=fn().chainId,a=Object(s.d)((function(e){return e.multicall.callResults})),i=Object(s.c)(),o=Object(r.useMemo)((function(){var n,t,a;return JSON.stringify(null!==(n=null===e||void 0===e||null===(t=e.filter((function(e){return Boolean(e)})))||void 0===t||null===(a=t.map(Wn))||void 0===a?void 0:a.sort())&&void 0!==n?n:[])}),[e]);return Object(r.useEffect)((function(){var e=JSON.parse(o);if(t&&0!==e.length){var a=e.map((function(e){return Mn(e)}));return i(Vn({chainId:t,calls:a,options:n})),function(){i(zn({chainId:t,calls:a,options:n}))}}}),[t,i,n,o]),Object(r.useMemo)((function(){return e.map((function(e){var n;if(!t||!e)return Jn;var r,i=null===(n=a[t])||void 0===n?void 0:n[Wn(e)];return(null===i||void 0===i?void 0:i.data)&&"0x"!==(null===i||void 0===i?void 0:i.data)&&(r=i.data),{valid:!0,data:r,blockNumber:null===i||void 0===i?void 0:i.blockNumber}}))}),[a,e,t])}var Zn={valid:!1,result:void 0,loading:!1,syncing:!1,error:!1},_n={valid:!0,result:void 0,loading:!0,syncing:!0,error:!1};function $n(e,n,t,a){if(!e)return Zn;var r=e.valid,i=e.data,o=e.blockNumber;if(!r)return Zn;if(r&&!o)return _n;if(!n||!t||!a)return _n;var c=i&&i.length>2,u=(null!==o&&void 0!==o?o:0)<a,l=void 0;if(c&&i)try{l=n.decodeFunctionResult(t,i)}catch(s){return console.debug("Result data parsing failed",t,i),{valid:!0,loading:!1,error:!0,syncing:u,result:l}}return{valid:!0,loading:!1,syncing:u,result:l,error:!c}}function et(e,n,t,a,i){var o=Object(r.useMemo)((function(){return n.getFunction(t)}),[n,t]),c=Object(r.useMemo)((function(){return o&&Kn(a)?n.encodeFunctionData(o,a):void 0}),[a,n,o]),u=Gn(Object(r.useMemo)((function(){return o&&e&&e.length>0&&c?e.map((function(e){return e&&c?{address:e,callData:c}:void 0})):[]}),[e,c,o]),i),l=Sn();return Object(r.useMemo)((function(){return u.map((function(e){return $n(e,n,o,l)}))}),[o,u,n,l])}function nt(e,n,t,a){var i=Object(r.useMemo)((function(){var t;return null===e||void 0===e||null===(t=e.interface)||void 0===t?void 0:t.getFunction(n)}),[e,n]),o=Gn(Object(r.useMemo)((function(){return e&&i&&Kn(t)?[{address:e.address,callData:e.interface.encodeFunctionData(i,t)}]:[]}),[e,i,t]),a)[0],c=Sn();return Object(r.useMemo)((function(){return $n(o,null===e||void 0===e?void 0:e.interface,i,c)}),[o,e,i,c])}var tt,at=t(100),rt=t(27),it=t(211),ot=t(24),ct=t(304);function ut(e){try{return Object(rt.getAddress)(e)}catch(n){return!1}}var lt=(tt={},Object(f.a)(tt,b.b.FUJI,"https://cchain.explorer.avax-test.network"),Object(f.a)(tt,b.b.AVALANCHE,"https://worldchain-mainnet.explorer.alchemy.com/"),Object(f.a)(tt,b.b.CRYPTOSEALS,"https://subnetexplorer.cryptoseals.art"),tt);function st(e,n,t){var a="".concat(lt[e]||lt[b.b.AVALANCHE]);switch(t){case"transaction":return"".concat(a,"/tx/").concat(n);case"token":return"".concat(a,"/token/").concat(n);case"block":return"".concat(a,"/blocks/").concat(n);case"address":default:return"".concat(a,"/address/").concat(n)}}function dt(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:4,t=ut(e);if(!t)throw Error("Invalid 'address' parameter '".concat(e,"'."));return"".concat(t.substring(0,n+2),"...").concat(t.substring(42-n))}function pt(e){return e.mul(ot.a.from(1e4).add(ot.a.from(1e3))).div(ot.a.from(1e4))}function mt(e,n){if(n<0||n>1e4)throw Error("Unexpected slippage value: ".concat(n));return[b.f.divide(b.f.multiply(e.raw,b.f.BigInt(1e4-n)),b.f.BigInt(1e4)),b.f.divide(b.f.multiply(e.raw,b.f.BigInt(1e4+n)),b.f.BigInt(1e4))]}function ft(e,n,t,a){if(!ut(e)||e===it.a)throw Error("Invalid 'address' parameter '".concat(e,"'."));return new at.a(e,n,function(e,n){return n?function(e,n){return e.getSigner(n).connectUnchecked()}(e,n):e}(t,a))}function bt(e,n,t){return ft(e?Ae[e]:Ae[b.b.AVALANCHE],ct.a,n,t)}var At,vt,gt=t(177),yt=t(178),ht=(t(305),t(130)),Et=t(139),xt=t(213),Ot=new ht.b(Et),wt=(new ht.b(xt),Ot),jt=t(179),kt=(t(249),t(306)),Ct=t(250),Tt=(At={},Object(f.a)(At,b.b.FUJI,"0xb465Fd2d9C71d5D6e6c069aaC9b4E21c69aAA78f"),Object(f.a)(At,b.b.AVALANCHE,"0x246e397901Dd6e9873df86470308E92E3ef0Acbc"),Object(f.a)(At,b.b.CRYPTOSEALS,"0xDfb690cF42cD1e9af757AEbA482F5171F8643E92"),At),Bt=t(214),It=t(215);vt={},Object(f.a)(vt,b.b.FUJI,be),Object(f.a)(vt,b.b.AVALANCHE,be),Object(f.a)(vt,b.b.CRYPTOSEALS,be),new ht.b(It),new ht.b(Bt);function St(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=fn(),i=a.library,o=a.account;return Object(r.useMemo)((function(){if(!e||!n||!i||e===be)return null;try{return ft(e,n,i,t&&o?o:void 0)}catch(a){return console.error("Failed to get contract",a),null}}),[e,n,i,t,o])}function Rt(e,n){return St(e,Et,n)}function Nt(e,n){return St(e,gt.a,n)}function Lt(){var e=fn().chainId;return St(e&&Tt[e],Ct,!1)}function Ut(e,n){return St(e,yt.a,n)}function Pt(e,n){return St(e,jt,n)}function Dt(){var e=fn().chainId,n=ra(),t=wn();return Object(r.useMemo)((function(){return e?n.reduce((function(e,n){return e[n.address]=n,e}),Object(m.a)({},t[e])):{}}),[e,n,t])}var Ft=/^0x[a-fA-F0-9]{64}$/;function Wt(e,n,t){return e&&e.length>0?e:n&&Ft.test(n)?Object(gn.b)(n):t}function Mt(e){var n=fn().chainId,t=Dt(),a=ut(e),i=Rt(a||void 0,!1),o=function(e,n){return St(e,xt,n)}(a||void 0,!1),c=a?t[a]:void 0,u=nt(c?void 0:i,"name",void 0,Xn),l=nt(c?void 0:o,"name",void 0,Xn),s=nt(c?void 0:i,"symbol",void 0,Xn),d=nt(c?void 0:o,"symbol",void 0,Xn),p=nt(c?void 0:i,"decimals",void 0,Xn);return Object(r.useMemo)((function(){if(c)return c;if(n&&a){if(p.loading||s.loading||u.loading)return null;var e,t,r,i;if(p.result)return new b.k(n,a,p.result[0],Wt(null===(e=s.result)||void 0===e?void 0:e[0],null===(t=d.result)||void 0===t?void 0:t[0],"UNKNOWN"),Wt(null===(r=u.result)||void 0===r?void 0:r[0],null===(i=l.result)||void 0===i?void 0:i[0],"Unknown Token"))}}),[a,n,p.loading,p.result,s.loading,s.result,d.result,c,u.loading,u.result,l.result])}function Vt(e){var n="AVAX"===(null===e||void 0===e?void 0:e.toUpperCase()),t=Mt(n?void 0:e);return n?b.a:t}var zt=Object(kn.b)("user/updateMatchesDarkMode"),Yt=Object(kn.b)("user/updateUserDarkMode"),Ht=Object(kn.b)("user/updateUserExpertMode"),qt=Object(kn.b)("user/updateUserSlippageTolerance"),Qt=Object(kn.b)("user/updateUserDeadline"),Kt=Object(kn.b)("user/addSerializedToken"),Jt=Object(kn.b)("user/removeSerializedToken"),Xt=Object(kn.b)("user/addSerializedPair"),Gt=Object(kn.b)("user/removeSerializedPair"),Zt=Object(kn.b)("app/toggleURLWarning");function _t(e){return{chainId:e.chainId,address:e.address,decimals:e.decimals,symbol:e.symbol,name:e.name}}function $t(e){return new b.k(e.chainId,e.address,e.decimals,e.symbol,e.name)}function ea(){var e=Object(s.d)((function(e){var n=e.user,t=n.matchesDarkMode;return{userDarkMode:n.userDarkMode,matchesDarkMode:t}}),s.b),n=e.userDarkMode,t=e.matchesDarkMode;return null===n?t:n}function na(){return Object(s.d)((function(e){return e.user.userExpertMode}))}function ta(){var e=Object(s.c)(),n=na(),t=Object(r.useCallback)((function(){e(Ht({userExpertMode:!n}))}),[n,e]);return[n,t]}function aa(){var e=Object(s.c)();return[Object(s.d)((function(e){return e.user.userSlippageTolerance})),Object(r.useCallback)((function(n){e(qt({userSlippageTolerance:n}))}),[e])]}function ra(){var e=fn().chainId,n=Object(s.d)((function(e){return e.user.tokens}));return Object(r.useMemo)((function(){var t;return e?Object.values(null!==(t=n[e])&&void 0!==t?t:{}).map($t):[]}),[n,e])}function ia(e){return{token0:_t(e.token0),token1:_t(e.token1)}}function oa(e,n){var t=Object(ln.a)(e,2),a=t[0],r=t[1];return new b.k(a.chainId,b.g.getAddress(a,r,n),18,"BGL","Baguette Liquidity")}function ca(e){var n=Lt(),t=Object(r.useMemo)((function(){return e?e.map(ut).filter((function(e){return!1!==e})).sort():[]}),[e]),a=function(e,n,t,a){var i=Object(r.useMemo)((function(){var t;return null===e||void 0===e||null===(t=e.interface)||void 0===t?void 0:t.getFunction(n)}),[e,n]),o=Gn(Object(r.useMemo)((function(){return e&&i&&t&&t.length>0?t.map((function(n){return{address:e.address,callData:e.interface.encodeFunctionData(i,n)}})):[]}),[t,e,i]),a),c=Sn();return Object(r.useMemo)((function(){return o.map((function(n){return $n(n,null===e||void 0===e?void 0:e.interface,i,c)}))}),[i,e,o,c])}(n,"getEthBalance",t.map((function(e){return[e]})));return Object(r.useMemo)((function(){return t.reduce((function(e,n,t){var r,i,o=null===a||void 0===a||null===(r=a[t])||void 0===r||null===(i=r.result)||void 0===i?void 0:i[0];return o&&(e[n]=b.d.ether(b.f.BigInt(o.toString()))),e}),{})}),[t,a])}function ua(e,n){var t=Object(r.useMemo)((function(){var e;return null!==(e=null===n||void 0===n?void 0:n.filter((function(e){return!1!==ut(null===e||void 0===e?void 0:e.address)})))&&void 0!==e?e:[]}),[n]),a=et(Object(r.useMemo)((function(){return t.map((function(e){return e.address}))}),[t]),wt,"balanceOf",[e]),i=Object(r.useMemo)((function(){return a.some((function(e){return e.loading}))}),[a]);return[Object(r.useMemo)((function(){return e&&t.length>0?t.reduce((function(e,n,t){var r,i,o=null===a||void 0===a||null===(r=a[t])||void 0===r||null===(i=r.result)||void 0===i?void 0:i[0],c=o?b.f.BigInt(o.toString()):void 0;return c&&(e[n.address]=new b.l(n,c)),e}),{}):{}}),[e,t,a]),i]}function la(e,n){return ua(e,n)[0]}function sa(e,n){var t=la(e,[n]);if(n)return t[n.address]}function da(e,n){var t=Object(r.useMemo)((function(){var e;return null!==(e=null===n||void 0===n?void 0:n.filter((function(e){return e instanceof b.k})))&&void 0!==e?e:[]}),[n]),a=la(e,t),i=ca(Object(r.useMemo)((function(){var e;return null!==(e=null===n||void 0===n?void 0:n.some((function(e){return e===b.a})))&&void 0!==e&&e}),[n])?[e]:[]);return Object(r.useMemo)((function(){var t;return null!==(t=null===n||void 0===n?void 0:n.map((function(n){if(e&&n)return n instanceof b.k?a[n.address]:n===b.a?i[e]:void 0})))&&void 0!==t?t:[]}),[e,n,i,a])}function pa(e,n){return da(e,[n])[0]}var ma=t(37),fa=t(123);function ba(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  border-radius: 12px;\n  width: fit-content;\n"]);return ba=function(){return e},e}function Aa(){var e=Object(rn.a)(["\n  background-color: rgba(255, 0, 122, 0.03);\n  color: ",";\n  font-weight: 500;\n"]);return Aa=function(){return e},e}function va(){var e=Object(rn.a)(["\n  background-color: rgba(243, 132, 30, 0.05);\n  color: ",";\n  font-weight: 500;\n"]);return va=function(){return e},e}function ga(){var e=Object(rn.a)(["\n  background-color: rgba(243, 132, 30, 0.05);\n  color: ",";\n  font-weight: 500;\n"]);return ga=function(){return e},e}function ya(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n"]);return ya=function(){return e},e}function ha(){var e=Object(rn.a)(["\n  background-color: ",";\n"]);return ha=function(){return e},e}function Ea(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n  background-color: ",";\n"]);return Ea=function(){return e},e}function xa(){var e=Object(rn.a)(["\n  width: 100%;\n  border-radius: 16px;\n  padding: 1.25rem;\n  padding: ",";\n  border: ",";\n  border-radius: ",";\n"]);return xa=function(){return e},e}var Oa=Object(cn.default)(fa.Box)(xa(),(function(e){return e.padding}),(function(e){return e.border}),(function(e){return e.borderRadius})),wa=Oa,ja=Object(cn.default)(Oa)(Ea(),(function(e){return e.theme.bg2}),(function(e){return e.theme.bg3})),ka=Object(cn.default)(Oa)(ha(),(function(e){return e.theme.bg3})),Ca=(Object(cn.default)(Oa)(ya(),(function(e){return e.theme.bg3})),Object(cn.default)(Oa)(ga(),(function(e){return e.theme.yellow2}))),Ta=Object(cn.default)(Oa)(va(),(function(e){return e.theme.avaxRed})),Ba=(Object(cn.default)(Oa)(Aa(),(function(e){return e.theme.primary1})),Object(cn.default)(Oa)(ba(),(function(e){return e.theme.primary5}),(function(e){return e.theme.primary1}))),Ia=function(e){var n=e.children,t=Object(ma.a)(e,["children"]);return i.a.createElement(Ba,t,i.a.createElement(sn.b,{fontWeight:500,color:"#2172E5"},n))},Sa=t(631),Ra=t(627);function Na(e,n){var t=Object(r.useRef)(n);Object(r.useEffect)((function(){t.current=n}),[n]),Object(r.useEffect)((function(){var n=function(n){var a,r;null!==(a=null===(r=e.current)||void 0===r?void 0:r.contains(n.target))&&void 0!==a&&a||t.current&&t.current()};return document.addEventListener("mousedown",n),function(){document.removeEventListener("mousedown",n)}}),[e])}var La=t(628);function Ua(){var e=Object(rn.a)(["\n    display: none;\n  "]);return Ua=function(){return e},e}function Pa(){var e=Object(rn.a)(["\n  ",";\n"]);return Pa=function(){return e},e}function Da(){var e=Object(rn.a)(["\n  height: ",";\n  width: ",";\n"]);return Da=function(){return e},e}function Fa(){var e=Object(rn.a)(["\n  color: ",";\n"]);return Fa=function(){return e},e}function Wa(){var e=Object(rn.a)(["\n  animation: 2s "," linear infinite;\n  width: 16px;\n  height: 16px;\n"]);return Wa=function(){return e},e}function Ma(){var e=Object(rn.a)(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return Ma=function(){return e},e}function Va(){var e=Object(rn.a)(["\n  animation: "," 5s cubic-bezier(0.83, 0, 0.17, 1) infinite;\n  padding: 2rem 0 0 0;\n  filter: drop-shadow(0px 2px 4px rgba(0, 0, 0, 0.15));\n"]);return Va=function(){return e},e}function za(){var e=Object(rn.a)(["\n  0% {\n    transform: perspective(1000px) rotateY(0deg);\n  }\n\n  100% {\n    transform: perspective(1000px) rotateY(360deg);\n  }\n"]);return za=function(){return e},e}function Ya(){var e=Object(rn.a)(["\n  text-decoration: none;\n  cursor: pointer;\n  color: ",";\n  font-weight: 500;\n\n  :hover {\n    text-decoration: underline;\n  }\n\n  :focus {\n    outline: none;\n    text-decoration: underline;\n  }\n\n  :active {\n    text-decoration: none;\n  }\n"]);return Ya=function(){return e},e}function Ha(){var e=Object(rn.a)(["\n  text-decoration: none;\n  cursor: pointer;\n  color: ",";\n  font-weight: 500;\n\n  :hover {\n    text-decoration: underline;\n  }\n\n  :focus {\n    outline: none;\n    text-decoration: underline;\n  }\n\n  :active {\n    text-decoration: none;\n  }\n"]);return Ha=function(){return e},e}function qa(){var e=Object(rn.a)(["\n  border: none;\n  text-decoration: none;\n  background: none;\n\n  cursor: ",";\n  color: ",";\n  font-weight: 500;\n\n  :hover {\n    text-decoration: ",";\n  }\n\n  :focus {\n    outline: none;\n    text-decoration: ",";\n  }\n\n  :active {\n    text-decoration: none;\n  }\n"]);return qa=function(){return e},e}function Qa(){var e=Object(rn.a)(["\n  cursor: pointer;\n"]);return Qa=function(){return e},e}function Ka(){var e=Object(rn.a)(["\n  padding: 1rem 2rem 1rem 2rem;\n  border-radius: 3rem;\n  cursor: pointer;\n  user-select: none;\n  font-size: 1rem;\n  border: none;\n  outline: none;\n  background-color: ",";\n  color: ",";\n  width: 100%;\n\n  :hover,\n  :focus {\n    background-color: ",";\n  }\n\n  :active {\n    background-color: ",";\n  }\n\n  :disabled {\n    background-color: ",";\n    color: ",";\n    cursor: auto;\n  }\n"]);return Ka=function(){return e},e}cn.default.button.attrs((function(e){var n=e.warning,t=e.theme;return{backgroundColor:n?t.red1:t.primary1}}))(Ka(),(function(e){return e.backgroundColor}),(function(e){return e.theme.white}),(function(e){var n=e.backgroundColor;return Object(dn.a)(.05,n)}),(function(e){var n=e.backgroundColor;return Object(dn.a)(.1,n)}),(function(e){return e.theme.bg1}),(function(e){return e.theme.text4}));var Ja=Object(cn.default)(Ra.a)(Qa()),Xa=cn.default.button(qa(),(function(e){return e.disabled?"default":"pointer"}),(function(e){var n=e.theme;return e.disabled?n.text2:n.primary1}),(function(e){return e.disabled?null:"underline"}),(function(e){return e.disabled?null:"underline"})),Ga=Object(cn.default)(d.b)(Ha(),(function(e){return e.theme.primary1})),Za=cn.default.a(Ya(),(function(e){return e.theme.primary1})),_a=Object(cn.keyframes)(za()),$a=cn.default.img(Va(),_a);function er(e){var n=e.target,t=void 0===n?"_blank":n,a=e.href,o=e.rel,c=void 0===o?"noopener noreferrer":o,u=Object(ma.a)(e,["target","href","rel"]),s=Object(r.useCallback)((function(e){"_blank"===t||e.ctrlKey||e.metaKey?l.a.outboundLink({label:a},(function(){console.debug("Fired outbound link event",a)})):(e.preventDefault(),l.a.outboundLink({label:a},(function(){window.location.href=a})))}),[a,t]);return i.a.createElement(Za,Object.assign({target:t,rel:c,href:a,onClick:s},u))}var nr=Object(cn.keyframes)(Ma()),tr=cn.default.img(Wa(),nr);Object(cn.default)(Ga)(Fa(),(function(e){return e.theme.text1}));var ar=Object(cn.default)(tr)(Da(),(function(e){return e.size}),(function(e){return e.size})),rr=cn.default.span(Pa(),(function(e){return e.theme.mediaWidth.upToSmall(Ua())}));function ir(){var e=Object(rn.a)(["\nhtml {\n  color: ",";\n  background-color: ",";\n}\n\nbody {\n  min-height: 100vh;\n  background-position: 0 -30vh;\n  background-repeat: no-repeat;\n  background-image: ",";\n}\n"]);return ir=function(){return e},e}function or(){var e=Object(rn.a)(["\nhtml, input, textarea, button {\n  font-family: 'Inter', sans-serif;\n  font-display: fallback;\n}\n@supports (font-variation-settings: normal) {\n  html, input, textarea, button {\n    font-family: 'Inter var', sans-serif;\n  }\n}\n\nhtml,\nbody {\n  margin: 0;\n  padding: 0;\n}\n\n* {\n  box-sizing: border-box;\n}\n\nbutton {\n  user-select: none;\n}\n\nhtml {\n  font-size: 16px;\n  font-variant: none;\n  -webkit-font-smoothing: antialiased;\n  -moz-osx-font-smoothing: grayscale;\n  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);\n  font-feature-settings: 'ss01' on, 'ss02' on, 'cv01' on, 'cv03' on;\n\n}\n"]);return or=function(){return e},e}function cr(){var e=Object(rn.a)(["\n  color: ",";\n"]);return cr=function(){return e},e}function ur(){var e=Object(rn.a)(["\n      display: flex;\n      flex-flow: row nowrap;\n    "]);return ur=function(){return e},e}function lr(){var e=Object(rn.a)(["\n      display: flex;\n      flex-flow: column nowrap;\n    "]);return lr=function(){return e},e}function sr(){var e=Object(rn.a)(["\n      @media (max-width: ","px) {\n        ","\n      }\n    "]);return sr=function(){return e},e}var dr={upToExtraSmall:500,upToSmall:720,upToMedium:960,upToLarge:1280},pr=Object.keys(dr).reduce((function(e,n){return e[n]=function(e,t,a){return Object(cn.css)(sr(),dr[n],Object(cn.css)(e,t,a))},e}),{});function mr(e){var n=e.children,t=ea(),a=Object(r.useMemo)((function(){return function(e){return Object(m.a)(Object(m.a)({},function(e){return{white:"#FFFFFF",black:"#000000",text1:"#FFFFFF",text2:"#C3C5CB",text3:"#FFFFFF",text4:"#1E1E1E",text5:"#2C2F36",bg1:"#212429",bg2:"#2C2F36",bg3:"#2172E5",bg4:"#565A69",bg5:"#FFFFFF",modalBG:e?"rgba(0,0,0,.425)":"rgba(0,0,0,0.3)",advancedBG:e?"rgba(0,0,0,0.1)":"rgba(255,255,255,0.6)",primary1:"#2172E5",primary2:e?"#3680E7":"#EAC178",primary3:e?"#4D8FEA":"#EAC178",primary4:e?"#376bad70":"#EAC178",primary5:"#2172E5",primary6:e?"#2172E5":"#FFF2172E5FFF",primaryText1:e?"#FFFFFF":"#ffffff",secondary1:"#2172E5",secondary2:e?"#17000b26":"#F6DDE8",secondary3:e?"#17000b26":"#FDEAF1",red1:"#FF6871",red2:"#F82D3A",green1:"#27AE60",yellow1:"#FFE270",yellow2:"#F3841E",blue1:"#2172E5",avaxRed:"#FFFFFF"}}(e)),{},{grids:{sm:8,md:12,lg:24},shadow1:e?"#000":"#2F80ED",mediaWidth:pr,flexColumnNoWrap:Object(cn.css)(lr()),flexRowNoWrap:Object(cn.css)(ur())})}(t)}),[t]);return i.a.createElement(cn.ThemeProvider,{theme:a},n)}var fr=Object(cn.default)(sn.b)(cr(),(function(e){var n=e.color;return e.theme[n]})),br=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,color:"text2"},e))},Ar=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,color:"primary1"},e))},vr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,color:"text1"},e))},gr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,color:"white"},e))},yr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:400,fontSize:16,color:"text1"},e))},hr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:600,fontSize:24},e))},Er=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,fontSize:20},e))},xr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:400,fontSize:14},e))},Or=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,fontSize:11},e))},wr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,color:"primary1"},e))},jr=function(e){return i.a.createElement(fr,Object.assign({fontWeight:500,fontSize:12,fontStyle:"italic",color:"text2"},e))},kr=function(e){var n=e.error,t=Object(ma.a)(e,["error"]);return i.a.createElement(fr,Object.assign({fontWeight:500,color:n?"red1":"text2"},t))},Cr=Object(cn.createGlobalStyle)(or()),Tr=Object(cn.createGlobalStyle)(ir(),(function(e){return e.theme.text1}),(function(e){return e.theme.bg2}),(function(e){var n=e.theme;return"radial-gradient(50% 50% at 50% 50%, ".concat(Object(dn.d)(.85,n.primary1)," 0%, ").concat(Object(dn.d)(1,n.bg1)," 100%)")}));function Br(){var e=Object(rn.a)(["\n  width: fit-content;\n  margin: ",";\n"]);return Br=function(){return e},e}function Ir(){var e=Object(rn.a)(["\n  flex-wrap: wrap;\n  margin: ",";\n  justify-content: ",";\n\n  & > * {\n    margin: "," !important;\n  }\n"]);return Ir=function(){return e},e}function Sr(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: flex-end;\n"]);return Sr=function(){return e},e}function Rr(){var e=Object(rn.a)(["\n  justify-content: space-between;\n"]);return Rr=function(){return e},e}function Nr(){var e=Object(rn.a)(["\n  width: 100%;\n  display: flex;\n  padding: 0;\n  align-items: ",";\n  padding: ",";\n  border: ",";\n  border-radius: ",";\n"]);return Nr=function(){return e},e}var Lr=Object(cn.default)(fa.Box)(Nr(),(function(e){var n=e.align;return n||"center"}),(function(e){return e.padding}),(function(e){return e.border}),(function(e){return e.borderRadius})),Ur=Object(cn.default)(Lr)(Rr()),Pr=cn.default.div(Sr()),Dr=Object(cn.default)(Lr)(Ir(),(function(e){var n=e.gap;return n&&"-".concat(n)}),(function(e){var n=e.justify;return n&&n}),(function(e){return e.gap})),Fr=Object(cn.default)(Lr)(Br(),(function(e){var n=e.gap;return n&&"-".concat(n)})),Wr=Lr,Mr=t(629);function Vr(){var e=Object(rn.a)(["\n  background-color: ",";\n  border: 1px solid ",";\n\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n    box-shadow: none;\n    background-color: ",";\n    border: 1px solid ",";\n  }\n"]);return Vr=function(){return e},e}function zr(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  border: 1px solid ",";\n\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n  }\n"]);return zr=function(){return e},e}function Yr(){var e=Object(rn.a)(["\n  border: 1px solid #edeef2;\n  background-color: ",";\n  color: black;\n\n  &:focus {\n    // eslint-disable-next-line @typescript-eslint/no-unused-vars\n    box-shadow: 0 0 0 1pt ",";\n  }\n  &:hover {\n    box-shadow: 0 0 0 1pt ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n  }\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n  }\n"]);return Yr=function(){return e},e}function Hr(){var e=Object(rn.a)(["\n  background-color: transparent;\n  color: #FFFFFF;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n\n  &:focus {\n    text-decoration: underline;\n  }\n  &:hover {\n    text-decoration: underline;\n  }\n  &:active {\n    text-decoration: underline;\n  }\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n  }\n"]);return Hr=function(){return e},e}function qr(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n  background-color: transparent;\n  color: ",";\n\n  &:focus {\n    box-shadow: 0 0 0 1px ",";\n  }\n  &:hover {\n    box-shadow: 0 0 0 1px ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1px ",";\n  }\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n  }\n"]);return qr=function(){return e},e}function Qr(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: white;\n\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:disabled {\n    background-color: ",";\n    opacity: 50%;\n    cursor: auto;\n  }\n"]);return Qr=function(){return e},e}function Kr(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n  color: ",";\n  background-color: transparent;\n  font-size: 16px;\n  border-radius: 12px;\n  padding: ",";\n\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    border: 1px solid ",";\n  }\n  &:hover {\n    border: 1px solid ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    border: 1px solid ",";\n  }\n  &:disabled {\n    opacity: 50%;\n    cursor: auto;\n  }\n  a:hover {\n    text-decoration: none;\n  }\n"]);return Kr=function(){return e},e}function Jr(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  font-size: 16px;\n  font-weight: 500;\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n"]);return Jr=function(){return e},e}function Xr(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  font-size: 16px;\n  font-weight: 500;\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  :disabled {\n    opacity: 0.4;\n    :hover {\n      cursor: auto;\n      background-color: ",";\n      box-shadow: none;\n      border: 1px solid transparent;\n      outline: none;\n    }\n  }\n"]);return Xr=function(){return e},e}function Gr(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: white;\n  &:focus {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:hover {\n    background-color: ",";\n  }\n  &:active {\n    box-shadow: 0 0 0 1pt ",";\n    background-color: ",";\n  }\n  &:disabled {\n    background-color: ",";\n    color: ",";\n    cursor: auto;\n    box-shadow: none;\n    border: 1px solid transparent;\n    outline: none;\n    opacity: ",";\n  }\n"]);return Gr=function(){return e},e}function Zr(){var e=Object(rn.a)(["\n  padding: ",";\n  width: ",";\n  font-weight: 500;\n  text-align: center;\n  border-radius: 12px;\n  border-radius: ",";\n  outline: none;\n  border: 1px solid transparent;\n  color: white;\n  text-decoration: none;\n  display: flex;\n  justify-content: center;\n  flex-wrap: nowrap;\n  align-items: center;\n  cursor: pointer;\n  position: relative;\n  z-index: 1;\n  &:disabled {\n    cursor: auto;\n  }\n\n  > * {\n    user-select: none;\n  }\n"]);return Zr=function(){return e},e}var _r=Object(cn.default)(fa.Button)(Zr(),(function(e){var n=e.padding;return n||"18px"}),(function(e){var n=e.width;return n||"100%"}),(function(e){var n=e.borderRadius;return n&&n})),$r=Object(cn.default)(_r)(Gr(),(function(e){return e.theme.primary1}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.primary1)}),(function(e){var n=e.theme;return e.altDisabledStyle?n.primary1:n.bg3}),(function(e){var n=e.theme;return e.altDisabledStyle?"white":n.text3}),(function(e){return e.altDisabledStyle?"0.7":"1"})),ei=Object(cn.default)(_r)(Xr(),(function(e){return e.theme.primary5}),(function(e){return e.theme.primaryText1}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.03,n.primary5)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.03,n.primary5)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.03,n.primary5)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.05,n.primary5)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.05,n.primary5)}),(function(e){return e.theme.primary5})),ni=(Object(cn.default)(_r)(Jr(),(function(e){return e.theme.bg3}),(function(e){return e.theme.text2}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.05,n.bg2)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.05,n.bg2)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.05,n.bg2)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.1,n.bg2)}),(function(e){var n=e.theme;return!e.disabled&&Object(dn.a)(.1,n.bg2)})),Object(cn.default)(_r)(Kr(),(function(e){return e.theme.primary4}),(function(e){return e.theme.primary1}),(function(e){var n=e.padding;return n||"10px"}),(function(e){return e.theme.primary4}),(function(e){return e.theme.primary3}),(function(e){return e.theme.primary3}),(function(e){return e.theme.primary4}),(function(e){return e.theme.primary3}))),ti=(Object(cn.default)(_r)(Qr(),(function(e){return e.theme.primary1}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.primary1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.primary1)}),(function(e){return e.theme.primary1})),Object(cn.default)(_r)(qr(),(function(e){return e.theme.bg2}),(function(e){return e.theme.text1}),(function(e){return e.theme.bg4}),(function(e){return e.theme.bg4}),(function(e){return e.theme.bg4}))),ai=Object(cn.default)(_r)(Hr()),ri=(Object(cn.default)(_r)(Yr(),(function(e){return e.theme.bg1}),Object(dn.a)(.05,"#edeef2"),Object(dn.a)(.1,"#edeef2"),Object(dn.a)(.1,"#edeef2")),Object(cn.default)(_r)(zr(),(function(e){var n=e.theme;return Object(dn.b)(.5,n.green1)}),(function(e){return e.theme.green1}),(function(e){return e.theme.green1}))),ii=Object(cn.default)(_r)(Vr(),(function(e){return e.theme.red1}),(function(e){return e.theme.red1}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.red1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.red1)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.red1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.red1)}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.red1)}),(function(e){return e.theme.red1}),(function(e){return e.theme.red1}));function oi(e){var n=e.confirmed,t=e.altDisabledStyle,a=Object(ma.a)(e,["confirmed","altDisabledStyle"]);return n?i.a.createElement(ri,a):i.a.createElement($r,Object.assign({},a,{altDisabledStyle:t}))}function ci(e){var n=e.error,t=Object(ma.a)(e,["error"]);return n?i.a.createElement(ii,t):i.a.createElement($r,t)}function ui(e){var n=e.disabled,t=void 0!==n&&n,a=e.children,r=Object(ma.a)(e,["disabled","children"]);return i.a.createElement(ti,Object.assign({},r,{disabled:t}),i.a.createElement(Ur,null,i.a.createElement("div",{style:{display:"flex",alignItems:"center"}},a),i.a.createElement(Mr.a,{size:24})))}function li(){var e=Object(rn.a)(["\n  display: grid;\n  grid-auto-rows: auto;\n  grid-row-gap: ",";\n  justify-items: ",";\n  \n"]);return li=function(){return e},e}function si(){var e=Object(rn.a)(["\n  width: 100%;\n  align-items: center;\n"]);return si=function(){return e},e}function di(){var e=Object(rn.a)(["\n  display: flex;\n  flex-direction: column;\n  justify-content: flex-start;\n"]);return di=function(){return e},e}var pi=cn.default.div(di()),mi=Object(cn.default)(pi)(si()),fi=cn.default.div(li(),(function(e){var n=e.gap;return("sm"===n?"8px":"md"===n&&"12px")||"lg"===n&&"24px"||n}),(function(e){var n=e.justify;return n&&n})),bi=pi,Ai=t(95),vi=t(229),gi=(t(390),t(308));function yi(){var e=Object(rn.a)(["\n          width: 100vw;\n          border-radius: 20px;\n          border-bottom-left-radius: 0;\n          border-bottom-right-radius: 0;\n        "]);return yi=function(){return e},e}function hi(){var e=Object(rn.a)(["\n      width:  85vw;\n      ","\n    "]);return hi=function(){return e},e}function Ei(){var e=Object(rn.a)(["\n      width: 65vw;\n      margin: 0;\n    "]);return Ei=function(){return e},e}function xi(){var e=Object(rn.a)(["\n        min-height: ","vh;\n      "]);return xi=function(){return e},e}function Oi(){var e=Object(rn.a)(["\n        max-height: ","vh;\n      "]);return Oi=function(){return e},e}function wi(){var e=Object(rn.a)(["\n  overflow-y: ",";\n\n  &[data-reach-dialog-content] {\n    margin: 0 0 2rem 0;\n    background-color: ",";\n    box-shadow: 0 4px 8px 0 ",";\n    padding: 0px;\n    width: 50vw;\n    overflow-y: ",";\n    overflow-x: hidden;\n\n    align-self: ",";\n\n    max-width: 420px;\n    ","\n    ","\n    display: flex;\n    border-radius: 20px;\n    ","\n    ","\n  }\n"]);return wi=function(){return e},e}function ji(){var e=Object(rn.a)(["\n  &[data-reach-dialog-overlay] {\n    z-index: 2;\n    background-color: transparent;\n    overflow: hidden;\n\n    display: flex;\n    align-items: center;\n    justify-content: center;\n\n    background-color: ",";\n  }\n"]);return ji=function(){return e},e}var ki=Object(Ai.a)(vi.b),Ci=Object(cn.default)(ki)(ji(),(function(e){return e.theme.modalBG})),Ti=Object(Ai.a)(vi.a),Bi=Object(cn.default)((function(e){e.minHeight,e.maxHeight,e.mobile,e.isOpen;var n=Object(ma.a)(e,["minHeight","maxHeight","mobile","isOpen"]);return i.a.createElement(Ti,n)})).attrs({"aria-label":"dialog"})(wi(),(function(e){return e.mobile?"scroll":"hidden"}),(function(e){return e.theme.bg1}),(function(e){var n=e.theme;return Object(dn.d)(.95,n.shadow1)}),(function(e){return e.mobile?"scroll":"hidden"}),(function(e){return e.mobile?"flex-end":"center"}),(function(e){var n=e.maxHeight;return n&&Object(cn.css)(Oi(),n)}),(function(e){var n=e.minHeight;return n&&Object(cn.css)(xi(),n)}),(function(e){return e.theme.mediaWidth.upToMedium(Ei())}),(function(e){var n=e.theme,t=e.mobile;return n.mediaWidth.upToSmall(hi(),t&&Object(cn.css)(yi()))}));function Ii(e){var n=e.isOpen,t=e.onDismiss,a=e.minHeight,r=void 0!==a&&a,c=e.maxHeight,u=void 0===c?90:c,l=e.initialFocusRef,s=e.children,d=Object(Ai.c)(n,null,{config:{duration:200},from:{opacity:0},enter:{opacity:1},leave:{opacity:0}}),p=Object(Ai.b)((function(){return{y:0,config:{mass:1,tension:210,friction:20}}})),f=Object(ln.a)(p,2),b=f[0].y,A=f[1],v=Object(gi.a)({onDrag:function(e){A({y:e.down?e.movement[1]:0}),(e.movement[1]>300||e.velocity>3&&e.direction[1]>0)&&t()}});return i.a.createElement(i.a.Fragment,null,d.map((function(e){var n=e.item,a=e.key,c=e.props;return n&&i.a.createElement(Ci,{key:a,style:c,onDismiss:t,initialFocusRef:l},i.a.createElement(Bi,Object.assign({},o.isMobile?Object(m.a)(Object(m.a)({},v()),{},{style:{transform:b.interpolate((function(e){return"translateY(".concat(e>0?e:0,"px)")}))}}):{},{"aria-label":"dialog content",minHeight:r,maxHeight:u,mobile:o.isMobile}),!l&&o.isMobile?i.a.createElement("div",{tabIndex:1}):null,s))})))}var Si=t(630),Ri=t(648);function Ni(e,n){var t=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],a=Object(r.useRef)();Object(r.useEffect)((function(){a.current=e}),[e]),Object(r.useEffect)((function(){function e(){var e=a.current;e&&e()}if(null!==n){t&&e();var r=setInterval(e,n);return function(){return clearInterval(r)}}}),[n,t])}var Li=t(180);function Ui(){var e=Object(rn.a)(["\n  width: 8px;\n  height: 8px;\n  z-index: 9998;\n\n  ::before {\n    position: absolute;\n    width: 8px;\n    height: 8px;\n    z-index: 9998;\n\n    content: '';\n    border: 1px solid ",";\n    transform: rotate(45deg);\n    background: ",";\n  }\n\n  &.arrow-top {\n    bottom: -5px;\n    ::before {\n      border-top: none;\n      border-left: none;\n    }\n  }\n\n  &.arrow-bottom {\n    top: -5px;\n    ::before {\n      border-bottom: none;\n      border-right: none;\n    }\n  }\n\n  &.arrow-left {\n    right: -5px;\n\n    ::before {\n      border-bottom: none;\n      border-left: none;\n    }\n  }\n\n  &.arrow-right {\n    left: -5px;\n    ::before {\n      border-right: none;\n      border-top: none;\n    }\n  }\n"]);return Ui=function(){return e},e}function Pi(){var e=Object(rn.a)(["\n  display: inline-block;\n"]);return Pi=function(){return e},e}function Di(){var e=Object(rn.a)(["\n  z-index: 9999;\n\n  visibility: ",";\n  opacity: ",";\n  transition: visibility 150ms linear, opacity 150ms linear;\n\n  background: ",";\n  border: 1px solid ",";\n  box-shadow: 0 4px 8px 0 ",";\n  color: ",";\n  border-radius: 8px;\n"]);return Di=function(){return e},e}var Fi=cn.default.div(Di(),(function(e){return e.show?"visible":"hidden"}),(function(e){return e.show?1:0}),(function(e){return e.theme.bg2}),(function(e){return e.theme.bg3}),(function(e){var n=e.theme;return Object(dn.d)(.9,n.shadow1)}),(function(e){return e.theme.text2})),Wi=cn.default.div(Pi()),Mi=cn.default.div(Ui(),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg2}));function Vi(e){var n,t,a=e.content,o=e.show,c=e.children,u=e.placement,l=void 0===u?"auto":u,s=Object(r.useState)(null),d=Object(ln.a)(s,2),p=d[0],m=d[1],f=Object(r.useState)(null),b=Object(ln.a)(f,2),A=b[0],v=b[1],g=Object(r.useState)(null),y=Object(ln.a)(g,2),h=y[0],E=y[1],x=Object(Ri.a)(p,A,{placement:l,strategy:"fixed",modifiers:[{name:"offset",options:{offset:[8,8]}},{name:"arrow",options:{element:h}}]}),O=x.styles,w=x.update,j=x.attributes;return Ni(Object(r.useCallback)((function(){w&&w()}),[w]),o?100:null),i.a.createElement(i.a.Fragment,null,i.a.createElement(Wi,{ref:m},c),i.a.createElement(Li.a,null,i.a.createElement(Fi,Object.assign({show:o,ref:v,style:O.popper},j.popper),a,i.a.createElement(Mi,Object.assign({className:"arrow-".concat(null!==(n=null===(t=j.popper)||void 0===t?void 0:t["data-popper-placement"])&&void 0!==n?n:""),ref:E,style:O.arrow},j.arrow)))))}function zi(){var e=Object(rn.a)(["\n  width: 228px;\n  padding: 0.6rem 1rem;\n  line-height: 150%;\n  font-weight: 400;\n"]);return zi=function(){return e},e}var Yi=cn.default.div(zi());function Hi(e){var n=e.text,t=Object(ma.a)(e,["text"]);return i.a.createElement(Vi,Object.assign({content:i.a.createElement(Yi,null,n)},t))}function qi(e){var n=e.children,t=Object(ma.a)(e,["children"]),a=Object(r.useState)(!1),o=Object(ln.a)(a,2),c=o[0],u=o[1],l=Object(r.useCallback)((function(){return u(!0)}),[u]),s=Object(r.useCallback)((function(){return u(!1)}),[u]);return i.a.createElement(Hi,Object.assign({},t,{show:c}),i.a.createElement("div",{onMouseEnter:l,onMouseLeave:s},n))}function Qi(){var e=Object(rn.a)(["\n  font-size: 1rem;\n"]);return Qi=function(){return e},e}function Ki(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0.2rem;\n  border: none;\n  background: none;\n  outline: none;\n  cursor: default;\n  border-radius: 36px;\n  width: 24px;\n  height: 24px;\n  background-color: rgba(255, 255, 255, 0.1);\n  color: ",";\n\n  :hover,\n  :focus {\n    opacity: 0.7;\n  }\n"]);return Ki=function(){return e},e}function Ji(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 0.2rem;\n  border: none;\n  background: none;\n  outline: none;\n  cursor: default;\n  border-radius: 36px;\n  background-color: ",";\n  color: ",";\n\n  :hover,\n  :focus {\n    opacity: 0.7;\n  }\n"]);return Ji=function(){return e},e}var Xi=cn.default.div(Ji(),(function(e){return e.theme.bg2}),(function(e){return e.theme.text2}));cn.default.div(Ki(),(function(e){return e.theme.white})),cn.default.span(Qi());function Gi(e){var n=e.text,t=Object(r.useState)(!1),a=Object(ln.a)(t,2),o=a[0],c=a[1],u=Object(r.useCallback)((function(){return c(!0)}),[c]),l=Object(r.useCallback)((function(){return c(!1)}),[c]);return i.a.createElement("span",{style:{marginLeft:4}},i.a.createElement(Hi,{text:n,show:o},i.a.createElement(Xi,{onClick:u,onMouseEnter:u,onMouseLeave:l},i.a.createElement(Si.a,{size:16}))))}function Zi(){var e=Object(rn.a)(["\n  border-radius: 12px;\n  border: none;\n  /* border: 1px solid ","; */\n  background: ",";\n  display: flex;\n  width: fit-content;\n  cursor: pointer;\n  outline: none;\n  padding: 0;\n  /* background-color: transparent; */\n"]);return Zi=function(){return e},e}function _i(){var e=Object(rn.a)(["\n  padding: 0.25rem 0.5rem;\n  border-radius: 14px;\n  background: ",";\n  color: ",";\n  font-size: 1rem;\n  font-weight: 400;\n\n  padding: 0.35rem 0.6rem;\n  border-radius: 12px;\n  background: ",";\n  color: ",";\n  font-size: 1rem;\n  font-weight: ",";\n  :hover {\n    user-select: ",";\n    background: ",";\n    color: ",";\n  }\n"]);return _i=function(){return e},e}var $i,eo,no=cn.default.span(_i(),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t?a?n.primary1:n.text4:"none"}),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t?a?n.white:n.text2:n.text3}),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t?a?n.primary1:n.text4:"none"}),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t&&a?n.white:n.text2}),(function(e){return e.isOnSwitch?"500":"400"}),(function(e){return e.isOnSwitch?"none":"initial"}),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t?a?n.primary1:n.text3:"none"}),(function(e){var n=e.theme,t=e.isActive,a=e.isOnSwitch;return t?a?n.white:n.text2:n.text3})),to=cn.default.button(Zi(),(function(e){var n=e.theme;return e.isActive?n.primary5:n.text4}),(function(e){return e.theme.bg3}));function ao(e){var n=e.id,t=e.isActive,a=e.toggle;return i.a.createElement(to,{id:n,isActive:t,onClick:a},i.a.createElement(no,{isActive:t,isOnSwitch:!0},"On"),i.a.createElement(no,{isActive:!t,isOnSwitch:!1},"Off"))}function ro(){var e=Object(rn.a)(["\n    display: none;  \n  "]);return ro=function(){return e},e}function io(){var e=Object(rn.a)(["\n  color: #f3841e;\n  ","\n"]);return io=function(){return e},e}function oo(){var e=Object(rn.a)(["\n  height: 2rem;\n  position: relative;\n  padding: 0 0.75rem;\n  flex: 1;\n  border: ",";\n  :hover {\n    border: ",";\n  }\n\n  input {\n    width: 100%;\n    height: 100%;\n    border: 0px;\n    border-radius: 2rem;\n  }\n"]);return oo=function(){return e},e}function co(){var e=Object(rn.a)(["\n  background: ",";\n  font-size: 16px;\n  width: auto;\n  outline: none;\n  &::-webkit-outer-spin-button,\n  &::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n  }\n  color: ",";\n  text-align: right;\n"]);return co=function(){return e},e}function uo(){var e=Object(rn.a)(["\n  margin-right: 8px;\n  :hover {\n    cursor: pointer;\n  }\n  background-color: ",";\n  color: ",";\n"]);return uo=function(){return e},e}function lo(){var e=Object(rn.a)(["\n  color: ",";\n  align-items: center;\n  height: 2rem;\n  border-radius: 36px;\n  font-size: 1rem;\n  width: auto;\n  min-width: 3.5rem;\n  border: 1px solid ",";\n  outline: none;\n  background: ",";\n  :hover {\n    border: 1px solid ",";\n  }\n  :focus {\n    border: 1px solid ",";\n  }\n"]);return lo=function(){return e},e}!function(e){e.InvalidInput="InvalidInput",e.RiskyLow="RiskyLow",e.RiskyHigh="RiskyHigh"}($i||($i={})),function(e){e.InvalidInput="InvalidInput"}(eo||(eo={}));var so=cn.default.button(lo(),(function(e){return e.theme.text1}),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg1}),(function(e){return e.theme.bg4}),(function(e){return e.theme.primary1})),po=Object(cn.default)(so)(uo(),(function(e){var n=e.active,t=e.theme;return n&&t.primary1}),(function(e){var n=e.active,t=e.theme;return n?t.white:t.text1})),mo=cn.default.input(co(),(function(e){return e.theme.bg1}),(function(e){var n=e.theme;return"red"===e.color?n.red1:n.text1})),fo=Object(cn.default)(so)(oo(),(function(e){var n=e.theme,t=e.active,a=e.warning;return t&&"1px solid ".concat(a?n.red1:n.primary1)}),(function(e){var n=e.theme,t=e.active,a=e.warning;return t&&"1px solid ".concat(a?Object(dn.a)(.1,n.red1):Object(dn.a)(.1,n.primary1))})),bo=cn.default.span(io(),(function(e){return e.theme.mediaWidth.upToSmall(ro())}));function Ao(e){var n,t,a=e.rawSlippage,o=e.setRawSlippage,c=e.deadline,u=e.setDeadline,l=Object(r.useContext)(cn.ThemeContext),s=Object(r.useRef)(),d=Object(r.useState)(""),p=Object(ln.a)(d,2),m=p[0],f=p[1],b=Object(r.useState)(""),A=Object(ln.a)(b,2),v=A[0],g=A[1],y=""===m||(a/100).toFixed(2)===Number.parseFloat(m).toFixed(2),h=""===v||(c/60).toString()===v;function E(e){f(e);try{var n=Number.parseInt((100*Number.parseFloat(e)).toString());!Number.isNaN(n)&&n<5e3&&o(n)}catch(t){}}function x(e){g(e);try{var n=60*Number.parseInt(e);!Number.isNaN(n)&&n>0&&u(n)}catch(t){}}return n=""===m||y?y&&a<50?$i.RiskyLow:y&&a>500?$i.RiskyHigh:void 0:$i.InvalidInput,t=""===v||h?void 0:eo.InvalidInput,i.a.createElement(fi,{gap:"md"},i.a.createElement(fi,{gap:"sm"},i.a.createElement(Fr,null,i.a.createElement(vr,{fontWeight:400,fontSize:14,color:l.text2},"Slippage tolerance"),i.a.createElement(Gi,{text:"Your transaction will revert if the price changes unfavorably by more than this percentage."})),i.a.createElement(Ur,null,i.a.createElement(po,{onClick:function(){f(""),o(10)},active:10===a},"0.1%"),i.a.createElement(po,{onClick:function(){f(""),o(50)},active:50===a},"0.5%"),i.a.createElement(po,{onClick:function(){f(""),o(100)},active:100===a},"1%"),i.a.createElement(fo,{active:![10,50,100].includes(a),warning:!y,tabIndex:-1},i.a.createElement(Ur,null,!m||n!==$i.RiskyLow&&n!==$i.RiskyHigh?null:i.a.createElement(bo,null,i.a.createElement("span",{role:"img","aria-label":"warning"},"\u26a0\ufe0f")),i.a.createElement(mo,{ref:s,placeholder:(a/100).toFixed(2),value:m,onBlur:function(){E((a/100).toFixed(2))},onChange:function(e){return E(e.target.value)},color:y?"":"red"}),"%"))),!!n&&i.a.createElement(Ur,{style:{fontSize:"14px",paddingTop:"7px",color:n===$i.InvalidInput?"red":"#F3841E"}},n===$i.InvalidInput?"Enter a valid slippage percentage":n===$i.RiskyLow?"Your transaction may fail":"Your transaction may be frontrun")),i.a.createElement(fi,{gap:"sm"},i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:l.text2},"Transaction deadline"),i.a.createElement(Gi,{text:"Your transaction will revert if it is pending for more than this long."})),i.a.createElement(Fr,null,i.a.createElement(fo,{style:{width:"80px"},tabIndex:-1},i.a.createElement(mo,{color:t?"red":void 0,onBlur:function(){x((c/60).toString())},placeholder:(c/60).toString(),value:v,onChange:function(e){return x(e.target.value)}})),i.a.createElement(yr,{style:{paddingLeft:"8px"},fontSize:14},"minutes"))))}function vo(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  padding: 2rem 0;\n  background-color: ",";\n  border-radius: 20px;\n"]);return vo=function(){return e},e}function go(){var e=Object(rn.a)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return go=function(){return e},e}function yo(){var e=Object(rn.a)(["\n    min-width: 18.125rem;\n    top: -22rem;\n  "]);return yo=function(){return e},e}function ho(){var e=Object(rn.a)(["\n    min-width: 18.125rem;\n    right: -46px;\n  "]);return ho=function(){return e},e}function Eo(){var e=Object(rn.a)(["\n  min-width: 20.125rem;\n  background-color: ",";\n  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),\n    0px 24px 32px rgba(0, 0, 0, 0.01);\n  border-radius: 12px;\n  display: flex;\n  flex-direction: column;\n  font-size: 1rem;\n  position: absolute;\n  top: 4rem;\n  right: 0rem;\n  z-index: 100;\n\n  ",";\n\n  ",";\n"]);return Eo=function(){return e},e}function xo(){var e=Object(rn.a)(["\n  margin-left: 0.5rem;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  border: none;\n  text-align: left;\n"]);return xo=function(){return e},e}function Oo(){var e=Object(rn.a)(["\n  position: absolute;\n  bottom: -6px;\n  right: 0px;\n  font-size: 14px;\n"]);return Oo=function(){return e},e}function wo(){var e=Object(rn.a)(["\n  position: relative;\n  width: 100%;\n  height: 100%;\n  border: none;\n  background-color: transparent;\n  margin: 0;\n  padding: 0;\n  height: 35px;\n  background-color: ",";\n\n  padding: 0.15rem 0.5rem;\n  border-radius: 0.5rem;\n\n  :hover,\n  :focus {\n    cursor: pointer;\n    outline: none;\n    background-color: ",";\n  }\n\n  svg {\n    margin-top: 2px;\n  }\n"]);return wo=function(){return e},e}function jo(){var e=Object(rn.a)(["\n  height: 20px;\n  width: 20px;\n  :hover {\n    cursor: pointer;\n  }\n\n  > * {\n    stroke: ",";\n  }\n"]);return jo=function(){return e},e}function ko(){var e=Object(rn.a)(["\n  height: 20px;\n  width: 20px;\n\n  > * {\n    stroke: ",";\n  }\n"]);return ko=function(){return e},e}var Co=Object(cn.default)(Sa.a)(ko(),(function(e){return e.theme.text1})),To=Object(cn.default)(Ra.a)(jo(),(function(e){return e.theme.text1})),Bo=cn.default.button(wo(),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg4})),Io=cn.default.div(Oo()),So=cn.default.div(xo()),Ro=cn.default.span(Eo(),(function(e){return e.theme.bg2}),(function(e){return e.theme.mediaWidth.upToExtraSmall(ho())}),(function(e){return e.theme.mediaWidth.upToMedium(yo())})),No=cn.default.div(go(),(function(e){return e.theme.bg3})),Lo=cn.default.div(vo(),(function(e){return e.theme.bg2}));function Uo(){var e=Object(r.useRef)(),n=Rn(jn.SETTINGS),t=Un(),a=Object(r.useContext)(cn.ThemeContext),o=aa(),c=Object(ln.a)(o,2),u=c[0],l=c[1],d=function(){var e=Object(s.c)();return[Object(s.d)((function(e){return e.user.userDeadline})),Object(r.useCallback)((function(n){e(Qt({userDeadline:n}))}),[e])]}(),p=Object(ln.a)(d,2),m=p[0],f=p[1],b=ta(),A=Object(ln.a)(b,2),v=A[0],g=A[1],y=Object(r.useState)(!1),h=Object(ln.a)(y,2),E=h[0],x=h[1];return Na(e,n?t:void 0),i.a.createElement(So,{ref:e},i.a.createElement(Ii,{isOpen:E,onDismiss:function(){return x(!1)},maxHeight:100},i.a.createElement(Lo,null,i.a.createElement(fi,{gap:"lg"},i.a.createElement(Ur,{style:{padding:"0 2rem"}},i.a.createElement("div",null),i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Are you sure?"),i.a.createElement(To,{onClick:function(){return x(!1)}})),i.a.createElement(No,null),i.a.createElement(fi,{gap:"lg",style:{padding:"0 2rem"}},i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Expert mode turns off the confirm transaction prompt and allows high slippage trades that often result in bad rates and lost funds."),i.a.createElement(sn.b,{fontWeight:600,fontSize:20},"ONLY USE THIS MODE IF YOU KNOW WHAT YOU ARE DOING."),i.a.createElement(ci,{error:!0,padding:"12px",onClick:function(){"confirm"===window.prompt('Please type the word "confirm" to enable expert mode.')&&(g(),x(!1))}},i.a.createElement(sn.b,{fontSize:20,fontWeight:500,id:"confirm-expert-mode"},"Turn On Expert Mode")))))),i.a.createElement(Bo,{onClick:t,id:"open-settings-dialog-button"},i.a.createElement(Co,null),v?i.a.createElement(Io,null,i.a.createElement("span",{role:"img","aria-label":"wizard-icon"},"\ud83e\uddd9")):null),n&&i.a.createElement(Ro,null,i.a.createElement(fi,{gap:"md",style:{padding:"1rem"}},i.a.createElement(sn.b,{fontWeight:600,fontSize:14},"Transaction Settings"),i.a.createElement(Ao,{rawSlippage:u,setRawSlippage:l,deadline:m,setDeadline:f}),i.a.createElement(sn.b,{fontWeight:600,fontSize:14},"Interface Settings"),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontWeight:400,fontSize:14,color:a.text2},"Toggle Expert Mode"),i.a.createElement(Gi,{text:"Bypasses confirmation modals and allows high slippage trades. Use at your own risk."})),i.a.createElement(ao,{id:"toggle-expert-mode-button",isActive:v,toggle:v?function(){g(),x(!1)}:function(){t(),x(!0)}})))))}var Po=t(632),Do=t(633);function Fo(){return(Fo=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function Wo(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var Mo=i.a.createElement("path",{d:"M12 13C12.5523 13 13 12.5523 13 12C13 11.4477 12.5523 11 12 11C11.4477 11 11 11.4477 11 12C11 12.5523 11.4477 13 12 13Z",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Vo=i.a.createElement("path",{d:"M19 13C19.5523 13 20 12.5523 20 12C20 11.4477 19.5523 11 19 11C18.4477 11 18 11.4477 18 12C18 12.5523 18.4477 13 19 13Z",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),zo=i.a.createElement("path",{d:"M5 13C5.55228 13 6 12.5523 6 12C6 11.4477 5.55228 11 5 11C4.44772 11 4 11.4477 4 12C4 12.5523 4.44772 13 5 13Z",stroke:"black",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"}),Yo=function(e){var n=e.svgRef,t=e.title,a=Wo(e,["svgRef","title"]);return i.a.createElement("svg",Fo({width:24,height:24,viewBox:"0 0 24 24",fill:"none",ref:n},a),t?i.a.createElement("title",null,t):null,Mo,Vo,zo)},Ho=i.a.forwardRef((function(e,n){return i.a.createElement(Yo,Fo({svgRef:n},e))}));t.p;function qo(){var e=Object(rn.a)(["\n  flex: 1;\n  padding: 0.5rem 0.5rem;\n  color: ",";\n  :hover {\n    color: ",";\n    cursor: pointer;\n    text-decoration: none;\n  }\n  > svg {\n    margin-right: 8px;\n  }\n"]);return qo=function(){return e},e}function Qo(){var e=Object(rn.a)(["\n    top: -17.25rem;\n  "]);return Qo=function(){return e},e}function Ko(){var e=Object(rn.a)(["\n  min-width: 8.125rem;\n  background-color: ",";\n  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),\n    0px 24px 32px rgba(0, 0, 0, 0.01);\n  border-radius: 12px;\n  padding: 0.5rem;\n  display: flex;\n  flex-direction: column;\n  font-size: 1rem;\n  position: absolute;\n  top: 4rem;\n  right: 0rem;\n  z-index: 100;\n\n  ",";\n"]);return Ko=function(){return e},e}function Jo(){var e=Object(rn.a)(["\n  margin-left: 0.5rem;\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  border: none;\n  text-align: left;\n"]);return Jo=function(){return e},e}function Xo(){var e=Object(rn.a)(["\n  width: 100%;\n  height: 100%;\n  border: none;\n  background-color: transparent;\n  margin: 0;\n  padding: 0;\n  height: 35px;\n  background-color: ",";\n\n  padding: 0.15rem 0.5rem;\n  border-radius: 0.5rem;\n\n  :hover,\n  :focus {\n    cursor: pointer;\n    outline: none;\n    background-color: ",";\n  }\n\n  svg {\n    margin-top: 2px;\n  }\n"]);return Xo=function(){return e},e}function Go(){var e=Object(rn.a)(["\n  path {\n    stroke: ",";\n  }\n"]);return Go=function(){return e},e}var Zo=Object(cn.default)(Ho)(Go(),(function(e){return e.theme.text1})),_o=cn.default.button(Xo(),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg4})),$o=cn.default.div(Jo()),ec=cn.default.span(Ko(),(function(e){return e.theme.bg3}),(function(e){return e.theme.mediaWidth.upToMedium(Qo())})),nc=Object(cn.default)(er)(qo(),(function(e){return e.theme.text2}),(function(e){return e.theme.text1}));function tc(){var e=Object(r.useRef)(),n=Rn(jn.MENU),t=Nn(jn.MENU);return Na(e,n?t:void 0),i.a.createElement($o,{ref:e},i.a.createElement(_o,{onClick:t},i.a.createElement(Zo,null)),n&&i.a.createElement(ec,null,i.a.createElement(nc,{id:"link",href:"https://t.me/worldswap0"},i.a.createElement(Po.a,{size:14}),"Telegram"),i.a.createElement(nc,{id:"link",href:"https://x.com/WorldSwap_"},i.a.createElement(Do.a,{size:14}),"Twitter")))}var ac=t(638),rc=Object(kn.b)("transactions/addTransaction"),ic=Object(kn.b)("transactions/clearAllTransactions"),oc=Object(kn.b)("transactions/finalizeTransaction"),cc=Object(kn.b)("transactions/checkedTransaction");function uc(){var e=fn(),n=e.chainId,t=e.account,a=Object(s.c)();return Object(r.useCallback)((function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.summary,o=r.approval,c=r.claim;if(t&&n){var u=e.hash;if(!u)throw Error("No transaction hash found.");a(rc({hash:u,from:t,chainId:n,approval:o,summary:i,claim:c}))}}),[a,n,t])}function lc(){var e,n=fn().chainId,t=Object(s.d)((function(e){return e.transactions}));return n&&null!==(e=t[n])&&void 0!==e?e:{}}function sc(e){return(new Date).getTime()-e.addedTime<864e5}var dc=t(310),pc=t.n(dc);function mc(){var e=Object(rn.a)(["\n  height: 1rem;\n  width: 1rem;\n  border-radius: 1.125rem;\n  background-color: ",";\n"]);return mc=function(){return e},e}var fc=cn.default.div(mc(),(function(e){return e.theme.bg4}));function bc(){var e=Object(r.useRef)(),n=fn().account;return Object(r.useEffect)((function(){n&&e.current&&(e.current.innerHTML="",e.current.appendChild(pc()(16,parseInt(n.slice(2,10),16))))}),[n]),i.a.createElement(fc,{ref:e})}function Ac(){var e=Object(rn.a)(["\n  animation: 2s "," linear infinite;\n  height: ",";\n  width: ",";\n  path {\n    stroke: ",";\n  }\n"]);return Ac=function(){return e},e}function vc(){var e=Object(rn.a)(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return vc=function(){return e},e}var gc=Object(cn.keyframes)(vc()),yc=cn.default.svg(Ac(),gc,(function(e){return e.size}),(function(e){return e.size}),(function(e){var n=e.stroke,t=e.theme;return null!==n&&void 0!==n?n:t.primary1}));function hc(e){var n=e.size,t=void 0===n?"16px":n,a=e.stroke,r=Object(ma.a)(e,["size","stroke"]);return i.a.createElement(yc,Object.assign({viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",size:t,stroke:a},r),i.a.createElement("path",{d:"M12 2C6.47715 2 2 6.47715 2 12C2 17.5228 6.47715 22 12 22C17.5228 22 22 17.5228 22 12C22 9.27455 20.9097 6.80375 19.1414 5",strokeWidth:"2.5",strokeLinecap:"round",strokeLinejoin:"round"}))}var Ec=t(311),xc=t(216),Oc=t.n(xc);function wc(){return(wc=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function jc(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var kc=i.a.createElement("line",{x1:18,y1:6,x2:6,y2:18}),Cc=i.a.createElement("line",{x1:6,y1:6,x2:18,y2:18}),Tc=function(e){var n=e.svgRef,t=e.title,a=jc(e,["svgRef","title"]);return i.a.createElement("svg",wc({width:20,height:20,viewBox:"0 0 20 20",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",className:"feather feather-x",ref:n},a),t?i.a.createElement("title",null,t):null,kc,Cc)},Bc=i.a.forwardRef((function(e,n){return i.a.createElement(Tc,wc({svgRef:n},e))}));t.p;function Ic(e){var n=Object(r.useRef)();return Object(r.useEffect)((function(){n.current=e}),[e]),n.current}var Sc=t(312),Rc=t.n(Sc);var Nc=t(634),Lc=t(635);function Uc(){var e=Object(rn.a)(["\n  margin-left: 0.25rem;\n  font-size: 0.825rem;\n  ",";\n  align-items: center;\n"]);return Uc=function(){return e},e}function Pc(){var e=Object(rn.a)(["\n  color: ",";\n  flex-shrink: 0;\n  display: flex;\n  text-decoration: none;\n  font-size: 0.825rem;\n  :hover,\n  :active,\n  :focus {\n    text-decoration: none;\n    color: ",";\n  }\n"]);return Pc=function(){return e},e}var Dc=Object(cn.default)(Xa)(Pc(),(function(e){return e.theme.text3}),(function(e){return e.theme.text2})),Fc=cn.default.span(Uc(),(function(e){return e.theme.flexRowNoWrap}));function Wc(e){var n=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:500,n=Object(r.useState)(!1),t=Object(ln.a)(n,2),a=t[0],i=t[1],o=Object(r.useCallback)((function(e){var n=Rc()(e);i(n)}),[]);return Object(r.useEffect)((function(){if(a){var n=setTimeout((function(){i(!1)}),e);return function(){clearTimeout(n)}}}),[a,i,e]),[a,o]}(),t=Object(ln.a)(n,2),a=t[0],o=t[1];return i.a.createElement(Dc,{onClick:function(){return o(e.toCopy)}},a?i.a.createElement(Fc,null,i.a.createElement(Nc.a,{size:"16"}),i.a.createElement(Fc,null,"Copied")):i.a.createElement(Fc,null,i.a.createElement(Lc.a,{size:"16"})),a?"":e.children)}var Mc=t(636);function Vc(){var e=Object(rn.a)(["\n  color: ",";\n"]);return Vc=function(){return e},e}function zc(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: space-between;\n  align-items: center;\n  text-decoration: none !important;\n  border-radius: 0.5rem;\n  padding: 0.25rem 0rem;\n  font-weight: 500;\n  font-size: 0.825rem;\n  color: ",";\n"]);return zc=function(){return e},e}function Yc(){var e=Object(rn.a)(["\n  margin-right: 0.5rem;\n  display: flex;\n  align-items: center;\n  :hover {\n    text-decoration: underline;\n  }\n"]);return Yc=function(){return e},e}function Hc(){var e=Object(rn.a)([""]);return Hc=function(){return e},e}var qc=cn.default.div(Hc()),Qc=cn.default.div(Yc()),Kc=Object(cn.default)(er)(zc(),(function(e){return e.theme.primary1})),Jc=cn.default.div(Vc(),(function(e){var n=e.pending,t=e.success,a=e.theme;return n?a.primary1:t?a.green1:a.red1}));function Xc(e){var n,t,a=e.hash,r=fn().chainId,o=lc(),c=null===o||void 0===o?void 0:o[a],u=null===c||void 0===c?void 0:c.summary,l=!(null===c||void 0===c?void 0:c.receipt),s=!l&&c&&(1===(null===(n=c.receipt)||void 0===n?void 0:n.status)||"undefined"===typeof(null===(t=c.receipt)||void 0===t?void 0:t.status));return r?i.a.createElement(qc,null,i.a.createElement(Kc,{href:st(r,a,"transaction"),pending:l,success:s},i.a.createElement(Fr,null,i.a.createElement(Qc,null,null!==u&&void 0!==u?u:a," \u2197")),i.a.createElement(Jc,{pending:l,success:s},l?i.a.createElement(hc,null):s?i.a.createElement(Nc.a,{size:"16"}):i.a.createElement(Mc.a,{size:"16"})))):null}var Gc=t(637);function Zc(){var e=Object(rn.a)(["\n  width: fit-content;\n  font-weight: 400;\n  margin-left: 8px;\n  font-size: 0.825rem;\n  padding: 4px 6px;\n  :hover {\n    cursor: pointer;\n    text-decoration: underline;\n  }\n"]);return Zc=function(){return e},e}function _c(){var e=Object(rn.a)(["\n  ",";\n"]);return _c=function(){return e},e}function $c(){var e=Object(rn.a)(["\n    align-items: flex-end;\n  "]);return $c=function(){return e},e}function eu(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: center;\n  margin-right: 8px;\n  & > img,\n  span {\n    height: ",";\n    width: ",";\n  }\n  ",";\n"]);return eu=function(){return e},e}function nu(){var e=Object(rn.a)(["\n  width: initial;\n  font-size: 0.825rem;\n  font-weight: 500;\n  color: ",";\n"]);return nu=function(){return e},e}function tu(){var e=Object(rn.a)(["\n  path {\n    stroke: ",";\n  }\n"]);return tu=function(){return e},e}function au(){var e=Object(rn.a)(["\n  position: absolute;\n  right: 1rem;\n  top: 14px;\n  &:hover {\n    cursor: pointer;\n    opacity: 0.6;\n  }\n"]);return au=function(){return e},e}function ru(){var e=Object(rn.a)(["\n  font-size: 0.825rem;\n  color: ",";\n  margin-left: 1rem;\n  font-size: 0.825rem;\n  display: flex;\n  :hover {\n    color: ",";\n  }\n"]);return ru=function(){return e},e}function iu(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: space-between;\n  min-width: 0;\n  width: 100%;\n\n  font-weight: 500;\n  font-size: 1.25rem;\n\n  a:hover {\n    text-decoration: underline;\n  }\n\n  p {\n    min-width: 0;\n    margin: 0;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    white-space: nowrap;\n  }\n"]);return iu=function(){return e},e}function ou(){var e=Object(rn.a)(["\n  ","\n  padding: 1.5rem;\n  flex-grow: 1;\n  overflow: auto;\n  background-color: ",";\n  border-bottom-left-radius: 25px;\n  border-bottom-right-radius: 20px;\n\n  h5 {\n    margin: 0;\n    font-weight: 400;\n    color: ",";\n  }\n"]);return ou=function(){return e},e}function cu(){var e=Object(rn.a)(["\n  h5 {\n    margin: 0 0 1rem 0;\n    font-weight: 400;\n  }\n\n  h4 {\n    margin: 0;\n    font-weight: 500;\n  }\n"]);return cu=function(){return e},e}function uu(){var e=Object(rn.a)(["padding: 0rem 1rem 1.5rem 1rem;"]);return uu=function(){return e},e}function lu(){var e=Object(rn.a)(["\n  background-color: ",";\n  padding: 0rem 1rem;\n  ",";\n"]);return lu=function(){return e},e}function su(){var e=Object(rn.a)(["\n  ",";\n  justify-content: space-between;\n  align-items: center;\n  font-weight: 400;\n  color: ",";\n\n  div {\n    ","\n    align-items: center;\n  }\n"]);return su=function(){return e},e}function du(){var e=Object(rn.a)(["\n  padding: 1rem;\n  border: 1px solid ",";\n  border-radius: 20px;\n  position: relative;\n  display: grid;\n  grid-row-gap: 12px;\n  margin-bottom: 20px;\n"]);return du=function(){return e},e}function pu(){var e=Object(rn.a)(["\n  position: relative;\n\n  h5 {\n    margin: 0;\n    margin-bottom: 0.5rem;\n    font-size: 1rem;\n    font-weight: 400;\n  }\n\n  h5:last-child {\n    margin-bottom: 0px;\n  }\n\n  h4 {\n    margin-top: 0;\n    font-weight: 500;\n  }\n"]);return pu=function(){return e},e}function mu(){var e=Object(rn.a)(["\n    padding: 1rem;\n  "]);return mu=function(){return e},e}function fu(){var e=Object(rn.a)(["\n  ",";\n  padding: 1rem 1rem;\n  font-weight: 500;\n  color: ",";\n  ",";\n"]);return fu=function(){return e},e}var bu=cn.default.div(fu(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return"blue"===e.color?function(e){return e.theme.primary1}:"inherit"}),(function(e){return e.theme.mediaWidth.upToMedium(mu())})),Au=cn.default.div(pu()),vu=cn.default.div(du(),(function(e){return e.theme.bg3})),gu=cn.default.div(su(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.text1}),(function(e){return e.theme.flexRowNoWrap})),yu=cn.default.div(lu(),(function(e){return e.theme.bg1}),(function(e){return e.theme.mediaWidth.upToMedium(uu())})),hu=cn.default.div(cu()),Eu=cn.default.div(ou(),(function(e){return e.theme.flexColumnNoWrap}),(function(e){return e.theme.bg2}),(function(e){return e.theme.text3})),xu=cn.default.div(iu()),Ou=Object(cn.default)(er)(ru(),(function(e){return e.theme.text3}),(function(e){return e.theme.text2})),wu=cn.default.div(au()),ju=Object(cn.default)(Bc)(tu(),(function(e){return e.theme.text4})),ku=cn.default.div(nu(),(function(e){return e.theme.text3})),Cu=cn.default.div(eu(),(function(e){return e.theme.flexColumnNoWrap}),(function(e){var n=e.size;return n?n+"px":"32px"}),(function(e){var n=e.size;return n?n+"px":"32px"}),(function(e){return e.theme.mediaWidth.upToMedium($c())})),Tu=cn.default.div(_c(),(function(e){return e.theme.flexColumnNoWrap})),Bu=Object(cn.default)(ni)(Zc());function Iu(e){return i.a.createElement(Tu,null,e.map((function(e,n){return i.a.createElement(Xc,{key:n,hash:e})})))}function Su(e){var n=e.toggleWalletModal,t=e.pendingTransactions,a=e.confirmedTransactions,o=e.ENSName,c=e.openOptions,u=fn(),l=u.chainId,d=u.account,p=u.connector,m=Object(r.useContext)(cn.ThemeContext),f=Object(s.c)();function b(){return p===fe?i.a.createElement(Cu,{size:16},i.a.createElement(bc,null)):null}var A=Object(r.useCallback)((function(){l&&f(ic({chainId:l}))}),[f,l]);return i.a.createElement(i.a.Fragment,null,i.a.createElement(Au,null,i.a.createElement(wu,{onClick:n},i.a.createElement(ju,null)),i.a.createElement(bu,null,"Account"),i.a.createElement(yu,null,i.a.createElement(hu,null,i.a.createElement(vu,null,i.a.createElement(gu,null,function(){var e=window.ethereum,n=!(!e||!e.isMetaMask),t=Object.keys(ze).filter((function(e){return ze[e].connector===p&&(p!==fe||n===("METAMASK"===e))})).map((function(e){return ze[e].name}))[0];return i.a.createElement(ku,null,"Connected with ",t)}(),i.a.createElement("div",null,p!==fe&&i.a.createElement(Bu,{style:{fontSize:".825rem",fontWeight:400,marginRight:"8px"},onClick:function(){p.close()}},"Disconnect"),i.a.createElement(Bu,{style:{fontSize:".825rem",fontWeight:400},onClick:function(){c()}},"Change"))),i.a.createElement(gu,{id:"web3-account-identifier-row"},i.a.createElement(xu,null,o?i.a.createElement(i.a.Fragment,null,i.a.createElement("div",null,b(),i.a.createElement("p",null," ",o))):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",null,b(),i.a.createElement("p",null," ",d&&dt(d)))))),i.a.createElement(gu,null,o?i.a.createElement(i.a.Fragment,null,i.a.createElement(xu,null,i.a.createElement("div",null,d&&i.a.createElement(Wc,{toCopy:d},i.a.createElement("span",{style:{marginLeft:"4px"}},"Copy Address")),l&&d&&i.a.createElement(Ou,{hasENS:!!o,isENS:!0,href:l&&st(l,o,"address")},i.a.createElement(Gc.a,{size:16}),i.a.createElement("span",{style:{marginLeft:"4px"}},"View on the World chain Explorer"))))):i.a.createElement(i.a.Fragment,null,i.a.createElement(xu,null,i.a.createElement("div",null,d&&i.a.createElement(Wc,{toCopy:d},i.a.createElement("span",{style:{marginLeft:"4px"}},"Copy Address")),l&&d&&i.a.createElement(Ou,{hasENS:!!o,isENS:!1,href:st(l,d,"address")},i.a.createElement(Gc.a,{size:16}),i.a.createElement("span",{style:{marginLeft:"4px"}},"View on the World chain Explorer")))))))))),t.length||a.length?i.a.createElement(Eu,null,i.a.createElement(Dr,{mb:"1rem",style:{justifyContent:"space-between"}},i.a.createElement(yr,null,"Recent Transactions"),i.a.createElement(Xa,{onClick:A},"(clear all)")),Iu(t),Iu(a)):i.a.createElement(Eu,null,i.a.createElement(yr,{color:m.text1},"Your transactions will appear here...")))}function Ru(){var e=Object(rn.a)(["\n    align-items: flex-end;\n  "]);return Ru=function(){return e},e}function Nu(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: center;\n  & > img,\n  span {\n    height: ",";\n    width: ",";\n  }\n  ",";\n"]);return Nu=function(){return e},e}function Lu(){var e=Object(rn.a)(["\n  color: ",";\n  margin-top: 10px;\n  font-size: 12px;\n"]);return Lu=function(){return e},e}function Uu(){var e=Object(rn.a)(["\n  ",";\n  color: ",";\n  font-size: 1rem;\n  font-weight: 500;\n"]);return Uu=function(){return e},e}function Pu(){var e=Object(rn.a)(["\n  color: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n"]);return Pu=function(){return e},e}function Du(){var e=Object(rn.a)(["\n  ","\n  justify-content: center;\n  align-items: center;\n\n  &:first-child {\n    height: 8px;\n    width: 8px;\n    margin-right: 8px;\n    background-color: ",";\n    border-radius: 50%;\n  }\n"]);return Du=function(){return e},e}function Fu(){var e=Object(rn.a)(["\n  margin-top: 0;\n  &:hover {\n    cursor: ",";\n    border: ",";\n  }\n  opacity: ",";\n"]);return Fu=function(){return e},e}function Wu(){var e=Object(rn.a)(["\n  ",";\n  justify-content: center;\n  height: 100%;\n"]);return Wu=function(){return e},e}function Mu(){var e=Object(rn.a)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-content: space-between;\n  margin-top: 2rem;\n  padding: 1rem;\n"]);return Mu=function(){return e},e}function Vu(){var e=Object(rn.a)(["\n  background-color: ",";\n  padding: 1rem;\n  outline: none;\n  border: 1px solid;\n  border-radius: 12px;\n  width: 100% !important;\n  &:focus {\n    box-shadow: 0 0 0 1px ",";\n  }\n  border-color: ",";\n"]);return Vu=function(){return e},e}var zu=cn.default.button(Vu(),(function(e){var n=e.theme;return e.active?n.bg3:n.bg2}),(function(e){return e.theme.primary1}),(function(e){var n=e.theme;return e.active?"transparent":n.bg3})),Yu=Object(cn.default)(zu)(Mu()),Hu=cn.default.div(Wu(),(function(e){return e.theme.flexColumnNoWrap})),qu=Object(cn.default)(Yu)(Fu(),(function(e){return e.clickable?"pointer":""}),(function(e){var n=e.clickable,t=e.theme;return n?"1px solid ".concat(t.primary1):""}),(function(e){return e.disabled?"0.5":"1"})),Qu=cn.default.div(Du(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.green1})),Ku=cn.default.div(Pu(),(function(e){return e.theme.green1})),Ju=cn.default.div(Uu(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return"blue"===e.color?function(e){return e.theme.primary1}:function(e){return e.theme.text1}})),Xu=cn.default.div(Lu(),(function(e){return e.theme.text1})),Gu=cn.default.div(Nu(),(function(e){return e.theme.flexColumnNoWrap}),(function(e){var n=e.size;return n?n+"px":"24px"}),(function(e){var n=e.size;return n?n+"px":"24px"}),(function(e){return e.theme.mediaWidth.upToMedium(Ru())}));function Zu(e){var n=e.link,t=void 0===n?null:n,a=e.clickable,r=void 0===a||a,o=e.size,c=e.onClick,u=void 0===c?null:c,l=e.color,s=e.header,d=e.subheader,p=void 0===d?null:d,m=e.icon,f=e.active,b=void 0!==f&&f,A=e.id,v=i.a.createElement(qu,{id:A,onClick:u,clickable:r&&!b,active:b},i.a.createElement(Hu,null,i.a.createElement(Ju,{color:l},b?i.a.createElement(Ku,null,i.a.createElement(Qu,null,i.a.createElement("div",null))):"",s),p&&i.a.createElement(Xu,null,p)),i.a.createElement(Gu,{size:o},i.a.createElement("img",{src:m,alt:"Icon"})));return t?i.a.createElement(er,{href:t},v):v}function _u(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: center;\n"]);return _u=function(){return e},e}function $u(){var e=Object(rn.a)(["\n  border-radius: 8px;\n  font-size: 12px;\n  color: ",";\n  background-color: ",";\n  margin-left: 1rem;\n  padding: 0.5rem;\n  font-weight: 600;\n  user-select: none;\n\n  &:hover {\n    cursor: pointer;\n    background-color: ",";\n  }\n"]);return $u=function(){return e},e}function el(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: flex-start;\n"]);return el=function(){return e},e}function nl(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: flex-start;\n  border-radius: 12px;\n  margin-bottom: 20px;\n  color: ",";\n  border: 1px solid ",";\n\n  & > * {\n    padding: 1rem;\n  }\n"]);return nl=function(){return e},e}function tl(){var e=Object(rn.a)(["\n  margin-right: 1rem;\n"]);return tl=function(){return e},e}function al(){var e=Object(rn.a)(["\n  ",";\n  align-items: center;\n  justify-content: center;\n  width: 100%;\n  & > * {\n    width: 100%;\n  }\n"]);return al=function(){return e},e}var rl=cn.default.div(al(),(function(e){return e.theme.flexColumnNoWrap})),il=Object(cn.default)(hc)(tl()),ol=cn.default.div(nl(),(function(e){return e.theme.flexRowNoWrap}),(function(e){var n=e.theme;return e.error?n.red1:"inherit"}),(function(e){var n=e.theme;return e.error?n.red1:n.text4})),cl=cn.default.div(el(),(function(e){return e.theme.flexRowNoWrap})),ul=cn.default.div($u(),(function(e){return e.theme.text1}),(function(e){return e.theme.bg4}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.text4)})),ll=cn.default.div(_u(),(function(e){return e.theme.flexRowNoWrap}));function sl(e){var n,a,r=e.connector,o=e.error,c=void 0!==o&&o,u=e.setPendingError,l=e.tryActivation,s=null===(n=window)||void 0===n||null===(a=n.ethereum)||void 0===a?void 0:a.isMetaMask;return i.a.createElement(rl,null,i.a.createElement(ol,{error:c},i.a.createElement(ll,null,c?i.a.createElement(cl,null,i.a.createElement("div",null,"Error connecting."),i.a.createElement(ul,{onClick:function(){u(!1),r&&l(r)}},"Try Again")):i.a.createElement(i.a.Fragment,null,i.a.createElement(il,null),"Initializing..."))),Object.keys(ze).map((function(e){var n=ze[e];if(n.connector===r){if(n.connector===fe){if(s&&"MetaMask"!==n.name)return null;if(!s&&"MetaMask"===n.name)return null}return i.a.createElement(Zu,{id:"connect-".concat(e),key:e,clickable:!1,color:n.color,header:n.name,subheader:n.description,icon:t(188)("./"+n.iconName)})}return null})))}function dl(){var e=Object(rn.a)(["\n  :hover {\n    cursor: pointer;\n  }\n"]);return dl=function(){return e},e}function pl(){var e=Object(rn.a)(["\n    grid-template-columns: 1fr;\n    grid-gap: 10px;\n  "]);return pl=function(){return e},e}function ml(){var e=Object(rn.a)(["\n  display: grid;\n  grid-gap: 10px;\n  ",";\n"]);return ml=function(){return e},e}function fl(){var e=Object(rn.a)(["\n    margin: 1rem;\n    font-size: 12px;\n  "]);return fl=function(){return e},e}function bl(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  justify-content: center;\n  flex-wrap: wrap;\n  margin-top: 2rem;\n  ",";\n"]);return bl=function(){return e},e}function Al(){var e=Object(rn.a)(["\n  position: relative;\n\n  h5 {\n    margin: 0;\n    margin-bottom: 0.5rem;\n    font-size: 1rem;\n    font-weight: 400;\n  }\n\n  h5:last-child {\n    margin-bottom: 0px;\n  }\n\n  h4 {\n    margin-top: 0;\n    font-weight: 500;\n  }\n"]);return Al=function(){return e},e}function vl(){var e=Object(rn.a)(["padding: 1rem"]);return vl=function(){return e},e}function gl(){var e=Object(rn.a)(["\n  background-color: ",";\n  padding: 2rem;\n  border-bottom-left-radius: 20px;\n  border-bottom-right-radius: 20px;\n\n  ",";\n"]);return gl=function(){return e},e}function yl(){var e=Object(rn.a)(["\n    padding: 1rem;\n  "]);return yl=function(){return e},e}function hl(){var e=Object(rn.a)(["\n  ",";\n  padding: 1rem 1rem;\n  font-weight: 500;\n  color: ",";\n  ",";\n"]);return hl=function(){return e},e}function El(){var e=Object(rn.a)(["\n  ","\n  margin: 0;\n  padding: 0;\n  width: 100%;\n"]);return El=function(){return e},e}function xl(){var e=Object(rn.a)(["\n  path {\n    stroke: ",";\n  }\n"]);return xl=function(){return e},e}function Ol(){var e=Object(rn.a)(["\n  position: absolute;\n  right: 1rem;\n  top: 14px;\n  &:hover {\n    cursor: pointer;\n    opacity: 0.6;\n  }\n"]);return Ol=function(){return e},e}var wl=cn.default.div(Ol()),jl=Object(cn.default)(Bc)(xl(),(function(e){return e.theme.text4})),kl=cn.default.div(El(),(function(e){return e.theme.flexColumnNoWrap})),Cl=cn.default.div(hl(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return"blue"===e.color?function(e){return e.theme.primary1}:"inherit"}),(function(e){return e.theme.mediaWidth.upToMedium(yl())})),Tl=cn.default.div(gl(),(function(e){return e.theme.bg2}),(function(e){return e.theme.mediaWidth.upToMedium(vl())})),Bl=cn.default.div(Al()),Il=cn.default.div(bl(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.mediaWidth.upToMedium(fl())})),Sl=cn.default.div(ml(),(function(e){return e.theme.mediaWidth.upToMedium(pl())})),Rl=cn.default.div(dl()),Nl="options",Ll="account",Ul="pending";function Pl(e){var n=e.pendingTransactions,c=e.confirmedTransactions,u=e.ENSName,s=Object(a.d)(),d=s.active,p=s.account,m=s.connector,f=s.activate,b=s.error,A=Object(r.useState)(Ll),v=Object(ln.a)(A,2),g=v[0],y=v[1],E=Object(r.useState)(),O=Object(ln.a)(E,2),w=O[0],j=O[1],k=Object(r.useState)(),C=Object(ln.a)(k,2),T=C[0],B=C[1],I=Rn(jn.WALLET),S=Ln(),R=Ic(p);Object(r.useEffect)((function(){p&&!R&&I&&S()}),[p,R,S,I]),Object(r.useEffect)((function(){I&&(B(!1),y(Ll))}),[I]);var N=Ic(d),L=Ic(m);Object(r.useEffect)((function(){I&&(d&&!N||m&&m!==L&&!b)&&y(Ll)}),[y,d,b,m,I,N,L]);var U=function(){var e=Object(x.a)(h.a.mark((function e(n){var t,r,i;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:i="",Object.keys(ze).map((function(e){return n!==ze[e].connector||(i=ze[e].name)})),l.a.event({category:"Wallet",action:"Change Wallet",label:i}),j(n),y(Ul),n instanceof Ec.a&&(null===(t=n.walletConnectProvider)||void 0===t||null===(r=t.wc)||void 0===r?void 0:r.uri)&&(n.walletConnectProvider=void 0),n&&f(n,void 0,!0).catch((function(e){e instanceof a.a?f(n):B(!0)}));case 7:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}();function P(){var e={chainId:"0x168",chainName:"Shape Mainnet",nativeCurrency:{name:"Shape Mainnet",symbol:"ETH",decimals:18},rpcUrls:["https://mainnet.shape.network\t"],blockExplorerUrls:["https://worldchain-mainnet.explorer.alchemy.com/"]};fe.getProvider().then((function(n){n.request({method:"wallet_addEthereumChain",params:[e]}).catch((function(e){console.log(e)}))}))}return i.a.createElement(Ii,{isOpen:I,onDismiss:S,minHeight:!1,maxHeight:90},i.a.createElement(kl,null,b?i.a.createElement(Bl,null,i.a.createElement(wl,{onClick:S},i.a.createElement(jl,null)),i.a.createElement(Cl,null,b instanceof a.a?"Wrong Network":"Error connecting"),i.a.createElement(Tl,null,b instanceof a.a?i.a.createElement(i.a.Fragment,null,i.a.createElement("h5",null,"Please connect to the appropriate Swan network."),i.a.createElement($r,{padding:"8px",borderRadius:"8px",height:"60px",onClick:P},"Switch to Swan Chain")):"Error connecting. Try refreshing the page.")):p&&g===Ll?i.a.createElement(Su,{toggleWalletModal:S,pendingTransactions:n,confirmedTransactions:c,ENSName:u,openOptions:function(){return y(Nl)}}):i.a.createElement(Bl,null,i.a.createElement(wl,{onClick:S},i.a.createElement(jl,null)),g!==Ll?i.a.createElement(Cl,{color:"blue"},i.a.createElement(Rl,{onClick:function(){B(!1),y(Ll)}},"Back")):i.a.createElement(Cl,null,i.a.createElement(Rl,null,"Connect to a wallet")),i.a.createElement(Tl,null,g===Ul?i.a.createElement(sl,{connector:w,error:T,setPendingError:B,tryActivation:U}):i.a.createElement(Sl,null,function(){var e=window.ethereum&&window.ethereum.isMetaMask;return Object.keys(ze).map((function(n){var a=ze[n];if(o.isMobile)return window.web3||window.ethereum||!a.mobile?null:i.a.createElement(Zu,{onClick:function(){a.connector!==m&&!a.href&&U(a.connector)},id:"connect-".concat(n),key:n,active:a.connector&&a.connector===m,color:a.color,link:a.href,header:a.name,subheader:null,icon:t(188)("./"+a.iconName)});if(a.connector===fe){if(!window.web3&&!window.ethereum)return"MetaMask"===a.name?i.a.createElement(Zu,{id:"connect-".concat(n),key:n,color:"#E8831D",header:"Install Metamask",subheader:null,link:"https://metamask.io/",icon:Oc.a}):null;if("MetaMask"===a.name&&!e)return null;if("Injected"===a.name&&e)return null}return!o.isMobile&&!a.mobileOnly&&i.a.createElement(Zu,{id:"connect-".concat(n),onClick:function(){a.connector===m?y(Ll):!a.href&&U(a.connector)},key:n,active:a.connector===m,color:a.color,link:a.href,header:a.name,subheader:null,icon:t(188)("./"+a.iconName)})}))}()),g!==Ul&&i.a.createElement(Il,null,i.a.createElement("span",null,"New to World Chain? \xa0")," ",i.a.createElement(er,{href:"https://worldcoin.org/world-chain"},"Learn more about setting up a wallet"))))))}function Dl(){var e=Object(rn.a)(["\n  margin-left: 0.25rem;\n  margin-right: 0.5rem;\n  width: 16px;\n  height: 16px;\n"]);return Dl=function(){return e},e}function Fl(){var e=Object(rn.a)(["\n  flex: 1 1 auto;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  margin: 0 0.5rem 0 0.25rem;\n  font-size: 1rem;\n  width: fit-content;\n  font-weight: 500;\n"]);return Fl=function(){return e},e}function Wl(){var e=Object(rn.a)(["\n  background-color: ",";\n  border: 1px solid ",";\n  color: ",";\n  font-weight: 500;\n  :hover,\n  :focus {\n    background-color: ",";\n\n    :focus {\n      border: 1px solid ",";\n    }\n  }\n"]);return Wl=function(){return e},e}function Ml(){var e=Object(rn.a)(["\n      background-color: ",";\n      border: 1px solid ",";\n      color: ",";\n\n      :hover,\n      :focus {\n        border: 1px solid ",";\n        color: ",";\n      }\n    "]);return Ml=function(){return e},e}function Vl(){var e=Object(rn.a)(["\n  background-color: ",";\n  border: none;\n  color: ",";\n  font-weight: 500;\n\n  :hover,\n  :focus {\n    border: 1px solid ",";\n    color: ",";\n  }\n\n  ","\n"]);return Vl=function(){return e},e}function zl(){var e=Object(rn.a)(["\n  background-color: ",";\n  border: 1px solid ",";\n  color: ",";\n  font-weight: 500;\n  :hover,\n  :focus {\n    background-color: ",";\n  }\n"]);return zl=function(){return e},e}function Yl(){var e=Object(rn.a)(["\n  ","\n  width: 100%;\n  align-items: center;\n  padding: 0.5rem;\n  border-radius: 12px;\n  cursor: pointer;\n  user-select: none;\n  :focus {\n    outline: none;\n  }\n"]);return Yl=function(){return e},e}var Hl=Object(cn.default)(ni)(Yl(),(function(e){return e.theme.flexRowNoWrap})),ql=Object(cn.default)(Hl)(zl(),(function(e){return e.theme.red1}),(function(e){return e.theme.red1}),(function(e){return e.theme.white}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.red1)})),Ql=Object(cn.default)(Hl)(Vl(),(function(e){return e.theme.primary4}),(function(e){return e.theme.primaryText1}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary4)}),(function(e){return e.theme.primaryText1}),(function(e){return e.faded&&Object(cn.css)(Ml(),(function(e){return e.theme.primary5}),(function(e){return e.theme.primary5}),(function(e){return e.theme.primaryText1}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primary4)}),(function(e){var n=e.theme;return Object(dn.a)(.05,n.primaryText1)}))})),Kl=Object(cn.default)(Hl)(Wl(),(function(e){var n=e.pending,t=e.theme;return n?t.primary1:t.bg2}),(function(e){var n=e.pending,t=e.theme;return n?t.primary1:t.bg3}),(function(e){var n=e.pending,t=e.theme;return n?t.white:t.text1}),(function(e){var n=e.pending,t=e.theme;return n?Object(dn.a)(.05,t.primary1):Object(dn.b)(.05,t.bg2)}),(function(e){var n=e.pending,t=e.theme;return n?Object(dn.a)(.1,t.primary1):Object(dn.a)(.1,t.bg3)})),Jl=cn.default.p(Fl()),Xl=Object(cn.default)(ac.a)(Dl());function Gl(e,n){return n.addedTime-e.addedTime}function Zl(e){return e.connector===fe?i.a.createElement(bc,null):null}function _l(){var e=Object($e.b)().t,n=Object(a.d)(),t=n.account,o=n.connector,c=n.error,u=lc(),l=Object(r.useMemo)((function(){return Object.values(u).filter(sc).sort(Gl)}),[u]).filter((function(e){return!e.receipt})).map((function(e){return e.hash})),s=!!l.length,d=Ln();return t?i.a.createElement(Kl,{id:"web3-status-connected",onClick:d,pending:s},s?i.a.createElement(Ur,null,i.a.createElement(Jl,null,null===l||void 0===l?void 0:l.length," Pending")," ",i.a.createElement(hc,{stroke:"white"})):i.a.createElement(i.a.Fragment,null,i.a.createElement(Jl,null,dt(t))),!s&&o&&i.a.createElement(Zl,{connector:o})):c?i.a.createElement(ql,{onClick:d},i.a.createElement(Xl,null),i.a.createElement(Jl,null,c instanceof a.a?"Wrong Network":"Error")):i.a.createElement(Ql,{id:"connect-wallet",onClick:d,faded:!t},i.a.createElement(Jl,null,e("Connect to a wallet")))}function $l(){var e=Object(a.d)().active,n=Object(a.d)("NETWORK"),t=lc(),o=Object(r.useMemo)((function(){return Object.values(t).filter(sc).sort(Gl)}),[t]),c=o.filter((function(e){return!e.receipt})).map((function(e){return e.hash})),u=o.filter((function(e){return e.receipt})).map((function(e){return e.hash}));return n.active||e?i.a.createElement(i.a.Fragment,null,i.a.createElement(_l,null),i.a.createElement(Pl,{ENSName:void 0,pendingTransactions:c,confirmedTransactions:u})):null}var es=t(218),ns=t.n(es);function ts(e){var n,t,a=null===(n=nt(Rt(null===e||void 0===e?void 0:e.address,!1),"totalSupply"))||void 0===n||null===(t=n.result)||void 0===t?void 0:t[0];return e&&a?new b.l(e,a.toString()):void 0}function as(){return(as=Object(x.a)(h.a.mark((function e(n){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",fetch("https://api.baguette.exchange/bag/circulating-supply").then((function(e){return e.text()})).then((function(e){return new b.l(n,b.f.BigInt(e))})).catch((function(){return console.log("Failed to get circulating supply from Baguette API"),new b.l(n,b.f.BigInt(0))})));case 1:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var rs=t(140),is=t.n(rs),os=t(143),cs=t.n(os),us=t(142),ls=t.n(us);function ss(){var e=Object(rn.a)(["\n   width: 100%;\n   background-color: rgba(255, 255, 255, 0.2);\n   height: 1px;\n "]);return ss=function(){return e},e}function ds(){var e=Object(rn.a)(["\n   padding: 1rem;\n   z-index: 1;\n   opacity: ",";\n "]);return ds=function(){return e},e}function ps(){var e=Object(rn.a)(["\n   background: url(",");\n   background-size: cover;\n   mix-blend-mode: overlay;\n   border-radius: 12px;\n   width: 100%;\n   height: 100%;\n   opacity: 0.15;\n   position: absolute;\n   top: 0;\n   left: 0;\n   user-select: none;\n "]);return ps=function(){return e},e}function ms(){var e=Object(rn.a)(["\n   background: url(",");\n   width: 1200px;\n   height: 1200px;\n   position: absolute;\n   border-radius: 12px;\n   top: -300px;\n   left: -300px;\n   opacity: 0.4;\n   user-select: none;\n\n   ","\n "]);return ms=function(){return e},e}function fs(){var e=Object(rn.a)(["\n   background: url(",");\n   width: 1000px;\n   height: 600px;\n   position: absolute;\n   border-radius: 12px;\n   opacity: 0.4;\n   top: -100px;\n   left: -100px;\n   transform: rotate(-15deg);\n   user-select: none;\n\n   ","\n "]);return fs=function(){return e},e}function bs(){var e=Object(rn.a)(["\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #f97316 0%, #E84142 100%);\n   border-radius: 12px;\n   width: 100%;\n   position: relative;\n   overflow: hidden;\n "]);return bs=function(){return e},e}function As(){var e=Object(rn.a)(["\n   display: flex;\n   align-items: center;\n   justify-content: center;\n   padding: 4px 12px;\n   border: 1px solid rgba(255, 255, 255, 0.4);\n   border-radius: 20px;\n   width: fit-content;\n   justify-self: flex-end;\n "]);return As=function(){return e},e}cn.default.div(As());var vs=Object(cn.default)(fi)(bs()),gs=cn.default.span(fs(),is.a,(function(e){return e.desaturate&&"filter: saturate(0)"})),ys=(cn.default.span(ms(),cs.a,(function(e){return e.desaturate&&"filter: saturate(0)"})),cn.default.span(ps(),ls.a)),hs=Object(cn.default)(fi)(ds(),(function(e){return e.disabled&&"0.4"})),Es=cn.default.div(ss());function xs(e,n){return n&&e===b.a?b.o[n]:e instanceof b.k?e:void 0}function Os(e,n){var t=e&&n?xs(e.currency,n):void 0;return t&&e?new b.l(t,e.raw):void 0}function ws(e){return e.equals(b.o[e.chainId])?b.a:e}var js,ks=new ht.b(gt.a);function Cs(e){var n=fn().chainId,t=Object(r.useMemo)((function(){return e.map((function(e){var t=Object(ln.a)(e,2),a=t[0],r=t[1];return[xs(a,n),xs(r,n)]}))}),[n,e]),a=et(Object(r.useMemo)((function(){return t.map((function(e){var t=Object(ln.a)(e,2),a=t[0],r=t[1];return a&&r&&!a.equals(r)&&!r.equals(Le[n||b.b.AVALANCHE])?b.g.getAddress(a,r,n||b.b.AVALANCHE):void 0}))}),[t,n]),ks,"getReserves");return Object(r.useMemo)((function(){return a.map((function(e,a){var r=t[a][0],i=t[a][1];if(!r||!i||r.equals(i))return[js.INVALID,null];if(null===i||void 0===i?void 0:i.equals(Le[n||b.b.AVALANCHE]))return[js.EXISTS,new b.g(new b.l(r,b.f.BigInt(0)),new b.l(i,b.f.BigInt(0)),n||b.b.AVALANCHE)];var o=e.result;if(e.loading)return[js.LOADING,null];if(!o)return[js.NOT_EXISTS,null];var c=o.reserve0,u=o.reserve1,l=r.sortsBefore(i)?[r,i]:[i,r],s=Object(ln.a)(l,2),d=s[0],p=s[1];return[js.EXISTS,new b.g(new b.l(d,c.toString()),new b.l(p,u.toString()),n||b.b.AVALANCHE)]}))}),[a,t,n])}function Ts(e,n){return Cs([[e,n]])[0]}function Bs(){var e=Object(rn.a)(["\n   position: absolute;\n   right: 16px;\n   top: 16px;\n\n   :hover {\n     cursor: pointer;\n   }\n "]);return Bs=function(){return e},e}function Is(){var e=Object(rn.a)(["\n   box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #E8C177 0%, #ECD0A3 100%);\n   padding: 0.5rem;\n "]);return Is=function(){return e},e}function Ss(){var e=Object(rn.a)(["\n   width: 100%;\n "]);return Ss=function(){return e},e}!function(e){e[e.LOADING=0]="LOADING",e[e.NOT_EXISTS=1]="NOT_EXISTS",e[e.EXISTS=2]="EXISTS",e[e.INVALID=3]="INVALID"}(js||(js={}));var Rs,Ns=Object(cn.default)(fi)(Ss()),Ls=Object(cn.default)(vs)(Is()),Us=Object(cn.default)(Ra.a)(Bs());function Ps(e){var n,t,a=e.setShowBagBalanceModal,o=fn(),c=o.account,u=o.chainId,l=Object(r.useState)(),s=Object(ln.a)(l,2),d=s[0],p=s[1],m=u?ge[u]:void 0,f=function(){var e,n=fn(),t=n.account,a=n.chainId,r=a?ge[a]:void 0,i=sa(null!==t&&void 0!==t?t:void 0,r);if(r)return new b.l(r,null!==(e=null===i||void 0===i?void 0:i.raw)&&void 0!==e?e:b.f.BigInt(0))}(),A=sa(null!==c&&void 0!==c?c:void 0,m),v=ts(m);Object(r.useEffect)((function(){m&&u===b.b.AVALANCHE?function(e){return as.apply(this,arguments)}(m).then((function(e){p(e)})):p(v)}),[m,u,v]);var g,y=b.o[u||480],h=Ts(y,m),E=Object(ln.a)(h,2)[1],x=b.f.BigInt(1e18);if(E&&m){var O=b.f.divide(b.f.multiply(x,E.reserveOf(y).raw),E.reserveOf(m).raw);g=b.f.toNumber(O)/1e18}return i.a.createElement(Ns,{gap:"lg"},i.a.createElement(Ls,null,i.a.createElement(gs,null),i.a.createElement(ys,null),i.a.createElement(hs,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{color:"white"},"Your BAG Breakdown"),i.a.createElement(Us,{stroke:"white",onClick:function(){return a(!1)}}))),i.a.createElement(Es,null),c&&i.a.createElement(i.a.Fragment,null,i.a.createElement(hs,{gap:"sm"},i.a.createElement(fi,{gap:"md",justify:"center"},i.a.createElement($a,{width:"48px",src:ns.a})," ",i.a.createElement(gr,{fontSize:48,fontWeight:600,color:"white"},null===f||void 0===f?void 0:f.toFixed(2,{groupSeparator:","}))),i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{color:"white"},"Balance:"),i.a.createElement(gr,{color:"white"},null===A||void 0===A?void 0:A.toFixed(2,{groupSeparator:","}))))),i.a.createElement(Es,null)),i.a.createElement(hs,{gap:"sm"},i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{color:"white"},"BAG price:"),i.a.createElement(gr,{color:"white"},null!==(n=null===(t=g)||void 0===t?void 0:t.toFixed(5))&&void 0!==n?n:"-"," ETH")),i.a.createElement(Ur,null,i.a.createElement(gr,{color:"white"},"BAG in circulation:"),i.a.createElement(gr,{color:"white"},null===d||void 0===d?void 0:d.toFixed(0,{groupSeparator:","}))),i.a.createElement(Ur,null,i.a.createElement(gr,{color:"white"},"Total Supply"),i.a.createElement(gr,{color:"white"},null===v||void 0===v?void 0:v.toFixed(0,{groupSeparator:","})))))))}function Ds(){var e=Object(rn.a)(["\n  ","\n  align-items: left;\n  border-radius: 3rem;\n  outline: none;\n  cursor: pointer;\n  text-decoration: none;\n  color: ",";\n  font-size: 1rem;\n  width: fit-content;\n  margin: 0 12px;\n  font-weight: 500;\n\n  &."," {\n    border-radius: 12px;\n    font-weight: 600;\n    color: ",";\n  }\n\n  :hover,\n  :focus {\n    color: ",";\n  }\n"]);return Ds=function(){return e},e}function Fs(){var e=Object(rn.a)(["\n  transition: transform 0.3s ease;\n  :hover {\n    transform: rotate(-5deg);\n  }\n"]);return Fs=function(){return e},e}function Ws(){var e=Object(rn.a)(["\n    justify-self: center;\n  "]);return Ws=function(){return e},e}function Ms(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  pointer-events: auto;\n  justify-self: flex-start;\n  margin-right: 12px;\n  ",";\n  :hover {\n    cursor: pointer;\n  }\n"]);return Ms=function(){return e},e}function Vs(){var e=Object(rn.a)(["\n    display: none;\n  "]);return Vs=function(){return e},e}function zs(){var e=Object(rn.a)(["\n  ",";\n"]);return zs=function(){return e},e}function Ys(){var e=Object(rn.a)(["\n    margin: 0;\n    margin-right: 0.5rem;\n    width: initial;\n    overflow: hidden;\n    text-overflow: ellipsis;\n    flex-shrink: 1;\n  "]);return Ys=function(){return e},e}function Hs(){var e=Object(rn.a)(["\n  border-radius: 12px;\n  padding: 8px 12px;\n  ",";\n"]);return Hs=function(){return e},e}function qs(){var e=Object(rn.a)(["\n    display: none;\n    width: 50px;\n  "]);return qs=function(){return e},e}function Qs(){var e=Object(rn.a)(["\n  ",";\n"]);return Qs=function(){return e},e}function Ks(){var e=Object(rn.a)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  background-color: ",";\n  border-radius: 12px;\n  white-space: nowrap;\n  width: 100%;\n  cursor: pointer;\n\n  :focus {\n    border: 1px solid blue;\n  }\n  /* :hover {\n    background-color: ",";\n  } */\n"]);return Ks=function(){return e},e}function Js(){var e=Object(rn.a)(["\n    padding: 1rem 0 1rem 1rem;\n    justify-content: flex-end;\n"]);return Js=function(){return e},e}function Xs(){var e=Object(rn.a)(["\n  justify-content: center;\n  ",";\n"]);return Xs=function(){return e},e}function Gs(){var e=Object(rn.a)(["\n   width: 100%;\n  "]);return Gs=function(){return e},e}function Zs(){var e=Object(rn.a)(["\n  ",";\n"]);return Zs=function(){return e},e}function _s(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n"]);return _s=function(){return e},e}function $s(){var e=Object(rn.a)(["\n   flex-direction: row-reverse;\n    align-items: center;\n  "]);return $s=function(){return e},e}function ed(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  gap: 8px;\n\n  ",";\n"]);return ed=function(){return e},e}function nd(){var e=Object(rn.a)(["\n    flex-direction: row;\n    justify-content: space-between;\n    justify-self: center;\n    width: 100%;\n    max-width: 960px;\n    padding: 1rem;\n    position: fixed;\n    bottom: 0px;\n    left: 0px;\n    width: 100%;\n    z-index: 99;\n    height: 72px;\n    border-radius: 12px 12px 0 0;\n    background-color: ",";\n  "]);return nd=function(){return e},e}function td(){var e=Object(rn.a)(["\n  display: flex;\n  flex-direction: row;\n  align-items: center;\n  justify-self: flex-end;\n\n  ",";\n"]);return td=function(){return e},e}function ad(){var e=Object(rn.a)(["\n        padding: 0.5rem 1rem;\n  "]);return ad=function(){return e},e}function rd(){var e=Object(rn.a)(["\n    grid-template-columns: 1fr;\n    padding: 0 1rem;\n    width: calc(100%);\n    position: relative;\n  "]);return rd=function(){return e},e}function id(){var e=Object(rn.a)(["\n  display: grid;\n  grid-template-columns: 1fr 120px;\n  align-items: center;\n  justify-content: space-between;\n  align-items: center;\n  flex-direction: row;\n  width: 100%;\n  top: 0;\n  position: relative;\n  border-bottom: 1px solid rgba(0, 0, 0, 0.1);\n  padding: 1rem;\n  z-index: 2;\n  ",";\n\n  ","\n"]);return id=function(){return e},e}var od=cn.default.div(id(),(function(e){return e.theme.mediaWidth.upToMedium(rd())}),(function(e){return e.theme.mediaWidth.upToExtraSmall(ad())})),cd=cn.default.div(td(),(function(e){return e.theme.mediaWidth.upToMedium(nd(),(function(e){return e.theme.bg1}))})),ud=cn.default.div(ed(),(function(e){return e.theme.mediaWidth.upToMedium($s())})),ld=cn.default.div(_s()),sd=Object(cn.default)(Fr)(Zs(),(function(e){return e.theme.mediaWidth.upToMedium(Gs())})),dd=Object(cn.default)(Wr)(Xs(),(function(e){return e.theme.mediaWidth.upToMedium(Js())})),pd=cn.default.div(Ks(),(function(e){var n=e.theme;return e.active?n.bg3:n.bg1}),(function(e){var n=e.theme;return e.active?n.bg4:n.bg2})),md=cn.default.span(Qs(),(function(e){return e.theme.mediaWidth.upToSmall(qs())})),fd=Object(cn.default)(Ta)(Hs(),(function(e){return e.theme.mediaWidth.upToSmall(Ys())})),bd=Object(cn.default)(sn.b)(zs(),(function(e){return e.theme.mediaWidth.upToExtraSmall(Vs())})),Ad=cn.default.a(Ms(),(function(e){return e.theme.mediaWidth.upToSmall(Ws())})),vd=cn.default.div(Fs()),gd=Object(cn.default)(d.c).attrs({activeClassName:"ACTIVE"})(Ds(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.text2}),"ACTIVE",(function(e){return e.theme.text1}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.text1)})),yd=(Rs={},Object(f.a)(Rs,b.b.FUJI,"Fuji"),Object(f.a)(Rs,b.b.AVALANCHE,"Avalanche"),Rs);function hd(){var e,n=fn(),t=n.account,a=n.chainId,o=Object($e.b)().t,c=null===(e=ca(t?[t]:[]))||void 0===e?void 0:e[null!==t&&void 0!==t?t:""],u=function(){var e=Object(s.c)(),n=ea(),t=Object(r.useCallback)((function(){e(Yt({userDarkMode:!n}))}),[n,e]);return[n,t]}(),l=(Object(ln.a)(u,1)[0],Object(r.useState)(!1)),d=Object(ln.a)(l,2),p=d[0],m=d[1];return i.a.createElement(od,null,i.a.createElement(Ii,{isOpen:p,onDismiss:function(){return m(!1)}},i.a.createElement(Ps,{setShowBagBalanceModal:m})),i.a.createElement(sd,null,i.a.createElement(Ad,{href:"."},i.a.createElement(vd,null,i.a.createElement("img",{width:"200px",src:mn.a,alt:"logo"}))),i.a.createElement(dd,null,i.a.createElement(gd,{id:"swap-nav-link",to:"/swap"},o("Trade")),i.a.createElement(gd,{id:"pool-nav-link",to:"/pool",isActive:function(e,n){var t=n.pathname;return Boolean(e)||t.startsWith("/add")||t.startsWith("/remove")||t.startsWith("/create")||t.startsWith("/find")}},o("Liquidity")),i.a.createElement(gd,{id:"deploy-nav-link",to:"/CreateTokenModal"},o("Create")),i.a.createElement(gd,{id:"stake-nav-link",to:"/mill"},"Farm"),i.a.createElement(gd,{id:"stake-nav-link",to:"/oven"},"Pool"),i.a.createElement(gd,{id:"stake-nav-link",to:""},"FOMOWAR (Soon)"))),i.a.createElement(cd,null,i.a.createElement(ud,null,i.a.createElement(md,null,a&&yd[a]&&i.a.createElement(fd,{title:yd[a]},"World Chain")),i.a.createElement(pd,{active:!!t,style:{pointerEvents:"auto"}},t&&c?i.a.createElement(bd,{style:{flexShrink:0},pl:"0.75rem",pr:"0.5rem",fontWeight:500},null===c||void 0===c?void 0:c.toSignificant(4)," ETH"):null,i.a.createElement($l,null))),i.a.createElement(ld,null,i.a.createElement(Uo,null),i.a.createElement(tc,null))))}function Ed(){var e=Object(rn.a)(["\n  animation: "," 1s cubic-bezier(0.83, 0, 0.17, 1) infinite;\n  transform: translateZ(0);\n\n  border-top: 1px solid transparent;\n  border-right: 1px solid transparent;\n  border-bottom: 1px solid transparent;\n  border-left: 2px solid ",";\n  background: transparent;\n  width: 14px;\n  height: 14px;\n  border-radius: 50%;\n  position: relative;\n\n  left: -3px;\n  top: -3px;\n"]);return Ed=function(){return e},e}function xd(){var e=Object(rn.a)(["\n  from {\n    transform: rotate(0deg);\n  }\n  to {\n    transform: rotate(360deg);\n  }\n"]);return xd=function(){return e},e}function Od(){var e=Object(rn.a)(["\n  width: 8px;\n  height: 8px;\n  min-height: 8px;\n  min-width: 8px;\n  margin-left: 0.5rem;\n  margin-top: 3px;\n  border-radius: 50%;\n  position: relative;\n  background-color: ",";\n"]);return Od=function(){return e},e}function wd(){var e=Object(rn.a)(["\n    display: none;\n  "]);return wd=function(){return e},e}function jd(){var e=Object(rn.a)(["\n  position: fixed;\n  display: flex;\n  right: 0;\n  bottom: 0;\n  padding: 1rem;\n  color: white;\n  transition: opacity 0.25s ease;\n  color: ",";\n  :hover {\n    opacity: 1;\n  }\n\n  ","\n"]);return jd=function(){return e},e}var kd=cn.default.div(jd(),(function(e){return e.theme.green1}),(function(e){return e.theme.mediaWidth.upToMedium(wd())})),Cd=cn.default.div(Od(),(function(e){return e.theme.green1})),Td=Object(cn.keyframes)(xd()),Bd=cn.default.div(Ed(),Td,(function(e){return e.theme.green1}));function Id(){var e=fn().chainId,n=Sn(),t=Object(r.useState)(!0),a=Object(ln.a)(t,2),o=a[0],c=a[1];return Object(r.useEffect)((function(){var e=setTimeout((function(){return c(!0)}),1e3);return function(){c(!1),clearTimeout(e)}}),[n]),i.a.createElement(er,{href:e&&n?st(e,n.toString(),"block"):""},i.a.createElement(kd,null,i.a.createElement(Or,{style:{opacity:o?"0.2":"0.6"}},n),i.a.createElement(Cd,null,!o&&i.a.createElement(Bd,null))))}var Sd=t(96),Rd={pending:Object(kn.b)("lists/fetchTokenList/pending"),fulfilled:Object(kn.b)("lists/fetchTokenList/fulfilled"),rejected:Object(kn.b)("lists/fetchTokenList/rejected")},Nd=Object(kn.b)("lists/acceptListUpdate"),Ld=Object(kn.b)("lists/addList"),Ud=Object(kn.b)("lists/removeList"),Pd=Object(kn.b)("lists/selectList");Object(kn.b)("lists/rejectVersionUpdate");function Dd(e){return"v".concat(e.major,".").concat(e.minor,".").concat(e.patch)}function Fd(e){var n=e.popKey,t=e.listUrl,a=e.oldList,o=e.newList,c=e.auto,u=Pn(),d=Object(r.useCallback)((function(){return u(n)}),[n,u]),p=Object(s.c)(),m=Object(r.useCallback)((function(){c||(l.a.event({category:"Lists",action:"Update List from Popup",label:t}),p(Nd(t)),d())}),[c,p,t,d]),f=Object(r.useMemo)((function(){return Object(Sd.b)(a.tokens,o.tokens)}),[o.tokens,a.tokens]),b=f.added,A=f.changed,v=f.removed,g=Object(r.useMemo)((function(){return Object.keys(A).reduce((function(e,n){return e+Object.keys(A[n]).length}),0)}),[A]);return i.a.createElement(Dr,null,i.a.createElement(fi,{style:{flex:"1"},gap:"8px"},c?i.a.createElement(yr,{fontWeight:500},'The token list "',a.name,'" has been updated to'," ",i.a.createElement("strong",null,Dd(o.version)),"."):i.a.createElement(i.a.Fragment,null,i.a.createElement("div",null,i.a.createElement(sn.b,null,'An update is available for the token list "',a.name,'" (',Dd(a.version)," to ",Dd(o.version),")."),i.a.createElement("ul",null,b.length>0?i.a.createElement("li",null,b.map((function(e,n){return i.a.createElement(i.a.Fragment,{key:"".concat(e.chainId,"-").concat(e.address)},i.a.createElement("strong",{title:e.address},e.symbol),n===b.length-1?null:", ")}))," ","added"):null,v.length>0?i.a.createElement("li",null,v.map((function(e,n){return i.a.createElement(i.a.Fragment,{key:"".concat(e.chainId,"-").concat(e.address)},i.a.createElement("strong",{title:e.address},e.symbol),n===v.length-1?null:", ")}))," ","removed"):null,g>0?i.a.createElement("li",null,g," tokens updated"):null)),i.a.createElement(Dr,null,i.a.createElement("div",{style:{flexGrow:1,marginRight:12}},i.a.createElement(ni,{onClick:m},"Accept update")),i.a.createElement("div",{style:{flexGrow:1}},i.a.createElement(ni,{onClick:d},"Dismiss"))))))}var Wd=t(639);function Md(){var e=Object(rn.a)(["\n  flex-wrap: nowrap;\n"]);return Md=function(){return e},e}var Vd=Object(cn.default)(Dr)(Md());function zd(e){var n=e.hash,t=e.success,a=e.summary,o=fn().chainId,c=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(Vd,null,i.a.createElement("div",{style:{paddingRight:16}},t?i.a.createElement(Nc.a,{color:c.green1,size:24}):i.a.createElement(Wd.a,{color:c.red1,size:24})),i.a.createElement(fi,{gap:"8px"},i.a.createElement(yr,{fontWeight:500},null!==a&&void 0!==a?a:"Hash: "+n.slice(0,8)+"..."+n.slice(58,65)),o&&i.a.createElement(er,{href:st(o,n,"transaction")},"View on the World chain Explorer")))}function Yd(){var e=Object(rn.a)(["\n  position: absolute;\n  bottom: 0px;\n  left: 0px;\n  width: 100%;\n  height: 2px;\n  background-color: ",";\n"]);return Yd=function(){return e},e}function Hd(){var e=Object(rn.a)(["\n    min-width: 290px;\n    &:not(:last-of-type) {\n      margin-right: 20px;\n    }\n  "]);return Hd=function(){return e},e}function qd(){var e=Object(rn.a)(["\n  display: inline-block;\n  width: 100%;\n  padding: 1em;\n  background-color: ",";\n  position: relative;\n  border-radius: 10px;\n  padding: 20px;\n  padding-right: 35px;\n  overflow: hidden;\n\n  ","\n"]);return qd=function(){return e},e}function Qd(){var e=Object(rn.a)(["\n  position: absolute;\n  right: 10px;\n  top: 10px;\n\n  :hover {\n    cursor: pointer;\n  }\n"]);return Qd=function(){return e},e}var Kd=Object(cn.default)(Ra.a)(Qd()),Jd=cn.default.div(qd(),(function(e){return e.theme.bg1}),(function(e){return e.theme.mediaWidth.upToSmall(Hd())})),Xd=cn.default.div(Yd(),(function(e){return e.theme.bg3})),Gd=Object(Ai.a)(Xd);function Zd(e){var n=e.removeAfterMs,t=e.content,a=e.popKey,o=Pn(),c=Object(r.useCallback)((function(){return o(a)}),[a,o]);Object(r.useEffect)((function(){if(null!==n){var e=setTimeout((function(){c()}),n);return function(){clearTimeout(e)}}}),[n,c]);var u,l=Object(r.useContext)(cn.ThemeContext);if("txn"in t){var s=t.txn,d=s.hash,p=s.success,m=s.summary;u=i.a.createElement(zd,{hash:d,success:p,summary:m})}else if("listUpdate"in t){var f=t.listUpdate,b=f.listUrl,A=f.oldList,v=f.newList,g=f.auto;u=i.a.createElement(Fd,{popKey:a,listUrl:b,oldList:A,newList:v,auto:g})}var y=Object(Ai.b)({from:{width:"100%"},to:{width:"0%"},config:{duration:null!==n&&void 0!==n?n:void 0}});return i.a.createElement(Jd,null,i.a.createElement(Kd,{color:l.text2,onClick:c}),u,null!==n?i.a.createElement(Gd,{style:y}):null)}function _d(){var e=Object(rn.a)(["\n    display: none;\n  "]);return _d=function(){return e},e}function $d(){var e=Object(rn.a)(["\n  position: fixed;\n  top: ",";\n  right: 1rem;\n  max-width: 355px !important;\n  width: 100%;\n  z-index: 3;\n\n  ",";\n"]);return $d=function(){return e},e}function ep(){var e=Object(rn.a)(["\n  height: 99%;\n  overflow-x: auto;\n  overflow-y: hidden;\n  display: flex;\n  flex-direction: row;\n  -webkit-overflow-scrolling: touch;\n  ::-webkit-scrollbar {\n    display: none;\n  }\n"]);return ep=function(){return e},e}function np(){var e=Object(rn.a)(["\n    display: block;\n  "]);return np=function(){return e},e}function tp(){var e=Object(rn.a)(["\n  position: relative;\n  max-width: 100%;\n  height: ",";\n  margin: ",";\n  margin-bottom: ","};\n\n  display: none;\n  ",";\n"]);return tp=function(){return e},e}var ap=cn.default.div(tp(),(function(e){return e.height}),(function(e){return e.height?"0 auto;":0}),(function(e){return e.height?"20px":0}),(function(e){return e.theme.mediaWidth.upToSmall(np())})),rp=cn.default.div(ep()),ip=Object(cn.default)(fi)($d(),(function(e){return e.extraPadding?"108px":"88px"}),(function(e){return e.theme.mediaWidth.upToSmall(_d())}));function op(){var e=function(){var e=Object(s.d)((function(e){return e.application.popupList}));return Object(r.useMemo)((function(){return e.filter((function(e){return e.show}))}),[e])}(),n=Object(s.d)((function(e){return e.user.URLWarningVisible}));return i.a.createElement(i.a.Fragment,null,i.a.createElement(ip,{gap:"20px",extraPadding:n},e.map((function(e){return i.a.createElement(Zd,{key:e.key,content:e.content,popKey:e.key,removeAfterMs:e.removeAfterMs})}))),i.a.createElement(ap,{height:(null===e||void 0===e?void 0:e.length)>0?"fit-content":0},i.a.createElement(rp,null,e.slice(0).reverse().map((function(e){return i.a.createElement(Zd,{key:e.key,content:e.content,popKey:e.key,removeAfterMs:e.removeAfterMs})})))))}function cp(){var e=Object(rn.a)(["\n  color: ",";\n"]);return cp=function(){return e},e}function up(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  height: 20rem;\n"]);return up=function(){return e},e}var lp=cn.default.div(up()),sp=cn.default.h2(cp(),(function(e){return e.theme.secondary1}));function dp(e){var n=e.children,t=Object($e.b)().t,c=Object(a.d)().active,u=Object(a.d)("NETWORK"),l=u.active,s=u.error,d=u.activate,p=function(){var e=Object(a.d)(),n=e.activate,t=e.active,i=Object(r.useState)(!1),c=Object(ln.a)(i,2),u=c[0],l=c[1];return Object(r.useEffect)((function(){fe.isAuthorized().then((function(e){e||o.isMobile&&window.ethereum?n(fe,void 0,!0).catch((function(){l(!0)})):l(!0)}))}),[n]),Object(r.useEffect)((function(){t&&l(!0)}),[t]),u}();Object(r.useEffect)((function(){!p||l||s||c||d(L)}),[p,l,s,d,c]),function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object(a.d)(),t=n.active,i=n.error,o=n.activate;Object(r.useEffect)((function(){var n=window.ethereum;if(n&&n.on&&!t&&!i&&!e){var a=function(){o(fe,void 0,!0).catch((function(e){console.error("Failed to activate after chain changed",e)}))},r=function(e){e.length>0&&o(fe,void 0,!0).catch((function(e){console.error("Failed to activate after accounts changed",e)}))};return n.on("chainChanged",a),n.on("accountsChanged",r),function(){n.removeListener&&(n.removeListener("chainChanged",a),n.removeListener("accountsChanged",r))}}}),[t,i,e,o])}(!p);var m=Object(r.useState)(!1),f=Object(ln.a)(m,2),b=f[0],A=f[1];return Object(r.useEffect)((function(){var e=setTimeout((function(){A(!0)}),600);return function(){clearTimeout(e)}}),[]),p?!c&&s?i.a.createElement(lp,null,i.a.createElement(sp,null,t("unknownError"))):c||l?n:b?i.a.createElement(lp,null,i.a.createElement(hc,null)):null:null}var pp=t(114);function mp(e){var n=e.location.search,t=Object(s.c)();return Object(r.useEffect)((function(){if(n&&!(n.length<2)){var e=Object(pp.parse)(n,{parseArrays:!1,ignoreQueryPrefix:!0}).theme;"string"===typeof e&&("light"===e.toLowerCase()?t(Yt({userDarkMode:!1})):"dark"===e.toLowerCase()&&t(Yt({userDarkMode:!0})))}}),[t,n]),null}var fp=t(644),bp=t(640),Ap=t(641),vp=t(141),gp=t.n(vp);function yp(){var e=Object(rn.a)(["\n  padding: 60px 0;\n"]);return yp=function(){return e},e}function hp(){var e=Object(rn.a)(["\n  background-color: ",";\n  border-bottom-left-radius: 20px;\n  border-bottom-right-radius: 20px;\n"]);return hp=function(){return e},e}function Ep(){var e=Object(rn.a)(["\n  padding: 24px;\n"]);return Ep=function(){return e},e}function xp(){var e=Object(rn.a)(["\n  width: 100%;\n"]);return xp=function(){return e},e}var Op=cn.default.div(xp()),wp=Object(cn.default)(fi)(Ep()),jp=Object(cn.default)(wp)(hp(),(function(e){return e.theme.bg2})),kp=Object(cn.default)(mi)(yp());function Cp(e){var n=e.onDismiss,t=e.pendingText;return i.a.createElement(Op,null,i.a.createElement(wp,null,i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement(Ja,{onClick:n})),i.a.createElement(kp,null,i.a.createElement(ar,{src:gp.a,alt:"loader",size:"90px"})),i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(sn.b,{fontWeight:500,fontSize:20,textAlign:"center"},"Waiting For Confirmation"),i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(sn.b,{fontWeight:600,fontSize:14,color:"",textAlign:"center"},t)),i.a.createElement(sn.b,{fontSize:12,color:"#565A69",textAlign:"center"},"Confirm this transaction in your wallet"))))}function Tp(e){var n=e.onDismiss,t=e.chainId,a=e.hash,o=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(Op,null,i.a.createElement(wp,null,i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement(Ja,{onClick:n})),i.a.createElement(kp,null,i.a.createElement(bp.a,{strokeWidth:.5,size:90,color:o.primary1})),i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Transaction Submitted"),t&&a&&i.a.createElement(er,{href:st(t,a,"transaction")},i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:o.primary1},"View on the World chain Explorer")),i.a.createElement($r,{onClick:n,style:{margin:"20px 0 0 0"}},i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Close")))))}function Bp(e){var n=e.title,t=e.bottomContent,a=e.onDismiss,r=e.topContent;return i.a.createElement(Op,null,i.a.createElement(wp,null,i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:20},n),i.a.createElement(Ja,{onClick:a})),r()),i.a.createElement(jp,{gap:"12px"},t()))}function Ip(e){var n=e.message,t=e.onDismiss,a=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(Op,null,i.a.createElement(wp,null,i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Error"),i.a.createElement(Ja,{onClick:t})),i.a.createElement(fi,{style:{marginTop:20,padding:"2rem 0"},gap:"24px",justify:"center"},i.a.createElement(Ap.a,{color:a.red1,style:{strokeWidth:1.5},size:64}),i.a.createElement(sn.b,{fontWeight:500,fontSize:16,color:a.red1,style:{textAlign:"center",width:"85%"}},n))),i.a.createElement(jp,{gap:"12px"},i.a.createElement($r,{onClick:t},"Dismiss")))}function Sp(e){var n=e.isOpen,t=e.onDismiss,a=e.attemptingTxn,r=e.hash,o=e.pendingText,c=e.content,u=fn().chainId;return u?i.a.createElement(Ii,{isOpen:n,onDismiss:t,maxHeight:90},a?i.a.createElement(Cp,{onDismiss:t,pendingText:o}):r?i.a.createElement(Tp,{chainId:u,hash:r,onDismiss:t}):c()):null}function Rp(e,n){var t=Object(r.useState)(n&&n(e)?e:void 0),a=Object(ln.a)(t,2),i=a[0],o=a[1];return Object(r.useEffect)((function(){o((function(t){return!n||n(e)?e:t}))}),[n,e]),i}function Np(e){return null!==e&&void 0!==e}var Lp=t(217),Up=t.n(Lp);function Pp(e){var n,t;switch(e.split(":")[0].toLowerCase()){case"https":return[e];case"http":return["https"+e.substr(4),e];case"ipfs":var a=null===(n=e.match(/^ipfs:(\/\/)?(.*)$/i))||void 0===n?void 0:n[2];return["https://cloudflare-ipfs.com/ipfs/".concat(a,"/"),"https://ipfs.io/ipfs/".concat(a,"/")];case"ipns":var r=null===(t=e.match(/^ipns:(\/\/)?(.*)$/i))||void 0===t?void 0:t[2];return["https://cloudflare-ipfs.com/ipns/".concat(r,"/"),"https://ipfs.io/ipns/".concat(r,"/")];default:return[]}}function Dp(e){return Object(r.useMemo)((function(){return e?Pp(e):[]}),[e])}var Fp={};function Wp(e){var n=e.srcs,t=e.alt,a=Object(ma.a)(e,["srcs","alt"]),o=Object(r.useState)(0),c=Object(ln.a)(o,2)[1],u=n.find((function(e){return!Fp[e]}));return u?i.a.createElement("img",Object.assign({},a,{alt:t,src:u,onError:function(){u&&(Fp[u]=!0),c((function(e){return e+1}))}})):i.a.createElement(Si.a,a)}function Mp(){var e=Object(rn.a)(["\n  width: ",";\n  height: ",";\n  border-radius: ",";\n  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.075);\n"]);return Mp=function(){return e},e}function Vp(){var e=Object(rn.a)(["\n  width: ",";\n  height: ",";\n  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.075);\n  border-radius: 24px;\n"]);return Vp=function(){return e},e}var zp=function(e){return e===ge[b.b.AVALANCHE].address?"https://raw.githubusercontent.com/baguette-exchange/contracts/master/tokenlist/logos/baguette.png":"https://raw.githubusercontent.com/pangolindex/tokens/main/assets/".concat(e,"/logo.png")},Yp=cn.default.img(Vp(),(function(e){return e.size}),(function(e){return e.size})),Hp=Object(cn.default)(Wp)(Mp(),(function(e){return e.size}),(function(e){return e.size}),(function(e){return e.size}));function qp(e){var n,t=e.currency,a=e.size,o=void 0===a?"24px":a,c=e.style,u=Dp(t instanceof yn?t.logoURI:void 0),l=Object(r.useMemo)((function(){return t===b.a?[]:t instanceof b.k?[].concat(Object(p.a)(u),[zp(t.address)]):[]}),[t,u]);return t===b.a?i.a.createElement(Yp,{src:Up.a,size:o,style:c}):i.a.createElement(Hp,{size:o,srcs:l,alt:"".concat(null!==(n=null===t||void 0===t?void 0:t.symbol)&&void 0!==n?n:"token"," logo"),style:c})}function Qp(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n  border-radius: 10px;\n  display: flex;\n  padding: 6px;\n\n  align-items: center;\n  :hover {\n    cursor: ",";\n    background-color: ",";\n  }\n\n  background-color: ",";\n  opacity: ",";\n"]);return Qp=function(){return e},e}var Kp=cn.default.div(Qp(),(function(e){var n=e.theme;return e.disable?"transparent":n.bg3}),(function(e){return!e.disable&&"pointer"}),(function(e){var n=e.theme;return!e.disable&&n.bg2}),(function(e){var n=e.theme;return e.disable&&n.bg3}),(function(e){return e.disable&&"0.4"}));function Jp(e){var n=e.chainId,t=e.onSelect,a=e.selectedCurrency;return i.a.createElement(fi,{gap:"md"},i.a.createElement(Dr,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:14},"Common bases"),i.a.createElement(Gi,{text:"These tokens are commonly paired with other tokens."})),i.a.createElement(Dr,{gap:"4px"},i.a.createElement(Kp,{onClick:function(){a&&Object(b.p)(a,b.a)||t(b.a)},disable:a===b.a},i.a.createElement(qp,{currency:b.a,style:{marginRight:8}}),i.a.createElement(sn.b,{fontWeight:500,fontSize:16},"ETH")),(n?Fe[n]:[]).map((function(e){var n=a instanceof b.k&&a.address===e.address;return i.a.createElement(Kp,{onClick:function(){return!n&&t(e)},disable:n,key:e.address},i.a.createElement(qp,{currency:e,style:{marginRight:8}}),i.a.createElement(sn.b,{fontWeight:500,fontSize:16},e.symbol))}))))}var Xp=t(313);function Gp(){var e=Object(rn.a)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return Gp=function(){return e},e}function Zp(){var e=Object(rn.a)(["\n  width: 100%;\n  height: 1px;\n  background-color: ",";\n"]);return Zp=function(){return e},e}function _p(){var e=Object(rn.a)(["\n  position: relative;\n  display: flex;\n  padding: 16px;\n  align-items: center;\n  width: 100%;\n  white-space: nowrap;\n  background: none;\n  border: none;\n  outline: none;\n  border-radius: 20px;\n  color: ",";\n  border-style: solid;\n  border: 1px solid ",";\n  -webkit-appearance: none;\n\n  font-size: 18px;\n\n  ::placeholder {\n    color: ",";\n  }\n  transition: border 100ms;\n  :focus {\n    border: 1px solid ",";\n    outline: none;\n  }\n"]);return _p=function(){return e},e}function $p(){var e=Object(rn.a)(["\n  padding: 4px 20px;\n  height: 56px;\n  display: grid;\n  grid-template-columns: auto minmax(auto, 1fr) auto minmax(0, 72px);\n  grid-gap: 16px;\n  cursor: ",";\n  pointer-events: ",";\n  :hover {\n    background-color: ",";\n  }\n  opacity: ",";\n"]);return $p=function(){return e},e}function em(){var e=Object(rn.a)(["\n  padding: 20px;\n  padding-bottom: 12px;\n"]);return em=function(){return e},e}function nm(){var e=Object(rn.a)(["\n  color: ",";\n  font-size: 14px;\n"]);return nm=function(){return e},e}function tm(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  padding: 1rem 1rem;\n  margin: 0.25rem 0.5rem;\n  justify-content: center;\n  flex: 1;\n  user-select: none;\n"]);return tm=function(){return e},e}cn.default.div(tm(),(function(e){return e.theme.flexRowNoWrap}));var am=Object(cn.default)(Fr)(nm(),(function(e){return e.theme.primary1})),rm=Object(cn.default)(fi)(em()),im=Object(cn.default)(Ur)($p(),(function(e){return!e.disabled&&"pointer"}),(function(e){return e.disabled&&"none"}),(function(e){var n=e.theme;return!e.disabled&&n.bg2}),(function(e){var n=e.disabled,t=e.selected;return n||t?.5:1})),om=cn.default.input(_p(),(function(e){return e.theme.text1}),(function(e){return e.theme.bg3}),(function(e){return e.theme.text3}),(function(e){return e.theme.primary1})),cm=cn.default.div(Zp(),(function(e){return e.theme.bg2})),um=cn.default.div(Gp(),(function(e){return e.theme.bg3}));function lm(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: flex-end;\n"]);return lm=function(){return e},e}function sm(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  font-size: 14px;\n  border-radius: 4px;\n  padding: 0.25rem 0.3rem 0.25rem 0.3rem;\n  max-width: 6rem;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  white-space: nowrap;\n  justify-self: flex-end;\n  margin-right: 4px;\n"]);return sm=function(){return e},e}function dm(){var e=Object(rn.a)(["\n  white-space: nowrap;\n  overflow: hidden;\n  max-width: 5rem;\n  text-overflow: ellipsis;\n"]);return dm=function(){return e},e}function pm(e){return e instanceof b.k?e.address:e===b.a?"AVAX":""}var mm=Object(cn.default)(sn.b)(dm()),fm=cn.default.div(sm(),(function(e){return e.theme.bg3}),(function(e){return e.theme.text2}));function bm(e){var n=e.balance;return i.a.createElement(mm,{title:n.toExact()},n.toSignificant(4))}var Am=cn.default.div(lm());function vm(e){var n=e.currency;if(!(n instanceof yn))return i.a.createElement("span",null);var t=n.tags;if(!t||0===t.length)return i.a.createElement("span",null);var a=t[0];return i.a.createElement(Am,null,i.a.createElement(qi,{text:a.description},i.a.createElement(fm,{key:a.id},a.name)),t.length>1?i.a.createElement(qi,{text:t.slice(1).map((function(e){var n=e.name,t=e.description;return"".concat(n,": ").concat(t)})).join("; \n")},i.a.createElement(fm,null,"...")):null)}function gm(e){var n=e.currency,t=e.onSelect,a=e.isSelected,o=e.otherSelected,c=e.style,u=fn(),l=u.account,d=u.chainId,p=pm(n),m=function(e,n){var t;return n===b.a||Boolean(n instanceof b.k&&(null===(t=e[n.chainId])||void 0===t?void 0:t[n.address]))}(wn(),n),f=function(e){return!!ra().find((function(n){return Object(b.p)(e,n)}))}(n),A=pa(null!==l&&void 0!==l?l:void 0,n),v=function(){var e=Object(s.c)();return Object(r.useCallback)((function(n,t){e(Jt({chainId:n,address:t}))}),[e])}(),g=function(){var e=Object(s.c)();return Object(r.useCallback)((function(n){e(Kt({serializedToken:_t(n)}))}),[e])}();return i.a.createElement(im,{style:c,className:"token-item-".concat(p),onClick:function(){return a?null:t()},disabled:a,selected:o},i.a.createElement(qp,{currency:n,size:"24px"}),i.a.createElement(bi,null,i.a.createElement(sn.b,{title:n.name,fontWeight:500},n.symbol),i.a.createElement(am,null,!m&&f?i.a.createElement(br,{fontWeight:500},"Added by user",i.a.createElement(Xa,{onClick:function(e){e.stopPropagation(),d&&n instanceof b.k&&v(d,n.address)}},"(Remove)")):null,m||f?null:i.a.createElement(br,{fontWeight:500},"Found by address",i.a.createElement(Xa,{onClick:function(e){e.stopPropagation(),n instanceof b.k&&g(n)}},"(Add)")))),i.a.createElement(vm,{currency:n}),i.a.createElement(Fr,{style:{justifySelf:"flex-end"}},A?i.a.createElement(bm,{balance:A}):l?i.a.createElement(hc,null):null))}function ym(e){var n=e.height,t=e.currencies,a=e.selectedCurrency,o=e.onCurrencySelect,c=e.otherCurrency,u=e.fixedListRef,l=e.showETH,s=Object(r.useMemo)((function(){return l?[b.c.CAVAX].concat(Object(p.a)(t)):t}),[t,l]),d=Object(r.useCallback)((function(e){var n=e.data,t=e.index,r=e.style,u=n[t],l=Boolean(a&&Object(b.p)(a,u)),s=Boolean(c&&Object(b.p)(c,u));return i.a.createElement(gm,{style:r,currency:u,isSelected:l,onSelect:function(){return o(u)},otherSelected:s})}),[o,c,a]),m=Object(r.useCallback)((function(e,n){return pm(n[e])}),[]);return i.a.createElement(Xp.a,{height:n,ref:u,width:"100%",itemData:s,itemCount:s.length,itemSize:56,itemKey:m},d)}function hm(){var e=Object(rn.a)(["\n  padding: 8px;\n  background-color: ",";\n  color: ",";\n  border-radius: 8px;\n  user-select: none;\n  & > * {\n    user-select: none;\n  }\n  :hover {\n    cursor: pointer;\n  }\n"]);return hm=function(){return e},e}var Em=Object(cn.default)(Fr)(hm(),(function(e){return e.theme.bg2}),(function(e){return e.theme.text1}));function xm(e){var n=e.toggleSortOrder,t=e.ascending;return i.a.createElement(Em,{onClick:n},i.a.createElement(sn.b,{fontSize:14,fontWeight:500},t?"\u2191":"\u2193"))}function Om(e){var n=function(){var e=fn().account,n=Dt(),t=la(null!==e&&void 0!==e?e:void 0,Object(r.useMemo)((function(){return Object.values(null!==n&&void 0!==n?n:{})}),[n]));return null!==t&&void 0!==t?t:{}}(),t=Object(r.useMemo)((function(){return function(e){return function(n,t){var a=function(e,n){return e&&n?e.greaterThan(n)?-1:e.equalTo(n)?0:1:e&&e.greaterThan("0")?-1:n&&n.greaterThan("0")?1:0}(e[n.address],e[t.address]);return 0!==a?a:n.symbol&&t.symbol?n.symbol.toLowerCase()<t.symbol.toLowerCase()?-1:1:n.symbol||t.symbol?-1:0}}(null!==n&&void 0!==n?n:{})}),[n]);return Object(r.useMemo)((function(){return e?function(e,n){return-1*t(e,n)}:t}),[e,t])}var wm=t(314);function jm(e){var n=e.selectedCurrency,t=e.onCurrencySelect,a=e.otherSelectedCurrency,o=e.showCommonBases,c=e.onDismiss,u=e.isOpen,s=(e.onChangeList,Object($e.b)().t),d=fn().chainId,m=Object(r.useRef)(),f=Object(r.useState)(""),A=Object(ln.a)(f,2),v=A[0],g=A[1],y=Object(r.useState)(!1),h=Object(ln.a)(y,2),E=h[0],x=h[1],O=Dt(),w=ut(v),j=Mt(v);Object(r.useEffect)((function(){w&&l.a.event({category:"Currency Select",action:"Search by address",label:w})}),[w]);var k=Object(r.useMemo)((function(){var e=v.toLowerCase().trim();return""===e||"e"===e||"et"===e||"eth"===e}),[v]),C=Om(E),T=Object(r.useMemo)((function(){return w?j?[j]:[]:function(e,n){if(0===n.length)return e;var t=ut(n);if(t)return e.filter((function(e){return e.address===t}));var a=n.toLowerCase().split(/\s+/).filter((function(e){return e.length>0}));if(0===a.length)return e;var r=function(e){var n=e.toLowerCase().split(/\s+/).filter((function(e){return e.length>0}));return a.every((function(e){return 0===e.length||n.some((function(n){return n.startsWith(e)||n.endsWith(e)}))}))};return e.filter((function(e){var n=e.symbol,t=e.name;return n&&r(n)||t&&r(t)}))}(Object.values(O),v)}),[w,j,O,v]),B=Object(r.useMemo)((function(){if(j)return[j];var e=T.sort(C),n=v.toLowerCase().split(/\s+/).filter((function(e){return e.length>0}));return n.length>1?e:[].concat(Object(p.a)(j?[j]:[]),Object(p.a)(e.filter((function(e){var t;return(null===(t=e.symbol)||void 0===t?void 0:t.toLowerCase())===n[0]}))),Object(p.a)(e.filter((function(e){var t;return(null===(t=e.symbol)||void 0===t?void 0:t.toLowerCase())!==n[0]}))))}),[T,v,j,C]),I=Object(r.useCallback)((function(e){t(e),c()}),[c,t]);Object(r.useEffect)((function(){u&&g("")}),[u]);var S=Object(r.useRef)(),R=Object(r.useCallback)((function(e){var n,t=e.target.value,a=ut(t);g(a||t),null===(n=m.current)||void 0===n||n.scrollTo(0)}),[]),N=Object(r.useCallback)((function(e){if("Enter"===e.key)if("eth"===v.toLowerCase().trim())I(b.a);else if(B.length>0){var n;(null===(n=B[0].symbol)||void 0===n?void 0:n.toLowerCase())!==v.trim().toLowerCase()&&1!==B.length||I(B[0])}}),[B,I,v]);return i.a.createElement(bi,{style:{width:"100%",flex:"1 1"}},i.a.createElement(rm,{gap:"14px"},i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:16},"Select a token",i.a.createElement(Gi,{text:"Find a token by searching for its name or symbol or by pasting its address below."})),i.a.createElement(Ja,{onClick:c})),i.a.createElement(om,{type:"text",id:"token-search-input",placeholder:s("tokenSearchPlaceholder"),value:v,ref:S,onChange:R,onKeyDown:N}),o&&i.a.createElement(Jp,{chainId:d,onSelect:I,selectedCurrency:n}),i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontSize:14,fontWeight:500},"Token Name"),i.a.createElement(xm,{ascending:E,toggleSortOrder:function(){return x((function(e){return!e}))}}))),i.a.createElement(cm,null),i.a.createElement("div",{style:{flex:"1"}},i.a.createElement(wm.a,{disableWidth:!0},(function(e){var t=e.height;return i.a.createElement(ym,{height:t,showETH:k,currencies:B,onCurrencySelect:I,otherCurrency:a,selectedCurrency:n,fixedListRef:m})}))))}function km(){return(km=Object.assign||function(e){for(var n=1;n<arguments.length;n++){var t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e}).apply(this,arguments)}function Cm(e,n){if(null==e)return{};var t,a,r=function(e,n){if(null==e)return{};var t,a,r={},i=Object.keys(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)t=i[a],n.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var Tm=i.a.createElement("path",{d:"M0.97168 1L6.20532 6L11.439 1",stroke:"#AEAEAE"}),Bm=function(e){var n=e.svgRef,t=e.title,a=Cm(e,["svgRef","title"]);return i.a.createElement("svg",km({width:12,height:7,viewBox:"0 0 12 7",fill:"none",ref:n},a),t?i.a.createElement("title",null,t):null,Tm)},Im=i.a.forwardRef((function(e,n){return i.a.createElement(Bm,km({svgRef:n},e))})),Sm=(t.p,t(315)),Rm=t(316),Nm=t.n(Rm),Lm=t(226),Um=t.n(Lm),Pm=t(150),Dm=t(124);var Fm=new TextDecoder;function Wm(e){var n=function(e){if((e=e.startsWith("0x")?e.substr(2):e).length%2!==0)throw new Error("hex must have length that is multiple of 2");for(var n=new Uint8Array(e.length/2),t=0;t<n.length;t++)n[t]=parseInt(e.substr(2*t,2),16);return n}(e),t=Object(Pm.getCodec)(n);switch(t){case"ipfs-ns":var a=Object(Pm.rmPrefix)(n),r=new Um.a(a);return"ipfs://".concat(Object(Dm.toB58String)(r.multihash));case"ipns-ns":var i=Object(Pm.rmPrefix)(n),o=new Um.a(i),c=Object(Dm.decode)(o.multihash);return"identity"===c.name?"ipns://".concat(Fm.decode(c.digest).trim()):"ipns://".concat(Object(Dm.toB58String)(o.multihash));default:throw new Error("Unrecognized codec: ".concat(t))}}var Mm=/^(([a-zA-Z0-9]+\.)+)eth(\/.*)?$/;function Vm(e){var n=e.match(Mm);if(n)return{ensName:"".concat(n[1].toLowerCase(),"eth"),ensPath:n[3]}}var zm=new Nm.a({allErrors:!0}).compile(Sm);function Ym(e,n){return Hm.apply(this,arguments)}function Hm(){return(Hm=Object(x.a)(h.a.mark((function e(n,t){var a,r,i,o,c,u,l,s,d,p,m,f,b;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(a=Vm(n))){e.next=23;break}return e.prev=2,e.next=5,t(a.ensName);case 5:o=e.sent,e.next=12;break;case 8:throw e.prev=8,e.t0=e.catch(2),console.debug("Failed to resolve ENS name: ".concat(a.ensName),e.t0),new Error("Failed to resolve ENS name: ".concat(a.ensName));case 12:e.prev=12,c=Wm(o),e.next=20;break;case 16:throw e.prev=16,e.t1=e.catch(12),console.debug("Failed to translate contenthash to URI",o),new Error("Failed to translate contenthash to URI: ".concat(o));case 20:r=Pp("".concat(c).concat(null!==(i=a.ensPath)&&void 0!==i?i:"")),e.next=24;break;case 23:r=Pp(n);case 24:u=0;case 25:if(!(u<r.length)){e.next=55;break}return l=r[u],s=u===r.length-1,d=void 0,e.prev=29,e.next=32,fetch(l);case 32:d=e.sent,e.next=41;break;case 35:if(e.prev=35,e.t2=e.catch(29),console.debug("Failed to fetch list",n,e.t2),!s){e.next=40;break}throw new Error("Failed to download list ".concat(n));case 40:return e.abrupt("continue",52);case 41:if(d.ok){e.next=45;break}if(!s){e.next=44;break}throw new Error("Failed to download list ".concat(n));case 44:return e.abrupt("continue",52);case 45:return e.next=47,d.json();case 47:if(p=e.sent,zm(p)){e.next=51;break}throw b=null!==(m=null===(f=zm.errors)||void 0===f?void 0:f.reduce((function(e,n){var t,a="".concat(n.dataPath," ").concat(null!==(t=n.message)&&void 0!==t?t:"");return e.length>0?"".concat(e,"; ").concat(a):"".concat(a)}),""))&&void 0!==m?m:"unknown error",new Error("Token list failed validation: ".concat(b));case 51:return e.abrupt("return",p);case 52:u++,e.next=25;break;case 55:throw new Error("Unrecognized list URL protocol.");case 56:case"end":return e.stop()}}),e,null,[[2,8],[12,16],[29,35]])})))).apply(this,arguments)}function qm(){var e=Object(s.c)(),n=Object(r.useCallback)((function(){throw new Error("Could not construct mainnet ENS resolver")}),[]);return Object(r.useCallback)(function(){var t=Object(x.a)(h.a.mark((function t(a){var r;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object(kn.e)(),e(Rd.pending({requestId:r,url:a})),t.abrupt("return",Ym(a,n).then((function(n){return e(Rd.fulfilled({url:a,tokenList:n,requestId:r})),n})).catch((function(n){throw console.debug("Failed to get list at url ".concat(a),n),e(Rd.rejected({url:a,requestId:r,errorMessage:n.message})),n})));case 3:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),[e,n])}function Qm(){var e=Object(rn.a)(["\n  width: ",";\n  height: ",";\n"]);return Qm=function(){return e},e}var Km=Object(cn.default)(Wp)(Qm(),(function(e){return e.size}),(function(e){return e.size}));function Jm(e){var n=e.logoURI,t=e.style,a=e.size,r=void 0===a?"24px":a,o=e.alt,c=Dp(n);return i.a.createElement(Km,{alt:o,size:r,srcs:c,style:t})}function Xm(){var e=Object(rn.a)(["\n  flex: 1;\n  overflow: auto;\n"]);return Xm=function(){return e},e}function Gm(){var e=Object(rn.a)(["\n  max-width: 4rem;\n  margin-left: 1rem;\n  border-radius: 12px;\n  padding: 10px 18px;\n"]);return Gm=function(){return e},e}function Zm(){var e=Object(rn.a)(["\n  max-width: 160px;\n  opacity: 0.6;\n  margin-right: 0.5rem;\n  font-size: 14px;\n  overflow: hidden;\n  text-overflow: ellipsis;\n"]);return Zm=function(){return e},e}function _m(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  position: relative;\n  border: none;\n"]);return _m=function(){return e},e}function $m(){var e=Object(rn.a)(["\n  z-index: 100;\n  visibility: ",";\n  opacity: ",";\n  transition: visibility 150ms linear, opacity 150ms linear;\n  background: ",";\n  border: 1px solid ",";\n  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),\n    0px 24px 32px rgba(0, 0, 0, 0.01);\n  color: ",";\n  border-radius: 0.5rem;\n  padding: 1rem;\n  display: grid;\n  grid-template-rows: 1fr;\n  grid-gap: 8px;\n  font-size: 1rem;\n  text-align: left;\n"]);return $m=function(){return e},e}function ef(){var e=Object(rn.a)(["\n  padding: 0;\n  font-size: 1rem;\n  opacity: ",";\n"]);return ef=function(){return e},e}var nf=Object(cn.default)(Xa)(ef(),(function(e){return e.disabled?"0.4":"1"})),tf=cn.default.div($m(),(function(e){return e.show?"visible":"hidden"}),(function(e){return e.show?1:0}),(function(e){return e.theme.bg2}),(function(e){return e.theme.bg3}),(function(e){return e.theme.text2})),af=cn.default.div(_m()),rf=cn.default.div(Zm());function of(e){var n=e.listUrl,t=Object(r.useMemo)((function(){var e;return null===(e=Vm(n))||void 0===e?void 0:e.ensName}),[n]),a=Object(r.useMemo)((function(){if(!t){var e=n.toLowerCase();if(e.startsWith("ipfs://")||e.startsWith("ipns://"))return n;try{return new URL(n).host}catch(a){return}}}),[n,t]);return i.a.createElement(i.a.Fragment,null,null!==t&&void 0!==t?t:a)}function cf(e){return"list-row-".concat(e.replace(/\./g,"-"))}var uf=Object(r.memo)((function(e){var n=e.listUrl,t=e.onBack,a=Object(s.d)((function(e){return e.lists.byUrl})),o=On(),c=Object(s.c)(),u=a[n],d=u.current,p=u.pendingUpdate,m=n===o,f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=Object(r.useState)(e),t=Object(ln.a)(n,2),a=t[0],i=t[1],o=Object(r.useCallback)((function(){return i((function(e){return!e}))}),[]);return[a,o]}(!1),b=Object(ln.a)(f,2),A=b[0],v=b[1],g=Object(r.useRef)(),y=Object(r.useState)(),h=Object(ln.a)(y,2),E=h[0],x=h[1],O=Object(r.useState)(),w=Object(ln.a)(O,2),j=w[0],k=w[1],C=Object(Ri.a)(E,j,{placement:"auto",strategy:"fixed",modifiers:[{name:"offset",options:{offset:[8,8]}}]}),T=C.styles,B=C.attributes;Na(g,A?v:void 0);var I=Object(r.useCallback)((function(){m||(l.a.event({category:"Lists",action:"Select List",label:n}),c(Pd(n)),t())}),[c,m,n,t]),S=Object(r.useCallback)((function(){p&&(l.a.event({category:"Lists",action:"Update List from List Select",label:n}),c(Nd(n)))}),[c,n,p]),R=Object(r.useCallback)((function(){l.a.event({category:"Lists",action:"Start Remove List",label:n}),"REMOVE"===window.prompt("Please confirm you would like to remove this list by typing REMOVE")&&(l.a.event({category:"Lists",action:"Confirm Remove List",label:n}),c(Ud(n)))}),[c,n]);return d?i.a.createElement(Wr,{key:n,align:"center",padding:"16px",id:cf(n)},d.logoURI?i.a.createElement(Jm,{style:{marginRight:"1rem"},logoURI:d.logoURI,alt:"".concat(d.name," list logo")}):i.a.createElement("div",{style:{width:"24px",height:"24px",marginRight:"1rem"}}),i.a.createElement(bi,{style:{flex:"1"}},i.a.createElement(Wr,null,i.a.createElement(sn.b,{fontWeight:m?500:400,fontSize:16,style:{overflow:"hidden",textOverflow:"ellipsis"}},d.name)),i.a.createElement(Wr,{style:{marginTop:"4px"}},i.a.createElement(rf,{title:n},i.a.createElement(of,{listUrl:n})))),i.a.createElement(af,{ref:g},i.a.createElement(ti,{style:{width:"2rem",padding:".8rem .35rem",borderRadius:"12px",fontSize:"14px",marginRight:"0.5rem"},onClick:v,ref:x},i.a.createElement(Im,null)),A&&i.a.createElement(tf,Object.assign({show:!0,ref:k,style:T.popper},B.popper),i.a.createElement("div",null,d&&Dd(d.version)),i.a.createElement(um,null),i.a.createElement(er,{href:"https://tokenlists.org/token-list?url=".concat(n)},"View list"),i.a.createElement(nf,{onClick:R,disabled:1===Object.keys(a).length},"Remove list"),p&&i.a.createElement(nf,{onClick:S},"Update list"))),m?i.a.createElement($r,{disabled:!0,className:"select-button",style:{width:"5rem",minWidth:"5rem",padding:"0.5rem .35rem",borderRadius:"12px",fontSize:"14px"}},"Selected"):i.a.createElement(i.a.Fragment,null,i.a.createElement($r,{className:"select-button",style:{width:"5rem",minWidth:"4.5rem",padding:"0.5rem .35rem",borderRadius:"12px",fontSize:"14px"},onClick:I},"Select"))):null})),lf=Object(cn.default)(ni)(Gm()),sf=cn.default.div(Xm());function df(e){var n,t=e.onDismiss,a=e.onBack,o=Object(r.useState)(""),c=Object(ln.a)(o,2),u=c[0],d=c[1],p=Object(s.c)(),m=Object(s.d)((function(e){return e.lists.byUrl})),f=Boolean(null===(n=m[u])||void 0===n?void 0:n.loadingRequestId),b=Object(r.useState)(null),A=Object(ln.a)(b,2),v=A[0],g=A[1],y=Object(r.useCallback)((function(e){d(e.target.value),g(null)}),[]),h=qm(),E=Object(r.useCallback)((function(){f||(g(null),h(u).then((function(){d(""),l.a.event({category:"Lists",action:"Add List",label:u})})).catch((function(e){l.a.event({category:"Lists",action:"Add List Failed",label:u}),g(e.message),p(Ud(u))})))}),[f,p,h,u]),x=Object(r.useMemo)((function(){return Pp(u).length>0||Boolean(Vm(u))}),[u]),O=Object(r.useCallback)((function(e){x&&"Enter"===e.key&&E()}),[E,x]),w=Object(r.useMemo)((function(){return Object.keys(m).filter((function(e){return Boolean(m[e].current)})).sort((function(e,n){var t=m[e].current,a=m[n].current;return t&&a?t.name.toLowerCase()<a.name.toLowerCase()?-1:t.name.toLowerCase()===a.name.toLowerCase()?0:1:t?-1:a?1:0}))}),[m]);return i.a.createElement(bi,{style:{width:"100%",flex:"1 1"}},i.a.createElement(rm,null,i.a.createElement(Ur,null,i.a.createElement("div",null,i.a.createElement(La.a,{style:{cursor:"pointer"},onClick:a})),i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Manage Lists"),i.a.createElement(Ja,{onClick:t}))),i.a.createElement(cm,null),i.a.createElement(rm,{gap:"14px"},i.a.createElement(sn.b,{fontWeight:600},"Add a list"," ",i.a.createElement(Gi,{text:"Token lists are an open specification for lists of ERC20 tokens. You can use any token list by entering its URL below. Beware that third party token lists can contain fake or malicious ERC20 tokens."})),i.a.createElement(Wr,null,i.a.createElement(om,{type:"text",id:"list-add-input",placeholder:"https:// or ipfs://",value:u,onChange:y,onKeyDown:O,style:{height:"2.75rem",borderRadius:12,padding:"12px"}}),i.a.createElement(lf,{onClick:E,disabled:!x},"Add")),v?i.a.createElement(kr,{title:v,style:{textOverflow:"ellipsis",overflow:"hidden"},error:!0},v):null),i.a.createElement(cm,null),i.a.createElement(sf,null,w.map((function(e){return i.a.createElement(uf,{key:e,listUrl:e,onBack:a})}))),i.a.createElement(cm,null))}function pf(e){var n=e.isOpen,t=e.onDismiss,a=e.onCurrencySelect,o=e.selectedCurrency,c=e.otherSelectedCurrency,u=e.showCommonBases,s=void 0!==u&&u,d=Object(r.useState)(!1),p=Object(ln.a)(d,2),m=p[0],f=p[1],b=Rp(n);Object(r.useEffect)((function(){n&&!b&&f(!1)}),[n,b]);var A=Object(r.useCallback)((function(e){a(e),t()}),[t,a]),v=Object(r.useCallback)((function(){l.a.event({category:"Lists",action:"Change Lists"}),f(!0)}),[]),g=Object(r.useCallback)((function(){l.a.event({category:"Lists",action:"Back"}),f(!1)}),[]);return i.a.createElement(Ii,{isOpen:n,onDismiss:t,maxHeight:80,minHeight:m?40:80},m?i.a.createElement(df,{onDismiss:t,onBack:g}):i.a.createElement(jm,{isOpen:n,onDismiss:t,onCurrencySelect:A,onChangeList:v,selectedCurrency:o,otherSelectedCurrency:c,showCommonBases:s}))}function mf(){var e=Object(rn.a)(["\n  position: absolute;\n  left: "," !important;\n"]);return mf=function(){return e},e}function ff(){var e=Object(rn.a)(["\n  z-index: 2;\n"]);return ff=function(){return e},e}function bf(){var e=Object(rn.a)(["\n  position: relative;\n  display: flex;\n  flex-direction: row;\n  margin-right: ",";\n"]);return bf=function(){return e},e}var Af=cn.default.div(bf(),(function(e){var n=e.sizeraw;return e.margin&&(n/3+8).toString()+"px"})),vf=Object(cn.default)(qp)(ff()),gf=Object(cn.default)(qp)(mf(),(function(e){return"-"+(e.sizeraw/2).toString()+"px"}));function yf(e){var n=e.currency0,t=e.currency1,a=e.size,r=void 0===a?16:a,o=e.margin,c=void 0!==o&&o;return i.a.createElement(Af,{sizeraw:r,margin:c},n&&i.a.createElement(vf,{currency:n,size:r.toString()+"px"}),t&&i.a.createElement(gf,{currency:t,size:r.toString()+"px",sizeraw:r}))}function hf(){var e=Object(rn.a)(["\n  color: ",";\n  width: 0;\n  position: relative;\n  font-weight: 500;\n  outline: none;\n  border: none;\n  flex: 1 1 auto;\n  background-color: ",";\n  font-size: ",";\n  text-align: ",";\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n  padding: 0px;\n  -webkit-appearance: textfield;\n\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n\n  [type='number'] {\n    -moz-appearance: textfield;\n  }\n\n  ::-webkit-outer-spin-button,\n  ::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n  }\n\n  ::placeholder {\n    color: ",";\n  }\n"]);return hf=function(){return e},e}var Ef=cn.default.input(hf(),(function(e){var n=e.error,t=e.theme;return n?t.red1:t.text1}),(function(e){return e.theme.bg1}),(function(e){var n=e.fontSize;return null!==n&&void 0!==n?n:"24px"}),(function(e){var n=e.align;return n&&n}),(function(e){return e.theme.text1})),xf=RegExp("^\\d*(?:\\\\[.])?\\d*$"),Of=i.a.memo((function(e){var n=e.value,t=e.onUserInput,a=e.placeholder,r=Object(ma.a)(e,["value","onUserInput","placeholder"]);return i.a.createElement(Ef,Object.assign({},r,{value:n,onChange:function(e){var n;(""===(n=e.target.value.replace(/,/g,"."))||xf.test(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")))&&t(n)},inputMode:"decimal",title:"Token Amount",autoComplete:"off",autoCorrect:"off",type:"text",pattern:"^[0-9]*[.,]?[0-9]*$",placeholder:a||"0.0",minLength:1,maxLength:79,spellCheck:"false"}))}));function wf(){var e=Object(rn.a)(["\n    margin-right: 0.5rem;\n  "]);return wf=function(){return e},e}function jf(){var e=Object(rn.a)(["\n  height: 28px;\n  background-color: ",";\n  border: 1px solid ",";\n  border-radius: 0.5rem;\n  font-size: 0.875rem;\n\n  font-weight: 500;\n  cursor: pointer;\n  margin-right: 0.5rem;\n  color: ",";\n  :hover {\n    border: 1px solid ",";\n  }\n  :focus {\n    border: 1px solid ",";\n    outline: none;\n  }\n\n  ",";\n"]);return jf=function(){return e},e}function kf(){var e=Object(rn.a)(["\n  ","\n  font-size:  ",";\n\n"]);return kf=function(){return e},e}function Cf(){var e=Object(rn.a)(["\n  border-radius: ",";\n  border: 1px solid ",";\n  background-color: ",";\n"]);return Cf=function(){return e},e}function Tf(){var e=Object(rn.a)(["\n  ","\n  position: relative;\n  border-radius: ",";\n  background-color: ",";\n  z-index: 1;\n"]);return Tf=function(){return e},e}function Bf(){var e=Object(rn.a)(["\n  margin: 0 0.25rem 0 0.5rem;\n  height: 35%;\n\n  path {\n    stroke: ",";\n    stroke-width: 1.5px;\n  }\n"]);return Bf=function(){return e},e}function If(){var e=Object(rn.a)(["\n  display: flex;\n  align-items: center;\n  justify-content: space-between;\n"]);return If=function(){return e},e}function Sf(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  color: ",";\n  font-size: 0.75rem;\n  line-height: 1rem;\n  padding: 0.75rem 1rem 0 1rem;\n  span:hover {\n    cursor: pointer;\n    color: ",";\n  }\n"]);return Sf=function(){return e},e}function Rf(){var e=Object(rn.a)(["\n  align-items: center;\n  height: 2.2rem;\n  font-size: 20px;\n  font-weight: 500;\n  background-color: ",";\n  color: ",";\n  border-radius: 12px;\n  box-shadow: ",";\n  outline: none;\n  cursor: pointer;\n  user-select: none;\n  border: none;\n  padding: 0 0.5rem;\n\n  :focus,\n  :hover {\n    background-color: ",";\n  }\n"]);return Rf=function(){return e},e}function Nf(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  padding: ",";\n"]);return Nf=function(){return e},e}var Lf=cn.default.div(Nf(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.selected?"0.75rem 0.5rem 0.75rem 1rem":"0.75rem 0.75rem 0.75rem 1rem"})),Uf=cn.default.button(Rf(),(function(e){var n=e.selected,t=e.theme;return n?t.bg1:t.primary1}),(function(e){var n=e.selected,t=e.theme;return n?t.text1:t.white}),(function(e){return e.selected?"none":"0px 6px 10px rgba(0, 0, 0, 0.075)"}),(function(e){var n=e.selected,t=e.theme;return n?t.bg2:Object(dn.a)(.05,t.primary1)})),Pf=cn.default.div(Sf(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.text1}),(function(e){var n=e.theme;return Object(dn.a)(.2,n.text2)})),Df=cn.default.span(If()),Ff=Object(cn.default)(Im)(Bf(),(function(e){var n=e.selected,t=e.theme;return n?t.text1:t.white})),Wf=cn.default.div(Tf(),(function(e){return e.theme.flexColumnNoWrap}),(function(e){return e.hideInput?"8px":"20px"}),(function(e){return e.theme.bg2})),Mf=cn.default.div(Cf(),(function(e){return e.hideInput?"8px":"20px"}),(function(e){return e.theme.bg2}),(function(e){return e.theme.bg1})),Vf=cn.default.span(kf(),(function(e){return e.active?"  margin: 0 0.25rem 0 0.75rem;":"  margin: 0 0.25rem 0 0.25rem;"}),(function(e){return e.active?"20px":"16px"})),zf=cn.default.button(jf(),(function(e){return e.theme.primary5}),(function(e){return e.theme.primary5}),(function(e){return e.theme.primaryText1}),(function(e){return e.theme.primary1}),(function(e){return e.theme.primary1}),(function(e){return e.theme.mediaWidth.upToExtraSmall(wf())}));function Yf(e){var n=e.value,t=e.onUserInput,a=e.onMax,o=e.showMaxButton,c=e.label,u=void 0===c?"Input":c,l=e.onCurrencySelect,s=e.currency,d=e.disableCurrencySelect,p=void 0!==d&&d,m=e.hideBalance,f=void 0!==m&&m,b=e.pair,A=void 0===b?null:b,v=e.hideInput,g=void 0!==v&&v,y=e.otherCurrency,h=e.id,E=e.showCommonBases,x=e.customBalanceText,O=Object($e.b)().t,w=Object(r.useState)(!1),j=Object(ln.a)(w,2),k=j[0],C=j[1],T=fn().account,B=pa(null!==T&&void 0!==T?T:void 0,null!==s&&void 0!==s?s:void 0),I=Object(r.useContext)(cn.ThemeContext),S=Object(r.useCallback)((function(){C(!1)}),[C]);return i.a.createElement(Wf,{id:h},i.a.createElement(Mf,{hideInput:g},!g&&i.a.createElement(Pf,null,i.a.createElement(Ur,null,i.a.createElement(yr,{color:I.text2,fontWeight:500,fontSize:14},u),T&&i.a.createElement(yr,{onClick:a,color:I.text2,fontWeight:500,fontSize:14,style:{display:"inline",cursor:"pointer"}},!f&&s&&B?(null!==x&&void 0!==x?x:"Balance: ")+(null===B||void 0===B?void 0:B.toSignificant(6)):" -"))),i.a.createElement(Lf,{style:g?{padding:"0",borderRadius:"8px"}:{},selected:p},!g&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Of,{className:"token-amount-input",value:n,onUserInput:function(e){t(e)}}),T&&s&&o&&"To"!==u&&i.a.createElement(zf,{onClick:a},"MAX")),i.a.createElement(Uf,{selected:!!s,className:"open-currency-select-button",onClick:function(){p||C(!0)}},i.a.createElement(Df,null,A?i.a.createElement(yf,{currency0:A.token0,currency1:A.token1,size:24,margin:!0}):s?i.a.createElement(qp,{currency:s,size:"24px"}):null,A?i.a.createElement(Vf,{className:"pair-name-container"},null===A||void 0===A?void 0:A.token0.symbol,":",null===A||void 0===A?void 0:A.token1.symbol):i.a.createElement(Vf,{className:"token-symbol-container",active:Boolean(s&&s.symbol)},(s&&s.symbol&&s.symbol.length>20?s.symbol.slice(0,4)+"..."+s.symbol.slice(s.symbol.length-5,s.symbol.length):null===s||void 0===s?void 0:s.symbol)||O("selectToken")),!p&&i.a.createElement(Ff,{selected:!!s}))))),!p&&l&&i.a.createElement(pf,{isOpen:k,onDismiss:S,onCurrencySelect:l,selectedCurrency:s,otherSelectedCurrency:y,showCommonBases:E}))}function Hf(){var e=Object(rn.a)(["\n  color: ",";\n"]);return Hf=function(){return e},e}function qf(){var e=Object(rn.a)(["\n  font-weight: 500;\n  font-size: 20px;\n"]);return qf=function(){return e},e}function Qf(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  justify-content: center;\n  height: 3rem;\n  border-radius: 3rem;\n  outline: none;\n  cursor: pointer;\n  text-decoration: none;\n  color: ",";\n  font-size: 20px;\n\n  &."," {\n    border-radius: 12px;\n    font-weight: 500;\n    color: ",";\n  }\n\n  :hover,\n  :focus {\n    color: ",";\n  }\n"]);return Qf=function(){return e},e}function Kf(){var e=Object(rn.a)(["\n  ","\n  align-items: center;\n  border-radius: 3rem;\n  justify-content: space-evenly;\n"]);return Kf=function(){return e},e}var Jf=cn.default.div(Kf(),(function(e){return e.theme.flexRowNoWrap})),Xf=Object(cn.default)(d.c).attrs({activeClassName:"ACTIVE"})(Qf(),(function(e){return e.theme.flexRowNoWrap}),(function(e){return e.theme.text3}),"ACTIVE",(function(e){return e.theme.text1}),(function(e){var n=e.theme;return Object(dn.a)(.1,n.text1)})),Gf=cn.default.div(qf()),Zf=Object(cn.default)(La.a)(Hf(),(function(e){return e.theme.text1}));function _f(e){var n=e.active,t=Object($e.b)().t;return i.a.createElement(Jf,{style:{marginBottom:"20px",display:"none"}},i.a.createElement(Xf,{id:"swap-nav-link",to:"/swap",isActive:function(){return"swap"===n}},t("swap")),i.a.createElement(Xf,{id:"pool-nav-link",to:"/pool",isActive:function(){return"pool"===n}},t("pool")))}function $f(){return i.a.createElement(Jf,null,i.a.createElement(Ur,{style:{padding:"1rem"}},i.a.createElement(d.b,{to:"/pool"},i.a.createElement(Zf,null)),i.a.createElement(Gf,null,"Import Pool"),i.a.createElement(Gi,{text:"Use this tool to find pairs that don't automatically appear in the interface."})))}function eb(e){var n=e.adding,t=e.creating;return i.a.createElement(Jf,null,i.a.createElement(Ur,{style:{padding:"1rem"}},i.a.createElement(d.b,{to:"/pool"},i.a.createElement(Zf,null)),i.a.createElement(Gf,null,t?"Create a pair":n?"Add Liquidity":"Remove Liquidity"),i.a.createElement(Gi,{text:n?"When you add liquidity, you are given pool tokens representing your position. These tokens automatically earn fees proportional to your share of the pool, and can be redeemed at any time.":"Removing pool tokens converts your position back into underlying tokens at the current rate, proportional to your share of the pool. Accrued fees are included in the amounts you receive."})))}var nb=t(642);function tb(e){if(e===b.a)return"AVAX";if(e instanceof b.k)return e.address;throw new Error("invalid currency")}var ab=t(317),rb=t.n(ab),ib=t(227);function ob(){return(ob=Object(x.a)(h.a.mark((function e(n){var t;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=n.equals(ge[n.chainId])?"https://raw.githubusercontent.com/baguette-exchange/contracts/master/tokenlist/logos/baguette.png":"https://raw.githubusercontent.com/pangolindex/tokens/main/assets/".concat(n.address,"/logo.png"),e.abrupt("return",rb.a.from(t).getPalette().then((function(e){if(null===e||void 0===e?void 0:e.Vibrant){for(var n=e.Vibrant.hex,t=Object(ib.a)(n,"#FFF");t<3;)n=Object(dn.c)(.005,n),t=Object(ib.a)(n,"#FFF");return n}return null})).catch((function(){return null})));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function cb(e){var n=Object(r.useState)("#2172E5"),t=Object(ln.a)(n,2),a=t[0],i=t[1];return Object(r.useLayoutEffect)((function(){var n=!1;return e&&function(e){return ob.apply(this,arguments)}(e).then((function(e){n||null===e||i(e)})),function(){n=!0,i("#2172E5")}}),[e]),a}function ub(){var e=Object(rn.a)(["\n  background-color: ",";\n  color: ",";\n  padding: 0.5rem;\n  border-radius: 12px;\n  margin-top: 8px;\n"]);return ub=function(){return e},e}function lb(){var e=Object(rn.a)(["\n  background-color: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  margin-right: 12px;\n  border-radius: 12px;\n  min-width: 48px;\n  height: 48px;\n"]);return lb=function(){return e},e}function sb(){var e=Object(rn.a)(["\n  background-color: ",";\n  border-radius: 1rem;\n  display: flex;\n  align-items: center;\n  font-size: 0.825rem;\n  width: 100%;\n  padding: 3rem 1.25rem 1rem 1rem;\n  margin-top: -2rem;\n  color: ",";\n  z-index: -1;\n  p {\n    padding: 0;\n    margin: 0;\n    font-weight: 500;\n  }\n"]);return sb=function(){return e},e}function db(){var e=Object(rn.a)(["\n  &::after {\n    display: inline-block;\n    animation: ellipsis 1.25s infinite;\n    content: '.';\n    width: 1em;\n    text-align: left;\n  }\n  @keyframes ellipsis {\n    0% {\n      content: '.';\n    }\n    33% {\n      content: '..';\n    }\n    66% {\n      content: '...';\n    }\n  }\n"]);return db=function(){return e},e}function pb(){var e=Object(rn.a)(["\n  text-overflow: ellipsis;\n  width: 220px;\n  overflow: hidden;\n"]);return pb=function(){return e},e}function mb(){var e=Object(rn.a)(["\n  height: 22px;\n  width: 22px;\n  background-color: ",";\n  border: none;\n  border-radius: 50%;\n  padding: 0.2rem;\n  font-size: 0.875rem;\n  font-weight: 400;\n  margin-left: 0.4rem;\n  cursor: pointer;\n  color: ",";\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  float: right;\n\n  :hover {\n    background-color: ",";\n  }\n  :focus {\n    background-color: ",";\n    outline: none;\n  }\n"]);return mb=function(){return e},e}function fb(){var e=Object(rn.a)(["\n  color: ",";\n"]);return fb=function(){return e},e}function bb(){var e=Object(rn.a)(["\n  margin-top: 1rem;\n"]);return bb=function(){return e},e}function Ab(){var e=Object(rn.a)(["\n  height: 1px;\n  width: 100%;\n  background-color: ",";\n"]);return Ab=function(){return e},e}function vb(){var e=Object(rn.a)(["\n          :hover {\n            cursor: pointer;\n            opacity: 0.8;\n          }\n        "]);return vb=function(){return e},e}function gb(){var e=Object(rn.a)(["\n  padding: 2px;\n\n  ","\n"]);return gb=function(){return e},e}function yb(){var e=Object(rn.a)(["\n  position: relative;\n"]);return yb=function(){return e},e}var hb=cn.default.div(yb()),Eb=cn.default.div(gb(),(function(e){return e.clickable?Object(cn.css)(vb()):null})),xb=cn.default.div(Ab(),(function(e){return e.theme.bg3})),Ob=cn.default.div(bb()),wb=Object(cn.default)(sn.b)(fb(),(function(e){var n=e.theme,t=e.severity;return 3===t||4===t?n.red1:2===t?n.yellow2:1===t?n.text1:n.green1})),jb=cn.default.button(mb(),(function(e){return e.theme.bg2}),(function(e){return e.theme.text2}),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg3})),kb=Object(cn.default)(sn.b)(pb()),Cb=cn.default.span(db()),Tb=cn.default.div(sb(),(function(e){var n=e.theme;return Object(dn.d)(.9,n.red1)}),(function(e){return e.theme.red1})),Bb=cn.default.div(lb(),(function(e){var n=e.theme;return Object(dn.d)(.9,n.red1)}));function Ib(e){var n=e.error;return i.a.createElement(Tb,null,i.a.createElement(Bb,null,i.a.createElement(Ap.a,{size:24})),i.a.createElement("p",null,n))}var Sb=Object(cn.default)(fi)(ub(),(function(e){var n=e.theme;return Object(dn.d)(.9,n.primary1)}),(function(e){return e.theme.primary1}));function Rb(){var e=Object(rn.a)(["\n  border: none;\n  background: ",";\n  position: relative;\n  overflow: hidden;\n"]);return Rb=function(){return e},e}function Nb(){var e=Object(rn.a)(["\n  border: 1px solid transparent;\n  :hover {\n    border: 1px solid ",";\n  }\n"]);return Nb=function(){return e},e}function Lb(){var e=Object(rn.a)(["\n  height: 24px;\n"]);return Lb=function(){return e},e}var Ub=Object(cn.default)(Ur)(Lb()),Pb=(Object(cn.default)(wa)(Nb(),(function(e){var n=e.theme;return Object(dn.a)(.06,n.bg2)})),Object(cn.default)(ja)(Rb(),(function(e){var n=e.theme,t=e.bgColor;return"radial-gradient(91.85% 100% at 1.84% 0%, ".concat(Object(dn.d)(.8,t)," 0%, ").concat(n.bg3," 100%) ")})));function Db(e){var n=e.pair,t=e.showUnwrapped,a=void 0!==t&&t,o=e.border,c=fn().account,u=a?n.token0:ws(n.token0),l=a?n.token1:ws(n.token1),s=Object(r.useState)(!1),d=Object(ln.a)(s,2),p=d[0],m=d[1],f=sa(null!==c&&void 0!==c?c:void 0,n.liquidityToken),A=ts(n.liquidityToken),v=f&&A&&b.f.greaterThanOrEqual(A.raw,f.raw)?new b.h(f.raw,A.raw):void 0,g=n&&A&&f&&b.f.greaterThanOrEqual(A.raw,f.raw)?[n.getLiquidityValue(n.token0,A,f,!1),n.getLiquidityValue(n.token1,A,f,!1)]:[void 0,void 0],y=Object(ln.a)(g,2),h=y[0],E=y[1];return i.a.createElement(i.a.Fragment,null,f&&b.f.greaterThan(f.raw,b.f.BigInt(0))?i.a.createElement(ka,{border:o},i.a.createElement(fi,{gap:"12px"},i.a.createElement(Ub,null,i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:16},"Your position"))),i.a.createElement(Ub,{onClick:function(){return m(!p)}},i.a.createElement(Fr,null,i.a.createElement(yf,{currency0:u,currency1:l,margin:!0,size:20}),i.a.createElement(sn.b,{fontWeight:500,fontSize:20},u.symbol,"/",l.symbol)),i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontWeight:500,fontSize:20},f?f.toSignificant(4):"-"))),i.a.createElement(fi,{gap:"4px"},i.a.createElement(Ub,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},"Your pool share:"),i.a.createElement(sn.b,{fontSize:16,fontWeight:500},v?v.toFixed(6)+"%":"-")),i.a.createElement(Ub,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},u.symbol,":"),h?i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500,marginLeft:"6px"},null===h||void 0===h?void 0:h.toSignificant(6))):"-"),i.a.createElement(Ub,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},l.symbol,":"),E?i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500,marginLeft:"6px"},null===E||void 0===E?void 0:E.toSignificant(6))):"-")))):i.a.createElement(ja,null,i.a.createElement(xr,{style:{textAlign:"center"}},i.a.createElement("span",{role:"img","aria-label":"wizard-icon"},"\u2b50\ufe0f")," ","By adding liquidity you'll earn 0.3% of all trades on this pair proportional to your share of the pool. Fees are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity.")))}function Fb(e){var n=e.pair,t=e.border,a=fn().account,o=ws(n.token0),c=ws(n.token1),u=Object(r.useState)(!1),l=Object(ln.a)(u,2),s=l[0],p=l[1],m=sa(null!==a&&void 0!==a?a:void 0,n.liquidityToken),f=ts(n.liquidityToken),A=m&&f&&b.f.greaterThanOrEqual(f.raw,m.raw)?new b.h(m.raw,f.raw):void 0,v=n&&f&&m&&b.f.greaterThanOrEqual(f.raw,m.raw)?[n.getLiquidityValue(n.token0,f,m,!1),n.getLiquidityValue(n.token1,f,m,!1)]:[void 0,void 0],g=Object(ln.a)(v,2),y=g[0],h=g[1],E=cb(null===n||void 0===n?void 0:n.token0);return i.a.createElement(Pb,{border:t,bgColor:E},i.a.createElement(ys,null),i.a.createElement(fi,{gap:"12px"},i.a.createElement(Ub,null,i.a.createElement(Fr,null,i.a.createElement(yf,{currency0:o,currency1:c,margin:!0,size:20}),i.a.createElement(sn.b,{fontWeight:500,fontSize:20},o&&c?"".concat(o.symbol,"/").concat(c.symbol):i.a.createElement(Cb,null,"Loading"))),i.a.createElement(Fr,{gap:"8px"},i.a.createElement(ai,{padding:"6px 8px",borderRadius:"12px",width:"fit-content",onClick:function(){return p(!s)}},s?i.a.createElement(i.a.Fragment,null," ","Manage",i.a.createElement(nb.a,{size:"20",style:{marginLeft:"10px"}})):i.a.createElement(i.a.Fragment,null,"Manage",i.a.createElement(Mr.a,{size:"20",style:{marginLeft:"10px"}}))))),s&&i.a.createElement(fi,{gap:"8px"},i.a.createElement(Ub,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},"Your pool tokens:"),i.a.createElement(sn.b,{fontSize:16,fontWeight:500},m?m.toSignificant(4):"-")),i.a.createElement(Ub,null,i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},"Pooled ",o.symbol,":")),y?i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500,marginLeft:"6px"},null===y||void 0===y?void 0:y.toSignificant(6)),i.a.createElement(qp,{size:"20px",style:{marginLeft:"8px"},currency:o})):"-"),i.a.createElement(Ub,null,i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},"Pooled ",c.symbol,":")),h?i.a.createElement(Fr,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500,marginLeft:"6px"},null===h||void 0===h?void 0:h.toSignificant(6)),i.a.createElement(qp,{size:"20px",style:{marginLeft:"8px"},currency:c})):"-"),i.a.createElement(Ub,null,i.a.createElement(sn.b,{fontSize:16,fontWeight:500},"Your pool share:"),i.a.createElement(sn.b,{fontSize:16,fontWeight:500},A?A.toFixed(2)+"%":"-")),i.a.createElement(Ur,{marginTop:"10px"},i.a.createElement($r,{padding:"8px",borderRadius:"8px",as:d.b,to:"/add/".concat(tb(o),"/").concat(tb(c)),width:"48%"},"Add"),i.a.createElement($r,{padding:"8px",borderRadius:"8px",as:d.b,width:"48%",to:"/remove/".concat(tb(o),"/").concat(tb(c))},"Remove")))))}var Wb,Mb=t(107);!function(e){e.INPUT="INPUT",e.OUTPUT="OUTPUT"}(Wb||(Wb={}));var Vb,zb,Yb=Object(kn.b)("swap/selectCurrency"),Hb=Object(kn.b)("swap/switchCurrencies"),qb=Object(kn.b)("swap/typeInput"),Qb=Object(kn.b)("swap/replaceSwapState"),Kb=Object(kn.b)("swap/setRecipient"),Jb=new b.h(b.f.BigInt(30),b.f.BigInt(1e4)),Xb=new b.h(b.f.BigInt(1e4),b.f.BigInt(1e4)),Gb=Xb.subtract(Jb);function Zb(e){var n=e?Xb.subtract(e.route.pairs.reduce((function(e){return e.multiply(Gb)}),Xb)):void 0,t=e&&n?e.priceImpact.subtract(n):void 0;return{priceImpactWithoutFee:t?new b.h(null===t||void 0===t?void 0:t.numerator,null===t||void 0===t?void 0:t.denominator):void 0,realizedLPFee:n&&e&&(e.inputAmount instanceof b.l?new b.l(e.inputAmount.token,n.multiply(e.inputAmount.raw).quotient):b.d.ether(n.multiply(e.inputAmount.raw).quotient))}}function _b(e,n){var t,a,r=(a=n,new b.h(b.f.BigInt(a),b.f.BigInt(1e4)));return t={},Object(f.a)(t,Wb.INPUT,null===e||void 0===e?void 0:e.maximumAmountIn(r)),Object(f.a)(t,Wb.OUTPUT,null===e||void 0===e?void 0:e.minimumAmountOut(r)),t}function $b(e){return(null===e||void 0===e?void 0:e.lessThan(Ge))?(null===e||void 0===e?void 0:e.lessThan(Je))?(null===e||void 0===e?void 0:e.lessThan(Ke))?(null===e||void 0===e?void 0:e.lessThan(Qe))?0:1:2:3:4}function eA(e,n){var t=fn().account,a=e instanceof b.l?e.token:void 0,i=function(e,n,t){var a=nt(Rt(null===e||void 0===e?void 0:e.address,!1),"allowance",Object(r.useMemo)((function(){return[n,t]}),[n,t])).result;return Object(r.useMemo)((function(){return e&&a?new b.l(e,a.toString()):void 0}),[e,a])}(a,null!==t&&void 0!==t?t:void 0,n),o=function(e,n){var t=lc();return Object(r.useMemo)((function(){return"string"===typeof e&&"string"===typeof n&&Object.keys(t).some((function(a){var r=t[a];if(!r)return!1;if(r.receipt)return!1;var i=r.approval;return!!i&&(i.spender===n&&i.tokenAddress===e&&sc(r))}))}),[t,n,e])}(null===a||void 0===a?void 0:a.address,n),c=Object(r.useMemo)((function(){return e&&n?e.currency===b.a?Vb.APPROVED:i?i.lessThan(e)?o?Vb.PENDING:Vb.NOT_APPROVED:Vb.APPROVED:Vb.UNKNOWN:Vb.UNKNOWN}),[e,i,o,n]),u=Rt(null===a||void 0===a?void 0:a.address),l=uc(),s=Object(r.useCallback)(Object(x.a)(h.a.mark((function t(){var r,i;return h.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(c===Vb.NOT_APPROVED){t.next=3;break}return console.error("approve was called unnecessarily"),t.abrupt("return");case 3:if(a){t.next=6;break}return console.error("no token"),t.abrupt("return");case 6:if(u){t.next=9;break}return console.error("tokenContract is null"),t.abrupt("return");case 9:if(e){t.next=12;break}return console.error("missing amount to approve"),t.abrupt("return");case 12:if(n){t.next=15;break}return console.error("no spender"),t.abrupt("return");case 15:return r=!1,t.next=18,u.estimateGas.approve(n,Mb.a).catch((function(){return r=!0,u.estimateGas.approve(n,e.raw.toString())}));case 18:return i=t.sent,t.abrupt("return",u.approve(n,r?e.raw.toString():Mb.a,{gasLimit:pt(i)}).then((function(t){l(t,{summary:"Approve "+e.currency.symbol,approval:{tokenAddress:a.address,spender:n}})})).catch((function(e){throw console.debug("Failed to approve token",e),e})));case 20:case"end":return t.stop()}}),t)}))),[c,a,u,e,n,l]);return[c,s]}function nA(){var e=Object(s.d)((function(e){return e.user.userDeadline})),n=ot.a.from((new Date).getTime()+1e5);if(n&&e)return n.add(e)}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.NOT_APPROVED=1]="NOT_APPROVED",e[e.PENDING=2]="PENDING",e[e.APPROVED=3]="APPROVED"}(Vb||(Vb={})),function(e){e.CURRENCY_A="CURRENCY_A",e.CURRENCY_B="CURRENCY_B"}(zb||(zb={}));var tA,aA=Object(kn.b)("mint/typeInputMint"),rA=Object(kn.b)("mint/resetMintState");function iA(){var e=Object(on.g)().search;return Object(r.useMemo)((function(){return e&&e.length>1?Object(pp.parse)(e,{parseArrays:!1,ignoreQueryPrefix:!0}):{}}),[e])}!function(e){e.v1="v1",e.v2="v2"}(tA||(tA={}));var oA=tA.v2;function cA(){var e=iA().use;return e&&"string"===typeof e?"v1"===e.toLowerCase()?tA.v1:oA:tA.v2}var uA=t(87);function lA(e,n){var t=fn().chainId,a=t?Pe[t]:[],i=t?[xs(e,t),xs(n,t)]:[void 0,void 0],o=Object(ln.a)(i,2),c=o[0],u=o[1],l=Object(r.useMemo)((function(){return vn()(a,(function(e){return a.map((function(n){return[e,n]}))})).filter((function(e){var n=Object(ln.a)(e,2),t=n[0],a=n[1];return t.address!==a.address}))}),[a]),s=Cs(Object(r.useMemo)((function(){return c&&u?[[c,u]].concat(Object(p.a)(a.map((function(e){return[c,e]}))),Object(p.a)(a.map((function(e){return[u,e]}))),Object(p.a)(l)).filter((function(e){return Boolean(e[0]&&e[1])})).filter((function(e){var n=Object(ln.a)(e,2),t=n[0],a=n[1];return t.address!==a.address})).filter((function(e){var n=Object(ln.a)(e,2),a=n[0],r=n[1];if(!t)return!0;var i=De[t];if(!i)return!0;var o=i[a.address],c=i[r.address];return!o&&!c||!(o&&!o.find((function(e){return r.equals(e)})))&&!(c&&!c.find((function(e){return a.equals(e)})))})):[]}),[c,u,a,l,t]));return Object(r.useMemo)((function(){return Object.values(s.filter((function(e){return Boolean(e[0]===js.EXISTS&&e[1])})).reduce((function(e,n){var t,a=Object(ln.a)(n,2)[1];return e[a.liquidityToken.address]=null!==(t=e[a.liquidityToken.address])&&void 0!==t?t:a,e}),{}))}),[s])}function sA(){return Object(s.d)((function(e){return e.swap}))}function dA(e,n){if(e&&n)try{var t=Object(uA.parseUnits)(e,n.decimals).toString();if("0"!==t)return n instanceof b.k?new b.l(n,b.f.BigInt(t)):b.d.ether(b.f.BigInt(t))}catch(a){console.debug('Failed to parse input amount: "'.concat(e,'"'),a)}}var pA=[ve[b.b.AVALANCHE],Ae[b.b.AVALANCHE]];function mA(e,n){return e.route.path.some((function(e){return e.address===n}))||e.route.pairs.some((function(e){return e.liquidityToken.address===n}))}function fA(){var e,n,t,a,i,o,c,u=fn().account,l=cA(),s=sA(),d=s.independentField,p=s.typedValue,m=s[Wb.INPUT].currencyId,A=s[Wb.OUTPUT].currencyId,v=s.recipient,g=Vt(m),y=Vt(A),h=ut(v),E=null!==(e=h||u)&&void 0!==e?e:null,x=da(null!==u&&void 0!==u?u:void 0,[null!==g&&void 0!==g?g:void 0,null!==y&&void 0!==y?y:void 0]),O=d===Wb.INPUT,w=dA(p,null!==(n=O?g:y)&&void 0!==n?n:void 0),j=function(e,n){var t=lA(null===e||void 0===e?void 0:e.currency,n);return Object(r.useMemo)((function(){var a;return e&&n&&t.length>0&&null!==(a=b.m.bestTradeExactIn(t,e,n,{maxHops:3,maxNumResults:1})[0])&&void 0!==a?a:null}),[t,e,n])}(O?w:void 0,null!==y&&void 0!==y?y:void 0),k=function(e,n){var t=lA(e,null===n||void 0===n?void 0:n.currency);return Object(r.useMemo)((function(){var a;return e&&n&&t.length>0&&null!==(a=b.m.bestTradeExactOut(t,e,n,{maxHops:3,maxNumResults:1})[0])&&void 0!==a?a:null}),[t,e,n])}(null!==g&&void 0!==g?g:void 0,O?void 0:w),C=O?j:k,T=(t={},Object(f.a)(t,Wb.INPUT,x[0]),Object(f.a)(t,Wb.OUTPUT,x[1]),t),B=(a={},Object(f.a)(a,Wb.INPUT,null!==g&&void 0!==g?g:void 0),Object(f.a)(a,Wb.OUTPUT,null!==y&&void 0!==y?y:void 0),a);(u||(i="Connect Wallet"),w)||(i=null!==(o=i)&&void 0!==o?o:"Enter an amount");B[Wb.INPUT]&&B[Wb.OUTPUT]||(i=null!==(c=i)&&void 0!==c?c:"Select a token");var I,S,R=ut(E);E&&R?(-1!==pA.indexOf(R)||j&&mA(j,R)||k&&mA(k,R))&&(i=null!==(I=i)&&void 0!==I?I:"Invalid recipient"):i=null!==(S=i)&&void 0!==S?S:"Enter a recipient";var N=aa(),L=Object(ln.a)(N,1)[0],U=C&&L&&_b(C,L),P=[T[Wb.INPUT],l===tA.v1?null:U?U[Wb.INPUT]:null],D=P[0],F=P[1];return D&&F&&D.lessThan(F)&&(i="Insufficient "+F.currency.symbol+" balance"),{currencies:B,currencyBalances:T,parsedAmount:w,v2Trade:null!==C&&void 0!==C?C:void 0,inputError:i,v1Trade:void 0}}function bA(e){if("string"===typeof e){var n=ut(e);if(n)return n;if("AVAX"===e.toUpperCase())return"AVAX";if(!1===n)return"AVAX"}return null!=="AVAX"?"AVAX":""}var AA=/^[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&/=]*)?$/,vA=/^0x[a-fA-F0-9]{40}$/;function gA(e){var n,t=bA(e.inputCurrency),a=bA(e.outputCurrency);t===a&&("string"===typeof e.outputCurrency?t="":a="");var r,i=function(e){if("string"!==typeof e)return null;var n=ut(e);return n||(AA.test(e)||vA.test(e)?e:null)}(e.recipient);return n={},Object(f.a)(n,Wb.INPUT,{currencyId:t}),Object(f.a)(n,Wb.OUTPUT,{currencyId:a}),Object(f.a)(n,"typedValue","string"!==typeof(r=e.exactAmount)||isNaN(parseFloat(r))?"":r),Object(f.a)(n,"independentField",function(e){return"string"===typeof e&&"output"===e.toLowerCase()?Wb.OUTPUT:Wb.INPUT}(e.exactField)),Object(f.a)(n,"recipient",i),n}var yA=b.f.BigInt(0);function hA(){return Object(s.d)((function(e){return e.mint}))}function EA(e){if(e)return e.currency===b.a?b.f.greaterThan(e.raw,Ze)?b.d.ether(b.f.subtract(e.raw,Ze)):b.d.ether(b.f.BigInt(0)):e}function xA(){var e=Object(rn.a)(["\n  position: relative;\n  max-width: 420px;\n  width: 100%;\n  background: ",";\n  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),\n    0px 24px 32px rgba(0, 0, 0, 0.01);\n  border-radius: 30px;\n  padding: 1rem;\n"]);return xA=function(){return e},e}var OA=cn.default.div(xA(),(function(e){return e.theme.bg1}));function wA(e){var n=e.children;return i.a.createElement(OA,null,n)}function jA(){var e=Object(rn.a)(["\n  &::after {\n    display: inline-block;\n    animation: ellipsis 1.25s infinite;\n    content: '.';\n    width: 1em;\n    text-align: left;\n  }\n  @keyframes ellipsis {\n    0% {\n      content: '.';\n    }\n    33% {\n      content: '..';\n    }\n    66% {\n      content: '...';\n    }\n  }\n"]);return jA=function(){return e},e}function kA(){var e=Object(rn.a)(["\n    padding: 0.25rem 0.5rem;\n  "]);return kA=function(){return e},e}function CA(){var e=Object(rn.a)(["\n  padding: 0.5rem 1rem;\n  background-color: ",";\n  border: 1px solid ",";\n  border-radius: 0.5rem;\n  font-size: 1rem;\n  ",";\n  font-weight: 500;\n  cursor: pointer;\n  margin: 0.25rem;\n  overflow: hidden;\n  color: #FFFFFF;\n  :hover {\n    border: 1px solid ",";\n  }\n  :focus {\n    border: 1px solid ",";\n    outline: none;\n  }\n"]);return CA=function(){return e},e}function TA(){var e=Object(rn.a)(["\n  :hover {\n    cursor: pointer;\n  }\n  color: ",";\n"]);return TA=function(){return e},e}function BA(){var e=Object(rn.a)(["\n  position: relative;\n"]);return BA=function(){return e},e}var IA=cn.default.div(BA()),SA=Object(cn.default)(sn.b)(TA(),(function(e){return e.theme.primary1})),RA=cn.default.button(CA(),(function(e){return e.theme.primary5}),(function(e){return e.theme.primary5}),(function(e){return e.theme.mediaWidth.upToSmall(kA())}),(function(e){return e.theme.primary6}),(function(e){return e.theme.primary6})),NA=cn.default.span(jA());function LA(e){var n,t,a,r,o,c,u,l,s=e.noLiquidity,d=e.price,p=e.currencies,m=e.parsedAmounts,f=e.poolTokenPercentage,b=e.onAdd;return i.a.createElement(i.a.Fragment,null,i.a.createElement(Ur,null,i.a.createElement(yr,null,null===(n=p[zb.CURRENCY_A])||void 0===n?void 0:n.symbol," Deposited"),i.a.createElement(Fr,null,i.a.createElement(qp,{currency:p[zb.CURRENCY_A],style:{marginRight:"8px"}}),i.a.createElement(yr,null,null===(t=m[zb.CURRENCY_A])||void 0===t?void 0:t.toSignificant(6)))),i.a.createElement(Ur,null,i.a.createElement(yr,null,null===(a=p[zb.CURRENCY_B])||void 0===a?void 0:a.symbol," Deposited"),i.a.createElement(Fr,null,i.a.createElement(qp,{currency:p[zb.CURRENCY_B],style:{marginRight:"8px"}}),i.a.createElement(yr,null,null===(r=m[zb.CURRENCY_B])||void 0===r?void 0:r.toSignificant(6)))),i.a.createElement(Ur,null,i.a.createElement(yr,null,"Rates"),i.a.createElement(yr,null,"1 ".concat(null===(o=p[zb.CURRENCY_A])||void 0===o?void 0:o.symbol," = ").concat(null===d||void 0===d?void 0:d.toSignificant(4)," ").concat(null===(c=p[zb.CURRENCY_B])||void 0===c?void 0:c.symbol))),i.a.createElement(Ur,{style:{justifyContent:"flex-end"}},i.a.createElement(yr,null,"1 ".concat(null===(u=p[zb.CURRENCY_B])||void 0===u?void 0:u.symbol," = ").concat(null===d||void 0===d?void 0:d.invert().toSignificant(4)," ").concat(null===(l=p[zb.CURRENCY_A])||void 0===l?void 0:l.symbol))),i.a.createElement(Ur,null,i.a.createElement(yr,null,"Share of Pool:"),i.a.createElement(yr,null,s?"100":null===f||void 0===f?void 0:f.toSignificant(4),"%")),i.a.createElement($r,{style:{margin:"20px 0 0 0"},onClick:b},i.a.createElement(sn.b,{fontWeight:500,fontSize:20},s?"Create Pool & Supply":"Confirm Supply")))}function UA(e){var n,t,a,o,c,u,l,s,d=e.currencies,p=e.noLiquidity,m=e.poolTokenPercentage,f=e.price,b=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(fi,{gap:"md"},i.a.createElement(Dr,{justify:"space-around",gap:"4px"},i.a.createElement(fi,{justify:"center"},i.a.createElement(vr,null,null!==(n=null===f||void 0===f?void 0:f.toSignificant(6))&&void 0!==n?n:"-"),i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:b.text2,pt:1},null===(t=d[zb.CURRENCY_B])||void 0===t?void 0:t.symbol," per ",null===(a=d[zb.CURRENCY_A])||void 0===a?void 0:a.symbol)),i.a.createElement(fi,{justify:"center"},i.a.createElement(vr,null,null!==(o=null===f||void 0===f||null===(c=f.invert())||void 0===c?void 0:c.toSignificant(6))&&void 0!==o?o:"-"),i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:b.text2,pt:1},null===(u=d[zb.CURRENCY_A])||void 0===u?void 0:u.symbol," per ",null===(l=d[zb.CURRENCY_B])||void 0===l?void 0:l.symbol)),i.a.createElement(fi,{justify:"center"},i.a.createElement(vr,null,p&&f?"100":null!==(s=(null===m||void 0===m?void 0:m.lessThan(He))?"<0.01":null===m||void 0===m?void 0:m.toFixed(2))&&void 0!==s?s:"0","%"),i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:b.text2,pt:1},"Share of Pool"))))}function PA(e){var n,t,a,o,c,u,d,A,v,g,y,E=e.match.params,O=E.currencyIdA,w=E.currencyIdB,j=e.history,k=fn(),C=k.account,T=k.chainId,B=k.library,I=Object(r.useContext)(cn.ThemeContext),S=Vt(O),R=Vt(w),N=Boolean(T&&(S&&Object(b.p)(S,b.o[T])||R&&Object(b.p)(R,b.o[T]))),L=Ln(),U=na(),P=hA(),D=P.independentField,F=P.typedValue,W=P.otherTypedValue,M=function(e,n){var t,a,i,o,c,u,l,s=fn(),d=s.account,p=s.chainId,m=hA(),A=m.independentField,v=m.typedValue,g=m.otherTypedValue,y=A===zb.CURRENCY_A?zb.CURRENCY_B:zb.CURRENCY_A,h=Object(r.useMemo)((function(){var t;return t={},Object(f.a)(t,zb.CURRENCY_A,null!==e&&void 0!==e?e:void 0),Object(f.a)(t,zb.CURRENCY_B,null!==n&&void 0!==n?n:void 0),t}),[e,n]),E=Ts(h[zb.CURRENCY_A],h[zb.CURRENCY_B]),x=Object(ln.a)(E,2),O=x[0],w=x[1],j=ts(null===w||void 0===w?void 0:w.liquidityToken),k=O===js.NOT_EXISTS||Boolean(j&&b.f.equal(j.raw,yA)),C=da(null!==d&&void 0!==d?d:void 0,[h[zb.CURRENCY_A],h[zb.CURRENCY_B]]),T=(t={},Object(f.a)(t,zb.CURRENCY_A,C[0]),Object(f.a)(t,zb.CURRENCY_B,C[1]),t),B=dA(v,h[A]),I=Object(r.useMemo)((function(){if(k)return g&&h[y]?dA(g,h[y]):void 0;if(B){var t=Os(B,p),a=[xs(e,p),xs(n,p)],r=a[0],i=a[1];if(r&&i&&t&&w){var o=y===zb.CURRENCY_B?n:e,c=y===zb.CURRENCY_B?w.priceOf(r).quote(t):w.priceOf(i).quote(t);return o===b.a?b.d.ether(c.raw):c}}else;}),[k,g,h,y,B,e,p,n,w]),S=(a={},Object(f.a)(a,zb.CURRENCY_A,A===zb.CURRENCY_A?B:I),Object(f.a)(a,zb.CURRENCY_B,A===zb.CURRENCY_A?I:B),a),R=Object(r.useMemo)((function(){if(k){var n=S[zb.CURRENCY_A],t=S[zb.CURRENCY_B];return n&&t?new b.i(n.currency,t.currency,n.raw,t.raw):void 0}var a=xs(e,p);return w&&a?w.priceOf(a):void 0}),[p,e,k,w,S]),N=Object(r.useMemo)((function(){var e=S[zb.CURRENCY_A],n=S[zb.CURRENCY_B],t=[Os(e,p),Os(n,p)],a=t[0],r=t[1];return w&&j&&a&&r?w.getLiquidityMinted(j,a,r):void 0}),[S,p,w,j]),L=Object(r.useMemo)((function(){return N&&j?new b.h(N.raw,j.add(N).raw):void 0}),[N,j]);d||(c="Connect Wallet"),O===js.INVALID&&(c=null!==(u=c)&&void 0!==u?u:"Invalid pair"),S[zb.CURRENCY_A]&&S[zb.CURRENCY_B]||(c=null!==(l=c)&&void 0!==l?l:"Enter an amount");var U,P,D=S[zb.CURRENCY_A],F=S[zb.CURRENCY_B];return D&&(null===T||void 0===T||null===(i=T[zb.CURRENCY_A])||void 0===i?void 0:i.lessThan(D))&&(c="Insufficient "+(null===(U=h[zb.CURRENCY_A])||void 0===U?void 0:U.symbol)+" balance"),F&&(null===T||void 0===T||null===(o=T[zb.CURRENCY_B])||void 0===o?void 0:o.lessThan(F))&&(c="Insufficient "+(null===(P=h[zb.CURRENCY_B])||void 0===P?void 0:P.symbol)+" balance"),{dependentField:y,currencies:h,pair:w,pairState:O,currencyBalances:T,parsedAmounts:S,price:R,noLiquidity:k,liquidityMinted:N,poolTokenPercentage:L,error:c}}(null!==S&&void 0!==S?S:void 0,null!==R&&void 0!==R?R:void 0),V=M.dependentField,z=M.currencies,Y=M.pair,H=M.pairState,q=M.currencyBalances,Q=M.parsedAmounts,K=M.price,J=M.noLiquidity,X=M.liquidityMinted,G=M.poolTokenPercentage,Z=M.error,_=function(e){var n=Object(s.c)();return{onFieldAInput:Object(r.useCallback)((function(t){n(aA({field:zb.CURRENCY_A,typedValue:t,noLiquidity:!0===e}))}),[n,e]),onFieldBInput:Object(r.useCallback)((function(t){n(aA({field:zb.CURRENCY_B,typedValue:t,noLiquidity:!0===e}))}),[n,e])}}(J),$=_.onFieldAInput,ee=_.onFieldBInput,ne=!Z,te=Object(r.useState)(!1),ae=Object(ln.a)(te,2),re=ae[0],ie=ae[1],oe=Object(r.useState)(!1),ce=Object(ln.a)(oe,2),ue=ce[0],le=ce[1],se=nA(),de=aa(),pe=Object(ln.a)(de,1)[0],me=Object(r.useState)(""),fe=Object(ln.a)(me,2),be=fe[0],ve=fe[1],ge=(a={},Object(f.a)(a,D,F),Object(f.a)(a,V,J?W:null!==(n=null===(t=Q[V])||void 0===t?void 0:t.toSignificant(6))&&void 0!==n?n:""),a),ye=[zb.CURRENCY_A,zb.CURRENCY_B].reduce((function(e,n){return Object(m.a)(Object(m.a)({},e),{},Object(f.a)({},n,EA(q[n])))}),{}),he=[zb.CURRENCY_A,zb.CURRENCY_B].reduce((function(e,n){var t,a;return Object(m.a)(Object(m.a)({},e),{},Object(f.a)({},n,null===(t=ye[n])||void 0===t?void 0:t.equalTo(null!==(a=Q[n])&&void 0!==a?a:"0")))}),{}),Ee=eA(Q[zb.CURRENCY_A],T?Ae[T]:Ae[b.b.AVALANCHE]),xe=Object(ln.a)(Ee,2),Oe=xe[0],we=xe[1],je=eA(Q[zb.CURRENCY_B],T?Ae[T]:Ae[b.b.AVALANCHE]),ke=Object(ln.a)(je,2),Ce=ke[0],Te=ke[1],Be=uc();function Ie(){return Se.apply(this,arguments)}function Se(){return(Se=Object(x.a)(h.a.mark((function e(){var n,t,a,r,i,o,c,u,s,d,A,v,g,y,E,x;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(T&&B&&C){e.next=2;break}return e.abrupt("return");case 2:if(t=bt(T,B,C),a=Q[zb.CURRENCY_A],r=Q[zb.CURRENCY_B],a&&r&&S&&R&&se){e.next=6;break}return e.abrupt("return");case 6:return n={},Object(f.a)(n,zb.CURRENCY_A,mt(a,J?0:pe)[0]),Object(f.a)(n,zb.CURRENCY_B,mt(r,J?0:pe)[0]),i=n,S===b.a||R===b.a?(v=R===b.a,o=t.estimateGas.addLiquidityETH,c=t.addLiquidityETH,u=[null!==(d=null===(A=xs(v?S:R,T))||void 0===A?void 0:A.address)&&void 0!==d?d:"",(v?a:r).raw.toString(),i[v?zb.CURRENCY_A:zb.CURRENCY_B].toString(),i[v?zb.CURRENCY_B:zb.CURRENCY_A].toString(),C,se.toHexString()],s=ot.a.from((v?r:a).raw.toString())):(o=t.estimateGas.addLiquidity,c=t.addLiquidity,u=[null!==(g=null===(y=xs(S,T))||void 0===y?void 0:y.address)&&void 0!==g?g:"",null!==(E=null===(x=xs(R,T))||void 0===x?void 0:x.address)&&void 0!==E?E:"",a.raw.toString(),r.raw.toString(),i[zb.CURRENCY_A].toString(),i[zb.CURRENCY_B].toString(),C,se.toHexString()],s=null),le(!0),e.next=11,o.apply(void 0,Object(p.a)(u).concat([s?{value:s}:{}])).then((function(e){return c.apply(void 0,Object(p.a)(u).concat([Object(m.a)(Object(m.a)({},s?{value:s}:{}),{},{gasLimit:pt(e)})])).then((function(e){var n,t,a,r,i,o;le(!1),Be(e,{summary:"Add "+(null===(n=Q[zb.CURRENCY_A])||void 0===n?void 0:n.toSignificant(3))+" "+(null===(t=z[zb.CURRENCY_A])||void 0===t?void 0:t.symbol)+" and "+(null===(a=Q[zb.CURRENCY_B])||void 0===a?void 0:a.toSignificant(3))+" "+(null===(r=z[zb.CURRENCY_B])||void 0===r?void 0:r.symbol)}),ve(e.hash),l.a.event({category:"Liquidity",action:"Add",label:[null===(i=z[zb.CURRENCY_A])||void 0===i?void 0:i.symbol,null===(o=z[zb.CURRENCY_B])||void 0===o?void 0:o.symbol].join("/")})}))})).catch((function(e){le(!1),4001!==(null===e||void 0===e?void 0:e.code)&&console.error(e)}));case 11:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Re=function(){var e,n,t,a;return J?i.a.createElement(fi,{gap:"20px"},i.a.createElement(ja,{mt:"20px",borderRadius:"20px"},i.a.createElement(Pr,null,i.a.createElement(sn.b,{fontSize:"48px",fontWeight:500,lineHeight:"42px",marginRight:10},(null===(e=z[zb.CURRENCY_A])||void 0===e?void 0:e.symbol)+"/"+(null===(n=z[zb.CURRENCY_B])||void 0===n?void 0:n.symbol)),i.a.createElement(yf,{currency0:z[zb.CURRENCY_A],currency1:z[zb.CURRENCY_B],size:30})))):i.a.createElement(fi,{gap:"20px"},i.a.createElement(Pr,{style:{marginTop:"20px"}},i.a.createElement(sn.b,{fontSize:"48px",fontWeight:500,lineHeight:"42px",marginRight:10},null===X||void 0===X?void 0:X.toSignificant(6)),i.a.createElement(yf,{currency0:z[zb.CURRENCY_A],currency1:z[zb.CURRENCY_B],size:30})),i.a.createElement(Wr,null,i.a.createElement(sn.b,{fontSize:"24px"},(null===(t=z[zb.CURRENCY_A])||void 0===t?void 0:t.symbol)+"/"+(null===(a=z[zb.CURRENCY_B])||void 0===a?void 0:a.symbol)+" Pool Tokens")),i.a.createElement(jr,{fontSize:12,textAlign:"left",padding:"8px 0 0 0 "},"Output is estimated. If the price changes by more than ".concat(pe/100,"% your transaction will revert.")))},Ne=function(){return i.a.createElement(LA,{price:K,currencies:z,parsedAmounts:Q,noLiquidity:J,onAdd:Ie,poolTokenPercentage:G})},Le="Supplying ".concat(null===(o=Q[zb.CURRENCY_A])||void 0===o?void 0:o.toSignificant(6)," ").concat(null===(c=z[zb.CURRENCY_A])||void 0===c?void 0:c.symbol," and ").concat(null===(u=Q[zb.CURRENCY_B])||void 0===u?void 0:u.toSignificant(6)," ").concat(null===(d=z[zb.CURRENCY_B])||void 0===d?void 0:d.symbol),Ue=Object(r.useCallback)((function(e){var n=tb(e);n===w?j.push("/add/".concat(w,"/").concat(O)):j.push("/add/".concat(n,"/").concat(w))}),[w,j,O]),Pe=Object(r.useCallback)((function(e){var n=tb(e);O===n?w?j.push("/add/".concat(w,"/").concat(n)):j.push("/add/".concat(n)):j.push("/add/".concat(O||"AVAX","/").concat(n))}),[O,j,w]),De=Object(r.useCallback)((function(){ie(!1),be&&$(""),ve("")}),[$,be]),Fe=j.location.pathname.includes("/create");return i.a.createElement(i.a.Fragment,null,i.a.createElement(wA,null,i.a.createElement(eb,{creating:Fe,adding:!0}),i.a.createElement(IA,null,i.a.createElement(Sp,{isOpen:re,onDismiss:De,attemptingTxn:ue,hash:be,content:function(){return i.a.createElement(Bp,{title:J?"You are creating a pool":"You will receive",onDismiss:De,topContent:Re,bottomContent:Ne})},pendingText:Le}),i.a.createElement(fi,{gap:"20px"},J||Fe&&i.a.createElement(mi,null,i.a.createElement(Ia,null,i.a.createElement(fi,{gap:"10px"},i.a.createElement(Ar,{fontWeight:600,color:"primaryText1"},"You are the first liquidity provider."),i.a.createElement(Ar,{fontWeight:400,color:"primaryText1"},"The ratio of tokens you add will set the price of this pool."),i.a.createElement(Ar,{fontWeight:400,color:"primaryText1"},"Once you are happy with the rate click supply to review.")))),i.a.createElement(Yf,{value:ge[zb.CURRENCY_A],onUserInput:$,onMax:function(){var e,n;$(null!==(e=null===(n=ye[zb.CURRENCY_A])||void 0===n?void 0:n.toExact())&&void 0!==e?e:"")},onCurrencySelect:Ue,showMaxButton:!he[zb.CURRENCY_A],currency:z[zb.CURRENCY_A],id:"add-liquidity-input-tokena",showCommonBases:!0}),i.a.createElement(mi,null,i.a.createElement(fp.a,{size:"16",color:I.text2})),i.a.createElement(Yf,{value:ge[zb.CURRENCY_B],onUserInput:ee,onCurrencySelect:Pe,onMax:function(){var e,n;ee(null!==(e=null===(n=ye[zb.CURRENCY_B])||void 0===n?void 0:n.toExact())&&void 0!==e?e:"")},showMaxButton:!he[zb.CURRENCY_B],currency:z[zb.CURRENCY_B],id:"add-liquidity-input-tokenb",showCommonBases:!0}),z[zb.CURRENCY_A]&&z[zb.CURRENCY_B]&&H!==js.INVALID&&i.a.createElement(i.a.Fragment,null,i.a.createElement(ja,{padding:"0px",borderRadius:"20px"},i.a.createElement(Ur,{padding:"1rem"},i.a.createElement(xr,{fontWeight:500,fontSize:14},J?"Initial prices":"Prices"," and pool share"))," ",i.a.createElement(ja,{padding:"1rem",borderRadius:"20px"},i.a.createElement(UA,{currencies:z,poolTokenPercentage:G,noLiquidity:J,price:K})))),C?i.a.createElement(fi,{gap:"md"},(Oe===Vb.NOT_APPROVED||Oe===Vb.PENDING||Ce===Vb.NOT_APPROVED||Ce===Vb.PENDING)&&ne&&i.a.createElement(Ur,null,Oe!==Vb.APPROVED&&i.a.createElement($r,{onClick:we,disabled:Oe===Vb.PENDING,width:Ce!==Vb.APPROVED?"48%":"100%"},Oe===Vb.PENDING?i.a.createElement(NA,null,"Approving ",null===(A=z[zb.CURRENCY_A])||void 0===A?void 0:A.symbol):"Approve "+(null===(v=z[zb.CURRENCY_A])||void 0===v?void 0:v.symbol)),Ce!==Vb.APPROVED&&i.a.createElement($r,{onClick:Te,disabled:Ce===Vb.PENDING,width:Oe!==Vb.APPROVED?"48%":"100%"},Ce===Vb.PENDING?i.a.createElement(NA,null,"Approving ",null===(g=z[zb.CURRENCY_B])||void 0===g?void 0:g.symbol):"Approve "+(null===(y=z[zb.CURRENCY_B])||void 0===y?void 0:y.symbol))),i.a.createElement(ci,{onClick:function(){U?Ie():ie(!0)},disabled:!ne||Oe!==Vb.APPROVED||Ce!==Vb.APPROVED,error:!ne&&!!Q[zb.CURRENCY_A]&&!!Q[zb.CURRENCY_B]},i.a.createElement(sn.b,{fontSize:20,fontWeight:500},null!==Z&&void 0!==Z?Z:"Supply"))):i.a.createElement(ei,{onClick:L},"Connect Wallet")))),Y&&!J&&H!==js.INVALID?i.a.createElement(fi,{style:{minWidth:"20rem",width:"100%",maxWidth:"400px",marginTop:"1rem"}},i.a.createElement(Db,{showUnwrapped:N,pair:Y})):null)}var DA,FA,WA=new ht.b(yt.a),MA=new ht.b(jt),VA=(DA={},Object(f.a)(DA,b.b.FUJI,[{tokens:[ge[b.b.FUJI],b.o[b.b.FUJI]],rewardToken:ge[b.b.FUJI],stakingRewardAddress:"0xb7aB7Cd938D9409c2312c43c807B1C6FA7393777",autocompoundingAddress:be},{tokens:[ge[b.b.FUJI],Le[b.b.FUJI]],rewardToken:ge[b.b.FUJI],stakingRewardAddress:"0x2d6CA9Ec52B45a029bB97503eA1582cb91bFB55E",autocompoundingAddress:be},{tokens:[b.o[b.b.FUJI],Le[b.b.FUJI]],rewardToken:ge[b.b.FUJI],stakingRewardAddress:"0x1744CEeB870793E26a21e34b367F4161b076B6bf",autocompoundingAddress:be}]),Object(f.a)(DA,b.b.AVALANCHE,[{tokens:[ge[b.b.AVALANCHE],Le[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x2bCE0CAB94770D0F2Eae3E8a582ADC3EaA0BD81f",autocompoundingAddress:"0xf487044eD85F2d47A8eAD6b86c834976B8c31736"},{tokens:[b.o[b.b.AVALANCHE],Le[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x706c57a2755956e3978f6b4986513E78d0A06520",autocompoundingAddress:"0x58887009A412Ad52a4FB746D0846585346d83BC0"},{tokens:[we[b.b.AVALANCHE],Le[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xfc6B409109e84B681786660405cff09C43FE9b4E",autocompoundingAddress:"0x562ACEA3c03dBDDc25e2F24bb2685D17Bdb4e62f"},{tokens:[ke[b.b.AVALANCHE],Le[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xcf09570845adc0df5dcfa5b93882b115ed0da89c",autocompoundingAddress:be},{tokens:[Te[b.b.AVALANCHE],Le[b.b.AVALANCHE]],rewardToken:Te[b.b.AVALANCHE],stakingRewardAddress:"0x3141ae9c20b952917384d7527d136d10ee06b969",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],b.o[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x266CB810A383b70bfeCa7285E0464746690e849b",autocompoundingAddress:"0x908698B561eA14f153dDD1Ee02f99EBE0A4cea0f"},{tokens:[ge[b.b.AVALANCHE],Oe[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x6268c39511825d9a3FD4e7De75e8a4c784DCa02B",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],we[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x3963b5b570f9Eae630d645c109D3BDEC299CBBEe",autocompoundingAddress:"0xb667121B4D4b6ea5DE4bb61bd3a02E53529BfcCA"},{tokens:[ge[b.b.AVALANCHE],ye[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x7b68d44FcDeF34a57f5c95C4a46c8a2e72fAe4e2",autocompoundingAddress:"0xBD9f16EeE869808bF22823427D1f4a1E7A440E8D"},{tokens:[ge[b.b.AVALANCHE],xe[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x1c596eaA585263519AdC39d3896b6AE35C5830f6",autocompoundingAddress:"0x90E24A2dfd80F02D01c7B630E8e3199C8A0388D3"},{tokens:[Ee[b.b.AVALANCHE],ge[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x507B2f7435E8fF982a17CeD0988832e632c60E7e",autocompoundingAddress:"0x8F871D05d7AfB9dAffA5Df13A91c74e870e6c31E"},{tokens:[ge[b.b.AVALANCHE],Ne[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x336e29bb600a4c25b3b8988d3e8f87be18128235",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],Se[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x57330912470d987bb81668ee4131ff314d6f6729",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],Ie[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xff49e5d1e6e6827d66ef83dce9de33b415e9bb06",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],Re[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xe6d84ee5eb3a5d9581a537691d25ef6efec1198c",autocompoundingAddress:be},{tokens:[b.o[b.b.AVALANCHE],xe[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x6cBB1696D45E066b4Ca79C58690d5b5146BE94c5",autocompoundingAddress:"0xfb5Aa7660fDe5013996FD72a193ACCF00212Af32"},{tokens:[b.o[b.b.AVALANCHE],he[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xDB12cd73c8b547511E0171eA76223Df227D27CEb",autocompoundingAddress:"0xFD1F86448b56942C32B954092F2fDBCE91E37Bf6"},{tokens:[b.o[b.b.AVALANCHE],Oe[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x30393161E53B56E51A4f4c72d3C6Ae6907F44a2F",autocompoundingAddress:be},{tokens:[b.o[b.b.AVALANCHE],Ee[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xF125771F27b5a639C08e3086872085f8270C3FfB",autocompoundingAddress:"0xFC47515433eE291E692958a2D15F99896FAFC0BC"},{tokens:[b.o[b.b.AVALANCHE],je[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xE958DCc86632D7421A86133026423a232Ea2212E",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],je[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x1D96eb4BDe096eF3A73583E02b3FfA4c2BB97933",autocompoundingAddress:be},{tokens:[ge[b.b.AVALANCHE],Ce[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x81a6fedcf8bd3de346b3d368904f536ffa13fdf0",autocompoundingAddress:"0xb940da8b71791c1f42cc612d1af427878ec1a369"},{tokens:[ge[b.b.AVALANCHE],Be[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x4aafe44a0cdec72be791271013cee8af3f8c5753",autocompoundingAddress:"0x1b53500677cb1b042b12081a8661a6f08781d58c"},{tokens:[ge[b.b.AVALANCHE],ke[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x8bcacf09adf3d9404ef34c3324eeec525adb5a65",autocompoundingAddress:"0x9ee89f3a3dfd596bb6f53696e2ed1d09c738f8c8"},{tokens:[b.o[b.b.AVALANCHE],Ce[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0xb00d89c3f65cef0742f9d0cc59c9ad90a01b8faf",autocompoundingAddress:be},{tokens:[Ne[b.b.AVALANCHE],Ce[b.b.AVALANCHE]],rewardToken:ge[b.b.AVALANCHE],stakingRewardAddress:"0x02e6f336aaaf772045c32803fb93d41f08c043e3",autocompoundingAddress:be}]),Object(f.a)(DA,b.b.CRYPTOSEALS,[]),DA);!function(e){e[e.PAIR=0]="PAIR",e[e.SINGLE=1]="SINGLE",e[e.BOTH=2]="BOTH"}(FA||(FA={}));var zA=function(e,n,t,a){if(b.f.equal(t,b.f.BigInt(0)))return new b.l(b.o[e],b.f.BigInt(0));var r=b.f.BigInt(1e18),i=b.f.divide(b.f.multiply(r,n),t);return new b.l(b.o[e],b.f.divide(b.f.multiply(a.raw,i),r))};function YA(e,n){var t=fn(),a=t.chainId,i=t.account,o=Object(r.useMemo)((function(){var e,t;return a&&null!==(e=null===(t=VA[a])||void 0===t?void 0:t.filter((function(e){return void 0===n||null!==n&&(n.involvesToken(e.tokens[0])&&n.involvesToken(e.tokens[1]))})))&&void 0!==e?e:[]}),[a,n]),c=b.f.BigInt(1e18),u=ge[a||b.b.AVALANCHE],l=Object(r.useMemo)((function(){return o.map((function(e){return e.stakingRewardAddress}))}),[o]),s=Object(r.useMemo)((function(){return o.map((function(e){return e.autocompoundingAddress}))}),[o]),d=Object(r.useMemo)((function(){return o.map((function(e){return e.rewardToken}))}),[o]),p=Object(r.useMemo)((function(){return[null!==i&&void 0!==i?i:void 0]}),[i]),m=Object(r.useMemo)((function(){return o.map((function(e){return e.tokens}))}),[o]),f=et(l,WA,"balanceOf",p),A=et(s,MA,"balanceOf",p),v=et(s,MA,"getDepositTokensForShares",["1000000000000000000"]),g=et(l,WA,"earned",p),y=et(l,WA,"totalSupply"),h=Cs(m),E=Cs(m.map((function(e){return[b.o[a||b.b.AVALANCHE],e[0]]}))),x=Ts(b.o[a||b.b.AVALANCHE],u),O=Object(ln.a)(x,2),w=O[0],j=O[1],k=et(l,WA,"rewardRate",void 0,Xn),C=et(l,WA,"periodFinish",void 0,Xn);return Object(r.useMemo)((function(){return a&&u?l.reduce((function(n,t,r){var i=s[r],l=d[r],p=!1,m=f[r],x=g[r],O=A[r],T=v[r],B=y[r],I=k[r],S=C[r],R=o[r].tokens,N=Object(ln.a)(E[r],2),L=N[0],U=N[1],P=R[1]!==Le[R[1].chainId],D=Object(ln.a)(h[r],2),F=D[0],W=D[1];if(P&&e===FA.SINGLE||!P&&e===FA.PAIR)return n;if(!(null===m||void 0===m?void 0:m.loading)&&!(null===x||void 0===x?void 0:x.loading)&&B&&!B.loading&&I&&!I.loading&&S&&!S.loading&&(P&&W&&F!==js.LOADING||!P)&&j&&w!==js.LOADING){var M,V,z,Y,H,q;if((null===m||void 0===m?void 0:m.error)||(null===x||void 0===x?void 0:x.error)||B.error||I.error||S.error||P&&(F===js.INVALID||F===js.NOT_EXISTS)||w===js.INVALID||w===js.NOT_EXISTS)return n;var Q,K,J,X,G=b.f.BigInt(null===(M=B.result)||void 0===M?void 0:M[0]),Z=b.f.BigInt(0);if(P&&W){var _,$=R[0].equals(b.o[R[0].chainId])?R[0]:R[1],ee=new b.g(new b.l(R[0],"0"),new b.l(R[1],"0"),a);if(X=new b.l(ee.liquidityToken,G),m&&m.result&&m.result[0]>0?K=new b.l(ee.liquidityToken,b.f.BigInt(m.result[0])):O&&O.result&&O.result[0]>0&&T&&T.result&&T.result[0]>0?(Z=b.f.BigInt(O.result[0]),K=new b.l(ee.liquidityToken,b.f.divide(b.f.multiply(b.f.BigInt(T.result[0]),Z),c)),p=!0):K=new b.l(ee.liquidityToken,b.f.BigInt(0)),J=new b.l(u,b.f.BigInt(null===(_=I.result)||void 0===_?void 0:_[0])),(R[0].equals(Ne[R[0].chainId])&&R[1].equals(Ce[R[1].chainId])||R[0].equals(Ce[R[0].chainId])&&R[1].equals(Ne[R[1].chainId]))&&U)Q=zA(a,U.reserveOf(b.o[R[0].chainId]).raw,U.reserveOf(R[0]).raw,X);else Q=R[0].equals(b.o[R[0].chainId])?function(e,n,t,a){return b.f.equal(n,b.f.BigInt(0))?new b.l(b.o[e],b.f.BigInt(0)):new b.l(b.o[e],b.f.divide(b.f.multiply(b.f.multiply(a.raw,t),b.f.BigInt(2)),n))}(a,G,W.reserveOf($).raw,X):function(e,n,t,a,r,i){if(b.f.equal(n,b.f.BigInt(0))||b.f.equal(t,b.f.BigInt(0)))return new b.l(b.o[e],b.f.BigInt(0));var o=b.f.BigInt(1e18),c=b.f.divide(b.f.multiply(o,a),t),u=b.f.divide(b.f.multiply(r,c),o);return new b.l(b.o[e],b.f.divide(b.f.multiply(b.f.multiply(i.raw,u),b.f.BigInt(2)),n))}(a,G,j.reserveOf(u).raw,j.reserveOf(b.o[R[1].chainId]).raw,W.reserveOf(u).raw,X)}else{var ne,te=R[0].equals(b.o[R[0].chainId]);if(!te&&(L===js.INVALID||L===js.NOT_EXISTS))return console.error("Invalid pair requested"),n;X=new b.l(R[0],G),m&&m.result&&m.result[0]>0?K=new b.l(R[0],b.f.BigInt(m.result[0])):O&&O.result&&O.result[0]>0&&T&&T.result&&T.result[0]>0?(Z=b.f.BigInt(O.result[0]),K=new b.l(R[0],b.f.divide(b.f.multiply(b.f.BigInt(T.result[0]),Z),c)),p=!0):K=new b.l(R[0],b.f.BigInt(0)),J=new b.l(u,b.f.BigInt(null===(ne=I.result)||void 0===ne?void 0:ne[0])),Q=te?X:U?zA(a,U.reserveOf(b.o[R[0].chainId]).raw,U.reserveOf(R[0]).raw,X):new b.l(b.o[R[0].chainId],b.f.BigInt(0))}var ae=function(e,n,t){return new b.l(u,b.f.greaterThan(n.raw,b.f.BigInt(0))?b.f.divide(b.f.multiply(t.raw,e.raw),n.raw):b.f.BigInt(0))},re=ae(K,X,J),ie=null===(V=S.result)||void 0===V||null===(z=V[0])||void 0===z||null===(Y=z.mul(1e3))||void 0===Y?void 0:Y.toNumber();n.push({stakingRewardAddress:t,autocompoundingAddress:i,useAutocompounding:p,tokens:R,rewardToken:l,periodFinish:ie>0?new Date(ie):void 0,earnedAmount:new b.l(u,b.f.BigInt(null!==(H=null===x||void 0===x||null===(q=x.result)||void 0===q?void 0:q[0])&&void 0!==H?H:0)),sharesAmount:Z,rewardRate:re,totalRewardRate:J,stakedAmount:K,totalStakedAmount:X,totalStakedInWavax:Q,getHypotheticalRewardRate:ae})}return n}),[]):[]}),[f,a,g,o,C,k,d,l,s,v,A,y,w,h,u,j,E,e,c])}function HA(){var e=Object(rn.a)(["\n   width: 100%;\n   background-color: rgba(255, 255, 255, 0.2);\n   height: 1px;\n "]);return HA=function(){return e},e}function qA(){var e=Object(rn.a)(["\n   padding: 1rem;\n   z-index: 1;\n   opacity: ",";\n "]);return qA=function(){return e},e}function QA(){var e=Object(rn.a)(["\n   background: url(",");\n   background-size: cover;\n   mix-blend-mode: overlay;\n   border-radius: 12px;\n   width: 100%;\n   height: 100%;\n   opacity: 0.15;\n   position: absolute;\n   top: 0;\n   left: 0;\n   user-select: none;\n "]);return QA=function(){return e},e}function KA(){var e=Object(rn.a)(["\n   background: url(",");\n   width: 1200px;\n   height: 1200px;\n   position: absolute;\n   border-radius: 12px;\n   top: -300px;\n   left: -300px;\n   opacity: 0.4;\n   user-select: none;\n   ","\n "]);return KA=function(){return e},e}function JA(){var e=Object(rn.a)(["\n   background: url(",");\n   width: 1000px;\n   height: 600px;\n   position: absolute;\n   border-radius: 12px;\n   opacity: 0.4;\n   top: -100px;\n   left: -100px;\n   transform: rotate(-15deg);\n   user-select: none;\n   ","\n "]);return JA=function(){return e},e}function XA(){var e=Object(rn.a)(["\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #f97316 0%, #E84142 100%);\n   border-radius: 12px;\n   width: 100%;\n   position: relative;\n   overflow: hidden;\n "]);return XA=function(){return e},e}function GA(){var e=Object(rn.a)(["\n   display: flex;\n   align-items: center;\n   justify-content: center;\n   padding: 4px 12px;\n   border: 1px solid rgba(255, 255, 255, 0.4);\n   border-radius: 20px;\n   width: fit-content;\n   justify-self: flex-end;\n "]);return GA=function(){return e},e}cn.default.div(GA());var ZA=Object(cn.default)(fi)(XA()),_A=cn.default.span(JA(),is.a,(function(e){return e.desaturate&&"filter: saturate(0)"})),$A=(cn.default.span(KA(),cs.a,(function(e){return e.desaturate&&"filter: saturate(0)"})),cn.default.span(QA(),ls.a)),ev=Object(cn.default)(fi)(qA(),(function(e){return e.disabled&&"0.4"})),nv=cn.default.div(HA()),tv=t(219),av=t.n(tv);function rv(){var e=Object(rn.a)(["\n  display: flex;\n  width: 52px\n"]);return rv=function(){return e},e}function iv(){var e=Object(rn.a)(["\n   display: flex;\n   filex-direction: row;\n   align-items: center;\n "]);return iv=function(){return e},e}function ov(){var e=Object(rn.a)(["\n   padding: 12px 16px;\n   opacity: ",";\n   border-radius: 0 0 12px 12px;\n   display: flex;\n   flex-direction: row;\n   align-items: baseline;\n   justify-content: space-between;\n   z-index: 1;\n "]);return ov=function(){return e},e}function cv(){var e=Object(rn.a)(["\n   padding: 12px 12px;\n   display: flex;\n   flex-direction: row;\n   align-items: center;\n   padding: 1rem;\n   z-index: 1;\n "]);return cv=function(){return e},e}function uv(){var e=Object(rn.a)(["\n     grid-template-columns: 48px 1fr 96px;\n   "]);return uv=function(){return e},e}function lv(){var e=Object(rn.a)(["\n   display: grid;\n   grid-template-columns: 48px 1fr 120px;\n   grid-gap: 0px;\n   align-items: center;\n   padding: 1rem;\n   z-index: 1;\n   ",";\n "]);return lv=function(){return e},e}function sv(){var e=Object(rn.a)(["\n   border-radius: 12px;\n   width: 100%;\n   overflow: hidden;\n   position: relative;\n   opacity: ",";\n   background: ",";\n   color: "," !important;\n   ","\n "]);return sv=function(){return e},e}function dv(){var e=Object(rn.a)(["\n   display: none;\n "]);return dv=function(){return e},e}function pv(){var e=Object(rn.a)(["\n   display: flex;\n   justify-content: space-between;\n   flex-direction: column;\n   gap: 12px;\n   margin-bottom: 1rem;\n   margin-right: 1rem;\n   margin-left: 1rem;\n   ",";\n "]);return pv=function(){return e},e}var mv=cn.default.div(pv(),(function(e){return e.theme.mediaWidth.upToSmall(dv())})),fv=Object(cn.default)(fi)(sv(),(function(e){e.showBackground;return"1"}),(function(e){var n=e.theme,t=e.bgColor,a=e.showBackground;return"radial-gradient(91.85% 100% at 1.84% 0%, ".concat(t," 0%, ").concat(a?n.black:n.bg5," 100%) ")}),(function(e){var n=e.theme;return e.showBackground?n.white:n.text1}),(function(e){return e.showBackground&&"  box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.01), 0px 4px 8px rgba(0, 0, 0, 0.04), 0px 16px 24px rgba(0, 0, 0, 0.04),\n     0px 24px 32px rgba(0, 0, 0, 0.01);"})),bv=cn.default.div(lv(),(function(e){return e.theme.mediaWidth.upToSmall(uv())})),Av=cn.default.div(cv()),vv=cn.default.div(ov(),(function(e){return e.showBackground?"1":"0.4"})),gv=cn.default.div(iv()),yv=cn.default.img(rv());function hv(e){var n,t,a,r,o,c,u,l,s,d=e.stakingInfo,p=(e.apr,d.tokens[0]),m=d.tokens[1],f=d.rewardToken,A=m!==Le[m.chainId],v=d.autocompoundingAddress!==be,g=null!==(n=Vt(p.address))&&void 0!==n?n:Le[p.chainId],y=null!==(t=Vt(m.address))&&void 0!==t?t:Le[m.chainId],h=null!==(a=Vt(f.address))&&void 0!==a?a:Le[f.chainId],E=Boolean(d.stakedAmount.greaterThan("0")),x=cb(m.equals(Le[m.chainId])?p:m);return d.totalStakedInWavax.equalTo(b.f.BigInt(0))?(l=new b.e(b.f.BigInt(0)),s=new b.e(b.f.BigInt(0))):s=(l=d.totalRewardRate.multiply(b.f.BigInt(604800))).divide(d.totalStakedInWavax),i.a.createElement(fv,{showBackground:E,bgColor:x},i.a.createElement(_A,{desaturate:!0}),i.a.createElement($A,null),i.a.createElement(bv,null,A&&i.a.createElement(i.a.Fragment,null,i.a.createElement(yf,{currency0:g,currency1:y,size:24}),i.a.createElement(gr,{fontWeight:600,fontSize:24,style:{marginLeft:"8px"}},null===g||void 0===g?void 0:g.symbol,"-",null===y||void 0===y?void 0:y.symbol),i.a.createElement(Ga,{to:"/mill/".concat(tb(g),"/").concat(tb(y)),style:{width:"100%"}},i.a.createElement($r,{padding:"8px",borderRadius:"8px"},E?"Manage":"Deposit"))),!A&&i.a.createElement(i.a.Fragment,null,i.a.createElement(qp,{currency:g,size:"24px"}),i.a.createElement(gr,{fontWeight:600,fontSize:24,style:{marginLeft:"8px"}},g.symbol),i.a.createElement(Ga,{to:"/oven/".concat(tb(g),"/").concat(tb(h)),style:{width:"100%"}},i.a.createElement($r,{padding:"8px",borderRadius:"8px"},E?"Manage":"Deposit")))),i.a.createElement(mv,null,i.a.createElement(Ur,null,i.a.createElement(gr,null," Earn"),i.a.createElement(gv,null,i.a.createElement(gr,{style:{marginRight:"8px"}},h.symbol),i.a.createElement(qp,{currency:h,size:"24px"}))),i.a.createElement(Ur,null,i.a.createElement(gr,null," Total deposited"),i.a.createElement(gr,null,"".concat(null!==(r=d.totalStakedInWavax.toSignificant(4,{groupSeparator:","}))&&void 0!==r?r:"-"," AVAX"))),i.a.createElement(Ur,null,i.a.createElement(gr,null," Pool rate "),i.a.createElement(gr,null,"".concat(l.toFixed(0,{groupSeparator:","})," ").concat(null===d||void 0===d?void 0:d.rewardToken.symbol," / week"))),i.a.createElement(Ur,null,i.a.createElement(gr,null," Current reward "),i.a.createElement(gr,null,"".concat(null!==(o=s.toFixed(4,{groupSeparator:","}))&&void 0!==o?o:"-"," ").concat(null===d||void 0===d?void 0:d.rewardToken.symbol," / Week per AVAX")))),v&&i.a.createElement(Av,null,i.a.createElement(Ur,null,i.a.createElement(gr,null,"Autocompounding available"),i.a.createElement(yv,{src:av.a,alt:"Yield Yak Logo"}))),E&&i.a.createElement(i.a.Fragment,null,i.a.createElement(nv,null),i.a.createElement(vv,{showBackground:!0},i.a.createElement(vr,{color:"white",fontWeight:500},i.a.createElement("span",null,"Your rate")),i.a.createElement(vr,{style:{textAlign:"right"},color:"white",fontWeight:500},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"0.5rem"}},"\u26a1"),"".concat(null===(c=d.rewardRate)||void 0===c||null===(u=c.multiply("".concat(604800)))||void 0===u?void 0:u.toSignificant(4,{groupSeparator:","})," ").concat(null===d||void 0===d?void 0:d.rewardToken.symbol," / week")))))}function Ev(){var e=Object(rn.a)(["\n     flex-direction: column;\n   "]);return Ev=function(){return e},e}function xv(){var e=Object(rn.a)(["\n     ",";\n   "]);return xv=function(){return e},e}function Ov(){var e=Object(rn.a)(["\n   display: grid;\n   grid-template-columns: 1fr;\n   column-gap: 10px;\n   row-gap: 15px;\n   width: 100%;\n   justify-self: center;\n "]);return Ov=function(){return e},e}function wv(){var e=Object(rn.a)(["\n   max-width: 720px;\n   width: 100%;\n "]);return wv=function(){return e},e}function jv(){var e=Object(rn.a)(["\n   max-width: 640px;\n   width: 100%;\n "]);return jv=function(){return e},e}var kv=Object(cn.default)(fi)(jv()),Cv=Object(cn.default)(fi)(wv()),Tv=cn.default.div(Ov());function Bv(){var e,n,t=fn().chainId,a=YA(FA.PAIR),o=Object(r.useState)(),c=Object(ln.a)(o,2),u=c[0],l=c[1],s=Object(r.useState)(!1),d=Object(ln.a)(s,2),p=d[0],m=d[1];Object(r.useMemo)((function(){Promise.all(null===a||void 0===a?void 0:a.sort((function(e,n){var t,a;return(null===(t=e.totalStakedInWavax)||void 0===t?void 0:t.greaterThan(null!==(a=n.totalStakedInWavax)&&void 0!==a?a:b.f.BigInt(0)))?-1:1})).sort((function(e,n){return e.stakedAmount.greaterThan(b.f.BigInt(0))?n.stakedAmount.greaterThan(b.f.BigInt(0))?0:-1:n.stakedAmount.greaterThan(b.f.BigInt(0))?1:0}))).then((function(e){l(e)}))}),[null===a||void 0===a?void 0:a.length]);var f=Object(cn.default)(Ur)(xv(),(function(e){return e.theme.mediaWidth.upToSmall(Ev())})),A=Boolean("number"===typeof t&&(null!==(e=null===(n=VA[t])||void 0===n?void 0:n.length)&&void 0!==e?e:0)>0);return i.a.createElement(kv,{gap:"lg",justify:"center"},i.a.createElement(Cv,{gap:"md"},i.a.createElement(ZA,null,i.a.createElement(_A,null),i.a.createElement($A,null),i.a.createElement(ev,null,i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Welcome to the World Swap Farm. Lock LP tokens to bake new fresh WLD Token")),i.a.createElement(Ur,null,i.a.createElement(gr,{fontSize:14},"Deposit your LP tokens to receive WLD."))," ")),i.a.createElement(_A,null),i.a.createElement($A,null))),i.a.createElement(fi,{gap:"lg",style:{width:"100%",maxWidth:"720px"}},i.a.createElement(f,{style:{alignItems:"baseline"}},i.a.createElement(Er,{style:{marginTop:"0.5rem"}},"Participating pools")),i.a.createElement(Dr,{justify:"flex-end"},i.a.createElement(vr,{fontWeight:400,padding:"12px"},"Show inactive pools"),i.a.createElement(ao,{id:"toggle-show-inactive",isActive:p,toggle:function(){m(!p)}})),i.a.createElement(Tv,null,A&&0===(null===a||void 0===a?void 0:a.length)?i.a.createElement(hc,{style:{margin:"auto"}}):A?null===u||void 0===u?void 0:u.map((function(e){return(p||e.totalRewardRate.greaterThan(0))&&i.a.createElement(hv,{apr:"0",key:e.stakingRewardAddress,stakingInfo:e})})):"No active rewards")))}function Iv(){var e=Object(rn.a)(["\n     flex-direction: column;\n   "]);return Iv=function(){return e},e}function Sv(){var e=Object(rn.a)(["\n     ",";\n   "]);return Sv=function(){return e},e}function Rv(){var e=Object(rn.a)(["\n   display: grid;\n   grid-template-columns: 1fr;\n   column-gap: 10px;\n   row-gap: 15px;\n   width: 100%;\n   justify-self: center;\n "]);return Rv=function(){return e},e}function Nv(){var e=Object(rn.a)(["\n   max-width: 720px;\n   width: 100%;\n "]);return Nv=function(){return e},e}function Lv(){var e=Object(rn.a)(["\n   max-width: 640px;\n   width: 100%;\n "]);return Lv=function(){return e},e}var Uv=Object(cn.default)(fi)(Lv()),Pv=Object(cn.default)(fi)(Nv()),Dv=cn.default.div(Rv());function Fv(){var e,n,t=fn().chainId,a=YA(FA.SINGLE),o=Object(r.useState)(),c=Object(ln.a)(o,2),u=c[0],l=c[1],s=Object(r.useState)(!1),d=Object(ln.a)(s,2),p=d[0],m=d[1];Object(r.useMemo)((function(){Promise.all(null===a||void 0===a?void 0:a.sort((function(e,n){var t,a;return(null===(t=e.totalStakedInWavax)||void 0===t?void 0:t.greaterThan(null!==(a=n.totalStakedInWavax)&&void 0!==a?a:b.f.BigInt(0)))?-1:1})).sort((function(e,n){return e.stakedAmount.greaterThan(b.f.BigInt(0))?n.stakedAmount.greaterThan(b.f.BigInt(0))?0:-1:n.stakedAmount.greaterThan(b.f.BigInt(0))?1:0}))).then((function(e){l(e)}))}),[null===a||void 0===a?void 0:a.length]);var f=Object(cn.default)(Ur)(Sv(),(function(e){return e.theme.mediaWidth.upToSmall(Iv())})),A=Boolean("number"===typeof t&&(null!==(e=null===(n=VA[t])||void 0===n?void 0:n.length)&&void 0!==e?e:0)>0);return i.a.createElement(Uv,{gap:"lg",justify:"center"},i.a.createElement(Pv,{gap:"md"},i.a.createElement(ZA,null,i.a.createElement(_A,null),i.a.createElement($A,null),i.a.createElement(ev,null,i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Welcome to the World Ocean. Stake tokens to mine fresh WLD")),i.a.createElement(Ur,null,i.a.createElement(gr,{fontSize:14},"Deposit your tokens to receive WLD."))," ")),i.a.createElement(_A,null),i.a.createElement($A,null))),i.a.createElement(fi,{gap:"lg",style:{width:"100%",maxWidth:"720px"}},i.a.createElement(f,{style:{alignItems:"baseline"}},i.a.createElement(Er,{style:{marginTop:"0.5rem"}},"Participating pools")),i.a.createElement(Dr,{justify:"flex-end"},i.a.createElement(vr,{fontWeight:400,padding:"12px"},"Show inactive pools"),i.a.createElement(ao,{id:"toggle-show-inactive",isActive:p,toggle:function(){m(!p)}})),i.a.createElement(Dv,null,A&&0===(null===a||void 0===a?void 0:a.length)?i.a.createElement(hc,{style:{margin:"auto"}}):A?null===u||void 0===u?void 0:u.map((function(e){return(p||e.totalRewardRate.greaterThan(0))&&i.a.createElement(hv,{apr:"0",key:e.stakingRewardAddress,stakingInfo:e})})):"No active rewards")))}function Wv(){var e=Object(rn.a)(["\n  width: 100%;\n  height: 2px;\n  background-color: ;\n  background: linear-gradient(\n    90deg,\n    ","\n      0%,\n    "," 80%\n  );\n  opacity: 0.6;\n"]);return Wv=function(){return e},e}function Mv(){var e=Object(rn.a)(["\n  width: calc(100% - 20px);\n  display: flex;\n  align-items: center;\n"]);return Mv=function(){return e},e}function Vv(){var e=Object(rn.a)(["\n  min-width: 20px;\n  min-height: 20px;\n  background-color: ",";\n  border-radius: 50%;\n  color: ",";\n  display: flex;\n  align-items: center;\n  justify-content: center;\n  line-height: 8px;\n  font-size: 12px;\n"]);return Vv=function(){return e},e}function zv(){var e=Object(rn.a)(["\n  width: 50%;\n"]);return zv=function(){return e},e}function Yv(){var e=Object(rn.a)([""]);return Yv=function(){return e},e}var Hv=Object(cn.default)(fi)(Yv()),qv=Object(cn.default)(Ur)(zv()),Qv=cn.default.div(Vv(),(function(e){var n=e.theme,t=e.confirmed;return e.disabled?n.bg4:t?n.green1:n.primary1}),(function(e){return e.theme.white})),Kv=cn.default.div(Mv()),Jv=cn.default.div(Wv(),(function(e){var n=e.theme,t=e.prevConfirmed;return e.disabled?n.bg4:Object(dn.d)(.5,t?n.green1:n.primary1)}),(function(e){var n=e.theme,t=e.prevConfirmed;return e.disabled?n.bg4:t?n.primary1:n.bg4}));function Xv(e){var n=e.steps,t=e.disabled,a=void 0!==t&&t,r=Object(ma.a)(e,["steps","disabled"]);return i.a.createElement(Hv,Object.assign({justify:"center"},r),i.a.createElement(qv,null,n.map((function(e,t){return i.a.createElement(Kv,{key:t},i.a.createElement(Qv,{confirmed:e,disabled:a||!n[t-1]&&0!==t},e?"\u2713":t+1),i.a.createElement(Jv,{prevConfirmed:e,disabled:a}))})),i.a.createElement(Qv,{disabled:a||!n[n.length-1]},n.length+1)))}var Gv=t(318);function Zv(){var e=Object(rn.a)(["\n  padding: 60px 0;\n"]);return Zv=function(){return e},e}function _v(){var e=Object(rn.a)(["\n  width: 100%;\n  padding: 24px;\n"]);return _v=function(){return e},e}var $v=cn.default.div(_v()),eg=Object(cn.default)(mi)(Zv());function ng(e){var n=e.children,t=e.onDismiss;return i.a.createElement($v,null,i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement(Ja,{onClick:t})),i.a.createElement(eg,null,i.a.createElement(ar,{src:gp.a,alt:"loader",size:"90px"})),i.a.createElement(fi,{gap:"100px",justify:"center"},n,i.a.createElement(xr,null,"Confirm this transaction in your wallet")))}function tg(e){var n=e.children,t=e.onDismiss,a=e.hash,o=Object(r.useContext)(cn.ThemeContext),c=fn().chainId;return i.a.createElement($v,null,i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement(Ja,{onClick:t})),i.a.createElement(eg,null,i.a.createElement(bp.a,{strokeWidth:.5,size:90,color:o.primary1})),i.a.createElement(fi,{gap:"100px",justify:"center"},n,c&&a&&i.a.createElement(er,{href:st(c,a,"transaction"),style:{marginLeft:"4px"}},i.a.createElement(xr,null,"View transaction on the C-Chain Explorer"))))}function ag(){var e=Object(rn.a)(["\n   width: 100%;\n   padding: 1rem;\n "]);return ag=function(){return e},e}function rg(){var e=Object(rn.a)(["\n   display: flex;\n   justify-content: space-between;\n   padding-right: 20px;\n   padding-left: 20px;\n   opacity: ",";\n "]);return rg=function(){return e},e}var ig=cn.default.div(rg(),(function(e){return e.dim?.5:1})),og=Object(cn.default)(fi)(ag());function cg(e){var n=e.isOpen,t=e.onDismiss,a=e.stakingInfo,o=e.userLiquidityUnstaked,c=Object(r.useContext)(cn.ThemeContext),u=fn(),l=u.account,s=u.chainId,d=u.library,p=Object(r.useState)(a.useAutocompounding),m=Object(ln.a)(p,2),f=m[0],A=m[1],v=a.autocompoundingAddress!==be,g=Object(r.useState)(""),y=Object(ln.a)(g,2),E=y[0],O=y[1],w=function(e,n,t){var a,r,i=fn().account,o=dA(e,n),c=o&&t&&b.f.lessThanOrEqual(o.raw,t.raw)?o:void 0;return i||(a="Connect Wallet"),c||(a=null!==(r=a)&&void 0!==r?r:"Enter an amount"),{parsedAmount:c,error:a}}(E,a.stakedAmount.token,o),j=w.parsedAmount,k=w.error,C=Os(j,s),T=new b.l(a.rewardRate.token,"0");(null===C||void 0===C?void 0:C.greaterThan("0"))&&(T=a.getHypotheticalRewardRate(a.stakedAmount.add(C),a.totalStakedAmount.add(C),a.totalRewardRate));var B=uc(),I=Object(r.useState)(!1),S=Object(ln.a)(I,2),R=S[0],N=S[1],L=Object(r.useState)(),U=Object(ln.a)(L,2),P=U[0],D=U[1],F=Object(r.useCallback)((function(){D(void 0),N(!1),t()}),[t]),W=a.tokens[1].equals(Le[s||b.b.AVALANCHE])?void 0:new b.g(new b.l(a.tokens[0],"0"),new b.l(a.tokens[1],"0"),s||b.b.AVALANCHE),M=Nt(W?W.liquidityToken.address:void 0),V=Rt(a.tokens[0].address),z=W?M:V,Y=W?W.liquidityToken:a.tokens[0],H=nA(),q=Object(r.useState)(null),Q=Object(ln.a)(q,2),K=Q[0],J=Q[1],X=eA(j,a.stakingRewardAddress),G=Object(ln.a)(X,2),Z=G[0],_=G[1],$=eA(j,a.autocompoundingAddress),ee=Object(ln.a)($,2),ne=ee[0],te=ee[1],ae=Ut(a.stakingRewardAddress),re=Pt(a.autocompoundingAddress);function ie(){return(ie=Object(x.a)(h.a.mark((function e(){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(N(!0),!(ae&&j&&H)){e.next=15;break}if(!(f&&ne===Vb.APPROVED||!f&&Z===Vb.APPROVED)){e.next=8;break}return n=f&&re?re.deposit:ae.stake,e.next=6,n("0x".concat(j.raw.toString(16)),{gasLimit:35e4});case 6:e.next=15;break;case 8:if(!K){e.next=13;break}(f&&re?re.depositWithPermit:ae.stakeWithPermit)("0x".concat(j.raw.toString(16)),K.deadline,K.v,K.r,K.s,{gasLimit:35e4}).then((function(e){B(e,{summary:"Deposit liquidity"}),D(e.hash)})).catch((function(e){N(!1),console.log(e)})),e.next=15;break;case 13:throw N(!1),new Error("Attempting to stake without approval or a signature. Please contact support.");case 15:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var oe=Object(r.useCallback)((function(e){J(null),O(e)}),[]),ce=EA(o),ue=Boolean(ce&&(null===j||void 0===j?void 0:j.equalTo(ce))),le=Object(r.useCallback)((function(){ce&&oe(ce.toExact())}),[ce,oe]);function se(){return(se=Object(x.a)(h.a.mark((function e(){var n,t,r,i,o,c,u,p;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(z&&d&&H){e.next=2;break}throw new Error("missing dependencies");case 2:if(n=j){e.next=5;break}throw new Error("missing liquidity amount");case 5:if(t=void 0,!Ve.includes(Y)){e.next=10;break}f?te():_(),e.next=19;break;case 10:return e.prev=10,e.next=13,z.nonces(l);case 13:t=e.sent,e.next=19;break;case 16:e.prev=16,e.t0=e.catch(10),f?te():_();case 19:t&&(r=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],i={name:W?"Baguette Liquidity":Y.name,version:"1",chainId:s,verifyingContract:z.address},o=[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}],c=f&&re?a.autocompoundingAddress:a.stakingRewardAddress,u={owner:l,spender:c,value:n.raw.toString(),nonce:t.toHexString(),deadline:H.toNumber()},p=JSON.stringify({types:{EIP712Domain:r,Permit:o},domain:i,primaryType:"Permit",message:u}),d.send("eth_signTypedData_v4",[l,p]).then(Gv.splitSignature).then((function(e){console.log("signature: ",e),J({v:e.v,r:e.r,s:e.s,deadline:H.toNumber()})})).catch((function(e){4001!==(null===e||void 0===e?void 0:e.code)&&(f?te():_())})));case 20:case"end":return e.stop()}}),e,null,[[10,16]])})))).apply(this,arguments)}return i.a.createElement(Ii,{isOpen:n,onDismiss:F,maxHeight:90},!R&&!P&&i.a.createElement(og,{gap:"lg"},i.a.createElement(Ur,null,i.a.createElement(Er,null,"Deposit"),i.a.createElement(Ja,{onClick:F})),i.a.createElement(Yf,{value:E,onUserInput:oe,onMax:le,showMaxButton:!ue,currency:a.stakedAmount.token,pair:W,label:"",disableCurrencySelect:!0,customBalanceText:"Available to deposit: ",id:"stake-liquidity-token"}),i.a.createElement(ig,{dim:!T.greaterThan("0")},i.a.createElement("div",null,i.a.createElement(vr,{fontWeight:600},"Weekly Rewards")),i.a.createElement(vr,null,T.multiply(604800..toString()).toSignificant(4,{groupSeparator:","})," ","BAG / week")),v&&i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontWeight:400,fontSize:14,color:c.text2},"Autocompound with Yield Yak"),i.a.createElement(Gi,{text:"Stake with autocompounding using yieldyak.com. If you are already staking tokens in one mode, you need to withdraw first in order to stake in the other mode"})),i.a.createElement(ao,{id:"toggle-autocompound-yieldyak",isActive:f,toggle:f?function(){A(a.useAutocompounding)}:function(){A(!a.useAutocompounding&&!b.f.greaterThan(a.stakedAmount.raw,b.f.BigInt(0)))}})),i.a.createElement(Ur,null,i.a.createElement(oi,{mr:"0.5rem",onClick:function(){return se.apply(this,arguments)},confirmed:(f?ne===Vb.APPROVED:Z===Vb.APPROVED)||null!==K,disabled:(f?ne!==Vb.NOT_APPROVED:Z!==Vb.NOT_APPROVED)||null!==K},"Approve"),i.a.createElement(ci,{disabled:!!k||null===K&&(f?ne!==Vb.APPROVED:Z!==Vb.APPROVED),error:!!k&&!!j,onClick:function(){return ie.apply(this,arguments)}},null!==k&&void 0!==k?k:"Deposit")),i.a.createElement(Xv,{steps:[(f?ne===Vb.APPROVED:Z===Vb.APPROVED)||null!==K],disabled:!0})),R&&!P&&i.a.createElement(ng,{onDismiss:F},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(hr,null,W?"Depositing Liquidity":"Staking Tokens"),i.a.createElement(yr,{fontSize:20},null===j||void 0===j?void 0:j.toSignificant(4)," ",W?"BGL":Y.symbol))),R&&P&&i.a.createElement(tg,{onDismiss:F,hash:P},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(hr,null,"Transaction Submitted"),i.a.createElement(yr,{fontSize:20},"Deposited ",null===j||void 0===j?void 0:j.toSignificant(4)," ",W?"BGL":Y.symbol))))}var ug=new b.e(b.f.BigInt(1),b.f.BigInt(1e6));function lg(e){var n=e.currencyAmount,t=e.significantDigits,a=void 0===t?6:t;return i.a.createElement(i.a.Fragment,null,n.equalTo(b.f.BigInt(0))?"0":n.greaterThan(ug)?n.toSignificant(a):"<".concat(ug.toSignificant(1)))}function sg(){var e=Object(rn.a)(["\n   width: 100%;\n   padding: 1rem;\n "]);return sg=function(){return e},e}var dg=Object(cn.default)(fi)(sg());function pg(e){var n,t,a,o=e.isOpen,c=e.onDismiss,u=e.stakingInfo,l=fn().account,s=uc(),d=Object(r.useState)(),p=Object(ln.a)(d,2),m=p[0],f=p[1],b=Object(r.useState)(!1),A=Object(ln.a)(b,2),v=A[0],g=A[1];function y(){f(void 0),g(!1),c()}var E,O,w=Ut(u.stakingRewardAddress),j=Pt(u.autocompoundingAddress);function k(){return(k=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w||!(null===u||void 0===u?void 0:u.stakedAmount)){e.next=9;break}if(g(!0),!j||!u.useAutocompounding){e.next=7;break}return e.next=5,j.withdraw("0x".concat(u.sharesAmount.toString(16)),{gasLimit:3e5}).then((function(e){s(e,{summary:"Withdraw deposited tokens"}),f(e.hash)})).catch((function(e){g(!1),console.log(e)}));case 5:e.next=9;break;case 7:return e.next=9,w.exit({gasLimit:3e5}).then((function(e){s(e,{summary:"Withdraw deposited tokens"}),f(e.hash)})).catch((function(e){g(!1),console.log(e)}));case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(l||(E="Connect Wallet"),null===u||void 0===u?void 0:u.stakedAmount)||(E=null!==(O=E)&&void 0!==O?O:"Enter an amount");var C=(null===u||void 0===u?void 0:u.tokens[1])!==Le[null===u||void 0===u?void 0:u.tokens[1].chainId],T=C?"BGL":null===u||void 0===u?void 0:u.tokens[0].symbol,B=null===u||void 0===u?void 0:u.rewardToken;return i.a.createElement(Ii,{isOpen:o,onDismiss:y,maxHeight:90},!v&&!m&&i.a.createElement(dg,{gap:"lg"},i.a.createElement(Ur,null,i.a.createElement(Er,null,"Withdraw"),i.a.createElement(Ja,{onClick:y})),(null===u||void 0===u?void 0:u.stakedAmount)&&i.a.createElement(fi,{justify:"center",gap:"md"},i.a.createElement(yr,{fontWeight:600,fontSize:36},i.a.createElement(lg,{currencyAmount:u.stakedAmount})),i.a.createElement(yr,null,"Deposited ",T," tokens")),(null===u||void 0===u?void 0:u.earnedAmount)&&!u.useAutocompounding&&i.a.createElement(fi,{justify:"center",gap:"md"},i.a.createElement(yr,{fontWeight:600,fontSize:36},i.a.createElement(lg,{currencyAmount:null===u||void 0===u?void 0:u.earnedAmount})),i.a.createElement(yr,null,"Unclaimed ",B.symbol)),C&&i.a.createElement(xr,{style:{textAlign:"center"}},"When you withdraw, your BAG is claimed and your Baguette Liquidity tokens, BGL, are returned to you. You will no longer earn BAG rewards on this liquidity. Your original token liquidity will remain in its liquidity pool."),!C&&!u.useAutocompounding&&i.a.createElement(xr,{style:{textAlign:"center"}},"When you withdraw, your ",B.symbol," is claimed and your ",T," tokens are returned to you. You will no longer earn ",B.symbol," rewards on this staking pool."),i.a.createElement(ci,{disabled:!!E,error:!!E&&!!(null===u||void 0===u?void 0:u.stakedAmount),onClick:function(){return k.apply(this,arguments)}},(null!==(n=E)&&void 0!==n?n:u.useAutocompounding)?"Withdraw":"Withdraw & Claim")),v&&!m&&i.a.createElement(ng,{onDismiss:y},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(yr,{fontSize:20},"Withdrawing ",null===u||void 0===u||null===(t=u.stakedAmount)||void 0===t?void 0:t.toSignificant(6)," ",T),!(null===u||void 0===u?void 0:u.useAutocompounding)&&i.a.createElement(yr,{fontSize:20},"Claiming ",null===u||void 0===u||null===(a=u.earnedAmount)||void 0===a?void 0:a.toSignificant(6)," ",B.symbol))),m&&i.a.createElement(tg,{onDismiss:y,hash:m},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(hr,null,"Transaction Submitted"),i.a.createElement(yr,{fontSize:20},"Withdrew ",T,"!"),!(null===u||void 0===u?void 0:u.useAutocompounding)&&i.a.createElement(yr,{fontSize:20},"Claimed ",B.symbol,"!"))))}function mg(){var e=Object(rn.a)(["\n   width: 100%;\n   padding: 1rem;\n "]);return mg=function(){return e},e}var fg=Object(cn.default)(fi)(mg());function bg(e){var n,t,a,o=e.isOpen,c=e.onDismiss,u=e.stakingInfo,l=fn().account,s=uc(),d=Object(r.useState)(),p=Object(ln.a)(d,2),m=p[0],f=p[1],b=Object(r.useState)(!1),A=Object(ln.a)(b,2),v=A[0],g=A[1];function y(){f(void 0),g(!1),c()}var E,O,w=Ut(u.stakingRewardAddress);function j(){return(j=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!w||!(null===u||void 0===u?void 0:u.stakedAmount)){e.next=4;break}return g(!0),e.next=4,w.getReward({gasLimit:35e4}).then((function(e){s(e,{summary:"Claim accumulated BAG rewards"}),f(e.hash)})).catch((function(e){g(!1),console.log(e)}));case 4:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(l||(E="Connect Wallet"),null===u||void 0===u?void 0:u.stakedAmount)||(E=null!==(O=E)&&void 0!==O?O:"Enter an amount");return i.a.createElement(Ii,{isOpen:o,onDismiss:y,maxHeight:90},!v&&!m&&i.a.createElement(fg,{gap:"lg"},i.a.createElement(Ur,null,i.a.createElement(Er,null,"Claim"),i.a.createElement(Ja,{onClick:y})),(null===u||void 0===u?void 0:u.earnedAmount)&&i.a.createElement(fi,{justify:"center",gap:"md"},i.a.createElement(yr,{fontWeight:600,fontSize:36},null===u||void 0===u||null===(n=u.earnedAmount)||void 0===n?void 0:n.toSignificant(6)),i.a.createElement(yr,null,"Unclaimed BAG")),i.a.createElement(xr,{style:{textAlign:"center"}},"When you claim without withdrawing your tokens remain in the mining pool."),i.a.createElement(ci,{disabled:!!E,error:!!E&&!!(null===u||void 0===u?void 0:u.stakedAmount),onClick:function(){return j.apply(this,arguments)}},null!==(t=E)&&void 0!==t?t:"Claim")),v&&!m&&i.a.createElement(ng,{onDismiss:y},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(yr,{fontSize:20},"Claiming ",null===u||void 0===u||null===(a=u.earnedAmount)||void 0===a?void 0:a.toSignificant(6)," BAG"))),m&&i.a.createElement(tg,{onDismiss:y,hash:m},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(hr,null,"Transaction Submitted"),i.a.createElement(yr,{fontSize:20},"Claimed BAG!"))))}var Ag=t(182),vg=t(144),gg=t.n(vg),yg=t(145),hg=t.n(yg);function Eg(){var e=Object(rn.a)(["\n  display: flex;\n  margin-top: -4px;\n  margin-left: 4px;\n  width: 52px;\n"]);return Eg=function(){return e},e}function xg(){var e=Object(rn.a)(["\n     flex-direction: column;\n     gap: 12px;\n   "]);return xg=function(){return e},e}function Og(){var e=Object(rn.a)(["\n   justify-content: center;\n   gap: 12px;\n   ",";\n "]);return Og=function(){return e},e}function wg(){var e=Object(rn.a)(["\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #27ae60 0%, #000000 100%);\n   overflow: hidden;\n "]);return wg=function(){return e},e}function jg(){var e=Object(rn.a)(["\n   background: none;\n   border: 1px solid ",";\n   padding: 1rem;\n   z-index: 1;\n "]);return jg=function(){return e},e}function kg(){var e=Object(rn.a)(["\n   background: ",";\n   opacity: ",";\n   margin-top: -40px;\n   padding: 0 1.25rem 1rem 1.25rem;\n   padding-top: 32px;\n   z-index: 1;\n "]);return kg=function(){return e},e}function Cg(){var e=Object(rn.a)(["\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #1e1a31 0%, #3d51a5 100%);\n   z-index: 2;\n   box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);\n   background: ",";\n "]);return Cg=function(){return e},e}function Tg(){var e=Object(rn.a)(["\n   border-radius: 12px;\n   width: 100%;\n   position: relative;\n "]);return Tg=function(){return e},e}function Bg(){var e=Object(rn.a)(["\n   position: relative;\n   max-width: 640px;\n   width: 100%;\n   opacity: ",";\n "]);return Bg=function(){return e},e}function Ig(){var e=Object(rn.a)(["\n   max-width: 640px;\n   width: 100%;\n "]);return Ig=function(){return e},e}var Sg=Object(cn.default)(fi)(Ig()),Rg=Object(cn.default)(fi)(Bg(),(function(e){return e.dim?.6:1})),Ng=Object(cn.default)(fi)(Tg()),Lg=Object(cn.default)(ZA)(Cg(),(function(e){var n=e.theme,t=e.bgColor,a=e.showBackground;return"radial-gradient(91.85% 100% at 1.84% 0%, ".concat(t," 0%,  ").concat(a?n.black:n.bg5," 100%) ")})),Ug=Object(cn.default)(ZA)(kg(),(function(e){return e.theme.bg3}),(function(e){return e.dim?.4:1})),Pg=Object(cn.default)(ZA)(jg(),(function(e){return e.theme.bg4})),Dg=Object(cn.default)(ZA)(wg()),Fg=Object(cn.default)(Ur)(Og(),(function(e){return e.theme.mediaWidth.upToSmall(xg())})),Wg=cn.default.img(Eg());function Mg(e){var n,t,a,o,c,u,l,s,p,m,f,A,v,g,y,h,E,x,O,w=e.match.params,j=w.currencyIdA,k=w.currencyIdB,C=fn(),T=C.account,B=C.chainId,I=[Vt(j),Vt(k)],S=I[0],R=I[1],N=xs(null!==S&&void 0!==S?S:void 0,B),L=xs(null!==R&&void 0!==R?R:void 0,B),U=Ts(N,L),P=Object(ln.a)(U,2)[1],D=null===(n=YA(FA.PAIR,P))||void 0===n?void 0:n[0],F=null===D||void 0===D?void 0:D.totalStakedInWavax,W=cb(L),M=ea(),V=sa(null!==T&&void 0!==T?T:void 0,null===D||void 0===D||null===(t=D.stakedAmount)||void 0===t?void 0:t.token),z=Boolean((null===D||void 0===D||null===(a=D.stakedAmount)||void 0===a?void 0:a.equalTo("0"))&&(null===V||void 0===V?void 0:V.equalTo("0"))),Y=Object(r.useState)(!1),H=Object(ln.a)(Y,2),q=H[0],Q=H[1],K=Object(r.useState)(!1),J=Object(ln.a)(K,2),X=J[0],G=J[1],Z=Object(r.useState)(!1),_=Object(ln.a)(Z,2),$=_[0],ee=_[1],ne=!(null===D||void 0===D?void 0:D.stakedAmount)||D.stakedAmount.equalTo(b.f.BigInt(0)),te=null!==(o=null===D||void 0===D||null===(c=D.earnedAmount)||void 0===c?void 0:c.toFixed(6))&&void 0!==o?o:"0",ae=null!==(u=Ic(te))&&void 0!==u?u:"0",re=Ln(),ie=Object(r.useCallback)((function(){T?Q(!0):re()}),[T,re]);return i.a.createElement(Sg,{gap:"lg",justify:"center"},i.a.createElement(Ur,{style:{gap:"24px"}},i.a.createElement(Er,{style:{margin:0}},null===S||void 0===S?void 0:S.symbol,"-",null===R||void 0===R?void 0:R.symbol," Liquidity Mining"),i.a.createElement(yf,{currency0:null!==S&&void 0!==S?S:void 0,currency1:null!==R&&void 0!==R?R:void 0,size:24})),i.a.createElement(Fg,{style:{gap:"24px"}},i.a.createElement(Pg,null,i.a.createElement(fi,{gap:"sm"},i.a.createElement(yr,{style:{margin:0}},"Total Staked"),i.a.createElement(yr,{fontSize:24,fontWeight:500},"".concat(null!==(l=null===F||void 0===F?void 0:F.toSignificant(4,{groupSeparator:","}))&&void 0!==l?l:"-"," AVAX")))),i.a.createElement(Pg,null,i.a.createElement(fi,{gap:"sm"},i.a.createElement(yr,{style:{margin:0}},"Pool Rate"),i.a.createElement(yr,{fontSize:24,fontWeight:500},null!==(s=null===D||void 0===D||null===(p=D.totalRewardRate)||void 0===p||null===(m=p.multiply(604800..toString()))||void 0===m?void 0:m.toFixed(0,{groupSeparator:","}))&&void 0!==s?s:"-"," BAG / week")))),z&&i.a.createElement(Dg,null,i.a.createElement(_A,null),i.a.createElement($A,null),i.a.createElement(ev,null,i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Step 1. Get Baguette Liquidity tokens (BGL)")),i.a.createElement(Ur,{style:{marginBottom:"1rem"}},i.a.createElement(gr,{fontSize:14},"BGL tokens are required. Once you've added liquidity to the ".concat(null===S||void 0===S?void 0:S.symbol,"-").concat(null===R||void 0===R?void 0:R.symbol," pool you can stake your liquidity tokens on this page."))),i.a.createElement($r,{padding:"8px",borderRadius:"8px",width:"fit-content",as:d.b,to:"/add/".concat(S&&tb(S),"/").concat(R&&tb(R))},"Add ".concat(null===S||void 0===S?void 0:S.symbol,"-").concat(null===R||void 0===R?void 0:R.symbol," liquidity")))),i.a.createElement(_A,null),i.a.createElement($A,null)),D&&i.a.createElement(i.a.Fragment,null,i.a.createElement(cg,{isOpen:q,onDismiss:function(){return Q(!1)},stakingInfo:D,userLiquidityUnstaked:V}),i.a.createElement(pg,{isOpen:X,onDismiss:function(){return G(!1)},stakingInfo:D}),i.a.createElement(bg,{isOpen:$,onDismiss:function(){return ee(!1)},stakingInfo:D})),i.a.createElement(Rg,{gap:"lg",justify:"center",dim:z},i.a.createElement(Ng,{gap:"lg",justify:"center"},i.a.createElement(Lg,{disabled:ne,bgColor:W,showBackground:!z},i.a.createElement(ev,null,i.a.createElement(_A,{desaturate:!0}),i.a.createElement($A,null),i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Your liquidity deposits")),i.a.createElement(Ur,{style:{alignItems:"baseline"}},i.a.createElement(gr,{fontSize:36,fontWeight:600},null!==(f=null===D||void 0===D||null===(A=D.stakedAmount)||void 0===A?void 0:A.toSignificant(6))&&void 0!==f?f:"-"),i.a.createElement(gr,null,"BGL ",null===S||void 0===S?void 0:S.symbol,"-",null===R||void 0===R?void 0:R.symbol))))),i.a.createElement(Ug,{dim:null===D||void 0===D||null===(v=D.stakedAmount)||void 0===v?void 0:v.equalTo(b.f.BigInt(0))},i.a.createElement(_A,{desaturate:!0}),i.a.createElement($A,null),i.a.createElement(fi,{gap:"sm"},!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(Ur,null,i.a.createElement("div",null,i.a.createElement(vr,null,"Your unclaimed BAG")),(null===D||void 0===D?void 0:D.earnedAmount)&&b.f.notEqual(Ye,null===D||void 0===D||null===(g=D.earnedAmount)||void 0===g?void 0:g.raw)&&i.a.createElement(ai,{padding:"8px",borderRadius:"8px",width:"fit-content",onClick:function(){return ee(!0)}},"Claim")),i.a.createElement(Ur,{style:{alignItems:"baseline"}},!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(hr,{fontSize:36,fontWeight:600},i.a.createElement(Ag.a,{key:te,isCounting:!0,decimalPlaces:4,start:parseFloat(ae),end:parseFloat(te),thousandsSeparator:",",duration:1})),(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(Fr,null,i.a.createElement(hr,{fontSize:16,fontWeight:500},"Autocompounding with"),i.a.createElement(Wg,{src:M?hg.a:gg.a,alt:"Yield Yak Logo"})),i.a.createElement(vr,{fontSize:16,fontWeight:500},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px "}},"\u26a1"),null!==(y=null===D||void 0===D||null===(h=D.rewardRate)||void 0===h||null===(E=h.multiply(604800..toString()))||void 0===E?void 0:E.toSignificant(4,{groupSeparator:","}))&&void 0!==y?y:"-"," BAG / week"))))),!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(br,{style:{textAlign:"center"},fontSize:14},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px"}},"\u2b50\ufe0f"),"When you withdraw, the contract will automagically claim BAG on your behalf!"),(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(br,{style:{textAlign:"center"},fontSize:14},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px"}},"\u2b50\ufe0f"),"Autocompounding automagically converts BAG rewards in BGL tokens. Wait and see your deposited BGL amount increase over time! When you withdraw, you receive the last updated amount of BGL tokens."),!z&&i.a.createElement(Fg,{style:{marginBottom:"1rem"}},i.a.createElement($r,{padding:"8px",borderRadius:"8px",width:"160px",onClick:ie},(null===D||void 0===D||null===(x=D.stakedAmount)||void 0===x?void 0:x.greaterThan(b.f.BigInt(0)))?"Deposit":"Deposit BGL Tokens"),(null===D||void 0===D||null===(O=D.stakedAmount)||void 0===O?void 0:O.greaterThan(b.f.BigInt(0)))&&i.a.createElement(i.a.Fragment,null,i.a.createElement($r,{padding:"8px",borderRadius:"8px",width:"160px",onClick:function(){return G(!0)}},"Withdraw"))),V?V.equalTo("0")?null:i.a.createElement(br,null,V.toSignificant(6)," BGL tokens available"):null))}function Vg(){var e=Object(rn.a)(["\n   width: 100%;\n   padding: 1rem;\n "]);return Vg=function(){return e},e}var zg=Object(cn.default)(fi)(Vg());function Yg(e){var n,t,a=e.isOpen,o=e.onDismiss,c=e.stakingInfo,u=fn().account,l=uc(),s=Object(r.useState)(),d=Object(ln.a)(s,2),p=d[0],m=d[1],f=Object(r.useState)(!1),b=Object(ln.a)(f,2),A=b[0],v=b[1];function g(){m(void 0),v(!1),o()}var y,E,O=Ut(c.stakingRewardAddress),w=null===c||void 0===c?void 0:c.earnedAmount;function j(){return(j=Object(x.a)(h.a.mark((function e(){return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:v(!0),O&&w&&O.compoundReward({gasLimit:35e4}).then((function(e){l(e,{summary:"Compounding rewards"}),m(e.hash)})).catch((function(e){v(!1),console.log(e)}));case 2:case"end":return e.stop()}}),e)})))).apply(this,arguments)}(u||(y="Connect Wallet"),null===c||void 0===c?void 0:c.stakedAmount)||(y=null!==(E=y)&&void 0!==E?E:"Enter an amount");return i.a.createElement(Ii,{isOpen:a,onDismiss:g,maxHeight:90},!A&&!p&&i.a.createElement(zg,{gap:"lg"},i.a.createElement(Ur,null,i.a.createElement(Er,null,"Compound"),i.a.createElement(Ja,{onClick:g})),(null===c||void 0===c?void 0:c.earnedAmount)&&i.a.createElement(fi,{justify:"center",gap:"md"},i.a.createElement(yr,{fontWeight:600,fontSize:36},null===w||void 0===w?void 0:w.toSignificant(6)),i.a.createElement(yr,null,"Available BAG")),i.a.createElement(xr,{style:{textAlign:"center"}},"When you compound earned rewards, the initial staked tokens remain in the mining pool."),i.a.createElement(ci,{disabled:!!y,error:!!y&&!!(null===c||void 0===c?void 0:c.stakedAmount),onClick:function(){return j.apply(this,arguments)}},null!==(n=y)&&void 0!==n?n:"Compound")),A&&!p&&i.a.createElement(ng,{onDismiss:g},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(yr,{fontSize:20},"Staking ",null===c||void 0===c||null===(t=c.earnedAmount)||void 0===t?void 0:t.toSignificant(6)))),A&&p&&i.a.createElement(tg,{onDismiss:g,hash:p},i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(hr,null,"Transaction Submitted"),i.a.createElement(yr,{fontSize:20},"BAG compounded"))))}function Hg(){var e=Object(rn.a)(["\n  display: flex;\n  margin-top: -4px;\n  margin-left: 4px;\n  width: 52px\n"]);return Hg=function(){return e},e}function qg(){var e=Object(rn.a)(["\n     flex-direction: column;\n     gap: 12px;\n   "]);return qg=function(){return e},e}function Qg(){var e=Object(rn.a)(["\n   justify-content: center;\n   gap: 12px;\n   ",";\n "]);return Qg=function(){return e},e}function Kg(){var e=Object(rn.a)(["\n   background: none;\n   border: 1px solid ",";\n   padding: 1rem;\n   z-index: 1;\n "]);return Kg=function(){return e},e}function Jg(){var e=Object(rn.a)(["\n   background: ",";\n   opacity: ",";\n   margin-top: -40px;\n   padding: 0 1.25rem 1rem 1.25rem;\n   padding-top: 32px;\n   z-index: 1;\n "]);return Jg=function(){return e},e}function Xg(){var e=Object(rn.a)(["\n   background: radial-gradient(76.02% 75.41% at 1.84% 0%, #1e1a31 0%, #3d51a5 100%);\n   z-index: 2;\n   box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);\n   background: ",";\n "]);return Xg=function(){return e},e}function Gg(){var e=Object(rn.a)(["\n   border-radius: 12px;\n   width: 100%;\n   position: relative;\n "]);return Gg=function(){return e},e}function Zg(){var e=Object(rn.a)(["\n   position: relative;\n   max-width: 640px;\n   width: 100%;\n   opacity: ",";\n "]);return Zg=function(){return e},e}function _g(){var e=Object(rn.a)(["\n   max-width: 640px;\n   width: 100%;\n "]);return _g=function(){return e},e}var $g=Object(cn.default)(fi)(_g()),ey=Object(cn.default)(fi)(Zg(),(function(e){return e.dim?.6:1})),ny=Object(cn.default)(fi)(Gg()),ty=Object(cn.default)(ZA)(Xg(),(function(e){var n=e.theme,t=e.bgColor,a=e.showBackground;return"radial-gradient(91.85% 100% at 1.84% 0%, ".concat(t," 0%,  ").concat(a?n.black:n.bg5," 100%) ")})),ay=Object(cn.default)(ZA)(Jg(),(function(e){return e.theme.bg3}),(function(e){return e.dim?.4:1})),ry=Object(cn.default)(ZA)(Kg(),(function(e){return e.theme.bg4})),iy=Object(cn.default)(Ur)(Qg(),(function(e){return e.theme.mediaWidth.upToSmall(qg())})),oy=cn.default.img(Hg());function cy(e){var n,t,a,o,c,u,l,s,d,p,m,f,A,v,g,y,h,E,x,O,w=e.match.params,j=w.currencyId,k=w.rewardCurrencyId,C=fn(),T=C.account,B=C.chainId,I=Vt(j),S=Vt(k),R=null!==(n=xs(null!==I&&void 0!==I?I:void 0,B))&&void 0!==n?n:Le[B||b.b.AVALANCHE],N=null!==(t=xs(null!==S&&void 0!==S?S:void 0,B))&&void 0!==t?t:Le[B||b.b.AVALANCHE],L=Ts(R,Le[B||b.b.AVALANCHE]),U=Object(ln.a)(L,2)[1],P=YA(FA.SINGLE,U),D=null===P||void 0===P?void 0:P.filter((function(e){return e.rewardToken.equals(N)}))[0],F=null===D||void 0===D?void 0:D.totalStakedInWavax,W=cb(R),M=ea(),V=sa(null!==T&&void 0!==T?T:void 0,null===D||void 0===D||null===(a=D.stakedAmount)||void 0===a?void 0:a.token),z=Object(r.useState)(!1),Y=Object(ln.a)(z,2),H=Y[0],q=Y[1],Q=Object(r.useState)(!1),K=Object(ln.a)(Q,2),J=K[0],X=K[1],G=Object(r.useState)(!1),Z=Object(ln.a)(G,2),_=Z[0],$=Z[1],ee=Object(r.useState)(!1),ne=Object(ln.a)(ee,2),te=ne[0],ae=ne[1],re=!(null===D||void 0===D?void 0:D.stakedAmount)||D.stakedAmount.equalTo(b.f.BigInt(0)),ie=null!==(o=null===D||void 0===D||null===(c=D.earnedAmount)||void 0===c?void 0:c.toFixed(6))&&void 0!==o?o:"0",oe=null!==(u=Ic(ie))&&void 0!==u?u:"0",ce=Ln(),ue=Object(r.useCallback)((function(){T?q(!0):ce()}),[T,ce]);return i.a.createElement($g,{gap:"lg",justify:"center"},i.a.createElement(Ur,{style:{gap:"24px"}},i.a.createElement(Er,{style:{margin:0}},null===I||void 0===I?void 0:I.symbol," Token Staking"),i.a.createElement(qp,{currency:null!==I&&void 0!==I?I:void 0,size:"24px"})),i.a.createElement(iy,{style:{gap:"24px"}},i.a.createElement(ry,null,i.a.createElement(fi,{gap:"sm"},i.a.createElement(yr,{style:{margin:0}},"Total Staked"),i.a.createElement(yr,{fontSize:24,fontWeight:500},"".concat(null!==(l=null===F||void 0===F?void 0:F.toSignificant(4,{groupSeparator:","}))&&void 0!==l?l:"-"," AVAX")))),i.a.createElement(ry,null,i.a.createElement(fi,{gap:"sm"},i.a.createElement(yr,{style:{margin:0}},"Pool Rate"),i.a.createElement(yr,{fontSize:24,fontWeight:500},null!==(s=null===D||void 0===D||null===(d=D.totalRewardRate)||void 0===d||null===(p=d.multiply(604800..toString()))||void 0===p?void 0:p.toFixed(0,{groupSeparator:","}))&&void 0!==s?s:"-"," ".concat(null===D||void 0===D?void 0:D.rewardToken.symbol," / week"))))),D&&i.a.createElement(i.a.Fragment,null,i.a.createElement(cg,{isOpen:H,onDismiss:function(){return q(!1)},stakingInfo:D,userLiquidityUnstaked:V}),i.a.createElement(pg,{isOpen:J,onDismiss:function(){return X(!1)},stakingInfo:D}),i.a.createElement(bg,{isOpen:_,onDismiss:function(){return $(!1)},stakingInfo:D}),i.a.createElement(Yg,{isOpen:te,onDismiss:function(){return ae(!1)},stakingInfo:D})),i.a.createElement(ey,{gap:"lg",justify:"center",dim:!1},i.a.createElement(ny,{gap:"lg",justify:"center"},i.a.createElement(ty,{disabled:re,bgColor:W,showBackground:!0},i.a.createElement(ev,null,i.a.createElement(_A,{desaturate:!0}),i.a.createElement($A,null),i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Your token deposits")),i.a.createElement(Ur,{style:{alignItems:"baseline"}},i.a.createElement(gr,{fontSize:36,fontWeight:600},null!==(m=null===D||void 0===D||null===(f=D.stakedAmount)||void 0===f?void 0:f.toSignificant(6))&&void 0!==m?m:"-"),i.a.createElement(gr,null,null===I||void 0===I?void 0:I.symbol))))),i.a.createElement(ay,{dim:null===D||void 0===D||null===(A=D.stakedAmount)||void 0===A?void 0:A.equalTo(b.f.BigInt(0))},i.a.createElement(_A,{desaturate:!0}),i.a.createElement($A,null),i.a.createElement(fi,{gap:"sm"},!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(Ur,null,i.a.createElement("div",null,i.a.createElement(vr,null,"Your unclaimed ",null===D||void 0===D?void 0:D.rewardToken.symbol)),R.equals(N)&&(null===D||void 0===D?void 0:D.earnedAmount)&&b.f.notEqual(Ye,null===D||void 0===D||null===(v=D.earnedAmount)||void 0===v?void 0:v.raw)&&i.a.createElement(ai,{padding:"8px",borderRadius:"8px",width:"fit-content",onClick:function(){return ae(!0)}},"Compound"),(null===D||void 0===D?void 0:D.earnedAmount)&&b.f.notEqual(Ye,null===D||void 0===D||null===(g=D.earnedAmount)||void 0===g?void 0:g.raw)&&i.a.createElement(ai,{padding:"8px",borderRadius:"8px",width:"fit-content",onClick:function(){return $(!0)}},"Claim")),i.a.createElement(Ur,{style:{alignItems:"baseline"}},!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(hr,{fontSize:36,fontWeight:600},i.a.createElement(Ag.a,{key:ie,isCounting:!0,decimalPlaces:4,start:parseFloat(oe),end:parseFloat(ie),thousandsSeparator:",",duration:1})),(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(Fr,null,i.a.createElement(hr,{fontSize:16,fontWeight:500},"Autocompounding with"),i.a.createElement(oy,{src:M?hg.a:gg.a,alt:"Yield Yak Logo"})),i.a.createElement(vr,{fontSize:16,fontWeight:500},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px "}},"\u26a1"),null!==(y=null===D||void 0===D||null===(h=D.rewardRate)||void 0===h||null===(E=h.multiply(604800..toString()))||void 0===E?void 0:E.toSignificant(4,{groupSeparator:","}))&&void 0!==y?y:"-"," ".concat(null===D||void 0===D?void 0:D.rewardToken.symbol," / week")))))),!(null===D||void 0===D?void 0:D.useAutocompounding)&&i.a.createElement(br,{style:{textAlign:"center"},fontSize:14},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px"}},"\u2b50\ufe0f"),"When you withdraw, the contract will automagically claim ",null===D||void 0===D?void 0:D.rewardToken.symbol," on your behalf!"),(null===D||void 0===D?void 0:D.useAutocompounding)&&"BAG"===(null===I||void 0===I?void 0:I.symbol)&&i.a.createElement(br,{style:{textAlign:"center"},fontSize:14},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px"}},"\u2b50\ufe0f"),"Autocompounding automagically deposits your BAG rewards, wait and see your deposited BAG amount increase! When you withdraw, you receive the last updated amount of BAG tokens."),(null===D||void 0===D?void 0:D.useAutocompounding)&&"BAG"!==(null===I||void 0===I?void 0:I.symbol)&&i.a.createElement(br,{style:{textAlign:"center"},fontSize:14},i.a.createElement("span",{role:"img","aria-label":"wizard-icon",style:{marginRight:"8px"}},"\u2b50\ufe0f"),"Autocompounding automagically converts your BAG rewards into ",null===I||void 0===I?void 0:I.symbol,", wait and see your deposited ",null===I||void 0===I?void 0:I.symbol," amount increase! When you withdraw, you receive the last updated amount of ",null===I||void 0===I?void 0:I.symbol," tokens."),i.a.createElement(iy,{style:{marginBottom:"1rem"}},i.a.createElement($r,{padding:"8px",borderRadius:"8px",width:"160px",onClick:ue},(null===D||void 0===D||null===(x=D.stakedAmount)||void 0===x?void 0:x.greaterThan(b.f.BigInt(0)))?"Stake":"Stake Tokens"),(null===D||void 0===D||null===(O=D.stakedAmount)||void 0===O?void 0:O.greaterThan(b.f.BigInt(0)))&&i.a.createElement(i.a.Fragment,null,i.a.createElement($r,{padding:"8px",borderRadius:"8px",width:"160px",onClick:function(){return X(!0)}},"Withdraw"))),V?V.equalTo("0")?null:i.a.createElement(br,null,V.toSignificant(6)," ",R.symbol," tokens available"):null))}function uy(){return i.a.createElement(on.a,{to:"/add/"})}var ly=/^(0x[a-fA-F0-9]{40})-(0x[a-fA-F0-9]{40})$/;function sy(e){var n=e.match.params.currencyIdA.match(ly);return(null===n||void 0===n?void 0:n.length)?i.a.createElement(on.a,{to:"/add/".concat(n[1],"/").concat(n[2])}):i.a.createElement(PA,e)}function dy(e){var n=e.match.params,t=n.currencyIdA,a=n.currencyIdB;return t.toLowerCase()===a.toLowerCase()?i.a.createElement(on.a,{to:"/add/".concat(t)}):i.a.createElement(PA,e)}function py(){var e=Object(rn.a)(["\n  border: 1px solid ",";\n  padding: 16px 12px;\n  border-radius: 12px;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n  align-items: center;\n"]);return py=function(){return e},e}function my(){var e=Object(rn.a)(["\n    width: 48%;\n  "]);return my=function(){return e},e}function fy(){var e=Object(rn.a)(["\n  width: fit-content;\n  ",";\n"]);return fy=function(){return e},e}function by(){var e=Object(rn.a)(["\n    width: 48%;\n  "]);return by=function(){return e},e}function Ay(){var e=Object(rn.a)(["\n  width: fit-content;\n  ",";\n"]);return Ay=function(){return e},e}function vy(){var e=Object(rn.a)(["\n    width: 100%;\n    flex-direction: row-reverse;\n    justify-content: space-between;\n  "]);return vy=function(){return e},e}function gy(){var e=Object(rn.a)(["\n  gap: 8px;\n  ",";\n"]);return gy=function(){return e},e}function yy(){var e=Object(rn.a)(["\n    flex-wrap: wrap;\n    gap: 12px;\n    width: 100%;\n    flex-direction: column-reverse;\n  "]);return yy=function(){return e},e}function hy(){var e=Object(rn.a)(["\n  ",";\n"]);return hy=function(){return e},e}function Ey(){var e=Object(rn.a)(["\n   background: #2172E5;\n   overflow: hidden;\n "]);return Ey=function(){return e},e}function xy(){var e=Object(rn.a)(["\n  max-width: 600px;\n  width: 100%;\n  background-color: #1E1E1E;  /* Set your desired background color here */\n  border-radius: 12px;         /* Add border-radius to make it more like a box */\n  padding: 10px;               /* Add padding inside the box */\n  box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.1); /* Add a subtle shadow for depth */\n  margin: 20px auto;           /* Center the box horizontally and add vertical spacing */\n  box-sizing: border-box;      /* Ensure padding is included in the element's total width/height */\n"]);return xy=function(){return e},e}var Oy,wy=Object(cn.default)(fi)(xy()),jy=Object(cn.default)(vs)(Ey()),ky=Object(cn.default)(Ur)(hy(),(function(e){return e.theme.mediaWidth.upToSmall(yy())})),Cy=Object(cn.default)(Fr)(gy(),(function(e){return e.theme.mediaWidth.upToSmall(vy())})),Ty=Object(cn.default)($r)(Ay(),(function(e){return e.theme.mediaWidth.upToSmall(by())})),By=Object(cn.default)(ni)(fy(),(function(e){return e.theme.mediaWidth.upToSmall(my())})),Iy=cn.default.div(py(),(function(e){return e.theme.text4}));function Sy(){var e=Object(r.useContext)(cn.ThemeContext),n=fn(),t=n.account,a=n.chainId,o=function(){var e=fn().chainId,n=Dt(),t=Object(r.useMemo)((function(){var n;return e&&null!==(n=Me[e])&&void 0!==n?n:[]}),[e]),a=Object(r.useMemo)((function(){return e?vn()(Object.keys(n),(function(t){var a,r=n[t];return(null!==(a=We[e])&&void 0!==a?a:[]).map((function(e){return e.address===r.address?null:[e,r]})).filter((function(e){return null!==e}))})):[]}),[n,e]),i=Object(s.d)((function(e){return e.user.pairs})),o=Object(r.useMemo)((function(){if(!e||!i)return[];var n=i[e];return n?Object.keys(n).map((function(e){return[$t(n[e].token0),$t(n[e].token1)]})):[]}),[i,e]),c=Object(r.useMemo)((function(){return o.concat(a).concat(t)}),[a,t,o]);return Object(r.useMemo)((function(){var e=c.reduce((function(e,n){var t=Object(ln.a)(n,2),a=t[0],r=t[1],i=a.sortsBefore(r),o=i?"".concat(a.address,":").concat(r.address):"".concat(r.address,":").concat(a.address);return e[o]||(e[o]=i?[a,r]:[r,a]),e}),{});return Object.keys(e).map((function(n){return e[n]}))}),[c])}(),c=Object(r.useMemo)((function(){return o.map((function(e){return{liquidityToken:oa(e,a||b.b.AVALANCHE),tokens:e}}))}),[o,a]),u=ua(null!==t&&void 0!==t?t:void 0,Object(r.useMemo)((function(){return c.map((function(e){return e.liquidityToken}))}),[c])),l=Object(ln.a)(u,2),p=l[0],m=l[1],f=Object(r.useMemo)((function(){return c.filter((function(e){var n,t=e.liquidityToken;return null===(n=p[t.address])||void 0===n?void 0:n.greaterThan("0")}))}),[c,p]),A=Cs(f.map((function(e){return e.tokens}))),v=m||(null===A||void 0===A?void 0:A.length)<f.length||(null===A||void 0===A?void 0:A.some((function(e){return!e}))),g=A.map((function(e){return Object(ln.a)(e,2)[1]})).filter((function(e){return Boolean(e)}));return i.a.createElement(i.a.Fragment,null,i.a.createElement(wy,null,i.a.createElement(_f,{active:"pool"}),i.a.createElement(jy,null,i.a.createElement(gs,null),i.a.createElement(ys,null),i.a.createElement(hs,null,i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(gr,{fontWeight:600},"Liquidity provider rewards")),i.a.createElement(Ur,null,i.a.createElement(gr,{fontSize:14},"Liquidity providers earn a 0.3% fee on all trades proportional to their share of the pool. Fees are added to the pool, accrue in real time and can be claimed by withdrawing your liquidity.")))),i.a.createElement(ys,null)),i.a.createElement(fi,{gap:"lg",justify:"center"},i.a.createElement(fi,{gap:"lg",style:{width:"100%"}},i.a.createElement(ky,{style:{marginTop:"1rem"},padding:"0"},i.a.createElement(rr,null,i.a.createElement(Er,{style:{marginTop:"0.5rem",justifySelf:"flex-start"}},"Your liquidity")),i.a.createElement(Cy,null,i.a.createElement(By,{as:d.b,padding:"6px 8px",to:"/create/AVAX"},"Create a pair"),i.a.createElement(Ty,{id:"join-pool-button",as:d.b,padding:"6px 8px",to:"/add/AVAX"},i.a.createElement(sn.b,{fontWeight:500,fontSize:16},"Add Liquidity")))),t?v?i.a.createElement(Iy,null,i.a.createElement(yr,{color:e.text3,textAlign:"center"},i.a.createElement(Cb,null,"Loading"))):(null===g||void 0===g?void 0:g.length)>0?i.a.createElement(i.a.Fragment,null,g.map((function(e){return i.a.createElement(Fb,{key:e.liquidityToken.address,pair:e})}))):i.a.createElement(Iy,null,i.a.createElement(yr,{color:e.text3,textAlign:"center"},"No liquidity found.")):i.a.createElement(wa,{padding:"40px"},i.a.createElement(yr,{color:e.text3,textAlign:"center"},"Connect to a wallet to view your liquidity.")),i.a.createElement(fi,{justify:"center",gap:"md"},i.a.createElement(sn.b,{textAlign:"center",fontSize:14,style:{padding:".5rem 0 .5rem 0"}},"Don't see a pool you joined?"," ",i.a.createElement(Ga,{id:"import-pool-link",to:"/find"},"Import it.")))))))}function Ry(){var e,n=fn().account,t=Object(r.useState)(!1),a=Object(ln.a)(t,2),o=a[0],c=a[1],u=Object(r.useState)(Oy.TOKEN1),l=Object(ln.a)(u,2),d=l[0],p=l[1],m=Object(r.useState)(b.a),f=Object(ln.a)(m,2),A=f[0],v=f[1],g=Object(r.useState)(null),y=Object(ln.a)(g,2),h=y[0],E=y[1],x=Ts(null!==A&&void 0!==A?A:void 0,null!==h&&void 0!==h?h:void 0),O=Object(ln.a)(x,2),w=O[0],j=O[1],k=function(){var e=Object(s.c)();return Object(r.useCallback)((function(n){e(Xt({serializedPair:ia(n)}))}),[e])}();Object(r.useEffect)((function(){j&&k(j)}),[j,k]);var C=w===js.NOT_EXISTS||Boolean(w===js.EXISTS&&j&&b.f.equal(j.reserve0.raw,b.f.BigInt(0))&&b.f.equal(j.reserve1.raw,b.f.BigInt(0))),T=sa(null!==n&&void 0!==n?n:void 0,null===j||void 0===j?void 0:j.liquidityToken),B=Boolean(T&&b.f.greaterThan(T.raw,b.f.BigInt(0))),I=Object(r.useCallback)((function(e){d===Oy.TOKEN0?v(e):E(e)}),[d]),S=Object(r.useCallback)((function(){c(!1)}),[c]),R=i.a.createElement(ja,{padding:"45px 10px"},i.a.createElement(sn.b,{textAlign:"center"},n?"Select a token to find your liquidity.":"Connect to a wallet to find pools"));return i.a.createElement(wA,null,i.a.createElement($f,null),i.a.createElement(fi,{gap:"md"},i.a.createElement(ui,{onClick:function(){c(!0),p(Oy.TOKEN0)}},A?i.a.createElement(Wr,null,i.a.createElement(qp,{currency:A}),i.a.createElement(sn.b,{fontWeight:500,fontSize:20,marginLeft:"12px"},A.symbol)):i.a.createElement(sn.b,{fontWeight:500,fontSize:20,marginLeft:"12px"},"Select a Token")),i.a.createElement(mi,null,i.a.createElement(fp.a,{size:"16",color:"#888D9B"})),i.a.createElement(ui,{onClick:function(){c(!0),p(Oy.TOKEN1)}},h?i.a.createElement(Wr,null,i.a.createElement(qp,{currency:h}),i.a.createElement(sn.b,{fontWeight:500,fontSize:20,marginLeft:"12px"},h.symbol)):i.a.createElement(sn.b,{fontWeight:500,fontSize:20,marginLeft:"12px"},"Select a Token")),B&&i.a.createElement(mi,{style:{justifyItems:"center",backgroundColor:"",padding:"12px 0px",borderRadius:"12px"}},i.a.createElement(sn.b,{textAlign:"center",fontWeight:500},"Pool Found!"),i.a.createElement(Ga,{to:"/pool"},i.a.createElement(sn.b,{textAlign:"center"},"Manage this pool."))),A&&h?w===js.EXISTS?B&&j?i.a.createElement(Db,{pair:j,border:"1px solid #CED0D9"}):i.a.createElement(ja,{padding:"45px 10px"},i.a.createElement(fi,{gap:"sm",justify:"center"},i.a.createElement(sn.b,{textAlign:"center"},"You don\u2019t have liquidity in this pool yet."),i.a.createElement(Ga,{to:"/add/".concat(tb(A),"/").concat(tb(h))},i.a.createElement(sn.b,{textAlign:"center"},"Add liquidity.")))):C?i.a.createElement(ja,{padding:"45px 10px"},i.a.createElement(fi,{gap:"sm",justify:"center"},i.a.createElement(sn.b,{textAlign:"center"},"No pool found."),i.a.createElement(Ga,{to:"/add/".concat(tb(A),"/").concat(tb(h))},"Create pool."))):w===js.INVALID?i.a.createElement(ja,{padding:"45px 10px"},i.a.createElement(fi,{gap:"sm",justify:"center"},i.a.createElement(sn.b,{textAlign:"center",fontWeight:500},"Invalid pair."))):w===js.LOADING?i.a.createElement(ja,{padding:"45px 10px"},i.a.createElement(fi,{gap:"sm",justify:"center"},i.a.createElement(sn.b,{textAlign:"center"},"Loading",i.a.createElement(NA,null)))):null:R),i.a.createElement(pf,{isOpen:o,onCurrencySelect:I,onDismiss:S,showCommonBases:!0,selectedCurrency:null!==(e=d===Oy.TOKEN0?h:A)&&void 0!==e?e:void 0}))}!function(e){e[e.TOKEN0=0]="TOKEN0",e[e.TOKEN1=1]="TOKEN1"}(Oy||(Oy={}));var Ny=t(4),Ly=t(645);function Uy(){var e=Object(rn.a)(["\n  -webkit-appearance: none; /* Hides the slider so that custom slider can be made */\n  width: 100%; /* Specific width is required for Firefox. */\n  background: transparent; /* Otherwise white in Chrome */\n  cursor: pointer;\n\n  &:focus {\n    outline: none;\n  }\n\n  &::-moz-focus-outer {\n    border: 0;\n  }\n\n  &::-webkit-slider-thumb {\n    -webkit-appearance: none;\n    height: ","px;\n    width: ","px;\n    background-color: #565a69;\n    border-radius: 100%;\n    border: none;\n    transform: translateY(-50%);\n    color: ",";\n\n    &:hover,\n    &:focus {\n      box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 16px 24px rgba(0, 0, 0, 0.06),\n        0px 24px 32px rgba(0, 0, 0, 0.04);\n    }\n  }\n\n  &::-moz-range-thumb {\n    height: ","px;\n    width: ","px;\n    background-color: #565a69;\n    border-radius: 100%;\n    border: none;\n    color: ",";\n\n    &:hover,\n    &:focus {\n      box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 16px 24px rgba(0, 0, 0, 0.06),\n        0px 24px 32px rgba(0, 0, 0, 0.04);\n    }\n  }\n\n  &::-ms-thumb {\n    height: ","px;\n    width: ","px;\n    background-color: #565a69;\n    border-radius: 100%;\n    color: ",";\n\n    &:hover,\n    &:focus {\n      box-shadow: 0px 0px 1px rgba(0, 0, 0, 0.1), 0px 4px 8px rgba(0, 0, 0, 0.08), 0px 16px 24px rgba(0, 0, 0, 0.06),\n        0px 24px 32px rgba(0, 0, 0, 0.04);\n    }\n  }\n\n  &::-webkit-slider-runnable-track {\n    background: linear-gradient(90deg, ",", ",");\n    height: 2px;\n  }\n\n  &::-moz-range-track {\n    background: linear-gradient(90deg, ",", ",");\n    height: 2px;\n  }\n\n  &::-ms-track {\n    width: 100%;\n    border-color: transparent;\n    color: transparent;\n\n    background: ",";\n    height: 2px;\n  }\n  &::-ms-fill-lower {\n    background: ",";\n  }\n  &::-ms-fill-upper {\n    background: ",";\n  }\n"]);return Uy=function(){return e},e}var Py,Dy=cn.default.input(Uy(),(function(e){return e.size}),(function(e){return e.size}),(function(e){return e.theme.bg1}),(function(e){return e.size}),(function(e){return e.size}),(function(e){return e.theme.bg1}),(function(e){return e.size}),(function(e){return e.size}),(function(e){return e.theme.bg1}),(function(e){return e.theme.bg5}),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg5}),(function(e){return e.theme.bg3}),(function(e){return e.theme.bg5}),(function(e){return e.theme.bg5}),(function(e){return e.theme.bg3}));function Fy(e){var n=e.value,t=e.onChange,a=e.min,o=void 0===a?0:a,c=e.step,u=void 0===c?1:c,l=e.max,s=void 0===l?100:l,d=e.size,p=void 0===d?28:d,m=Object(r.useCallback)((function(e){t(parseInt(e.target.value))}),[t]);return i.a.createElement(Dy,{size:p,type:"range",value:n,style:{width:"90%",marginLeft:15,marginRight:15,padding:"15px 0"},onChange:m,"aria-labelledby":"input slider",step:u,min:o,max:s})}!function(e){e.LIQUIDITY_PERCENT="LIQUIDITY_PERCENT",e.LIQUIDITY="LIQUIDITY",e.CURRENCY_A="CURRENCY_A",e.CURRENCY_B="CURRENCY_B"}(Py||(Py={}));var Wy=Object(kn.b)("burn/typeInputBurn");function My(){return Object(s.d)((function(e){return e.burn}))}function Vy(e){var n,t,a,o,c,u,d,m,A,v,g,y,E,O=e.history,w=e.match.params,j=w.currencyIdA,k=w.currencyIdB,C=null!==(n=Vt(j))&&void 0!==n?n:void 0,T=null!==(t=Vt(k))&&void 0!==t?t:void 0,B=fn(),I=B.account,S=B.chainId,R=B.library,N=Object(r.useMemo)((function(){return[xs(C,S),xs(T,S)]}),[C,T,S]),L=Object(ln.a)(N,2),U=L[0],P=L[1],D=Object(r.useContext)(cn.ThemeContext),F=Ln(),W=My(),M=W.independentField,V=W.typedValue,z=function(e,n){var t,a,r,i,o,c=fn(),u=c.account,l=c.chainId,s=My(),d=s.independentField,p=s.typedValue,m=Ts(e,n),A=Object(ln.a)(m,2)[1],v=la(null!==u&&void 0!==u?u:void 0,[null===A||void 0===A?void 0:A.liquidityToken]),g=null===v||void 0===v?void 0:v[null!==(t=null===A||void 0===A||null===(a=A.liquidityToken)||void 0===a?void 0:a.address)&&void 0!==t?t:""],y=[xs(e,l),xs(n,l)],h=y[0],E=y[1],x=(r={},Object(f.a)(r,Py.CURRENCY_A,h),Object(f.a)(r,Py.CURRENCY_B,E),Object(f.a)(r,Py.LIQUIDITY,null===A||void 0===A?void 0:A.liquidityToken),r),O=ts(null===A||void 0===A?void 0:A.liquidityToken),w=A&&O&&g&&h&&b.f.greaterThanOrEqual(O.raw,g.raw)?new b.l(h,A.getLiquidityValue(h,O,g,!1).raw):void 0,j=A&&O&&g&&E&&b.f.greaterThanOrEqual(O.raw,g.raw)?new b.l(E,A.getLiquidityValue(E,O,g,!1).raw):void 0,k=(i={},Object(f.a)(i,Py.CURRENCY_A,w),Object(f.a)(i,Py.CURRENCY_B,j),i),C=new b.h("0","100");if(d===Py.LIQUIDITY_PERCENT)C=new b.h(p,"100");else if(d===Py.LIQUIDITY){if(null===A||void 0===A?void 0:A.liquidityToken){var T=dA(p,A.liquidityToken);T&&g&&!T.greaterThan(g)&&(C=new b.h(T.raw,g.raw))}}else if(x[d]){var B=dA(p,x[d]),I=k[d];B&&I&&!B.greaterThan(I)&&(C=new b.h(B.raw,I.raw))}var S,R,N=(o={},Object(f.a)(o,Py.LIQUIDITY_PERCENT,C),Object(f.a)(o,Py.LIQUIDITY,g&&C&&C.greaterThan("0")?new b.l(g.token,C.multiply(g.raw).quotient):void 0),Object(f.a)(o,Py.CURRENCY_A,h&&C&&C.greaterThan("0")&&w?new b.l(h,C.multiply(w.raw).quotient):void 0),Object(f.a)(o,Py.CURRENCY_B,E&&C&&C.greaterThan("0")&&j?new b.l(E,C.multiply(j.raw).quotient):void 0),o);return u||(S="Connect Wallet"),N[Py.LIQUIDITY]&&N[Py.CURRENCY_A]&&N[Py.CURRENCY_B]||(S=null!==(R=S)&&void 0!==R?R:"Enter an amount"),{pair:A,parsedAmounts:N,error:S}}(null!==C&&void 0!==C?C:void 0,null!==T&&void 0!==T?T:void 0),Y=z.pair,H=z.parsedAmounts,q=z.error,Q=function(){var e=Object(s.c)();return{onUserInput:Object(r.useCallback)((function(n,t){e(Wy({field:n,typedValue:t}))}),[e])}}().onUserInput,K=!q,J=Object(r.useState)(!1),X=Object(ln.a)(J,2),G=X[0],Z=X[1],_=Object(r.useState)(!1),$=Object(ln.a)(_,2),ee=$[0],ne=$[1],te=Object(r.useState)(!1),ae=Object(ln.a)(te,2),re=ae[0],ie=ae[1],oe=Object(r.useState)(""),ce=Object(ln.a)(oe,2),ue=ce[0],le=ce[1],se=nA(),de=aa(),pe=Object(ln.a)(de,1)[0],me=(A={},Object(f.a)(A,Py.LIQUIDITY_PERCENT,H[Py.LIQUIDITY_PERCENT].equalTo("0")?"0":H[Py.LIQUIDITY_PERCENT].lessThan(new b.h("1","100"))?"<1":H[Py.LIQUIDITY_PERCENT].toFixed(0)),Object(f.a)(A,Py.LIQUIDITY,M===Py.LIQUIDITY?V:null!==(a=null===(o=H[Py.LIQUIDITY])||void 0===o?void 0:o.toSignificant(6))&&void 0!==a?a:""),Object(f.a)(A,Py.CURRENCY_A,M===Py.CURRENCY_A?V:null!==(c=null===(u=H[Py.CURRENCY_A])||void 0===u?void 0:u.toSignificant(6))&&void 0!==c?c:""),Object(f.a)(A,Py.CURRENCY_B,M===Py.CURRENCY_B?V:null!==(d=null===(m=H[Py.CURRENCY_B])||void 0===m?void 0:m.toSignificant(6))&&void 0!==d?d:""),A),fe=null===(v=H[Py.LIQUIDITY_PERCENT])||void 0===v?void 0:v.equalTo(new b.h("1")),be=Nt(null===Y||void 0===Y||null===(g=Y.liquidityToken)||void 0===g?void 0:g.address),ve=Object(r.useState)(null),ge=Object(ln.a)(ve,2),ye=ge[0],he=ge[1],Ee=eA(H[Py.LIQUIDITY],S?Ae[S]:Ae[b.b.AVALANCHE]),xe=Object(ln.a)(Ee,2),Oe=xe[0],we=xe[1];function je(){return(je=Object(x.a)(h.a.mark((function e(){var n,t,a,r,i,o,c;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(be&&Y&&R&&se){e.next=2;break}throw new Error("missing dependencies");case 2:if(n=H[Py.LIQUIDITY]){e.next=5;break}throw new Error("missing liquidity amount");case 5:e.next=7;break;case 7:return e.next=9,be.nonces(I);case 9:t=e.sent,a=[{name:"name",type:"string"},{name:"version",type:"string"},{name:"chainId",type:"uint256"},{name:"verifyingContract",type:"address"}],r={name:"Baguette",version:"1",chainId:S,verifyingContract:Y.liquidityToken.address},i=[{name:"owner",type:"address"},{name:"spender",type:"address"},{name:"value",type:"uint256"},{name:"nonce",type:"uint256"},{name:"deadline",type:"uint256"}],o={owner:I,spender:Ae,value:n.raw.toString(),nonce:t.toHexString(),deadline:se.toNumber()},c=JSON.stringify({types:{EIP712Domain:a,Permit:i},domain:r,primaryType:"Permit",message:o}),R.send("eth_signTypedData_v4",[I,c]).then(Ny.splitSignature).then((function(e){he({v:e.v,r:e.r,s:e.s,deadline:se.toNumber()})})).catch((function(e){4001!==(null===e||void 0===e?void 0:e.code)&&we()}));case 16:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var ke=Object(r.useCallback)((function(e,n){return he(null),Q(e,n)}),[Q]),Ce=Object(r.useCallback)((function(e){return ke(Py.LIQUIDITY,e)}),[ke]),Te=Object(r.useCallback)((function(e){return ke(Py.CURRENCY_A,e)}),[ke]),Be=Object(r.useCallback)((function(e){return ke(Py.CURRENCY_B,e)}),[ke]),Ie=uc();function Se(){return Re.apply(this,arguments)}function Re(){return(Re=Object(x.a)(h.a.mark((function e(){var n,t,a,r,i,o,c,u,s,d,m,A,v,g;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(S&&R&&I&&se){e.next=2;break}throw new Error("missing dependencies");case 2:if(t=H[Py.CURRENCY_A],a=H[Py.CURRENCY_B],t&&a){e.next=5;break}throw new Error("missing currency amounts");case 5:if(r=bt(S,R,I),n={},Object(f.a)(n,Py.CURRENCY_A,mt(t,pe)[0]),Object(f.a)(n,Py.CURRENCY_B,mt(a,pe)[0]),i=n,C&&T){e.next=9;break}throw new Error("missing tokens");case 9:if(o=H[Py.LIQUIDITY]){e.next=12;break}throw new Error("missing liquidity amount");case 12:if(c=T===b.a,u=C===b.a||c,U&&P){e.next=16;break}throw new Error("could not wrap");case 16:if(Oe!==Vb.APPROVED){e.next=20;break}u?(s=["removeLiquidityETH","removeLiquidityETHSupportingFeeOnTransferTokens"],d=[c?U.address:P.address,o.raw.toString(),i[c?Py.CURRENCY_A:Py.CURRENCY_B].toString(),i[c?Py.CURRENCY_B:Py.CURRENCY_A].toString(),I,se.toHexString()]):(s=["removeLiquidity"],d=[U.address,P.address,o.raw.toString(),i[Py.CURRENCY_A].toString(),i[Py.CURRENCY_B].toString(),I,se.toHexString()]),e.next=25;break;case 20:if(null===ye){e.next=24;break}u?(s=["removeLiquidityETHWithPermit","removeLiquidityETHWithPermitSupportingFeeOnTransferTokens"],d=[c?U.address:P.address,o.raw.toString(),i[c?Py.CURRENCY_A:Py.CURRENCY_B].toString(),i[c?Py.CURRENCY_B:Py.CURRENCY_A].toString(),I,ye.deadline,!1,ye.v,ye.r,ye.s]):(s=["removeLiquidityWithPermit"],d=[U.address,P.address,o.raw.toString(),i[Py.CURRENCY_A].toString(),i[Py.CURRENCY_B].toString(),I,ye.deadline,!1,ye.v,ye.r,ye.s]),e.next=25;break;case 24:throw new Error("Attempting to confirm without approval or a signature. Please contact support.");case 25:return e.next=27,Promise.all(s.map((function(e){var n;return(n=r.estimateGas)[e].apply(n,Object(p.a)(d)).then(pt).catch((function(n){console.error("estimateGas failed",e,d,n)}))})));case 27:if(m=e.sent,-1!==(A=m.findIndex((function(e){return ot.a.isBigNumber(e)})))){e.next=33;break}console.error("This transaction would fail. Please contact support."),e.next=38;break;case 33:return v=s[A],g=m[A],ie(!0),e.next=38,r[v].apply(r,Object(p.a)(d).concat([{gasLimit:g}])).then((function(e){var n,t;ie(!1),Ie(e,{summary:"Remove "+(null===(n=H[Py.CURRENCY_A])||void 0===n?void 0:n.toSignificant(3))+" "+(null===C||void 0===C?void 0:C.symbol)+" and "+(null===(t=H[Py.CURRENCY_B])||void 0===t?void 0:t.toSignificant(3))+" "+(null===T||void 0===T?void 0:T.symbol)}),le(e.hash),l.a.event({category:"Liquidity",action:"Remove",label:[null===C||void 0===C?void 0:C.symbol,null===T||void 0===T?void 0:T.symbol].join("/")})})).catch((function(e){ie(!1),console.error(e)}));case 38:case"end":return e.stop()}}),e)})))).apply(this,arguments)}function Ne(){var e,n;return i.a.createElement(fi,{gap:"md",style:{marginTop:"20px"}},i.a.createElement(Ur,{align:"flex-end"},i.a.createElement(sn.b,{fontSize:24,fontWeight:500},null===(e=H[Py.CURRENCY_A])||void 0===e?void 0:e.toSignificant(6)),i.a.createElement(Fr,{gap:"4px"},i.a.createElement(qp,{currency:C,size:"24px"}),i.a.createElement(sn.b,{fontSize:24,fontWeight:500,style:{marginLeft:"10px"}},null===C||void 0===C?void 0:C.symbol))),i.a.createElement(Fr,null,i.a.createElement(fp.a,{size:"16",color:D.text2})),i.a.createElement(Ur,{align:"flex-end"},i.a.createElement(sn.b,{fontSize:24,fontWeight:500},null===(n=H[Py.CURRENCY_B])||void 0===n?void 0:n.toSignificant(6)),i.a.createElement(Fr,{gap:"4px"},i.a.createElement(qp,{currency:T,size:"24px"}),i.a.createElement(sn.b,{fontSize:24,fontWeight:500,style:{marginLeft:"10px"}},null===T||void 0===T?void 0:T.symbol))),i.a.createElement(jr,{fontSize:12,color:D.text2,textAlign:"left",padding:"12px 0 0 0"},"Output is estimated. If the price changes by more than ".concat(pe/100,"% your transaction will revert.")))}function Le(){var e;return i.a.createElement(i.a.Fragment,null,i.a.createElement(Ur,null,i.a.createElement(sn.b,{color:D.text2,fontWeight:500,fontSize:16},"BAG "+(null===C||void 0===C?void 0:C.symbol)+"/"+(null===T||void 0===T?void 0:T.symbol)," Burned"),i.a.createElement(Fr,null,i.a.createElement(yf,{currency0:C,currency1:T,margin:!0}),i.a.createElement(sn.b,{fontWeight:500,fontSize:16},null===(e=H[Py.LIQUIDITY])||void 0===e?void 0:e.toSignificant(6)))),Y&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Ur,null,i.a.createElement(sn.b,{color:D.text2,fontWeight:500,fontSize:16},"Price"),i.a.createElement(sn.b,{fontWeight:500,fontSize:16,color:D.text1},"1 ",null===C||void 0===C?void 0:C.symbol," = ",U?Y.priceOf(U).toSignificant(6):"-"," ",null===T||void 0===T?void 0:T.symbol)),i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement(sn.b,{fontWeight:500,fontSize:16,color:D.text1},"1 ",null===T||void 0===T?void 0:T.symbol," = ",P?Y.priceOf(P).toSignificant(6):"-"," ",null===C||void 0===C?void 0:C.symbol))),i.a.createElement($r,{disabled:!(Oe===Vb.APPROVED||null!==ye),onClick:Se},i.a.createElement(sn.b,{fontWeight:500,fontSize:20},"Confirm")))}var Ue="Removing ".concat(null===(y=H[Py.CURRENCY_A])||void 0===y?void 0:y.toSignificant(6)," ").concat(null===C||void 0===C?void 0:C.symbol," and ").concat(null===(E=H[Py.CURRENCY_B])||void 0===E?void 0:E.toSignificant(6)," ").concat(null===T||void 0===T?void 0:T.symbol),Pe=Object(r.useCallback)((function(e){ke(Py.LIQUIDITY_PERCENT,e.toString())}),[ke]),De=C===b.a||T===b.a,Fe=Boolean(S&&(C&&Object(b.p)(b.o[S],C)||T&&Object(b.p)(b.o[S],T))),We=Object(r.useCallback)((function(e){k&&tb(e)===k?O.push("/remove/".concat(tb(e),"/").concat(j)):O.push("/remove/".concat(tb(e),"/").concat(k))}),[j,k,O]),Me=Object(r.useCallback)((function(e){j&&tb(e)===j?O.push("/remove/".concat(k,"/").concat(tb(e))):O.push("/remove/".concat(j,"/").concat(tb(e)))}),[j,k,O]),Ve=Object(r.useCallback)((function(){Z(!1),he(null),ue&&ke(Py.LIQUIDITY_PERCENT,"0"),le("")}),[ke,ue]),ze=function(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100,a=Object(r.useState)((function(){return e})),i=Object(ln.a)(a,2),o=i[0],c=i[1],u=Object(r.useRef)(),l=Object(r.useCallback)((function(e){c(e),u.current&&clearTimeout(u.current),u.current=setTimeout((function(){n(e),u.current=void 0}),t)}),[t,n]);return Object(r.useEffect)((function(){u.current&&(clearTimeout(u.current),u.current=void 0),c(e)}),[e]),[o,l]}(Number.parseInt(H[Py.LIQUIDITY_PERCENT].toFixed(0)),Pe),Ye=Object(ln.a)(ze,2),He=Ye[0],qe=Ye[1];return i.a.createElement(i.a.Fragment,null,i.a.createElement(wA,null,i.a.createElement(eb,{creating:!1,adding:!1}),i.a.createElement(IA,null,i.a.createElement(Sp,{isOpen:G,onDismiss:Ve,attemptingTxn:re,hash:ue||"",content:function(){return i.a.createElement(Bp,{title:"You will receive",onDismiss:Ve,topContent:Ne,bottomContent:Le})},pendingText:Ue}),i.a.createElement(fi,{gap:"md"},i.a.createElement(ja,null,i.a.createElement(fi,{gap:"20px"},i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontWeight:500},"Amount"),i.a.createElement(SA,{fontWeight:500,onClick:function(){ne(!ee)}},ee?"Simple":"Detailed")),i.a.createElement(Wr,{style:{alignItems:"flex-end"}},i.a.createElement(sn.b,{fontSize:72,fontWeight:500},me[Py.LIQUIDITY_PERCENT],"%")),!ee&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Fy,{value:He,onChange:qe}),i.a.createElement(Ur,null,i.a.createElement(RA,{onClick:function(){return ke(Py.LIQUIDITY_PERCENT,"25")},width:"20%"},"25%"),i.a.createElement(RA,{onClick:function(){return ke(Py.LIQUIDITY_PERCENT,"50")},width:"20%"},"50%"),i.a.createElement(RA,{onClick:function(){return ke(Py.LIQUIDITY_PERCENT,"75")},width:"20%"},"75%"),i.a.createElement(RA,{onClick:function(){return ke(Py.LIQUIDITY_PERCENT,"100")},width:"20%"},"Max"))))),!ee&&i.a.createElement(i.a.Fragment,null,i.a.createElement(mi,null,i.a.createElement(Ly.a,{size:"16",color:D.text2})),i.a.createElement(ja,null,i.a.createElement(fi,{gap:"10px"},i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontSize:24,fontWeight:500},me[Py.CURRENCY_A]||"-"),i.a.createElement(Fr,null,i.a.createElement(qp,{currency:C,style:{marginRight:"12px"}}),i.a.createElement(sn.b,{fontSize:24,fontWeight:500,id:"remove-liquidity-tokena-symbol"},null===C||void 0===C?void 0:C.symbol))),i.a.createElement(Ur,null,i.a.createElement(sn.b,{fontSize:24,fontWeight:500},me[Py.CURRENCY_B]||"-"),i.a.createElement(Fr,null,i.a.createElement(qp,{currency:T,style:{marginRight:"12px"}}),i.a.createElement(sn.b,{fontSize:24,fontWeight:500,id:"remove-liquidity-tokenb-symbol"},null===T||void 0===T?void 0:T.symbol))),S&&(Fe||De)?i.a.createElement(Ur,{style:{justifyContent:"flex-end"}},De?i.a.createElement(Ga,{to:"/remove/".concat(C===b.a?b.o[S].address:j,"/").concat(T===b.a?b.o[S].address:k)},"Receive WAVAX"):Fe?i.a.createElement(Ga,{to:"/remove/".concat(C&&Object(b.p)(C,b.o[S])?"AVAX":j,"/").concat(T&&Object(b.p)(T,b.o[S])?"AVAX":k)},"Receive AVAX"):null):null))),ee&&i.a.createElement(i.a.Fragment,null,i.a.createElement(Yf,{value:me[Py.LIQUIDITY],onUserInput:Ce,onMax:function(){ke(Py.LIQUIDITY_PERCENT,"100")},showMaxButton:!fe,disableCurrencySelect:!0,currency:null===Y||void 0===Y?void 0:Y.liquidityToken,pair:Y,id:"liquidity-amount"}),i.a.createElement(mi,null,i.a.createElement(Ly.a,{size:"16",color:D.text2})),i.a.createElement(Yf,{hideBalance:!0,value:me[Py.CURRENCY_A],onUserInput:Te,onMax:function(){return ke(Py.LIQUIDITY_PERCENT,"100")},showMaxButton:!fe,currency:C,label:"Output",onCurrencySelect:We,id:"remove-liquidity-tokena"}),i.a.createElement(mi,null,i.a.createElement(fp.a,{size:"16",color:D.text2})),i.a.createElement(Yf,{hideBalance:!0,value:me[Py.CURRENCY_B],onUserInput:Be,onMax:function(){return ke(Py.LIQUIDITY_PERCENT,"100")},showMaxButton:!fe,currency:T,label:"Output",onCurrencySelect:Me,id:"remove-liquidity-tokenb"})),Y&&i.a.createElement("div",{style:{padding:"10px 20px"}},i.a.createElement(Ur,null,"Price:",i.a.createElement("div",null,"1 ",null===C||void 0===C?void 0:C.symbol," = ",U?Y.priceOf(U).toSignificant(6):"-"," ",null===T||void 0===T?void 0:T.symbol)),i.a.createElement(Ur,null,i.a.createElement("div",null),i.a.createElement("div",null,"1 ",null===T||void 0===T?void 0:T.symbol," = ",P?Y.priceOf(P).toSignificant(6):"-"," ",null===C||void 0===C?void 0:C.symbol))),i.a.createElement("div",{style:{position:"relative"}},I?i.a.createElement(Ur,null,i.a.createElement(oi,{onClick:function(){return je.apply(this,arguments)},confirmed:Oe===Vb.APPROVED||null!==ye,disabled:Oe!==Vb.NOT_APPROVED||null!==ye,mr:"0.5rem",fontWeight:500,fontSize:16},Oe===Vb.PENDING?i.a.createElement(Cb,null,"Approving"):Oe===Vb.APPROVED||null!==ye?"Approved":"Approve"),i.a.createElement(ci,{onClick:function(){Z(!0)},disabled:!K||null===ye&&Oe!==Vb.APPROVED,error:!K&&!!H[Py.CURRENCY_A]&&!!H[Py.CURRENCY_B]},i.a.createElement(sn.b,{fontSize:16,fontWeight:500},q||"Remove"))):i.a.createElement(ei,{onClick:F},"Connect Wallet"))))),Y?i.a.createElement(fi,{style:{minWidth:"20rem",width:"100%",maxWidth:"400px",marginTop:"1rem"}},i.a.createElement(Db,{showUnwrapped:Fe,pair:Y})):null)}var zy=/^(0x[a-fA-F0-9]{40})-(0x[a-fA-F0-9]{40})$/;function Yy(e){var n=e.match.params.tokens;if(!zy.test(n))return i.a.createElement(on.a,{to:"/pool"});var t=n.split("-"),a=Object(ln.a)(t,2),r=a[0],o=a[1];return i.a.createElement(on.a,{to:"/remove/".concat(r,"/").concat(o)})}function Hy(e){var n=ut(e);return{loading:!1,address:n||null,name:null}}function qy(){var e=Object(rn.a)(["\n  font-size: 1.25rem;\n  outline: none;\n  border: none;\n  flex: 1 1 auto;\n  width: 0;\n  background-color: ",";\n  transition: color 300ms ",";\n  color: ",";\n  overflow: hidden;\n  text-overflow: ellipsis;\n  font-weight: 500;\n  width: 100%;\n  ::placeholder {\n    color: ",";\n  }\n  padding: 0px;\n  -webkit-appearance: textfield;\n\n  ::-webkit-search-decoration {\n    -webkit-appearance: none;\n  }\n\n  ::-webkit-outer-spin-button,\n  ::-webkit-inner-spin-button {\n    -webkit-appearance: none;\n  }\n\n  ::placeholder {\n    color: ",";\n  }\n"]);return qy=function(){return e},e}function Qy(){var e=Object(rn.a)(["\n  flex: 1;\n  padding: 1rem;\n"]);return Qy=function(){return e},e}function Ky(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: center;\n  align-items: center;\n  border-radius: 1.25rem;\n  border: 1px solid ",";\n  transition: border-color 300ms ",",\n    color 500ms ",";\n  background-color: ",";\n"]);return Ky=function(){return e},e}function Jy(){var e=Object(rn.a)(["\n  ","\n  position: relative;\n  border-radius: 1.25rem;\n  background-color: ",";\n  z-index: 1;\n  width: 100%;\n"]);return Jy=function(){return e},e}var Xy=cn.default.div(Jy(),(function(e){return e.theme.flexColumnNoWrap}),(function(e){return e.theme.bg1})),Gy=cn.default.div(Ky(),(function(e){var n=e.error,t=e.theme;return n?t.red1:t.bg2}),(function(e){return e.error?"step-end":"step-start"}),(function(e){return e.error?"step-end":"step-start"}),(function(e){return e.theme.bg1})),Zy=cn.default.div(Qy()),_y=cn.default.input(qy(),(function(e){return e.theme.bg1}),(function(e){return e.error?"step-end":"step-start"}),(function(e){var n=e.error,t=e.theme;return n?t.red1:t.primary1}),(function(e){return e.theme.text4}),(function(e){return e.theme.text4}));function $y(e){var n=e.id,t=e.value,a=e.onChange,o=fn().chainId,c=Object(r.useContext)(cn.ThemeContext),u=Hy(t),l=u.address,s=u.loading,d=u.name,p=Object(r.useCallback)((function(e){var n=e.target.value.replace(/\s+/g,"");a(n)}),[a]),m=Boolean(t.length>0&&!s&&!l);return i.a.createElement(Xy,{id:n},i.a.createElement(Gy,{error:m},i.a.createElement(Zy,null,i.a.createElement(fi,{gap:"md"},i.a.createElement(Ur,null,i.a.createElement(vr,{color:c.text2,fontWeight:500,fontSize:14},"Recipient"),l&&o&&i.a.createElement(er,{href:st(o,null!==d&&void 0!==d?d:l,"address"),style:{fontSize:"14px"}},"(View on Avalanche C-Chain Explorer)")),i.a.createElement(_y,{className:"recipient-address-input",type:"text",autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:"false",placeholder:"Wallet Address",error:m,pattern:"^(0x[a-fA-F0-9]{40})$",onChange:p,value:t})))))}var eh=t(646);function nh(e){var n=e.priceImpact;return i.a.createElement(wb,{fontWeight:500,fontSize:14,severity:$b(n)},n?n.lessThan(He)?"<0.01%":"".concat(n.toFixed(2),"%"):"-")}function th(e){var n,t,a,o,c=e.trade,u=e.onConfirm,l=e.allowedSlippage,s=e.swapErrorMessage,d=e.disabledConfirm,p=Object(r.useState)(!1),m=Object(ln.a)(p,2),f=m[0],A=m[1],v=Object(r.useContext)(cn.ThemeContext),g=Object(r.useMemo)((function(){return _b(c,l)}),[l,c]),y=Object(r.useMemo)((function(){return Zb(c)}),[c]),h=y.priceImpactWithoutFee,E=y.realizedLPFee,x=$b(h);return i.a.createElement(i.a.Fragment,null,i.a.createElement(fi,{gap:"0px"},i.a.createElement(Ur,{align:"center"},i.a.createElement(sn.b,{fontWeight:400,fontSize:14,color:v.text2},"Price"),i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:v.text1,style:{justifyContent:"center",alignItems:"center",display:"flex",textAlign:"right",paddingLeft:"10px"}},function(e,n){return e?n?"".concat(e.executionPrice.invert().toSignificant(6)," ").concat(e.inputAmount.currency.symbol," / ").concat(e.outputAmount.currency.symbol):"".concat(e.executionPrice.toSignificant(6)," ").concat(e.outputAmount.currency.symbol," / ").concat(e.inputAmount.currency.symbol):""}(c,f),i.a.createElement(jb,{onClick:function(){return A(!f)}},i.a.createElement(eh.a,{size:14})))),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:v.text2},c.tradeType===b.n.EXACT_INPUT?"Minimum received":"Maximum sold"),i.a.createElement(Gi,{text:"Your transaction will revert if there is a large, unfavorable price movement before it is confirmed."})),i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14},c.tradeType===b.n.EXACT_INPUT?null!==(n=null===(t=g[Wb.OUTPUT])||void 0===t?void 0:t.toSignificant(4))&&void 0!==n?n:"-":null!==(a=null===(o=g[Wb.INPUT])||void 0===o?void 0:o.toSignificant(4))&&void 0!==a?a:"-"),i.a.createElement(vr,{fontSize:14,marginLeft:"4px"},c.tradeType===b.n.EXACT_INPUT?c.outputAmount.currency.symbol:c.inputAmount.currency.symbol))),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{color:v.text2,fontSize:14,fontWeight:400},"Price Impact"),i.a.createElement(Gi,{text:"The difference between the market price and your price due to trade size."})),i.a.createElement(nh,{priceImpact:h})),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:v.text2},"Liquidity Provider Fee"),i.a.createElement(Gi,{text:"A portion of each trade (0.30%) goes to liquidity providers as a protocol incentive."})),i.a.createElement(vr,{fontSize:14},E?(null===E||void 0===E?void 0:E.toSignificant(6))+" "+c.inputAmount.currency.symbol:"-"))),i.a.createElement(Dr,null,i.a.createElement(ci,{onClick:u,disabled:d,error:x>2,style:{margin:"10px 0 0 0"},id:"confirm-swap-or-send"},i.a.createElement(sn.b,{fontSize:20,fontWeight:500},x>2?"Swap Anyway":"Confirm Swap")),s?i.a.createElement(Ib,{error:s}):null))}function ah(e){var n,t,a=e.trade,o=e.allowedSlippage,c=e.recipient,u=e.showAcceptChanges,l=e.onAcceptChanges,s=Object(r.useMemo)((function(){return _b(a,o)}),[a,o]),d=$b(Object(r.useMemo)((function(){return Zb(a)}),[a]).priceImpactWithoutFee),p=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(fi,{gap:"md",style:{marginTop:"20px"}},i.a.createElement(Ur,{align:"flex-end"},i.a.createElement(Fr,{gap:"0px"},i.a.createElement(qp,{currency:a.inputAmount.currency,size:"24px",style:{marginRight:"12px"}}),i.a.createElement(kb,{fontSize:24,fontWeight:500,color:u&&a.tradeType===b.n.EXACT_OUTPUT?p.primary1:""},a.inputAmount.toSignificant(6))),i.a.createElement(Fr,{gap:"0px"},i.a.createElement(sn.b,{fontSize:24,fontWeight:500,style:{marginLeft:"10px"}},a.inputAmount.currency.symbol))),i.a.createElement(Fr,null,i.a.createElement(Ly.a,{size:"16",color:p.text2,style:{marginLeft:"4px",minWidth:"16px"}})),i.a.createElement(Ur,{align:"flex-end"},i.a.createElement(Fr,{gap:"0px"},i.a.createElement(qp,{currency:a.outputAmount.currency,size:"24px",style:{marginRight:"12px"}}),i.a.createElement(kb,{fontSize:24,fontWeight:500,color:d>2?p.red1:u&&a.tradeType===b.n.EXACT_INPUT?p.primary1:""},a.outputAmount.toSignificant(6))),i.a.createElement(Fr,{gap:"0px"},i.a.createElement(sn.b,{fontSize:24,fontWeight:500,style:{marginLeft:"10px"}},a.outputAmount.currency.symbol))),u?i.a.createElement(Sb,{justify:"flex-start",gap:"0px"},i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(Ap.a,{size:20,style:{marginRight:"8px",minWidth:24}}),i.a.createElement(br,{color:p.primary1}," Price Updated")),i.a.createElement($r,{style:{padding:".5rem",width:"fit-content",fontSize:"0.825rem",borderRadius:"12px"},onClick:l},"Accept"))):null,i.a.createElement(fi,{justify:"flex-start",gap:"sm",style:{padding:"12px 0 0 0px"}},a.tradeType===b.n.EXACT_INPUT?i.a.createElement(jr,{textAlign:"left",style:{width:"100%"}},"Output is estimated. You will receive at least ",i.a.createElement("b",null,null===(n=s[Wb.OUTPUT])||void 0===n?void 0:n.toSignificant(6)," ",a.outputAmount.currency.symbol)," or the transaction will revert."):i.a.createElement(jr,{textAlign:"left",style:{width:"100%"}},"Input is estimated. You will sell at most ",i.a.createElement("b",null,null===(t=s[Wb.INPUT])||void 0===t?void 0:t.toSignificant(6)," ",a.inputAmount.currency.symbol)," or the transaction will revert.")),null!==c?i.a.createElement(fi,{justify:"flex-start",gap:"sm",style:{padding:"12px 0 0 0px"}},i.a.createElement(br,null,"Output will be sent to"," ",i.a.createElement("b",{title:c},ut(c)?dt(c):c))):null)}function rh(e){var n,t,a,o,c,u,l=e.trade,s=e.originalTrade,d=e.onAcceptChanges,p=e.allowedSlippage,m=e.onConfirm,f=e.onDismiss,A=e.recipient,v=e.swapErrorMessage,g=e.isOpen,y=e.attemptingTxn,h=e.txHash,E=Object(r.useMemo)((function(){return Boolean(l&&s&&(n=s,(e=l).tradeType!==n.tradeType||!Object(b.p)(e.inputAmount.currency,n.inputAmount.currency)||!e.inputAmount.equalTo(n.inputAmount)||!Object(b.p)(e.outputAmount.currency,n.outputAmount.currency)||!e.outputAmount.equalTo(n.outputAmount)));var e,n}),[s,l]),x=Object(r.useCallback)((function(){return l?i.a.createElement(ah,{trade:l,allowedSlippage:p,recipient:A,showAcceptChanges:E,onAcceptChanges:d}):null}),[p,d,A,E,l]),O=Object(r.useCallback)((function(){return l?i.a.createElement(th,{onConfirm:m,trade:l,disabledConfirm:E,swapErrorMessage:v,allowedSlippage:p}):null}),[p,m,E,v,l]),w="Swapping ".concat(null===l||void 0===l||null===(n=l.inputAmount)||void 0===n?void 0:n.toSignificant(6)," ").concat(null===l||void 0===l||null===(t=l.inputAmount)||void 0===t||null===(a=t.currency)||void 0===a?void 0:a.symbol," for ").concat(null===l||void 0===l||null===(o=l.outputAmount)||void 0===o?void 0:o.toSignificant(6)," ").concat(null===l||void 0===l||null===(c=l.outputAmount)||void 0===c||null===(u=c.currency)||void 0===u?void 0:u.symbol),j=Object(r.useCallback)((function(){return v?i.a.createElement(Ip,{onDismiss:f,message:v}):i.a.createElement(Bp,{title:"Confirm Swap",onDismiss:f,topContent:x,bottomContent:O})}),[f,O,x,v]);return i.a.createElement(Sp,{isOpen:g,onDismiss:f,attemptingTxn:y,hash:h,content:j,pendingText:w})}var ih=t(647),oh=Object(r.memo)((function(e){var n=e.trade,t=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(sn.a,{px:"1rem",py:"0.5rem",my:"0.5rem",style:{border:"1px solid ".concat(t.bg3),borderRadius:"1rem"},flexWrap:"wrap",width:"100%",justifyContent:"space-evenly",alignItems:"center"},n.route.path.map((function(e,n,a){var o=n===a.length-1;return i.a.createElement(r.Fragment,{key:n},i.a.createElement(sn.a,{my:"0.5rem",alignItems:"center",style:{flexShrink:0}},i.a.createElement(qp,{currency:e,size:"1.5rem"}),i.a.createElement(vr,{fontSize:14,color:t.text1,ml:"0.5rem"},e.symbol)),o?null:i.a.createElement(ih.a,{color:t.text2}))})))}));function ch(e){var n,t,a,o,c=e.trade,u=e.allowedSlippage,l=Object(r.useContext)(cn.ThemeContext),s=Zb(c),d=s.priceImpactWithoutFee,p=s.realizedLPFee,m=c.tradeType===b.n.EXACT_INPUT,f=_b(c,u);return i.a.createElement(i.a.Fragment,null,i.a.createElement(fi,{style:{padding:"0 20px"}},i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:l.text1},m?"Minimum received":"Maximum sold"),i.a.createElement(Gi,{text:"Your transaction will revert if there is a large, unfavorable price movement before it is confirmed."})),i.a.createElement(Fr,null,i.a.createElement(vr,{color:l.text1,fontSize:14},m?null!==(n="".concat(null===(t=f[Wb.OUTPUT])||void 0===t?void 0:t.toSignificant(4)," ").concat(c.outputAmount.currency.symbol))&&void 0!==n?n:"-":null!==(a="".concat(null===(o=f[Wb.INPUT])||void 0===o?void 0:o.toSignificant(4)," ").concat(c.inputAmount.currency.symbol))&&void 0!==a?a:"-"))),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:l.text1},"Price Impact"),i.a.createElement(Gi,{text:"The difference between the market price and estimated price due to trade size."})),i.a.createElement(nh,{priceImpact:d})),i.a.createElement(Ur,null,i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:l.text1},"Liquidity Provider Fee"),i.a.createElement(Gi,{text:"A portion of each trade (0.30%) goes to liquidity providers as a protocol incentive."})),i.a.createElement(vr,{fontSize:14,color:l.text1},p?"".concat(p.toSignificant(4)," ").concat(c.inputAmount.currency.symbol):"-"))))}function uh(e){var n=e.trade,t=Object(r.useContext)(cn.ThemeContext),a=aa(),o=Object(ln.a)(a,1)[0],c=Boolean(n&&n.route.path.length>2);return i.a.createElement(fi,{gap:"md"},n&&i.a.createElement(i.a.Fragment,null,i.a.createElement(ch,{trade:n,allowedSlippage:o}),c&&i.a.createElement(i.a.Fragment,null,i.a.createElement(xb,null),i.a.createElement(fi,{style:{padding:"0 24px"}},i.a.createElement(Fr,null,i.a.createElement(vr,{fontSize:14,fontWeight:400,color:t.text2},"Route"),i.a.createElement(Gi,{text:"Routing through these tokens resulted in the best price for your trade."})),i.a.createElement(oh,{trade:n})))))}function lh(){var e=Object(rn.a)(["\n  padding-top: calc(16px + 2rem);\n  padding-bottom: 20px;\n  margin-top: -2rem;\n  width: 100%;\n  max-width: 400px;\n  border-bottom-left-radius: 20px;\n  border-bottom-right-radius: 20px;\n  color: ",";\n  background-color: ",";\n  z-index: -1;\n\n  transform: ",";\n  transition: transform 300ms ease-in-out;\n"]);return lh=function(){return e},e}var sh=cn.default.div(lh(),(function(e){return e.theme.text2}),(function(e){return e.theme.advancedBG}),(function(e){return e.show?"translateY(0%)":"translateY(-100%)"}));function dh(e){var n,t=e.trade,a=Object(ma.a)(e,["trade"]),r=Rp(t,Np);return i.a.createElement(sh,{show:Boolean(t)},i.a.createElement(uh,Object.assign({},a,{trade:null!==(n=null!==t&&void 0!==t?t:r)&&void 0!==n?n:void 0})))}function ph(e){var n=e.children,t=Object(r.useContext)(cn.ThemeContext);return i.a.createElement(Ca,{style:{marginTop:"12px",padding:"0.5rem 0.5rem"}},i.a.createElement(fi,{gap:"sm",justify:"center",style:{alignItems:"center",textAlign:"center"}},i.a.createElement(sn.b,{lineHeight:"145.23%;",fontSize:14,fontWeight:400,color:t.text1},n)))}function mh(){var e=Object(on.g)(),n=iA(),t=cA(),a=Object(r.useMemo)((function(){return Object(m.a)(Object(m.a)({},e),{},{search:"?".concat(Object(pp.stringify)(Object(m.a)(Object(m.a)({},n),{},{use:oA})))})}),[e,n]);return i.a.createElement(ph,null,"Showing ",t.toUpperCase()," price."," ",i.a.createElement(Ga,{to:a},i.a.createElement("b",null,"Switch to Uniswap ",oA.toUpperCase()," \u2197")))}function fh(e){var n,t,a,o,c,u=e.price,l=e.showInverted,s=e.setShowInverted,d=Object(r.useContext)(cn.ThemeContext),p=l?null===u||void 0===u?void 0:u.toSignificant(6):null===u||void 0===u||null===(n=u.invert())||void 0===n?void 0:n.toSignificant(6),m=Boolean((null===u||void 0===u?void 0:u.baseCurrency)&&(null===u||void 0===u?void 0:u.quoteCurrency)),f=l?"".concat(null===u||void 0===u||null===(t=u.quoteCurrency)||void 0===t?void 0:t.symbol," per ").concat(null===u||void 0===u||null===(a=u.baseCurrency)||void 0===a?void 0:a.symbol):"".concat(null===u||void 0===u||null===(o=u.baseCurrency)||void 0===o?void 0:o.symbol," per ").concat(null===u||void 0===u||null===(c=u.quoteCurrency)||void 0===c?void 0:c.symbol);return i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:d.text2,style:{justifyContent:"center",alignItems:"center",display:"flex"}},m?i.a.createElement(i.a.Fragment,null,null!==p&&void 0!==p?p:"-"," ",f,i.a.createElement(jb,{onClick:function(){return s(!l)}},i.a.createElement(eh.a,{size:14}))):"-")}function bh(){var e=Object(rn.a)(["\n  stroke: ",";\n"]);return bh=function(){return e},e}function Ah(){var e=Object(rn.a)(["\n  max-width: 420px;\n  width: 100%;\n  padding: 1rem;\n  background: rgba(242, 150, 2, 0.05);\n  border: 1px solid #f3841e;\n  border-radius: 20px;\n  overflow: auto;\n"]);return Ah=function(){return e},e}function vh(){var e=Object(rn.a)(["\n  background: ",";\n  padding: 0.75rem;\n  border-radius: 20px;\n"]);return vh=function(){return e},e}var gh,yh,hh=cn.default.div(vh(),(function(e){var n=e.theme;return Object(dn.d)(.6,n.bg3)})),Eh=cn.default.div(Ah()),xh=Object(cn.default)(Ap.a)(bh(),(function(e){return e.theme.red2}));function Oh(e){var n,t,a,o,c=e.token,u=fn().chainId,l=null!==(n=null===c||void 0===c||null===(t=c.symbol)||void 0===t?void 0:t.toLowerCase())&&void 0!==n?n:"",s=null!==(a=null===c||void 0===c||null===(o=c.name)||void 0===o?void 0:o.toLowerCase())&&void 0!==a?a:"",d=Dt(),p=Object(r.useMemo)((function(){return!(!c||!u)&&Object.keys(d).some((function(e){var n,t,a=d[e];return!a.equals(c)&&((null===(n=a.symbol)||void 0===n?void 0:n.toLowerCase())===l||(null===(t=a.name)||void 0===t?void 0:t.toLowerCase())===s)}))}),[c,u,d,l,s]);return c?i.a.createElement(hh,{error:p},i.a.createElement(Dr,{gap:"6px"},i.a.createElement(fi,{gap:"24px"},i.a.createElement(qp,{currency:c,size:"16px"}),i.a.createElement("div",null," ")),i.a.createElement(fi,{gap:"10px",justify:"flex-start"},i.a.createElement(br,null,c&&c.name&&c.symbol&&c.name!==c.symbol?"".concat(c.name," (").concat(c.symbol,")"):c.name||c.symbol," "),u&&i.a.createElement(er,{style:{fontWeight:400},href:st(u,c.address,"token")},i.a.createElement(wr,{title:c.address},dt(c.address)," (View on the World chain Explorer)"))))):null}function wh(e){var n=e.isOpen,t=e.tokens,a=e.onConfirm,o=Object(r.useState)(!1),c=Object(ln.a)(o,2),u=c[0],l=c[1],s=Object(r.useCallback)((function(){return l((function(e){return!e}))}),[]),d=Object(r.useCallback)((function(){return null}),[]);return i.a.createElement(Ii,{isOpen:n,onDismiss:d,maxHeight:90},i.a.createElement(Eh,{className:"token-warning-container"},i.a.createElement(fi,{gap:"lg"},i.a.createElement(Dr,{gap:"6px"},i.a.createElement(xh,null),i.a.createElement(br,{color:"red2"},"Token imported")),i.a.createElement(yr,{color:"red2"},"Anyone can create an ERC-20 token on Avalanche with ",i.a.createElement("em",null,"any")," name, including creating fake versions of existing tokens and tokens that claim to represent projects that do not have a token."),i.a.createElement(yr,{color:"red2"},"This interface can load arbitrary tokens by token addresses. Please take extra caution and do your research when interacting with arbitrary ERC-20 tokens."),i.a.createElement(yr,{color:"red2"},"If you purchase an arbitrary token, ",i.a.createElement("strong",null,"you may be unable to sell it back.")),t.map((function(e){return i.a.createElement(Oh,{key:e.address,token:e})})),i.a.createElement(Ur,null,i.a.createElement("div",null,i.a.createElement("label",{style:{cursor:"pointer",userSelect:"none"}},i.a.createElement("input",{type:"checkbox",className:"understand-checkbox",checked:u,onChange:s})," ","I understand")),i.a.createElement(ci,{disabled:!u,error:!0,width:"140px",padding:"0.5rem 1rem",className:"token-dismiss-button",style:{borderRadius:"10px"},onClick:function(){a()}},i.a.createElement(yr,{color:"white"},"Continue"))))))}function jh(e){return/^0x0*$/.test(e)}function kh(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,t=arguments.length>2?arguments[2]:void 0,a=fn(),i=a.account,o=a.chainId,c=a.library,u=Hy(t),l=u.address,s=null===t?i:l,d=nA(),p=ot.a.from((new Date).getTime());return d&&d<p.add(10)&&(d=p.add(10)),Object(r.useMemo)((function(){var t=tA.v2;if(!e||!s||!c||!i||!t||!o||!d)return[];var a=bt(o,c,i);if(!a)return[];var r=[];return r.push(b.j.swapCallParameters(e,{feeOnTransfer:!1,allowedSlippage:new b.h(b.f.BigInt(n),qe),recipient:s,deadline:d.toNumber()})),e.tradeType===b.n.EXACT_INPUT&&r.push(b.j.swapCallParameters(e,{feeOnTransfer:!0,allowedSlippage:new b.h(b.f.BigInt(n),qe),recipient:s,deadline:d.toNumber()})),r.map((function(e){return{parameters:e,contract:a}}))}),[i,n,o,d,c,s,e])}!function(e){e[e.INVALID=0]="INVALID",e[e.LOADING=1]="LOADING",e[e.VALID=2]="VALID"}(gh||(gh={})),function(e){e[e.NOT_APPLICABLE=0]="NOT_APPLICABLE",e[e.WRAP=1]="WRAP",e[e.UNWRAP=2]="UNWRAP"}(yh||(yh={}));var Ch={wrapType:yh.NOT_APPLICABLE};function Th(e,n,t){var a=fn(),i=a.chainId,o=a.account,c=function(e){var n=fn().chainId;return St(n?b.o[n].address:void 0,kt,e)}(),u=pa(null!==o&&void 0!==o?o:void 0,e),l=Object(r.useMemo)((function(){return dA(t,e)}),[e,t]),s=uc();return Object(r.useMemo)((function(){if(!c||!i||!e||!n)return Ch;var t=l&&u&&!u.lessThan(l);return e===b.a&&Object(b.p)(b.o[i],n)?{wrapType:yh.WRAP,execute:t&&l?Object(x.a)(h.a.mark((function e(){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.deposit({value:"0x".concat(l.raw.toString(16))});case 3:n=e.sent,s(n,{summary:"Wrap ".concat(l.toSignificant(6)," ETH to WETH")}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Could not deposit",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))):void 0,inputError:t?void 0:"Insufficient ETH balance"}:Object(b.p)(b.o[i],e)&&n===b.a?{wrapType:yh.UNWRAP,execute:t&&l?Object(x.a)(h.a.mark((function e(){var n;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,c.withdraw("0x".concat(l.raw.toString(16)));case 3:n=e.sent,s(n,{summary:"Unwrap ".concat(l.toSignificant(6)," WETH to ETH")}),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Could not withdraw",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])}))):void 0,inputError:t?void 0:"Insufficient WETH balance"}:Ch}),[c,i,e,n,l,u,s])}function Bh(){var e,n,t,a,o,c,u,d,A,v,g,y=function(){var e=fn().chainId,n=Object(s.c)(),t=iA(),a=Object(r.useState)(),i=Object(ln.a)(a,2),o=i[0],c=i[1];return Object(r.useEffect)((function(){if(e){var a=gA(t);n(Qb({typedValue:a.typedValue,field:a.independentField,inputCurrencyId:a[Wb.INPUT].currencyId,outputCurrencyId:a[Wb.OUTPUT].currencyId,recipient:a.recipient})),c({inputCurrencyId:a[Wb.INPUT].currencyId,outputCurrencyId:a[Wb.OUTPUT].currencyId})}}),[n,e]),o}(),E=[Vt(null===y||void 0===y?void 0:y.inputCurrencyId),Vt(null===y||void 0===y?void 0:y.outputCurrencyId)],O=E[0],w=E[1],j=Object(r.useState)(!1),k=Object(ln.a)(j,2),C=k[0],T=k[1],B=Object(r.useMemo)((function(){var e,n;return null!==(e=null===(n=[O,w])||void 0===n?void 0:n.filter((function(e){return e instanceof b.k})))&&void 0!==e?e:[]}),[O,w]),I=Object(r.useCallback)((function(){T(!0)}),[]),S=fn().account,R=Object(r.useContext)(cn.ThemeContext),N=Ln(),L=Un(),U=ta(),P=Object(ln.a)(U,1)[0],D=aa(),F=Object(ln.a)(D,1)[0],W=sA(),M=W.independentField,V=W.typedValue,z=W.recipient,Y=fA(),H=Y.v1Trade,q=Y.v2Trade,Q=Y.currencyBalances,K=Y.parsedAmount,J=Y.currencies,X=Y.inputError,G=Th(J[Wb.INPUT],J[Wb.OUTPUT],V),Z=G.wrapType,_=G.execute,$=G.inputError,ee=Z!==yh.NOT_APPLICABLE,ne=Hy(z).address,te=cA(),ae=(e={},Object(f.a)(e,tA.v1,H),Object(f.a)(e,tA.v2,q),e),re=ee?void 0:ae[te],ie=ee?void 0:ae[oA],oe=ee?(n={},Object(f.a)(n,Wb.INPUT,K),Object(f.a)(n,Wb.OUTPUT,K),n):(t={},Object(f.a)(t,Wb.INPUT,M===Wb.INPUT?K:null===re||void 0===re?void 0:re.inputAmount),Object(f.a)(t,Wb.OUTPUT,M===Wb.OUTPUT?K:null===re||void 0===re?void 0:re.outputAmount),t),ce=function(){var e=Object(s.c)(),n=Object(r.useCallback)((function(n,t){e(Yb({field:n,currencyId:t instanceof b.k?t.address:t===b.a?"AVAX":""}))}),[e]);return{onSwitchTokens:Object(r.useCallback)((function(){e(Hb())}),[e]),onCurrencySelection:n,onUserInput:Object(r.useCallback)((function(n,t){e(qb({field:n,typedValue:t}))}),[e]),onChangeRecipient:Object(r.useCallback)((function(n){e(Kb({recipient:n}))}),[e])}}(),ue=ce.onSwitchTokens,le=ce.onCurrencySelection,se=ce.onUserInput,de=ce.onChangeRecipient,pe=!X,me=M===Wb.INPUT?Wb.OUTPUT:Wb.INPUT,fe=Object(r.useCallback)((function(e){se(Wb.INPUT,e)}),[se]),be=Object(r.useCallback)((function(e){se(Wb.OUTPUT,e)}),[se]),ve=Object(r.useState)({showConfirm:!1,tradeToConfirm:void 0,attemptingTxn:!1,swapErrorMessage:void 0,txHash:void 0}),ge=Object(ln.a)(ve,2),ye=ge[0],he=ye.showConfirm,Ee=ye.tradeToConfirm,xe=ye.swapErrorMessage,Oe=ye.attemptingTxn,we=ye.txHash,je=ge[1],ke=(d={},Object(f.a)(d,M,V),Object(f.a)(d,me,ee?null!==(a=null===(o=oe[M])||void 0===o?void 0:o.toExact())&&void 0!==a?a:"":null!==(c=null===(u=oe[me])||void 0===u?void 0:u.toSignificant(6))&&void 0!==c?c:""),d),Ce=null===re||void 0===re?void 0:re.route,Te=Boolean(J[Wb.INPUT]&&J[Wb.OUTPUT]&&(null===(A=oe[M])||void 0===A?void 0:A.greaterThan(b.f.BigInt(0)))),Be=!Ce,Ie=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,t=fn(),a=t.chainId,i=Object(r.useMemo)((function(){return e?_b(e,n)[Wb.INPUT]:void 0}),[e,n]);return eA(i,a?Ae[a]:Ae[b.b.AVALANCHE])}(re,F),Se=Object(ln.a)(Ie,2),Re=Se[0],Ne=Se[1],Le=Object(r.useState)(!1),Ue=Object(ln.a)(Le,2),Pe=Ue[0],De=Ue[1];Object(r.useEffect)((function(){Re===Vb.PENDING&&De(!0)}),[Re,Pe]);var Fe=EA(Q[Wb.INPUT]),We=Boolean(Fe&&(null===(v=oe[Wb.INPUT])||void 0===v?void 0:v.equalTo(Fe))),Me=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:50,t=arguments.length>2?arguments[2]:void 0,a=fn(),i=a.account,o=a.chainId,c=a.library,u=kh(e,n,t),l=uc(),s=Hy(t),d=s.address,f=null===t?i:d;return Object(r.useMemo)((function(){if(!e||!c||!i||!o)return{state:gh.INVALID,callback:null,error:"Missing dependencies"};if(!f)return null!==t?{state:gh.INVALID,callback:null,error:"Invalid recipient"}:{state:gh.LOADING,callback:null,error:null};var n=tA.v2;return{state:gh.VALID,callback:function(){var a=Object(x.a)(h.a.mark((function a(){var r,o,c,s,d,b,A,v,g,y;return h.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,Promise.all(u.map((function(n){var t,a=n.parameters,r=a.methodName,i=a.args,o=a.value,c=n.contract,u=!o||jh(o)?{}:{value:o};return(t=c.estimateGas)[r].apply(t,Object(p.a)(i).concat([u])).then((function(e){return{call:n,gasEstimate:e}})).catch((function(t){var a;return console.debug("Gas estimate failed, trying eth_call to extract error",n),(a=c.callStatic)[r].apply(a,Object(p.a)(i).concat([u])).then((function(e){return console.debug("Unexpected successful call after failed estimate gas",n,t,e),{call:n,error:new Error("Unexpected issue with estimating the gas. Please try again.")}})).catch((function(t){var a;switch(console.debug("Call threw error",n,t),t.reason){case"BaguetteRouter: INSUFFICIENT_OUTPUT_AMOUNT":case"BaguetteRouter: EXCESSIVE_INPUT_AMOUNT":a="This transaction will not succeed either due to price movement or fee on transfer. Try increasing your slippage tolerance.";break;default:var r=e.inputAmount.currency.symbol,i=e.outputAmount.currency.symbol;a="SHIBX"===r||"SHIBX"===i?"You are trying to swap SHIBX tokens. This token has a 10% reflection fee that needs to be accounted for in your slippage settings. Try swapping again with 11-12% slippage setting.":"The transaction cannot succeed due to error: ".concat(t.reason,". This is probably an issue with one of the tokens you are swapping.")}return{call:n,error:new Error(a)}}))}))})));case 2:if(r=a.sent,o=r.find((function(e,n,t){return"gasEstimate"in e&&(n===t.length-1||"gasEstimate"in t[n+1])}))){a.next=9;break}if(!((c=r.filter((function(e){return"error"in e}))).length>0)){a.next=8;break}throw c[c.length-1].error;case 8:throw new Error("Unexpected error. Please contact support: none of the calls threw an error");case 9:return s=o.call,d=s.contract,b=s.parameters,A=b.methodName,v=b.args,g=b.value,y=o.gasEstimate,a.abrupt("return",d[A].apply(d,Object(p.a)(v).concat([Object(m.a)({gasLimit:pt(y)},g&&!jh(g)?{value:g,from:i}:{from:i})])).then((function(a){var r=e.inputAmount.currency.symbol,o=e.outputAmount.currency.symbol,c=e.inputAmount.toSignificant(3),u=e.outputAmount.toSignificant(3),s="Swap ".concat(c," ").concat(r," for ").concat(u," ").concat(o),d=f===i?s:"".concat(s," to ").concat(t&&ut(t)?dt(t):t),p=n===tA.v2?d:"".concat(d," on ").concat(n.toUpperCase());return l(a,{summary:p}),a.hash})).catch((function(e){throw 4001===(null===e||void 0===e?void 0:e.code)?new Error("Transaction rejected."):(console.error("Swap failed",e,A,v,g),new Error("Swap failed: ".concat(e.message)))})));case 11:case"end":return a.stop()}}),a)})));return function(){return a.apply(this,arguments)}}(),error:null}}),[e,c,i,o,f,t,u,l])}(re,F,z),Ve=Me.callback,ze=Me.error,Ye=Zb(re).priceImpactWithoutFee,He=Object(r.useCallback)((function(){Ye&&!function(e){return e.lessThan(Xe)?!!e.lessThan(Je)||window.confirm("This swap has a price impact of at least ".concat(Je.toFixed(0),"%. Please confirm that you would like to continue with this swap.")):"confirm"===window.prompt("This swap has a price impact of at least ".concat(Xe.toFixed(0),'%. Please type the word "confirm" to continue with this swap.'))}(Ye)||Ve&&(je({attemptingTxn:!0,tradeToConfirm:Ee,showConfirm:he,swapErrorMessage:void 0,txHash:void 0}),Ve().then((function(e){var n,t,a,r;je({attemptingTxn:!1,tradeToConfirm:Ee,showConfirm:he,swapErrorMessage:void 0,txHash:e}),l.a.event({category:"Swap",action:null===z?"Swap w/o Send":(null!==ne&&void 0!==ne?ne:z)===S?"Swap w/o Send + recipient":"Swap w/ Send",label:[null===re||void 0===re||null===(n=re.inputAmount)||void 0===n||null===(t=n.currency)||void 0===t?void 0:t.symbol,null===re||void 0===re||null===(a=re.outputAmount)||void 0===a||null===(r=a.currency)||void 0===r?void 0:r.symbol,tA.v2].join("/")})})).catch((function(e){je({attemptingTxn:!1,tradeToConfirm:Ee,showConfirm:he,swapErrorMessage:e.message,txHash:void 0})})))}),[Ee,S,Ye,z,ne,he,Ve,re]),qe=Object(r.useState)(!1),Qe=Object(ln.a)(qe,2),Ke=Qe[0],Ge=Qe[1],Ze=$b(Ye),_e=!X&&(Re===Vb.NOT_APPROVED||Re===Vb.PENDING||Pe&&Re===Vb.APPROVED)&&!(Ze>3&&!P),$e=Object(r.useCallback)((function(){je({showConfirm:!1,tradeToConfirm:Ee,attemptingTxn:Oe,swapErrorMessage:xe,txHash:we}),we&&se(Wb.INPUT,"")}),[Oe,se,xe,Ee,we]),en=Object(r.useCallback)((function(){je({tradeToConfirm:re,swapErrorMessage:xe,txHash:we,attemptingTxn:Oe,showConfirm:he})}),[Oe,he,xe,re,we]),nn=Object(r.useCallback)((function(e){De(!1),le(Wb.INPUT,e)}),[le]),tn=Object(r.useCallback)((function(){Fe&&se(Wb.INPUT,Fe.toExact())}),[Fe,se]),an=Object(r.useCallback)((function(e){return le(Wb.OUTPUT,e)}),[le]);return i.a.createElement(i.a.Fragment,null,i.a.createElement(wh,{isOpen:B.length>0&&!C,tokens:B,onConfirm:I}),i.a.createElement(wA,null,i.a.createElement(_f,{active:"swap"}),i.a.createElement(hb,{id:"swap-page"},i.a.createElement(rh,{isOpen:he,trade:re,originalTrade:Ee,onAcceptChanges:en,attemptingTxn:Oe,txHash:we,recipient:z,allowedSlippage:F,onConfirm:He,swapErrorMessage:xe,onDismiss:$e}),i.a.createElement(fi,{gap:"md"},i.a.createElement(Yf,{label:M===Wb.OUTPUT&&!ee&&re?"From (estimated)":"From",value:ke[Wb.INPUT],showMaxButton:!We,currency:J[Wb.INPUT],onUserInput:fe,onMax:tn,onCurrencySelect:nn,otherCurrency:J[Wb.OUTPUT],id:"swap-currency-input"}),i.a.createElement(fi,{justify:"space-between"},i.a.createElement(Dr,{justify:P?"space-between":"center",style:{padding:"0 1rem"}},i.a.createElement(Eb,{clickable:!0},i.a.createElement(Ly.a,{size:"16",onClick:function(){De(!1),ue()},color:J[Wb.INPUT]&&J[Wb.OUTPUT]?R.primary1:R.text2})),null===z&&!ee&&P?i.a.createElement(Xa,{id:"add-recipient-button",onClick:function(){return de("")}},"+ Add a send (optional)"):null)),i.a.createElement(Yf,{value:ke[Wb.OUTPUT],onUserInput:be,label:M===Wb.INPUT&&!ee&&re?"To (estimated)":"To",showMaxButton:!1,currency:J[Wb.OUTPUT],onCurrencySelect:an,otherCurrency:J[Wb.INPUT],id:"swap-currency-output"}),null===z||ee?null:i.a.createElement(i.a.Fragment,null,i.a.createElement(Dr,{justify:"space-between",style:{padding:"0 1rem"}},i.a.createElement(Eb,{clickable:!1},i.a.createElement(Ly.a,{size:"16",color:R.text2})),i.a.createElement(Xa,{id:"remove-recipient-button",onClick:function(){return de(null)}},"- Remove send")),i.a.createElement($y,{id:"recipient",value:z,onChange:de})),ee?null:i.a.createElement(wa,{padding:".25rem .75rem 0 .75rem",borderRadius:"20px"},i.a.createElement(fi,{gap:"4px"},Boolean(re)&&i.a.createElement(Ur,{align:"center"},i.a.createElement(sn.b,{fontWeight:500,fontSize:14,color:R.text2},"Price"),i.a.createElement(fh,{price:null===re||void 0===re?void 0:re.executionPrice,showInverted:Ke,setShowInverted:Ge})),50!==F&&i.a.createElement(Ur,{align:"center"},i.a.createElement(SA,{fontWeight:500,fontSize:14,color:R.text2,onClick:L},"Slippage Tolerance"),i.a.createElement(SA,{fontWeight:500,fontSize:14,color:R.text2,onClick:L},F/100,"%"))))),i.a.createElement(Ob,null,S?ee?i.a.createElement($r,{disabled:Boolean($),onClick:_},null!==$&&void 0!==$?$:Z===yh.WRAP?"Wrap":Z===yh.UNWRAP?"Unwrap":null):Be&&Te?i.a.createElement(ka,{style:{textAlign:"center"}},i.a.createElement(br,{mb:"4px"},"Insufficient liquidity for this trade.")):_e?i.a.createElement(Ur,null,i.a.createElement(oi,{onClick:Ne,disabled:Re!==Vb.NOT_APPROVED||Pe,width:"48%",altDisabledStyle:Re===Vb.PENDING,confirmed:Re===Vb.APPROVED},Re===Vb.PENDING?i.a.createElement(Dr,{gap:"6px",justify:"center"},"Approving ",i.a.createElement(hc,{stroke:"white"})):Pe&&Re===Vb.APPROVED?"Approved":"Approve "+(null===(g=J[Wb.INPUT])||void 0===g?void 0:g.symbol)),i.a.createElement(ci,{onClick:function(){P?He():je({tradeToConfirm:re,attemptingTxn:!1,swapErrorMessage:void 0,showConfirm:!0,txHash:void 0})},width:"48%",id:"swap-button",disabled:!pe||Re!==Vb.APPROVED||Ze>3&&!P,error:pe&&Ze>2},i.a.createElement(sn.b,{fontSize:16,fontWeight:500},Ze>3&&!P?"Price Impact High":"Swap".concat(Ze>2?" Anyway":"")))):i.a.createElement(ci,{onClick:function(){P?He():je({tradeToConfirm:re,attemptingTxn:!1,swapErrorMessage:void 0,showConfirm:!0,txHash:void 0})},id:"swap-button",disabled:!pe||Ze>3&&!P||!!ze,error:pe&&Ze>2&&!ze},i.a.createElement(sn.b,{fontSize:20,fontWeight:500},X||(Ze>3&&!P?"Price Impact Too High":"Swap".concat(Ze>2?" Anyway":"")))):i.a.createElement(ei,{onClick:N},"Connect Wallet"),_e&&i.a.createElement(bi,{style:{marginTop:"1rem"}},i.a.createElement(Xv,{steps:[Re===Vb.APPROVED]})),P&&xe?i.a.createElement(Ib,{error:xe}):null,te!==oA&&ie?i.a.createElement(mh,null):null))),i.a.createElement(dh,{trade:re}))}function Ih(e){var n=e.location;return i.a.createElement(on.a,{to:Object(m.a)(Object(m.a)({},n),{},{pathname:"/swap"})})}function Sh(e){var n=e.location.search,t=e.match.params.outputCurrency;return i.a.createElement(on.a,{to:Object(m.a)(Object(m.a)({},e.location),{},{pathname:"/swap",search:n&&n.length>1?"".concat(n,"&outputCurrency=").concat(t):"?outputCurrency=".concat(t)})})}var Rh=t(320),Nh=t.n(Rh),Lh=t(66);function Uh(){var e=Object(rn.a)(["\n  width: 100%;\n  padding: 10px;\n  font-size: 16px;\n  border-radius: 5px;\n  border: 1px solid #ccc;\n"]);return Uh=function(){return e},e}function Ph(){var e=Object(rn.a)(["\n  width: 100%;\n  max-width: 400px;\n  margin: 0 auto;\n  gap: 1rem;\n"]);return Ph=function(){return e},e}function Dh(){var e=Object(rn.a)(["\n  background-color: black;\n  color: white;\n  width: 400px;\n  padding: 20px;\n  border-radius: 10px;\n  margin: 100px auto;\n  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);\n  margin-top: 20px;\n"]);return Dh=function(){return e},e}function Fh(){var e=Object(rn.a)(["\n  color: #FFFFFF;\n"]);return Fh=function(){return e},e}function Wh(){var e=Object(rn.a)(["\n  width: 100%;\n  padding: 1rem;\n"]);return Wh=function(){return e},e}var Mh=Object(cn.default)(fi)(Wh()),Vh=cn.default.span(Fh()),zh=cn.default.div(Dh()),Yh=Object(cn.default)(fi)(Ph()),Hh=cn.default.input(Uh()),qh=[{inputs:[{internalType:"string",name:"name_",type:"string"},{internalType:"string",name:"symbol_",type:"string"},{internalType:"bool",name:"isBurnable_",type:"bool"},{internalType:"uint256",name:"initialSupply_",type:"uint256"}],name:"create",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract ISwanRouter",name:"_router",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"_name",type:"string"},{indexed:!1,internalType:"string",name:"_symbol",type:"string"},{indexed:!1,internalType:"string",name:"_tokenType",type:"string"},{indexed:!1,internalType:"address",name:"_tokenAddress",type:"address"}],name:"Created",type:"event"},{inputs:[],name:"getAll",outputs:[{components:[{internalType:"string",name:"name",type:"string"},{internalType:"string",name:"symbol",type:"string"},{internalType:"string",name:"tokenType",type:"string"},{internalType:"bool",name:"isBurnable",type:"bool"},{internalType:"bool",name:"isMintable",type:"bool"},{internalType:"address",name:"tokenAddress",type:"address"}],internalType:"struct Token[]",name:"",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"router",outputs:[{internalType:"contract ISwanRouter",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"time",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];function Qh(){var e=fn(),n=e.account,t=e.library,a=uc(),o=Object(r.useState)(""),c=Object(ln.a)(o,2),u=c[0],l=c[1],s=Object(r.useState)(""),d=Object(ln.a)(s,2),p=d[0],m=d[1],f=Object(r.useState)(""),b=Object(ln.a)(f,2),A=b[0],v=b[1],g=Object(r.useState)(""),y=Object(ln.a)(g,2),E=y[0],O=y[1],w=Object(r.useState)(),j=Object(ln.a)(w,2),k=j[0],C=j[1],T=Object(r.useState)(!1),B=Object(ln.a)(T,2),I=B[0],S=B[1],R=Object(r.useState)(),N=Object(ln.a)(R,2),L=N[0],U=N[1],P=function(){var e=Object(x.a)(h.a.mark((function e(){var r,i,o,c,l,s,d,m,f,b;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=2;break}return e.abrupt("return");case 2:return r=t.getSigner(n),i=new Lh.a.Contract("0x6671b0f95da6025dc54BE68cbFfbeeC6C45cfa43",qh,r),!0,e.prev=5,S(!0),o=E.replace(" eth","").trim(),c=Lh.a.utils.parseUnits(o,18),e.next=11,i.create(u,p,!0,A,{value:c});case 11:return l=e.sent,a(l,{summary:"Created ".concat(u," (").concat(p,")")}),C(l.hash),e.next=16,l.wait();case 16:s=e.sent,d=new Lh.a.utils.Interface(qh),(m=s.logs.find((function(e){return e.topics[0]===d.getEventTopic("Created")})))&&(f=d.parseLog(m),b=f.args._tokenAddress,U(b)),e.next=26;break;case 22:e.prev=22,e.t0=e.catch(5),console.error(e.t0),S(!1);case 26:case"end":return e.stop()}}),e,null,[[5,22]])})));return function(){return e.apply(this,arguments)}}();return i.a.createElement("div",null,i.a.createElement(zh,null,!I&&!k&&i.a.createElement(Mh,{gap:"lg"},i.a.createElement(Ur,null,i.a.createElement(Vh,null,"One-click Deployer")),i.a.createElement(Yh,{gap:"md"},i.a.createElement(Hh,{value:u,onChange:function(e){return l(e.target.value)},placeholder:" Name"}),i.a.createElement(Hh,{value:p,onChange:function(e){return m(e.target.value)},placeholder:" Symbol"}),i.a.createElement(Hh,{value:A,onChange:function(e){return v(e.target.value)},placeholder:"Total Supply"}),i.a.createElement(Hh,{type:"text",value:E,onChange:function(e){return O(e.target.value)},placeholder:"Initial Liquidity (e.g., 1 ETH)"})),i.a.createElement(ci,{onClick:P},i.a.createElement(Vh,null,"Create Token"))),I&&!k&&i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(Vh,null,"Creating Token...")),k&&i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(Vh,null,"Transaction Submitted"),i.a.createElement(Vh,null,"Token Created!"),L&&i.a.createElement(Vh,null,"Token Address: ",L))))}function Kh(){var e=Object(rn.a)(["\n  color: #FFFFFF;\n"]);return Kh=function(){return e},e}function Jh(){var e=Object(rn.a)(["\n  width: 100%;\n  padding: 10px;\n  font-size: 16px;\n  border-radius: 5px;\n  border: 1px solid #ccc;\n  margin-bottom: 1rem;\n"]);return Jh=function(){return e},e}function Xh(){var e=Object(rn.a)(["\n  display: flex;\n  justify-content: center; /* Centers the content horizontally */\n  align-items: center; /* Centers the content vertically */\n  text-align: center; /* Aligns the text within the element */\n  width: 100%; /* Ensures the flex container takes up the full width of its parent */\n  margin-bottom: 1rem;\n"]);return Xh=function(){return e},e}function Gh(){var e=Object(rn.a)(["\n  background-color: black;\n  color: white;\n  width: 400px;\n  padding: 20px;\n  border-radius: 10px;\n  margin: 100px auto;\n  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);\n  margin-top: 20px;\n"]);return Gh=function(){return e},e}function Zh(){var e=Object(rn.a)(["\n  width: 100%;\n  padding: 1rem;\n"]);return Zh=function(){return e},e}var _h=Object(cn.default)(fi)(Zh()),$h=cn.default.div(Gh()),eE=cn.default.div(Xh()),nE=cn.default.input(Jh()),tE=cn.default.span(Kh()),aE=[{inputs:[],name:"deposit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"}],name:"getDeposit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalDeposited",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}];function rE(){var e=fn(),n=e.account,t=e.library,a=uc(),o=Object(r.useState)(""),c=Object(ln.a)(o,2),u=c[0],l=c[1],s=Object(r.useState)(0),d=Object(ln.a)(s,2),p=d[0],m=d[1],f=Object(r.useState)(!1),b=Object(ln.a)(f,2),A=b[0],v=b[1],g=Object(r.useState)(!1),y=Object(ln.a)(g,2),E=y[0],O=y[1],w=Object(r.useState)(),j=Object(ln.a)(w,2),k=j[0],C=j[1],T=Object(r.useState)("0"),B=Object(ln.a)(T,2),I=B[0],S=B[1],R=Object(r.useState)("0"),N=Object(ln.a)(R,2),L=N[0],U=N[1];Object(r.useEffect)((function(){t&&n&&(P(),D())}),[t,n]);var P=function(){var e=Object(x.a)(h.a.mark((function e(){var n,a;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t){e.next=2;break}return e.abrupt("return");case 2:return n=new Lh.a.Contract("0x45B88e20b993299Dd8100485e0D295EDA298B94C",aE,t),e.prev=3,e.next=6,n.totalDeposited();case 6:a=e.sent,S(Lh.a.utils.formatEther(a)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Error fetching total raised:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),D=function(){var e=Object(x.a)(h.a.mark((function e(){var a,r;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=2;break}return e.abrupt("return");case 2:return a=new Lh.a.Contract("0x45B88e20b993299Dd8100485e0D295EDA298B94C",aE,t),e.prev=3,e.next=6,a.getDeposit(n);case 6:r=e.sent,U(Lh.a.utils.formatEther(r)),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(3),console.error("Error fetching user contribution:",e.t0);case 13:case"end":return e.stop()}}),e,null,[[3,10]])})));return function(){return e.apply(this,arguments)}}(),F=function(){var e=Object(x.a)(h.a.mark((function e(){var r,i,o,c;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t&&n){e.next=2;break}return e.abrupt("return");case 2:return r=t.getSigner(n),i=new Lh.a.Contract("0x45B88e20b993299Dd8100485e0D295EDA298B94C",aE,r),e.prev=4,v(!0),O(!1),o=Lh.a.utils.parseEther(u),e.next=10,i.deposit({value:o});case 10:return c=e.sent,a(c,{summary:"Deposited ".concat(u," ETH")}),C(c.hash),e.next=15,c.wait();case 15:P(),D(),v(!1),O(!0),e.next=25;break;case 21:e.prev=21,e.t0=e.catch(4),console.error("Error depositing ETH:",e.t0),v(!1);case 25:case"end":return e.stop()}}),e,null,[[4,21]])})));return function(){return e.apply(this,arguments)}}();return i.a.createElement($h,null,i.a.createElement(_h,{gap:"lg"},i.a.createElement(eE,null,i.a.createElement(tE,null,"SWAN Token Presale")),i.a.createElement(tE,null,"SoftCap: 5 ETH"),i.a.createElement(tE,null,"HardCap: 10 ETH"),i.a.createElement(tE,null,"Total Raised: ",I," ETH"),i.a.createElement(tE,null,"Your Contribution: ",L," ETH"),i.a.createElement(nE,{type:"text",value:u,onChange:function(e){var n=e.target.value;if(l(n),n&&!isNaN(Number(n))){var t=15e5*Number(n);m(t)}else m(0)},placeholder:"Enter amount in ETH"}),i.a.createElement(tE,null,"Allocation: ",p.toLocaleString()," SWAN "),i.a.createElement(ci,{onClick:F,disabled:A||!u},i.a.createElement(tE,null,A?"Processing...":"Buy Tokens")),E&&k&&i.a.createElement(fi,{gap:"12px",justify:"center"},i.a.createElement(tE,null,"Transaction Submitted"))))}var iE=t(321),oE=t.n(iE),cE=t(322),uE=t.n(cE),lE=t(323),sE=t.n(lE);function dE(){var e=Object(rn.a)(["\n  margin-top: 20px;\n  display: flex;\n  gap: 15px;\n\n  img {\n    width: 40px;  /* Set the fixed width */\n    height: 40px; /* Set the fixed height */\n    transition: transform 0.3s ease;\n\n    &:hover {\n      transform: scale(1.2); /* Add hover effect to enlarge the icons */\n    }\n  }\n"]);return dE=function(){return e},e}function pE(){var e=Object(rn.a)(["\nfont-family: 'Creepster'; /* Example font, adjust as needed */\n  font-size: 25px;\n  margin: 10px 0;\n"]);return pE=function(){return e},e}function mE(){var e=Object(rn.a)(["\n  font-family: 'Creepster'; /* Example font, adjust as needed */\n  font-size: 48px;\n  margin: 0;\n"]);return mE=function(){return e},e}function fE(){var e=Object(rn.a)(["\n  position: absolute; /* Change to absolute positioning */\n  top: 65%;\n  left: 10px; /* Align to the left of the screen */\n  transform: translateY(-50%); /* Vertically center the content */\n  padding: 20px;\n  box-sizing: border-box;\n  color: white;\n  z-index: 2; /* Ensure content is above the overlay */\n"]);return fE=function(){return e},e}function bE(){var e=Object(rn.a)(["\n  position: absolute;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background-color: rgba(0, 0, 0, 0.4); /* Dim the background */\n  z-index: 1; /* Ensure overlay is above the background */\n"]);return bE=function(){return e},e}function AE(){var e=Object(rn.a)(["\n  width: 100vw;\n  height: 100vh;\n  position: relative; /* Required for overlay positioning */\n  background-image: url(",");\n  background-size: cover;\n  background-position: center;\n  overflow: hidden; /* Prevent scrolling */\n  margin-top:-100px\n"]);return AE=function(){return e},e}var vE=cn.default.div(AE(),oE.a),gE=cn.default.div(bE()),yE=cn.default.div(fE()),hE=cn.default.h1(mE()),EE=cn.default.p(pE()),xE=cn.default.div(dE());function OE(){return i.a.createElement(vE,null,i.a.createElement(gE,null),i.a.createElement(yE,null,i.a.createElement(hE,null,"SwanSwap Protocol"),i.a.createElement(EE,null,"Swap, earn, and deploy in one click on the leading decentralized ",i.a.createElement("br",null),"crypto trading protocol on Shape."),i.a.createElement(xE,null,i.a.createElement("a",{href:"https://x.com/WorldSwap_",target:"_blank",rel:"noopener noreferrer"},i.a.createElement("img",{src:uE.a,alt:"Twitter"})),i.a.createElement("a",{href:"https://t.me/worldswap0",target:"_blank",rel:"noopener noreferrer"},i.a.createElement("img",{src:sE.a,alt:"Telegram"})))))}function wE(){var e=Object(rn.a)(["\n  margin-top: 5rem;\n"]);return wE=function(){return e},e}function jE(){var e=Object(rn.a)(["\n    padding: 16px;\n    padding-top: 2rem;\n  "]);return jE=function(){return e},e}function kE(){var e=Object(rn.a)(["\n  display: flex;\n  flex-direction: column;\n  width: 100%;\n  padding-top: 100px;\n  align-items: center;\n  flex: 1;\n  overflow-y: auto;\n  overflow-x: hidden;\n  z-index: 10;\n\n  ",";\n\n  z-index: 1;\n"]);return kE=function(){return e},e}function CE(){var e=Object(rn.a)(["\n  display: flex;\n  flex-flow: column;\n  align-items: flex-start;\n  overflow-x: hidden;\n\n  /* Add the background image to the entire AppWrapper */\n  background-image: url(",");\n  background-size: cover;\n  background-position: center;\n  background-repeat: no-repeat;\n  min-height: 100vh; /* Ensure it covers the entire viewport height */\n  width: 100%; /* Ensure it covers the entire viewport width */\n"]);return CE=function(){return e},e}function TE(){var e=Object(rn.a)(["\n  ","\n  width: 100%;\n  justify-content: space-between;\n"]);return TE=function(){return e},e}var BE=cn.default.div(TE(),(function(e){return e.theme.flexRowNoWrap})),IE=cn.default.div(CE(),Nh.a),SE=cn.default.div(kE(),(function(e){return e.theme.mediaWidth.upToSmall(jE())})),RE=cn.default.div(wE());function NE(){return i.a.createElement(r.Suspense,{fallback:null},i.a.createElement(on.b,{component:un}),i.a.createElement(on.b,{component:mp}),i.a.createElement(IE,null,i.a.createElement(BE,null,i.a.createElement(hd,null)),i.a.createElement(SE,null,i.a.createElement(op,null),i.a.createElement(Id,null),i.a.createElement(dp,null,i.a.createElement(on.d,null,i.a.createElement(on.b,{exact:!0,strict:!0,path:"/home",component:OE}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/swap",component:Bh}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/home/:outputCurrency",component:Sh}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/send",component:Ih}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/find",component:Ry}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/pool",component:Sy}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/mill",component:Bv}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/oven",component:Fv}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/createTokenModal",component:Qh}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/PresalePage",component:rE}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/create",component:uy}),i.a.createElement(on.b,{exact:!0,path:"/add",component:PA}),i.a.createElement(on.b,{exact:!0,path:"/add/:currencyIdA",component:sy}),i.a.createElement(on.b,{exact:!0,path:"/add/:currencyIdA/:currencyIdB",component:dy}),i.a.createElement(on.b,{exact:!0,path:"/create",component:PA}),i.a.createElement(on.b,{exact:!0,path:"/create/:currencyIdA",component:sy}),i.a.createElement(on.b,{exact:!0,path:"/create/:currencyIdA/:currencyIdB",component:dy}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/remove/:tokens",component:Yy}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/remove/:currencyIdA/:currencyIdB",component:Vy}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/mill/:currencyIdA/:currencyIdB",component:Mg}),i.a.createElement(on.b,{exact:!0,strict:!0,path:"/oven/:currencyId/:rewardCurrencyId",component:cy}),i.a.createElement(on.b,{component:Ih}))),i.a.createElement(RE,null))))}var LE=t(228),UE=Object(kn.c)({blockNumber:{},popupList:[],openModal:null},(function(e){return e.addCase(Cn,(function(e,n){var t=n.payload,a=t.chainId,r=t.blockNumber;"number"!==typeof e.blockNumber[a]?e.blockNumber[a]=r:e.blockNumber[a]=Math.max(r,e.blockNumber[a])})).addCase(Tn,(function(e,n){e.openModal=n.payload})).addCase(Bn,(function(e,n){var t=n.payload,a=t.content,r=t.key,i=t.removeAfterMs,o=void 0===i?15e3:i;e.popupList=(r?e.popupList.filter((function(e){return e.key!==r})):e.popupList).concat([{key:r||Object(kn.e)(),show:!0,content:a,removeAfterMs:o}])})).addCase(In,(function(e,n){var t=n.payload.key;e.popupList.forEach((function(e){e.key===t&&(e.show=!1)}))}))})),PE=Object(kn.b)("global/updateVersion"),DE=function(){return(new Date).getTime()};function FE(e,n){return"".concat(e,";").concat(n)}var WE,ME={userDarkMode:null,matchesDarkMode:!1,userExpertMode:!1,userSlippageTolerance:50,userDeadline:3600,tokens:{},pairs:{},timestamp:DE(),URLWarningVisible:!0},VE=Object(kn.c)(ME,(function(e){return e.addCase(PE,(function(e){"number"!==typeof e.userSlippageTolerance&&(e.userSlippageTolerance=50),"number"!==typeof e.userDeadline&&(e.userDeadline=3600),e.lastUpdateVersionTimestamp=DE()})).addCase(Yt,(function(e,n){e.userDarkMode=n.payload.userDarkMode,e.timestamp=DE()})).addCase(zt,(function(e,n){e.matchesDarkMode=n.payload.matchesDarkMode,e.timestamp=DE()})).addCase(Ht,(function(e,n){e.userExpertMode=n.payload.userExpertMode,e.timestamp=DE()})).addCase(qt,(function(e,n){e.userSlippageTolerance=n.payload.userSlippageTolerance,e.timestamp=DE()})).addCase(Qt,(function(e,n){e.userDeadline=n.payload.userDeadline,e.timestamp=DE()})).addCase(Kt,(function(e,n){var t=n.payload.serializedToken;e.tokens[t.chainId]=e.tokens[t.chainId]||{},e.tokens[t.chainId][t.address]=t,e.timestamp=DE()})).addCase(Jt,(function(e,n){var t=n.payload,a=t.address,r=t.chainId;e.tokens[r]=e.tokens[r]||{},delete e.tokens[r][a],e.timestamp=DE()})).addCase(Xt,(function(e,n){var t=n.payload.serializedPair;if(t.token0.chainId===t.token1.chainId&&t.token0.address!==t.token1.address){var a=t.token0.chainId;e.pairs[a]=e.pairs[a]||{},e.pairs[a][FE(t.token0.address,t.token1.address)]=t}e.timestamp=DE()})).addCase(Gt,(function(e,n){var t=n.payload,a=t.chainId,r=t.tokenAAddress,i=t.tokenBAddress;e.pairs[a]&&(delete e.pairs[a][FE(r,i)],delete e.pairs[a][FE(i,r)]),e.timestamp=DE()})).addCase(Zt,(function(e){e.URLWarningVisible=!e.URLWarningVisible}))})),zE=function(){return(new Date).getTime()},YE=Object(kn.c)({},(function(e){return e.addCase(rc,(function(e,n){var t,a,r=n.payload,i=r.chainId,o=r.from,c=r.hash,u=r.approval,l=r.summary,s=r.claim;if(null===(t=e[i])||void 0===t?void 0:t[c])throw Error("Attempted to add existing transaction.");var d=null!==(a=e[i])&&void 0!==a?a:{};d[c]={hash:c,approval:u,summary:l,claim:s,from:o,addedTime:zE()},e[i]=d})).addCase(ic,(function(e,n){var t=n.payload.chainId;e[t]&&(e[t]={})})).addCase(cc,(function(e,n){var t,a=n.payload,r=a.chainId,i=a.hash,o=a.blockNumber,c=null===(t=e[r])||void 0===t?void 0:t[i];c&&(c.lastCheckedBlockNumber?c.lastCheckedBlockNumber=Math.max(o,c.lastCheckedBlockNumber):c.lastCheckedBlockNumber=o)})).addCase(oc,(function(e,n){var t,a=n.payload,r=a.hash,i=a.chainId,o=a.receipt,c=null===(t=e[i])||void 0===t?void 0:t[r];c&&(c.receipt=o,c.confirmedTime=zE())}))})),HE=(WE={independentField:Wb.INPUT,typedValue:""},Object(f.a)(WE,Wb.INPUT,{currencyId:""}),Object(f.a)(WE,Wb.OUTPUT,{currencyId:""}),Object(f.a)(WE,"recipient",null),WE),qE=Object(kn.c)(HE,(function(e){return e.addCase(Qb,(function(e,n){var t,a=n.payload,r=a.typedValue,i=a.recipient,o=a.field,c=a.inputCurrencyId,u=a.outputCurrencyId;return t={},Object(f.a)(t,Wb.INPUT,{currencyId:c}),Object(f.a)(t,Wb.OUTPUT,{currencyId:u}),Object(f.a)(t,"independentField",o),Object(f.a)(t,"typedValue",r),Object(f.a)(t,"recipient",i),t})).addCase(Yb,(function(e,n){var t,a=n.payload,r=a.currencyId,i=a.field,o=i===Wb.INPUT?Wb.OUTPUT:Wb.INPUT;return r===e[o].currencyId?Object(m.a)(Object(m.a)({},e),{},(t={independentField:e.independentField===Wb.INPUT?Wb.OUTPUT:Wb.INPUT},Object(f.a)(t,i,{currencyId:r}),Object(f.a)(t,o,{currencyId:e[i].currencyId}),t)):Object(m.a)(Object(m.a)({},e),{},Object(f.a)({},i,{currencyId:r}))})).addCase(Hb,(function(e){var n;return Object(m.a)(Object(m.a)({},e),{},(n={independentField:e.independentField===Wb.INPUT?Wb.OUTPUT:Wb.INPUT},Object(f.a)(n,Wb.INPUT,{currencyId:e[Wb.OUTPUT].currencyId}),Object(f.a)(n,Wb.OUTPUT,{currencyId:e[Wb.INPUT].currencyId}),n))})).addCase(qb,(function(e,n){var t=n.payload,a=t.field,r=t.typedValue;return Object(m.a)(Object(m.a)({},e),{},{independentField:a,typedValue:r})})).addCase(Kb,(function(e,n){var t=n.payload.recipient;e.recipient=t}))})),QE={independentField:zb.CURRENCY_A,typedValue:"",otherTypedValue:""},KE=Object(kn.c)(QE,(function(e){return e.addCase(rA,(function(){return QE})).addCase(aA,(function(e,n){var t=n.payload,a=t.field,r=t.typedValue;return t.noLiquidity?a===e.independentField?Object(m.a)(Object(m.a)({},e),{},{independentField:a,typedValue:r}):Object(m.a)(Object(m.a)({},e),{},{independentField:a,typedValue:r,otherTypedValue:e.typedValue}):Object(m.a)(Object(m.a)({},e),{},{independentField:a,typedValue:r,otherTypedValue:""})}))})),JE=t(69),XE={error:null,current:null,loadingRequestId:null,pendingUpdate:null},GE={lastInitializedDefaultListOfLists:[JE.name],byUrl:Object(f.a)({},JE.name,Object(m.a)(Object(m.a)({},XE),{},{current:JE})),selectedListUrl:JE.name},ZE=Object(kn.c)(GE,(function(e){return e.addCase(Pd,(function(e,n){var t=n.payload;e.selectedListUrl=t,e.byUrl[t]||(e.byUrl[t]=Object(m.a)(Object(m.a)({},XE),{},{current:JE}))})).addCase(Ld,(function(e,n){var t=n.payload;e.byUrl[t]||(e.byUrl[t]=Object(m.a)(Object(m.a)({},XE),{},{current:JE}))})).addCase(Ud,(function(e,n){var t=n.payload;e.byUrl[t]&&delete e.byUrl[t],e.selectedListUrl===t&&(e.selectedListUrl=JE.name)})).addCase(Nd,(function(e,n){var t,a=n.payload;if(!(null===(t=e.byUrl[a])||void 0===t?void 0:t.pendingUpdate))throw new Error("accept list update called without pending update");e.byUrl[a]=Object(m.a)(Object(m.a)({},e.byUrl[a]),{},{pendingUpdate:null,current:e.byUrl[a].pendingUpdate})})).addCase(PE,(function(e){e.byUrl=Object(f.a)({},JE.name,Object(m.a)(Object(m.a)({},XE),{},{current:JE})),e.selectedListUrl=JE.name,e.lastInitializedDefaultListOfLists=[JE.name]}))})),_E={independentField:Py.LIQUIDITY_PERCENT,typedValue:"0"},$E=Object(kn.c)(_E,(function(e){return e.addCase(Wy,(function(e,n){var t=n.payload,a=t.field,r=t.typedValue;return Object(m.a)(Object(m.a)({},e),{},{independentField:a,typedValue:r})}))})),ex=Object(kn.c)({callResults:{}},(function(e){return e.addCase(Vn,(function(e,n){var t,a=n.payload,r=a.calls,i=a.chainId,o=a.options,c=(o=void 0===o?{}:o).blocksPerFetch,u=void 0===c?1:c,l=e.callListeners?e.callListeners:e.callListeners={};l[i]=null!==(t=l[i])&&void 0!==t?t:{},r.forEach((function(e){var n,t,a=Wn(e);l[i][a]=null!==(n=l[i][a])&&void 0!==n?n:{},l[i][a][u]=(null!==(t=l[i][a][u])&&void 0!==t?t:0)+1}))})).addCase(zn,(function(e,n){var t=n.payload,a=t.chainId,r=t.calls,i=t.options,o=(i=void 0===i?{}:i).blocksPerFetch,c=void 0===o?1:o,u=e.callListeners?e.callListeners:e.callListeners={};u[a]&&r.forEach((function(e){var n=Wn(e);u[a][n]&&u[a][n][c]&&(1===u[a][n][c]?delete u[a][n][c]:u[a][n][c]--)}))})).addCase(Yn,(function(e,n){var t,a=n.payload,r=a.chainId,i=a.fetchingBlockNumber,o=a.calls;e.callResults[r]=null!==(t=e.callResults[r])&&void 0!==t?t:{},o.forEach((function(n){var t=Wn(n),a=e.callResults[r][t];if(a){var o;if((null!==(o=a.fetchingBlockNumber)&&void 0!==o?o:0)>=i)return;e.callResults[r][t].fetchingBlockNumber=i}else e.callResults[r][t]={fetchingBlockNumber:i}}))})).addCase(Hn,(function(e,n){var t,a=n.payload,r=a.fetchingBlockNumber,i=a.chainId,o=a.calls;e.callResults[i]=null!==(t=e.callResults[i])&&void 0!==t?t:{},o.forEach((function(n){var t=Wn(n),a=e.callResults[i][t];a&&a.fetchingBlockNumber===r&&(delete a.fetchingBlockNumber,a.data=null,a.blockNumber=r)}))})).addCase(qn,(function(e,n){var t,a=n.payload,r=a.chainId,i=a.results,o=a.blockNumber;e.callResults[r]=null!==(t=e.callResults[r])&&void 0!==t?t:{},Object.keys(i).forEach((function(n){var t,a=e.callResults[r][n];(null!==(t=null===a||void 0===a?void 0:a.blockNumber)&&void 0!==t?t:0)>o||(e.callResults[r][n]={data:i[n],blockNumber:o})}))}))})),nx=["user","transactions","lists"],tx=Object(kn.a)({reducer:{application:UE,user:VE,transactions:YE,swap:qE,mint:KE,burn:$E,multicall:ex,lists:ZE},middleware:[].concat(Object(p.a)(Object(kn.d)({thunk:!1})),[Object(LE.save)({states:nx})]),preloadedState:Object(LE.load)({states:nx})});tx.dispatch(PE());var ax=tx;function rx(e,n){var t=Object(r.useState)(e),a=Object(ln.a)(t,2),i=a[0],o=a[1];return Object(r.useEffect)((function(){var t=setTimeout((function(){o(e)}),n);return function(){clearTimeout(t)}}),[e,n]),i}var ix="visibilityState"in document;function ox(){return!ix||"hidden"!==document.visibilityState}function cx(){var e=Object(r.useState)(ox()),n=Object(ln.a)(e,2),t=n[0],a=n[1],i=Object(r.useCallback)((function(){a(ox())}),[a]);return Object(r.useEffect)((function(){if(ix)return document.addEventListener("visibilitychange",i),function(){document.removeEventListener("visibilitychange",i)}}),[i]),t}function ux(){var e=fn(),n=e.library,t=e.chainId,a=Object(s.c)(),i=cx(),o=Object(r.useState)({chainId:t,blockNumber:null}),c=Object(ln.a)(o,2),u=c[0],l=c[1],d=Object(r.useCallback)((function(e){l((function(n){return t===n.chainId?"number"!==typeof n.blockNumber?{chainId:t,blockNumber:e}:{chainId:t,blockNumber:Math.max(e,n.blockNumber)}:n}))}),[t,l]);Object(r.useEffect)((function(){if(n&&t&&i)return l({chainId:t,blockNumber:null}),n.getBlockNumber().then(d).catch((function(e){return console.error("Failed to get block number for chainId: ".concat(t),e)})),n.on("block",d),function(){n.removeListener("block",d)}}),[a,t,n,d,i]);var p=rx(u,100);return Object(r.useEffect)((function(){p.chainId&&p.blockNumber&&i&&a(Cn({chainId:p.chainId,blockNumber:p.blockNumber}))}),[i,a,p.blockNumber,p.chainId]),null}function lx(){var e=fn().library,n=Object(s.c)(),t=Object(s.d)((function(e){return e.lists.byUrl})),a=cx(),i=qm();return Ni(Object(r.useCallback)((function(){a&&Object.keys(t).forEach((function(e){return i(e).catch((function(e){return console.debug("interval list fetching error",e)}))}))}),[i,a,t]),e?6e5:null),Object(r.useEffect)((function(){Object.keys(t).forEach((function(e){var n=t[e];n.current||n.loadingRequestId||n.error||i(e).catch((function(e){return console.debug("list added fetching error",e)}))}))}),[n,i,e,t]),Object(r.useEffect)((function(){Object.keys(t).forEach((function(e){var a=t[e];if(a.current&&a.pendingUpdate){var r=Object(Sd.c)(a.current.version,a.pendingUpdate.version);switch(r){case Sd.a.NONE:throw new Error("unexpected no version bump");case Sd.a.PATCH:case Sd.a.MINOR:r>=Object(Sd.d)(a.current.tokens,a.pendingUpdate.tokens)?(n(Nd(e)),n(Bn({key:e,content:{listUpdate:{listUrl:e,oldList:a.current,newList:a.pendingUpdate,auto:!0}}}))):console.error("List at url ".concat(e," could not automatically update because the version bump was only PATCH/MINOR while the update had breaking changes and should have been MAJOR"));break;case Sd.a.MAJOR:n(Bn({key:e,content:{listUpdate:{listUrl:e,auto:!1,oldList:a.current,newList:a.pendingUpdate}},removeAfterMs:null}))}}}))}),[n,t]),null}function sx(e,n){return t=e+Math.round(Math.random()*Math.max(0,n-e)),new Promise((function(e){return setTimeout(e,t)}));var t}var dx=function(e){Object(w.a)(t,e);var n=Object(j.a)(t);function t(){return Object(O.a)(this,t),n.call(this,"Cancelled")}return t}(Object(k.a)(Error)),px=function(e){Object(w.a)(t,e);var n=Object(j.a)(t);function t(){return Object(O.a)(this,t),n.apply(this,arguments)}return t}(Object(k.a)(Error));function mx(){return(mx=Object(x.a)(h.a.mark((function e(n,t,a){var r,i,o,c;return h.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return console.debug("Fetching chunk",n,t,a),e.prev=1,e.next=5,n.aggregate(t.map((function(e){return[e.address,e.callData]})));case 5:o=e.sent,c=Object(ln.a)(o,2),r=c[0],i=c[1],e.next=15;break;case 11:throw e.prev=11,e.t0=e.catch(1),console.debug("Failed to fetch chunk inside retry",e.t0),e.t0;case 15:if(!(r.toNumber()<a)){e.next=18;break}throw console.debug("Fetched results for old block number: ".concat(r.toString()," vs. ").concat(a)),new px("Fetched for old block number");case 18:return e.abrupt("return",{results:i,blockNumber:r.toNumber()});case 19:case"end":return e.stop()}}),e,null,[[1,11]])})))).apply(this,arguments)}function fx(){var e=Object(s.c)(),n=Object(s.d)((function(e){return e.multicall})),t=rx(n.callListeners,100),a=Sn(),i=fn().chainId,o=Lt(),c=Object(r.useRef)(),u=Object(r.useMemo)((function(){return function(e,n){if(!e||!n)return{};var t=e[n];return t?Object.keys(t).reduce((function(e,n){var a=t[n];return e[n]=Object.keys(a).filter((function(e){var n=parseInt(e);return!(n<=0)&&a[n]>0})).reduce((function(e,n){return Math.min(e,parseInt(n))}),1/0),e}),{}):{}}(t,i)}),[t,i]),l=Object(r.useMemo)((function(){return function(e,n,t,a){return t&&a?e[t]?Object.keys(n).filter((function(r){var i=n[r],o=e[t][r];if(!o)return!0;var c=a-(i-1);return!(o.fetchingBlockNumber&&o.fetchingBlockNumber>=c)&&(!o.blockNumber||o.blockNumber<c)})):Object.keys(n):[]}(n.callResults,u,i,a)}),[i,n.callResults,u,a]),d=Object(r.useMemo)((function(){return JSON.stringify(l.sort())}),[l]);return Object(r.useEffect)((function(){var n;if(a&&i&&o){var t=JSON.parse(d);if(0!==t.length){var r,u,l=t.map((function(e){return Mn(e)})),s=function(e,n){if(n<1)throw new Error("maxChunkSize must be gte 1");if(e.length<=n)return[e];var t=Math.ceil(e.length/n),a=Math.ceil(e.length/t);return Object(p.a)(Array(t).keys()).map((function(n){return e.slice(n*a,n*a+a)}))}(l,500);if((null===(n=c.current)||void 0===n?void 0:n.blockNumber)!==a)null===(r=c.current)||void 0===r||null===(u=r.cancellations)||void 0===u||u.forEach((function(e){return e()}));e(Yn({calls:l,chainId:i,fetchingBlockNumber:a})),c.current={blockNumber:a,cancellations:s.map((function(n,r){var u=function(e,n){var t,a=n.n,r=n.minWait,i=n.maxWait,o=!1;return{promise:new Promise(function(){var n=Object(x.a)(h.a.mark((function n(c,u){var l;return h.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t=u;case 1:return l=void 0,n.prev=3,n.next=6,e();case 6:return l=n.sent,o||(c(l),o=!0),n.abrupt("break",24);case 11:if(n.prev=11,n.t0=n.catch(3),!o){n.next=15;break}return n.abrupt("break",24);case 15:if(!(a<=0)&&n.t0 instanceof px){n.next=19;break}return u(n.t0),o=!0,n.abrupt("break",24);case 19:a--;case 20:return n.next=22,sx(r,i);case 22:n.next=1;break;case 24:case"end":return n.stop()}}),n,null,[[3,11]])})));return function(e,t){return n.apply(this,arguments)}}()),cancel:function(){o||(o=!0,t(new dx))}}}((function(){return function(e,n,t){return mx.apply(this,arguments)}(o,n,a)}),{n:1/0,minWait:2500,maxWait:3500}),l=u.cancel;return u.promise.then((function(n){var o=n.results,u=n.blockNumber;c.current={cancellations:[],blockNumber:a};var l=s.slice(0,r).reduce((function(e,n){return e+n.length}),0),d=l+o.length;e(qn({chainId:i,results:t.slice(l,d).reduce((function(e,n,t){var a;return e[n]=null!==(a=o[t])&&void 0!==a?a:null,e}),{}),blockNumber:u}))})).catch((function(t){t instanceof dx?console.debug("Cancelled fetch for blockNumber",a):(console.error("Failed to fetch multicall chunk",n,i,t),e(Hn({calls:n,chainId:i,fetchingBlockNumber:a})))})),l}))}}}}),[i,o,e,d,a]),null}function bx(){var e,n=fn(),t=n.chainId,a=n.library,i=Sn(),o=Object(s.c)(),c=Object(s.d)((function(e){return e.transactions})),u=t&&null!==(e=c[t])&&void 0!==e?e:{},l=function(){var e=Object(s.c)();return Object(r.useCallback)((function(n,t){e(Bn({content:n,key:t}))}),[e])}();return Object(r.useEffect)((function(){t&&a&&i&&Object.keys(u).filter((function(e){return function(e,n){if(n.receipt)return!1;if(!n.lastCheckedBlockNumber)return!0;var t=e-n.lastCheckedBlockNumber;if(t<1)return!1;var a=((new Date).getTime()-n.addedTime)/1e3/60;return a>60?t>9:!(a>5)||t>2}(i,u[e])})).forEach((function(e){a.getTransactionReceipt(e).then((function(n){var a;n?(o(oc({chainId:t,hash:e,receipt:{blockHash:n.blockHash,blockNumber:n.blockNumber,contractAddress:n.contractAddress,from:n.from,status:n.status,to:n.to,transactionHash:n.transactionHash,transactionIndex:n.transactionIndex}})),l({txn:{hash:e,success:1===n.status,summary:null===(a=u[e])||void 0===a?void 0:a.summary}},e)):o(cc({chainId:t,hash:e,blockNumber:i}))})).catch((function(n){console.error("failed to check transaction hash: ".concat(e),n)}))}))}),[t,a,u,i,o,l]),null}function Ax(){var e=Object(s.c)();return Object(r.useEffect)((function(){var n,t=function(n){e(zt({matchesDarkMode:n.matches}))},a=null===(n=window)||void 0===n?void 0:n.matchMedia("(prefers-color-scheme: dark)");return e(zt({matchesDarkMode:a.matches})),(null===a||void 0===a?void 0:a.addListener)?null===a||void 0===a||a.addListener(t):(null===a||void 0===a?void 0:a.addEventListener)&&(null===a||void 0===a||a.addEventListener("change",t)),function(){(null===a||void 0===a?void 0:a.removeListener)?null===a||void 0===a||a.removeListener(t):(null===a||void 0===a?void 0:a.removeEventListener)&&(null===a||void 0===a||a.removeEventListener("change",t))}}),[e]),null}function vx(e){var n=new A.a(e,"any");return n.pollingInterval=15e3,n}var gx=Object(a.c)("NETWORK");"ethereum"in window&&(window.ethereum.autoRefreshOnNetworkChange=!1);function yx(){return i.a.createElement(i.a.Fragment,null,i.a.createElement(lx,null),i.a.createElement(Ax,null),i.a.createElement(ux,null),i.a.createElement(bx,null),i.a.createElement(fx,null))}l.a.initialize("UA-195466123-2"),l.a.set({customBrowserType:o.isMobile?"web3"in window||"ethereum"in window?"mobileWeb3":"mobileRegular":"desktop"}),window.addEventListener("error",(function(e){l.a.exception({description:"".concat(e.message," @ ").concat(e.filename,":").concat(e.lineno,":").concat(e.colno),fatal:!0})})),u.a.render(i.a.createElement(r.StrictMode,null,i.a.createElement(Cr,null),i.a.createElement(a.b,{getLibrary:vx},i.a.createElement(gx,{getLibrary:vx},i.a.createElement(s.a,{store:ax},i.a.createElement(yx,null),i.a.createElement(mr,null,i.a.createElement(Tr,null),i.a.createElement(d.a,null,i.a.createElement(NE,null))))))),document.getElementById("root"))}},[[337,1,2]]]);
//# sourceMappingURL=main.d3f0a383.chunk.js.map