@imtbl/sdk 0.23.0-alpha → 0.23.2-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,2 @@
1
+ /*! For license information please see 82.bed3464b.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_imtbl_checkout_widgets_lib=self.webpackChunk_imtbl_checkout_widgets_lib||[]).push([[82],{21075:function(e,t,n){"use strict";n.r(t),n.d(t,{Multicall:function(){return te},providers:function(){return oe}});var r,i=n(93173),o=n(82248),a=n(8416),s=n(46999),u=n(72771),c=n(8821),l=n(85169),f=n(18950),d=n(42322),p=n(92388),h=n(46306),m=n(10871),y={erc1271:Object.freeze({__proto__:null,abi:[{type:"function",name:"isValidSignature",constant:!0,inputs:[{type:"bytes32"},{type:"bytes"}],outputs:[{type:"bytes4"}],payable:!1,stateMutability:"view"}],returns:{isValidSignatureBytes32:"0x1626ba7e"}}),factory:Object.freeze({__proto__:null,abi:[{type:"function",name:"deploy",constant:!1,inputs:[{type:"address"},{type:"bytes32"}],outputs:[],payable:!0,stateMutability:"payable"}]}),mainModule:Object.freeze({__proto__:null,abi:[{type:"function",name:"nonce",constant:!0,inputs:[],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"readNonce",constant:!0,inputs:[{type:"uint256"}],outputs:[{type:"uint256"}],payable:!1,stateMutability:"view"},{type:"function",name:"updateImplementation",constant:!1,inputs:[{type:"address"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"selfExecute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"execute",constant:!1,inputs:[{components:[{type:"bool",name:"delegateCall"},{type:"bool",name:"revertOnError"},{type:"uint256",name:"gasLimit"},{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}],type:"tuple[]"},{type:"uint256"},{type:"bytes"}],outputs:[],payable:!1,stateMutability:"nonpayable"},{type:"function",name:"createContract",inputs:[{type:"bytes"}],payable:!0,stateMutability:"payable"}]}),mainModuleUpgradable:Object.freeze({__proto__:null,abi:[{type:"function",name:"updateImageHash",constant:!0,inputs:[{type:"bytes32"}],outputs:[],payable:!1,stateMutability:"view"},{type:"function",name:"imageHash",constant:!0,inputs:[],outputs:[{type:"bytes32"}],payable:!1,stateMutability:"view"}]}),sequenceUtils:Object.freeze({__proto__:null,abi:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_mainModule",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"bytes32",name:"_imageHash",type:"bytes32"},{indexed:!1,internalType:"uint256",name:"_threshold",type:"uint256"},{indexed:!1,internalType:"bytes",name:"_signers",type:"bytes"}],name:"RequiredConfig",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"_wallet",type:"address"},{indexed:!0,internalType:"address",name:"_signer",type:"address"}],name:"RequiredSigner",type:"event"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callBalanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callBlockNumber",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_i",type:"uint256"}],name:"callBlockhash",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"callChainId",outputs:[{internalType:"uint256",name:"id",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCode",outputs:[{internalType:"bytes",name:"code",type:"bytes"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeHash",outputs:[{internalType:"bytes32",name:"codeHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_addr",type:"address"}],name:"callCodeSize",outputs:[{internalType:"uint256",name:"size",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callCoinbase",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callDifficulty",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLeft",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasLimit",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callGasPrice",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"callOrigin",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"callTimestamp",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"knownImageHashes",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"lastImageHashUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastSignerUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"lastWalletUpdate",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bool",name:"delegateCall",type:"bool"},{internalType:"bool",name:"revertOnError",type:"bool"},{internalType:"uint256",name:"gasLimit",type:"uint256"},{internalType:"address",name:"target",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],internalType:"struct IModuleCalls.Transaction[]",name:"_txs",type:"tuple[]"}],name:"multiCall",outputs:[{internalType:"bool[]",name:"_successes",type:"bool[]"},{internalType:"bytes[]",name:"_results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_threshold",type:"uint256"},{components:[{internalType:"uint256",name:"weight",type:"uint256"},{internalType:"address",name:"signer",type:"address"}],internalType:"struct RequireUtils.Member[]",name:"_members",type:"tuple[]"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishConfig",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"bytes32",name:"_hash",type:"bytes32"},{internalType:"uint256",name:"_sizeMembers",type:"uint256"},{internalType:"bytes",name:"_signature",type:"bytes"},{internalType:"bool",name:"_index",type:"bool"}],name:"publishInitialSigners",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_wallet",type:"address"},{internalType:"uint256",name:"_nonce",type:"uint256"}],name:"requireMinNonce",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"_expiration",type:"uint256"}],name:"requireNonExpired",outputs:[],stateMutability:"view",type:"function"}]}),requireFreshSigner:Object.freeze({__proto__:null,abi:[{inputs:[{internalType:"address",name:"",type:"address"}],name:"requireFreshSigner",outputs:[],stateMutability:"nonpayable",type:"function"}]})},v=n(63274);n(33185);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}!function(e){e[e.DEBUG=1]="DEBUG",e[e.INFO=2]="INFO",e[e.WARN=3]="WARN",e[e.ERROR=4]="ERROR",e[e.DISABLED=5]="DISABLED"}(r||(r={}));var b=function(){function e(t){(0,c.Z)(this,e),this.config=t,this.logLevel=void 0,this.configure(t)}return(0,l.Z)(e,[{key:"configure",value:function(e){switch(this.config=g({},this.config,e),this.config.logLevel){case"DEBUG":this.logLevel=r.DEBUG;break;case"INFO":default:this.logLevel=r.INFO;break;case"WARN":this.logLevel=r.WARN;break;case"ERROR":this.logLevel=r.ERROR;break;case"DISABLED":this.logLevel=r.DISABLED}void 0===this.config.silence&&(this.config.silence=!1)}},{key:"debug",value:function(e){if(!0!==this.config.silence&&this.logLevel===r.DEBUG){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=console).log.apply(t,[e].concat(i))}}},{key:"info",value:function(e){if(!0!==this.config.silence&&this.logLevel<=r.INFO){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=console).log.apply(t,[e].concat(i))}}},{key:"warn",value:function(e){if(!0!==this.config.silence&&this.logLevel<=r.WARN){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=console).warn.apply(t,[e].concat(i)),this.config.onwarn&&this.config.onwarn(e,i)}}},{key:"error",value:function(e){if(!0!==this.config.silence&&this.logLevel<=r.ERROR){for(var t,n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];(t=console).error.apply(t,[e].concat(i)),this.config.onerror&&this.config.onerror(e,i)}}}]),e}();new b({logLevel:"INFO",silence:!0});function w(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];var o=Array.prototype.slice.call(r);return new Promise(function(){var n=(0,f.Z)((0,s.Z)().mark((function n(r,i){return(0,s.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,o.push((function(e,t){return e?i(e):r(t)})),n.next=4,e.apply(t,o);case 4:n.next=9;break;case 6:n.prev=6,n.t0=n.catch(0),i(n.t0);case 9:case"end":return n.stop()}}),n,null,[[0,6]])})));return function(e,t){return n.apply(this,arguments)}}())}}var x=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_SAFE_INTEGER;return e=Math.ceil(e),t=Math.floor(t),Math.floor(Math.random()*(t-e+1))+e};v.defineReadOnly,v.getStatic,v.resolveProperties,v.checkProperties,v.shallowCopy,v.deepCopy;var A,k=n(47169),E=n(74708),T=n(64369),_=n(27255),S=n(77379),C=n(44266);function I(){return I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},I.apply(this,arguments)}var O,P=function(e){return function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(!e)throw new Error("invalid network config: empty config");var r=[];if(Array.isArray(e)?r.push.apply(r,(0,E.Z)(e)):r.push(e),0===r.length){if(t)throw new Error("invalid network config: empty config");return!1}var i=r.map((function(e){return e.chainId})).sort(),o=i.filter((function(e,t){return i.indexOf(e)!==t}));if(o.length>0){if(t)throw new Error("invalid network config: duplicate chainIds ".concat(o));return!1}r.forEach((function(e){return e.name=e.name.toLowerCase()}));var a=r.map((function(e){return e.name})).sort(),s=a.filter((function(e,t){return a.indexOf(e)!==t}));if(s.length>0){if(t)throw new Error("invalid network config: duplicate network names ".concat(s));return!1}for(var u=!1,c=!1,l=0;l<r.length;l++){var f=r[l];if((!f.rpcUrl||""===f.rpcUrl)&&!f.provider){if(t)throw new Error("invalid network config for chainId ".concat(f.chainId,": rpcUrl or provider must be provided"));return!1}if(!n&&!f.relayer){if(t)throw new Error("invalid network config for chainId ".concat(f.chainId,": relayer must be provided"));return!1}if(f.isDefaultChain){if(u){if(t)throw new Error("invalid network config for chainId ".concat(f.chainId,": DefaultChain is already set by another config"));return!1}u=!0}if(f.isAuthChain){if(c&&t)throw new Error("invalid network config for chainId ".concat(f.chainId,": AuthChain is already set by another config"));c=!0}}if(!u){if(t)throw new Error("invalid network config: DefaultChain must be set");return!1}if(!c){if(t)throw new Error("invalid network config: AuthChain must be set");return!1}}(e,!0,arguments.length>1&&void 0!==arguments[1]&&arguments[1]),e},R=function(e){return P(M(e))},M=function(e){if(!e)return[];var t=e.sort((function(e,t){return e.chainId===t.chainId?0:e.chainId<t.chainId?-1:1})),n=t.findIndex((function(e){return e.isDefaultChain}));n>0&&t.splice(0,0,t.splice(n,1)[0]);var r=t.findIndex((function(e){return e.isAuthChain&&!0!==e.isDefaultChain}));return r>0&&t.splice(1,0,t.splice(r,1)[0]),t},B=function(e,t){return"string"===typeof e?(t=t||{},e.replace(/\$\{\s*([$#@\-\d\w]+)\s*\}/gim,(function(e,n){var r=t[n];return r="function"===typeof r?r():null===r||void 0===r?"":"object"===typeof r||"symbol"===typeof r?r.toString():r.valueOf()}))):""};!function(e){e[e.MAINNET=1]="MAINNET",e[e.ROPSTEN=3]="ROPSTEN",e[e.RINKEBY=4]="RINKEBY",e[e.GOERLI=5]="GOERLI",e[e.KOVAN=42]="KOVAN",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.POLYGON_ZKEVM=1101]="POLYGON_ZKEVM",e[e.BSC=56]="BSC",e[e.BSC_TESTNET=97]="BSC_TESTNET",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_TESTNET=69]="OPTIMISM_TESTNET",e[e.ARBITRUM=42161]="ARBITRUM",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.ARBITRUM_NOVA=42170]="ARBITRUM_NOVA",e[e.AVALANCHE=43114]="AVALANCHE",e[e.AVALANCHE_TESTNET=43113]="AVALANCHE_TESTNET",e[e.FANTOM=250]="FANTOM",e[e.FANTOM_TESTNET=4002]="FANTOM_TESTNET",e[e.GNOSIS=100]="GNOSIS",e[e.AURORA=1313161554]="AURORA",e[e.AURORA_TESTNET=1313161556]="AURORA_TESTNET",e[e.BASE_GOERLI=84531]="BASE_GOERLI"}(O||(O={}));var N=function(e){return B("https://${network}-indexer.sequence.app",{network:e})},F=function(e){return B("https://${network}-relayer.sequence.app",{network:e})},D=function(e){return B("https://nodes.sequence.app/${network}",{network:e})},L=(A={},(0,k.Z)(A,O.MAINNET,{chainId:O.MAINNET,name:"mainnet",title:"Ethereum",blockExplorer:{name:"Etherscan",rootUrl:"https://etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}),(0,k.Z)(A,O.ROPSTEN,{chainId:O.ROPSTEN,name:"ropsten",title:"Ropsten",testnet:!0,blockExplorer:{name:"Etherscan (Ropsten)",rootUrl:"https://ropsten.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}),(0,k.Z)(A,O.RINKEBY,{chainId:O.RINKEBY,name:"rinkeby",title:"Rinkeby",testnet:!0,blockExplorer:{name:"Etherscan (Rinkeby)",rootUrl:"https://rinkeby.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",disabled:!0}),(0,k.Z)(A,O.GOERLI,{chainId:O.GOERLI,name:"goerli",title:"Goerli",testnet:!0,blockExplorer:{name:"Etherscan (Goerli)",rootUrl:"https://goerli.etherscan.io/"},ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e"}),(0,k.Z)(A,O.KOVAN,{chainId:O.KOVAN,name:"kovan",title:"Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Kovan)",rootUrl:"https://kovan.etherscan.io/"}}),(0,k.Z)(A,O.POLYGON,{chainId:O.POLYGON,name:"polygon",title:"Polygon",blockExplorer:{name:"Polygonscan",rootUrl:"https://polygonscan.com/"}}),(0,k.Z)(A,O.POLYGON_MUMBAI,{chainId:O.POLYGON_MUMBAI,name:"mumbai",title:"Polygon Mumbai",testnet:!0,blockExplorer:{name:"Polygonscan (Mumbai)",rootUrl:"https://mumbai.polygonscan.com/"}}),(0,k.Z)(A,O.POLYGON_ZKEVM,{chainId:O.POLYGON_ZKEVM,name:"polygon-zkevm",title:"Polygon zkEVM",blockExplorer:{name:"Polygonscan (zkEVM)",rootUrl:"https://zkevm.polygonscan.com/"}}),(0,k.Z)(A,O.BSC,{chainId:O.BSC,name:"bsc",title:"BNB Smart Chain",blockExplorer:{name:"BSCScan",rootUrl:"https://bscscan.com/"}}),(0,k.Z)(A,O.BSC_TESTNET,{chainId:O.BSC_TESTNET,name:"bsc-testnet",title:"BNB Smart Chain Testnet",testnet:!0,blockExplorer:{name:"BSCScan (Testnet)",rootUrl:"https://testnet.bscscan.com/"}}),(0,k.Z)(A,O.OPTIMISM,{chainId:O.OPTIMISM,name:"optimism",title:"Optimism",blockExplorer:{name:"Etherscan (Optimism)",rootUrl:"https://optimistic.etherscan.io/"}}),(0,k.Z)(A,O.OPTIMISM_TESTNET,{chainId:O.OPTIMISM_TESTNET,name:"optimism-testnet",title:"Optimistic Kovan",testnet:!0,blockExplorer:{name:"Etherscan (Optimism Testnet)",rootUrl:"https://kovan-optimistic.etherscan.io/"}}),(0,k.Z)(A,O.ARBITRUM,{chainId:O.ARBITRUM,name:"arbitrum",title:"Arbitrum One",blockExplorer:{name:"Arbiscan",rootUrl:"https://arbiscan.io/"}}),(0,k.Z)(A,O.ARBITRUM_GOERLI,{chainId:O.ARBITRUM_GOERLI,name:"arbitrum-goerli",title:"Arbitrum Goerli",testnet:!0,blockExplorer:{name:"Arbiscan (Testnet)",rootUrl:"https://testnet.arbiscan.io/"}}),(0,k.Z)(A,O.ARBITRUM_NOVA,{chainId:O.ARBITRUM_NOVA,name:"arbitrum-nova",title:"Arbitrum Nova",blockExplorer:{name:"Nova Explorer",rootUrl:"https://nova-explorer.arbitrum.io/"}}),(0,k.Z)(A,O.AVALANCHE,{chainId:O.AVALANCHE,name:"avalanche",title:"Avalanche",blockExplorer:{name:"Snowtrace",rootUrl:"https://snowtrace.io/"}}),(0,k.Z)(A,O.AVALANCHE_TESTNET,{chainId:O.AVALANCHE_TESTNET,name:"avalanche-testnet",title:"Avalanche Testnet",testnet:!0,blockExplorer:{name:"Snowtrace (Testnet)",rootUrl:"https://testnet.snowtrace.io/"}}),(0,k.Z)(A,O.FANTOM,{chainId:O.FANTOM,name:"fantom",title:"Fantom",blockExplorer:{name:"FTMScan",rootUrl:"https://ftmscan.com/"}}),(0,k.Z)(A,O.FANTOM_TESTNET,{chainId:O.FANTOM_TESTNET,name:"fantom-testnet",title:"Fantom Testnet",testnet:!0,blockExplorer:{name:"FTMScan (Testnet)",rootUrl:"https://testnet.ftmscan.com/"}}),(0,k.Z)(A,O.GNOSIS,{chainId:O.GNOSIS,name:"gnosis",title:"Gnosis Chain",blockExplorer:{name:"Gnosis Chain Explorer",rootUrl:"https://blockscout.com/xdai/mainnet/"}}),(0,k.Z)(A,O.AURORA,{chainId:O.AURORA,name:"aurora",title:"Aurora",blockExplorer:{name:"Aurora Explorer",rootUrl:"https://aurorascan.dev/"}}),(0,k.Z)(A,O.AURORA_TESTNET,{chainId:O.AURORA_TESTNET,name:"aurora-testnet",title:"Aurora Testnet",blockExplorer:{name:"Aurora Explorer (Testnet)",rootUrl:"https://testnet.aurorascan.dev/"}}),(0,k.Z)(A,O.BASE_GOERLI,{chainId:O.BASE_GOERLI,name:"base-goerli",title:"Base Goerli",blockExplorer:{name:"Base Goerli Explorer",rootUrl:"https://goerli.basescan.org/"}}),A),z=(R([I({},L[O.MAINNET],{rpcUrl:D("mainnet"),relayer:{url:F("mainnet")},indexerUrl:N("mainnet")}),I({},L[O.POLYGON],{rpcUrl:D("polygon"),relayer:{url:F("polygon")},indexerUrl:N("polygon"),isDefaultChain:!0,isAuthChain:!0}),I({},L[O.BSC],{rpcUrl:D("bsc"),indexerUrl:N("bsc"),relayer:{url:F("bsc")}}),I({},L[O.AVALANCHE],{rpcUrl:D("avalanche"),indexerUrl:N("avalanche"),relayer:{url:F("avalanche")}}),I({},L[O.ARBITRUM],{rpcUrl:D("arbitrum"),indexerUrl:N("arbitrum"),relayer:{url:F("arbitrum")}}),I({},L[O.ARBITRUM_NOVA],{rpcUrl:D("arbitrum-nova"),indexerUrl:N("arbitrum-nova"),relayer:{url:F("arbitrum-nova")}}),I({},L[O.OPTIMISM],{rpcUrl:D("optimism"),indexerUrl:N("optimism"),relayer:{url:F("optimism")}}),I({},L[O.POLYGON_ZKEVM],{rpcUrl:D("polygon-zkevm"),indexerUrl:N("polygon-zkevm"),relayer:{url:F("polygon-zkevm")}}),I({},L[O.GNOSIS],{rpcUrl:D("gnosis"),indexerUrl:N("gnosis"),relayer:{url:F("gnosis")}})]),R([I({},L[O.RINKEBY],{rpcUrl:D("rinkeby"),relayer:{url:F("rinkeby")},indexerUrl:N("rinkeby")}),I({},L[O.GOERLI],{rpcUrl:D("goerli"),relayer:{url:F("goerli")},indexerUrl:N("goerli")}),I({},L[O.POLYGON_MUMBAI],{rpcUrl:D("mumbai"),relayer:{url:F("mumbai")},indexerUrl:N("mumbai"),isDefaultChain:!0,isAuthChain:!0}),I({},L[O.BSC_TESTNET],{rpcUrl:D("bsc-testnet"),relayer:{url:F("bsc-testnet")},indexerUrl:N("bsc-testnet")}),I({},L[O.ARBITRUM_GOERLI],{rpcUrl:D("arbitrum-goerli"),relayer:{url:F("arbitrum-goerli")},indexerUrl:N("arbitrum-goerli")}),I({},L[O.BASE_GOERLI],{rpcUrl:D("base-goerli"),relayer:{url:F("base-goerli")},indexerUrl:N("base-goerli")})]),"2.0"),j=function(){function e(t,n){(0,c.Z)(this,e),this.sender=void 0,this.handler=void 0,this.sender=n,t&&this.setMiddleware(t)}return(0,l.Z)(e,[{key:"setMiddleware",value:function(e){this.handler=U(e,this.sender.sendAsync)}},{key:"sendAsync",value:function(e,t,n){try{this.handler(e,t,n)}catch(r){t(r,void 0)}}}]),e}(),U=function(e,t){if(0===e.length)return t;var n,r=function(e){return e.sendAsyncMiddleware?e.sendAsyncMiddleware:e};n=r(e[e.length-1])(t);for(var i=e.length-2;i>=0;i--)n=r(e[i])(n);return n};var Z,q=0,H=(0,l.Z)((function e(t,n){var r,i=this;(0,c.Z)(this,e),this.send=void 0,this.request=void 0,this.defaultChainId=void 0,this.sendAsync=function(e,t,n){i.send(e.method,e.params,n||i.defaultChainId).then((function(n){t(void 0,{jsonrpc:"2.0",id:e.id,result:n})})).catch((function(e){t(e,void 0)}))},this.defaultChainId=n,void 0!==(r=t)&&void 0!==r.send&&void 0!==r.constructor.defaultUrl&&void 0!==r.detectNetwork&&void 0!==r.getSigner&&void 0!==r.perform?this.send=t.send.bind(t):!function(e){return void 0!==e&&void 0!==e.sendAsync}(t)?this.send=t:this.send=function(e,n,r){return new Promise((function(o,a){t.sendAsync({jsonrpc:z,id:++q,method:e,params:n},(function(e,t){e?a(e):o(t?t.result:void 0)}),r||i.defaultChainId)}))},this.request=function(e,t){return i.send(e.method,e.params,t)}})),V=function(){function e(t){var n=this;(0,c.Z)(this,e),this.cachableJsonRpcMethods=["net_version","eth_chainId","eth_accounts","sequence_getWalletContext","sequence_getNetworks"],this.cachableJsonRpcMethodsByBlock=["eth_call","eth_getCode"],this.cache=void 0,this.cacheByBlock=void 0,this.cacheByBlockResetLock=!1,this.onUpdateCallback=void 0,this.defaultChainId=void 0,this.sendAsyncMiddleware=function(e){return function(t,r,i){if(n.cachableJsonRpcMethods.includes(t.method)||n.cachableJsonRpcMethodsByBlock.includes(t.method)){var o=n.cacheKey(t.method,t.params,i||n.defaultChainId),a=n.getCacheValue(o);if(a&&""!==a)return void r(void 0,{jsonrpc:"2.0",id:t.id,result:a})}e(t,(function(e,i,o){if((n.cachableJsonRpcMethods.includes(t.method)||n.cachableJsonRpcMethodsByBlock.includes(t.method))&&i&&i.result&&n.shouldCacheResponse(t,i)){var a=n.cacheKey(t.method,t.params,o||n.defaultChainId);n.cachableJsonRpcMethods.includes(t.method)?n.setCacheValue(a,i.result):n.setCacheByBlockValue(a,i.result)}r(e,i)}),i||n.defaultChainId)}},this.cacheKey=function(e,t,n){var r="";return r=n?"".concat(n,":").concat(e,":"):":".concat(e,":"),t&&0!==t.length?r+JSON.stringify(t):r+"[]"},this.getCache=function(){return n.cache},this.setCache=function(e){n.cache=e,n.onUpdateCallback&&n.onUpdateCallback()},this.getCacheValue=function(e){return n.cache[e]?n.cache[e]:n.cacheByBlock[e]?n.cacheByBlock[e]:void 0},this.setCacheValue=function(e,t){n.cache[e]=t,n.onUpdateCallback&&n.onUpdateCallback(e,t)},this.setCacheByBlockValue=function(e,t){n.cacheByBlock[e]=t,n.cacheByBlockResetLock||(n.cacheByBlockResetLock=!0,setTimeout((function(){n.cacheByBlockResetLock=!1,n.cacheByBlock={}}),1500))},this.shouldCacheResponse=function(e,t){return!(!t||!t.result)&&!("eth_getCode"===e.method&&t.result.length<=2)},this.clearCache=function(){n.cache={},n.cacheByBlock={}},this.cache={},this.cacheByBlock={},this.defaultChainId=null==t?void 0:t.defaultChainId,null!=t&&t.blockCache?!0!==(null==t?void 0:t.blockCache)&&(this.cachableJsonRpcMethodsByBlock=null==t?void 0:t.blockCache):this.cachableJsonRpcMethodsByBlock=[]}return(0,l.Z)(e,[{key:"onUpdate",value:function(e){this.onUpdateCallback=e}}]),e}(),G=(0,l.Z)((function e(t){var n=this;(0,c.Z)(this,e),this.options=void 0,this.sendAsyncMiddleware=function(e){return function(t,r,i){var o=t.id;switch(t.method){case"net_version":if(n.options.chainId)return void r(void 0,{jsonrpc:"2.0",id:o,result:"".concat(n.options.chainId)});break;case"eth_chainId":if(n.options.chainId)return void r(void 0,{jsonrpc:"2.0",id:o,result:T.hexlify(n.options.chainId)});break;case"eth_accounts":if(n.options.accountAddress)return void r(void 0,{jsonrpc:"2.0",id:o,result:[_.getAddress(n.options.accountAddress)]});break;case"sequence_getWalletContext":if(n.options.walletContext)return void r(void 0,{jsonrpc:"2.0",id:o,result:n.options.walletContext})}e(t,r,i)}},this.options=t})),W=(0,l.Z)((function e(){var t=this;(0,c.Z)(this,e),this.singleflightJsonRpcMethods=["eth_chainId","net_version","eth_call","eth_getCode","eth_blockNumber","eth_getBalance","eth_getStorageAt","eth_getTransactionCount","eth_getBlockTransactionCountByHash","eth_getBlockTransactionCountByNumber","eth_getUncleCountByBlockHash","eth_getUncleCountByBlockNumber","eth_getBlockByHash","eth_getBlockByNumber","eth_getTransactionByHash","eth_getTransactionByBlockHashAndIndex","eth_getTransactionByBlockNumberAndIndex","eth_getTransactionReceipt","eth_getUncleByBlockHashAndIndex","eth_getUncleByBlockNumberAndIndex","eth_getLogs"],this.inflight=void 0,this.sendAsyncMiddleware=function(e){return function(n,r,i){if(t.singleflightJsonRpcMethods.includes(n.method)){var o=t.requestKey(n.method,n.params||[],i);t.inflight[o]?t.inflight[o].push({id:n.id,callback:r}):(t.inflight[o]=[],e(n,(function(e,n,i){r(e,n);for(var a=0;a<t.inflight[o].length;a++){var s=t.inflight[o][a];e?s.callback(e,n):n&&s.callback(void 0,{jsonrpc:"2.0",id:s.id,result:n.result})}delete t.inflight[o]}),i))}else e(n,r,i)}},this.requestKey=function(e,t,n){var r="";return r=n?"".concat(n,":").concat(e,":"):":".concat(e,":"),t&&0!==t.length?r+JSON.stringify(t):r+"[]"},this.inflight={}}));C.r;function K(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function J(){return J=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},J.apply(this,arguments)}function X(e,t){return Y.apply(this,arguments)}function Y(){return(Y=(0,f.Z)((0,s.Z)().mark((function e(t,n){var r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t;case 3:return e.abrupt("return",e.sent);case 6:return e.prev=6,e.t0=e.catch(0),r=n instanceof Function?n(e.t0):n,e.abrupt("return",r);case 10:case"end":return e.stop()}}),e,null,[[0,6]])})))).apply(this,arguments)}function $(e,t){return e.reduce((function(e,n,r){return t(n,r)?e[0].push(n):e[1].push(n),e}),[[],[]])}function Q(e){if(void 0===e)return"latest";switch(e){case"earliest":case"latest":case"pending":return e}return d.O$.from(e)}!function(e){e.ethCall="eth_call",e.ethGetBalance="eth_getBalance",e.ethGetCode="eth_getCode"}(Z||(Z={}));var ee={batchSize:50,timeWindow:50,contract:"0xd130B43062D875a4B7aF3f8fc036Bc6e9D3E1B3E",verbose:!1},te=function(){function e(t){var n=this;(0,c.Z)(this,e);var r=this;if(this.batchableJsonRpcMethods=[Z.ethCall,Z.ethGetCode,Z.ethGetBalance],this.multicallInterface=new p.vU(y.sequenceUtils.abi),this.options=void 0,this.timeout=void 0,this.queue=[],this.scheduleExecution=function(){n.queue.length>0&&(n.timeout&&clearTimeout(n.timeout),n.timeout=setTimeout(n.run,n.options.timeWindow))},this.handle=function(e,t,r){return n.batchableJsonRpcMethods.find((function(e){return e===t.method}))?(n.queue.push({request:t,callback:r,next:e}),n.options.verbose&&console.log("Scheduling call",t.method),void n.scheduleExecution()):(n.options.verbose&&console.log("Forwarded call",t.method),e(t,r))},this.run=(0,f.Z)((0,s.Z)().mark((function e(){var t,n,i,o,a,c,l,f,p,m,y,v,g,b;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r.options.verbose&&console.log("Processing multicall"),0!==(t=Math.min(r.options.batchSize,r.queue.length))){e.next=4;break}return e.abrupt("return");case 4:if(1!==t){e.next=9;break}return r.forward(r.queue[0]),r.queue=[],r.options.verbose&&console.log("Skip multicall, single item"),e.abrupt("return");case 9:if(r.options.verbose&&console.log("Resolving",t),n=r.queue.slice(0,t),r.queue=t===r.queue.length?[]:r.queue.slice(t),r.options.verbose&&console.log("Updated queue",r.queue.length),0!==r.queue.length&&r.scheduleExecution(),i=n[0].next,a=$(n,(function(e){try{if(e.next!==i)return!1;switch(e.request.method){case Z.ethCall:if(e.request.params[0].from||e.request.params[0].gasPrice||e.request.params[0].value)return!1;case Z.ethGetBalance:case Z.ethGetCode:var t=Q(e.request.params[1]);if(void 0===o&&(o=t),(n=t)!==(r=o)&&!(d.O$.isBigNumber(n)?d.O$.isBigNumber(r)&&n.eq(r):!d.O$.isBigNumber(r)&&n===r))return!1}return!0}catch(a){return!1}var n,r})),c=(0,u.Z)(a,2),n=c[0],0===(l=c[1]).length){e.next=21;break}if(r.options.verbose&&console.log("Forwarding incompatible calls",l.length),r.forward(l),0!==n.length){e.next=21;break}return e.abrupt("return");case 21:if(f=n.map((function(e){try{switch(e.request.method){case Z.ethCall:return{delegateCall:!1,revertOnError:!1,target:e.request.params[0].to,data:e.request.params[0].data,gasLimit:e.request.params[0].gas?e.request.params[0].gas:0,value:0};case Z.ethGetCode:return{delegateCall:!1,revertOnError:!1,target:r.options.contract,gasLimit:0,value:0,data:r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("callCode"),[e.request.params[0]])};case Z.ethGetBalance:return{delegateCall:!1,revertOnError:!1,target:r.options.contract,gasLimit:0,value:0,data:r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("callBalanceOf"),[e.request.params[0]])};default:return null}}catch(t){return null}})),p=$(n,(function(e,t){return void 0!==f[t]})),m=(0,u.Z)(p,2),n=m[0],l=m[1],f=f.filter((function(e){return e})),0===l.length){e.next=29;break}if(r.options.verbose&&console.log("Forwarding calls on error",l.length),r.forward(l),0!==n.length){e.next=29;break}return e.abrupt("return");case 29:e.prev=29,y=r.multicallInterface.encodeFunctionData(r.multicallInterface.getFunction("multiCall"),[f]),e.next=37;break;case 33:return e.prev=33,e.t0=e.catch(29),r.forward(n),e.abrupt("return");case 37:return v=x(),e.next=40,X(w(i)({id:v,jsonrpc:z,method:Z.ethCall,params:[{to:r.options.contract,value:0,data:y},d.O$.isBigNumber(o)?o.toNumber():o]}),(function(e){return{jsonrpc:z,id:v,result:void 0,error:e}}));case 40:if(!(g=e.sent).error){e.next=43;break}return e.abrupt("return",r.forward(n));case 43:e.prev=43,b=r.multicallInterface.decodeFunctionResult(r.multicallInterface.getFunction("multiCall"),g.result),e.next=51;break;case 47:return e.prev=47,e.t1=e.catch(43),r.forward(n),e.abrupt("return");case 51:r.options.verbose&&console.log("Got response for",n.length),n.forEach((function(e,t){if(b[0][t])switch(e.request.method){case Z.ethCall:e.callback(void 0,{jsonrpc:e.request.jsonrpc,id:e.request.id,result:b[1][t]});break;case Z.ethGetCode:e.callback(void 0,{jsonrpc:e.request.jsonrpc,id:e.request.id,result:h.$.decode(["bytes"],b[1][t])[0]});break;case Z.ethGetBalance:e.callback(void 0,{jsonrpc:e.request.jsonrpc,id:e.request.id,result:h.$.decode(["uint256"],b[1][t])[0]})}else r.forward(e)}));case 53:case"end":return e.stop()}}),e,null,[[29,33],[43,47]])}))),this.options=t?J({},e.DefaultOptions,t):e.DefaultOptions,this.options.batchSize<=0)throw new Error("Invalid batch size of ".concat(this.options.batchSize))}return(0,l.Z)(e,[{key:"forward",value:function(e){Array.isArray(e)?e.forEach((function(e){return e.next(e.request,e.callback)})):e.next(e.request,e.callback)}}],[{key:"isMulticall",value:function(t){return t&&void 0!==t.handle&&void 0!==t.conf&&e.isMulticallOptions(t.options)}},{key:"isMulticallOptions",value:function(e){return void 0!==e&&void 0!==e.batchSize&&void 0!==e.timeWindow&&void 0!==e.contract}}]),e}();te.DefaultOptions=J({},ee);var ne=["getNetwork","getBlockNumber","getGasPrice","getTransactionCount","getStorageAt","sendTransaction","estimateGas","getBlock","getTransaction","getTransactionReceipt","getLogs","emit","litenerCount","addListener","removeListener","waitForTransaction","detectNetwork","getBlockWithTransactions"],re=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(e,r){var o,a;return(0,c.Z)(this,n),o=t.call(this,e.getNetwork()),a=(0,i.Z)(o),o.provider=e,o.multicall=void 0,o.listenerCount=o.provider.listenerCount,o.getResolver=function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t){var n,r;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=a.provider).getResolver){e.next=12;break}return e.t0=n,e.next=5,t;case 5:return e.t1=e.sent,e.next=8,e.t0.getResolver.call(e.t0,e.t1);case 8:if(r=e.sent){e.next=11;break}return e.abrupt("return",null);case 11:return e.abrupt("return",new m.H2(a,r.address,r.name));case 12:return e.t2=n,e.next=15,t;case 15:return e.t3=e.sent,e.abrupt("return",e.t2.getResolver.call(e.t2,e.t3));case 17:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),o.next=function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t,n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:e.prev=0,e.t0=t.method,e.next=e.t0===Z.ethCall?4:e.t0===Z.ethGetCode?12:e.t0===Z.ethGetBalance?20:28;break;case 4:return e.t1=a,e.t2=t,e.t3=n,e.next=9,a.provider.call(t.params[0],t.params[1]);case 9:return e.t4=e.sent,e.t1.callback.call(e.t1,e.t2,e.t3,e.t4),e.abrupt("break",28);case 12:return e.t5=a,e.t6=t,e.t7=n,e.next=17,a.provider.getCode(t.params[0],t.params[1]);case 17:return e.t8=e.sent,e.t5.callback.call(e.t5,e.t6,e.t7,e.t8),e.abrupt("break",28);case 20:return e.t9=a,e.t10=t,e.t11=n,e.next=25,a.provider.getBalance(t.params[0],t.params[1]);case 25:return e.t12=e.sent,e.t9.callback.call(e.t9,e.t10,e.t11,e.t12),e.abrupt("break",28);case 28:e.next=33;break;case 30:e.prev=30,e.t13=e.catch(0),a.callback(t,n,void 0,e.t13);case 33:case"end":return e.stop()}}),e,null,[[0,30]])})));return function(t,n){return e.apply(this,arguments)}}(),o.multicall=te.isMulticall(r)?r:new te(r),ne.forEach((function(t){void 0!==e[t]&&(o[t]=function(){return e[t].apply(e,arguments)})})),o}return(0,l.Z)(n,[{key:"callback",value:function(e,t,n,r){t(r,{jsonrpc:z,id:e.id,result:n,error:r})}},{key:"call",value:function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t,n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rpcCall(Z.ethCall,t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getCode",value:function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t,n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rpcCall(Z.ethGetCode,t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"getBalance",value:function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t,n){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.rpcCall(Z.ethGetBalance,t,n));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n){return e.apply(this,arguments)}}()},{key:"rpcCall",value:function(){var e=(0,f.Z)((0,s.Z)().mark((function e(t){var n,r,i,o,a,u=arguments;return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:for(n=x(),r=u.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=u[o];return e.next=4,w(this.multicall.handle)(this.next,{jsonrpc:z,id:n,method:t,params:i});case 4:return a=e.sent,e.abrupt("return",a.result);case 6:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}()}]),n}(m.Zk),ie=function(){function e(t,n){var r=this;if((0,c.Z)(this,e),this.provider=t,this.multicall=void 0,this.multicall=te.isMulticall(n)?n:new te(n),t.send){var i=function(){var e=(0,f.Z)((0,s.Z)().mark((function e(n,r){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.send(n,r);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();this.send=function(e,t){r.multicall.handle(i,e,t)}}if(t.sendAsync){var o=function(){var e=(0,f.Z)((0,s.Z)().mark((function e(n,r){return(0,s.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t.sendAsync(n,r);case 1:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}();this.sendAsync=function(e,t){r.multicall.handle(o,e,t)}}}return(0,l.Z)(e,[{key:"isMetaMask",get:function(){return this.provider.isMetaMask}},{key:"isStatus",get:function(){return this.provider.isStatus}}]),e}(),oe=Object.freeze({__proto__:null,ProxyMethods:ne,MulticallProvider:re,MulticallExternalProvider:ie,multicallMiddleware:function(e){return function(t){var n=te.isMulticall(e)?e:new te(e);return function(e,r){return n.handle(t,e,r)}}}})},3014:function(e,t){"use strict";var n,r=Symbol.for("react.element"),i=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),c=Symbol.for("react.context"),l=Symbol.for("react.server_context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),p=Symbol.for("react.suspense_list"),h=Symbol.for("react.memo"),m=Symbol.for("react.lazy"),y=Symbol.for("react.offscreen");function v(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case s:case a:case d:case p:return e;default:switch(e=e&&e.$$typeof){case l:case c:case f:case m:case h:case u:return e;default:return t}}case i:return t}}}n=Symbol.for("react.module.reference"),t.isFragment=function(e){return v(e)===o}},24747:function(e,t,n){"use strict";e.exports=n(3014)},74938:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="abi/5.7.0"},46306:function(e,t,n){"use strict";n.d(t,{R:function(){return F},$:function(){return D}});var r=n(8821),i=n(85169),o=n(64369),a=n(63274),s=n(56919),u=n(74938),c=n(54773),l=n(82248),f=n(8416),d=n(27255),p=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"address","address",e,!1)}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=(0,d.getAddress)(t)}catch(n){this._throwError(n.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return(0,d.getAddress)((0,o.hexZeroPad)(e.readValue().toHexString(),20))}}]),n}(c.XI),h=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,i}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),n}(c.XI),m=new s.Logger(u.i);function y(e,t,n){var r=null;if(Array.isArray(n))r=n;else if(n&&"object"===typeof n){var i={};r=t.map((function(e){var t=e.localName;return t||m.throwError("cannot encode object for signature with missing names",s.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),i[t]&&m.throwError("cannot encode object for signature with duplicate names",s.Logger.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),i[t]=!0,n[t]}))}else m.throwArgumentError("invalid tuple value","tuple",n);t.length!==r.length&&m.throwArgumentError("types/value length mismatch","tuple",n);var o=new c.QV(e.wordSize),a=new c.QV(e.wordSize),u=[];t.forEach((function(e,t){var n=r[t];if(e.dynamic){var i=a.length;e.encode(a,n);var s=o.writeUpdatableValue();u.push((function(e){s(e+i)}))}else e.encode(o,n)})),u.forEach((function(e){e(o.length)}));var l=e.appendWriter(o);return l+=e.appendWriter(a)}function v(e,t){var n=[],r=e.subReader(0);t.forEach((function(t){var i=null;if(t.dynamic){var o=e.readValue(),a=r.subReader(o.toNumber());try{i=t.decode(a)}catch(u){if(u.code===s.Logger.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=t.name,i.name=t.localName,i.type=t.type}}else try{i=t.decode(e)}catch(u){if(u.code===s.Logger.errors.BUFFER_OVERRUN)throw u;(i=u).baseType=t.name,i.name=t.localName,i.type=t.type}void 0!=i&&n.push(i)}));var i=t.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});t.forEach((function(e,t){var r=e.localName;if(r&&1===i[r]&&("length"===r&&(r="_length"),null==n[r])){var o=n[t];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:function(){throw o}}):n[r]=o}}));for(var o=function(){var e=n[a];e instanceof Error&&Object.defineProperty(n,a,{enumerable:!0,get:function(){throw e}})},a=0;a<n.length;a++)o();return Object.freeze(n)}var g=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e,i,o){var a;(0,r.Z)(this,n);var s=e.type+"["+(i>=0?i:"")+"]",u=-1===i||e.dynamic;return(a=t.call(this,"array",s,o,u)).coder=e,a.length=i,a}return(0,i.Z)(n,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],n=0;n<this.length;n++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var n=this.length;-1===n&&(n=t.length,e.writeValue(t.length)),m.checkArgumentCount(t.length,n,"coder array"+(this.localName?" "+this.localName:""));for(var r=[],i=0;i<t.length;i++)r.push(this.coder);return y(e,r,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&m.throwError("insufficient data length",s.Logger.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var n=[],r=0;r<t;r++)n.push(new h(this.coder));return e.coerce(this.name,v(e,n))}}]),n}(c.XI),b=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"bool","bool",e,!1)}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}]),n}(c.XI),w=n(69803),x=n(2312),A=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e,i){return(0,r.Z)(this,n),t.call(this,e,e,i,!0)}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){t=(0,o.arrayify)(t);var n=e.writeValue(t.length);return n+=e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}]),n}(c.XI),k=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"bytes",e)}return(0,i.Z)(n,[{key:"decode",value:function(e){return e.coerce(this.name,(0,o.hexlify)((0,w.Z)((0,x.Z)(n.prototype),"decode",this).call(this,e)))}}]),n}(A),E=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e,i){var o;(0,r.Z)(this,n);var a="bytes"+String(e);return(o=t.call(this,a,a,i,!1)).size=e,o}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var n=(0,o.arrayify)(t);return n.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(n)}},{key:"decode",value:function(e){return e.coerce(this.name,(0,o.hexlify)(e.readBytes(this.size)))}}]),n}(c.XI),T=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"null","",e,!1)}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}]),n}(c.XI),_=n(42322),S=n(77717),C=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e,i,o){var a;(0,r.Z)(this,n);var s=(i?"int":"uint")+8*e;return(a=t.call(this,s,s,o,!1)).size=e,a.signed=i,a}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var n=_.O$.from(t),r=S.Bz.mask(8*e.wordSize);if(this.signed){var i=r.mask(8*this.size-1);(n.gt(i)||n.lt(i.add(S.fh).mul(S.tL)))&&this._throwError("value out-of-bounds",t)}else(n.lt(S._Y)||n.gt(r.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return n=n.toTwos(8*this.size).mask(8*this.size),this.signed&&(n=n.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(n)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}]),n}(c.XI),I=n(25459),O=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e){return(0,r.Z)(this,n),t.call(this,"string",e)}return(0,i.Z)(n,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,t){return(0,w.Z)((0,x.Z)(n.prototype),"encode",this).call(this,e,(0,I.Y0)(t))}},{key:"decode",value:function(e){return(0,I.ZN)((0,w.Z)((0,x.Z)(n.prototype),"decode",this).call(this,e))}}]),n}(A),P=function(e){(0,l.Z)(n,e);var t=(0,f.Z)(n);function n(e,i){var o;(0,r.Z)(this,n);var a=!1,s=[];e.forEach((function(e){e.dynamic&&(a=!0),s.push(e.type)}));var u="tuple("+s.join(",")+")";return(o=t.call(this,"tuple",u,i,a)).coders=e,o}return(0,i.Z)(n,[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var n=t.localName;return n&&(e[n]||(e[n]=0),e[n]++),e}),{});return this.coders.forEach((function(n,r){var i=n.localName;i&&1===t[i]&&("length"===i&&(i="_length"),null==e[i]&&(e[i]=e[r]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return y(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,v(e,this.coders))}}]),n}(c.XI),R=n(94899),M=new s.Logger(u.i),B=new RegExp(/^bytes([0-9]*)$/),N=new RegExp(/^(u?int)([0-9]*)$/),F=function(){function e(t){(0,r.Z)(this,e),(0,a.defineReadOnly)(this,"coerceFunc",t||null)}return(0,i.Z)(e,[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new p(e.name);case"bool":return new b(e.name);case"string":return new O(e.name);case"bytes":return new k(e.name);case"array":return new g(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new P((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new T(e.name)}var n=e.type.match(N);if(n){var r=parseInt(n[2]||"256");return(0===r||r>256||r%8!==0)&&M.throwArgumentError("invalid "+n[1]+" bit length","param",e),new C(r/8,"int"===n[1],e.name)}if(n=e.type.match(B)){var i=parseInt(n[1]);return(0===i||i>32)&&M.throwArgumentError("invalid bytes length","param",e),new E(i,e.name)}return M.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new c.Ej(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new c.QV(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,n=e.map((function(e){return t._getCoder(R._R.from(e))}));return new P(n,"_").defaultValue()}},{key:"encode",value:function(e,t){var n=this;e.length!==t.length&&M.throwError("types/values length mismatch",s.Logger.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var r=e.map((function(e){return n._getCoder(R._R.from(e))})),i=new P(r,"_"),o=this._getWriter();return i.encode(o,t),o.data}},{key:"decode",value:function(e,t,n){var r=this,i=e.map((function(e){return r._getCoder(R._R.from(e))}));return new P(i,"_").decode(this._getReader((0,o.arrayify)(t),n))}}]),e}(),D=new F},54773:function(e,t,n){"use strict";n.d(t,{BR:function(){return f},Ej:function(){return h},QV:function(){return p},XI:function(){return d}});var r=n(8821),i=n(85169),o=n(64369),a=n(42322),s=n(63274),u=n(56919),c=n(74938),l=new u.Logger(c.i);function f(e){var t=[];return function e(n,r){if(Array.isArray(r))for(var i in r){var o=n.slice();o.push(i);try{e(o,r[i])}catch(a){t.push({path:o,error:a})}}}([],e),t}var d=function(){function e(t,n,i,o){(0,r.Z)(this,e),this.name=t,this.type=n,this.localName=i,this.dynamic=o}return(0,i.Z)(e,[{key:"_throwError",value:function(e,t){l.throwArgumentError(e,this.localName,t)}}]),e}(),p=function(){function e(t){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return(0,i.Z)(e,[{key:"data",get:function(){return(0,o.hexConcat)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData((0,o.concat)(e._data))}},{key:"writeBytes",value:function(e){var t=(0,o.arrayify)(e),n=t.length%this.wordSize;return n&&(t=(0,o.concat)([t,this._padding.slice(n)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=(0,o.arrayify)(a.O$.from(e));return t.length>this.wordSize&&l.throwError("value out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=(0,o.concat)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(n){e._data[t]=e._getValue(n)}}}]),e}(),h=function(){function e(t,n,i,a){(0,r.Z)(this,e),(0,s.defineReadOnly)(this,"_data",(0,o.arrayify)(t)),(0,s.defineReadOnly)(this,"wordSize",n||32),(0,s.defineReadOnly)(this,"_coerceFunc",i),(0,s.defineReadOnly)(this,"allowLoose",a),this._offset=0}return(0,i.Z)(e,[{key:"data",get:function(){return(0,o.hexlify)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,n){return this._coerceFunc?this._coerceFunc(t,n):e.coerce(t,n)}},{key:"_peekBytes",value:function(e,t,n){var r=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+t<=this._data.length?r=t:l.throwError("data out-of-bounds",u.Logger.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var n=this._peekBytes(0,e,!!t);return this._offset+=n.length,n.slice(0,e)}},{key:"readValue",value:function(){return a.O$.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var n=e.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(t=t.toNumber()),t}}]),e}()},94899:function(e,t,n){"use strict";n.d(t,{HY:function(){return x},IC:function(){return I},QV:function(){return A},Xg:function(){return _},YW:function(){return S},_R:function(){return b},pc:function(){return v}});var r=n(82248),i=n(8416),o=n(8821),a=n(85169),s=n(42322),u=n(63274),c=n(56919),l=n(74938),f=new c.Logger(l.i),d={},p={calldata:!0,memory:!0,storage:!0},h={calldata:!0,memory:!0};function m(e,t){if("bytes"===e||"string"===e){if(p[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&h[t])return!0;return(p[t]||"payable"===t)&&f.throwArgumentError("invalid modifier","name",t),!1}function y(e,t){for(var n in t)(0,u.defineReadOnly)(e,n,t[n])}var v=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),g=new RegExp(/^(.*)\[([0-9]*)\]$/),b=function(){function e(t,n){(0,o.Z)(this,e),t!==d&&f.throwError("use fromString",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),y(this,n);var r=this.type.match(g);y(this,r?{arrayLength:parseInt(r[2]||"-1"),arrayChildren:e.fromObject({type:r[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}return(0,a.Z)(e,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var n="";return"array"===this.baseType?(n+=this.arrayChildren.format(e),n+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==v.sighash&&(n+=this.type),n+="("+this.components.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+")"):n+=this.type,e!==v.sighash&&(!0===this.indexed&&(n+=" indexed"),e===v.full&&this.name&&(n+=" "+this.name)),n}}],[{key:"from",value:function(t,n){return"string"===typeof t?e.fromString(t,n):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(d,{name:t.name||null,type:O(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,n){return r=function(e,t){var n=e;function r(t){f.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function i(e){var n={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(n.indexed=!1),n}e=e.replace(/\s/g," ");for(var o={type:"",name:"",state:{allowType:!0}},a=o,s=0;s<e.length;s++){var u=e[s];switch(u){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||r(s),a.state.allowType=!1,a.type=O(a.type),a.components=[i(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||r(s),a.indexed=!0,a.name=""),m(a.type,a.name)&&(a.name=""),a.type=O(a.type);var c=a;(a=a.parent)||r(s),delete c.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||r(s),a.indexed=!0,a.name=""),m(a.type,a.name)&&(a.name=""),a.type=O(a.type);var l=i(a.parent);a.parent.components.push(l),delete a.parent,a=l;break;case" ":a.state.allowType&&""!==a.type&&(a.type=O(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||r(s),a.indexed&&r(s),a.indexed=!0,a.name=""):m(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||r(s),a.type+=u,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||r(s),a.type+=u,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=u,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=u,delete a.state.allowArray):a.state.readArray?a.type+=u:r(s)}}return a.parent&&f.throwArgumentError("unexpected eof","param",e),delete o.state,"indexed"===a.name?(t||r(n.length-7),a.indexed&&r(n.length-7),a.indexed=!0,a.name=""):m(a.type,a.name)&&(a.name=""),o.type=O(o.type),o}(t,!!n),e.fromObject({name:r.name,type:r.type,indexed:r.indexed,components:r.components});var r}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}]),e}();function w(e,t){return function(e){e=e.trim();for(var t=[],n="",r=0,i=0;i<e.length;i++){var o=e[i];","===o&&0===r?(t.push(n),n=""):(n+=o,"("===o?r++:")"===o&&-1===--r&&f.throwArgumentError("unbalanced parenthesis","value",e))}n&&t.push(n);return t}(e).map((function(e){return b.fromString(e,t)}))}var x=function(){function e(t,n){(0,o.Z)(this,e),t!==d&&f.throwError("use a static from method",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),y(this,n),this._isFragment=!0,Object.freeze(this)}return(0,a.Z)(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"===typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return S.fromObject(t);case"event":return A.fromObject(t);case"constructor":return _.fromObject(t);case"error":return I.fromObject(t);case"fallback":case"receive":return null}return f.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?A.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?S.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?_.fromString(e.trim()):"error"===e.split(" ")[0]?I.fromString(e.substring(5).trim()):f.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}]),e}(),A=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ",e!==v.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isEventFragment(e))return e;"event"!==e.type&&f.throwArgumentError("invalid event object","value",e);var t={name:R(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(b.fromObject):[],type:"event"};return new n(d,t)}},{key:"fromString",value:function(e){var t=e.match(M);t||f.throwArgumentError("invalid event string","value",e);var r=!1;return t[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":r=!0;break;case"":break;default:f.warn("unknown modifier: "+e)}})),n.fromObject({name:t[1].trim(),anonymous:r,inputs:w(t[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}]),n}(x);function k(e,t){t.gas=null;var n=e.split("@");return 1!==n.length?(n.length>2&&f.throwArgumentError("invalid human-readable ABI signature","value",e),n[1].match(/^[0-9]+$/)||f.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=s.O$.from(n[1]),n[0]):e}function E(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function T(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&f.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&f.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||f.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&f.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&f.throwArgumentError("unable to determine stateMutability","value",e),t}var _=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===v.sighash&&f.throwError("cannot format a constructor for sighash",c.Logger.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isConstructorFragment(e))return e;"constructor"!==e.type&&f.throwArgumentError("invalid constructor object","value",e);var t=T(e);t.constant&&f.throwArgumentError("constructor cannot be constant","value",e);var r={name:null,type:e.type,inputs:e.inputs?e.inputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"constructor"},r=(e=k(e,t)).match(M);return r&&"constructor"===r[1].trim()||f.throwArgumentError("invalid constructor string","value",e),t.inputs=w(r[2].trim(),!1),E(r[3].trim(),t),n.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),n}(x),S=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ",e!==v.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isFunctionFragment(e))return e;"function"!==e.type&&f.throwArgumentError("invalid function object","value",e);var t=T(e),r={type:e.type,name:R(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(b.fromObject):[],outputs:e.outputs?e.outputs.map(b.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?s.O$.from(e.gas):null};return new n(d,r)}},{key:"fromString",value:function(e){var t={type:"function"},r=(e=k(e,t)).split(" returns ");r.length>2&&f.throwArgumentError("invalid function string","value",e);var i=r[0].match(M);if(i||f.throwArgumentError("invalid function signature","value",e),t.name=i[1].trim(),t.name&&R(t.name),t.inputs=w(i[2],!1),E(i[3].trim(),t),r.length>1){var o=r[1].match(M);""==o[1].trim()&&""==o[3].trim()||f.throwArgumentError("unexpected tokens","value",e),t.outputs=w(o[2],!1)}else t.outputs=[];return n.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),n}(_);function C(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||f.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var I=function(e){(0,r.Z)(n,e);var t=(0,i.Z)(n);function n(){return(0,o.Z)(this,n),t.apply(this,arguments)}return(0,a.Z)(n,[{key:"format",value:function(e){if(e||(e=v.sighash),v[e]||f.throwArgumentError("invalid format type","format",e),e===v.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==v.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===v.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"===typeof e?n.fromString(e):n.fromObject(e)}},{key:"fromObject",value:function(e){if(n.isErrorFragment(e))return e;"error"!==e.type&&f.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:R(e.name),inputs:e.inputs?e.inputs.map(b.fromObject):[]};return C(new n(d,t))}},{key:"fromString",value:function(e){var t={type:"error"},r=e.match(M);return r||f.throwArgumentError("invalid error signature","value",e),t.name=r[1].trim(),t.name&&R(t.name),t.inputs=w(r[2],!1),C(n.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),n}(x);function O(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var P=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function R(e){return e&&e.match(P)||f.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var M=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$")},51407:function(e,t,n){"use strict";n.r(t),n.d(t,{AbiCoder:function(){return i.R},ConstructorFragment:function(){return r.Xg},ErrorFragment:function(){return r.IC},EventFragment:function(){return r.QV},FormatTypes:function(){return r.pc},Fragment:function(){return r.HY},FunctionFragment:function(){return r.YW},Indexed:function(){return o.Hk},Interface:function(){return o.vU},LogDescription:function(){return o.CC},ParamType:function(){return r._R},TransactionDescription:function(){return o.vk},checkResultErrors:function(){return a.BR},defaultAbiCoder:function(){return i.$}});var r=n(94899),i=n(46306),o=n(92388),a=n(54773)},92388:function(e,t,n){"use strict";n.d(t,{CC:function(){return g},Hk:function(){return x},vU:function(){return E},vk:function(){return b}});var r=n(85169),i=n(8821),o=n(82248),a=n(8416),s=n(27255),u=n(42322),c=n(64369),l=n(75441),f=n(8082),d=n(63274),p=n(46306),h=n(94899),m=n(56919),y=n(74938),v=new m.Logger(y.i),g=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),b=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),w=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n)}(d.Description),x=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,r.Z)(n,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),n}(d.Description),A={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function k(e,t){var n=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return n.error=t,n}var E=function(){function e(t){var n=this;(0,i.Z)(this,e);var r=[];r="string"===typeof t?JSON.parse(t):t,(0,d.defineReadOnly)(this,"fragments",r.map((function(e){return h.HY.from(e)})).filter((function(e){return null!=e}))),(0,d.defineReadOnly)(this,"_abiCoder",(0,d.getStatic)(this instanceof e?this.constructor:void 0,"getAbiCoder")()),(0,d.defineReadOnly)(this,"functions",{}),(0,d.defineReadOnly)(this,"errors",{}),(0,d.defineReadOnly)(this,"events",{}),(0,d.defineReadOnly)(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return n.deploy?void v.warn("duplicate definition - constructor"):void(0,d.defineReadOnly)(n,"deploy",e);case"function":t=n.functions;break;case"event":t=n.events;break;case"error":t=n.errors;break;default:return}var r=e.format();t[r]?v.warn("duplicate definition - "+r):t[r]=e})),this.deploy||(0,d.defineReadOnly)(this,"deploy",h.Xg.from({payable:!1,type:"constructor"})),(0,d.defineReadOnly)(this,"_isInterface",!0)}return(0,r.Z)(e,[{key:"format",value:function(e){e||(e=h.pc.full),e===h.pc.sighash&&v.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===h.pc.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if((0,c.isHexString)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];v.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),r=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===n}));return 0===r.length?v.throwArgumentError("no matching function","name",n):r.length>1&&v.throwArgumentError("multiple matching functions","name",n),this.functions[r[0]]}var i=this.functions[h.YW.fromString(e).format()];return i||v.throwArgumentError("no matching function","signature",e),i}},{key:"getEvent",value:function(e){if((0,c.isHexString)(e)){var t=e.toLowerCase();for(var n in this.events)if(t===this.getEventTopic(n))return this.events[n];v.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var r=e.trim(),i=Object.keys(this.events).filter((function(e){return e.split("(")[0]===r}));return 0===i.length?v.throwArgumentError("no matching event","name",r):i.length>1&&v.throwArgumentError("multiple matching events","name",r),this.events[i[0]]}var o=this.events[h.QV.fromString(e).format()];return o||v.throwArgumentError("no matching event","signature",e),o}},{key:"getError",value:function(e){if((0,c.isHexString)(e)){var t=(0,d.getStatic)(this.constructor,"getSighash");for(var n in this.errors){if(e===t(this.errors[n]))return this.errors[n]}v.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),i=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===r}));return 0===i.length?v.throwArgumentError("no matching error","name",r):i.length>1&&v.throwArgumentError("multiple matching errors","name",r),this.errors[i[0]]}var o=this.errors[h.YW.fromString(e).format()];return o||v.throwArgumentError("no matching error","signature",e),o}},{key:"getSighash",value:function(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(n){throw t}}return(0,d.getStatic)(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),(0,d.getStatic)(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"===typeof e&&(e=this.getError(e));var n=(0,c.arrayify)(t);return(0,c.hexlify)(n.slice(0,4))!==this.getSighash(e)&&v.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",(0,c.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"===typeof e&&(e=this.getError(e)),(0,c.hexlify)((0,c.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=(0,c.arrayify)(t);return(0,c.hexlify)(n.slice(0,4))!==this.getSighash(e)&&v.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",(0,c.hexlify)(n)),this._decodeParams(e.inputs,n.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,c.hexlify)((0,c.concat)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var n=(0,c.arrayify)(t),r=null,i="",o=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,n)}catch(f){}break;case 4:var u=(0,c.hexlify)(n.slice(0,4)),l=A[u];if(l)o=this._abiCoder.decode(l.inputs,n.slice(4)),a=l.name,s=l.signature,l.reason&&(r=o[0]),"Error"===a?i="; VM Exception while processing transaction: reverted with reason string ".concat(JSON.stringify(o[0])):"Panic"===a&&(i="; VM Exception while processing transaction: reverted with panic code ".concat(o[0]));else try{var f=this.getError(u);o=this._abiCoder.decode(f.inputs,n.slice(4)),a=f.name,s=f.format()}catch(f){}}return v.throwError("call revert exception"+i,m.Logger.errors.CALL_EXCEPTION,{method:e.format(),data:(0,c.hexlify)(t),errorArgs:o,errorName:a,errorSignature:s,reason:r})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),(0,c.hexlify)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&v.throwError("too many arguments for "+e.format(),m.Logger.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var r=[];e.anonymous||r.push(this.getEventTopic(e));var i=function(e,t){return"string"===e.type?(0,l.id)(t):"bytes"===e.type?(0,f.keccak256)((0,c.hexlify)(t)):("bool"===e.type&&"boolean"===typeof t&&(t=t?"0x01":"0x00"),e.type.match(/^u?int/)&&(t=u.O$.from(t).toHexString()),"address"===e.type&&n._abiCoder.encode(["address"],[t]),(0,c.hexZeroPad)((0,c.hexlify)(t),32))};for(t.forEach((function(t,n){var o=e.inputs[n];o.indexed?null==t?r.push(null):"array"===o.baseType||"tuple"===o.baseType?v.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,t):Array.isArray(t)?r.push(t.map((function(e){return i(o,e)}))):r.push(i(o,t)):null!=t&&v.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,t)}));r.length&&null===r[r.length-1];)r.pop();return r}},{key:"encodeEventLog",value:function(e,t){var n=this;"string"===typeof e&&(e=this.getEvent(e));var r=[],i=[],o=[];return e.anonymous||r.push(this.getEventTopic(e)),t.length!==e.inputs.length&&v.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var s=t[a];if(e.indexed)if("string"===e.type)r.push((0,l.id)(s));else if("bytes"===e.type)r.push((0,f.keccak256)(s));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");r.push(n._abiCoder.encode([e.type],[s]))}else i.push(e),o.push(s)})),{data:this._abiCoder.encode(i,o),topics:r}}},{key:"decodeEventLog",value:function(e,t,n){if("string"===typeof e&&(e=this.getEvent(e)),null!=n&&!e.anonymous){var r=this.getEventTopic(e);(0,c.isHexString)(n[0],32)&&n[0].toLowerCase()===r||v.throwError("fragment/topic mismatch",m.Logger.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:r,value:n[0]}),n=n.slice(1)}var i=[],o=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(i.push(h._R.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(i.push(e),a.push(!1)):(o.push(e),a.push(!1))}));var s=null!=n?this._abiCoder.decode(i,(0,c.concat)(n)):null,u=this._abiCoder.decode(o,t,!0),l=[],f=0,d=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==s)l[t]=new x({_isIndexed:!0,hash:null});else if(a[t])l[t]=new x({_isIndexed:!0,hash:s[d++]});else try{l[t]=s[d++]}catch(r){l[t]=r}else try{l[t]=u[f++]}catch(r){l[t]=r}if(e.name&&null==l[e.name]){var n=l[t];n instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw k("property ".concat(JSON.stringify(e.name)),n)}}):l[e.name]=n}}));for(var p=function(e){var t=l[e];t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw k("index ".concat(e),t)}})},y=0;y<l.length;y++)p(y);return Object.freeze(l)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new b({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:u.O$.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new g({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}},{key:"parseError",value:function(e){var t=(0,c.hexlify)(e),n=this.getError(t.substring(0,10).toLowerCase());return n?new w({args:this._abiCoder.decode(n.inputs,"0x"+t.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}}],[{key:"getAbiCoder",value:function(){return p.$}},{key:"getAddress",value:function(e){return(0,s.getAddress)(e)}},{key:"getSighash",value:function(e){return(0,c.hexDataSlice)((0,l.id)(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return(0,l.id)(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}]),e}()},22090:function(e,t,n){"use strict";n.d(t,{Sg:function(){return p},zt:function(){return h}});var r=n(46999),i=n(8821),o=n(85169),a=n(82248),s=n(8416),u=n(42322),c=n(63274),l=n(56919),f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=new l.Logger("abstract-provider/5.7.0"),p=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,null,[{key:"isForkEvent",value:function(e){return!(!e||!e._isForkEvent)}}]),n}(c.Description),h=function(){function e(){(0,i.Z)(this,e),d.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,c.defineReadOnly)(this,"_isProvider",!0)}return(0,o.Z)(e,[{key:"getFeeData",value:function(){return f(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,n,i,o,a,s;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,c.resolveProperties)({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(e){return null}))});case 2:return t=e.sent,n=t.block,i=t.gasPrice,o=null,a=null,s=null,n&&n.baseFeePerGas&&(o=n.baseFeePerGas,s=u.O$.from("1500000000"),a=n.baseFeePerGas.mul(2).add(s)),e.abrupt("return",{lastBaseFeePerGas:o,maxFeePerGas:a,maxPriorityFeePerGas:s,gasPrice:i});case 8:case"end":return e.stop()}}),e,this)})))}},{key:"addListener",value:function(e,t){return this.on(e,t)}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"isProvider",value:function(e){return!(!e||!e._isProvider)}}]),e}()},50162:function(e,t,n){"use strict";n.d(t,{E:function(){return m},b:function(){return y}});var r=n(93173),i=n(82248),o=n(8416),a=n(46999),s=n(8821),u=n(85169),c=n(63274),l=n(56919),f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=new l.Logger("abstract-signer/5.7.0"),p=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],h=[l.Logger.errors.INSUFFICIENT_FUNDS,l.Logger.errors.NONCE_EXPIRED,l.Logger.errors.REPLACEMENT_UNDERPRICED],m=function(){function e(){(0,s.Z)(this,e),d.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,c.defineReadOnly)(this,"_isSigner",!0)}return(0,u.Z)(e,[{key:"getBalance",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){var n;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,(0,c.resolveProperties)(this.checkTransaction(e));case 3:return n=t.sent,t.next=6,this.provider.estimateGas(n);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return f(this,void 0,void 0,(0,a.Z)().mark((function n(){var r;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this._checkProvider("call"),n.next=3,(0,c.resolveProperties)(this.checkTransaction(e));case 3:return r=n.sent,n.next=6,this.provider.call(r,t);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n,this)})))}},{key:"sendTransaction",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("sendTransaction"),t.next=3,this.populateTransaction(e);case 3:return n=t.sent,t.next=6,this.signTransaction(n);case 6:return r=t.sent,t.next=9,this.provider.sendTransaction(r);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getChainId",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getFeeData",value:function(){return f(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getFeeData"),e.next=3,this.provider.getFeeData();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===p.indexOf(t)&&d.throwArgumentError("invalid transaction key: "+t,"transaction",e);var n=(0,c.shallowCopy)(e);return null==n.from?n.from=this.getAddress():n.from=Promise.all([Promise.resolve(n.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&d.throwArgumentError("from address mismatch","transaction",e),t[0]})),n}},{key:"populateTransaction",value:function(e){return f(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i,o,s=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,c.resolveProperties)(this.checkTransaction(e));case 2:if(null!=(n=t.sent).to&&(n.to=Promise.resolve(n.to).then((function(e){return f(s,void 0,void 0,(0,a.Z)().mark((function t(){var n;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(n=t.sent)&&d.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))})),n.to.catch((function(e){}))),r=null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas,null==n.gasPrice||2!==n.type&&!r?0!==n.type&&1!==n.type||!r||d.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):d.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==n.type&&null!=n.type||null==n.maxFeePerGas||null==n.maxPriorityFeePerGas){t.next=10;break}n.type=2,t.next=18;break;case 10:if(0!==n.type&&1!==n.type){t.next=14;break}null==n.gasPrice&&(n.gasPrice=this.getGasPrice()),t.next=18;break;case 14:return t.next=16,this.getFeeData();case 16:i=t.sent,null==n.type?null!=i.maxFeePerGas&&null!=i.maxPriorityFeePerGas?(n.type=2,null!=n.gasPrice?(o=n.gasPrice,delete n.gasPrice,n.maxFeePerGas=o,n.maxPriorityFeePerGas=o):(null==n.maxFeePerGas&&(n.maxFeePerGas=i.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=i.maxPriorityFeePerGas))):null!=i.gasPrice?(r&&d.throwError("network does not support EIP-1559",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==n.gasPrice&&(n.gasPrice=i.gasPrice),n.type=0):d.throwError("failed to get consistent fee data",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===n.type&&(null==n.maxFeePerGas&&(n.maxFeePerGas=i.maxFeePerGas),null==n.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=i.maxPriorityFeePerGas));case 18:return null==n.nonce&&(n.nonce=this.getTransactionCount("pending")),null==n.gasLimit&&(n.gasLimit=this.estimateGas(n).catch((function(e){if(h.indexOf(e.code)>=0)throw e;return d.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",l.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:n})}))),null==n.chainId?n.chainId=this.getChainId():n.chainId=Promise.all([Promise.resolve(n.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&d.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,(0,c.resolveProperties)(n);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||d.throwError("missing provider",l.Logger.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),y=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e,i){var o;return(0,s.Z)(this,n),o=t.call(this),(0,c.defineReadOnly)((0,r.Z)(o),"address",e),(0,c.defineReadOnly)((0,r.Z)(o),"provider",i||null),o}return(0,u.Z)(n,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){d.throwError(e,l.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new n(this.address,e)}}]),n}(m)},27255:function(e,t,n){"use strict";n.r(t),n.d(t,{getAddress:function(){return m},getContractAddress:function(){return g},getCreate2Address:function(){return b},getIcapAddress:function(){return v},isAddress:function(){return y}});var r=n(64369),i=n(42322),o=n(8082),a=n(38110),s=new(n(56919).Logger)("address/5.7.0");function u(e){(0,r.isHexString)(e,20)||s.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),i=0;i<40;i++)n[i]=t[i].charCodeAt(0);for(var a=(0,r.arrayify)((0,o.keccak256)(n)),u=0;u<40;u+=2)a[u>>1]>>4>=8&&(t[u]=t[u].toUpperCase()),(15&a[u>>1])>=8&&(t[u+1]=t[u+1].toUpperCase());return"0x"+t.join("")}for(var c={},l=0;l<10;l++)c[String(l)]=String(l);for(var f=0;f<26;f++)c[String.fromCharCode(65+f)]=String(10+f);var d,p=Math.floor((d=9007199254740991,Math.log10?Math.log10(d):Math.log(d)/Math.LN10));function h(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return c[e]})).join("");t.length>=p;){var n=t.substring(0,p);t=parseInt(n,10)%97+t.substring(n.length)}for(var r=String(98-parseInt(t,10)%97);r.length<2;)r="0"+r;return r}function m(e){var t=null;if("string"!==typeof e&&s.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),t=u(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&t!==e&&s.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==h(e)&&s.throwArgumentError("bad icap checksum","address",e),t=(0,i.g$)(e.substring(4));t.length<40;)t="0"+t;t=u("0x"+t)}else s.throwArgumentError("invalid address","address",e);return t}function y(e){try{return m(e),!0}catch(t){}return!1}function v(e){for(var t=(0,i.t2)(m(e).substring(2)).toUpperCase();t.length<30;)t="0"+t;return"XE"+h("XE00"+t)+t}function g(e){var t=null;try{t=m(e.from)}catch(u){s.throwArgumentError("missing from address","transaction",e)}var n=(0,r.stripZeros)((0,r.arrayify)(i.O$.from(e.nonce).toHexString()));return m((0,r.hexDataSlice)((0,o.keccak256)((0,a.encode)([t,n])),12))}function b(e,t,n){return 32!==(0,r.hexDataLength)(t)&&s.throwArgumentError("salt must be 32 bytes","salt",t),32!==(0,r.hexDataLength)(n)&&s.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",n),m((0,r.hexDataSlice)((0,o.keccak256)((0,r.concat)(["0xff",m(e),t,n])),12))}},33432:function(e,t,n){"use strict";n.d(t,{J:function(){return i},c:function(){return o}});var r=n(64369);function i(e){e=atob(e);for(var t=[],n=0;n<e.length;n++)t.push(e.charCodeAt(n));return(0,r.arrayify)(t)}function o(e){e=(0,r.arrayify)(e);for(var t="",n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}},74478:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return r.J},encode:function(){return r.c}});var r=n(33432)},88832:function(e,t,n){"use strict";n.r(t),n.d(t,{Base32:function(){return u},Base58:function(){return c},BaseX:function(){return s}});var r=n(8821),i=n(85169),o=n(64369),a=n(63274),s=function(){function e(t){(0,r.Z)(this,e),(0,a.defineReadOnly)(this,"alphabet",t),(0,a.defineReadOnly)(this,"base",t.length),(0,a.defineReadOnly)(this,"_alphabetMap",{}),(0,a.defineReadOnly)(this,"_leader",t.charAt(0));for(var n=0;n<t.length;n++)this._alphabetMap[t.charAt(n)]=n}return(0,i.Z)(e,[{key:"encode",value:function(e){var t=(0,o.arrayify)(e);if(0===t.length)return"";for(var n=[0],r=0;r<t.length;++r){for(var i=t[r],a=0;a<n.length;++a)i+=n[a]<<8,n[a]=i%this.base,i=i/this.base|0;for(;i>0;)n.push(i%this.base),i=i/this.base|0}for(var s="",u=0;0===t[u]&&u<t.length-1;++u)s+=this._leader;for(var c=n.length-1;c>=0;--c)s+=this.alphabet[n[c]];return s}},{key:"decode",value:function(e){if("string"!==typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var n=0;n<e.length;n++){var r=this._alphabetMap[e[n]];if(void 0===r)throw new Error("Non-base"+this.base+" character");for(var i=r,a=0;a<t.length;++a)i+=t[a]*this.base,t[a]=255&i,i>>=8;for(;i>0;)t.push(255&i),i>>=8}for(var s=0;e[s]===this._leader&&s<e.length-1;++s)t.push(0);return(0,o.arrayify)(new Uint8Array(t.reverse()))}}]),e}(),u=new s("abcdefghijklmnopqrstuvwxyz234567"),c=new s("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")},40573:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="bignumber/5.7.0"},42322:function(e,t,n){"use strict";n.d(t,{O$:function(){return y},Zm:function(){return h},g$:function(){return x},t2:function(){return A}});var r=n(8821),i=n(85169),o=n(72086),a=n.n(o),s=n(64369),u=n(56919),c=n(40573),l=a().BN,f=new u.Logger(c.i),d={},p=9007199254740991;function h(e){return null!=e&&(y.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||(0,s.isHexString)(e)||"bigint"===typeof e||(0,s.isBytes)(e))}var m=!1,y=function(){function e(t,n){(0,r.Z)(this,e),t!==d&&f.throwError("cannot call constructor directly; use BigNumber.from",u.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}return(0,i.Z)(e,[{key:"fromTwos",value:function(e){return g(b(this).fromTwos(e))}},{key:"toTwos",value:function(e){return g(b(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return g(b(this).add(b(e)))}},{key:"sub",value:function(e){return g(b(this).sub(b(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&w("division-by-zero","div"),g(b(this).div(b(t)))}},{key:"mul",value:function(e){return g(b(this).mul(b(e)))}},{key:"mod",value:function(e){var t=b(e);return t.isNeg()&&w("division-by-zero","mod"),g(b(this).umod(t))}},{key:"pow",value:function(e){var t=b(e);return t.isNeg()&&w("negative-power","pow"),g(b(this).pow(t))}},{key:"and",value:function(e){var t=b(e);return(this.isNegative()||t.isNeg())&&w("unbound-bitwise-result","and"),g(b(this).and(t))}},{key:"or",value:function(e){var t=b(e);return(this.isNegative()||t.isNeg())&&w("unbound-bitwise-result","or"),g(b(this).or(t))}},{key:"xor",value:function(e){var t=b(e);return(this.isNegative()||t.isNeg())&&w("unbound-bitwise-result","xor"),g(b(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&w("negative-width","mask"),g(b(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&w("negative-width","shl"),g(b(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&w("negative-width","shr"),g(b(this).shrn(e))}},{key:"eq",value:function(e){return b(this).eq(b(e))}},{key:"lt",value:function(e){return b(this).lt(b(e))}},{key:"lte",value:function(e){return b(this).lte(b(e))}},{key:"gt",value:function(e){return b(this).gt(b(e))}},{key:"gte",value:function(e){return b(this).gte(b(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return b(this).isZero()}},{key:"toNumber",value:function(){try{return b(this).toNumber()}catch(e){w("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return f.throwError("this platform does not support BigInt",u.Logger.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?m||(m=!0,f.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?f.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",u.Logger.errors.UNEXPECTED_ARGUMENT,{}):f.throwError("BigNumber.toString does not accept parameters",u.Logger.errors.UNEXPECTED_ARGUMENT,{})),b(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(d,v(t)):t.match(/^-?[0-9]+$/)?new e(d,v(new l(t))):f.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&w("underflow","BigNumber.from",t),(t>=p||t<=-p)&&w("overflow","BigNumber.from",t),e.from(String(t));var n=t;if("bigint"===typeof n)return e.from(n.toString());if((0,s.isBytes)(n))return e.from((0,s.hexlify)(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"===typeof r)return e.from(r)}else{var i=n._hex;if(null==i&&"BigNumber"===n.type&&(i=n.hex),"string"===typeof i&&((0,s.isHexString)(i)||"-"===i[0]&&(0,s.isHexString)(i.substring(1))))return e.from(i)}return f.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function v(e){if("string"!==typeof e)return v(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&f.throwArgumentError("invalid hex","value",e),"0x00"===(e=v(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function g(e){return y.from(v(e))}function b(e){var t=y.from(e).toHexString();return"-"===t[0]?new l("-"+t.substring(3),16):new l(t.substring(2),16)}function w(e,t,n){var r={fault:e,operation:t};return null!=n&&(r.value=n),f.throwError(e,u.Logger.errors.NUMERIC_FAULT,r)}function x(e){return new l(e,36).toString(16)}function A(e){return new l(e,16).toString(36)}},84319:function(e,t,n){"use strict";n.d(t,{Ox:function(){return v},S5:function(){return y},xs:function(){return b}});var r=n(8821),i=n(85169),o=n(64369),a=n(56919),s=n(40573),u=n(42322),c=new a.Logger(s.i),l={},f=u.O$.from(0),d=u.O$.from(-1);function p(e,t,n,r){var i={fault:t,operation:n};return void 0!==r&&(i.value=r),c.throwError(e,a.Logger.errors.NUMERIC_FAULT,i)}for(var h="0";h.length<256;)h+=h;function m(e){if("number"!==typeof e)try{e=u.O$.from(e).toNumber()}catch(t){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+h.substring(0,e):c.throwArgumentError("invalid decimal size","decimals",e)}function y(e,t){null==t&&(t=0);var n=m(t),r=(e=u.O$.from(e)).lt(f);r&&(e=e.mul(d));for(var i=e.mod(n).toString();i.length<n.length-1;)i="0"+i;i=i.match(/^([0-9]*[1-9]|0)(0*)/)[1];var o=e.div(n).toString();return e=1===n.length?o:o+"."+i,r&&(e="-"+e),e}function v(e,t){null==t&&(t=0);var n=m(t);"string"===typeof e&&e.match(/^-?[0-9.]+$/)||c.throwArgumentError("invalid decimal value","value",e);var r="-"===e.substring(0,1);r&&(e=e.substring(1)),"."===e&&c.throwArgumentError("missing value","value",e);var i=e.split(".");i.length>2&&c.throwArgumentError("too many decimal points","value",e);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&p("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<n.length-1;)a+="0";var s=u.O$.from(o),l=u.O$.from(a),f=s.mul(n).add(l);return r&&(f=f.mul(d)),f}var g=function(){function e(t,n,i,o){(0,r.Z)(this,e),t!==l&&c.throwError("cannot use FixedFormat constructor; use FixedFormat.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=n,this.width=i,this.decimals=o,this.name=(n?"":"u")+"fixed"+String(i)+"x"+String(o),this._multiplier=m(o),Object.freeze(this)}return(0,i.Z)(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;"number"===typeof t&&(t="fixed128x".concat(t));var n=!0,r=128,i=18;if("string"===typeof t)if("fixed"===t);else if("ufixed"===t)n=!1;else{var o=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);o||c.throwArgumentError("invalid fixed format","format",t),n="u"!==o[1],r=parseInt(o[2]),i=parseInt(o[3])}else if(t){var a=function(e,n,r){return null==t[e]?r:(typeof t[e]!==n&&c.throwArgumentError("invalid fixed format ("+e+" not "+n+")","format."+e,t[e]),t[e])};n=a("signed","boolean",n),r=a("width","number",r),i=a("decimals","number",i)}return r%8&&c.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",r),i>80&&c.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new e(l,n,r,i)}}]),e}(),b=function(){function e(t,n,i,o){(0,r.Z)(this,e),t!==l&&c.throwError("cannot use FixedNumber constructor; use FixedNumber.from",a.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=n,this._value=i,this._isFixedNumber=!0,Object.freeze(this)}return(0,i.Z)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&c.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var n=v(this._value,this.format.decimals),r=v(t._value,t.format.decimals);return e.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(w.toFormat(n.format))),n}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var n=e.from(t[0],this.format),r=!t[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(w.toFormat(n.format))),n}},{key:"round",value:function(t){null==t&&(t=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(t<0||t>80||t%1)&&c.throwArgumentError("invalid decimal count","decimals",t),n[1].length<=t)return this;var r=e.from("1"+h.substring(0,t),this.format),i=x.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&c.throwArgumentError("invalid byte width","width",e);var t=u.O$.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return(0,o.hexZeroPad)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,n,r){return null!=r||null==n||(0,u.Zm)(n)||(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),e.fromString(y(t,n),g.from(r))}},{key:"fromString",value:function(t,n){null==n&&(n="fixed");var r=g.from(n),i=v(t,r.decimals);!r.signed&&i.lt(f)&&p("unsigned value cannot be negative","overflow","value",t);var a=null;r.signed?a=i.toTwos(r.width).toHexString():(a=i.toHexString(),a=(0,o.hexZeroPad)(a,r.width/8));var s=y(i,r.decimals);return new e(l,a,s,r)}},{key:"fromBytes",value:function(t,n){null==n&&(n="fixed");var r=g.from(n);if((0,o.arrayify)(t).length>r.width/8)throw new Error("overflow");var i=u.O$.from(t);r.signed&&(i=i.fromTwos(r.width));var a=i.toTwos((r.signed?0:1)+r.width).toHexString(),s=y(i,r.decimals);return new e(l,a,s,r)}},{key:"from",value:function(t,n){if("string"===typeof t)return e.fromString(t,n);if((0,o.isBytes)(t))return e.fromBytes(t,n);try{return e.fromValue(t,0,n)}catch(r){if(r.code!==a.Logger.errors.INVALID_ARGUMENT)throw r}return c.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),w=b.from(1),x=b.from("0.5")},64369:function(e,t,n){"use strict";n.r(t),n.d(t,{arrayify:function(){return c},concat:function(){return l},hexConcat:function(){return g},hexDataLength:function(){return y},hexDataSlice:function(){return v},hexStripZeros:function(){return w},hexValue:function(){return b},hexZeroPad:function(){return x},hexlify:function(){return m},isBytes:function(){return u},isBytesLike:function(){return a},isHexString:function(){return p},joinSignature:function(){return k},splitSignature:function(){return A},stripZeros:function(){return f},zeroPad:function(){return d}});var r=new(n(56919).Logger)("bytes/5.7.0");function i(e){return!!e.toHexString}function o(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return o(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function a(e){return p(e)&&!(e.length%2)||u(e)}function s(e){return"number"===typeof e&&e==e&&e%1===0}function u(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(!s(e.length)||e.length<0)return!1;for(var t=0;t<e.length;t++){var n=e[t];if(!s(n)||n<0||n>=256)return!1}return!0}function c(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid arrayify value");for(var n=[];e;)n.unshift(255&e),e=parseInt(String(e/256));return 0===n.length&&n.push(0),o(new Uint8Array(n))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),p(e)){var a=e.substring(2);a.length%2&&("left"===t.hexPad?a="0"+a:"right"===t.hexPad?a+="0":r.throwArgumentError("hex data is odd-length","value",e));for(var s=[],c=0;c<a.length;c+=2)s.push(parseInt(a.substring(c,c+2),16));return o(new Uint8Array(s))}return u(e)?o(new Uint8Array(e)):r.throwArgumentError("invalid arrayify value","value",e)}function l(e){var t=e.map((function(e){return c(e)})),n=t.reduce((function(e,t){return e+t.length}),0),r=new Uint8Array(n);return t.reduce((function(e,t){return r.set(t,e),e+t.length}),0),o(r)}function f(e){var t=c(e);if(0===t.length)return t;for(var n=0;n<t.length&&0===t[n];)n++;return n&&(t=t.slice(n)),t}function d(e,t){(e=c(e)).length>t&&r.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(t);return n.set(e,t-e.length),o(n)}function p(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}var h="0123456789abcdef";function m(e,t){if(t||(t={}),"number"===typeof e){r.checkSafeUint53(e,"invalid hexlify value");for(var n="";e;)n=h[15&e]+n,e=Math.floor(e/16);return n.length?(n.length%2&&(n="0"+n),"0x"+n):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(p(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":r.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(u(e)){for(var o="0x",a=0;a<e.length;a++){var s=e[a];o+=h[(240&s)>>4]+h[15&s]}return o}return r.throwArgumentError("invalid hexlify value","value",e)}function y(e){if("string"!==typeof e)e=m(e);else if(!p(e)||e.length%2)return null;return(e.length-2)/2}function v(e,t,n){return"string"!==typeof e?e=m(e):(!p(e)||e.length%2)&&r.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=n?"0x"+e.substring(t,2+2*n):"0x"+e.substring(t)}function g(e){var t="0x";return e.forEach((function(e){t+=m(e).substring(2)})),t}function b(e){var t=w(m(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function w(e){"string"!==typeof e&&(e=m(e)),p(e)||r.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function x(e,t){for("string"!==typeof e?e=m(e):p(e)||r.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&r.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function A(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(a(e)){var n=c(e);64===n.length?(t.v=27+(n[32]>>7),n[32]&=127,t.r=m(n.slice(0,32)),t.s=m(n.slice(32,64))):65===n.length?(t.r=m(n.slice(0,32)),t.s=m(n.slice(32,64)),t.v=n[64]):r.throwArgumentError("invalid signature string","signature",e),t.v<27&&(0===t.v||1===t.v?t.v+=27:r.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(n[32]|=128),t._vs=m(n.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var i=d(c(t._vs),32);t._vs=m(i);var o=i[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=o:t.recoveryParam!==o&&r.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),i[0]&=127;var s=m(i);null==t.s?t.s=s:t.s!==s&&r.throwArgumentError("signature v mismatch _vs","signature",e)}if(null==t.recoveryParam)null==t.v?r.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2;else if(null==t.v)t.v=27+t.recoveryParam;else{var u=0===t.v||1===t.v?t.v:1-t.v%2;t.recoveryParam!==u&&r.throwArgumentError("signature recoveryParam mismatch v","signature",e)}null!=t.r&&p(t.r)?t.r=x(t.r,32):r.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&p(t.s)?t.s=x(t.s,32):r.throwArgumentError("signature missing or invalid s","signature",e);var l=c(t.s);l[0]>=128&&r.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(l[0]|=128);var f=m(l);t._vs&&(p(t._vs)||r.throwArgumentError("signature invalid _vs","signature",e),t._vs=x(t._vs,32)),null==t._vs?t._vs=f:t._vs!==f&&r.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t.yParityAndS=t._vs,t.compact=t.r+t.yParityAndS.substring(2),t}function k(e){return m(l([(e=A(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},63336:function(e,t,n){"use strict";n.d(t,{d:function(){return r}});var r="0x0000000000000000000000000000000000000000"},77717:function(e,t,n){"use strict";n.d(t,{$B:function(){return l},Bz:function(){return c},Ce:function(){return u},PS:function(){return f},Py:function(){return s},_Y:function(){return o},fh:function(){return a},tL:function(){return i}});var r=n(42322),i=r.O$.from(-1),o=r.O$.from(0),a=r.O$.from(1),s=r.O$.from(2),u=r.O$.from("1000000000000000000"),c=r.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),l=r.O$.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),f=r.O$.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff")},72986:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r="0x0000000000000000000000000000000000000000000000000000000000000000"},41559:function(e,t,n){"use strict";n.r(t),n.d(t,{AddressZero:function(){return r.d},EtherSymbol:function(){return a},HashZero:function(){return o.R},MaxInt256:function(){return i.PS},MaxUint256:function(){return i.Bz},MinInt256:function(){return i.$B},NegativeOne:function(){return i.tL},One:function(){return i.fh},Two:function(){return i.Py},WeiPerEther:function(){return i.Ce},Zero:function(){return i._Y}});var r=n(63336),i=n(77717),o=n(72986),a="\u039e"},6751:function(e,t,n){"use strict";n.d(t,{VZ:function(){return F},CH:function(){return D},lV:function(){return L}});var r=n(74708),i=n(93173),o=n(69803),a=n(2312),s=n(82248),u=n(8416),c=n(8821),l=n(85169),f=n(46999),d=n(54773),p=n(92388),h=n(22090),m=n(50162),y=n(27255),v=n(42322),g=n(64369),b=n(63274),w=n(66522),x=n(56919),A=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},k=new x.Logger("contracts/5.7.0"),E={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0,customData:!0,ccipReadEnabled:!0};function T(e,t){return A(this,void 0,void 0,(0,f.Z)().mark((function n(){var r,i;return(0,f.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t;case 2:return"string"!==typeof(r=n.sent)&&k.throwArgumentError("invalid address or ENS name","name",r),n.prev=4,n.abrupt("return",(0,y.getAddress)(r));case 8:n.prev=8,n.t0=n.catch(4);case 10:return e||k.throwError("a provider or signer is needed to resolve ENS names",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),n.next=13,e.resolveName(r);case 13:return null==(i=n.sent)&&k.throwArgumentError("resolver or addr is not configured for ENS name","name",r),n.abrupt("return",i);case 16:case"end":return n.stop()}}),n,null,[[4,8]])})))}function _(e,t,n){return A(this,void 0,void 0,(0,f.Z)().mark((function r(){return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!Array.isArray(n)){r.next=4;break}return r.next=3,Promise.all(n.map((function(n,r){return _(e,Array.isArray(t)?t[r]:t[n.name],n)})));case 3:case 7:case 11:case 17:return r.abrupt("return",r.sent);case 4:if("address"!==n.type){r.next=8;break}return r.next=7,T(e,t);case 8:if("tuple"!==n.type){r.next=12;break}return r.next=11,_(e,t,n.components);case 12:if("array"!==n.baseType){r.next=18;break}if(Array.isArray(t)){r.next=15;break}return r.abrupt("return",Promise.reject(k.makeError("invalid value for array",x.Logger.errors.INVALID_ARGUMENT,{argument:"value",value:t})));case 15:return r.next=17,Promise.all(t.map((function(t){return _(e,t,n.arrayChildren)})));case 18:return r.abrupt("return",t);case 19:case"end":return r.stop()}}),r)})))}function S(e,t,n){return A(this,void 0,void 0,(0,f.Z)().mark((function r(){var i,o,a,s,u,c,l,d,p,h,m=this;return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i={},n.length===t.inputs.length+1&&"object"===typeof n[n.length-1]&&(i=(0,b.shallowCopy)(n.pop())),k.checkArgumentCount(n.length,t.inputs.length,"passed to contract"),e.signer?i.from?i.from=(0,b.resolveProperties)({override:T(e.signer,i.from),signer:e.signer.getAddress()}).then((function(e){return A(m,void 0,void 0,(0,f.Z)().mark((function t(){return(0,f.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,y.getAddress)(e.signer)!==e.override&&k.throwError("Contract with a Signer cannot override from",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):i.from=e.signer.getAddress():i.from&&(i.from=T(e.provider,i.from)),r.next=6,(0,b.resolveProperties)({args:_(e.signer||e.provider,n,t.inputs),address:e.resolvedAddress,overrides:(0,b.resolveProperties)(i)||{}});case 6:if(o=r.sent,a=e.interface.encodeFunctionData(t,o.args),s={data:a,to:o.address},null!=(u=o.overrides).nonce&&(s.nonce=v.O$.from(u.nonce).toNumber()),null!=u.gasLimit&&(s.gasLimit=v.O$.from(u.gasLimit)),null!=u.gasPrice&&(s.gasPrice=v.O$.from(u.gasPrice)),null!=u.maxFeePerGas&&(s.maxFeePerGas=v.O$.from(u.maxFeePerGas)),null!=u.maxPriorityFeePerGas&&(s.maxPriorityFeePerGas=v.O$.from(u.maxPriorityFeePerGas)),null!=u.from&&(s.from=u.from),null!=u.type&&(s.type=u.type),null!=u.accessList&&(s.accessList=(0,w.accessListify)(u.accessList)),null==s.gasLimit&&null!=t.gas){for(c=21e3,l=(0,g.arrayify)(a),d=0;d<l.length;d++)c+=4,l[d]&&(c+=64);s.gasLimit=v.O$.from(t.gas).add(c)}return u.value&&((p=v.O$.from(u.value)).isZero()||t.payable||k.throwError("non-payable method cannot override value",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:i.value}),s.value=p),u.customData&&(s.customData=(0,b.shallowCopy)(u.customData)),u.ccipReadEnabled&&(s.ccipReadEnabled=!!u.ccipReadEnabled),delete i.nonce,delete i.gasLimit,delete i.gasPrice,delete i.from,delete i.value,delete i.type,delete i.accessList,delete i.maxFeePerGas,delete i.maxPriorityFeePerGas,delete i.customData,delete i.ccipReadEnabled,(h=Object.keys(i).filter((function(e){return null!=i[e]}))).length&&k.throwError("cannot override ".concat(h.map((function(e){return JSON.stringify(e)})).join(",")),x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:h}),r.abrupt("return",s);case 36:case"end":return r.stop()}}),r)})))}function C(e,t){var n=t.wait.bind(t);t.wait=function(t){return n(t).then((function(t){return t.events=t.logs.map((function(n){var r=(0,b.deepCopy)(n),i=null;try{i=e.interface.parseLog(n)}catch(o){}return i&&(r.args=i.args,r.decode=function(t,n){return e.interface.decodeEventLog(i.eventFragment,t,n)},r.event=i.name,r.eventSignature=i.signature),r.removeListener=function(){return e.provider},r.getBlock=function(){return e.provider.getBlock(t.blockHash)},r.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},r.getTransactionReceipt=function(){return Promise.resolve(t)},r})),t}))}}function I(e,t,n){var r=e.signer||e.provider;return function(){for(var i=arguments.length,o=new Array(i),a=0;a<i;a++)o[a]=arguments[a];return A(this,void 0,void 0,(0,f.Z)().mark((function i(){var a,s,u,c,l;return(0,f.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(a=void 0,o.length!==t.inputs.length+1||"object"!==typeof o[o.length-1]){i.next=9;break}if(null==(s=(0,b.shallowCopy)(o.pop())).blockTag){i.next=7;break}return i.next=6,s.blockTag;case 6:a=i.sent;case 7:delete s.blockTag,o.push(s);case 9:if(null==e.deployTransaction){i.next=12;break}return i.next=12,e._deployed(a);case 12:return i.next=14,S(e,t,o);case 14:return u=i.sent,i.next=17,r.call(u,a);case 17:return c=i.sent,i.prev=18,l=e.interface.decodeFunctionResult(t,c),n&&1===t.outputs.length&&(l=l[0]),i.abrupt("return",l);case 24:throw i.prev=24,i.t0=i.catch(18),i.t0.code===x.Logger.errors.CALL_EXCEPTION&&(i.t0.address=e.address,i.t0.args=o,i.t0.transaction=u),i.t0;case 28:case"end":return i.stop()}}),i,null,[[18,24]])})))}}function O(e,t,n){return t.constant?I(e,t,n):function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return A(this,void 0,void 0,(0,f.Z)().mark((function n(){var i,o;return(0,f.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.signer||k.throwError("sending a transaction requires a signer",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction){n.next=4;break}return n.next=4,e._deployed();case 4:return n.next=6,S(e,t,r);case 6:return i=n.sent,n.next=9,e.signer.sendTransaction(i);case 9:return o=n.sent,C(e,o),n.abrupt("return",o);case 12:case"end":return n.stop()}}),n)})))}}(e,t)}function P(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var R=function(){function e(t,n){(0,c.Z)(this,e),(0,b.defineReadOnly)(this,"tag",t),(0,b.defineReadOnly)(this,"filter",n),this._listeners=[]}return(0,l.Z)(e,[{key:"addListener",value:function(e,t){this._listeners.push({listener:e,once:t})}},{key:"removeListener",value:function(e){var t=!1;this._listeners=this._listeners.filter((function(n){return!(!t&&n.listener===e)||(t=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(e){return e.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(e){var t=this,n=this.listenerCount();return this._listeners=this._listeners.filter((function(n){var r=e.slice();return setTimeout((function(){n.listener.apply(t,r)}),0),!n.once})),n}},{key:"prepareEvent",value:function(e){}},{key:"getEmit",value:function(e){return[e]}}]),e}(),M=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,c.Z)(this,n),t.call(this,"error",null)}return(0,l.Z)(n)}(R),B=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e,r,o,a){var s;(0,c.Z)(this,n);var u={address:e},l=r.getEventTopic(o);return a?(l!==a[0]&&k.throwArgumentError("topic mismatch","topics",a),u.topics=a.slice()):u.topics=[l],s=t.call(this,P(u),u),(0,b.defineReadOnly)((0,i.Z)(s),"address",e),(0,b.defineReadOnly)((0,i.Z)(s),"interface",r),(0,b.defineReadOnly)((0,i.Z)(s),"fragment",o),s}return(0,l.Z)(n,[{key:"prepareEvent",value:function(e){var t=this;(0,o.Z)((0,a.Z)(n.prototype),"prepareEvent",this).call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(e,n){return t.interface.decodeEventLog(t.fragment,e,n)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(r){e.args=null,e.decodeError=r}}},{key:"getEmit",value:function(e){var t=(0,d.BR)(e.args);if(t.length)throw t[0].error;var n=(e.args||[]).slice();return n.push(e),n}}]),n}(R),N=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e,r){var o;return(0,c.Z)(this,n),o=t.call(this,"*",{address:e}),(0,b.defineReadOnly)((0,i.Z)(o),"address",e),(0,b.defineReadOnly)((0,i.Z)(o),"interface",r),o}return(0,l.Z)(n,[{key:"prepareEvent",value:function(e){var t=this;(0,o.Z)((0,a.Z)(n.prototype),"prepareEvent",this).call(this,e);try{var r=this.interface.parseLog(e);e.event=r.name,e.eventSignature=r.signature,e.decode=function(e,n){return t.interface.decodeEventLog(r.eventFragment,e,n)},e.args=r.args}catch(i){}}}]),n}(R),F=function(){function e(t,n,r){var i=this;(0,c.Z)(this,e),(0,b.defineReadOnly)(this,"interface",(0,b.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(n)),null==r?((0,b.defineReadOnly)(this,"provider",null),(0,b.defineReadOnly)(this,"signer",null)):m.E.isSigner(r)?((0,b.defineReadOnly)(this,"provider",r.provider||null),(0,b.defineReadOnly)(this,"signer",r)):h.zt.isProvider(r)?((0,b.defineReadOnly)(this,"provider",r),(0,b.defineReadOnly)(this,"signer",null)):k.throwArgumentError("invalid signer or provider","signerOrProvider",r),(0,b.defineReadOnly)(this,"callStatic",{}),(0,b.defineReadOnly)(this,"estimateGas",{}),(0,b.defineReadOnly)(this,"functions",{}),(0,b.defineReadOnly)(this,"populateTransaction",{}),(0,b.defineReadOnly)(this,"filters",{});var o={};if(Object.keys(this.interface.events).forEach((function(e){var t=i.interface.events[e];(0,b.defineReadOnly)(i.filters,e,(function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return{address:i.address,topics:i.interface.encodeFilterTopics(t,n)}})),o[t.name]||(o[t.name]=[]),o[t.name].push(e)})),Object.keys(o).forEach((function(e){var t=o[e];1===t.length?(0,b.defineReadOnly)(i.filters,e,i.filters[t[0]]):k.warn("Duplicate definition of ".concat(e," (").concat(t.join(", "),")"))})),(0,b.defineReadOnly)(this,"_runningEvents",{}),(0,b.defineReadOnly)(this,"_wrappedEmits",{}),null==t&&k.throwArgumentError("invalid contract address or ENS name","addressOrName",t),(0,b.defineReadOnly)(this,"address",t),this.provider)(0,b.defineReadOnly)(this,"resolvedAddress",T(this.provider,t));else try{(0,b.defineReadOnly)(this,"resolvedAddress",Promise.resolve((0,y.getAddress)(t)))}catch(u){k.throwError("provider is required to use ENS name as contract address",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((function(e){}));var a={},s={};Object.keys(this.interface.functions).forEach((function(e){var t=i.interface.functions[e];if(s[e])k.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{s[e]=!0;var n=t.name;a["%".concat(n)]||(a["%".concat(n)]=[]),a["%".concat(n)].push(e),null==i[e]&&(0,b.defineReadOnly)(i,e,O(i,t,!0)),null==i.functions[e]&&(0,b.defineReadOnly)(i.functions,e,O(i,t,!1)),null==i.callStatic[e]&&(0,b.defineReadOnly)(i.callStatic,e,I(i,t,!0)),null==i.populateTransaction[e]&&(0,b.defineReadOnly)(i.populateTransaction,e,function(e,t){return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return S(e,t,r)}}(i,t)),null==i.estimateGas[e]&&(0,b.defineReadOnly)(i.estimateGas,e,function(e,t){var n=e.signer||e.provider;return function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return A(this,void 0,void 0,(0,f.Z)().mark((function r(){var o;return(0,f.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n||k.throwError("estimate require a provider or signer",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),r.next=3,S(e,t,i);case 3:return o=r.sent,r.next=6,n.estimateGas(o);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r)})))}}(i,t))}})),Object.keys(a).forEach((function(e){var t=a[e];if(!(t.length>1)){e=e.substring(1);var n=t[0];try{null==i[e]&&(0,b.defineReadOnly)(i,e,i[n])}catch(r){}null==i.functions[e]&&(0,b.defineReadOnly)(i.functions,e,i.functions[n]),null==i.callStatic[e]&&(0,b.defineReadOnly)(i.callStatic,e,i.callStatic[n]),null==i.populateTransaction[e]&&(0,b.defineReadOnly)(i.populateTransaction,e,i.populateTransaction[n]),null==i.estimateGas[e]&&(0,b.defineReadOnly)(i.estimateGas,e,i.estimateGas[n])}}))}return(0,l.Z)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&k.throwError("contract not deployed",x.Logger.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||k.throwError("sending a transactions require a signer",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var n=(0,b.shallowCopy)(e||{});return["from","to"].forEach((function(e){null!=n[e]&&k.throwError("cannot override "+e,x.Logger.errors.UNSUPPORTED_OPERATION,{operation:e})})),n.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(n)}))}},{key:"connect",value:function(e){"string"===typeof e&&(e=new m.b(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&(0,b.defineReadOnly)(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new M);if("event"===e)return this._normalizeRunningEvent(new R("event",null));if("*"===e)return this._normalizeRunningEvent(new N(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new B(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var n=e.topics[0];if("string"!==typeof n)throw new Error("invalid topic");var r=this.interface.getEvent(n);return this._normalizeRunningEvent(new B(this.address,this.interface,r,e.topics))}catch(o){}var i={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new R(P(i),i))}return this._normalizeRunningEvent(new N(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,n){var r=this,i=(0,b.deepCopy)(t);return i.removeListener=function(){n&&(e.removeListener(n),r._checkRunningEvents(e))},i.getBlock=function(){return r.provider.getBlock(t.blockHash)},i.getTransaction=function(){return r.provider.getTransaction(t.transactionHash)},i.getTransactionReceipt=function(){return r.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(i),i}},{key:"_addEventListener",value:function(e,t,n){var i=this;if(this.provider||k.throwError("events require a provider or a signer with a provider",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,n),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var o=function(n){var o=i._wrapEvent(e,n,t);if(null==o.decodeError)try{var a=e.getEmit(o);i.emit.apply(i,[e.filter].concat((0,r.Z)(a)))}catch(s){o.decodeError=s.error}null!=e.filter&&i.emit("event",o),null!=o.decodeError&&i.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=o,null!=e.filter&&this.provider.on(e.filter,o)}}},{key:"queryFilter",value:function(e,t,n){var r=this,i=this._getRunningEvent(e),o=(0,b.shallowCopy)(i.filter);return"string"===typeof t&&(0,g.isHexString)(t,32)?(null!=n&&k.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),o.blockHash=t):(o.fromBlock=null!=t?t:0,o.toBlock=null!=n?n:"latest"),this.provider.getLogs(o).then((function(e){return e.map((function(e){return r._wrapEvent(i,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=t.run(r)>0;return this._checkRunningEvents(t),o}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,n){return e+t._runningEvents[n].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){if(!this.provider)return[];if(null==e){var t=[];for(var n in this._runningEvents)this._runningEvents[n].listeners().forEach((function(e){t.push(e)}));return t}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var n=this._runningEvents[t];n.removeAllListeners(),this._checkRunningEvents(n)}return this}var r=this._getRunningEvent(e);return r.removeAllListeners(),this._checkRunningEvents(r),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var n=this._getRunningEvent(e);return n.removeListener(t),this._checkRunningEvents(n),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return(0,y.getContractAddress)(e)}},{key:"getInterface",value:function(e){return p.vU.isInterface(e)?e:new p.vU(e)}},{key:"isIndexed",value:function(e){return p.Hk.isIndexed(e)}}]),e}(),D=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(){return(0,c.Z)(this,n),t.apply(this,arguments)}return(0,l.Z)(n)}(F),L=function(){function e(t,n,r){(0,c.Z)(this,e);var i=null;"0x"!==(i="string"===typeof n?n:(0,g.isBytes)(n)?(0,g.hexlify)(n):n&&"string"===typeof n.object?n.object:"!").substring(0,2)&&(i="0x"+i),(!(0,g.isHexString)(i)||i.length%2)&&k.throwArgumentError("invalid bytecode","bytecode",n),r&&!m.E.isSigner(r)&&k.throwArgumentError("invalid signer","signer",r),(0,b.defineReadOnly)(this,"bytecode",i),(0,b.defineReadOnly)(this,"interface",(0,b.getStatic)(this instanceof e?this.constructor:void 0,"getInterface")(t)),(0,b.defineReadOnly)(this,"signer",r||null)}return(0,l.Z)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===this.interface.deploy.inputs.length+1&&"object"===typeof n[n.length-1])for(var i in e=(0,b.shallowCopy)(n.pop()))if(!E[i])throw new Error("unknown transaction override "+i);(["data","from","to"].forEach((function(t){null!=e[t]&&k.throwError("cannot override "+t,x.Logger.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value)&&(v.O$.from(e.value).isZero()||this.interface.deploy.payable||k.throwError("non-payable constructor cannot override value",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value}));return k.checkArgumentCount(n.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=(0,g.hexlify)((0,g.concat)([this.bytecode,this.interface.encodeDeploy(n)])),e}},{key:"deploy",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return A(this,void 0,void 0,(0,f.Z)().mark((function e(){var n,i,o,a,s,u;return(0,f.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.length===this.interface.deploy.inputs.length+1&&(n=t.pop()),k.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.next=5,_(this.signer,t,this.interface.deploy.inputs);case 5:return(i=e.sent).push(n),o=this.getDeployTransaction.apply(this,(0,r.Z)(i)),e.next=10,this.signer.sendTransaction(o);case 10:return a=e.sent,s=(0,b.getStatic)(this.constructor,"getContractAddress")(a),C(u=(0,b.getStatic)(this.constructor,"getContract")(s,this.interface,this.signer),a),(0,b.defineReadOnly)(u,"deployTransaction",a),e.abrupt("return",u);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"attach",value:function(e){return this.constructor.getContract(e,this.interface,this.signer)}},{key:"connect",value:function(e){return new this.constructor(this.interface,this.bytecode,e)}}],[{key:"fromSolidity",value:function(e,t){null==e&&k.throwError("missing compiler output",x.Logger.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"===typeof e&&(e=JSON.parse(e));var n=e.abi,r=null;return e.bytecode?r=e.bytecode:e.evm&&e.evm.bytecode&&(r=e.evm.bytecode),new this(n,r,t)}},{key:"getInterface",value:function(e){return D.getInterface(e)}},{key:"getContractAddress",value:function(e){return(0,y.getContractAddress)(e)}},{key:"getContract",value:function(e,t,n){return new D(e,t,n)}}]),e}()},83721:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="hash/5.7.0"},75441:function(e,t,n){"use strict";n.d(t,{id:function(){return o}});var r=n(8082),i=n(25459);function o(e){return(0,r.keccak256)((0,i.Y0)(e))}},22728:function(e,t,n){"use strict";n.r(t),n.d(t,{_TypedDataEncoder:function(){return a.E},dnsEncode:function(){return i.Kn},ensNormalize:function(){return i.w3},hashMessage:function(){return o.r},id:function(){return r.id},isValidName:function(){return i.r1},messagePrefix:function(){return o.B},namehash:function(){return i.VM}});var r=n(75441),i=n(34913),o=n(28778),a=n(93139)},28778:function(e,t,n){"use strict";n.d(t,{B:function(){return a},r:function(){return s}});var r=n(64369),i=n(8082),o=n(25459),a="\x19Ethereum Signed Message:\n";function s(e){return"string"===typeof e&&(e=(0,o.Y0)(e)),(0,i.keccak256)((0,r.concat)([(0,o.Y0)(a),(0,o.Y0)(String(e.length)),e]))}},34913:function(e,t,n){"use strict";n.d(t,{Kn:function(){return L},w3:function(){return N},r1:function(){return F},VM:function(){return D}});var r=n(64369),i=n(25459),o=n(8082),a=n(56919),s=n(83721),u=n(74708),c=n(51212);function l(e,t){null==t&&(t=1);var n=[],r=n.forEach;return function e(t,i){r.call(t,(function(t){i>0&&Array.isArray(t)?e(t,i-1):n.push(t)}))}(e,t),n}function f(e){return function(e){var t=0;return function(){return e[t++]}}(function(e){var t=0;function n(){return e[t++]<<8|e[t++]}for(var r=n(),i=1,o=[0,1],a=1;a<r;a++)o.push(i+=n());var s=n(),u=t;t+=s;var c=0,l=0;function f(){return 0==c&&(l=l<<8|e[t++],c=8),l>>--c&1}for(var d=Math.pow(2,31),p=d>>>1,h=p>>1,m=d-1,y=0,v=0;v<31;v++)y=y<<1|f();for(var g=[],b=0,w=d;;){for(var x=Math.floor(((y-b+1)*i-1)/w),A=0,k=r;k-A>1;){var E=A+k>>>1;x<o[E]?k=E:A=E}if(0==A)break;g.push(A);for(var T=b+Math.floor(w*o[A]/i),_=b+Math.floor(w*o[A+1]/i)-1;0==((T^_)&p);)y=y<<1&m|f(),T=T<<1&m,_=_<<1&m|1;for(;T&~_&h;)y=y&p|y<<1&m>>>1|f(),T=T<<1^p,_=(_^p)<<1|p|1;b=T,w=1+_-T}var S=r-4;return g.map((function(t){switch(t-S){case 3:return S+65792+(e[u++]<<16|e[u++]<<8|e[u++]);case 2:return S+256+(e[u++]<<8|e[u++]);case 1:return S+e[u++];default:return t-1}}))}(e))}function d(e){return 1&e?~e>>1:e>>1}function p(e,t){for(var n=Array(e),r=0,i=-1;r<e;r++)n[r]=i+=1+t();return n}function h(e,t){for(var n=Array(e),r=0,i=0;r<e;r++)n[r]=i+=d(t());return n}function m(e,t){for(var n=p(e(),e),r=e(),i=p(r,e),o=function(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=1+t();return n}(r,e),a=0;a<r;a++)for(var s=0;s<o[a];s++)n.push(i[a]+s);return t?n.map((function(e){return t[e]})):n}function y(e,t,n){for(var r=Array(e).fill(void 0).map((function(){return[]})),i=0;i<t;i++)h(e,n).forEach((function(e,t){return r[t].push(e)}));return r}function v(e,t){var n=1+t(),r=t(),i=function(e){for(var t=[];;){var n=e();if(0==n)break;t.push(n)}return t}(t);return l(y(i.length,1+e,t).map((function(e,t){var o=e[0],a=e.slice(1);return Array(i[t]).fill(void 0).map((function(e,t){var i=t*r;return[o+t*n,a.map((function(e){return e+i}))]}))})))}function g(e,t){return y(1+t(),1+e,t).map((function(e){return[e[0],e.slice(1)]}))}var b=f((0,n(33432).J)("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABsZBTMNJipjOhc19gcIDR8bBwQHEggCWi6DIgLuAQYA+BAFCha3A5XiAEsqM7UFFgFLhAMjFTMYE1Klnw74nRVBG/ASCm0BYRN/BrsU3VoWy+S0vV8LQx+vN8gF2AC2AK5EAWwApgYDKmAAroQ0NDQ0AT+OCg7wAAIHRAbpNgVcBV0APTA5BfbPFgMLzcYL/QqqA82eBALKCjQCjqYCht0/k2+OAsXQAoP3ASTKDgDw6ACKAUYCMpIKJpRaAE4A5womABzZvs0REEKiACIQAd5QdAECAj4Ywg/wGqY2AVgAYADYvAoCGAEubA0gvAY2ALAAbpbvqpyEAGAEpgQAJgAG7gAgAEACmghUFwCqAMpAINQIwC4DthRAAPcycKgApoIdABwBfCisABoATwBqASIAvhnSBP8aH/ECeAKXAq40NjgDBTwFYQU6AXs3oABgAD4XNgmcCY1eCl5tIFZeUqGgyoNHABgAEQAaABNwWQAmABMATPMa3T34ADldyprmM1M2XociUQgLzvwAXT3xABgAEQAaABNwIGFAnADD8AAgAD4BBJWzaCcIAIEBFMAWwKoAAdq9BWAF5wLQpALEtQAKUSGkahR4GnJM+gsAwCgeFAiUAECQ0BQuL8AAIAAAADKeIheclvFqQAAETr4iAMxIARMgAMIoHhQIAn0E0pDQFC4HhznoAAAAIAI2C0/4lvFqQAAETgBJJwYCAy4ABgYAFAA8MBKYEH4eRhTkAjYeFcgACAYAeABsOqyQ5gRwDayqugEgaIIAtgoACgDmEABmBAWGme5OBJJA2m4cDeoAmITWAXwrMgOgAGwBCh6CBXYF1Tzg1wKAAFdiuABRAFwAXQBsAG8AdgBrAHYAbwCEAHEwfxQBVE5TEQADVFhTBwBDANILAqcCzgLTApQCrQL6vAAMAL8APLhNBKkE6glGKTAU4Dr4N2EYEwBCkABKk8rHAbYBmwIoAiU4Ajf/Aq4CowCAANIChzgaNBsCsTgeODcFXrgClQKdAqQBiQGYAqsCsjTsNHsfNPA0ixsAWTWiOAMFPDQSNCk2BDZHNow2TTZUNhk28Jk9VzI3QkEoAoICoQKwAqcAQAAxBV4FXbS9BW47YkIXP1ciUqs05DS/FwABUwJW11e6nHuYZmSh/RAYA8oMKvZ8KASoUAJYWAJ6ILAsAZSoqjpgA0ocBIhmDgDWAAawRDQoAAcuAj5iAHABZiR2AIgiHgCaAU68ACxuHAG0ygM8MiZIAlgBdF4GagJqAPZOHAMuBgoATkYAsABiAHgAMLoGDPj0HpKEBAAOJgAuALggTAHWAeAMEDbd20Uege0ADwAWADkAQgA9OHd+2MUQZBBhBgNNDkxxPxUQArEPqwvqERoM1irQ090ANK4H8ANYB/ADWANYB/AH8ANYB/ADWANYA1gDWBwP8B/YxRBkD00EcgWTBZAE2wiIJk4RhgctCNdUEnQjHEwDSgEBIypJITuYMxAlR0wRTQgIATZHbKx9PQNMMbBU+pCnA9AyVDlxBgMedhKlAC8PeCE1uk6DekxxpQpQT7NX9wBFBgASqwAS5gBJDSgAUCwGPQBI4zTYABNGAE2bAE3KAExdGABKaAbgAFBXAFCOAFBJABI2SWdObALDOq0//QomCZhvwHdTBkIQHCemEPgMNAG2ATwN7kvZBPIGPATKH34ZGg/OlZ0Ipi3eDO4m5C6igFsj9iqEBe5L9TzeC05RaQ9aC2YJ5DpkgU8DIgEOIowK3g06CG4Q9ArKbA3mEUYHOgPWSZsApgcCCxIdNhW2JhFirQsKOXgG/Br3C5AmsBMqev0F1BoiBk4BKhsAANAu6IWxWjJcHU9gBgQLJiPIFKlQIQ0mQLh4SRocBxYlqgKSQ3FKiFE3HpQh9zw+DWcuFFF9B/Y8BhlQC4I8n0asRQ8R0z6OPUkiSkwtBDaALDAnjAnQD4YMunxzAVoJIgmyDHITMhEYN8YIOgcaLpclJxYIIkaWYJsE+KAD9BPSAwwFQAlCBxQDthwuEy8VKgUOgSXYAvQ21i60ApBWgQEYBcwPJh/gEFFH4Q7qCJwCZgOEJewALhUiABginAhEZABgj9lTBi7MCMhqbSN1A2gU6GIRdAeSDlgHqBw0FcAc4nDJXgyGCSiksAlcAXYJmgFgBOQICjVcjKEgQmdUi1kYnCBiQUBd/QIyDGYVoES+h3kCjA9sEhwBNgF0BzoNAgJ4Ee4RbBCWCOyGBTW2M/k6JgRQIYQgEgooA1BszwsoJvoM+WoBpBJjAw00PnfvZ6xgtyUX/gcaMsZBYSHyC5NPzgydGsIYQ1QvGeUHwAP0GvQn60FYBgADpAQUOk4z7wS+C2oIjAlAAEoOpBgH2BhrCnKM0QEyjAG4mgNYkoQCcJAGOAcMAGgMiAV65gAeAqgIpAAGANADWAA6Aq4HngAaAIZCAT4DKDABIuYCkAOUCDLMAZYwAfQqBBzEDBYA+DhuSwLDsgKAa2ajBd5ZAo8CSjYBTiYEBk9IUgOwcuIA3ABMBhTgSAEWrEvMG+REAeBwLADIAPwABjYHBkIBzgH0bgC4AWALMgmjtLYBTuoqAIQAFmwB2AKKAN4ANgCA8gFUAE4FWvoF1AJQSgESMhksWGIBvAMgATQBDgB6BsyOpsoIIARuB9QCEBwV4gLvLwe2AgMi4BPOQsYCvd9WADIXUu5eZwqoCqdeaAC0YTQHMnM9UQAPH6k+yAdy/BZIiQImSwBQ5gBQQzSaNTFWSTYBpwGqKQK38AFtqwBI/wK37gK3rQK3sAK6280C0gK33AK3zxAAUEIAUD9SklKDArekArw5AEQAzAHCO147WTteO1k7XjtZO147WTteO1kDmChYI03AVU0oJqkKbV9GYewMpw3VRMk6ShPcYFJgMxPJLbgUwhXPJVcZPhq9JwYl5VUKDwUt1GYxCC00dhe9AEApaYNCY4ceMQpMHOhTklT5LRwAskujM7ANrRsWREEFSHXuYisWDwojAmSCAmJDXE6wXDchAqH4AmiZAmYKAp+FOBwMAmY8AmYnBG8EgAN/FAN+kzkHOXgYOYM6JCQCbB4CMjc4CwJtyAJtr/CLADRoRiwBaADfAOIASwYHmQyOAP8MwwAOtgJ3MAJ2o0ACeUxEAni7Hl3cRa9G9AJ8QAJ6yQJ9CgJ88UgBSH5kJQAsFklZSlwWGErNAtECAtDNSygDiFADh+dExpEzAvKiXQQDA69Lz0wuJgTQTU1NsAKLQAKK2cIcCB5EaAa4Ao44Ao5dQZiCAo7aAo5deVG1UzYLUtVUhgKT/AKTDQDqAB1VH1WwVdEHLBwplocy4nhnRTw6ApegAu+zWCKpAFomApaQApZ9nQCqWa1aCoJOADwClrYClk9cRVzSApnMApllXMtdCBoCnJw5wzqeApwXAp+cAp65iwAeEDIrEAKd8gKekwC2PmE1YfACntQCoG8BqgKeoCACnk+mY8lkKCYsAiewAiZ/AqD8AqBN2AKmMAKlzwKoAAB+AqfzaH1osgAESmodatICrOQCrK8CrWgCrQMCVx4CVd0CseLYAx9PbJgCsr4OArLpGGzhbWRtSWADJc4Ctl08QG6RAylGArhfArlIFgK5K3hwN3DiAr0aAy2zAzISAr6JcgMDM3ICvhtzI3NQAsPMAsMFc4N0TDZGdOEDPKgDPJsDPcACxX0CxkgCxhGKAshqUgLIRQLJUALJLwJkngLd03h6YniveSZL0QMYpGcDAmH1GfSVJXsMXpNevBICz2wCz20wTFTT9BSgAMeuAs90ASrrA04TfkwGAtwoAtuLAtJQA1JdA1NgAQIDVY2AikABzBfuYUZ2AILPg44C2sgC2d+EEYRKpz0DhqYAMANkD4ZyWvoAVgLfZgLeuXR4AuIw7RUB8zEoAfScAfLTiALr9ALpcXoAAur6AurlAPpIAboC7ooC652Wq5cEAu5AA4XhmHpw4XGiAvMEAGoDjheZlAL3FAORbwOSiAL3mQL52gL4Z5odmqy8OJsfA52EAv77ARwAOp8dn7QDBY4DpmsDptoA0sYDBmuhiaIGCgMMSgFgASACtgNGAJwEgLpoBgC8BGzAEowcggCEDC6kdjoAJAM0C5IKRoABZCgiAIzw3AYBLACkfng9ogigkgNmWAN6AEQCvrkEVqTGAwCsBRbAA+4iQkMCHR072jI2PTbUNsk2RjY5NvA23TZKNiU3EDcZN5I+RTxDRTBCJkK5VBYKFhZfwQCWygU3AJBRHpu+OytgNxa61A40GMsYjsn7BVwFXQVcBV0FaAVdBVwFXQVcBV0FXAVdBVwFXUsaCNyKAK4AAQUHBwKU7oICoW1e7jAEzgPxA+YDwgCkBFDAwADABKzAAOxFLhitA1UFTDeyPkM+bj51QkRCuwTQWWQ8X+0AWBYzsACNA8xwzAGm7EZ/QisoCTAbLDs6fnLfb8H2GccsbgFw13M1HAVkBW/Jxsm9CNRO8E8FDD0FBQw9FkcClOYCoMFegpDfADgcMiA2AJQACB8AsigKAIzIEAJKeBIApY5yPZQIAKQiHb4fvj5BKSRPQrZCOz0oXyxgOywfKAnGbgMClQaCAkILXgdeCD9IIGUgQj5fPoY+dT52Ao5CM0dAX9BTVG9SDzFwWTQAbxBzJF/lOEIQQglCCkKJIAls5AcClQICoKPMODEFxhi6KSAbiyfIRrMjtCgdWCAkPlFBIitCsEJRzAbMAV/OEyQzDg0OAQQEJ36i328/Mk9AybDJsQlq3tDRApUKAkFzXf1d/j9uALYP6hCoFgCTGD8kPsFKQiobrm0+zj0KSD8kPnVCRBwMDyJRTHFgMTJa5rwXQiQ2YfI/JD7BMEJEHGINTw4TOFlIRzwJO0icMQpyPyQ+wzJCRBv6DVgnKB01NgUKj2bwYzMqCoBkznBgEF+zYDIocwRIX+NgHj4HICNfh2C4CwdwFWpTG/lgUhYGAwRfv2Ts8mAaXzVgml/XYIJfuWC4HI1gUF9pYJZgMR6ilQHMAOwLAlDRefC0in4AXAEJA6PjCwc0IamOANMMCAECRQDFNRTZBgd+CwQlRA+r6+gLBDEFBnwUBXgKATIArwAGRAAHA3cDdAN2A3kDdwN9A3oDdQN7A30DfAN4A3oDfQAYEAAlAtYASwMAUAFsAHcKAHcAmgB3AHUAdQB2AHVu8UgAygDAAHcAdQB1AHYAdQALCgB3AAsAmgB3AAsCOwB3AAtu8UgAygDAAHgKAJoAdwB3AHUAdQB2AHUAeAB1AHUAdgB1bvFIAMoAwAALCgCaAHcACwB3AAsCOwB3AAtu8UgAygDAAH4ACwGgALcBpwC6AahdAu0COwLtbvFIAMoAwAALCgCaAu0ACwLtAAsCOwLtAAtu8UgAygDAA24ACwNvAAu0VsQAAzsAABCkjUIpAAsAUIusOggWcgMeBxVsGwL67U/2HlzmWOEeOgALASvuAAseAfpKUpnpGgYJDCIZM6YyARUE9ThqAD5iXQgnAJYJPnOzw0ZAEZxEKsIAkA4DhAHnTAIDxxUDK0lxCQlPYgIvIQVYJQBVqE1GakUAKGYiDToSBA1EtAYAXQJYAIF8GgMHRyAAIAjOe9YncekRAA0KACUrjwE7Ayc6AAYWAqaiKG4McEcqANoN3+Mg9TwCBhIkuCny+JwUQ29L008JluRxu3K+oAdqiHOqFH0AG5SUIfUJ5SxCGfxdipRzqTmT4V5Zb+r1Uo4Vm+NqSSEl2mNvR2JhIa8SpYO6ntdwFXHCWTCK8f2+Hxo7uiG3drDycAuKIMP5bhi06ACnqArH1rz4Rqg//lm6SgJGEVbF9xJHISaR6HxqxSnkw6shDnelHKNEfGUXSJRJ1GcsmtJw25xrZMDK9gXSm1/YMkdX4/6NKYOdtk/NQ3/NnDASjTc3fPjIjW/5sVfVObX2oTDWkr1dF9f3kxBsD3/3aQO8hPfRz+e0uEiJqt1161griu7gz8hDDwtpy+F+BWtefnKHZPAxcZoWbnznhJpy0e842j36bcNzGnIEusgGX0a8ZxsnjcSsPDZ09yZ36fCQbriHeQ72JRMILNl6ePPf2HWoVwgWAm1fb3V2sAY0+B6rAXqSwPBgseVmoqsBTSrm91+XasMYYySI8eeRxH3ZvHkMz3BQ5aJ3iUVbYPNM3/7emRtjlsMgv/9VyTsyt/mK+8fgWeT6SoFaclXqn42dAIsvAarF5vNNWHzKSkKQ/8Hfk5ZWK7r9yliOsooyBjRhfkHP4Q2DkWXQi6FG/9r/IwbmkV5T7JSopHKn1pJwm9tb5Ot0oyN1Z2mPpKXHTxx2nlK08fKk1hEYA8WgVVWL5lgx0iTv+KdojJeU23ZDjmiubXOxVXJKKi2Wjuh2HLZOFLiSC7Tls5SMh4f+Pj6xUSrNjFqLGehRNB8lC0QSLNmkJJx/wSG3MnjE9T1CkPwJI0wH2lfzwETIiVqUxg0dfu5q39Gt+hwdcxkhhNvQ4TyrBceof3Mhs/IxFci1HmHr4FMZgXEEczPiGCx0HRwzAqDq2j9AVm1kwN0mRVLWLylgtoPNapF5cY4Y1wJh/e0BBwZj44YgZrDNqvD/9Hv7GFYdUQeDJuQ3EWI4HaKqavU1XjC/n41kT4L79kqGq0kLhdTZvgP3TA3fS0ozVz+5piZsoOtIvBUFoMKbNcmBL6YxxaUAusHB38XrS8dQMnQwJfUUkpRoGr5AUeWicvBTzyK9g77+yCkf5PAysL7r/JjcZgrbvRpMW9iyaxZvKO6ceZN2EwIxKwVFPuvFuiEPGCoagbMo+SpydLrXqBzNCDGFCrO/rkcwa2xhokQZ5CdZ0AsU3JfSqJ6n5I14YA+P/uAgfhPU84Tlw7cEFfp7AEE8ey4sP12PTt4Cods1GRgDOB5xvyiR5m+Bx8O5nBCNctU8BevfV5A08x6RHd5jcwPTMDSZJOedIZ1cGQ704lxbAzqZOP05ZxaOghzSdvFBHYqomATARyAADK4elP8Ly3IrUZKfWh23Xy20uBUmLS4Pfagu9+oyVa2iPgqRP3F2CTUsvJ7+RYnN8fFZbU/HVvxvcFFDKkiTqV5UBZ3Gz54JAKByi9hkKMZJvuGgcSYXFmw08UyoQyVdfTD1/dMkCHXcTGAKeROgArsvmRrQTLUOXioOHGK2QkjHuoYFgXciZoTJd6Fs5q1QX1G+p/e26hYsEf7QZD1nnIyl/SFkNtYYmmBhpBrxl9WbY0YpHWRuw2Ll/tj9mD8P4snVzJl4F9J+1arVeTb9E5r2ILH04qStjxQNwn3m4YNqxmaNbLAqW2TN6LidwuJRqS+NXbtqxoeDXpxeGWmxzSkWxjkyCkX4NQRme6q5SAcC+M7+9ETfA/EwrzQajKakCwYyeunP6ZFlxU2oMEn1Pz31zeStW74G406ZJFCl1wAXIoUKkWotYEpOuXB1uVNxJ63dpJEqfxBeptwIHNrPz8BllZoIcBoXwgfJ+8VAUnVPvRvexnw0Ma/WiGYuJO5y8QTvEYBigFmhUxY5RqzE8OcywN/8m4UYrlaniJO75XQ6KSo9+tWHlu+hMi0UVdiKQp7NelnoZUzNaIyBPVeOwK6GNp+FfHuPOoyhaWuNvTYFkvxscMQWDh+zeFCFkgwbXftiV23ywJ4+uwRqmg9k3KzwIQpzppt8DBBOMbrqwQM5Gb05sEwdKzMiAqOloaA/lr0KA+1pr0/+HiWoiIjHA/wir2nIuS3PeU/ji3O6ZwoxcR1SZ9FhtLC5S0FIzFhbBWcGVP/KpxOPSiUoAdWUpqKH++6Scz507iCcxYI6rdMBICPJZea7OcmeFw5mObJSiqpjg2UoWNIs+cFhyDSt6geV5qgi3FunmwwDoGSMgerFOZGX1m0dMCYo5XOruxO063dwENK9DbnVM9wYFREzh4vyU1WYYJ/LRRp6oxgjqP/X5a8/4Af6p6NWkQferzBmXme0zY/4nwMJm/wd1tIqSwGz+E3xPEAOoZlJit3XddD7/BT1pllzOx+8bmQtANQ/S6fZexc6qi3W+Q2xcmXTUhuS5mpHQRvcxZUN0S5+PL9lXWUAaRZhEH8hTdAcuNMMCuVNKTEGtSUKNi3O6KhSaTzck8csZ2vWRZ+d7mW8c4IKwXIYd25S/zIftPkwPzufjEvOHWVD1m+FjpDVUTV0DGDuHj6QnaEwLu/dEgdLQOg9E1Sro9XHJ8ykLAwtPu+pxqKDuFexqON1sKQm7rwbE1E68UCfA/erovrTCG+DBSNg0l4goDQvZN6uNlbyLpcZAwj2UclycvLpIZMgv4yRlpb3YuMftozorbcGVHt/VeDV3+Fdf1TP0iuaCsPi2G4XeGhsyF1ubVDxkoJhmniQ0/jSg/eYML9KLfnCFgISWkp91eauR3IQvED0nAPXK+6hPCYs+n3+hCZbiskmVMG2da+0EsZPonUeIY8EbfusQXjsK/eFDaosbPjEfQS0RKG7yj5GG69M7MeO1HmiUYocgygJHL6M1qzUDDwUSmr99V7Sdr2F3JjQAJY+F0yH33Iv3+C9M38eML7gTgmNu/r2bUMiPvpYbZ6v1/IaESirBHNa7mPKn4dEmYg7v/+HQgPN1G79jBQ1+soydfDC2r+h2Bl/KIc5KjMK7OH6nb1jLsNf0EHVe2KBiE51ox636uyG6Lho0t3J34L5QY/ilE3mikaF4HKXG1mG1rCevT1Vv6GavltxoQe/bMrpZvRggnBxSEPEeEzkEdOxTnPXHVjUYdw8JYvjB/o7Eegc3Ma+NUxLLnsK0kJlinPmUHzHGtrk5+CAbVzFOBqpyy3QVUnzTDfC/0XD94/okH+OB+i7g9lolhWIjSnfIb+Eq43ZXOWmwvjyV/qqD+t0e+7mTEM74qP/Ozt8nmC7mRpyu63OB4KnUzFc074SqoyPUAgM+/TJGFo6T44EHnQU4X4z6qannVqgw/U7zCpwcmXV1AubIrvOmkKHazJAR55ePjp5tLBsN8vAqs3NAHdcEHOR2xQ0lsNAFzSUuxFQCFYvXLZJdOj9p4fNq6p0HBGUik2YzaI4xySy91KzhQ0+q1hjxvImRwPRf76tChlRkhRCi74NXZ9qUNeIwP+s5p+3m5nwPdNOHgSLD79n7O9m1n1uDHiMntq4nkYwV5OZ1ENbXxFd4PgrlvavZsyUO4MqYlqqn1O8W/I1dEZq5dXhrbETLaZIbC2Kj/Aa/QM+fqUOHdf0tXAQ1huZ3cmWECWSXy/43j35+Mvq9xws7JKseriZ1pEWKc8qlzNrGPUGcVgOa9cPJYIJsGnJTAUsEcDOEVULO5x0rXBijc1lgXEzQQKhROf8zIV82w8eswc78YX11KYLWQRcgHNJElBxfXr72lS2RBSl07qTKorO2uUDZr3sFhYsvnhLZn0A94KRzJ/7DEGIAhW5ZWFpL8gEwu1aLA9MuWZzNwl8Oze9Y+bX+v9gywRVnoB5I/8kXTXU3141yRLYrIOOz6SOnyHNy4SieqzkBXharjfjqq1q6tklaEbA8Qfm2DaIPs7OTq/nvJBjKfO2H9bH2cCMh1+5gspfycu8f/cuuRmtDjyqZ7uCIMyjdV3a+p3fqmXsRx4C8lujezIFHnQiVTXLXuI1XrwN3+siYYj2HHTvESUx8DlOTXpak9qFRK+L3mgJ1WsD7F4cu1aJoFoYQnu+wGDMOjJM3kiBQWHCcvhJ/HRdxodOQp45YZaOTA22Nb4XKCVxqkbwMYFhzYQYIAnCW8FW14uf98jhUG2zrKhQQ0q0CEq0t5nXyvUyvR8DvD69LU+g3i+HFWQMQ8PqZuHD+sNKAV0+M6EJC0szq7rEr7B5bQ8BcNHzvDMc9eqB5ZCQdTf80Obn4uzjwpYU7SISdtV0QGa9D3Wrh2BDQtpBKxaNFV+/Cy2P/Sv+8s7Ud0Fd74X4+o/TNztWgETUapy+majNQ68Lq3ee0ZO48VEbTZYiH1Co4OlfWef82RWeyUXo7woM03PyapGfikTnQinoNq5z5veLpeMV3HCAMTaZmA1oGLAn7XS3XYsz+XK7VMQsc4XKrmDXOLU/pSXVNUq8dIqTba///3x6LiLS6xs1xuCAYSfcQ3+rQgmu7uvf3THKt5Ooo97TqcbRqxx7EASizaQCBQllG/rYxVapMLgtLbZS64w1MDBMXX+PQpBKNwqUKOf2DDRDUXQf9EhOS0Qj4nTmlA8dzSLz/G1d+Ud8MTy/6ghhdiLpeerGY/UlDOfiuqFsMUU5/UYlP+BAmgRLuNpvrUaLlVkrqDievNVEAwF+4CoM1MZTmjxjJMsKJq+u8Zd7tNCUFy6LiyYXRJQ4VyvEQFFaCGKsxIwQkk7EzZ6LTJq2hUuPhvAW+gQnSG6J+MszC+7QCRHcnqDdyNRJ6T9xyS87A6MDutbzKGvGktpbXqtzWtXb9HsfK2cBMomjN9a4y+TaJLnXxAeX/HWzmf4cR4vALt/P4w4qgKY04ml4ZdLOinFYS6cup3G/1ie4+t1eOnpBNlqGqs75ilzkT4+DsZQxNvaSKJ//6zIbbk/M7LOhFmRc/1R+kBtz7JFGdZm/COotIdvQoXpTqP/1uqEUmCb/QWoGLMwO5ANcHzxdY48IGP5+J+zKOTBFZ4Pid+GTM+Wq12MV/H86xEJptBa6T+p3kgpwLedManBHC2GgNrFpoN2xnrMz9WFWX/8/ygSBkavq2Uv7FdCsLEYLu9LLIvAU0bNRDtzYl+/vXmjpIvuJFYjmI0im6QEYqnIeMsNjXG4vIutIGHijeAG/9EDBozKV5cldkHbLxHh25vT+ZEzbhXlqvpzKJwcEgfNwLAKFeo0/pvEE10XDB+EXRTXtSzJozQKFFAJhMxYkVaCW+E9AL7tMeU8acxidHqzb6lX4691UsDpy/LLRmT+epgW56+5Cw8tB4kMUv6s9lh3eRKbyGs+H/4mQMaYzPTf2OOdokEn+zzgvoD3FqNKk8QqGAXVsqcGdXrT62fSPkR2vROFi68A6se86UxRUk4cajfPyCC4G5wDhD+zNq4jodQ4u4n/m37Lr36n4LIAAsVr02dFi9AiwA81MYs2rm4eDlDNmdMRvEKRHfBwW5DdMNp0jPFZMeARqF/wL4XBfd+EMLBfMzpH5GH6NaW+1vrvMdg+VxDzatk3MXgO3ro3P/DpcC6+Mo4MySJhKJhSR01SGGGp5hPWmrrUgrv3lDnP+HhcI3nt3YqBoVAVTBAQT5iuhTg8nvPtd8ZeYj6w1x6RqGUBrSku7+N1+BaasZvjTk64RoIDlL8brpEcJx3OmY7jLoZsswdtmhfC/G21llXhITOwmvRDDeTTPbyASOa16cF5/A1fZAidJpqju3wYAy9avPR1ya6eNp9K8XYrrtuxlqi+bDKwlfrYdR0RRiKRVTLOH85+ZY7XSmzRpfZBJjaTa81VDcJHpZnZnSQLASGYW9l51ZV/h7eVzTi3Hv6hUsgc/51AqJRTkpbFVLXXszoBL8nBX0u/0jBLT8nH+fJePbrwURT58OY+UieRjd1vs04w0VG5VN2U6MoGZkQzKN/ptz0Q366dxoTGmj7i1NQGHi9GgnquXFYdrCfZBmeb7s0T6yrdlZH5cZuwHFyIJ/kAtGsTg0xH5taAAq44BAk1CPk9KVVbqQzrCUiFdF/6gtlPQ8bHHc1G1W92MXGZ5HEHftyLYs8mbD/9xYRUWkHmlM0zC2ilJlnNgV4bfALpQghxOUoZL7VTqtCHIaQSXm+YUMnpkXybnV+A6xlm2CVy8fn0Xlm2XRa0+zzOa21JWWmixfiPMSCZ7qA4rS93VN3pkpF1s5TonQjisHf7iU9ZGvUPOAKZcR1pbeVf/Ul7OhepGCaId9wOtqo7pJ7yLcBZ0pFkOF28y4zEI/kcUNmutBHaQpBdNM8vjCS6HZRokkeo88TBAjGyG7SR+6vUgTcyK9Imalj0kuxz0wmK+byQU11AiJFk/ya5dNduRClcnU64yGu/ieWSeOos1t3ep+RPIWQ2pyTYVbZltTbsb7NiwSi3AV+8KLWk7LxCnfZUetEM8ThnsSoGH38/nyAwFguJp8FjvlHtcWZuU4hPva0rHfr0UhOOJ/F6vS62FW7KzkmRll2HEc7oUq4fyi5T70Vl7YVIfsPHUCdHesf9Lk7WNVWO75JDkYbMI8TOW8JKVtLY9d6UJRITO8oKo0xS+o99Yy04iniGHAaGj88kEWgwv0OrHdY/nr76DOGNS59hXCGXzTKUvDl9iKpLSWYN1lxIeyywdNpTkhay74w2jFT6NS8qkjo5CxA1yfSYwp6AJIZNKIeEK5PJAW7ORgWgwp0VgzYpqovMrWxbu+DGZ6Lhie1RAqpzm8VUzKJOH3mCzWuTOLsN3VT/dv2eeYe9UjbR8YTBsLz7q60VN1sU51k+um1f8JxD5pPhbhSC8rRaB454tmh6YUWrJI3+GWY0qeWioj/tbkYITOkJaeuGt4JrJvHA+l0Gu7kY7XOaa05alMnRWVCXqFgLIwSY4uF59Ue5SU4QKuc/HamDxbr0x6csCetXGoP7Qn1Bk/J9DsynO/UD6iZ1Hyrz+jit0hDCwi/E9OjgKTbB3ZQKQ/0ZOvevfNHG0NK4Aj3Cp7NpRk07RT1i/S0EL93Ag8GRgKI9CfpajKyK6+Jj/PI1KO5/85VAwz2AwzP8FTBb075IxCXv6T9RVvWT2tUaqxDS92zrGUbWzUYk9mSs82pECH+fkqsDt93VW++4YsR/dHCYcQSYTO/KaBMDj9LSD/J/+z20Kq8XvZUAIHtm9hRPP3ItbuAu2Hm5lkPs92pd7kCxgRs0xOVBnZ13ccdA0aunrwv9SdqElJRC3g+oCu+nXyCgmXUs9yMjTMAIHfxZV+aPKcZeUBWt057Xo85Ks1Ir5gzEHCWqZEhrLZMuF11ziGtFQUds/EESajhagzcKsxamcSZxGth4UII+adPhQkUnx2WyN+4YWR+r3f8MnkyGFuR4zjzxJS8WsQYR5PTyRaD9ixa6Mh741nBHbzfjXHskGDq179xaRNrCIB1z1xRfWfjqw2pHc1zk9xlPpL8sQWAIuETZZhbnmL54rceXVNRvUiKrrqIkeogsl0XXb17ylNb0f4GA9Wd44vffEG8FSZGHEL2fbaTGRcSiCeA8PmA/f6Hz8HCS76fXUHwgwkzSwlI71ekZ7Fapmlk/KC+Hs8hUcw3N2LN5LhkVYyizYFl/uPeVP5lsoJHhhfWvvSWruCUW1ZcJOeuTbrDgywJ/qG07gZJplnTvLcYdNaH0KMYOYMGX+rB4NGPFmQsNaIwlWrfCezxre8zXBrsMT+edVLbLqN1BqB76JH4BvZTqUIMfGwPGEn+EnmTV86fPBaYbFL3DFEhjB45CewkXEAtJxk4/Ms2pPXnaRqdky0HOYdcUcE2zcXq4vaIvW2/v0nHFJH2XXe22ueDmq/18XGtELSq85j9X8q0tcNSSKJIX8FTuJF/Pf8j5PhqG2u+osvsLxYrvvfeVJL+4tkcXcr9JV7v0ERmj/X6fM3NC4j6dS1+9Umr2oPavqiAydTZPLMNRGY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),w=new Set(m(b)),x=new Set(m(b)),A=function(e){for(var t=[];;){var n=e();if(0==n)break;t.push(v(n,e))}for(;;){var r=e()-1;if(r<0)break;t.push(g(r,e))}return function(e){for(var t={},n=0;n<e.length;n++){var r=e[n];t[r[0]]=r[1]}return t}(l(t))}(b),k=function(e){var t=m(e).sort((function(e,t){return e-t}));return function n(){var r=[];for(;;){var i=m(e,t);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort((function(e,t){return t.set.size-e.set.size}));var o=e();return{branches:r,valid:o%3,fe0f:!!(1&(o=o/3|0)),save:1==(o>>=1),check:2==o}}()}(b),E=45,T=95;function _(e){return(0,i.XL)(e)}function S(e){return e.filter((function(e){return 65039!=e}))}function C(e){var t,n=(0,c.Z)(e.split("."));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=_(r);try{for(var o=i.lastIndexOf(T)-1;o>=0;o--)if(i[o]!==T)throw new Error("underscore only allowed at start");if(i.length>=4&&i.every((function(e){return e<128}))&&i[2]===E&&i[3]===E)throw new Error("invalid label extension")}catch(a){throw new Error('Invalid label "'.concat(r,'": ').concat(a.message))}}}catch(a){n.e(a)}finally{n.f()}return e}function I(e){return C(function(e,t){var n=_(e).reverse(),r=[];for(;n.length;){var i=O(n);if(i)r.push.apply(r,(0,u.Z)(t(i)));else{var o=n.pop();if(w.has(o))r.push(o);else if(!x.has(o)){var a=A[o];if(!a)throw new Error("Disallowed codepoint: 0x".concat(o.toString(16).toUpperCase()));r.push.apply(r,(0,u.Z)(a))}}}return C((s=String.fromCodePoint.apply(String,r),s.normalize("NFC")));var s}(e,S))}function O(e,t){var n,r,i,o=k,a=[],s=e.length;t&&(t.length=0);for(var c=function(){var c=e[--s];if(!(o=null===(n=o.branches.find((function(e){return e.set.has(c)})))||void 0===n?void 0:n.node))return"break";if(o.save)i=c;else if(o.check&&c===i)return"break";a.push(c),o.fe0f&&(a.push(65039),s>0&&65039==e[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),t&&t.push.apply(t,(0,u.Z)(e.slice(s).reverse())),e.length=s)};s;){if("break"===c())break}return r}var P=new a.Logger(s.i),R=new Uint8Array(32);function M(e){if(0===e.length)throw new Error("invalid ENS name; empty component");return e}function B(e){var t=(0,i.Y0)(I(e)),n=[];if(0===e.length)return n;for(var r=0,o=0;o<t.length;o++){46===t[o]&&(n.push(M(t.slice(r,o))),r=o+1)}if(r>=t.length)throw new Error("invalid ENS name; empty component");return n.push(M(t.slice(r))),n}function N(e){return B(e).map((function(e){return(0,i.ZN)(e)})).join(".")}function F(e){try{return 0!==B(e).length}catch(t){}return!1}function D(e){"string"!==typeof e&&P.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=R,n=B(e);n.length;)t=(0,o.keccak256)((0,r.concat)([t,(0,o.keccak256)(n.pop())]));return(0,r.hexlify)(t)}function L(e){return(0,r.hexlify)((0,r.concat)(B(e).map((function(e){if(e.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");var t=new Uint8Array(e.length+1);return t.set(e,1),t[0]=t.length-1,t}))))+"00"}R.fill(0)},93139:function(e,t,n){"use strict";n.d(t,{E:function(){return I}});var r=n(46999),i=n(8821),o=n(85169),a=n(27255),s=n(42322),u=n(64369),c=n(8082),l=n(63274),f=n(56919),d=n(83721),p=n(75441),h=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},m=new f.Logger(d.i),y=new Uint8Array(32);y.fill(0);var v=s.O$.from(-1),g=s.O$.from(0),b=s.O$.from(1),w=s.O$.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var x=(0,u.hexZeroPad)(b.toHexString(),32),A=(0,u.hexZeroPad)(g.toHexString(),32),k={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},E=["name","version","chainId","verifyingContract","salt"];function T(e){return function(t){return"string"!==typeof t&&m.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var _={name:T("name"),version:T("version"),chainId:function(e){try{return s.O$.from(e).toString()}catch(t){}return m.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return(0,a.getAddress)(e).toLowerCase()}catch(t){}return m.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=(0,u.arrayify)(e);if(32!==t.length)throw new Error("bad length");return(0,u.hexlify)(t)}catch(n){}return m.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function S(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var n=""===t[1],r=parseInt(t[2]||"256");(r%8!==0||r>256||t[2]&&t[2]!==String(r))&&m.throwArgumentError("invalid numeric width","type",e);var i=w.mask(n?r-1:r),o=n?i.add(b).mul(v):g;return function(t){var n=s.O$.from(t);return(n.lt(o)||n.gt(i))&&m.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),(0,u.hexZeroPad)(n.toTwos(256).toHexString(),32)}}var l=e.match(/^bytes(\d+)$/);if(l){var f=parseInt(l[1]);return(0===f||f>32||l[1]!==String(f))&&m.throwArgumentError("invalid bytes width","type",e),function(t){return(0,u.arrayify)(t).length!==f&&m.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=(0,u.arrayify)(e),n=t.length%32;return n?(0,u.hexConcat)([t,y.slice(n)]):(0,u.hexlify)(t)}(t)}}switch(e){case"address":return function(e){return(0,u.hexZeroPad)((0,a.getAddress)(e),32)};case"bool":return function(e){return e?x:A};case"bytes":return function(e){return(0,c.keccak256)(e)};case"string":return function(e){return(0,p.id)(e)}}return null}function C(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var I=function(){function e(t){(0,i.Z)(this,e),(0,l.defineReadOnly)(this,"types",Object.freeze((0,l.deepCopy)(t))),(0,l.defineReadOnly)(this,"_encoderCache",{}),(0,l.defineReadOnly)(this,"_types",{});var n={},r={},o={};Object.keys(t).forEach((function(e){n[e]={},r[e]=[],o[e]={}}));var a=function(e){var i={};t[e].forEach((function(o){i[o.name]&&m.throwArgumentError("duplicate variable name ".concat(JSON.stringify(o.name)," in ").concat(JSON.stringify(e)),"types",t),i[o.name]=!0;var a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===e&&m.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),S(a)||(r[a]||m.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),r[a].push(e),n[e][a]=!0)}))};for(var s in t)a(s);var u=Object.keys(r).filter((function(e){return 0===r[e].length}));for(var c in 0===u.length?m.throwArgumentError("missing primary type","types",t):u.length>1&&m.throwArgumentError("ambiguous primary types or unused types: ".concat(u.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),(0,l.defineReadOnly)(this,"primaryType",u[0]),function e(i,a){a[i]&&m.throwArgumentError("circular type reference to ".concat(JSON.stringify(i)),"types",t),a[i]=!0,Object.keys(n[i]).forEach((function(t){r[t]&&(e(t,a),Object.keys(a).forEach((function(e){o[e][t]=!0})))})),delete a[i]}(this.primaryType,{}),o){var f=Object.keys(o[c]);f.sort(),this._types[c]=C(c,t[c])+f.map((function(e){return C(e,t[e])})).join("")}}return(0,o.Z)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,n=S(e);if(n)return n;var r=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){var i=r[1],o=this.getEncoder(i),a=parseInt(r[3]);return function(e){a>=0&&e.length!==a&&m.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var n=e.map(o);return t._types[i]&&(n=n.map(c.keccak256)),(0,c.keccak256)((0,u.hexConcat)(n))}}var s=this.types[e];if(s){var l=(0,p.id)(this._types[e]);return function(e){var n=s.map((function(n){var r=n.name,i=n.type,o=t.getEncoder(i)(e[r]);return t._types[i]?(0,c.keccak256)(o):o}));return n.unshift(l),(0,u.hexConcat)(n)}}return m.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||m.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return(0,c.keccak256)(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,n){var r=this;if(S(e))return n(e,t);var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],a=parseInt(i[3]);return a>=0&&t.length!==a&&m.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return r._visit(o,e,n)}))}var s=this.types[e];return s?s.reduce((function(e,i){var o=i.name,a=i.type;return e[o]=r._visit(a,t[o],n),e}),{}):m.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,n,r){return e.from(n).hashStruct(t,r)}},{key:"hashDomain",value:function(t){var n=[];for(var r in t){var i=k[r];i||m.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(r)),"domain",t),n.push({name:r,type:i})}return n.sort((function(e,t){return E.indexOf(e.name)-E.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:n},t)}},{key:"encode",value:function(t,n,r){return(0,u.hexConcat)(["0x1901",e.hashDomain(t),e.from(n).hash(r)])}},{key:"hash",value:function(t,n,r){return(0,c.keccak256)(e.encode(t,n,r))}},{key:"resolveNames",value:function(t,n,i,o){return h(this,void 0,void 0,(0,r.Z)().mark((function a(){var s,c,f;return(0,r.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:t=(0,l.shallowCopy)(t),s={},t.verifyingContract&&!(0,u.isHexString)(t.verifyingContract,20)&&(s[t.verifyingContract]="0x"),(c=e.from(n)).visit(i,(function(e,t){return"address"!==e||(0,u.isHexString)(t,20)||(s[t]="0x"),t})),a.t0=(0,r.Z)().keys(s);case 6:if((a.t1=a.t0()).done){a.next=13;break}return f=a.t1.value,a.next=10,o(f);case 10:s[f]=a.sent,a.next=6;break;case 13:return t.verifyingContract&&s[t.verifyingContract]&&(t.verifyingContract=s[t.verifyingContract]),i=c.visit(i,(function(e,t){return"address"===e&&s[t]?s[t]:t})),a.abrupt("return",{domain:t,value:i});case 16:case"end":return a.stop()}}),a)})))}},{key:"getPayload",value:function(t,n,r){e.hashDomain(t);var i={},o=[];E.forEach((function(e){var n=t[e];null!=n&&(i[e]=_[e](n),o.push({name:e,type:k[e]}))}));var a=e.from(n),c=(0,l.shallowCopy)(n);return c.EIP712Domain?m.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",n):c.EIP712Domain=o,a.encode(r),{types:c,domain:i,primaryType:a.primaryType,message:a.visit(r,(function(e,t){if(e.match(/^bytes(\d*)/))return(0,u.hexlify)((0,u.arrayify)(t));if(e.match(/^u?int/))return s.O$.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&m.throwArgumentError("invalid string","value",t),t}return m.throwArgumentError("unsupported type","type",e)}))}}}]),e}()},1375:function(e,t,n){"use strict";n.r(t),n.d(t,{HDNode:function(){return _},defaultPath:function(){return T},entropyToMnemonic:function(){return I},getAccountPath:function(){return P},isValidMnemonic:function(){return O},mnemonicToEntropy:function(){return C},mnemonicToSeed:function(){return S}});var r=n(8821),i=n(85169),o=n(88832),a=n(64369),s=n(42322),u=n(25459),c=n(48917),l=n(63274),f=n(98087),d=n(35477),p=n(34858),h=n(66522),m=n(54530),y=new(n(56919).Logger)("hdnode/5.7.0"),v=s.O$.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),g=(0,u.Y0)("Bitcoin seed"),b=2147483648;function w(e){return(1<<e)-1<<8-e}function x(e){return(0,a.hexZeroPad)((0,a.hexlify)(e),32)}function A(e){return o.Base58.encode((0,a.concat)([e,(0,a.hexDataSlice)((0,d.JQ)((0,d.JQ)(e)),0,4)]))}function k(e){if(null==e)return m.E.en;if("string"===typeof e){var t=m.E[e];return null==t&&y.throwArgumentError("unknown locale","wordlist",e),t}return e}var E={},T="m/44'/60'/0'/0/0",_=function(){function e(t,n,i,o,s,u,c,p){if((0,r.Z)(this,e),t!==E)throw new Error("HDNode constructor cannot be called directly");if(n){var m=new f.SigningKey(n);(0,l.defineReadOnly)(this,"privateKey",m.privateKey),(0,l.defineReadOnly)(this,"publicKey",m.compressedPublicKey)}else(0,l.defineReadOnly)(this,"privateKey",null),(0,l.defineReadOnly)(this,"publicKey",(0,a.hexlify)(i));(0,l.defineReadOnly)(this,"parentFingerprint",o),(0,l.defineReadOnly)(this,"fingerprint",(0,a.hexDataSlice)((0,d.bP)((0,d.JQ)(this.publicKey)),0,4)),(0,l.defineReadOnly)(this,"address",(0,h.computeAddress)(this.publicKey)),(0,l.defineReadOnly)(this,"chainCode",s),(0,l.defineReadOnly)(this,"index",u),(0,l.defineReadOnly)(this,"depth",c),null==p?((0,l.defineReadOnly)(this,"mnemonic",null),(0,l.defineReadOnly)(this,"path",null)):"string"===typeof p?((0,l.defineReadOnly)(this,"mnemonic",null),(0,l.defineReadOnly)(this,"path",p)):((0,l.defineReadOnly)(this,"mnemonic",p),(0,l.defineReadOnly)(this,"path",p.path))}return(0,i.Z)(e,[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!");return A((0,a.concat)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",(0,a.hexlify)(this.depth),this.parentFingerprint,(0,a.hexZeroPad)((0,a.hexlify)(this.index),4),this.chainCode,null!=this.privateKey?(0,a.concat)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(E,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var n=this.path;n&&(n+="/"+(t&~b));var r=new Uint8Array(37);if(t&b){if(!this.privateKey)throw new Error("cannot derive child of neutered node");r.set((0,a.arrayify)(this.privateKey),1),n&&(n+="'")}else r.set((0,a.arrayify)(this.publicKey));for(var i=24;i>=0;i-=8)r[33+(i>>3)]=t>>24-i&255;var o=(0,a.arrayify)((0,d.Gy)(p.p.sha512,this.chainCode,r)),u=o.slice(0,32),c=o.slice(32),l=null,h=null;this.privateKey?l=x(s.O$.from(u).add(this.privateKey).mod(v)):h=new f.SigningKey((0,a.hexlify)(u))._addPoint(this.publicKey);var m=n,y=this.mnemonic;return y&&(m=Object.freeze({phrase:y.phrase,path:n,locale:y.locale||"en"})),new e(E,l,h,this.fingerprint,x(c),t,this.depth+1,m)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var n=this,r=0;r<t.length;r++){var i=t[r];if(i.match(/^[0-9]+'$/)){var o=parseInt(i.substring(0,i.length-1));if(o>=b)throw new Error("invalid path index - "+i);n=n._derive(b+o)}else{if(!i.match(/^[0-9]+$/))throw new Error("invalid path component - "+i);var a=parseInt(i);if(a>=b)throw new Error("invalid path index - "+i);n=n._derive(a)}}return n}}],[{key:"_fromSeed",value:function(t,n){var r=(0,a.arrayify)(t);if(r.length<16||r.length>64)throw new Error("invalid seed");var i=(0,a.arrayify)((0,d.Gy)(p.p.sha512,g,r));return new e(E,x(i.slice(0,32)),null,"0x00000000",x(i.slice(32)),0,0,n)}},{key:"fromMnemonic",value:function(t,n,r){return t=I(C(t,r=k(r)),r),e._fromSeed(S(t,n),{phrase:t,path:"m",locale:r.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var n=o.Base58.decode(t);82===n.length&&A(n.slice(0,78))===t||y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var r=n[4],i=(0,a.hexlify)(n.slice(5,9)),s=parseInt((0,a.hexlify)(n.slice(9,13)).substring(2),16),u=(0,a.hexlify)(n.slice(13,45)),c=n.slice(45,78);switch((0,a.hexlify)(n.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(E,null,(0,a.hexlify)(c),i,u,s,r,null);case"0x0488ade4":case"0x04358394 ":if(0!==c[0])break;return new e(E,(0,a.hexlify)(c.slice(1)),null,i,u,s,r,null)}return y.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function S(e,t){t||(t="");var n=(0,u.Y0)("mnemonic"+t,u.Uj.NFKD);return(0,c.n)((0,u.Y0)(e,u.Uj.NFKD),n,2048,64,"sha512")}function C(e,t){t=k(t),y.checkNormalize();var n=t.split(e);if(n.length%3!==0)throw new Error("invalid mnemonic");for(var r=(0,a.arrayify)(new Uint8Array(Math.ceil(11*n.length/8))),i=0,o=0;o<n.length;o++){var s=t.getWordIndex(n[o].normalize("NFKD"));if(-1===s)throw new Error("invalid mnemonic");for(var u=0;u<11;u++)s&1<<10-u&&(r[i>>3]|=1<<7-i%8),i++}var c=32*n.length/3,l=w(n.length/3);if(((0,a.arrayify)((0,d.JQ)(r.slice(0,c/8)))[0]&l)!==(r[r.length-1]&l))throw new Error("invalid checksum");return(0,a.hexlify)(r.slice(0,c/8))}function I(e,t){if(t=k(t),(e=(0,a.arrayify)(e)).length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var n=[0],r=11,i=0;i<e.length;i++)r>8?(n[n.length-1]<<=8,n[n.length-1]|=e[i],r-=8):(n[n.length-1]<<=r,n[n.length-1]|=e[i]>>8-r,n.push(e[i]&(1<<8-r)-1),r+=3);var o=e.length/4,s=(0,a.arrayify)((0,d.JQ)(e))[0]&w(o);return n[n.length-1]<<=o,n[n.length-1]|=s>>8-o,t.join(n.map((function(e){return t.getWord(e)})))}function O(e,t){try{return C(e,t),!0}catch(n){}return!1}function P(e){return("number"!==typeof e||e<0||e>=b||e%1)&&y.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}},52508:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="json-wallets/5.7.0"},94554:function(e,t,n){"use strict";n.r(t),n.d(t,{decryptCrowdsale:function(){return w},decryptJsonWallet:function(){return k},decryptJsonWalletSync:function(){return E},decryptKeystore:function(){return A.pe},decryptKeystoreSync:function(){return A.hb},encryptKeystore:function(){return A.HI},getJsonWalletAddress:function(){return x.Rb},isCrowdsaleWallet:function(){return x.LW},isKeystoreWallet:function(){return x.aO}});var r=n(8821),i=n(85169),o=n(82248),a=n(8416),s=n(70976),u=n.n(s),c=n(27255),l=n(64369),f=n(8082),d=n(48917),p=n(25459),h=n(63274),m=n(56919),y=n(52508),v=n(61433),g=new m.Logger(y.i),b=function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),n}(h.Description);function w(e,t){var n=JSON.parse(e);t=(0,v.Ij)(t);var r=(0,c.getAddress)((0,v.gx)(n,"ethaddr")),i=(0,v.p3)((0,v.gx)(n,"encseed"));i&&i.length%16===0||g.throwArgumentError("invalid encseed","json",e);for(var o=(0,l.arrayify)((0,d.n)(t,t,2e3,32,"sha256")).slice(0,16),a=i.slice(0,16),s=i.slice(16),h=new(u().ModeOfOperation.cbc)(o,a),m=u().padding.pkcs7.strip((0,l.arrayify)(h.decrypt(s))),y="",w=0;w<m.length;w++)y+=String.fromCharCode(m[w]);var x=(0,p.Y0)(y),A=(0,f.keccak256)(x);return new b({_isCrowdsaleAccount:!0,address:r,privateKey:A})}var x=n(43372),A=n(68937);function k(e,t,n){if((0,x.LW)(e)){n&&n(0);var r=w(e,t);return n&&n(1),Promise.resolve(r)}return(0,x.aO)(e)?(0,A.pe)(e,t,n):Promise.reject(new Error("invalid JSON wallet"))}function E(e,t){if((0,x.LW)(e))return w(e,t);if((0,x.aO)(e))return(0,A.hb)(e,t);throw new Error("invalid JSON wallet")}},43372:function(e,t,n){"use strict";n.d(t,{LW:function(){return i},Rb:function(){return a},aO:function(){return o}});var r=n(27255);function i(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return t.encseed&&t.ethaddr}function o(e){var t=null;try{t=JSON.parse(e)}catch(n){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function a(e){if(i(e))try{return(0,r.getAddress)(JSON.parse(e).ethaddr)}catch(t){return null}if(o(e))try{return(0,r.getAddress)(JSON.parse(e).address)}catch(t){return null}return null}},68937:function(e,t,n){"use strict";n.d(t,{HI:function(){return M},hb:function(){return P},pe:function(){return R}});var r=n(46999),i=n(8821),o=n(85169),a=n(82248),s=n(8416),u=n(70976),c=n.n(u),l=n(22957),f=n.n(l),d=n(27255),p=n(64369),h=n(1375),m=n(8082),y=n(48917),v=n(39536),g=n(63274),b=n(66522),w=n(61433),x=n(56919),A=n(52508),k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},E=new x.Logger(A.i);function T(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}var _=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,i.Z)(this,n),t.apply(this,arguments)}return(0,o.Z)(n,[{key:"isKeystoreAccount",value:function(e){return!(!e||!e._isKeystoreAccount)}}]),n}(g.Description);function S(e,t){var n=(0,w.p3)((0,w.gx)(e,"crypto/ciphertext"));if((0,p.hexlify)((0,m.keccak256)((0,p.concat)([t.slice(16,32),n]))).substring(2)!==(0,w.gx)(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var r=function(e,t,n){if("aes-128-ctr"===(0,w.gx)(e,"crypto/cipher")){var r=(0,w.p3)((0,w.gx)(e,"crypto/cipherparams/iv")),i=new(c().Counter)(r),o=new(c().ModeOfOperation.ctr)(t,i);return(0,p.arrayify)(o.decrypt(n))}return null}(e,t.slice(0,16),n);r||E.throwError("unsupported cipher",x.Logger.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var i=t.slice(32,64),o=(0,b.computeAddress)(r);if(e.address){var a=e.address.toLowerCase();if("0x"!==a.substring(0,2)&&(a="0x"+a),(0,d.getAddress)(a)!==o)throw new Error("address mismatch")}var s={_isKeystoreAccount:!0,address:o,privateKey:(0,p.hexlify)(r)};if("0.1"===(0,w.gx)(e,"x-ethers/version")){var u=(0,w.p3)((0,w.gx)(e,"x-ethers/mnemonicCiphertext")),l=(0,w.p3)((0,w.gx)(e,"x-ethers/mnemonicCounter")),f=new(c().Counter)(l),y=new(c().ModeOfOperation.ctr)(i,f),v=(0,w.gx)(e,"x-ethers/path")||h.defaultPath,g=(0,w.gx)(e,"x-ethers/locale")||"en",A=(0,p.arrayify)(y.decrypt(u));try{var k=(0,h.entropyToMnemonic)(A,g),T=h.HDNode.fromMnemonic(k,null,g).derivePath(v);if(T.privateKey!=s.privateKey)throw new Error("mnemonic mismatch");s.mnemonic=T.mnemonic}catch(S){if(S.code!==x.Logger.errors.INVALID_ARGUMENT||"wordlist"!==S.argument)throw S}}return new _(s)}function C(e,t,n,r,i){return(0,p.arrayify)((0,y.n)(e,t,n,r,i))}function I(e,t,n,r,i){return Promise.resolve(C(e,t,n,r,i))}function O(e,t,n,r,i){var o=(0,w.Ij)(t),a=(0,w.gx)(e,"crypto/kdf");if(a&&"string"===typeof a){var s=function(e,t){return E.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){var u=(0,w.p3)((0,w.gx)(e,"crypto/kdfparams/salt")),c=parseInt((0,w.gx)(e,"crypto/kdfparams/n")),l=parseInt((0,w.gx)(e,"crypto/kdfparams/r")),f=parseInt((0,w.gx)(e,"crypto/kdfparams/p"));c&&l&&f||s("kdf",a),0!==(c&c-1)&&s("N",c);var d=parseInt((0,w.gx)(e,"crypto/kdfparams/dklen"));return 32!==d&&s("dklen",d),r(o,u,c,l,f,64,i)}if("pbkdf2"===a.toLowerCase()){var p=(0,w.p3)((0,w.gx)(e,"crypto/kdfparams/salt")),h=null,m=(0,w.gx)(e,"crypto/kdfparams/prf");"hmac-sha256"===m?h="sha256":"hmac-sha512"===m?h="sha512":s("prf",m);var y=parseInt((0,w.gx)(e,"crypto/kdfparams/c")),v=parseInt((0,w.gx)(e,"crypto/kdfparams/dklen"));return 32!==v&&s("dklen",v),n(o,p,y,v,h)}}return E.throwArgumentError("unsupported key-derivation function","kdf",a)}function P(e,t){var n=JSON.parse(e);return S(n,O(n,t,C,f().syncScrypt))}function R(e,t,n){return k(this,void 0,void 0,(0,r.Z)().mark((function i(){var o,a;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return o=JSON.parse(e),r.next=3,O(o,t,I,f().scrypt,n);case 3:return a=r.sent,r.abrupt("return",S(o,a));case 5:case"end":return r.stop()}}),i)})))}function M(e,t,n,r){try{if((0,d.getAddress)(e.address)!==(0,b.computeAddress)(e.privateKey))throw new Error("address/privateKey mismatch");if(T(e)){var i=e.mnemonic;if(h.HDNode.fromMnemonic(i.phrase,null,i.locale).derivePath(i.path||h.defaultPath).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(C){return Promise.reject(C)}"function"!==typeof n||r||(r=n,n={}),n||(n={});var o=(0,p.arrayify)(e.privateKey),a=(0,w.Ij)(t),s=null,u=null,l=null;if(T(e)){var y=e.mnemonic;s=(0,p.arrayify)((0,h.mnemonicToEntropy)(y.phrase,y.locale||"en")),u=y.path||h.defaultPath,l=y.locale||"en"}var g=n.client;g||(g="ethers.js");var x=null;x=n.salt?(0,p.arrayify)(n.salt):(0,v.O)(32);var A=null;if(n.iv){if(16!==(A=(0,p.arrayify)(n.iv)).length)throw new Error("invalid iv")}else A=(0,v.O)(16);var k=null;if(n.uuid){if(16!==(k=(0,p.arrayify)(n.uuid)).length)throw new Error("invalid uuid")}else k=(0,v.O)(16);var E=1<<17,_=8,S=1;return n.scrypt&&(n.scrypt.N&&(E=n.scrypt.N),n.scrypt.r&&(_=n.scrypt.r),n.scrypt.p&&(S=n.scrypt.p)),f().scrypt(a,x,E,_,S,64,r).then((function(t){var n=(t=(0,p.arrayify)(t)).slice(0,16),r=t.slice(16,32),i=t.slice(32,64),a=new(c().Counter)(A),f=new(c().ModeOfOperation.ctr)(n,a),d=(0,p.arrayify)(f.encrypt(o)),h=(0,m.keccak256)((0,p.concat)([r,d])),y={address:e.address.substring(2).toLowerCase(),id:(0,w.EH)(k),version:3,crypto:{cipher:"aes-128-ctr",cipherparams:{iv:(0,p.hexlify)(A).substring(2)},ciphertext:(0,p.hexlify)(d).substring(2),kdf:"scrypt",kdfparams:{salt:(0,p.hexlify)(x).substring(2),n:E,dklen:32,p:S,r:_},mac:h.substring(2)}};if(s){var b=(0,v.O)(16),T=new(c().Counter)(b),C=new(c().ModeOfOperation.ctr)(i,T),I=(0,p.arrayify)(C.encrypt(s)),O=new Date,P=O.getUTCFullYear()+"-"+(0,w.VP)(O.getUTCMonth()+1,2)+"-"+(0,w.VP)(O.getUTCDate(),2)+"T"+(0,w.VP)(O.getUTCHours(),2)+"-"+(0,w.VP)(O.getUTCMinutes(),2)+"-"+(0,w.VP)(O.getUTCSeconds(),2)+".0Z";y["x-ethers"]={client:g,gethFilename:"UTC--"+P+"--"+y.address,mnemonicCounter:(0,p.hexlify)(b).substring(2),mnemonicCiphertext:(0,p.hexlify)(I).substring(2),path:u,locale:l,version:"0.1"}}return JSON.stringify(y)}))}},61433:function(e,t,n){"use strict";n.d(t,{EH:function(){return c},Ij:function(){return s},VP:function(){return a},gx:function(){return u},p3:function(){return o}});var r=n(64369),i=n(25459);function o(e){return"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),(0,r.arrayify)(e)}function a(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function s(e){return"string"===typeof e?(0,i.Y0)(e,i.Uj.NFKC):(0,r.arrayify)(e)}function u(e,t){for(var n=e,r=t.toLowerCase().split("/"),i=0;i<r.length;i++){var o=null;for(var a in n)if(a.toLowerCase()===r[i]){o=n[a];break}if(null===o)return null;n=o}return n}function c(e){var t=(0,r.arrayify)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;var n=(0,r.hexlify)(t);return[n.substring(2,10),n.substring(10,14),n.substring(14,18),n.substring(18,22),n.substring(22,34)].join("-")}},8082:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return a}});var r=n(67594),i=n.n(r),o=n(64369);function a(e){return"0x"+i().keccak_256((0,o.arrayify)(e))}},56919:function(e,t,n){"use strict";n.r(t),n.d(t,{ErrorCode:function(){return f},LogLevel:function(){return l},Logger:function(){return h}});var r=n(8821),i=n(85169),o=!1,a=!1,s={debug:1,default:2,info:2,warning:3,error:4,off:5},u=s.default,c=null;var l,f,d=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(n){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(l||(l={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED",e.ACTION_REJECTED="ACTION_REJECTED"}(f||(f={}));var p="0123456789abcdef",h=function(){function e(t){(0,r.Z)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return(0,i.Z)(e,[{key:"_log",value:function(e,t){var n=e.toLowerCase();null==s[n]&&this.throwArgumentError("invalid log level name","logLevel",e),u>s[n]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.DEBUG,n)}},{key:"info",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.INFO,n)}},{key:"warn",value:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];this._log(e.levels.WARNING,n)}},{key:"makeError",value:function(t,n,r){if(a)return this.makeError("censored error",n,{});n||(n=e.errors.UNKNOWN_ERROR),r||(r={});var i=[];Object.keys(r).forEach((function(e){var t=r[e];try{if(t instanceof Uint8Array){for(var n="",o=0;o<t.length;o++)n+=p[t[o]>>4],n+=p[15&t[o]];i.push(e+"=Uint8Array(0x"+n+")")}else i.push(e+"="+JSON.stringify(t))}catch(c){i.push(e+"="+JSON.stringify(r[e].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=t,s="";switch(n){case f.NUMERIC_FAULT:s="NUMERIC_FAULT";var u=t;switch(u){case"overflow":case"underflow":case"division-by-zero":s+="-"+u;break;case"negative-power":case"negative-width":s+="-unsupported";break;case"unbound-bitwise-result":s+="-unbound-result"}break;case f.CALL_EXCEPTION:case f.INSUFFICIENT_FUNDS:case f.MISSING_NEW:case f.NONCE_EXPIRED:case f.REPLACEMENT_UNDERPRICED:case f.TRANSACTION_REPLACED:case f.UNPREDICTABLE_GAS_LIMIT:s=n}s&&(t+=" [ See: https://links.ethers.org/v5-errors-"+s+" ]"),i.length&&(t+=" ("+i.join(", ")+")");var c=new Error(t);return c.reason=o,c.code=n,Object.keys(r).forEach((function(e){c[e]=r[e]})),c}},{key:"throwError",value:function(e,t,n){throw this.makeError(e,t,n)}},{key:"throwArgumentError",value:function(t,n,r){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(e,t,n,r){e||this.throwError(t,n,r)}},{key:"assertArgument",value:function(e,t,n,r){e||this.throwArgumentError(t,n,r)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),d&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:d})}},{key:"checkSafeUint53",value:function(t,n){"number"===typeof t&&(null==n&&(n="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(n,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,n,r){r=r?": "+r:"",t<n&&this.throwError("missing argument"+r,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:n}),t>n&&this.throwError("too many arguments"+r,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:n})}},{key:"checkNew",value:function(t,n){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(t,n){t===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return c||(c=new e("logger/5.7.0")),c}},{key:"setCensorship",value:function(t,n){if(!t&&n&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),o){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!t,o=!!n}},{key:"setLogLevel",value:function(t){var n=s[t.toLowerCase()];null!=n?u=n:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();h.errors=f,h.levels=l},1286:function(e,t,n){"use strict";n.d(t,{H:function(){return l}});var r=new(n(56919).Logger)("networks/5.7.1");function i(e){var t=function(t,n){null==n&&(n={});var r=[];if(t.InfuraProvider&&"-"!==n.infura)try{r.push(new t.InfuraProvider(e,n.infura))}catch(s){}if(t.EtherscanProvider&&"-"!==n.etherscan)try{r.push(new t.EtherscanProvider(e,n.etherscan))}catch(s){}if(t.AlchemyProvider&&"-"!==n.alchemy)try{r.push(new t.AlchemyProvider(e,n.alchemy))}catch(s){}if(t.PocketProvider&&"-"!==n.pocket){try{var i=new t.PocketProvider(e,n.pocket);i.network&&-1===["goerli","ropsten","rinkeby","sepolia"].indexOf(i.network.name)&&r.push(i)}catch(s){}}if(t.CloudflareProvider&&"-"!==n.cloudflare)try{r.push(new t.CloudflareProvider(e))}catch(s){}if(t.AnkrProvider&&"-"!==n.ankr)try{var o=new t.AnkrProvider(e,n.ankr);o.network&&-1===["ropsten"].indexOf(o.network.name)&&r.push(o)}catch(s){}if(0===r.length)return null;if(t.FallbackProvider){var a=1;return null!=n.quorum?a=n.quorum:"homestead"===e&&(a=2),new t.FallbackProvider(r,a)}return r[0]};return t.renetwork=function(e){return i(e)},t}function o(e,t){var n=function(n,r){return n.JsonRpcProvider?new n.JsonRpcProvider(e,t):null};return n.renetwork=function(t){return o(e,t)},n}var a={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:i("homestead")},s={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:i("ropsten")},u={chainId:63,name:"classicMordor",_defaultProvider:o("https://www.ethercluster.com/mordor","classicMordor")},c={unspecified:{chainId:0,name:"unspecified"},homestead:a,mainnet:a,morden:{chainId:2,name:"morden"},ropsten:s,testnet:s,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:i("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:i("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:i("goerli")},kintsugi:{chainId:1337702,name:"kintsugi"},sepolia:{chainId:11155111,name:"sepolia",_defaultProvider:i("sepolia")},classic:{chainId:61,name:"classic",_defaultProvider:o("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:u,classicTestnet:u,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:o("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic",_defaultProvider:i("matic")},maticmum:{chainId:80001,name:"maticmum"},optimism:{chainId:10,name:"optimism",_defaultProvider:i("optimism")},"optimism-kovan":{chainId:69,name:"optimism-kovan"},"optimism-goerli":{chainId:420,name:"optimism-goerli"},arbitrum:{chainId:42161,name:"arbitrum"},"arbitrum-rinkeby":{chainId:421611,name:"arbitrum-rinkeby"},"arbitrum-goerli":{chainId:421613,name:"arbitrum-goerli"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function l(e){if(null==e)return null;if("number"===typeof e){for(var t in c){var n=c[t];if(n.chainId===e)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){var i=c[e];return null==i?null:{name:i.name,chainId:i.chainId,ensAddress:i.ensAddress,_defaultProvider:i._defaultProvider||null}}var o=c[e.name];if(!o)return"number"!==typeof e.chainId&&r.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==o.chainId&&r.throwArgumentError("network chainId mismatch","network",e);var a,s=e._defaultProvider||null;return null==s&&o._defaultProvider&&(s=(a=o._defaultProvider)&&"function"===typeof a.renetwork?o._defaultProvider.renetwork(e):o._defaultProvider),{name:e.name,chainId:o.chainId,ensAddress:e.ensAddress||o.ensAddress||null,_defaultProvider:s}}},48917:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(64369),i=n(35477);function o(e,t,n,o,a){var s;e=(0,r.arrayify)(e),t=(0,r.arrayify)(t);var u,c,l=1,f=new Uint8Array(o),d=new Uint8Array(t.length+4);d.set(t);for(var p=1;p<=l;p++){d[t.length]=p>>24&255,d[t.length+1]=p>>16&255,d[t.length+2]=p>>8&255,d[t.length+3]=255&p;var h=(0,r.arrayify)((0,i.Gy)(a,e,d));s||(s=h.length,c=new Uint8Array(s),u=o-((l=Math.ceil(o/s))-1)*s),c.set(h);for(var m=1;m<n;m++){h=(0,r.arrayify)((0,i.Gy)(a,e,h));for(var y=0;y<s;y++)c[y]^=h[y]}var v=(p-1)*s,g=p===l?u:s;f.set((0,r.arrayify)(c).slice(0,g),v)}return(0,r.hexlify)(f)}},63274:function(e,t,n){"use strict";n.r(t),n.d(t,{Description:function(){return g},checkProperties:function(){return d},deepCopy:function(){return v},defineReadOnly:function(){return c},getStatic:function(){return l},resolveProperties:function(){return f},shallowCopy:function(){return p}});var r=n(85169),i=n(8821),o=n(46999),a=n(56919),s=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},u=new a.Logger("properties/5.7.0");function c(e,t,n){Object.defineProperty(e,t,{enumerable:!0,value:n,writable:!1})}function l(e,t){for(var n=0;n<32;n++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function f(e){return s(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Object.keys(e).map((function(t){var n=e[t];return Promise.resolve(n).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(n);case 3:return r=t.sent,t.abrupt("return",r.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function d(e,t){e&&"object"===typeof e||u.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(n){t[n]||u.throwArgumentError("invalid object key - "+n,"transaction:"+n,e)}))}function p(e){var t={};for(var n in e)t[n]=e[n];return t}var h={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function m(e){if(void 0===e||null===e||h[typeof e])return!0;if(Array.isArray(e)||"object"===typeof e){if(!Object.isFrozen(e))return!1;for(var t=Object.keys(e),n=0;n<t.length;n++){var r=null;try{r=e[t[n]]}catch(i){continue}if(!m(r))return!1}return!0}return u.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function y(e){if(m(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return v(e)})));if("object"===typeof e){var t={};for(var n in e){var r=e[n];void 0!==r&&c(t,n,v(r))}return t}return u.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function v(e){return y(e)}var g=(0,r.Z)((function e(t){for(var n in(0,i.Z)(this,e),t)this[n]=v(t[n])}))},75956:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="providers/5.7.2"},10871:function(e,t,n){"use strict";n.d(t,{H2:function(){return G},Zk:function(){return J}});var r=n(93173),i=n(82248),o=n(8416),a=n(46999),s=n(8821),u=n(85169),c=n(22090),l=n(33432),f=n(88832),d=n(42322),p=n(64369),h=n(72986),m=n(34913),y=n(1286),v=n(63274),g=n(35477),b=n(25459),w=n(77379),x=n(12914),A=n.n(x),k=n(56919),E=n(75956),T=n(35136),_=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},S=new k.Logger(E.i);function C(e){return null==e?"null":(32!==(0,p.hexDataLength)(e)&&S.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function I(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[C(e)]=!0}));var n=Object.keys(t);return n.sort(),n.join("|")}return C(e)})).join("&")}function O(e){if("string"===typeof e){if(e=e.toLowerCase(),32===(0,p.hexDataLength)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+I(e);if(c.Sg.isForkEvent(e))throw S.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+I(e.topics||[])}throw new Error("invalid event - "+e)}function P(){return(new Date).getTime()}function R(e){return new Promise((function(t){setTimeout(t,e)}))}var M=["block","network","pending","poll"],B=function(){function e(t,n,r){(0,s.Z)(this,e),(0,v.defineReadOnly)(this,"tag",t),(0,v.defineReadOnly)(this,"listener",n),(0,v.defineReadOnly)(this,"once",r),this._lastBlockNumber=-2,this._inflight=!1}return(0,u.Z)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,n=e[1],r=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),i={};return r.length>0&&(i.topics=r),n&&"*"!==n&&(i.address=n),i}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||M.indexOf(this.tag)>=0}}]),e}(),N={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function F(e){return(0,p.hexZeroPad)(d.O$.from(e).toHexString(),32)}function D(e){return f.Base58.encode((0,p.concat)([e,(0,p.hexDataSlice)((0,g.JQ)((0,g.JQ)(e)),0,4)]))}var L=new RegExp("^(ipfs)://(.*)$","i"),z=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),L,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function j(e,t){try{return(0,b.ZN)(U(e,t))}catch(n){}return null}function U(e,t){if("0x"===e)return null;var n=d.O$.from((0,p.hexDataSlice)(e,t,t+32)).toNumber(),r=d.O$.from((0,p.hexDataSlice)(e,n,n+32)).toNumber();return(0,p.hexDataSlice)(e,n+32,n+32+r)}function Z(e){return e.match(/^ipfs:\/\/ipfs\//i)?e=e.substring(12):e.match(/^ipfs:\/\//i)?e=e.substring(7):S.throwArgumentError("unsupported IPFS format","link",e),"https://gateway.ipfs.io/ipfs/".concat(e)}function q(e){var t=(0,p.arrayify)(e);if(t.length>32)throw new Error("internal; should not happen");var n=new Uint8Array(32);return n.set(t,32-t.length),n}function H(e){if(e.length%32===0)return e;var t=new Uint8Array(32*Math.ceil(e.length/32));return t.set(e),t}function V(e){for(var t=[],n=0,r=0;r<e.length;r++)t.push(null),n+=32;for(var i=0;i<e.length;i++){var o=(0,p.arrayify)(e[i]);t[i]=q(n),t.push(q(o.length)),t.push(H(o)),n+=32+32*Math.ceil(o.length/32)}return(0,p.hexConcat)(t)}var G=function(){function e(t,n,r,i){(0,s.Z)(this,e),(0,v.defineReadOnly)(this,"provider",t),(0,v.defineReadOnly)(this,"name",r),(0,v.defineReadOnly)(this,"address",t.formatter.address(n)),(0,v.defineReadOnly)(this,"_resolvedAddress",i)}return(0,u.Z)(e,[{key:"supportsWildcard",value:function(){var e=this;return this._supportsEip2544||(this._supportsEip2544=this.provider.call({to:this.address,data:"0x01ffc9a79061b92300000000000000000000000000000000000000000000000000000000"}).then((function(e){return d.O$.from(e).eq(1)})).catch((function(t){if(t.code===k.Logger.errors.CALL_EXCEPTION)return!1;throw e._supportsEip2544=null,t}))),this._supportsEip2544}},{key:"_fetch",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i,o;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={to:this.address,ccipReadEnabled:!0,data:(0,p.hexConcat)([e,(0,m.VM)(this.name),t||"0x"])},i=!1,n.next=4,this.supportsWildcard();case 4:if(!n.sent){n.next=7;break}i=!0,r.data=(0,p.hexConcat)(["0x9061b923",V([(0,m.Kn)(this.name),r.data])]);case 7:return n.prev=7,n.next=10,this.provider.call(r);case 10:return o=n.sent,(0,p.arrayify)(o).length%32===4&&S.throwError("resolver threw error",k.Logger.errors.CALL_EXCEPTION,{transaction:r,data:o}),i&&(o=U(o,0)),n.abrupt("return",o);case 16:if(n.prev=16,n.t0=n.catch(7),n.t0.code!==k.Logger.errors.CALL_EXCEPTION){n.next=20;break}return n.abrupt("return",null);case 20:throw n.t0;case 21:case"end":return n.stop()}}),n,this,[[7,16]])})))}},{key:"_fetchBytes",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this._fetch(e,t);case 2:if(null==(r=n.sent)){n.next=5;break}return n.abrupt("return",U(r,0));case 5:return n.abrupt("return",null);case 6:case"end":return n.stop()}}),n,this)})))}},{key:"_getAddress",value:function(e,t){var n=N[String(e)];if(null==n&&S.throwError("unsupported coin type: ".concat(e),k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===n.ilk)return this.provider.formatter.address(t);var r=(0,p.arrayify)(t);if(null!=n.p2pkh){var i=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(i){var o=parseInt(i[1],16);if(i[2].length===2*o&&o>=1&&o<=75)return D((0,p.concat)([[n.p2pkh],"0x"+i[2]]))}}if(null!=n.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var s=parseInt(a[1],16);if(a[2].length===2*s&&s>=1&&s<=75)return D((0,p.concat)([[n.p2sh],"0x"+a[2]]))}}if(null!=n.prefix){var u=r[1],c=r[0];if(0===c?20!==u&&32!==u&&(c=-1):c=-1,c>=0&&r.length===2+u&&u>=1&&u<=75){var l=A().toWords(r.slice(2));return l.unshift(c),A().encode(n.prefix,l)}}return null}},{key:"getAddress",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=16;break}return t.prev=2,t.next=5,this._fetch("0x3b3b57de");case 5:if("0x"!==(n=t.sent)&&n!==h.R){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",this.provider.formatter.callAddress(n));case 11:if(t.prev=11,t.t0=t.catch(2),t.t0.code!==k.Logger.errors.CALL_EXCEPTION){t.next=15;break}return t.abrupt("return",null);case 15:throw t.t0;case 16:return t.next=18,this._fetchBytes("0xf1cb7e06",F(e));case 18:if(null!=(r=t.sent)&&"0x"!==r){t.next=21;break}return t.abrupt("return",null);case 21:return null==(i=this._getAddress(e,r))&&S.throwError("invalid or unsupported coin data",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:r}),t.abrupt("return",i);case 24:case"end":return t.stop()}}),t,this,[[2,11]])})))}},{key:"getAvatar",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t,n,r,i,o,s,u,c,l,f,h,m,y,v,g,b;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=[{type:"name",content:this.name}],e.prev=1,e.next=4,this.getText("avatar");case 4:if(null!=(n=e.sent)){e.next=7;break}return e.abrupt("return",null);case 7:r=0;case 8:if(!(r<z.length)){e.next=91;break}if(null!=(i=n.match(z[r]))){e.next=12;break}return e.abrupt("continue",88);case 12:o=i[1].toLowerCase(),e.t0=o,e.next="https"===e.t0?16:"data"===e.t0?18:"ipfs"===e.t0?20:"erc721"===e.t0||"erc1155"===e.t0?22:88;break;case 16:return t.push({type:"url",content:n}),e.abrupt("return",{linkage:t,url:n});case 18:return t.push({type:"data",content:n}),e.abrupt("return",{linkage:t,url:n});case 20:return t.push({type:"ipfs",content:n}),e.abrupt("return",{linkage:t,url:Z(n)});case 22:if(s="erc721"===o?"0xc87b56dd":"0x0e89341c",t.push({type:o,content:n}),e.t1=this._resolvedAddress,e.t1){e.next=29;break}return e.next=28,this.getAddress();case 28:e.t1=e.sent;case 29:if(u=e.t1,2===(c=(i[2]||"").split("/")).length){e.next=33;break}return e.abrupt("return",null);case 33:return e.next=35,this.provider.formatter.address(c[0]);case 35:if(l=e.sent,f=(0,p.hexZeroPad)(d.O$.from(c[1]).toHexString(),32),"erc721"!==o){e.next=48;break}return e.t2=this.provider.formatter,e.next=41,this.provider.call({to:l,data:(0,p.hexConcat)(["0x6352211e",f])});case 41:if(e.t3=e.sent,h=e.t2.callAddress.call(e.t2,e.t3),u===h){e.next=45;break}return e.abrupt("return",null);case 45:t.push({type:"owner",content:h}),e.next=57;break;case 48:if("erc1155"!==o){e.next=57;break}return e.t4=d.O$,e.next=52,this.provider.call({to:l,data:(0,p.hexConcat)(["0x00fdd58e",(0,p.hexZeroPad)(u,32),f])});case 52:if(e.t5=e.sent,!(m=e.t4.from.call(e.t4,e.t5)).isZero()){e.next=56;break}return e.abrupt("return",null);case 56:t.push({type:"balance",content:m.toString()});case 57:return y={to:this.provider.formatter.address(c[0]),data:(0,p.hexConcat)([s,f])},e.t6=j,e.next=61,this.provider.call(y);case 61:if(e.t7=e.sent,null!=(v=(0,e.t6)(e.t7,0))){e.next=65;break}return e.abrupt("return",null);case 65:return t.push({type:"metadata-url-base",content:v}),"erc1155"===o&&(v=v.replace("{id}",f.substring(2)),t.push({type:"metadata-url-expanded",content:v})),v.match(/^ipfs:/i)&&(v=Z(v)),t.push({type:"metadata-url",content:v}),e.next=71,(0,w.fetchJson)(v);case 71:if(g=e.sent){e.next=74;break}return e.abrupt("return",null);case 74:if(t.push({type:"metadata",content:JSON.stringify(g)}),"string"===typeof(b=g.image)){e.next=78;break}return e.abrupt("return",null);case 78:if(!b.match(/^(https:\/\/|data:)/i)){e.next=81;break}e.next=86;break;case 81:if(null!=b.match(L)){e.next=84;break}return e.abrupt("return",null);case 84:t.push({type:"url-ipfs",content:b}),b=Z(b);case 86:return t.push({type:"url",content:b}),e.abrupt("return",{linkage:t,url:b});case 88:r++,e.next=8;break;case 91:e.next=95;break;case 93:e.prev=93,e.t8=e.catch(1);case 95:return e.abrupt("return",null);case 96:case"end":return e.stop()}}),e,this,[[1,93]])})))}},{key:"getContentHash",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t,n,r,i,o,s,u,c,d;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(t=e.sent)&&"0x"!==t){e.next=5;break}return e.abrupt("return",null);case 5:if(!(n=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=10;break}if(r=parseInt(n[3],16),n[4].length!==2*r){e.next=10;break}return e.abrupt("return","ipfs://"+f.Base58.encode("0x"+n[1]));case 10:if(!(i=t.match(/^0xe5010172(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=15;break}if(o=parseInt(i[3],16),i[4].length!==2*o){e.next=15;break}return e.abrupt("return","ipns://"+f.Base58.encode("0x"+i[1]));case 15:if(!(s=t.match(/^0xe40101fa011b20([0-9a-f]*)$/))){e.next=19;break}if(64!==s[1].length){e.next=19;break}return e.abrupt("return","bzz://"+s[1]);case 19:if(!(u=t.match(/^0x90b2c605([0-9a-f]*)$/))){e.next=25;break}if(68!==u[1].length){e.next=25;break}return c={"=":"","+":"-","/":"_"},d=(0,l.c)("0x"+u[1]).replace(/[=+\/]/g,(function(e){return c[e]})),e.abrupt("return","sia://"+d);case 25:return e.abrupt("return",S.throwError("invalid or unsupported content hash data",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t}));case 26:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,b.Y0)(e),(n=(0,p.concat)([F(64),F(n.length),n])).length%32!==0&&(n=(0,p.concat)([n,(0,p.hexZeroPad)("0x",32-e.length%32)])),t.next=5,this._fetchBytes("0x59d1d43c",(0,p.hexlify)(n));case 5:if(null!=(r=t.sent)&&"0x"!==r){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",(0,b.ZN)(r));case 9:case"end":return t.stop()}}),t,this)})))}}]),e}(),W=null,K=1,J=function(e){(0,i.Z)(n,e);var t=(0,o.Z)(n);function n(e){var i;if((0,s.Z)(this,n),(i=t.call(this))._events=[],i._emitted={block:-2},i.disableCcipRead=!1,i.formatter=(this instanceof n?this.constructor:void 0).getFormatter(),(0,v.defineReadOnly)((0,r.Z)(i),"anyNetwork","any"===e),i.anyNetwork&&(e=i.detectNetwork()),e instanceof Promise)i._networkPromise=e,e.catch((function(e){})),i._ready().catch((function(e){}));else{var o=(0,v.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e);o?((0,v.defineReadOnly)((0,r.Z)(i),"_network",o),i.emit("network",o,null)):S.throwArgumentError("invalid network","network",e)}return i._maxInternalBlockNumber=-1024,i._lastBlockNumber=-2,i._maxFilterBlockRange=10,i._pollingInterval=4e3,i._fastQueryDate=0,i}return(0,u.Z)(n,[{key:"_ready",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17;break}if(t=null,!this._networkPromise){e.next=11;break}return e.prev=3,e.next=6,this._networkPromise;case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(null!=t){e.next=15;break}return e.next=14,this.detectNetwork();case 14:t=e.sent;case 15:t||S.throwError("no network detected",k.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:(0,v.defineReadOnly)(this,"_network",t),this.emit("network",t,null));case 17:return e.abrupt("return",this._network);case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this;return(0,w.poll)((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==k.Logger.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"ccipReadFetch",value:function(e,t,n){return _(this,void 0,void 0,(0,a.Z)().mark((function r(){var i,o,s,u,c,l,f,d,p;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!this.disableCcipRead&&0!==n.length){r.next=2;break}return r.abrupt("return",null);case 2:i=e.to.toLowerCase(),o=t.toLowerCase(),s=[],u=0;case 6:if(!(u<n.length)){r.next=22;break}return c=n[u],l=c.replace("{sender}",i).replace("{data}",o),f=c.indexOf("{data}")>=0?null:JSON.stringify({data:o,sender:i}),r.next=12,(0,w.fetchJson)({url:l,errorPassThrough:!0},f,(function(e,t){return e.status=t.statusCode,e}));case 12:if(!(d=r.sent).data){r.next=15;break}return r.abrupt("return",d.data);case 15:if(p=d.message||"unknown error",!(d.status>=400&&d.status<500)){r.next=18;break}return r.abrupt("return",S.throwError("response not found during CCIP fetch: ".concat(p),k.Logger.errors.SERVER_ERROR,{url:c,errorMessage:p}));case 18:s.push(p);case 19:u++,r.next=6;break;case 22:return r.abrupt("return",S.throwError("error encountered during CCIP fetch: ".concat(s.map((function(e){return JSON.stringify(e)})).join(", ")),k.Logger.errors.SERVER_ERROR,{urls:n,errorMessages:s}));case 23:case"end":return r.stop()}}),r,this)})))}},{key:"_getInternalBlockNumber",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i,o,s=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return n=this._internalBlockNumber,t.prev=5,t.next=8,n;case 8:if(r=t.sent,!(P()-r.respTime<=e)){t.next=11;break}return t.abrupt("return",r.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==n){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return i=P(),o=(0,v.resolveProperties)({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,n=e.networkError;if(n)throw s._internalBlockNumber===o&&(s._internalBlockNumber=null),n;var r=P();return(t=d.O$.from(t).toNumber())<s._maxInternalBlockNumber&&(t=s._maxInternalBlockNumber),s._maxInternalBlockNumber=t,s._setFastBlockNumber(t),{blockNumber:t,reqTime:i,respTime:r}})),this._internalBlockNumber=o,o.catch((function(e){s._internalBlockNumber===o&&(s._internalBlockNumber=null)})),t.next=26,o;case 26:return t.abrupt("return",t.sent.blockNumber);case 27:case"end":return t.stop()}}),t,this,[[5,14]])})))}},{key:"poll",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t,n,r,i,o=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=K++,n=[],r=null,e.prev=3,e.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:r=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),this.emit("error",e.t0),e.abrupt("return");case 13:if(this._setFastBlockNumber(r),this.emit("poll",t,r),r!==this._lastBlockNumber){e.next=18;break}return this.emit("didPoll",t),e.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=r-1),Math.abs(this._emitted.block-r)>1e3)S.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(r,")")),this.emit("error",S.makeError("network block skew detected",k.Logger.errors.NETWORK_ERROR,{blockNumber:r,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",r);else for(i=this._emitted.block+1;i<=r;i++)this.emit("block",i);return this._emitted.block!==r&&(this._emitted.block=r,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=o._emitted[e];"pending"!==t&&r-t>12&&delete o._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=r-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,i=o.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(o._emitted["t:"+t]=e.blockNumber,o.emit(t,e),null):null})).catch((function(e){o.emit("error",e)}));n.push(i);break;case"filter":if(!e._inflight){e._inflight=!0,-2===e._lastBlockNumber&&(e._lastBlockNumber=r-1);var a=e.filter;a.fromBlock=e._lastBlockNumber+1,a.toBlock=r;var s=a.toBlock-o._maxFilterBlockRange;s>a.fromBlock&&(a.fromBlock=s),a.fromBlock<0&&(a.fromBlock=0);var u=o.getLogs(a).then((function(t){e._inflight=!1,0!==t.length&&t.forEach((function(t){t.blockNumber>e._lastBlockNumber&&(e._lastBlockNumber=t.blockNumber),o._emitted["b:"+t.blockHash]=t.blockNumber,o._emitted["t:"+t.transactionHash]=t.blockNumber,o.emit(a,t)}))})).catch((function(t){o.emit("error",t),e._inflight=!1}));n.push(u)}}})),this._lastBlockNumber=r,Promise.all(n).then((function(){o.emit("didPoll",t)})).catch((function(e){o.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",S.throwError("provider does not support network detection",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t,n,r;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(n=e.sent,t.chainId===n.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=n,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",n,t),e.next=19,R(0);case 19:return e.abrupt("return",this._network);case 20:throw r=S.makeError("underlying network changed",k.Logger.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:n}),this.emit("error",r),r;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=P();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=P(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,n){return _(this,void 0,void 0,(0,a.Z)().mark((function r(){return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",this._waitForTransaction(e,null==t?1:t,n||0,null));case 1:case"end":return r.stop()}}),r,this)})))}},{key:"_waitForTransaction",value:function(e,t,n,r){return _(this,void 0,void 0,(0,a.Z)().mark((function i(){var o,s=this;return(0,a.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,this.getTransactionReceipt(e);case 2:if(!(((o=i.sent)?o.confirmations:0)>=t)){i.next=5;break}return i.abrupt("return",o);case 5:return i.abrupt("return",new Promise((function(i,o){var u=[],c=!1,l=function(){return!!c||(c=!0,u.forEach((function(e){e()})),!1)},f=function(e){e.confirmations<t||l()||i(e)};if(s.on(e,f),u.push((function(){s.removeListener(e,f)})),r){var d=r.startBlock,p=null,h=function n(i){return _(s,void 0,void 0,(0,a.Z)().mark((function s(){var u=this;return(0,a.Z)().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!c){s.next=2;break}return s.abrupt("return");case 2:return s.next=4,R(1e3);case 4:this.getTransactionCount(r.from).then((function(s){return _(u,void 0,void 0,(0,a.Z)().mark((function u(){var f,h,m,y,v,g;return(0,a.Z)().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!c){a.next=2;break}return a.abrupt("return");case 2:if(!(s<=r.nonce)){a.next=6;break}d=i,a.next=41;break;case 6:return a.next=8,this.getTransaction(e);case 8:if(!(f=a.sent)||null==f.blockNumber){a.next=11;break}return a.abrupt("return");case 11:null==p&&(p=d-3)<r.startBlock&&(p=r.startBlock);case 12:if(!(p<=i)){a.next=41;break}if(!c){a.next=15;break}return a.abrupt("return");case 15:return a.next=17,this.getBlockWithTransactions(p);case 17:h=a.sent,m=0;case 19:if(!(m<h.transactions.length)){a.next=38;break}if((y=h.transactions[m]).hash!==e){a.next=23;break}return a.abrupt("return");case 23:if(y.from!==r.from||y.nonce!==r.nonce){a.next=35;break}if(!c){a.next=26;break}return a.abrupt("return");case 26:return a.next=28,this.waitForTransaction(y.hash,t);case 28:if(v=a.sent,!l()){a.next=31;break}return a.abrupt("return");case 31:return g="replaced",y.data===r.data&&y.to===r.to&&y.value.eq(r.value)?g="repriced":"0x"===y.data&&y.from===y.to&&y.value.isZero()&&(g="cancelled"),o(S.makeError("transaction was replaced",k.Logger.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===g||"cancelled"===g,reason:g,replacement:this._wrapTransaction(y),hash:e,receipt:v})),a.abrupt("return");case 35:m++,a.next=19;break;case 38:p++,a.next=12;break;case 41:if(!c){a.next=43;break}return a.abrupt("return");case 43:this.once("block",n);case 44:case"end":return a.stop()}}),u,this)})))}),(function(e){c||u.once("block",n)}));case 5:case"end":return s.stop()}}),s,this)})))};if(c)return;s.once("block",h),u.push((function(){s.removeListener("block",h)}))}if("number"===typeof n&&n>0){var m=setTimeout((function(){l()||o(S.makeError("timeout exceeded",k.Logger.errors.TIMEOUT,{timeout:n}))}),n);m.unref&&m.unref(),u.push((function(){clearTimeout(m)}))}})));case 6:case"end":return i.stop()}}),i,this)})))}},{key:"getBlockNumber",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){var t;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",d.O$.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getBalance",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",d.O$.from(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getBalance",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getTransactionCount",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",d.O$.from(i).toNumber());case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getTransactionCount",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return r=n.sent,n.next=7,this.perform("getCode",r);case 7:return i=n.sent,n.prev=8,n.abrupt("return",(0,p.hexlify)(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getCode",params:r,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,n){return _(this,void 0,void 0,(0,a.Z)().mark((function r(){var i,o;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,(0,v.resolveProperties)({address:this._getAddress(e),blockTag:this._getBlockTag(n),position:Promise.resolve(t).then((function(e){return(0,p.hexValue)(e)}))});case 4:return i=r.sent,r.next=7,this.perform("getStorageAt",i);case 7:return o=r.sent,r.prev=8,r.abrupt("return",(0,p.hexlify)(o));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"getStorageAt",params:i,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,n){var r=this;if(null!=t&&32!==(0,p.hexDataLength)(t))throw new Error("invalid response - sendTransaction");var i=e;return null!=t&&e.hash!==t&&S.throwError("Transaction hash mismatch from Provider.sendTransaction.",k.Logger.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),i.wait=function(t,i){return _(r,void 0,void 0,(0,a.Z)().mark((function r(){var o,s;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t=1),null==i&&(i=0),o=void 0,0!==t&&null!=n&&(o={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:n}),r.next=6,this._waitForTransaction(e.hash,t,i,o);case 6:if(null!=(s=r.sent)||0!==t){r.next=9;break}return r.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=s.blockNumber,0===s.status&&S.throwError("transaction failed",k.Logger.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:s}),r.abrupt("return",s);case 12:case"end":return r.stop()}}),r,this)})))},i}},{key:"sendTransaction",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i,o;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return(0,p.hexlify)(e)}));case 4:return n=t.sent,null==(r=this.formatter.transaction(e)).confirmations&&(r.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return i=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:n});case 13:return o=t.sent,t.abrupt("return",this._wrapTransaction(r,o,i));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=r,t.t0.transactionHash=r.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return n=t.sent,r={},["from","to"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?i._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?d.O$.from(e):null})))})),["type"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return null!=e?e:null})))})),n.accessList&&(r.accessList=this.formatter.accessList(n.accessList)),["data"].forEach((function(e){null!=n[e]&&(r[e]=Promise.resolve(n[e]).then((function(e){return e?(0,p.hexlify)(e):null})))})),t.t0=this.formatter,t.next=12,(0,v.resolveProperties)(r);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,n={},null!=e.address&&(n.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(n[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(n[t]=r._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,(0,v.resolveProperties)(n);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"_call",value:function(e,t,n){return _(this,void 0,void 0,(0,a.Z)().mark((function r(){var i,o,s,u,c,l,f,h,m,y,v,g,b,w,x;return(0,a.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n>=10&&S.throwError("CCIP read exceeded maximum redirections",k.Logger.errors.SERVER_ERROR,{redirects:n,transaction:e}),i=e.to,r.next=4,this.perform("call",{transaction:e,blockTag:t});case 4:if(o=r.sent,!(n>=0&&"latest"===t&&null!=i&&"0x556f1830"===o.substring(0,10)&&(0,p.hexDataLength)(o)%32===4)){r.next=31;break}for(r.prev=6,s=(0,p.hexDataSlice)(o,4),u=(0,p.hexDataSlice)(s,0,32),d.O$.from(u).eq(i)||S.throwError("CCIP Read sender did not match",k.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),c=[],l=d.O$.from((0,p.hexDataSlice)(s,32,64)).toNumber(),f=d.O$.from((0,p.hexDataSlice)(s,l,l+32)).toNumber(),h=(0,p.hexDataSlice)(s,l+32),m=0;m<f;m++)null==(y=j(h,32*m))&&S.throwError("CCIP Read contained corrupt URL string",k.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),c.push(y);return v=U(s,64),d.O$.from((0,p.hexDataSlice)(s,100,128)).isZero()||S.throwError("CCIP Read callback selector included junk",k.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),g=(0,p.hexDataSlice)(s,96,100),b=U(s,128),r.next=21,this.ccipReadFetch(e,v,c);case 21:return null==(w=r.sent)&&S.throwError("CCIP Read disabled or provided no URLs",k.Logger.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:e,data:o}),x={to:i,data:(0,p.hexConcat)([g,V([w,b])])},r.abrupt("return",this._call(x,t,n+1));case 27:if(r.prev=27,r.t0=r.catch(6),r.t0.code!==k.Logger.errors.SERVER_ERROR){r.next=31;break}throw r.t0;case 31:return r.prev=31,r.abrupt("return",(0,p.hexlify)(o));case 35:return r.prev=35,r.t1=r.catch(31),r.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"call",params:{transaction:e,blockTag:t},result:o,error:r.t1}));case 38:case"end":return r.stop()}}),r,this,[[6,27],[31,35]])})))}},{key:"call",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,(0,v.resolveProperties)({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t),ccipReadEnabled:Promise.resolve(e.ccipReadEnabled)});case 4:return r=n.sent,n.abrupt("return",this._call(r.transaction,r.blockTag,r.ccipReadEnabled?0:-1));case 6:case"end":return n.stop()}}),n,this)})))}},{key:"estimateGas",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,(0,v.resolveProperties)({transaction:this._getTransactionRequest(e)});case 4:return n=t.sent,t.next=7,this.perform("estimateGas",n);case 7:return r=t.sent,t.prev=8,t.abrupt("return",d.O$.from(r));case 12:return t.prev=12,t.t0=t.catch(8),t.abrupt("return",S.throwError("bad result from backend",k.Logger.errors.SERVER_ERROR,{method:"estimateGas",params:n,result:r,error:t.t0}));case 15:case"end":return t.stop()}}),t,this,[[8,12]])})))}},{key:"_getAddress",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return"string"!==typeof(e=t.sent)&&S.throwArgumentError("invalid address or ENS name","name",e),t.next=6,this.resolveName(e);case 6:return null==(n=t.sent)&&S.throwError("ENS name not configured",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t.abrupt("return",n);case 9:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlock",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i,o=this;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,e;case 4:if(e=n.sent,r=-128,i={includeTransactions:!!t},!(0,p.isHexString)(e,32)){n.next=11;break}i.blockHash=e,n.next=21;break;case 11:return n.prev=11,n.next=14,this._getBlockTag(e);case 14:i.blockTag=n.sent,(0,p.isHexString)(i.blockTag)&&(r=parseInt(i.blockTag.substring(2),16)),n.next=21;break;case 18:n.prev=18,n.t0=n.catch(11),S.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e);case 21:return n.abrupt("return",(0,w.poll)((function(){return _(o,void 0,void 0,(0,a.Z)().mark((function e(){var n,o,s,u,c,l,f=this;return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getBlock",i);case 2:if(null!=(n=e.sent)){e.next=11;break}if(null==i.blockHash){e.next=7;break}if(null!=this._emitted["b:"+i.blockHash]){e.next=7;break}return e.abrupt("return",null);case 7:if(null==i.blockTag){e.next=10;break}if(!(r>this._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}o=null,s=0;case 14:if(!(s<n.transactions.length)){e.next=31;break}if(null!=(u=n.transactions[s]).blockNumber){e.next=20;break}u.confirmations=0,e.next=28;break;case 20:if(null!=u.confirmations){e.next=28;break}if(null!=o){e.next=25;break}return e.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:o=e.sent;case 25:(c=o-u.blockNumber+1)<=0&&(c=1),u.confirmations=c;case 28:s++,e.next=14;break;case 31:return(l=this.formatter.blockWithTransactions(n)).transactions=l.transactions.map((function(e){return f._wrapTransaction(e)})),e.abrupt("return",l);case 34:return e.abrupt("return",this.formatter.block(n));case 35:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 22:case"end":return n.stop()}}),n,this,[[11,18]])})))}},{key:"getBlock",value:function(e){return this._getBlock(e,!1)}},{key:"getBlockWithTransactions",value:function(e){return this._getBlock(e,!0)}},{key:"getTransaction",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,n={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",(0,w.poll)((function(){return _(r,void 0,void 0,(0,a.Z)().mark((function t(){var r,i,o,s;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransaction",n);case 2:if(null!=(r=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=(i=this.formatter.transactionResponse(r)).blockNumber){t.next=12;break}i.confirmations=0,t.next=19;break;case 12:if(null!=i.confirmations){t.next=19;break}return t.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:o=t.sent,(s=o-i.blockNumber+1)<=0&&(s=1),i.confirmations=s;case 19:return t.abrupt("return",this._wrapTransaction(i));case 20:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionReceipt",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r=this;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,n={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",(0,w.poll)((function(){return _(r,void 0,void 0,(0,a.Z)().mark((function t(){var r,i,o,s;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransactionReceipt",n);case 2:if(null!=(r=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=r.blockHash){t.next=9;break}return t.abrupt("return",void 0);case 9:if(null!=(i=this.formatter.receipt(r)).blockNumber){t.next=14;break}i.confirmations=0,t.next=21;break;case 14:if(null!=i.confirmations){t.next=21;break}return t.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:o=t.sent,(s=o-i.blockNumber+1)<=0&&(s=1),i.confirmations=s;case 21:return t.abrupt("return",i);case 22:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getLogs",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,(0,v.resolveProperties)({filter:this._getFilter(e)});case 4:return n=t.sent,t.next=7,this.perform("getLogs",n);case 7:return(r=t.sent).forEach((function(e){null==e.removed&&(e.removed=!1)})),t.abrupt("return",T.Mb.arrayOf(this.formatter.filterLog.bind(this.formatter))(r));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getEtherPrice",value:function(){return _(this,void 0,void 0,(0,a.Z)().mark((function e(){return(0,a.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlockTag",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(!("number"===typeof(e=t.sent)&&e<0)){t.next=11;break}return e%1&&S.throwArgumentError("invalid BlockTag","blockTag",e),t.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return n=t.sent,(n+=e)<0&&(n=0),t.abrupt("return",this.formatter.blockTag(n));case 11:return t.abrupt("return",this.formatter.blockTag(e));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"getResolver",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=e;case 1:if(""!==n&&"."!==n){t.next=4;break}return t.abrupt("return",null);case 4:if("eth"===e||"eth"!==n){t.next=6;break}return t.abrupt("return",null);case 6:return t.next=8,this._getResolver(n,"getResolver");case 8:if(null==(r=t.sent)){t.next=19;break}if(i=new G(this,r,e),t.t0=n!==e,!t.t0){t.next=16;break}return t.next=15,i.supportsWildcard();case 15:t.t0=!t.sent;case 16:if(!t.t0){t.next=18;break}return t.abrupt("return",null);case 18:return t.abrupt("return",i);case 19:n=n.split(".").slice(1).join("."),t.next=1;break;case 22:case"end":return t.stop()}}),t,this)})))}},{key:"_getResolver",value:function(e,t){return _(this,void 0,void 0,(0,a.Z)().mark((function n(){var r,i;return(0,a.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t="ENS"),n.next=3,this.getNetwork();case 3:return(r=n.sent).ensAddress||S.throwError("network does not support ENS",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:t,network:r.name}),n.prev=5,n.next=8,this.call({to:r.ensAddress,data:"0x0178b8bf"+(0,m.VM)(e).substring(2)});case 8:return i=n.sent,n.abrupt("return",this.formatter.callAddress(i));case 12:n.prev=12,n.t0=n.catch(5);case 14:return n.abrupt("return",null);case 15:case"end":return n.stop()}}),n,this,[[5,12]])})))}},{key:"resolveName",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,t.prev=3,t.abrupt("return",Promise.resolve(this.formatter.address(e)));case 7:if(t.prev=7,t.t0=t.catch(3),!(0,p.isHexString)(e)){t.next=11;break}throw t.t0;case 11:return"string"!==typeof e&&S.throwArgumentError("invalid ENS name","name",e),t.next=14,this.getResolver(e);case 14:if(n=t.sent){t.next=17;break}return t.abrupt("return",null);case 17:return t.next=19,n.getAddress();case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t,this,[[3,7]])})))}},{key:"lookupAddress",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,e=this.formatter.address(e),n=e.substring(2).toLowerCase()+".addr.reverse",t.next=7,this._getResolver(n,"lookupAddress");case 7:if(null!=(r=t.sent)){t.next=10;break}return t.abrupt("return",null);case 10:return t.t0=j,t.next=13,this.call({to:r,data:"0x691f3431"+(0,m.VM)(n).substring(2)});case 13:return t.t1=t.sent,i=(0,t.t0)(t.t1,0),t.next=17,this.resolveName(i);case 17:if(t.sent==e){t.next=20;break}return t.abrupt("return",null);case 20:return t.abrupt("return",i);case 21:case"end":return t.stop()}}),t,this)})))}},{key:"getAvatar",value:function(e){return _(this,void 0,void 0,(0,a.Z)().mark((function t(){var n,r,i,o,s,u,c;return(0,a.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=null,!(0,p.isHexString)(e)){t.next=40;break}return r=this.formatter.address(e),i=r.substring(2).toLowerCase()+".addr.reverse",t.next=6,this._getResolver(i,"getAvatar");case 6:if(o=t.sent){t.next=9;break}return t.abrupt("return",null);case 9:return n=new G(this,o,i),t.prev=10,t.next=13,n.getAvatar();case 13:if(!(s=t.sent)){t.next=16;break}return t.abrupt("return",s.url);case 16:t.next=22;break;case 18:if(t.prev=18,t.t0=t.catch(10),t.t0.code===k.Logger.errors.CALL_EXCEPTION){t.next=22;break}throw t.t0;case 22:return t.prev=22,t.t1=j,t.next=26,this.call({to:o,data:"0x691f3431"+(0,m.VM)(i).substring(2)});case 26:return t.t2=t.sent,u=(0,t.t1)(t.t2,0),t.next=30,this.getResolver(u);case 30:n=t.sent,t.next=38;break;case 33:if(t.prev=33,t.t3=t.catch(22),t.t3.code===k.Logger.errors.CALL_EXCEPTION){t.next=37;break}throw t.t3;case 37:return t.abrupt("return",null);case 38:t.next=45;break;case 40:return t.next=42,this.getResolver(e);case 42:if(n=t.sent){t.next=45;break}return t.abrupt("return",null);case 45:return t.next=47,n.getAvatar();case 47:if(null!=(c=t.sent)){t.next=50;break}return t.abrupt("return",null);case 50:return t.abrupt("return",c.url);case 51:case"end":return t.stop()}}),t,this,[[10,18],[22,33]])})))}},{key:"perform",value:function(e,t){return S.throwError(e+" not implemented",k.Logger.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,n){var r=new B(O(e),t,n);return this._events.push(r),this._startEvent(r),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];var o=!1,a=[],s=O(e);return this._events=this._events.filter((function(e){return e.tag!==s||(setTimeout((function(){e.listener.apply(t,r)}),0),o=!0,!e.once||(a.push(e),!1))})),a.forEach((function(e){t._stopEvent(e)})),o}},{key:"listenerCount",value:function(e){if(!e)return this._events.length;var t=O(e);return this._events.filter((function(e){return e.tag===t})).length}},{key:"listeners",value:function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=O(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))}},{key:"off",value:function(e,t){var n=this;if(null==t)return this.removeAllListeners(e);var r=[],i=!1,o=O(e);return this._events=this._events.filter((function(e){return e.tag!==o||e.listener!=t||(!!i||(i=!0,r.push(e),!1))})),r.forEach((function(e){n._stopEvent(e)})),this}},{key:"removeAllListeners",value:function(e){var t=this,n=[];if(null==e)n=this._events,this._events=[];else{var r=O(e);this._events=this._events.filter((function(e){return e.tag!==r||(n.push(e),!1)}))}return n.forEach((function(e){t._stopEvent(e)})),this}}],[{key:"getFormatter",value:function(){return null==W&&(W=new T.Mb),W}},{key:"getNetwork",value:function(e){return(0,y.H)(null==e?"homestead":e)}}]),n}(c.zt)},35136:function(e,t,n){"use strict";n.d(t,{Ed:function(){return m},Gp:function(){return y},Mb:function(){return h},vh:function(){return g}});var r=n(8821),i=n(85169),o=n(27255),a=n(42322),s=n(64369),u=n(63336),c=n(63274),l=n(66522),f=n(56919),d=n(75956),p=new f.Logger(d.i),h=function(){function e(){(0,r.Z)(this,e),this.formats=this.getDefaultFormats()}return(0,i.Z)(e,[{key:"getDefaultFormats",value:function(){var t=this,n={},r=this.address.bind(this),i=this.bigNumber.bind(this),o=this.blockTag.bind(this),a=this.data.bind(this),s=this.hash.bind(this),u=this.hex.bind(this),l=this.number.bind(this),f=this.type.bind(this);return n.transaction={hash:s,type:f,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(s,null),blockNumber:e.allowNull(l,null),transactionIndex:e.allowNull(l,null),confirmations:e.allowNull(l,null),from:r,gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),gasLimit:i,to:e.allowNull(r,null),value:i,nonce:l,data:a,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(l),creates:e.allowNull(r,null),raw:e.allowNull(a)},n.transactionRequest={from:e.allowNull(r),nonce:e.allowNull(l),gasLimit:e.allowNull(i),gasPrice:e.allowNull(i),maxPriorityFeePerGas:e.allowNull(i),maxFeePerGas:e.allowNull(i),to:e.allowNull(r),value:e.allowNull(i),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(l),accessList:e.allowNull(this.accessList.bind(this),null)},n.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:s,address:r,topics:e.arrayOf(s),data:a,logIndex:l,blockHash:s},n.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(r,null),transactionIndex:l,root:e.allowNull(u),gasUsed:i,logsBloom:e.allowNull(a),blockHash:s,transactionHash:s,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:e.allowNull(l,null),cumulativeGasUsed:i,effectiveGasPrice:e.allowNull(i),status:e.allowNull(l),type:f},n.block={hash:e.allowNull(s),parentHash:s,number:l,timestamp:l,nonce:e.allowNull(u),difficulty:this.difficulty.bind(this),gasLimit:i,gasUsed:i,miner:e.allowNull(r),extraData:a,transactions:e.allowNull(e.arrayOf(s)),baseFeePerGas:e.allowNull(i)},n.blockWithTransactions=(0,c.shallowCopy)(n.block),n.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),n.filter={fromBlock:e.allowNull(o,void 0),toBlock:e.allowNull(o,void 0),blockHash:e.allowNull(s,void 0),address:e.allowNull(r,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},n.filterLog={blockNumber:e.allowNull(l),blockHash:e.allowNull(s),transactionIndex:l,removed:e.allowNull(this.boolean.bind(this)),address:r,data:e.allowFalsish(a,"0x"),topics:e.arrayOf(s),transactionHash:s,logIndex:l},n}},{key:"accessList",value:function(e){return(0,l.accessListify)(e||[])}},{key:"number",value:function(e){return"0x"===e?0:a.O$.from(e).toNumber()}},{key:"type",value:function(e){return"0x"===e||null==e?0:a.O$.from(e).toNumber()}},{key:"bigNumber",value:function(e){return a.O$.from(e)}},{key:"boolean",value:function(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),(0,s.isHexString)(e))?e.toLowerCase():p.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var n=this.hex(e,t);if(n.length%2!==0)throw new Error("invalid data; odd-length - "+e);return n}},{key:"address",value:function(e){return(0,o.getAddress)(e)}},{key:"callAddress",value:function(e){if(!(0,s.isHexString)(e,32))return null;var t=(0,o.getAddress)((0,s.hexDataSlice)(e,12));return t===u.d?null:t}},{key:"contractAddress",value:function(e){return(0,o.getContractAddress)(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";switch(e){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return e}if("number"===typeof e||(0,s.isHexString)(e))return(0,s.hexValue)(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var n=this.hex(e,t);return 32!==(0,s.hexDataLength)(n)?p.throwArgumentError("invalid hash","value",e):n}},{key:"difficulty",value:function(e){if(null==e)return null;var t=a.O$.from(e);try{return t.toNumber()}catch(n){}return null}},{key:"uint256",value:function(e){if(!(0,s.isHexString)(e))throw new Error("invalid uint256");return(0,s.hexZeroPad)(e,32)}},{key:"_block",value:function(t,n){null!=t.author&&null==t.miner&&(t.miner=t.author);var r=null!=t._difficulty?t._difficulty:t.difficulty,i=e.check(n,t);return i._difficulty=null==r?null:a.O$.from(r),i}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&a.O$.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var n=e.check(this.formats.transaction,t);if(null!=t.chainId){var r=t.chainId;(0,s.isHexString)(r)&&(r=a.O$.from(r).toNumber()),n.chainId=r}else{var i=t.networkId;null==i&&null==n.v&&(i=t.chainId),(0,s.isHexString)(i)&&(i=a.O$.from(i).toNumber()),"number"!==typeof i&&null!=n.v&&((i=(n.v-35)/2)<0&&(i=0),i=parseInt(i)),"number"!==typeof i&&(i=0),n.chainId=i}return n.blockHash&&"x"===n.blockHash.replace(/0/g,"")&&(n.blockHash=null),n}},{key:"transaction",value:function(e){return(0,l.parse)(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var n=e.check(this.formats.receipt,t);if(null!=n.root)if(n.root.length<=4){var r=a.O$.from(n.root).toNumber();0===r||1===r?(null!=n.status&&n.status!==r&&p.throwArgumentError("alt-root-status/status mismatch","value",{root:n.root,status:n.status}),n.status=r,delete n.root):p.throwArgumentError("invalid alt-root-status","value.root",n.root)}else 66!==n.root.length&&p.throwArgumentError("invalid root hash","value.root",n.root);return null!=n.status&&(n.byzantium=!0),n}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}],[{key:"check",value:function(e,t){var n={};for(var r in e)try{var i=e[r](t[r]);void 0!==i&&(n[r]=i)}catch(o){throw o.checkKey=r,o.checkValue=t[r],o}return n}},{key:"allowNull",value:function(e,t){return function(n){return null==n?t:e(n)}}},{key:"allowFalsish",value:function(e,t){return function(n){return n?e(n):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var n=[];return t.forEach((function(t){n.push(e(t))})),n}}}]),e}();function m(e){return e&&"function"===typeof e.isCommunityResource}function y(e){return m(e)&&e.isCommunityResource()}var v=!1;function g(){v||(v=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}},41469:function(e,t,n){"use strict";n.r(t),n.d(t,{AlchemyProvider:function(){return B},AlchemyWebSocketProvider:function(){return M},AnkrProvider:function(){return L},BaseProvider:function(){return o.Zk},CloudflareProvider:function(){return U},EtherscanProvider:function(){return $},FallbackProvider:function(){return he},Formatter:function(){return d.Mb},InfuraProvider:function(){return be},InfuraWebSocketProvider:function(){return ge},IpcProvider:function(){return me},JsonRpcBatchProvider:function(){return we},JsonRpcProvider:function(){return g.r},JsonRpcSigner:function(){return g.C},NodesmithProvider:function(){return Ae},PocketProvider:function(){return Te},Provider:function(){return r.zt},Resolver:function(){return o.H2},StaticJsonRpcProvider:function(){return I},UrlJsonRpcProvider:function(){return O},Web3Provider:function(){return _e.Q},WebSocketProvider:function(){return _},getDefaultProvider:function(){return Ce},getNetwork:function(){return i.H},isCommunityResourcable:function(){return d.Ed},isCommunityResource:function(){return d.Gp},showThrottleMessage:function(){return d.vh}});var r=n(22090),i=n(1286),o=n(10871),a=n(8821),s=n(85169),u=n(93173),c=n(82248),l=n(8416),f=n(63274),d=n(35136),p=n(46999),h=n(17245),m=n(69803),y=n(2312),v=n(42322),g=n(44266),b=n(56919),w=n(75956),x=null;try{if(null==(x=WebSocket))throw new Error("inject please")}catch(Ie){var A=new b.Logger(w.i);x=function(){A.throwError("WebSockets not supported in this environment",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var k=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},E=new b.Logger(w.i),T=1,_=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i,o;(0,a.Z)(this,n),"any"===r&&E.throwError("WebSocketProvider does not support 'any' network yet",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(o="string"===typeof e?t.call(this,e,r):t.call(this,"_websocket",r))._pollingInterval=-1,o._wsReady=!1,"string"===typeof e?(0,f.defineReadOnly)((0,u.Z)(o),"_websocket",new x(o.connection.url)):(0,f.defineReadOnly)((0,u.Z)(o),"_websocket",e),(0,f.defineReadOnly)((0,u.Z)(o),"_requests",{}),(0,f.defineReadOnly)((0,u.Z)(o),"_subs",{}),(0,f.defineReadOnly)((0,u.Z)(o),"_subIds",{}),(0,f.defineReadOnly)((0,u.Z)(o),"_detectNetwork",(0,m.Z)((i=(0,u.Z)(o),(0,y.Z)(n.prototype)),"detectNetwork",i).call(i)),o.websocket.onopen=function(){o._wsReady=!0,Object.keys(o._requests).forEach((function(e){o.websocket.send(o._requests[e].payload)}))},o.websocket.onmessage=function(e){var t=e.data,n=JSON.parse(t);if(null!=n.id){var r=String(n.id),i=o._requests[r];if(delete o._requests[r],void 0!==n.result)i.callback(null,n.result),o.emit("debug",{action:"response",request:JSON.parse(i.payload),response:n.result,provider:(0,u.Z)(o)});else{var a=null;n.error?(a=new Error(n.error.message||"unknown error"),(0,f.defineReadOnly)(a,"code",n.error.code||null),(0,f.defineReadOnly)(a,"response",t)):a=new Error("unknown error"),i.callback(a,void 0),o.emit("debug",{action:"response",error:a,request:JSON.parse(i.payload),provider:(0,u.Z)(o)})}}else if("eth_subscription"===n.method){var s=o._subs[n.params.subscription];s&&s.processFunc(n.params.result)}else console.warn("this should not happen")};var s=setInterval((function(){o.emit("poll")}),1e3);return s.unref&&s.unref(),(0,h.Z)(o)}return(0,s.Z)(n,[{key:"websocket",get:function(){return this._websocket}},{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){E.throwError("cannot set polling interval on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){E.throwError("cannot reset events block on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return k(this,void 0,void 0,(0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&E.throwError("cannot set polling on WebSocketProvider",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var n=this,r=T++;return new Promise((function(i,o){var a=JSON.stringify({method:e,params:t,id:r,jsonrpc:"2.0"});n.emit("debug",{action:"request",request:JSON.parse(a),provider:n}),n._requests[String(r)]={callback:function(e,t){return e?o(e):i(t)},payload:a},n._wsReady&&n.websocket.send(a)}))}},{key:"_subscribe",value:function(e,t,n){return k(this,void 0,void 0,(0,p.Z)().mark((function r(){var i,o,a=this;return(0,p.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==(i=this._subIds[e])&&(i=Promise.all(t).then((function(e){return a.send("eth_subscribe",e)})),this._subIds[e]=i),r.next=4,i;case 4:o=r.sent,this._subs[o]={tag:e,processFunc:n};case 6:case"end":return r.stop()}}),r,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var n=v.O$.from(e.number).toNumber();t._emitted.block=n,t.emit("block",n)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(n){null==n.removed&&(n.removed=!1),t.emit(e.filter,t.formatter.filterLog(n))}));break;case"tx":var n=function(e){var n=e.hash;t.getTransactionReceipt(n).then((function(e){e&&t.emit(n,e)}))};n(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(n)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,n=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;n="tx"}else if(this.listenerCount(e.event))return;var r=this._subIds[n];r&&(delete this._subIds[n],r.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return k(this,void 0,void 0,(0,p.Z)().mark((function e(){var t=this;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.websocket.readyState!==x.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t.websocket.onopen=function(){e(!0)},t.websocket.onerror=function(){e(!1)}}));case 3:this.websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}],[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}]),n}(g.r),S=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},C=new b.Logger(w.i),I=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"detectNetwork",value:function(){var e=this,t=Object.create(null,{detectNetwork:{get:function(){return(0,m.Z)((0,y.Z)(n.prototype),"detectNetwork",e)}}});return S(this,void 0,void 0,(0,p.Z)().mark((function e(){var n;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=this.network)){e.next=7;break}return e.next=4,t.detectNetwork.call(this);case 4:(n=e.sent)||C.throwError("no network detected",b.Logger.errors.UNKNOWN_ERROR,{}),null==this._network&&((0,f.defineReadOnly)(this,"_network",n),this.emit("network",n,null));case 7:return e.abrupt("return",n);case 8:case"end":return e.stop()}}),e,this)})))}}]),n}(g.r),O=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i;(0,a.Z)(this,n),C.checkAbstract(this instanceof n?this.constructor:void 0,n),e=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getNetwork")(e),r=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getApiKey")(r);var o=(0,f.getStatic)(this instanceof n?this.constructor:void 0,"getUrl")(e,r);return i=t.call(this,o,e),"string"===typeof r?(0,f.defineReadOnly)((0,u.Z)(i),"apiKey",r):null!=r&&Object.keys(r).forEach((function(e){(0,f.defineReadOnly)((0,u.Z)(i),e,r[e])})),i}return(0,s.Z)(n,[{key:"_startPending",value:function(){C.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return C.throwError("API provider does not support signing",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return C.throwError("not implemented; sub-classes must override getUrl",b.Logger.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),n}(I),P=new b.Logger(w.i),R="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",M=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i;(0,a.Z)(this,n);var o=new B(e,r),s=o.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return i=t.call(this,s,o.network),(0,f.defineReadOnly)((0,u.Z)(i),"apiKey",o.apiKey),i}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===R}}]),n}(_),B=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===R}}],[{key:"getWebSocketProvider",value:function(e,t){return new M(e,t)}},{key:"getApiKey",value:function(e){return null==e?R:(e&&"string"!==typeof e&&P.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var n=null;switch(e.name){case"homestead":n="eth-mainnet.alchemyapi.io/v2/";break;case"goerli":n="eth-goerli.g.alchemy.com/v2/";break;case"matic":n="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":n="polygon-mumbai.g.alchemy.com/v2/";break;case"arbitrum":n="arb-mainnet.g.alchemy.com/v2/";break;case"arbitrum-goerli":n="arb-goerli.g.alchemy.com/v2/";break;case"optimism":n="opt-mainnet.g.alchemy.com/v2/";break;case"optimism-goerli":n="opt-goerli.g.alchemy.com/v2/";break;default:P.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+n+t,throttleCallback:function(e,n){return t===R&&(0,d.vh)(),Promise.resolve(!0)}}}}]),n}(O),N=new b.Logger(w.i),F="9f7d929b018cdffb338517efa06f58359e86ff1ffd350bc889738523659e7972";function D(e){switch(e){case"homestead":return"rpc.ankr.com/eth/";case"ropsten":return"rpc.ankr.com/eth_ropsten/";case"rinkeby":return"rpc.ankr.com/eth_rinkeby/";case"goerli":return"rpc.ankr.com/eth_goerli/";case"matic":return"rpc.ankr.com/polygon/";case"arbitrum":return"rpc.ankr.com/arbitrum/"}return N.throwArgumentError("unsupported network","name",e)}var L=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.apiKey===F}}],[{key:"getApiKey",value:function(e){return null==e?F:e}},{key:"getUrl",value:function(e,t){null==t&&(t=F);var n={allowGzip:!0,url:"https://"+D(e.name)+t,throttleCallback:function(e,n){return t.apiKey===F&&(0,d.vh)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),n}(O),z=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},j=new b.Logger(w.i),U=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"perform",value:function(e,t){var r=this,i=Object.create(null,{perform:{get:function(){return(0,m.Z)((0,y.Z)(n.prototype),"perform",r)}}});return z(this,void 0,void 0,(0,p.Z)().mark((function n(){var r;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("getBlockNumber"!==e){n.next=5;break}return n.next=3,i.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return r=n.sent,n.abrupt("return",r.number);case 5:return n.abrupt("return",i.perform.call(this,e,t));case 6:case"end":return n.stop()}}),n,this)})))}}],[{key:"getApiKey",value:function(e){return null!=e&&j.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var n=null;if("homestead"===e.name)n="https://cloudflare-eth.com/";else j.throwArgumentError("unsupported network","network",arguments[0]);return n}}]),n}(O),Z=n(64369),q=n(66522),H=n(77379),V=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},G=new b.Logger(w.i);function W(e){var t={};for(var n in e)if(null!=e[n]){var r=e[n];"type"===n&&0===r||(r={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[n]?(0,Z.hexValue)((0,Z.hexlify)(r)):"accessList"===n?"["+(0,q.accessListify)(r).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]":(0,Z.hexlify)(r),t[n]=r)}return t}function K(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"string"!==typeof e.message||!e.message.match(/^OK/)){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function J(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var n=new Error("invalid response");throw n.result=JSON.stringify(e),n}if(e.error){var r=new Error(e.error.message||"unknown error");throw e.error.code&&(r.code=e.error.code),e.error.data&&(r.data=e.error.data),r}return e.result}function X(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function Y(e,t,n){if("call"===e&&t.code===b.Logger.errors.SERVER_ERROR){var r=t.error;if(r&&(r.message.match(/reverted/i)||r.message.match(/VM execution error/i))){var i=r.data;if(i&&(i="0x"+i.replace(/^.*0x/i,"")),(0,Z.isHexString)(i))return i;G.throwError("missing revert data in call exception",b.Logger.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var o=t.message;throw t.code===b.Logger.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?o=t.error.message:"string"===typeof t.body?o=t.body:"string"===typeof t.responseText&&(o=t.responseText)),(o=(o||"").toLowerCase()).match(/insufficient funds/)&&G.throwError("insufficient funds for intrinsic transaction cost",b.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:n}),o.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&G.throwError("nonce has already been used",b.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:n}),o.match(/another transaction with same nonce/)&&G.throwError("replacement fee too low",b.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:n}),o.match(/execution failed due to an exception|execution reverted/)&&G.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:n}),t}var $=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i;return(0,a.Z)(this,n),i=t.call(this,e),(0,f.defineReadOnly)((0,u.Z)(i),"baseUrl",i.getBaseUrl()),(0,f.defineReadOnly)((0,u.Z)(i),"apiKey",r||null),i}return(0,s.Z)(n,[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io";case"sepolia":return"https://api-sepolia.etherscan.io";case"matic":return"https://api.polygonscan.com";case"maticmum":return"https://api-testnet.polygonscan.com";case"arbitrum":return"https://api.arbiscan.io";case"arbitrum-goerli":return"https://api-goerli.arbiscan.io";case"optimism":return"https://api-optimistic.etherscan.io";case"optimism-goerli":return"https://api-goerli-optimistic.etherscan.io"}return G.throwArgumentError("unsupported network","network",this.network.name)}},{key:"getUrl",value:function(e,t){var n=Object.keys(t).reduce((function(e,n){var r=t[n];return null!=r&&(e+="&".concat(n,"=").concat(r)),e}),""),r=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(n).concat(r)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,n){return V(this,void 0,void 0,(0,p.Z)().mark((function r(){var i,o,a,s,u,c,l=this;return(0,p.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=n?this.getPostUrl():this.getUrl(e,t),o=n?this.getPostData(e,t):null,a="proxy"===e?J:K,this.emit("debug",{action:"request",request:i,provider:this}),s={url:i,throttleSlotInterval:1e3,throttleCallback:function(e,t){return l.isCommunityResource()&&(0,d.vh)(),Promise.resolve(!0)}},u=null,o&&(s.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},u=Object.keys(o).map((function(e){return"".concat(e,"=").concat(o[e])})).join("&")),r.next=9,(0,H.fetchJson)(s,u,a||J);case 9:return c=r.sent,this.emit("debug",{action:"response",request:i,response:(0,f.deepCopy)(c),provider:this}),r.abrupt("return",c);case 12:case"end":return r.stop()}}),r,this)})))}},{key:"detectNetwork",value:function(){return V(this,void 0,void 0,(0,p.Z)().mark((function e(){return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var r=this,i=Object.create(null,{perform:{get:function(){return(0,m.Z)((0,y.Z)(n.prototype),"perform",r)}}});return V(this,void 0,void 0,(0,p.Z)().mark((function n(){var r,o,a,s,u,c,l,f,d;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:n.t0=e,n.next="getBlockNumber"===n.t0?3:"getGasPrice"===n.t0?4:"getBalance"===n.t0?5:"getTransactionCount"===n.t0?6:"getCode"===n.t0?7:"getStorageAt"===n.t0?8:"sendTransaction"===n.t0?9:"getBlock"===n.t0?10:"getTransaction"===n.t0?13:"getTransactionReceipt"===n.t0?14:"call"===n.t0?15:"estimateGas"===n.t0?29:"getLogs"===n.t0?41:"getEtherPrice"===n.t0?65:72;break;case 3:return n.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return n.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return n.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag}));case 6:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag}));case 7:return n.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag}));case 8:return n.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag}));case 9:return n.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return Y("sendTransaction",e,t.signedTransaction)})));case 10:if(!t.blockTag){n.next=12;break}return n.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash}));case 14:return n.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash}));case 15:if("latest"===t.blockTag){n.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(r=W(t.transaction)).module="proxy",r.action="eth_call",n.prev=20,n.next=23,this.fetch("proxy",r,!0);case 23:return n.abrupt("return",n.sent);case 26:return n.prev=26,n.t1=n.catch(20),n.abrupt("return",Y("call",n.t1,t.transaction));case 29:return(o=W(t.transaction)).module="proxy",o.action="eth_estimateGas",n.prev=32,n.next=35,this.fetch("proxy",o,!0);case 35:return n.abrupt("return",n.sent);case 38:return n.prev=38,n.t2=n.catch(32),n.abrupt("return",Y("estimateGas",n.t2,t.transaction));case 41:return a={action:"getLogs"},t.filter.fromBlock&&(a.fromBlock=X(t.filter.fromBlock)),t.filter.toBlock&&(a.toBlock=X(t.filter.toBlock)),t.filter.address&&(a.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&G.throwError("unsupported topic count",b.Logger.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"===typeof(s=t.filter.topics[0])&&66===s.length||G.throwError("unsupported topic format",b.Logger.errors.UNSUPPORTED_OPERATION,{topic0:s}),a.topic0=s)),n.next=48,this.fetch("logs",a);case 48:u=n.sent,c={},l=0;case 51:if(!(l<u.length)){n.next=64;break}if(null==(f=u[l]).blockHash){n.next=55;break}return n.abrupt("continue",61);case 55:if(null!=c[f.blockNumber]){n.next=60;break}return n.next=58,this.getBlock(f.blockNumber);case 58:(d=n.sent)&&(c[f.blockNumber]=d.hash);case 60:f.blockHash=c[f.blockNumber];case 61:l++,n.next=51;break;case 64:return n.abrupt("return",u);case 65:if("homestead"===this.network.name){n.next=67;break}return n.abrupt("return",0);case 67:return n.t3=parseFloat,n.next=70,this.fetch("stats",{action:"ethprice"});case 70:return n.t4=n.sent.ethusd,n.abrupt("return",(0,n.t3)(n.t4));case 72:return n.abrupt("break",73);case 73:return n.abrupt("return",i.perform.call(this,e,t));case 74:case"end":return n.stop()}}),n,this,[[20,26],[32,38]])})))}},{key:"getHistory",value:function(e,t,n){return V(this,void 0,void 0,(0,p.Z)().mark((function r(){var i,o,a=this;return(0,p.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.resolveName(e);case 2:return r.t0=r.sent,r.t1=null==t?0:t,r.t2=null==n?99999999:n,i={action:"txlist",address:r.t0,startblock:r.t1,endblock:r.t2,sort:"asc"},r.next=8,this.fetch("account",i);case 8:return o=r.sent,r.abrupt("return",o.map((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var t=a.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})));case 10:case"end":return r.stop()}}),r,this)})))}},{key:"isCommunityResource",value:function(){return null==this.apiKey}}]),n}(o.Zk),Q=n(69101),ee=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},te=new b.Logger(w.i);function ne(){return(new Date).getTime()}function re(e){for(var t=null,n=0;n<e.length;n++){var r=e[n];if(null==r)return null;t?t.name===r.name&&t.chainId===r.chainId&&(t.ensAddress===r.ensAddress||null==t.ensAddress&&null==r.ensAddress)||te.throwArgumentError("provider mismatch","networks",e):t=r}return t}function ie(e,t){e=e.slice().sort();var n=Math.floor(e.length/2);if(e.length%2)return e[n];var r=e[n-1],i=e[n];return null!=t&&Math.abs(r-i)>t?null:(r+i)/2}function oe(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(v.O$.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return oe(e)})));if("object"===typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var n=e[t];return n="function"===typeof n?"[function]":oe(n),JSON.stringify(t)+":"+n})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var ae=1;function se(e){var t=null,n=null,r=new Promise((function(r){t=function(){n&&(clearTimeout(n),n=null),r()},n=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return r},wait:function(e){return r=r.then(e)}}}var ue=[b.Logger.errors.CALL_EXCEPTION,b.Logger.errors.INSUFFICIENT_FUNDS,b.Logger.errors.NONCE_EXPIRED,b.Logger.errors.REPLACEMENT_UNDERPRICED,b.Logger.errors.UNPREDICTABLE_GAS_LIMIT],ce=["address","args","errorArgs","errorSignature","method","transaction"];function le(e,t){var n={weight:e.weight};return Object.defineProperty(n,"provider",{get:function(){return e.provider}}),e.start&&(n.start=e.start),t&&(n.duration=t-e.start),e.done&&(e.error?n.error=e.error:n.result=e.result||null),n}function fe(e,t,n){var r=oe;switch(t){case"getBlockNumber":return function(t){var n=t.map((function(e){return e.result})),r=ie(t.map((function(e){return e.result})),2);if(null!=r)return r=Math.ceil(r),n.indexOf(r+1)>=0&&r++,r>=e._highestBlockNumber&&(e._highestBlockNumber=r),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return ie(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":r=function(e){return null==e?null:((e=(0,f.shallowCopy)(e)).confirmations=-1,oe(e))};break;case"getBlock":r=n.includeTransactions?function(e){return null==e?null:((e=(0,f.shallowCopy)(e)).transactions=e.transactions.map((function(e){return(e=(0,f.shallowCopy)(e)).confirmations=-1,e})),oe(e))}:function(e){return null==e?null:oe(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(n){var r={};n.forEach((function(t){var n=e(t.result);r[n]||(r[n]={count:0,result:t.result}),r[n].count++}));for(var i=Object.keys(r),o=0;o<i.length;o++){var a=r[i[o]];if(a.count>=t)return a.result}}}(r,e.quorum)}function de(e,t){return ee(this,void 0,void 0,(0,p.Z)().mark((function n(){var r;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!(null!=(r=e.provider).blockNumber&&r.blockNumber>=t||-1===t)){n.next=3;break}return n.abrupt("return",r);case 3:return n.abrupt("return",(0,H.poll)((function(){return new Promise((function(n,i){setTimeout((function(){return r.blockNumber>=t?n(r):e.cancelled?n(null):n(void 0)}),0)}))}),{oncePoll:r}));case 4:case"end":return n.stop()}}),n)})))}function pe(e,t,n,r){return ee(this,void 0,void 0,(0,p.Z)().mark((function i(){var o,a;return(0,p.Z)().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=e.provider,i.t0=n,i.next="getBlockNumber"===i.t0||"getGasPrice"===i.t0?4:"getEtherPrice"===i.t0?5:"getBalance"===i.t0||"getTransactionCount"===i.t0||"getCode"===i.t0?8:"getStorageAt"===i.t0?13:"getBlock"===i.t0?18:"call"===i.t0||"estimateGas"===i.t0?23:"getTransaction"===i.t0||"getTransactionReceipt"===i.t0?30:"getLogs"===i.t0?31:37;break;case 4:return i.abrupt("return",o[n]());case 5:if(!o.getEtherPrice){i.next=7;break}return i.abrupt("return",o.getEtherPrice());case 7:return i.abrupt("break",37);case 8:if(!r.blockTag||!(0,Z.isHexString)(r.blockTag)){i.next=12;break}return i.next=11,de(e,t);case 11:o=i.sent;case 12:return i.abrupt("return",o[n](r.address,r.blockTag||"latest"));case 13:if(!r.blockTag||!(0,Z.isHexString)(r.blockTag)){i.next=17;break}return i.next=16,de(e,t);case 16:o=i.sent;case 17:return i.abrupt("return",o.getStorageAt(r.address,r.position,r.blockTag||"latest"));case 18:if(!r.blockTag||!(0,Z.isHexString)(r.blockTag)){i.next=22;break}return i.next=21,de(e,t);case 21:o=i.sent;case 22:return i.abrupt("return",o[r.includeTransactions?"getBlockWithTransactions":"getBlock"](r.blockTag||r.blockHash));case 23:if(!r.blockTag||!(0,Z.isHexString)(r.blockTag)){i.next=27;break}return i.next=26,de(e,t);case 26:o=i.sent;case 27:if("call"!==n||!r.blockTag){i.next=29;break}return i.abrupt("return",o[n](r.transaction,r.blockTag));case 29:return i.abrupt("return",o[n](r.transaction));case 30:return i.abrupt("return",o[n](r.transactionHash));case 31:if(!((a=r.filter).fromBlock&&(0,Z.isHexString)(a.fromBlock)||a.toBlock&&(0,Z.isHexString)(a.toBlock))){i.next=36;break}return i.next=35,de(e,t);case 35:o=i.sent;case 36:return i.abrupt("return",o.getLogs(a));case 37:return i.abrupt("return",te.throwError("unknown method error",b.Logger.errors.UNKNOWN_ERROR,{method:n,params:r}));case 38:case"end":return i.stop()}}),i)})))}var he=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,i){var o;(0,a.Z)(this,n),0===e.length&&te.throwArgumentError("missing providers","providers",e);var s=e.map((function(e,t){if(r.zt.isProvider(e)){var n=(0,d.Gp)(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:n,priority:1})}var i=(0,f.shallowCopy)(e);null==i.priority&&(i.priority=1),null==i.stallTimeout&&(i.stallTimeout=(0,d.Gp)(e)?2e3:750),null==i.weight&&(i.weight=1);var o=i.weight;return(o%1||o>512||o<1)&&te.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),o),Object.freeze(i)})),c=s.reduce((function(e,t){return e+t.weight}),0);null==i?i=c/2:i>c&&te.throwArgumentError("quorum will always fail; larger than total weight","quorum",i);var l=re(s.map((function(e){return e.provider.network})));return null==l&&(l=new Promise((function(e,t){setTimeout((function(){o.detectNetwork().then(e,t)}),0)}))),o=t.call(this,l),(0,f.defineReadOnly)((0,u.Z)(o),"providerConfigs",Object.freeze(s)),(0,f.defineReadOnly)((0,u.Z)(o),"quorum",i),o._highestBlockNumber=-1,o}return(0,s.Z)(n,[{key:"detectNetwork",value:function(){return ee(this,void 0,void 0,(0,p.Z)().mark((function e(){var t;return(0,p.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",re(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return ee(this,void 0,void 0,(0,p.Z)().mark((function n(){var r,i,o,a,s,u,c,l,d,h,m=this;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("sendTransaction"!==e){n.next=13;break}return n.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:r=n.sent,i=0;case 5:if(!(i<r.length)){n.next=12;break}if("string"!==typeof(o=r[i])){n.next=9;break}return n.abrupt("return",o);case 9:i++,n.next=5;break;case 12:throw r[0];case 13:if(-1!==this._highestBlockNumber||"getBlockNumber"===e){n.next=16;break}return n.next=16,this.getBlockNumber();case 16:a=fe(this,e,t),(s=(0,Q.y)(this.providerConfigs.map(f.shallowCopy))).sort((function(e,t){return e.priority-t.priority})),u=this._highestBlockNumber,c=0,l=!0,d=(0,p.Z)().mark((function n(){var r,i,o,d,h,y,v;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=ne(),i=s.filter((function(e){return e.runner&&r-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),o=(0,p.Z)().mark((function n(){var r,o;return(0,p.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=s[c++],o=ae++,r.start=ne(),r.staller=se(r.stallTimeout),r.staller.wait((function(){r.staller=null})),r.runner=pe(r,u,e,t).then((function(n){r.done=!0,r.result=n,m.listenerCount("debug")&&m.emit("debug",{action:"request",rid:o,backend:le(r,ne()),request:{method:e,params:(0,f.deepCopy)(t)},provider:m})}),(function(n){r.done=!0,r.error=n,m.listenerCount("debug")&&m.emit("debug",{action:"request",rid:o,backend:le(r,ne()),request:{method:e,params:(0,f.deepCopy)(t)},provider:m})})),m.listenerCount("debug")&&m.emit("debug",{action:"request",rid:o,backend:le(r,null),request:{method:e,params:(0,f.deepCopy)(t)},provider:m}),i+=r.weight;case 8:case"end":return n.stop()}}),n)}));case 3:if(!(i<m.quorum&&c<s.length)){n.next=7;break}return n.delegateYield(o(),"t0",5);case 5:n.next=3;break;case 7:if(d=[],s.forEach((function(e){!e.done&&e.runner&&(d.push(e.runner),e.staller&&d.push(e.staller.getPromise()))})),!d.length){n.next=12;break}return n.next=12,Promise.race(d);case 12:if(!((h=s.filter((function(e){return e.done&&null==e.error}))).length>=m.quorum)){n.next=22;break}if(void 0===(y=a(h))){n.next=18;break}return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",{v:y});case 18:if(l){n.next=21;break}return n.next=21,se(100).getPromise();case 21:l=!1;case 22:if(v=s.reduce((function(e,t){if(!t.done||null==t.error)return e;var n=t.error.code;return ue.indexOf(n)>=0&&(e[n]||(e[n]={error:t.error,weight:0}),e[n].weight+=t.weight),e}),{}),Object.keys(v).forEach((function(e){var t=v[e];if(!(t.weight<m.quorum)){s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var n=t.error,r={};ce.forEach((function(e){null!=n[e]&&(r[e]=n[e])})),te.throwError(n.reason||n.message,e,r)}})),0!==s.filter((function(e){return!e.done})).length){n.next=26;break}return n.abrupt("return","break");case 26:case"end":return n.stop()}}),n)}));case 23:return n.delegateYield(d(),"t0",25);case 25:if("break"!==(h=n.t0)){n.next=28;break}return n.abrupt("break",32);case 28:if("object"!==typeof h){n.next=30;break}return n.abrupt("return",h.v);case 30:n.next=23;break;case 32:return s.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),n.abrupt("return",te.throwError("failed to meet quorum",b.Logger.errors.SERVER_ERROR,{method:e,params:t,results:s.map((function(e){return le(e)})),provider:this}));case 34:case"end":return n.stop()}}),n,this)})))}}]),n}(o.Zk),me=null,ye=new b.Logger(w.i),ve="84842078b09946638c03157f83405213",ge=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i;(0,a.Z)(this,n);var o=new be(e,r),s=o.connection;s.password&&ye.throwError("INFURA WebSocket project secrets unsupported",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var c=s.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return i=t.call(this,c,e),(0,f.defineReadOnly)((0,u.Z)(i),"apiKey",o.projectId),(0,f.defineReadOnly)((0,u.Z)(i),"projectId",o.projectId),(0,f.defineReadOnly)((0,u.Z)(i),"projectSecret",o.projectSecret),i}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.projectId===ve}}]),n}(_),be=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.projectId===ve}}],[{key:"getWebSocketProvider",value:function(e,t){return new ge(e,t)}},{key:"getApiKey",value:function(e){var t={apiKey:ve,projectId:ve,projectSecret:null};return null==e||("string"===typeof e?t.projectId=e:null!=e.projectSecret?(ye.assertArgument("string"===typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),ye.assertArgument("string"===typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}},{key:"getUrl",value:function(e,t){var n=null;switch(e?e.name:"unknown"){case"homestead":n="mainnet.infura.io";break;case"goerli":n="goerli.infura.io";break;case"sepolia":n="sepolia.infura.io";break;case"matic":n="polygon-mainnet.infura.io";break;case"maticmum":n="polygon-mumbai.infura.io";break;case"optimism":n="optimism-mainnet.infura.io";break;case"optimism-goerli":n="optimism-goerli.infura.io";break;case"arbitrum":n="arbitrum-mainnet.infura.io";break;case"arbitrum-goerli":n="arbitrum-goerli.infura.io";break;default:ye.throwError("unsupported network",b.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var r={allowGzip:!0,url:"https://"+n+"/v3/"+t.projectId,throttleCallback:function(e,n){return t.projectId===ve&&(0,d.vh)(),Promise.resolve(!0)}};return null!=t.projectSecret&&(r.user="",r.password=t.projectSecret),r}}]),n}(O),we=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var i={request:r,resolve:null,reject:null},o=new Promise((function(e,t){i.resolve=e,i.reject=t}));return this._pendingBatch.push(i),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=n._pendingBatch;n._pendingBatch=null,n._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return n.emit("debug",{action:"requestBatch",request:(0,f.deepCopy)(t),provider:n}),(0,H.fetchJson)(n.connection,JSON.stringify(t)).then((function(r){n.emit("debug",{action:"response",request:t,response:r,provider:n}),e.forEach((function(e,t){var n=r[t];if(n.error){var i=new Error(n.error.message);i.code=n.error.code,i.data=n.error.data,e.reject(i)}else e.resolve(n.result)}))}),(function(r){n.emit("debug",{action:"response",error:r,request:t,provider:n}),e.forEach((function(e){e.reject(r)}))}))}),10)),o}}]),n}(g.r),xe=new b.Logger(w.i),Ae=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,null,[{key:"getApiKey",value:function(e){return e&&"string"!==typeof e&&xe.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}},{key:"getUrl",value:function(e,t){xe.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var n=null;switch(e.name){case"homestead":n="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":n="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":n="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":n="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":n="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:xe.throwArgumentError("unsupported network","network",arguments[0])}return n+"?apiKey="+t}}]),n}(O),ke=new b.Logger(w.i),Ee="62e1ad51b37b8e00394bda3b",Te=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"isCommunityResource",value:function(){return this.applicationId===Ee}}],[{key:"getApiKey",value:function(e){var t={applicationId:null,loadBalancer:!0,applicationSecretKey:null};return null==e?t.applicationId=Ee:"string"===typeof e?t.applicationId=e:null!=e.applicationSecretKey?(t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey):e.applicationId?t.applicationId=e.applicationId:ke.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}},{key:"getUrl",value:function(e,t){var n=null;switch(e?e.name:"unknown"){case"goerli":n="eth-goerli.gateway.pokt.network";break;case"homestead":n="eth-mainnet.gateway.pokt.network";break;case"kovan":n="poa-kovan.gateway.pokt.network";break;case"matic":n="poly-mainnet.gateway.pokt.network";break;case"maticmum":n="polygon-mumbai-rpc.gateway.pokt.network";break;case"rinkeby":n="eth-rinkeby.gateway.pokt.network";break;case"ropsten":n="eth-ropsten.gateway.pokt.network";break;default:ke.throwError("unsupported network",b.Logger.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var r={headers:{},url:"https://".concat(n,"/v1/lb/").concat(t.applicationId)};return null!=t.applicationSecretKey&&(r.user="",r.password=t.applicationSecretKey),r}}]),n}(O),_e=n(46385),Se=new b.Logger(w.i);function Ce(e,t){if(null==e&&(e="homestead"),"string"===typeof e){var n=e.match(/^(ws|http)s?:/i);if(n)switch(n[1].toLowerCase()){case"http":case"https":return new g.r(e);case"ws":case"wss":return new _(e);default:Se.throwArgumentError("unsupported URL scheme","network",e)}}var r=(0,i.H)(e);return r&&r._defaultProvider||Se.throwError("unsupported getDefaultProvider network",b.Logger.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),r._defaultProvider({FallbackProvider:he,AlchemyProvider:B,AnkrProvider:L,CloudflareProvider:U,EtherscanProvider:$,InfuraProvider:be,JsonRpcProvider:g.r,NodesmithProvider:Ae,PocketProvider:Te,Web3Provider:_e.Q,IpcProvider:me},t)}},44266:function(e,t,n){"use strict";n.d(t,{C:function(){return P},r:function(){return B}});var r=n(69803),i=n(2312),o=n(46999),a=n(8821),s=n(85169),u=n(93173),c=n(82248),l=n(8416),f=n(50162),d=n(42322),p=n(64369),h=n(93139),m=n(63274),y=n(25459),v=n(66522),g=n(77379),b=n(56919),w=n(75956),x=n(10871),A=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},k=new b.Logger(w.i),E=["call","estimateGas"];function T(e,t){if(null==e)return null;if("string"===typeof e.message&&e.message.match("reverted")){var n=(0,p.isHexString)(e.data)?e.data:null;if(!t||n)return{message:e.message,data:n}}if("object"===typeof e){for(var r in e){var i=T(e[r],t);if(i)return i}return null}if("string"===typeof e)try{return T(JSON.parse(e),t)}catch(o){}return null}function _(e,t,n){var r=n.transaction||n.signedTransaction;if("call"===e){var i=T(t,!0);if(i)return i.data;k.throwError("missing revert data in call exception; Transaction reverted without a reason string",b.Logger.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:t})}if("estimateGas"===e){var o=T(t.body,!1);null==o&&(o=T(t,!1)),o&&k.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{reason:o.message,method:e,transaction:r,error:t})}var a=t.message;throw t.code===b.Logger.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?a=t.error.message:"string"===typeof t.body?a=t.body:"string"===typeof t.responseText&&(a=t.responseText),(a=(a||"").toLowerCase()).match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&k.throwError("insufficient funds for intrinsic transaction cost",b.Logger.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),a.match(/nonce (is )?too low/i)&&k.throwError("nonce has already been used",b.Logger.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),a.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&k.throwError("replacement fee too low",b.Logger.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),a.match(/only replay-protected/i)&&k.throwError("legacy pre-eip-155 transactions not supported",b.Logger.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:r}),E.indexOf(e)>=0&&a.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&k.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",b.Logger.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}function S(e){return new Promise((function(t){setTimeout(t,e)}))}function C(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function I(e){return e?e.toLowerCase():e}var O={},P=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r,i){var o;if((0,a.Z)(this,n),o=t.call(this),e!==O)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return(0,m.defineReadOnly)((0,u.Z)(o),"provider",r),null==i&&(i=0),"string"===typeof i?((0,m.defineReadOnly)((0,u.Z)(o),"_address",o.provider.formatter.address(i)),(0,m.defineReadOnly)((0,u.Z)(o),"_index",null)):"number"===typeof i?((0,m.defineReadOnly)((0,u.Z)(o),"_index",i),(0,m.defineReadOnly)((0,u.Z)(o),"_address",null)):k.throwArgumentError("invalid address or index","addressOrIndex",i),o}return(0,s.Z)(n,[{key:"connect",value:function(e){return k.throwError("cannot alter JSON-RPC Signer connection",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new R(O,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&k.throwError("unknown account #"+e._index,b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=(0,m.shallowCopy)(e);var n=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var r=(0,m.shallowCopy)(e);r.from=n,e.gasLimit=this.provider.estimateGas(r)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return A(t,void 0,void 0,(0,o.Z)().mark((function t(){var n;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(n=t.sent)&&k.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",n);case 7:case"end":return t.stop()}}),t,this)})))}))),(0,m.resolveProperties)({tx:(0,m.resolveProperties)(e),sender:n}).then((function(n){var r=n.tx,i=n.sender;null!=r.from?r.from.toLowerCase()!==i&&k.throwArgumentError("from address mismatch","transaction",e):r.from=i;var o=t.provider.constructor.hexlifyTransaction(r,{from:!0});return t.provider.send("eth_sendTransaction",[o]).then((function(e){return e}),(function(e){return"string"===typeof e.message&&e.message.match(/user denied/i)&&k.throwError("user rejected transaction",b.Logger.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:r}),_("sendTransaction",e,o)}))}))}},{key:"signTransaction",value:function(e){return k.throwError("signing transactions is unsupported",b.Logger.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return A(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r,i=this;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return n=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return r=t.sent,t.prev=6,t.next=9,(0,g.poll)((function(){return A(i,void 0,void 0,(0,o.Z)().mark((function e(){var t;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(r);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,r,n));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=r,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return A(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"===typeof e?(0,y.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("personal_sign",[(0,p.hexlify)(n),r.toLowerCase()]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"===typeof t.t0.message&&t.t0.message.match(/user denied/i)&&k.throwError("user rejected signing",b.Logger.errors.ACTION_REJECTED,{action:"signMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_legacySignMessage",value:function(e){return A(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n="string"===typeof e?(0,y.Y0)(e):e,t.next=3,this.getAddress();case 3:return r=t.sent,t.prev=4,t.next=7,this.provider.send("eth_sign",[r.toLowerCase(),(0,p.hexlify)(n)]);case 7:return t.abrupt("return",t.sent);case 10:throw t.prev=10,t.t0=t.catch(4),"string"===typeof t.t0.message&&t.t0.message.match(/user denied/i)&&k.throwError("user rejected signing",b.Logger.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:r,messageData:e}),t.t0;case 14:case"end":return t.stop()}}),t,this,[[4,10]])})))}},{key:"_signTypedData",value:function(e,t,n){return A(this,void 0,void 0,(0,o.Z)().mark((function r(){var i,a,s=this;return(0,o.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.E.resolveNames(e,t,n,(function(e){return s.provider.resolveName(e)}));case 2:return i=r.sent,r.next=5,this.getAddress();case 5:return a=r.sent,r.prev=6,r.next=9,this.provider.send("eth_signTypedData_v4",[a.toLowerCase(),JSON.stringify(h.E.getPayload(i.domain,t,i.value))]);case 9:return r.abrupt("return",r.sent);case 12:throw r.prev=12,r.t0=r.catch(6),"string"===typeof r.t0.message&&r.t0.message.match(/user denied/i)&&k.throwError("user rejected signing",b.Logger.errors.ACTION_REJECTED,{action:"_signTypedData",from:a,messageData:{domain:i.domain,types:t,value:i.value}}),r.t0;case 16:case"end":return r.stop()}}),r,this,[[6,12]])})))}},{key:"unlock",value:function(e){return A(this,void 0,void 0,(0,o.Z)().mark((function t(){var n,r;return(0,o.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=this.provider,t.next=3,this.getAddress();case 3:return r=t.sent,t.abrupt("return",n.send("personal_unlockAccount",[r.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),n}(f.E),R=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(){return(0,a.Z)(this,n),t.apply(this,arguments)}return(0,s.Z)(n,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(n){return t.provider.waitForTransaction(e,n)}}}))}}]),n}(P),M={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},B=function(e){(0,c.Z)(n,e);var t=(0,l.Z)(n);function n(e,r){var i;(0,a.Z)(this,n);var o=r;return null==o&&(o=new Promise((function(e,t){setTimeout((function(){i.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),i=t.call(this,o),e||(e=(0,m.getStatic)(i.constructor,"defaultUrl")()),"string"===typeof e?(0,m.defineReadOnly)((0,u.Z)(i),"connection",Object.freeze({url:e})):(0,m.defineReadOnly)((0,u.Z)(i),"connection",Object.freeze((0,m.shallowCopy)(e))),i._nextId=42,i}return(0,s.Z)(n,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return A(this,void 0,void 0,(0,o.Z)().mark((function e(){var t,n;return(0,o.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,S(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return n=(0,m.getStatic)(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",n(d.O$.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",k.throwError("could not detect network",b.Logger.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",k.throwError("could not detect network",b.Logger.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new P(O,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var n=this,r={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:(0,m.deepCopy)(r),provider:this});var i=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(i&&this._cache[e])return this._cache[e];var o=(0,g.fetchJson)(this.connection,JSON.stringify(r),C).then((function(e){return n.emit("debug",{action:"response",request:r,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",error:e,request:r,provider:n}),e}));return i&&(this._cache[e]=o,setTimeout((function(){n._cache[e]=null}),0)),o}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[I(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[I(t.address),t.blockTag]];case"getCode":return["eth_getCode",[I(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[I(t.address),(0,p.hexZeroPad)(t.position,32),t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[(0,m.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[(0,m.getStatic)(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=I(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return A(this,void 0,void 0,(0,o.Z)().mark((function n(){var r,i,a;return(0,o.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if("call"!==e&&"estimateGas"!==e){n.next=8;break}if(!(r=t.transaction)||null==r.type||!d.O$.from(r.type).isZero()){n.next=8;break}if(null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas){n.next=8;break}return n.next=6,this.getFeeData();case 6:null==(i=n.sent).maxFeePerGas&&null==i.maxPriorityFeePerGas&&((t=(0,m.shallowCopy)(t)).transaction=(0,m.shallowCopy)(r),delete t.transaction.type);case 8:return null==(a=this.prepareRequest(e,t))&&k.throwError(e+" not implemented",b.Logger.errors.NOT_IMPLEMENTED,{operation:e}),n.prev=10,n.next=13,this.send(a[0],a[1]);case 13:return n.abrupt("return",n.sent);case 16:return n.prev=16,n.t0=n.catch(10),n.abrupt("return",_(e,n.t0,t));case 19:case"end":return n.stop()}}),n,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),(0,r.Z)((0,i.Z)(n.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(n){return function r(){e.send("eth_getFilterChanges",[n]).then((function(n){if(e._pendingFilter!=t)return null;var r=Promise.resolve();return n.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",r=r.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),r.then((function(){return S(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){r()}),0),null;e.send("eth_uninstallFilter",[n])})).catch((function(e){}))}(),n})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),(0,r.Z)((0,i.Z)(n.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var n=(0,m.shallowCopy)(M);if(t)for(var r in t)t[r]&&(n[r]=!0);(0,m.checkProperties)(e,n);var i={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var n=(0,p.hexValue)(d.O$.from(e[t]));"gasLimit"===t&&(t="gas"),i[t]=n}})),["from","to","data"].forEach((function(t){null!=e[t]&&(i[t]=(0,p.hexlify)(e[t]))})),e.accessList&&(i.accessList=(0,v.accessListify)(e.accessList)),i}}]),n}(x.Zk)},46385:function(e,t,n){"use strict";n.d(t,{Q:function(){return m}});var r=n(8821),i=n(85169),o=n(93173),a=n(82248),s=n(8416),u=n(63274),c=n(56919),l=n(75956),f=n(44266),d=new c.Logger(l.i),p=1;function h(e,t){var n="Web3LegacyFetcher";return function(e,r){var i=this,o={method:e,params:r,id:p++,jsonrpc:"2.0"};return new Promise((function(e,r){i.emit("debug",{action:"request",fetcher:n,request:(0,u.deepCopy)(o),provider:i}),t(o,(function(t,a){if(t)return i.emit("debug",{action:"response",fetcher:n,error:t,request:o,provider:i}),r(t);if(i.emit("debug",{action:"response",fetcher:n,request:o,response:a,provider:i}),a.error){var s=new Error(a.error.message);return s.code=a.error.code,s.data=a.error.data,r(s)}e(a.result)}))}))}}var m=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e,i){var a;(0,r.Z)(this,n),null==e&&d.throwArgumentError("missing provider","provider",e);var s=null,c=null,l=null;return"function"===typeof e?(s="unknown:",c=e):(!(s=e.host||e.path||"")&&e.isMetaMask&&(s="metamask"),l=e,e.request?(""===s&&(s="eip-1193:"),c=function(e){return function(t,n){var r=this;null==n&&(n=[]);var i={method:t,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:(0,u.deepCopy)(i),provider:this}),e.request(i).then((function(e){return r.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:i,error:e,provider:r}),e}))}}(e)):e.sendAsync?c=h(0,e.sendAsync.bind(e)):e.send?c=h(0,e.send.bind(e)):d.throwArgumentError("unsupported provider","provider",e),s||(s="unknown:")),a=t.call(this,s,i),(0,u.defineReadOnly)((0,o.Z)(a),"jsonRpcFetchFunc",c),(0,u.defineReadOnly)((0,o.Z)(a),"provider",l),a}return(0,i.Z)(n,[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}]),n}(f.r)},42391:function(e,t,n){"use strict";n.r(t),n.d(t,{randomBytes:function(){return r.O},shuffled:function(){return i.y}});var r=n(39536),i=n(69101)},39536:function(e,t,n){"use strict";n.d(t,{O:function(){return u}});var r=n(64369),i=n(56919),o=new i.Logger("random/5.7.0");var a=function(){if("undefined"!==typeof self)return self;if("undefined"!==typeof window)return window;if("undefined"!==typeof n.g)return n.g;throw new Error("unable to locate global object")}(),s=a.crypto||a.msCrypto;function u(e){(e<=0||e>1024||e%1||e!=e)&&o.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return s.getRandomValues(t),(0,r.arrayify)(t)}s&&s.getRandomValues||(o.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return o.throwError("no secure random source avaialble",i.Logger.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})},69101:function(e,t,n){"use strict";function r(e){for(var t=(e=e.slice()).length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),r=e[t];e[t]=e[n],e[n]=r}return e}n.d(t,{y:function(){return r}})},38110:function(e,t,n){"use strict";n.r(t),n.d(t,{decode:function(){return d},encode:function(){return c}});var r=n(64369),i=n(56919),o=new i.Logger("rlp/5.7.0");function a(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function s(e,t,n){for(var r=0,i=0;i<n;i++)r=256*r+e[t+i];return r}function u(e){if(Array.isArray(e)){var t=[];if(e.forEach((function(e){t=t.concat(u(e))})),t.length<=55)return t.unshift(192+t.length),t;var n=a(t.length);return n.unshift(247+n.length),n.concat(t)}(0,r.isBytesLike)(e)||o.throwArgumentError("RLP object must be BytesLike","object",e);var i=Array.prototype.slice.call((0,r.arrayify)(e));if(1===i.length&&i[0]<=127)return i;if(i.length<=55)return i.unshift(128+i.length),i;var s=a(i.length);return s.unshift(183+s.length),s.concat(i)}function c(e){return(0,r.hexlify)(u(e))}function l(e,t,n,r){for(var a=[];n<t+1+r;){var s=f(e,n);a.push(s.result),(n+=s.consumed)>t+1+r&&o.throwError("child data too short",i.Logger.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:a}}function f(e,t){if(0===e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),e[t]>=248){var n=e[t]-247;t+1+n>e.length&&o.throwError("data short segment too short",i.Logger.errors.BUFFER_OVERRUN,{});var a=s(e,t+1,n);return t+1+n+a>e.length&&o.throwError("data long segment too short",i.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1+n,n+a)}if(e[t]>=192){var u=e[t]-192;return t+1+u>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),l(e,t,t+1,u)}if(e[t]>=184){var c=e[t]-183;t+1+c>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{});var f=s(e,t+1,c);return t+1+c+f>e.length&&o.throwError("data array too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+c+f,result:(0,r.hexlify)(e.slice(t+1+c,t+1+c+f))}}if(e[t]>=128){var d=e[t]-128;return t+1+d>e.length&&o.throwError("data too short",i.Logger.errors.BUFFER_OVERRUN,{}),{consumed:1+d,result:(0,r.hexlify)(e.slice(t+1,t+1+d))}}return{consumed:1,result:(0,r.hexlify)(e[t])}}function d(e){var t=(0,r.arrayify)(e),n=f(t,0);return n.consumed!==t.length&&o.throwArgumentError("invalid rlp data","data",e),n.result}},24031:function(e,t,n){"use strict";n.r(t),n.d(t,{SupportedAlgorithm:function(){return i.p},computeHmac:function(){return r.Gy},ripemd160:function(){return r.bP},sha256:function(){return r.JQ},sha512:function(){return r.o}});var r=n(35477),i=n(34858)},35477:function(e,t,n){"use strict";n.d(t,{Gy:function(){return d},bP:function(){return c},JQ:function(){return l},o:function(){return f}});var r=n(12303),i=n.n(r),o=n(64369),a=n(34858),s=n(56919),u=new s.Logger("sha2/5.7.0");function c(e){return"0x"+i().ripemd160().update((0,o.arrayify)(e)).digest("hex")}function l(e){return"0x"+i().sha256().update((0,o.arrayify)(e)).digest("hex")}function f(e){return"0x"+i().sha512().update((0,o.arrayify)(e)).digest("hex")}function d(e,t,n){return a.p[e]||u.throwError("unsupported algorithm "+e,s.Logger.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+i().hmac(i()[e],(0,o.arrayify)(t)).update((0,o.arrayify)(n)).digest("hex")}},34858:function(e,t,n){"use strict";var r;n.d(t,{p:function(){return r}}),function(e){e.sha256="sha256",e.sha512="sha512"}(r||(r={}))},98087:function(e,t,n){"use strict";n.r(t),n.d(t,{SigningKey:function(){return X},computePublicKey:function(){return $},recoverPublicKey:function(){return Y}});var r=n(8821),i=n(85169),o=n(72086),a=n.n(o),s=n(12303),u=n.n(s);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self&&self;function c(e,t,n){return n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&n.path)}},e(n,n.exports),n.exports}var l=f;function f(e,t){if(!e)throw new Error(t||"Assertion failed")}f.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)};var d=c((function(e,t){var n=t;function r(e){return 1===e.length?"0"+e:e}function i(e){for(var t="",n=0;n<e.length;n++)t+=r(e[n].toString(16));return t}n.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"!==typeof e){for(var r=0;r<e.length;r++)n[r]=0|e[r];return n}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(r=0;r<e.length;r+=2)n.push(parseInt(e[r]+e[r+1],16))}else for(r=0;r<e.length;r++){var i=e.charCodeAt(r),o=i>>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(e,t){return"hex"===t?i(e):e}})),p=c((function(e,t){var n=t;n.assert=l,n.toArray=d.toArray,n.zero2=d.zero2,n.toHex=d.toHex,n.encode=d.encode,n.getNAF=function(e,t,n){var r=new Array(Math.max(e.bitLength(),n)+1);r.fill(0);for(var i=1<<t+1,o=e.clone(),a=0;a<r.length;a++){var s,u=o.andln(i-1);o.isOdd()?(s=u>(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(e,t){var n=[[],[]];e=e.clone(),t=t.clone();for(var r,i=0,o=0;e.cmpn(-i)>0||t.cmpn(-o)>0;){var a,s,u=e.andln(3)+i&3,c=t.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0===(1&u)?0:3!==(r=e.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0===(1&c)?0:3!==(r=t.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),e.iushrn(1),t.iushrn(1)}return n},n.cachedProperty=function(e,t,n){var r="_"+t;e.prototype[t]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(e){return"string"===typeof e?n.toArray(e,"hex"):e},n.intFromLE=function(e){return new(a())(e,"hex","le")}})),h=p.getNAF,m=p.getJSF,y=p.assert;function v(e,t){this.type=e,this.p=new(a())(t.p,16),this.red=t.prime?a().red(t.prime):a().mont(this.p),this.zero=new(a())(0).toRed(this.red),this.one=new(a())(1).toRed(this.red),this.two=new(a())(2).toRed(this.red),this.n=t.n&&new(a())(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var g=v;function b(e,t){this.curve=e,this.type=t,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(e,t){y(e.precomputed);var n=e._getDoubles(),r=h(t,1,this._bitLength),i=(1<<n.step+1)-(n.step%2===0?2:1);i/=3;var o,a,s=[];for(o=0;o<r.length;o+=n.step){a=0;for(var u=o+n.step-1;u>=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),f=i;f>0;f--){for(o=0;o<s.length;o++)(a=s[o])===f?l=l.mixedAdd(n.points[o]):a===-f&&(l=l.mixedAdd(n.points[o].neg()));c=c.add(l)}return c.toP()},v.prototype._wnafMul=function(e,t){var n=4,r=e._getNAFPoints(n);n=r.wnd;for(var i=r.points,o=h(t,n,this._bitLength),a=this.jpoint(null,null,null),s=o.length-1;s>=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];y(0!==c),a="affine"===e.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===e.type?a.toP():a},v.prototype._wnafMulAdd=function(e,t,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,f=0;for(o=0;o<r;o++){var d=(s=t[o])._getNAFPoints(e);u[o]=d.wnd,c[o]=d.points}for(o=r-1;o>=1;o-=2){var p=o-1,y=o;if(1===u[p]&&1===u[y]){var v=[t[p],null,null,t[y]];0===t[p].y.cmp(t[y].y)?(v[1]=t[p].add(t[y]),v[2]=t[p].toJ().mixedAdd(t[y].neg())):0===t[p].y.cmp(t[y].y.redNeg())?(v[1]=t[p].toJ().mixedAdd(t[y]),v[2]=t[p].add(t[y].neg())):(v[1]=t[p].toJ().mixedAdd(t[y]),v[2]=t[p].toJ().mixedAdd(t[y].neg()));var g=[-3,-1,-5,-7,0,7,5,1,3],b=m(n[p],n[y]);for(f=Math.max(b[0].length,f),l[p]=new Array(f),l[y]=new Array(f),a=0;a<f;a++){var w=0|b[0][a],x=0|b[1][a];l[p][a]=g[3*(w+1)+(x+1)],l[y][a]=0,c[p]=v}}else l[p]=h(n[p],u[p],this._bitLength),l[y]=h(n[y],u[y],this._bitLength),f=Math.max(l[p].length,f),f=Math.max(l[y].length,f)}var A=this.jpoint(null,null,null),k=this._wnafT4;for(o=f;o>=0;o--){for(var E=0;o>=0;){var T=!0;for(a=0;a<r;a++)k[a]=0|l[a][o],0!==k[a]&&(T=!1);if(!T)break;E++,o--}if(o>=0&&E++,A=A.dblp(E),o<0)break;for(a=0;a<r;a++){var _=k[a];0!==_&&(_>0?s=c[a][_-1>>1]:_<0&&(s=c[a][-_-1>>1].neg()),A="affine"===s.type?A.mixedAdd(s):A.add(s))}}for(o=0;o<r;o++)c[o]=null;return i?A:A.toP()},v.BasePoint=b,b.prototype.eq=function(){throw new Error("Not implemented")},b.prototype.validate=function(){return this.curve.validate(this)},v.prototype.decodePoint=function(e,t){e=p.toArray(e,t);var n=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*n)return 6===e[0]?y(e[e.length-1]%2===0):7===e[0]&&y(e[e.length-1]%2===1),this.point(e.slice(1,1+n),e.slice(1+n,1+2*n));if((2===e[0]||3===e[0])&&e.length-1===n)return this.pointFromX(e.slice(1,1+n),3===e[0]);throw new Error("Unknown point format")},b.prototype.encodeCompressed=function(e){return this.encode(e,!0)},b.prototype._encode=function(e){var t=this.curve.p.byteLength(),n=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(n):[4].concat(n,this.getY().toArray("be",t))},b.prototype.encode=function(e,t){return p.encode(this._encode(t),e)},b.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},b.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},b.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i<t;i+=e){for(var o=0;o<e;o++)r=r.dbl();n.push(r)}return{step:e,points:n}},b.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],n=(1<<e)-1,r=1===n?null:this.dbl(),i=1;i<n;i++)t[i]=t[i-1].add(r);return{wnd:e,points:t}},b.prototype._getBeta=function(){return null},b.prototype.dblp=function(e){for(var t=this,n=0;n<e;n++)t=t.dbl();return t};var w=c((function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}})),x=p.assert;function A(e){g.call(this,"short",e),this.a=new(a())(e.a,16).toRed(this.red),this.b=new(a())(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}w(A,g);var k=A;function E(e,t,n,r){g.BasePoint.call(this,e,"affine"),null===t&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new(a())(t,16),this.y=new(a())(n,16),r&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function T(e,t,n,r){g.BasePoint.call(this,e,"jacobian"),null===t&&null===n&&null===r?(this.x=this.curve.one,this.y=this.curve.one,this.z=new(a())(0)):(this.x=new(a())(t,16),this.y=new(a())(n,16),this.z=new(a())(r,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}A.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,n;if(e.beta)t=new(a())(e.beta,16).toRed(this.red);else{var r=this._getEndoRoots(this.p);t=(t=r[0].cmp(r[1])<0?r[0]:r[1]).toRed(this.red)}if(e.lambda)n=new(a())(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?n=i[0]:(n=i[1],x(0===this.g.mul(n).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:n,basis:e.basis?e.basis.map((function(e){return{a:new(a())(e.a,16),b:new(a())(e.b,16)}})):this._getEndoBasis(n)}}},A.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:a().mont(e),n=new(a())(2).toRed(t).redInvm(),r=n.redNeg(),i=new(a())(3).toRed(t).redNeg().redSqrt().redMul(n);return[r.redAdd(i).fromRed(),r.redSub(i).fromRed()]},A.prototype._getEndoBasis=function(e){for(var t,n,r,i,o,s,u,c,l,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=e,p=this.n.clone(),h=new(a())(1),m=new(a())(0),y=new(a())(0),v=new(a())(1),g=0;0!==d.cmpn(0);){var b=p.div(d);c=p.sub(b.mul(d)),l=y.sub(b.mul(h));var w=v.sub(b.mul(m));if(!r&&c.cmp(f)<0)t=u.neg(),n=h,r=c.neg(),i=l;else if(r&&2===++g)break;u=c,p=d,d=c,y=h,h=l,v=m,m=w}o=c.neg(),s=l;var x=r.sqr().add(i.sqr());return o.sqr().add(s.sqr()).cmp(x)>=0&&(o=t,s=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),s=s.neg()),[{a:r,b:i},{a:o,b:s}]},A.prototype._endoSplit=function(e){var t=this.endo.basis,n=t[0],r=t[1],i=r.b.mul(e).divRound(this.n),o=n.b.neg().mul(e).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:e.sub(a).sub(s),k2:u.add(c).neg()}},A.prototype.pointFromX=function(e,t){(e=new(a())(e,16)).red||(e=e.toRed(this.red));var n=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(t&&!i||!t&&i)&&(r=r.redNeg()),this.point(e,r)},A.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,n=e.y,r=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},A.prototype._endoWnafMulAdd=function(e,t,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o<e.length;o++){var a=this._endoSplit(t[o]),s=e[o],u=s._getBeta();a.k1.negative&&(a.k1.ineg(),s=s.neg(!0)),a.k2.negative&&(a.k2.ineg(),u=u.neg(!0)),r[2*o]=s,r[2*o+1]=u,i[2*o]=a.k1,i[2*o+1]=a.k2}for(var c=this._wnafMulAdd(1,r,i,2*o,n),l=0;l<2*o;l++)r[l]=null,i[l]=null;return c},w(E,g.BasePoint),A.prototype.point=function(e,t,n){return new E(this,e,t,n)},A.prototype.pointFromJSON=function(e,t){return E.fromJSON(this,e,t)},E.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var n=this.curve,r=function(e){return n.point(e.x.redMul(n.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(r)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(r)}}}return t}},E.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},E.fromJSON=function(e,t,n){"string"===typeof t&&(t=JSON.parse(t));var r=e.point(t[0],t[1],n);if(!t[2])return r;function i(t){return e.point(t[0],t[1],n)}var o=t[2];return r.precomputed={beta:null,doubles:o.doubles&&{step:o.doubles.step,points:[r].concat(o.doubles.points.map(i))},naf:o.naf&&{wnd:o.naf.wnd,points:[r].concat(o.naf.points.map(i))}},r},E.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},E.prototype.isInfinity=function(){return this.inf},E.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var n=t.redSqr().redISub(this.x).redISub(e.x),r=t.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},E.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,n=this.x.redSqr(),r=e.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(t).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},E.prototype.getX=function(){return this.x.fromRed()},E.prototype.getY=function(){return this.y.fromRed()},E.prototype.mul=function(e){return e=new(a())(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},E.prototype.mulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},E.prototype.jmulAdd=function(e,t,n){var r=[this,t],i=[e,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},E.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},E.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var n=this.precomputed,r=function(e){return e.neg()};t.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return t},E.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},w(T,g.BasePoint),A.prototype.jpoint=function(e,t,n){return new T(this,e,t,n)},T.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),n=this.x.redMul(t),r=this.y.redMul(t).redMul(e);return this.curve.point(n,r)},T.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},T.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(t),i=e.x.redMul(n),o=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),f=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(f).redISub(f),p=u.redMul(f.redISub(d)).redISub(o.redMul(l)),h=this.z.redMul(e.z).redMul(s);return this.curve.jpoint(d,p,h)},T.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),n=this.x,r=e.x.redMul(t),i=this.y,o=e.y.redMul(t).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),f=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(f)).redISub(i.redMul(c)),p=this.z.redMul(a);return this.curve.jpoint(f,d,p)},T.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var n=this;for(t=0;t<e;t++)n=n.dbl();return n}var r=this.curve.a,i=this.curve.tinv,o=this.x,a=this.y,s=this.z,u=s.redSqr().redSqr(),c=a.redAdd(a);for(t=0;t<e;t++){var l=o.redSqr(),f=c.redSqr(),d=f.redSqr(),p=l.redAdd(l).redIAdd(l).redIAdd(r.redMul(u)),h=o.redMul(f),m=p.redSqr().redISub(h.redAdd(h)),y=h.redISub(m),v=p.redMul(y);v=v.redIAdd(v).redISub(d);var g=c.redMul(s);t+1<e&&(u=u.redMul(d)),o=m,s=g,c=v}return this.curve.jpoint(o,c.redMul(i),s)},T.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},T.prototype._zeroDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r),u=s.redSqr().redISub(a).redISub(a),c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),e=u,t=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.x.redSqr(),f=this.y.redSqr(),d=f.redSqr(),p=this.x.redAdd(f).redSqr().redISub(l).redISub(d);p=p.redIAdd(p);var h=l.redAdd(l).redIAdd(l),m=h.redSqr(),y=d.redIAdd(d);y=(y=y.redIAdd(y)).redIAdd(y),e=m.redISub(p).redISub(p),t=h.redMul(p.redISub(e)).redISub(y),n=(n=this.y.redMul(this.z)).redIAdd(n)}return this.curve.jpoint(e,t,n)},T.prototype._threeDbl=function(){var e,t,n;if(this.zOne){var r=this.x.redSqr(),i=this.y.redSqr(),o=i.redSqr(),a=this.x.redAdd(i).redSqr().redISub(r).redISub(o);a=a.redIAdd(a);var s=r.redAdd(r).redIAdd(r).redIAdd(this.curve.a),u=s.redSqr().redISub(a).redISub(a);e=u;var c=o.redIAdd(o);c=(c=c.redIAdd(c)).redIAdd(c),t=s.redMul(a.redISub(u)).redISub(c),n=this.y.redAdd(this.y)}else{var l=this.z.redSqr(),f=this.y.redSqr(),d=this.x.redMul(f),p=this.x.redSub(l).redMul(this.x.redAdd(l));p=p.redAdd(p).redIAdd(p);var h=d.redIAdd(d),m=(h=h.redIAdd(h)).redAdd(h);e=p.redSqr().redISub(m),n=this.y.redAdd(this.z).redSqr().redISub(f).redISub(l);var y=f.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=p.redMul(h.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,n)},T.prototype._dbl=function(){var e=this.curve.a,t=this.x,n=this.y,r=this.z,i=r.redSqr().redSqr(),o=t.redSqr(),a=n.redSqr(),s=o.redAdd(o).redIAdd(o).redIAdd(e.redMul(i)),u=t.redAdd(t),c=(u=u.redIAdd(u)).redMul(a),l=s.redSqr().redISub(c.redAdd(c)),f=c.redISub(l),d=a.redSqr();d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=s.redMul(f).redISub(d),h=n.redAdd(n).redMul(r);return this.curve.jpoint(l,p,h)},T.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),n=this.z.redSqr(),r=t.redSqr(),i=e.redAdd(e).redIAdd(e),o=i.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(r),s=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(o)).redSqr(),u=r.redIAdd(r);u=(u=(u=u.redIAdd(u)).redIAdd(u)).redIAdd(u);var c=i.redIAdd(a).redSqr().redISub(o).redISub(s).redISub(u),l=t.redMul(c);l=(l=l.redIAdd(l)).redIAdd(l);var f=this.x.redMul(s).redISub(l);f=(f=f.redIAdd(f)).redIAdd(f);var d=this.y.redMul(c.redMul(u.redISub(c)).redISub(a.redMul(s)));d=(d=(d=d.redIAdd(d)).redIAdd(d)).redIAdd(d);var p=this.z.redAdd(a).redSqr().redISub(n).redISub(s);return this.curve.jpoint(f,d,p)},T.prototype.mul=function(e,t){return e=new(a())(e,t),this.curve._wnafMul(this,e)},T.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),n=e.z.redSqr();if(0!==this.x.redMul(n).redISub(e.x.redMul(t)).cmpn(0))return!1;var r=t.redMul(this.z),i=n.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(r)).cmpn(0)},T.prototype.eqXToP=function(e){var t=this.z.redSqr(),n=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(n))return!0;for(var r=e.clone(),i=this.curve.redN.redMul(t);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},T.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},T.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var _=c((function(e,t){var n=t;n.base=g,n.short=k,n.mont=null,n.edwards=null})),S=c((function(e,t){var n,r=t,i=p.assert;function o(e){"short"===e.type?this.curve=new _.short(e):"edwards"===e.type?this.curve=new _.edwards(e):this.curve=new _.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(e,t){Object.defineProperty(r,e,{configurable:!0,enumerable:!0,get:function(){var n=new o(t);return Object.defineProperty(r,e,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:u().sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:u().sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:u().sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:u().sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:u().sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:u().sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:u().sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(s){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:u().sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function C(e){if(!(this instanceof C))return new C(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=d.toArray(e.entropy,e.entropyEnc||"hex"),n=d.toArray(e.nonce,e.nonceEnc||"hex"),r=d.toArray(e.pers,e.persEnc||"hex");l(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,n,r)}var I=C;C.prototype._init=function(e,t,n){var r=e.concat(t).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i<this.V.length;i++)this.K[i]=0,this.V[i]=1;this._update(r),this._reseed=1,this.reseedInterval=281474976710656},C.prototype._hmac=function(){return new(u().hmac)(this.hash,this.K)},C.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},C.prototype.reseed=function(e,t,n,r){"string"!==typeof t&&(r=n,n=t,t=null),e=d.toArray(e,t),n=d.toArray(n,r),l(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(n||[])),this._reseed=1},C.prototype.generate=function(e,t,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(r=n,n=t,t=null),n&&(n=d.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length<e;)this.V=this._hmac().update(this.V).digest(),i=i.concat(this.V);var o=i.slice(0,e);return this._update(n),this._reseed++,d.encode(o,t)};var O=p.assert;function P(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var R=P;P.fromPublic=function(e,t,n){return t instanceof P?t:new P(e,{pub:t,pubEnc:n})},P.fromPrivate=function(e,t,n){return t instanceof P?t:new P(e,{priv:t,privEnc:n})},P.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},P.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},P.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},P.prototype._importPrivate=function(e,t){this.priv=new(a())(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},P.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?O(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||O(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},P.prototype.derive=function(e){return e.validate()||O(e.validate(),"public point not validated"),e.mul(this.priv).getX()},P.prototype.sign=function(e,t,n){return this.ec.sign(e,this,t,n)},P.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},P.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var M=p.assert;function B(e,t){if(e instanceof B)return e;this._importDER(e,t)||(M(e.r&&e.s,"Signature without r or s"),this.r=new(a())(e.r,16),this.s=new(a())(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var N=B;function F(){this.place=0}function D(e,t){var n=e[t.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=t.place;o<r;o++,a++)i<<=8,i|=e[a],i>>>=0;return!(i<=127)&&(t.place=a,i)}function L(e){for(var t=0,n=e.length-1;!e[t]&&!(128&e[t+1])&&t<n;)t++;return 0===t?e:e.slice(t)}function z(e,t){if(t<128)e.push(t);else{var n=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|n);--n;)e.push(t>>>(n<<3)&255);e.push(t)}}B.prototype._importDER=function(e,t){e=p.toArray(e,t);var n=new F;if(48!==e[n.place++])return!1;var r=D(e,n);if(!1===r)return!1;if(r+n.place!==e.length)return!1;if(2!==e[n.place++])return!1;var i=D(e,n);if(!1===i)return!1;var o=e.slice(n.place,i+n.place);if(n.place+=i,2!==e[n.place++])return!1;var s=D(e,n);if(!1===s)return!1;if(e.length!==s+n.place)return!1;var u=e.slice(n.place,s+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new(a())(o),this.s=new(a())(u),this.recoveryParam=null,!0},B.prototype.toDER=function(e){var t=this.r.toArray(),n=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&n[0]&&(n=[0].concat(n)),t=L(t),n=L(n);!n[0]&&!(128&n[1]);)n=n.slice(1);var r=[2];z(r,t.length),(r=r.concat(t)).push(2),z(r,n.length);var i=r.concat(n),o=[48];return z(o,i.length),o=o.concat(i),p.encode(o,e)};var j=function(){throw new Error("unsupported")},U=p.assert;function Z(e){if(!(this instanceof Z))return new Z(e);"string"===typeof e&&(U(Object.prototype.hasOwnProperty.call(S,e),"Unknown curve "+e),e=S[e]),e instanceof S.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var q=Z;Z.prototype.keyPair=function(e){return new R(this,e)},Z.prototype.keyFromPrivate=function(e,t){return R.fromPrivate(this,e,t)},Z.prototype.keyFromPublic=function(e,t){return R.fromPublic(this,e,t)},Z.prototype.genKeyPair=function(e){e||(e={});for(var t=new I({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||j(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new(a())(2));;){var i=new(a())(t.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},Z.prototype._truncateToN=function(e,t){var n=8*e.byteLength()-this.n.bitLength();return n>0&&(e=e.ushrn(n)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},Z.prototype.sign=function(e,t,n,r){"object"===typeof n&&(r=n,n=null),r||(r={}),t=this.keyFromPrivate(t,n),e=this._truncateToN(new(a())(e,16));for(var i=this.n.byteLength(),o=t.getPrivate().toArray("be",i),s=e.toArray("be",i),u=new I({hash:this.hash,entropy:o,nonce:s,pers:r.pers,persEnc:r.persEnc||"utf8"}),c=this.n.sub(new(a())(1)),l=0;;l++){var f=r.k?r.k(l):new(a())(u.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(c)>=0)){var d=this.g.mul(f);if(!d.isInfinity()){var p=d.getX(),h=p.umod(this.n);if(0!==h.cmpn(0)){var m=f.invm(this.n).mul(h.mul(t.getPrivate()).iadd(e));if(0!==(m=m.umod(this.n)).cmpn(0)){var y=(d.getY().isOdd()?1:0)|(0!==p.cmp(h)?2:0);return r.canonical&&m.cmp(this.nh)>0&&(m=this.n.sub(m),y^=1),new N({r:h,s:m,recoveryParam:y})}}}}}},Z.prototype.verify=function(e,t,n,r){e=this._truncateToN(new(a())(e,16)),n=this.keyFromPublic(n,r);var i=(t=new N(t,"hex")).r,o=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var s,u=o.invm(this.n),c=u.mul(e).umod(this.n),l=u.mul(i).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(c,n.getPublic(),l)).isInfinity()&&s.eqXToP(i):!(s=this.g.mulAdd(c,n.getPublic(),l)).isInfinity()&&0===s.getX().umod(this.n).cmp(i)},Z.prototype.recoverPubKey=function(e,t,n,r){U((3&n)===n,"The recovery param is more than two bits"),t=new N(t,r);var i=this.n,o=new(a())(e),s=t.r,u=t.s,c=1&n,l=n>>1;if(s.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw new Error("Unable to find sencond key candinate");s=l?this.curve.pointFromX(s.add(this.curve.n),c):this.curve.pointFromX(s,c);var f=t.r.invm(i),d=i.sub(o).mul(f).umod(i),p=u.mul(f).umod(i);return this.g.mulAdd(d,s,p)},Z.prototype.getKeyRecoveryParam=function(e,t,n,r){if(null!==(t=new N(t,r)).recoveryParam)return t.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(e,t,i)}catch(e){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var H=c((function(e,t){var n=t;n.version="6.5.4",n.utils=p,n.rand=function(){throw new Error("unsupported")},n.curve=_,n.curves=S,n.ec=q,n.eddsa=null})).ec,V=n(64369),G=n(63274),W=new(n(56919).Logger)("signing-key/5.7.0"),K=null;function J(){return K||(K=new H("secp256k1")),K}var X=function(){function e(t){(0,r.Z)(this,e),(0,G.defineReadOnly)(this,"curve","secp256k1"),(0,G.defineReadOnly)(this,"privateKey",(0,V.hexlify)(t)),32!==(0,V.hexDataLength)(this.privateKey)&&W.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=J().keyFromPrivate((0,V.arrayify)(this.privateKey));(0,G.defineReadOnly)(this,"publicKey","0x"+n.getPublic(!1,"hex")),(0,G.defineReadOnly)(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),(0,G.defineReadOnly)(this,"_isSigningKey",!0)}return(0,i.Z)(e,[{key:"_addPoint",value:function(e){var t=J().keyFromPublic((0,V.arrayify)(this.publicKey)),n=J().keyFromPublic((0,V.arrayify)(e));return"0x"+t.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=J().keyFromPrivate((0,V.arrayify)(this.privateKey)),n=(0,V.arrayify)(e);32!==n.length&&W.throwArgumentError("bad digest length","digest",e);var r=t.sign(n,{canonical:!0});return(0,V.splitSignature)({recoveryParam:r.recoveryParam,r:(0,V.hexZeroPad)("0x"+r.r.toString(16),32),s:(0,V.hexZeroPad)("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=J().keyFromPrivate((0,V.arrayify)(this.privateKey)),n=J().keyFromPublic((0,V.arrayify)($(e)));return(0,V.hexZeroPad)("0x"+t.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function Y(e,t){var n=(0,V.splitSignature)(t),r={r:(0,V.arrayify)(n.r),s:(0,V.arrayify)(n.s)};return"0x"+J().recoverPubKey((0,V.arrayify)(e),r,n.recoveryParam).encode("hex",!1)}function $(e,t){var n=(0,V.arrayify)(e);if(32===n.length){var r=new X(n);return t?"0x"+J().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?t?(0,V.hexlify)(n):"0x"+J().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?t?"0x"+J().keyFromPublic(n).getPublic(!0,"hex"):(0,V.hexlify)(n):W.throwArgumentError("invalid public or private key","key","[REDACTED]")}},69338:function(e,t,n){"use strict";n.r(t),n.d(t,{keccak256:function(){return y},pack:function(){return m},sha256:function(){return v}});var r=n(42322),i=n(64369),o=n(8082),a=n(35477),s=n(25459),u=n(56919),c=new RegExp("^bytes([0-9]+)$"),l=new RegExp("^(u?int)([0-9]*)$"),f=new RegExp("^(.*)\\[([0-9]*)\\]$"),d="0000000000000000000000000000000000000000000000000000000000000000",p=new u.Logger("solidity/5.7.0");function h(e,t,n){switch(e){case"address":return n?(0,i.zeroPad)(t,32):(0,i.arrayify)(t);case"string":return(0,s.Y0)(t);case"bytes":return(0,i.arrayify)(t);case"bool":return t=t?"0x01":"0x00",n?(0,i.zeroPad)(t,32):(0,i.arrayify)(t)}var o=e.match(l);if(o){var a=parseInt(o[2]||"256");return(o[2]&&String(a)!==o[2]||a%8!==0||0===a||a>256)&&p.throwArgumentError("invalid number type","type",e),n&&(a=256),t=r.O$.from(t).toTwos(a),(0,i.zeroPad)(t,a/8)}if(o=e.match(c)){var u=parseInt(o[1]);return(String(u)!==o[1]||0===u||u>32)&&p.throwArgumentError("invalid bytes type","type",e),(0,i.arrayify)(t).byteLength!==u&&p.throwArgumentError("invalid value for ".concat(e),"value",t),n?(0,i.arrayify)((t+d).substring(0,66)):t}if((o=e.match(f))&&Array.isArray(t)){var m=o[1];parseInt(o[2]||String(t.length))!=t.length&&p.throwArgumentError("invalid array length for ".concat(e),"value",t);var y=[];return t.forEach((function(e){y.push(h(m,e,!0))})),(0,i.concat)(y)}return p.throwArgumentError("invalid type","type",e)}function m(e,t){e.length!=t.length&&p.throwArgumentError("wrong number of values; expected ${ types.length }","values",t);var n=[];return e.forEach((function(e,r){n.push(h(e,t[r]))})),(0,i.hexlify)((0,i.concat)(n))}function y(e,t){return(0,o.keccak256)(m(e,t))}function v(e,t){return(0,a.JQ)(m(e,t))}},8600:function(e,t,n){"use strict";n.d(t,{F:function(){return s},s:function(){return a}});var r=n(72986),i=n(64369),o=n(25459);function a(e){var t=(0,o.Y0)(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return(0,i.hexlify)((0,i.concat)([t,r.R]).slice(0,32))}function s(e){var t=(0,i.arrayify)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var n=31;0===t[n-1];)n--;return(0,o.ZN)(t.slice(0,n))}},98419:function(e,t,n){"use strict";n.d(t,{Ll:function(){return h}});var r=n(25459);function i(e,t){t||(t=function(e){return[parseInt(e,16)]});var n=0,r={};return e.split(",").forEach((function(e){var i=e.split(":");n+=parseInt(i[0],16),r[n]=t(i[1])})),r}function o(e){var t=0;return e.split(",").map((function(e){var n=e.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:t+parseInt(n[0],16),h:t=parseInt(n[1],16)}}))}function a(e,t){for(var n=0,r=0;r<t.length;r++){var i=t[r];if(e>=(n+=i.l)&&e<=n+i.h&&(e-n)%(i.d||1)===0){if(i.e&&-1!==i.e.indexOf(e-n))continue;return i}}return null}var s=o("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),u="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),c=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],l=i("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),f=i("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),d=i("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],n=0;n<e.length;n+=4)t.push(parseInt(e.substring(n,n+4),16));return t})),p=o("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function h(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,n=(0,r.XL)(e);t=n.map((function(e){if(u.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=a(e,c);if(t)return[e+t.s];var n=l[e];if(n)return n;var r=f[e];return r?[e+r[0]]:d[e]||null}(e);return t||[e]})),n=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[]),(n=(0,r.XL)((0,r.uu)(n),r.Uj.NFKC)).forEach((function(e){if(a(e,p))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),n.forEach((function(e){if(a(e,s))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var i=(0,r.uu)(n);if("-"===i.substring(0,1)||"--"===i.substring(2,4)||"-"===i.substring(i.length-1))throw new Error("invalid hyphen");return i}},46137:function(e,t,n){"use strict";n.r(t),n.d(t,{UnicodeNormalizationForm:function(){return o.Uj},Utf8ErrorFuncs:function(){return o.te},Utf8ErrorReason:function(){return o.Uw},_toEscapedUtf8String:function(){return o.U$},formatBytes32String:function(){return r.s},nameprep:function(){return i.Ll},parseBytes32String:function(){return r.F},toUtf8Bytes:function(){return o.Y0},toUtf8CodePoints:function(){return o.XL},toUtf8String:function(){return o.ZN}});var r=n(8600),i=n(98419),o=n(25459)},25459:function(e,t,n){"use strict";n.d(t,{Uj:function(){return r},te:function(){return u},Uw:function(){return i},U$:function(){return d},uu:function(){return p},Y0:function(){return l},XL:function(){return m},ZN:function(){return h}});var r,i,o=n(64369),a=new(n(56919).Logger)("strings/5.7.0");function s(e,t,n,r,o){if(e===i.BAD_PREFIX||e===i.UNEXPECTED_CONTINUE){for(var a=0,s=t+1;s<n.length&&n[s]>>6===2;s++)a++;return a}return e===i.OVERRUN?n.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(r||(r={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(i||(i={}));var u=Object.freeze({error:function(e,t,n,r,i){return a.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",n)},ignore:s,replace:function(e,t,n,r,o){return e===i.OVERLONG?(r.push(o),0):(r.push(65533),s(e,t,n))}});function c(e,t){null==t&&(t=u.error),e=(0,o.arrayify)(e);for(var n=[],r=0;r<e.length;){var a=e[r++];if(a>>7!==0){var s=null,c=null;if(192===(224&a))s=1,c=127;else if(224===(240&a))s=2,c=2047;else{if(240!==(248&a)){r+=t(128===(192&a)?i.UNEXPECTED_CONTINUE:i.BAD_PREFIX,r-1,e,n);continue}s=3,c=65535}if(r-1+s>=e.length)r+=t(i.OVERRUN,r-1,e,n);else{for(var l=a&(1<<8-s-1)-1,f=0;f<s;f++){var d=e[r];if(128!=(192&d)){r+=t(i.MISSING_CONTINUE,r,e,n),l=null;break}l=l<<6|63&d,r++}null!==l&&(l>1114111?r+=t(i.OUT_OF_RANGE,r-1-s,e,n,l):l>=55296&&l<=57343?r+=t(i.UTF16_SURROGATE,r-1-s,e,n,l):l<=c?r+=t(i.OVERLONG,r-1-s,e,n,l):n.push(l))}}else n.push(a)}return n}function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current;t!=r.current&&(a.checkNormalize(),e=e.normalize(t));for(var n=[],i=0;i<e.length;i++){var s=e.charCodeAt(i);if(s<128)n.push(s);else if(s<2048)n.push(s>>6|192),n.push(63&s|128);else if(55296==(64512&s)){i++;var u=e.charCodeAt(i);if(i>=e.length||56320!==(64512&u))throw new Error("invalid utf-8 string");var c=65536+((1023&s)<<10)+(1023&u);n.push(c>>18|240),n.push(c>>12&63|128),n.push(c>>6&63|128),n.push(63&c|128)}else n.push(s>>12|224),n.push(s>>6&63|128),n.push(63&s|128)}return(0,o.arrayify)(n)}function f(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function d(e,t){return'"'+c(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?f(e):f(55296+((e-=65536)>>10&1023))+f(56320+(1023&e))})).join("")+'"'}function p(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function h(e,t){return p(c(e,t))}function m(e){return c(l(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:r.current))}},66522:function(e,t,n){"use strict";n.r(t),n.d(t,{TransactionTypes:function(){return r},accessListify:function(){return A},computeAddress:function(){return g},parse:function(){return C},recoverAddress:function(){return b},serialize:function(){return _}});var r,i=n(27255),o=n(42322),a=n(64369),s=n(77717),u=n(8082),c=n(63274),l=n(38110),f=n(98087),d=n(56919),p=new d.Logger("transactions/5.7.0");function h(e){return"0x"===e?null:(0,i.getAddress)(e)}function m(e){return"0x"===e?s._Y:o.O$.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(r||(r={}));var y=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],v={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function g(e){var t=(0,f.computePublicKey)(e);return(0,i.getAddress)((0,a.hexDataSlice)((0,u.keccak256)((0,a.hexDataSlice)(t,1)),12))}function b(e,t){return g((0,f.recoverPublicKey)((0,a.arrayify)(e),t))}function w(e,t){var n=(0,a.stripZeros)(o.O$.from(e).toHexString());return n.length>32&&p.throwArgumentError("invalid length for "+t,"transaction:"+t,e),n}function x(e,t){return{address:(0,i.getAddress)(e),storageKeys:(t||[]).map((function(t,n){return 32!==(0,a.hexDataLength)(t)&&p.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(n,"]"),t),t.toLowerCase()}))}}function A(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&p.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),x(e[0],e[1])):x(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var n=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return x(t,Object.keys(n).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function k(e){return A(e).map((function(e){return[e.address,e.storageKeys]}))}function E(e,t){if(null!=e.gasPrice){var n=o.O$.from(e.gasPrice),r=o.O$.from(e.maxFeePerGas||0);n.eq(r)||p.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:n,maxFeePerGas:r})}var s=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),w(e.maxFeePerGas||0,"maxFeePerGas"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,i.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var u=(0,a.splitSignature)(t);s.push(w(u.recoveryParam,"recoveryParam")),s.push((0,a.stripZeros)(u.r)),s.push((0,a.stripZeros)(u.s))}return(0,a.hexConcat)(["0x02",l.encode(s)])}function T(e,t){var n=[w(e.chainId||0,"chainId"),w(e.nonce||0,"nonce"),w(e.gasPrice||0,"gasPrice"),w(e.gasLimit||0,"gasLimit"),null!=e.to?(0,i.getAddress)(e.to):"0x",w(e.value||0,"value"),e.data||"0x",k(e.accessList||[])];if(t){var r=(0,a.splitSignature)(t);n.push(w(r.recoveryParam,"recoveryParam")),n.push((0,a.stripZeros)(r.r)),n.push((0,a.stripZeros)(r.s))}return(0,a.hexConcat)(["0x01",l.encode(n)])}function _(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&p.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){(0,c.checkProperties)(e,v);var n=[];y.forEach((function(t){var r=e[t.name]||[],i={};t.numeric&&(i.hexPad="left"),r=(0,a.arrayify)((0,a.hexlify)(r,i)),t.length&&r.length!==t.length&&r.length>0&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),t.maxLength&&(r=(0,a.stripZeros)(r)).length>t.maxLength&&p.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,r),n.push((0,a.hexlify)(r))}));var r=0;if(null!=e.chainId?"number"!==typeof(r=e.chainId)&&p.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!(0,a.isBytesLike)(t)&&t.v>28&&(r=Math.floor((t.v-35)/2)),0!==r&&(n.push((0,a.hexlify)(r)),n.push("0x"),n.push("0x")),!t)return l.encode(n);var i=(0,a.splitSignature)(t),o=27+i.recoveryParam;return 0!==r?(n.pop(),n.pop(),n.pop(),o+=2*r+8,i.v>28&&i.v!==o&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):i.v!==o&&p.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),n.push((0,a.hexlify)(o)),n.push((0,a.stripZeros)((0,a.arrayify)(i.r))),n.push((0,a.stripZeros)((0,a.arrayify)(i.s))),l.encode(n)}(e,t);switch(e.type){case 1:return T(e,t);case 2:return E(e,t)}return p.throwError("unsupported transaction type: ".concat(e.type),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function S(e,t,n){try{var r=m(t[0]).toNumber();if(0!==r&&1!==r)throw new Error("bad recid");e.v=r}catch(o){p.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=(0,a.hexZeroPad)(t[1],32),e.s=(0,a.hexZeroPad)(t[2],32);try{var i=(0,u.keccak256)(n(e));e.from=b(i,{r:e.r,s:e.s,recoveryParam:e.v})}catch(o){}}function C(e){var t=(0,a.arrayify)(e);if(t[0]>127)return function(e){var t=l.decode(e);9!==t.length&&6!==t.length&&p.throwArgumentError("invalid raw transaction","rawTransaction",e);var n={nonce:m(t[0]).toNumber(),gasPrice:m(t[1]),gasLimit:m(t[2]),to:h(t[3]),value:m(t[4]),data:t[5],chainId:0};if(6===t.length)return n;try{n.v=o.O$.from(t[6]).toNumber()}catch(c){return n}if(n.r=(0,a.hexZeroPad)(t[7],32),n.s=(0,a.hexZeroPad)(t[8],32),o.O$.from(n.r).isZero()&&o.O$.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);var r=n.v-27,i=t.slice(0,6);0!==n.chainId&&(i.push((0,a.hexlify)(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);var s=(0,u.keccak256)(l.encode(i));try{n.from=b(s,{r:(0,a.hexlify)(n.r),s:(0,a.hexlify)(n.s),recoveryParam:r})}catch(c){}n.hash=(0,u.keccak256)(e)}return n.type=null,n}(t);switch(t[0]){case 1:return function(e){var t=l.decode(e.slice(1));8!==t.length&&11!==t.length&&p.throwArgumentError("invalid component count for transaction type: 1","payload",(0,a.hexlify)(e));var n={type:1,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),gasPrice:m(t[2]),gasLimit:m(t[3]),to:h(t[4]),value:m(t[5]),data:t[6],accessList:A(t[7])};return 8===t.length||(n.hash=(0,u.keccak256)(e),S(n,t.slice(8),T)),n}(t);case 2:return function(e){var t=l.decode(e.slice(1));9!==t.length&&12!==t.length&&p.throwArgumentError("invalid component count for transaction type: 2","payload",(0,a.hexlify)(e));var n=m(t[2]),r=m(t[3]),i={type:2,chainId:m(t[0]).toNumber(),nonce:m(t[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:m(t[4]),to:h(t[5]),value:m(t[6]),data:t[7],accessList:A(t[8])};return 9===t.length||(i.hash=(0,u.keccak256)(e),S(i,t.slice(9),E)),i}(t)}return p.throwError("unsupported transaction type: ".concat(t[0]),d.Logger.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}},72225:function(e,t,n){"use strict";n.r(t),n.d(t,{commify:function(){return a},formatEther:function(){return c},formatUnits:function(){return s},parseEther:function(){return l},parseUnits:function(){return u}});var r=n(84319),i=new(n(56919).Logger)("units/5.7.0"),o=["wei","kwei","mwei","gwei","szabo","finney","ether"];function a(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&i.throwArgumentError("invalid value","value",e);var n=t[0],r="";for("-"===n.substring(0,1)&&(r="-",n=n.substring(1));"0"===n.substring(0,1);)n=n.substring(1);""===n&&(n="0");var o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(var a=[];n.length;){if(n.length<=3){a.unshift(n);break}var s=n.length-3;a.unshift(n.substring(s)),n=n.substring(0,s)}return r+a.join(",")+o}function s(e,t){if("string"===typeof t){var n=o.indexOf(t);-1!==n&&(t=3*n)}return(0,r.S5)(e,null!=t?t:18)}function u(e,t){if("string"!==typeof e&&i.throwArgumentError("value must be a string","value",e),"string"===typeof t){var n=o.indexOf(t);-1!==n&&(t=3*n)}return(0,r.Ox)(e,null!=t?t:18)}function c(e){return s(e,18)}function l(e){return u(e,18)}},46701:function(e,t,n){"use strict";n.r(t),n.d(t,{Wallet:function(){return _},verifyMessage:function(){return S},verifyTypedData:function(){return C}});var r=n(46999),i=n(8821),o=n(85169),a=n(93173),s=n(82248),u=n(8416),c=n(27255),l=n(22090),f=n(50162),d=n(64369),p=n(28778),h=n(93139),m=n(1375),y=n(8082),v=n(63274),g=n(39536),b=n(98087),w=n(68937),x=n(94554),A=n(66522),k=n(56919),E=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},T=new k.Logger("wallet/5.7.0");var _=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e,r){var o,s;if((0,i.Z)(this,n),o=t.call(this),null!=(s=e)&&(0,d.isHexString)(s.privateKey,32)&&null!=s.address){var u=new b.SigningKey(e.privateKey);if((0,v.defineReadOnly)((0,a.Z)(o),"_signingKey",(function(){return u})),(0,v.defineReadOnly)((0,a.Z)(o),"address",(0,A.computeAddress)(o.publicKey)),o.address!==(0,c.getAddress)(e.address)&&T.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var f=e.mnemonic;(0,v.defineReadOnly)((0,a.Z)(o),"_mnemonic",(function(){return{phrase:f.phrase,path:f.path||m.defaultPath,locale:f.locale||"en"}}));var p=o.mnemonic,h=m.HDNode.fromMnemonic(p.phrase,null,p.locale).derivePath(p.path);(0,A.computeAddress)(h.privateKey)!==o.address&&T.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else(0,v.defineReadOnly)((0,a.Z)(o),"_mnemonic",(function(){return null}))}else{if(b.SigningKey.isSigningKey(e))"secp256k1"!==e.curve&&T.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),(0,v.defineReadOnly)((0,a.Z)(o),"_signingKey",(function(){return e}));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var y=new b.SigningKey(e);(0,v.defineReadOnly)((0,a.Z)(o),"_signingKey",(function(){return y}))}(0,v.defineReadOnly)((0,a.Z)(o),"_mnemonic",(function(){return null})),(0,v.defineReadOnly)((0,a.Z)(o),"address",(0,A.computeAddress)(o.publicKey))}return r&&!l.zt.isProvider(r)&&T.throwArgumentError("invalid provider","provider",r),(0,v.defineReadOnly)((0,a.Z)(o),"provider",r||null),o}return(0,o.Z)(n,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new n(this,e)}},{key:"signTransaction",value:function(e){var t=this;return(0,v.resolveProperties)(e).then((function(n){null!=n.from&&((0,c.getAddress)(n.from)!==t.address&&T.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete n.from);var r=t._signingKey().signDigest((0,y.keccak256)((0,A.serialize)(n)));return(0,A.serialize)(n,r)}))}},{key:"signMessage",value:function(e){return E(this,void 0,void 0,(0,r.Z)().mark((function t(){return(0,r.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(0,d.joinSignature)(this._signingKey().signDigest((0,p.r)(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,n){return E(this,void 0,void 0,(0,r.Z)().mark((function i(){var o,a=this;return(0,r.Z)().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,h.E.resolveNames(e,t,n,(function(e){return null==a.provider&&T.throwError("cannot resolve ENS names without a provider",k.Logger.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),a.provider.resolveName(e)}));case 2:return o=r.sent,r.abrupt("return",(0,d.joinSignature)(this._signingKey().signDigest(h.E.hash(o.domain,t,o.value))));case 4:case"end":return r.stop()}}),i,this)})))}},{key:"encrypt",value:function(e,t,n){if("function"!==typeof t||n||(n=t,t={}),n&&"function"!==typeof n)throw new Error("invalid callback");return t||(t={}),(0,w.HI)(this,e,t,n)}}],[{key:"createRandom",value:function(e){var t=(0,g.O)(16);e||(e={}),e.extraEntropy&&(t=(0,d.arrayify)((0,d.hexDataSlice)((0,y.keccak256)((0,d.concat)([t,e.extraEntropy])),0,16)));var r=(0,m.entropyToMnemonic)(t,e.locale);return n.fromMnemonic(r,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,r){return(0,x.decryptJsonWallet)(e,t,r).then((function(e){return new n(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new n((0,x.decryptJsonWalletSync)(e,t))}},{key:"fromMnemonic",value:function(e,t,r){return t||(t=m.defaultPath),new n(m.HDNode.fromMnemonic(e,null,r).derivePath(t))}}]),n}(f.E);function S(e,t){return(0,A.recoverAddress)((0,p.r)(e),t)}function C(e,t,n,r){return(0,A.recoverAddress)(h.E.hash(e,t,n),r)}},77379:function(e,t,n){"use strict";n.r(t),n.d(t,{_fetchData:function(){return m},fetchJson:function(){return y},poll:function(){return v}});var r=n(46999),i=n(33432),o=n(64369),a=n(63274),s=n(25459),u=n(56919),c=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};function l(e,t){return c(this,void 0,void 0,(0,r.Z)().mark((function n(){var i,a,s,u,c;return(0,r.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t={}),i={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0},!0!==t.skipFetchSetup&&(i.mode="cors",i.cache="no-cache",i.credentials="same-origin",i.redirect="follow",i.referrer="client"),null!=t.fetchOptions&&((a=t.fetchOptions).mode&&(i.mode=a.mode),a.cache&&(i.cache=a.cache),a.credentials&&(i.credentials=a.credentials),a.redirect&&(i.redirect=a.redirect),a.referrer&&(i.referrer=a.referrer)),n.next=7,fetch(e,i);case 7:return s=n.sent,n.next=10,s.arrayBuffer();case 10:return u=n.sent,c={},s.headers.forEach?s.headers.forEach((function(e,t){c[t.toLowerCase()]=e})):s.headers.keys().forEach((function(e){c[e.toLowerCase()]=s.headers.get(e)})),n.abrupt("return",{headers:c,statusCode:s.status,statusMessage:s.statusText,body:(0,o.arrayify)(new Uint8Array(u))});case 14:case"end":return n.stop()}}),n)})))}var f=function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},d=new u.Logger("web/5.7.1");function p(e){return new Promise((function(t){setTimeout(t,e)}))}function h(e,t){if(null==e)return null;if("string"===typeof e)return e;if((0,o.isBytesLike)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return(0,s.ZN)(e)}catch(n){}return(0,o.hexlify)(e)}return e}function m(e,t,n){var o="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;d.assertArgument(o>0&&o%1===0,"invalid connection throttle limit","connection.throttleLimit",o);var c="object"===typeof e?e.throttleCallback:null,m="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;d.assertArgument(m>0&&m%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",m);var y="object"===typeof e&&!!e.errorPassThrough,v={},g=null,b={method:"GET"},w=!1,x=12e4;if("string"===typeof e)g=e;else if("object"===typeof e){if(null!=e&&null!=e.url||d.throwArgumentError("missing URL","connection.url",e),g=e.url,"number"===typeof e.timeout&&e.timeout>0&&(x=e.timeout),e.headers)for(var A in e.headers)v[A.toLowerCase()]={key:A,value:String(e.headers[A])},["if-none-match","if-modified-since"].indexOf(A.toLowerCase())>=0&&(w=!0);if(b.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==g.substring(0,6)&&!0!==e.allowInsecureAuthentication&&d.throwError("basic authentication requires a secure https url",u.Logger.errors.INVALID_ARGUMENT,{argument:"url",url:g,user:e.user,password:"[REDACTED]"});var k=e.user+":"+e.password;v.authorization={key:"Authorization",value:"Basic "+(0,i.c)((0,s.Y0)(k))}}null!=e.skipFetchSetup&&(b.skipFetchSetup=!!e.skipFetchSetup),null!=e.fetchOptions&&(b.fetchOptions=(0,a.shallowCopy)(e.fetchOptions))}var E,T=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),_=g?g.match(T):null;if(_)try{var S={statusCode:200,statusMessage:"OK",headers:{"content-type":_[1]||"text/plain"},body:_[2]?(0,i.J)(_[3]):(E=_[3],(0,s.Y0)(E.replace(/%([0-9a-f][0-9a-f])/gi,(function(e,t){return String.fromCharCode(parseInt(t,16))}))))},C=S.body;return n&&(C=n(S.body,S)),Promise.resolve(C)}catch(R){d.throwError("processing response error",u.Logger.errors.SERVER_ERROR,{body:h(_[1],_[2]),error:R,requestBody:null,requestMethod:"GET",url:g})}t&&(b.method="POST",b.body=t,null==v["content-type"]&&(v["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==v["content-length"]&&(v["content-length"]={key:"Content-Length",value:String(t.length)}));var I={};Object.keys(v).forEach((function(e){var t=v[e];I[t.key]=t.value})),b.headers=I;var O=function(){var e=null;return{promise:new Promise((function(t,n){x&&(e=setTimeout((function(){null!=e&&(e=null,n(d.makeError("timeout",u.Logger.errors.TIMEOUT,{requestBody:h(b.body,I["content-type"]),requestMethod:b.method,timeout:x,url:g})))}),x))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),P=function(){return f(this,void 0,void 0,(0,r.Z)().mark((function e(){var t,i,a,s,f,v,x,A,k,E;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<o)){e.next=65;break}return i=null,e.prev=3,e.next=6,l(g,b);case 6:if(i=e.sent,!(t<o)){e.next=28;break}if(301!==i.statusCode&&302!==i.statusCode){e.next=15;break}if(a=i.headers.location||"","GET"!==b.method||!a.match(/^https:/)){e.next=13;break}return g=i.headers.location,e.abrupt("continue",62);case 13:e.next=28;break;case 15:if(429!==i.statusCode){e.next=28;break}if(s=!0,!c){e.next=21;break}return e.next=20,c(t,g);case 20:s=e.sent;case 21:if(!s){e.next=28;break}return f=0,v=i.headers["retry-after"],f="string"===typeof v&&v.match(/^[1-9][0-9]*$/)?1e3*parseInt(v):m*parseInt(String(Math.random()*Math.pow(2,t))),e.next=27,p(f);case 27:return e.abrupt("continue",62);case 28:e.next=34;break;case 30:e.prev=30,e.t0=e.catch(3),null==(i=e.t0.response)&&(O.cancel(),d.throwError("missing response",u.Logger.errors.SERVER_ERROR,{requestBody:h(b.body,I["content-type"]),requestMethod:b.method,serverError:e.t0,url:g}));case 34:if(x=i.body,w&&304===i.statusCode?x=null:!y&&(i.statusCode<200||i.statusCode>=300)&&(O.cancel(),d.throwError("bad response",u.Logger.errors.SERVER_ERROR,{status:i.statusCode,headers:i.headers,body:h(x,i.headers?i.headers["content-type"]:null),requestBody:h(b.body,I["content-type"]),requestMethod:b.method,url:g})),!n){e.next=60;break}return e.prev=37,e.next=40,n(x,i);case 40:return A=e.sent,O.cancel(),e.abrupt("return",A);case 45:if(e.prev=45,e.t1=e.catch(37),!(e.t1.throttleRetry&&t<o)){e.next=58;break}if(k=!0,!c){e.next=53;break}return e.next=52,c(t,g);case 52:k=e.sent;case 53:if(!k){e.next=58;break}return E=m*parseInt(String(Math.random()*Math.pow(2,t))),e.next=57,p(E);case 57:return e.abrupt("continue",62);case 58:O.cancel(),d.throwError("processing response error",u.Logger.errors.SERVER_ERROR,{body:h(x,i.headers?i.headers["content-type"]:null),error:e.t1,requestBody:h(b.body,I["content-type"]),requestMethod:b.method,url:g});case 60:return O.cancel(),e.abrupt("return",x);case 62:t++,e.next=1;break;case 65:return e.abrupt("return",d.throwError("failed response",u.Logger.errors.SERVER_ERROR,{requestBody:h(b.body,I["content-type"]),requestMethod:b.method,url:g}));case 66:case"end":return e.stop()}}),e,null,[[3,30],[37,45]])})))}();return Promise.race([O.promise,P])}function y(e,t,n){var r=null;if(null!=t){r=(0,s.Y0)(t);var i="string"===typeof e?{url:e}:(0,a.shallowCopy)(e);if(i.headers)0!==Object.keys(i.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(i.headers=(0,a.shallowCopy)(i.headers),i.headers["content-type"]="application/json");else i.headers={"content-type":"application/json"};e=i}return m(e,r,(function(e,t){var r=null;if(null!=e)try{r=JSON.parse((0,s.ZN)(e))}catch(i){d.throwError("invalid JSON",u.Logger.errors.SERVER_ERROR,{body:e,error:i})}return n&&(r=n(r,t)),r}))}function v(e,t){return t||(t={}),null==(t=(0,a.shallowCopy)(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(n,r){var i=null,o=!1,a=function(){return!o&&(o=!0,i&&clearTimeout(i),!0)};t.timeout&&(i=setTimeout((function(){a()&&r(new Error("timeout"))}),t.timeout));var s=t.retryLimit,u=0;!function i(){return e().then((function(e){if(void 0!==e)a()&&n(e);else if(t.oncePoll)t.oncePoll.once("poll",i);else if(t.onceBlock)t.onceBlock.once("block",i);else if(!o){if(++u>s)return void(a()&&r(new Error("retry limit reached")));var c=t.interval*parseInt(String(Math.random()*Math.pow(2,u)));c<t.floor&&(c=t.floor),c>t.ceiling&&(c=t.ceiling),setTimeout(i,c)}return null}),(function(e){a()&&r(e)}))}()}))}},9909:function(e,t,n){"use strict";n.d(t,{D:function(){return c}});var r=n(8821),i=n(85169),o=n(75441),a=n(63274),s=n(56919),u=new s.Logger("wordlists/5.7.0"),c=function(){function e(t){(0,r.Z)(this,e),u.checkAbstract(this instanceof e?this.constructor:void 0,e),(0,a.defineReadOnly)(this,"locale",t)}return(0,i.Z)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],n=0;n<2048;n++){var r=e.getWord(n);if(n!==e.getWordIndex(r))return"0x";t.push(r)}return(0,o.id)(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}()},54530:function(e,t,n){"use strict";n.d(t,{E:function(){return f}});var r=n(8821),i=n(85169),o=n(82248),a=n(8416),s=n(9909),u=null;function c(e){if(null==u&&(u="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==s.D.check(e)))throw u=null,new Error("BIP39 Wordlist for en (English) FAILED")}var l=new(function(e){(0,o.Z)(n,e);var t=(0,a.Z)(n);function n(){return(0,r.Z)(this,n),t.call(this,"en")}return(0,i.Z)(n,[{key:"getWord",value:function(e){return c(this),u[e]}},{key:"getWordIndex",value:function(e){return c(this),u.indexOf(e)}}]),n}(s.D));s.D.register(l);var f={en:l}},21201:function(e){"use strict";e.exports=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.mustBeMetaMask,n=void 0!==t&&t,r=e.silent,i=void 0!==r&&r,o=e.timeout,a=void 0===o?3e3:o;!function(){if("boolean"!==typeof n)throw new Error("@metamask/detect-provider: Expected option 'mustBeMetaMask' to be a boolean.");if("boolean"!==typeof i)throw new Error("@metamask/detect-provider: Expected option 'silent' to be a boolean.");if("number"!==typeof a)throw new Error("@metamask/detect-provider: Expected option 'timeout' to be a number.")}();var s=!1;return new Promise((function(e){function t(){if(!s){s=!0,window.removeEventListener("ethereum#initialized",t);var r=window.ethereum;if(!r||n&&!r.isMetaMask){var o=n&&r?"Non-MetaMask window.ethereum detected.":"Unable to detect window.ethereum.";!i&&console.error("@metamask/detect-provider:",o),e(null)}else e(r)}}window.ethereum?t():(window.addEventListener("ethereum#initialized",t,{once:!0}),setTimeout((function(){t()}),a))}))}},4687:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DomainRegistryABI=void 0;t.DomainRegistryABI=[{inputs:[{internalType:"string",name:"domain",type:"string"}],name:"DomainAlreadyRegistered",type:"error"},{inputs:[{internalType:"bytes4",name:"tag",type:"bytes4"},{internalType:"uint256",name:"maxIndex",type:"uint256"},{internalType:"uint256",name:"suppliedIndex",type:"uint256"}],name:"DomainIndexOutOfRange",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"domain",type:"string"},{indexed:!1,internalType:"bytes4",name:"tag",type:"bytes4"},{indexed:!1,internalType:"uint256",name:"index",type:"uint256"}],name:"DomainRegistered",type:"event"},{inputs:[{internalType:"bytes4",name:"tag",type:"bytes4"},{internalType:"uint256",name:"index",type:"uint256"}],name:"getDomain",outputs:[{internalType:"string",name:"domain",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"tag",type:"bytes4"}],name:"getDomains",outputs:[{internalType:"string[]",name:"domains",type:"string[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes4",name:"tag",type:"bytes4"}],name:"getNumberOfDomains",outputs:[{internalType:"uint256",name:"totalDomains",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"string",name:"domain",type:"string"}],name:"setDomain",outputs:[{internalType:"bytes4",name:"tag",type:"bytes4"}],stateMutability:"nonpayable",type:"function"}]},79762:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERC1155ABI=void 0;t.ERC1155ABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"owners",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"balances",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}]},8524:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERC20ABI=void 0;t.ERC20ABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"}]},68648:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ERC721ABI=void 0;t.ERC721ABI=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"getApproved",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"ownerOf",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"tokenURI",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]},80041:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SeaportABIv14=void 0;t.SeaportABIv14=[{inputs:[{internalType:"address",name:"conduitController",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BadContractSignature",type:"error"},{inputs:[],name:"BadFraction",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"BadReturnValueFromERC20OnTransfer",type:"error"},{inputs:[{internalType:"uint8",name:"v",type:"uint8"}],name:"BadSignatureV",type:"error"},{inputs:[],name:"CannotCancelOrder",type:"error"},{inputs:[],name:"ConsiderationCriteriaResolverOutOfRange",type:"error"},{inputs:[],name:"ConsiderationLengthNotEqualToTotalOriginal",type:"error"},{inputs:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"considerationIndex",type:"uint256"},{internalType:"uint256",name:"shortfallAmount",type:"uint256"}],name:"ConsiderationNotMet",type:"error"},{inputs:[],name:"CriteriaNotEnabledForItem",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"identifiers",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"ERC1155BatchTransferGenericFailure",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"EtherTransferGenericFailure",type:"error"},{inputs:[],name:"InexactFraction",type:"error"},{inputs:[],name:"InsufficientEtherSupplied",type:"error"},{inputs:[],name:"Invalid1155BatchTransferEncoding",type:"error"},{inputs:[],name:"InvalidBasicOrderParameterEncoding",type:"error"},{inputs:[{internalType:"address",name:"conduit",type:"address"}],name:"InvalidCallToConduit",type:"error"},{inputs:[{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"address",name:"conduit",type:"address"}],name:"InvalidConduit",type:"error"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"InvalidContractOrder",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InvalidERC721TransferAmount",type:"error"},{inputs:[],name:"InvalidFulfillmentComponentData",type:"error"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"InvalidMsgValue",type:"error"},{inputs:[],name:"InvalidNativeOfferItem",type:"error"},{inputs:[],name:"InvalidProof",type:"error"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"InvalidRestrictedOrder",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidSigner",type:"error"},{inputs:[{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"}],name:"InvalidTime",type:"error"},{inputs:[{internalType:"uint256",name:"fulfillmentIndex",type:"uint256"}],name:"MismatchedFulfillmentOfferAndConsiderationComponents",type:"error"},{inputs:[{internalType:"enum Side",name:"side",type:"uint8"}],name:"MissingFulfillmentComponentOnAggregation",type:"error"},{inputs:[],name:"MissingItemAmount",type:"error"},{inputs:[],name:"MissingOriginalConsiderationItems",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"NoContract",type:"error"},{inputs:[],name:"NoReentrantCalls",type:"error"},{inputs:[],name:"NoSpecifiedOrdersAvailable",type:"error"},{inputs:[],name:"OfferAndConsiderationRequiredOnFulfillment",type:"error"},{inputs:[],name:"OfferCriteriaResolverOutOfRange",type:"error"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderAlreadyFilled",type:"error"},{inputs:[{internalType:"enum Side",name:"side",type:"uint8"}],name:"OrderCriteriaResolverOutOfRange",type:"error"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderIsCancelled",type:"error"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"OrderPartiallyFilled",type:"error"},{inputs:[],name:"PartialFillsNotEnabledForOrder",type:"error"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"TokenTransferGenericFailure",type:"error"},{inputs:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"considerationIndex",type:"uint256"}],name:"UnresolvedConsiderationCriteria",type:"error"},{inputs:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"offerIndex",type:"uint256"}],name:"UnresolvedOfferCriteria",type:"error"},{inputs:[],name:"UnusedItemParameters",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"newCounter",type:"uint256"},{indexed:!0,internalType:"address",name:"offerer",type:"address"}],name:"CounterIncremented",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"orderHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"offerer",type:"address"},{indexed:!0,internalType:"address",name:"zone",type:"address"}],name:"OrderCancelled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"orderHash",type:"bytes32"},{indexed:!0,internalType:"address",name:"offerer",type:"address"},{indexed:!0,internalType:"address",name:"zone",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],indexed:!1,internalType:"struct SpentItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],indexed:!1,internalType:"struct ReceivedItem[]",name:"consideration",type:"tuple[]"}],name:"OrderFulfilled",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32",name:"orderHash",type:"bytes32"},{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],indexed:!1,internalType:"struct OrderParameters",name:"orderParameters",type:"tuple"}],name:"OrderValidated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bytes32[]",name:"orderHashes",type:"bytes32[]"}],name:"OrdersMatched",type:"event"},{inputs:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"counter",type:"uint256"}],internalType:"struct OrderComponents[]",name:"orders",type:"tuple[]"}],name:"cancel",outputs:[{internalType:"bool",name:"cancelled",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"uint120",name:"numerator",type:"uint120"},{internalType:"uint120",name:"denominator",type:"uint120"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"extraData",type:"bytes"}],internalType:"struct AdvancedOrder",name:"advancedOrder",type:"tuple"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"enum Side",name:"side",type:"uint8"},{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes32[]",name:"criteriaProof",type:"bytes32[]"}],internalType:"struct CriteriaResolver[]",name:"criteriaResolvers",type:"tuple[]"},{internalType:"bytes32",name:"fulfillerConduitKey",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"}],name:"fulfillAdvancedOrder",outputs:[{internalType:"bool",name:"fulfilled",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"uint120",name:"numerator",type:"uint120"},{internalType:"uint120",name:"denominator",type:"uint120"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"extraData",type:"bytes"}],internalType:"struct AdvancedOrder[]",name:"advancedOrders",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"enum Side",name:"side",type:"uint8"},{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes32[]",name:"criteriaProof",type:"bytes32[]"}],internalType:"struct CriteriaResolver[]",name:"criteriaResolvers",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[][]",name:"offerFulfillments",type:"tuple[][]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[][]",name:"considerationFulfillments",type:"tuple[][]"},{internalType:"bytes32",name:"fulfillerConduitKey",type:"bytes32"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"maximumFulfilled",type:"uint256"}],name:"fulfillAvailableAdvancedOrders",outputs:[{internalType:"bool[]",name:"availableOrders",type:"bool[]"},{components:[{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ReceivedItem",name:"item",type:"tuple"},{internalType:"address",name:"offerer",type:"address"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"}],internalType:"struct Execution[]",name:"executions",type:"tuple[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Order[]",name:"orders",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[][]",name:"offerFulfillments",type:"tuple[][]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[][]",name:"considerationFulfillments",type:"tuple[][]"},{internalType:"bytes32",name:"fulfillerConduitKey",type:"bytes32"},{internalType:"uint256",name:"maximumFulfilled",type:"uint256"}],name:"fulfillAvailableOrders",outputs:[{internalType:"bool[]",name:"availableOrders",type:"bool[]"},{components:[{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ReceivedItem",name:"item",type:"tuple"},{internalType:"address",name:"offerer",type:"address"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"}],internalType:"struct Execution[]",name:"executions",type:"tuple[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"considerationToken",type:"address"},{internalType:"uint256",name:"considerationIdentifier",type:"uint256"},{internalType:"uint256",name:"considerationAmount",type:"uint256"},{internalType:"address payable",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{internalType:"address",name:"offerToken",type:"address"},{internalType:"uint256",name:"offerIdentifier",type:"uint256"},{internalType:"uint256",name:"offerAmount",type:"uint256"},{internalType:"enum BasicOrderType",name:"basicOrderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"offererConduitKey",type:"bytes32"},{internalType:"bytes32",name:"fulfillerConduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalAdditionalRecipients",type:"uint256"},{components:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct AdditionalRecipient[]",name:"additionalRecipients",type:"tuple[]"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct BasicOrderParameters",name:"parameters",type:"tuple"}],name:"fulfillBasicOrder",outputs:[{internalType:"bool",name:"fulfilled",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Order",name:"order",type:"tuple"},{internalType:"bytes32",name:"fulfillerConduitKey",type:"bytes32"}],name:"fulfillOrder",outputs:[{internalType:"bool",name:"fulfilled",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"contractOfferer",type:"address"}],name:"getContractOffererNonce",outputs:[{internalType:"uint256",name:"nonce",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"offerer",type:"address"}],name:"getCounter",outputs:[{internalType:"uint256",name:"counter",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"counter",type:"uint256"}],internalType:"struct OrderComponents",name:"order",type:"tuple"}],name:"getOrderHash",outputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"orderHash",type:"bytes32"}],name:"getOrderStatus",outputs:[{internalType:"bool",name:"isValidated",type:"bool"},{internalType:"bool",name:"isCancelled",type:"bool"},{internalType:"uint256",name:"totalFilled",type:"uint256"},{internalType:"uint256",name:"totalSize",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"incrementCounter",outputs:[{internalType:"uint256",name:"newCounter",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"information",outputs:[{internalType:"string",name:"version",type:"string"},{internalType:"bytes32",name:"domainSeparator",type:"bytes32"},{internalType:"address",name:"conduitController",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"uint120",name:"numerator",type:"uint120"},{internalType:"uint120",name:"denominator",type:"uint120"},{internalType:"bytes",name:"signature",type:"bytes"},{internalType:"bytes",name:"extraData",type:"bytes"}],internalType:"struct AdvancedOrder[]",name:"orders",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"enum Side",name:"side",type:"uint8"},{internalType:"uint256",name:"index",type:"uint256"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"bytes32[]",name:"criteriaProof",type:"bytes32[]"}],internalType:"struct CriteriaResolver[]",name:"criteriaResolvers",type:"tuple[]"},{components:[{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[]",name:"offerComponents",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[]",name:"considerationComponents",type:"tuple[]"}],internalType:"struct Fulfillment[]",name:"fulfillments",type:"tuple[]"},{internalType:"address",name:"recipient",type:"address"}],name:"matchAdvancedOrders",outputs:[{components:[{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ReceivedItem",name:"item",type:"tuple"},{internalType:"address",name:"offerer",type:"address"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"}],internalType:"struct Execution[]",name:"executions",type:"tuple[]"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Order[]",name:"orders",type:"tuple[]"},{components:[{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[]",name:"offerComponents",type:"tuple[]"},{components:[{internalType:"uint256",name:"orderIndex",type:"uint256"},{internalType:"uint256",name:"itemIndex",type:"uint256"}],internalType:"struct FulfillmentComponent[]",name:"considerationComponents",type:"tuple[]"}],internalType:"struct Fulfillment[]",name:"fulfillments",type:"tuple[]"}],name:"matchOrders",outputs:[{components:[{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifier",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ReceivedItem",name:"item",type:"tuple"},{internalType:"address",name:"offerer",type:"address"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"}],internalType:"struct Execution[]",name:"executions",type:"tuple[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"contractName",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"offerer",type:"address"},{internalType:"address",name:"zone",type:"address"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"}],internalType:"struct OfferItem[]",name:"offer",type:"tuple[]"},{components:[{internalType:"enum ItemType",name:"itemType",type:"uint8"},{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"identifierOrCriteria",type:"uint256"},{internalType:"uint256",name:"startAmount",type:"uint256"},{internalType:"uint256",name:"endAmount",type:"uint256"},{internalType:"address payable",name:"recipient",type:"address"}],internalType:"struct ConsiderationItem[]",name:"consideration",type:"tuple[]"},{internalType:"enum OrderType",name:"orderType",type:"uint8"},{internalType:"uint256",name:"startTime",type:"uint256"},{internalType:"uint256",name:"endTime",type:"uint256"},{internalType:"bytes32",name:"zoneHash",type:"bytes32"},{internalType:"uint256",name:"salt",type:"uint256"},{internalType:"bytes32",name:"conduitKey",type:"bytes32"},{internalType:"uint256",name:"totalOriginalConsiderationItems",type:"uint256"}],internalType:"struct OrderParameters",name:"parameters",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],internalType:"struct Order[]",name:"orders",type:"tuple[]"}],name:"validate",outputs:[{internalType:"bool",name:"validated",type:"bool"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]},24975:function(e,t,n){"use strict";var r=n(93213).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DOMAIN_REGISTRY_ADDRESS=t.CROSS_CHAIN_SEAPORT_V1_5_ADDRESS=t.CROSS_CHAIN_SEAPORT_V1_4_ADDRESS=t.KNOWN_CONDUIT_KEYS_TO_CONDUIT=t.NO_CONDUIT=t.ONE_HUNDRED_PERCENT_BP=t.MAX_INT=t.BasicOrderRouteType=t.Side=t.ItemType=t.OrderType=t.EIP_712_BULK_ORDER_TYPE=t.EIP_712_ORDER_TYPE=t.OPENSEA_CONDUIT_ADDRESS=t.OPENSEA_CONDUIT_KEY=t.SEAPORT_CONTRACT_VERSION_V1_5=t.SEAPORT_CONTRACT_VERSION_V1_4=t.SEAPORT_CONTRACT_NAME=void 0;var i,o,a,s,u=n(26032);t.SEAPORT_CONTRACT_NAME="Seaport",t.SEAPORT_CONTRACT_VERSION_V1_4="1.4",t.SEAPORT_CONTRACT_VERSION_V1_5="1.5",t.OPENSEA_CONDUIT_KEY="0x0000007b02230091a7ed01230072f7006a004d60a8d4e71d599b8104250f0000",t.OPENSEA_CONDUIT_ADDRESS="0x1e0049783f008a0085193e00003d00cd54003c71",t.EIP_712_ORDER_TYPE={OrderComponents:[{name:"offerer",type:"address"},{name:"zone",type:"address"},{name:"offer",type:"OfferItem[]"},{name:"consideration",type:"ConsiderationItem[]"},{name:"orderType",type:"uint8"},{name:"startTime",type:"uint256"},{name:"endTime",type:"uint256"},{name:"zoneHash",type:"bytes32"},{name:"salt",type:"uint256"},{name:"conduitKey",type:"bytes32"},{name:"counter",type:"uint256"}],OfferItem:[{name:"itemType",type:"uint8"},{name:"token",type:"address"},{name:"identifierOrCriteria",type:"uint256"},{name:"startAmount",type:"uint256"},{name:"endAmount",type:"uint256"}],ConsiderationItem:[{name:"itemType",type:"uint8"},{name:"token",type:"address"},{name:"identifierOrCriteria",type:"uint256"},{name:"startAmount",type:"uint256"},{name:"endAmount",type:"uint256"},{name:"recipient",type:"address"}]},t.EIP_712_BULK_ORDER_TYPE={BulkOrder:[{name:"tree",type:"OrderComponents[2][2][2][2][2][2][2]"}],OrderComponents:[{name:"offerer",type:"address"},{name:"zone",type:"address"},{name:"offer",type:"OfferItem[]"},{name:"consideration",type:"ConsiderationItem[]"},{name:"orderType",type:"uint8"},{name:"startTime",type:"uint256"},{name:"endTime",type:"uint256"},{name:"zoneHash",type:"bytes32"},{name:"salt",type:"uint256"},{name:"conduitKey",type:"bytes32"},{name:"counter",type:"uint256"}],OfferItem:[{name:"itemType",type:"uint8"},{name:"token",type:"address"},{name:"identifierOrCriteria",type:"uint256"},{name:"startAmount",type:"uint256"},{name:"endAmount",type:"uint256"}],ConsiderationItem:[{name:"itemType",type:"uint8"},{name:"token",type:"address"},{name:"identifierOrCriteria",type:"uint256"},{name:"startAmount",type:"uint256"},{name:"endAmount",type:"uint256"},{name:"recipient",type:"address"}]},function(e){e[e.FULL_OPEN=0]="FULL_OPEN",e[e.PARTIAL_OPEN=1]="PARTIAL_OPEN",e[e.FULL_RESTRICTED=2]="FULL_RESTRICTED",e[e.PARTIAL_RESTRICTED=3]="PARTIAL_RESTRICTED"}(i||(t.OrderType=i={})),function(e){e[e.NATIVE=0]="NATIVE",e[e.ERC20=1]="ERC20",e[e.ERC721=2]="ERC721",e[e.ERC1155=3]="ERC1155",e[e.ERC721_WITH_CRITERIA=4]="ERC721_WITH_CRITERIA",e[e.ERC1155_WITH_CRITERIA=5]="ERC1155_WITH_CRITERIA"}(o||(t.ItemType=o={})),function(e){e[e.OFFER=0]="OFFER",e[e.CONSIDERATION=1]="CONSIDERATION"}(a||(t.Side=a={})),function(e){e[e.ETH_TO_ERC721=0]="ETH_TO_ERC721",e[e.ETH_TO_ERC1155=1]="ETH_TO_ERC1155",e[e.ERC20_TO_ERC721=2]="ERC20_TO_ERC721",e[e.ERC20_TO_ERC1155=3]="ERC20_TO_ERC1155",e[e.ERC721_TO_ERC20=4]="ERC721_TO_ERC20",e[e.ERC1155_TO_ERC20=5]="ERC1155_TO_ERC20"}(s||(t.BasicOrderRouteType=s={})),t.MAX_INT=u.BigNumber.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),t.ONE_HUNDRED_PERCENT_BP=1e4,t.NO_CONDUIT="0x0000000000000000000000000000000000000000000000000000000000000000",t.KNOWN_CONDUIT_KEYS_TO_CONDUIT=r({},t.OPENSEA_CONDUIT_KEY,t.OPENSEA_CONDUIT_ADDRESS),t.CROSS_CHAIN_SEAPORT_V1_4_ADDRESS="0x00000000000001ad428e4906aE43D8F9852d0dD6",t.CROSS_CHAIN_SEAPORT_V1_5_ADDRESS="0x00000000000000ADc04C56Bf30aC9d3c0aAF14dC",t.DOMAIN_REGISTRY_ADDRESS="0x000000000DaD0DE04D2B2D4a5A74581EBA94124A"},24829:function(e,t,n){"use strict";t.A=void 0;var r=n(85099);Object.defineProperty(t,"A",{enumerable:!0,get:function(){return r.Seaport}})},85099:function(e,t,n){"use strict";var r=n(98371).default,i=n(14759).default,o=n(40299).default,a=n(39649).default,s=n(93213).default,u=n(62638).default,c=n(1023).default,l=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.Seaport=void 0;var f=n(21075),d=n(26032),p=n(17803),h=n(4687),m=n(80041),y=n(24975),v=n(29082),g=n(96710),b=n(74637),w=n(95363),x=n(80991),A=n(81849),k=n(84428),E=function(){function e(t){var n,r,i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},a=o.overrides,c=o.ascendingAmountFulfillmentBuffer,l=void 0===c?300:c,p=o.balanceAndApprovalChecksOnOrderCreation,v=void 0===p||p,g=o.conduitKeyToConduit,b=o.seaportVersion,w=void 0===b?"1.5":b;u(this,e),this.OPENSEA_CONDUIT_KEY=y.OPENSEA_CONDUIT_KEY,this.getOrderHash=function(e){var t="OfferItem(uint8 itemType,address token,uint256 identifierOrCriteria,uint256 startAmount,uint256 endAmount)",n="ConsiderationItem(uint8 itemType,address token,uint256 identifierOrCriteria,uint256 startAmount,uint256 endAmount,address recipient)",r="".concat("OrderComponents(address offerer,address zone,OfferItem[] offer,ConsiderationItem[] consideration,uint8 orderType,uint256 startTime,uint256 endTime,bytes32 zoneHash,uint256 salt,bytes32 conduitKey,uint256 counter)").concat(n).concat(t),i=d.ethers.utils.keccak256(d.ethers.utils.toUtf8Bytes(t)),o=d.ethers.utils.keccak256(d.ethers.utils.toUtf8Bytes(n)),a=d.ethers.utils.keccak256(d.ethers.utils.toUtf8Bytes(r)),s=d.ethers.utils.keccak256("0x"+e.offer.map((function(e){return d.ethers.utils.keccak256("0x"+[i.slice(2),e.itemType.toString().padStart(64,"0"),e.token.slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.identifierOrCriteria).toHexString().slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.startAmount).toHexString().slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.endAmount).toHexString().slice(2).padStart(64,"0")].join("")).slice(2)})).join("")),u=d.ethers.utils.keccak256("0x"+e.consideration.map((function(e){return d.ethers.utils.keccak256("0x"+[o.slice(2),e.itemType.toString().padStart(64,"0"),e.token.slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.identifierOrCriteria).toHexString().slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.startAmount).toHexString().slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.endAmount).toHexString().slice(2).padStart(64,"0"),e.recipient.slice(2).padStart(64,"0")].join("")).slice(2)})).join(""));return d.ethers.utils.keccak256("0x"+[a.slice(2),e.offerer.slice(2).padStart(64,"0"),e.zone.slice(2).padStart(64,"0"),s.slice(2),u.slice(2),e.orderType.toString().padStart(64,"0"),d.ethers.BigNumber.from(e.startTime).toHexString().slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.endTime).toHexString().slice(2).padStart(64,"0"),e.zoneHash.slice(2),d.BigNumber.from(e.salt).toHexString().slice(2).padStart(64,"0"),e.conduitKey.slice(2).padStart(64,"0"),d.ethers.BigNumber.from(e.counter).toHexString().slice(2).padStart(64,"0")].join(""))};var x=t instanceof d.providers.Provider?t:t.provider;if(this.signer=t._isSigner?t:void 0,!x)throw new Error("Either a provider or custom signer with provider must be provided");this.provider=x,this.multicallProvider=new f.providers.MulticallProvider(this.provider),this.contract=new d.Contract(null!==(n=null===a||void 0===a?void 0:a.contractAddress)&&void 0!==n?n:"1.5"===w?y.CROSS_CHAIN_SEAPORT_V1_5_ADDRESS:y.CROSS_CHAIN_SEAPORT_V1_4_ADDRESS,m.SeaportABIv14,this.multicallProvider),this.domainRegistry=new d.Contract(null!==(r=null===a||void 0===a?void 0:a.domainRegistryAddress)&&void 0!==r?r:y.DOMAIN_REGISTRY_ADDRESS,h.DomainRegistryABI,this.multicallProvider),this.config={ascendingAmountFulfillmentBuffer:l,balanceAndApprovalChecksOnOrderCreation:v,conduitKeyToConduit:Object.assign(Object.assign(Object.assign({},y.KNOWN_CONDUIT_KEYS_TO_CONDUIT),s({},y.NO_CONDUIT,this.contract.address)),g),seaportVersion:w},this.defaultConduitKey=null!==(i=null===a||void 0===a?void 0:a.defaultConduitKey)&&void 0!==i?i:y.NO_CONDUIT}return c(e,[{key:"createOrder",value:function(e,t,n){return l(this,void 0,void 0,a().mark((function r(){var i,s,u,c,f,d,p,h=this;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=this._getSigner(t),null===t||void 0===t){r.next=5;break}r.t0=t,r.next=8;break;case 5:return r.next=7,i.getAddress();case 7:r.t0=r.sent;case 8:return s=r.t0,r.next=11,this._formatOrder(i,s,Boolean(n),e);case 11:return u=r.sent,c=u.orderComponents,f=u.approvalActions,d={type:"create",getMessageToSign:function(){return h._getMessageToSign(c)},createOrder:function(){return l(h,void 0,void 0,a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signOrder(c,s);case 2:return t=e.sent,e.abrupt("return",{parameters:c,signature:t});case 4:case"end":return e.stop()}}),e,this)})))}},p=[].concat(o(f),[d]),r.abrupt("return",{actions:p,executeAllActions:function(){return(0,k.executeAllActions)(p)}});case 17:case"end":return r.stop()}}),r,this)})))}},{key:"createBulkOrders",value:function(e,t,n){var r;return l(this,void 0,void 0,a().mark((function o(){var s,u,c,f,d,p,h,m,y,v,g,b,w,x,A,E=this;return a().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return s=this._getSigner(t),o.next=3,s.getAddress();case 3:return u=o.sent,o.next=6,this.getCounter(u);case 6:c=o.sent,f=[],d=[],p=i(e),o.prev=10,p.s();case 12:if((h=p.n()).done){o.next=39;break}return m=h.value,null!==(r=m.counter)&&void 0!==r||(m.counter=c),o.next=17,this._formatOrder(s,u,Boolean(n),m);case 17:y=o.sent,v=y.orderComponents,g=y.approvalActions,d.push(v),b=i(g),o.prev=22,x=a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=w.value,void 0===f.find((function(e){return e.token===t.token}))&&f.push(t);case 2:case"end":return e.stop()}}),e)})),b.s();case 25:if((w=b.n()).done){o.next=29;break}return o.delegateYield(x(),"t0",27);case 27:o.next=25;break;case 29:o.next=34;break;case 31:o.prev=31,o.t1=o.catch(22),b.e(o.t1);case 34:return o.prev=34,b.f(),o.finish(34);case 37:o.next=12;break;case 39:o.next=44;break;case 41:o.prev=41,o.t2=o.catch(10),p.e(o.t2);case 44:return o.prev=44,p.f(),o.finish(44);case 47:return A=[].concat(f,[{type:"createBulk",getMessageToSign:function(){return E._getBulkMessageToSign(d)},createBulkOrders:function(){return l(E,void 0,void 0,a().mark((function e(){var t;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.signBulkOrder(d,u);case 2:return t=e.sent,e.abrupt("return",t);case 4:case"end":return e.stop()}}),e,this)})))}}]),o.abrupt("return",{actions:A,executeAllActions:function(){return(0,k.executeAllActions)(A)}});case 50:case"end":return o.stop()}}),o,this,[[10,41,44,47],[22,31,34,37]])})))}},{key:"_formatOrder",value:function(e,t,n,r){var i,s=r.conduitKey,u=void 0===s?this.defaultConduitKey:s,c=r.zone,f=void 0===c?d.ethers.constants.AddressZero:c,p=r.zoneHash,h=void 0===p?d.ethers.constants.HashZero:p,m=r.startTime,b=void 0===m?Math.floor(Date.now()/1e3).toString():m,w=r.endTime,k=void 0===w?y.MAX_INT.toString():w,E=r.offer,T=r.consideration,_=r.counter,S=r.allowPartialFills,C=r.restrictedByZone,I=r.fees,O=r.domain,P=r.salt;return l(this,void 0,void 0,a().mark((function r(){var s,c,l,p,m,y,w,R,M,B,N,F,D;return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(s=E.map(A.mapInputItemToOfferItem),c=o(T.map((function(e){var n;return Object.assign(Object.assign({},(0,A.mapInputItemToOfferItem)(e)),{recipient:null!==(n=e.recipient)&&void 0!==n?n:t})}))),!(null===I||void 0===I?void 0:I.length)||(0,A.areAllCurrenciesSame)({offer:s,consideration:c})){r.next=4;break}throw new Error("All currency tokens in the order must be the same token when applying fees");case 4:if(l=[].concat(o(s),o(c)).filter(x.isCurrencyItem),p=(0,A.totalItemsAmount)(l),m=this.config.conduitKeyToConduit[u],y=this._getOrderTypeFromOrderOptions({allowPartialFills:S,restrictedByZone:C}),w=[].concat(o((0,A.deductFees)(c,I)),o(l.length&&null!==(i=null===I||void 0===I?void 0:I.map((function(e){return(0,A.feeToConsiderationItem)({fee:e,token:l[0].token,baseAmount:p.startAmount,baseEndAmount:p.endAmount})})))&&void 0!==i?i:[])),R=void 0!==P?"0x".concat(d.BigNumber.from(P).toHexString().slice(2).padStart(64,"0")):(0,A.generateRandomSalt)(O),r.t0=t,r.t1=f,r.t2=h,r.t3=b,r.t4=k,r.t5=y,r.t6=s,r.t7=w,r.t8=w.length,r.t9=R,r.t10=u,null===_||void 0===_){r.next=25;break}r.t11=_,r.next=28;break;case 25:return r.next=27,this.getCounter(t);case 27:r.t11=r.sent;case 28:if(r.t12=r.t11.toString(),M={offerer:r.t0,zone:r.t1,zoneHash:r.t2,startTime:r.t3,endTime:r.t4,orderType:r.t5,offer:r.t6,consideration:r.t7,totalOriginalConsiderationItems:r.t8,salt:r.t9,conduitKey:r.t10,counter:r.t12},B=[],!this.config.balanceAndApprovalChecksOnOrderCreation){r.next=38;break}return r.next=34,(0,g.getBalancesAndApprovals)({owner:t,items:s,criterias:[],multicallProvider:this.multicallProvider,operator:m});case 34:N=r.sent,F=(0,g.validateOfferBalancesAndApprovals)({offer:s,criterias:[],balancesAndApprovals:N,throwOnInsufficientBalances:!0,operator:m}),D=(0,v.getApprovalActions)(F,n,e),B.push.apply(B,o(D));case 38:return r.abrupt("return",{orderComponents:M,approvalActions:B});case 39:case"end":return r.stop()}}),r,this)})))}},{key:"_getSigner",value:function(e){if(this.signer)return this.signer;if(!(this.provider instanceof d.providers.JsonRpcProvider))throw new Error("Either signer or a JsonRpcProvider must be provided");return this.provider.getSigner(e)}},{key:"_getOrderTypeFromOrderOptions",value:function(e){var t=e.allowPartialFills,n=e.restrictedByZone;return t?n?y.OrderType.PARTIAL_RESTRICTED:y.OrderType.PARTIAL_OPEN:n?y.OrderType.FULL_RESTRICTED:y.OrderType.FULL_OPEN}},{key:"_getDomainData",value:function(){return l(this,void 0,void 0,a().mark((function e(){var t,n;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getNetwork();case 2:return t=e.sent,n=t.chainId,e.abrupt("return",{name:y.SEAPORT_CONTRACT_NAME,version:"1.5"===this.config.seaportVersion?y.SEAPORT_CONTRACT_VERSION_V1_5:y.SEAPORT_CONTRACT_VERSION_V1_4,chainId:n,verifyingContract:this.contract.address});case 5:case"end":return e.stop()}}),e,this)})))}},{key:"_getMessageToSign",value:function(e){return l(this,void 0,void 0,a().mark((function t(){var n;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getDomainData();case 2:return n=t.sent,t.abrupt("return",JSON.stringify(p._TypedDataEncoder.getPayload(n,y.EIP_712_ORDER_TYPE,e)));case 4:case"end":return t.stop()}}),t,this)})))}},{key:"_getBulkMessageToSign",value:function(e){return l(this,void 0,void 0,a().mark((function t(){var n,r,i,o;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._getDomainData();case 2:return n=t.sent,r=(0,b.getBulkOrderTree)(e),i=r.types,o=r.getDataToSign(),t.abrupt("return",JSON.stringify(p._TypedDataEncoder.getPayload(n,i,{tree:o})));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"signOrder",value:function(e,t){return l(this,void 0,void 0,a().mark((function n(){var r,i,o;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=this._getSigner(t),n.next=3,this._getDomainData();case 3:return i=n.sent,n.next=6,r._signTypedData(i,y.EIP_712_ORDER_TYPE,e);case 6:return 132===(o=n.sent).length&&(o=d.ethers.utils.splitSignature(o).compact),n.abrupt("return",o);case 9:case"end":return n.stop()}}),n,this)})))}},{key:"signBulkOrder",value:function(e,t){return l(this,void 0,void 0,a().mark((function n(){var r,i,o,s,u,c,l,f;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=this._getSigner(t),n.next=3,this._getDomainData();case 3:return i=n.sent,o=(0,b.getBulkOrderTree)(e),s=o.types,u=o.getDataToSign(),c={tree:u},n.next=10,r._signTypedData(i,s,c);case 10:return 132===(l=n.sent).length&&(l=d.ethers.utils.splitSignature(l).compact),f=e.map((function(e,t){return{parameters:e,signature:o.getEncodedProofAndSignature(t,l)}})),n.abrupt("return",f);case 14:case"end":return n.stop()}}),n,this)})))}},{key:"cancelOrders",value:function(e,t,n){var r=this._getSigner(t);return(0,k.getTransactionMethods)(this.contract.connect(r),"cancel",[e],n)}},{key:"bulkCancelOrders",value:function(e,t){var n=this._getSigner(e);return(0,k.getTransactionMethods)(this.contract.connect(n),"incrementCounter",[],t)}},{key:"validate",value:function(e,t,n){var r=this._getSigner(t);return(0,k.getTransactionMethods)(this.contract.connect(r),"validate",[e],n)}},{key:"getOrderStatus",value:function(e){return this.contract.getOrderStatus(e)}},{key:"getCounter",value:function(e){return this.contract.getCounter(e)}},{key:"fulfillOrder",value:function(e){var t=e.order,n=e.unitsToFill,i=e.offerCriteria,s=void 0===i?[]:i,u=e.considerationCriteria,c=void 0===u?[]:u,f=e.tips,p=void 0===f?[]:f,h=e.extraData,m=void 0===h?"0x":h,y=e.accountAddress,v=e.conduitKey,b=void 0===v?this.defaultConduitKey:v,k=e.recipientAddress,E=void 0===k?d.ethers.constants.AddressZero:k,T=e.domain,_=e.exactApproval,S=void 0!==_&&_;return l(this,void 0,void 0,a().mark((function e(){var i,u,l,f,h,v,k,_,C,I,O,P,R,M,B,N,F,D,L,z,j;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.signature){e.next=2;break}throw new Error("Order is missing signature");case 2:return i=t.parameters,u=i.offerer,l=i.offer,f=i.consideration,h=this._getSigner(y),e.next=7,h.getAddress();case 7:return v=e.sent,k=this.config.conduitKeyToConduit[i.conduitKey],_=this.config.conduitKeyToConduit[b],e.next=12,Promise.all([(0,g.getBalancesAndApprovals)({owner:u,items:l,criterias:s,multicallProvider:this.multicallProvider,operator:k}),(0,g.getBalancesAndApprovals)({owner:v,items:[].concat(o(l),o(f)),criterias:[].concat(o(s),o(c)),multicallProvider:this.multicallProvider,operator:_}),this.multicallProvider.getBlock("latest"),this.getOrderStatus(this.getOrderHash(i))]);case 12:if(C=e.sent,I=r(C,4),O=I[0],P=I[1],R=I[2],M=I[3],B=R.timestamp,N=M.totalFilled,F=M.totalSize,D=(0,w.validateAndSanitizeFromOrderStatus)(t,M),L={startTime:D.parameters.startTime,endTime:D.parameters.endTime,currentBlockTimestamp:B,ascendingAmountTimestampBuffer:this.config.ascendingAmountFulfillmentBuffer},z=p.map((function(e){return Object.assign(Object.assign({},(0,A.mapInputItemToOfferItem)(e)),{recipient:e.recipient})})),j=E===d.ethers.constants.AddressZero,n||!j||!(0,w.shouldUseBasicFulfill)(D.parameters,N)){e.next=26;break}return e.abrupt("return",(0,w.fulfillBasicOrder)({order:D,seaportContract:this.contract,offererBalancesAndApprovals:O,fulfillerBalancesAndApprovals:P,timeBasedItemParams:L,conduitKey:b,offererOperator:k,fulfillerOperator:_,signer:h,tips:z,domain:T},S));case 26:return e.abrupt("return",(0,w.fulfillStandardOrder)({order:D,unitsToFill:n,totalFilled:N,totalSize:F.eq(0)?(0,x.getMaximumSizeForOrder)(D):F,offerCriteria:s,considerationCriteria:c,tips:z,extraData:m,seaportContract:this.contract,offererBalancesAndApprovals:O,fulfillerBalancesAndApprovals:P,timeBasedItemParams:L,conduitKey:b,signer:h,offererOperator:k,fulfillerOperator:_,recipientAddress:E,domain:T},S));case 27:case"end":return e.stop()}}),e,this)})))}},{key:"fulfillOrders",value:function(e){var t=e.fulfillOrderDetails,n=e.accountAddress,i=e.conduitKey,s=void 0===i?this.defaultConduitKey:i,u=e.recipientAddress,c=void 0===u?d.ethers.constants.AddressZero:u,f=e.domain,p=e.exactApproval,h=void 0!==p&&p;return l(this,void 0,void 0,a().mark((function e(){var i,u,l,d,p,m,y,v,b,x,k,E,T,_,S,C=this;return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.some((function(e){return!e.order.signature}))){e.next=2;break}throw new Error("All orders must include signatures");case 2:return i=this._getSigner(n),e.next=5,i.getAddress();case 5:return u=e.sent,l=t.map((function(e){var t=e.order;return C.config.conduitKeyToConduit[t.parameters.conduitKey]})),d=this.config.conduitKeyToConduit[s],p=t.flatMap((function(e){return e.order.parameters.offer})),m=t.flatMap((function(e){return e.order.parameters.consideration})),y=t.flatMap((function(e){var t=e.offerCriteria;return void 0===t?[]:t})),v=t.flatMap((function(e){var t=e.considerationCriteria;return void 0===t?[]:t})),e.next=14,Promise.all([Promise.all(t.map((function(e,t){var n=e.order,r=e.offerCriteria,i=void 0===r?[]:r;return(0,g.getBalancesAndApprovals)({owner:n.parameters.offerer,items:n.parameters.offer,criterias:i,operator:l[t],multicallProvider:C.multicallProvider})}))),(0,g.getBalancesAndApprovals)({owner:u,items:[].concat(o(p),o(m)),criterias:[].concat(o(y),o(v)),operator:d,multicallProvider:this.multicallProvider}),this.multicallProvider.getBlock("latest"),Promise.all(t.map((function(e){var t=e.order;return C.getOrderStatus(C.getOrderHash(t.parameters))})))]);case 14:return b=e.sent,x=r(b,4),k=x[0],E=x[1],T=x[2],_=x[3],S=t.map((function(e,t){var n,r,i,o,a;return{order:e.order,unitsToFill:e.unitsToFill,orderStatus:_[t],offerCriteria:null!==(n=e.offerCriteria)&&void 0!==n?n:[],considerationCriteria:null!==(r=e.considerationCriteria)&&void 0!==r?r:[],tips:null!==(o=null===(i=e.tips)||void 0===i?void 0:i.map((function(e){return Object.assign(Object.assign({},(0,A.mapInputItemToOfferItem)(e)),{recipient:e.recipient})})))&&void 0!==o?o:[],extraData:null!==(a=e.extraData)&&void 0!==a?a:"0x",offererBalancesAndApprovals:k[t],offererOperator:l[t]}})),e.abrupt("return",(0,w.fulfillAvailableOrders)({ordersMetadata:S,seaportContract:this.contract,fulfillerBalancesAndApprovals:E,currentBlockTimestamp:T.timestamp,ascendingAmountTimestampBuffer:this.config.ascendingAmountFulfillmentBuffer,fulfillerOperator:d,signer:i,conduitKey:s,recipientAddress:c,domain:f,exactApproval:h}));case 22:case"end":return e.stop()}}),e,this)})))}},{key:"matchOrders",value:function(e){var t=e.orders,n=e.fulfillments,r=e.overrides,i=e.accountAddress,o=e.domain,a=this._getSigner(i);return(0,k.getTransactionMethods)(this.contract.connect(a),"matchOrders",[t,n,r],o)}},{key:"setDomain",value:function(e,t){var n=this._getSigner(t);return(0,k.getTransactionMethods)(this.domainRegistry.connect(n),"setDomain",[e])}},{key:"getNumberOfDomains",value:function(e){return l(this,void 0,void 0,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.domainRegistry.getNumberOfDomains(e));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getDomain",value:function(e,t){return this.domainRegistry.getDomain(e,t)}},{key:"getDomains",value:function(e,t){return l(this,void 0,void 0,a().mark((function n(){var r,i,s=this;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.prev=0,!t){n.next=3;break}throw Error;case 3:return n.abrupt("return",this.domainRegistry.getDomains(e));case 6:return n.prev=6,n.t0=n.catch(0),n.next=10,this.domainRegistry.getNumberOfDomains(e);case 10:return r=n.sent.toNumber(),i=Promise.all(o(Array(r).keys()).map((function(t){return s.domainRegistry.getDomain(e,t)}))),n.abrupt("return",i);case 13:case"end":return n.stop()}}),n,this,[[0,6]])})))}}]),e}();t.Seaport=E},29082:function(e,t,n){"use strict";var r=n(39649).default,i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getApprovalActions=t.approvedItemAmount=void 0;var o=n(26032),a=n(8524),s=n(68648),u=n(24975),c=n(80991),l=n(84428);t.approvedItemAmount=function(e,t,n,l){return i(void 0,void 0,void 0,r().mark((function i(){var f,d;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(0,c.isErc721Item)(t.itemType)&&!(0,c.isErc1155Item)(t.itemType)){r.next=5;break}return f=new o.Contract(t.token,s.ERC721ABI,l),r.abrupt("return",f.isApprovedForAll(e,n).then((function(e){return e?u.MAX_INT:o.BigNumber.from(0)})));case 5:if(t.itemType!==u.ItemType.ERC20){r.next=8;break}return d=new o.Contract(t.token,a.ERC20ABI,l),r.abrupt("return",d.allowance(e,n));case 8:return r.abrupt("return",u.MAX_INT);case 9:case"end":return r.stop()}}),i)})))},t.getApprovalActions=function(e,t,n){return e.filter((function(t,n){return n===e.length-1||e[n+1].token!==t.token})).map((function(e){var r=e.token,i=e.operator,f=e.itemType,d=e.identifierOrCriteria,p=e.requiredApprovedAmount,h=(0,c.isErc1155Item)(f);if((0,c.isErc721Item)(f)||h){var m=new o.Contract(r,s.ERC721ABI,n);return{type:"approval",token:r,identifierOrCriteria:d,itemType:f,operator:i,transactionMethods:(0,l.getTransactionMethods)(m.connect(n),t&&!h?"approve":"setApprovalForAll",[i,!(t&&!h)||d])}}var y=new o.Contract(r,a.ERC20ABI,n);return{type:"approval",token:r,identifierOrCriteria:d,itemType:f,transactionMethods:(0,l.getTransactionMethods)(y.connect(n),"approve",[i,t?p:u.MAX_INT]),operator:i}}))}},34811:function(e,t,n){"use strict";var r=n(39649).default,i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.balanceOf=void 0;var o=n(26032),a=n(79762),s=n(8524),u=n(68648),c=n(24975),l=n(80991);t.balanceOf=function(e,t,n,f){return i(void 0,void 0,void 0,r().mark((function i(){var d,p,h,m,y;return r().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(0,l.isErc721Item)(t.itemType)){r.next=7;break}if(d=new o.Contract(t.token,u.ERC721ABI,n),t.itemType!==c.ItemType.ERC721_WITH_CRITERIA){r.next=4;break}return r.abrupt("return",f?d.ownerOf(f.identifier).then((function(t){return o.BigNumber.from(Number(t.toLowerCase()===e.toLowerCase()))})):d.balanceOf(e));case 4:return r.abrupt("return",d.ownerOf(t.identifierOrCriteria).then((function(t){return o.BigNumber.from(Number(t.toLowerCase()===e.toLowerCase()))})));case 7:if(!(0,l.isErc1155Item)(t.itemType)){r.next=16;break}if(p=new o.Contract(t.token,a.ERC1155ABI,n),t.itemType!==c.ItemType.ERC1155_WITH_CRITERIA){r.next=15;break}if(f){r.next=14;break}return h=o.BigNumber.from(t.startAmount),m=o.BigNumber.from(t.endAmount),r.abrupt("return",h.gt(m)?h:m);case 14:return r.abrupt("return",p.balanceOf(e,f.identifier));case 15:return r.abrupt("return",p.balanceOf(e,t.identifierOrCriteria));case 16:if(!(0,l.isErc20Item)(t.itemType)){r.next=19;break}return y=new o.Contract(t.token,s.ERC20ABI,n),r.abrupt("return",y.balanceOf(e));case 19:return r.abrupt("return",n.getBalance(e));case 20:case"end":return r.stop()}}),i)})))}},96710:function(e,t,n){"use strict";var r=n(98371).default,i=n(40299).default,o=n(39649).default,a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.validateStandardFulfillBalancesAndApprovals=t.validateBasicFulfillBalancesAndApprovals=t.validateOfferBalancesAndApprovals=t.getInsufficientBalanceAndApprovalAmounts=t.getBalancesAndApprovals=void 0;var s=n(26032),u=n(24975),c=n(29082),l=n(34811),f=n(68216),d=n(80991),p=function(e,t,n){var r=e.find((function(e){var r=e.token,i=e.identifierOrCriteria;return t.toLowerCase()===r.toLowerCase()&&i.toLowerCase()===n.toLowerCase()}));if(!r)throw new Error("Balances and approvals didn't contain all tokens and identifiers");return r};t.getBalancesAndApprovals=function(e){var t=e.owner,n=e.items,r=e.criterias,i=e.operator,p=e.multicallProvider;return a(void 0,void 0,void 0,o().mark((function e(){var h;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return h=(0,f.getItemToCriteriaMap)(n,r),e.abrupt("return",Promise.all(n.map((function(e){return a(void 0,void 0,void 0,o().mark((function n(){var r,a,f;return o().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return f=Promise.resolve(s.BigNumber.from(0)),f=(0,d.isErc721Item)(e.itemType)||(0,d.isErc1155Item)(e.itemType)||(0,d.isErc20Item)(e.itemType)?(0,c.approvedItemAmount)(t,e,i,p):Promise.resolve(u.MAX_INT),n.t0=e.token,n.t1=null!==(a=null===(r=h.get(e))||void 0===r?void 0:r.identifier)&&void 0!==a?a:e.identifierOrCriteria,n.next=6,(0,l.balanceOf)(t,e,p,h.get(e));case 6:return n.t2=n.sent,n.next=9,f;case 9:return n.t3=n.sent,n.t4=e.itemType,n.abrupt("return",{token:n.t0,identifierOrCriteria:n.t1,balance:n.t2,approvedAmount:n.t3,itemType:n.t4});case 12:case"end":return n.stop()}}),n)})))}))));case 2:case"end":return e.stop()}}),e)})))};t.getInsufficientBalanceAndApprovalAmounts=function(e){var t=e.balancesAndApprovals,n=e.tokenAndIdentifierAmounts,o=e.operator,a=i(Object.entries(n).map((function(e){var t=r(e,2),n=t[0],i=t[1];return Object.entries(i).map((function(e){var t=r(e,2),i=t[0],o=t[1];return[n,i,o]}))}))).flat(),s=function(e){return a.filter((function(n){var i=r(n,3),o=i[0],a=i[1],s=i[2];return p(t,o,a)[e].lt(s)})).map((function(n){var i=r(n,3),o=i[0],a=i[1],s=i[2],u=p(t,o,a);return{token:o,identifierOrCriteria:a,requiredAmount:s,amountHave:u[e],itemType:u.itemType}}))},u=[s("balance"),s("approvedAmount").map((function(e){return{token:e.token,identifierOrCriteria:e.identifierOrCriteria,approvedAmount:e.amountHave,requiredApprovedAmount:e.requiredAmount,itemType:e.itemType,operator:o}}))];return{insufficientBalances:u[0],insufficientApprovals:u[1]}};t.validateOfferBalancesAndApprovals=function(e){var n=e.offer,r=e.criterias,i=e.balancesAndApprovals,o=e.timeBasedItemParams,a=e.throwOnInsufficientBalances,s=void 0===a||a,u=e.throwOnInsufficientApprovals,c=e.operator,l=(0,t.getInsufficientBalanceAndApprovalAmounts)({balancesAndApprovals:i,tokenAndIdentifierAmounts:(0,d.getSummedTokenAndIdentifierAmounts)({items:n,criterias:r,timeBasedItemParams:o?Object.assign(Object.assign({},o),{isConsiderationItem:!1}):void 0}),operator:c}),f=l.insufficientBalances,p=l.insufficientApprovals;if(s&&f.length>0)throw new Error("The offerer does not have the amount needed to create or fulfill.");if(u&&p.length>0)throw new Error("The offerer does not have the sufficient approvals.");return p};t.validateBasicFulfillBalancesAndApprovals=function(e){var n=e.offer,r=e.consideration,i=e.offererBalancesAndApprovals,o=e.fulfillerBalancesAndApprovals,a=e.timeBasedItemParams,s=e.offererOperator,u=e.fulfillerOperator;(0,t.validateOfferBalancesAndApprovals)({offer:n,criterias:[],balancesAndApprovals:i,timeBasedItemParams:a,throwOnInsufficientApprovals:!0,operator:s});var c=r.filter((function(e){return e.itemType!==n[0].itemType})),l=(0,t.getInsufficientBalanceAndApprovalAmounts)({balancesAndApprovals:o,tokenAndIdentifierAmounts:(0,d.getSummedTokenAndIdentifierAmounts)({items:c,criterias:[],timeBasedItemParams:Object.assign(Object.assign({},a),{isConsiderationItem:!0})}),operator:u}),f=l.insufficientBalances,p=l.insufficientApprovals;if(f.length>0)throw new Error("The fulfiller does not have the balances needed to fulfill.");return p};t.validateStandardFulfillBalancesAndApprovals=function(e){var n=e.offer,r=e.consideration,i=e.offerCriteria,o=e.considerationCriteria,a=e.offererBalancesAndApprovals,s=e.fulfillerBalancesAndApprovals,u=e.timeBasedItemParams,c=e.offererOperator,l=e.fulfillerOperator;(0,t.validateOfferBalancesAndApprovals)({offer:n,criterias:i,balancesAndApprovals:a,timeBasedItemParams:u,throwOnInsufficientApprovals:!0,operator:c});var f=h({items:n,criterias:i,balancesAndApprovals:s,timeBasedItemParams:u}),p=(0,t.getInsufficientBalanceAndApprovalAmounts)({balancesAndApprovals:f,tokenAndIdentifierAmounts:(0,d.getSummedTokenAndIdentifierAmounts)({items:r,criterias:o,timeBasedItemParams:Object.assign(Object.assign({},u),{isConsiderationItem:!0})}),operator:l}),m=p.insufficientBalances,y=p.insufficientApprovals;if(m.length>0)throw new Error("The fulfiller does not have the balances needed to fulfill.");return y};var h=function(e){var t=e.items,n=e.criterias,i=e.timeBasedItemParams,o=e.balancesAndApprovals,a=(0,d.getSummedTokenAndIdentifierAmounts)({items:t,criterias:n,timeBasedItemParams:Object.assign(Object.assign({},i),{isConsiderationItem:!1})}),s=o.map((function(e){return Object.assign({},e)}));return Object.entries(a).forEach((function(e){var t=r(e,2),n=t[0],i=t[1];return Object.entries(i).forEach((function(e){var t=r(e,2),i=t[0],o=t[1],a=p(s,n,i),u=s.indexOf(a);s[u].balance=s[u].balance.add(o)}))})),s}},68216:function(e,t,n){"use strict";var r=n(40299).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getItemToCriteriaMap=t.generateCriteriaResolvers=void 0;var i=n(24975),o=n(80991);t.generateCriteriaResolvers=function(e){var t=e.orders,n=e.offerCriterias,a=void 0===n?[[]]:n,s=e.considerationCriterias,u=void 0===s?[[]]:s,c=t.flatMap((function(e,t){return e.parameters.offer.map((function(e,n){return{orderIndex:t,item:e,index:n,side:i.Side.OFFER}})).filter((function(e){var t=e.item;return(0,o.isCriteriaItem)(t.itemType)}))})),l=t.flatMap((function(e,t){return e.parameters.consideration.map((function(e,n){return{orderIndex:t,item:e,index:n,side:i.Side.CONSIDERATION}})).filter((function(e){var t=e.item;return(0,o.isCriteriaItem)(t.itemType)}))})),f=function(e,t){return e.map((function(e){var n=e.orderIndex,r=e.item,i=e.index,o=e.side,a=r.identifierOrCriteria||"0",s=t[n][i];return{orderIndex:n,index:i,side:o,identifier:s.identifier,criteriaProof:"0"===a?[]:s.proof}}))};return[].concat(r(f(c,a)),r(f(l,u)))};t.getItemToCriteriaMap=function(e,t){var n=r(t);return e.reduce((function(e,t){return(0,o.isCriteriaItem)(t.itemType)&&e.set(t,n.shift()),e}),new Map)}},31985:function(e,t,n){"use strict";var r=n(40299).default,i=n(62638).default,o=n(1023).default;Object.defineProperty(t,"__esModule",{value:!0}),t.Eip712MerkleTree=void 0;var a=n(22728),s=n(17803),u=n(65211),c=n(31456),l=n(9889),f=function(){function e(t,n,r,o,s){i(this,e),this.types=t,this.rootType=n,this.leafType=r,this.elements=o,this.depth=s;var f,d,p=a._TypedDataEncoder.from(t);this.encoder=p,this.leafHasher=function(e){return p.hashStruct(r,e)},this.defaultNode=c.DefaultGetter.from(t,r),this.defaultLeaf=this.leafHasher(this.defaultNode),this.tree=(f=this.getCompleteLeaves(),d=this.defaultLeaf,new u.MerkleTree(f.map(l.hexToBuffer),l.bufferKeccak,{complete:!0,sort:!1,hashLeaves:!1,fillDefaultHash:(0,l.hexToBuffer)(d)}))}return o(e,[{key:"completedSize",get:function(){return Math.pow(2,this.depth)}},{key:"getCompleteElements",value:function(){var e=this.elements;return(0,l.fillArray)(r(e),this.completedSize,this.defaultNode)}},{key:"getCompleteLeaves",value:function(){var e=this.elements.map(this.leafHasher);return(0,l.fillArray)(r(e),this.completedSize,this.defaultLeaf)}},{key:"root",get:function(){return this.tree.getHexRoot()}},{key:"getProof",value:function(e){var t=this.getCompleteLeaves()[e];return{leaf:t,proof:this.tree.getHexProof(t,e),root:this.tree.getHexRoot()}}},{key:"getEncodedProofAndSignature",value:function(e,t){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"0x".concat("ff".repeat(64));return(0,s.hexConcat)([n,"0x".concat(e.toString(16).padStart(6,"0")),s.defaultAbiCoder.encode(["uint256[".concat(t.length,"]")],[t])])}(e,this.getProof(e).proof,t)}},{key:"getDataToSign",value:function(){for(var e=this.getCompleteElements();e.length>2;)e=(0,l.chunk)(e,2);return e}},{key:"add",value:function(e){this.elements.push(e)}},{key:"getBulkOrderHash",value:function(){var e=this.encoder.hashStruct("BulkOrder",{tree:this.getDataToSign()}),t=this.getCompleteLeaves().map(l.hexToBuffer),n=(0,l.bufferToHex)((0,l.getRoot)(t,!1)),r=(0,s.keccak256)((0,s.toUtf8Bytes)(this.encoder._types.BulkOrder));if((0,s.keccak256)((0,s.hexConcat)([r,n]))!==e)throw new Error("expected derived bulk order hash to match");return e}}]),e}();t.Eip712MerkleTree=f},74637:function(e,t,n){"use strict";var r=n(40299).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getBulkOrderTypeHashes=t.getBulkOrderTypeHash=t.getBulkOrderTree=t.getBulkOrderTreeHeight=void 0;var i=n(17803),o=n(31985),a=n(31456),s=n(9889),u=n(24975);function c(e){var t=Object.assign({},u.EIP_712_BULK_ORDER_TYPE);return t.BulkOrder=[{name:"tree",type:"OrderComponents".concat("[2]".repeat(e))}],t}function l(e){return Math.max(Math.ceil(Math.log2(e)),1)}function f(e){var t=c(e),n=i._TypedDataEncoder.from(t),r=(0,i.toUtf8Bytes)(n._types.BulkOrder);return(0,i.keccak256)(r)}t.getBulkOrderTreeHeight=l,t.getBulkOrderTree=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l(e.length+t),i=c(n),u=a.DefaultGetter.from(i,"OrderComponents"),f=r(e);return t>0&&(f=[].concat(r((0,s.fillArray)([],t,u)),r(e))),new o.Eip712MerkleTree(i,"BulkOrder","OrderComponents",f,n)},t.getBulkOrderTypeHash=f,t.getBulkOrderTypeHashes=function(e){for(var t=[],n=0;n<e;n++)t.push(f(n+1));return t}},31456:function(e,t,n){"use strict";var r=n(93213).default,i=n(62638).default,o=n(1023).default,a=n(98371).default;Object.defineProperty(t,"__esModule",{value:!0}),t.DefaultGetter=void 0;var s=n(56919),u=n(17803),c=new s.Logger("defaults"),l={integer:0,address:(0,u.hexZeroPad)("0x",20),bool:!1,bytes:"0x",string:""},f=function e(t){return void 0!==t&&(void 0!==t&&null!==t&&(["string","number"].includes(typeof t)&&BigInt(t)===BigInt(0)||Array.isArray(t)&&t.every(e)||"object"===typeof t&&Object.values(t).every(e)||"boolean"===typeof t&&!1===t))};var d=function(){function e(t){for(var n in i(this,e),this.types=t,this.defaultValues={},t){var r=this.getDefaultValue(n);this.defaultValues[n]=r,f(r)||c.throwError("Got non-empty value for type ".concat(n," in default generator: ").concat(r))}}return o(e,[{key:"getDefaultValue",value:function(e){var t=this;if(this.defaultValues[e])return this.defaultValues[e];var n=function(e){var t,n=null!==(t=e.match(/^bytes(\d+)$/))&&void 0!==t?t:[],r=a(n,2)[1];return r?(0,u.hexZeroPad)("0x",parseInt(r)):(e.match(/^(u?)int(\d*)$/)&&(e="integer"),l[e])}(e);if(void 0!==n)return n;var i=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(i){var o=i[1],s=parseInt(i[3]);if(s>0){var f=this.getDefaultValue(o);return Array(s).fill(f)}return[]}var d=this.types[e];return d?d.reduce((function(e,n){var i=n.name,o=n.type;return Object.assign(Object.assign({},e),r({},i,t.getDefaultValue(o)))}),{}):c.throwArgumentError("unknown type: ".concat(e),"type",e)}}],[{key:"from",value:function(t,n){var r=new e(t).defaultValues;return n?r[n]:r}}]),e}();t.DefaultGetter=d},9889:function(e,t,n){"use strict";var r=n(40712).Buffer,i=n(40299).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getNextLayer=t.getRoot=t.fillArray=t.hashConcat=t.bufferKeccak=t.hexToBuffer=t.bufferToHex=t.chunk=t.makeArray=void 0;var o=n(17803);t.makeArray=function(e,t){return Array(e).fill(0).map((function(e,n){return t(n)}))};t.chunk=function(e,n){return(0,t.makeArray)(Math.ceil(e.length/n),(function(t){return e.slice(t*n,(t+1)*n)}))};t.bufferToHex=function(e){return(0,o.hexlify)(e)};t.hexToBuffer=function(e){return r.from(e.slice(2),"hex")};t.bufferKeccak=function(e){return(0,t.hexToBuffer)((0,o.keccak256)(e))};t.hashConcat=function(e){return(0,t.bufferKeccak)((0,o.hexConcat)(e))};t.fillArray=function(e,t,n){return t>e.length&&e.push.apply(e,i(Array(t-e.length).fill(n))),e};t.getRoot=function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(0===e.length)throw new Error("empty tree");for(var i=[e.map((function(e){var i=r.isBuffer(e)?e:(0,t.hexToBuffer)(e);return n?(0,t.bufferKeccak)(i):i}))];i[i.length-1].length>1;)i.push((0,t.getNextLayer)(i[i.length-1]));return i[i.length-1][0]};t.getNextLayer=function(e){return(0,t.chunk)(e,2).map(t.hashConcat)}},95363:function(e,t,n){"use strict";var r,i,o,a,s=n(93213).default,u=n(86764).default,c=n(40299).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getAdvancedOrderNumeratorDenominator=t.generateFulfillOrdersFulfillments=t.fulfillAvailableOrders=t.validateAndSanitizeFromOrderStatus=t.fulfillStandardOrder=t.fulfillBasicOrder=t.shouldUseBasicFulfill=void 0;var l=n(26032),f=n(24975),d=n(29082),p=n(96710),h=n(68216),m=n(98109),y=n(80991),v=n(81849),g=n(84428);t.shouldUseBasicFulfill=function(e,t){var n=e.offer,r=e.consideration,i=e.offerer;if(!t.eq(0))return!1;if(n.length>1||0===r.length)return!1;var o=[].concat(c(n),c(r)),a=o.filter((function(e){var t=e.itemType;return[f.ItemType.ERC721,f.ItemType.ERC1155].includes(t)})),s=o.filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)}));if((0,y.isNativeCurrencyItem)(n[0]))return!1;if(1!==a.length||0!==s.length)return!1;if(!(0,v.areAllCurrenciesSame)({offer:n,consideration:r}))return!1;if(o.some((function(e){return e.startAmount!==e.endAmount})))return!1;var d=u(r),p=d[0],h=d.slice(1);if(p.recipient.toLowerCase()!==i.toLowerCase())return!1;if(r.length>1&&h.every((function(e){return e.itemType===n[0].itemType}))&&(0,v.totalItemsAmount)(h).endAmount.gt(n[0].endAmount))return!1;var m=o.filter(y.isCurrencyItem),g=m.filter((function(e){return e.itemType===f.ItemType.NATIVE})).every((function(e){return e.token===l.ethers.constants.AddressZero})),b=m.every((function(e){var t=e.identifierOrCriteria;return l.BigNumber.from(t).eq(0)})),w=a.filter((function(e){return e.itemType===f.ItemType.ERC721})).every((function(e){return"1"===e.endAmount}));return g&&b&&w};var b=(s(a={},f.ItemType.ERC20,(s(r={},f.ItemType.ERC721,f.BasicOrderRouteType.ERC721_TO_ERC20),s(r,f.ItemType.ERC1155,f.BasicOrderRouteType.ERC1155_TO_ERC20),r)),s(a,f.ItemType.ERC721,(s(i={},f.ItemType.NATIVE,f.BasicOrderRouteType.ETH_TO_ERC721),s(i,f.ItemType.ERC20,f.BasicOrderRouteType.ERC20_TO_ERC721),i)),s(a,f.ItemType.ERC1155,(s(o={},f.ItemType.NATIVE,f.BasicOrderRouteType.ETH_TO_ERC1155),s(o,f.ItemType.ERC20,f.BasicOrderRouteType.ERC20_TO_ERC1155),o)),a);function w(e,t){var n=t.isValidated,r=t.isCancelled,i=t.totalFilled,o=t.totalSize;if(o.gt(0)&&i.div(o).eq(1))throw new Error("The order you are trying to fulfill is already filled");if(r)throw new Error("The order you are trying to fulfill is cancelled");return n?{parameters:Object.assign({},e.parameters),signature:"0x"}:e}function x(e){var t=function(e){var t=e.sourceOrDestination,n=e.operator,r=void 0===n?"":n,i=e.token,o=e.identifier;return"".concat(t,"-").concat(r,"-").concat(i,"-").concat(o)},n={},r={};return e.forEach((function(e,r){var i=e.order,o=e.offererOperator,a=e.offerCriteria,s=(0,h.getItemToCriteriaMap)(i.parameters.offer,a);return i.parameters.offer.forEach((function(e,a){var u,l,f,d="".concat(t({sourceOrDestination:i.parameters.offerer,operator:o,token:e.token,identifier:null!==(l=null===(u=s.get(e))||void 0===u?void 0:u.identifier)&&void 0!==l?l:e.identifierOrCriteria})).concat((0,y.isErc721Item)(e.itemType)?a:"");n[d]=[].concat(c(null!==(f=n[d])&&void 0!==f?f:[]),[{orderIndex:r,itemIndex:a}])}))})),e.forEach((function(e,n){var i=e.order,o=e.considerationCriteria,a=e.tips,s=(0,h.getItemToCriteriaMap)(i.parameters.consideration,o);return[].concat(c(i.parameters.consideration),c(a)).forEach((function(e,i){var o,a,u,l="".concat(t({sourceOrDestination:e.recipient,token:e.token,identifier:null!==(a=null===(o=s.get(e))||void 0===o?void 0:o.identifier)&&void 0!==a?a:e.identifierOrCriteria})).concat((0,y.isErc721Item)(e.itemType)?i:"");r[l]=[].concat(c(null!==(u=r[l])&&void 0!==u?u:[]),[{orderIndex:n,itemIndex:i}])}))})),{offerFulfillments:Object.values(n),considerationFulfillments:Object.values(r)}}t.fulfillBasicOrder=function(e,t){var n,r,i=e.order,o=e.seaportContract,a=e.offererBalancesAndApprovals,s=e.fulfillerBalancesAndApprovals,h=e.timeBasedItemParams,m=e.offererOperator,v=e.fulfillerOperator,w=e.signer,x=e.tips,A=void 0===x?[]:x,k=e.conduitKey,E=void 0===k?f.NO_CONDUIT:k,T=e.domain,_=i.parameters,S=_.offer,C=_.consideration,I=[].concat(c(C),c(A)),O=S[0],P=u(I),R=P[0],M=P.slice(1),B=null===(n=b[O.itemType])||void 0===n?void 0:n[R.itemType];if(void 0===B)throw new Error("Order parameters did not result in a valid basic fulfillment");var N=M.map((function(e){return{amount:e.startAmount,recipient:e.recipient}})),F=I.filter((function(e){return e.itemType!==S[0].itemType})),D=null===(r=(0,y.getSummedTokenAndIdentifierAmounts)({items:F,criterias:[],timeBasedItemParams:Object.assign(Object.assign({},h),{isConsiderationItem:!0})})[l.ethers.constants.AddressZero])||void 0===r?void 0:r[0],L=(0,p.validateBasicFulfillBalancesAndApprovals)({offer:S,consideration:I,offererBalancesAndApprovals:a,fulfillerBalancesAndApprovals:s,timeBasedItemParams:h,offererOperator:m,fulfillerOperator:v}),z={offerer:i.parameters.offerer,offererConduitKey:i.parameters.conduitKey,zone:i.parameters.zone,basicOrderType:i.parameters.orderType+4*B,offerToken:O.token,offerIdentifier:O.identifierOrCriteria,offerAmount:O.endAmount,considerationToken:R.token,considerationIdentifier:R.identifierOrCriteria,considerationAmount:R.endAmount,startTime:i.parameters.startTime,endTime:i.parameters.endTime,salt:i.parameters.salt,totalOriginalAdditionalRecipients:i.parameters.consideration.length-1,signature:i.signature,fulfillerConduitKey:E,additionalRecipients:N,zoneHash:i.parameters.zoneHash},j={value:D},U=(0,d.getApprovalActions)(L,t,w),Z={type:"exchange",transactionMethods:(0,g.getTransactionMethods)(o.connect(w),"fulfillBasicOrder",[z,j],T)},q=[].concat(c(U),[Z]);return{actions:q,executeAllActions:function(){return(0,g.executeAllActions)(q)}}},t.fulfillStandardOrder=function(e,n){var r,i=e.order,o=e.unitsToFill,a=void 0===o?0:o,s=e.totalSize,u=e.totalFilled,f=e.offerCriteria,m=e.considerationCriteria,b=e.tips,w=void 0===b?[]:b,x=e.extraData,A=e.seaportContract,k=e.offererBalancesAndApprovals,E=e.fulfillerBalancesAndApprovals,T=e.offererOperator,_=e.fulfillerOperator,S=e.timeBasedItemParams,C=e.conduitKey,I=e.recipientAddress,O=e.signer,P=e.domain,R=(a?(0,v.mapOrderAmountsFromUnitsToFill)(i,{unitsToFill:a,totalSize:s}):(0,v.mapOrderAmountsFromFilledStatus)(i,{totalFilled:u,totalSize:s})).parameters,M=R.offer,B=R.consideration,N=[].concat(c(B),c(w)),F=M.filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)})),D=N.filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)})),L=F.length>0||D.length>0;if(F.length!==f.length||D.length!==m.length)throw new Error("You must supply the appropriate criterias for criteria based items");var z=null===(r=(0,y.getSummedTokenAndIdentifierAmounts)({items:N,criterias:m,timeBasedItemParams:Object.assign(Object.assign({},S),{isConsiderationItem:!0})})[l.ethers.constants.AddressZero])||void 0===r?void 0:r[0],j=(0,p.validateStandardFulfillBalancesAndApprovals)({offer:M,consideration:N,offerCriteria:f,considerationCriteria:m,offererBalancesAndApprovals:k,fulfillerBalancesAndApprovals:E,timeBasedItemParams:S,offererOperator:T,fulfillerOperator:_}),U={value:z},Z=(0,d.getApprovalActions)(j,n,O),q=I!==l.ethers.constants.AddressZero,H=Boolean(a)||L||q,V=Object.assign(Object.assign({},i),{parameters:Object.assign(Object.assign({},i.parameters),{consideration:[].concat(c(i.parameters.consideration),c(w)),totalOriginalConsiderationItems:B.length})}),G=(0,t.getAdvancedOrderNumeratorDenominator)(i,a),W=G.numerator,K=G.denominator,J={type:"exchange",transactionMethods:H?(0,g.getTransactionMethods)(A.connect(O),"fulfillAdvancedOrder",[Object.assign(Object.assign({},V),{numerator:W,denominator:K,extraData:null!==x&&void 0!==x?x:"0x"}),L?(0,h.generateCriteriaResolvers)({orders:[i],offerCriterias:[f],considerationCriterias:[m]}):[],C,I,U],P):(0,g.getTransactionMethods)(A.connect(O),"fulfillOrder",[V,C,U],P)},X=[].concat(c(Z),[J]);return{actions:X,executeAllActions:function(){return(0,g.executeAllActions)(X)}}},t.validateAndSanitizeFromOrderStatus=w,t.fulfillAvailableOrders=function(e){var n=e.ordersMetadata,r=e.seaportContract,i=e.fulfillerBalancesAndApprovals,o=e.fulfillerOperator,a=e.currentBlockTimestamp,s=e.ascendingAmountTimestampBuffer,u=e.conduitKey,f=e.signer,m=e.recipientAddress,b=e.exactApproval,A=e.domain,k=n.map((function(e){return Object.assign(Object.assign({},e),{order:w(e.order,e.orderStatus)})})),E=k.map((function(e){return Object.assign(Object.assign({},e),{order:e.unitsToFill?(0,v.mapOrderAmountsFromUnitsToFill)(e.order,{unitsToFill:e.unitsToFill,totalSize:e.orderStatus.totalSize}):(0,v.mapOrderAmountsFromFilledStatus)(e.order,{totalFilled:e.orderStatus.totalFilled,totalSize:e.orderStatus.totalSize})})})),T=l.BigNumber.from(0),_=[],S=k.flatMap((function(e){return[e.order.parameters.offer,e.order.parameters.consideration]})).flat().filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)})).length>0;E.forEach((function(e){var t,n,r=e.order,u=e.tips,f=e.offerCriteria,d=e.considerationCriteria,h=e.offererBalancesAndApprovals,m=e.offererOperator,v=[].concat(c(r.parameters.consideration),c(u)),g={startTime:r.parameters.startTime,endTime:r.parameters.endTime,currentBlockTimestamp:a,ascendingAmountTimestampBuffer:s,isConsiderationItem:!0};T=T.add(null!==(n=null===(t=(0,y.getSummedTokenAndIdentifierAmounts)({items:v,criterias:d,timeBasedItemParams:g})[l.ethers.constants.AddressZero])||void 0===t?void 0:t[0])&&void 0!==n?n:l.BigNumber.from(0));var b=(0,p.validateStandardFulfillBalancesAndApprovals)({offer:r.parameters.offer,consideration:v,offerCriteria:f,considerationCriteria:d,offererBalancesAndApprovals:h,fulfillerBalancesAndApprovals:i,timeBasedItemParams:g,offererOperator:m,fulfillerOperator:o}),w=r.parameters.offer.filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)})),x=v.filter((function(e){var t=e.itemType;return(0,y.isCriteriaItem)(t)}));if(w.length!==f.length||x.length!==d.length)throw new Error("You must supply the appropriate criterias for criteria based items");b.forEach((function(e){_.find((function(t){return t.token===e.token}))||_.push(e)}))}));var C={value:T},I=(0,d.getApprovalActions)(_,b,f),O=k.map((function(e){var n=e.order,r=e.unitsToFill,i=void 0===r?0:r,o=e.tips,a=e.extraData,s=(0,t.getAdvancedOrderNumeratorDenominator)(n,i),u=s.numerator,l=s.denominator,f=[].concat(c(n.parameters.consideration),c(o));return Object.assign(Object.assign({},n),{parameters:Object.assign(Object.assign({},n.parameters),{consideration:f,totalOriginalConsiderationItems:n.parameters.consideration.length}),numerator:u,denominator:l,extraData:a})})),P=x(n),R=P.offerFulfillments,M=P.considerationFulfillments,B={type:"exchange",transactionMethods:(0,g.getTransactionMethods)(r.connect(f),"fulfillAvailableAdvancedOrders",[O,S?(0,h.generateCriteriaResolvers)({orders:n.map((function(e){return e.order})),offerCriterias:n.map((function(e){return e.offerCriteria})),considerationCriterias:n.map((function(e){return e.considerationCriteria}))}):[],R,M,u,m,O.length,C],A)},N=[].concat(c(I),[B]);return{actions:N,executeAllActions:function(){return(0,g.executeAllActions)(N)}}},t.generateFulfillOrdersFulfillments=x;t.getAdvancedOrderNumeratorDenominator=function(e,t){var n=(0,y.getMaximumSizeForOrder)(e),r=l.BigNumber.from(t),i=(0,m.gcd)(r,n);return{numerator:t?r.div(i):l.BigNumber.from(1),denominator:t?n.div(i):l.BigNumber.from(1)}}},98109:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.findGcd=t.gcd=void 0;var r=n(26032);t.gcd=function(e,n){var i=r.BigNumber.from(e),o=r.BigNumber.from(n);return i.eq(0)?o:(0,t.gcd)(o.mod(e),i)};t.findGcd=function(e){for(var n=r.BigNumber.from(e[0]),i=1;i<e.length;i++)if((n=(0,t.gcd)(e[i],n)).eq(1))return n;return n}},80991:function(e,t,n){"use strict";var r=n(40299).default,i=n(93213).default;Object.defineProperty(t,"__esModule",{value:!0}),t.getMaximumSizeForOrder=t.getSummedTokenAndIdentifierAmounts=t.getPresentItemAmount=t.isCriteriaItem=t.isErc1155Item=t.isErc721Item=t.isErc20Item=t.isNativeCurrencyItem=t.isCurrencyItem=void 0;var o=n(26032),a=n(24975),s=n(68216),u=n(98109);t.isCurrencyItem=function(e){var t=e.itemType;return[a.ItemType.NATIVE,a.ItemType.ERC20].includes(t)};t.isNativeCurrencyItem=function(e){return e.itemType===a.ItemType.NATIVE};t.isErc20Item=function(e){return e===a.ItemType.ERC20};t.isErc721Item=function(e){return[a.ItemType.ERC721,a.ItemType.ERC721_WITH_CRITERIA].includes(e)};t.isErc1155Item=function(e){return[a.ItemType.ERC1155,a.ItemType.ERC1155_WITH_CRITERIA].includes(e)};t.isCriteriaItem=function(e){return[a.ItemType.ERC721_WITH_CRITERIA,a.ItemType.ERC1155_WITH_CRITERIA].includes(e)};t.getPresentItemAmount=function(e){var t=e.startAmount,n=e.endAmount,r=e.timeBasedItemParams,i=o.BigNumber.from(t),a=o.BigNumber.from(n);if(!r)return i.gt(a)?i:a;var s=r.isConsiderationItem,u=r.currentBlockTimestamp,c=r.ascendingAmountTimestampBuffer,l=r.startTime,f=r.endTime,d=o.BigNumber.from(f).sub(l),p=a.gt(t),h=o.BigNumber.from(p?u+c:u);if(h.lt(l))return i;var m=(h.gt(f)?o.BigNumber.from(f):h).sub(l),y=d.sub(m);return i.mul(y).add(a.mul(m)).add(s?d.sub(1):0).div(d)};t.getSummedTokenAndIdentifierAmounts=function(e){var n=e.items,r=e.criterias,a=e.timeBasedItemParams,u=(0,s.getItemToCriteriaMap)(n,r);return n.reduce((function(e,n){var r,s,c,l,f=null!==(s=null===(r=u.get(n))||void 0===r?void 0:r.identifier)&&void 0!==s?s:n.identifierOrCriteria;return Object.assign(Object.assign({},e),i({},n.token,Object.assign(Object.assign({},e[n.token]),i({},f,(null!==(l=null===(c=e[n.token])||void 0===c?void 0:c[f])&&void 0!==l?l:o.BigNumber.from(0)).add((0,t.getPresentItemAmount)({startAmount:n.startAmount,endAmount:n.endAmount,timeBasedItemParams:a}))))))}),{})};t.getMaximumSizeForOrder=function(e){var t=e.parameters,n=t.offer,i=t.consideration,o=[].concat(r(n),r(i)).flatMap((function(e){return[e.startAmount,e.endAmount]}));return(0,u.findGcd)(o)}},57087:function(e,t,n){"use strict";var r=n(40712).Buffer,i=n(62638).default,o=n(1023).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleTree=void 0;var a=n(26032),s=n(17803),u=n(65211),c=function(e){return(0,s.keccak256)(r.from(a.BigNumber.from(e).toHexString().slice(2).padStart(64,"0"),"hex"))},l=function(){function e(t){i(this,e),this.tree=new u.default(t.map(c),s.keccak256,{sort:!0})}return o(e,[{key:"getProof",value:function(e){return this.tree.getHexProof(c(e))}},{key:"getRoot",value:function(){return this.tree.getRoot().toString("hex")?this.tree.getHexRoot():"0"}}]),e}();t.MerkleTree=l},81849:function(e,t,n){"use strict";var r=n(40712).Buffer,i=n(40299).default;Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseMatchForFulfill=t.generateRandomSalt=t.mapOrderAmountsFromUnitsToFill=t.mapOrderAmountsFromFilledStatus=t.totalItemsAmount=t.areAllCurrenciesSame=t.mapInputItemToOfferItem=t.deductFees=t.feeToConsiderationItem=void 0;var o=n(26032),a=n(17803),s=n(24975),u=n(80991),c=n(57087),l=function(e,t){return o.BigNumber.from(e).mul(o.BigNumber.from(t)).div(s.ONE_HUNDRED_PERCENT_BP)};t.feeToConsiderationItem=function(e){var t=e.fee,n=e.token,r=e.baseAmount,i=e.baseEndAmount,a=void 0===i?r:i;return{itemType:n===o.ethers.constants.AddressZero?s.ItemType.NATIVE:s.ItemType.ERC20,token:n,identifierOrCriteria:"0",startAmount:l(r,t.basisPoints).toString(),endAmount:l(a,t.basisPoints).toString(),recipient:t.recipient}};t.deductFees=function(e,t){if(!t)return e;var n=t.reduce((function(e,t){return e+t.basisPoints}),0);return e.map((function(e){return Object.assign(Object.assign({},e),{startAmount:(0,u.isCurrencyItem)(e)?o.BigNumber.from(e.startAmount).sub(l(e.startAmount,n)).toString():e.startAmount,endAmount:(0,u.isCurrencyItem)(e)?o.BigNumber.from(e.endAmount).sub(l(e.endAmount,n)).toString():e.endAmount})}))};t.mapInputItemToOfferItem=function(e){var t,n,r,i,a,u,l,f;if("itemType"in e){if("identifiers"in e||"criteria"in e){var d="criteria"in e?e.criteria:new c.MerkleTree(e.identifiers).getRoot();return{itemType:e.itemType===s.ItemType.ERC721?s.ItemType.ERC721_WITH_CRITERIA:s.ItemType.ERC1155_WITH_CRITERIA,token:e.token,identifierOrCriteria:d,startAmount:null!==(t=e.amount)&&void 0!==t?t:"1",endAmount:null!==(r=null!==(n=e.endAmount)&&void 0!==n?n:e.amount)&&void 0!==r?r:"1"}}return"amount"in e||"endAmount"in e?{itemType:e.itemType,token:e.token,identifierOrCriteria:null!==(i=e.identifier)&&void 0!==i?i:"0",startAmount:e.amount,endAmount:null!==(u=null!==(a=e.endAmount)&&void 0!==a?a:e.amount)&&void 0!==u?u:"1"}:{itemType:e.itemType,token:e.token,identifierOrCriteria:e.identifier,startAmount:"1",endAmount:"1"}}return{itemType:e.token&&e.token!==o.ethers.constants.AddressZero?s.ItemType.ERC20:s.ItemType.NATIVE,token:null!==(l=e.token)&&void 0!==l?l:o.ethers.constants.AddressZero,identifierOrCriteria:"0",startAmount:e.amount,endAmount:null!==(f=e.endAmount)&&void 0!==f?f:e.amount}};t.areAllCurrenciesSame=function(e){var t=e.offer,n=e.consideration,r=[].concat(i(t),i(n)).filter(u.isCurrencyItem);return r.every((function(e){var t=e.itemType,n=e.token;return t===r[0].itemType&&n.toLowerCase()===r[0].token.toLowerCase()}))};t.totalItemsAmount=function(e){o.BigNumber.from(0),o.BigNumber.from(0);return e.map((function(e){return{startAmount:e.startAmount,endAmount:e.endAmount}})).reduce((function(e,t){var n=e.startAmount,r=e.endAmount,i=t.startAmount,o=t.endAmount;return{startAmount:n.add(i),endAmount:r.add(o)}}),{startAmount:o.BigNumber.from(0),endAmount:o.BigNumber.from(0)})};t.mapOrderAmountsFromFilledStatus=function(e,t){var n=t.totalFilled,r=t.totalSize;if(n.eq(0)||r.eq(0))return e;var i=r.sub(n).mul(s.ONE_HUNDRED_PERCENT_BP).div(r);return{parameters:Object.assign(Object.assign({},e.parameters),{offer:e.parameters.offer.map((function(e){return Object.assign(Object.assign({},e),{startAmount:l(e.startAmount,i).toString(),endAmount:l(e.endAmount,i).toString()})})),consideration:e.parameters.consideration.map((function(e){return Object.assign(Object.assign({},e),{startAmount:l(e.startAmount,i).toString(),endAmount:l(e.endAmount,i).toString()})}))}),signature:e.signature}};var f=function(e,t,n){return o.BigNumber.from(e).mul(o.BigNumber.from(t)).div(n)};t.mapOrderAmountsFromUnitsToFill=function(e,t){var n=t.unitsToFill,r=t.totalSize,i=o.BigNumber.from(n);if(i.lte(0))throw new Error("Units to fill must be greater than 1");var a=(0,u.getMaximumSizeForOrder)(e);return r.eq(0)&&(r=a),{parameters:Object.assign(Object.assign({},e.parameters),{offer:e.parameters.offer.map((function(e){return Object.assign(Object.assign({},e),{startAmount:f(e.startAmount,i,r).toString(),endAmount:f(e.endAmount,i,r).toString()})})),consideration:e.parameters.consideration.map((function(e){return Object.assign(Object.assign({},e),{startAmount:f(e.startAmount,i,r).toString(),endAmount:f(e.endAmount,i,r).toString()})}))}),signature:e.signature}};t.generateRandomSalt=function(e){return"0x".concat(e?r.from((0,a.concat)([(0,a.keccak256)((0,a.toUtf8Bytes)(e)).slice(0,10),Uint8Array.from(Array(20).fill(0)),(0,a.randomBytes)(8)])).toString("hex"):r.from((0,a.randomBytes)(8)).toString("hex").padStart(64,"0"))};t.shouldUseMatchForFulfill=function(){return!0}},84428:function(e,t,n){"use strict";var r=n(40299).default,i=n(39649).default,o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.getTagFromDomain=t.getTransactionMethods=t.executeAllActions=void 0;var a=n(17803);t.executeAllActions=function(e){return o(void 0,void 0,void 0,i().mark((function t(){var n,r,o,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=0;case 1:if(!(n<e.length-1)){t.next=12;break}if("approval"!==(r=e[n]).type){t.next=9;break}return t.next=6,r.transactionMethods.transact();case 6:return o=t.sent,t.next=9,o.wait();case 9:n++,t.next=1;break;case 12:a=e[e.length-1],t.t0=a.type,t.next="create"===t.t0?16:"createBulk"===t.t0?17:18;break;case 16:return t.abrupt("return",a.createOrder());case 17:return t.abrupt("return",a.createBulkOrders());case 18:return t.abrupt("return",a.transactionMethods.transact());case 19:case"end":return t.stop()}}),t)})))};t.getTransactionMethods=function(e,n,a,s){var u,c=a[a.length-1];(function(e){var t=["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","type","accessList","customData","ccipReadEnabled","value","blockTag","CallOverrides"];return void 0===e||Object.keys(e).every((function(e){return t.includes(e)}))})(c)&&(u=c,a.pop());var l=function(c){return o(void 0,void 0,void 0,i().mark((function o(){var l,f,d,p;return i().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return f=Object.assign(Object.assign({},u),c),i.next=3,(l=e.populateTransaction)[n].apply(l,[].concat(r(a),[f]));case 3:return d=i.sent,s&&(p=(0,t.getTagFromDomain)(s),d.data=d.data+p),i.abrupt("return",d);case 6:case"end":return i.stop()}}),o)})))};return{callStatic:function(t){var i,o=Object.assign(Object.assign({},u),t);return(i=e.callStatic)[n].apply(i,[].concat(r(a),[o]))},estimateGas:function(t){var i,o=Object.assign(Object.assign({},u),t);return(i=e.estimateGas)[n].apply(i,[].concat(r(a),[o]))},transact:function(t){return o(void 0,void 0,void 0,i().mark((function n(){var r,o;return i().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=Object.assign(Object.assign({},u),t),n.next=3,l(r);case 3:return o=n.sent,n.abrupt("return",e.signer.sendTransaction(o));case 5:case"end":return n.stop()}}),n)})))},buildTransaction:l}};t.getTagFromDomain=function(e){return(0,a.keccak256)((0,a.toUtf8Bytes)(e)).slice(2,10)}},34589:function(e,t,n){"use strict";function r(e,t){return new Promise((function(n,r){var i=setTimeout((function(){r(Error("Promise timed out"))}),t);e.then((function(e){return clearTimeout(i),n(e)})).catch(r)}))}function i(e,t,n){var i;return(i=n,new Promise((function(e){return setTimeout(e,i)}))).then((function(){return r(function(){try{return Promise.resolve(t(e))}catch(n){return Promise.reject(n)}}(),1e3)})).catch((function(t){null===e||void 0===e||e.log("warn","Callback Error",{error:t}),null===e||void 0===e||e.stats.increment("callback_error")})).then((function(){return e}))}n.d(t,{FJ:function(){return r},UI:function(){return i}})},80985:function(e,t,n){"use strict";n.d(t,{Y:function(){return u},_:function(){return c}});var r=n(64847),i=n(72954),o=n(47699),a=function(){function e(){this._logs=[]}return e.prototype.log=function(e,t,n){var r=new Date;this._logs.push({level:e,message:t,time:r,extras:n})},Object.defineProperty(e.prototype,"logs",{get:function(){return this._logs},enumerable:!1,configurable:!0}),e.prototype.flush=function(){if(this.logs.length>1){var e=this._logs.reduce((function(e,t){var n,r,i,a=(0,o.pi)((0,o.pi)({},t),{json:JSON.stringify(t.extras,null," "),extras:t.extras});delete a.time;var s=null!==(i=null===(r=t.time)||void 0===r?void 0:r.toISOString())&&void 0!==i?i:"";return e[s]&&(s="".concat(s,"-").concat(Math.random())),(0,o.pi)((0,o.pi)({},e),((n={})[s]=a,n))}),{});console.table?console.table(e):console.log(e)}else this.logs.forEach((function(e){var t=e.level,n=e.message,r=e.extras;"info"===t||"debug"===t?console.log(n,null!==r&&void 0!==r?r:""):console[t](n,null!==r&&void 0!==r?r:"")}));this._logs=[]},e}(),s=n(9852),u=function(e){var t,n,r;this.retry=null===(t=e.retry)||void 0===t||t,this.type=null!==(n=e.type)&&void 0!==n?n:"plugin Error",this.reason=null!==(r=e.reason)&&void 0!==r?r:""},c=function(){function e(e,t,n,i){void 0===t&&(t=(0,r.v4)()),void 0===n&&(n=new s.i),void 0===i&&(i=new a),this.attempts=0,this.event=e,this._id=t,this.logger=i,this.stats=n}return e.system=function(){},e.prototype.isSame=function(e){return e.id===this.id},e.prototype.cancel=function(e){if(e)throw e;throw new u({reason:"Context Cancel"})},e.prototype.log=function(e,t,n){this.logger.log(e,t,n)},Object.defineProperty(e.prototype,"id",{get:function(){return this._id},enumerable:!1,configurable:!0}),e.prototype.updateEvent=function(e,t){var n;if("integrations"===e.split(".")[0]){var r=e.split(".")[1];if(!1===(null===(n=this.event.integrations)||void 0===n?void 0:n[r]))return this.event}return(0,i.N)(this.event,e,t),this.event},e.prototype.failedDelivery=function(){return this._failedDelivery},e.prototype.setFailedDelivery=function(e){this._failedDelivery=e},e.prototype.logs=function(){return this.logger.logs},e.prototype.flush=function(){this.logger.flush(),this.stats.flush()},e.prototype.toJSON=function(){return{id:this._id,event:this.event,logs:this.logger.logs,metrics:this.stats.metrics}},e}()},38720:function(e,t,n){"use strict";n.d(t,{Q:function(){return r}});var r=function(){function e(){this.callbacks={}}return e.prototype.on=function(e,t){return this.callbacks[e]?this.callbacks[e].push(t):this.callbacks[e]=[t],this},e.prototype.once=function(e,t){var n=this;return this.on(e,(function r(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];n.off(e,r),t.apply(n,i)})),this},e.prototype.off=function(e,t){var n,r=(null!==(n=this.callbacks[e])&&void 0!==n?n:[]).filter((function(e){return e!==t}));return this.callbacks[e]=r,this},e.prototype.emit=function(e){for(var t,n=this,r=[],i=1;i<arguments.length;i++)r[i-1]=arguments[i];return(null!==(t=this.callbacks[e])&&void 0!==t?t:[]).forEach((function(e){e.apply(n,r)})),this},e}()},10001:function(e,t,n){"use strict";n.d(t,{M:function(){return o},Z:function(){return a}});var r=n(47699),i=n(38720);var o="onRemoveFromFuture",a=function(e){function t(t,n,r){var i=e.call(this)||this;return i.future=[],i.maxAttempts=t,i.queue=n,i.seen=null!==r&&void 0!==r?r:{},i}return(0,r.ZT)(t,e),t.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=t.map((function(t){return!(e.updateAttempts(t)>e.maxAttempts||e.includes(t))&&(e.queue.push(t),!0)}));return this.queue=this.queue.sort((function(t,n){return e.getAttempts(t)-e.getAttempts(n)})),r},t.prototype.pushWithBackoff=function(e){var t=this;if(0===this.getAttempts(e))return this.push(e)[0];var n=this.updateAttempts(e);if(n>this.maxAttempts||this.includes(e))return!1;var r=function(e){var t=Math.random()+1,n=e.minTimeout,r=void 0===n?500:n,i=e.factor,o=void 0===i?2:i,a=e.attempt,s=e.maxTimeout,u=void 0===s?1/0:s;return Math.min(t*r*Math.pow(o,a),u)}({attempt:n-1});return setTimeout((function(){t.queue.push(e),t.future=t.future.filter((function(t){return t.id!==e.id})),t.emit(o)}),r),this.future.push(e),!0},t.prototype.getAttempts=function(e){var t;return null!==(t=this.seen[e.id])&&void 0!==t?t:0},t.prototype.updateAttempts=function(e){return this.seen[e.id]=this.getAttempts(e)+1,this.getAttempts(e)},t.prototype.includes=function(e){return this.queue.includes(e)||this.future.includes(e)||Boolean(this.queue.find((function(t){return t.id===e.id})))||Boolean(this.future.find((function(t){return t.id===e.id})))},t.prototype.pop=function(){return this.queue.shift()},Object.defineProperty(t.prototype,"length",{get:function(){return this.queue.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"todo",{get:function(){return this.queue.length+this.future.length},enumerable:!1,configurable:!0}),t}(i.Q)},41133:function(e,t,n){"use strict";n.d(t,{a:function(){return o},z:function(){return a}});var r=n(47699),i=n(80985);function o(e,t){e.log("debug","plugin",{plugin:t.name});var n=(new Date).getTime(),o=t[e.event.type];return void 0===o?Promise.resolve(e):function(e){return(0,r.mG)(this,void 0,void 0,(function(){var t;return(0,r.Jh)(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,e()];case 1:return[2,n.sent()];case 2:return t=n.sent(),[2,Promise.reject(t)];case 3:return[2]}}))}))}((function(){return o.apply(t,[e])})).then((function(e){var r=(new Date).getTime()-n;return e.stats.gauge("plugin_time",r,["plugin:".concat(t.name)]),e})).catch((function(n){if(n instanceof i.Y&&"middleware_cancellation"===n.type)throw n;return n instanceof i.Y?(e.log("warn",n.type,{plugin:t.name,error:n}),n):(e.log("error","plugin Error",{plugin:t.name,error:n}),e.stats.increment("plugin_error",1,["plugin:".concat(t.name)]),n)}))}function a(e,t){return o(e,t).then((function(t){if(t instanceof i._)return t;e.log("debug","Context canceled"),e.stats.increment("context_canceled"),e.cancel(t)}))}},9852:function(e,t,n){"use strict";n.d(t,{i:function(){return o},s:function(){return i}});var r=n(47699),i=function(){function e(){this.metrics=[]}return e.prototype.increment=function(e,t,n){void 0===t&&(t=1),this.metrics.push({metric:e,value:t,tags:null!==n&&void 0!==n?n:[],type:"counter",timestamp:Date.now()})},e.prototype.gauge=function(e,t,n){this.metrics.push({metric:e,value:t,tags:null!==n&&void 0!==n?n:[],type:"gauge",timestamp:Date.now()})},e.prototype.flush=function(){var e=this.metrics.map((function(e){return(0,r.pi)((0,r.pi)({},e),{tags:e.tags.join(",")})}));console.table?console.table(e):console.log(e),this.metrics=[]},e.prototype.serialize=function(){return this.metrics.map((function(e){return{m:e.metric,v:e.value,t:e.tags,k:(t=e.type,{gauge:"g",counter:"c"}[t]),e:e.timestamp};var t}))},e}(),o=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.prototype.gauge=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.increment=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.flush=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]},t.prototype.serialize=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return[]},t}(i)},20298:function(e,t,n){"use strict";function r(e){return"string"===typeof e}function i(e){return"number"===typeof e}function o(e){return"function"===typeof e}function a(e){return void 0!==e&&null!==e}function s(e){return"object"===Object.prototype.toString.call(e).slice(8,-1).toLowerCase()}n.d(t,{Gg:function(){return a},HD:function(){return r},PO:function(){return s},hj:function(){return i},mf:function(){return o}})},99817:function(e,t,n){"use strict";n.d(t,{G:function(){return i},s:function(){return o}});var r=n(68119);function i(){return!(0,r.j)()||window.navigator.onLine}function o(){return!i()}},41106:function(e,t,n){"use strict";n.d(t,{U:function(){return r}});var r="api.segment.io/v1"},17999:function(e,t,n){"use strict";n.d(t,{_:function(){return a}});var r=n(33621),i=n(80985),o=n(93583),a=function(e){function t(t,n){return e.call(this,t,n,new o.j)||this}return(0,r.ZT)(t,e),t.system=function(){return new this({type:"track",event:"system"})},t}(i._)},68119:function(e,t,n){"use strict";function r(){return"undefined"!==typeof window}function i(){return!r()}n.d(t,{j:function(){return r},s:function(){return i}})},39623:function(e,t,n){"use strict";function r(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch(t){return e}}n.d(t,{a:function(){return r}})},93583:function(e,t,n){"use strict";n.d(t,{j:function(){return d}});var r=n(33621),i=n(9852),o=n(64124),a=n(99602),s=n(93911),u=n(41106);function c(e){console.error("Error sending segment performance metrics",e)}var l,f=function(){function e(e){var t,n,r,i,o=this;if(this.host=null!==(t=null===e||void 0===e?void 0:e.host)&&void 0!==t?t:u.U,this.sampleRate=null!==(n=null===e||void 0===e?void 0:e.sampleRate)&&void 0!==n?n:1,this.flushTimer=null!==(r=null===e||void 0===e?void 0:e.flushTimer)&&void 0!==r?r:3e4,this.maxQueueSize=null!==(i=null===e||void 0===e?void 0:e.maxQueueSize)&&void 0!==i?i:20,this.queue=[],this.sampleRate>0){var a=!1;!function e(){a||(a=!0,o.flush().catch(c),a=!1,setTimeout(e,o.flushTimer))}()}}return e.prototype.increment=function(e,t){if(e.includes("analytics_js.")&&0!==t.length&&!(Math.random()>this.sampleRate)&&!(this.queue.length>=this.maxQueueSize)){var n=function(e,t,n){var i=t.reduce((function(e,t){var n=t.split(":"),r=n[0],i=n[1];return e[r]=i,e}),{});return{type:"Counter",metric:e,value:1,tags:(0,r.pi)((0,r.pi)({},i),{library:"analytics.js",library_version:"web"===n?"next-".concat(a.i):"npm:next-".concat(a.i)})}}(e,t,(0,s.Bz)());this.queue.push(n),e.includes("error")&&this.flush().catch(c)}},e.prototype.flush=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e=this;return(0,r.Jh)(this,(function(t){switch(t.label){case 0:return this.queue.length<=0?[2]:[4,this.send().catch((function(t){c(t),e.sampleRate=0}))];case 1:return t.sent(),[2]}}))}))},e.prototype.send=function(){return(0,r.mG)(this,void 0,void 0,(function(){var e,t,n;return(0,r.Jh)(this,(function(r){return e={series:this.queue},this.queue=[],t={"Content-Type":"text/plain"},n="https://".concat(this.host,"/m"),[2,(0,o.h)(n,{headers:t,body:JSON.stringify(e),method:"POST"})]}))}))},e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.ZT)(t,e),t.initRemoteMetrics=function(e){l=new f(e)},t.prototype.increment=function(t,n,r){e.prototype.increment.call(this,t,n,r),null===l||void 0===l||l.increment(t,null!==r&&void 0!==r?r:[])},t}(i.s)},34415:function(e,t,n){"use strict";n.d(t,{e:function(){return a}});var r=n(33621),i=n(29807),o=n(57421),a=function(){function e(t){void 0===t&&(t=e.defaults),this.options=(0,r.pi)((0,r.pi)({},e.defaults),t)}return Object.defineProperty(e,"defaults",{get:function(){return{maxage:365,domain:(0,o.P)(window.location.href),path:"/",sameSite:"Lax"}},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return{sameSite:this.options.sameSite,expires:this.options.maxage,domain:this.options.domain,path:this.options.path,secure:this.options.secure}},e.prototype.get=function(e){var t;try{var n=i.Z.get(e);if(void 0===n||null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(r){return null!==n&&void 0!==n?n:null}}catch(r){return null}},e.prototype.set=function(e,t){"string"===typeof t?i.Z.set(e,t,this.opts()):null===t?i.Z.remove(e,this.opts()):i.Z.set(e,JSON.stringify(t),this.opts())},e.prototype.remove=function(e){return i.Z.remove(e,this.opts())},e}()},96002:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r=function(){function e(e){this.stores=e}return e.prototype.get=function(e){for(var t=null,n=0,r=this.stores;n<r.length;n++){var i=r[n];try{if(void 0!==(t=i.get(e))&&null!==t)return t}catch(o){console.warn("Can't access ".concat(e,": ").concat(o))}}return null},e.prototype.set=function(e,t){this.stores.forEach((function(n){try{n.set(e,t)}catch(r){console.warn("Can't set ".concat(e,": ").concat(r))}}))},e.prototype.clear=function(e){this.stores.forEach((function(t){try{t.remove(e)}catch(n){console.warn("Can't remove ".concat(e,": ").concat(n))}}))},e.prototype.getAndSync=function(e){var t=this.get(e),n="number"===typeof t?t.toString():t;return this.set(e,n),n},e}()},57421:function(e,t,n){"use strict";n.d(t,{P:function(){return i}});var r=n(29807);function i(e){var t=function(e){try{return new URL(e)}catch(t){return}}(e);if(t)for(var n=function(e){var t=e.hostname.split("."),n=t[t.length-1],r=[];if(4===t.length&&parseInt(n,10)>0)return r;if(t.length<=1)return r;for(var i=t.length-2;i>=0;--i)r.push(t.slice(i).join("."));return r}(t),i=0;i<n.length;++i){var o="__tld__",a=n[i],s={domain:"."+a};try{if(r.Z.set(o,"1",s),r.Z.get(o))return r.Z.remove(o,s),a}catch(u){return}}}},99602:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="1.54.0"},64124:function(e,t,n){"use strict";function r(e,t){return t=t||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function e(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:e,headers:{keys:function(){return o},entries:function(){return a},get:function(e){return s[e.toLowerCase()]},has:function(e){return e.toLowerCase()in s}}}};for(var c in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(e,t,n){o.push(t=t.toLowerCase()),a.push([t,n]),s[t]=s[t]?s[t]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==t.credentials,t.headers)i.setRequestHeader(c,t.headers[c]);i.send(t.body||null)}))}n.d(t,{h:function(){return o}});var i=n(6406),o=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=(0,i.R)();return(n&&n.fetch||r).apply(void 0,e)}},6406:function(e,t,n){"use strict";n.d(t,{R:function(){return r}});var r=function(){return"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:null}},93325:function(e,t,n){"use strict";function r(e){return Array.prototype.slice.call(window.document.querySelectorAll("script")).find((function(t){return t.src===e}))}function i(e,t){var n=r(e);if(void 0!==n){var i=null===n||void 0===n?void 0:n.getAttribute("status");if("loaded"===i)return Promise.resolve(n);if("loading"===i)return new Promise((function(e,t){n.addEventListener("load",(function(){return e(n)})),n.addEventListener("error",(function(e){return t(e)}))}))}return new Promise((function(n,r){var i,o=window.document.createElement("script");o.type="text/javascript",o.src=e,o.async=!0,o.setAttribute("status","loading");for(var a=0,s=Object.entries(null!==t&&void 0!==t?t:{});a<s.length;a++){var u=s[a],c=u[0],l=u[1];o.setAttribute(c,l)}o.onload=function(){o.onerror=o.onload=null,o.setAttribute("status","loaded"),n(o)},o.onerror=function(){o.onerror=o.onload=null,o.setAttribute("status","error"),r(new Error("Failed to load ".concat(e)))};var f=window.document.getElementsByTagName("script")[0];null===(i=f.parentElement)||void 0===i||i.insertBefore(o,f)}))}function o(e){var t=r(e);return void 0!==t&&t.remove(),Promise.resolve()}n.d(t,{t:function(){return o},v:function(){return i}})},82263:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(33621);function i(e,t){var n,i=Object.entries(null!==(n=t.integrations)&&void 0!==n?n:{}).reduce((function(e,t){var n,i,o=t[0],a=t[1];return"object"===typeof a?(0,r.pi)((0,r.pi)({},e),((n={})[o]=a,n)):(0,r.pi)((0,r.pi)({},e),((i={})[o]={},i))}),{});return Object.entries(e.integrations).reduce((function(e,t){var n,o=t[0],a=t[1];return(0,r.pi)((0,r.pi)({},e),((n={})[o]=(0,r.pi)((0,r.pi)({},a),i[o]),n))}),{})}},69052:function(e,t,n){"use strict";n.d(t,{x:function(){return i}});var r=n(33621),i=function(e,t){return(0,r.mG)(void 0,void 0,void 0,(function(){var n;return(0,r.Jh)(this,(function(i){return n=function(i){return(0,r.mG)(void 0,void 0,void 0,(function(){var o;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return e(i)?(o=n,[4,t()]):[3,2];case 1:return[2,o.apply(void 0,[r.sent()])];case 2:return[2]}}))}))},[2,n(void 0)]}))}))}},3256:function(e,t,n){"use strict";n.d(t,{Kg:function(){return s},UH:function(){return o},Vl:function(){return a}});var r,i=/(https:\/\/.*)\/analytics\.js\/v1\/(?:.*?)\/(?:platform|analytics.*)?/,o=function(e){window.analytics&&(window.analytics._cdn=e),r=e},a=function(){var e=function(){var e;return null!==r&&void 0!==r?r:null===(e=window.analytics)||void 0===e?void 0:e._cdn}();if(e)return e;var t=function(){var e;return Array.prototype.slice.call(document.querySelectorAll("script")).forEach((function(t){var n,r=null!==(n=t.getAttribute("src"))&&void 0!==n?n:"",o=i.exec(r);o&&o[1]&&(e=o[1])})),e}();return t||"https://cdn.segment.com"},s=function(){var e=a();return"".concat(e,"/next-integrations")}},90462:function(e,t,n){"use strict";n.d(t,{$:function(){return d}});var r=n(33621),i=n(10001),o=n(17999),a=n(68119),s={getItem:function(){},setItem:function(){},removeItem:function(){}};try{s=(0,a.j)()&&window.localStorage?window.localStorage:s}catch(p){console.warn("Unable to access localStorage",p)}function u(e){var t=s.getItem(e);return(t?JSON.parse(t):[]).map((function(e){return new o._(e.event,e.id)}))}function c(e){var t=s.getItem(e);return t?JSON.parse(t):{}}function l(e){s.removeItem(e)}function f(e,t,n){void 0===n&&(n=0);var r="persisted-queue:v1:".concat(e,":lock"),i=s.getItem(r),o=i?JSON.parse(i):null,a=null===o||function(e){return(new Date).getTime()>e}(o);if(a)return s.setItem(r,JSON.stringify((new Date).getTime()+50)),t(),void s.removeItem(r);!a&&n<3?setTimeout((function(){f(e,t,n+1)}),50):console.error("Unable to retrieve lock")}var d=function(e){function t(t,n){var i=e.call(this,t,[])||this,o="persisted-queue:v1:".concat(n,":items"),a="persisted-queue:v1:".concat(n,":seen"),d=[],h={};return f(n,(function(){try{d=u(o),h=c(a),l(o),l(a),i.queue=(0,r.ev)((0,r.ev)([],d,!0),i.queue,!0),i.seen=(0,r.pi)((0,r.pi)({},h),i.seen)}catch(p){console.error(p)}})),window.addEventListener("pagehide",(function(){if(i.todo>0){var e=(0,r.ev)((0,r.ev)([],i.queue,!0),i.future,!0);try{f(n,(function(){!function(e,t){var n=u(e),i=(0,r.ev)((0,r.ev)([],t,!0),n,!0).reduce((function(e,t){var n;return(0,r.pi)((0,r.pi)({},e),((n={})[t.id]=t,n))}),{});s.setItem(e,JSON.stringify(Object.values(i)))}(o,e),function(e,t){var n=c(e);s.setItem(e,JSON.stringify((0,r.pi)((0,r.pi)({},n),t)))}(a,i.seen)}))}catch(p){console.error(p)}}})),i}return(0,r.ZT)(t,e),t}(i.Z)},35798:function(e,t,n){"use strict";n.d(t,{D:function(){return i}});var r=n(38667);function i(e,t){var n=new r.Facade(e,t);return"track"===e.type&&(n=new r.Track(e,t)),"identify"===e.type&&(n=new r.Identify(e,t)),"page"===e.type&&(n=new r.Page(e,t)),"alias"===e.type&&(n=new r.Alias(e,t)),"group"===e.type&&(n=new r.Group(e,t)),"screen"===e.type&&(n=new r.Screen(e,t)),Object.defineProperty(n,"obj",{value:e,writable:!0}),n}},17677:function(e,t,n){"use strict";n.r(t),n.d(t,{applyDestinationMiddleware:function(){return a},sourceMiddlewarePlugin:function(){return s}});var r=n(33621),i=n(80985),o=n(35798);function a(e,t,n){return(0,r.mG)(this,void 0,void 0,(function(){function i(t,n){return(0,r.mG)(this,void 0,void 0,(function(){var i,a,s;return(0,r.Jh)(this,(function(u){switch(u.label){case 0:return i=!1,a=null,[4,n({payload:(0,o.D)(t,{clone:!0,traverse:!1}),integration:e,next:function(e){i=!0,null===e&&(a=null),e&&(a=e.obj)}})];case 1:return u.sent(),i||null===a||(a.integrations=(0,r.pi)((0,r.pi)({},t.integrations),((s={})[e]=!1,s))),[2,a]}}))}))}var a,s,u,c,l;return(0,r.Jh)(this,(function(e){switch(e.label){case 0:a=(0,o.D)(t,{clone:!0,traverse:!1}).rawEvent(),s=0,u=n,e.label=1;case 1:return s<u.length?(c=u[s],[4,i(a,c)]):[3,4];case 2:if(null===(l=e.sent()))return[2,null];a=l,e.label=3;case 3:return s++,[3,1];case 4:return[2,a]}}))}))}function s(e,t){function n(n){return(0,r.mG)(this,void 0,void 0,(function(){var a;return(0,r.Jh)(this,(function(r){switch(r.label){case 0:return a=!1,[4,e({payload:(0,o.D)(n.event,{clone:!0,traverse:!1}),integrations:null!==t&&void 0!==t?t:{},next:function(e){a=!0,e&&(n.event=e.obj)}})];case 1:if(r.sent(),!a)throw new i.Y({retry:!1,type:"middleware_cancellation",reason:"Middleware `next` function skipped"});return[2,n]}}))}))}return{name:"Source Middleware ".concat(e.name),type:"before",version:"0.1.0",isLoaded:function(){return!0},load:function(e){return Promise.resolve(e)},track:n,page:n,identify:n,alias:n,group:n}}},93911:function(e,t,n){"use strict";n.d(t,{Bz:function(){return p},Fv:function(){return h}});var r,i=n(33621),o=n(29807),a=n(39623),s=n(57421),u=n(99602),c=n(96002),l=n(34415);function f(){if(r)return r;var e=(0,s.P)(window.location.href);return r={expires:31536e6,secure:!1,path:"/"},e&&(r.domain=e),r}var d="npm";function p(){return d}function h(e,t,n,r){var s,d,h,m,y,v,g=e.user();t.context=null!==(d=null!==(s=t.context)&&void 0!==s?s:t.options)&&void 0!==d?d:{};var b=t.context,w="string"===typeof(null===(h=b.page)||void 0===h?void 0:h.search)?null===(m=b.page)||void 0===m?void 0:m.search:"";delete t.options,t.writeKey=null===n||void 0===n?void 0:n.apiKey,b.userAgent=navigator.userAgent;var x=navigator.userLanguage||navigator.language;if("undefined"===typeof b.locale&&"undefined"!==typeof x&&(b.locale=x),!b.library){var A=p();b.library="web"===A?{name:"analytics.js",version:"next-".concat(u.i)}:{name:"analytics.js",version:"npm:next-".concat(u.i)}}w&&!b.campaign&&(b.campaign=function(e){return e.startsWith("?")&&(e=e.substring(1)),(e=e.replace(/\?/g,"&")).split("&").reduce((function(e,t){var n=t.split("="),r=n[0],i=n[1],o=void 0===i?"":i;if(r.includes("utm_")&&r.length>4){var s=r.substr(4);"campaign"===s&&(s="name"),e[s]=(0,a.a)(o)}return e}),{})}(w)),function(e,t,n){var r=new c.N(n?[]:[new l.e(f())]),o=r.get("s:context.referrer"),a=function(e){var t={btid:"dataxu",urid:"millennial-media"};e.startsWith("?")&&(e=e.substring(1));for(var n=0,r=(e=e.replace(/\?/g,"&")).split("&");n<r.length;n++){var i=r[n].split("="),o=i[0],a=i[1];if(t[o])return{id:a,type:t[o]}}}(e);(a=null!==a&&void 0!==a?a:o)&&(t&&(t.referrer=(0,i.pi)((0,i.pi)({},t.referrer),a)),r.set("s:context.referrer",a))}(w,b,null!==(y=e.options.disableClientPersistence)&&void 0!==y&&y),t.userId=t.userId||g.id(),t.anonymousId=t.anonymousId||g.anonymousId(),t.sentAt=new Date;var k=e.queue.failedInitializations||[];k.length>0&&(t._metadata={failedInitializations:k});var E=[],T=[];for(var _ in r){var S=r[_];"Segment.io"===_&&E.push(_),"bundled"===S.bundlingStatus&&E.push(_),"unbundled"===S.bundlingStatus&&T.push(_)}for(var C=0,I=(null===n||void 0===n?void 0:n.unbundledIntegrations)||[];C<I.length;C++){var O=I[C];T.includes(O)||T.push(O)}var P=null!==(v=null===n||void 0===n?void 0:n.maybeBundledConfigIds)&&void 0!==v?v:{},R=[];E.sort().forEach((function(e){var t;(null!==(t=P[e])&&void 0!==t?t:[]).forEach((function(e){R.push(e)}))})),!1!==(null===n||void 0===n?void 0:n.addBundledMetadata)&&(t._metadata=(0,i.pi)((0,i.pi)({},t._metadata),{bundled:E.sort(),unbundled:T.sort(),bundledIds:R}));var M=function(){var e=o.Z.get("_ga");if(e&&e.startsWith("amp"))return e}();return M&&(b.amp={id:M}),t}},88121:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(34867));function o(e,t){return function(){var n=this.traits(),r=this.properties?this.properties():{};return i.default(n,"address."+e)||i.default(n,e)||(t?i.default(n,"address."+t):null)||(t?i.default(n,t):null)||i.default(r,"address."+e)||i.default(r,e)||(t?i.default(r,"address."+t):null)||(t?i.default(r,t):null)}}t.default=function(e){e.zip=o("postalCode","zip"),e.country=o("country"),e.street=o("street"),e.state=o("state"),e.city=o("city"),e.region=o("region")}},16822:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Alias=void 0;var i=r(n(45493)),o=n(51140);function a(e,t){o.Facade.call(this,e,t)}t.Alias=a,i.default(a,o.Facade),a.prototype.action=function(){return"alias"},a.prototype.type=a.prototype.action,a.prototype.previousId=function(){return this.field("previousId")||this.field("from")},a.prototype.from=a.prototype.previousId,a.prototype.userId=function(){return this.field("userId")||this.field("to")},a.prototype.to=a.prototype.userId},57192:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.clone=void 0,t.clone=function e(t){if("object"!==typeof t)return t;if("[object Object]"===Object.prototype.toString.call(t)){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=e(t[r]));return n}return Array.isArray(t)?t.map(e):t}},3318:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=void 0;var i=r(n(45493)),o=n(51140);function a(e,t){o.Facade.call(this,e,t)}t.Delete=a,i.default(a,o.Facade),a.prototype.type=function(){return"delete"}},51140:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Facade=void 0;var i=r(n(88121)),o=n(57192),a=r(n(79633)),s=r(n(78986)),u=r(n(34867)),c=r(n(8051));function l(e,t){t=t||{},this.raw=o.clone(e),"clone"in t||(t.clone=!0),t.clone&&(e=o.clone(e)),"traverse"in t||(t.traverse=!0),e.timestamp="timestamp"in e?s.default(e.timestamp):new Date,t.traverse&&c.default(e),this.opts=t,this.obj=e}t.Facade=l;var f=l.prototype;function d(e){return o.clone(e)}f.proxy=function(e){var t=e.split("."),n=this[e=t.shift()]||this.obj[e];return n?("function"===typeof n&&(n=n.call(this)||{}),0===t.length||(n=u.default(n,t.join("."))),this.opts.clone?d(n):n):n},f.field=function(e){var t=this.obj[e];return this.opts.clone?d(t):t},l.proxy=function(e){return function(){return this.proxy(e)}},l.field=function(e){return function(){return this.field(e)}},l.multi=function(e){return function(){var t=this.proxy(e+"s");if(Array.isArray(t))return t;var n=this.proxy(e);return n&&(n=[this.opts.clone?o.clone(n):n]),n||[]}},l.one=function(e){return function(){var t=this.proxy(e);if(t)return t;var n=this.proxy(e+"s");return Array.isArray(n)?n[0]:void 0}},f.json=function(){var e=this.opts.clone?o.clone(this.obj):this.obj;return this.type&&(e.type=this.type()),e},f.rawEvent=function(){return this.raw},f.options=function(e){var t=this.obj.options||this.obj.context||{},n=this.opts.clone?o.clone(t):t;if(!e)return n;if(this.enabled(e)){var r=this.integrations(),i=r[e]||u.default(r,e);return"object"!==typeof i&&(i=u.default(this.options(),e)),"object"===typeof i?i:{}}},f.context=f.options,f.enabled=function(e){var t=this.proxy("options.providers.all");"boolean"!==typeof t&&(t=this.proxy("options.all")),"boolean"!==typeof t&&(t=this.proxy("integrations.all")),"boolean"!==typeof t&&(t=!0);var n=t&&a.default(e),r=this.integrations();if(r.providers&&r.providers.hasOwnProperty(e)&&(n=r.providers[e]),r.hasOwnProperty(e)){var i=r[e];n="boolean"!==typeof i||i}return!!n},f.integrations=function(){return this.obj.integrations||this.proxy("options.providers")||this.options()},f.active=function(){var e=this.proxy("options.active");return null!==e&&void 0!==e||(e=!0),e},f.anonymousId=function(){return this.field("anonymousId")||this.field("sessionId")},f.sessionId=f.anonymousId,f.groupId=l.proxy("options.groupId"),f.traits=function(e){var t=this.proxy("options.traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("options.traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},f.library=function(){var e=this.proxy("options.library");return e?"string"===typeof e?{name:e,version:null}:e:{name:"unknown",version:null}},f.device=function(){var e=this.proxy("context.device");"object"===typeof e&&null!==e||(e={});var t=this.library().name;return e.type||(t.indexOf("ios")>-1&&(e.type="ios"),t.indexOf("android")>-1&&(e.type="android")),e},f.userAgent=l.proxy("context.userAgent"),f.timezone=l.proxy("context.timezone"),f.timestamp=l.field("timestamp"),f.channel=l.field("channel"),f.ip=l.proxy("context.ip"),f.userId=l.field("userId"),i.default(f)},45701:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Group=void 0;var i=r(n(45493)),o=r(n(49137)),a=r(n(78986)),s=n(51140);function u(e,t){s.Facade.call(this,e,t)}t.Group=u,i.default(u,s.Facade);var c=u.prototype;c.action=function(){return"group"},c.type=c.action,c.groupId=s.Facade.field("groupId"),c.created=function(){var e=this.proxy("traits.createdAt")||this.proxy("traits.created")||this.proxy("properties.createdAt")||this.proxy("properties.created");if(e)return a.default(e)},c.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.groupId();return o.default(t)?t:void 0},c.traits=function(e){var t=this.properties(),n=this.groupId();for(var r in e=e||{},n&&(t.id=n),e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=null==this[r]?this.proxy("traits."+r):this[r]();if(null==i)continue;t[e[r]]=i,delete t[r]}return t},c.name=s.Facade.proxy("traits.name"),c.industry=s.Facade.proxy("traits.industry"),c.employees=s.Facade.proxy("traits.employees"),c.properties=function(){return this.field("traits")||this.field("properties")||{}}},24652:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Identify=void 0;var i=n(51140),o=r(n(34867)),a=r(n(45493)),s=r(n(49137)),u=r(n(78986)),c=function(e){return e.trim()};function l(e,t){i.Facade.call(this,e,t)}t.Identify=l,a.default(l,i.Facade);var f=l.prototype;f.action=function(){return"identify"},f.type=f.action,f.traits=function(e){var t=this.field("traits")||{},n=this.userId();for(var r in e=e||{},n&&(t.id=n),e){var i=null==this[r]?this.proxy("traits."+r):this[r]();null!=i&&(t[e[r]]=i,r!==e[r]&&delete t[r])}return t},f.email=function(){var e=this.proxy("traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},f.created=function(){var e=this.proxy("traits.created")||this.proxy("traits.createdAt");if(e)return u.default(e)},f.companyCreated=function(){var e=this.proxy("traits.company.created")||this.proxy("traits.company.createdAt");if(e)return u.default(e)},f.companyName=function(){return this.proxy("traits.company.name")},f.name=function(){var e=this.proxy("traits.name");if("string"===typeof e)return c(e);var t=this.firstName(),n=this.lastName();return t&&n?c(t+" "+n):void 0},f.firstName=function(){var e=this.proxy("traits.firstName");if("string"===typeof e)return c(e);var t=this.proxy("traits.name");return"string"===typeof t?c(t).split(" ")[0]:void 0},f.lastName=function(){var e=this.proxy("traits.lastName");if("string"===typeof e)return c(e);var t=this.proxy("traits.name");if("string"===typeof t){var n=c(t).indexOf(" ");if(-1!==n)return c(t.substr(n+1))}},f.uid=function(){return this.userId()||this.username()||this.email()},f.description=function(){return this.proxy("traits.description")||this.proxy("traits.background")},f.age=function(){var e=this.birthday(),t=o.default(this.traits(),"age");return null!=t?t:e instanceof Date?(new Date).getFullYear()-e.getFullYear():void 0},f.avatar=function(){var e=this.traits();return o.default(e,"avatar")||o.default(e,"photoUrl")||o.default(e,"avatarUrl")},f.position=function(){var e=this.traits();return o.default(e,"position")||o.default(e,"jobTitle")},f.username=i.Facade.proxy("traits.username"),f.website=i.Facade.one("traits.website"),f.websites=i.Facade.multi("traits.website"),f.phone=i.Facade.one("traits.phone"),f.phones=i.Facade.multi("traits.phone"),f.address=i.Facade.proxy("traits.address"),f.gender=i.Facade.proxy("traits.gender"),f.birthday=i.Facade.proxy("traits.birthday")},38667:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.Delete=t.Screen=t.Page=t.Track=t.Identify=t.Group=t.Alias=t.Facade=void 0;var i=n(51140);Object.defineProperty(t,"Facade",{enumerable:!0,get:function(){return i.Facade}});var o=n(16822);Object.defineProperty(t,"Alias",{enumerable:!0,get:function(){return o.Alias}});var a=n(45701);Object.defineProperty(t,"Group",{enumerable:!0,get:function(){return a.Group}});var s=n(24652);Object.defineProperty(t,"Identify",{enumerable:!0,get:function(){return s.Identify}});var u=n(10057);Object.defineProperty(t,"Track",{enumerable:!0,get:function(){return u.Track}});var c=n(95333);Object.defineProperty(t,"Page",{enumerable:!0,get:function(){return c.Page}});var l=n(29971);Object.defineProperty(t,"Screen",{enumerable:!0,get:function(){return l.Screen}});var f=n(3318);Object.defineProperty(t,"Delete",{enumerable:!0,get:function(){return f.Delete}}),t.default=r(r({},i.Facade),{Alias:o.Alias,Group:a.Group,Identify:s.Identify,Track:u.Track,Page:c.Page,Screen:l.Screen,Delete:f.Delete})},49137:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=/.+\@.+\..+/;t.default=function(e){return n.test(e)}},79633:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n={Salesforce:!0};t.default=function(e){return!n[e]}},95333:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Page=void 0;var i=r(n(45493)),o=n(51140),a=n(10057),s=r(n(49137));function u(e,t){o.Facade.call(this,e,t)}t.Page=u,i.default(u,o.Facade);var c=u.prototype;c.action=function(){return"page"},c.type=c.action,c.category=o.Facade.field("category"),c.name=o.Facade.field("name"),c.title=o.Facade.proxy("properties.title"),c.path=o.Facade.proxy("properties.path"),c.url=o.Facade.proxy("properties.url"),c.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},c.properties=function(e){var t=this.field("properties")||{},n=this.category(),r=this.name();for(var i in e=e||{},n&&(t.category=n),r&&(t.name=r),e)if(Object.prototype.hasOwnProperty.call(e,i)){var o=null==this[i]?this.proxy("properties."+i):this[i]();if(null==o)continue;t[e[i]]=o,i!==e[i]&&delete t[i]}return t},c.email=function(){var e=this.proxy("context.traits.email")||this.proxy("properties.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},c.fullName=function(){var e=this.category(),t=this.name();return t&&e?e+" "+t:t},c.event=function(e){return e?"Viewed "+e+" Page":"Loaded a Page"},c.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},29971:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Screen=void 0;var i=r(n(45493)),o=n(95333),a=n(10057);function s(e,t){o.Page.call(this,e,t)}t.Screen=s,i.default(s,o.Page),s.prototype.action=function(){return"screen"},s.prototype.type=s.prototype.action,s.prototype.event=function(e){return e?"Viewed "+e+" Screen":"Loaded a Screen"},s.prototype.track=function(e){var t=this.json();return t.event=this.event(e),t.timestamp=this.timestamp(),t.properties=this.properties(),new a.Track(t,this.opts)}},10057:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Track=void 0;var i=r(n(45493)),o=n(51140),a=n(24652),s=r(n(49137)),u=r(n(34867));function c(e,t){o.Facade.call(this,e,t)}t.Track=c,i.default(c,o.Facade);var l=c.prototype;l.action=function(){return"track"},l.type=l.action,l.event=o.Facade.field("event"),l.value=o.Facade.proxy("properties.value"),l.category=o.Facade.proxy("properties.category"),l.id=o.Facade.proxy("properties.id"),l.productId=function(){return this.proxy("properties.product_id")||this.proxy("properties.productId")},l.promotionId=function(){return this.proxy("properties.promotion_id")||this.proxy("properties.promotionId")},l.cartId=function(){return this.proxy("properties.cart_id")||this.proxy("properties.cartId")},l.checkoutId=function(){return this.proxy("properties.checkout_id")||this.proxy("properties.checkoutId")},l.paymentId=function(){return this.proxy("properties.payment_id")||this.proxy("properties.paymentId")},l.couponId=function(){return this.proxy("properties.coupon_id")||this.proxy("properties.couponId")},l.wishlistId=function(){return this.proxy("properties.wishlist_id")||this.proxy("properties.wishlistId")},l.reviewId=function(){return this.proxy("properties.review_id")||this.proxy("properties.reviewId")},l.orderId=function(){return this.proxy("properties.id")||this.proxy("properties.order_id")||this.proxy("properties.orderId")},l.sku=o.Facade.proxy("properties.sku"),l.tax=o.Facade.proxy("properties.tax"),l.name=o.Facade.proxy("properties.name"),l.price=o.Facade.proxy("properties.price"),l.total=o.Facade.proxy("properties.total"),l.repeat=o.Facade.proxy("properties.repeat"),l.coupon=o.Facade.proxy("properties.coupon"),l.shipping=o.Facade.proxy("properties.shipping"),l.discount=o.Facade.proxy("properties.discount"),l.shippingMethod=function(){return this.proxy("properties.shipping_method")||this.proxy("properties.shippingMethod")},l.paymentMethod=function(){return this.proxy("properties.payment_method")||this.proxy("properties.paymentMethod")},l.description=o.Facade.proxy("properties.description"),l.plan=o.Facade.proxy("properties.plan"),l.subtotal=function(){var e=u.default(this.properties(),"subtotal"),t=this.total()||this.revenue();if(e)return e;if(!t)return 0;if(this.total()){var n=this.tax();n&&(t-=n),(n=this.shipping())&&(t-=n),(n=this.discount())&&(t+=n)}return t},l.products=function(){var e=this.properties(),t=u.default(e,"products");return Array.isArray(t)?t.filter((function(e){return null!==e})):[]},l.quantity=function(){return(this.obj.properties||{}).quantity||1},l.currency=function(){return(this.obj.properties||{}).currency||"USD"},l.referrer=function(){return this.proxy("context.referrer.url")||this.proxy("context.page.referrer")||this.proxy("properties.referrer")},l.query=o.Facade.proxy("options.query"),l.properties=function(e){var t=this.field("properties")||{};for(var n in e=e||{})if(Object.prototype.hasOwnProperty.call(e,n)){var r=null==this[n]?this.proxy("properties."+n):this[n]();if(null==r)continue;t[e[n]]=r,delete t[n]}return t},l.username=function(){return this.proxy("traits.username")||this.proxy("properties.username")||this.userId()||this.sessionId()},l.email=function(){var e=this.proxy("traits.email")||this.proxy("properties.email")||this.proxy("options.traits.email");if(e)return e;var t=this.userId();return s.default(t)?t:void 0},l.revenue=function(){var e=this.proxy("properties.revenue"),t=this.event();return!e&&t&&t.match(/^[ _]?completed[ _]?order[ _]?|^[ _]?order[ _]?completed[ _]?$/i)&&(e=this.proxy("properties.total")),function(e){if(!e)return;if("number"===typeof e)return e;if("string"!==typeof e)return;if(e=e.replace(/\$/g,""),e=parseFloat(e),!isNaN(e))return e}(e)},l.cents=function(){var e=this.revenue();return"number"!==typeof e?this.value()||0:100*e},l.identify=function(){var e=this.json();return e.traits=this.traits(),new a.Identify(e,this.opts)}},8051:function(e,t,n){"use strict";var r=n(39052);function i(e,t){return void 0===t&&(t=!0),e&&"object"===typeof e?function(e,t){return Object.keys(e).forEach((function(n){e[n]=i(e[n],t)})),e}(e,t):Array.isArray(e)?function(e,t){return e.forEach((function(n,r){e[r]=i(n,t)})),e}(e,t):r.is(e,t)?r.parse(e):e}e.exports=i},39052:function(e,t){"use strict";var n=/^(\d{4})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:([ T])(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;t.parse=function(e){var t=[1,5,6,7,11,12],r=n.exec(e),i=0;if(!r)return new Date(e);for(var o,a=0;o=t[a];a++)r[o]=parseInt(r[o],10)||0;r[2]=parseInt(r[2],10)||1,r[3]=parseInt(r[3],10)||1,r[2]--,r[8]=r[8]?(r[8]+"00").substring(0,3):0," "===r[4]?i=(new Date).getTimezoneOffset():"Z"!==r[9]&&r[10]&&(i=60*r[11]+r[12],"+"===r[10]&&(i=0-i));var s=Date.UTC(r[1],r[2],r[3],r[5],r[6]+i,r[7],r[8]);return new Date(s)},t.is=function(e,t){return"string"===typeof e&&((!t||!1!==/^\d{4}-\d{2}-\d{2}/.test(e))&&n.test(e))}},91969:function(e,t,n){"use strict";e.exports=n(90787)},90787:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var i,o=r(n(73519)),a=n(51407),s=r(n(22673)),u=n(77650),c=n(7042),l=n(83217),f=n(87285),d=n(35953),p=n(84982),h=n(34702),m=n(69338),y="0x0000000000000000000000000000000000000001",v="0x0000000000000000000000000000000000000002",g=o.BigInt(0),b=o.BigInt(1);function w(e){return Object.keys(e).some((function(e){return"recipient"===e}))}(i=t.WA||(t.WA={}))[i.NOT_REQUIRED=0]="NOT_REQUIRED",i[i.MAX=1]="MAX",i[i.MAX_MINUS_ONE=2]="MAX_MINUS_ONE",i[i.ZERO_THEN_MAX=3]="ZERO_THEN_MAX",i[i.ZERO_THEN_MAX_MINUS_ONE=4]="ZERO_THEN_MAX_MINUS_ONE";var x=function(){function e(){}return e.encodeApproveMax=function(t){return e.INTERFACE.encodeFunctionData("approveMax",[t.address])},e.encodeApproveMaxMinusOne=function(t){return e.INTERFACE.encodeFunctionData("approveMaxMinusOne",[t.address])},e.encodeApproveZeroThenMax=function(t){return e.INTERFACE.encodeFunctionData("approveZeroThenMax",[t.address])},e.encodeApproveZeroThenMaxMinusOne=function(t){return e.INTERFACE.encodeFunctionData("approveZeroThenMaxMinusOne",[t.address])},e.encodeCallPositionManager=function(t){if(t.length>0||s(!1),1==t.length)return e.INTERFACE.encodeFunctionData("callPositionManager",t);var n=c.NonfungiblePositionManager.INTERFACE.encodeFunctionData("multicall",[t]);return e.INTERFACE.encodeFunctionData("callPositionManager",[n])},e.encodeAddLiquidity=function(t,n,r,i){var a=t.mintAmountsWithSlippage(i),s=a.amount0,u=a.amount1;return o.lessThan(n.amount0.quotient,s)&&(s=n.amount0.quotient),o.lessThan(n.amount1.quotient,u)&&(u=n.amount1.quotient),w(r)?e.INTERFACE.encodeFunctionData("mint",[{token0:t.pool.token0.address,token1:t.pool.token1.address,fee:t.pool.fee,tickLower:t.tickLower,tickUpper:t.tickUpper,amount0Min:c.toHex(s),amount1Min:c.toHex(u),recipient:r.recipient}]):e.INTERFACE.encodeFunctionData("increaseLiquidity",[{token0:t.pool.token0.address,token1:t.pool.token1.address,amount0Min:c.toHex(s),amount1Min:c.toHex(u),tokenId:c.toHex(r.tokenId)}])},e.encodeApprove=function(n,r){switch(r){case t.WA.MAX:return e.encodeApproveMax(n.wrapped);case t.WA.MAX_MINUS_ONE:return e.encodeApproveMaxMinusOne(n.wrapped);case t.WA.ZERO_THEN_MAX:return e.encodeApproveZeroThenMax(n.wrapped);case t.WA.ZERO_THEN_MAX_MINUS_ONE:return e.encodeApproveZeroThenMaxMinusOne(n.wrapped);default:throw"Error: invalid ApprovalType"}},e}();x.INTERFACE=new a.Interface(u.abi);var A=function(){function e(){}return e.encodeMulticall=function(t,n){if(void 0===n)return c.Multicall.encodeMulticall(t);if(Array.isArray(t)||(t=[t]),"string"==typeof n&&n.startsWith("0x")){var r=function(e){if(!e.match(/^0x[0-9a-fA-F]{64}$/))throw new Error(e+" is not valid bytes32.");return e.toLowerCase()}(n);return e.INTERFACE.encodeFunctionData("multicall(bytes32,bytes[])",[r,t])}var i=c.toHex(n);return e.INTERFACE.encodeFunctionData("multicall(uint256,bytes[])",[i,t])},e}();function k(e){return c.toHex(e.multiply(1e4).quotient)}A.INTERFACE=new a.Interface(l.abi);var E=function(){function e(){}return e.encodeUnwrapWETH9=function(t,n,r){if("string"==typeof n)return c.Payments.encodeUnwrapWETH9(t,n,r);if(r){var i=k(r.fee),o=f.validateAndParseAddress(r.recipient);return e.INTERFACE.encodeFunctionData("unwrapWETH9WithFee(uint256,uint256,address)",[c.toHex(t),i,o])}return e.INTERFACE.encodeFunctionData("unwrapWETH9(uint256)",[c.toHex(t)])},e.encodeSweepToken=function(t,n,r,i){if("string"==typeof r)return c.Payments.encodeSweepToken(t,n,r,i);if(i){var o=k(i.fee),a=f.validateAndParseAddress(i.recipient);return e.INTERFACE.encodeFunctionData("sweepTokenWithFee(address,uint256,uint256,address)",[t.address,c.toHex(n),o,a])}return e.INTERFACE.encodeFunctionData("sweepToken(address,uint256)",[t.address,c.toHex(n)])},e.encodePull=function(t,n){return e.INTERFACE.encodeFunctionData("pull",[t.address,c.toHex(n)])},e.encodeWrapETH=function(t){return e.INTERFACE.encodeFunctionData("wrapETH",[c.toHex(t)])},e}();function T(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function _(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){T(o,r,i,a,s,"next",e)}function s(e){T(o,r,i,a,s,"throw",e)}a(void 0)}))}}function S(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function C(e,t,n){return t&&S(e.prototype,t),n&&S(e,n),e}function I(){return(I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function O(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function R(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(n)return(n=n.call(e)).next.bind(n);if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return P(e,void 0);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(e,void 0):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}E.INTERFACE=new a.Interface(d.abi);var M,B=(function(e){var t=function(e){var t=Object.prototype,n=t.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,n){return e[t]=n}}function u(e,t,n,r){var i=Object.create((t&&t.prototype instanceof f?t:f).prototype),o=new k(r||[]);return i._invoke=function(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return{value:void 0,done:!0}}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=w(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(e,n,o),i}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=u;var l={};function f(){}function d(){}function p(){}var h={};s(h,i,(function(){return this}));var m=Object.getPrototypeOf,y=m&&m(m(E([])));y&&y!==t&&n.call(y,i)&&(h=y);var v=p.prototype=f.prototype=Object.create(h);function g(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function b(e,t){var r;this._invoke=function(i,o){function a(){return new t((function(r,a){!function r(i,o,a,s){var u=c(e[i],e,o);if("throw"!==u.type){var l=u.arg,f=l.value;return f&&"object"==typeof f&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(f).then((function(e){l.value=e,a(l)}),(function(e){return r("throw",e,a,s)}))}s(u.arg)}(i,o,r,a)}))}return r=r?r.then(a,a):a()}}function w(e,t){var n=e.iterator[t.method];if(void 0===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,w(e,t),"throw"===t.method))return l;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,l;var i=r.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,l):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,l)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function k(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function E(e){if(e){var t=e[i];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return o.next=o}}return{next:T}}function T(){return{value:void 0,done:!0}}return d.prototype=p,s(v,"constructor",p),s(p,"constructor",d),d.displayName=s(p,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===d||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,s(e,a,"GeneratorFunction")),e.prototype=Object.create(v),e},e.awrap=function(e){return{__await:e}},g(b.prototype),s(b.prototype,o,(function(){return this})),e.AsyncIterator=b,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new b(u(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},g(v),s(v,a,"Generator"),s(v,i,(function(){return this})),s(v,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=E,k.prototype={constructor:k,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,l):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),l},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),A(n),l}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:E(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}}(M={exports:{}}),M.exports),N=function(){function e(e,t,n){this._midPrice=null,e.length>0||s(!1);var r=e[0].chainId;e.every((function(e){return e.chainId===r}))||s(!1);var i=t.wrapped;e[0].involvesToken(i)||s(!1),e[e.length-1].involvesToken(n.wrapped)||s(!1);for(var o,a=[i],u=R(e.entries());!(o=u()).done;){var c=o.value,l=c[1],f=a[c[0]];f.equals(l.token0)||f.equals(l.token1)||s(!1);var d=f.equals(l.token0)?l.token1:l.token0;a.push(d)}this.pools=e,this.path=a,this.input=t,this.output=null!=n?n:a[a.length-1]}return C(e,[{key:"chainId",get:function(){return this.pools[0].chainId}},{key:"midPrice",get:function(){if(null!==this._midPrice)return this._midPrice;var e=this.pools.slice(1).reduce((function(e,t){var n=e.price;return e.nextInput.equals(t.token0)?{nextInput:t.token1,price:n.multiply(t.token0Price)}:{nextInput:t.token0,price:n.multiply(t.token1Price)}}),this.pools[0].token0.equals(this.input.wrapped)?{nextInput:this.pools[0].token1,price:this.pools[0].token0Price}:{nextInput:this.pools[0].token0,price:this.pools[0].token1Price}).price;return this._midPrice=new f.Price(this.input,this.output,e.denominator,e.numerator)}}]),e}();function F(e,t){return e.inputAmount.currency.equals(t.inputAmount.currency)||s(!1),e.outputAmount.currency.equals(t.outputAmount.currency)||s(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?e.swaps.reduce((function(e,t){return e+t.route.path.length}),0)-t.swaps.reduce((function(e,t){return e+t.route.path.length}),0):e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}var D,L=function(){function e(e){var t=e.routes,n=e.tradeType,r=t[0].inputAmount.currency,i=t[0].outputAmount.currency;t.every((function(e){return r.wrapped.equals(e.route.input.wrapped)}))||s(!1),t.every((function(e){return i.wrapped.equals(e.route.output.wrapped)}))||s(!1);for(var o,a=t.map((function(e){return e.route.pools.length})).reduce((function(e,t){return e+t}),0),u=new Set,l=R(t);!(o=l()).done;)for(var d,p=R(o.value.route.pools);!(d=p()).done;){var m=d.value;u.add(m instanceof c.Pool?c.Pool.getAddress(m.token0,m.token1,m.fee):h.Pair.getAddress(m.token0,m.token1))}a!=u.size&&s(!1),n!==f.TradeType.EXACT_INPUT&&s(!1),this.swaps=t,this.tradeType=n}e.fromRoute=function(){var t=_(B.mark((function t(n,r,i){var o,a,u,c,l;return B.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:o=new Array(n.path.length),i!==f.TradeType.EXACT_INPUT&&s(!1),r.currency.equals(n.input)||s(!1),o[0]=r.wrapped,c=0;case 5:if(!(c<n.path.length-1)){t.next=15;break}return l=n.pools[c],t.next=9,l.getOutputAmount(o[c]);case 9:o[c+1]=t.sent[0];case 12:c++,t.next=5;break;case 15:return a=f.CurrencyAmount.fromFractionalAmount(n.input,r.numerator,r.denominator),u=f.CurrencyAmount.fromFractionalAmount(n.output,o[o.length-1].numerator,o[o.length-1].denominator),t.abrupt("return",new e({routes:[{inputAmount:a,outputAmount:u,route:n}],tradeType:i}));case 18:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),e.fromRoutes=function(){var t=_(B.mark((function t(n,r){var i,o,a,u,c,l,d,p,h,m,y;return B.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[],r!==f.TradeType.EXACT_INPUT&&s(!1),o=R(n);case 3:if((a=o()).done){t.next=26;break}c=(u=a.value).route,l=u.amount,d=new Array(c.path.length),p=void 0,h=void 0,l.currency.equals(c.input)||s(!1),p=f.CurrencyAmount.fromFractionalAmount(c.input,l.numerator,l.denominator),d[0]=f.CurrencyAmount.fromFractionalAmount(c.input.wrapped,l.numerator,l.denominator),m=0;case 12:if(!(m<c.path.length-1)){t.next=22;break}return y=c.pools[m],t.next=16,y.getOutputAmount(d[m]);case 16:d[m+1]=t.sent[0];case 19:m++,t.next=12;break;case 22:h=f.CurrencyAmount.fromFractionalAmount(c.output,d[d.length-1].numerator,d[d.length-1].denominator),i.push({route:c,inputAmount:p,outputAmount:h});case 24:t.next=3;break;case 26:return t.abrupt("return",new e({routes:i,tradeType:r}));case 27:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.createUncheckedTrade=function(t){return new e(I({},t,{routes:[{inputAmount:t.inputAmount,outputAmount:t.outputAmount,route:t.route}]}))},e.createUncheckedTradeWithMultipleRoutes=function(t){return new e(t)};var t=e.prototype;return t.minimumAmountOut=function(e,t){void 0===t&&(t=this.outputAmount),e.lessThan(g)&&s(!1);var n=new f.Fraction(b).add(e).invert().multiply(t.quotient).quotient;return f.CurrencyAmount.fromRawAmount(t.currency,n)},t.maximumAmountIn=function(e,t){return void 0===t&&(t=this.inputAmount),e.lessThan(g)&&s(!1),t},t.worstExecutionPrice=function(e){return new f.Price(this.inputAmount.currency,this.outputAmount.currency,this.maximumAmountIn(e).quotient,this.minimumAmountOut(e).quotient)},e.bestTradeExactIn=function(){var t=_(B.mark((function t(n,r,i,o,a,u,c){var l,d,p,m,y,v,b,w,x,A,k;return B.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:p=void 0===(d=(l=void 0===o?{}:o).maxNumResults)?3:d,y=void 0===(m=l.maxHops)?3:m,void 0===a&&(a=[]),void 0===u&&(u=r),void 0===c&&(c=[]),n.length>0||s(!1),y>0||s(!1),r===u||a.length>0||s(!1),v=u.wrapped,b=i.wrapped,w=0;case 10:if(!(w<n.length)){t.next=49;break}if((x=n[w]).token0.equals(v.currency)||x.token1.equals(v.currency)){t.next=14;break}return t.abrupt("continue",46);case 14:if(!(x instanceof h.Pair)){t.next=17;break}if(!x.reserve0.equalTo(g)&&!x.reserve1.equalTo(g)){t.next=17;break}return t.abrupt("continue",46);case 17:return A=void 0,t.prev=18,t.next=22,x.getOutputAmount(v);case 22:A=t.sent[0],t.next=31;break;case 26:if(t.prev=26,t.t0=t.catch(18),!t.t0.isInsufficientInputAmountError){t.next=30;break}return t.abrupt("continue",46);case 30:throw t.t0;case 31:if(!A.currency.isToken||!A.currency.equals(b)){t.next=42;break}return t.t1=f.sortedInsert,t.t2=c,t.next=36,e.fromRoute(new N([].concat(a,[x]),r.currency,i),r,f.TradeType.EXACT_INPUT);case 36:t.t3=t.sent,t.t4=p,t.t5=F,(0,t.t1)(t.t2,t.t3,t.t4,t.t5),t.next=46;break;case 42:if(!(y>1&&n.length>1)){t.next=46;break}return k=n.slice(0,w).concat(n.slice(w+1,n.length)),t.next=46,e.bestTradeExactIn(k,r,i,{maxNumResults:p,maxHops:y-1},[].concat(a,[x]),A,c);case 46:w++,t.next=10;break;case 49:return t.abrupt("return",c);case 50:case"end":return t.stop()}}),t,null,[[18,26]])})));return function(e,n,r,i,o,a,s){return t.apply(this,arguments)}}(),C(e,[{key:"route",get:function(){return 1!=this.swaps.length&&s(!1),this.swaps[0].route}},{key:"inputAmount",get:function(){if(this._inputAmount)return this._inputAmount;var e=this.swaps[0].inputAmount.currency,t=this.swaps.map((function(e){return e.inputAmount})).reduce((function(e,t){return e.add(t)}),f.CurrencyAmount.fromRawAmount(e,0));return this._inputAmount=t,this._inputAmount}},{key:"outputAmount",get:function(){if(this._outputAmount)return this._outputAmount;var e=this.swaps[0].outputAmount.currency,t=this.swaps.map((function(e){return e.outputAmount})).reduce((function(e,t){return e.add(t)}),f.CurrencyAmount.fromRawAmount(e,0));return this._outputAmount=t,this._outputAmount}},{key:"executionPrice",get:function(){var e;return null!=(e=this._executionPrice)?e:this._executionPrice=new f.Price(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.quotient,this.outputAmount.quotient)}},{key:"priceImpact",get:function(){if(this._priceImpact)return this._priceImpact;for(var e,t=f.CurrencyAmount.fromRawAmount(this.outputAmount.currency,0),n=R(this.swaps);!(e=n()).done;){var r=e.value;t=t.add(r.route.midPrice.quote(r.inputAmount))}var i=t.subtract(this.outputAmount).divide(t);return this._priceImpact=new f.Percent(i.numerator,i.denominator),this._priceImpact}}]),e}();(D=t.b$||(t.b$={})).V2="V2",D.V3="V3",D.MIXED="MIXED";var z=function(e){function n(n){var r;return(r=e.call(this,n.pairs,n.input,n.output)||this).protocol=t.b$.V2,r.pools=r.pairs,r}return O(n,e),n}(h.Route),j=function(e){function n(n){var r;return(r=e.call(this,n.pools,n.input,n.output)||this).protocol=t.b$.V3,r.path=n.tokenPath,r}return O(n,e),n}(c.Route),U=function(e){function n(n){var r;return(r=e.call(this,n.pools,n.input,n.output)||this).protocol=t.b$.MIXED,r}return O(n,e),n}(N),Z=function(){function e(e){var t=e.v2Routes,n=e.v3Routes,r=e.tradeType,i=e.mixedRoutes;this.swaps=[],this.routes=[];for(var o,a=R(t);!(o=a()).done;){var u=o.value,l=u.inputAmount,f=u.outputAmount,d=new z(u.routev2);this.routes.push(d),this.swaps.push({route:d,inputAmount:l,outputAmount:f})}for(var p,m=R(n);!(p=m()).done;){var y=p.value,v=y.inputAmount,g=y.outputAmount,b=new j(y.routev3);this.routes.push(b),this.swaps.push({route:b,inputAmount:v,outputAmount:g})}if(i)for(var w,x=R(i);!(w=x()).done;){var A=w.value,k=A.inputAmount,E=A.outputAmount,T=new U(A.mixedRoute);this.routes.push(T),this.swaps.push({route:T,inputAmount:k,outputAmount:E})}this.tradeType=r;var _=this.swaps[0].inputAmount.currency,S=this.swaps[0].outputAmount.currency;this.swaps.every((function(e){return _.wrapped.equals(e.route.input.wrapped)}))||s(!1),this.swaps.every((function(e){return S.wrapped.equals(e.route.output.wrapped)}))||s(!1);for(var C,I=this.swaps.map((function(e){return e.route.pools.length})).reduce((function(e,t){return e+t}),0),O=new Set,P=R(this.swaps);!(C=P()).done;)for(var M,B=R(C.value.route.pools);!(M=B()).done;){var N=M.value;if(N instanceof c.Pool)O.add(c.Pool.getAddress(N.token0,N.token1,N.fee));else{if(!(N instanceof h.Pair))throw new Error("Unexpected pool type in route when constructing trade object");O.add(h.Pair.getAddress(N.token0,N.token1))}}I!=O.size&&s(!1)}var t=e.prototype;return t.minimumAmountOut=function(e,t){if(void 0===t&&(t=this.outputAmount),e.lessThan(g)&&s(!1),this.tradeType===f.TradeType.EXACT_OUTPUT)return t;var n=new f.Fraction(b).add(e).invert().multiply(t.quotient).quotient;return f.CurrencyAmount.fromRawAmount(t.currency,n)},t.maximumAmountIn=function(e,t){if(void 0===t&&(t=this.inputAmount),e.lessThan(g)&&s(!1),this.tradeType===f.TradeType.EXACT_INPUT)return t;var n=new f.Fraction(b).add(e).multiply(t.quotient).quotient;return f.CurrencyAmount.fromRawAmount(t.currency,n)},t.worstExecutionPrice=function(e){return new f.Price(this.inputAmount.currency,this.outputAmount.currency,this.maximumAmountIn(e).quotient,this.minimumAmountOut(e).quotient)},e.fromRoutes=function(){var t=_(B.mark((function t(n,r,i,o){var a,s,u,l,f,d,p,m,y,v,g,b,w,x,A,k,E,T,_,S;return B.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:for(a=[],s=[],u=[],l=R(n);!(f=l()).done;)m=new h.Trade(p=(d=f.value).routev2,d.amount,i),a.push({routev2:p,inputAmount:m.inputAmount,outputAmount:m.outputAmount});y=R(r);case 5:if((v=y()).done){t.next=14;break}return b=(g=v.value).routev3,w=g.amount,t.next=9,c.Trade.fromRoute(b,w,i);case 9:s.push({routev3:b,inputAmount:(x=t.sent).inputAmount,outputAmount:x.outputAmount});case 12:t.next=5;break;case 14:if(!o){t.next=25;break}A=R(o);case 16:if((k=A()).done){t.next=25;break}return T=(E=k.value).mixedRoute,_=E.amount,t.next=20,L.fromRoute(T,_,i);case 20:u.push({mixedRoute:T,inputAmount:(S=t.sent).inputAmount,outputAmount:S.outputAmount});case 23:t.next=16;break;case 25:return t.abrupt("return",new e({v2Routes:a,v3Routes:s,mixedRoutes:u,tradeType:i}));case 26:case"end":return t.stop()}}),t)})));return function(e,n,r,i){return t.apply(this,arguments)}}(),e.fromRoute=function(){var t=_(B.mark((function t(n,r,i){var o,a,s,u,l,f;return B.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=[],a=[],s=[],!(n instanceof h.Route)){t.next=9;break}u=new h.Trade(n,r,i),o=[{routev2:n,inputAmount:u.inputAmount,outputAmount:u.outputAmount}],t.next=26;break;case 9:if(!(n instanceof c.Route)){t.next=17;break}return t.next=12,c.Trade.fromRoute(n,r,i);case 12:a=[{routev3:n,inputAmount:(l=t.sent).inputAmount,outputAmount:l.outputAmount}],t.next=26;break;case 17:if(!(n instanceof N)){t.next=25;break}return t.next=20,L.fromRoute(n,r,i);case 20:s=[{mixedRoute:n,inputAmount:(f=t.sent).inputAmount,outputAmount:f.outputAmount}],t.next=26;break;case 25:throw new Error("Invalid route type");case 26:return t.abrupt("return",new e({v2Routes:o,v3Routes:a,mixedRoutes:s,tradeType:i}));case 27:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),C(e,[{key:"inputAmount",get:function(){if(this._inputAmount)return this._inputAmount;var e=this.swaps[0].inputAmount.currency,t=this.swaps.map((function(e){return e.inputAmount})).reduce((function(e,t){return e.add(t)}),f.CurrencyAmount.fromRawAmount(e,0));return this._inputAmount=t,this._inputAmount}},{key:"outputAmount",get:function(){if(this._outputAmount)return this._outputAmount;var e=this.swaps[0].outputAmount.currency,t=this.swaps.map((function(e){return e.outputAmount})).reduce((function(e,t){return e.add(t)}),f.CurrencyAmount.fromRawAmount(e,0));return this._outputAmount=t,this._outputAmount}},{key:"executionPrice",get:function(){var e;return null!=(e=this._executionPrice)?e:this._executionPrice=new f.Price(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.quotient,this.outputAmount.quotient)}},{key:"priceImpact",get:function(){if(this._priceImpact)return this._priceImpact;for(var e,t=f.CurrencyAmount.fromRawAmount(this.outputAmount.currency,0),n=R(this.swaps);!(e=n()).done;){var r=e.value;t=t.add(r.route.midPrice.quote(r.inputAmount))}var i=t.subtract(this.outputAmount).divide(t);return this._priceImpact=new f.Percent(i.numerator,i.denominator),this._priceImpact}}]),e}();function q(e){var t=e.pools.reduce((function(e,t,n){var r=e.inputToken,i=e.path,o=e.types,a=t.token0.equals(r)?t.token1:t.token0;return 0===n?{inputToken:a,types:["address","uint24","address"],path:[r.address,t instanceof c.Pool?t.fee:8388608,a.address]}:{inputToken:a,types:[].concat(o,["uint24","address"]),path:[].concat(i,[t instanceof c.Pool?t.fee:8388608,a.address])}}),{inputToken:e.input.wrapped,path:[],types:[]});return m.pack(t.types,t.path)}var H=function(e){for(var t=[],n=0,r=0;r<e.pools.length;)(e.pools[n]instanceof c.Pool&&e.pools[r]instanceof h.Pair||e.pools[n]instanceof h.Pair&&e.pools[r]instanceof c.Pool)&&(t.push(e.pools.slice(n,r)),n=r),++r===e.pools.length&&t.push(e.pools.slice(n,r));return t},V=function(e,t){return e.reduce((function(e,t){var n=e.inputToken;if(!t.involvesToken(n))throw new Error("PATH");return{inputToken:t.token0.equals(n)?t.token1:t.token0}}),{inputToken:t}).inputToken},G=o.BigInt(0),W=new f.Percent(o.BigInt(50),o.BigInt(100)),K=function(){function e(){}return e.encodeV2Swap=function(t,n,r,i){var o=c.toHex(t.maximumAmountIn(n.slippageTolerance).quotient),a=c.toHex(t.minimumAmountOut(n.slippageTolerance).quotient),s=t.route.path.map((function(e){return e.address})),u=r?v:void 0===n.recipient?y:f.validateAndParseAddress(n.recipient);return t.tradeType===f.TradeType.EXACT_INPUT?e.INTERFACE.encodeFunctionData("swapExactTokensForTokens",[o,i?0:a,s,u]):e.INTERFACE.encodeFunctionData("swapTokensForExactTokens",[a,o,s,u])},e.encodeV3Swap=function(t,n,r,i){for(var o,a=[],s=R(t.swaps);!(o=s()).done;){var u=o.value,l=u.route,d=u.outputAmount,p=c.toHex(t.maximumAmountIn(n.slippageTolerance,u.inputAmount).quotient),h=c.toHex(t.minimumAmountOut(n.slippageTolerance,d).quotient),m=1===l.pools.length,g=r?v:void 0===n.recipient?y:f.validateAndParseAddress(n.recipient);if(m)a.push(t.tradeType===f.TradeType.EXACT_INPUT?e.INTERFACE.encodeFunctionData("exactInputSingle",[{tokenIn:l.tokenPath[0].address,tokenOut:l.tokenPath[1].address,fee:l.pools[0].fee,recipient:g,amountIn:p,amountOutMinimum:i?0:h,sqrtPriceLimitX96:0}]):e.INTERFACE.encodeFunctionData("exactOutputSingle",[{tokenIn:l.tokenPath[0].address,tokenOut:l.tokenPath[1].address,fee:l.pools[0].fee,recipient:g,amountOut:h,amountInMaximum:p,sqrtPriceLimitX96:0}]));else{var b=c.encodeRouteToPath(l,t.tradeType===f.TradeType.EXACT_OUTPUT);a.push(t.tradeType===f.TradeType.EXACT_INPUT?e.INTERFACE.encodeFunctionData("exactInput",[{path:b,recipient:g,amountIn:p,amountOutMinimum:i?0:h}]):e.INTERFACE.encodeFunctionData("exactOutput",[{path:b,recipient:g,amountOut:h,amountInMaximum:p}]))}}return a},e.encodeMixedRouteSwap=function(t,n,r,i){var o=[];t.tradeType!==f.TradeType.EXACT_INPUT&&s(!1);for(var a,u=R(t.swaps);!(a=u()).done;){var l=a.value,d=l.route,p=l.outputAmount,h=c.toHex(t.maximumAmountIn(n.slippageTolerance,l.inputAmount).quotient),m=c.toHex(t.minimumAmountOut(n.slippageTolerance,p).quotient),g=1===d.pools.length,b=r?v:void 0===n.recipient?y:f.validateAndParseAddress(n.recipient),w=function(e){return e.pools.every((function(e){return e instanceof c.Pool}))};if(g)if(w(d))o.push(e.INTERFACE.encodeFunctionData("exactInputSingle",[{tokenIn:d.path[0].address,tokenOut:d.path[1].address,fee:d.pools[0].fee,recipient:b,amountIn:h,amountOutMinimum:i?0:m,sqrtPriceLimitX96:0}]));else{var x=d.path.map((function(e){return e.address}));o.push(e.INTERFACE.encodeFunctionData("swapExactTokensForTokens",[h,i?0:m,x,b]))}else!function(){for(var t=H(d),n=function(e){return e===t.length-1},r=void 0,i=d.input.wrapped,a=0;a<t.length;a++){var s=t[a];r=V(s,i);var u=new N([].concat(s),s[0].token0.equals(i)?s[0].token0:s[0].token1,r),c=new U(u);if(i=r,w(c)){var l={path:q(c),recipient:n(a)?b:v,amountIn:0==a?h:0,amountOutMinimum:n(a)?m:0};o.push(e.INTERFACE.encodeFunctionData("exactInput",[l]))}else{var f=[0==a?h:0,n(a)?m:0,c.path.map((function(e){return e.address})),n(a)?b:v];o.push(e.INTERFACE.encodeFunctionData("swapExactTokensForTokens",f))}}}()}return o},e.encodeSwaps=function(n,r,i){if(n instanceof Z){n.swaps.every((function(e){return e.route.protocol==t.b$.V3||e.route.protocol==t.b$.V2||e.route.protocol==t.b$.MIXED}))||s(!1);for(var o,a=[],u=R(n.swaps);!(o=u()).done;){var l=o.value,d=l.route,p=l.inputAmount,m=l.outputAmount;if(d.protocol==t.b$.V2)a.push(new h.Trade(d,n.tradeType==f.TradeType.EXACT_INPUT?p:m,n.tradeType));else if(d.protocol==t.b$.V3)a.push(c.Trade.createUncheckedTrade({route:d,inputAmount:p,outputAmount:m,tradeType:n.tradeType}));else{if(d.protocol!=t.b$.MIXED)throw new Error("UNSUPPORTED_TRADE_PROTOCOL");a.push(L.createUncheckedTrade({route:d,inputAmount:p,outputAmount:m,tradeType:n.tradeType}))}}n=a}Array.isArray(n)||(n=[n]);var y=n.reduce((function(e,t){return e+(t instanceof c.Trade||t instanceof L?t.swaps.length:1)}),0),v=n[0];n.every((function(e){return e.inputAmount.currency.equals(v.inputAmount.currency)}))||s(!1),n.every((function(e){return e.outputAmount.currency.equals(v.outputAmount.currency)}))||s(!1),n.every((function(e){return e.tradeType===v.tradeType}))||s(!1);var g=[],b=v.inputAmount.currency.isNative,w=v.outputAmount.currency.isNative,x=v.tradeType===f.TradeType.EXACT_INPUT&&y>2,A=w||!!r.fee||!!i||x;r.inputTokenPermit&&(v.inputAmount.currency.isToken||s(!1),g.push(c.SelfPermit.encodePermit(v.inputAmount.currency,r.inputTokenPermit)));for(var k,E=R(n);!(k=E()).done;){var T=k.value;if(T instanceof h.Trade)g.push(e.encodeV2Swap(T,r,A,x));else if(T instanceof c.Trade)for(var _,S=R(e.encodeV3Swap(T,r,A,x));!(_=S()).done;)g.push(_.value);else{if(!(T instanceof L))throw new Error("Unsupported trade object");for(var C,I=R(e.encodeMixedRouteSwap(T,r,A,x));!(C=I()).done;)g.push(C.value)}}var O=f.CurrencyAmount.fromRawAmount(v.inputAmount.currency,0),P=f.CurrencyAmount.fromRawAmount(v.outputAmount.currency,0),M=n.reduce((function(e,t){return e.add(t.minimumAmountOut(r.slippageTolerance))}),P),B=n.reduce((function(e,t){return e.add(t.outputAmount)}),P),N=n.reduce((function(e,t){return e.add(t.maximumAmountIn(r.slippageTolerance))}),O);return{calldatas:g,sampleTrade:v,routerMustCustody:A,inputIsNative:b,outputIsNative:w,totalAmountIn:N,minimumAmountOut:M,quoteAmountOut:B}},e.swapCallParameters=function(t,n){var r=e.encodeSwaps(t,n),i=r.calldatas,o=r.sampleTrade,a=r.inputIsNative,s=r.totalAmountIn,u=r.minimumAmountOut;return r.routerMustCustody&&i.push(r.outputIsNative?E.encodeUnwrapWETH9(u.quotient,n.recipient,n.fee):E.encodeSweepToken(o.outputAmount.currency.wrapped,u.quotient,n.recipient,n.fee)),a&&(o.tradeType===f.TradeType.EXACT_OUTPUT||e.riskOfPartialFill(t))&&i.push(c.Payments.encodeRefundETH()),{calldata:A.encodeMulticall(i,n.deadlineOrPreviousBlockhash),value:c.toHex(a?s.quotient:G)}},e.swapAndAddCallParameters=function(n,r,i,o,a,u){var l=e.encodeSwaps(n,r,!0),d=l.calldatas,p=l.inputIsNative,h=l.outputIsNative,m=l.sampleTrade,y=l.totalAmountIn,v=l.quoteAmountOut,g=l.minimumAmountOut;r.outputTokenPermit&&(v.currency.isToken||s(!1),d.push(c.SelfPermit.encodePermit(v.currency,r.outputTokenPermit)));var b=m.route.chainId,w=i.pool.token0.wrapped.address===y.currency.wrapped.address,k=e.getPositionAmounts(i,w),T=k.positionAmountIn,_=k.positionAmountOut,S=p?f.WETH9[b]:T.currency.wrapped,C=h?f.WETH9[b]:_.currency.wrapped,I=_.subtract(v.wrapped);I.greaterThan(f.CurrencyAmount.fromRawAmount(_.currency,0))&&d.push(h?E.encodeWrapETH(I.quotient):E.encodePull(C,I.quotient)),d.push(p?E.encodeWrapETH(T.quotient):E.encodePull(S,T.quotient)),a!==t.WA.NOT_REQUIRED&&d.push(x.encodeApprove(S,a)),u!==t.WA.NOT_REQUIRED&&d.push(x.encodeApprove(C,u));var O,P=c.Position.fromAmounts({pool:i.pool,tickLower:i.tickLower,tickUpper:i.tickUpper,amount0:w?i.amount0.quotient.toString():g.quotient.toString(),amount1:w?g.quotient.toString():i.amount1.quotient.toString(),useFullPrecision:!1});return d.push(x.encodeAddLiquidity(i,P,o,r.slippageTolerance)),d.push(p?E.encodeUnwrapWETH9(G):E.encodeSweepToken(S,G)),d.push(h?E.encodeUnwrapWETH9(G):E.encodeSweepToken(C,G)),O=p?y.wrapped.add(T.wrapped).quotient:h?I.quotient:G,{calldata:A.encodeMulticall(d,r.deadlineOrPreviousBlockhash),value:O.toString()}},e.riskOfPartialFill=function(t){return Array.isArray(t)?t.some((function(t){return e.v3TradeWithHighPriceImpact(t)})):e.v3TradeWithHighPriceImpact(t)},e.v3TradeWithHighPriceImpact=function(e){return!(e instanceof h.Trade)&&e.priceImpact.greaterThan(W)},e.getPositionAmounts=function(e,t){var n=e.mintAmounts,r=n.amount1,i=f.CurrencyAmount.fromRawAmount(e.pool.token0,n.amount0),o=f.CurrencyAmount.fromRawAmount(e.pool.token1,r),a=t?[i,o]:[o,i];return{positionAmountIn:a[0],positionAmountOut:a[1]}},e}();K.INTERFACE=new a.Interface(p.abi),t.SwapRouter=K},87285:function(e,t,n){"use strict";n.r(t),n.d(t,{ARGENT_WALLET_DETECTOR_ADDRESS:function(){return $},CHAIN_TO_ADDRESSES_MAP:function(){return q},ChainId:function(){return r},CurrencyAmount:function(){return me},ENS_REGISTRAR_ADDRESSES:function(){return te},Ether:function(){return Se},Fraction:function(){return pe},GOVERNANCE_ALPHA_V0_ADDRESSES:function(){return W},GOVERNANCE_ALPHA_V1_ADDRESSES:function(){return K},GOVERNANCE_BRAVO_ADDRESSES:function(){return J},MERKLE_DISTRIBUTOR_ADDRESS:function(){return Y},MIXED_ROUTE_QUOTER_V1_ADDRESSES:function(){return ie},MULTICALL_ADDRESSES:function(){return G},MaxUint256:function(){return ue},NONFUNGIBLE_POSITION_MANAGER_ADDRESSES:function(){return ee},NativeCurrency:function(){return xe},NativeCurrencyName:function(){return g},Percent:function(){return ge},Price:function(){return be},QUOTER_ADDRESSES:function(){return Q},Rounding:function(){return I},SOCKS_CONTROLLER_ADDRESSES:function(){return ne},SUPPORTED_CHAINS:function(){return T},SWAP_ROUTER_02_ADDRESSES:function(){return oe},TICK_LENS_ADDRESSES:function(){return re},TIMELOCK_ADDRESSES:function(){return X},Token:function(){return Te},TradeType:function(){return C},UNISWAP_NFT_AIRDROP_CLAIM_ADDRESS:function(){return P},UNI_ADDRESSES:function(){return O},V2_FACTORY_ADDRESS:function(){return R},V2_FACTORY_ADDRESSES:function(){return M},V2_ROUTER_ADDRESS:function(){return B},V2_ROUTER_ADDRESSES:function(){return N},V3_CORE_FACTORY_ADDRESSES:function(){return H},V3_MIGRATOR_ADDRESSES:function(){return V},WETH9:function(){return _e},computePriceImpact:function(){return Ce},sortedInsert:function(){return Ie},sqrt:function(){return Be},validateAndParseAddress:function(){return Ae}});var r,i=n(73519),o=n.n(i),a=n(53449),s=n(59279),u=n.n(s),c=n(2792),l=n.n(c),f=n(66406),d=n.n(f),p=n(27255);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.CELO=42220]="CELO",e[e.CELO_ALFAJORES=44787]="CELO_ALFAJORES",e[e.GNOSIS=100]="GNOSIS",e[e.MOONBEAM=1284]="MOONBEAM",e[e.BNB=56]="BNB",e[e.AVALANCHE=43114]="AVALANCHE",e[e.BASE_GOERLI=84531]="BASE_GOERLI",e[e.BASE=8453]="BASE"}(r||(r={}));var g,b,w,x,A,k,E,T=[r.MAINNET,r.OPTIMISM,r.OPTIMISM_GOERLI,r.ARBITRUM_ONE,r.ARBITRUM_GOERLI,r.POLYGON,r.POLYGON_MUMBAI,r.GOERLI,r.SEPOLIA,r.CELO_ALFAJORES,r.CELO,r.BNB,r.AVALANCHE,r.BASE,r.BASE_GOERLI];!function(e){e.ETHER="ETH",e.MATIC="MATIC",e.CELO="CELO",e.GNOSIS="XDAI",e.MOONBEAM="GLMR",e.BNB="BNB",e.AVAX="AVAX"}(g||(g={}));var _=[r.MAINNET,r.GOERLI];function S(e,t){return void 0===t&&(t=[]),_.concat(t).reduce((function(t,n){return t[n]=e,t}),{})}var C,I,O=S("0x1f9840a85d5aF5bf1D1762F925BDADdC4201F984",[r.OPTIMISM,r.ARBITRUM_ONE,r.POLYGON,r.POLYGON_MUMBAI,r.SEPOLIA]),P="0x8B799381ac40b838BBA4131ffB26197C432AFe78",R="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",M=S(R),B="0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",N=S(B),F={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x1F98415757620B543A52E61c46B32eB19261F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",v3MigratorAddress:"0xA5644E29708357803b5A882D272c41cC0dF92B34",nonfungiblePositionManagerAddress:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88"},D=y({},F,{v1MixedRouteQuoterAddress:"0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E"}),L=y({},F,{v1MixedRouteQuoterAddress:"0xBa60b6e6fF25488308789E6e0A65D838be34194e"}),z=F,j=y({},F,{multicallAddress:"0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB",tickLensAddress:"0xbfd8137f7d1516D3ea5cA83523914859ec47F573"}),U=F,Z={v3CoreFactoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",multicallAddress:"0x633987602DE5C4F337e3DbF265303A1080324204",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",v3MigratorAddress:"0x3cFd4d48EDfDCC53D3f173F596f621064614C582",nonfungiblePositionManagerAddress:"0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A",tickLensAddress:"0x5f115D9113F88e0a0Db1b5033D90D4a9690AcD3D"},q=((b={})[r.MAINNET]=D,b[r.OPTIMISM]=z,b[r.ARBITRUM_ONE]=j,b[r.POLYGON]=U,b[r.POLYGON_MUMBAI]=U,b[r.GOERLI]=L,b[r.CELO]=Z,b[r.CELO_ALFAJORES]=Z,b[r.BNB]={v3CoreFactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",multicallAddress:"0x963Df249eD09c358A4819E39d9Cd5736c3087184",quoterAddress:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",v3MigratorAddress:"0x32681814957e0C13117ddc0c2aba232b5c9e760f",nonfungiblePositionManagerAddress:"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",tickLensAddress:"0xD9270014D396281579760619CCf4c3af0501A47C",swapRouter02Address:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2"},b[r.OPTIMISM_GOERLI]={v3CoreFactoryAddress:"0xB656dA17129e7EB733A557f4EBc57B76CFbB5d10",multicallAddress:"0x07F2D8a2a02251B62af965f22fC4744A5f96BCCd",quoterAddress:"0x9569CbA925c8ca2248772A9A4976A516743A246F",v3MigratorAddress:"0xf6c55fBe84B1C8c3283533c53F51bC32F5C7Aba8",nonfungiblePositionManagerAddress:"0x39Ca85Af2F383190cBf7d7c41ED9202D27426EF6",tickLensAddress:"0xe6140Bd164b63E8BfCfc40D5dF952f83e171758e"},b[r.ARBITRUM_GOERLI]={v3CoreFactoryAddress:"0x4893376342d5D7b3e31d4184c08b265e5aB2A3f6",multicallAddress:"0x8260CB40247290317a4c062F3542622367F206Ee",quoterAddress:"0x1dd92b83591781D0C6d98d07391eea4b9a6008FA",v3MigratorAddress:"0xA815919D2584Ac3F76ea9CB62E6Fd40a43BCe0C3",nonfungiblePositionManagerAddress:"0x622e4726a167799826d1E1D150b076A7725f5D81",tickLensAddress:"0xb52429333da969a0C79a60930a4Bf0020E5D1DE8"},b[r.SEPOLIA]={v3CoreFactoryAddress:"0x0227628f3F023bb0B980b67D528571c95c6DaC1c",multicallAddress:"0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",quoterAddress:"0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",v3MigratorAddress:"0x729004182cF005CEC8Bd85df140094b6aCbe8b15",nonfungiblePositionManagerAddress:"0x1238536071E1c677A632429e3655c799b22cDA52",tickLensAddress:"0xd7f33bcdb21b359c8ee6f0251d30e94832baad07"},b[r.AVALANCHE]={v3CoreFactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",multicallAddress:"0x0139141Cd4Ee88dF3Cdb65881D411bAE271Ef0C2",quoterAddress:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",v3MigratorAddress:"0x44f5f1f5E452ea8d29C890E8F6e893fC0f1f0f97",nonfungiblePositionManagerAddress:"0x655C406EBFa14EE2006250925e54ec43AD184f8B",tickLensAddress:"0xEB9fFC8bf81b4fFd11fb6A63a6B0f098c6e21950",swapRouter02Address:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE"},b[r.BASE]={v3CoreFactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",multicallAddress:"0x091e99cb1C49331a94dD62755D168E941AbD0693",quoterAddress:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",v3MigratorAddress:"0x23cF10b1ee3AdfCA73B0eF17C07F7577e7ACd2d7",nonfungiblePositionManagerAddress:"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",tickLensAddress:"0x0CdeE061c75D43c82520eD998C23ac2991c9ac6d",swapRouter02Address:"0x2626664c2603336E57B271c5C0b26F421741e481"},b[r.BASE_GOERLI]={v3CoreFactoryAddress:"0x9323c1d6D800ed51Bd7C6B216cfBec678B7d0BC2",multicallAddress:"0xB206027a9E0E13F05eBEFa5D2402Bab3eA716439",quoterAddress:"0xedf539058e28E5937dAef3f69cEd0b25fbE66Ae9",v3MigratorAddress:"0x3efe5d02a04b7351D671Db7008ec6eBA9AD9e3aE",nonfungiblePositionManagerAddress:"0x3c61369ef0D1D2AFa70d8feC2F31C5D6Ce134F30",tickLensAddress:"0x1acB873Ee909D0c98adB18e4474943249F931b92",swapRouter02Address:"0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d"},b),H=y({},T.reduce((function(e,t){return e[t]=q[t].v3CoreFactoryAddress,e}),{})),V=y({},T.reduce((function(e,t){var n=q[t].v3MigratorAddress;return n&&(e[t]=n),e}),{})),G=y({},T.reduce((function(e,t){return e[t]=q[t].multicallAddress,e}),{})),W=S("0x5e4be8Bc9637f0EAA1A755019e06A68ce081D58F"),K=((w={})[r.MAINNET]="0xC4e172459f1E7939D522503B81AFAaC1014CE6F6",w),J=((x={})[r.MAINNET]="0x408ED6354d4973f66138C91495F2f2FCbd8724C3",x),X=S("0x1a9C8182C09F50C8318d769245beA52c32BE35BC"),Y=((A={})[r.MAINNET]="0x090D4613473dEE047c3f2706764f49E0821D256e",A),$=((k={})[r.MAINNET]="0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8",k),Q=y({},T.reduce((function(e,t){return e[t]=q[t].quoterAddress,e}),{})),ee=y({},T.reduce((function(e,t){var n=q[t].nonfungiblePositionManagerAddress;return n&&(e[t]=n),e}),{})),te=y({},S("0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e")),ne=((E={})[r.MAINNET]="0x65770b5283117639760beA3F867b69b3697a91dd",E),re=y({},T.reduce((function(e,t){var n=q[t].tickLensAddress;return n&&(e[t]=n),e}),{})),ie=T.reduce((function(e,t){var n=q[t].v1MixedRouteQuoterAddress;return n&&(e[t]=n),e}),{}),oe=function(e){return e==r.BNB?q[e].swapRouter02Address:"0x68b3465833fb72A70ecDF485E0e4C7bD8665Fc45"};!function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(C||(C={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(I||(I={}));var ae,se,ue=o().BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),ce=d()(u()),le=d()(l()),fe=((ae={})[I.ROUND_DOWN]=ce.ROUND_DOWN,ae[I.ROUND_HALF_UP]=ce.ROUND_HALF_UP,ae[I.ROUND_UP]=ce.ROUND_UP,ae),de=((se={})[I.ROUND_DOWN]=0,se[I.ROUND_HALF_UP]=1,se[I.ROUND_UP]=3,se),pe=function(){function e(e,t){void 0===t&&(t=o().BigInt(1)),this.numerator=o().BigInt(e),this.denominator=o().BigInt(t)}e.tryParseFraction=function(t){if(t instanceof o()||"number"===typeof t||"string"===typeof t)return new e(t);if("numerator"in t&&"denominator"in t)return t;throw new Error("Could not parse fraction")};var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().add(this.numerator,n.numerator),this.denominator):new e(o().add(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.subtract=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().subtract(this.numerator,n.numerator),this.denominator):new e(o().subtract(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.lessThan=function(t){var n=e.tryParseFraction(t);return o().lessThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.equalTo=function(t){var n=e.tryParseFraction(t);return o().equal(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.greaterThan=function(t){var n=e.tryParseFraction(t);return o().greaterThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.multiply=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.numerator),o().multiply(this.denominator,n.denominator))},t.divide=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.denominator),o().multiply(this.denominator,n.numerator))},t.toSignificant=function(e,t,n){void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=I.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>0||(0,a.Z)(!1),ce.set({precision:e+1,rounding:fe[n]});var r=new ce(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return r.toFormat(r.decimalPlaces(),t)},t.toFixed=function(e,t,n){return void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=I.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>=0||(0,a.Z)(!1),le.DP=e,le.RM=de[n],new le(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},m(e,[{key:"quotient",get:function(){return o().divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(o().remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}]),e}(),he=d()(l()),me=function(e){function t(t,n,r){var i;return i=e.call(this,n,r)||this,o().lessThanOrEqual(i.quotient,ue)||(0,a.Z)(!1),i.currency=t,i.decimalScale=o().exponentiate(o().BigInt(10),o().BigInt(t.decimals)),i}v(t,e),t.fromRawAmount=function(e,n){return new t(e,n)},t.fromFractionalAmount=function(e,n,r){return new t(e,n,r)};var n=t.prototype;return n.add=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.add.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.subtract=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.subtract.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.multiply=function(n){var r=e.prototype.multiply.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.divide=function(n){var r=e.prototype.divide.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.toSignificant=function(t,n,r){return void 0===t&&(t=6),void 0===r&&(r=I.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=this.currency.decimals),void 0===r&&(r=I.ROUND_DOWN),t<=this.currency.decimals||(0,a.Z)(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(t,n,r)},n.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),he.DP=this.currency.decimals,new he(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},m(t,[{key:"wrapped",get:function(){return this.currency.isToken?this:t.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),t}(pe),ye=new pe(o().BigInt(100));function ve(e){return new ge(e.numerator,e.denominator)}var ge=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isPercent=!0,t}v(t,e);var n=t.prototype;return n.add=function(t){return ve(e.prototype.add.call(this,t))},n.subtract=function(t){return ve(e.prototype.subtract.call(this,t))},n.multiply=function(t){return ve(e.prototype.multiply.call(this,t))},n.divide=function(t){return ve(e.prototype.divide.call(this,t))},n.toSignificant=function(t,n,r){return void 0===t&&(t=5),e.prototype.multiply.call(this,ye).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=2),e.prototype.multiply.call(this,ye).toFixed(t,n,r)},t}(pe),be=function(e){function t(){for(var t,n,r,i,a,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];if(4===u.length)n=u[0],r=u[1],i=u[2],a=u[3];else{var l=u[0].quoteAmount.divide(u[0].baseAmount),f=[u[0].baseAmount.currency,u[0].quoteAmount.currency,l.denominator,l.numerator];n=f[0],r=f[1],i=f[2],a=f[3]}return(t=e.call(this,a,i)||this).baseCurrency=n,t.quoteCurrency=r,t.scalar=new pe(o().exponentiate(o().BigInt(10),o().BigInt(n.decimals)),o().exponentiate(o().BigInt(10),o().BigInt(r.decimals))),t}v(t,e);var n=t.prototype;return n.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},n.multiply=function(n){this.quoteCurrency.equals(n.baseCurrency)||(0,a.Z)(!1);var r=e.prototype.multiply.call(this,n);return new t(this.baseCurrency,n.quoteCurrency,r.denominator,r.numerator)},n.quote=function(t){t.currency.equals(this.baseCurrency)||(0,a.Z)(!1);var n=e.prototype.multiply.call(this,t);return me.fromFractionalAmount(this.quoteCurrency,n.numerator,n.denominator)},n.toSignificant=function(e,t,n){return void 0===e&&(e=6),this.adjustedForDecimals.toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=4),this.adjustedForDecimals.toFixed(e,t,n)},m(t,[{key:"adjustedForDecimals",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),t}(pe),we=function(e,t,n,r){Number.isSafeInteger(e)||(0,a.Z)(!1),t>=0&&t<255&&Number.isInteger(t)||(0,a.Z)(!1),this.chainId=e,this.decimals=t,this.symbol=n,this.name=r},xe=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isNative=!0,t.isToken=!1,t}return v(t,e),t}(we);function Ae(e){try{return(0,p.getAddress)(e)}catch(t){throw new Error(e+" is not a valid address.")}}var ke=/^0x[0-9a-fA-F]{40}$/;var Ee,Te=function(e){function t(t,n,r,i,o,a){var s;return(s=e.call(this,t,r,i,o)||this).isNative=!1,s.isToken=!0,s.address=a?function(e){if(ke.test(e))return e;throw new Error(e+" is not a valid address.")}(n):Ae(n),s}v(t,e);var n=t.prototype;return n.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},n.sortsBefore=function(e){return this.chainId!==e.chainId&&(0,a.Z)(!1),this.address.toLowerCase()===e.address.toLowerCase()&&(0,a.Z)(!1),this.address.toLowerCase()<e.address.toLowerCase()},m(t,[{key:"wrapped",get:function(){return this}}]),t}(we),_e=((Ee={})[1]=new Te(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),Ee[3]=new Te(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),Ee[4]=new Te(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),Ee[5]=new Te(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),Ee[42]=new Te(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),Ee[10]=new Te(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),Ee[69]=new Te(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),Ee[42161]=new Te(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),Ee[421611]=new Te(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),Ee),Se=function(e){function t(t){return e.call(this,t,18,"ETH","Ether")||this}return v(t,e),t.onChain=function(e){var n;return null!=(n=this._etherCache[e])?n:this._etherCache[e]=new t(e)},t.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},m(t,[{key:"wrapped",get:function(){var e=_e[this.chainId];return e||(0,a.Z)(!1),e}}]),t}(xe);function Ce(e,t,n){var r=e.quote(t),i=r.subtract(n).divide(r);return new ge(i.numerator,i.denominator)}function Ie(e,t,n,r){if(n>0||(0,a.Z)(!1),e.length<=n||(0,a.Z)(!1),0===e.length)return e.push(t),null;var i=e.length===n;if(i&&r(e[e.length-1],t)<=0)return t;for(var o=0,s=e.length;o<s;){var u=o+s>>>1;r(e[u],t)<=0?o=u+1:s=u}return e.splice(o,0,t),i?e.pop():null}Se._etherCache={};var Oe=o().BigInt(Number.MAX_SAFE_INTEGER),Pe=o().BigInt(0),Re=o().BigInt(1),Me=o().BigInt(2);function Be(e){if(o().greaterThanOrEqual(e,Pe)||(0,a.Z)(!1),o().lessThan(e,Oe))return o().BigInt(Math.floor(Math.sqrt(o().toNumber(e))));var t,n;for(t=e,n=o().add(o().divide(e,Me),Re);o().lessThan(n,t);)t=n,n=o().divide(o().add(o().divide(e,n),n),Me);return t}},84215:function(e,t,n){"use strict";n.d(t,{WU:function(){return F},YL:function(){return i},gG:function(){return P},ih:function(){return C}});var r,i,o,a=n(73519),s=n.n(a),u=n(53449),c=n(59279),l=n.n(c),f=n(2792),d=n.n(f),p=n(66406),h=n.n(p),m=n(27255);!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.CELO=42220]="CELO",e[e.CELO_ALFAJORES=44787]="CELO_ALFAJORES",e[e.BNB=56]="BNB"}(r||(r={})),function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(i||(i={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(o||(o={}));var y,v,g=s().BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");function b(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function w(e,t,n){return t&&b(e.prototype,t),n&&b(e,n),e}function x(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var A=h()(l()),k=h()(d()),E=((y={})[o.ROUND_DOWN]=A.ROUND_DOWN,y[o.ROUND_HALF_UP]=A.ROUND_HALF_UP,y[o.ROUND_UP]=A.ROUND_UP,y),T=((v={})[o.ROUND_DOWN]=0,v[o.ROUND_HALF_UP]=1,v[o.ROUND_UP]=3,v),_=function(){function e(e,t){void 0===t&&(t=s().BigInt(1)),this.numerator=s().BigInt(e),this.denominator=s().BigInt(t)}e.tryParseFraction=function(t){if(t instanceof s()||"number"===typeof t||"string"===typeof t)return new e(t);if("numerator"in t&&"denominator"in t)return t;throw new Error("Could not parse fraction")};var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var n=e.tryParseFraction(t);return s().equal(this.denominator,n.denominator)?new e(s().add(this.numerator,n.numerator),this.denominator):new e(s().add(s().multiply(this.numerator,n.denominator),s().multiply(n.numerator,this.denominator)),s().multiply(this.denominator,n.denominator))},t.subtract=function(t){var n=e.tryParseFraction(t);return s().equal(this.denominator,n.denominator)?new e(s().subtract(this.numerator,n.numerator),this.denominator):new e(s().subtract(s().multiply(this.numerator,n.denominator),s().multiply(n.numerator,this.denominator)),s().multiply(this.denominator,n.denominator))},t.lessThan=function(t){var n=e.tryParseFraction(t);return s().lessThan(s().multiply(this.numerator,n.denominator),s().multiply(n.numerator,this.denominator))},t.equalTo=function(t){var n=e.tryParseFraction(t);return s().equal(s().multiply(this.numerator,n.denominator),s().multiply(n.numerator,this.denominator))},t.greaterThan=function(t){var n=e.tryParseFraction(t);return s().greaterThan(s().multiply(this.numerator,n.denominator),s().multiply(n.numerator,this.denominator))},t.multiply=function(t){var n=e.tryParseFraction(t);return new e(s().multiply(this.numerator,n.numerator),s().multiply(this.denominator,n.denominator))},t.divide=function(t){var n=e.tryParseFraction(t);return new e(s().multiply(this.numerator,n.denominator),s().multiply(this.denominator,n.numerator))},t.toSignificant=function(e,t,n){void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=o.ROUND_HALF_UP),Number.isInteger(e)||(0,u.Z)(!1),e>0||(0,u.Z)(!1),A.set({precision:e+1,rounding:E[n]});var r=new A(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return r.toFormat(r.decimalPlaces(),t)},t.toFixed=function(e,t,n){return void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=o.ROUND_HALF_UP),Number.isInteger(e)||(0,u.Z)(!1),e>=0||(0,u.Z)(!1),k.DP=e,k.RM=T[n],new k(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},w(e,[{key:"quotient",get:function(){return s().divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(s().remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}]),e}(),S=h()(d()),C=function(e){function t(t,n,r){var i;return i=e.call(this,n,r)||this,s().lessThanOrEqual(i.quotient,g)||(0,u.Z)(!1),i.currency=t,i.decimalScale=s().exponentiate(s().BigInt(10),s().BigInt(t.decimals)),i}x(t,e),t.fromRawAmount=function(e,n){return new t(e,n)},t.fromFractionalAmount=function(e,n,r){return new t(e,n,r)};var n=t.prototype;return n.add=function(n){this.currency.equals(n.currency)||(0,u.Z)(!1);var r=e.prototype.add.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.subtract=function(n){this.currency.equals(n.currency)||(0,u.Z)(!1);var r=e.prototype.subtract.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.multiply=function(n){var r=e.prototype.multiply.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.divide=function(n){var r=e.prototype.divide.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.toSignificant=function(t,n,r){return void 0===t&&(t=6),void 0===r&&(r=o.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=this.currency.decimals),void 0===r&&(r=o.ROUND_DOWN),t<=this.currency.decimals||(0,u.Z)(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(t,n,r)},n.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),S.DP=this.currency.decimals,new S(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},w(t,[{key:"wrapped",get:function(){return this.currency.isToken?this:t.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),t}(_),I=new _(s().BigInt(100));function O(e){return new P(e.numerator,e.denominator)}var P=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isPercent=!0,t}x(t,e);var n=t.prototype;return n.add=function(t){return O(e.prototype.add.call(this,t))},n.subtract=function(t){return O(e.prototype.subtract.call(this,t))},n.multiply=function(t){return O(e.prototype.multiply.call(this,t))},n.divide=function(t){return O(e.prototype.divide.call(this,t))},n.toSignificant=function(t,n,r){return void 0===t&&(t=5),e.prototype.multiply.call(this,I).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=2),e.prototype.multiply.call(this,I).toFixed(t,n,r)},t}(_),R=function(e,t,n,r){Number.isSafeInteger(e)||(0,u.Z)(!1),t>=0&&t<255&&Number.isInteger(t)||(0,u.Z)(!1),this.chainId=e,this.decimals=t,this.symbol=n,this.name=r},M=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isNative=!0,t.isToken=!1,t}return x(t,e),t}(R);var B=/^0x[0-9a-fA-F]{40}$/;var N,F=function(e){function t(t,n,r,i,o,a){var s;return(s=e.call(this,t,r,i,o)||this).isNative=!1,s.isToken=!0,s.address=a?function(e){if(B.test(e))return e;throw new Error(e+" is not a valid address.")}(n):function(e){try{return(0,m.getAddress)(e)}catch(t){throw new Error(e+" is not a valid address.")}}(n),s}x(t,e);var n=t.prototype;return n.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},n.sortsBefore=function(e){return this.chainId!==e.chainId&&(0,u.Z)(!1),this.address.toLowerCase()===e.address.toLowerCase()&&(0,u.Z)(!1),this.address.toLowerCase()<e.address.toLowerCase()},w(t,[{key:"wrapped",get:function(){return this}}]),t}(R),D=((N={})[1]=new F(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),N[3]=new F(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),N[4]=new F(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),N[5]=new F(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),N[42]=new F(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),N[10]=new F(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),N[69]=new F(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),N[42161]=new F(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),N[421611]=new F(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),N);(function(e){function t(t){return e.call(this,t,18,"ETH","Ether")||this}return x(t,e),t.onChain=function(e){var n;return null!=(n=this._etherCache[e])?n:this._etherCache[e]=new t(e)},t.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},w(t,[{key:"wrapped",get:function(){var e=D[this.chainId];return e||(0,u.Z)(!1),e}}]),t}(M))._etherCache={};Number.MAX_SAFE_INTEGER},34702:function(e,t,n){"use strict";n.r(t),n.d(t,{FACTORY_ADDRESS:function(){return le},INIT_CODE_HASH:function(){return fe},InsufficientInputAmountError:function(){return Oe},InsufficientReservesError:function(){return Ie},MINIMUM_LIQUIDITY:function(){return de},Pair:function(){return Re},Route:function(){return Me},Router:function(){return ze},Trade:function(){return Fe},computePairAddress:function(){return Pe},inputOutputComparator:function(){return Be},tradeComparator:function(){return Ne}});var r,i=n(73519),o=n.n(i),a=n(53449),s=n(59279),u=n.n(s),c=n(2792),l=n.n(c),f=n(66406),d=n.n(f),p=n(27255);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.CELO=42220]="CELO",e[e.CELO_ALFAJORES=44787]="CELO_ALFAJORES",e[e.GNOSIS=100]="GNOSIS",e[e.MOONBEAM=1284]="MOONBEAM",e[e.BNB=56]="BNB",e[e.AVALANCHE=43114]="AVALANCHE",e[e.BASE_GOERLI=84531]="BASE_GOERLI",e[e.BASE=8453]="BASE"}(r||(r={}));var g,b,w,x,A,k,E;r.MAINNET,r.OPTIMISM,r.OPTIMISM_GOERLI,r.ARBITRUM_ONE,r.ARBITRUM_GOERLI,r.POLYGON,r.POLYGON_MUMBAI,r.GOERLI,r.SEPOLIA,r.CELO_ALFAJORES,r.CELO,r.BNB,r.AVALANCHE,r.BASE,r.BASE_GOERLI;!function(e){e.ETHER="ETH",e.MATIC="MATIC",e.CELO="CELO",e.GNOSIS="XDAI",e.MOONBEAM="GLMR",e.BNB="BNB",e.AVAX="AVAX"}(g||(g={}));var T=[r.MAINNET,r.GOERLI];function _(e,t){return void 0===t&&(t=[]),T.concat(t).reduce((function(t,n){return t[n]=e,t}),{})}r.OPTIMISM,r.ARBITRUM_ONE,r.POLYGON,r.POLYGON_MUMBAI,r.SEPOLIA;var S,C,I={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x1F98415757620B543A52E61c46B32eB19261F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",v3MigratorAddress:"0xA5644E29708357803b5A882D272c41cC0dF92B34",nonfungiblePositionManagerAddress:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88"},O=y({},I,{v1MixedRouteQuoterAddress:"0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E"}),P=y({},I,{v1MixedRouteQuoterAddress:"0xBa60b6e6fF25488308789E6e0A65D838be34194e"}),R=I,M=y({},I,{multicallAddress:"0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB",tickLensAddress:"0xbfd8137f7d1516D3ea5cA83523914859ec47F573"}),B=I,N={v3CoreFactoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",multicallAddress:"0x633987602DE5C4F337e3DbF265303A1080324204",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",v3MigratorAddress:"0x3cFd4d48EDfDCC53D3f173F596f621064614C582",nonfungiblePositionManagerAddress:"0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A",tickLensAddress:"0x5f115D9113F88e0a0Db1b5033D90D4a9690AcD3D"};(b={})[r.MAINNET]=O,b[r.OPTIMISM]=R,b[r.ARBITRUM_ONE]=M,b[r.POLYGON]=B,b[r.POLYGON_MUMBAI]=B,b[r.GOERLI]=P,b[r.CELO]=N,b[r.CELO_ALFAJORES]=N,b[r.BNB]={v3CoreFactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",multicallAddress:"0x963Df249eD09c358A4819E39d9Cd5736c3087184",quoterAddress:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",v3MigratorAddress:"0x32681814957e0C13117ddc0c2aba232b5c9e760f",nonfungiblePositionManagerAddress:"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",tickLensAddress:"0xD9270014D396281579760619CCf4c3af0501A47C",swapRouter02Address:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2"},b[r.OPTIMISM_GOERLI]={v3CoreFactoryAddress:"0xB656dA17129e7EB733A557f4EBc57B76CFbB5d10",multicallAddress:"0x07F2D8a2a02251B62af965f22fC4744A5f96BCCd",quoterAddress:"0x9569CbA925c8ca2248772A9A4976A516743A246F",v3MigratorAddress:"0xf6c55fBe84B1C8c3283533c53F51bC32F5C7Aba8",nonfungiblePositionManagerAddress:"0x39Ca85Af2F383190cBf7d7c41ED9202D27426EF6",tickLensAddress:"0xe6140Bd164b63E8BfCfc40D5dF952f83e171758e"},b[r.ARBITRUM_GOERLI]={v3CoreFactoryAddress:"0x4893376342d5D7b3e31d4184c08b265e5aB2A3f6",multicallAddress:"0x8260CB40247290317a4c062F3542622367F206Ee",quoterAddress:"0x1dd92b83591781D0C6d98d07391eea4b9a6008FA",v3MigratorAddress:"0xA815919D2584Ac3F76ea9CB62E6Fd40a43BCe0C3",nonfungiblePositionManagerAddress:"0x622e4726a167799826d1E1D150b076A7725f5D81",tickLensAddress:"0xb52429333da969a0C79a60930a4Bf0020E5D1DE8"},b[r.SEPOLIA]={v3CoreFactoryAddress:"0x0227628f3F023bb0B980b67D528571c95c6DaC1c",multicallAddress:"0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",quoterAddress:"0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",v3MigratorAddress:"0x729004182cF005CEC8Bd85df140094b6aCbe8b15",nonfungiblePositionManagerAddress:"0x1238536071E1c677A632429e3655c799b22cDA52",tickLensAddress:"0xd7f33bcdb21b359c8ee6f0251d30e94832baad07"},b[r.AVALANCHE]={v3CoreFactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",multicallAddress:"0x0139141Cd4Ee88dF3Cdb65881D411bAE271Ef0C2",quoterAddress:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",v3MigratorAddress:"0x44f5f1f5E452ea8d29C890E8F6e893fC0f1f0f97",nonfungiblePositionManagerAddress:"0x655C406EBFa14EE2006250925e54ec43AD184f8B",tickLensAddress:"0xEB9fFC8bf81b4fFd11fb6A63a6B0f098c6e21950",swapRouter02Address:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE"},b[r.BASE]={v3CoreFactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",multicallAddress:"0x091e99cb1C49331a94dD62755D168E941AbD0693",quoterAddress:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",v3MigratorAddress:"0x23cF10b1ee3AdfCA73B0eF17C07F7577e7ACd2d7",nonfungiblePositionManagerAddress:"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",tickLensAddress:"0x0CdeE061c75D43c82520eD998C23ac2991c9ac6d",swapRouter02Address:"0x2626664c2603336E57B271c5C0b26F421741e481"},b[r.BASE_GOERLI]={v3CoreFactoryAddress:"0x9323c1d6D800ed51Bd7C6B216cfBec678B7d0BC2",multicallAddress:"0xB206027a9E0E13F05eBEFa5D2402Bab3eA716439",quoterAddress:"0xedf539058e28E5937dAef3f69cEd0b25fbE66Ae9",v3MigratorAddress:"0x3efe5d02a04b7351D671Db7008ec6eBA9AD9e3aE",nonfungiblePositionManagerAddress:"0x3c61369ef0D1D2AFa70d8feC2F31C5D6Ce134F30",tickLensAddress:"0x1acB873Ee909D0c98adB18e4474943249F931b92",swapRouter02Address:"0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d"},(w={})[r.MAINNET]="0xC4e172459f1E7939D522503B81AFAaC1014CE6F6",(x={})[r.MAINNET]="0x408ED6354d4973f66138C91495F2f2FCbd8724C3",(A={})[r.MAINNET]="0x090D4613473dEE047c3f2706764f49E0821D256e",(k={})[r.MAINNET]="0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8",(E={})[r.MAINNET]="0x65770b5283117639760beA3F867b69b3697a91dd";!function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(S||(S={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(C||(C={}));var F,D,L=o().BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),z=d()(u()),j=d()(l()),U=((F={})[C.ROUND_DOWN]=z.ROUND_DOWN,F[C.ROUND_HALF_UP]=z.ROUND_HALF_UP,F[C.ROUND_UP]=z.ROUND_UP,F),Z=((D={})[C.ROUND_DOWN]=0,D[C.ROUND_HALF_UP]=1,D[C.ROUND_UP]=3,D),q=function(){function e(e,t){void 0===t&&(t=o().BigInt(1)),this.numerator=o().BigInt(e),this.denominator=o().BigInt(t)}e.tryParseFraction=function(t){if(t instanceof o()||"number"===typeof t||"string"===typeof t)return new e(t);if("numerator"in t&&"denominator"in t)return t;throw new Error("Could not parse fraction")};var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().add(this.numerator,n.numerator),this.denominator):new e(o().add(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.subtract=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().subtract(this.numerator,n.numerator),this.denominator):new e(o().subtract(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.lessThan=function(t){var n=e.tryParseFraction(t);return o().lessThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.equalTo=function(t){var n=e.tryParseFraction(t);return o().equal(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.greaterThan=function(t){var n=e.tryParseFraction(t);return o().greaterThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.multiply=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.numerator),o().multiply(this.denominator,n.denominator))},t.divide=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.denominator),o().multiply(this.denominator,n.numerator))},t.toSignificant=function(e,t,n){void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=C.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>0||(0,a.Z)(!1),z.set({precision:e+1,rounding:U[n]});var r=new z(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return r.toFormat(r.decimalPlaces(),t)},t.toFixed=function(e,t,n){return void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=C.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>=0||(0,a.Z)(!1),j.DP=e,j.RM=Z[n],new j(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},m(e,[{key:"quotient",get:function(){return o().divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(o().remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}]),e}(),H=d()(l()),V=function(e){function t(t,n,r){var i;return i=e.call(this,n,r)||this,o().lessThanOrEqual(i.quotient,L)||(0,a.Z)(!1),i.currency=t,i.decimalScale=o().exponentiate(o().BigInt(10),o().BigInt(t.decimals)),i}v(t,e),t.fromRawAmount=function(e,n){return new t(e,n)},t.fromFractionalAmount=function(e,n,r){return new t(e,n,r)};var n=t.prototype;return n.add=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.add.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.subtract=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.subtract.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.multiply=function(n){var r=e.prototype.multiply.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.divide=function(n){var r=e.prototype.divide.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.toSignificant=function(t,n,r){return void 0===t&&(t=6),void 0===r&&(r=C.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=this.currency.decimals),void 0===r&&(r=C.ROUND_DOWN),t<=this.currency.decimals||(0,a.Z)(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(t,n,r)},n.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),H.DP=this.currency.decimals,new H(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},m(t,[{key:"wrapped",get:function(){return this.currency.isToken?this:t.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),t}(q),G=new q(o().BigInt(100));function W(e){return new K(e.numerator,e.denominator)}var K=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isPercent=!0,t}v(t,e);var n=t.prototype;return n.add=function(t){return W(e.prototype.add.call(this,t))},n.subtract=function(t){return W(e.prototype.subtract.call(this,t))},n.multiply=function(t){return W(e.prototype.multiply.call(this,t))},n.divide=function(t){return W(e.prototype.divide.call(this,t))},n.toSignificant=function(t,n,r){return void 0===t&&(t=5),e.prototype.multiply.call(this,G).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=2),e.prototype.multiply.call(this,G).toFixed(t,n,r)},t}(q),J=function(e){function t(){for(var t,n,r,i,a,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];if(4===u.length)n=u[0],r=u[1],i=u[2],a=u[3];else{var l=u[0].quoteAmount.divide(u[0].baseAmount),f=[u[0].baseAmount.currency,u[0].quoteAmount.currency,l.denominator,l.numerator];n=f[0],r=f[1],i=f[2],a=f[3]}return(t=e.call(this,a,i)||this).baseCurrency=n,t.quoteCurrency=r,t.scalar=new q(o().exponentiate(o().BigInt(10),o().BigInt(n.decimals)),o().exponentiate(o().BigInt(10),o().BigInt(r.decimals))),t}v(t,e);var n=t.prototype;return n.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},n.multiply=function(n){this.quoteCurrency.equals(n.baseCurrency)||(0,a.Z)(!1);var r=e.prototype.multiply.call(this,n);return new t(this.baseCurrency,n.quoteCurrency,r.denominator,r.numerator)},n.quote=function(t){t.currency.equals(this.baseCurrency)||(0,a.Z)(!1);var n=e.prototype.multiply.call(this,t);return V.fromFractionalAmount(this.quoteCurrency,n.numerator,n.denominator)},n.toSignificant=function(e,t,n){return void 0===e&&(e=6),this.adjustedForDecimals.toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=4),this.adjustedForDecimals.toFixed(e,t,n)},m(t,[{key:"adjustedForDecimals",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),t}(q),X=function(e,t,n,r){Number.isSafeInteger(e)||(0,a.Z)(!1),t>=0&&t<255&&Number.isInteger(t)||(0,a.Z)(!1),this.chainId=e,this.decimals=t,this.symbol=n,this.name=r},Y=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isNative=!0,t.isToken=!1,t}return v(t,e),t}(X);function $(e){try{return(0,p.getAddress)(e)}catch(t){throw new Error(e+" is not a valid address.")}}var Q=/^0x[0-9a-fA-F]{40}$/;var ee,te=function(e){function t(t,n,r,i,o,a){var s;return(s=e.call(this,t,r,i,o)||this).isNative=!1,s.isToken=!0,s.address=a?function(e){if(Q.test(e))return e;throw new Error(e+" is not a valid address.")}(n):$(n),s}v(t,e);var n=t.prototype;return n.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},n.sortsBefore=function(e){return this.chainId!==e.chainId&&(0,a.Z)(!1),this.address.toLowerCase()===e.address.toLowerCase()&&(0,a.Z)(!1),this.address.toLowerCase()<e.address.toLowerCase()},m(t,[{key:"wrapped",get:function(){return this}}]),t}(X),ne=((ee={})[1]=new te(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),ee[3]=new te(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),ee[4]=new te(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),ee[5]=new te(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),ee[42]=new te(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),ee[10]=new te(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),ee[69]=new te(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),ee[42161]=new te(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),ee[421611]=new te(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),ee);function re(e,t,n,r){if(n>0||(0,a.Z)(!1),e.length<=n||(0,a.Z)(!1),0===e.length)return e.push(t),null;var i=e.length===n;if(i&&r(e[e.length-1],t)<=0)return t;for(var o=0,s=e.length;o<s;){var u=o+s>>>1;r(e[u],t)<=0?o=u+1:s=u}return e.splice(o,0,t),i?e.pop():null}(function(e){function t(t){return e.call(this,t,18,"ETH","Ether")||this}return v(t,e),t.onChain=function(e){var n;return null!=(n=this._etherCache[e])?n:this._etherCache[e]=new t(e)},t.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},m(t,[{key:"wrapped",get:function(){var e=ne[this.chainId];return e||(0,a.Z)(!1),e}}]),t}(Y))._etherCache={};var ie=o().BigInt(Number.MAX_SAFE_INTEGER),oe=o().BigInt(0),ae=o().BigInt(1),se=o().BigInt(2);function ue(e){if(o().greaterThanOrEqual(e,oe)||(0,a.Z)(!1),o().lessThan(e,ie))return o().BigInt(Math.floor(Math.sqrt(o().toNumber(e))));var t,n;for(t=e,n=o().add(o().divide(e,se),ae);o().lessThan(n,t);)t=n,n=o().divide(o().add(o().divide(e,n),n),se);return t}var ce=n(69338),le="0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",fe="0x96e8ac4277198ff8b6f785478aa9a39f403cb768dd02cbee326c3e7da348845f",de=o().BigInt(1e3),pe=o().BigInt(0),he=o().BigInt(1),me=o().BigInt(5),ye=o().BigInt(997),ve=o().BigInt(1e3);function ge(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function be(e,t,n){return t&&ge(e.prototype,t),n&&ge(e,n),e}function we(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function xe(e){return xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},xe(e)}function Ae(e,t){return Ae=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Ae(e,t)}function ke(e,t,n){return ke=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Ae(i,n.prototype),i},ke.apply(null,arguments)}function Ee(e){var t="function"===typeof Map?new Map:void 0;return Ee=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return ke(e,arguments,xe(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),Ae(r,e)},Ee(e)}function Te(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Se(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return _e(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_e(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var Ce="setPrototypeOf"in Object,Ie=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientReservesError=!0,n.name=n.constructor.name,Ce&&Object.setPrototypeOf(Te(n),(this instanceof t?this.constructor:void 0).prototype),n}return we(t,e),t}(Ee(Error)),Oe=function(e){function t(){var n;return(n=e.call(this)||this).isInsufficientInputAmountError=!0,n.name=n.constructor.name,Ce&&Object.setPrototypeOf(Te(n),(this instanceof t?this.constructor:void 0).prototype),n}return we(t,e),t}(Ee(Error)),Pe=function(e){var t=e.factoryAddress,n=e.tokenA,r=e.tokenB,i=n.sortsBefore(r)?[n,r]:[r,n],o=i[0],a=i[1];return(0,p.getCreate2Address)(t,(0,ce.keccak256)(["bytes"],[(0,ce.pack)(["address","address"],[o.address,a.address])]),fe)},Re=function(){function e(t,n){var r=t.currency.sortsBefore(n.currency)?[t,n]:[n,t];this.liquidityToken=new te(r[0].currency.chainId,e.getAddress(r[0].currency,r[1].currency),18,"UNI-V2","Uniswap V2"),this.tokenAmounts=r}e.getAddress=function(e,t){return Pe({factoryAddress:le,tokenA:e,tokenB:t})};var t=e.prototype;return t.involvesToken=function(e){return e.equals(this.token0)||e.equals(this.token1)},t.priceOf=function(e){return this.involvesToken(e)||(0,a.Z)(!1),e.equals(this.token0)?this.token0Price:this.token1Price},t.reserveOf=function(e){return this.involvesToken(e)||(0,a.Z)(!1),e.equals(this.token0)?this.reserve0:this.reserve1},t.getOutputAmount=function(t){if(this.involvesToken(t.currency)||(0,a.Z)(!1),o().equal(this.reserve0.quotient,pe)||o().equal(this.reserve1.quotient,pe))throw new Ie;var n=this.reserveOf(t.currency),r=this.reserveOf(t.currency.equals(this.token0)?this.token1:this.token0),i=o().multiply(t.quotient,ye),s=o().multiply(i,r.quotient),u=o().add(o().multiply(n.quotient,ve),i),c=V.fromRawAmount(t.currency.equals(this.token0)?this.token1:this.token0,o().divide(s,u));if(o().equal(c.quotient,pe))throw new Oe;return[c,new e(n.add(t),r.subtract(c))]},t.getInputAmount=function(t){if(this.involvesToken(t.currency)||(0,a.Z)(!1),o().equal(this.reserve0.quotient,pe)||o().equal(this.reserve1.quotient,pe)||o().greaterThanOrEqual(t.quotient,this.reserveOf(t.currency).quotient))throw new Ie;var n=this.reserveOf(t.currency),r=this.reserveOf(t.currency.equals(this.token0)?this.token1:this.token0),i=o().multiply(o().multiply(r.quotient,t.quotient),ve),s=o().multiply(o().subtract(n.quotient,t.quotient),ye),u=V.fromRawAmount(t.currency.equals(this.token0)?this.token1:this.token0,o().add(o().divide(i,s),he));return[u,new e(r.add(u),n.subtract(t))]},t.getLiquidityMinted=function(e,t,n){e.currency.equals(this.liquidityToken)||(0,a.Z)(!1);var r,i=t.currency.sortsBefore(n.currency)?[t,n]:[n,t];if(i[0].currency.equals(this.token0)&&i[1].currency.equals(this.token1)||(0,a.Z)(!1),o().equal(e.quotient,pe))r=o().subtract(ue(o().multiply(i[0].quotient,i[1].quotient)),de);else{var s=o().divide(o().multiply(i[0].quotient,e.quotient),this.reserve0.quotient),u=o().divide(o().multiply(i[1].quotient,e.quotient),this.reserve1.quotient);r=o().lessThanOrEqual(s,u)?s:u}if(!o().greaterThan(r,pe))throw new Oe;return V.fromRawAmount(this.liquidityToken,r)},t.getLiquidityValue=function(e,t,n,r,i){var s;if(void 0===r&&(r=!1),this.involvesToken(e)||(0,a.Z)(!1),t.currency.equals(this.liquidityToken)||(0,a.Z)(!1),n.currency.equals(this.liquidityToken)||(0,a.Z)(!1),o().lessThanOrEqual(n.quotient,t.quotient)||(0,a.Z)(!1),r){i||(0,a.Z)(!1);var u=o().BigInt(i);if(o().equal(u,pe))s=t;else{var c=ue(o().multiply(this.reserve0.quotient,this.reserve1.quotient)),l=ue(u);if(o().greaterThan(c,l)){var f=o().multiply(t.quotient,o().subtract(c,l)),d=o().add(o().multiply(c,me),l),p=o().divide(f,d);s=t.add(V.fromRawAmount(this.liquidityToken,p))}else s=t}}else s=t;return V.fromRawAmount(e,o().divide(o().multiply(n.quotient,this.reserveOf(e).quotient),s.quotient))},be(e,[{key:"token0Price",get:function(){var e=this.tokenAmounts[1].divide(this.tokenAmounts[0]);return new J(this.token0,this.token1,e.denominator,e.numerator)}},{key:"token1Price",get:function(){var e=this.tokenAmounts[0].divide(this.tokenAmounts[1]);return new J(this.token1,this.token0,e.denominator,e.numerator)}},{key:"chainId",get:function(){return this.token0.chainId}},{key:"token0",get:function(){return this.tokenAmounts[0].currency}},{key:"token1",get:function(){return this.tokenAmounts[1].currency}},{key:"reserve0",get:function(){return this.tokenAmounts[0]}},{key:"reserve1",get:function(){return this.tokenAmounts[1]}}]),e}(),Me=function(){function e(e,t,n){this._midPrice=null,e.length>0||(0,a.Z)(!1);var r=e[0].chainId;e.every((function(e){return e.chainId===r}))||(0,a.Z)(!1);var i=t.wrapped;e[0].involvesToken(i)||(0,a.Z)(!1),"undefined"===typeof n||e[e.length-1].involvesToken(n.wrapped)||(0,a.Z)(!1);for(var o,s=[i],u=Se(e.entries());!(o=u()).done;){var c=o.value,l=c[0],f=c[1],d=s[l];d.equals(f.token0)||d.equals(f.token1)||(0,a.Z)(!1);var p=d.equals(f.token0)?f.token1:f.token0;s.push(p)}this.pairs=e,this.path=s,this.input=t,this.output=n}return be(e,[{key:"midPrice",get:function(){if(null!==this._midPrice)return this._midPrice;for(var e,t=[],n=Se(this.pairs.entries());!(e=n()).done;){var r=e.value,i=r[0],o=r[1];t.push(this.path[i].equals(o.token0)?new J(o.reserve0.currency,o.reserve1.currency,o.reserve0.quotient,o.reserve1.quotient):new J(o.reserve1.currency,o.reserve0.currency,o.reserve1.quotient,o.reserve0.quotient))}var a=t.slice(1).reduce((function(e,t){return e.multiply(t)}),t[0]);return this._midPrice=new J(this.input,this.output,a.denominator,a.numerator)}},{key:"chainId",get:function(){return this.pairs[0].chainId}}]),e}();function Be(e,t){return e.inputAmount.currency.equals(t.inputAmount.currency)||(0,a.Z)(!1),e.outputAmount.currency.equals(t.outputAmount.currency)||(0,a.Z)(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?0:e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}function Ne(e,t){var n=Be(e,t);return 0!==n?n:e.priceImpact.lessThan(t.priceImpact)?-1:e.priceImpact.greaterThan(t.priceImpact)?1:e.route.path.length-t.route.path.length}var Fe=function(){function e(e,t,n){this.route=e,this.tradeType=n;var r=new Array(e.path.length);if(n===S.EXACT_INPUT){t.currency.equals(e.input)||(0,a.Z)(!1),r[0]=t.wrapped;for(var i=0;i<e.path.length-1;i++){var o=e.pairs[i].getOutputAmount(r[i])[0];r[i+1]=o}this.inputAmount=V.fromFractionalAmount(e.input,t.numerator,t.denominator),this.outputAmount=V.fromFractionalAmount(e.output,r[r.length-1].numerator,r[r.length-1].denominator)}else{t.currency.equals(e.output)||(0,a.Z)(!1),r[r.length-1]=t.wrapped;for(var s=e.path.length-1;s>0;s--){var u=e.pairs[s-1].getInputAmount(r[s])[0];r[s-1]=u}this.inputAmount=V.fromFractionalAmount(e.input,r[0].numerator,r[0].denominator),this.outputAmount=V.fromFractionalAmount(e.output,t.numerator,t.denominator)}this.executionPrice=new J(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.quotient,this.outputAmount.quotient),this.priceImpact=function(e,t,n){var r=e.quote(t),i=r.subtract(n).divide(r);return new K(i.numerator,i.denominator)}(e.midPrice,this.inputAmount,this.outputAmount)}e.exactIn=function(t,n){return new e(t,n,S.EXACT_INPUT)},e.exactOut=function(t,n){return new e(t,n,S.EXACT_OUTPUT)};var t=e.prototype;return t.minimumAmountOut=function(e){if(e.lessThan(pe)&&(0,a.Z)(!1),this.tradeType===S.EXACT_OUTPUT)return this.outputAmount;var t=new q(he).add(e).invert().multiply(this.outputAmount.quotient).quotient;return V.fromRawAmount(this.outputAmount.currency,t)},t.maximumAmountIn=function(e){if(e.lessThan(pe)&&(0,a.Z)(!1),this.tradeType===S.EXACT_INPUT)return this.inputAmount;var t=new q(he).add(e).multiply(this.inputAmount.quotient).quotient;return V.fromRawAmount(this.inputAmount.currency,t)},e.bestTradeExactIn=function(t,n,r,i,o,s,u){var c=void 0===i?{}:i,l=c.maxNumResults,f=void 0===l?3:l,d=c.maxHops,p=void 0===d?3:d;void 0===o&&(o=[]),void 0===s&&(s=n),void 0===u&&(u=[]),t.length>0||(0,a.Z)(!1),p>0||(0,a.Z)(!1),n===s||o.length>0||(0,a.Z)(!1);for(var h=s.wrapped,m=r.wrapped,y=0;y<t.length;y++){var v=t[y];if((v.token0.equals(h.currency)||v.token1.equals(h.currency))&&(!v.reserve0.equalTo(pe)&&!v.reserve1.equalTo(pe))){var g=void 0;try{g=v.getOutputAmount(h)[0]}catch(w){if(w.isInsufficientInputAmountError)continue;throw w}if(g.currency.equals(m))re(u,new e(new Me([].concat(o,[v]),n.currency,r),n,S.EXACT_INPUT),f,Ne);else if(p>1&&t.length>1){var b=t.slice(0,y).concat(t.slice(y+1,t.length));e.bestTradeExactIn(b,n,r,{maxNumResults:f,maxHops:p-1},[].concat(o,[v]),g,u)}}}return u},t.worstExecutionPrice=function(e){return new J(this.inputAmount.currency,this.outputAmount.currency,this.maximumAmountIn(e).quotient,this.minimumAmountOut(e).quotient)},e.bestTradeExactOut=function(t,n,r,i,o,s,u){var c=void 0===i?{}:i,l=c.maxNumResults,f=void 0===l?3:l,d=c.maxHops,p=void 0===d?3:d;void 0===o&&(o=[]),void 0===s&&(s=r),void 0===u&&(u=[]),t.length>0||(0,a.Z)(!1),p>0||(0,a.Z)(!1),r===s||o.length>0||(0,a.Z)(!1);for(var h=s.wrapped,m=n.wrapped,y=0;y<t.length;y++){var v=t[y];if((v.token0.equals(h.currency)||v.token1.equals(h.currency))&&(!v.reserve0.equalTo(pe)&&!v.reserve1.equalTo(pe))){var g=void 0;try{g=v.getInputAmount(h)[0]}catch(w){if(w.isInsufficientReservesError)continue;throw w}if(g.currency.equals(m))re(u,new e(new Me([v].concat(o),n,r.currency),r,S.EXACT_OUTPUT),f,Ne);else if(p>1&&t.length>1){var b=t.slice(0,y).concat(t.slice(y+1,t.length));e.bestTradeExactOut(b,n,r,{maxNumResults:f,maxHops:p-1},[v].concat(o),g,u)}}}return u},e}();function De(e){return"0x"+e.quotient.toString(16)}var Le="0x0",ze=function(){function e(){}return e.swapCallParameters=function(e,t){var n=e.inputAmount.currency.isNative,r=e.outputAmount.currency.isNative;n&&r&&(0,a.Z)(!1),!("ttl"in t)||t.ttl>0||(0,a.Z)(!1);var i,o,s,u=$(t.recipient),c=De(e.maximumAmountIn(t.allowedSlippage)),l=De(e.minimumAmountOut(t.allowedSlippage)),f=e.route.path.map((function(e){return e.address})),d="ttl"in t?"0x"+(Math.floor((new Date).getTime()/1e3)+t.ttl).toString(16):"0x"+t.deadline.toString(16),p=Boolean(t.feeOnTransfer);switch(e.tradeType){case S.EXACT_INPUT:n?(i=p?"swapExactETHForTokensSupportingFeeOnTransferTokens":"swapExactETHForTokens",o=[l,f,u,d],s=c):r?(i=p?"swapExactTokensForETHSupportingFeeOnTransferTokens":"swapExactTokensForETH",o=[c,l,f,u,d],s=Le):(i=p?"swapExactTokensForTokensSupportingFeeOnTransferTokens":"swapExactTokensForTokens",o=[c,l,f,u,d],s=Le);break;case S.EXACT_OUTPUT:p&&(0,a.Z)(!1),n?(i="swapETHForExactTokens",o=[l,f,u,d],s=c):r?(i="swapTokensForExactETH",o=[l,c,f,u,d],s=Le):(i="swapTokensForExactTokens",o=[l,c,f,u,d],s=Le)}return{methodName:i,args:o,value:s}},e}()},7042:function(e,t,n){"use strict";n.r(t),n.d(t,{ADDRESS_ZERO:function(){return Re},FACTORY_ADDRESS:function(){return Pe},FeeAmount:function(){return Ie},FullMath:function(){return Ze},LiquidityMath:function(){return Ue},Multicall:function(){return St},NoTickDataProvider:function(){return et},NonfungiblePositionManager:function(){return Rt},POOL_INIT_CODE_HASH:function(){return Me},Payments:function(){return It},Pool:function(){return At},Position:function(){return kt},PositionLibrary:function(){return pt},Route:function(){return Et},SelfPermit:function(){return Ct},SqrtPriceMath:function(){return Ve},Staker:function(){return Bt},SwapMath:function(){return We},SwapQuoter:function(){return Mt},SwapRouter:function(){return Nt},TICK_SPACINGS:function(){return Be},Tick:function(){return bt},TickLibrary:function(){return gt},TickList:function(){return rt},TickListDataProvider:function(){return wt},TickMath:function(){return Qe},Trade:function(){return _t},computePoolAddress:function(){return je},encodeRouteToPath:function(){return ot},encodeSqrtRatioX96:function(){return at},isSorted:function(){return tt},maxLiquidityForAmounts:function(){return lt},mostSignificantBit:function(){return Xe},nearestUsableTick:function(){return ft},priceToClosestTick:function(){return mt},subIn256:function(){return vt},tickToPrice:function(){return ht},toHex:function(){return it},tradeComparator:function(){return Tt}});var r,i=n(73519),o=n.n(i),a=n(53449),s=n(59279),u=n.n(s),c=n(2792),l=n.n(c),f=n(66406),d=n.n(f),p=n(27255);function h(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function m(e,t,n){return t&&h(e.prototype,t),n&&h(e,n),e}function y(){return y=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},y.apply(this,arguments)}function v(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}!function(e){e[e.MAINNET=1]="MAINNET",e[e.GOERLI=5]="GOERLI",e[e.SEPOLIA=11155111]="SEPOLIA",e[e.OPTIMISM=10]="OPTIMISM",e[e.OPTIMISM_GOERLI=420]="OPTIMISM_GOERLI",e[e.ARBITRUM_ONE=42161]="ARBITRUM_ONE",e[e.ARBITRUM_GOERLI=421613]="ARBITRUM_GOERLI",e[e.POLYGON=137]="POLYGON",e[e.POLYGON_MUMBAI=80001]="POLYGON_MUMBAI",e[e.CELO=42220]="CELO",e[e.CELO_ALFAJORES=44787]="CELO_ALFAJORES",e[e.GNOSIS=100]="GNOSIS",e[e.MOONBEAM=1284]="MOONBEAM",e[e.BNB=56]="BNB",e[e.AVALANCHE=43114]="AVALANCHE",e[e.BASE_GOERLI=84531]="BASE_GOERLI",e[e.BASE=8453]="BASE"}(r||(r={}));var g,b,w,x,A,k,E;r.MAINNET,r.OPTIMISM,r.OPTIMISM_GOERLI,r.ARBITRUM_ONE,r.ARBITRUM_GOERLI,r.POLYGON,r.POLYGON_MUMBAI,r.GOERLI,r.SEPOLIA,r.CELO_ALFAJORES,r.CELO,r.BNB,r.AVALANCHE,r.BASE,r.BASE_GOERLI;!function(e){e.ETHER="ETH",e.MATIC="MATIC",e.CELO="CELO",e.GNOSIS="XDAI",e.MOONBEAM="GLMR",e.BNB="BNB",e.AVAX="AVAX"}(g||(g={}));var T=[r.MAINNET,r.GOERLI];function _(e,t){return void 0===t&&(t=[]),T.concat(t).reduce((function(t,n){return t[n]=e,t}),{})}r.OPTIMISM,r.ARBITRUM_ONE,r.POLYGON,r.POLYGON_MUMBAI,r.SEPOLIA;var S,C,I={v3CoreFactoryAddress:"0x1F98431c8aD98523631AE4a59f267346ea31F984",multicallAddress:"0x1F98415757620B543A52E61c46B32eB19261F984",quoterAddress:"0xb27308f9F90D607463bb33eA1BeBb41C27CE5AB6",v3MigratorAddress:"0xA5644E29708357803b5A882D272c41cC0dF92B34",nonfungiblePositionManagerAddress:"0xC36442b4a4522E871399CD717aBDD847Ab11FE88"},O=y({},I,{v1MixedRouteQuoterAddress:"0x84E44095eeBfEC7793Cd7d5b57B7e401D7f1cA2E"}),P=y({},I,{v1MixedRouteQuoterAddress:"0xBa60b6e6fF25488308789E6e0A65D838be34194e"}),R=I,M=y({},I,{multicallAddress:"0xadF885960B47eA2CD9B55E6DAc6B42b7Cb2806dB",tickLensAddress:"0xbfd8137f7d1516D3ea5cA83523914859ec47F573"}),B=I,N={v3CoreFactoryAddress:"0xAfE208a311B21f13EF87E33A90049fC17A7acDEc",multicallAddress:"0x633987602DE5C4F337e3DbF265303A1080324204",quoterAddress:"0x82825d0554fA07f7FC52Ab63c961F330fdEFa8E8",v3MigratorAddress:"0x3cFd4d48EDfDCC53D3f173F596f621064614C582",nonfungiblePositionManagerAddress:"0x3d79EdAaBC0EaB6F08ED885C05Fc0B014290D95A",tickLensAddress:"0x5f115D9113F88e0a0Db1b5033D90D4a9690AcD3D"};(b={})[r.MAINNET]=O,b[r.OPTIMISM]=R,b[r.ARBITRUM_ONE]=M,b[r.POLYGON]=B,b[r.POLYGON_MUMBAI]=B,b[r.GOERLI]=P,b[r.CELO]=N,b[r.CELO_ALFAJORES]=N,b[r.BNB]={v3CoreFactoryAddress:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",multicallAddress:"0x963Df249eD09c358A4819E39d9Cd5736c3087184",quoterAddress:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",v3MigratorAddress:"0x32681814957e0C13117ddc0c2aba232b5c9e760f",nonfungiblePositionManagerAddress:"0x7b8A01B39D58278b5DE7e48c8449c9f4F5170613",tickLensAddress:"0xD9270014D396281579760619CCf4c3af0501A47C",swapRouter02Address:"0xB971eF87ede563556b2ED4b1C0b0019111Dd85d2"},b[r.OPTIMISM_GOERLI]={v3CoreFactoryAddress:"0xB656dA17129e7EB733A557f4EBc57B76CFbB5d10",multicallAddress:"0x07F2D8a2a02251B62af965f22fC4744A5f96BCCd",quoterAddress:"0x9569CbA925c8ca2248772A9A4976A516743A246F",v3MigratorAddress:"0xf6c55fBe84B1C8c3283533c53F51bC32F5C7Aba8",nonfungiblePositionManagerAddress:"0x39Ca85Af2F383190cBf7d7c41ED9202D27426EF6",tickLensAddress:"0xe6140Bd164b63E8BfCfc40D5dF952f83e171758e"},b[r.ARBITRUM_GOERLI]={v3CoreFactoryAddress:"0x4893376342d5D7b3e31d4184c08b265e5aB2A3f6",multicallAddress:"0x8260CB40247290317a4c062F3542622367F206Ee",quoterAddress:"0x1dd92b83591781D0C6d98d07391eea4b9a6008FA",v3MigratorAddress:"0xA815919D2584Ac3F76ea9CB62E6Fd40a43BCe0C3",nonfungiblePositionManagerAddress:"0x622e4726a167799826d1E1D150b076A7725f5D81",tickLensAddress:"0xb52429333da969a0C79a60930a4Bf0020E5D1DE8"},b[r.SEPOLIA]={v3CoreFactoryAddress:"0x0227628f3F023bb0B980b67D528571c95c6DaC1c",multicallAddress:"0xD7F33bCdb21b359c8ee6F0251d30E94832baAd07",quoterAddress:"0xEd1f6473345F45b75F8179591dd5bA1888cf2FB3",v3MigratorAddress:"0x729004182cF005CEC8Bd85df140094b6aCbe8b15",nonfungiblePositionManagerAddress:"0x1238536071E1c677A632429e3655c799b22cDA52",tickLensAddress:"0xd7f33bcdb21b359c8ee6f0251d30e94832baad07"},b[r.AVALANCHE]={v3CoreFactoryAddress:"0x740b1c1de25031C31FF4fC9A62f554A55cdC1baD",multicallAddress:"0x0139141Cd4Ee88dF3Cdb65881D411bAE271Ef0C2",quoterAddress:"0xbe0F5544EC67e9B3b2D979aaA43f18Fd87E6257F",v3MigratorAddress:"0x44f5f1f5E452ea8d29C890E8F6e893fC0f1f0f97",nonfungiblePositionManagerAddress:"0x655C406EBFa14EE2006250925e54ec43AD184f8B",tickLensAddress:"0xEB9fFC8bf81b4fFd11fb6A63a6B0f098c6e21950",swapRouter02Address:"0xbb00FF08d01D300023C629E8fFfFcb65A5a578cE"},b[r.BASE]={v3CoreFactoryAddress:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",multicallAddress:"0x091e99cb1C49331a94dD62755D168E941AbD0693",quoterAddress:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",v3MigratorAddress:"0x23cF10b1ee3AdfCA73B0eF17C07F7577e7ACd2d7",nonfungiblePositionManagerAddress:"0x03a520b32C04BF3bEEf7BEb72E919cf822Ed34f1",tickLensAddress:"0x0CdeE061c75D43c82520eD998C23ac2991c9ac6d",swapRouter02Address:"0x2626664c2603336E57B271c5C0b26F421741e481"},b[r.BASE_GOERLI]={v3CoreFactoryAddress:"0x9323c1d6D800ed51Bd7C6B216cfBec678B7d0BC2",multicallAddress:"0xB206027a9E0E13F05eBEFa5D2402Bab3eA716439",quoterAddress:"0xedf539058e28E5937dAef3f69cEd0b25fbE66Ae9",v3MigratorAddress:"0x3efe5d02a04b7351D671Db7008ec6eBA9AD9e3aE",nonfungiblePositionManagerAddress:"0x3c61369ef0D1D2AFa70d8feC2F31C5D6Ce134F30",tickLensAddress:"0x1acB873Ee909D0c98adB18e4474943249F931b92",swapRouter02Address:"0x8357227D4eDc78991Db6FDB9bD6ADE250536dE1d"},(w={})[r.MAINNET]="0xC4e172459f1E7939D522503B81AFAaC1014CE6F6",(x={})[r.MAINNET]="0x408ED6354d4973f66138C91495F2f2FCbd8724C3",(A={})[r.MAINNET]="0x090D4613473dEE047c3f2706764f49E0821D256e",(k={})[r.MAINNET]="0xeca4B0bDBf7c55E9b7925919d03CbF8Dc82537E8",(E={})[r.MAINNET]="0x65770b5283117639760beA3F867b69b3697a91dd";!function(e){e[e.EXACT_INPUT=0]="EXACT_INPUT",e[e.EXACT_OUTPUT=1]="EXACT_OUTPUT"}(S||(S={})),function(e){e[e.ROUND_DOWN=0]="ROUND_DOWN",e[e.ROUND_HALF_UP=1]="ROUND_HALF_UP",e[e.ROUND_UP=2]="ROUND_UP"}(C||(C={}));var F,D,L=o().BigInt("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),z=d()(u()),j=d()(l()),U=((F={})[C.ROUND_DOWN]=z.ROUND_DOWN,F[C.ROUND_HALF_UP]=z.ROUND_HALF_UP,F[C.ROUND_UP]=z.ROUND_UP,F),Z=((D={})[C.ROUND_DOWN]=0,D[C.ROUND_HALF_UP]=1,D[C.ROUND_UP]=3,D),q=function(){function e(e,t){void 0===t&&(t=o().BigInt(1)),this.numerator=o().BigInt(e),this.denominator=o().BigInt(t)}e.tryParseFraction=function(t){if(t instanceof o()||"number"===typeof t||"string"===typeof t)return new e(t);if("numerator"in t&&"denominator"in t)return t;throw new Error("Could not parse fraction")};var t=e.prototype;return t.invert=function(){return new e(this.denominator,this.numerator)},t.add=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().add(this.numerator,n.numerator),this.denominator):new e(o().add(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.subtract=function(t){var n=e.tryParseFraction(t);return o().equal(this.denominator,n.denominator)?new e(o().subtract(this.numerator,n.numerator),this.denominator):new e(o().subtract(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator)),o().multiply(this.denominator,n.denominator))},t.lessThan=function(t){var n=e.tryParseFraction(t);return o().lessThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.equalTo=function(t){var n=e.tryParseFraction(t);return o().equal(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.greaterThan=function(t){var n=e.tryParseFraction(t);return o().greaterThan(o().multiply(this.numerator,n.denominator),o().multiply(n.numerator,this.denominator))},t.multiply=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.numerator),o().multiply(this.denominator,n.denominator))},t.divide=function(t){var n=e.tryParseFraction(t);return new e(o().multiply(this.numerator,n.denominator),o().multiply(this.denominator,n.numerator))},t.toSignificant=function(e,t,n){void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=C.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>0||(0,a.Z)(!1),z.set({precision:e+1,rounding:U[n]});var r=new z(this.numerator.toString()).div(this.denominator.toString()).toSignificantDigits(e);return r.toFormat(r.decimalPlaces(),t)},t.toFixed=function(e,t,n){return void 0===t&&(t={groupSeparator:""}),void 0===n&&(n=C.ROUND_HALF_UP),Number.isInteger(e)||(0,a.Z)(!1),e>=0||(0,a.Z)(!1),j.DP=e,j.RM=Z[n],new j(this.numerator.toString()).div(this.denominator.toString()).toFormat(e,t)},m(e,[{key:"quotient",get:function(){return o().divide(this.numerator,this.denominator)}},{key:"remainder",get:function(){return new e(o().remainder(this.numerator,this.denominator),this.denominator)}},{key:"asFraction",get:function(){return new e(this.numerator,this.denominator)}}]),e}(),H=d()(l()),V=function(e){function t(t,n,r){var i;return i=e.call(this,n,r)||this,o().lessThanOrEqual(i.quotient,L)||(0,a.Z)(!1),i.currency=t,i.decimalScale=o().exponentiate(o().BigInt(10),o().BigInt(t.decimals)),i}v(t,e),t.fromRawAmount=function(e,n){return new t(e,n)},t.fromFractionalAmount=function(e,n,r){return new t(e,n,r)};var n=t.prototype;return n.add=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.add.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.subtract=function(n){this.currency.equals(n.currency)||(0,a.Z)(!1);var r=e.prototype.subtract.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.multiply=function(n){var r=e.prototype.multiply.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.divide=function(n){var r=e.prototype.divide.call(this,n);return t.fromFractionalAmount(this.currency,r.numerator,r.denominator)},n.toSignificant=function(t,n,r){return void 0===t&&(t=6),void 0===r&&(r=C.ROUND_DOWN),e.prototype.divide.call(this,this.decimalScale).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=this.currency.decimals),void 0===r&&(r=C.ROUND_DOWN),t<=this.currency.decimals||(0,a.Z)(!1),e.prototype.divide.call(this,this.decimalScale).toFixed(t,n,r)},n.toExact=function(e){return void 0===e&&(e={groupSeparator:""}),H.DP=this.currency.decimals,new H(this.quotient.toString()).div(this.decimalScale.toString()).toFormat(e)},m(t,[{key:"wrapped",get:function(){return this.currency.isToken?this:t.fromFractionalAmount(this.currency.wrapped,this.numerator,this.denominator)}}]),t}(q),G=new q(o().BigInt(100));function W(e){return new K(e.numerator,e.denominator)}var K=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isPercent=!0,t}v(t,e);var n=t.prototype;return n.add=function(t){return W(e.prototype.add.call(this,t))},n.subtract=function(t){return W(e.prototype.subtract.call(this,t))},n.multiply=function(t){return W(e.prototype.multiply.call(this,t))},n.divide=function(t){return W(e.prototype.divide.call(this,t))},n.toSignificant=function(t,n,r){return void 0===t&&(t=5),e.prototype.multiply.call(this,G).toSignificant(t,n,r)},n.toFixed=function(t,n,r){return void 0===t&&(t=2),e.prototype.multiply.call(this,G).toFixed(t,n,r)},t}(q),J=function(e){function t(){for(var t,n,r,i,a,s=arguments.length,u=new Array(s),c=0;c<s;c++)u[c]=arguments[c];if(4===u.length)n=u[0],r=u[1],i=u[2],a=u[3];else{var l=u[0].quoteAmount.divide(u[0].baseAmount),f=[u[0].baseAmount.currency,u[0].quoteAmount.currency,l.denominator,l.numerator];n=f[0],r=f[1],i=f[2],a=f[3]}return(t=e.call(this,a,i)||this).baseCurrency=n,t.quoteCurrency=r,t.scalar=new q(o().exponentiate(o().BigInt(10),o().BigInt(n.decimals)),o().exponentiate(o().BigInt(10),o().BigInt(r.decimals))),t}v(t,e);var n=t.prototype;return n.invert=function(){return new t(this.quoteCurrency,this.baseCurrency,this.numerator,this.denominator)},n.multiply=function(n){this.quoteCurrency.equals(n.baseCurrency)||(0,a.Z)(!1);var r=e.prototype.multiply.call(this,n);return new t(this.baseCurrency,n.quoteCurrency,r.denominator,r.numerator)},n.quote=function(t){t.currency.equals(this.baseCurrency)||(0,a.Z)(!1);var n=e.prototype.multiply.call(this,t);return V.fromFractionalAmount(this.quoteCurrency,n.numerator,n.denominator)},n.toSignificant=function(e,t,n){return void 0===e&&(e=6),this.adjustedForDecimals.toSignificant(e,t,n)},n.toFixed=function(e,t,n){return void 0===e&&(e=4),this.adjustedForDecimals.toFixed(e,t,n)},m(t,[{key:"adjustedForDecimals",get:function(){return e.prototype.multiply.call(this,this.scalar)}}]),t}(q),X=function(e,t,n,r){Number.isSafeInteger(e)||(0,a.Z)(!1),t>=0&&t<255&&Number.isInteger(t)||(0,a.Z)(!1),this.chainId=e,this.decimals=t,this.symbol=n,this.name=r},Y=function(e){function t(){var t;return(t=e.apply(this,arguments)||this).isNative=!0,t.isToken=!1,t}return v(t,e),t}(X);function $(e){try{return(0,p.getAddress)(e)}catch(t){throw new Error(e+" is not a valid address.")}}var Q=/^0x[0-9a-fA-F]{40}$/;var ee,te=function(e){function t(t,n,r,i,o,a){var s;return(s=e.call(this,t,r,i,o)||this).isNative=!1,s.isToken=!0,s.address=a?function(e){if(Q.test(e))return e;throw new Error(e+" is not a valid address.")}(n):$(n),s}v(t,e);var n=t.prototype;return n.equals=function(e){return e.isToken&&this.chainId===e.chainId&&this.address.toLowerCase()===e.address.toLowerCase()},n.sortsBefore=function(e){return this.chainId!==e.chainId&&(0,a.Z)(!1),this.address.toLowerCase()===e.address.toLowerCase()&&(0,a.Z)(!1),this.address.toLowerCase()<e.address.toLowerCase()},m(t,[{key:"wrapped",get:function(){return this}}]),t}(X),ne=((ee={})[1]=new te(1,"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",18,"WETH","Wrapped Ether"),ee[3]=new te(3,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),ee[4]=new te(4,"0xc778417E063141139Fce010982780140Aa0cD5Ab",18,"WETH","Wrapped Ether"),ee[5]=new te(5,"0xB4FBF271143F4FBf7B91A5ded31805e42b2208d6",18,"WETH","Wrapped Ether"),ee[42]=new te(42,"0xd0A1E359811322d97991E03f863a0C30C2cF029C",18,"WETH","Wrapped Ether"),ee[10]=new te(10,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),ee[69]=new te(69,"0x4200000000000000000000000000000000000006",18,"WETH","Wrapped Ether"),ee[42161]=new te(42161,"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",18,"WETH","Wrapped Ether"),ee[421611]=new te(421611,"0xB47e6A5f8b33b3F17603C83a0535A9dcD7E32681",18,"WETH","Wrapped Ether"),ee);function re(e,t,n,r){if(n>0||(0,a.Z)(!1),e.length<=n||(0,a.Z)(!1),0===e.length)return e.push(t),null;var i=e.length===n;if(i&&r(e[e.length-1],t)<=0)return t;for(var o=0,s=e.length;o<s;){var u=o+s>>>1;r(e[u],t)<=0?o=u+1:s=u}return e.splice(o,0,t),i?e.pop():null}(function(e){function t(t){return e.call(this,t,18,"ETH","Ether")||this}return v(t,e),t.onChain=function(e){var n;return null!=(n=this._etherCache[e])?n:this._etherCache[e]=new t(e)},t.prototype.equals=function(e){return e.isNative&&e.chainId===this.chainId},m(t,[{key:"wrapped",get:function(){var e=ne[this.chainId];return e||(0,a.Z)(!1),e}}]),t}(Y))._etherCache={};var ie=o().BigInt(Number.MAX_SAFE_INTEGER),oe=o().BigInt(0),ae=o().BigInt(1),se=o().BigInt(2);var ue=n(46306),ce=n(92388),le=n(69338),fe=JSON.parse('{"Mt":[{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"}]}'),de=JSON.parse('{"Mt":[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"},{"internalType":"address","name":"_tokenDescriptor_","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"approved","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"operator","type":"address"},{"indexed":false,"internalType":"bool","name":"approved","type":"bool"}],"name":"ApprovalForAll","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"address","name":"recipient","type":"address"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"Collect","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"DecreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"},{"indexed":false,"internalType":"uint256","name":"amount0","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"amount1","type":"uint256"}],"name":"IncreaseLiquidity","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[],"name":"DOMAIN_SEPARATOR","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"PERMIT_TYPEHASH","outputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"approve","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"baseURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"pure","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"burn","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint128","name":"amount0Max","type":"uint128"},{"internalType":"uint128","name":"amount1Max","type":"uint128"}],"internalType":"struct INonfungiblePositionManager.CollectParams","name":"params","type":"tuple"}],"name":"collect","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceX96","type":"uint160"}],"name":"createAndInitializePoolIfNecessary","outputs":[{"internalType":"address","name":"pool","type":"address"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.DecreaseLiquidityParams","name":"params","type":"tuple"}],"name":"decreaseLiquidity","outputs":[{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getApproved","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"operator","type":"address"}],"name":"isApprovedForAll","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Desired","type":"uint256"},{"internalType":"uint256","name":"amount1Desired","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"}],"internalType":"struct INonfungiblePositionManager.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"amount0","type":"uint256"},{"internalType":"uint256","name":"amount1","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"ownerOf","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"permit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"positions","outputs":[{"internalType":"uint96","name":"nonce","type":"uint96"},{"internalType":"address","name":"operator","type":"address"},{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint128","name":"liquidity","type":"uint128"},{"internalType":"uint256","name":"feeGrowthInside0LastX128","type":"uint256"},{"internalType":"uint256","name":"feeGrowthInside1LastX128","type":"uint256"},{"internalType":"uint128","name":"tokensOwed0","type":"uint128"},{"internalType":"uint128","name":"tokensOwed1","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"safeTransferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"operator","type":"address"},{"internalType":"bool","name":"approved","type":"bool"}],"name":"setApprovalForAll","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes4","name":"interfaceId","type":"bytes4"}],"name":"supportsInterface","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint256","name":"index","type":"uint256"}],"name":"tokenOfOwnerByIndex","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"tokenURI","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"transferFrom","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amount0Owed","type":"uint256"},{"internalType":"uint256","name":"amount1Owed","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3MintCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]}'),pe=JSON.parse('{"Mt":[{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"}]}'),he=JSON.parse('{"Mt":[{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"sweepTokenWithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"unwrapWETH9WithFee","outputs":[],"stateMutability":"payable","type":"function"}]}'),me=JSON.parse('{"Mt":[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"quoteExactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"name":"quoteExactInputSingle","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"quoteExactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"name":"quoteExactOutputSingle","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"path","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"view","type":"function"}]}'),ye=JSON.parse('{"Mt":[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"amountIn","type":"uint256"}],"name":"quoteExactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint160[]","name":"sqrtPriceX96AfterList","type":"uint160[]"},{"internalType":"uint32[]","name":"initializedTicksCrossedList","type":"uint32[]"},{"internalType":"uint256","name":"gasEstimate","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IQuoterV2.QuoteExactInputSingleParams","name":"params","type":"tuple"}],"name":"quoteExactInputSingle","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceX96After","type":"uint160"},{"internalType":"uint32","name":"initializedTicksCrossed","type":"uint32"},{"internalType":"uint256","name":"gasEstimate","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"uint256","name":"amountOut","type":"uint256"}],"name":"quoteExactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint160[]","name":"sqrtPriceX96AfterList","type":"uint160[]"},{"internalType":"uint32[]","name":"initializedTicksCrossedList","type":"uint32[]"},{"internalType":"uint256","name":"gasEstimate","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IQuoterV2.QuoteExactOutputSingleParams","name":"params","type":"tuple"}],"name":"quoteExactOutputSingle","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceX96After","type":"uint160"},{"internalType":"uint32","name":"initializedTicksCrossed","type":"uint32"},{"internalType":"uint256","name":"gasEstimate","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"path","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"view","type":"function"}]}'),ve=JSON.parse('{"Mt":[{"inputs":[{"internalType":"contract IUniswapV3Factory","name":"_factory","type":"address"},{"internalType":"contract INonfungiblePositionManager","name":"_nonfungiblePositionManager","type":"address"},{"internalType":"uint256","name":"_maxIncentiveStartLeadTime","type":"uint256"},{"internalType":"uint256","name":"_maxIncentiveDuration","type":"uint256"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"address","name":"oldOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"DepositTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"indexed":true,"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"indexed":false,"internalType":"uint256","name":"startTime","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"endTime","type":"uint256"},{"indexed":false,"internalType":"address","name":"refundee","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"IncentiveCreated","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"bytes32","name":"incentiveId","type":"bytes32"},{"indexed":false,"internalType":"uint256","name":"refund","type":"uint256"}],"name":"IncentiveEnded","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"reward","type":"uint256"}],"name":"RewardClaimed","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"incentiveId","type":"bytes32"},{"indexed":false,"internalType":"uint128","name":"liquidity","type":"uint128"}],"name":"TokenStaked","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"uint256","name":"tokenId","type":"uint256"},{"indexed":true,"internalType":"bytes32","name":"incentiveId","type":"bytes32"}],"name":"TokenUnstaked","type":"event"},{"inputs":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amountRequested","type":"uint256"}],"name":"claimReward","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"refundee","type":"address"}],"internalType":"struct IUniswapV3Staker.IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"reward","type":"uint256"}],"name":"createIncentive","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"","type":"uint256"}],"name":"deposits","outputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"uint48","name":"numberOfStakes","type":"uint48"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"refundee","type":"address"}],"internalType":"struct IUniswapV3Staker.IncentiveKey","name":"key","type":"tuple"}],"name":"endIncentive","outputs":[{"internalType":"uint256","name":"refund","type":"uint256"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"contract IUniswapV3Factory","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"refundee","type":"address"}],"internalType":"struct IUniswapV3Staker.IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"getRewardInfo","outputs":[{"internalType":"uint256","name":"reward","type":"uint256"},{"internalType":"uint160","name":"secondsInsideX128","type":"uint160"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes32","name":"","type":"bytes32"}],"name":"incentives","outputs":[{"internalType":"uint256","name":"totalRewardUnclaimed","type":"uint256"},{"internalType":"uint160","name":"totalSecondsClaimedX128","type":"uint160"},{"internalType":"uint96","name":"numberOfStakes","type":"uint96"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIncentiveDuration","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"maxIncentiveStartLeadTime","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"nonfungiblePositionManager","outputs":[{"internalType":"contract INonfungiblePositionManager","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"","type":"address"},{"internalType":"address","name":"from","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"onERC721Received","outputs":[{"internalType":"bytes4","name":"","type":"bytes4"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"contract IERC20Minimal","name":"","type":"address"},{"internalType":"address","name":"","type":"address"}],"name":"rewards","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"refundee","type":"address"}],"internalType":"struct IUniswapV3Staker.IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"stakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"bytes32","name":"incentiveId","type":"bytes32"}],"name":"stakes","outputs":[{"internalType":"uint160","name":"secondsPerLiquidityInsideInitialX128","type":"uint160"},{"internalType":"uint128","name":"liquidity","type":"uint128"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"}],"name":"transferDeposit","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"contract IERC20Minimal","name":"rewardToken","type":"address"},{"internalType":"contract IUniswapV3Pool","name":"pool","type":"address"},{"internalType":"uint256","name":"startTime","type":"uint256"},{"internalType":"uint256","name":"endTime","type":"uint256"},{"internalType":"address","name":"refundee","type":"address"}],"internalType":"struct IUniswapV3Staker.IncentiveKey","name":"key","type":"tuple"},{"internalType":"uint256","name":"tokenId","type":"uint256"}],"name":"unstakeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"address","name":"to","type":"address"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"withdrawToken","outputs":[],"stateMutability":"nonpayable","type":"function"}]}'),ge=JSON.parse('{"Mt":[{"inputs":[{"internalType":"address","name":"_factory","type":"address"},{"internalType":"address","name":"_WETH9","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"inputs":[],"name":"WETH9","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct ISwapRouter.ExactInputParams","name":"params","type":"tuple"}],"name":"exactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct ISwapRouter.ExactInputSingleParams","name":"params","type":"tuple"}],"name":"exactInputSingle","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"}],"internalType":"struct ISwapRouter.ExactOutputParams","name":"params","type":"tuple"}],"name":"exactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct ISwapRouter.ExactOutputSingleParams","name":"params","type":"tuple"}],"name":"exactOutputSingle","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"factory","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"sweepTokenWithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"_data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"unwrapWETH9WithFee","outputs":[],"stateMutability":"payable","type":"function"},{"stateMutability":"payable","type":"receive"}]}');function be(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function we(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){be(o,r,i,a,s,"next",e)}function s(e){be(o,r,i,a,s,"throw",e)}a(void 0)}))}}function xe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Ae(e,t,n){return t&&xe(e.prototype,t),n&&xe(e,n),e}function ke(){return ke=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ke.apply(this,arguments)}function Ee(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Te(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"===typeof e)return Ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Ee(e,t):void 0}}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0;return function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}return(n=e[Symbol.iterator]()).next.bind(n)}var _e,Se,Ce,Ie,Oe=(_e=function(e){var t=function(e){var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(P){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof y?t:y,o=Object.create(i.prototype),a=new C(r||[]);return o._invoke=function(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:d,u.arg===m)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}e.wrap=c;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",m={};function y(){}function v(){}function g(){}var b={};b[o]=function(){return this};var w=Object.getPrototypeOf,x=w&&w(w(I([])));x&&x!==n&&r.call(x,o)&&(b=x);var A=g.prototype=y.prototype=Object.create(b);function k(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function T(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,m;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:O}}function O(){return{value:t,done:!0}}return v.prototype=A.constructor=g,g.constructor=v,v.displayName=u(g,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===v||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,u(e,s,"GeneratorFunction")),e.prototype=Object.create(A),e},e.awrap=function(e){return{__await:e}},k(E.prototype),E.prototype[a]=function(){return this},e.AsyncIterator=E,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new E(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},k(A),u(A,s,"Generator"),A[o]=function(){return this},A.toString=function(){return"[object Generator]"},e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:I(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}(e.exports);try{regeneratorRuntime=t}catch(n){Function("r","regeneratorRuntime = r")(t)}},_e(Se={exports:{}},Se.exports),Se.exports),Pe="0x1F98431c8aD98523631AE4a59f267346ea31F984",Re="0x0000000000000000000000000000000000000000",Me="0xe34f199b19b2b4f47f68442619d555527d244f78a3297ea89325f843f87b8b54";!function(e){e[e.LOWEST=100]="LOWEST",e[e.LOW=500]="LOW",e[e.MEDIUM=3e3]="MEDIUM",e[e.HIGH=1e4]="HIGH"}(Ie||(Ie={}));var Be=((Ce={})[Ie.LOWEST]=1,Ce[Ie.LOW]=10,Ce[Ie.MEDIUM]=60,Ce[Ie.HIGH]=200,Ce),Ne=o().BigInt(-1),Fe=o().BigInt(0),De=o().BigInt(1),Le=o().exponentiate(o().BigInt(2),o().BigInt(96)),ze=o().exponentiate(Le,o().BigInt(2));function je(e){var t=e.factoryAddress,n=e.tokenA,r=e.tokenB,i=e.fee,o=e.initCodeHashManualOverride,a=n.sortsBefore(r)?[n,r]:[r,n],s=a[0],u=a[1];return(0,p.getCreate2Address)(t,(0,le.keccak256)(["bytes"],[ue.$.encode(["address","address","uint24"],[s.address,u.address,i])]),null!=o?o:Me)}var Ue=function(){function e(){}return e.addDelta=function(e,t){return o().lessThan(t,Fe)?o().subtract(e,o().multiply(t,Ne)):o().add(e,t)},e}(),Ze=function(){function e(){}return e.mulDivRoundingUp=function(e,t,n){var r=o().multiply(e,t),i=o().divide(r,n);return o().notEqual(o().remainder(r,n),Fe)&&(i=o().add(i,De)),i},e}(),qe=o().subtract(o().exponentiate(o().BigInt(2),o().BigInt(160)),De);function He(e,t){var n=o().multiply(e,t);return o().bitwiseAnd(n,L)}var Ve=function(){function e(){}return e.getAmount0Delta=function(e,t,n,r){if(o().greaterThan(e,t)){var i=[t,e];e=i[0],t=i[1]}var a=o().leftShift(n,o().BigInt(96)),s=o().subtract(t,e);return r?Ze.mulDivRoundingUp(Ze.mulDivRoundingUp(a,s,t),De,e):o().divide(o().divide(o().multiply(a,s),t),e)},e.getAmount1Delta=function(e,t,n,r){if(o().greaterThan(e,t)){var i=[t,e];e=i[0],t=i[1]}return r?Ze.mulDivRoundingUp(n,o().subtract(t,e),Le):o().divide(o().multiply(n,o().subtract(t,e)),Le)},e.getNextSqrtPriceFromInput=function(e,t,n,r){return o().greaterThan(e,Fe)||(0,a.Z)(!1),o().greaterThan(t,Fe)||(0,a.Z)(!1),r?this.getNextSqrtPriceFromAmount0RoundingUp(e,t,n,!0):this.getNextSqrtPriceFromAmount1RoundingDown(e,t,n,!0)},e.getNextSqrtPriceFromOutput=function(e,t,n,r){return o().greaterThan(e,Fe)||(0,a.Z)(!1),o().greaterThan(t,Fe)||(0,a.Z)(!1),r?this.getNextSqrtPriceFromAmount1RoundingDown(e,t,n,!1):this.getNextSqrtPriceFromAmount0RoundingUp(e,t,n,!1)},e.getNextSqrtPriceFromAmount0RoundingUp=function(e,t,n,r){if(o().equal(n,Fe))return e;var i=o().leftShift(t,o().BigInt(96));if(r){var s=He(n,e);if(o().equal(o().divide(s,n),e)){var u=function(e,t){var n=o().add(e,t);return o().bitwiseAnd(n,L)}(i,s);if(o().greaterThanOrEqual(u,i))return Ze.mulDivRoundingUp(i,e,u)}return Ze.mulDivRoundingUp(i,De,o().add(o().divide(i,e),n))}var c=He(n,e);o().equal(o().divide(c,n),e)||(0,a.Z)(!1),o().greaterThan(i,c)||(0,a.Z)(!1);var l=o().subtract(i,c);return Ze.mulDivRoundingUp(i,e,l)},e.getNextSqrtPriceFromAmount1RoundingDown=function(e,t,n,r){if(r){var i=o().lessThanOrEqual(n,qe)?o().divide(o().leftShift(n,o().BigInt(96)),t):o().divide(o().multiply(n,Le),t);return o().add(e,i)}var s=Ze.mulDivRoundingUp(n,Le,t);return o().greaterThan(e,s)||(0,a.Z)(!1),o().subtract(e,s)},e}(),Ge=o().exponentiate(o().BigInt(10),o().BigInt(6)),We=function(){function e(){}return e.computeSwapStep=function(e,t,n,r,i){var a={},s=o().greaterThanOrEqual(e,t),u=o().greaterThanOrEqual(r,Fe);if(u){var c=o().divide(o().multiply(r,o().subtract(Ge,o().BigInt(i))),Ge);a.amountIn=s?Ve.getAmount0Delta(t,e,n,!0):Ve.getAmount1Delta(e,t,n,!0),o().greaterThanOrEqual(c,a.amountIn)?a.sqrtRatioNextX96=t:a.sqrtRatioNextX96=Ve.getNextSqrtPriceFromInput(e,n,c,s)}else a.amountOut=s?Ve.getAmount1Delta(t,e,n,!1):Ve.getAmount0Delta(e,t,n,!1),o().greaterThanOrEqual(o().multiply(r,Ne),a.amountOut)?a.sqrtRatioNextX96=t:a.sqrtRatioNextX96=Ve.getNextSqrtPriceFromOutput(e,n,o().multiply(r,Ne),s);var l=o().equal(t,a.sqrtRatioNextX96);return s?(a.amountIn=l&&u?a.amountIn:Ve.getAmount0Delta(a.sqrtRatioNextX96,e,n,!0),a.amountOut=l&&!u?a.amountOut:Ve.getAmount1Delta(a.sqrtRatioNextX96,e,n,!1)):(a.amountIn=l&&u?a.amountIn:Ve.getAmount1Delta(e,a.sqrtRatioNextX96,n,!0),a.amountOut=l&&!u?a.amountOut:Ve.getAmount0Delta(e,a.sqrtRatioNextX96,n,!1)),!u&&o().greaterThan(a.amountOut,o().multiply(r,Ne))&&(a.amountOut=o().multiply(r,Ne)),u&&o().notEqual(a.sqrtRatioNextX96,t)?a.feeAmount=o().subtract(r,a.amountIn):a.feeAmount=Ze.mulDivRoundingUp(a.amountIn,o().BigInt(i),o().subtract(Ge,o().BigInt(i))),[a.sqrtRatioNextX96,a.amountIn,a.amountOut,a.feeAmount]},e}(),Ke=o().BigInt(2),Je=[128,64,32,16,8,4,2,1].map((function(e){return[e,o().exponentiate(Ke,o().BigInt(e))]}));function Xe(e){o().greaterThan(e,Fe)||(0,a.Z)(!1),o().lessThanOrEqual(e,L)||(0,a.Z)(!1);for(var t,n=0,r=Te(Je);!(t=r()).done;){var i=t.value,s=i[0],u=i[1];o().greaterThanOrEqual(e,u)&&(e=o().signedRightShift(e,o().BigInt(s)),n+=s)}return n}function Ye(e,t){return o().signedRightShift(o().multiply(e,o().BigInt(t)),o().BigInt(128))}var $e=o().exponentiate(o().BigInt(2),o().BigInt(32)),Qe=function(){function e(){}return e.getSqrtRatioAtTick=function(t){t>=e.MIN_TICK&&t<=e.MAX_TICK&&Number.isInteger(t)||(0,a.Z)(!1);var n=t<0?-1*t:t,r=0!=(1&n)?o().BigInt("0xfffcb933bd6fad37aa2d162d1a594001"):o().BigInt("0x100000000000000000000000000000000");return 0!=(2&n)&&(r=Ye(r,"0xfff97272373d413259a46990580e213a")),0!=(4&n)&&(r=Ye(r,"0xfff2e50f5f656932ef12357cf3c7fdcc")),0!=(8&n)&&(r=Ye(r,"0xffe5caca7e10e4e61c3624eaa0941cd0")),0!=(16&n)&&(r=Ye(r,"0xffcb9843d60f6159c9db58835c926644")),0!=(32&n)&&(r=Ye(r,"0xff973b41fa98c081472e6896dfb254c0")),0!=(64&n)&&(r=Ye(r,"0xff2ea16466c96a3843ec78b326b52861")),0!=(128&n)&&(r=Ye(r,"0xfe5dee046a99a2a811c461f1969c3053")),0!=(256&n)&&(r=Ye(r,"0xfcbe86c7900a88aedcffc83b479aa3a4")),0!=(512&n)&&(r=Ye(r,"0xf987a7253ac413176f2b074cf7815e54")),0!=(1024&n)&&(r=Ye(r,"0xf3392b0822b70005940c7a398e4b70f3")),0!=(2048&n)&&(r=Ye(r,"0xe7159475a2c29b7443b29c7fa6e889d9")),0!=(4096&n)&&(r=Ye(r,"0xd097f3bdfd2022b8845ad8f792aa5825")),0!=(8192&n)&&(r=Ye(r,"0xa9f746462d870fdf8a65dc1f90e061e5")),0!=(16384&n)&&(r=Ye(r,"0x70d869a156d2a1b890bb3df62baf32f7")),0!=(32768&n)&&(r=Ye(r,"0x31be135f97d08fd981231505542fcfa6")),0!=(65536&n)&&(r=Ye(r,"0x9aa508b5b7a84e1c677de54f3e99bc9")),0!=(131072&n)&&(r=Ye(r,"0x5d6af8dedb81196699c329225ee604")),0!=(262144&n)&&(r=Ye(r,"0x2216e584f5fa1ea926041bedfe98")),0!=(524288&n)&&(r=Ye(r,"0x48a170391f7dc42444e8fa2")),t>0&&(r=o().divide(L,r)),o().greaterThan(o().remainder(r,$e),Fe)?o().add(o().divide(r,$e),De):o().divide(r,$e)},e.getTickAtSqrtRatio=function(t){o().greaterThanOrEqual(t,e.MIN_SQRT_RATIO)&&o().lessThan(t,e.MAX_SQRT_RATIO)||(0,a.Z)(!1);var n,r=o().leftShift(t,o().BigInt(32)),i=Xe(r);n=o().greaterThanOrEqual(o().BigInt(i),o().BigInt(128))?o().signedRightShift(r,o().BigInt(i-127)):o().leftShift(r,o().BigInt(127-i));for(var s=o().leftShift(o().subtract(o().BigInt(i),o().BigInt(128)),o().BigInt(64)),u=0;u<14;u++){n=o().signedRightShift(o().multiply(n,n),o().BigInt(127));var c=o().signedRightShift(n,o().BigInt(128));s=o().bitwiseOr(s,o().leftShift(c,o().BigInt(63-u))),n=o().signedRightShift(n,c)}var l=o().multiply(s,o().BigInt("255738958999603826347141")),f=o().toNumber(o().signedRightShift(o().subtract(l,o().BigInt("3402992956809132418596140100660247210")),o().BigInt(128))),d=o().toNumber(o().signedRightShift(o().add(l,o().BigInt("291339464771989622907027621153398088495")),o().BigInt(128)));return f===d?f:o().lessThanOrEqual(e.getSqrtRatioAtTick(d),t)?d:f},e}();Qe.MIN_TICK=-887272,Qe.MAX_TICK=-Qe.MIN_TICK,Qe.MIN_SQRT_RATIO=o().BigInt("4295128739"),Qe.MAX_SQRT_RATIO=o().BigInt("1461446703485210103287273052203988822378723970342");var et=function(){function e(){}var t=e.prototype;return t.getTick=function(){var t=we(Oe.mark((function t(n){return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error(e.ERROR_MESSAGE);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),t.nextInitializedTickWithinOneWord=function(){var t=we(Oe.mark((function t(n,r,i){return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:throw new Error(e.ERROR_MESSAGE);case 1:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),e}();function tt(e,t){for(var n=0;n<e.length-1;n++)if(t(e[n],e[n+1])>0)return!1;return!0}function nt(e,t){return e.index-t.index}et.ERROR_MESSAGE="No tick data provider was given";var rt=function(){function e(){}return e.validateList=function(e,t){t>0||(0,a.Z)(!1),e.every((function(e){return e.index%t===0}))||(0,a.Z)(!1),o().equal(e.reduce((function(e,t){var n=t.liquidityNet;return o().add(e,n)}),Fe),Fe)||(0,a.Z)(!1),tt(e,nt)||(0,a.Z)(!1)},e.isBelowSmallest=function(e,t){return e.length>0||(0,a.Z)(!1),t<e[0].index},e.isAtOrAboveLargest=function(e,t){return e.length>0||(0,a.Z)(!1),t>=e[e.length-1].index},e.getTick=function(e,t){var n=e[this.binarySearch(e,t)];return n.index!==t&&(0,a.Z)(!1),n},e.binarySearch=function(e,t){this.isBelowSmallest(e,t)&&(0,a.Z)(!1);for(var n,r=0,i=e.length-1;;){if(e[n=Math.floor((r+i)/2)].index<=t&&(n===e.length-1||e[n+1].index>t))return n;e[n].index<t?r=n+1:i=n-1}},e.nextInitializedTick=function(t,n,r){return r?(e.isBelowSmallest(t,n)&&(0,a.Z)(!1),e.isAtOrAboveLargest(t,n)?t[t.length-1]:t[this.binarySearch(t,n)]):(this.isAtOrAboveLargest(t,n)&&(0,a.Z)(!1),this.isBelowSmallest(t,n)?t[0]:t[this.binarySearch(t,n)+1])},e.nextInitializedTickWithinOneWord=function(t,n,r,i){var o=Math.floor(n/i);if(r){var a=(o>>8<<8)*i;if(e.isBelowSmallest(t,n))return[a,!1];var s=e.nextInitializedTick(t,n,r).index,u=Math.max(a,s);return[u,u===s]}var c=(((o+1>>8)+1<<8)-1)*i;if(this.isAtOrAboveLargest(t,n))return[c,!1];var l=this.nextInitializedTick(t,n,r).index,f=Math.min(c,l);return[f,f===l]},e}();function it(e){var t=o().BigInt(e).toString(16);return t.length%2!==0&&(t="0"+t),"0x"+t}function ot(e,t){var n=e.input.wrapped,r=e.pools.reduce((function(e,t,n){var r=e.inputToken,i=e.path,o=e.types,a=t.token0.equals(r)?t.token1:t.token0;return 0===n?{inputToken:a,types:["address","uint24","address"],path:[r.address,t.fee,a.address]}:{inputToken:a,types:[].concat(o,["uint24","address"]),path:[].concat(i,[t.fee,a.address])}}),{inputToken:n,path:[],types:[]}),i=r.path,o=r.types;return t?(0,le.pack)(o.reverse(),i.reverse()):(0,le.pack)(o,i)}function at(e,t){var n=o().leftShift(o().BigInt(e),o().BigInt(192)),r=o().BigInt(t);return function(e){if(o().greaterThanOrEqual(e,oe)||(0,a.Z)(!1),o().lessThan(e,ie))return o().BigInt(Math.floor(Math.sqrt(o().toNumber(e))));var t,n;for(t=e,n=o().add(o().divide(e,se),ae);o().lessThan(n,t);)t=n,n=o().divide(o().add(o().divide(e,n),n),se);return t}(o().divide(n,r))}function st(e,t,n){if(o().greaterThan(e,t)){var r=[t,e];e=r[0],t=r[1]}var i=o().divide(o().multiply(e,t),Le);return o().divide(o().multiply(o().BigInt(n),i),o().subtract(t,e))}function ut(e,t,n){if(o().greaterThan(e,t)){var r=[t,e];e=r[0],t=r[1]}var i=o().multiply(o().multiply(o().BigInt(n),e),t),a=o().multiply(Le,o().subtract(t,e));return o().divide(i,a)}function ct(e,t,n){if(o().greaterThan(e,t)){var r=[t,e];e=r[0],t=r[1]}return o().divide(o().multiply(o().BigInt(n),Le),o().subtract(t,e))}function lt(e,t,n,r,i,a){if(o().greaterThan(t,n)){var s=[n,t];t=s[0],n=s[1]}var u=a?ut:st;if(o().lessThanOrEqual(e,t))return u(t,n,r);if(o().lessThan(e,n)){var c=u(e,n,r),l=ct(t,e,i);return o().lessThan(c,l)?c:l}return ct(t,n,i)}function ft(e,t){Number.isInteger(e)&&Number.isInteger(t)||(0,a.Z)(!1),t>0||(0,a.Z)(!1),e>=Qe.MIN_TICK&&e<=Qe.MAX_TICK||(0,a.Z)(!1);var n=Math.round(e/t)*t;return n<Qe.MIN_TICK?n+t:n>Qe.MAX_TICK?n-t:n}var dt=o().exponentiate(o().BigInt(2),o().BigInt(128)),pt=function(){function e(){}return e.getTokensOwed=function(e,t,n,r,i){return[o().divide(o().multiply(vt(r,e),n),dt),o().divide(o().multiply(vt(i,t),n),dt)]},e}();function ht(e,t,n){var r=Qe.getSqrtRatioAtTick(n),i=o().multiply(r,r);return e.sortsBefore(t)?new J(e,t,ze,i):new J(e,t,i,ze)}function mt(e){var t=e.baseCurrency.sortsBefore(e.quoteCurrency),n=t?at(e.numerator,e.denominator):at(e.denominator,e.numerator),r=Qe.getTickAtSqrtRatio(n),i=ht(e.baseCurrency,e.quoteCurrency,r+1);return t?e.lessThan(i)||r++:e.greaterThan(i)||r++,r}var yt=o().exponentiate(o().BigInt(2),o().BigInt(256));function vt(e,t){var n=o().subtract(e,t);return o().lessThan(n,Fe)?o().add(yt,n):n}var gt=function(){function e(){}return e.getFeeGrowthInside=function(e,t,n,r,i,o,a){var s,u,c,l;return i>=n?(s=e.feeGrowthOutside0X128,u=e.feeGrowthOutside1X128):(s=vt(o,e.feeGrowthOutside0X128),u=vt(a,e.feeGrowthOutside1X128)),i<r?(c=t.feeGrowthOutside0X128,l=t.feeGrowthOutside1X128):(c=vt(o,t.feeGrowthOutside0X128),l=vt(a,t.feeGrowthOutside1X128)),[vt(vt(o,s),c),vt(vt(a,u),l)]},e}(),bt=function(e){var t=e.index,n=e.liquidityGross,r=e.liquidityNet;t>=Qe.MIN_TICK&&t<=Qe.MAX_TICK||(0,a.Z)(!1),this.index=t,this.liquidityGross=o().BigInt(n),this.liquidityNet=o().BigInt(r)},wt=function(){function e(e,t){var n=e.map((function(e){return e instanceof bt?e:new bt(e)}));rt.validateList(n,t),this.ticks=n}var t=e.prototype;return t.getTick=function(){var e=we(Oe.mark((function e(t){return Oe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rt.getTick(this.ticks,t));case 1:case"end":return e.stop()}}),e,this)})));return function(t){return e.apply(this,arguments)}}(),t.nextInitializedTickWithinOneWord=function(){var e=we(Oe.mark((function e(t,n,r){return Oe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",rt.nextInitializedTickWithinOneWord(this.ticks,t,n,r));case 1:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),e}(),xt=new et,At=function(){function e(e,t,n,r,i,s,u){void 0===u&&(u=xt),Number.isInteger(n)&&n<1e6||(0,a.Z)(!1);var c=Qe.getSqrtRatioAtTick(s),l=Qe.getSqrtRatioAtTick(s+1);o().greaterThanOrEqual(o().BigInt(r),c)&&o().lessThanOrEqual(o().BigInt(r),l)||(0,a.Z)(!1);var f=e.sortsBefore(t)?[e,t]:[t,e];this.token0=f[0],this.token1=f[1],this.fee=n,this.sqrtRatioX96=o().BigInt(r),this.liquidity=o().BigInt(i),this.tickCurrent=s,this.tickDataProvider=Array.isArray(u)?new wt(u,Be[n]):u}e.getAddress=function(e,t,n,r,i){return je({factoryAddress:null!=i?i:Pe,fee:n,tokenA:e,tokenB:t,initCodeHashManualOverride:r})};var t=e.prototype;return t.involvesToken=function(e){return e.equals(this.token0)||e.equals(this.token1)},t.priceOf=function(e){return this.involvesToken(e)||(0,a.Z)(!1),e.equals(this.token0)?this.token0Price:this.token1Price},t.getOutputAmount=function(){var t=we(Oe.mark((function t(n,r){var i,s,u,c,l,f,d;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.involvesToken(n.currency)||(0,a.Z)(!1),i=n.currency.equals(this.token0),t.next=4,this.swap(i,n.quotient,r);case 4:return s=t.sent,u=s.amountCalculated,c=s.sqrtRatioX96,l=s.liquidity,f=s.tickCurrent,d=i?this.token1:this.token0,t.abrupt("return",[V.fromRawAmount(d,o().multiply(u,Ne)),new e(this.token0,this.token1,this.fee,c,l,f,this.tickDataProvider)]);case 11:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),t.getInputAmount=function(){var t=we(Oe.mark((function t(n,r){var i,s,u,c,l,f,d;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n.currency.isToken&&this.involvesToken(n.currency)||(0,a.Z)(!1),i=n.currency.equals(this.token1),t.next=4,this.swap(i,o().multiply(n.quotient,Ne),r);case 4:return s=t.sent,u=s.amountCalculated,c=s.sqrtRatioX96,l=s.liquidity,f=s.tickCurrent,d=i?this.token0:this.token1,t.abrupt("return",[V.fromRawAmount(d,u),new e(this.token0,this.token1,this.fee,c,l,f,this.tickDataProvider)]);case 11:case"end":return t.stop()}}),t,this)})));return function(e,n){return t.apply(this,arguments)}}(),t.swap=function(){var e=we(Oe.mark((function e(t,n,r){var i,s,u,c,l,f;return Oe.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r||(r=t?o().add(Qe.MIN_SQRT_RATIO,De):o().subtract(Qe.MAX_SQRT_RATIO,De)),t?(o().greaterThan(r,Qe.MIN_SQRT_RATIO)||(0,a.Z)(!1),o().lessThan(r,this.sqrtRatioX96)||(0,a.Z)(!1)):(o().lessThan(r,Qe.MAX_SQRT_RATIO)||(0,a.Z)(!1),o().greaterThan(r,this.sqrtRatioX96)||(0,a.Z)(!1)),i=o().greaterThanOrEqual(n,Fe),s={amountSpecifiedRemaining:n,amountCalculated:Fe,sqrtPriceX96:this.sqrtRatioX96,tick:this.tickCurrent,liquidity:this.liquidity};case 4:if(!o().notEqual(s.amountSpecifiedRemaining,Fe)||s.sqrtPriceX96==r){e.next=35;break}return(u={}).sqrtPriceStartX96=s.sqrtPriceX96,e.next=9,this.tickDataProvider.nextInitializedTickWithinOneWord(s.tick,t,this.tickSpacing);case 9:if(c=e.sent,u.tickNext=c[0],u.initialized=c[1],u.tickNext<Qe.MIN_TICK?u.tickNext=Qe.MIN_TICK:u.tickNext>Qe.MAX_TICK&&(u.tickNext=Qe.MAX_TICK),u.sqrtPriceNextX96=Qe.getSqrtRatioAtTick(u.tickNext),l=We.computeSwapStep(s.sqrtPriceX96,(t?o().lessThan(u.sqrtPriceNextX96,r):o().greaterThan(u.sqrtPriceNextX96,r))?r:u.sqrtPriceNextX96,s.liquidity,s.amountSpecifiedRemaining,this.fee),s.sqrtPriceX96=l[0],u.amountIn=l[1],u.amountOut=l[2],u.feeAmount=l[3],i?(s.amountSpecifiedRemaining=o().subtract(s.amountSpecifiedRemaining,o().add(u.amountIn,u.feeAmount)),s.amountCalculated=o().subtract(s.amountCalculated,u.amountOut)):(s.amountSpecifiedRemaining=o().add(s.amountSpecifiedRemaining,u.amountOut),s.amountCalculated=o().add(s.amountCalculated,o().add(u.amountIn,u.feeAmount))),!o().equal(s.sqrtPriceX96,u.sqrtPriceNextX96)){e.next=32;break}if(!u.initialized){e.next=29;break}return e.t0=o(),e.next=25,this.tickDataProvider.getTick(u.tickNext);case 25:e.t1=e.sent.liquidityNet,f=e.t0.BigInt.call(e.t0,e.t1),t&&(f=o().multiply(f,Ne)),s.liquidity=Ue.addDelta(s.liquidity,f);case 29:s.tick=t?u.tickNext-1:u.tickNext,e.next=33;break;case 32:o().notEqual(s.sqrtPriceX96,u.sqrtPriceStartX96)&&(s.tick=Qe.getTickAtSqrtRatio(s.sqrtPriceX96));case 33:e.next=4;break;case 35:return e.abrupt("return",{amountCalculated:s.amountCalculated,sqrtRatioX96:s.sqrtPriceX96,liquidity:s.liquidity,tickCurrent:s.tick});case 36:case"end":return e.stop()}}),e,this)})));return function(t,n,r){return e.apply(this,arguments)}}(),Ae(e,[{key:"token0Price",get:function(){var e;return null!=(e=this._token0Price)?e:this._token0Price=new J(this.token0,this.token1,ze,o().multiply(this.sqrtRatioX96,this.sqrtRatioX96))}},{key:"token1Price",get:function(){var e;return null!=(e=this._token1Price)?e:this._token1Price=new J(this.token1,this.token0,o().multiply(this.sqrtRatioX96,this.sqrtRatioX96),ze)}},{key:"chainId",get:function(){return this.token0.chainId}},{key:"tickSpacing",get:function(){return Be[this.fee]}}]),e}(),kt=function(){function e(e){var t=e.pool,n=e.liquidity,r=e.tickLower,i=e.tickUpper;this._token0Amount=null,this._token1Amount=null,this._mintAmounts=null,r<i||(0,a.Z)(!1),r>=Qe.MIN_TICK&&r%t.tickSpacing===0||(0,a.Z)(!1),i<=Qe.MAX_TICK&&i%t.tickSpacing===0||(0,a.Z)(!1),this.pool=t,this.tickLower=r,this.tickUpper=i,this.liquidity=o().BigInt(n)}var t=e.prototype;return t.ratiosAfterSlippage=function(e){var t=this.pool.token0Price.asFraction.multiply(new K(1).subtract(e)),n=this.pool.token0Price.asFraction.multiply(e.add(1)),r=at(t.numerator,t.denominator);o().lessThanOrEqual(r,Qe.MIN_SQRT_RATIO)&&(r=o().add(Qe.MIN_SQRT_RATIO,o().BigInt(1)));var i=at(n.numerator,n.denominator);return o().greaterThanOrEqual(i,Qe.MAX_SQRT_RATIO)&&(i=o().subtract(Qe.MAX_SQRT_RATIO,o().BigInt(1))),{sqrtRatioX96Lower:r,sqrtRatioX96Upper:i}},t.mintAmountsWithSlippage=function(t){var n=this.ratiosAfterSlippage(t),r=n.sqrtRatioX96Upper,i=n.sqrtRatioX96Lower,o=new At(this.pool.token0,this.pool.token1,this.pool.fee,i,0,Qe.getTickAtSqrtRatio(i)),a=new At(this.pool.token0,this.pool.token1,this.pool.fee,r,0,Qe.getTickAtSqrtRatio(r)),s=e.fromAmounts(ke({pool:this.pool,tickLower:this.tickLower,tickUpper:this.tickUpper},this.mintAmounts,{useFullPrecision:!1}));return{amount0:new e({pool:a,liquidity:s.liquidity,tickLower:this.tickLower,tickUpper:this.tickUpper}).mintAmounts.amount0,amount1:new e({pool:o,liquidity:s.liquidity,tickLower:this.tickLower,tickUpper:this.tickUpper}).mintAmounts.amount1}},t.burnAmountsWithSlippage=function(t){var n=this.ratiosAfterSlippage(t),r=n.sqrtRatioX96Upper,i=n.sqrtRatioX96Lower,o=new At(this.pool.token0,this.pool.token1,this.pool.fee,i,0,Qe.getTickAtSqrtRatio(i)),a=new e({pool:new At(this.pool.token0,this.pool.token1,this.pool.fee,r,0,Qe.getTickAtSqrtRatio(r)),liquidity:this.liquidity,tickLower:this.tickLower,tickUpper:this.tickUpper}).amount0,s=new e({pool:o,liquidity:this.liquidity,tickLower:this.tickLower,tickUpper:this.tickUpper}).amount1;return{amount0:a.quotient,amount1:s.quotient}},e.fromAmounts=function(t){var n=t.pool,r=t.tickLower,i=t.tickUpper,o=t.amount0,a=t.amount1,s=t.useFullPrecision,u=Qe.getSqrtRatioAtTick(r),c=Qe.getSqrtRatioAtTick(i);return new e({pool:n,tickLower:r,tickUpper:i,liquidity:lt(n.sqrtRatioX96,u,c,o,a,s)})},e.fromAmount0=function(t){var n=t.pool,r=t.tickLower,i=t.tickUpper,o=t.amount0,a=t.useFullPrecision;return e.fromAmounts({pool:n,tickLower:r,tickUpper:i,amount0:o,amount1:L,useFullPrecision:a})},e.fromAmount1=function(t){var n=t.pool,r=t.tickLower,i=t.tickUpper,o=t.amount1;return e.fromAmounts({pool:n,tickLower:r,tickUpper:i,amount0:L,amount1:o,useFullPrecision:!0})},Ae(e,[{key:"token0PriceLower",get:function(){return ht(this.pool.token0,this.pool.token1,this.tickLower)}},{key:"token0PriceUpper",get:function(){return ht(this.pool.token0,this.pool.token1,this.tickUpper)}},{key:"amount0",get:function(){return null===this._token0Amount&&(this.pool.tickCurrent<this.tickLower?this._token0Amount=V.fromRawAmount(this.pool.token0,Ve.getAmount0Delta(Qe.getSqrtRatioAtTick(this.tickLower),Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!1)):this.pool.tickCurrent<this.tickUpper?this._token0Amount=V.fromRawAmount(this.pool.token0,Ve.getAmount0Delta(this.pool.sqrtRatioX96,Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!1)):this._token0Amount=V.fromRawAmount(this.pool.token0,Fe)),this._token0Amount}},{key:"amount1",get:function(){return null===this._token1Amount&&(this.pool.tickCurrent<this.tickLower?this._token1Amount=V.fromRawAmount(this.pool.token1,Fe):this.pool.tickCurrent<this.tickUpper?this._token1Amount=V.fromRawAmount(this.pool.token1,Ve.getAmount1Delta(Qe.getSqrtRatioAtTick(this.tickLower),this.pool.sqrtRatioX96,this.liquidity,!1)):this._token1Amount=V.fromRawAmount(this.pool.token1,Ve.getAmount1Delta(Qe.getSqrtRatioAtTick(this.tickLower),Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!1))),this._token1Amount}},{key:"mintAmounts",get:function(){return null===this._mintAmounts?this.pool.tickCurrent<this.tickLower?{amount0:Ve.getAmount0Delta(Qe.getSqrtRatioAtTick(this.tickLower),Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!0),amount1:Fe}:this.pool.tickCurrent<this.tickUpper?{amount0:Ve.getAmount0Delta(this.pool.sqrtRatioX96,Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!0),amount1:Ve.getAmount1Delta(Qe.getSqrtRatioAtTick(this.tickLower),this.pool.sqrtRatioX96,this.liquidity,!0)}:{amount0:Fe,amount1:Ve.getAmount1Delta(Qe.getSqrtRatioAtTick(this.tickLower),Qe.getSqrtRatioAtTick(this.tickUpper),this.liquidity,!0)}:this._mintAmounts}}]),e}(),Et=function(){function e(e,t,n){this._midPrice=null,e.length>0||(0,a.Z)(!1);var r=e[0].chainId,i=e.every((function(e){return e.chainId===r}));i||(0,a.Z)(!1);var o=t.wrapped;e[0].involvesToken(o)||(0,a.Z)(!1),e[e.length-1].involvesToken(n.wrapped)||(0,a.Z)(!1);for(var s,u=[o],c=Te(e.entries());!(s=c()).done;){var l=s.value,f=l[0],d=l[1],p=u[f];p.equals(d.token0)||p.equals(d.token1)||(0,a.Z)(!1);var h=p.equals(d.token0)?d.token1:d.token0;u.push(h)}this.pools=e,this.tokenPath=u,this.input=t,this.output=null!=n?n:u[u.length-1]}return Ae(e,[{key:"chainId",get:function(){return this.pools[0].chainId}},{key:"midPrice",get:function(){if(null!==this._midPrice)return this._midPrice;var e=this.pools.slice(1).reduce((function(e,t){var n=e.nextInput,r=e.price;return n.equals(t.token0)?{nextInput:t.token1,price:r.multiply(t.token0Price)}:{nextInput:t.token0,price:r.multiply(t.token1Price)}}),this.pools[0].token0.equals(this.input.wrapped)?{nextInput:this.pools[0].token1,price:this.pools[0].token0Price}:{nextInput:this.pools[0].token0,price:this.pools[0].token1Price}).price;return this._midPrice=new J(this.input,this.output,e.denominator,e.numerator)}}]),e}();function Tt(e,t){return e.inputAmount.currency.equals(t.inputAmount.currency)||(0,a.Z)(!1),e.outputAmount.currency.equals(t.outputAmount.currency)||(0,a.Z)(!1),e.outputAmount.equalTo(t.outputAmount)?e.inputAmount.equalTo(t.inputAmount)?e.swaps.reduce((function(e,t){return e+t.route.tokenPath.length}),0)-t.swaps.reduce((function(e,t){return e+t.route.tokenPath.length}),0):e.inputAmount.lessThan(t.inputAmount)?-1:1:e.outputAmount.lessThan(t.outputAmount)?1:-1}var _t=function(){function e(e){var t=e.routes,n=e.tradeType,r=t[0].inputAmount.currency,i=t[0].outputAmount.currency;t.every((function(e){var t=e.route;return r.wrapped.equals(t.input.wrapped)}))||(0,a.Z)(!1),t.every((function(e){var t=e.route;return i.wrapped.equals(t.output.wrapped)}))||(0,a.Z)(!1);for(var o,s=t.map((function(e){return e.route.pools.length})).reduce((function(e,t){return e+t}),0),u=new Set,c=Te(t);!(o=c()).done;)for(var l,f=Te(o.value.route.pools);!(l=f()).done;){var d=l.value;u.add(At.getAddress(d.token0,d.token1,d.fee))}s!=u.size&&(0,a.Z)(!1),this.swaps=t,this.tradeType=n}e.exactIn=function(){var t=we(Oe.mark((function t(n,r){return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.fromRoute(n,r,S.EXACT_INPUT));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.exactOut=function(){var t=we(Oe.mark((function t(n,r){return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",e.fromRoute(n,r,S.EXACT_OUTPUT));case 1:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.fromRoute=function(){var t=we(Oe.mark((function t(n,r,i){var o,s,u,c,l,f,d,p,h,m,y;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=new Array(n.tokenPath.length),i!==S.EXACT_INPUT){t.next=19;break}r.currency.equals(n.input)||(0,a.Z)(!1),o[0]=r.wrapped,c=0;case 5:if(!(c<n.tokenPath.length-1)){t.next=15;break}return l=n.pools[c],t.next=9,l.getOutputAmount(o[c]);case 9:f=t.sent,d=f[0],o[c+1]=d;case 12:c++,t.next=5;break;case 15:s=V.fromFractionalAmount(n.input,r.numerator,r.denominator),u=V.fromFractionalAmount(n.output,o[o.length-1].numerator,o[o.length-1].denominator),t.next=34;break;case 19:r.currency.equals(n.output)||(0,a.Z)(!1),o[o.length-1]=r.wrapped,p=n.tokenPath.length-1;case 22:if(!(p>0)){t.next=32;break}return h=n.pools[p-1],t.next=26,h.getInputAmount(o[p]);case 26:m=t.sent,y=m[0],o[p-1]=y;case 29:p--,t.next=22;break;case 32:s=V.fromFractionalAmount(n.input,o[0].numerator,o[0].denominator),u=V.fromFractionalAmount(n.output,r.numerator,r.denominator);case 34:return t.abrupt("return",new e({routes:[{inputAmount:s,outputAmount:u,route:n}],tradeType:i}));case 35:case"end":return t.stop()}}),t)})));return function(e,n,r){return t.apply(this,arguments)}}(),e.fromRoutes=function(){var t=we(Oe.mark((function t(n,r){var i,o,s,u,c,l,f,d,p,h,m,y,v,g,b,w,x;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=[],o=Te(n);case 2:if((s=o()).done){t.next=43;break}if(u=s.value,c=u.route,l=u.amount,f=new Array(c.tokenPath.length),d=void 0,p=void 0,r!==S.EXACT_INPUT){t.next=25;break}l.currency.equals(c.input)||(0,a.Z)(!1),d=V.fromFractionalAmount(c.input,l.numerator,l.denominator),f[0]=V.fromFractionalAmount(c.input.wrapped,l.numerator,l.denominator),h=0;case 12:if(!(h<c.tokenPath.length-1)){t.next=22;break}return m=c.pools[h],t.next=16,m.getOutputAmount(f[h]);case 16:y=t.sent,v=y[0],f[h+1]=v;case 19:h++,t.next=12;break;case 22:p=V.fromFractionalAmount(c.output,f[f.length-1].numerator,f[f.length-1].denominator),t.next=40;break;case 25:l.currency.equals(c.output)||(0,a.Z)(!1),p=V.fromFractionalAmount(c.output,l.numerator,l.denominator),f[f.length-1]=V.fromFractionalAmount(c.output.wrapped,l.numerator,l.denominator),g=c.tokenPath.length-1;case 29:if(!(g>0)){t.next=39;break}return b=c.pools[g-1],t.next=33,b.getInputAmount(f[g]);case 33:w=t.sent,x=w[0],f[g-1]=x;case 36:g--,t.next=29;break;case 39:d=V.fromFractionalAmount(c.input,f[0].numerator,f[0].denominator);case 40:i.push({route:c,inputAmount:d,outputAmount:p});case 41:t.next=2;break;case 43:return t.abrupt("return",new e({routes:i,tradeType:r}));case 44:case"end":return t.stop()}}),t)})));return function(e,n){return t.apply(this,arguments)}}(),e.createUncheckedTrade=function(t){return new e(ke({},t,{routes:[{inputAmount:t.inputAmount,outputAmount:t.outputAmount,route:t.route}]}))},e.createUncheckedTradeWithMultipleRoutes=function(t){return new e(t)};var t=e.prototype;return t.minimumAmountOut=function(e,t){if(void 0===t&&(t=this.outputAmount),e.lessThan(Fe)&&(0,a.Z)(!1),this.tradeType===S.EXACT_OUTPUT)return t;var n=new q(De).add(e).invert().multiply(t.quotient).quotient;return V.fromRawAmount(t.currency,n)},t.maximumAmountIn=function(e,t){if(void 0===t&&(t=this.inputAmount),e.lessThan(Fe)&&(0,a.Z)(!1),this.tradeType===S.EXACT_INPUT)return t;var n=new q(De).add(e).multiply(t.quotient).quotient;return V.fromRawAmount(t.currency,n)},t.worstExecutionPrice=function(e){return new J(this.inputAmount.currency,this.outputAmount.currency,this.maximumAmountIn(e).quotient,this.minimumAmountOut(e).quotient)},e.bestTradeExactIn=function(){var t=we(Oe.mark((function t(n,r,i,o,s,u,c){var l,f,d,p,h,m,y,v,g,b,w,x;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f=(l=void 0===o?{}:o).maxNumResults,d=void 0===f?3:f,p=l.maxHops,h=void 0===p?3:p,void 0===s&&(s=[]),void 0===u&&(u=r),void 0===c&&(c=[]),n.length>0||(0,a.Z)(!1),h>0||(0,a.Z)(!1),r===u||s.length>0||(0,a.Z)(!1),m=u.wrapped,y=i.wrapped,v=0;case 10:if(!(v<n.length)){t.next=46;break}if((g=n[v]).token0.equals(m.currency)||g.token1.equals(m.currency)){t.next=14;break}return t.abrupt("continue",43);case 14:return b=void 0,t.prev=15,t.next=19,g.getOutputAmount(m);case 19:w=t.sent,b=w[0],t.next=28;break;case 23:if(t.prev=23,t.t0=t.catch(15),!t.t0.isInsufficientInputAmountError){t.next=27;break}return t.abrupt("continue",43);case 27:throw t.t0;case 28:if(!b.currency.isToken||!b.currency.equals(y)){t.next=39;break}return t.t1=re,t.t2=c,t.next=33,e.fromRoute(new Et([].concat(s,[g]),r.currency,i),r,S.EXACT_INPUT);case 33:t.t3=t.sent,t.t4=d,t.t5=Tt,(0,t.t1)(t.t2,t.t3,t.t4,t.t5),t.next=43;break;case 39:if(!(h>1&&n.length>1)){t.next=43;break}return x=n.slice(0,v).concat(n.slice(v+1,n.length)),t.next=43,e.bestTradeExactIn(x,r,i,{maxNumResults:d,maxHops:h-1},[].concat(s,[g]),b,c);case 43:v++,t.next=10;break;case 46:return t.abrupt("return",c);case 47:case"end":return t.stop()}}),t,null,[[15,23]])})));return function(e,n,r,i,o,a,s){return t.apply(this,arguments)}}(),e.bestTradeExactOut=function(){var t=we(Oe.mark((function t(n,r,i,o,s,u,c){var l,f,d,p,h,m,y,v,g,b,w,x;return Oe.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:f=(l=void 0===o?{}:o).maxNumResults,d=void 0===f?3:f,p=l.maxHops,h=void 0===p?3:p,void 0===s&&(s=[]),void 0===u&&(u=i),void 0===c&&(c=[]),n.length>0||(0,a.Z)(!1),h>0||(0,a.Z)(!1),i===u||s.length>0||(0,a.Z)(!1),m=u.wrapped,y=r.wrapped,v=0;case 10:if(!(v<n.length)){t.next=46;break}if((g=n[v]).token0.equals(m.currency)||g.token1.equals(m.currency)){t.next=14;break}return t.abrupt("continue",43);case 14:return b=void 0,t.prev=15,t.next=19,g.getInputAmount(m);case 19:w=t.sent,b=w[0],t.next=28;break;case 23:if(t.prev=23,t.t0=t.catch(15),!t.t0.isInsufficientReservesError){t.next=27;break}return t.abrupt("continue",43);case 27:throw t.t0;case 28:if(!b.currency.equals(y)){t.next=39;break}return t.t1=re,t.t2=c,t.next=33,e.fromRoute(new Et([g].concat(s),r,i.currency),i,S.EXACT_OUTPUT);case 33:t.t3=t.sent,t.t4=d,t.t5=Tt,(0,t.t1)(t.t2,t.t3,t.t4,t.t5),t.next=43;break;case 39:if(!(h>1&&n.length>1)){t.next=43;break}return x=n.slice(0,v).concat(n.slice(v+1,n.length)),t.next=43,e.bestTradeExactOut(x,r,i,{maxNumResults:d,maxHops:h-1},[g].concat(s),b,c);case 43:v++,t.next=10;break;case 46:return t.abrupt("return",c);case 47:case"end":return t.stop()}}),t,null,[[15,23]])})));return function(e,n,r,i,o,a,s){return t.apply(this,arguments)}}(),Ae(e,[{key:"route",get:function(){return 1!=this.swaps.length&&(0,a.Z)(!1),this.swaps[0].route}},{key:"inputAmount",get:function(){if(this._inputAmount)return this._inputAmount;var e=this.swaps[0].inputAmount.currency,t=this.swaps.map((function(e){return e.inputAmount})).reduce((function(e,t){return e.add(t)}),V.fromRawAmount(e,0));return this._inputAmount=t,this._inputAmount}},{key:"outputAmount",get:function(){if(this._outputAmount)return this._outputAmount;var e=this.swaps[0].outputAmount.currency,t=this.swaps.map((function(e){return e.outputAmount})).reduce((function(e,t){return e.add(t)}),V.fromRawAmount(e,0));return this._outputAmount=t,this._outputAmount}},{key:"executionPrice",get:function(){var e;return null!=(e=this._executionPrice)?e:this._executionPrice=new J(this.inputAmount.currency,this.outputAmount.currency,this.inputAmount.quotient,this.outputAmount.quotient)}},{key:"priceImpact",get:function(){if(this._priceImpact)return this._priceImpact;for(var e,t=V.fromRawAmount(this.outputAmount.currency,0),n=Te(this.swaps);!(e=n()).done;){var r=e.value,i=r.route,o=r.inputAmount,a=i.midPrice;t=t.add(a.quote(o))}var s=t.subtract(this.outputAmount).divide(t);return this._priceImpact=new K(s.numerator,s.denominator),this._priceImpact}}]),e}(),St=function(){function e(){}return e.encodeMulticall=function(t){return Array.isArray(t)||(t=[t]),1===t.length?t[0]:e.INTERFACE.encodeFunctionData("multicall",[t])},e}();St.INTERFACE=new ce.vU(fe.Mt);var Ct=function(){function e(){}return e.encodePermit=function(t,n){return"nonce"in n?e.INTERFACE.encodeFunctionData("selfPermitAllowed",[t.address,it(n.nonce),it(n.expiry),n.v,n.r,n.s]):e.INTERFACE.encodeFunctionData("selfPermit",[t.address,it(n.amount),it(n.deadline),n.v,n.r,n.s])},e}();Ct.INTERFACE=new ce.vU(pe.Mt);var It=function(){function e(){}return e.encodeFeeBips=function(e){return it(e.multiply(1e4).quotient)},e.encodeUnwrapWETH9=function(t,n,r){if(n=$(n),r){var i=this.encodeFeeBips(r.fee),o=$(r.recipient);return e.INTERFACE.encodeFunctionData("unwrapWETH9WithFee",[it(t),n,i,o])}return e.INTERFACE.encodeFunctionData("unwrapWETH9",[it(t),n])},e.encodeSweepToken=function(t,n,r,i){if(r=$(r),i){var o=this.encodeFeeBips(i.fee),a=$(i.recipient);return e.INTERFACE.encodeFunctionData("sweepTokenWithFee",[t.address,it(n),r,o,a])}return e.INTERFACE.encodeFunctionData("sweepToken",[t.address,it(n),r])},e.encodeRefundETH=function(){return e.INTERFACE.encodeFunctionData("refundETH")},e}();It.INTERFACE=new ce.vU(he.Mt);var Ot=it(o().subtract(o().exponentiate(o().BigInt(2),o().BigInt(128)),o().BigInt(1)));function Pt(e){return Object.keys(e).some((function(e){return"recipient"===e}))}var Rt=function(){function e(){}return e.encodeCreate=function(t){return e.INTERFACE.encodeFunctionData("createAndInitializePoolIfNecessary",[t.token0.address,t.token1.address,t.fee,it(t.sqrtRatioX96)])},e.createCallParameters=function(e){return{calldata:this.encodeCreate(e),value:it(0)}},e.addCallParameters=function(t,n){o().greaterThan(t.liquidity,Fe)||(0,a.Z)(!1);var r=[],i=t.mintAmounts,s=i.amount0,u=i.amount1,c=t.mintAmountsWithSlippage(n.slippageTolerance),l=it(c.amount0),f=it(c.amount1),d=it(n.deadline);if(Pt(n)&&n.createPool&&r.push(this.encodeCreate(t.pool)),n.token0Permit&&r.push(Ct.encodePermit(t.pool.token0,n.token0Permit)),n.token1Permit&&r.push(Ct.encodePermit(t.pool.token1,n.token1Permit)),Pt(n)){var p=$(n.recipient);r.push(e.INTERFACE.encodeFunctionData("mint",[{token0:t.pool.token0.address,token1:t.pool.token1.address,fee:t.pool.fee,tickLower:t.tickLower,tickUpper:t.tickUpper,amount0Desired:it(s),amount1Desired:it(u),amount0Min:l,amount1Min:f,recipient:p,deadline:d}]))}else r.push(e.INTERFACE.encodeFunctionData("increaseLiquidity",[{tokenId:it(n.tokenId),amount0Desired:it(s),amount1Desired:it(u),amount0Min:l,amount1Min:f,deadline:d}]));var h=it(0);if(n.useNative){var m=n.useNative.wrapped;t.pool.token0.equals(m)||t.pool.token1.equals(m)||(0,a.Z)(!1);var y=t.pool.token0.equals(m)?s:u;o().greaterThan(y,Fe)&&r.push(It.encodeRefundETH()),h=it(y)}return{calldata:St.encodeMulticall(r),value:h}},e.encodeCollect=function(t){var n=[],r=it(t.tokenId),i=t.expectedCurrencyOwed0.currency.isNative||t.expectedCurrencyOwed1.currency.isNative,o=$(t.recipient);if(n.push(e.INTERFACE.encodeFunctionData("collect",[{tokenId:r,recipient:i?Re:o,amount0Max:Ot,amount1Max:Ot}])),i){var a=t.expectedCurrencyOwed0.currency.isNative?t.expectedCurrencyOwed0.quotient:t.expectedCurrencyOwed1.quotient,s=t.expectedCurrencyOwed0.currency.isNative?t.expectedCurrencyOwed1.currency:t.expectedCurrencyOwed0.currency,u=t.expectedCurrencyOwed0.currency.isNative?t.expectedCurrencyOwed1.quotient:t.expectedCurrencyOwed0.quotient;n.push(It.encodeUnwrapWETH9(a,o)),n.push(It.encodeSweepToken(s,u,o))}return n},e.collectCallParameters=function(t){var n=e.encodeCollect(t);return{calldata:St.encodeMulticall(n),value:it(0)}},e.removeCallParameters=function(t,n){var r=[],i=it(n.deadline),s=it(n.tokenId),u=new kt({pool:t.pool,liquidity:n.liquidityPercentage.multiply(t.liquidity).quotient,tickLower:t.tickLower,tickUpper:t.tickUpper});o().greaterThan(u.liquidity,Fe)||(0,a.Z)(!1);var c=u.burnAmountsWithSlippage(n.slippageTolerance),l=c.amount0,f=c.amount1;n.permit&&r.push(e.INTERFACE.encodeFunctionData("permit",[$(n.permit.spender),s,it(n.permit.deadline),n.permit.v,n.permit.r,n.permit.s])),r.push(e.INTERFACE.encodeFunctionData("decreaseLiquidity",[{tokenId:s,liquidity:it(u.liquidity),amount0Min:it(l),amount1Min:it(f),deadline:i}]));var d=n.collectOptions,p=d.expectedCurrencyOwed0,h=d.expectedCurrencyOwed1,m=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(d,["expectedCurrencyOwed0","expectedCurrencyOwed1"]);return r.push.apply(r,e.encodeCollect(ke({tokenId:it(n.tokenId),expectedCurrencyOwed0:p.add(V.fromRawAmount(p.currency,l)),expectedCurrencyOwed1:h.add(V.fromRawAmount(h.currency,f))},m))),n.liquidityPercentage.equalTo(De)?n.burnToken&&r.push(e.INTERFACE.encodeFunctionData("burn",[s])):!0===n.burnToken&&(0,a.Z)(!1),{calldata:St.encodeMulticall(r),value:it(0)}},e.safeTransferFromParameters=function(t){var n=$(t.recipient),r=$(t.sender);return{calldata:t.data?e.INTERFACE.encodeFunctionData("safeTransferFrom(address,address,uint256,bytes)",[r,n,it(t.tokenId),t.data]):e.INTERFACE.encodeFunctionData("safeTransferFrom(address,address,uint256)",[r,n,it(t.tokenId)]),value:it(0)}},e}();Rt.INTERFACE=new ce.vU(de.Mt);var Mt=function(){function e(){}return e.quoteCallParameters=function(e,t,n,r){void 0===r&&(r={});var i,o=1===e.pools.length,s=it(t.quotient),u=r.useQuoterV2?this.V2INTERFACE:this.V1INTERFACE;if(o){var c,l,f={tokenIn:e.tokenPath[0].address,tokenOut:e.tokenPath[1].address,fee:e.pools[0].fee,sqrtPriceLimitX96:it(null!=(c=null==(l=r)?void 0:l.sqrtPriceLimitX96)?c:0)},d=ke({},f,n==S.EXACT_INPUT?{amountIn:s}:{amount:s}),p=[f.tokenIn,f.tokenOut,f.fee,s,f.sqrtPriceLimitX96],h=n===S.EXACT_INPUT?"quoteExactInputSingle":"quoteExactOutputSingle";i=u.encodeFunctionData(h,r.useQuoterV2?[d]:p)}else{var m;void 0!==(null==(m=r)?void 0:m.sqrtPriceLimitX96)&&(0,a.Z)(!1);var y=ot(e,n===S.EXACT_OUTPUT),v=n===S.EXACT_INPUT?"quoteExactInput":"quoteExactOutput";i=u.encodeFunctionData(v,[y,s])}return{calldata:i,value:it(0)}},e}();Mt.V1INTERFACE=new ce.vU(me.Mt),Mt.V2INTERFACE=new ce.vU(ye.Mt);var Bt=function(){function e(){}return e.encodeClaim=function(t,n){var r,i=[];i.push(e.INTERFACE.encodeFunctionData("unstakeToken",[this._encodeIncentiveKey(t),it(n.tokenId)]));var o=$(n.recipient),a=null!=(r=n.amount)?r:0;return i.push(e.INTERFACE.encodeFunctionData("claimReward",[t.rewardToken.address,o,it(a)])),i},e.collectRewards=function(t,n){t=Array.isArray(t)?t:[t];for(var r=[],i=0;i<t.length;i++){var o=t[i];(r=r.concat(this.encodeClaim(o,n))).push(e.INTERFACE.encodeFunctionData("stakeToken",[this._encodeIncentiveKey(o),it(n.tokenId)]))}return{calldata:St.encodeMulticall(r),value:it(0)}},e.withdrawToken=function(t,n){var r=[];t=Array.isArray(t)?t:[t];for(var i={tokenId:n.tokenId,recipient:n.recipient,amount:n.amount},o=0;o<t.length;o++){var a=t[o];r=r.concat(this.encodeClaim(a,i))}var s=$(n.owner);return r.push(e.INTERFACE.encodeFunctionData("withdrawToken",[it(n.tokenId),s,n.data?n.data:it(0)])),{calldata:St.encodeMulticall(r),value:it(0)}},e.encodeDeposit=function(t){var n;if((t=Array.isArray(t)?t:[t]).length>1){for(var r=[],i=0;i<t.length;i++){var o=t[i];r.push(this._encodeIncentiveKey(o))}n=ue.$.encode([e.INCENTIVE_KEY_ABI+"[]"],[r])}else n=ue.$.encode([e.INCENTIVE_KEY_ABI],[this._encodeIncentiveKey(t[0])]);return n},e._encodeIncentiveKey=function(e){var t=e.pool,n=t.token0,r=t.token1,i=t.fee,o=$(e.refundee);return{rewardToken:e.rewardToken.address,pool:At.getAddress(n,r,i),startTime:it(e.startTime),endTime:it(e.endTime),refundee:o}},e}();Bt.INTERFACE=new ce.vU(ve.Mt),Bt.INCENTIVE_KEY_ABI="tuple(address rewardToken, address pool, uint256 startTime, uint256 endTime, address refundee)";var Nt=function(){function e(){}return e.swapCallParameters=function(t,n){Array.isArray(t)||(t=[t]);var r=t[0],i=r.inputAmount.currency.wrapped,o=r.outputAmount.currency.wrapped;t.every((function(e){return e.inputAmount.currency.wrapped.equals(i)}))||(0,a.Z)(!1),t.every((function(e){return e.outputAmount.currency.wrapped.equals(o)}))||(0,a.Z)(!1);var s=[],u=V.fromRawAmount(t[0].inputAmount.currency,0),c=V.fromRawAmount(t[0].outputAmount.currency,0),l=t.reduce((function(e,t){return e.add(t.minimumAmountOut(n.slippageTolerance))}),c),f=r.inputAmount.currency.isNative&&r.tradeType===S.EXACT_OUTPUT,d=r.inputAmount.currency.isNative,p=r.outputAmount.currency.isNative,h=p||!!n.fee,m=d?t.reduce((function(e,t){return e.add(t.maximumAmountIn(n.slippageTolerance))}),u):u;n.inputTokenPermit&&(r.inputAmount.currency.isToken||(0,a.Z)(!1),s.push(Ct.encodePermit(r.inputAmount.currency,n.inputTokenPermit)));for(var y,v=$(n.recipient),g=it(n.deadline),b=Te(t);!(y=b()).done;)for(var w,x=y.value,A=Te(x.swaps);!(w=A()).done;){var k=w.value,E=k.route,T=k.inputAmount,_=k.outputAmount,C=it(x.maximumAmountIn(n.slippageTolerance,T).quotient),I=it(x.minimumAmountOut(n.slippageTolerance,_).quotient);if(1===E.pools.length)if(x.tradeType===S.EXACT_INPUT){var O,P={tokenIn:E.tokenPath[0].address,tokenOut:E.tokenPath[1].address,fee:E.pools[0].fee,recipient:h?Re:v,deadline:g,amountIn:C,amountOutMinimum:I,sqrtPriceLimitX96:it(null!=(O=n.sqrtPriceLimitX96)?O:0)};s.push(e.INTERFACE.encodeFunctionData("exactInputSingle",[P]))}else{var R,M={tokenIn:E.tokenPath[0].address,tokenOut:E.tokenPath[1].address,fee:E.pools[0].fee,recipient:h?Re:v,deadline:g,amountOut:I,amountInMaximum:C,sqrtPriceLimitX96:it(null!=(R=n.sqrtPriceLimitX96)?R:0)};s.push(e.INTERFACE.encodeFunctionData("exactOutputSingle",[M]))}else{void 0!==n.sqrtPriceLimitX96&&(0,a.Z)(!1);var B=ot(E,x.tradeType===S.EXACT_OUTPUT);if(x.tradeType===S.EXACT_INPUT){var N={path:B,recipient:h?Re:v,deadline:g,amountIn:C,amountOutMinimum:I};s.push(e.INTERFACE.encodeFunctionData("exactInput",[N]))}else{var F={path:B,recipient:h?Re:v,deadline:g,amountOut:I,amountInMaximum:C};s.push(e.INTERFACE.encodeFunctionData("exactOutput",[F]))}}}return h&&(n.fee?p?s.push(It.encodeUnwrapWETH9(l.quotient,v,n.fee)):s.push(It.encodeSweepToken(r.outputAmount.currency.wrapped,l.quotient,v,n.fee)):s.push(It.encodeUnwrapWETH9(l.quotient,v))),f&&s.push(It.encodeRefundETH()),{calldata:St.encodeMulticall(s),value:it(m.quotient)}},e}();Nt.INTERFACE=new ce.vU(ge.Mt)},70976:function(e){"use strict";!function(t){function n(e){return parseInt(e)===e}function r(e){if(!n(e.length))return!1;for(var t=0;t<e.length;t++)if(!n(e[t])||e[t]<0||e[t]>255)return!1;return!0}function i(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!r(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(n(e.length)&&r(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function o(e){return new Uint8Array(e)}function a(e,t,n,r,i){null==r&&null==i||(e=e.slice?e.slice(r,i):Array.prototype.slice.call(e,r,i)),t.set(e,n)}var s={toBytes:function(e){var t=[],n=0;for(e=encodeURI(e);n<e.length;){var r=e.charCodeAt(n++);37===r?(t.push(parseInt(e.substr(n,2),16)),n+=2):t.push(r)}return i(t)},fromBytes:function(e){for(var t=[],n=0;n<e.length;){var r=e[n];r<128?(t.push(String.fromCharCode(r)),n++):r>191&&r<224?(t.push(String.fromCharCode((31&r)<<6|63&e[n+1])),n+=2):(t.push(String.fromCharCode((15&r)<<12|(63&e[n+1])<<6|63&e[n+2])),n+=3)}return t.join("")}},u=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},fromBytes:function(t){for(var n=[],r=0;r<t.length;r++){var i=t[r];n.push(e[(240&i)>>4]+e[15&i])}return n.join("")}}}(),c={16:10,24:12,32:14},l=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],d=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],p=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],h=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],m=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],y=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],v=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],g=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],b=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],w=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],x=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],A=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],k=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],E=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function T(e){for(var t=[],n=0;n<e.length;n+=4)t.push(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]);return t}var _=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:i(t,!0)}),this._prepare()};_.prototype._prepare=function(){var e=c[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var n,r=4*(e+1),i=this.key.length/4,o=T(this.key);for(t=0;t<i;t++)n=t>>2,this._Ke[n][t%4]=o[t],this._Kd[e-n][t%4]=o[t];for(var a,s=0,u=i;u<r;){if(a=o[i-1],o[0]^=f[a>>16&255]<<24^f[a>>8&255]<<16^f[255&a]<<8^f[a>>24&255]^l[s]<<24,s+=1,8!=i)for(t=1;t<i;t++)o[t]^=o[t-1];else{for(t=1;t<i/2;t++)o[t]^=o[t-1];a=o[i/2-1],o[i/2]^=f[255&a]^f[a>>8&255]<<8^f[a>>16&255]<<16^f[a>>24&255]<<24;for(t=i/2+1;t<i;t++)o[t]^=o[t-1]}for(t=0;t<i&&u<r;)d=u>>2,p=u%4,this._Ke[d][p]=o[t],this._Kd[e-d][p]=o[t++],u++}for(var d=1;d<e;d++)for(var p=0;p<4;p++)a=this._Kd[d][p],this._Kd[d][p]=x[a>>24&255]^A[a>>16&255]^k[a>>8&255]^E[255&a]},_.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,n=[0,0,0,0],r=T(e),i=0;i<4;i++)r[i]^=this._Ke[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=p[r[i]>>24&255]^h[r[(i+1)%4]>>16&255]^m[r[(i+2)%4]>>8&255]^y[255&r[(i+3)%4]]^this._Ke[a][i];r=n.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Ke[t][i],u[4*i]=255&(f[r[i]>>24&255]^s>>24),u[4*i+1]=255&(f[r[(i+1)%4]>>16&255]^s>>16),u[4*i+2]=255&(f[r[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(f[255&r[(i+3)%4]]^s);return u},_.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,n=[0,0,0,0],r=T(e),i=0;i<4;i++)r[i]^=this._Kd[0][i];for(var a=1;a<t;a++){for(i=0;i<4;i++)n[i]=v[r[i]>>24&255]^g[r[(i+3)%4]>>16&255]^b[r[(i+2)%4]>>8&255]^w[255&r[(i+1)%4]]^this._Kd[a][i];r=n.slice()}var s,u=o(16);for(i=0;i<4;i++)s=this._Kd[t][i],u[4*i]=255&(d[r[i]>>24&255]^s>>24),u[4*i+1]=255&(d[r[(i+3)%4]>>16&255]^s>>16),u[4*i+2]=255&(d[r[(i+2)%4]>>8&255]^s>>8),u[4*i+3]=255&(d[255&r[(i+1)%4]]^s);return u};var S=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new _(t)};S.prototype.encrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.encrypt(n),t,r);return t},S.prototype.decrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16)a(e,n,0,r,r+16),a(n=this._aes.decrypt(n),t,r);return t};var C=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastCipherblock=i(n,!0),this._aes=new _(t)};C.prototype.encrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16);for(var s=0;s<16;s++)n[s]^=this._lastCipherblock[s];this._lastCipherblock=this._aes.encrypt(n),a(this._lastCipherblock,t,r)}return t},C.prototype.decrypt=function(e){if((e=i(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=o(e.length),n=o(16),r=0;r<e.length;r+=16){a(e,n,0,r,r+16),n=this._aes.decrypt(n);for(var s=0;s<16;s++)t[r+s]=n[s]^this._lastCipherblock[s];a(e,this._lastCipherblock,0,r,r+16)}return t};var I=function e(t,n,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 size)")}else n=o(16);r||(r=1),this.segmentSize=r,this._shiftRegister=i(n,!0),this._aes=new _(t)};I.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(n,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n},I.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,n=i(e,!0),r=0;r<n.length;r+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var o=0;o<this.segmentSize;o++)n[r+o]^=t[o];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,r,r+this.segmentSize)}return n};var O=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",n){if(16!=n.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else n=o(16);this._lastPrecipher=i(n,!0),this._lastPrecipherIndex=16,this._aes=new _(t)};O.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[n]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},O.prototype.decrypt=O.prototype.encrypt;var P=function e(t){if(!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"===typeof t?(this._counter=o(16),this.setValue(t)):this.setBytes(t)};P.prototype.setValue=function(e){if("number"!==typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},P.prototype.setBytes=function(e){if(16!=(e=i(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},P.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var R=function e(t,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",n instanceof P||(n=new P(n)),this._counter=n,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new _(t)};R.prototype.encrypt=function(e){for(var t=i(e,!0),n=0;n<t.length;n++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[n]^=this._remainingCounter[this._remainingCounterIndex++];return t},R.prototype.decrypt=R.prototype.encrypt;var M={AES:_,Counter:P,ModeOfOperation:{ecb:S,cbc:C,cfb:I,ofb:O,ctr:R},utils:{hex:u,utf8:s},padding:{pkcs7:{pad:function(e){var t=16-(e=i(e,!0)).length%16,n=o(e.length+t);a(e,n);for(var r=e.length;r<n.length;r++)n[r]=t;return n},strip:function(e){if((e=i(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var n=e.length-t,r=0;r<t;r++)if(e[n+r]!==t)throw new Error("PKCS#7 invalid padding byte");var s=o(n);return a(e,s,0,0,n),s}}},_arrayTest:{coerceArray:i,createArray:o,copyArray:a}};e.exports=M}()},47502:function(e,t,n){"use strict";var r=n(33185);function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o,a,s=n(84407).codes,u=s.ERR_AMBIGUOUS_ARGUMENT,c=s.ERR_INVALID_ARG_TYPE,l=s.ERR_INVALID_ARG_VALUE,f=s.ERR_INVALID_RETURN_VALUE,d=s.ERR_MISSING_ARGS,p=n(11585),h=n(13126).inspect,m=n(13126).types,y=m.isPromise,v=m.isRegExp,g=Object.assign?Object.assign:n(40094).assign,b=Object.is?Object.is:n(45644);new Map;function w(){var e=n(80514);o=e.isDeepEqual,a=e.isDeepStrictEqual}var x=!1,A=e.exports=_,k={};function E(e){if(e.message instanceof Error)throw e.message;throw new p(e)}function T(e,t,n,r){if(!n){var i=!1;if(0===t)i=!0,r="No value argument passed to `assert.ok()`";else if(r instanceof Error)throw r;var o=new p({actual:n,expected:!0,message:r,operator:"==",stackStartFn:e});throw o.generatedMessage=i,o}}function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[_,t.length].concat(t))}A.fail=function e(t,n,i,o,a){var s,u=arguments.length;if(0===u)s="Failed";else if(1===u)i=t,t=void 0;else{if(!1===x)x=!0,(r.emitWarning?r.emitWarning:console.warn.bind(console))("assert.fail() with more than one argument is deprecated. Please use assert.strictEqual() instead or only pass a message.","DeprecationWarning","DEP0094");2===u&&(o="!=")}if(i instanceof Error)throw i;var c={actual:t,expected:n,operator:void 0===o?"fail":o,stackStartFn:a||e};void 0!==i&&(c.message=i);var l=new p(c);throw s&&(l.message=s,l.generatedMessage=!0),l},A.AssertionError=p,A.ok=_,A.equal=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t!=n&&E({actual:t,expected:n,message:r,operator:"==",stackStartFn:e})},A.notEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");t==n&&E({actual:t,expected:n,message:r,operator:"!=",stackStartFn:e})},A.deepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(t,n)||E({actual:t,expected:n,message:r,operator:"deepEqual",stackStartFn:e})},A.notDeepEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),o(t,n)&&E({actual:t,expected:n,message:r,operator:"notDeepEqual",stackStartFn:e})},A.deepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w(),a(t,n)||E({actual:t,expected:n,message:r,operator:"deepStrictEqual",stackStartFn:e})},A.notDeepStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");void 0===o&&w();a(t,n)&&E({actual:t,expected:n,message:r,operator:"notDeepStrictEqual",stackStartFn:e})},A.strictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)||E({actual:t,expected:n,message:r,operator:"strictEqual",stackStartFn:e})},A.notStrictEqual=function e(t,n,r){if(arguments.length<2)throw new d("actual","expected");b(t,n)&&E({actual:t,expected:n,message:r,operator:"notStrictEqual",stackStartFn:e})};var S=function e(t,n,r){var i=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),n.forEach((function(e){e in t&&(void 0!==r&&"string"===typeof r[e]&&v(t[e])&&t[e].test(r[e])?i[e]=r[e]:i[e]=t[e])}))};function C(e,t,n,r){if("function"!==typeof t){if(v(t))return t.test(e);if(2===arguments.length)throw new c("expected",["Function","RegExp"],t);if("object"!==i(e)||null===e){var s=new p({actual:e,expected:t,message:n,operator:"deepStrictEqual",stackStartFn:r});throw s.operator=r.name,s}var u=Object.keys(t);if(t instanceof Error)u.push("name","message");else if(0===u.length)throw new l("error",t,"may not be an empty object");return void 0===o&&w(),u.forEach((function(i){"string"===typeof e[i]&&v(t[i])&&t[i].test(e[i])||function(e,t,n,r,i,o){if(!(n in e)||!a(e[n],t[n])){if(!r){var s=new S(e,i),u=new S(t,i,e),c=new p({actual:s,expected:u,operator:"deepStrictEqual",stackStartFn:o});throw c.actual=e,c.expected=t,c.operator=o.name,c}E({actual:e,expected:t,message:r,operator:o.name,stackStartFn:o})}}(e,t,i,n,u,r)})),!0}return void 0!==t.prototype&&e instanceof t||!Error.isPrototypeOf(t)&&!0===t.call({},e)}function I(e){if("function"!==typeof e)throw new c("fn","Function",e);try{e()}catch(t){return t}return k}function O(e){return y(e)||null!==e&&"object"===i(e)&&"function"===typeof e.then&&"function"===typeof e.catch}function P(e){return Promise.resolve().then((function(){var t;if("function"===typeof e){if(!O(t=e()))throw new f("instance of Promise","promiseFn",t)}else{if(!O(e))throw new c("promiseFn",["Function","Promise"],e);t=e}return Promise.resolve().then((function(){return t})).then((function(){return k})).catch((function(e){return e}))}))}function R(e,t,n,r){if("string"===typeof n){if(4===arguments.length)throw new c("error",["Object","Error","Function","RegExp"],n);if("object"===i(t)&&null!==t){if(t.message===n)throw new u("error/message",'The error message "'.concat(t.message,'" is identical to the message.'))}else if(t===n)throw new u("error/message",'The error "'.concat(t,'" is identical to the message.'));r=n,n=void 0}else if(null!=n&&"object"!==i(n)&&"function"!==typeof n)throw new c("error",["Object","Error","Function","RegExp"],n);if(t===k){var o="";n&&n.name&&(o+=" (".concat(n.name,")")),o+=r?": ".concat(r):".";var a="rejects"===e.name?"rejection":"exception";E({actual:void 0,expected:n,operator:e.name,message:"Missing expected ".concat(a).concat(o),stackStartFn:e})}if(n&&!C(t,n,r,e))throw t}function M(e,t,n,r){if(t!==k){if("string"===typeof n&&(r=n,n=void 0),!n||C(t,n)){var i=r?": ".concat(r):".",o="doesNotReject"===e.name?"rejection":"exception";E({actual:t,expected:n,operator:e.name,message:"Got unwanted ".concat(o).concat(i,"\n")+'Actual message: "'.concat(t&&t.message,'"'),stackStartFn:e})}throw t}}function B(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];T.apply(void 0,[B,t.length].concat(t))}A.throws=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];R.apply(void 0,[e,I(t)].concat(r))},A.rejects=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return R.apply(void 0,[e,t].concat(r))}))},A.doesNotThrow=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];M.apply(void 0,[e,I(t)].concat(r))},A.doesNotReject=function e(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return P(t).then((function(t){return M.apply(void 0,[e,t].concat(r))}))},A.ifError=function e(t){if(null!==t&&void 0!==t){var n="ifError got unwanted exception: ";"object"===i(t)&&"string"===typeof t.message?0===t.message.length&&t.constructor?n+=t.constructor.name:n+=t.message:n+=h(t);var r=new p({actual:t,expected:null,operator:"ifError",message:n,stackStartFn:e}),o=t.stack;if("string"===typeof o){var a=o.split("\n");a.shift();for(var s=r.stack.split("\n"),u=0;u<a.length;u++){var c=s.indexOf(a[u]);if(-1!==c){s=s.slice(0,c);break}}r.stack="".concat(s.join("\n"),"\n").concat(a.join("\n"))}throw r}},A.strict=g(B,A,{equal:A.strictEqual,deepEqual:A.deepStrictEqual,notEqual:A.notStrictEqual,notDeepEqual:A.notDeepStrictEqual}),A.strict.strict=A.strict},11585:function(e,t,n){"use strict";var r=n(33185);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function o(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function a(e,t){return!t||"object"!==d(t)&&"function"!==typeof t?s(e):t}function s(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(e){var t="function"===typeof Map?new Map:void 0;return u=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,r)}function r(){return c(e,arguments,f(this).constructor)}return r.prototype=Object.create(e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),l(r,e)},u(e)}function c(e,t,n){return c=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&l(i,n.prototype),i},c.apply(null,arguments)}function l(e,t){return l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},l(e,t)}function f(e){return f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},f(e)}function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}var p=n(13126).inspect,h=n(84407).codes.ERR_INVALID_ARG_TYPE;function m(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}var y="",v="",g="",b="",w={deepStrictEqual:"Expected values to be strictly deep-equal:",strictEqual:"Expected values to be strictly equal:",strictEqualObject:'Expected "actual" to be reference-equal to "expected":',deepEqual:"Expected values to be loosely deep-equal:",equal:"Expected values to be loosely equal:",notDeepStrictEqual:'Expected "actual" not to be strictly deep-equal to:',notStrictEqual:'Expected "actual" to be strictly unequal to:',notStrictEqualObject:'Expected "actual" not to be reference-equal to "expected":',notDeepEqual:'Expected "actual" not to be loosely deep-equal to:',notEqual:'Expected "actual" to be loosely unequal to:',notIdentical:"Values identical but not reference-equal:"};function x(e){var t=Object.keys(e),n=Object.create(Object.getPrototypeOf(e));return t.forEach((function(t){n[t]=e[t]})),Object.defineProperty(n,"message",{value:e.message}),n}function A(e){return p(e,{compact:!1,customInspect:!1,depth:1e3,maxArrayLength:1/0,showHidden:!1,breakLength:1/0,showProxy:!1,sorted:!0,getters:!0})}function k(e,t,n){var i="",o="",a=0,s="",u=!1,c=A(e),l=c.split("\n"),f=A(t).split("\n"),p=0,h="";if("strictEqual"===n&&"object"===d(e)&&"object"===d(t)&&null!==e&&null!==t&&(n="strictEqualObject"),1===l.length&&1===f.length&&l[0]!==f[0]){var x=l[0].length+f[0].length;if(x<=10){if(("object"!==d(e)||null===e)&&("object"!==d(t)||null===t)&&(0!==e||0!==t))return"".concat(w[n],"\n\n")+"".concat(l[0]," !== ").concat(f[0],"\n")}else if("strictEqualObject"!==n){if(x<(r.stderr&&r.stderr.isTTY?r.stderr.columns:80)){for(;l[0][p]===f[0][p];)p++;p>2&&(h="\n ".concat(function(e,t){if(t=Math.floor(t),0==e.length||0==t)return"";var n=e.length*t;for(t=Math.floor(Math.log(t)/Math.log(2));t;)e+=e,t--;return e+e.substring(0,n-e.length)}(" ",p),"^"),p=0)}}}for(var k=l[l.length-1],E=f[f.length-1];k===E&&(p++<2?s="\n ".concat(k).concat(s):i=k,l.pop(),f.pop(),0!==l.length&&0!==f.length);)k=l[l.length-1],E=f[f.length-1];var T=Math.max(l.length,f.length);if(0===T){var _=c.split("\n");if(_.length>30)for(_[26]="".concat(y,"...").concat(b);_.length>27;)_.pop();return"".concat(w.notIdentical,"\n\n").concat(_.join("\n"),"\n")}p>3&&(s="\n".concat(y,"...").concat(b).concat(s),u=!0),""!==i&&(s="\n ".concat(i).concat(s),i="");var S=0,C=w[n]+"\n".concat(v,"+ actual").concat(b," ").concat(g,"- expected").concat(b),I=" ".concat(y,"...").concat(b," Lines skipped");for(p=0;p<T;p++){var O=p-a;if(l.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(f[p-2]),S++),o+="\n ".concat(f[p-1]),S++),a=p,i+="\n".concat(g,"-").concat(b," ").concat(f[p]),S++;else if(f.length<p+1)O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(l[p-2]),S++),o+="\n ".concat(l[p-1]),S++),a=p,o+="\n".concat(v,"+").concat(b," ").concat(l[p]),S++;else{var P=f[p],R=l[p],M=R!==P&&(!m(R,",")||R.slice(0,-1)!==P);M&&m(P,",")&&P.slice(0,-1)===R&&(M=!1,R+=","),M?(O>1&&p>2&&(O>4?(o+="\n".concat(y,"...").concat(b),u=!0):O>3&&(o+="\n ".concat(l[p-2]),S++),o+="\n ".concat(l[p-1]),S++),a=p,o+="\n".concat(v,"+").concat(b," ").concat(R),i+="\n".concat(g,"-").concat(b," ").concat(P),S+=2):(o+=i,i="",1!==O&&0!==p||(o+="\n ".concat(R),S++))}if(S>20&&p<T-2)return"".concat(C).concat(I,"\n").concat(o,"\n").concat(y,"...").concat(b).concat(i,"\n")+"".concat(y,"...").concat(b)}return"".concat(C).concat(u?I:"","\n").concat(o).concat(i).concat(s).concat(h)}var E=function(e){function t(e){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),"object"!==d(e)||null===e)throw new h("options","Object",e);var i=e.message,o=e.operator,u=e.stackStartFn,c=e.actual,l=e.expected,p=Error.stackTraceLimit;if(Error.stackTraceLimit=0,null!=i)n=a(this,f(t).call(this,String(i)));else if(r.stderr&&r.stderr.isTTY&&(r.stderr&&r.stderr.getColorDepth&&1!==r.stderr.getColorDepth()?(y="\x1b[34m",v="\x1b[32m",b="\x1b[39m",g="\x1b[31m"):(y="",v="",b="",g="")),"object"===d(c)&&null!==c&&"object"===d(l)&&null!==l&&"stack"in c&&c instanceof Error&&"stack"in l&&l instanceof Error&&(c=x(c),l=x(l)),"deepStrictEqual"===o||"strictEqual"===o)n=a(this,f(t).call(this,k(c,l,o)));else if("notDeepStrictEqual"===o||"notStrictEqual"===o){var m=w[o],E=A(c).split("\n");if("notStrictEqual"===o&&"object"===d(c)&&null!==c&&(m=w.notStrictEqualObject),E.length>30)for(E[26]="".concat(y,"...").concat(b);E.length>27;)E.pop();n=1===E.length?a(this,f(t).call(this,"".concat(m," ").concat(E[0]))):a(this,f(t).call(this,"".concat(m,"\n\n").concat(E.join("\n"),"\n")))}else{var T=A(c),_="",S=w[o];"notDeepEqual"===o||"notEqual"===o?(T="".concat(w[o],"\n\n").concat(T)).length>1024&&(T="".concat(T.slice(0,1021),"...")):(_="".concat(A(l)),T.length>512&&(T="".concat(T.slice(0,509),"...")),_.length>512&&(_="".concat(_.slice(0,509),"...")),"deepEqual"===o||"equal"===o?T="".concat(S,"\n\n").concat(T,"\n\nshould equal\n\n"):_=" ".concat(o," ").concat(_)),n=a(this,f(t).call(this,"".concat(T).concat(_)))}return Error.stackTraceLimit=p,n.generatedMessage=!i,Object.defineProperty(s(n),"name",{value:"AssertionError [ERR_ASSERTION]",enumerable:!1,writable:!0,configurable:!0}),n.code="ERR_ASSERTION",n.actual=c,n.expected=l,n.operator=o,Error.captureStackTrace&&Error.captureStackTrace(s(n),u),n.stack,n.name="AssertionError",a(n)}var n,u,c;return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,u=[{key:"toString",value:function(){return"".concat(this.name," [").concat(this.code,"]: ").concat(this.message)}},{key:p.custom,value:function(e,t){return p(this,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),r.forEach((function(t){i(e,t,n[t])}))}return e}({},t,{customInspect:!1,depth:0}))}}],u&&o(n.prototype,u),c&&o(n,c),t}(u(Error));e.exports=E},84407:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function o(e){return o=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},o(e)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}var s,u,c={};function l(e,t,n){n||(n=Error);var r=function(n){function r(n,a,s){var u;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),u=i(this,o(r).call(this,function(e,n,r){return"string"===typeof t?t:t(e,n,r)}(n,a,s))),u.code=e,u}return function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(r,n),r}(n);c[e]=r}function f(e,t){if(Array.isArray(e)){var n=e.length;return e=e.map((function(e){return String(e)})),n>2?"one of ".concat(t," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(t," ").concat(e[0]," or ").concat(e[1]):"of ".concat(t," ").concat(e[0])}return"of ".concat(t," ").concat(String(e))}l("ERR_AMBIGUOUS_ARGUMENT",'The "%s" argument is ambiguous. %s',TypeError),l("ERR_INVALID_ARG_TYPE",(function(e,t,i){var o,a,u,c;if(void 0===s&&(s=n(47502)),s("string"===typeof e,"'name' must be a string"),"string"===typeof t&&(a="not ",t.substr(!u||u<0?0:+u,a.length)===a)?(o="must not be",t=t.replace(/^not /,"")):o="must be",function(e,t,n){return(void 0===n||n>e.length)&&(n=e.length),e.substring(n-t.length,n)===t}(e," argument"))c="The ".concat(e," ").concat(o," ").concat(f(t,"type"));else{var l=function(e,t,n){return"number"!==typeof n&&(n=0),!(n+t.length>e.length)&&-1!==e.indexOf(t,n)}(e,".")?"property":"argument";c='The "'.concat(e,'" ').concat(l," ").concat(o," ").concat(f(t,"type"))}return c+=". Received type ".concat(r(i))}),TypeError),l("ERR_INVALID_ARG_VALUE",(function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"is invalid";void 0===u&&(u=n(13126));var i=u.inspect(t);return i.length>128&&(i="".concat(i.slice(0,128),"...")),"The argument '".concat(e,"' ").concat(r,". Received ").concat(i)}),TypeError,RangeError),l("ERR_INVALID_RETURN_VALUE",(function(e,t,n){var i;return i=n&&n.constructor&&n.constructor.name?"instance of ".concat(n.constructor.name):"type ".concat(r(n)),"Expected ".concat(e,' to be returned from the "').concat(t,'"')+" function but got ".concat(i,".")}),TypeError),l("ERR_MISSING_ARGS",(function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];void 0===s&&(s=n(47502)),s(t.length>0,"At least one arg needs to be specified");var i="The ",o=t.length;switch(t=t.map((function(e){return'"'.concat(e,'"')})),o){case 1:i+="".concat(t[0]," argument");break;case 2:i+="".concat(t[0]," and ").concat(t[1]," arguments");break;default:i+=t.slice(0,o-1).join(", "),i+=", and ".concat(t[o-1]," arguments")}return"".concat(i," must be specified")}),TypeError),e.exports.codes=c},80514:function(e,t,n){"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function i(e){return i="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var o=void 0!==/a/g.flags,a=function(e){var t=[];return e.forEach((function(e){return t.push(e)})),t},s=function(e){var t=[];return e.forEach((function(e,n){return t.push([n,e])})),t},u=Object.is?Object.is:n(45644),c=Object.getOwnPropertySymbols?Object.getOwnPropertySymbols:function(){return[]},l=Number.isNaN?Number.isNaN:n(81507);function f(e){return e.call.bind(e)}var d=f(Object.prototype.hasOwnProperty),p=f(Object.prototype.propertyIsEnumerable),h=f(Object.prototype.toString),m=n(13126).types,y=m.isAnyArrayBuffer,v=m.isArrayBufferView,g=m.isDate,b=m.isMap,w=m.isRegExp,x=m.isSet,A=m.isNativeError,k=m.isBoxedPrimitive,E=m.isNumberObject,T=m.isStringObject,_=m.isBooleanObject,S=m.isBigIntObject,C=m.isSymbolObject,I=m.isFloat32Array,O=m.isFloat64Array;function P(e){if(0===e.length||e.length>10)return!0;for(var t=0;t<e.length;t++){var n=e.charCodeAt(t);if(n<48||n>57)return!0}return 10===e.length&&e>=Math.pow(2,32)}function R(e){return Object.keys(e).filter(P).concat(c(e).filter(Object.prototype.propertyIsEnumerable.bind(e)))}function M(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0}var B=0,N=1,F=2,D=3;function L(e,t,n,r){if(e===t)return 0!==e||(!n||u(e,t));if(n){if("object"!==i(e))return"number"===typeof e&&l(e)&&l(t);if("object"!==i(t)||null===e||null===t)return!1;if(Object.getPrototypeOf(e)!==Object.getPrototypeOf(t))return!1}else{if(null===e||"object"!==i(e))return(null===t||"object"!==i(t))&&e==t;if(null===t||"object"!==i(t))return!1}var a,s,c,f,d=h(e);if(d!==h(t))return!1;if(Array.isArray(e)){if(e.length!==t.length)return!1;var p=R(e),m=R(t);return p.length===m.length&&j(e,t,n,r,N,p)}if("[object Object]"===d&&(!b(e)&&b(t)||!x(e)&&x(t)))return!1;if(g(e)){if(!g(t)||Date.prototype.getTime.call(e)!==Date.prototype.getTime.call(t))return!1}else if(w(e)){if(!w(t)||(c=e,f=t,!(o?c.source===f.source&&c.flags===f.flags:RegExp.prototype.toString.call(c)===RegExp.prototype.toString.call(f))))return!1}else if(A(e)||e instanceof Error){if(e.message!==t.message||e.name!==t.name)return!1}else{if(v(e)){if(n||!I(e)&&!O(e)){if(!function(e,t){return e.byteLength===t.byteLength&&0===M(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}(e,t))return!1}else if(!function(e,t){if(e.byteLength!==t.byteLength)return!1;for(var n=0;n<e.byteLength;n++)if(e[n]!==t[n])return!1;return!0}(e,t))return!1;var P=R(e),L=R(t);return P.length===L.length&&j(e,t,n,r,B,P)}if(x(e))return!(!x(t)||e.size!==t.size)&&j(e,t,n,r,F);if(b(e))return!(!b(t)||e.size!==t.size)&&j(e,t,n,r,D);if(y(e)){if(s=t,(a=e).byteLength!==s.byteLength||0!==M(new Uint8Array(a),new Uint8Array(s)))return!1}else if(k(e)&&!function(e,t){return E(e)?E(t)&&u(Number.prototype.valueOf.call(e),Number.prototype.valueOf.call(t)):T(e)?T(t)&&String.prototype.valueOf.call(e)===String.prototype.valueOf.call(t):_(e)?_(t)&&Boolean.prototype.valueOf.call(e)===Boolean.prototype.valueOf.call(t):S(e)?S(t)&&BigInt.prototype.valueOf.call(e)===BigInt.prototype.valueOf.call(t):C(t)&&Symbol.prototype.valueOf.call(e)===Symbol.prototype.valueOf.call(t)}(e,t))return!1}return j(e,t,n,r,B)}function z(e,t){return t.filter((function(t){return p(e,t)}))}function j(e,t,n,o,u,l){if(5===arguments.length){l=Object.keys(e);var f=Object.keys(t);if(l.length!==f.length)return!1}for(var h=0;h<l.length;h++)if(!d(t,l[h]))return!1;if(n&&5===arguments.length){var m=c(e);if(0!==m.length){var y=0;for(h=0;h<m.length;h++){var v=m[h];if(p(e,v)){if(!p(t,v))return!1;l.push(v),y++}else if(p(t,v))return!1}var g=c(t);if(m.length!==g.length&&z(t,g).length!==y)return!1}else{var b=c(t);if(0!==b.length&&0!==z(t,b).length)return!1}}if(0===l.length&&(u===B||u===N&&0===e.length||0===e.size))return!0;if(void 0===o)o={val1:new Map,val2:new Map,position:0};else{var w=o.val1.get(e);if(void 0!==w){var x=o.val2.get(t);if(void 0!==x)return w===x}o.position++}o.val1.set(e,o.position),o.val2.set(t,o.position);var A=function(e,t,n,o,u,c){var l=0;if(c===F){if(!function(e,t,n,r){for(var o=null,s=a(e),u=0;u<s.length;u++){var c=s[u];if("object"===i(c)&&null!==c)null===o&&(o=new Set),o.add(c);else if(!t.has(c)){if(n)return!1;if(!q(e,t,c))return!1;null===o&&(o=new Set),o.add(c)}}if(null!==o){for(var l=a(t),f=0;f<l.length;f++){var d=l[f];if("object"===i(d)&&null!==d){if(!U(o,d,n,r))return!1}else if(!n&&!e.has(d)&&!U(o,d,n,r))return!1}return 0===o.size}return!0}(e,t,n,u))return!1}else if(c===D){if(!function(e,t,n,o){for(var a=null,u=s(e),c=0;c<u.length;c++){var l=r(u[c],2),f=l[0],d=l[1];if("object"===i(f)&&null!==f)null===a&&(a=new Set),a.add(f);else{var p=t.get(f);if(void 0===p&&!t.has(f)||!L(d,p,n,o)){if(n)return!1;if(!H(e,t,f,d,o))return!1;null===a&&(a=new Set),a.add(f)}}}if(null!==a){for(var h=s(t),m=0;m<h.length;m++){var y=r(h[m],2),v=(f=y[0],y[1]);if("object"===i(f)&&null!==f){if(!V(a,e,f,v,n,o))return!1}else if(!n&&(!e.has(f)||!L(e.get(f),v,!1,o))&&!V(a,e,f,v,!1,o))return!1}return 0===a.size}return!0}(e,t,n,u))return!1}else if(c===N)for(;l<e.length;l++){if(!d(e,l)){if(d(t,l))return!1;for(var f=Object.keys(e);l<f.length;l++){var p=f[l];if(!d(t,p)||!L(e[p],t[p],n,u))return!1}return f.length===Object.keys(t).length}if(!d(t,l)||!L(e[l],t[l],n,u))return!1}for(l=0;l<o.length;l++){var h=o[l];if(!L(e[h],t[h],n,u))return!1}return!0}(e,t,n,l,o,u);return o.val1.delete(e),o.val2.delete(t),A}function U(e,t,n,r){for(var i=a(e),o=0;o<i.length;o++){var s=i[o];if(L(t,s,n,r))return e.delete(s),!0}return!1}function Z(e){switch(i(e)){case"undefined":return null;case"object":return;case"symbol":return!1;case"string":e=+e;case"number":if(l(e))return!1}return!0}function q(e,t,n){var r=Z(n);return null!=r?r:t.has(r)&&!e.has(r)}function H(e,t,n,r,i){var o=Z(n);if(null!=o)return o;var a=t.get(o);return!(void 0===a&&!t.has(o)||!L(r,a,!1,i))&&(!e.has(o)&&L(r,a,!1,i))}function V(e,t,n,r,i,o){for(var s=a(e),u=0;u<s.length;u++){var c=s[u];if(L(n,c,i,o)&&L(r,t.get(c),i,o))return e.delete(c),!0}return!1}e.exports={isDeepEqual:function(e,t){return L(e,t,false)},isDeepStrictEqual:function(e,t){return L(e,t,true)}}},58933:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,o=s(e),a=o[0],u=o[1],c=new i(function(e,t,n){return 3*(t+n)/4-n}(0,a,u)),l=0,f=u>0?a-4:a;for(n=0;n<f;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],c[l++]=t>>16&255,c[l++]=t>>8&255,c[l++]=255&t;2===u&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,c[l++]=255&t);1===u&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,c[l++]=t>>8&255,c[l++]=255&t);return c},t.fromByteArray=function(e){for(var t,r=e.length,i=r%3,o=[],a=16383,s=0,c=r-i;s<c;s+=a)o.push(u(e,s,s+a>c?c:s+a));1===i?(t=e[r-1],o.push(n[t>>2]+n[t<<4&63]+"==")):2===i&&(t=(e[r-2]<<8)+e[r-1],o.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return o.join("")};for(var n=[],r=[],i="undefined"!==typeof Uint8Array?Uint8Array:Array,o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0;a<64;++a)n[a]=o[a],r[o.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function u(e,t,r){for(var i,o,a=[],s=t;s<r;s+=3)i=(e[s]<<16&16711680)+(e[s+1]<<8&65280)+(255&e[s+2]),a.push(n[(o=i)>>18&63]+n[o>>12&63]+n[o>>6&63]+n[63&o]);return a.join("")}r["-".charCodeAt(0)]=62,r["_".charCodeAt(0)]=63},12914:function(e){"use strict";for(var t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={},r=0;r<32;r++){var i=t.charAt(r);if(void 0!==n[i])throw new TypeError(i+" is ambiguous");n[i]=r}function o(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function a(e){for(var t=1,n=0;n<e.length;++n){var r=e.charCodeAt(n);if(r<33||r>126)return"Invalid prefix ("+e+")";t=o(t)^r>>5}for(t=o(t),n=0;n<e.length;++n){var i=e.charCodeAt(n);t=o(t)^31&i}return t}function s(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),i=e.toUpperCase();if(e!==r&&e!==i)return"Mixed-case string "+e;var s=(e=r).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;var u=e.slice(0,s),c=e.slice(s+1);if(c.length<6)return"Data too short";var l=a(u);if("string"===typeof l)return l;for(var f=[],d=0;d<c.length;++d){var p=c.charAt(d),h=n[p];if(void 0===h)return"Unknown character "+p;l=o(l)^h,d+6>=c.length||f.push(h)}return 1!==l?"Invalid checksum for "+e:{prefix:u,words:f}}function u(e,t,n,r){for(var i=0,o=0,a=(1<<n)-1,s=[],u=0;u<e.length;++u)for(i=i<<t|e[u],o+=t;o>=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<<n-o&a);else{if(o>=t)return"Excess padding";if(i<<n-o&a)return"Non-zero padding"}return s}e.exports={decodeUnsafe:function(){var e=s.apply(null,arguments);if("object"===typeof e)return e},decode:function(e){var t=s.apply(null,arguments);if("object"===typeof t)return t;throw new Error(t)},encode:function(e,n,r){if(r=r||90,e.length+7+n.length>r)throw new TypeError("Exceeds length limit");var i=a(e=e.toLowerCase());if("string"===typeof i)throw new Error(i);for(var s=e+"1",u=0;u<n.length;++u){var c=n[u];if(c>>5!==0)throw new Error("Non 5-bit word");i=o(i)^c,s+=t.charAt(c)}for(u=0;u<6;++u)i=o(i);for(i^=1,u=0;u<6;++u){s+=t.charAt(i>>5*(5-u)&31)}return s},toWordsUnsafe:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=u(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=u(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},2792:function(e,t,n){var r;!function(i){"use strict";var o,a=1e6,s=1e6,u="[big.js] ",c=u+"Invalid ",l=c+"decimal places",f=c+"rounding mode",d=u+"Division by zero",p={},h=void 0,m=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function y(e,t,n,r){var i=e.c,o=e.e+t+1;if(o<i.length){if(1===n)r=i[o]>=5;else if(2===n)r=i[o]>5||5==i[o]&&(r||o<0||i[o+1]!==h||1&i[o-1]);else if(3===n)r=r||!!i[0];else if(r=!1,0!==n)throw Error(f);if(o<1)i.length=1,r?(e.e=-t,i[0]=1):i[0]=e.e=0;else{if(i.length=o--,r)for(;++i[o]>9;)i[o]=0,o--||(++e.e,i.unshift(1));for(o=i.length;!i[--o];)i.pop()}}else if(n<0||n>3||n!==~~n)throw Error(f);return e}function v(e,t,n,r){var i,o,s=e.constructor,u=!e.c[0];if(n!==h){if(n!==~~n||n<(3==t)||n>a)throw Error(3==t?c+"precision":l);for(n=r-(e=new s(e)).e,e.c.length>++r&&y(e,n,s.RM),2==t&&(r=e.e+n+1);e.c.length<r;)e.c.push(0)}if(i=e.e,n=(o=e.c.join("")).length,2!=t&&(1==t||3==t&&r<=i||i<=s.NE||i>=s.PE))o=o.charAt(0)+(n>1?"."+o.slice(1):"")+(i<0?"e":"e+")+i;else if(i<0){for(;++i;)o="0"+o;o="0."+o}else if(i>0)if(++i>n)for(i-=n;i--;)o+="0";else i<n&&(o=o.slice(0,i)+"."+o.slice(i));else n>1&&(o=o.charAt(0)+"."+o.slice(1));return e.s<0&&(!u||4==t)?"-"+o:o}p.abs=function(){var e=new this.constructor(this);return e.s=1,e},p.cmp=function(e){var t,n=this,r=n.c,i=(e=new n.constructor(e)).c,o=n.s,a=e.s,s=n.e,u=e.e;if(!r[0]||!i[0])return r[0]?o:i[0]?-a:0;if(o!=a)return o;if(t=o<0,s!=u)return s>u^t?1:-1;for(a=(s=r.length)<(u=i.length)?s:u,o=-1;++o<a;)if(r[o]!=i[o])return r[o]>i[o]^t?1:-1;return s==u?0:s>u^t?1:-1},p.div=function(e){var t=this,n=t.constructor,r=t.c,i=(e=new n(e)).c,o=t.s==e.s?1:-1,s=n.DP;if(s!==~~s||s<0||s>a)throw Error(l);if(!i[0])throw Error(d);if(!r[0])return new n(0*o);var u,c,f,p,m,v=i.slice(),g=u=i.length,b=r.length,w=r.slice(0,u),x=w.length,A=e,k=A.c=[],E=0,T=s+(A.e=t.e-e.e)+1;for(A.s=o,o=T<0?0:T,v.unshift(0);x++<u;)w.push(0);do{for(f=0;f<10;f++){if(u!=(x=w.length))p=u>x?1:-1;else for(m=-1,p=0;++m<u;)if(i[m]!=w[m]){p=i[m]>w[m]?1:-1;break}if(!(p<0))break;for(c=x==u?i:v;x;){if(w[--x]<c[x]){for(m=x;m&&!w[--m];)w[m]=9;--w[m],w[x]+=10}w[x]-=c[x]}for(;!w[0];)w.shift()}k[E++]=p?f:++f,w[0]&&p?w[x]=r[g]||0:w=[r[g]]}while((g++<b||w[0]!==h)&&o--);return k[0]||1==E||(k.shift(),A.e--),E>T&&y(A,s,n.RM,w[0]!==h),A},p.eq=function(e){return!this.cmp(e)},p.gt=function(e){return this.cmp(e)>0},p.gte=function(e){return this.cmp(e)>-1},p.lt=function(e){return this.cmp(e)<0},p.lte=function(e){return this.cmp(e)<1},p.minus=p.sub=function(e){var t,n,r,i,o=this,a=o.constructor,s=o.s,u=(e=new a(e)).s;if(s!=u)return e.s=-u,o.plus(e);var c=o.c.slice(),l=o.e,f=e.c,d=e.e;if(!c[0]||!f[0])return f[0]?(e.s=-u,e):new a(c[0]?o:0);if(s=l-d){for((i=s<0)?(s=-s,r=c):(d=l,r=f),r.reverse(),u=s;u--;)r.push(0);r.reverse()}else for(n=((i=c.length<f.length)?c:f).length,s=u=0;u<n;u++)if(c[u]!=f[u]){i=c[u]<f[u];break}if(i&&(r=c,c=f,f=r,e.s=-e.s),(u=(n=f.length)-(t=c.length))>0)for(;u--;)c[t++]=0;for(u=t;n>s;){if(c[--n]<f[n]){for(t=n;t&&!c[--t];)c[t]=9;--c[t],c[n]+=10}c[n]-=f[n]}for(;0===c[--u];)c.pop();for(;0===c[0];)c.shift(),--d;return c[0]||(e.s=1,c=[d=0]),e.c=c,e.e=d,e},p.mod=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(!e.c[0])throw Error(d);return n.s=e.s=1,t=1==e.cmp(n),n.s=i,e.s=o,t?new r(n):(i=r.DP,o=r.RM,r.DP=r.RM=0,n=n.div(e),r.DP=i,r.RM=o,this.minus(n.times(e)))},p.plus=p.add=function(e){var t,n=this,r=n.constructor,i=n.s,o=(e=new r(e)).s;if(i!=o)return e.s=-o,n.minus(e);var a=n.e,s=n.c,u=e.e,c=e.c;if(!s[0]||!c[0])return c[0]?e:new r(s[0]?n:0*i);if(s=s.slice(),i=a-u){for(i>0?(u=a,t=c):(i=-i,t=s),t.reverse();i--;)t.push(0);t.reverse()}for(s.length-c.length<0&&(t=c,c=s,s=t),i=c.length,o=0;i;s[i]%=10)o=(s[--i]=s[i]+c[i]+o)/10|0;for(o&&(s.unshift(o),++u),i=s.length;0===s[--i];)s.pop();return e.c=s,e.e=u,e},p.pow=function(e){var t=this,n=new t.constructor(1),r=n,i=e<0;if(e!==~~e||e<-1e6||e>s)throw Error(c+"exponent");for(i&&(e=-e);1&e&&(r=r.times(t)),e>>=1;)t=t.times(t);return i?n.div(r):r},p.round=function(e,t){var n=this.constructor;if(e===h)e=0;else if(e!==~~e||e<-a||e>a)throw Error(l);return y(new n(this),e,t===h?n.RM:t)},p.sqrt=function(){var e,t,n,r=this,i=r.constructor,o=r.s,a=r.e,s=new i(.5);if(!r.c[0])return new i(r);if(o<0)throw Error(u+"No square root");0===(o=Math.sqrt(r+""))||o===1/0?((t=r.c.join("")).length+a&1||(t+="0"),a=((a+1)/2|0)-(a<0||1&a),e=new i(((o=Math.sqrt(t))==1/0?"1e":(o=o.toExponential()).slice(0,o.indexOf("e")+1))+a)):e=new i(o),a=e.e+(i.DP+=4);do{n=e,e=s.times(n.plus(r.div(n)))}while(n.c.slice(0,a).join("")!==e.c.slice(0,a).join(""));return y(e,i.DP-=4,i.RM)},p.times=p.mul=function(e){var t,n=this,r=n.constructor,i=n.c,o=(e=new r(e)).c,a=i.length,s=o.length,u=n.e,c=e.e;if(e.s=n.s==e.s?1:-1,!i[0]||!o[0])return new r(0*e.s);for(e.e=u+c,a<s&&(t=i,i=o,o=t,c=a,a=s,s=c),t=new Array(c=a+s);c--;)t[c]=0;for(u=s;u--;){for(s=0,c=a+u;c>u;)s=t[c]+o[u]*i[c-u-1]+s,t[c--]=s%10,s=s/10|0;t[c]=(t[c]+s)%10}for(s?++e.e:t.shift(),u=t.length;!t[--u];)t.pop();return e.c=t,e},p.toExponential=function(e){return v(this,1,e,e)},p.toFixed=function(e){return v(this,2,e,this.e+e)},p.toPrecision=function(e){return v(this,3,e,e-1)},p.toString=function(){return v(this)},p.valueOf=p.toJSON=function(){return v(this,4)},o=function e(){function t(n){var r=this;if(!(r instanceof t))return n===h?e():new t(n);n instanceof t?(r.s=n.s,r.e=n.e,r.c=n.c.slice()):function(e,t){var n,r,i;if(0===t&&1/t<0)t="-0";else if(!m.test(t+=""))throw Error(c+"number");e.s="-"==t.charAt(0)?(t=t.slice(1),-1):1,(n=t.indexOf("."))>-1&&(t=t.replace(".",""));(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length);for(i=t.length,r=0;r<i&&"0"==t.charAt(r);)++r;if(r==i)e.c=[e.e=0];else{for(;i>0&&"0"==t.charAt(--i););for(e.e=n-r-1,e.c=[],n=0;r<=i;)e.c[n++]=+t.charAt(r++)}}(r,n),r.constructor=t}return t.prototype=p,t.DP=20,t.RM=1,t.NE=-7,t.PE=21,t.version="5.2.2",t}(),o.default=o.Big=o,void 0===(r=function(){return o}.call(t,n,t,e))||(e.exports=r)}()},72086:function(e,t,n){!function(e,t){"use strict";function r(e,t){if(!e)throw new Error(t||"Assertion failed")}function i(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}function o(e,t,n){if(o.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(n=t,t=10),this._init(e||0,t||10,n||"be"))}var a;"object"===typeof e?e.exports=o:t.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:n(11164).Buffer}catch(C){}function s(e,t){var n=e.charCodeAt(t);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+e)}function u(e,t,n){var r=s(e,n);return n-1>=t&&(r|=s(e,n-1)<<4),r}function c(e,t,n,i){for(var o=0,a=0,s=Math.min(e.length,n),u=t;u<s;u++){var c=e.charCodeAt(u)-48;o*=i,a=c>=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a<i,"Invalid character"),o+=a}return o}function l(e,t){e.words=t.words,e.length=t.length,e.negative=t.negative,e.red=t.red}if(o.isBN=function(e){return e instanceof o||null!==e&&"object"===typeof e&&e.constructor.wordSize===o.wordSize&&Array.isArray(e.words)},o.max=function(e,t){return e.cmp(t)>0?e:t},o.min=function(e,t){return e.cmp(t)<0?e:t},o.prototype._init=function(e,t,n){if("number"===typeof e)return this._initNumber(e,t,n);if("object"===typeof e)return this._initArray(e,t,n);"hex"===t&&(t=16),r(t===(0|t)&&t>=2&&t<=36);var i=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i<e.length&&(16===t?this._parseHex(e,i,n):(this._parseBase(e,t,i),"le"===n&&this._initArray(this.toArray(),t,n)))},o.prototype._initNumber=function(e,t,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(r(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),t,n)},o.prototype._initArray=function(e,t,n){if(r("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,a,s=0;if("be"===n)for(i=e.length-1,o=0;i>=0;i-=3)a=e[i]|e[i-1]<<8|e[i-2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i<e.length;i+=3)a=e[i]|e[i+1]<<8|e[i+2]<<16,this.words[o]|=a<<s&67108863,this.words[o+1]=a>>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(e,t,n){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var r=0;r<this.length;r++)this.words[r]=0;var i,o=0,a=0;if("be"===n)for(r=e.length-1;r>=t;r-=2)i=u(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(e.length-t)%2===0?t+1:t;r<e.length;r+=2)i=u(e,t,r)<<o,this.words[a]|=67108863&i,o>=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(e,t,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=t)r++;r--,i=i/t|0;for(var o=e.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l<s;l+=r)u=c(e,l,l+r,t),this.imuln(i),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u);if(0!==a){var f=1;for(u=c(e,l,e.length,t),l=0;l<a;l++)f*=t;this.imuln(f),this.words[0]+u<67108864?this.words[0]+=u:this._iaddn(u)}this._strip()},o.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},o.prototype._move=function(e){l(e,this)},o.prototype.clone=function(){var e=new o(null);return this.copy(e),e},o.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},o.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!==typeof Symbol&&"function"===typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=f}catch(C){o.prototype.inspect=f}else o.prototype.inspect=f;function f(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];o.prototype.toString=function(e,t){var n;if(t=0|t||1,16===(e=e||10)||"hex"===e){n="";for(var i=0,o=0,a=0;a<this.length;a++){var s=this.words[a],u=(16777215&(s<<i|o)).toString(16);o=s>>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var c=p[e],l=h[e];n="";var f=this.clone();for(f.negative=0;!f.isZero();){var m=f.modrn(l).toString(e);n=(f=f.idivn(l)).isZero()?m+n:d[c-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%t!==0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(e,t){return this.toArrayLike(a,e,t)}),o.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)};function m(e,t,n){n.negative=t.negative^e.negative;var r=e.length+t.length|0;n.length=r,r=r-1|0;var i=0|e.words[0],o=0|t.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c<r;c++){for(var l=u>>>26,f=67108863&u,d=Math.min(c,t.length-1),p=Math.max(0,c-e.length+1);p<=d;p++){var h=c-p|0;l+=(a=(i=0|e.words[h])*(o=0|t.words[p])+f)/67108864|0,f=67108863&a}n.words[c]=0|f,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toArrayLike=function(e,t,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(e,t){return e.allocUnsafe?e.allocUnsafe(t):new e(t)}(e,o);return this["_toArrayLike"+("le"===t?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(e,t){for(var n=0,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===o?(n<e.length&&(e[n++]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n<e.length)for(e[n++]=r;n<e.length;)e[n++]=0},o.prototype._toArrayLikeBE=function(e,t){for(var n=e.length-1,r=0,i=0,o=0;i<this.length;i++){var a=this.words[i]<<o|r;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===o?(n>=0&&(e[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(e[n--]=r;n>=0;)e[n--]=0},Math.clz32?o.prototype._countBits=function(e){return 32-Math.clz32(e)}:o.prototype._countBits=function(e){var t=e,n=0;return t>=4096&&(n+=13,t>>>=13),t>=64&&(n+=7,t>>>=7),t>=8&&(n+=4,t>>>=4),t>=2&&(n+=2,t>>>=2),n+t},o.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,n=0;return 0===(8191&t)&&(n+=13,t>>>=13),0===(127&t)&&(n+=7,t>>>=7),0===(15&t)&&(n+=4,t>>>=4),0===(3&t)&&(n+=2,t>>>=2),0===(1&t)&&n++,n},o.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var n=this._zeroBits(this.words[t]);if(e+=n,26!==n)break}return e},o.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},o.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},o.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},o.prototype.isNeg=function(){return 0!==this.negative},o.prototype.neg=function(){return this.clone().ineg()},o.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},o.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this._strip()},o.prototype.ior=function(e){return r(0===(this.negative|e.negative)),this.iuor(e)},o.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},o.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},o.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var n=0;n<t.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=t.length,this._strip()},o.prototype.iand=function(e){return r(0===(this.negative|e.negative)),this.iuand(e)},o.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},o.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},o.prototype.iuxor=function(e){var t,n;this.length>e.length?(t=this,n=e):(t=e,n=this);for(var r=0;r<n.length;r++)this.words[r]=t.words[r]^n.words[r];if(this!==t)for(;r<t.length;r++)this.words[r]=t.words[r];return this.length=t.length,this._strip()},o.prototype.ixor=function(e){return r(0===(this.negative|e.negative)),this.iuxor(e)},o.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},o.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},o.prototype.inotn=function(e){r("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),n=e%26;this._expand(t),n>0&&t--;for(var i=0;i<t;i++)this.words[i]=67108863&~this.words[i];return n>0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(e){return this.clone().inotn(e)},o.prototype.setn=function(e,t){r("number"===typeof e&&e>=0);var n=e/26|0,i=e%26;return this._expand(n+1),this.words[n]=t?this.words[n]|1<<i:this.words[n]&~(1<<i),this._strip()},o.prototype.iadd=function(e){var t,n,r;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(n=this,r=e):(n=e,r=this);for(var i=0,o=0;o<r.length;o++)t=(0|n.words[o])+(0|r.words[o])+i,this.words[o]=67108863&t,i=t>>>26;for(;0!==i&&o<n.length;o++)t=(0|n.words[o])+i,this.words[o]=67108863&t,i=t>>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;o<n.length;o++)this.words[o]=n.words[o];return this},o.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},o.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,r,i=this.cmp(e);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=e):(n=e,r=this);for(var o=0,a=0;a<r.length;a++)o=(t=(0|n.words[a])-(0|r.words[a])+o)>>26,this.words[a]=67108863&t;for(;0!==o&&a<n.length;a++)o=(t=(0|n.words[a])+o)>>26,this.words[a]=67108863&t;if(0===o&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},o.prototype.sub=function(e){return this.clone().isub(e)};var y=function(e,t,n){var r,i,o,a=e.words,s=t.words,u=n.words,c=0,l=0|a[0],f=8191&l,d=l>>>13,p=0|a[1],h=8191&p,m=p>>>13,y=0|a[2],v=8191&y,g=y>>>13,b=0|a[3],w=8191&b,x=b>>>13,A=0|a[4],k=8191&A,E=A>>>13,T=0|a[5],_=8191&T,S=T>>>13,C=0|a[6],I=8191&C,O=C>>>13,P=0|a[7],R=8191&P,M=P>>>13,B=0|a[8],N=8191&B,F=B>>>13,D=0|a[9],L=8191&D,z=D>>>13,j=0|s[0],U=8191&j,Z=j>>>13,q=0|s[1],H=8191&q,V=q>>>13,G=0|s[2],W=8191&G,K=G>>>13,J=0|s[3],X=8191&J,Y=J>>>13,$=0|s[4],Q=8191&$,ee=$>>>13,te=0|s[5],ne=8191&te,re=te>>>13,ie=0|s[6],oe=8191&ie,ae=ie>>>13,se=0|s[7],ue=8191&se,ce=se>>>13,le=0|s[8],fe=8191&le,de=le>>>13,pe=0|s[9],he=8191&pe,me=pe>>>13;n.negative=e.negative^t.negative,n.length=19;var ye=(c+(r=Math.imul(f,U))|0)+((8191&(i=(i=Math.imul(f,Z))+Math.imul(d,U)|0))<<13)|0;c=((o=Math.imul(d,Z))+(i>>>13)|0)+(ye>>>26)|0,ye&=67108863,r=Math.imul(h,U),i=(i=Math.imul(h,Z))+Math.imul(m,U)|0,o=Math.imul(m,Z);var ve=(c+(r=r+Math.imul(f,H)|0)|0)+((8191&(i=(i=i+Math.imul(f,V)|0)+Math.imul(d,H)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(ve>>>26)|0,ve&=67108863,r=Math.imul(v,U),i=(i=Math.imul(v,Z))+Math.imul(g,U)|0,o=Math.imul(g,Z),r=r+Math.imul(h,H)|0,i=(i=i+Math.imul(h,V)|0)+Math.imul(m,H)|0,o=o+Math.imul(m,V)|0;var ge=(c+(r=r+Math.imul(f,W)|0)|0)+((8191&(i=(i=i+Math.imul(f,K)|0)+Math.imul(d,W)|0))<<13)|0;c=((o=o+Math.imul(d,K)|0)+(i>>>13)|0)+(ge>>>26)|0,ge&=67108863,r=Math.imul(w,U),i=(i=Math.imul(w,Z))+Math.imul(x,U)|0,o=Math.imul(x,Z),r=r+Math.imul(v,H)|0,i=(i=i+Math.imul(v,V)|0)+Math.imul(g,H)|0,o=o+Math.imul(g,V)|0,r=r+Math.imul(h,W)|0,i=(i=i+Math.imul(h,K)|0)+Math.imul(m,W)|0,o=o+Math.imul(m,K)|0;var be=(c+(r=r+Math.imul(f,X)|0)|0)+((8191&(i=(i=i+Math.imul(f,Y)|0)+Math.imul(d,X)|0))<<13)|0;c=((o=o+Math.imul(d,Y)|0)+(i>>>13)|0)+(be>>>26)|0,be&=67108863,r=Math.imul(k,U),i=(i=Math.imul(k,Z))+Math.imul(E,U)|0,o=Math.imul(E,Z),r=r+Math.imul(w,H)|0,i=(i=i+Math.imul(w,V)|0)+Math.imul(x,H)|0,o=o+Math.imul(x,V)|0,r=r+Math.imul(v,W)|0,i=(i=i+Math.imul(v,K)|0)+Math.imul(g,W)|0,o=o+Math.imul(g,K)|0,r=r+Math.imul(h,X)|0,i=(i=i+Math.imul(h,Y)|0)+Math.imul(m,X)|0,o=o+Math.imul(m,Y)|0;var we=(c+(r=r+Math.imul(f,Q)|0)|0)+((8191&(i=(i=i+Math.imul(f,ee)|0)+Math.imul(d,Q)|0))<<13)|0;c=((o=o+Math.imul(d,ee)|0)+(i>>>13)|0)+(we>>>26)|0,we&=67108863,r=Math.imul(_,U),i=(i=Math.imul(_,Z))+Math.imul(S,U)|0,o=Math.imul(S,Z),r=r+Math.imul(k,H)|0,i=(i=i+Math.imul(k,V)|0)+Math.imul(E,H)|0,o=o+Math.imul(E,V)|0,r=r+Math.imul(w,W)|0,i=(i=i+Math.imul(w,K)|0)+Math.imul(x,W)|0,o=o+Math.imul(x,K)|0,r=r+Math.imul(v,X)|0,i=(i=i+Math.imul(v,Y)|0)+Math.imul(g,X)|0,o=o+Math.imul(g,Y)|0,r=r+Math.imul(h,Q)|0,i=(i=i+Math.imul(h,ee)|0)+Math.imul(m,Q)|0,o=o+Math.imul(m,ee)|0;var xe=(c+(r=r+Math.imul(f,ne)|0)|0)+((8191&(i=(i=i+Math.imul(f,re)|0)+Math.imul(d,ne)|0))<<13)|0;c=((o=o+Math.imul(d,re)|0)+(i>>>13)|0)+(xe>>>26)|0,xe&=67108863,r=Math.imul(I,U),i=(i=Math.imul(I,Z))+Math.imul(O,U)|0,o=Math.imul(O,Z),r=r+Math.imul(_,H)|0,i=(i=i+Math.imul(_,V)|0)+Math.imul(S,H)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(k,W)|0,i=(i=i+Math.imul(k,K)|0)+Math.imul(E,W)|0,o=o+Math.imul(E,K)|0,r=r+Math.imul(w,X)|0,i=(i=i+Math.imul(w,Y)|0)+Math.imul(x,X)|0,o=o+Math.imul(x,Y)|0,r=r+Math.imul(v,Q)|0,i=(i=i+Math.imul(v,ee)|0)+Math.imul(g,Q)|0,o=o+Math.imul(g,ee)|0,r=r+Math.imul(h,ne)|0,i=(i=i+Math.imul(h,re)|0)+Math.imul(m,ne)|0,o=o+Math.imul(m,re)|0;var Ae=(c+(r=r+Math.imul(f,oe)|0)|0)+((8191&(i=(i=i+Math.imul(f,ae)|0)+Math.imul(d,oe)|0))<<13)|0;c=((o=o+Math.imul(d,ae)|0)+(i>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,r=Math.imul(R,U),i=(i=Math.imul(R,Z))+Math.imul(M,U)|0,o=Math.imul(M,Z),r=r+Math.imul(I,H)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(O,H)|0,o=o+Math.imul(O,V)|0,r=r+Math.imul(_,W)|0,i=(i=i+Math.imul(_,K)|0)+Math.imul(S,W)|0,o=o+Math.imul(S,K)|0,r=r+Math.imul(k,X)|0,i=(i=i+Math.imul(k,Y)|0)+Math.imul(E,X)|0,o=o+Math.imul(E,Y)|0,r=r+Math.imul(w,Q)|0,i=(i=i+Math.imul(w,ee)|0)+Math.imul(x,Q)|0,o=o+Math.imul(x,ee)|0,r=r+Math.imul(v,ne)|0,i=(i=i+Math.imul(v,re)|0)+Math.imul(g,ne)|0,o=o+Math.imul(g,re)|0,r=r+Math.imul(h,oe)|0,i=(i=i+Math.imul(h,ae)|0)+Math.imul(m,oe)|0,o=o+Math.imul(m,ae)|0;var ke=(c+(r=r+Math.imul(f,ue)|0)|0)+((8191&(i=(i=i+Math.imul(f,ce)|0)+Math.imul(d,ue)|0))<<13)|0;c=((o=o+Math.imul(d,ce)|0)+(i>>>13)|0)+(ke>>>26)|0,ke&=67108863,r=Math.imul(N,U),i=(i=Math.imul(N,Z))+Math.imul(F,U)|0,o=Math.imul(F,Z),r=r+Math.imul(R,H)|0,i=(i=i+Math.imul(R,V)|0)+Math.imul(M,H)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(I,W)|0,i=(i=i+Math.imul(I,K)|0)+Math.imul(O,W)|0,o=o+Math.imul(O,K)|0,r=r+Math.imul(_,X)|0,i=(i=i+Math.imul(_,Y)|0)+Math.imul(S,X)|0,o=o+Math.imul(S,Y)|0,r=r+Math.imul(k,Q)|0,i=(i=i+Math.imul(k,ee)|0)+Math.imul(E,Q)|0,o=o+Math.imul(E,ee)|0,r=r+Math.imul(w,ne)|0,i=(i=i+Math.imul(w,re)|0)+Math.imul(x,ne)|0,o=o+Math.imul(x,re)|0,r=r+Math.imul(v,oe)|0,i=(i=i+Math.imul(v,ae)|0)+Math.imul(g,oe)|0,o=o+Math.imul(g,ae)|0,r=r+Math.imul(h,ue)|0,i=(i=i+Math.imul(h,ce)|0)+Math.imul(m,ue)|0,o=o+Math.imul(m,ce)|0;var Ee=(c+(r=r+Math.imul(f,fe)|0)|0)+((8191&(i=(i=i+Math.imul(f,de)|0)+Math.imul(d,fe)|0))<<13)|0;c=((o=o+Math.imul(d,de)|0)+(i>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,r=Math.imul(L,U),i=(i=Math.imul(L,Z))+Math.imul(z,U)|0,o=Math.imul(z,Z),r=r+Math.imul(N,H)|0,i=(i=i+Math.imul(N,V)|0)+Math.imul(F,H)|0,o=o+Math.imul(F,V)|0,r=r+Math.imul(R,W)|0,i=(i=i+Math.imul(R,K)|0)+Math.imul(M,W)|0,o=o+Math.imul(M,K)|0,r=r+Math.imul(I,X)|0,i=(i=i+Math.imul(I,Y)|0)+Math.imul(O,X)|0,o=o+Math.imul(O,Y)|0,r=r+Math.imul(_,Q)|0,i=(i=i+Math.imul(_,ee)|0)+Math.imul(S,Q)|0,o=o+Math.imul(S,ee)|0,r=r+Math.imul(k,ne)|0,i=(i=i+Math.imul(k,re)|0)+Math.imul(E,ne)|0,o=o+Math.imul(E,re)|0,r=r+Math.imul(w,oe)|0,i=(i=i+Math.imul(w,ae)|0)+Math.imul(x,oe)|0,o=o+Math.imul(x,ae)|0,r=r+Math.imul(v,ue)|0,i=(i=i+Math.imul(v,ce)|0)+Math.imul(g,ue)|0,o=o+Math.imul(g,ce)|0,r=r+Math.imul(h,fe)|0,i=(i=i+Math.imul(h,de)|0)+Math.imul(m,fe)|0,o=o+Math.imul(m,de)|0;var Te=(c+(r=r+Math.imul(f,he)|0)|0)+((8191&(i=(i=i+Math.imul(f,me)|0)+Math.imul(d,he)|0))<<13)|0;c=((o=o+Math.imul(d,me)|0)+(i>>>13)|0)+(Te>>>26)|0,Te&=67108863,r=Math.imul(L,H),i=(i=Math.imul(L,V))+Math.imul(z,H)|0,o=Math.imul(z,V),r=r+Math.imul(N,W)|0,i=(i=i+Math.imul(N,K)|0)+Math.imul(F,W)|0,o=o+Math.imul(F,K)|0,r=r+Math.imul(R,X)|0,i=(i=i+Math.imul(R,Y)|0)+Math.imul(M,X)|0,o=o+Math.imul(M,Y)|0,r=r+Math.imul(I,Q)|0,i=(i=i+Math.imul(I,ee)|0)+Math.imul(O,Q)|0,o=o+Math.imul(O,ee)|0,r=r+Math.imul(_,ne)|0,i=(i=i+Math.imul(_,re)|0)+Math.imul(S,ne)|0,o=o+Math.imul(S,re)|0,r=r+Math.imul(k,oe)|0,i=(i=i+Math.imul(k,ae)|0)+Math.imul(E,oe)|0,o=o+Math.imul(E,ae)|0,r=r+Math.imul(w,ue)|0,i=(i=i+Math.imul(w,ce)|0)+Math.imul(x,ue)|0,o=o+Math.imul(x,ce)|0,r=r+Math.imul(v,fe)|0,i=(i=i+Math.imul(v,de)|0)+Math.imul(g,fe)|0,o=o+Math.imul(g,de)|0;var _e=(c+(r=r+Math.imul(h,he)|0)|0)+((8191&(i=(i=i+Math.imul(h,me)|0)+Math.imul(m,he)|0))<<13)|0;c=((o=o+Math.imul(m,me)|0)+(i>>>13)|0)+(_e>>>26)|0,_e&=67108863,r=Math.imul(L,W),i=(i=Math.imul(L,K))+Math.imul(z,W)|0,o=Math.imul(z,K),r=r+Math.imul(N,X)|0,i=(i=i+Math.imul(N,Y)|0)+Math.imul(F,X)|0,o=o+Math.imul(F,Y)|0,r=r+Math.imul(R,Q)|0,i=(i=i+Math.imul(R,ee)|0)+Math.imul(M,Q)|0,o=o+Math.imul(M,ee)|0,r=r+Math.imul(I,ne)|0,i=(i=i+Math.imul(I,re)|0)+Math.imul(O,ne)|0,o=o+Math.imul(O,re)|0,r=r+Math.imul(_,oe)|0,i=(i=i+Math.imul(_,ae)|0)+Math.imul(S,oe)|0,o=o+Math.imul(S,ae)|0,r=r+Math.imul(k,ue)|0,i=(i=i+Math.imul(k,ce)|0)+Math.imul(E,ue)|0,o=o+Math.imul(E,ce)|0,r=r+Math.imul(w,fe)|0,i=(i=i+Math.imul(w,de)|0)+Math.imul(x,fe)|0,o=o+Math.imul(x,de)|0;var Se=(c+(r=r+Math.imul(v,he)|0)|0)+((8191&(i=(i=i+Math.imul(v,me)|0)+Math.imul(g,he)|0))<<13)|0;c=((o=o+Math.imul(g,me)|0)+(i>>>13)|0)+(Se>>>26)|0,Se&=67108863,r=Math.imul(L,X),i=(i=Math.imul(L,Y))+Math.imul(z,X)|0,o=Math.imul(z,Y),r=r+Math.imul(N,Q)|0,i=(i=i+Math.imul(N,ee)|0)+Math.imul(F,Q)|0,o=o+Math.imul(F,ee)|0,r=r+Math.imul(R,ne)|0,i=(i=i+Math.imul(R,re)|0)+Math.imul(M,ne)|0,o=o+Math.imul(M,re)|0,r=r+Math.imul(I,oe)|0,i=(i=i+Math.imul(I,ae)|0)+Math.imul(O,oe)|0,o=o+Math.imul(O,ae)|0,r=r+Math.imul(_,ue)|0,i=(i=i+Math.imul(_,ce)|0)+Math.imul(S,ue)|0,o=o+Math.imul(S,ce)|0,r=r+Math.imul(k,fe)|0,i=(i=i+Math.imul(k,de)|0)+Math.imul(E,fe)|0,o=o+Math.imul(E,de)|0;var Ce=(c+(r=r+Math.imul(w,he)|0)|0)+((8191&(i=(i=i+Math.imul(w,me)|0)+Math.imul(x,he)|0))<<13)|0;c=((o=o+Math.imul(x,me)|0)+(i>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,ee))+Math.imul(z,Q)|0,o=Math.imul(z,ee),r=r+Math.imul(N,ne)|0,i=(i=i+Math.imul(N,re)|0)+Math.imul(F,ne)|0,o=o+Math.imul(F,re)|0,r=r+Math.imul(R,oe)|0,i=(i=i+Math.imul(R,ae)|0)+Math.imul(M,oe)|0,o=o+Math.imul(M,ae)|0,r=r+Math.imul(I,ue)|0,i=(i=i+Math.imul(I,ce)|0)+Math.imul(O,ue)|0,o=o+Math.imul(O,ce)|0,r=r+Math.imul(_,fe)|0,i=(i=i+Math.imul(_,de)|0)+Math.imul(S,fe)|0,o=o+Math.imul(S,de)|0;var Ie=(c+(r=r+Math.imul(k,he)|0)|0)+((8191&(i=(i=i+Math.imul(k,me)|0)+Math.imul(E,he)|0))<<13)|0;c=((o=o+Math.imul(E,me)|0)+(i>>>13)|0)+(Ie>>>26)|0,Ie&=67108863,r=Math.imul(L,ne),i=(i=Math.imul(L,re))+Math.imul(z,ne)|0,o=Math.imul(z,re),r=r+Math.imul(N,oe)|0,i=(i=i+Math.imul(N,ae)|0)+Math.imul(F,oe)|0,o=o+Math.imul(F,ae)|0,r=r+Math.imul(R,ue)|0,i=(i=i+Math.imul(R,ce)|0)+Math.imul(M,ue)|0,o=o+Math.imul(M,ce)|0,r=r+Math.imul(I,fe)|0,i=(i=i+Math.imul(I,de)|0)+Math.imul(O,fe)|0,o=o+Math.imul(O,de)|0;var Oe=(c+(r=r+Math.imul(_,he)|0)|0)+((8191&(i=(i=i+Math.imul(_,me)|0)+Math.imul(S,he)|0))<<13)|0;c=((o=o+Math.imul(S,me)|0)+(i>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,r=Math.imul(L,oe),i=(i=Math.imul(L,ae))+Math.imul(z,oe)|0,o=Math.imul(z,ae),r=r+Math.imul(N,ue)|0,i=(i=i+Math.imul(N,ce)|0)+Math.imul(F,ue)|0,o=o+Math.imul(F,ce)|0,r=r+Math.imul(R,fe)|0,i=(i=i+Math.imul(R,de)|0)+Math.imul(M,fe)|0,o=o+Math.imul(M,de)|0;var Pe=(c+(r=r+Math.imul(I,he)|0)|0)+((8191&(i=(i=i+Math.imul(I,me)|0)+Math.imul(O,he)|0))<<13)|0;c=((o=o+Math.imul(O,me)|0)+(i>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,r=Math.imul(L,ue),i=(i=Math.imul(L,ce))+Math.imul(z,ue)|0,o=Math.imul(z,ce),r=r+Math.imul(N,fe)|0,i=(i=i+Math.imul(N,de)|0)+Math.imul(F,fe)|0,o=o+Math.imul(F,de)|0;var Re=(c+(r=r+Math.imul(R,he)|0)|0)+((8191&(i=(i=i+Math.imul(R,me)|0)+Math.imul(M,he)|0))<<13)|0;c=((o=o+Math.imul(M,me)|0)+(i>>>13)|0)+(Re>>>26)|0,Re&=67108863,r=Math.imul(L,fe),i=(i=Math.imul(L,de))+Math.imul(z,fe)|0,o=Math.imul(z,de);var Me=(c+(r=r+Math.imul(N,he)|0)|0)+((8191&(i=(i=i+Math.imul(N,me)|0)+Math.imul(F,he)|0))<<13)|0;c=((o=o+Math.imul(F,me)|0)+(i>>>13)|0)+(Me>>>26)|0,Me&=67108863;var Be=(c+(r=Math.imul(L,he))|0)+((8191&(i=(i=Math.imul(L,me))+Math.imul(z,he)|0))<<13)|0;return c=((o=Math.imul(z,me))+(i>>>13)|0)+(Be>>>26)|0,Be&=67108863,u[0]=ye,u[1]=ve,u[2]=ge,u[3]=be,u[4]=we,u[5]=xe,u[6]=Ae,u[7]=ke,u[8]=Ee,u[9]=Te,u[10]=_e,u[11]=Se,u[12]=Ce,u[13]=Ie,u[14]=Oe,u[15]=Pe,u[16]=Re,u[17]=Me,u[18]=Be,0!==c&&(u[19]=c,n.length++),n};function v(e,t,n){n.negative=t.negative^e.negative,n.length=e.length+t.length;for(var r=0,i=0,o=0;o<n.length-1;o++){var a=i;i=0;for(var s=67108863&r,u=Math.min(o,t.length-1),c=Math.max(0,o-e.length+1);c<=u;c++){var l=o-c,f=(0|e.words[l])*(0|t.words[c]),d=67108863&f;s=67108863&(d=d+s|0),i+=(a=(a=a+(f/67108864|0)|0)+(d>>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(e,t,n){return v(e,t,n)}function b(e,t){this.x=e,this.y=t}Math.imul||(y=m),o.prototype.mulTo=function(e,t){var n=this.length+e.length;return 10===this.length&&10===e.length?y(this,e,t):n<63?m(this,e,t):n<1024?v(this,e,t):g(this,e,t)},b.prototype.makeRBT=function(e){for(var t=new Array(e),n=o.prototype._countBits(e)-1,r=0;r<e;r++)t[r]=this.revBin(r,n,e);return t},b.prototype.revBin=function(e,t,n){if(0===e||e===n-1)return e;for(var r=0,i=0;i<t;i++)r|=(1&e)<<t-i-1,e>>=1;return r},b.prototype.permute=function(e,t,n,r,i,o){for(var a=0;a<o;a++)r[a]=t[e[a]],i[a]=n[e[a]]},b.prototype.transform=function(e,t,n,r,i,o){this.permute(o,e,t,n,r,i);for(var a=1;a<i;a<<=1)for(var s=a<<1,u=Math.cos(2*Math.PI/s),c=Math.sin(2*Math.PI/s),l=0;l<i;l+=s)for(var f=u,d=c,p=0;p<a;p++){var h=n[l+p],m=r[l+p],y=n[l+p+a],v=r[l+p+a],g=f*y-d*v;v=f*v+d*y,y=g,n[l+p]=h+y,r[l+p]=m+v,n[l+p+a]=h-y,r[l+p+a]=m-v,p!==s&&(g=u*f-c*d,d=u*d+c*f,f=g)}},b.prototype.guessLen13b=function(e,t){var n=1|Math.max(t,e),r=1&n,i=0;for(n=n/2|0;n;n>>>=1)i++;return 1<<i+1+r},b.prototype.conjugate=function(e,t,n){if(!(n<=1))for(var r=0;r<n/2;r++){var i=e[r];e[r]=e[n-r-1],e[n-r-1]=i,i=t[r],t[r]=-t[n-r-1],t[n-r-1]=-i}},b.prototype.normalize13b=function(e,t){for(var n=0,r=0;r<t/2;r++){var i=8192*Math.round(e[2*r+1]/t)+Math.round(e[2*r]/t)+n;e[r]=67108863&i,n=i<67108864?0:i/67108864|0}return e},b.prototype.convert13b=function(e,t,n,i){for(var o=0,a=0;a<t;a++)o+=0|e[a],n[2*a]=8191&o,o>>>=13,n[2*a+1]=8191&o,o>>>=13;for(a=2*t;a<i;++a)n[a]=0;r(0===o),r(0===(-8192&o))},b.prototype.stub=function(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=0;return t},b.prototype.mulp=function(e,t,n){var r=2*this.guessLen13b(e.length,t.length),i=this.makeRBT(r),o=this.stub(r),a=new Array(r),s=new Array(r),u=new Array(r),c=new Array(r),l=new Array(r),f=new Array(r),d=n.words;d.length=r,this.convert13b(e.words,e.length,a,r),this.convert13b(t.words,t.length,c,r),this.transform(a,o,s,u,r,i),this.transform(c,o,l,f,r,i);for(var p=0;p<r;p++){var h=s[p]*l[p]-u[p]*f[p];u[p]=s[p]*f[p]+u[p]*l[p],s[p]=h}return this.conjugate(s,u,r),this.transform(s,u,d,o,r,i),this.conjugate(d,o,r),this.normalize13b(d,r),n.negative=e.negative^t.negative,n.length=e.length+t.length,n._strip()},o.prototype.mul=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},o.prototype.mulf=function(e){var t=new o(null);return t.words=new Array(this.length+e.length),g(this,e,t)},o.prototype.imul=function(e){return this.clone().mulTo(e,this)},o.prototype.imuln=function(e){var t=e<0;t&&(e=-e),r("number"===typeof e),r(e<67108864);for(var n=0,i=0;i<this.length;i++){var o=(0|this.words[i])*e,a=(67108863&o)+(67108863&n);n>>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),t?this.ineg():this},o.prototype.muln=function(e){return this.clone().imuln(e)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),n=0;n<t.length;n++){var r=n/26|0,i=n%26;t[n]=e.words[r]>>>i&1}return t}(e);if(0===t.length)return new o(1);for(var n=this,r=0;r<t.length&&0===t[r];r++,n=n.sqr());if(++r<t.length)for(var i=n.sqr();r<t.length;r++,i=i.sqr())0!==t[r]&&(n=n.mul(i));return n},o.prototype.iushln=function(e){r("number"===typeof e&&e>=0);var t,n=e%26,i=(e-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(t=0;t<this.length;t++){var s=this.words[t]&o,u=(0|this.words[t])-s<<n;this.words[t]=u|a,a=s>>>26-n}a&&(this.words[t]=a,this.length++)}if(0!==i){for(t=this.length-1;t>=0;t--)this.words[t+i]=this.words[t];for(t=0;t<i;t++)this.words[t]=0;this.length+=i}return this._strip()},o.prototype.ishln=function(e){return r(0===this.negative),this.iushln(e)},o.prototype.iushrn=function(e,t,n){var i;r("number"===typeof e&&e>=0),i=t?(t-t%26)/26:0;var o=e%26,a=Math.min((e-o)/26,this.length),s=67108863^67108863>>>o<<o,u=n;if(i-=a,i=Math.max(0,i),u){for(var c=0;c<a;c++)u.words[c]=this.words[c];u.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=i);c--){var f=0|this.words[c];this.words[c]=l<<26-o|f>>>o,l=f&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(e,t,n){return r(0===this.negative),this.iushrn(e,t,n)},o.prototype.shln=function(e){return this.clone().ishln(e)},o.prototype.ushln=function(e){return this.clone().iushln(e)},o.prototype.shrn=function(e){return this.clone().ishrn(e)},o.prototype.ushrn=function(e){return this.clone().iushrn(e)},o.prototype.testn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26,i=1<<t;return!(this.length<=n)&&!!(this.words[n]&i)},o.prototype.imaskn=function(e){r("number"===typeof e&&e>=0);var t=e%26,n=(e-t)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==t&&n++,this.length=Math.min(n,this.length),0!==t){var i=67108863^67108863>>>t<<t;this.words[this.length-1]&=i}return this._strip()},o.prototype.maskn=function(e){return this.clone().imaskn(e)},o.prototype.iaddn=function(e){return r("number"===typeof e),r(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<=e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},o.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},o.prototype.isubn=function(e){if(r("number"===typeof e),r(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this._strip()},o.prototype.addn=function(e){return this.clone().iaddn(e)},o.prototype.subn=function(e){return this.clone().isubn(e)},o.prototype.iabs=function(){return this.negative=0,this},o.prototype.abs=function(){return this.clone().iabs()},o.prototype._ishlnsubmul=function(e,t,n){var i,o,a=e.length+n;this._expand(a);var s=0;for(i=0;i<e.length;i++){o=(0|this.words[i+n])+s;var u=(0|e.words[i])*t;s=((o-=67108863&u)>>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i<this.length-n;i++)s=(o=(0|this.words[i+n])+s)>>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i<this.length;i++)s=(o=-(0|this.words[i])+s)>>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(e,t){var n=(this.length,e.length),r=this.clone(),i=e,a=0|i.words[i.length-1];0!==(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==t){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c<s.length;c++)s.words[c]=0}var l=r.clone()._ishlnsubmul(i,1,u);0===l.negative&&(r=l,s&&(s.words[u]=1));for(var f=u-1;f>=0;f--){var d=67108864*(0|r.words[i.length+f])+(0|r.words[i.length+f-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,f);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,f),r.isZero()||(r.negative^=1);s&&(s.words[f]=d)}return s&&s._strip(),r._strip(),"div"!==t&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(e,t,n){return r(!e.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===e.negative?(s=this.neg().divmod(e,t),"mod"!==t&&(i=s.div.neg()),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:i,mod:a}):0===this.negative&&0!==e.negative?(s=this.divmod(e.neg(),t),"mod"!==t&&(i=s.div.neg()),{div:i,mod:s.mod}):0!==(this.negative&e.negative)?(s=this.neg().divmod(e.neg(),t),"div"!==t&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:s.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new o(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new o(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new o(this.modrn(e.words[0]))}:this._wordDiv(e,t);var i,a,s},o.prototype.div=function(e){return this.divmod(e,"div",!1).div},o.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},o.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},o.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var n=0!==t.div.negative?t.mod.isub(e):t.mod,r=e.ushrn(1),i=e.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},o.prototype.modrn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=(1<<26)%e,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%e;return t?-i:i},o.prototype.modn=function(e){return this.modrn(e)},o.prototype.idivn=function(e){var t=e<0;t&&(e=-e),r(e<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/e|0,n=o%e}return this._strip(),t?this.ineg():this},o.prototype.divn=function(e){return this.clone().idivn(e)},o.prototype.egcd=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;t.isEven()&&n.isEven();)t.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),f=t.clone();!t.isZero();){for(var d=0,p=1;0===(t.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(t.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(f)),i.iushrn(1),a.iushrn(1);for(var h=0,m=1;0===(n.words[0]&m)&&h<26;++h,m<<=1);if(h>0)for(n.iushrn(h);h-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(f)),s.iushrn(1),u.iushrn(1);t.cmp(n)>=0?(t.isub(n),i.isub(s),a.isub(u)):(n.isub(t),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(e){r(0===e.negative),r(!e.isZero());var t=this,n=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();t.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0===(t.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(t.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var f=0,d=1;0===(n.words[0]&d)&&f<26;++f,d<<=1);if(f>0)for(n.iushrn(f);f-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);t.cmp(n)>=0?(t.isub(n),a.isub(s)):(n.isub(t),s.isub(a))}return(i=0===t.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(e),i},o.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),n=e.clone();t.negative=0,n.negative=0;for(var r=0;t.isEven()&&n.isEven();r++)t.iushrn(1),n.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=t.cmp(n);if(i<0){var o=t;t=n,n=o}else if(0===i||0===n.cmpn(1))break;t.isub(n)}return n.iushln(r)},o.prototype.invm=function(e){return this.egcd(e).a.umod(e)},o.prototype.isEven=function(){return 0===(1&this.words[0])},o.prototype.isOdd=function(){return 1===(1&this.words[0])},o.prototype.andln=function(e){return this.words[0]&e},o.prototype.bincn=function(e){r("number"===typeof e);var t=e%26,n=(e-t)/26,i=1<<t;if(this.length<=n)return this._expand(n+1),this.words[n]|=i,this;for(var o=i,a=n;0!==o&&a<this.length;a++){var s=0|this.words[a];o=(s+=o)>>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(e){var t,n=e<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)t=1;else{n&&(e=-e),r(e<=67108863,"Number is too big");var i=0|this.words[0];t=i===e?0:i<e?-1:1}return 0!==this.negative?0|-t:t},o.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},o.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,n=this.length-1;n>=0;n--){var r=0|this.words[n],i=0|e.words[n];if(r!==i){r<i?t=-1:r>i&&(t=1);break}}return t},o.prototype.gtn=function(e){return 1===this.cmpn(e)},o.prototype.gt=function(e){return 1===this.cmp(e)},o.prototype.gten=function(e){return this.cmpn(e)>=0},o.prototype.gte=function(e){return this.cmp(e)>=0},o.prototype.ltn=function(e){return-1===this.cmpn(e)},o.prototype.lt=function(e){return-1===this.cmp(e)},o.prototype.lten=function(e){return this.cmpn(e)<=0},o.prototype.lte=function(e){return this.cmp(e)<=0},o.prototype.eqn=function(e){return 0===this.cmpn(e)},o.prototype.eq=function(e){return 0===this.cmp(e)},o.red=function(e){return new _(e)},o.prototype.toRed=function(e){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(e){return this.red=e,this},o.prototype.forceRed=function(e){return r(!this.red,"Already a number in reduction context"),this._forceRed(e)},o.prototype.redAdd=function(e){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},o.prototype.redIAdd=function(e){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},o.prototype.redSub=function(e){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},o.prototype.redISub=function(e){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},o.prototype.redShl=function(e){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},o.prototype.redMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},o.prototype.redIMul=function(e){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(e){return r(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var w={k256:null,p224:null,p192:null,p25519:null};function x(e,t){this.name=e,this.p=new o(t,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function A(){x.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){x.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function E(){x.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){x.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function _(e){if("string"===typeof e){var t=o._prime(e);this.m=t.p,this.prime=t}else r(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){_.call(this,e),this.shift=this.m.bitLength(),this.shift%26!==0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}x.prototype._tmp=function(){var e=new o(null);return e.words=new Array(Math.ceil(this.n/13)),e},x.prototype.ireduce=function(e){var t,n=e;do{this.split(n,this.tmp),t=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(t>this.n);var r=t<this.n?-1:n.ucmp(this.p);return 0===r?(n.words[0]=0,n.length=1):r>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},x.prototype.split=function(e,t){e.iushrn(this.n,0,t)},x.prototype.imulK=function(e){return e.imul(this.k)},i(A,x),A.prototype.split=function(e,t){for(var n=4194303,r=Math.min(e.length,9),i=0;i<r;i++)t.words[i]=e.words[i];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=o&n,i=10;i<e.length;i++){var a=0|e.words[i];e.words[i-10]=(a&n)<<4|o>>>22,o=a}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},A.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,n=0;n<e.length;n++){var r=0|e.words[n];t+=977*r,e.words[n]=67108863&t,t=64*r+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},i(k,x),i(E,x),i(T,x),T.prototype.imulK=function(e){for(var t=0,n=0;n<e.length;n++){var r=19*(0|e.words[n])+t,i=67108863&r;r>>>=26,e.words[n]=i,t=r}return 0!==t&&(e.words[e.length++]=t),e},o._prime=function(e){if(w[e])return w[e];var t;if("k256"===e)t=new A;else if("p224"===e)t=new k;else if("p192"===e)t=new E;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return w[e]=t,t},_.prototype._verify1=function(e){r(0===e.negative,"red works only with positives"),r(e.red,"red works only with red numbers")},_.prototype._verify2=function(e,t){r(0===(e.negative|t.negative),"red works only with positives"),r(e.red&&e.red===t.red,"red works only with red numbers")},_.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},_.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},_.prototype.add=function(e,t){this._verify2(e,t);var n=e.add(t);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},_.prototype.iadd=function(e,t){this._verify2(e,t);var n=e.iadd(t);return n.cmp(this.m)>=0&&n.isub(this.m),n},_.prototype.sub=function(e,t){this._verify2(e,t);var n=e.sub(t);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},_.prototype.isub=function(e,t){this._verify2(e,t);var n=e.isub(t);return n.cmpn(0)<0&&n.iadd(this.m),n},_.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},_.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},_.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},_.prototype.isqr=function(e){return this.imul(e,e.clone())},_.prototype.sqr=function(e){return this.mul(e,e)},_.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(r(t%2===1),3===t){var n=this.m.add(new o(1)).iushrn(2);return this.pow(e,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var f=this.pow(l,i),d=this.pow(e,i.addn(1).iushrn(1)),p=this.pow(e,i),h=a;0!==p.cmp(s);){for(var m=p,y=0;0!==m.cmp(s);y++)m=m.redSqr();r(y<h);var v=this.pow(f,new o(1).iushln(h-y-1));d=d.redMul(v),f=v.redSqr(),p=p.redMul(f),h=y}return d},_.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},_.prototype.pow=function(e,t){if(t.isZero())return new o(1).toRed(this);if(0===t.cmpn(1))return e.clone();var n=new Array(16);n[0]=new o(1).toRed(this),n[1]=e;for(var r=2;r<n.length;r++)n[r]=this.mul(n[r-1],e);var i=n[0],a=0,s=0,u=t.bitLength()%26;for(0===u&&(u=26),r=t.length-1;r>=0;r--){for(var c=t.words[r],l=u-1;l>=0;l--){var f=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==f||0!==a?(a<<=1,a|=f,(4===++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},_.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},_.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},o.mont=function(e){return new S(e)},i(S,_),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new o(0)._forceRed(this);var n=e.mul(t),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e=n.nmd(e),this)},55509:function(e,t,n){var r=n(40712).Buffer;e.exports=function(e){for(var t=new r(e.length),n=0,i=e.length-1;n<=i;++n,--i)t[n]=e[i],t[i]=e[n];return t}},40712:function(e,t,n){"use strict";var r=n(62638).default,i=n(1023).default,o=n(56121).default,a=n(40126).default,s=n(72077).default,u=n(58933),c=n(75725),l="function"===typeof Symbol&&"function"===typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=p,t.SlowBuffer=function(e){+e!=e&&(e=0);return p.alloc(+e)},t.INSPECT_MAX_BYTES=50;var f=2147483647;function d(e){if(e>f)throw new RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,p.prototype),t}function p(e,t,n){if("number"===typeof e){if("string"===typeof t)throw new TypeError('The "string" argument must be of type string. Received type number');return y(e)}return h(e,t,n)}function h(e,t,n){if("string"===typeof e)return function(e,t){"string"===typeof t&&""!==t||(t="utf8");if(!p.isEncoding(t))throw new TypeError("Unknown encoding: "+t);var n=0|w(e,t),r=d(n),i=r.write(e,t);i!==n&&(r=r.slice(0,i));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(ee(e,Uint8Array)){var t=new Uint8Array(e);return g(t.buffer,t.byteOffset,t.byteLength)}return v(e)}(e);if(null==e)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(ee(e,ArrayBuffer)||e&&ee(e.buffer,ArrayBuffer))return g(e,t,n);if("undefined"!==typeof SharedArrayBuffer&&(ee(e,SharedArrayBuffer)||e&&ee(e.buffer,SharedArrayBuffer)))return g(e,t,n);if("number"===typeof e)throw new TypeError('The "value" argument must not be of type number. Received type number');var r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return p.from(r,t,n);var i=function(e){if(p.isBuffer(e)){var t=0|b(e.length),n=d(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return"number"!==typeof e.length||te(e.length)?d(0):v(e);if("Buffer"===e.type&&Array.isArray(e.data))return v(e.data)}(e);if(i)return i;if("undefined"!==typeof Symbol&&null!=Symbol.toPrimitive&&"function"===typeof e[Symbol.toPrimitive])return p.from(e[Symbol.toPrimitive]("string"),t,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function m(e){if("number"!==typeof e)throw new TypeError('"size" argument must be of type number');if(e<0)throw new RangeError('The value "'+e+'" is invalid for option "size"')}function y(e){return m(e),d(e<0?0:0|b(e))}function v(e){for(var t=e.length<0?0:0|b(e.length),n=d(t),r=0;r<t;r+=1)n[r]=255&e[r];return n}function g(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('"length" is outside of buffer bounds');var r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,p.prototype),r}function b(e){if(e>=f)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+f.toString(16)+" bytes");return 0|e}function w(e,t){if(p.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||ee(e,ArrayBuffer))return e.byteLength;if("string"!==typeof e)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return Y(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return $(e).length;default:if(i)return r?-1:Y(e).length;t=(""+t).toLowerCase(),i=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return N(this,t,n);case"utf8":case"utf-8":return P(this,t,n);case"ascii":return M(this,t,n);case"latin1":case"binary":return B(this,t,n);case"base64":return O(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return F(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function A(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function k(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),te(n=+n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=p.from(t,r)),p.isBuffer(t))return 0===t.length?-1:E(e,t,n,r,i);if("number"===typeof t)return t&=255,"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):E(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function E(e,t,n,r,i){var o,a=1,s=e.length,u=t.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var l=-1;for(o=n;o<s;o++)if(c(e,o)===c(t,-1===l?0:o-l)){if(-1===l&&(l=o),o-l+1===u)return l*a}else-1!==l&&(o-=o-l),l=-1}else for(n+u>s&&(n=s-u),o=n;o>=0;o--){for(var f=!0,d=0;d<u;d++)if(c(e,o+d)!==c(t,d)){f=!1;break}if(f)return o}return-1}function T(e,t,n,r){n=Number(n)||0;var i=e.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o,a=t.length;for(r>a/2&&(r=a/2),o=0;o<r;++o){var s=parseInt(t.substr(2*o,2),16);if(te(s))return o;e[n+o]=s}return o}function _(e,t,n,r){return Q(Y(t,e.length-n),e,n,r)}function S(e,t,n,r){return Q(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function C(e,t,n,r){return Q($(t),e,n,r)}function I(e,t,n,r){return Q(function(e,t){for(var n,r,i,o=[],a=0;a<e.length&&!((t-=2)<0);++a)r=(n=e.charCodeAt(a))>>8,i=n%256,o.push(i),o.push(r);return o}(t,e.length-n),e,n,r)}function O(e,t,n){return 0===t&&n===e.length?u.fromByteArray(e):u.fromByteArray(e.slice(t,n))}function P(e,t,n){n=Math.min(e.length,n);for(var r=[],i=t;i<n;){var o=e[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u=void 0,c=void 0,l=void 0,f=void 0;switch(s){case 1:o<128&&(a=o);break;case 2:128===(192&(u=e[i+1]))&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=e[i+1],c=e[i+2],128===(192&u)&&128===(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=e[i+1],c=e[i+2],l=e[i+3],128===(192&u)&&128===(192&c)&&128===(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return function(e){var t=e.length;if(t<=R)return String.fromCharCode.apply(String,e);var n="",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=R));return n}(r)}t.kMaxLength=f,p.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(n){return!1}}(),p.TYPED_ARRAY_SUPPORT||"undefined"===typeof console||"function"!==typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(p.prototype,"parent",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.buffer}}),Object.defineProperty(p.prototype,"offset",{enumerable:!0,get:function(){if(p.isBuffer(this))return this.byteOffset}}),p.poolSize=8192,p.from=function(e,t,n){return h(e,t,n)},Object.setPrototypeOf(p.prototype,Uint8Array.prototype),Object.setPrototypeOf(p,Uint8Array),p.alloc=function(e,t,n){return function(e,t,n){return m(e),e<=0?d(e):void 0!==t?"string"===typeof n?d(e).fill(t,n):d(e).fill(t):d(e)}(e,t,n)},p.allocUnsafe=function(e){return y(e)},p.allocUnsafeSlow=function(e){return y(e)},p.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==p.prototype},p.compare=function(e,t){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),ee(t,Uint8Array)&&(t=p.from(t,t.offset,t.byteLength)),!p.isBuffer(e)||!p.isBuffer(t))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i<o;++i)if(e[i]!==t[i]){n=e[i],r=t[i];break}return n<r?-1:r<n?1:0},p.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},p.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return p.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var r=p.allocUnsafe(t),i=0;for(n=0;n<e.length;++n){var o=e[n];if(ee(o,Uint8Array))i+o.length>r.length?(p.isBuffer(o)||(o=p.from(o)),o.copy(r,i)):Uint8Array.prototype.set.call(r,o,i);else{if(!p.isBuffer(o))throw new TypeError('"list" argument must be an Array of Buffers');o.copy(r,i)}i+=o.length}return r},p.byteLength=w,p.prototype._isBuffer=!0,p.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)A(this,t,t+1);return this},p.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)A(this,t,t+3),A(this,t+1,t+2);return this},p.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)A(this,t,t+7),A(this,t+1,t+6),A(this,t+2,t+5),A(this,t+3,t+4);return this},p.prototype.toString=function(){var e=this.length;return 0===e?"":0===arguments.length?P(this,0,e):x.apply(this,arguments)},p.prototype.toLocaleString=p.prototype.toString,p.prototype.equals=function(e){if(!p.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===p.compare(this,e)},p.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,n).replace(/(.{2})/g,"$1 ").trim(),this.length>n&&(e+=" ... "),"<Buffer "+e+">"},l&&(p.prototype[l]=p.prototype.inspect),p.prototype.compare=function(e,t,n,r,i){if(ee(e,Uint8Array)&&(e=p.from(e,e.offset,e.byteLength)),!p.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(this===e)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(t>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=e.slice(t,n),l=0;l<s;++l)if(u[l]!==c[l]){o=u[l],a=c[l];break}return o<a?-1:a<o?1:0},p.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},p.prototype.indexOf=function(e,t,n){return k(this,e,t,n,!0)},p.prototype.lastIndexOf=function(e,t,n){return k(this,e,t,n,!1)},p.prototype.write=function(e,t,n,r){if(void 0===t)r="utf8",n=this.length,t=0;else if(void 0===n&&"string"===typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-t;if((void 0===n||n>i)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return T(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":case"latin1":case"binary":return S(this,e,t,n);case"base64":return C(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return I(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},p.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var R=4096;function M(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(127&e[i]);return r}function B(e,t,n){var r="";n=Math.min(e.length,n);for(var i=t;i<n;++i)r+=String.fromCharCode(e[i]);return r}function N(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=t;o<n;++o)i+=ne[e[o]];return i}function F(e,t,n){for(var r=e.slice(t,n),i="",o=0;o<r.length-1;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function D(e,t,n){if(e%1!==0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function L(e,t,n,r,i,o){if(!p.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||t<o)throw new RangeError('"value" argument is out of bounds');if(n+r>e.length)throw new RangeError("Index out of range")}function z(e,t,n,r,i){W(t,r,i,e,n,7);var o=Number(t&BigInt(4294967295));e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o,o>>=8,e[n++]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,a>>=8,e[n++]=a,n}function j(e,t,n,r,i){W(t,r,i,e,n,7);var o=Number(t&BigInt(4294967295));e[n+7]=o,o>>=8,e[n+6]=o,o>>=8,e[n+5]=o,o>>=8,e[n+4]=o;var a=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=a,a>>=8,e[n+2]=a,a>>=8,e[n+1]=a,a>>=8,e[n]=a,n+8}function U(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Z(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,4),c.write(e,t,n,r,23,4),n+4}function q(e,t,n,r,i){return t=+t,n>>>=0,i||U(e,0,n,8),c.write(e,t,n,r,52,8),n+8}p.prototype.slice=function(e,t){var n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);var r=this.subarray(e,t);return Object.setPrototypeOf(r,p.prototype),r},p.prototype.readUintLE=p.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r},p.prototype.readUintBE=p.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e+--t],i=1;t>0&&(i*=256);)r+=this[e+--t]*i;return r},p.prototype.readUint8=p.prototype.readUInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),this[e]},p.prototype.readUint16LE=p.prototype.readUInt16LE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]|this[e+1]<<8},p.prototype.readUint16BE=p.prototype.readUInt16BE=function(e,t){return e>>>=0,t||D(e,2,this.length),this[e]<<8|this[e+1]},p.prototype.readUint32LE=p.prototype.readUInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},p.prototype.readUint32BE=p.prototype.readUInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},p.prototype.readBigUInt64LE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);var r=t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24),i=this[++e]+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+n*Math.pow(2,24);return BigInt(r)+(BigInt(i)<<BigInt(32))})),p.prototype.readBigUInt64BE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);var r=t*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e],i=this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n;return(BigInt(r)<<BigInt(32))+BigInt(i)})),p.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=this[e],i=1,o=0;++o<t&&(i*=256);)r+=this[e+o]*i;return r>=(i*=128)&&(r-=Math.pow(2,8*t)),r},p.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||D(e,t,this.length);for(var r=t,i=1,o=this[e+--r];r>0&&(i*=256);)o+=this[e+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*t)),o},p.prototype.readInt8=function(e,t){return e>>>=0,t||D(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},p.prototype.readInt16LE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt16BE=function(e,t){e>>>=0,t||D(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},p.prototype.readInt32LE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},p.prototype.readInt32BE=function(e,t){return e>>>=0,t||D(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},p.prototype.readBigInt64LE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);var r=this[e+4]+this[e+5]*Math.pow(2,8)+this[e+6]*Math.pow(2,16)+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+this[++e]*Math.pow(2,8)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,24))})),p.prototype.readBigInt64BE=re((function(e){K(e>>>=0,"offset");var t=this[e],n=this[e+7];void 0!==t&&void 0!==n||J(e,this.length-8);var r=(t<<24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*Math.pow(2,24)+this[++e]*Math.pow(2,16)+this[++e]*Math.pow(2,8)+n)})),p.prototype.readFloatLE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!0,23,4)},p.prototype.readFloatBE=function(e,t){return e>>>=0,t||D(e,4,this.length),c.read(this,e,!1,23,4)},p.prototype.readDoubleLE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!0,52,8)},p.prototype.readDoubleBE=function(e,t){return e>>>=0,t||D(e,8,this.length),c.read(this,e,!1,52,8)},p.prototype.writeUintLE=p.prototype.writeUIntLE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[t]=255&e;++o<n&&(i*=256);)this[t+o]=e/i&255;return t+n},p.prototype.writeUintBE=p.prototype.writeUIntBE=function(e,t,n,r){(e=+e,t>>>=0,n>>>=0,r)||L(this,e,t,n,Math.pow(2,8*n)-1,0);var i=n-1,o=1;for(this[t+i]=255&e;--i>=0&&(o*=256);)this[t+i]=e/o&255;return t+n},p.prototype.writeUint8=p.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,255,0),this[t]=255&e,t+1},p.prototype.writeUint16LE=p.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeUint16BE=p.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeUint32LE=p.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},p.prototype.writeUint32BE=p.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigUInt64LE=re((function(e){return z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeBigUInt64BE=re((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,BigInt(0),BigInt("0xffffffffffffffff"))})),p.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;for(this[t]=255&e;++o<n&&(a*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},p.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){var i=Math.pow(2,8*n-1);L(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[t+o]=255&e;--o>=0&&(a*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},p.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},p.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},p.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},p.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},p.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||L(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},p.prototype.writeBigInt64LE=re((function(e){return z(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeBigInt64BE=re((function(e){return j(this,e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),p.prototype.writeFloatLE=function(e,t,n){return Z(this,e,t,!0,n)},p.prototype.writeFloatBE=function(e,t,n){return Z(this,e,t,!1,n)},p.prototype.writeDoubleLE=function(e,t,n){return q(this,e,t,!0,n)},p.prototype.writeDoubleBE=function(e,t,n){return q(this,e,t,!1,n)},p.prototype.copy=function(e,t,n,r){if(!p.isBuffer(e))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;return this===e&&"function"===typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),i},p.prototype.fill=function(e,t,n,r){if("string"===typeof e){if("string"===typeof t?(r=t,t=0,n=this.length):"string"===typeof n&&(r=n,n=this.length),void 0!==r&&"string"!==typeof r)throw new TypeError("encoding must be a string");if("string"===typeof r&&!p.isEncoding(r))throw new TypeError("Unknown encoding: "+r);if(1===e.length){var i=e.charCodeAt(0);("utf8"===r&&i<128||"latin1"===r)&&(e=i)}}else"number"===typeof e?e&=255:"boolean"===typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o<n;++o)this[o]=e;else{var a=p.isBuffer(e)?e:p.from(e,r),s=a.length;if(0===s)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(o=0;o<n-t;++o)this[o+t]=a[o%s]}return this};var H={};function V(e,t,n){H[e]=function(n){a(c,n);var u=s(c);function c(){var n;return r(this,c),n=u.call(this),Object.defineProperty(o(n),"message",{value:t.apply(o(n),arguments),writable:!0,configurable:!0}),n.name="".concat(n.name," [").concat(e,"]"),n.stack,delete n.name,n}return i(c,[{key:"code",get:function(){return e},set:function(e){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:e,writable:!0})}},{key:"toString",value:function(){return"".concat(this.name," [").concat(e,"]: ").concat(this.message)}}]),c}(n)}function G(e){for(var t="",n=e.length,r="-"===e[0]?1:0;n>=r+4;n-=3)t="_".concat(e.slice(n-3,n)).concat(t);return"".concat(e.slice(0,n)).concat(t)}function W(e,t,n,r,i,o){if(e>n||e<t){var a,s="bigint"===typeof t?"n":"";throw a=o>3?0===t||t===BigInt(0)?">= 0".concat(s," and < 2").concat(s," ** ").concat(8*(o+1)).concat(s):">= -(2".concat(s," ** ").concat(8*(o+1)-1).concat(s,") and < 2 ** ")+"".concat(8*(o+1)-1).concat(s):">= ".concat(t).concat(s," and <= ").concat(n).concat(s),new H.ERR_OUT_OF_RANGE("value",a,e)}!function(e,t,n){K(t,"offset"),void 0!==e[t]&&void 0!==e[t+n]||J(t,e.length-(n+1))}(r,i,o)}function K(e,t){if("number"!==typeof e)throw new H.ERR_INVALID_ARG_TYPE(t,"number",e)}function J(e,t,n){if(Math.floor(e)!==e)throw K(e,n),new H.ERR_OUT_OF_RANGE(n||"offset","an integer",e);if(t<0)throw new H.ERR_BUFFER_OUT_OF_BOUNDS;throw new H.ERR_OUT_OF_RANGE(n||"offset",">= ".concat(n?1:0," and <= ").concat(t),e)}V("ERR_BUFFER_OUT_OF_BOUNDS",(function(e){return e?"".concat(e," is outside of buffer bounds"):"Attempt to access memory outside buffer bounds"}),RangeError),V("ERR_INVALID_ARG_TYPE",(function(e,t){return'The "'.concat(e,'" argument must be of type number. Received type ').concat(typeof t)}),TypeError),V("ERR_OUT_OF_RANGE",(function(e,t,n){var r='The value of "'.concat(e,'" is out of range.'),i=n;return Number.isInteger(n)&&Math.abs(n)>Math.pow(2,32)?i=G(String(n)):"bigint"===typeof n&&(i=String(n),(n>Math.pow(BigInt(2),BigInt(32))||n<-Math.pow(BigInt(2),BigInt(32)))&&(i=G(i)),i+="n"),r+=" It must be ".concat(t,". Received ").concat(i)}),RangeError);var X=/[^+/0-9A-Za-z-_]/g;function Y(e,t){var n;t=t||1/0;for(var r=e.length,i=null,o=[],a=0;a<r;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function $(e){return u.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(X,"")).length<2)return"";for(;e.length%4!==0;)e+="=";return e}(e))}function Q(e,t,n,r){var i;for(i=0;i<r&&!(i+n>=t.length||i>=e.length);++i)t[i+n]=e[i];return i}function ee(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function te(e){return e!==e}var ne=function(){for(var e="0123456789abcdef",t=new Array(256),n=0;n<16;++n)for(var r=16*n,i=0;i<16;++i)t[r+i]=e[n]+e[i];return t}();function re(e){return"undefined"===typeof BigInt?ie:e}function ie(){throw new Error("BigInt not supported")}},12985:function(e,t,n){"use strict";var r=n(80195),i=n(85677),o=i(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"===typeof n&&o(e,".prototype.")>-1?i(n):n}},85677:function(e,t,n){"use strict";var r=n(17360),i=n(80195),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(d){c=null}e.exports=function(e){var t=s(r,a,arguments);u&&c&&(u(t,"length").configurable&&c(t,"length",{value:1+l(0,e.length-(arguments.length-1))}));return t};var f=function(){return s(r,o,arguments)};c?c(e.exports,"apply",{value:f}):e.exports.apply=f},59279:function(e,t,n){var r;!function(i){"use strict";var o,a=1e9,s={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},u=!0,c="[DecimalError] ",l=c+"Invalid argument: ",f=c+"Exponent out of range: ",d=Math.floor,p=Math.pow,h=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,m=1e7,y=7,v=9007199254740991,g=d(v/y),b={};function w(e,t){var n,r,i,o,a,s,c,l,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),u?O(t,d):t;if(c=e.d,l=t.d,a=e.e,i=t.e,c=c.slice(),o=a-i){for(o<0?(r=c,o=-o,s=l.length):(r=l,i=a,s=c.length),o>(s=(a=Math.ceil(d/y))>s?a+1:s+1)&&(o=s,r.length=1),r.reverse();o--;)r.push(0);r.reverse()}for((s=c.length)-(o=l.length)<0&&(o=s,r=l,l=c,c=r),n=0;o;)n=(c[--o]=c[o]+l[o]+n)/m|0,c[o]%=m;for(n&&(c.unshift(n),++i),s=c.length;0==c[--s];)c.pop();return t.d=c,t.e=i,u?O(t,d):t}function x(e,t,n){if(e!==~~e||e<t||e>n)throw Error(l+e)}function A(e){var t,n,r,i=e.length-1,o="",a=e[0];if(i>0){for(o+=a,t=1;t<i;t++)r=e[t]+"",(n=y-r.length)&&(o+=S(n)),o+=r;a=e[t],(n=y-(r=a+"").length)&&(o+=S(n))}else if(0===a)return"0";for(;a%10===0;)a/=10;return o+a}b.absoluteValue=b.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e},b.comparedTo=b.cmp=function(e){var t,n,r,i,o=this;if(e=new o.constructor(e),o.s!==e.s)return o.s||-e.s;if(o.e!==e.e)return o.e>e.e^o.s<0?1:-1;for(t=0,n=(r=o.d.length)<(i=e.d.length)?r:i;t<n;++t)if(o.d[t]!==e.d[t])return o.d[t]>e.d[t]^o.s<0?1:-1;return r===i?0:r>i^o.s<0?1:-1},b.decimalPlaces=b.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*y;if(t=e.d[t])for(;t%10==0;t/=10)n--;return n<0?0:n},b.dividedBy=b.div=function(e){return k(this,new this.constructor(e))},b.dividedToIntegerBy=b.idiv=function(e){var t=this.constructor;return O(k(this,new t(e),0,1),t.precision)},b.equals=b.eq=function(e){return!this.cmp(e)},b.exponent=function(){return T(this)},b.greaterThan=b.gt=function(e){return this.cmp(e)>0},b.greaterThanOrEqualTo=b.gte=function(e){return this.cmp(e)>=0},b.isInteger=b.isint=function(){return this.e>this.d.length-2},b.isNegative=b.isneg=function(){return this.s<0},b.isPositive=b.ispos=function(){return this.s>0},b.isZero=function(){return 0===this.s},b.lessThan=b.lt=function(e){return this.cmp(e)<0},b.lessThanOrEqualTo=b.lte=function(e){return this.cmp(e)<1},b.logarithm=b.log=function(e){var t,n=this,r=n.constructor,i=r.precision,a=i+5;if(void 0===e)e=new r(10);else if((e=new r(e)).s<1||e.eq(o))throw Error(c+"NaN");if(n.s<1)throw Error(c+(n.s?"NaN":"-Infinity"));return n.eq(o)?new r(0):(u=!1,t=k(C(n,a),C(e,a),a),u=!0,O(t,i))},b.minus=b.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?P(t,e):w(t,(e.s=-e.s,e))},b.modulo=b.mod=function(e){var t,n=this,r=n.constructor,i=r.precision;if(!(e=new r(e)).s)throw Error(c+"NaN");return n.s?(u=!1,t=k(n,e,0,1).times(e),u=!0,n.minus(t)):O(new r(n),i)},b.naturalExponential=b.exp=function(){return E(this)},b.naturalLogarithm=b.ln=function(){return C(this)},b.negated=b.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e},b.plus=b.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?w(t,e):P(t,(e.s=-e.s,e))},b.precision=b.sd=function(e){var t,n,r,i=this;if(void 0!==e&&e!==!!e&&1!==e&&0!==e)throw Error(l+e);if(t=T(i)+1,n=(r=i.d.length-1)*y+1,r=i.d[r]){for(;r%10==0;r/=10)n--;for(r=i.d[0];r>=10;r/=10)n++}return e&&t>n?t:n},b.squareRoot=b.sqrt=function(){var e,t,n,r,i,o,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(c+"NaN")}for(e=T(s),u=!1,0==(i=Math.sqrt(+s))||i==1/0?(((t=A(s.d)).length+e)%2==0&&(t+="0"),i=Math.sqrt(t),e=d((e+1)/2)-(e<0||e%2),r=new l(t=i==1/0?"5e"+e:(t=i.toExponential()).slice(0,t.indexOf("e")+1)+e)):r=new l(i.toString()),i=a=(n=l.precision)+3;;)if(r=(o=r).plus(k(s,o,a+2)).times(.5),A(o.d).slice(0,a)===(t=A(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),i==a&&"4999"==t){if(O(o,n+1,0),o.times(o).eq(s)){r=o;break}}else if("9999"!=t)break;a+=4}return u=!0,O(r,n)},b.times=b.mul=function(e){var t,n,r,i,o,a,s,c,l,f=this,d=f.constructor,p=f.d,h=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,(c=p.length)<(l=h.length)&&(o=p,p=h,h=o,a=c,c=l,l=a),o=[],r=a=c+l;r--;)o.push(0);for(r=l;--r>=0;){for(t=0,i=c+r;i>r;)s=o[i]+h[r]*p[i-r-1]+t,o[i--]=s%m|0,t=s/m|0;o[i]=(o[i]+t)%m|0}for(;!o[--a];)o.pop();return t?++n:o.shift(),e.d=o,e.e=n,u?O(e,d.precision):e},b.toDecimalPlaces=b.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),void 0===e?n:(x(e,0,a),void 0===t?t=r.rounding:x(t,0,8),O(n,e+T(n)+1,t))},b.toExponential=function(e,t){var n,r=this,i=r.constructor;return void 0===e?n=R(r,!0):(x(e,0,a),void 0===t?t=i.rounding:x(t,0,8),n=R(r=O(new i(r),e+1,t),!0,e+1)),n},b.toFixed=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?R(i):(x(e,0,a),void 0===t?t=o.rounding:x(t,0,8),n=R((r=O(new o(i),e+T(i)+1,t)).abs(),!1,e+T(r)+1),i.isneg()&&!i.isZero()?"-"+n:n)},b.toInteger=b.toint=function(){var e=this,t=e.constructor;return O(new t(e),T(e)+1,t.rounding)},b.toNumber=function(){return+this},b.toPower=b.pow=function(e){var t,n,r,i,a,s,l=this,f=l.constructor,p=+(e=new f(e));if(!e.s)return new f(o);if(!(l=new f(l)).s){if(e.s<1)throw Error(c+"Infinity");return l}if(l.eq(o))return l;if(r=f.precision,e.eq(o))return O(l,r);if(s=(t=e.e)>=(n=e.d.length-1),a=l.s,s){if((n=p<0?-p:p)<=v){for(i=new f(o),t=Math.ceil(r/y+4),u=!1;n%2&&M((i=i.times(l)).d,t),0!==(n=d(n/2));)M((l=l.times(l)).d,t);return u=!0,e.s<0?new f(o).div(i):O(i,r)}}else if(a<0)throw Error(c+"NaN");return a=a<0&&1&e.d[Math.max(t,n)]?-1:1,l.s=1,u=!1,i=e.times(C(l,r+12)),u=!0,(i=E(i)).s=a,i},b.toPrecision=function(e,t){var n,r,i=this,o=i.constructor;return void 0===e?r=R(i,(n=T(i))<=o.toExpNeg||n>=o.toExpPos):(x(e,1,a),void 0===t?t=o.rounding:x(t,0,8),r=R(i=O(new o(i),e,t),e<=(n=T(i))||n<=o.toExpNeg,e)),r},b.toSignificantDigits=b.tosd=function(e,t){var n=this.constructor;return void 0===e?(e=n.precision,t=n.rounding):(x(e,1,a),void 0===t?t=n.rounding:x(t,0,8)),O(new n(this),e,t)},b.toString=b.valueOf=b.val=b.toJSON=function(){var e=this,t=T(e),n=e.constructor;return R(e,t<=n.toExpNeg||t>=n.toExpPos)};var k=function(){function e(e,t){var n,r=0,i=e.length;for(e=e.slice();i--;)n=e[i]*t+r,e[i]=n%m|0,r=n/m|0;return r&&e.unshift(r),e}function t(e,t,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;i<n;i++)if(e[i]!=t[i]){o=e[i]>t[i]?1:-1;break}return o}function n(e,t,n){for(var r=0;n--;)e[n]-=r,r=e[n]<t[n]?1:0,e[n]=r*m+e[n]-t[n];for(;!e[0]&&e.length>1;)e.shift()}return function(r,i,o,a){var s,u,l,f,d,p,h,v,g,b,w,x,A,k,E,_,S,C,I=r.constructor,P=r.s==i.s?1:-1,R=r.d,M=i.d;if(!r.s)return new I(r);if(!i.s)throw Error(c+"Division by zero");for(u=r.e-i.e,S=M.length,E=R.length,v=(h=new I(P)).d=[],l=0;M[l]==(R[l]||0);)++l;if(M[l]>(R[l]||0)&&--u,(x=null==o?o=I.precision:a?o+(T(r)-T(i))+1:o)<0)return new I(0);if(x=x/y+2|0,l=0,1==S)for(f=0,M=M[0],x++;(l<E||f)&&x--;l++)A=f*m+(R[l]||0),v[l]=A/M|0,f=A%M|0;else{for((f=m/(M[0]+1)|0)>1&&(M=e(M,f),R=e(R,f),S=M.length,E=R.length),k=S,b=(g=R.slice(0,S)).length;b<S;)g[b++]=0;(C=M.slice()).unshift(0),_=M[0],M[1]>=m/2&&++_;do{f=0,(s=t(M,g,S,b))<0?(w=g[0],S!=b&&(w=w*m+(g[1]||0)),(f=w/_|0)>1?(f>=m&&(f=m-1),1==(s=t(d=e(M,f),g,p=d.length,b=g.length))&&(f--,n(d,S<p?C:M,p))):(0==f&&(s=f=1),d=M.slice()),(p=d.length)<b&&d.unshift(0),n(g,d,b),-1==s&&(s=t(M,g,S,b=g.length))<1&&(f++,n(g,S<b?C:M,b)),b=g.length):0===s&&(f++,g=[0]),v[l++]=f,s&&g[0]?g[b++]=R[k]||0:(g=[R[k]],b=1)}while((k++<E||void 0!==g[0])&&x--)}return v[0]||v.shift(),h.e=u,O(h,a?o+T(h)+1:o)}}();function E(e,t){var n,r,i,a,s,c=0,l=0,d=e.constructor,h=d.precision;if(T(e)>16)throw Error(f+T(e));if(!e.s)return new d(o);for(null==t?(u=!1,s=h):s=t,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),l+=5;for(s+=Math.log(p(2,l))/Math.LN10*2+5|0,n=r=i=new d(o),d.precision=s;;){if(r=O(r.times(e),s),n=n.times(++c),A((a=i.plus(k(r,n,s))).d).slice(0,s)===A(i.d).slice(0,s)){for(;l--;)i=O(i.times(i),s);return d.precision=h,null==t?(u=!0,O(i,h)):i}i=a}}function T(e){for(var t=e.e*y,n=e.d[0];n>=10;n/=10)t++;return t}function _(e,t,n){if(t>e.LN10.sd())throw u=!0,n&&(e.precision=n),Error(c+"LN10 precision limit exceeded");return O(new e(e.LN10),t)}function S(e){for(var t="";e--;)t+="0";return t}function C(e,t){var n,r,i,a,s,l,f,d,p,h=1,m=e,y=m.d,v=m.constructor,g=v.precision;if(m.s<1)throw Error(c+(m.s?"NaN":"-Infinity"));if(m.eq(o))return new v(0);if(null==t?(u=!1,d=g):d=t,m.eq(10))return null==t&&(u=!0),_(v,d);if(d+=10,v.precision=d,r=(n=A(y)).charAt(0),a=T(m),!(Math.abs(a)<15e14))return f=_(v,d+2,g).times(a+""),m=C(new v(r+"."+n.slice(1)),d-10).plus(f),v.precision=g,null==t?(u=!0,O(m,g)):m;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=A((m=m.times(e)).d)).charAt(0),h++;for(a=T(m),r>1?(m=new v("0."+n),a++):m=new v(r+"."+n.slice(1)),l=s=m=k(m.minus(o),m.plus(o),d),p=O(m.times(m),d),i=3;;){if(s=O(s.times(p),d),A((f=l.plus(k(s,new v(i),d))).d).slice(0,d)===A(l.d).slice(0,d))return l=l.times(2),0!==a&&(l=l.plus(_(v,d+2,g).times(a+""))),l=k(l,new v(h),d),v.precision=g,null==t?(u=!0,O(l,g)):l;l=f,i+=2}}function I(e,t){var n,r,i;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;48===t.charCodeAt(r);)++r;for(i=t.length;48===t.charCodeAt(i-1);)--i;if(t=t.slice(r,i)){if(i-=r,n=n-r-1,e.e=d(n/y),e.d=[],r=(n+1)%y,n<0&&(r+=y),r<i){for(r&&e.d.push(+t.slice(0,r)),i-=y;r<i;)e.d.push(+t.slice(r,r+=y));t=t.slice(r),r=y-t.length}else r-=i;for(;r--;)t+="0";if(e.d.push(+t),u&&(e.e>g||e.e<-g))throw Error(f+n)}else e.s=0,e.e=0,e.d=[0];return e}function O(e,t,n){var r,i,o,a,s,c,l,h,v=e.d;for(a=1,o=v[0];o>=10;o/=10)a++;if((r=t-a)<0)r+=y,i=t,l=v[h=0];else{if((h=Math.ceil((r+1)/y))>=(o=v.length))return e;for(l=o=v[h],a=1;o>=10;o/=10)a++;i=(r%=y)-y+a}if(void 0!==n&&(s=l/(o=p(10,a-i-1))%10|0,c=t<0||void 0!==v[h+1]||l%o,c=n<4?(s||c)&&(0==n||n==(e.s<0?3:2)):s>5||5==s&&(4==n||c||6==n&&(r>0?i>0?l/p(10,a-i):0:v[h-1])%10&1||n==(e.s<0?8:7))),t<1||!v[0])return c?(o=T(e),v.length=1,t=t-o-1,v[0]=p(10,(y-t%y)%y),e.e=d(-t/y)||0):(v.length=1,v[0]=e.e=e.s=0),e;if(0==r?(v.length=h,o=1,h--):(v.length=h+1,o=p(10,y-r),v[h]=i>0?(l/p(10,a-i)%p(10,i)|0)*o:0),c)for(;;){if(0==h){(v[0]+=o)==m&&(v[0]=1,++e.e);break}if(v[h]+=o,v[h]!=m)break;v[h--]=0,o=1}for(r=v.length;0===v[--r];)v.pop();if(u&&(e.e>g||e.e<-g))throw Error(f+T(e));return e}function P(e,t){var n,r,i,o,a,s,c,l,f,d,p=e.constructor,h=p.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new p(e),u?O(t,h):t;if(c=e.d,d=t.d,r=t.e,l=e.e,c=c.slice(),a=l-r){for((f=a<0)?(n=c,a=-a,s=d.length):(n=d,r=l,s=c.length),a>(i=Math.max(Math.ceil(h/y),s)+2)&&(a=i,n.length=1),n.reverse(),i=a;i--;)n.push(0);n.reverse()}else{for((f=(i=c.length)<(s=d.length))&&(s=i),i=0;i<s;i++)if(c[i]!=d[i]){f=c[i]<d[i];break}a=0}for(f&&(n=c,c=d,d=n,t.s=-t.s),s=c.length,i=d.length-s;i>0;--i)c[s++]=0;for(i=d.length;i>a;){if(c[--i]<d[i]){for(o=i;o&&0===c[--o];)c[o]=m-1;--c[o],c[i]+=m}c[i]-=d[i]}for(;0===c[--s];)c.pop();for(;0===c[0];c.shift())--r;return c[0]?(t.d=c,t.e=r,u?O(t,h):t):new p(0)}function R(e,t,n){var r,i=T(e),o=A(e.d),a=o.length;return t?(n&&(r=n-a)>0?o=o.charAt(0)+"."+o.slice(1)+S(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(i<0?"e":"e+")+i):i<0?(o="0."+S(-i-1)+o,n&&(r=n-a)>0&&(o+=S(r))):i>=a?(o+=S(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+S(r))):((r=i+1)<a&&(o=o.slice(0,r)+"."+o.slice(r)),n&&(r=n-a)>0&&(i+1===a&&(o+="."),o+=S(r))),e.s<0?"-"+o:o}function M(e,t){if(e.length>t)return e.length=t,!0}function B(e){if(!e||"object"!==typeof e)throw Error(c+"Object expected");var t,n,r,i=["precision",1,a,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<i.length;t+=3)if(void 0!==(r=e[n=i[t]])){if(!(d(r)===r&&r>=i[t+1]&&r<=i[t+2]))throw Error(l+n+": "+r);this[n]=r}if(void 0!==(r=e[n="LN10"])){if(r!=Math.LN10)throw Error(l+n+": "+r);this[n]=new this(r)}return this}s=function e(t){var n,r,i;function o(e){var t=this;if(!(t instanceof o))return new o(e);if(t.constructor=o,e instanceof o)return t.s=e.s,t.e=e.e,void(t.d=(e=e.d)?e.slice():e);if("number"===typeof e){if(0*e!==0)throw Error(l+e);if(e>0)t.s=1;else{if(!(e<0))return t.s=0,t.e=0,void(t.d=[0]);e=-e,t.s=-1}return e===~~e&&e<1e7?(t.e=0,void(t.d=[e])):I(t,e.toString())}if("string"!==typeof e)throw Error(l+e);if(45===e.charCodeAt(0)?(e=e.slice(1),t.s=-1):t.s=1,!h.test(e))throw Error(l+e);I(t,e)}if(o.prototype=b,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=e,o.config=o.set=B,void 0===t&&(t={}),t)for(i=["precision","rounding","toExpNeg","toExpPos","LN10"],n=0;n<i.length;)t.hasOwnProperty(r=i[n++])||(t[r]=this[r]);return o.config(t),o}(s),s.default=s.Decimal=s,o=new s(1),void 0===(r=function(){return s}.call(t,n,t,e))||(e.exports=r)}()},10917:function(e,t,n){"use strict";var r=n(93321),i="function"===typeof Symbol&&"symbol"===typeof Symbol("foo"),o=Object.prototype.toString,a=Array.prototype.concat,s=Object.defineProperty,u=n(80253)(),c=s&&u,l=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!==typeof(i=r)||"[object Function]"!==o.call(i)||!r())return;var i;c?s(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},f=function(e,t){var n=arguments.length>2?arguments[2]:{},o=r(t);i&&(o=a.call(o,Object.getOwnPropertySymbols(t)));for(var s=0;s<o.length;s+=1)l(e,o[s],t[o[s]],n[o[s]])};f.supportsDescriptors=!!c,e.exports=f},40094:function(e){"use strict";function t(e,t){if(void 0===e||null===e)throw new TypeError("Cannot convert first argument to object");for(var n=Object(e),r=1;r<arguments.length;r++){var i=arguments[r];if(void 0!==i&&null!==i)for(var o=Object.keys(Object(i)),a=0,s=o.length;a<s;a++){var u=o[a],c=Object.getOwnPropertyDescriptor(i,u);void 0!==c&&c.enumerable&&(n[u]=i[u])}}return n}e.exports={assign:t,polyfill:function(){Object.assign||Object.defineProperty(Object,"assign",{enumerable:!1,configurable:!0,writable:!0,value:t})}}},36021:function(e,t,n){"use strict";n.d(t,{i:function(){return r}});var r="ethers/5.7.2"},71810:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContract:function(){return r.VZ},BigNumber:function(){return i.O$},Contract:function(){return r.CH},ContractFactory:function(){return r.lV},FixedNumber:function(){return o.xs},Signer:function(){return a.E},VoidSigner:function(){return a.b},Wallet:function(){return s.Wallet},Wordlist:function(){return f.D},constants:function(){return u},errors:function(){return p.ErrorCode},getDefaultProvider:function(){return c.getDefaultProvider},logger:function(){return m},providers:function(){return c},utils:function(){return d},version:function(){return h.i},wordlists:function(){return l.E}});var r=n(6751),i=n(42322),o=n(84319),a=n(50162),s=n(46701),u=n(41559),c=n(41469),l=n(54530),f=n(9909),d=n(94923),p=n(56919),h=n(36021),m=new p.Logger(h.i)},26032:function(e,t,n){"use strict";n.r(t),n.d(t,{BaseContract:function(){return s.VZ},BigNumber:function(){return u.O$},Contract:function(){return s.CH},ContractFactory:function(){return s.lV},FixedNumber:function(){return c.xs},Signer:function(){return i.E},VoidSigner:function(){return i.b},Wallet:function(){return o.Wallet},Wordlist:function(){return m.D},constants:function(){return l},errors:function(){return f.ErrorCode},ethers:function(){return r},getDefaultProvider:function(){return a.getDefaultProvider},logger:function(){return r.logger},providers:function(){return a},utils:function(){return d},version:function(){return h.i},wordlists:function(){return p.E}});var r=n(71810),i=n(50162),o=n(46701),a=n(41469),s=n(6751),u=n(42322),c=n(84319),l=n(41559),f=n(56919),d=n(94923),p=n(54530),h=n(36021),m=n(9909);try{var y=window;null==y._ethers&&(y._ethers=r)}catch(v){}},94923:function(e,t,n){"use strict";n.r(t),n.d(t,{AbiCoder:function(){return r.R},ConstructorFragment:function(){return i.Xg},ErrorFragment:function(){return i.IC},EventFragment:function(){return i.QV},FormatTypes:function(){return i.pc},Fragment:function(){return i.HY},FunctionFragment:function(){return i.YW},HDNode:function(){return m.HDNode},Indexed:function(){return a.Hk},Interface:function(){return a.vU},LogDescription:function(){return a.CC},Logger:function(){return g.Logger},ParamType:function(){return i._R},RLP:function(){return E},SigningKey:function(){return T.SigningKey},SupportedAlgorithm:function(){return M.p},TransactionDescription:function(){return a.vk},TransactionTypes:function(){return I.TransactionTypes},UnicodeNormalizationForm:function(){return S.Uj},Utf8ErrorFuncs:function(){return S.te},Utf8ErrorReason:function(){return S.Uw},_TypedDataEncoder:function(){return h.E},_fetchData:function(){return R._fetchData},_toEscapedUtf8String:function(){return S.U$},accessListify:function(){return I.accessListify},arrayify:function(){return l.arrayify},base58:function(){return c.Base58},base64:function(){return u},checkProperties:function(){return k.checkProperties},checkResultErrors:function(){return o.BR},commify:function(){return O.commify},computeAddress:function(){return I.computeAddress},computeHmac:function(){return b.Gy},computePublicKey:function(){return T.computePublicKey},concat:function(){return l.concat},deepCopy:function(){return k.deepCopy},defaultAbiCoder:function(){return r.$},defaultPath:function(){return m.defaultPath},defineReadOnly:function(){return k.defineReadOnly},dnsEncode:function(){return f.Kn},entropyToMnemonic:function(){return m.entropyToMnemonic},fetchJson:function(){return R.fetchJson},formatBytes32String:function(){return C.s},formatEther:function(){return O.formatEther},formatUnits:function(){return O.formatUnits},getAccountPath:function(){return m.getAccountPath},getAddress:function(){return s.getAddress},getContractAddress:function(){return s.getContractAddress},getCreate2Address:function(){return s.getCreate2Address},getIcapAddress:function(){return s.getIcapAddress},getJsonWalletAddress:function(){return y.Rb},getStatic:function(){return k.getStatic},hashMessage:function(){return d.r},hexConcat:function(){return l.hexConcat},hexDataLength:function(){return l.hexDataLength},hexDataSlice:function(){return l.hexDataSlice},hexStripZeros:function(){return l.hexStripZeros},hexValue:function(){return l.hexValue},hexZeroPad:function(){return l.hexZeroPad},hexlify:function(){return l.hexlify},id:function(){return p.id},isAddress:function(){return s.isAddress},isBytes:function(){return l.isBytes},isBytesLike:function(){return l.isBytesLike},isHexString:function(){return l.isHexString},isValidMnemonic:function(){return m.isValidMnemonic},isValidName:function(){return f.r1},joinSignature:function(){return l.joinSignature},keccak256:function(){return v.keccak256},mnemonicToEntropy:function(){return m.mnemonicToEntropy},mnemonicToSeed:function(){return m.mnemonicToSeed},namehash:function(){return f.VM},nameprep:function(){return _.Ll},parseBytes32String:function(){return C.F},parseEther:function(){return O.parseEther},parseTransaction:function(){return I.parse},parseUnits:function(){return O.parseUnits},poll:function(){return R.poll},randomBytes:function(){return x.O},recoverAddress:function(){return I.recoverAddress},recoverPublicKey:function(){return T.recoverPublicKey},resolveProperties:function(){return k.resolveProperties},ripemd160:function(){return b.bP},serializeTransaction:function(){return I.serialize},sha256:function(){return b.JQ},sha512:function(){return b.o},shallowCopy:function(){return k.shallowCopy},shuffled:function(){return A.y},solidityKeccak256:function(){return w.keccak256},solidityPack:function(){return w.pack},soliditySha256:function(){return w.sha256},splitSignature:function(){return l.splitSignature},stripZeros:function(){return l.stripZeros},toUtf8Bytes:function(){return S.Y0},toUtf8CodePoints:function(){return S.XL},toUtf8String:function(){return S.ZN},verifyMessage:function(){return P.verifyMessage},verifyTypedData:function(){return P.verifyTypedData},zeroPad:function(){return l.zeroPad}});var r=n(46306),i=n(94899),o=n(54773),a=n(92388),s=n(27255),u=n(74478),c=n(88832),l=n(64369),f=n(34913),d=n(28778),p=n(75441),h=n(93139),m=n(1375),y=n(43372),v=n(8082),g=n(56919),b=n(35477),w=n(69338),x=n(39536),A=n(69101),k=n(63274),E=n(38110),T=n(98087),_=n(98419),S=n(25459),C=n(8600),I=n(66522),O=n(72225),P=n(46701),R=n(77379),M=n(34858)},17803:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n),Object.defineProperty(e,r,{enumerable:!0,get:function(){return t[n]}})}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.formatBytes32String=t.Utf8ErrorFuncs=t.toUtf8String=t.toUtf8CodePoints=t.toUtf8Bytes=t._toEscapedUtf8String=t.nameprep=t.hexDataSlice=t.hexDataLength=t.hexZeroPad=t.hexValue=t.hexStripZeros=t.hexConcat=t.isHexString=t.hexlify=t.base64=t.base58=t.TransactionDescription=t.LogDescription=t.Interface=t.SigningKey=t.HDNode=t.defaultPath=t.isBytesLike=t.isBytes=t.zeroPad=t.stripZeros=t.concat=t.arrayify=t.shallowCopy=t.resolveProperties=t.getStatic=t.defineReadOnly=t.deepCopy=t.checkProperties=t.poll=t.fetchJson=t._fetchData=t.RLP=t.Logger=t.checkResultErrors=t.FormatTypes=t.ParamType=t.FunctionFragment=t.EventFragment=t.ErrorFragment=t.ConstructorFragment=t.Fragment=t.defaultAbiCoder=t.AbiCoder=void 0,t.Indexed=t.Utf8ErrorReason=t.UnicodeNormalizationForm=t.SupportedAlgorithm=t.mnemonicToSeed=t.isValidMnemonic=t.entropyToMnemonic=t.mnemonicToEntropy=t.getAccountPath=t.verifyTypedData=t.verifyMessage=t.recoverPublicKey=t.computePublicKey=t.recoverAddress=t.computeAddress=t.getJsonWalletAddress=t.TransactionTypes=t.serializeTransaction=t.parseTransaction=t.accessListify=t.joinSignature=t.splitSignature=t.soliditySha256=t.solidityKeccak256=t.solidityPack=t.shuffled=t.randomBytes=t.sha512=t.sha256=t.ripemd160=t.keccak256=t.computeHmac=t.commify=t.parseUnits=t.formatUnits=t.parseEther=t.formatEther=t.isAddress=t.getCreate2Address=t.getContractAddress=t.getIcapAddress=t.getAddress=t._TypedDataEncoder=t.id=t.isValidName=t.namehash=t.hashMessage=t.dnsEncode=t.parseBytes32String=void 0;var a=n(51407);Object.defineProperty(t,"AbiCoder",{enumerable:!0,get:function(){return a.AbiCoder}}),Object.defineProperty(t,"checkResultErrors",{enumerable:!0,get:function(){return a.checkResultErrors}}),Object.defineProperty(t,"ConstructorFragment",{enumerable:!0,get:function(){return a.ConstructorFragment}}),Object.defineProperty(t,"defaultAbiCoder",{enumerable:!0,get:function(){return a.defaultAbiCoder}}),Object.defineProperty(t,"ErrorFragment",{enumerable:!0,get:function(){return a.ErrorFragment}}),Object.defineProperty(t,"EventFragment",{enumerable:!0,get:function(){return a.EventFragment}}),Object.defineProperty(t,"FormatTypes",{enumerable:!0,get:function(){return a.FormatTypes}}),Object.defineProperty(t,"Fragment",{enumerable:!0,get:function(){return a.Fragment}}),Object.defineProperty(t,"FunctionFragment",{enumerable:!0,get:function(){return a.FunctionFragment}}),Object.defineProperty(t,"Indexed",{enumerable:!0,get:function(){return a.Indexed}}),Object.defineProperty(t,"Interface",{enumerable:!0,get:function(){return a.Interface}}),Object.defineProperty(t,"LogDescription",{enumerable:!0,get:function(){return a.LogDescription}}),Object.defineProperty(t,"ParamType",{enumerable:!0,get:function(){return a.ParamType}}),Object.defineProperty(t,"TransactionDescription",{enumerable:!0,get:function(){return a.TransactionDescription}});var s=n(27255);Object.defineProperty(t,"getAddress",{enumerable:!0,get:function(){return s.getAddress}}),Object.defineProperty(t,"getCreate2Address",{enumerable:!0,get:function(){return s.getCreate2Address}}),Object.defineProperty(t,"getContractAddress",{enumerable:!0,get:function(){return s.getContractAddress}}),Object.defineProperty(t,"getIcapAddress",{enumerable:!0,get:function(){return s.getIcapAddress}}),Object.defineProperty(t,"isAddress",{enumerable:!0,get:function(){return s.isAddress}});var u=o(n(74478));t.base64=u;var c=n(88832);Object.defineProperty(t,"base58",{enumerable:!0,get:function(){return c.Base58}});var l=n(64369);Object.defineProperty(t,"arrayify",{enumerable:!0,get:function(){return l.arrayify}}),Object.defineProperty(t,"concat",{enumerable:!0,get:function(){return l.concat}}),Object.defineProperty(t,"hexConcat",{enumerable:!0,get:function(){return l.hexConcat}}),Object.defineProperty(t,"hexDataSlice",{enumerable:!0,get:function(){return l.hexDataSlice}}),Object.defineProperty(t,"hexDataLength",{enumerable:!0,get:function(){return l.hexDataLength}}),Object.defineProperty(t,"hexlify",{enumerable:!0,get:function(){return l.hexlify}}),Object.defineProperty(t,"hexStripZeros",{enumerable:!0,get:function(){return l.hexStripZeros}}),Object.defineProperty(t,"hexValue",{enumerable:!0,get:function(){return l.hexValue}}),Object.defineProperty(t,"hexZeroPad",{enumerable:!0,get:function(){return l.hexZeroPad}}),Object.defineProperty(t,"isBytes",{enumerable:!0,get:function(){return l.isBytes}}),Object.defineProperty(t,"isBytesLike",{enumerable:!0,get:function(){return l.isBytesLike}}),Object.defineProperty(t,"isHexString",{enumerable:!0,get:function(){return l.isHexString}}),Object.defineProperty(t,"joinSignature",{enumerable:!0,get:function(){return l.joinSignature}}),Object.defineProperty(t,"zeroPad",{enumerable:!0,get:function(){return l.zeroPad}}),Object.defineProperty(t,"splitSignature",{enumerable:!0,get:function(){return l.splitSignature}}),Object.defineProperty(t,"stripZeros",{enumerable:!0,get:function(){return l.stripZeros}});var f=n(22728);Object.defineProperty(t,"_TypedDataEncoder",{enumerable:!0,get:function(){return f._TypedDataEncoder}}),Object.defineProperty(t,"dnsEncode",{enumerable:!0,get:function(){return f.dnsEncode}}),Object.defineProperty(t,"hashMessage",{enumerable:!0,get:function(){return f.hashMessage}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return f.id}}),Object.defineProperty(t,"isValidName",{enumerable:!0,get:function(){return f.isValidName}}),Object.defineProperty(t,"namehash",{enumerable:!0,get:function(){return f.namehash}});var d=n(1375);Object.defineProperty(t,"defaultPath",{enumerable:!0,get:function(){return d.defaultPath}}),Object.defineProperty(t,"entropyToMnemonic",{enumerable:!0,get:function(){return d.entropyToMnemonic}}),Object.defineProperty(t,"getAccountPath",{enumerable:!0,get:function(){return d.getAccountPath}}),Object.defineProperty(t,"HDNode",{enumerable:!0,get:function(){return d.HDNode}}),Object.defineProperty(t,"isValidMnemonic",{enumerable:!0,get:function(){return d.isValidMnemonic}}),Object.defineProperty(t,"mnemonicToEntropy",{enumerable:!0,get:function(){return d.mnemonicToEntropy}}),Object.defineProperty(t,"mnemonicToSeed",{enumerable:!0,get:function(){return d.mnemonicToSeed}});var p=n(94554);Object.defineProperty(t,"getJsonWalletAddress",{enumerable:!0,get:function(){return p.getJsonWalletAddress}});var h=n(8082);Object.defineProperty(t,"keccak256",{enumerable:!0,get:function(){return h.keccak256}});var m=n(56919);Object.defineProperty(t,"Logger",{enumerable:!0,get:function(){return m.Logger}});var y=n(24031);Object.defineProperty(t,"computeHmac",{enumerable:!0,get:function(){return y.computeHmac}}),Object.defineProperty(t,"ripemd160",{enumerable:!0,get:function(){return y.ripemd160}}),Object.defineProperty(t,"sha256",{enumerable:!0,get:function(){return y.sha256}}),Object.defineProperty(t,"sha512",{enumerable:!0,get:function(){return y.sha512}});var v=n(69338);Object.defineProperty(t,"solidityKeccak256",{enumerable:!0,get:function(){return v.keccak256}}),Object.defineProperty(t,"solidityPack",{enumerable:!0,get:function(){return v.pack}}),Object.defineProperty(t,"soliditySha256",{enumerable:!0,get:function(){return v.sha256}});var g=n(42391);Object.defineProperty(t,"randomBytes",{enumerable:!0,get:function(){return g.randomBytes}}),Object.defineProperty(t,"shuffled",{enumerable:!0,get:function(){return g.shuffled}});var b=n(63274);Object.defineProperty(t,"checkProperties",{enumerable:!0,get:function(){return b.checkProperties}}),Object.defineProperty(t,"deepCopy",{enumerable:!0,get:function(){return b.deepCopy}}),Object.defineProperty(t,"defineReadOnly",{enumerable:!0,get:function(){return b.defineReadOnly}}),Object.defineProperty(t,"getStatic",{enumerable:!0,get:function(){return b.getStatic}}),Object.defineProperty(t,"resolveProperties",{enumerable:!0,get:function(){return b.resolveProperties}}),Object.defineProperty(t,"shallowCopy",{enumerable:!0,get:function(){return b.shallowCopy}});var w=o(n(38110));t.RLP=w;var x=n(98087);Object.defineProperty(t,"computePublicKey",{enumerable:!0,get:function(){return x.computePublicKey}}),Object.defineProperty(t,"recoverPublicKey",{enumerable:!0,get:function(){return x.recoverPublicKey}}),Object.defineProperty(t,"SigningKey",{enumerable:!0,get:function(){return x.SigningKey}});var A=n(46137);Object.defineProperty(t,"formatBytes32String",{enumerable:!0,get:function(){return A.formatBytes32String}}),Object.defineProperty(t,"nameprep",{enumerable:!0,get:function(){return A.nameprep}}),Object.defineProperty(t,"parseBytes32String",{enumerable:!0,get:function(){return A.parseBytes32String}}),Object.defineProperty(t,"_toEscapedUtf8String",{enumerable:!0,get:function(){return A._toEscapedUtf8String}}),Object.defineProperty(t,"toUtf8Bytes",{enumerable:!0,get:function(){return A.toUtf8Bytes}}),Object.defineProperty(t,"toUtf8CodePoints",{enumerable:!0,get:function(){return A.toUtf8CodePoints}}),Object.defineProperty(t,"toUtf8String",{enumerable:!0,get:function(){return A.toUtf8String}}),Object.defineProperty(t,"Utf8ErrorFuncs",{enumerable:!0,get:function(){return A.Utf8ErrorFuncs}});var k=n(66522);Object.defineProperty(t,"accessListify",{enumerable:!0,get:function(){return k.accessListify}}),Object.defineProperty(t,"computeAddress",{enumerable:!0,get:function(){return k.computeAddress}}),Object.defineProperty(t,"parseTransaction",{enumerable:!0,get:function(){return k.parse}}),Object.defineProperty(t,"recoverAddress",{enumerable:!0,get:function(){return k.recoverAddress}}),Object.defineProperty(t,"serializeTransaction",{enumerable:!0,get:function(){return k.serialize}}),Object.defineProperty(t,"TransactionTypes",{enumerable:!0,get:function(){return k.TransactionTypes}});var E=n(72225);Object.defineProperty(t,"commify",{enumerable:!0,get:function(){return E.commify}}),Object.defineProperty(t,"formatEther",{enumerable:!0,get:function(){return E.formatEther}}),Object.defineProperty(t,"parseEther",{enumerable:!0,get:function(){return E.parseEther}}),Object.defineProperty(t,"formatUnits",{enumerable:!0,get:function(){return E.formatUnits}}),Object.defineProperty(t,"parseUnits",{enumerable:!0,get:function(){return E.parseUnits}});var T=n(46701);Object.defineProperty(t,"verifyMessage",{enumerable:!0,get:function(){return T.verifyMessage}}),Object.defineProperty(t,"verifyTypedData",{enumerable:!0,get:function(){return T.verifyTypedData}});var _=n(77379);Object.defineProperty(t,"_fetchData",{enumerable:!0,get:function(){return _._fetchData}}),Object.defineProperty(t,"fetchJson",{enumerable:!0,get:function(){return _.fetchJson}}),Object.defineProperty(t,"poll",{enumerable:!0,get:function(){return _.poll}});var S=n(24031);Object.defineProperty(t,"SupportedAlgorithm",{enumerable:!0,get:function(){return S.SupportedAlgorithm}});var C=n(46137);Object.defineProperty(t,"UnicodeNormalizationForm",{enumerable:!0,get:function(){return C.UnicodeNormalizationForm}}),Object.defineProperty(t,"Utf8ErrorReason",{enumerable:!0,get:function(){return C.Utf8ErrorReason}})},92004:function(e,t,n){"use strict";var r=n(99889),i=Object.prototype.toString,o=Object.prototype.hasOwnProperty;e.exports=function(e,t,n){if(!r(t))throw new TypeError("iterator must be a function");var a;arguments.length>=3&&(a=n),"[object Array]"===i.call(e)?function(e,t,n){for(var r=0,i=e.length;r<i;r++)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a):"string"===typeof e?function(e,t,n){for(var r=0,i=e.length;r<i;r++)null==n?t(e.charAt(r),r,e):t.call(n,e.charAt(r),r,e)}(e,t,a):function(e,t,n){for(var r in e)o.call(e,r)&&(null==n?t(e[r],r,e):t.call(n,e[r],r,e))}(e,t,a)}},17927:function(e){e.exports="object"==typeof self?self.FormData:window.FormData},89659:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!==typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var i,o=t.call(arguments,1),a=Math.max(0,r.length-o.length),s=[],u=0;u<a;u++)s.push("$"+u);if(i=Function("binder","return function ("+s.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var n=r.apply(this,o.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,o.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,i.prototype=new c,c.prototype=null}return i}},17360:function(e,t,n){"use strict";var r=n(89659);e.exports=Function.prototype.bind||r},80195:function(e,t,n){"use strict";var r,i=SyntaxError,o=Function,a=TypeError,s=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(t){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(O){u=null}var c=function(){throw new a},l=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(t){return c}}}():c,f=n(3127)(),d=n(81795)(),p=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),h={},m="undefined"!==typeof Uint8Array&&p?p(Uint8Array):r,y={"%AggregateError%":"undefined"===typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"===typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":f&&p?p([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":h,"%AsyncGenerator%":h,"%AsyncGeneratorFunction%":h,"%AsyncIteratorPrototype%":h,"%Atomics%":"undefined"===typeof Atomics?r:Atomics,"%BigInt%":"undefined"===typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"===typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"===typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"===typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"===typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"===typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"===typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":h,"%Int8Array%":"undefined"===typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"===typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"===typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":f&&p?p(p([][Symbol.iterator]())):r,"%JSON%":"object"===typeof JSON?JSON:r,"%Map%":"undefined"===typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!==typeof Map&&f&&p?p((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"===typeof Promise?r:Promise,"%Proxy%":"undefined"===typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"===typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"===typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!==typeof Set&&f&&p?p((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"===typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":f&&p?p(""[Symbol.iterator]()):r,"%Symbol%":f?Symbol:r,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":m,"%TypeError%":a,"%Uint8Array%":"undefined"===typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"===typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"===typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"===typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"===typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"===typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"===typeof WeakSet?r:WeakSet};if(p)try{null.error}catch(O){var v=p(p(O));y["%Error.prototype%"]=v}var g=function e(t){var n;if("%AsyncFunction%"===t)n=s("async function () {}");else if("%GeneratorFunction%"===t)n=s("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=s("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var i=e("%AsyncGenerator%");i&&p&&(n=p(i.prototype))}return y[t]=n,n},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(17360),x=n(21442),A=w.call(Function.call,Array.prototype.concat),k=w.call(Function.apply,Array.prototype.splice),E=w.call(Function.call,String.prototype.replace),T=w.call(Function.call,String.prototype.slice),_=w.call(Function.call,RegExp.prototype.exec),S=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,I=function(e,t){var n,r=e;if(x(b,r)&&(r="%"+(n=b[r])[0]+"%"),x(y,r)){var o=y[r];if(o===h&&(o=g(r)),"undefined"===typeof o&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:o}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!==typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!==typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===_(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=T(e,0,1),n=T(e,-1);if("%"===t&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new i("invalid intrinsic syntax, expected opening `%`");var r=[];return E(e,S,(function(e,t,n,i){r[r.length]=n?E(i,C,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",o=I("%"+r+"%",t),s=o.name,c=o.value,l=!1,f=o.alias;f&&(r=f[0],k(n,A([0,1],f)));for(var d=1,p=!0;d<n.length;d+=1){var h=n[d],m=T(h,0,1),v=T(h,-1);if(('"'===m||"'"===m||"`"===m||'"'===v||"'"===v||"`"===v)&&m!==v)throw new i("property names with quotes must have matching quotes");if("constructor"!==h&&p||(l=!0),x(y,s="%"+(r+="."+h)+"%"))c=y[s];else if(null!=c){if(!(h in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&d+1>=n.length){var g=u(c,h);c=(p=!!g)&&"get"in g&&!("originalValue"in g.get)?g.get:c[h]}else p=x(c,h),c=c[h];p&&!l&&(y[s]=c)}}return c}},20667:function(e,t,n){"use strict";var r=n(80195)("%Object.getOwnPropertyDescriptor%",!0);if(r)try{r([],"length")}catch(i){r=null}e.exports=r},80253:function(e,t,n){"use strict";var r=n(80195)("%Object.defineProperty%",!0),i=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};i.hasArrayLengthDefineBug=function(){if(!i())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=i},81795:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},3127:function(e,t,n){"use strict";var r="undefined"!==typeof Symbol&&Symbol,i=n(88080);e.exports=function(){return"function"===typeof r&&("function"===typeof Symbol&&("symbol"===typeof r("foo")&&("symbol"===typeof Symbol("bar")&&i())))}},88080:function(e){"use strict";e.exports=function(){if("function"!==typeof Symbol||"function"!==typeof Object.getOwnPropertySymbols)return!1;if("symbol"===typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"===typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"===typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"===typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"===typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(e,t);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},6484:function(e,t,n){"use strict";var r=n(88080);e.exports=function(){return r()&&!!Symbol.toStringTag}},21442:function(e,t,n){"use strict";var r=n(17360);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},12303:function(e,t,n){var r=t;r.utils=n(17369),r.common=n(80710),r.sha=n(30086),r.ripemd=n(81994),r.hmac=n(53733),r.sha1=r.sha.sha1,r.sha256=r.sha.sha256,r.sha224=r.sha.sha224,r.sha384=r.sha.sha384,r.sha512=r.sha.sha512,r.ripemd160=r.ripemd.ripemd160},80710:function(e,t,n){"use strict";var r=n(17369),i=n(95171);function o(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=o,o.prototype.update=function(e,t){if(e=r.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var n=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-n,e.length),0===this.pending.length&&(this.pending=null),e=r.join32(e,0,e.length-n,this.endian);for(var i=0;i<e.length;i+=this._delta32)this._update(e,i,i+this._delta32)}return this},o.prototype.digest=function(e){return this.update(this._pad()),i(null===this.pending),this._digest(e)},o.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,n=t-(e+this.padLength)%t,r=new Array(n+this.padLength);r[0]=128;for(var i=1;i<n;i++)r[i]=0;if(e<<=3,"big"===this.endian){for(var o=8;o<this.padLength;o++)r[i++]=0;r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=e>>>24&255,r[i++]=e>>>16&255,r[i++]=e>>>8&255,r[i++]=255&e}else for(r[i++]=255&e,r[i++]=e>>>8&255,r[i++]=e>>>16&255,r[i++]=e>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o<this.padLength;o++)r[i++]=0;return r}},53733:function(e,t,n){"use strict";var r=n(17369),i=n(95171);function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(r.toArray(t,n))}e.exports=o,o.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),i(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},o.prototype.update=function(e,t){return this.inner.update(e,t),this},o.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},81994:function(e,t,n){"use strict";var r=n(17369),i=n(80710),o=r.rotl32,a=r.sum32,s=r.sum32_3,u=r.sum32_4,c=i.BlockHash;function l(){if(!(this instanceof l))return new l;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,n,r){return e<=15?t^n^r:e<=31?t&n|~t&r:e<=47?(t|~n)^r:e<=63?t&r|n&~r:t^(n|~r)}function d(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function p(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}r.inherits(l,c),t.ripemd160=l,l.blockSize=512,l.outSize=160,l.hmacStrength=192,l.padLength=64,l.prototype._update=function(e,t){for(var n=this.h[0],r=this.h[1],i=this.h[2],c=this.h[3],l=this.h[4],g=n,b=r,w=i,x=c,A=l,k=0;k<80;k++){var E=a(o(u(n,f(k,r,i,c),e[h[k]+t],d(k)),y[k]),l);n=l,l=c,c=o(i,10),i=r,r=E,E=a(o(u(g,f(79-k,b,w,x),e[m[k]+t],p(k)),v[k]),A),g=A,A=x,x=o(w,10),w=b,b=E}E=s(this.h[1],i,x),this.h[1]=s(this.h[2],c,A),this.h[2]=s(this.h[3],l,g),this.h[3]=s(this.h[4],n,b),this.h[4]=s(this.h[0],r,w),this.h[0]=E},l.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"little"):r.split32(this.h,"little")};var h=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],m=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],y=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],v=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},30086:function(e,t,n){"use strict";t.sha1=n(35229),t.sha224=n(86505),t.sha256=n(14269),t.sha384=n(94063),t.sha512=n(65632)},35229:function(e,t,n){"use strict";var r=n(17369),i=n(80710),o=n(60772),a=r.rotl32,s=r.sum32,u=r.sum32_5,c=o.ft_1,l=i.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}r.inherits(d,l),e.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=a(n[r-3]^n[r-8]^n[r-14]^n[r-16],1);var i=this.h[0],o=this.h[1],l=this.h[2],d=this.h[3],p=this.h[4];for(r=0;r<n.length;r++){var h=~~(r/20),m=u(a(i,5),c(h,o,l,d),p,n[r],f[h]);p=d,d=l,l=a(o,30),o=i,i=m}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],l),this.h[3]=s(this.h[3],d),this.h[4]=s(this.h[4],p)},d.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},86505:function(e,t,n){"use strict";var r=n(17369),i=n(14269);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=512,o.outSize=224,o.hmacStrength=192,o.padLength=64,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,7),"big"):r.split32(this.h.slice(0,7),"big")}},14269:function(e,t,n){"use strict";var r=n(17369),i=n(80710),o=n(60772),a=n(95171),s=r.sum32,u=r.sum32_4,c=r.sum32_5,l=o.ch32,f=o.maj32,d=o.s0_256,p=o.s1_256,h=o.g0_256,m=o.g1_256,y=i.BlockHash,v=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function g(){if(!(this instanceof g))return new g;y.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=v,this.W=new Array(64)}r.inherits(g,y),e.exports=g,g.blockSize=512,g.outSize=256,g.hmacStrength=192,g.padLength=64,g.prototype._update=function(e,t){for(var n=this.W,r=0;r<16;r++)n[r]=e[t+r];for(;r<n.length;r++)n[r]=u(m(n[r-2]),n[r-7],h(n[r-15]),n[r-16]);var i=this.h[0],o=this.h[1],y=this.h[2],v=this.h[3],g=this.h[4],b=this.h[5],w=this.h[6],x=this.h[7];for(a(this.k.length===n.length),r=0;r<n.length;r++){var A=c(x,p(g),l(g,b,w),this.k[r],n[r]),k=s(d(i),f(i,o,y));x=w,w=b,b=g,g=s(v,A),v=y,y=o,o=i,i=s(A,k)}this.h[0]=s(this.h[0],i),this.h[1]=s(this.h[1],o),this.h[2]=s(this.h[2],y),this.h[3]=s(this.h[3],v),this.h[4]=s(this.h[4],g),this.h[5]=s(this.h[5],b),this.h[6]=s(this.h[6],w),this.h[7]=s(this.h[7],x)},g.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},94063:function(e,t,n){"use strict";var r=n(17369),i=n(65632);function o(){if(!(this instanceof o))return new o;i.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}r.inherits(o,i),e.exports=o,o.blockSize=1024,o.outSize=384,o.hmacStrength=192,o.padLength=128,o.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h.slice(0,12),"big"):r.split32(this.h.slice(0,12),"big")}},65632:function(e,t,n){"use strict";var r=n(17369),i=n(80710),o=n(95171),a=r.rotr64_hi,s=r.rotr64_lo,u=r.shr64_hi,c=r.shr64_lo,l=r.sum64,f=r.sum64_hi,d=r.sum64_lo,p=r.sum64_4_hi,h=r.sum64_4_lo,m=r.sum64_5_hi,y=r.sum64_5_lo,v=i.BlockHash,g=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591];function b(){if(!(this instanceof b))return new b;v.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=g,this.W=new Array(160)}function w(e,t,n,r,i){var o=e&n^~e&i;return o<0&&(o+=4294967296),o}function x(e,t,n,r,i,o){var a=t&r^~t&o;return a<0&&(a+=4294967296),a}function A(e,t,n,r,i){var o=e&n^e&i^n&i;return o<0&&(o+=4294967296),o}function k(e,t,n,r,i,o){var a=t&r^t&o^r&o;return a<0&&(a+=4294967296),a}function E(e,t){var n=a(e,t,28)^a(t,e,2)^a(t,e,7);return n<0&&(n+=4294967296),n}function T(e,t){var n=s(e,t,28)^s(t,e,2)^s(t,e,7);return n<0&&(n+=4294967296),n}function _(e,t){var n=a(e,t,14)^a(e,t,18)^a(t,e,9);return n<0&&(n+=4294967296),n}function S(e,t){var n=s(e,t,14)^s(e,t,18)^s(t,e,9);return n<0&&(n+=4294967296),n}function C(e,t){var n=a(e,t,1)^a(e,t,8)^u(e,t,7);return n<0&&(n+=4294967296),n}function I(e,t){var n=s(e,t,1)^s(e,t,8)^c(e,t,7);return n<0&&(n+=4294967296),n}function O(e,t){var n=a(e,t,19)^a(t,e,29)^u(e,t,6);return n<0&&(n+=4294967296),n}function P(e,t){var n=s(e,t,19)^s(t,e,29)^c(e,t,6);return n<0&&(n+=4294967296),n}r.inherits(b,v),e.exports=b,b.blockSize=1024,b.outSize=512,b.hmacStrength=192,b.padLength=128,b.prototype._prepareBlock=function(e,t){for(var n=this.W,r=0;r<32;r++)n[r]=e[t+r];for(;r<n.length;r+=2){var i=O(n[r-4],n[r-3]),o=P(n[r-4],n[r-3]),a=n[r-14],s=n[r-13],u=C(n[r-30],n[r-29]),c=I(n[r-30],n[r-29]),l=n[r-32],f=n[r-31];n[r]=p(i,o,a,s,u,c,l,f),n[r+1]=h(i,o,a,s,u,c,l,f)}},b.prototype._update=function(e,t){this._prepareBlock(e,t);var n=this.W,r=this.h[0],i=this.h[1],a=this.h[2],s=this.h[3],u=this.h[4],c=this.h[5],p=this.h[6],h=this.h[7],v=this.h[8],g=this.h[9],b=this.h[10],C=this.h[11],I=this.h[12],O=this.h[13],P=this.h[14],R=this.h[15];o(this.k.length===n.length);for(var M=0;M<n.length;M+=2){var B=P,N=R,F=_(v,g),D=S(v,g),L=w(v,g,b,C,I),z=x(v,g,b,C,I,O),j=this.k[M],U=this.k[M+1],Z=n[M],q=n[M+1],H=m(B,N,F,D,L,z,j,U,Z,q),V=y(B,N,F,D,L,z,j,U,Z,q);B=E(r,i),N=T(r,i),F=A(r,i,a,s,u),D=k(r,i,a,s,u,c);var G=f(B,N,F,D),W=d(B,N,F,D);P=I,R=O,I=b,O=C,b=v,C=g,v=f(p,h,H,V),g=d(h,h,H,V),p=u,h=c,u=a,c=s,a=r,s=i,r=f(H,V,G,W),i=d(H,V,G,W)}l(this.h,0,r,i),l(this.h,2,a,s),l(this.h,4,u,c),l(this.h,6,p,h),l(this.h,8,v,g),l(this.h,10,b,C),l(this.h,12,I,O),l(this.h,14,P,R)},b.prototype._digest=function(e){return"hex"===e?r.toHex32(this.h,"big"):r.split32(this.h,"big")}},60772:function(e,t,n){"use strict";var r=n(17369).rotr32;function i(e,t,n){return e&t^~e&n}function o(e,t,n){return e&t^e&n^t&n}function a(e,t,n){return e^t^n}t.ft_1=function(e,t,n,r){return 0===e?i(t,n,r):1===e||3===e?a(t,n,r):2===e?o(t,n,r):void 0},t.ch32=i,t.maj32=o,t.p32=a,t.s0_256=function(e){return r(e,2)^r(e,13)^r(e,22)},t.s1_256=function(e){return r(e,6)^r(e,11)^r(e,25)},t.g0_256=function(e){return r(e,7)^r(e,18)^e>>>3},t.g1_256=function(e){return r(e,17)^r(e,19)^e>>>10}},17369:function(e,t,n){"use strict";var r=n(95171),i=n(45493);function o(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function s(e){return 1===e.length?"0"+e:e}function u(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=i,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var n=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),i=0;i<e.length;i+=2)n.push(parseInt(e[i]+e[i+1],16))}else for(var r=0,i=0;i<e.length;i++){var a=e.charCodeAt(i);a<128?n[r++]=a:a<2048?(n[r++]=a>>6|192,n[r++]=63&a|128):o(e,i)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++i)),n[r++]=a>>18|240,n[r++]=a>>12&63|128,n[r++]=a>>6&63|128,n[r++]=63&a|128):(n[r++]=a>>12|224,n[r++]=a>>6&63|128,n[r++]=63&a|128)}else for(i=0;i<e.length;i++)n[i]=0|e[i];return n},t.toHex=function(e){for(var t="",n=0;n<e.length;n++)t+=s(e[n].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var n="",r=0;r<e.length;r++){var i=e[r];"little"===t&&(i=a(i)),n+=u(i.toString(16))}return n},t.zero2=s,t.zero8=u,t.join32=function(e,t,n,i){var o=n-t;r(o%4===0);for(var a=new Array(o/4),s=0,u=t;s<a.length;s++,u+=4){var c;c="big"===i?e[u]<<24|e[u+1]<<16|e[u+2]<<8|e[u+3]:e[u+3]<<24|e[u+2]<<16|e[u+1]<<8|e[u],a[s]=c>>>0}return a},t.split32=function(e,t){for(var n=new Array(4*e.length),r=0,i=0;r<e.length;r++,i+=4){var o=e[r];"big"===t?(n[i]=o>>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,n){return e+t+n>>>0},t.sum32_4=function(e,t,n,r){return e+t+n+r>>>0},t.sum32_5=function(e,t,n,r,i){return e+t+n+r+i>>>0},t.sum64=function(e,t,n,r){var i=e[t],o=r+e[t+1]>>>0,a=(o<r?1:0)+n+i;e[t]=a>>>0,e[t+1]=o},t.sum64_hi=function(e,t,n,r){return(t+r>>>0<t?1:0)+e+n>>>0},t.sum64_lo=function(e,t,n,r){return t+r>>>0},t.sum64_4_hi=function(e,t,n,r,i,o,a,s){var u=0,c=t;return u+=(c=c+r>>>0)<t?1:0,u+=(c=c+o>>>0)<o?1:0,e+n+i+a+(u+=(c=c+s>>>0)<s?1:0)>>>0},t.sum64_4_lo=function(e,t,n,r,i,o,a,s){return t+r+o+s>>>0},t.sum64_5_hi=function(e,t,n,r,i,o,a,s,u,c){var l=0,f=t;return l+=(f=f+r>>>0)<t?1:0,l+=(f=f+o>>>0)<o?1:0,l+=(f=f+s>>>0)<s?1:0,e+n+i+a+u+(l+=(f=f+c>>>0)<c?1:0)>>>0},t.sum64_5_lo=function(e,t,n,r,i,o,a,s,u,c){return t+r+o+s+c>>>0},t.rotr64_hi=function(e,t,n){return(t<<32-n|e>>>n)>>>0},t.rotr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0},t.shr64_hi=function(e,t,n){return e>>>n},t.shr64_lo=function(e,t,n){return(e<<32-n|t>>>n)>>>0}},32185:function(e,t,n){"use strict";var r=n(21469),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function u(e){return r.isMemo(e)?a:s[e.$$typeof]||i}s[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[r.Memo]=a;var c=Object.defineProperty,l=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,n,r){if("string"!==typeof n){if(h){var i=p(n);i&&i!==h&&e(t,i,r)}var a=l(n);f&&(a=a.concat(f(n)));for(var s=u(t),m=u(n),y=0;y<a.length;++y){var v=a[y];if(!o[v]&&(!r||!r[v])&&(!m||!m[v])&&(!s||!s[v])){var g=d(n,v);try{c(t,v,g)}catch(b){}}}}return t}},75725:function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,p=e[t+f];for(f+=d,o=p&(1<<-l)-1,p>>=-l,l+=s;l>0;o=256*o+e[t+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+e[t+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=c}return(p?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:o-1,h=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(u=Math.pow(2,-a))<1&&(a--,u*=2),(t+=a+f>=1?d/u:d*Math.pow(2,1-f))*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(t*u-1)*Math.pow(2,i),a+=f):(s=t*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;e[n+p]=255&s,p+=h,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*m}},45493:function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},44072:function(e,t,n){"use strict";var r=n(6484)(),i=n(12985)("Object.prototype.toString"),o=function(e){return!(r&&e&&"object"===typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===i(e)},a=function(e){return!!o(e)||null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Array]"!==i(e)&&"[object Function]"===i(e.callee)},s=function(){return o(arguments)}();o.isLegacyArguments=a,e.exports=s?o:a},99889:function(e){"use strict";var t,n,r=Function.prototype.toString,i="object"===typeof Reflect&&null!==Reflect&&Reflect.apply;if("function"===typeof i&&"function"===typeof Object.defineProperty)try{t=Object.defineProperty({},"length",{get:function(){throw n}}),n={},i((function(){throw 42}),null,t)}catch(p){p!==n&&(i=null)}else i=null;var o=/^\s*class\b/,a=function(e){try{var t=r.call(e);return o.test(t)}catch(n){return!1}},s=function(e){try{return!a(e)&&(r.call(e),!0)}catch(t){return!1}},u=Object.prototype.toString,c="function"===typeof Symbol&&!!Symbol.toStringTag,l=!(0 in[,]),f=function(){return!1};if("object"===typeof document){var d=document.all;u.call(d)===u.call(document.all)&&(f=function(e){if((l||!e)&&("undefined"===typeof e||"object"===typeof e))try{var t=u.call(e);return("[object HTMLAllCollection]"===t||"[object HTML document.all class]"===t||"[object HTMLCollection]"===t||"[object Object]"===t)&&null==e("")}catch(n){}return!1})}e.exports=i?function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;try{i(e,null,t)}catch(r){if(r!==n)return!1}return!a(e)&&s(e)}:function(e){if(f(e))return!0;if(!e)return!1;if("function"!==typeof e&&"object"!==typeof e)return!1;if(c)return s(e);if(a(e))return!1;var t=u.call(e);return!("[object Function]"!==t&&"[object GeneratorFunction]"!==t&&!/^\[object HTML/.test(t))&&s(e)}},44717:function(e,t,n){"use strict";var r,i=Object.prototype.toString,o=Function.prototype.toString,a=/^\s*(?:function)?\*/,s=n(6484)(),u=Object.getPrototypeOf;e.exports=function(e){if("function"!==typeof e)return!1;if(a.test(o.call(e)))return!0;if(!s)return"[object GeneratorFunction]"===i.call(e);if(!u)return!1;if("undefined"===typeof r){var t=function(){if(!s)return!1;try{return Function("return function*() {}")()}catch(e){}}();r=!!t&&u(t)}return u(e)===r}},52644:function(e){"use strict";e.exports=function(e){return e!==e}},81507:function(e,t,n){"use strict";var r=n(85677),i=n(10917),o=n(52644),a=n(21894),s=n(64875),u=r(a(),Number);i(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},21894:function(e,t,n){"use strict";var r=n(52644);e.exports=function(){return Number.isNaN&&Number.isNaN(NaN)&&!Number.isNaN("a")?Number.isNaN:r}},64875:function(e,t,n){"use strict";var r=n(10917),i=n(21894);e.exports=function(){var e=i();return r(Number,{isNaN:e},{isNaN:function(){return Number.isNaN!==e}}),e}},75313:function(e,t,n){"use strict";var r=n(58464);e.exports=function(e){return!!r(e)}},67594:function(e,t,n){var r,i=n(33185);!function(){"use strict";var o="input is invalid type",a="object"===typeof window,s=a?window:{};s.JS_SHA3_NO_WINDOW&&(a=!1);var u=!a&&"object"===typeof self;!s.JS_SHA3_NO_NODE_JS&&"object"===typeof i&&i.versions&&i.versions.node?s=n.g:u&&(s=self);var c=!s.JS_SHA3_NO_COMMON_JS&&e.exports,l=n.amdO,f=!s.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!==typeof ArrayBuffer,d="0123456789abcdef".split(""),p=[4,1024,262144,67108864],h=[0,8,16,24],m=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],y=[224,256,384,512],v=[128,256],g=["hex","buffer","arrayBuffer","array","digest"],b={128:168,256:136};!s.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),!f||!s.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(e){return"object"===typeof e&&e.buffer&&e.buffer.constructor===ArrayBuffer});for(var w=function(e,t,n){return function(r){return new N(e,t,e).update(r)[n]()}},x=function(e,t,n){return function(r,i){return new N(e,t,i).update(r)[n]()}},A=function(e,t,n){return function(t,r,i,o){return S["cshake"+e].update(t,r,i,o)[n]()}},k=function(e,t,n){return function(t,r,i,o){return S["kmac"+e].update(t,r,i,o)[n]()}},E=function(e,t,n,r){for(var i=0;i<g.length;++i){var o=g[i];e[o]=t(n,r,o)}return e},T=function(e,t){var n=w(e,t,"hex");return n.create=function(){return new N(e,t,e)},n.update=function(e){return n.create().update(e)},E(n,w,e,t)},_=[{name:"keccak",padding:[1,256,65536,16777216],bits:y,createMethod:T},{name:"sha3",padding:[6,1536,393216,100663296],bits:y,createMethod:T},{name:"shake",padding:[31,7936,2031616,520093696],bits:v,createMethod:function(e,t){var n=x(e,t,"hex");return n.create=function(n){return new N(e,t,n)},n.update=function(e,t){return n.create(t).update(e)},E(n,x,e,t)}},{name:"cshake",padding:p,bits:v,createMethod:function(e,t){var n=b[e],r=A(e,0,"hex");return r.create=function(r,i,o){return i||o?new N(e,t,r).bytepad([i,o],n):S["shake"+e].create(r)},r.update=function(e,t,n,i){return r.create(t,n,i).update(e)},E(r,A,e,t)}},{name:"kmac",padding:p,bits:v,createMethod:function(e,t){var n=b[e],r=k(e,0,"hex");return r.create=function(r,i,o){return new F(e,t,i).bytepad(["KMAC",o],n).bytepad([r],n)},r.update=function(e,t,n,i){return r.create(e,n,i).update(t)},E(r,k,e,t)}}],S={},C=[],I=0;I<_.length;++I)for(var O=_[I],P=O.bits,R=0;R<P.length;++R){var M=O.name+"_"+P[R];if(C.push(M),S[M]=O.createMethod(P[R],O.padding),"sha3"!==O.name){var B=O.name+P[R];C.push(B),S[B]=S[M]}}function N(e,t,n){this.blocks=[],this.s=[],this.padding=t,this.outputBits=n,this.reset=!0,this.finalized=!1,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function F(e,t,n){N.call(this,e,t,n)}N.prototype.update=function(e){if(this.finalized)throw new Error("finalize already called");var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}for(var r,i,a=this.blocks,s=this.byteCount,u=e.length,c=this.blockCount,l=0,d=this.s;l<u;){if(this.reset)for(this.reset=!1,a[0]=this.block,r=1;r<c+1;++r)a[r]=0;if(t)for(r=this.start;l<u&&r<s;++l)a[r>>2]|=e[l]<<h[3&r++];else for(r=this.start;l<u&&r<s;++l)(i=e.charCodeAt(l))<128?a[r>>2]|=i<<h[3&r++]:i<2048?(a[r>>2]|=(192|i>>6)<<h[3&r++],a[r>>2]|=(128|63&i)<<h[3&r++]):i<55296||i>=57344?(a[r>>2]|=(224|i>>12)<<h[3&r++],a[r>>2]|=(128|i>>6&63)<<h[3&r++],a[r>>2]|=(128|63&i)<<h[3&r++]):(i=65536+((1023&i)<<10|1023&e.charCodeAt(++l)),a[r>>2]|=(240|i>>18)<<h[3&r++],a[r>>2]|=(128|i>>12&63)<<h[3&r++],a[r>>2]|=(128|i>>6&63)<<h[3&r++],a[r>>2]|=(128|63&i)<<h[3&r++]);if(this.lastByteIndex=r,r>=s){for(this.start=r-s,this.block=a[c],r=0;r<c;++r)d[r]^=a[r];D(d),this.reset=!0}else this.start=r}return this},N.prototype.encode=function(e,t){var n=255&e,r=1,i=[n];for(n=255&(e>>=8);n>0;)i.unshift(n),n=255&(e>>=8),++r;return t?i.push(r):i.unshift(r),this.update(i),i.length},N.prototype.encodeString=function(e){var t,n=typeof e;if("string"!==n){if("object"!==n)throw new Error(o);if(null===e)throw new Error(o);if(f&&e.constructor===ArrayBuffer)e=new Uint8Array(e);else if(!Array.isArray(e)&&(!f||!ArrayBuffer.isView(e)))throw new Error(o);t=!0}var r=0,i=e.length;if(t)r=i;else for(var a=0;a<e.length;++a){var s=e.charCodeAt(a);s<128?r+=1:s<2048?r+=2:s<55296||s>=57344?r+=3:(s=65536+((1023&s)<<10|1023&e.charCodeAt(++a)),r+=4)}return r+=this.encode(8*r),this.update(e),r},N.prototype.bytepad=function(e,t){for(var n=this.encode(t),r=0;r<e.length;++r)n+=this.encodeString(e[r]);var i=t-n%t,o=[];return o.length=i,this.update(o),this},N.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var e=this.blocks,t=this.lastByteIndex,n=this.blockCount,r=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[n],t=1;t<n+1;++t)e[t]=0;for(e[n-1]|=2147483648,t=0;t<n;++t)r[t]^=e[t];D(r)}},N.prototype.toString=N.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s="";a<r;){for(o=0;o<t&&a<r;++o,++a)e=n[o],s+=d[e>>4&15]+d[15&e]+d[e>>12&15]+d[e>>8&15]+d[e>>20&15]+d[e>>16&15]+d[e>>28&15]+d[e>>24&15];a%t===0&&(D(n),o=0)}return i&&(e=n[o],s+=d[e>>4&15]+d[15&e],i>1&&(s+=d[e>>12&15]+d[e>>8&15]),i>2&&(s+=d[e>>20&15]+d[e>>16&15])),s},N.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;e=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(e);a<r;){for(o=0;o<t&&a<r;++o,++a)u[a]=n[o];a%t===0&&D(n)}return i&&(u[o]=n[o],e=e.slice(0,s)),e},N.prototype.buffer=N.prototype.arrayBuffer,N.prototype.digest=N.prototype.array=function(){this.finalize();for(var e,t,n=this.blockCount,r=this.s,i=this.outputBlocks,o=this.extraBytes,a=0,s=0,u=[];s<i;){for(a=0;a<n&&s<i;++a,++s)e=s<<2,t=r[a],u[e]=255&t,u[e+1]=t>>8&255,u[e+2]=t>>16&255,u[e+3]=t>>24&255;s%n===0&&D(r)}return o&&(e=s<<2,t=r[a],u[e]=255&t,o>1&&(u[e+1]=t>>8&255),o>2&&(u[e+2]=t>>16&255)),u},F.prototype=new N,F.prototype.finalize=function(){return this.encode(this.outputBits,!0),N.prototype.finalize.call(this)};var D=function(e){var t,n,r,i,o,a,s,u,c,l,f,d,p,h,y,v,g,b,w,x,A,k,E,T,_,S,C,I,O,P,R,M,B,N,F,D,L,z,j,U,Z,q,H,V,G,W,K,J,X,Y,$,Q,ee,te,ne,re,ie,oe,ae,se,ue,ce,le;for(r=0;r<48;r+=2)i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],f=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),n=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=n,e[10]^=t,e[11]^=n,e[20]^=t,e[21]^=n,e[30]^=t,e[31]^=n,e[40]^=t,e[41]^=n,t=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),e[2]^=t,e[3]^=n,e[12]^=t,e[13]^=n,e[22]^=t,e[23]^=n,e[32]^=t,e[33]^=n,e[42]^=t,e[43]^=n,t=a^(l<<1|f>>>31),n=s^(f<<1|l>>>31),e[4]^=t,e[5]^=n,e[14]^=t,e[15]^=n,e[24]^=t,e[25]^=n,e[34]^=t,e[35]^=n,e[44]^=t,e[45]^=n,t=u^(d<<1|p>>>31),n=c^(p<<1|d>>>31),e[6]^=t,e[7]^=n,e[16]^=t,e[17]^=n,e[26]^=t,e[27]^=n,e[36]^=t,e[37]^=n,e[46]^=t,e[47]^=n,t=l^(i<<1|o>>>31),n=f^(o<<1|i>>>31),e[8]^=t,e[9]^=n,e[18]^=t,e[19]^=n,e[28]^=t,e[29]^=n,e[38]^=t,e[39]^=n,e[48]^=t,e[49]^=n,h=e[0],y=e[1],W=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,I=e[20]<<3|e[21]>>>29,O=e[21]<<3|e[20]>>>29,se=e[31]<<9|e[30]>>>23,ue=e[30]<<9|e[31]>>>23,q=e[40]<<18|e[41]>>>14,H=e[41]<<18|e[40]>>>14,N=e[2]<<1|e[3]>>>31,F=e[3]<<1|e[2]>>>31,v=e[13]<<12|e[12]>>>20,g=e[12]<<12|e[13]>>>20,J=e[22]<<10|e[23]>>>22,X=e[23]<<10|e[22]>>>22,P=e[33]<<13|e[32]>>>19,R=e[32]<<13|e[33]>>>19,ce=e[42]<<2|e[43]>>>30,le=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,ne=e[4]<<30|e[5]>>>2,D=e[14]<<6|e[15]>>>26,L=e[15]<<6|e[14]>>>26,b=e[25]<<11|e[24]>>>21,w=e[24]<<11|e[25]>>>21,Y=e[34]<<15|e[35]>>>17,$=e[35]<<15|e[34]>>>17,M=e[45]<<29|e[44]>>>3,B=e[44]<<29|e[45]>>>3,T=e[6]<<28|e[7]>>>4,_=e[7]<<28|e[6]>>>4,re=e[17]<<23|e[16]>>>9,ie=e[16]<<23|e[17]>>>9,z=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,x=e[36]<<21|e[37]>>>11,A=e[37]<<21|e[36]>>>11,Q=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,V=e[8]<<27|e[9]>>>5,G=e[9]<<27|e[8]>>>5,S=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,oe=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,U=e[38]<<8|e[39]>>>24,Z=e[39]<<8|e[38]>>>24,k=e[48]<<14|e[49]>>>18,E=e[49]<<14|e[48]>>>18,e[0]=h^~v&b,e[1]=y^~g&w,e[10]=T^~S&I,e[11]=_^~C&O,e[20]=N^~D&z,e[21]=F^~L&j,e[30]=V^~W&J,e[31]=G^~K&X,e[40]=te^~re&oe,e[41]=ne^~ie&ae,e[2]=v^~b&x,e[3]=g^~w&A,e[12]=S^~I&P,e[13]=C^~O&R,e[22]=D^~z&U,e[23]=L^~j&Z,e[32]=W^~J&Y,e[33]=K^~X&$,e[42]=re^~oe&se,e[43]=ie^~ae&ue,e[4]=b^~x&k,e[5]=w^~A&E,e[14]=I^~P&M,e[15]=O^~R&B,e[24]=z^~U&q,e[25]=j^~Z&H,e[34]=J^~Y&Q,e[35]=X^~$&ee,e[44]=oe^~se&ce,e[45]=ae^~ue&le,e[6]=x^~k&h,e[7]=A^~E&y,e[16]=P^~M&T,e[17]=R^~B&_,e[26]=U^~q&N,e[27]=Z^~H&F,e[36]=Y^~Q&V,e[37]=$^~ee&G,e[46]=se^~ce&te,e[47]=ue^~le&ne,e[8]=k^~h&v,e[9]=E^~y&g,e[18]=M^~T&S,e[19]=B^~_&C,e[28]=q^~N&D,e[29]=H^~F&L,e[38]=Q^~V&W,e[39]=ee^~G&K,e[48]=ce^~te&re,e[49]=le^~ne&ie,e[0]^=m[r],e[1]^=m[r+1]};if(c)e.exports=S;else{for(I=0;I<C.length;++I)s[C[I]]=S[C[I]];l&&(void 0===(r=function(){return S}.call(t,n,t,e))||(e.exports=r))}}()},73519:function(e,t,n){var r=n(14759).default,i=n(62638).default,o=n(1023).default,a=n(3310).default,s=n(40126).default,u=n(72077).default,c=n(17164).default;e.exports=function(){"use strict";var e=Math.imul,t=Math.clz32,n=Math.abs,l=Math.max,f=Math.floor,d=function(e){s(c,e);var t=u(c);function c(e,n){var r;if(i(this,c),(r=t.call(this,e)).sign=n,e>c.__kMaxLength)throw new RangeError("Maximum BigInt size exceeded");return a(r)}return o(c,[{key:"toDebugString",value:function(){var e,t=["BigInt["],n=r(this);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.push((i?(i>>>0).toString(16):i)+", ")}}catch(o){n.e(o)}finally{n.f()}return t.push("]"),t.join("")}},{key:"toString",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;if(2>e||36<e)throw new RangeError("toString() radix argument must be between 2 and 36");return 0===this.length?"0":0==(e&e-1)?c.__toStringBasePowerOfTwo(this,e):c.__toStringGeneric(this,e,!1)}},{key:"__copy",value:function(){for(var e=new c(this.length,this.sign),t=0;t<this.length;t++)e[t]=this[t];return e}},{key:"__trim",value:function(){for(var e=this.length,t=this[e-1];0===t;)t=this[--e-1],this.pop();return 0===e&&(this.sign=!1),this}},{key:"__initializeDigits",value:function(){for(var e=0;e<this.length;e++)this[e]=0}},{key:"__clzmsd",value:function(){return c.__clz30(this.__digit(this.length-1))}},{key:"__inplaceMultiplyAdd",value:function(e,t,n){n>this.length&&(n=this.length);for(var r=32767&e,i=e>>>15,o=0,a=t,s=0;s<n;s++){var u=this.__digit(s),l=32767&u,f=u>>>15,d=c.__imul(l,r),p=c.__imul(l,i),h=c.__imul(f,r),m=a+d+o;o=m>>>30,m&=1073741823,o+=(m+=((32767&p)<<15)+((32767&h)<<15))>>>30,a=c.__imul(f,i)+(p>>>15)+(h>>>15),this.__setDigit(s,1073741823&m)}if(0!=o||0!==a)throw new Error("implementation bug")}},{key:"__inplaceAdd",value:function(e,t,n){for(var r=0,i=0;i<n;i++){var o=this.__halfDigit(t+i)+e.__halfDigit(i)+r;r=o>>>15,this.__setHalfDigit(t+i,32767&o)}return r}},{key:"__inplaceSub",value:function(e,t,n){var r=0;if(1&t){t>>=1;for(var i=this.__digit(t),o=32767&i,a=0;a<n-1>>>1;a++){var s=e.__digit(a),u=(i>>>15)-(32767&s)-r;r=1&u>>>15,this.__setDigit(t+a,(32767&u)<<15|32767&o),r=1&(o=(32767&(i=this.__digit(t+a+1)))-(s>>>15)-r)>>>15}var c=e.__digit(a),l=(i>>>15)-(32767&c)-r;if(r=1&l>>>15,this.__setDigit(t+a,(32767&l)<<15|32767&o),t+a+1>=this.length)throw new RangeError("out of bounds");0==(1&n)&&(r=1&(o=(32767&(i=this.__digit(t+a+1)))-(c>>>15)-r)>>>15,this.__setDigit(t+e.length,1073709056&i|32767&o))}else{t>>=1;for(var f=0;f<e.length-1;f++){var d=this.__digit(t+f),p=e.__digit(f),h=(32767&d)-(32767&p)-r,m=(d>>>15)-(p>>>15)-(r=1&h>>>15);r=1&m>>>15,this.__setDigit(t+f,(32767&m)<<15|32767&h)}var y=this.__digit(t+f),v=e.__digit(f),g=(32767&y)-(32767&v)-r;r=1&g>>>15;var b=0;0==(1&n)&&(r=1&(b=(y>>>15)-(v>>>15)-r)>>>15),this.__setDigit(t+f,(32767&b)<<15|32767&g)}return r}},{key:"__inplaceRightShift",value:function(e){if(0!==e){for(var t=this.__digit(0)>>>e,n=this.length-1,r=0;r<n;r++){var i=this.__digit(r+1);this.__setDigit(r,1073741823&i<<30-e|t),t=i>>>e}this.__setDigit(n,t)}}},{key:"__digit",value:function(e){return this[e]}},{key:"__unsignedDigit",value:function(e){return this[e]>>>0}},{key:"__setDigit",value:function(e,t){this[e]=0|t}},{key:"__setDigitGrow",value:function(e,t){this[e]=0|t}},{key:"__halfDigitLength",value:function(){var e=this.length;return 32767>=this.__unsignedDigit(e-1)?2*e-1:2*e}},{key:"__halfDigit",value:function(e){return 32767&this[e>>>1]>>>15*(1&e)}},{key:"__setHalfDigit",value:function(e,t){var n=e>>>1,r=this.__digit(n),i=1&e?32767&r|t<<15:1073709056&r|32767&t;this.__setDigit(n,i)}}],[{key:"BigInt",value:function(e){var t=Number.isFinite;if("number"==typeof e){if(0===e)return c.__zero();if(c.__isOneDigitInt(e))return 0>e?c.__oneDigit(-e,!0):c.__oneDigit(e,!1);if(!t(e)||f(e)!==e)throw new RangeError("The number "+e+" cannot be converted to BigInt because it is not an integer");return c.__fromDouble(e)}if("string"==typeof e){var n=c.__fromString(e);if(null===n)throw new SyntaxError("Cannot convert "+e+" to a BigInt");return n}if("boolean"==typeof e)return!0===e?c.__oneDigit(1,!1):c.__zero();if("object"==typeof e){if(e.constructor===c)return e;var r=c.__toPrimitive(e);return c.BigInt(r)}throw new TypeError("Cannot convert "+e+" to a BigInt")}},{key:"toNumber",value:function(e){var t=e.length;if(0===t)return 0;if(1===t){var n=e.__unsignedDigit(0);return e.sign?-n:n}var r=e.__digit(t-1),i=c.__clz30(r),o=30*t-i;if(1024<o)return e.sign?-1/0:1/0;var a=o-1,s=r,u=t-1,l=i+3,f=32===l?0:s<<l;f>>>=12;var d=l-12,p=12<=l?0:s<<20+l,h=20+l;for(0<d&&0<u&&(u--,f|=(s=e.__digit(u))>>>30-d,p=s<<d+2,h=d+2);0<h&&0<u;)u--,s=e.__digit(u),p|=30<=h?s<<h-30:s>>>30-h,h-=30;var m=c.__decideRounding(e,h,u,s);if((1===m||0===m&&1==(1&p))&&0===(p=p+1>>>0)&&0!=++f>>>20&&(f=0,1023<++a))return e.sign?-1/0:1/0;var y=e.sign?-2147483648:0;return a=a+1023<<20,c.__kBitConversionInts[1]=y|a|f,c.__kBitConversionInts[0]=p,c.__kBitConversionDouble[0]}},{key:"unaryMinus",value:function(e){if(0===e.length)return e;var t=e.__copy();return t.sign=!e.sign,t}},{key:"bitwiseNot",value:function(e){return e.sign?c.__absoluteSubOne(e).__trim():c.__absoluteAddOne(e,!0)}},{key:"exponentiate",value:function(e,t){if(t.sign)throw new RangeError("Exponent must be positive");if(0===t.length)return c.__oneDigit(1,!1);if(0===e.length)return e;if(1===e.length&&1===e.__digit(0))return e.sign&&0==(1&t.__digit(0))?c.unaryMinus(e):e;if(1<t.length)throw new RangeError("BigInt too big");var n=t.__unsignedDigit(0);if(1===n)return e;if(n>=c.__kMaxLengthBits)throw new RangeError("BigInt too big");if(1===e.length&&2===e.__digit(0)){var r=1+(0|n/30),i=new c(r,e.sign&&0!=(1&n));i.__initializeDigits();var o=1<<n%30;return i.__setDigit(r-1,o),i}var a=null,s=e;for(0!=(1&n)&&(a=e),n>>=1;0!==n;n>>=1)s=c.multiply(s,s),0!=(1&n)&&(a=null===a?s:c.multiply(a,s));return a}},{key:"multiply",value:function(e,t){if(0===e.length)return e;if(0===t.length)return t;var n=e.length+t.length;30<=e.__clzmsd()+t.__clzmsd()&&n--;var r=new c(n,e.sign!==t.sign);r.__initializeDigits();for(var i=0;i<e.length;i++)c.__multiplyAccumulate(t,e.__digit(i),r,i);return r.__trim()}},{key:"divide",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>c.__absoluteCompare(e,t))return c.__zero();var n,r=e.sign!==t.sign,i=t.__unsignedDigit(0);if(1===t.length&&32767>=i){if(1===i)return r===e.sign?e:c.unaryMinus(e);n=c.__absoluteDivSmall(e,i,null)}else n=c.__absoluteDivLarge(e,t,!0,!1);return n.sign=r,n.__trim()}},{key:"remainder",value:function(e,t){if(0===t.length)throw new RangeError("Division by zero");if(0>c.__absoluteCompare(e,t))return e;var n=t.__unsignedDigit(0);if(1===t.length&&32767>=n){if(1===n)return c.__zero();var r=c.__absoluteModSmall(e,n);return 0===r?c.__zero():c.__oneDigit(r,e.sign)}var i=c.__absoluteDivLarge(e,t,!1,!0);return i.sign=e.sign,i.__trim()}},{key:"add",value:function(e,t){var n=e.sign;return n===t.sign?c.__absoluteAdd(e,t,n):0<=c.__absoluteCompare(e,t)?c.__absoluteSub(e,t,n):c.__absoluteSub(t,e,!n)}},{key:"subtract",value:function(e,t){var n=e.sign;return n===t.sign?0<=c.__absoluteCompare(e,t)?c.__absoluteSub(e,t,n):c.__absoluteSub(t,e,!n):c.__absoluteAdd(e,t,n)}},{key:"leftShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?c.__rightShiftByAbsolute(e,t):c.__leftShiftByAbsolute(e,t)}},{key:"signedRightShift",value:function(e,t){return 0===t.length||0===e.length?e:t.sign?c.__leftShiftByAbsolute(e,t):c.__rightShiftByAbsolute(e,t)}},{key:"unsignedRightShift",value:function(){throw new TypeError("BigInts have no unsigned right shift; use >> instead")}},{key:"lessThan",value:function(e,t){return 0>c.__compareToBigInt(e,t)}},{key:"lessThanOrEqual",value:function(e,t){return 0>=c.__compareToBigInt(e,t)}},{key:"greaterThan",value:function(e,t){return 0<c.__compareToBigInt(e,t)}},{key:"greaterThanOrEqual",value:function(e,t){return 0<=c.__compareToBigInt(e,t)}},{key:"equal",value:function(e,t){if(e.sign!==t.sign)return!1;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e.__digit(n)!==t.__digit(n))return!1;return!0}},{key:"notEqual",value:function(e,t){return!c.equal(e,t)}},{key:"bitwiseAnd",value:function(e,t){var n;if(!e.sign&&!t.sign)return c.__absoluteAnd(e,t).__trim();if(e.sign&&t.sign){var r=l(e.length,t.length)+1,i=c.__absoluteSubOne(e,r),o=c.__absoluteSubOne(t);return i=c.__absoluteOr(i,o,i),c.__absoluteAddOne(i,!0,i).__trim()}return e.sign&&(e=(n=[t,e])[0],t=n[1]),c.__absoluteAndNot(e,c.__absoluteSubOne(t)).__trim()}},{key:"bitwiseXor",value:function(e,t){var n;if(!e.sign&&!t.sign)return c.__absoluteXor(e,t).__trim();if(e.sign&&t.sign){var r=l(e.length,t.length),i=c.__absoluteSubOne(e,r),o=c.__absoluteSubOne(t);return c.__absoluteXor(i,o,i).__trim()}var a=l(e.length,t.length)+1;e.sign&&(e=(n=[t,e])[0],t=n[1]);var s=c.__absoluteSubOne(t,a);return s=c.__absoluteXor(s,e,s),c.__absoluteAddOne(s,!0,s).__trim()}},{key:"bitwiseOr",value:function(e,t){var n,r=l(e.length,t.length);if(!e.sign&&!t.sign)return c.__absoluteOr(e,t).__trim();if(e.sign&&t.sign){var i=c.__absoluteSubOne(e,r),o=c.__absoluteSubOne(t);return i=c.__absoluteAnd(i,o,i),c.__absoluteAddOne(i,!0,i).__trim()}e.sign&&(e=(n=[t,e])[0],t=n[1]);var a=c.__absoluteSubOne(t,r);return a=c.__absoluteAndNot(a,e,a),c.__absoluteAddOne(a,!0,a).__trim()}},{key:"asIntN",value:function(e,t){if(0===t.length)return t;if(0>(e=f(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return c.__zero();if(e>=c.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var r=t.__unsignedDigit(n-1),i=1<<(e-1)%30;if(t.length===n&&r<i)return t;if((r&i)!==i)return c.__truncateToNBits(e,t);if(!t.sign)return c.__truncateAndSubFromPowerOfTwo(e,t,!0);if(0==(r&i-1)){for(var o=n-2;0<=o;o--)if(0!==t.__digit(o))return c.__truncateAndSubFromPowerOfTwo(e,t,!1);return t.length===n&&r===i?t:c.__truncateToNBits(e,t)}return c.__truncateAndSubFromPowerOfTwo(e,t,!1)}},{key:"asUintN",value:function(e,t){if(0===t.length)return t;if(0>(e=f(e)))throw new RangeError("Invalid value: not (convertible to) a safe integer");if(0===e)return c.__zero();if(t.sign){if(e>c.__kMaxLengthBits)throw new RangeError("BigInt too big");return c.__truncateAndSubFromPowerOfTwo(e,t,!1)}if(e>=c.__kMaxLengthBits)return t;var n=0|(e+29)/30;if(t.length<n)return t;var r=e%30;if(t.length==n){if(0===r)return t;if(0==t.__digit(n-1)>>>r)return t}return c.__truncateToNBits(e,t)}},{key:"ADD",value:function(e,t){if(e=c.__toPrimitive(e),t=c.__toPrimitive(t),"string"==typeof e)return"string"!=typeof t&&(t=t.toString()),e+t;if("string"==typeof t)return e.toString()+t;if(e=c.__toNumeric(e),t=c.__toNumeric(t),c.__isBigInt(e)&&c.__isBigInt(t))return c.add(e,t);if("number"==typeof e&&"number"==typeof t)return e+t;throw new TypeError("Cannot mix BigInt and other types, use explicit conversions")}},{key:"LT",value:function(e,t){return c.__compare(e,t,0)}},{key:"LE",value:function(e,t){return c.__compare(e,t,1)}},{key:"GT",value:function(e,t){return c.__compare(e,t,2)}},{key:"GE",value:function(e,t){return c.__compare(e,t,3)}},{key:"EQ",value:function(e,t){for(;;){if(c.__isBigInt(e))return c.__isBigInt(t)?c.equal(e,t):c.EQ(t,e);if("number"==typeof e){if(c.__isBigInt(t))return c.__equalToNumber(t,e);if("object"!=typeof t)return e==t;t=c.__toPrimitive(t)}else if("string"==typeof e){if(c.__isBigInt(t))return null!==(e=c.__fromString(e))&&c.equal(e,t);if("object"!=typeof t)return e==t;t=c.__toPrimitive(t)}else if("boolean"==typeof e){if(c.__isBigInt(t))return c.__equalToNumber(t,+e);if("object"!=typeof t)return e==t;t=c.__toPrimitive(t)}else if("symbol"==typeof e){if(c.__isBigInt(t))return!1;if("object"!=typeof t)return e==t;t=c.__toPrimitive(t)}else{if("object"!=typeof e)return e==t;if("object"==typeof t&&t.constructor!==c)return e==t;e=c.__toPrimitive(e)}}}},{key:"NE",value:function(e,t){return!c.EQ(e,t)}},{key:"__zero",value:function(){return new c(0,!1)}},{key:"__oneDigit",value:function(e,t){var n=new c(1,t);return n.__setDigit(0,e),n}},{key:"__decideRounding",value:function(e,t,n,r){if(0<t)return-1;var i;if(0>t)i=-t-1;else{if(0===n)return-1;n--,r=e.__digit(n),i=29}var o=1<<i;if(0==(r&o))return-1;if(0!=(r&(o-=1)))return 1;for(;0<n;)if(n--,0!==e.__digit(n))return 1;return 0}},{key:"__fromDouble",value:function(e){c.__kBitConversionDouble[0]=e;var t,n=(2047&c.__kBitConversionInts[1]>>>20)-1023,r=1+(0|n/30),i=new c(r,0>e),o=1048575&c.__kBitConversionInts[1]|1048576,a=c.__kBitConversionInts[0],s=20,u=n%30,l=0;if(20>u){var f=s-u;l=f+32,t=o>>>f,o=o<<32-f|a>>>f,a<<=32-f}else if(20===u)l=32,t=o,o=a,a=0;else{var d=u-s;l=32-d,t=o<<d|a>>>32-d,o=a<<d,a=0}i.__setDigit(r-1,t);for(var p=r-2;0<=p;p--)0<l?(l-=30,t=o>>>2,o=o<<30|a>>>2,a<<=30):t=0,i.__setDigit(p,t);return i.__trim()}},{key:"__isWhitespace",value:function(e){return!!(13>=e&&9<=e)||(159>=e?32==e:131071>=e?160==e||5760==e:196607>=e?10>=(e&=131071)||40==e||41==e||47==e||95==e||4096==e:65279==e)}},{key:"__fromString",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=0,r=e.length,i=0;if(i===r)return c.__zero();for(var o=e.charCodeAt(i);c.__isWhitespace(o);){if(++i===r)return c.__zero();o=e.charCodeAt(i)}if(43===o){if(++i===r)return null;o=e.charCodeAt(i),n=1}else if(45===o){if(++i===r)return null;o=e.charCodeAt(i),n=-1}if(0===t){if(t=10,48===o){if(++i===r)return c.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(t=16,++i===r)return null;o=e.charCodeAt(i)}else if(79===o||111===o){if(t=8,++i===r)return null;o=e.charCodeAt(i)}else if(66===o||98===o){if(t=2,++i===r)return null;o=e.charCodeAt(i)}}}else if(16===t&&48===o){if(++i===r)return c.__zero();if(88===(o=e.charCodeAt(i))||120===o){if(++i===r)return null;o=e.charCodeAt(i)}}if(0!=n&&10!==t)return null;for(;48===o;){if(++i===r)return c.__zero();o=e.charCodeAt(i)}var a=r-i,s=c.__kMaxBitsPerChar[t],u=c.__kBitsPerCharTableMultiplier-1;if(a>1073741824/s)return null;var l=new c(0|(29+(s*a+u>>>c.__kBitsPerCharTableShift))/30,!1),f=10>t?t:10,d=10<t?t-10:0;if(0==(t&t-1)){s>>=c.__kBitsPerCharTableShift;var p=[],h=[],m=!1;do{for(var y=0,v=0;;){var g=void 0;if(o-48>>>0<f)g=o-48;else{if(!((32|o)-97>>>0<d)){m=!0;break}g=(32|o)-87}if(v+=s,y=y<<s|g,++i===r){m=!0;break}if(o=e.charCodeAt(i),30<v+s)break}p.push(y),h.push(v)}while(!m);c.__fillFromParts(l,p,h)}else{l.__initializeDigits();var b=!1,w=0;do{for(var x=0,A=1;;){var k=void 0;if(o-48>>>0<f)k=o-48;else{if(!((32|o)-97>>>0<d)){b=!0;break}k=(32|o)-87}var E=A*t;if(1073741823<E)break;if(A=E,x=x*t+k,w++,++i===r){b=!0;break}o=e.charCodeAt(i)}var T=0|(s*w+(u=30*c.__kBitsPerCharTableMultiplier-1)>>>c.__kBitsPerCharTableShift)/30;l.__inplaceMultiplyAdd(A,x,T)}while(!b)}if(i!==r){if(!c.__isWhitespace(o))return null;for(i++;i<r;i++)if(o=e.charCodeAt(i),!c.__isWhitespace(o))return null}return l.sign=-1==n,l.__trim()}},{key:"__fillFromParts",value:function(e,t,n){for(var r=0,i=0,o=0,a=t.length-1;0<=a;a--){var s=t[a],u=n[a];i|=s<<o,30===(o+=u)?(e.__setDigit(r++,i),o=0,i=0):30<o&&(e.__setDigit(r++,1073741823&i),i=s>>>u-(o-=30))}if(0!==i){if(r>=e.length)throw new Error("implementation bug");e.__setDigit(r++,i)}for(;r<e.length;r++)e.__setDigit(r,0)}},{key:"__toStringBasePowerOfTwo",value:function(e,t){var n=e.length,r=t-1,i=r=(15&(r=(51&(r=(85&r>>>1)+(85&r))>>>2)+(51&r))>>>4)+(15&r),o=t-1,a=e.__digit(n-1),s=0|(30*n-c.__clz30(a)+i-1)/i;if(e.sign&&s++,268435456<s)throw new Error("string too long");for(var u=Array(s),l=s-1,f=0,d=0,p=0;p<n-1;p++){var h=e.__digit(p),m=(f|h<<d)&o;u[l--]=c.__kConversionChars[m];var y=i-d;for(f=h>>>y,d=30-y;d>=i;)u[l--]=c.__kConversionChars[f&o],f>>>=i,d-=i}var v=(f|a<<d)&o;for(u[l--]=c.__kConversionChars[v],f=a>>>i-d;0!==f;)u[l--]=c.__kConversionChars[f&o],f>>>=i;if(e.sign&&(u[l--]="-"),-1!=l)throw new Error("implementation bug");return u.join("")}},{key:"__toStringGeneric",value:function(e,t,n){var r=e.length;if(0===r)return"";if(1===r){var i=e.__unsignedDigit(0).toString(t);return!1===n&&e.sign&&(i="-"+i),i}var o,a,s=30*r-c.__clz30(e.__digit(r-1)),u=c.__kMaxBitsPerChar[t]-1,l=s*c.__kBitsPerCharTableMultiplier,f=1+(l=0|(l+=u-1)/u)>>1,d=c.exponentiate(c.__oneDigit(t,!1),c.__oneDigit(f,!1)),p=d.__unsignedDigit(0);if(1===d.length&&32767>=p){(o=new c(e.length,!1)).__initializeDigits();for(var h=0,m=2*e.length-1;0<=m;m--){var y=h<<15|e.__halfDigit(m);o.__setHalfDigit(m,0|y/p),h=0|y%p}a=h.toString(t)}else{var v=c.__absoluteDivLarge(e,d,!0,!0);o=v.quotient;var g=v.remainder.__trim();a=c.__toStringGeneric(g,t,!0)}o.__trim();for(var b=c.__toStringGeneric(o,t,!0);a.length<f;)a="0"+a;return!1===n&&e.sign&&(b="-"+b),b+a}},{key:"__unequalSign",value:function(e){return e?-1:1}},{key:"__absoluteGreater",value:function(e){return e?-1:1}},{key:"__absoluteLess",value:function(e){return e?1:-1}},{key:"__compareToBigInt",value:function(e,t){var n=e.sign;if(n!==t.sign)return c.__unequalSign(n);var r=c.__absoluteCompare(e,t);return 0<r?c.__absoluteGreater(n):0>r?c.__absoluteLess(n):0}},{key:"__compareToNumber",value:function(e,t){if(c.__isOneDigitInt(t)){var r=e.sign,i=0>t;if(r!==i)return c.__unequalSign(r);if(0===e.length){if(i)throw new Error("implementation bug");return 0===t?0:-1}if(1<e.length)return c.__absoluteGreater(r);var o=n(t),a=e.__unsignedDigit(0);return a>o?c.__absoluteGreater(r):a<o?c.__absoluteLess(r):0}return c.__compareToDouble(e,t)}},{key:"__compareToDouble",value:function(e,t){if(t!==t)return t;if(t===1/0)return-1;if(t===-1/0)return 1;var n=e.sign;if(n!==0>t)return c.__unequalSign(n);if(0===t)throw new Error("implementation bug: should be handled elsewhere");if(0===e.length)return-1;c.__kBitConversionDouble[0]=t;var r=2047&c.__kBitConversionInts[1]>>>20;if(2047==r)throw new Error("implementation bug: handled elsewhere");var i=r-1023;if(0>i)return c.__absoluteGreater(n);var o=e.length,a=e.__digit(o-1),s=c.__clz30(a),u=30*o-s,l=i+1;if(u<l)return c.__absoluteLess(n);if(u>l)return c.__absoluteGreater(n);var f=1048576|1048575&c.__kBitConversionInts[1],d=c.__kBitConversionInts[0],p=20,h=29-s;if(h!==(0|(u-1)%30))throw new Error("implementation bug");var m,y=0;if(20>h){var v=p-h;y=v+32,m=f>>>v,f=f<<32-v|d>>>v,d<<=32-v}else if(20===h)y=32,m=f,f=d,d=0;else{var g=h-p;y=32-g,m=f<<g|d>>>32-g,f=d<<g,d=0}if((a>>>=0)>(m>>>=0))return c.__absoluteGreater(n);if(a<m)return c.__absoluteLess(n);for(var b=o-2;0<=b;b--){0<y?(y-=30,m=f>>>2,f=f<<30|d>>>2,d<<=30):m=0;var w=e.__unsignedDigit(b);if(w>m)return c.__absoluteGreater(n);if(w<m)return c.__absoluteLess(n)}if(0!==f||0!==d){if(0===y)throw new Error("implementation bug");return c.__absoluteLess(n)}return 0}},{key:"__equalToNumber",value:function(e,t){return c.__isOneDigitInt(t)?0===t?0===e.length:1===e.length&&e.sign===0>t&&e.__unsignedDigit(0)===n(t):0===c.__compareToDouble(e,t)}},{key:"__comparisonResultToBool",value:function(e,t){return 0===t?0>e:1===t?0>=e:2===t?0<e:3===t?0<=e:void 0}},{key:"__compare",value:function(e,t,n){if(e=c.__toPrimitive(e),t=c.__toPrimitive(t),"string"==typeof e&&"string"==typeof t)switch(n){case 0:return e<t;case 1:return e<=t;case 2:return e>t;case 3:return e>=t}if(c.__isBigInt(e)&&"string"==typeof t)return null!==(t=c.__fromString(t))&&c.__comparisonResultToBool(c.__compareToBigInt(e,t),n);if("string"==typeof e&&c.__isBigInt(t))return null!==(e=c.__fromString(e))&&c.__comparisonResultToBool(c.__compareToBigInt(e,t),n);if(e=c.__toNumeric(e),t=c.__toNumeric(t),c.__isBigInt(e)){if(c.__isBigInt(t))return c.__comparisonResultToBool(c.__compareToBigInt(e,t),n);if("number"!=typeof t)throw new Error("implementation bug");return c.__comparisonResultToBool(c.__compareToNumber(e,t),n)}if("number"!=typeof e)throw new Error("implementation bug");if(c.__isBigInt(t))return c.__comparisonResultToBool(c.__compareToNumber(t,e),2^n);if("number"!=typeof t)throw new Error("implementation bug");return 0===n?e<t:1===n?e<=t:2===n?e>t:3===n?e>=t:void 0}},{key:"__absoluteAdd",value:function(e,t,n){if(e.length<t.length)return c.__absoluteAdd(t,e,n);if(0===e.length)return e;if(0===t.length)return e.sign===n?e:c.unaryMinus(e);var r=e.length;(0===e.__clzmsd()||t.length===e.length&&0===t.__clzmsd())&&r++;for(var i=new c(r,n),o=0,a=0;a<t.length;a++){var s=e.__digit(a)+t.__digit(a)+o;o=s>>>30,i.__setDigit(a,1073741823&s)}for(;a<e.length;a++){var u=e.__digit(a)+o;o=u>>>30,i.__setDigit(a,1073741823&u)}return a<i.length&&i.__setDigit(a,o),i.__trim()}},{key:"__absoluteSub",value:function(e,t,n){if(0===e.length)return e;if(0===t.length)return e.sign===n?e:c.unaryMinus(e);for(var r=new c(e.length,n),i=0,o=0;o<t.length;o++){var a=e.__digit(o)-t.__digit(o)-i;i=1&a>>>30,r.__setDigit(o,1073741823&a)}for(;o<e.length;o++){var s=e.__digit(o)-i;i=1&s>>>30,r.__setDigit(o,1073741823&s)}return r.__trim()}},{key:"__absoluteAddOne",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length;null===n?n=new c(r,t):n.sign=t;for(var i=1,o=0;o<r;o++){var a=e.__digit(o)+i;i=a>>>30,n.__setDigit(o,1073741823&a)}return 0!=i&&n.__setDigitGrow(r,1),n}},{key:"__absoluteSubOne",value:function(e,t){for(var n=e.length,r=new c(t=t||n,!1),i=1,o=0;o<n;o++){var a=e.__digit(o)-i;i=1&a>>>30,r.__setDigit(o,1073741823&a)}if(0!=i)throw new Error("implementation bug");for(var s=n;s<t;s++)r.__setDigit(s,0);return r}},{key:"__absoluteAnd",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var a=e,s=r;e=t,r=i,t=a,i=s}var u=o;null===n?n=new c(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)&t.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteAndNot",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;r<i&&(o=r);var a=r;null===n?n=new c(a,!1):a=n.length;for(var s=0;s<o;s++)n.__setDigit(s,e.__digit(s)&~t.__digit(s));for(;s<r;s++)n.__setDigit(s,e.__digit(s));for(;s<a;s++)n.__setDigit(s,0);return n}},{key:"__absoluteOr",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var a=e,s=r;e=t,r=i,t=a,i=s}var u=r;null===n?n=new c(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)|t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteXor",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=e.length,i=t.length,o=i;if(r<i){o=r;var a=e,s=r;e=t,r=i,t=a,i=s}var u=r;null===n?n=new c(u,!1):u=n.length;for(var l=0;l<o;l++)n.__setDigit(l,e.__digit(l)^t.__digit(l));for(;l<r;l++)n.__setDigit(l,e.__digit(l));for(;l<u;l++)n.__setDigit(l,0);return n}},{key:"__absoluteCompare",value:function(e,t){var n=e.length-t.length;if(0!=n)return n;for(var r=e.length-1;0<=r&&e.__digit(r)===t.__digit(r);)r--;return 0>r?0:e.__unsignedDigit(r)>t.__unsignedDigit(r)?1:-1}},{key:"__multiplyAccumulate",value:function(e,t,n,r){if(0!==t){for(var i,o=32767&t,a=t>>>15,s=0,u=0,l=0;l<e.length;l++,r++){i=n.__digit(r);var f=e.__digit(l),d=32767&f,p=f>>>15,h=c.__imul(d,o),m=c.__imul(d,a),y=c.__imul(p,o);s=(i+=u+h+s)>>>30,i&=1073741823,s+=(i+=((32767&m)<<15)+((32767&y)<<15))>>>30,u=c.__imul(p,a)+(m>>>15)+(y>>>15),n.__setDigit(r,1073741823&i)}for(;0!=s||0!==u;r++){var v=n.__digit(r);v+=s+u,u=0,s=v>>>30,n.__setDigit(r,1073741823&v)}}}},{key:"__internalMultiplyAdd",value:function(e,t,n,r,i){for(var o=n,a=0,s=0;s<r;s++){var u=e.__digit(s),l=c.__imul(32767&u,t),f=c.__imul(u>>>15,t),d=l+((32767&f)<<15)+a+o;o=d>>>30,a=f>>>15,i.__setDigit(s,1073741823&d)}if(i.length>r)for(i.__setDigit(r++,o+a);r<i.length;)i.__setDigit(r++,0);else if(0!==o+a)throw new Error("implementation bug")}},{key:"__absoluteDivSmall",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null===n&&(n=new c(e.length,!1));for(var r,i=0,o=2*e.length-1;0<=o;o-=2){var a=0|(r=(i<<15|e.__halfDigit(o))>>>0)/t,s=0|(r=((i=0|r%t)<<15|e.__halfDigit(o-1))>>>0)/t;i=0|r%t,n.__setDigit(o>>>1,a<<15|s)}return n}},{key:"__absoluteModSmall",value:function(e,t){for(var n=0,r=2*e.length-1;0<=r;r--)n=0|((n<<15|e.__halfDigit(r))>>>0)%t;return n}},{key:"__absoluteDivLarge",value:function(e,t,n,r){var i=t.__halfDigitLength(),o=t.length,a=e.__halfDigitLength()-i,s=null;n&&(s=new c(a+2>>>1,!1)).__initializeDigits();var u=new c(i+2>>>1,!1);u.__initializeDigits();var l=c.__clz15(t.__halfDigit(i-1));0<l&&(t=c.__specialLeftShift(t,l,0));for(var f,d=c.__specialLeftShift(e,l,1),p=t.__halfDigit(i-1),h=0,m=a;0<=m;m--){f=32767;var y=d.__halfDigit(m+i);if(y!==p){var v=(y<<15|d.__halfDigit(m+i-1))>>>0;f=0|v/p;for(var g=0|v%p,b=t.__halfDigit(i-2),w=d.__halfDigit(m+i-2);c.__imul(f,b)>>>0>(g<<16|w)>>>0&&(f--,!(32767<(g+=p))););}c.__internalMultiplyAdd(t,f,0,o,u);var x=d.__inplaceSub(u,m,i+1);0!==x&&(x=d.__inplaceAdd(t,m,i),d.__setHalfDigit(m+i,32767&d.__halfDigit(m+i)+x),f--),n&&(1&m?h=f<<15:s.__setDigit(m>>>1,h|f))}if(r)return d.__inplaceRightShift(l),n?{quotient:s,remainder:d}:d;if(n)return s;throw new Error("unreachable")}},{key:"__clz15",value:function(e){return c.__clz30(e)-15}},{key:"__specialLeftShift",value:function(e,t,n){var r=e.length,i=new c(r+n,!1);if(0===t){for(var o=0;o<r;o++)i.__setDigit(o,e.__digit(o));return 0<n&&i.__setDigit(r,0),i}for(var a=0,s=0;s<r;s++){var u=e.__digit(s);i.__setDigit(s,1073741823&u<<t|a),a=u>>>30-t}return 0<n&&i.__setDigit(r,a),i}},{key:"__leftShiftByAbsolute",value:function(e,t){var n=c.__toShiftAmount(t);if(0>n)throw new RangeError("BigInt too big");var r=0|n/30,i=n%30,o=e.length,a=0!==i&&0!=e.__digit(o-1)>>>30-i,s=o+r+(a?1:0),u=new c(s,e.sign);if(0===i){for(var l=0;l<r;l++)u.__setDigit(l,0);for(;l<s;l++)u.__setDigit(l,e.__digit(l-r))}else{for(var f=0,d=0;d<r;d++)u.__setDigit(d,0);for(var p=0;p<o;p++){var h=e.__digit(p);u.__setDigit(p+r,1073741823&h<<i|f),f=h>>>30-i}if(a)u.__setDigit(o+r,f);else if(0!==f)throw new Error("implementation bug")}return u.__trim()}},{key:"__rightShiftByAbsolute",value:function(e,t){var n=e.length,r=e.sign,i=c.__toShiftAmount(t);if(0>i)return c.__rightShiftByMaximum(r);var o=0|i/30,a=i%30,s=n-o;if(0>=s)return c.__rightShiftByMaximum(r);var u=!1;if(r)if(0!=(e.__digit(o)&(1<<a)-1))u=!0;else for(var l=0;l<o;l++)if(0!==e.__digit(l)){u=!0;break}u&&0===a&&0==~e.__digit(n-1)&&s++;var f=new c(s,r);if(0===a){f.__setDigit(s-1,0);for(var d=o;d<n;d++)f.__setDigit(d-o,e.__digit(d))}else{for(var p=e.__digit(o)>>>a,h=n-o-1,m=0;m<h;m++){var y=e.__digit(m+o+1);f.__setDigit(m,1073741823&y<<30-a|p),p=y>>>a}f.__setDigit(h,p)}return u&&(f=c.__absoluteAddOne(f,!0,f)),f.__trim()}},{key:"__rightShiftByMaximum",value:function(e){return e?c.__oneDigit(1,!0):c.__zero()}},{key:"__toShiftAmount",value:function(e){if(1<e.length)return-1;var t=e.__unsignedDigit(0);return t>c.__kMaxLengthBits?-1:t}},{key:"__toPrimitive",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default";if("object"!=typeof e)return e;if(e.constructor===c)return e;if("undefined"!=typeof Symbol&&"symbol"==typeof Symbol.toPrimitive){var n=e[Symbol.toPrimitive];if(n){var r=n(t);if("object"!=typeof r)return r;throw new TypeError("Cannot convert object to primitive value")}}var i=e.valueOf;if(i){var o=i.call(e);if("object"!=typeof o)return o}var a=e.toString;if(a){var s=a.call(e);if("object"!=typeof s)return s}throw new TypeError("Cannot convert object to primitive value")}},{key:"__toNumeric",value:function(e){return c.__isBigInt(e)?e:+e}},{key:"__isBigInt",value:function(e){return"object"==typeof e&&null!==e&&e.constructor===c}},{key:"__truncateToNBits",value:function(e,t){for(var n=0|(e+29)/30,r=new c(n,t.sign),i=n-1,o=0;o<i;o++)r.__setDigit(o,t.__digit(o));var a=t.__digit(i);if(0!=e%30){var s=32-e%30;a=a<<s>>>s}return r.__setDigit(i,a),r.__trim()}},{key:"__truncateAndSubFromPowerOfTwo",value:function(e,t,n){for(var r=Math.min,i=0|(e+29)/30,o=new c(i,n),a=0,s=i-1,u=0,l=r(s,t.length);a<l;a++){var f=0-t.__digit(a)-u;u=1&f>>>30,o.__setDigit(a,1073741823&f)}for(;a<s;a++)o.__setDigit(a,0|1073741823&-u);var d,p=s<t.length?t.__digit(s):0,h=e%30;if(0==h)d=0-p-u,d&=1073741823;else{var m=32-h,y=1<<32-m;d=y-(p=p<<m>>>m)-u,d&=y-1}return o.__setDigit(s,d),o.__trim()}},{key:"__digitPow",value:function(e,t){for(var n=1;0<t;)1&t&&(n*=e),t>>>=1,e*=e;return n}},{key:"__isOneDigitInt",value:function(e){return(1073741823&e)===e}}]),c}(c(Array));return d.__kMaxLength=33554432,d.__kMaxLengthBits=d.__kMaxLength<<5,d.__kMaxBitsPerChar=[0,0,32,51,64,75,83,90,96,102,107,111,115,119,122,126,128,131,134,136,139,141,143,145,147,149,151,153,154,156,158,159,160,162,163,165,166],d.__kBitsPerCharTableShift=5,d.__kBitsPerCharTableMultiplier=1<<d.__kBitsPerCharTableShift,d.__kConversionChars=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"],d.__kBitConversionBuffer=new ArrayBuffer(8),d.__kBitConversionDouble=new Float64Array(d.__kBitConversionBuffer),d.__kBitConversionInts=new Int32Array(d.__kBitConversionBuffer),d.__clz30=t?function(e){return t(e)-2}:function(e){var t=Math.LN2,n=Math.log;return 0===e?30:0|29-(0|n(e>>>0)/t)},d.__imul=e||function(e,t){return 0|e*t},d}()},90942:function(e,t,n){var r=NaN,i="[object Symbol]",o=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,u=/^0o[0-7]+$/i,c=parseInt,l="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,f="object"==typeof self&&self&&self.Object===Object&&self,d=l||f||Function("return this")(),p=Object.prototype.toString,h=Math.max,m=Math.min,y=function(){return d.Date.now()};function v(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function g(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&p.call(e)==i}(e))return r;if(v(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=v(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(o,"");var n=s.test(e);return n||u.test(e)?c(e.slice(2),n?2:8):a.test(e)?r:+e}e.exports=function(e,t,n){var r,i,o,a,s,u,c=0,l=!1,f=!1,d=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,c=t,a=e.apply(o,n)}function b(e){var n=e-u;return void 0===u||n>=t||n<0||f&&e-c>=o}function w(){var e=y();if(b(e))return x(e);s=setTimeout(w,function(e){var n=t-(e-u);return f?m(n,o-(e-c)):n}(e))}function x(e){return s=void 0,d&&r?p(e):(r=i=void 0,a)}function A(){var e=y(),n=b(e);if(r=arguments,i=this,u=e,n){if(void 0===s)return function(e){return c=e,s=setTimeout(w,t),l?p(e):a}(u);if(f)return s=setTimeout(w,t),p(u)}return void 0===s&&(s=setTimeout(w,t)),a}return t=g(t)||0,v(n)&&(l=!!n.leading,o=(f="maxWait"in n)?h(g(n.maxWait)||0,t):o,d="trailing"in n?!!n.trailing:d),A.cancel=function(){void 0!==s&&clearTimeout(s),c=0,r=u=i=s=void 0},A.flush=function(){return void 0===s?a:x(y())},A}},59066:function(e,t,n){var r="__lodash_hash_undefined__",i=1/0,o="[object Function]",a="[object GeneratorFunction]",s="[object Symbol]",u=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,c=/^\w*$/,l=/^\./,f=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,d=/\\(\\)?/g,p=/^\[object .+?Constructor\]$/,h="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,m="object"==typeof self&&self&&self.Object===Object&&self,y=h||m||Function("return this")();var v=Array.prototype,g=Function.prototype,b=Object.prototype,w=y["__core-js_shared__"],x=function(){var e=/[^.]+$/.exec(w&&w.keys&&w.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),A=g.toString,k=b.hasOwnProperty,E=b.toString,T=RegExp("^"+A.call(k).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),_=y.Symbol,S=v.splice,C=z(y,"Map"),I=z(Object,"create"),O=_?_.prototype:void 0,P=O?O.toString:void 0;function R(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function M(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function B(e){var t=-1,n=e?e.length:0;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function N(e,t){for(var n,r,i=e.length;i--;)if((n=e[i][0])===(r=t)||n!==n&&r!==r)return i;return-1}function F(e,t){var n;t=function(e,t){if(q(e))return!1;var n=typeof e;if("number"==n||"symbol"==n||"boolean"==n||null==e||V(e))return!0;return c.test(e)||!u.test(e)||null!=t&&e in Object(t)}(t,e)?[t]:q(n=t)?n:j(n);for(var r=0,i=t.length;null!=e&&r<i;)e=e[U(t[r++])];return r&&r==i?e:void 0}function D(e){if(!H(e)||(t=e,x&&x in t))return!1;var t,n=function(e){var t=H(e)?E.call(e):"";return t==o||t==a}(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(n){}return t}(e)?T:p;return n.test(function(e){if(null!=e){try{return A.call(e)}catch(t){}try{return e+""}catch(t){}}return""}(e))}function L(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function z(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return D(n)?n:void 0}R.prototype.clear=function(){this.__data__=I?I(null):{}},R.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},R.prototype.get=function(e){var t=this.__data__;if(I){var n=t[e];return n===r?void 0:n}return k.call(t,e)?t[e]:void 0},R.prototype.has=function(e){var t=this.__data__;return I?void 0!==t[e]:k.call(t,e)},R.prototype.set=function(e,t){return this.__data__[e]=I&&void 0===t?r:t,this},M.prototype.clear=function(){this.__data__=[]},M.prototype.delete=function(e){var t=this.__data__,n=N(t,e);return!(n<0)&&(n==t.length-1?t.pop():S.call(t,n,1),!0)},M.prototype.get=function(e){var t=this.__data__,n=N(t,e);return n<0?void 0:t[n][1]},M.prototype.has=function(e){return N(this.__data__,e)>-1},M.prototype.set=function(e,t){var n=this.__data__,r=N(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},B.prototype.clear=function(){this.__data__={hash:new R,map:new(C||M),string:new R}},B.prototype.delete=function(e){return L(this,e).delete(e)},B.prototype.get=function(e){return L(this,e).get(e)},B.prototype.has=function(e){return L(this,e).has(e)},B.prototype.set=function(e,t){return L(this,e).set(e,t),this};var j=Z((function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(V(e))return P?P.call(e):"";var t=e+"";return"0"==t&&1/e==-i?"-0":t}(t);var n=[];return l.test(e)&&n.push(""),e.replace(f,(function(e,t,r,i){n.push(r?i.replace(d,"$1"):t||e)})),n}));function U(e){if("string"==typeof e||V(e))return e;var t=e+"";return"0"==t&&1/e==-i?"-0":t}function Z(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function n(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var a=e.apply(this,r);return n.cache=o.set(i,a),a};return n.cache=new(Z.Cache||B),n}Z.Cache=B;var q=Array.isArray;function H(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function V(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&E.call(e)==s}e.exports=function(e,t,n){var r=null==e?void 0:F(e,t);return void 0===r?n:r}},60638:function(e,t,n){e=n.nmd(e);var r="__lodash_hash_undefined__",i=1,o=2,a=9007199254740991,s="[object Arguments]",u="[object Array]",c="[object AsyncFunction]",l="[object Boolean]",f="[object Date]",d="[object Error]",p="[object Function]",h="[object GeneratorFunction]",m="[object Map]",y="[object Number]",v="[object Null]",g="[object Object]",b="[object Promise]",w="[object Proxy]",x="[object RegExp]",A="[object Set]",k="[object String]",E="[object Symbol]",T="[object Undefined]",_="[object WeakMap]",S="[object ArrayBuffer]",C="[object DataView]",I=/^\[object .+?Constructor\]$/,O=/^(?:0|[1-9]\d*)$/,P={};P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P[s]=P[u]=P[S]=P[l]=P[C]=P[f]=P[d]=P[p]=P[m]=P[y]=P[g]=P[x]=P[A]=P[k]=P[_]=!1;var R="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,M="object"==typeof self&&self&&self.Object===Object&&self,B=R||M||Function("return this")(),N=t&&!t.nodeType&&t,F=N&&e&&!e.nodeType&&e,D=F&&F.exports===N,L=D&&R.process,z=function(){try{return L&&L.binding&&L.binding("util")}catch(e){}}(),j=z&&z.isTypedArray;function U(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function Z(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function q(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var H,V,G=Array.prototype,W=Function.prototype,K=Object.prototype,J=B["__core-js_shared__"],X=W.toString,Y=K.hasOwnProperty,$=function(){var e=/[^.]+$/.exec(J&&J.keys&&J.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}(),Q=K.toString,ee=RegExp("^"+X.call(Y).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=D?B.Buffer:void 0,ne=B.Symbol,re=B.Uint8Array,ie=K.propertyIsEnumerable,oe=G.splice,ae=ne?ne.toStringTag:void 0,se=Object.getOwnPropertySymbols,ue=te?te.isBuffer:void 0,ce=(H=Object.keys,V=Object,function(e){return H(V(e))}),le=Le(B,"DataView"),fe=Le(B,"Map"),de=Le(B,"Promise"),pe=Le(B,"Set"),he=Le(B,"WeakMap"),me=Le(Object,"create"),ye=Ze(le),ve=Ze(fe),ge=Ze(de),be=Ze(pe),we=Ze(he),xe=ne?ne.prototype:void 0,Ae=xe?xe.valueOf:void 0;function ke(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Ee(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Te(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function _e(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Te;++t<n;)this.add(e[t])}function Se(e){var t=this.__data__=new Ee(e);this.size=t.size}function Ce(e,t){var n=Ve(e),r=!n&&He(e),i=!n&&!r&&Ge(e),o=!n&&!r&&!i&&Ye(e),a=n||r||i||o,s=a?function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}(e.length,String):[],u=s.length;for(var c in e)!t&&!Y.call(e,c)||a&&("length"==c||i&&("offset"==c||"parent"==c)||o&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Ue(c,u))||s.push(c);return s}function Ie(e,t){for(var n=e.length;n--;)if(qe(e[n][0],t))return n;return-1}function Oe(e){return null==e?void 0===e?T:v:ae&&ae in Object(e)?function(e){var t=Y.call(e,ae),n=e[ae];try{e[ae]=void 0;var r=!0}catch(o){}var i=Q.call(e);r&&(t?e[ae]=n:delete e[ae]);return i}(e):function(e){return Q.call(e)}(e)}function Pe(e){return Xe(e)&&Oe(e)==s}function Re(e,t,n,r,a){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!==e&&t!==t:function(e,t,n,r,a,c){var p=Ve(e),h=Ve(t),v=p?u:je(e),b=h?u:je(t),w=(v=v==s?g:v)==g,T=(b=b==s?g:b)==g,_=v==b;if(_&&Ge(e)){if(!Ge(t))return!1;p=!0,w=!1}if(_&&!w)return c||(c=new Se),p||Ye(e)?Ne(e,t,n,r,a,c):function(e,t,n,r,a,s,u){switch(n){case C:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!s(new re(e),new re(t)));case l:case f:case y:return qe(+e,+t);case d:return e.name==t.name&&e.message==t.message;case x:case k:return e==t+"";case m:var c=Z;case A:var p=r&i;if(c||(c=q),e.size!=t.size&&!p)return!1;var h=u.get(e);if(h)return h==t;r|=o,u.set(e,t);var v=Ne(c(e),c(t),r,a,s,u);return u.delete(e),v;case E:if(Ae)return Ae.call(e)==Ae.call(t)}return!1}(e,t,v,n,r,a,c);if(!(n&i)){var I=w&&Y.call(e,"__wrapped__"),O=T&&Y.call(t,"__wrapped__");if(I||O){var P=I?e.value():e,R=O?t.value():t;return c||(c=new Se),a(P,R,n,r,c)}}if(!_)return!1;return c||(c=new Se),function(e,t,n,r,o,a){var s=n&i,u=Fe(e),c=u.length,l=Fe(t),f=l.length;if(c!=f&&!s)return!1;var d=c;for(;d--;){var p=u[d];if(!(s?p in t:Y.call(t,p)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var m=!0;a.set(e,t),a.set(t,e);var y=s;for(;++d<c;){var v=e[p=u[d]],g=t[p];if(r)var b=s?r(g,v,p,t,e,a):r(v,g,p,e,t,a);if(!(void 0===b?v===g||o(v,g,n,r,a):b)){m=!1;break}y||(y="constructor"==p)}if(m&&!y){var w=e.constructor,x=t.constructor;w==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof x&&x instanceof x||(m=!1)}return a.delete(e),a.delete(t),m}(e,t,n,r,a,c)}(e,t,n,r,Re,a))}function Me(e){return!(!Je(e)||function(e){return!!$&&$ in e}(e))&&(We(e)?ee:I).test(Ze(e))}function Be(e){if(!function(e){var t=e&&e.constructor,n="function"==typeof t&&t.prototype||K;return e===n}(e))return ce(e);var t=[];for(var n in Object(e))Y.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Ne(e,t,n,r,a,s){var u=n&i,c=e.length,l=t.length;if(c!=l&&!(u&&l>c))return!1;var f=s.get(e);if(f&&s.get(t))return f==t;var d=-1,p=!0,h=n&o?new _e:void 0;for(s.set(e,t),s.set(t,e);++d<c;){var m=e[d],y=t[d];if(r)var v=u?r(y,m,d,t,e,s):r(m,y,d,e,t,s);if(void 0!==v){if(v)continue;p=!1;break}if(h){if(!U(t,(function(e,t){if(i=t,!h.has(i)&&(m===e||a(m,e,n,r,s)))return h.push(t);var i}))){p=!1;break}}else if(m!==y&&!a(m,y,n,r,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function Fe(e){return function(e,t,n){var r=t(e);return Ve(e)?r:function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}(r,n(e))}(e,$e,ze)}function De(e,t){var n=e.__data__;return function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}(t)?n["string"==typeof t?"string":"hash"]:n.map}function Le(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return Me(n)?n:void 0}ke.prototype.clear=function(){this.__data__=me?me(null):{},this.size=0},ke.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ke.prototype.get=function(e){var t=this.__data__;if(me){var n=t[e];return n===r?void 0:n}return Y.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return me?void 0!==t[e]:Y.call(t,e)},ke.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=me&&void 0===t?r:t,this},Ee.prototype.clear=function(){this.__data__=[],this.size=0},Ee.prototype.delete=function(e){var t=this.__data__,n=Ie(t,e);return!(n<0)&&(n==t.length-1?t.pop():oe.call(t,n,1),--this.size,!0)},Ee.prototype.get=function(e){var t=this.__data__,n=Ie(t,e);return n<0?void 0:t[n][1]},Ee.prototype.has=function(e){return Ie(this.__data__,e)>-1},Ee.prototype.set=function(e,t){var n=this.__data__,r=Ie(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Te.prototype.clear=function(){this.size=0,this.__data__={hash:new ke,map:new(fe||Ee),string:new ke}},Te.prototype.delete=function(e){var t=De(this,e).delete(e);return this.size-=t?1:0,t},Te.prototype.get=function(e){return De(this,e).get(e)},Te.prototype.has=function(e){return De(this,e).has(e)},Te.prototype.set=function(e,t){var n=De(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},_e.prototype.add=_e.prototype.push=function(e){return this.__data__.set(e,r),this},_e.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.clear=function(){this.__data__=new Ee,this.size=0},Se.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Se.prototype.get=function(e){return this.__data__.get(e)},Se.prototype.has=function(e){return this.__data__.has(e)},Se.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ee){var r=n.__data__;if(!fe||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Te(r)}return n.set(e,t),this.size=n.size,this};var ze=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var a=e[n];t(a,n,e)&&(o[i++]=a)}return o}(se(e),(function(t){return ie.call(e,t)})))}:function(){return[]},je=Oe;function Ue(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||O.test(e))&&e>-1&&e%1==0&&e<t}function Ze(e){if(null!=e){try{return X.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function qe(e,t){return e===t||e!==e&&t!==t}(le&&je(new le(new ArrayBuffer(1)))!=C||fe&&je(new fe)!=m||de&&je(de.resolve())!=b||pe&&je(new pe)!=A||he&&je(new he)!=_)&&(je=function(e){var t=Oe(e),n=t==g?e.constructor:void 0,r=n?Ze(n):"";if(r)switch(r){case ye:return C;case ve:return m;case ge:return b;case be:return A;case we:return _}return t});var He=Pe(function(){return arguments}())?Pe:function(e){return Xe(e)&&Y.call(e,"callee")&&!ie.call(e,"callee")},Ve=Array.isArray;var Ge=ue||function(){return!1};function We(e){if(!Je(e))return!1;var t=Oe(e);return t==p||t==h||t==c||t==w}function Ke(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Je(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==typeof e}var Ye=j?function(e){return function(t){return e(t)}}(j):function(e){return Xe(e)&&Ke(e.length)&&!!P[Oe(e)]};function $e(e){return null!=(t=e)&&Ke(t.length)&&!We(t)?Ce(e):Be(e);var t}e.exports=function(e,t){return Re(e,t)}},8396:function(e,t,n){var r="Expected a function",i=NaN,o="[object Symbol]",a=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt,f="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,d="object"==typeof self&&self&&self.Object===Object&&self,p=f||d||Function("return this")(),h=Object.prototype.toString,m=Math.max,y=Math.min,v=function(){return p.Date.now()};function g(e,t,n){var i,o,a,s,u,c,l=0,f=!1,d=!1,p=!0;if("function"!=typeof e)throw new TypeError(r);function h(t){var n=i,r=o;return i=o=void 0,l=t,s=e.apply(r,n)}function g(e){var n=e-c;return void 0===c||n>=t||n<0||d&&e-l>=a}function x(){var e=v();if(g(e))return A(e);u=setTimeout(x,function(e){var n=t-(e-c);return d?y(n,a-(e-l)):n}(e))}function A(e){return u=void 0,p&&i?h(e):(i=o=void 0,s)}function k(){var e=v(),n=g(e);if(i=arguments,o=this,c=e,n){if(void 0===u)return function(e){return l=e,u=setTimeout(x,t),f?h(e):s}(c);if(d)return u=setTimeout(x,t),h(c)}return void 0===u&&(u=setTimeout(x,t)),s}return t=w(t)||0,b(n)&&(f=!!n.leading,a=(d="maxWait"in n)?m(w(n.maxWait)||0,t):a,p="trailing"in n?!!n.trailing:p),k.cancel=function(){void 0!==u&&clearTimeout(u),l=0,i=c=o=u=void 0},k.flush=function(){return void 0===u?s:A(v())},k}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function w(e){if("number"==typeof e)return e;if(function(e){return"symbol"==typeof e||function(e){return!!e&&"object"==typeof e}(e)&&h.call(e)==o}(e))return i;if(b(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=b(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(a,"");var n=u.test(e);return n||c.test(e)?l(e.slice(2),n?2:8):s.test(e)?i:+e}e.exports=function(e,t,n){var i=!0,o=!0;if("function"!=typeof e)throw new TypeError(r);return b(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),g(e,t,{leading:i,maxWait:t,trailing:o})}},72444:function(e,t,n){"use strict";var r=n(62638).default,i=n(1023).default,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Base=void 0;var a=n(40712),s=o(n(68653)),u=function(){function e(){r(this,e)}return i(e,[{key:"print",value:function(){e.print(this)}},{key:"bufferIndexOf",value:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2])return this.binarySearch(e,t,a.Buffer.compare);return this.linearSearch(e,t,(function(e,t){return e.equals(t)}))}},{key:"binarySearch",value:function(t,n,r){return e.binarySearch(t,n,r)}},{key:"linearSearch",value:function(t,n,r){return e.linearSearch(t,n,r)}},{key:"bigNumberify",value:function(t){return e.bigNumberify(t)}},{key:"bufferToHex",value:function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.bufferToHex(t,n)}},{key:"bufferify",value:function(t){return e.bufferify(t)}},{key:"bufferifyFn",value:function(e){var t=this;return function(n){var r=e(n);return a.Buffer.isBuffer(r)?r:t.isHexString(r)?a.Buffer.from(r.replace("0x",""),"hex"):"string"===typeof r?a.Buffer.from(r):"bigint"===typeof r?a.Buffer.from(n.toString(16),"hex"):ArrayBuffer.isView(r)?a.Buffer.from(r.buffer,r.byteOffset,r.byteLength):a.Buffer.from(e(s.default.enc.Hex.parse(n.toString("hex"))).toString(s.default.enc.Hex),"hex")}}},{key:"isHexString",value:function(t){return e.isHexString(t)}},{key:"log2",value:function(e){return 1===e?0:1+this.log2(e/2|0)}},{key:"zip",value:function(e,t){return e.map((function(e,n){return[e,t[n]]}))}}],[{key:"binarySearch",value:function(e,t,n){for(var r=0,i=e.length-1;r<=i;){var o=Math.floor((r+i)/2),a=n(e[o],t);if(0===a){for(var s=o-1;s>=0;s--)if(0!==n(e[s],t))return s+1;return 0}a<0?r=o+1:i=o-1}return-1}},{key:"linearSearch",value:function(e,t,n){for(var r=0;r<e.length;r++)if(n(e[r],t))return r;return-1}},{key:"bufferify",value:function(t){if(!a.Buffer.isBuffer(t)){if("object"===typeof t&&t.words)return a.Buffer.from(t.toString(s.default.enc.Hex),"hex");if(e.isHexString(t))return a.Buffer.from(t.replace(/^0x/,""),"hex");if("string"===typeof t)return a.Buffer.from(t);if("bigint"===typeof t)return a.Buffer.from(t.toString(16),"hex");if(t instanceof Uint8Array)return a.Buffer.from(t.buffer);if("number"===typeof t){var n=t.toString();return n.length%2&&(n="0".concat(n)),a.Buffer.from(n,"hex")}if(ArrayBuffer.isView(t))return a.Buffer.from(t.buffer,t.byteOffset,t.byteLength)}return t}},{key:"bigNumberify",value:function(t){if("bigint"===typeof t)return t;if("string"===typeof t)return t.startsWith("0x")&&e.isHexString(t)?BigInt("0x"+t.replace("0x","").toString()):BigInt(t);if(a.Buffer.isBuffer(t))return BigInt("0x"+t.toString("hex"));if(t instanceof Uint8Array)return BigInt(t);if("number"===typeof t)return BigInt(t);throw new Error("cannot bigNumberify")}},{key:"isHexString",value:function(e){return"string"===typeof e&&/^(0x)?[0-9A-Fa-f]*$/.test(e)}},{key:"print",value:function(e){console.log(e.toString())}},{key:"bufferToHex",value:function(e){return"".concat(!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"0x":"").concat((e||a.Buffer.alloc(0)).toString("hex"))}},{key:"hexZeroPad",value:function(e,t){return"0x"+e.replace("0x","").padStart(t,"0")}}]),e}();t.Base=u,t.default=u},64637:function(e,t,n){"use strict";var r=n(93213).default,i=n(14759).default,o=n(62638).default,a=n(1023).default,s=n(40126).default,u=n(72077).default,c=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.IncrementalMerkleTree=void 0;var l=c(n(72444)),f=c(n(76327)),d=function(e){s(n,e);var t=u(n);function n(e,r){var i;if(o(this,n),(i=t.call(this)).hashFn=e,r.depth&&(i.depth=r.depth),r.arity&&(i.arity=r.arity),i.depth<1)throw new Error("depth must be greater than 0");if(i.arity<1)throw new Error("arity must be greater than 0");var a=[],s=r.zeroValue;if(i.zeroValue=s,i.zeroes=[],i.depth)for(var u=0;u<i.depth;u++)i.zeroes.push(s),a[u]=[],s=i.hashFn(Array(i.arity).fill(s));return i.nodes=a,i.root=s,i}return a(n,[{key:"getRoot",value:function(){return this.root}},{key:"getHexRoot",value:function(){return this.bufferToHex(this.bufferify(this.getRoot()))}},{key:"insert",value:function(e){if(this.depth&&this.arity&&this.nodes[0].length>=this.getMaxLeaves())throw new Error("tree is full");for(var t=e,n=this.nodes[0].length,r=0;r<this.depth;r+=1){var i=n-n%this.arity,o=i+this.arity,a=[];this.nodes[r][n]=t;for(var s=i;s<o;s+=1)s<this.nodes[r].length?a.push(this.nodes[r][s]):a.push(this.zeroes[r]);t=this.hashFn(a),n=Math.floor(n/this.arity)}this.root=t}},{key:"delete",value:function(e){this.update(e,this.zeroValue)}},{key:"update",value:function(e,t){if(e<0||e>=this.nodes[0].length)throw new Error("out of bounds");for(var n=t,r=0;r<this.depth;r+=1){var i=e-e%this.arity,o=i+this.arity,a=[];this.nodes[r][e]=n;for(var s=i;s<o;s+=1)s<this.nodes[r].length?a.push(this.nodes[r][s]):a.push(this.zeroes[r]);n=this.hashFn(a),e=Math.floor(e/this.arity)}this.root=n}},{key:"getDepth",value:function(){return this.depth}},{key:"getArity",value:function(){return this.arity}},{key:"getMaxLeaves",value:function(){return Math.pow(this.depth,this.arity)}},{key:"indexOf",value:function(e){return this.nodes[0].indexOf(e)}},{key:"getLeaves",value:function(){for(var e=this.copyList(this.nodes[0]),t=this.nodes[0].length;t<this.getMaxLeaves();t++)e[t]=this.zeroValue;return e}},{key:"copyList",value:function(e){return e.map((function(e){return BigInt(e)}))}},{key:"getLayers",value:function(){var e,t=[],n=i(this.nodes);try{for(n.s();!(e=n.n()).done;){var r=e.value;t.push(this.copyList(r))}}catch(f){n.e(f)}finally{n.f()}if(t[0].length<this.getMaxLeaves()){for(var o=t[0].length,a=o;a<this.getMaxLeaves();a++)t[0][a]=this.zeroValue;for(var s=0;s<this.depth;s++){for(var u=o-o%this.arity,c=u+this.arity,l=u;l<c;l++)l>=t[s].length&&(t[s][l]=this.zeroes[s]);o=Math.floor(o/this.arity)}}return t.push([this.root]),t}},{key:"getHexLayers",value:function(){var e=this;return this.getLayers().reduce((function(t,n){return Array.isArray(n)?t.push(n.map((function(t){return e.bufferToHex(e.bufferify(t))}))):t.push(n),t}),[])}},{key:"getLayersAsObject",value:function(){for(var e=this,t=this.getLayers().map((function(t){return t.map((function(t){return e.bufferToHex(e.bufferify(t),!1)}))})),n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=r({},t[i][a],null);if(n.length){s[t[i][a]]={};var u=n.shift(),c=Object.keys(u)[0];if(s[t[i][a]][c]=u[c],n.length){var l=n.shift(),f=Object.keys(l)[0];s[t[i][a]][f]=l[f]}}o.push(s)}n.push.apply(n,o)}return n[0]}},{key:"computeRoot",value:function(){for(var e,t=this.nodes[0].length,n=0;n<this.depth;n+=1){for(var r=t-t%this.arity,i=r+this.arity,o=[],a=r;a<i;a+=1)a<this.nodes[n].length?o.push(this.nodes[n][a]):o.push(this.zeroes[n]);e=this.hashFn(o),t=Math.floor(t/this.arity)}return e}},{key:"getProof",value:function(e){if(e<0||e>=this.nodes[0].length)throw new Error("The leaf does not exist in this tree");for(var t=[],n=[],r=e,i=0;i<this.depth;i+=1){var o=e%this.arity,a=e-o,s=a+this.arity;n[i]=o,t[i]=[];for(var u=a;u<s;u+=1)u!==e&&(u<this.nodes[i].length?t[i].push(this.nodes[i][u]):t[i].push(this.zeroes[i]));e=Math.floor(e/this.arity)}return{root:this.root,leaf:this.nodes[0][r],pathIndices:n,siblings:t}}},{key:"verify",value:function(e){for(var t=e.leaf,n=0;n<e.siblings.length;n+=1){var r=e.siblings[n].slice();r.splice(e.pathIndices[n],0,t),t=this.hashFn(r)}return e.root===t}},{key:"toString",value:function(){return this.toTreeString()}},{key:"toTreeString",value:function(){var e=this.getLayersAsObject();return f.default.asTree(e,!0)}}]),n}(l.default);t.IncrementalMerkleTree=d,"undefined"!==typeof window&&(window.IncrementalMerkleTree=d),t.default=d},84991:function(e,t,n){"use strict";var r=n(98371).default,i=n(40299).default,o=n(14759).default,a=n(62638).default,s=n(1023).default,u=n(40126).default,c=n(72077).default,l=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleMountainRange=void 0;var f=n(40712),d=l(n(14323)),p=function(e){u(n,e);var t=c(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d.default,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],s=arguments.length>2?arguments[2]:void 0,u=arguments.length>3?arguments[3]:void 0,c=arguments.length>4?arguments[4]:void 0;a(this,n),(e=t.call(this)).root=f.Buffer.alloc(0),e.size=0,e.width=0,e.hashes={},e.data={},i=i.map(e.bufferify),e.hashFn=e.bufferifyFn(r),e.hashLeafFn=s,e.peakBaggingFn=u,e.hashBranchFn=c;var l,p=o(i);try{for(p.s();!(l=p.n()).done;){var h=l.value;e.append(h)}}catch(m){p.e(m)}finally{p.f()}return e}return s(n,[{key:"append",value:function(e){e=this.bufferify(e);var t=this.hashFn(e),n=this.bufferToHex(t);this.data[n]&&this.bufferToHex(this.hashFn(this.data[n]))===n||(this.data[n]=e);var r=this.hashLeaf(this.size+1,t);this.hashes[this.size+1]=r,this.width+=1;var i=this.getPeakIndexes(this.width);this.size=this.getSize(this.width);for(var o=[],a=0;a<i.length;a++)o[a]=this._getOrCreateNode(i[a]);this.root=this.peakBagging(this.width,o)}},{key:"hashLeaf",value:function(e,t){return t=this.bufferify(t),this.hashLeafFn?this.bufferify(this.hashLeafFn(e,t)):this.hashFn(f.Buffer.concat([this.bufferify(e),t]))}},{key:"hashBranch",value:function(e,t,n){return this.hashBranchFn?this.bufferify(this.hashBranchFn(e,t,n)):this.hashFn(f.Buffer.concat([this.bufferify(e),this.bufferify(t),this.bufferify(n)]))}},{key:"getPeaks",value:function(){for(var e=this.getPeakIndexes(this.width),t=[],n=0;n<e.length;n++)t[n]=this.hashes[e[n]];return t}},{key:"getLeafIndex",value:function(e){return e%2===1?this.getSize(e):this.getSize(e-1)+1}},{key:"getPeakIndexes",value:function(e){for(var t=this.numOfPeaks(e),n=[],r=0,i=0,o=255;o>0&&!(0!==(e&1<<o-1)&&(i=i+(1<<o)-1,n[r++]=i,n.length>=t));o--);if(r!==n.length)throw new Error("invalid bit calculation");return n}},{key:"numOfPeaks",value:function(e){for(var t=e,n=0;t>0;)t%2===1&&n++,t>>=1;return n}},{key:"peakBagging",value:function(e,t){var n=this.getSize(e);if(this.numOfPeaks(e)!==t.length)throw new Error("received invalid number of peaks");return 0!==e||t.length?this.peakBaggingFn?this.bufferify(this.peakBaggingFn(n,t)):this.hashFn(f.Buffer.concat([this.bufferify(n)].concat(i(t.map(this.bufferify))))):f.Buffer.alloc(0)}},{key:"getSize",value:function(e){return(e<<1)-this.numOfPeaks(e)}},{key:"getRoot",value:function(){return this.root}},{key:"getHexRoot",value:function(){return this.bufferToHex(this.getRoot())}},{key:"getNode",value:function(e){return this.hashes[e]}},{key:"mountainHeight",value:function(e){for(var t=1;1<<t<=e+t;)t++;return t-1}},{key:"heightAt",value:function(e){for(var t=e,n=0,r=0;t>n;)t-=(1<<r)-1,n=(1<<(r=this.mountainHeight(t)))-1;return r-(n-t)}},{key:"isLeaf",value:function(e){return 1===this.heightAt(e)}},{key:"getChildren",value:function(e){var t=e-(1<<this.heightAt(e)-1),n=e-1;if(t===n)throw new Error("not a parent");return[t,n]}},{key:"getMerkleProof",value:function(e){if(e>this.size)throw new Error("out of range");if(!this.isLeaf(e))throw new Error("not a leaf");for(var t=this.root,n=this.width,i=this.getPeakIndexes(this.width),o=[],a=0,s=0;s<i.length;s++)o[s]=this.hashes[i[s]],i[s]>=e&&0===a&&(a=i[s]);for(var u=0,c=0,l=this.heightAt(a),f=[];a!==e;){l--;var d=this.getChildren(a),p=r(d,2);u=p[0],c=p[1],a=e<=u?u:c,f[l-1]=this.hashes[e<=u?c:u]}return{root:t,width:n,peakBagging:o,siblings:f}}},{key:"verify",value:function(e,t,n,i,o,a){if(i=this.bufferify(i),this.getSize(t)<n)throw new Error("index is out of range");if(!e.equals(this.peakBagging(t,o)))throw new Error("invalid root hash from the peaks");for(var s,u=0,c=this.getPeakIndexes(t),l=0;l<c.length;l++)if(c[l]>=n){s=o[l],u=c[l];break}if(!s)throw new Error("target not found");for(var f,d=a.length+1,p=new Array(d),h=0,m=0;d>0&&(p[--d]=u,u!==n);){var y=this.getChildren(u),v=r(y,2);h=v[0],m=v[1],u=n>h?m:h}for(;d<p.length;)u=p[d],f=0===d?this.hashLeaf(u,this.hashFn(i)):u-1===p[d-1]?this.hashBranch(u,a[d-1],f):this.hashBranch(u,f,a[d-1]),d++;if(!f.equals(s))throw new Error("hashed peak is invalid");return!0}},{key:"peaksToPeakMap",value:function(e,t){for(var n={},r=0,i=t.length,o=1;o<=32;o++)r=1<<o-1,n[32-o]=0!==(e&r)?t[--i]:0;if(0!==i)throw new Error("invalid number of peaks");return n}},{key:"peakMapToPeaks",value:function(e,t){for(var n=this.numOfPeaks(e),r=new Array(n),i=0,o=0;o<32;o++)0!==t[o]&&(r[i++]=t[o]);if(i!==n)throw new Error("invalid number of peaks");return r}},{key:"peakUpdate",value:function(e,t,n){for(var r={},i=e+1,o=this.getLeafIndex(i),a=this.hashLeaf(o,n),s=0,u=0,c=!1,l=!1,f=!1,d=1;d<=32;d++)s=32-d,f?r[s]=t[s]:(l=0!==(i&(u=1<<d-1)),o++,(c=0!==(e&u))&&(a=this.hashBranch(o,t[s],a)),l?(r[s]=c?t[s]:a,f=!0):r[s]=0);return r}},{key:"rollUp",value:function(e,t,n,r){if(!e.equals(this.peakBagging(t,n)))throw new Error("invalid root hash from the peaks");for(var i=t,o=this.peaksToPeakMap(t,n),a=0;a<r.length;a++)o=this.peakUpdate(i,o,r[a]),i++;return this.peakBagging(i,this.peakMapToPeaks(i,o))}},{key:"_getOrCreateNode",value:function(e){if(e>this.size)throw new Error("out of range");if(!this.hashes[e]){var t=this.getChildren(e),n=r(t,2),i=n[0],o=n[1],a=this._getOrCreateNode(i),s=this._getOrCreateNode(o);this.hashes[e]=this.hashBranch(e,a,s)}return this.hashes[e]}}]),n}(l(n(72444)).default);t.MerkleMountainRange=p,"undefined"!==typeof window&&(window.MerkleMountainRange=p),t.default=p},86129:function(e,t,n){"use strict";var r=n(40712).Buffer,i=n(14759).default,o=n(40126).default,a=n(72077).default,s=n(1023).default,u=n(62638).default;Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleSumTree=t.ProofStep=t.Leaf=t.Bucket=void 0;var c=n(72444),l=s((function e(t,n){u(this,e),this.size=BigInt(t),this.hashed=n,this.parent=null,this.left=null,this.right=null}));t.Bucket=l;var f=function(){function e(t,n,r){u(this,e),this.hashFn=t,this.rng=n.map((function(e){return BigInt(e)})),this.data=r}return s(e,[{key:"getBucket",value:function(){var e;return e=this.data?this.hashFn(this.data):r.alloc(32),new l(BigInt(this.rng[1])-BigInt(this.rng[0]),e)}}]),e}();t.Leaf=f;var d=s((function e(t,n){u(this,e),this.bucket=t,this.right=n}));t.ProofStep=d;var p=function(e){o(n,e);var t=a(n);function n(e,o){var a;u(this,n),(a=t.call(this)).leaves=e,a.hashFn=o,n.checkConsecutive(e),a.buckets=[];var s,c=i(e);try{for(c.s();!(s=c.n()).done;){var f=s.value;a.buckets.push(f.getBucket())}}catch(A){c.e(A)}finally{c.f()}var d,p=[],h=i(a.buckets);try{for(h.s();!(d=h.n()).done;){var m=d.value;p.push(m)}}catch(A){h.e(A)}finally{h.f()}for(;1!==p.length;){for(var y=[];p.length;)if(p.length>=2){var v=p.shift(),g=p.shift(),b=v.size+g.size,w=a.hashFn(r.concat([a.sizeToBuffer(v.size),a.bufferify(v.hashed),a.sizeToBuffer(g.size),a.bufferify(g.hashed)])),x=new l(b,w);g.parent=x,v.parent=g.parent,v.right=g,g.left=v,y.push(x)}else y.push(p.shift());p=y}return a.root=p[0],a}return s(n,[{key:"sizeToBuffer",value:function(e){var t=r.alloc(8);return new DataView(t.buffer).setBigInt64(0,BigInt(e),!1),t}},{key:"getProof",value:function(e){for(var t=this.buckets[Number(e)],n=[];t&&t.parent;){var r=!!t.right,i=t.right?t.right:t.left;t=t.parent,n.push(new d(i,r))}return n}},{key:"sum",value:function(e){var t,n=BigInt(0),r=i(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;n+=BigInt(o)}}catch(a){r.e(a)}finally{r.f()}return n}},{key:"verifyProof",value:function(e,t,n){var o=[this.sum(n.filter((function(e){return!e.right})).map((function(e){return e.bucket.size}))),BigInt(e.size)-this.sum(n.filter((function(e){return e.right})).map((function(e){return e.bucket.size})))];if(o[0]!==t.rng[0]||o[1]!==t.rng[1])return!1;var a,s,u=t.getBucket(),c=i(n);try{for(c.s();!(s=c.n()).done;){var f=s.value;a=f.right?this.hashFn(r.concat([this.sizeToBuffer(u.size),this.bufferify(u.hashed),this.sizeToBuffer(f.bucket.size),this.bufferify(f.bucket.hashed)])):this.hashFn(r.concat([this.sizeToBuffer(f.bucket.size),this.bufferify(f.bucket.hashed),this.sizeToBuffer(u.size),this.bufferify(u.hashed)])),u=new l(BigInt(u.size)+BigInt(f.bucket.size),a)}}catch(d){c.e(d)}finally{c.f()}return u.size===e.size&&u.hashed.toString("hex")===e.hashed.toString("hex")}}],[{key:"checkConsecutive",value:function(e){var t,n=BigInt(0),r=i(e);try{for(r.s();!(t=r.n()).done;){var o=t.value;if(o.rng[0]!==n)throw new Error("leaf ranges are invalid");n=BigInt(o.rng[1])}}catch(a){r.e(a)}finally{r.f()}}}]),n}(c.Base);t.MerkleSumTree=p,"undefined"!==typeof window&&(window.MerkleSumTree=p),t.default=p},27861:function(e,t,n){"use strict";var r=n(93213).default,i=n(98371).default,o=n(14759).default,a=n(40299).default,s=n(62638).default,u=n(1023).default,c=n(40126).default,l=n(72077).default,f=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleTree=void 0;var d=n(40712),p=f(n(55509)),h=f(n(14323)),m=f(n(76327)),y=function(e){c(n,e);var t=l(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(s(this,n),(r=t.call(this)).duplicateOdd=!1,r.concatenator=d.Buffer.concat,r.hashLeaves=!1,r.isBitcoinTree=!1,r.leaves=[],r.layers=[],r.sortLeaves=!1,r.sortPairs=!1,r.sort=!1,r.fillDefaultHash=null,r.complete=!1,o.complete){if(o.isBitcoinTree)throw new Error('option "complete" is incompatible with "isBitcoinTree"');if(o.duplicateOdd)throw new Error('option "complete" is incompatible with "duplicateOdd"')}if(r.isBitcoinTree=!!o.isBitcoinTree,r.hashLeaves=!!o.hashLeaves,r.sortLeaves=!!o.sortLeaves,r.sortPairs=!!o.sortPairs,r.complete=!!o.complete,o.fillDefaultHash)if("function"===typeof o.fillDefaultHash)r.fillDefaultHash=o.fillDefaultHash;else{if(!d.Buffer.isBuffer(o.fillDefaultHash)&&"string"!==typeof o.fillDefaultHash)throw new Error('method "fillDefaultHash" must be a function, Buffer, or string');r.fillDefaultHash=function(e,t){return o.fillDefaultHash}}return r.sort=!!o.sort,r.sort&&(r.sortLeaves=!0,r.sortPairs=!0),r.duplicateOdd=!!o.duplicateOdd,o.concatenator&&(r.concatenator=o.concatenator),r.hashFn=r.bufferifyFn(i),r.processLeaves(e),r}return u(n,[{key:"getOptions",value:function(){var e,t;return{complete:this.complete,isBitcoinTree:this.isBitcoinTree,hashLeaves:this.hashLeaves,sortLeaves:this.sortLeaves,sortPairs:this.sortPairs,sort:this.sort,fillDefaultHash:null!==(t=null===(e=this.fillDefaultHash)||void 0===e?void 0:e.toString())&&void 0!==t?t:null,duplicateOdd:this.duplicateOdd}}},{key:"processLeaves",value:function(e){if(this.hashLeaves&&(e=e.map(this.hashFn)),this.leaves=e.map(this.bufferify),this.sortLeaves&&(this.leaves=this.leaves.sort(d.Buffer.compare)),this.fillDefaultHash)for(var t=this.leaves.length;t<Math.pow(2,Math.ceil(Math.log2(this.leaves.length)));t++)this.leaves.push(this.bufferify(this.fillDefaultHash(t,this.hashFn)));this.createHashes(this.leaves)}},{key:"createHashes",value:function(e){for(this.layers=[e];e.length>1;){var t=this.layers.length;this.layers.push([]);for(var n=this.complete&&1===t&&!Number.isInteger(Math.log2(e.length))?2*e.length-Math.pow(2,Math.ceil(Math.log2(e.length))):e.length,r=0;r<e.length;r+=2){if(r>=n){var i;(i=this.layers[t]).push.apply(i,a(e.slice(n)));break}if(r+1===e.length&&e.length%2===1){var o=e[e.length-1],s=o;if(this.isBitcoinTree){s=this.hashFn(this.concatenator([p.default(o),p.default(o)])),s=p.default(this.hashFn(s)),this.layers[t].push(s);continue}if(!this.duplicateOdd){this.layers[t].push(e[r]);continue}}var u=e[r],c=r+1===e.length?u:e[r+1],l=null;l=this.isBitcoinTree?[p.default(u),p.default(c)]:[u,c],this.sortPairs&&l.sort(d.Buffer.compare);var f=this.hashFn(this.concatenator(l));this.isBitcoinTree&&(f=p.default(this.hashFn(f))),this.layers[t].push(f)}e=this.layers[t]}}},{key:"addLeaf",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=this.hashFn(e)),this.processLeaves(this.leaves.concat(e))}},{key:"addLeaves",value:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(e=e.map(this.hashFn)),this.processLeaves(this.leaves.concat(e))}},{key:"getLeaves",value:function(e){var t=this;return Array.isArray(e)?(this.hashLeaves&&(e=e.map(this.hashFn),this.sortLeaves&&(e=e.sort(d.Buffer.compare))),this.leaves.filter((function(n){return-1!==t.bufferIndexOf(e,n,t.sortLeaves)}))):this.leaves}},{key:"getLeaf",value:function(e){return e<0||e>this.leaves.length-1?d.Buffer.from([]):this.leaves[e]}},{key:"getLeafIndex",value:function(e){e=this.bufferify(e);for(var t=this.getLeaves(),n=0;n<t.length;n++){if(t[n].equals(e))return n}return-1}},{key:"getLeafCount",value:function(){return this.leaves.length}},{key:"getHexLeaves",value:function(){var e=this;return this.leaves.map((function(t){return e.bufferToHex(t)}))}},{key:"getLayers",value:function(){return this.layers}},{key:"getHexLayers",value:function(){var e=this;return this.layers.reduce((function(t,n){return Array.isArray(n)?t.push(n.map((function(t){return e.bufferToHex(t)}))):t.push(n),t}),[])}},{key:"getLayersFlat",value:function(){var e=this.layers.reduce((function(e,t){return Array.isArray(t)?e.unshift.apply(e,a(t)):e.unshift(t),e}),[]);return e.unshift(d.Buffer.from([0])),e}},{key:"getHexLayersFlat",value:function(){var e=this;return this.getLayersFlat().map((function(t){return e.bufferToHex(t)}))}},{key:"getLayerCount",value:function(){return this.getLayers().length}},{key:"getRoot",value:function(){return 0===this.layers.length?d.Buffer.from([]):this.layers[this.layers.length-1][0]||d.Buffer.from([])}},{key:"getHexRoot",value:function(){return this.bufferToHex(this.getRoot())}},{key:"getProof",value:function(e,t){if("undefined"===typeof e)throw new Error("leaf is required");e=this.bufferify(e);var n=[];if(!Number.isInteger(t)){t=-1;for(var r=0;r<this.leaves.length;r++)0===d.Buffer.compare(e,this.leaves[r])&&(t=r)}if(t<=-1)return[];for(var i=0;i<this.layers.length;i++){var o=this.layers[i],a=t%2,s=a?t-1:this.isBitcoinTree&&t===o.length-1&&i<this.layers.length-1?t:t+1;s<o.length&&n.push({position:a?"left":"right",data:o[s]}),t=t/2|0}return n}},{key:"getHexProof",value:function(e,t){var n=this;return this.getProof(e,t).map((function(e){return n.bufferToHex(e.data)}))}},{key:"getProofs",value:function(){var e=[];return this.getProofsDFS(this.layers.length-1,0,[],e),e}},{key:"getProofsDFS",value:function(e,t,n,r){var i=t%2;if(-1!==e){if(!(t>=this.layers[e].length)){var o=this.layers[e],s=i?t-1:t+1,u=!1;s<o.length&&(u=!0,n.push({position:i?"left":"right",data:o[s]}));var c=2*t,l=2*t+1;this.getProofsDFS(e-1,c,n,r),this.getProofsDFS(e-1,l,n,r),u&&n.splice(n.length-1,1)}}else i||r.push(a(n).reverse())}},{key:"getHexProofs",value:function(){var e=this;return this.getProofs().map((function(t){return e.bufferToHex(t.data)}))}},{key:"getPositionalHexProof",value:function(e,t){var n=this;return this.getProof(e,t).map((function(e){return["left"===e.position?0:1,n.bufferToHex(e.data)]}))}},{key:"getProofIndices",value:function(e,t){var n,r=Math.pow(2,t),i=new Set,a=o(e);try{for(a.s();!(n=a.n()).done;)for(var s=n.value,u=r+s;u>1;)i.add(1^u),u=u/2|0}catch(y){a.e(y)}finally{a.f()}var c=e.map((function(e){return r+e})),l=Array.from(i).sort((function(e,t){return e-t})).reverse();i=c.concat(l);var f,d=new Set,p=[],h=o(i);try{for(h.s();!(f=h.n()).done;){var m=f.value;if(!d.has(m))for(p.push(m);m>1&&(d.add(m),d.has(1^m));)m=m/2|0}}catch(y){h.e(y)}finally{h.f()}return p.filter((function(t){return!e.includes(t-r)}))}},{key:"getProofIndicesForUnevenTree",value:function(e,t){for(var n=Math.ceil(Math.log2(t)),r=[],i=0;i<n;i++){t%2!==0&&r.push({index:i,leavesCount:t}),t=Math.ceil(t/2)}for(var o=[],s=e,u=function(e){var t=s.map((function(e){return e%2===0?e+1:e-1})),n=t.filter((function(e){return!s.includes(e)})),i=r.find((function(t){return t.index===e}));i&&s.includes(i.leavesCount-1)&&(n=n.slice(0,-1)),o.push(n),s=a(new Set(s.map((function(e){return e%2===0?e/2:e%2===0?(e+1)/2:(e-1)/2}))))},c=0;c<n;c++)u(c);return o}},{key:"getMultiProof",value:function(e,t){var n=this;if(this.complete||console.warn("Warning: For correct multiProofs it's strongly recommended to set complete: true"),t||(t=e,e=this.getLayersFlat()),this.isUnevenTree()&&t.every(Number.isInteger))return this.getMultiProofForUnevenTree(t);if(!t.every(Number.isInteger)){var r=t;this.sortPairs&&(r=r.sort(d.Buffer.compare));var i=r.map((function(e){return n.bufferIndexOf(n.leaves,e,n.sortLeaves)})).sort((function(e,t){return e===t?0:e>t?1:-1}));if(!i.every((function(e){return-1!==e})))throw new Error("Element does not exist in Merkle tree");for(var o=[],a=[],s=[],u=0;u<this.layers.length;u++){for(var c=this.layers[u],l=0;l<i.length;l++){var f=i[l],p=this.getPairNode(c,f);o.push(c[f]),p&&a.push(p),s.push(f/2|0)}i=s.filter((function(e,t,n){return n.indexOf(e)===t})),s=[]}return a.filter((function(e){return!o.includes(e)}))}return this.getProofIndices(t,Math.log2(e.length/2|0)).map((function(t){return e[t]}))}},{key:"getMultiProofForUnevenTree",value:function(e,t){t||(t=e,e=this.getLayers());var n,r=[],i=t,a=o(e);try{for(a.s();!(n=a.n()).done;){var s,u=n.value,c=[],l=o(i);try{for(l.s();!(s=l.n()).done;){var f=s.value;if(f%2===0){var d=f+1;if(!i.includes(d)&&u[d]){c.push(u[d]);continue}}var p=f-1;i.includes(p)||!u[p]||c.push(u[p])}}catch(g){l.e(g)}finally{l.f()}r=r.concat(c);var h,m=new Set,y=o(i);try{for(y.s();!(h=y.n()).done;){var v=h.value;v%2!==0?v%2!==0?m.add((v-1)/2):m.add((v+1)/2):m.add(v/2)}}catch(g){y.e(g)}finally{y.f()}i=Array.from(m)}}catch(g){a.e(g)}finally{a.f()}return r}},{key:"getHexMultiProof",value:function(e,t){var n=this;return this.getMultiProof(e,t).map((function(e){return n.bufferToHex(e)}))}},{key:"getProofFlags",value:function(e,t){var n,r=this;if(!Array.isArray(e)||e.length<=0)throw new Error("Invalid Inputs!");if(!(n=e.every(Number.isInteger)?a(e).sort((function(e,t){return e===t?0:e>t?1:-1})):e.map((function(e){return r.bufferIndexOf(r.leaves,e,r.sortLeaves)})).sort((function(e,t){return e===t?0:e>t?1:-1}))).every((function(e){return-1!==e})))throw new Error("Element does not exist in Merkle tree");for(var i=t.map((function(e){return r.bufferify(e)})),o=[],s=[],u=function(){var e=r.layers[c];n=n.reduce((function(t,n){if(!o.includes(e[n])){var a=r.getPairNode(e,n),u=i.includes(e[n])||i.includes(a);a&&s.push(!u),o.push(e[n]),o.push(a)}return t.push(n/2|0),t}),[])},c=0;c<this.layers.length;c++)u();return s}},{key:"verify",value:function(e,t,n){var r=this.bufferify(t);if(n=this.bufferify(n),!Array.isArray(e)||!t||!n)return!1;for(var i=0;i<e.length;i++){var o=e[i],a=null,s=null;if("string"===typeof o)a=this.bufferify(o),s=!0;else if(Array.isArray(o))s=0===o[0],a=this.bufferify(o[1]);else if(d.Buffer.isBuffer(o))a=o,s=!0;else{if(!(o instanceof Object))throw new Error("Expected node to be of type string or object");a=this.bufferify(o.data),s="left"===o.position}var u=[];this.isBitcoinTree?(u.push(p.default(r)),u[s?"unshift":"push"](p.default(a)),r=this.hashFn(this.concatenator(u)),r=p.default(this.hashFn(r))):this.sortPairs?-1===d.Buffer.compare(r,a)?(u.push(r,a),r=this.hashFn(this.concatenator(u))):(u.push(a,r),r=this.hashFn(this.concatenator(u))):(u.push(r),u[s?"unshift":"push"](a),r=this.hashFn(this.concatenator(u)))}return 0===d.Buffer.compare(r,n)}},{key:"verifyMultiProof",value:function(e,t,n,r,a){var s=this;if(this.isUnevenTree())return this.verifyMultiProofForUnevenTree(e,t,n,r,a);var u=Math.ceil(Math.log2(r));e=this.bufferify(e),n=n.map((function(e){return s.bufferify(e)})),a=a.map((function(e){return s.bufferify(e)}));var c,l={},f=o(this.zip(t,n));try{for(f.s();!(c=f.n()).done;){var p=i(c.value,2),h=p[0],m=p[1];l[Math.pow(2,u)+h]=m}}catch(_){f.e(_)}finally{f.f()}var y,v=o(this.zip(this.getProofIndices(t,u),a));try{for(v.s();!(y=v.n()).done;){var g=i(y.value,2),b=g[0],w=g[1];l[b]=w}}catch(_){v.e(_)}finally{v.f()}var x=Object.keys(l).map((function(e){return+e})).sort((function(e,t){return e-t}));x=x.slice(0,x.length-1);for(var A=0;A<x.length;){var k=x[A];if(k>=2&&{}.hasOwnProperty.call(l,1^k)){var E=[l[k-k%2],l[k-k%2+1]];this.sortPairs&&(E=E.sort(d.Buffer.compare));var T=E[1]?this.hashFn(this.concatenator(E)):E[0];l[k/2|0]=T,x.push(k/2|0)}A+=1}return!t.length||{}.hasOwnProperty.call(l,1)&&l[1].equals(e)}},{key:"verifyMultiProofWithFlags",value:function(e,t,n,r){e=this.bufferify(e),t=t.map(this.bufferify),n=n.map(this.bufferify);for(var i=t.length,o=r.length,a=[],s=0,u=0,c=0,l=0;l<o;l++){var f=[r[l]?s<i?t[s++]:a[u++]:n[c++],s<i?t[s++]:a[u++]].sort(d.Buffer.compare);a[l]=this.hashFn(this.concatenator(f))}return 0===d.Buffer.compare(a[o-1],e)}},{key:"verifyMultiProofForUnevenTree",value:function(e,t,n,r,i){var o=this;e=this.bufferify(e),n=n.map((function(e){return o.bufferify(e)})),i=i.map((function(e){return o.bufferify(e)}));var a=this.calculateRootForUnevenTree(t,n,r,i);return e.equals(a)}},{key:"getDepth",value:function(){return this.getLayers().length-1}},{key:"getLayersAsObject",value:function(){for(var e=this,t=this.getLayers().map((function(t){return t.map((function(t){return e.bufferToHex(t,!1)}))})),n=[],i=0;i<t.length;i++){for(var o=[],a=0;a<t[i].length;a++){var s=r({},t[i][a],null);if(n.length){s[t[i][a]]={};var u=n.shift(),c=Object.keys(u)[0];if(s[t[i][a]][c]=u[c],n.length){var l=n.shift(),f=Object.keys(l)[0];s[t[i][a]][f]=l[f]}}o.push(s)}n.push.apply(n,o)}return n[0]}},{key:"resetTree",value:function(){this.leaves=[],this.layers=[]}},{key:"getPairNode",value:function(e,t){var n=t%2===0?t+1:t-1;return n<e.length?e[n]:null}},{key:"toTreeString",value:function(){var e=this.getLayersAsObject();return m.default.asTree(e,!0)}},{key:"toString",value:function(){return this.toTreeString()}},{key:"isUnevenTree",value:function(e){var t=(null===e||void 0===e?void 0:e.length)||this.getDepth();return!this.isPowOf2(t)}},{key:"isPowOf2",value:function(e){return e&&!(e&e-1)}},{key:"calculateRootForUnevenTree",value:function(e,t,n,r){for(var o=this.zip(e,t).sort((function(e,t){return i(e,1)[0]-i(t,1)[0]})),s=o.map((function(e){return i(e,1)[0]})),u=this.getProofIndicesForUnevenTree(s,n),c=0,l=[],f=0;f<u.length;f++){var d=u[f],p=c;c+=d.length,l[f]=this.zip(d,r.slice(p,c))}for(var h=[o],m=0;m<l.length;m++){for(var y=l[m].concat(h[m]).sort((function(e,t){return i(e,1)[0]-i(t,1)[0]})).map((function(e){return i(e,2)[1]})),v=h[m].map((function(e){return i(e,1)[0]})),g=a(new Set(v.map((function(e){return e%2===0?e/2:e%2===0?(e+1)/2:(e-1)/2})))),b=[],w=0;w<g.length;w++){var x=g[w],A=y[2*w],k=y[2*w+1],E=k?this.hashFn(this.concatenator([A,k])):A;b.push([x,E])}h.push(b)}return h[h.length-1][0][1]}}],[{key:"marshalLeaves",value:function(e){return JSON.stringify(e.map((function(e){return n.bufferToHex(e)})),null,2)}},{key:"unmarshalLeaves",value:function(e){var t=null;if("string"===typeof e)t=JSON.parse(e);else{if(!(e instanceof Object))throw new Error("Expected type of string or object");t=e}if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map(n.bufferify)}},{key:"marshalProof",value:function(e){var t=e.map((function(e){return"string"===typeof e?e:d.Buffer.isBuffer(e)?n.bufferToHex(e):{position:e.position,data:n.bufferToHex(e.data)}}));return JSON.stringify(t,null,2)}},{key:"unmarshalProof",value:function(e){var t=null;if("string"===typeof e)t=JSON.parse(e);else{if(!(e instanceof Object))throw new Error("Expected type of string or object");t=e}if(!t)return[];if(!Array.isArray(t))throw new Error("Expected JSON string to be array");return t.map((function(e){if("string"===typeof e)return n.bufferify(e);if(e instanceof Object)return{position:e.position,data:n.bufferify(e.data)};throw new Error("Expected item to be of type string or object")}))}},{key:"marshalTree",value:function(e){var t=e.getHexRoot(),r=e.leaves.map((function(e){return n.bufferToHex(e)})),i=e.getHexLayers(),o=e.getOptions();return JSON.stringify({options:o,root:t,layers:i,leaves:r},null,2)}},{key:"unmarshalTree",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:h.default,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=null;if("string"===typeof e)i=JSON.parse(e);else{if(!(e instanceof Object))throw new Error("Expected type of string or object");i=e}if(!i)throw new Error("could not parse json");return r=Object.assign({},i.options||{},r),new n(i.leaves,t,r)}},{key:"verify",value:function(e,t,r){return new n([],arguments.length>3&&void 0!==arguments[3]?arguments[3]:h.default,arguments.length>4&&void 0!==arguments[4]?arguments[4]:{}).verify(e,t,r)}},{key:"getMultiProof",value:function(e,t){return new n([]).getMultiProof(e,t)}}]),n}(f(n(72444)).default);t.MerkleTree=y,"undefined"!==typeof window&&(window.MerkleTree=y),t.default=y},65211:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.MerkleTree=void 0;var i=r(n(27861));t.MerkleTree=i.default;var o=n(84991);Object.defineProperty(t,"MerkleMountainRange",{enumerable:!0,get:function(){return o.MerkleMountainRange}});var a=n(64637);Object.defineProperty(t,"IncrementalMerkleTree",{enumerable:!0,get:function(){return a.IncrementalMerkleTree}});var s=n(86129);Object.defineProperty(t,"MerkleSumTree",{enumerable:!0,get:function(){return s.MerkleSumTree}}),t.default=i.default},79978:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(28694),n(71373),n(8762),n(15357),function(){var e=o,t=e.lib.BlockCipher,n=e.algo,r=[],i=[],a=[],s=[],u=[],c=[],l=[],f=[],d=[],p=[];!function(){for(var e=[],t=0;t<256;t++)e[t]=t<128?t<<1:t<<1^283;var n=0,o=0;for(t=0;t<256;t++){var h=o^o<<1^o<<2^o<<3^o<<4;h=h>>>8^255&h^99,r[n]=h,i[h]=n;var m=e[n],y=e[m],v=e[y],g=257*e[h]^16843008*h;a[n]=g<<24|g>>>8,s[n]=g<<16|g>>>16,u[n]=g<<8|g>>>24,c[n]=g,g=16843009*v^65537*y^257*m^16843008*n,l[h]=g<<24|g>>>8,f[h]=g<<16|g>>>16,d[h]=g<<8|g>>>24,p[h]=g,n?(n=m^e[e[e[v^m]]],o^=e[e[o]]):n=o=1}}();var h=[0,1,2,4,8,16,32,64,128,27,54],m=n.AES=t.extend({_doReset:function(){if(!this._nRounds||this._keyPriorReset!==this._key){for(var e=this._keyPriorReset=this._key,t=e.words,n=e.sigBytes/4,i=4*((this._nRounds=n+6)+1),o=this._keySchedule=[],a=0;a<i;a++)if(a<n)o[a]=t[a];else{var s=o[a-1];a%n?n>6&&a%n==4&&(s=r[s>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s]):(s=r[(s=s<<8|s>>>24)>>>24]<<24|r[s>>>16&255]<<16|r[s>>>8&255]<<8|r[255&s],s^=h[a/n|0]<<24),o[a]=o[a-n]^s}for(var u=this._invKeySchedule=[],c=0;c<i;c++)a=i-c,s=c%4?o[a]:o[a-4],u[c]=c<4||a<=4?s:l[r[s>>>24]]^f[r[s>>>16&255]]^d[r[s>>>8&255]]^p[r[255&s]]}},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._keySchedule,a,s,u,c,r)},decryptBlock:function(e,t){var n=e[t+1];e[t+1]=e[t+3],e[t+3]=n,this._doCryptBlock(e,t,this._invKeySchedule,l,f,d,p,i),n=e[t+1],e[t+1]=e[t+3],e[t+3]=n},_doCryptBlock:function(e,t,n,r,i,o,a,s){for(var u=this._nRounds,c=e[t]^n[0],l=e[t+1]^n[1],f=e[t+2]^n[2],d=e[t+3]^n[3],p=4,h=1;h<u;h++){var m=r[c>>>24]^i[l>>>16&255]^o[f>>>8&255]^a[255&d]^n[p++],y=r[l>>>24]^i[f>>>16&255]^o[d>>>8&255]^a[255&c]^n[p++],v=r[f>>>24]^i[d>>>16&255]^o[c>>>8&255]^a[255&l]^n[p++],g=r[d>>>24]^i[c>>>16&255]^o[l>>>8&255]^a[255&f]^n[p++];c=m,l=y,f=v,d=g}m=(s[c>>>24]<<24|s[l>>>16&255]<<16|s[f>>>8&255]<<8|s[255&d])^n[p++],y=(s[l>>>24]<<24|s[f>>>16&255]<<16|s[d>>>8&255]<<8|s[255&c])^n[p++],v=(s[f>>>24]<<24|s[d>>>16&255]<<16|s[c>>>8&255]<<8|s[255&l])^n[p++],g=(s[d>>>24]<<24|s[c>>>16&255]<<16|s[l>>>8&255]<<8|s[255&f])^n[p++],e[t]=m,e[t+1]=y,e[t+2]=v,e[t+3]=g},keySize:8});e.AES=t._createHelper(m)}(),o.AES)}()},15357:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(8762),void(o.lib.Cipher||function(e){var t=o,n=t.lib,r=n.Base,i=n.WordArray,a=n.BufferedBlockAlgorithm,s=t.enc,u=(s.Utf8,s.Base64),c=t.algo.EvpKDF,l=n.Cipher=a.extend({cfg:r.extend(),createEncryptor:function(e,t){return this.create(this._ENC_XFORM_MODE,e,t)},createDecryptor:function(e,t){return this.create(this._DEC_XFORM_MODE,e,t)},init:function(e,t,n){this.cfg=this.cfg.extend(n),this._xformMode=e,this._key=t,this.reset()},reset:function(){a.reset.call(this),this._doReset()},process:function(e){return this._append(e),this._process()},finalize:function(e){return e&&this._append(e),this._doFinalize()},keySize:4,ivSize:4,_ENC_XFORM_MODE:1,_DEC_XFORM_MODE:2,_createHelper:function(){function e(e){return"string"==typeof e?b:v}return function(t){return{encrypt:function(n,r,i){return e(r).encrypt(t,n,r,i)},decrypt:function(n,r,i){return e(r).decrypt(t,n,r,i)}}}}()}),f=(n.StreamCipher=l.extend({_doFinalize:function(){return this._process(!0)},blockSize:1}),t.mode={}),d=n.BlockCipherMode=r.extend({createEncryptor:function(e,t){return this.Encryptor.create(e,t)},createDecryptor:function(e,t){return this.Decryptor.create(e,t)},init:function(e,t){this._cipher=e,this._iv=t}}),p=f.CBC=function(){var t=d.extend();function n(t,n,r){var i=this._iv;if(i){var o=i;this._iv=e}else o=this._prevBlock;for(var a=0;a<r;a++)t[n+a]^=o[a]}return t.Encryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize;n.call(this,e,t,i),r.encryptBlock(e,t),this._prevBlock=e.slice(t,t+i)}}),t.Decryptor=t.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=e.slice(t,t+i);r.decryptBlock(e,t),n.call(this,e,t,i),this._prevBlock=o}}),t}(),h=(t.pad={}).Pkcs7={pad:function(e,t){for(var n=4*t,r=n-e.sigBytes%n,o=r<<24|r<<16|r<<8|r,a=[],s=0;s<r;s+=4)a.push(o);var u=i.create(a,r);e.concat(u)},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},m=(n.BlockCipher=l.extend({cfg:l.cfg.extend({mode:p,padding:h}),reset:function(){l.reset.call(this);var e=this.cfg,t=e.iv,n=e.mode;if(this._xformMode==this._ENC_XFORM_MODE)var r=n.createEncryptor;else r=n.createDecryptor,this._minBufferSize=1;this._mode&&this._mode.__creator==r?this._mode.init(this,t&&t.words):(this._mode=r.call(n,this,t&&t.words),this._mode.__creator=r)},_doProcessBlock:function(e,t){this._mode.processBlock(e,t)},_doFinalize:function(){var e=this.cfg.padding;if(this._xformMode==this._ENC_XFORM_MODE){e.pad(this._data,this.blockSize);var t=this._process(!0)}else t=this._process(!0),e.unpad(t);return t},blockSize:4}),n.CipherParams=r.extend({init:function(e){this.mixIn(e)},toString:function(e){return(e||this.formatter).stringify(this)}})),y=(t.format={}).OpenSSL={stringify:function(e){var t=e.ciphertext,n=e.salt;if(n)var r=i.create([1398893684,1701076831]).concat(n).concat(t);else r=t;return r.toString(u)},parse:function(e){var t=u.parse(e),n=t.words;if(1398893684==n[0]&&1701076831==n[1]){var r=i.create(n.slice(2,4));n.splice(0,4),t.sigBytes-=16}return m.create({ciphertext:t,salt:r})}},v=n.SerializableCipher=r.extend({cfg:r.extend({format:y}),encrypt:function(e,t,n,r){r=this.cfg.extend(r);var i=e.createEncryptor(n,r),o=i.finalize(t),a=i.cfg;return m.create({ciphertext:o,key:n,iv:a.iv,algorithm:e,mode:a.mode,padding:a.padding,blockSize:e.blockSize,formatter:r.format})},decrypt:function(e,t,n,r){return r=this.cfg.extend(r),t=this._parse(t,r.format),e.createDecryptor(n,r).finalize(t.ciphertext)},_parse:function(e,t){return"string"==typeof e?t.parse(e,this):e}}),g=(t.kdf={}).OpenSSL={execute:function(e,t,n,r){r||(r=i.random(8));var o=c.create({keySize:t+n}).compute(e,r),a=i.create(o.words.slice(t),4*n);return o.sigBytes=4*t,m.create({key:o,iv:a,salt:r})}},b=n.PasswordBasedCipher=v.extend({cfg:v.cfg.extend({kdf:g}),encrypt:function(e,t,n,r){var i=(r=this.cfg.extend(r)).kdf.execute(n,e.keySize,e.ivSize);r.iv=i.iv;var o=v.encrypt.call(this,e,t,i.key,r);return o.mixIn(i),o},decrypt:function(e,t,n,r){r=this.cfg.extend(r),t=this._parse(t,r.format);var i=r.kdf.execute(n,e.keySize,e.ivSize,t.salt);return r.iv=i.iv,v.decrypt.call(this,e,t,i.key,r)}})}()))}()},7757:function(e,t){e.exports=function(){var e=e||function(e,t){var n=Object.create||function(){function e(){}return function(t){var n;return e.prototype=t,n=new e,e.prototype=null,n}}(),r={},i=r.lib={},o=i.Base={extend:function(e){var t=n(this);return e&&t.mixIn(e),t.hasOwnProperty("init")&&this.init!==t.init||(t.init=function(){t.$super.init.apply(this,arguments)}),t.init.prototype=t,t.$super=this,t},create:function(){var e=this.extend();return e.init.apply(e,arguments),e},init:function(){},mixIn:function(e){for(var t in e)e.hasOwnProperty(t)&&(this[t]=e[t]);e.hasOwnProperty("toString")&&(this.toString=e.toString)},clone:function(){return this.init.prototype.extend(this)}},a=i.WordArray=o.extend({init:function(e,n){e=this.words=e||[],this.sigBytes=n!=t?n:4*e.length},toString:function(e){return(e||u).stringify(this)},concat:function(e){var t=this.words,n=e.words,r=this.sigBytes,i=e.sigBytes;if(this.clamp(),r%4)for(var o=0;o<i;o++){var a=n[o>>>2]>>>24-o%4*8&255;t[r+o>>>2]|=a<<24-(r+o)%4*8}else for(o=0;o<i;o+=4)t[r+o>>>2]=n[o>>>2];return this.sigBytes+=i,this},clamp:function(){var t=this.words,n=this.sigBytes;t[n>>>2]&=4294967295<<32-n%4*8,t.length=e.ceil(n/4)},clone:function(){var e=o.clone.call(this);return e.words=this.words.slice(0),e},random:function(t){for(var n,r=[],i=function(t){var n=987654321,r=4294967295;return function(){var i=((n=36969*(65535&n)+(n>>16)&r)<<16)+(t=18e3*(65535&t)+(t>>16)&r)&r;return i/=4294967296,(i+=.5)*(e.random()>.5?1:-1)}},o=0;o<t;o+=4){var s=i(4294967296*(n||e.random()));n=987654071*s(),r.push(4294967296*s()|0)}return new a.init(r,t)}}),s=r.enc={},u=s.Hex={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push((o>>>4).toString(16)),r.push((15&o).toString(16))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r+=2)n[r>>>3]|=parseInt(e.substr(r,2),16)<<24-r%8*4;return new a.init(n,t/2)}},c=s.Latin1={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i++){var o=t[i>>>2]>>>24-i%4*8&255;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var t=e.length,n=[],r=0;r<t;r++)n[r>>>2]|=(255&e.charCodeAt(r))<<24-r%4*8;return new a.init(n,t)}},l=s.Utf8={stringify:function(e){try{return decodeURIComponent(escape(c.stringify(e)))}catch(t){throw new Error("Malformed UTF-8 data")}},parse:function(e){return c.parse(unescape(encodeURIComponent(e)))}},f=i.BufferedBlockAlgorithm=o.extend({reset:function(){this._data=new a.init,this._nDataBytes=0},_append:function(e){"string"==typeof e&&(e=l.parse(e)),this._data.concat(e),this._nDataBytes+=e.sigBytes},_process:function(t){var n=this._data,r=n.words,i=n.sigBytes,o=this.blockSize,s=i/(4*o),u=(s=t?e.ceil(s):e.max((0|s)-this._minBufferSize,0))*o,c=e.min(4*u,i);if(u){for(var l=0;l<u;l+=o)this._doProcessBlock(r,l);var f=r.splice(0,u);n.sigBytes-=c}return new a.init(f,c)},clone:function(){var e=o.clone.call(this);return e._data=this._data.clone(),e},_minBufferSize:0}),d=(i.Hasher=f.extend({cfg:o.extend(),init:function(e){this.cfg=this.cfg.extend(e),this.reset()},reset:function(){f.reset.call(this),this._doReset()},update:function(e){return this._append(e),this._process(),this},finalize:function(e){return e&&this._append(e),this._doFinalize()},blockSize:16,_createHelper:function(e){return function(t,n){return new e.init(n).finalize(t)}},_createHmacHelper:function(e){return function(t,n){return new d.HMAC.init(e,n).finalize(t)}}}),r.algo={});return r}(Math);return e}()},28694:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(){var e=i,t=e.lib.WordArray;function n(e,n,r){for(var i=[],o=0,a=0;a<n;a++)if(a%4){var s=r[e.charCodeAt(a-1)]<<a%4*2,u=r[e.charCodeAt(a)]>>>6-a%4*2;i[o>>>2]|=(s|u)<<24-o%4*8,o++}return t.create(i,o)}e.enc.Base64={stringify:function(e){var t=e.words,n=e.sigBytes,r=this._map;e.clamp();for(var i=[],o=0;o<n;o+=3)for(var a=(t[o>>>2]>>>24-o%4*8&255)<<16|(t[o+1>>>2]>>>24-(o+1)%4*8&255)<<8|t[o+2>>>2]>>>24-(o+2)%4*8&255,s=0;s<4&&o+.75*s<n;s++)i.push(r.charAt(a>>>6*(3-s)&63));var u=r.charAt(64);if(u)for(;i.length%4;)i.push(u);return i.join("")},parse:function(e){var t=e.length,r=this._map,i=this._reverseMap;if(!i){i=this._reverseMap=[];for(var o=0;o<r.length;o++)i[r.charCodeAt(o)]=o}var a=r.charAt(64);if(a){var s=e.indexOf(a);-1!==s&&(t=s)}return n(e,t,i)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}(),i.enc.Base64)}()},11880:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(){var e=i,t=e.lib.WordArray,n=e.enc;function r(e){return e<<8&4278255360|e>>>8&16711935}n.Utf16=n.Utf16BE={stringify:function(e){for(var t=e.words,n=e.sigBytes,r=[],i=0;i<n;i+=2){var o=t[i>>>2]>>>16-i%4*8&65535;r.push(String.fromCharCode(o))}return r.join("")},parse:function(e){for(var n=e.length,r=[],i=0;i<n;i++)r[i>>>1]|=e.charCodeAt(i)<<16-i%2*16;return t.create(r,2*n)}},n.Utf16LE={stringify:function(e){for(var t=e.words,n=e.sigBytes,i=[],o=0;o<n;o+=2){var a=r(t[o>>>2]>>>16-o%4*8&65535);i.push(String.fromCharCode(a))}return i.join("")},parse:function(e){for(var n=e.length,i=[],o=0;o<n;o++)i[o>>>1]|=r(e.charCodeAt(o)<<16-o%2*16);return t.create(i,2*n)}}}(),i.enc.Utf16)}()},8762:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(11438),n(88946),function(){var e=o,t=e.lib,n=t.Base,r=t.WordArray,i=e.algo,a=i.MD5,s=i.EvpKDF=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=n.hasher.create(),o=r.create(),a=o.words,s=n.keySize,u=n.iterations;a.length<s;){c&&i.update(c);var c=i.update(e).finalize(t);i.reset();for(var l=1;l<u;l++)c=i.finalize(c),i.reset();o.concat(c)}return o.sigBytes=4*s,o}});e.EvpKDF=function(e,t,n){return s.create(n).compute(e,t)}}(),o.EvpKDF)}()},54973:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),function(e){var t=o,n=t.lib.CipherParams,r=t.enc.Hex;t.format.Hex={stringify:function(e){return e.ciphertext.toString(r)},parse:function(e){var t=r.parse(e);return n.create({ciphertext:t})}}}(),o.format.Hex)}()},88946:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),void function(){var e=i,t=e.lib.Base,n=e.enc.Utf8;e.algo.HMAC=t.extend({init:function(e,t){e=this._hasher=new e.init,"string"==typeof t&&(t=n.parse(t));var r=e.blockSize,i=4*r;t.sigBytes>i&&(t=e.finalize(t)),t.clamp();for(var o=this._oKey=t.clone(),a=this._iKey=t.clone(),s=o.words,u=a.words,c=0;c<r;c++)s[c]^=1549556828,u[c]^=909522486;o.sigBytes=a.sigBytes=i,this.reset()},reset:function(){var e=this._hasher;e.reset(),e.update(this._iKey)},update:function(e){return this._hasher.update(e),this},finalize:function(e){var t=this._hasher,n=t.finalize(e);return t.reset(),t.finalize(this._oKey.clone().concat(n))}})}())}()},68653:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(4103),n(48699),n(11880),n(28694),n(71373),n(11438),n(14323),n(3925),n(4481),n(41137),n(48328),n(53389),n(88946),n(72118),n(8762),n(15357),n(97979),n(45786),n(56793),n(4725),n(59824),n(19323),n(36644),n(72002),n(17189),n(22531),n(54973),n(79978),n(46069),n(34042),n(69853),n(44884),o)}()},48699:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(){if("function"==typeof ArrayBuffer){var e=i.lib.WordArray,t=e.init,n=e.init=function(e){if(e instanceof ArrayBuffer&&(e=new Uint8Array(e)),(e instanceof Int8Array||"undefined"!==typeof Uint8ClampedArray&&e instanceof Uint8ClampedArray||e instanceof Int16Array||e instanceof Uint16Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Float32Array||e instanceof Float64Array)&&(e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength)),e instanceof Uint8Array){for(var n=e.byteLength,r=[],i=0;i<n;i++)r[i>>>2]|=e[i]<<24-i%4*8;t.call(this,r,n)}else t.apply(this,arguments)};n.prototype=e}}(),i.lib.WordArray)}()},71373:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[];!function(){for(var t=0;t<64;t++)s[t]=4294967296*e.abs(e.sin(t+1))|0}();var u=a.MD5=o.extend({_doReset:function(){this._hash=new r.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o=this._hash.words,a=e[t+0],u=e[t+1],p=e[t+2],h=e[t+3],m=e[t+4],y=e[t+5],v=e[t+6],g=e[t+7],b=e[t+8],w=e[t+9],x=e[t+10],A=e[t+11],k=e[t+12],E=e[t+13],T=e[t+14],_=e[t+15],S=o[0],C=o[1],I=o[2],O=o[3];S=c(S,C,I,O,a,7,s[0]),O=c(O,S,C,I,u,12,s[1]),I=c(I,O,S,C,p,17,s[2]),C=c(C,I,O,S,h,22,s[3]),S=c(S,C,I,O,m,7,s[4]),O=c(O,S,C,I,y,12,s[5]),I=c(I,O,S,C,v,17,s[6]),C=c(C,I,O,S,g,22,s[7]),S=c(S,C,I,O,b,7,s[8]),O=c(O,S,C,I,w,12,s[9]),I=c(I,O,S,C,x,17,s[10]),C=c(C,I,O,S,A,22,s[11]),S=c(S,C,I,O,k,7,s[12]),O=c(O,S,C,I,E,12,s[13]),I=c(I,O,S,C,T,17,s[14]),S=l(S,C=c(C,I,O,S,_,22,s[15]),I,O,u,5,s[16]),O=l(O,S,C,I,v,9,s[17]),I=l(I,O,S,C,A,14,s[18]),C=l(C,I,O,S,a,20,s[19]),S=l(S,C,I,O,y,5,s[20]),O=l(O,S,C,I,x,9,s[21]),I=l(I,O,S,C,_,14,s[22]),C=l(C,I,O,S,m,20,s[23]),S=l(S,C,I,O,w,5,s[24]),O=l(O,S,C,I,T,9,s[25]),I=l(I,O,S,C,h,14,s[26]),C=l(C,I,O,S,b,20,s[27]),S=l(S,C,I,O,E,5,s[28]),O=l(O,S,C,I,p,9,s[29]),I=l(I,O,S,C,g,14,s[30]),S=f(S,C=l(C,I,O,S,k,20,s[31]),I,O,y,4,s[32]),O=f(O,S,C,I,b,11,s[33]),I=f(I,O,S,C,A,16,s[34]),C=f(C,I,O,S,T,23,s[35]),S=f(S,C,I,O,u,4,s[36]),O=f(O,S,C,I,m,11,s[37]),I=f(I,O,S,C,g,16,s[38]),C=f(C,I,O,S,x,23,s[39]),S=f(S,C,I,O,E,4,s[40]),O=f(O,S,C,I,a,11,s[41]),I=f(I,O,S,C,h,16,s[42]),C=f(C,I,O,S,v,23,s[43]),S=f(S,C,I,O,w,4,s[44]),O=f(O,S,C,I,k,11,s[45]),I=f(I,O,S,C,_,16,s[46]),S=d(S,C=f(C,I,O,S,p,23,s[47]),I,O,a,6,s[48]),O=d(O,S,C,I,g,10,s[49]),I=d(I,O,S,C,T,15,s[50]),C=d(C,I,O,S,y,21,s[51]),S=d(S,C,I,O,k,6,s[52]),O=d(O,S,C,I,h,10,s[53]),I=d(I,O,S,C,x,15,s[54]),C=d(C,I,O,S,u,21,s[55]),S=d(S,C,I,O,b,6,s[56]),O=d(O,S,C,I,_,10,s[57]),I=d(I,O,S,C,v,15,s[58]),C=d(C,I,O,S,E,21,s[59]),S=d(S,C,I,O,m,6,s[60]),O=d(O,S,C,I,A,10,s[61]),I=d(I,O,S,C,p,15,s[62]),C=d(C,I,O,S,w,21,s[63]),o[0]=o[0]+S|0,o[1]=o[1]+C|0,o[2]=o[2]+I|0,o[3]=o[3]+O|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;n[i>>>5]|=128<<24-i%32;var o=e.floor(r/4294967296),a=r;n[15+(i+64>>>9<<4)]=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),n[14+(i+64>>>9<<4)]=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),t.sigBytes=4*(n.length+1),this._process();for(var s=this._hash,u=s.words,c=0;c<4;c++){var l=u[c];u[c]=16711935&(l<<8|l>>>24)|4278255360&(l<<24|l>>>8)}return s},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function c(e,t,n,r,i,o,a){var s=e+(t&n|~t&r)+i+a;return(s<<o|s>>>32-o)+t}function l(e,t,n,r,i,o,a){var s=e+(t&r|n&~r)+i+a;return(s<<o|s>>>32-o)+t}function f(e,t,n,r,i,o,a){var s=e+(t^n^r)+i+a;return(s<<o|s>>>32-o)+t}function d(e,t,n,r,i,o,a){var s=e+(n^(t|~r))+i+a;return(s<<o|s>>>32-o)+t}t.MD5=o._createHelper(u),t.HmacMD5=o._createHmacHelper(u)}(Math),i.MD5)}()},97979:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.mode.CFB=function(){var e=o.lib.BlockCipherMode.extend();function t(e,t,n,r){var i=this._iv;if(i){var o=i.slice(0);this._iv=void 0}else o=this._prevBlock;r.encryptBlock(o,0);for(var a=0;a<n;a++)e[t+a]^=o[a]}return e.Encryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize;t.call(this,e,n,i,r),this._prevBlock=e.slice(n,n+i)}}),e.Decryptor=e.extend({processBlock:function(e,n){var r=this._cipher,i=r.blockSize,o=e.slice(n,n+i);t.call(this,e,n,i,r),this._prevBlock=o}}),e}(),o.mode.CFB)}()},56793:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.mode.CTRGladman=function(){var e=o.lib.BlockCipherMode.extend();function t(e){if(255===(e>>24&255)){var t=e>>16&255,n=e>>8&255,r=255&e;255===t?(t=0,255===n?(n=0,255===r?r=0:++r):++n):++t,e=0,e+=t<<16,e+=n<<8,e+=r}else e+=1<<24;return e}function n(e){return 0===(e[0]=t(e[0]))&&(e[1]=t(e[1])),e}var r=e.Encryptor=e.extend({processBlock:function(e,t){var r=this._cipher,i=r.blockSize,o=this._iv,a=this._counter;o&&(a=this._counter=o.slice(0),this._iv=void 0),n(a);var s=a.slice(0);r.encryptBlock(s,0);for(var u=0;u<i;u++)e[t+u]^=s[u]}});return e.Decryptor=r,e}(),o.mode.CTRGladman)}()},45786:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.mode.CTR=function(){var e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._counter;i&&(o=this._counter=i.slice(0),this._iv=void 0);var a=o.slice(0);n.encryptBlock(a,0),o[r-1]=o[r-1]+1|0;for(var s=0;s<r;s++)e[t+s]^=a[s]}});return e.Decryptor=t,e}(),o.mode.CTR)}()},59824:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.mode.ECB=function(){var e=o.lib.BlockCipherMode.extend();return e.Encryptor=e.extend({processBlock:function(e,t){this._cipher.encryptBlock(e,t)}}),e.Decryptor=e.extend({processBlock:function(e,t){this._cipher.decryptBlock(e,t)}}),e}(),o.mode.ECB)}()},4725:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.mode.OFB=function(){var e=o.lib.BlockCipherMode.extend(),t=e.Encryptor=e.extend({processBlock:function(e,t){var n=this._cipher,r=n.blockSize,i=this._iv,o=this._keystream;i&&(o=this._keystream=i.slice(0),this._iv=void 0),n.encryptBlock(o,0);for(var a=0;a<r;a++)e[t+a]^=o[a]}});return e.Decryptor=t,e}(),o.mode.OFB)}()},19323:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.pad.AnsiX923={pad:function(e,t){var n=e.sigBytes,r=4*t,i=r-n%r,o=n+i-1;e.clamp(),e.words[o>>>2]|=i<<24-o%4*8,e.sigBytes+=i},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Ansix923)}()},36644:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.pad.Iso10126={pad:function(e,t){var n=4*t,r=n-e.sigBytes%n;e.concat(o.lib.WordArray.random(r-1)).concat(o.lib.WordArray.create([r<<24],1))},unpad:function(e){var t=255&e.words[e.sigBytes-1>>>2];e.sigBytes-=t}},o.pad.Iso10126)}()},72002:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.pad.Iso97971={pad:function(e,t){e.concat(o.lib.WordArray.create([2147483648],1)),o.pad.ZeroPadding.pad(e,t)},unpad:function(e){o.pad.ZeroPadding.unpad(e),e.sigBytes--}},o.pad.Iso97971)}()},22531:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.pad.NoPadding={pad:function(){},unpad:function(){}},o.pad.NoPadding)}()},17189:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(15357),o.pad.ZeroPadding={pad:function(e,t){var n=4*t;e.clamp(),e.sigBytes+=n-(e.sigBytes%n||n)},unpad:function(e){for(var t=e.words,n=e.sigBytes-1;!(t[n>>>2]>>>24-n%4*8&255);)n--;e.sigBytes=n+1}},o.pad.ZeroPadding)}()},72118:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(11438),n(88946),function(){var e=o,t=e.lib,n=t.Base,r=t.WordArray,i=e.algo,a=i.SHA1,s=i.HMAC,u=i.PBKDF2=n.extend({cfg:n.extend({keySize:4,hasher:a,iterations:1}),init:function(e){this.cfg=this.cfg.extend(e)},compute:function(e,t){for(var n=this.cfg,i=s.create(n.hasher,e),o=r.create(),a=r.create([1]),u=o.words,c=a.words,l=n.keySize,f=n.iterations;u.length<l;){var d=i.update(t).finalize(a);i.reset();for(var p=d.words,h=p.length,m=d,y=1;y<f;y++){m=i.finalize(m),i.reset();for(var v=m.words,g=0;g<h;g++)p[g]^=v[g]}o.concat(d),c[0]++}return o.sigBytes=4*l,o}});e.PBKDF2=function(e,t,n){return u.create(n).compute(e,t)}}(),o.PBKDF2)}()},44884:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(28694),n(71373),n(8762),n(15357),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],a=[],s=n.RabbitLegacy=t.extend({_doReset:function(){var e=this._key.words,t=this.cfg.iv,n=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],r=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];this._b=0;for(var i=0;i<4;i++)u.call(this);for(i=0;i<8;i++)r[i]^=n[i+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&l,d=l<<16|65535&c;for(r[0]^=c,r[1]^=f,r[2]^=l,r[3]^=d,r[4]^=c,r[5]^=f,r[6]^=l,r[7]^=d,i=0;i<4;i++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.RabbitLegacy=t._createHelper(s)}(),o.RabbitLegacy)}()},69853:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(28694),n(71373),n(8762),n(15357),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=[],i=[],a=[],s=n.Rabbit=t.extend({_doReset:function(){for(var e=this._key.words,t=this.cfg.iv,n=0;n<4;n++)e[n]=16711935&(e[n]<<8|e[n]>>>24)|4278255360&(e[n]<<24|e[n]>>>8);var r=this._X=[e[0],e[3]<<16|e[2]>>>16,e[1],e[0]<<16|e[3]>>>16,e[2],e[1]<<16|e[0]>>>16,e[3],e[2]<<16|e[1]>>>16],i=this._C=[e[2]<<16|e[2]>>>16,4294901760&e[0]|65535&e[1],e[3]<<16|e[3]>>>16,4294901760&e[1]|65535&e[2],e[0]<<16|e[0]>>>16,4294901760&e[2]|65535&e[3],e[1]<<16|e[1]>>>16,4294901760&e[3]|65535&e[0]];for(this._b=0,n=0;n<4;n++)u.call(this);for(n=0;n<8;n++)i[n]^=r[n+4&7];if(t){var o=t.words,a=o[0],s=o[1],c=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),l=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8),f=c>>>16|4294901760&l,d=l<<16|65535&c;for(i[0]^=c,i[1]^=f,i[2]^=l,i[3]^=d,i[4]^=c,i[5]^=f,i[6]^=l,i[7]^=d,n=0;n<4;n++)u.call(this)}},_doProcessBlock:function(e,t){var n=this._X;u.call(this),r[0]=n[0]^n[5]>>>16^n[3]<<16,r[1]=n[2]^n[7]>>>16^n[5]<<16,r[2]=n[4]^n[1]>>>16^n[7]<<16,r[3]=n[6]^n[3]>>>16^n[1]<<16;for(var i=0;i<4;i++)r[i]=16711935&(r[i]<<8|r[i]>>>24)|4278255360&(r[i]<<24|r[i]>>>8),e[t+i]^=r[i]},blockSize:4,ivSize:2});function u(){for(var e=this._X,t=this._C,n=0;n<8;n++)i[n]=t[n];for(t[0]=t[0]+1295307597+this._b|0,t[1]=t[1]+3545052371+(t[0]>>>0<i[0]>>>0?1:0)|0,t[2]=t[2]+886263092+(t[1]>>>0<i[1]>>>0?1:0)|0,t[3]=t[3]+1295307597+(t[2]>>>0<i[2]>>>0?1:0)|0,t[4]=t[4]+3545052371+(t[3]>>>0<i[3]>>>0?1:0)|0,t[5]=t[5]+886263092+(t[4]>>>0<i[4]>>>0?1:0)|0,t[6]=t[6]+1295307597+(t[5]>>>0<i[5]>>>0?1:0)|0,t[7]=t[7]+3545052371+(t[6]>>>0<i[6]>>>0?1:0)|0,this._b=t[7]>>>0<i[7]>>>0?1:0,n=0;n<8;n++){var r=e[n]+t[n],o=65535&r,s=r>>>16,u=((o*o>>>17)+o*s>>>15)+s*s,c=((4294901760&r)*r|0)+((65535&r)*r|0);a[n]=u^c}e[0]=a[0]+(a[7]<<16|a[7]>>>16)+(a[6]<<16|a[6]>>>16)|0,e[1]=a[1]+(a[0]<<8|a[0]>>>24)+a[7]|0,e[2]=a[2]+(a[1]<<16|a[1]>>>16)+(a[0]<<16|a[0]>>>16)|0,e[3]=a[3]+(a[2]<<8|a[2]>>>24)+a[1]|0,e[4]=a[4]+(a[3]<<16|a[3]>>>16)+(a[2]<<16|a[2]>>>16)|0,e[5]=a[5]+(a[4]<<8|a[4]>>>24)+a[3]|0,e[6]=a[6]+(a[5]<<16|a[5]>>>16)+(a[4]<<16|a[4]>>>16)|0,e[7]=a[7]+(a[6]<<8|a[6]>>>24)+a[5]|0}e.Rabbit=t._createHelper(s)}(),o.Rabbit)}()},34042:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(28694),n(71373),n(8762),n(15357),function(){var e=o,t=e.lib.StreamCipher,n=e.algo,r=n.RC4=t.extend({_doReset:function(){for(var e=this._key,t=e.words,n=e.sigBytes,r=this._S=[],i=0;i<256;i++)r[i]=i;i=0;for(var o=0;i<256;i++){var a=i%n,s=t[a>>>2]>>>24-a%4*8&255;o=(o+r[i]+s)%256;var u=r[i];r[i]=r[o],r[o]=u}this._i=this._j=0},_doProcessBlock:function(e,t){e[t]^=i.call(this)},keySize:8,ivSize:0});function i(){for(var e=this._S,t=this._i,n=this._j,r=0,i=0;i<4;i++){n=(n+e[t=(t+1)%256])%256;var o=e[t];e[t]=e[n],e[n]=o,r|=e[(e[t]+e[n])%256]<<24-8*i}return this._i=t,this._j=n,r}e.RC4=t._createHelper(r);var a=n.RC4Drop=r.extend({cfg:r.cfg.extend({drop:192}),_doReset:function(){r._doReset.call(this);for(var e=this.cfg.drop;e>0;e--)i.call(this)}});e.RC4Drop=t._createHelper(a)}(),o.RC4)}()},53389:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=r.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),u=r.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),c=r.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),l=r.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),f=r.create([0,1518500249,1859775393,2400959708,2840853838]),d=r.create([1352829926,1548603684,1836072691,2053994217,0]),p=a.RIPEMD160=o.extend({_doReset:function(){this._hash=r.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=0;n<16;n++){var r=t+n,i=e[r];e[r]=16711935&(i<<8|i>>>24)|4278255360&(i<<24|i>>>8)}var o,a,p,w,x,A,k,E,T,_,S,C=this._hash.words,I=f.words,O=d.words,P=s.words,R=u.words,M=c.words,B=l.words;for(A=o=C[0],k=a=C[1],E=p=C[2],T=w=C[3],_=x=C[4],n=0;n<80;n+=1)S=o+e[t+P[n]]|0,S+=n<16?h(a,p,w)+I[0]:n<32?m(a,p,w)+I[1]:n<48?y(a,p,w)+I[2]:n<64?v(a,p,w)+I[3]:g(a,p,w)+I[4],S=(S=b(S|=0,M[n]))+x|0,o=x,x=w,w=b(p,10),p=a,a=S,S=A+e[t+R[n]]|0,S+=n<16?g(k,E,T)+O[0]:n<32?v(k,E,T)+O[1]:n<48?y(k,E,T)+O[2]:n<64?m(k,E,T)+O[3]:h(k,E,T)+O[4],S=(S=b(S|=0,B[n]))+_|0,A=_,_=T,T=b(E,10),E=k,k=S;S=C[1]+p+T|0,C[1]=C[2]+w+_|0,C[2]=C[3]+x+A|0,C[3]=C[4]+o+k|0,C[4]=C[0]+a+E|0,C[0]=S},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=16711935&(n<<8|n>>>24)|4278255360&(n<<24|n>>>8),e.sigBytes=4*(t.length+1),this._process();for(var i=this._hash,o=i.words,a=0;a<5;a++){var s=o[a];o[a]=16711935&(s<<8|s>>>24)|4278255360&(s<<24|s>>>8)}return i},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});function h(e,t,n){return e^t^n}function m(e,t,n){return e&t|~e&n}function y(e,t,n){return(e|~t)^n}function v(e,t,n){return e&n|t&~n}function g(e,t,n){return e^(t|~n)}function b(e,t){return e<<t|e>>>32-t}t.RIPEMD160=o._createHelper(p),t.HmacRIPEMD160=o._createHmacHelper(p)}(Math),i.RIPEMD160)}()},11438:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(){var e=i,t=e.lib,n=t.WordArray,r=t.Hasher,o=e.algo,a=[],s=o.SHA1=r.extend({_doReset:function(){this._hash=new n.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],s=n[3],u=n[4],c=0;c<80;c++){if(c<16)a[c]=0|e[t+c];else{var l=a[c-3]^a[c-8]^a[c-14]^a[c-16];a[c]=l<<1|l>>>31}var f=(r<<5|r>>>27)+u+a[c];f+=c<20?1518500249+(i&o|~i&s):c<40?1859775393+(i^o^s):c<60?(i&o|i&s|o&s)-1894007588:(i^o^s)-899497514,u=s,s=o,o=i<<30|i>>>2,i=r,r=f}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+s|0,n[4]=n[4]+u|0},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[14+(r+64>>>9<<4)]=Math.floor(n/4294967296),t[15+(r+64>>>9<<4)]=n,e.sigBytes=4*t.length,this._process(),this._hash},clone:function(){var e=r.clone.call(this);return e._hash=this._hash.clone(),e}});e.SHA1=r._createHelper(s),e.HmacSHA1=r._createHmacHelper(s)}(),i.SHA1)}()},3925:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(14323),function(){var e=o,t=e.lib.WordArray,n=e.algo,r=n.SHA256,i=n.SHA224=r.extend({_doReset:function(){this._hash=new t.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var e=r._doFinalize.call(this);return e.sigBytes-=4,e}});e.SHA224=r._createHelper(i),e.HmacSHA224=r._createHmacHelper(i)}(),o.SHA224)}()},14323:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(e){var t=i,n=t.lib,r=n.WordArray,o=n.Hasher,a=t.algo,s=[],u=[];!function(){function t(t){for(var n=e.sqrt(t),r=2;r<=n;r++)if(!(t%r))return!1;return!0}function n(e){return 4294967296*(e-(0|e))|0}for(var r=2,i=0;i<64;)t(r)&&(i<8&&(s[i]=n(e.pow(r,.5))),u[i]=n(e.pow(r,1/3)),i++),r++}();var c=[],l=a.SHA256=o.extend({_doReset:function(){this._hash=new r.init(s.slice(0))},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],p=0;p<64;p++){if(p<16)c[p]=0|e[t+p];else{var h=c[p-15],m=(h<<25|h>>>7)^(h<<14|h>>>18)^h>>>3,y=c[p-2],v=(y<<15|y>>>17)^(y<<13|y>>>19)^y>>>10;c[p]=m+c[p-7]+v+c[p-16]}var g=r&i^r&o^i&o,b=(r<<30|r>>>2)^(r<<19|r>>>13)^(r<<10|r>>>22),w=d+((s<<26|s>>>6)^(s<<21|s>>>11)^(s<<7|s>>>25))+(s&l^~s&f)+u[p]+c[p];d=f,f=l,l=s,s=a+w|0,a=o,o=i,i=r,r=w+(b+g)|0}n[0]=n[0]+r|0,n[1]=n[1]+i|0,n[2]=n[2]+o|0,n[3]=n[3]+a|0,n[4]=n[4]+s|0,n[5]=n[5]+l|0,n[6]=n[6]+f|0,n[7]=n[7]+d|0},_doFinalize:function(){var t=this._data,n=t.words,r=8*this._nDataBytes,i=8*t.sigBytes;return n[i>>>5]|=128<<24-i%32,n[14+(i+64>>>9<<4)]=e.floor(r/4294967296),n[15+(i+64>>>9<<4)]=r,t.sigBytes=4*n.length,this._process(),this._hash},clone:function(){var e=o.clone.call(this);return e._hash=this._hash.clone(),e}});t.SHA256=o._createHelper(l),t.HmacSHA256=o._createHmacHelper(l)}(Math),i.SHA256)}()},48328:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(4103),function(e){var t=o,n=t.lib,r=n.WordArray,i=n.Hasher,a=t.x64.Word,s=t.algo,u=[],c=[],l=[];!function(){for(var e=1,t=0,n=0;n<24;n++){u[e+5*t]=(n+1)*(n+2)/2%64;var r=(2*e+3*t)%5;e=t%5,t=r}for(e=0;e<5;e++)for(t=0;t<5;t++)c[e+5*t]=t+(2*e+3*t)%5*5;for(var i=1,o=0;o<24;o++){for(var s=0,f=0,d=0;d<7;d++){if(1&i){var p=(1<<d)-1;p<32?f^=1<<p:s^=1<<p-32}128&i?i=i<<1^113:i<<=1}l[o]=a.create(s,f)}}();var f=[];!function(){for(var e=0;e<25;e++)f[e]=a.create()}();var d=s.SHA3=i.extend({cfg:i.cfg.extend({outputLength:512}),_doReset:function(){for(var e=this._state=[],t=0;t<25;t++)e[t]=new a.init;this.blockSize=(1600-2*this.cfg.outputLength)/32},_doProcessBlock:function(e,t){for(var n=this._state,r=this.blockSize/2,i=0;i<r;i++){var o=e[t+2*i],a=e[t+2*i+1];o=16711935&(o<<8|o>>>24)|4278255360&(o<<24|o>>>8),a=16711935&(a<<8|a>>>24)|4278255360&(a<<24|a>>>8),(C=n[i]).high^=a,C.low^=o}for(var s=0;s<24;s++){for(var d=0;d<5;d++){for(var p=0,h=0,m=0;m<5;m++)p^=(C=n[d+5*m]).high,h^=C.low;var y=f[d];y.high=p,y.low=h}for(d=0;d<5;d++){var v=f[(d+4)%5],g=f[(d+1)%5],b=g.high,w=g.low;for(p=v.high^(b<<1|w>>>31),h=v.low^(w<<1|b>>>31),m=0;m<5;m++)(C=n[d+5*m]).high^=p,C.low^=h}for(var x=1;x<25;x++){var A=(C=n[x]).high,k=C.low,E=u[x];E<32?(p=A<<E|k>>>32-E,h=k<<E|A>>>32-E):(p=k<<E-32|A>>>64-E,h=A<<E-32|k>>>64-E);var T=f[c[x]];T.high=p,T.low=h}var _=f[0],S=n[0];for(_.high=S.high,_.low=S.low,d=0;d<5;d++)for(m=0;m<5;m++){var C=n[x=d+5*m],I=f[x],O=f[(d+1)%5+5*m],P=f[(d+2)%5+5*m];C.high=I.high^~O.high&P.high,C.low=I.low^~O.low&P.low}C=n[0];var R=l[s];C.high^=R.high,C.low^=R.low}},_doFinalize:function(){var t=this._data,n=t.words,i=(this._nDataBytes,8*t.sigBytes),o=32*this.blockSize;n[i>>>5]|=1<<24-i%32,n[(e.ceil((i+1)/o)*o>>>5)-1]|=128,t.sigBytes=4*n.length,this._process();for(var a=this._state,s=this.cfg.outputLength/8,u=s/8,c=[],l=0;l<u;l++){var f=a[l],d=f.high,p=f.low;d=16711935&(d<<8|d>>>24)|4278255360&(d<<24|d>>>8),p=16711935&(p<<8|p>>>24)|4278255360&(p<<24|p>>>8),c.push(p),c.push(d)}return new r.init(c,s)},clone:function(){for(var e=i.clone.call(this),t=e._state=this._state.slice(0),n=0;n<25;n++)t[n]=t[n].clone();return e}});t.SHA3=i._createHelper(d),t.HmacSHA3=i._createHmacHelper(d)}(Math),o.SHA3)}()},41137:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(4103),n(4481),function(){var e=o,t=e.x64,n=t.Word,r=t.WordArray,i=e.algo,a=i.SHA512,s=i.SHA384=a.extend({_doReset:function(){this._hash=new r.init([new n.init(3418070365,3238371032),new n.init(1654270250,914150663),new n.init(2438529370,812702999),new n.init(355462360,4144912697),new n.init(1731405415,4290775857),new n.init(2394180231,1750603025),new n.init(3675008525,1694076839),new n.init(1203062813,3204075428)])},_doFinalize:function(){var e=a._doFinalize.call(this);return e.sigBytes-=16,e}});e.SHA384=a._createHelper(s),e.HmacSHA384=a._createHmacHelper(s)}(),o.SHA384)}()},4481:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(4103),function(){var e=o,t=e.lib.Hasher,n=e.x64,r=n.Word,i=n.WordArray,a=e.algo;function s(){return r.create.apply(r,arguments)}var u=[s(1116352408,3609767458),s(1899447441,602891725),s(3049323471,3964484399),s(3921009573,2173295548),s(961987163,4081628472),s(1508970993,3053834265),s(2453635748,2937671579),s(2870763221,3664609560),s(3624381080,2734883394),s(310598401,1164996542),s(607225278,1323610764),s(1426881987,3590304994),s(1925078388,4068182383),s(2162078206,991336113),s(2614888103,633803317),s(3248222580,3479774868),s(3835390401,2666613458),s(4022224774,944711139),s(264347078,2341262773),s(604807628,2007800933),s(770255983,1495990901),s(1249150122,1856431235),s(1555081692,3175218132),s(1996064986,2198950837),s(2554220882,3999719339),s(2821834349,766784016),s(2952996808,2566594879),s(3210313671,3203337956),s(3336571891,1034457026),s(3584528711,2466948901),s(113926993,3758326383),s(338241895,168717936),s(666307205,1188179964),s(773529912,1546045734),s(1294757372,1522805485),s(1396182291,2643833823),s(1695183700,2343527390),s(1986661051,1014477480),s(2177026350,1206759142),s(2456956037,344077627),s(2730485921,1290863460),s(2820302411,3158454273),s(3259730800,3505952657),s(3345764771,106217008),s(3516065817,3606008344),s(3600352804,1432725776),s(4094571909,1467031594),s(275423344,851169720),s(430227734,3100823752),s(506948616,1363258195),s(659060556,3750685593),s(883997877,3785050280),s(958139571,3318307427),s(1322822218,3812723403),s(1537002063,2003034995),s(1747873779,3602036899),s(1955562222,1575990012),s(2024104815,1125592928),s(2227730452,2716904306),s(2361852424,442776044),s(2428436474,593698344),s(2756734187,3733110249),s(3204031479,2999351573),s(3329325298,3815920427),s(3391569614,3928383900),s(3515267271,566280711),s(3940187606,3454069534),s(4118630271,4000239992),s(116418474,1914138554),s(174292421,2731055270),s(289380356,3203993006),s(460393269,320620315),s(685471733,587496836),s(852142971,1086792851),s(1017036298,365543100),s(1126000580,2618297676),s(1288033470,3409855158),s(1501505948,4234509866),s(1607167915,987167468),s(1816402316,1246189591)],c=[];!function(){for(var e=0;e<80;e++)c[e]=s()}();var l=a.SHA512=t.extend({_doReset:function(){this._hash=new i.init([new r.init(1779033703,4089235720),new r.init(3144134277,2227873595),new r.init(1013904242,4271175723),new r.init(2773480762,1595750129),new r.init(1359893119,2917565137),new r.init(2600822924,725511199),new r.init(528734635,4215389547),new r.init(1541459225,327033209)])},_doProcessBlock:function(e,t){for(var n=this._hash.words,r=n[0],i=n[1],o=n[2],a=n[3],s=n[4],l=n[5],f=n[6],d=n[7],p=r.high,h=r.low,m=i.high,y=i.low,v=o.high,g=o.low,b=a.high,w=a.low,x=s.high,A=s.low,k=l.high,E=l.low,T=f.high,_=f.low,S=d.high,C=d.low,I=p,O=h,P=m,R=y,M=v,B=g,N=b,F=w,D=x,L=A,z=k,j=E,U=T,Z=_,q=S,H=C,V=0;V<80;V++){var G=c[V];if(V<16)var W=G.high=0|e[t+2*V],K=G.low=0|e[t+2*V+1];else{var J=c[V-15],X=J.high,Y=J.low,$=(X>>>1|Y<<31)^(X>>>8|Y<<24)^X>>>7,Q=(Y>>>1|X<<31)^(Y>>>8|X<<24)^(Y>>>7|X<<25),ee=c[V-2],te=ee.high,ne=ee.low,re=(te>>>19|ne<<13)^(te<<3|ne>>>29)^te>>>6,ie=(ne>>>19|te<<13)^(ne<<3|te>>>29)^(ne>>>6|te<<26),oe=c[V-7],ae=oe.high,se=oe.low,ue=c[V-16],ce=ue.high,le=ue.low;W=(W=(W=$+ae+((K=Q+se)>>>0<Q>>>0?1:0))+re+((K+=ie)>>>0<ie>>>0?1:0))+ce+((K+=le)>>>0<le>>>0?1:0),G.high=W,G.low=K}var fe,de=D&z^~D&U,pe=L&j^~L&Z,he=I&P^I&M^P&M,me=O&R^O&B^R&B,ye=(I>>>28|O<<4)^(I<<30|O>>>2)^(I<<25|O>>>7),ve=(O>>>28|I<<4)^(O<<30|I>>>2)^(O<<25|I>>>7),ge=(D>>>14|L<<18)^(D>>>18|L<<14)^(D<<23|L>>>9),be=(L>>>14|D<<18)^(L>>>18|D<<14)^(L<<23|D>>>9),we=u[V],xe=we.high,Ae=we.low,ke=q+ge+((fe=H+be)>>>0<H>>>0?1:0),Ee=ve+me;q=U,H=Z,U=z,Z=j,z=D,j=L,D=N+(ke=(ke=(ke=ke+de+((fe+=pe)>>>0<pe>>>0?1:0))+xe+((fe+=Ae)>>>0<Ae>>>0?1:0))+W+((fe+=K)>>>0<K>>>0?1:0))+((L=F+fe|0)>>>0<F>>>0?1:0)|0,N=M,F=B,M=P,B=R,P=I,R=O,I=ke+(ye+he+(Ee>>>0<ve>>>0?1:0))+((O=fe+Ee|0)>>>0<fe>>>0?1:0)|0}h=r.low=h+O,r.high=p+I+(h>>>0<O>>>0?1:0),y=i.low=y+R,i.high=m+P+(y>>>0<R>>>0?1:0),g=o.low=g+B,o.high=v+M+(g>>>0<B>>>0?1:0),w=a.low=w+F,a.high=b+N+(w>>>0<F>>>0?1:0),A=s.low=A+L,s.high=x+D+(A>>>0<L>>>0?1:0),E=l.low=E+j,l.high=k+z+(E>>>0<j>>>0?1:0),_=f.low=_+Z,f.high=T+U+(_>>>0<Z>>>0?1:0),C=d.low=C+H,d.high=S+q+(C>>>0<H>>>0?1:0)},_doFinalize:function(){var e=this._data,t=e.words,n=8*this._nDataBytes,r=8*e.sigBytes;return t[r>>>5]|=128<<24-r%32,t[30+(r+128>>>10<<5)]=Math.floor(n/4294967296),t[31+(r+128>>>10<<5)]=n,e.sigBytes=4*t.length,this._process(),this._hash.toX32()},clone:function(){var e=t.clone.call(this);return e._hash=this._hash.clone(),e},blockSize:32});e.SHA512=t._createHelper(l),e.HmacSHA512=t._createHmacHelper(l)}(),o.SHA512)}()},46069:function(e,t,n){!function(t,r,i){var o;e.exports=(o=n(7757),n(28694),n(71373),n(8762),n(15357),function(){var e=o,t=e.lib,n=t.WordArray,r=t.BlockCipher,i=e.algo,a=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],s=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],u=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],c=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],l=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],f=i.DES=r.extend({_doReset:function(){for(var e=this._key.words,t=[],n=0;n<56;n++){var r=a[n]-1;t[n]=e[r>>>5]>>>31-r%32&1}for(var i=this._subKeys=[],o=0;o<16;o++){var c=i[o]=[],l=u[o];for(n=0;n<24;n++)c[n/6|0]|=t[(s[n]-1+l)%28]<<31-n%6,c[4+(n/6|0)]|=t[28+(s[n+24]-1+l)%28]<<31-n%6;for(c[0]=c[0]<<1|c[0]>>>31,n=1;n<7;n++)c[n]=c[n]>>>4*(n-1)+3;c[7]=c[7]<<5|c[7]>>>27}var f=this._invSubKeys=[];for(n=0;n<16;n++)f[n]=i[15-n]},encryptBlock:function(e,t){this._doCryptBlock(e,t,this._subKeys)},decryptBlock:function(e,t){this._doCryptBlock(e,t,this._invSubKeys)},_doCryptBlock:function(e,t,n){this._lBlock=e[t],this._rBlock=e[t+1],d.call(this,4,252645135),d.call(this,16,65535),p.call(this,2,858993459),p.call(this,8,16711935),d.call(this,1,1431655765);for(var r=0;r<16;r++){for(var i=n[r],o=this._lBlock,a=this._rBlock,s=0,u=0;u<8;u++)s|=c[u][((a^i[u])&l[u])>>>0];this._lBlock=a,this._rBlock=o^s}var f=this._lBlock;this._lBlock=this._rBlock,this._rBlock=f,d.call(this,1,1431655765),p.call(this,8,16711935),p.call(this,2,858993459),d.call(this,16,65535),d.call(this,4,252645135),e[t]=this._lBlock,e[t+1]=this._rBlock},keySize:2,ivSize:2,blockSize:2});function d(e,t){var n=(this._lBlock>>>e^this._rBlock)&t;this._rBlock^=n,this._lBlock^=n<<e}function p(e,t){var n=(this._rBlock>>>e^this._lBlock)&t;this._lBlock^=n,this._rBlock^=n<<e}e.DES=r._createHelper(f);var h=i.TripleDES=r.extend({_doReset:function(){var e=this._key.words;this._des1=f.createEncryptor(n.create(e.slice(0,2))),this._des2=f.createEncryptor(n.create(e.slice(2,4))),this._des3=f.createEncryptor(n.create(e.slice(4,6)))},encryptBlock:function(e,t){this._des1.encryptBlock(e,t),this._des2.decryptBlock(e,t),this._des3.encryptBlock(e,t)},decryptBlock:function(e,t){this._des3.decryptBlock(e,t),this._des2.encryptBlock(e,t),this._des1.decryptBlock(e,t)},keySize:6,ivSize:2,blockSize:2});e.TripleDES=r._createHelper(h)}(),o.TripleDES)}()},4103:function(e,t,n){!function(t,r){var i;e.exports=(i=n(7757),function(e){var t=i,n=t.lib,r=n.Base,o=n.WordArray,a=t.x64={};a.Word=r.extend({init:function(e,t){this.high=e,this.low=t}}),a.WordArray=r.extend({init:function(t,n){t=this.words=t||[],this.sigBytes=n!=e?n:8*t.length},toX32:function(){for(var e=this.words,t=e.length,n=[],r=0;r<t;r++){var i=e[r];n.push(i.high),n.push(i.low)}return o.create(n,this.sigBytes)},clone:function(){for(var e=r.clone.call(this),t=e.words=this.words.slice(0),n=t.length,i=0;i<n;i++)t[i]=t[i].clone();return e}})}(),i)}()},95171:function(e){function t(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=t,t.equal=function(e,t,n){if(e!=t)throw new Error(n||"Assertion failed: "+e+" != "+t)}},78986:function(e,t,n){"use strict";var r=n(39052),i=n(18054),o=n(31535),a=Object.prototype.toString;e.exports=function(e){return t=e,"[object Date]"===a.call(t)?e:function(e){return"[object Number]"===a.call(e)}(e)?new Date((n=e)<315576e5?1e3*n:n):r.is(e)?r.parse(e):i.is(e)?i.parse(e):o.is(e)?o.parse(e):new Date(e);var t,n}},18054:function(e,t){"use strict";var n=/\d{13}/;t.is=function(e){return n.test(e)},t.parse=function(e){return e=parseInt(e,10),new Date(e)}},31535:function(e,t){"use strict";var n=/\d{10}/;t.is=function(e){return n.test(e)},t.parse=function(e){var t=1e3*parseInt(e,10);return new Date(t)}},34867:function(e){function t(e){return function(t,n,r,o){var a,s=o&&function(e){return"function"===typeof e}(o.normalizer)?o.normalizer:i;n=s(n);for(var u=!1;!u;)c();function c(){for(a in t){var e=s(a);if(0===n.indexOf(e)){var r=n.substr(e.length);if("."===r.charAt(0)||0===r.length){n=r.substr(1);var i=t[a];return null==i?void(u=!0):n.length?void(t=i):void(u=!0)}}}a=void 0,u=!0}if(a)return null==t?t:e(t,a,r)}}function n(e,t){return e.hasOwnProperty(t)&&delete e[t],e}function r(e,t,n){return e.hasOwnProperty(t)&&(e[t]=n),e}function i(e){return e.replace(/[^a-zA-Z0-9\.]+/g,"").toLowerCase()}e.exports=t((function(e,t){if(e.hasOwnProperty(t))return e[t]})),e.exports.find=e.exports,e.exports.replace=function(e,n,i,o){return t(r).call(this,e,n,i,o),e},e.exports.del=function(e,r,i){return t(n).call(this,e,r,null,i),e}},46264:function(e){"use strict";var t=function(e){return e!==e};e.exports=function(e,n){return 0===e&&0===n?1/e===1/n:e===n||!(!t(e)||!t(n))}},45644:function(e,t,n){"use strict";var r=n(10917),i=n(85677),o=n(46264),a=n(31666),s=n(19068),u=i(a(),Object);r(u,{getPolyfill:a,implementation:o,shim:s}),e.exports=u},31666:function(e,t,n){"use strict";var r=n(46264);e.exports=function(){return"function"===typeof Object.is?Object.is:r}},19068:function(e,t,n){"use strict";var r=n(31666),i=n(10917);e.exports=function(){var e=r();return i(Object,{is:e},{is:function(){return Object.is!==e}}),e}},44996:function(e,t,n){"use strict";var r;if(!Object.keys){var i=Object.prototype.hasOwnProperty,o=Object.prototype.toString,a=n(24307),s=Object.prototype.propertyIsEnumerable,u=!s.call({toString:null},"toString"),c=s.call((function(){}),"prototype"),l=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],f=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},p=function(){if("undefined"===typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&i.call(window,e)&&null!==window[e]&&"object"===typeof window[e])try{f(window[e])}catch(t){return!0}}catch(t){return!0}return!1}();r=function(e){var t=null!==e&&"object"===typeof e,n="[object Function]"===o.call(e),r=a(e),s=t&&"[object String]"===o.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var h=c&&n;if(s&&e.length>0&&!i.call(e,0))for(var m=0;m<e.length;++m)d.push(String(m));if(r&&e.length>0)for(var y=0;y<e.length;++y)d.push(String(y));else for(var v in e)h&&"prototype"===v||!i.call(e,v)||d.push(String(v));if(u)for(var g=function(e){if("undefined"===typeof window||!p)return f(e);try{return f(e)}catch(t){return!1}}(e),b=0;b<l.length;++b)g&&"constructor"===l[b]||!i.call(e,l[b])||d.push(l[b]);return d}}e.exports=r},93321:function(e,t,n){"use strict";var r=Array.prototype.slice,i=n(24307),o=Object.keys,a=o?function(e){return o(e)}:n(44996),s=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return i(e)?s(r.call(e)):s(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},24307:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"===typeof e&&"number"===typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},33185:function(e){var t,n,r=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function a(e){if(t===setTimeout)return setTimeout(e,0);if((t===i||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"===typeof setTimeout?setTimeout:i}catch(e){t=i}try{n="function"===typeof clearTimeout?clearTimeout:o}catch(e){n=o}}();var s,u=[],c=!1,l=-1;function f(){c&&s&&(c=!1,s.length?u=s.concat(u):l=-1,u.length&&d())}function d(){if(!c){var e=a(f);c=!0;for(var t=u.length;t;){for(s=u,u=[];++l<t;)s&&s[l].run();l=-1,t=u.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===o||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{return n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function h(){}r.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];u.push(new p(e,t)),1!==u.length||c||a(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=h,r.addListener=h,r.once=h,r.off=h,r.removeListener=h,r.removeAllListeners=h,r.emit=h,r.prependListener=h,r.prependOnceListener=h,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},19838:function(e,t,n){"use strict";var r=n(65535),i=n(69793);function o(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var a=new Set,s={};function u(e,t){c(e,t),c(e+"Capture",t)}function c(e,t){for(s[e]=t,e=0;e<t.length;e++)a.add(t[e])}var l=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),f=Object.prototype.hasOwnProperty,d=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,p={},h={};function m(e,t,n,r,i,o,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=a}var y={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){y[e]=new m(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];y[t]=new m(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){y[e]=new m(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){y[e]=new m(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){y[e]=new m(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){y[e]=new m(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){y[e]=new m(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){y[e]=new m(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){y[e]=new m(e,5,!1,e.toLowerCase(),null,!1,!1)}));var v=/[\-:]([a-z])/g;function g(e){return e[1].toUpperCase()}function b(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(null!==i?0!==i.type:r||!(2<t.length)||"o"!==t[0]&&"O"!==t[0]||"n"!==t[1]&&"N"!==t[1])&&(function(e,t,n,r){if(null===t||"undefined"===typeof t||function(e,t,n,r){if(null!==n&&0===n.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,n,i,r)&&(n=null),r||null===i?function(e){return!!f.call(h,e)||!f.call(p,e)&&(d.test(e)?h[e]=!0:(p[e]=!0,!1))}(t)&&(null===n?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=null===n?3!==i.type&&"":n:(t=i.attributeName,r=i.attributeNamespace,null===n?e.removeAttribute(t):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(v,g);y[t]=new m(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!1,!1)})),y.xlinkHref=new m("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){y[e]=new m(e,1,!1,e.toLowerCase(),null,!0,!0)}));var w=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,x=Symbol.for("react.element"),A=Symbol.for("react.portal"),k=Symbol.for("react.fragment"),E=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),_=Symbol.for("react.provider"),S=Symbol.for("react.context"),C=Symbol.for("react.forward_ref"),I=Symbol.for("react.suspense"),O=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),R=Symbol.for("react.lazy");Symbol.for("react.scope"),Symbol.for("react.debug_trace_mode");var M=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden"),Symbol.for("react.cache"),Symbol.for("react.tracing_marker");var B=Symbol.iterator;function N(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=B&&e[B]||e["@@iterator"])?e:null}var F,D=Object.assign;function L(e){if(void 0===F)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);F=t&&t[1]||""}return"\n"+F+e}var z=!1;function j(e,t){if(!e||z)return"";z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(t,[])}catch(c){var r=c}Reflect.construct(e,[],t)}else{try{t.call()}catch(c){r=c}e.call(t.prototype)}else{try{throw Error()}catch(c){r=c}e()}}catch(c){if(c&&r&&"string"===typeof c.stack){for(var i=c.stack.split("\n"),o=r.stack.split("\n"),a=i.length-1,s=o.length-1;1<=a&&0<=s&&i[a]!==o[s];)s--;for(;1<=a&&0<=s;a--,s--)if(i[a]!==o[s]){if(1!==a||1!==s)do{if(a--,0>--s||i[a]!==o[s]){var u="\n"+i[a].replace(" at new "," at ");return e.displayName&&u.includes("<anonymous>")&&(u=u.replace("<anonymous>",e.displayName)),u}}while(1<=a&&0<=s);break}}}finally{z=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?L(e):""}function U(e){switch(e.tag){case 5:return L(e.type);case 16:return L("Lazy");case 13:return L("Suspense");case 19:return L("SuspenseList");case 0:case 2:case 15:return e=j(e.type,!1);case 11:return e=j(e.type.render,!1);case 1:return e=j(e.type,!0);default:return""}}function Z(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case k:return"Fragment";case A:return"Portal";case T:return"Profiler";case E:return"StrictMode";case I:return"Suspense";case O:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case S:return(e.displayName||"Context")+".Consumer";case _:return(e._context.displayName||"Context")+".Provider";case C:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case P:return null!==(t=e.displayName||null)?t:Z(e.type)||"Memo";case R:t=e._payload,e=e._init;try{return Z(e(t))}catch(n){}}return null}function q(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=(e=t.render).displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===E?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if("function"===typeof t)return t.displayName||t.name||null;if("string"===typeof t)return t}return null}function H(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function V(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function G(e){e._valueTracker||(e._valueTracker=function(e){var t=V(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof n&&"function"===typeof n.get&&"function"===typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=""+e,o.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function W(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=V(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function K(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function J(e,t){var n=t.checked;return D({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:e._wrapperState.initialChecked})}function X(e,t){var n=null==t.defaultValue?"":t.defaultValue,r=null!=t.checked?t.checked:t.defaultChecked;n=H(null!=t.value?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Y(e,t){null!=(t=t.checked)&&b(e,"checked",t,!1)}function $(e,t){Y(e,t);var n=H(t.value),r=t.type;if(null!=n)"number"===r?(0===n&&""===e.value||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if("submit"===r||"reset"===r)return void e.removeAttribute("value");t.hasOwnProperty("value")?ee(e,t.type,n):t.hasOwnProperty("defaultValue")&&ee(e,t.type,H(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Q(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!("submit"!==r&&"reset"!==r||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}""!==(n=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==n&&(e.name=n)}function ee(e,t,n){"number"===t&&K(e.ownerDocument)===e||(null==n?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var te=Array.isArray;function ne(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+H(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function re(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(o(91));return D({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function ie(e,t){var n=t.value;if(null==n){if(n=t.children,t=t.defaultValue,null!=n){if(null!=t)throw Error(o(92));if(te(n)){if(1<n.length)throw Error(o(93));n=n[0]}t=n}null==t&&(t=""),n=t}e._wrapperState={initialValue:H(n)}}function oe(e,t){var n=H(t.value),r=H(t.defaultValue);null!=n&&((n=""+n)!==e.value&&(e.value=n),null==t.defaultValue&&e.defaultValue!==n&&(e.defaultValue=n)),null!=r&&(e.defaultValue=""+r)}function ae(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}function se(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function ue(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?se(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var ce,le,fe=(le=function(e,t){if("http://www.w3.org/2000/svg"!==e.namespaceURI||"innerHTML"in e)e.innerHTML=t;else{for((ce=ce||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=ce.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}},"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,t,n,r){MSApp.execUnsafeLocalFunction((function(){return le(e,t)}))}:le);function de(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var pe={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},he=["Webkit","ms","Moz","O"];function me(e,t,n){return null==t||"boolean"===typeof t||""===t?"":n||"number"!==typeof t||0===t||pe.hasOwnProperty(e)&&pe[e]?(""+t).trim():t+"px"}function ye(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=me(n,t[n],r);"float"===n&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}Object.keys(pe).forEach((function(e){he.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),pe[t]=pe[e]}))}));var ve=D({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function ge(e,t){if(t){if(ve[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(o(137,e));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(o(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(o(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(o(62))}}function be(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var we=null;function xe(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Ae=null,ke=null,Ee=null;function Te(e){if(e=bi(e)){if("function"!==typeof Ae)throw Error(o(280));var t=e.stateNode;t&&(t=xi(t),Ae(e.stateNode,e.type,t))}}function _e(e){ke?Ee?Ee.push(e):Ee=[e]:ke=e}function Se(){if(ke){var e=ke,t=Ee;if(Ee=ke=null,Te(e),t)for(e=0;e<t.length;e++)Te(t[e])}}function Ce(e,t){return e(t)}function Ie(){}var Oe=!1;function Pe(e,t,n){if(Oe)return e(t,n);Oe=!0;try{return Ce(e,t,n)}finally{Oe=!1,(null!==ke||null!==Ee)&&(Ie(),Se())}}function Re(e,t){var n=e.stateNode;if(null===n)return null;var r=xi(n);if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Me=!1;if(l)try{var Be={};Object.defineProperty(Be,"passive",{get:function(){Me=!0}}),window.addEventListener("test",Be,Be),window.removeEventListener("test",Be,Be)}catch(le){Me=!1}function Ne(e,t,n,r,i,o,a,s,u){var c=Array.prototype.slice.call(arguments,3);try{t.apply(n,c)}catch(l){this.onError(l)}}var Fe=!1,De=null,Le=!1,ze=null,je={onError:function(e){Fe=!0,De=e}};function Ue(e,t,n,r,i,o,a,s,u){Fe=!1,De=null,Ne.apply(je,arguments)}function Ze(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function qe(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function He(e){if(Ze(e)!==e)throw Error(o(188))}function Ve(e){return null!==(e=function(e){var t=e.alternate;if(!t){if(null===(t=Ze(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return He(i),e;if(a===r)return He(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(e))?Ge(e):null}function Ge(e){if(5===e.tag||6===e.tag)return e;for(e=e.child;null!==e;){var t=Ge(e);if(null!==t)return t;e=e.sibling}return null}var We=i.unstable_scheduleCallback,Ke=i.unstable_cancelCallback,Je=i.unstable_shouldYield,Xe=i.unstable_requestPaint,Ye=i.unstable_now,$e=i.unstable_getCurrentPriorityLevel,Qe=i.unstable_ImmediatePriority,et=i.unstable_UserBlockingPriority,tt=i.unstable_NormalPriority,nt=i.unstable_LowPriority,rt=i.unstable_IdlePriority,it=null,ot=null;var at=Math.clz32?Math.clz32:function(e){return e>>>=0,0===e?32:31-(st(e)/ut|0)|0},st=Math.log,ut=Math.LN2;var ct=64,lt=4194304;function ft(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return 4194240&e;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return 130023424&e;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function dt(e,t){var n=e.pendingLanes;if(0===n)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,a=268435455&n;if(0!==a){var s=a&~i;0!==s?r=ft(s):0!==(o&=a)&&(r=ft(o))}else 0!==(a=n&~i)?r=ft(a):0!==o&&(r=ft(o));if(0===r)return 0;if(0!==t&&t!==r&&0===(t&i)&&((i=r&-r)>=(o=t&-t)||16===i&&0!==(4194240&o)))return t;if(0!==(4&r)&&(r|=16&n),0!==(t=e.entangledLanes))for(e=e.entanglements,t&=r;0<t;)i=1<<(n=31-at(t)),r|=e[n],t&=~i;return r}function pt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function ht(e){return 0!==(e=-1073741825&e.pendingLanes)?e:1073741824&e?1073741824:0}function mt(){var e=ct;return 0===(4194240&(ct<<=1))&&(ct=64),e}function yt(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function vt(e,t,n){e.pendingLanes|=t,536870912!==t&&(e.suspendedLanes=0,e.pingedLanes=0),(e=e.eventTimes)[t=31-at(t)]=n}function gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-at(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var bt=0;function wt(e){return 1<(e&=-e)?4<e?0!==(268435455&e)?16:536870912:4:1}var xt,At,kt,Et,Tt,_t=!1,St=[],Ct=null,It=null,Ot=null,Pt=new Map,Rt=new Map,Mt=[],Bt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function Nt(e,t){switch(e){case"focusin":case"focusout":Ct=null;break;case"dragenter":case"dragleave":It=null;break;case"mouseover":case"mouseout":Ot=null;break;case"pointerover":case"pointerout":Pt.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Rt.delete(t.pointerId)}}function Ft(e,t,n,r,i,o){return null===e||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:o,targetContainers:[i]},null!==t&&(null!==(t=bi(t))&&At(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Dt(e){var t=gi(e.target);if(null!==t){var n=Ze(t);if(null!==n)if(13===(t=n.tag)){if(null!==(t=qe(n)))return e.blockedOn=t,void Tt(e.priority,(function(){kt(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Jt(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(null!==n)return null!==(t=bi(n))&&At(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);we=r,n.target.dispatchEvent(r),we=null,t.shift()}return!0}function zt(e,t,n){Lt(e)&&n.delete(t)}function jt(){_t=!1,null!==Ct&&Lt(Ct)&&(Ct=null),null!==It&&Lt(It)&&(It=null),null!==Ot&&Lt(Ot)&&(Ot=null),Pt.forEach(zt),Rt.forEach(zt)}function Ut(e,t){e.blockedOn===t&&(e.blockedOn=null,_t||(_t=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,jt)))}function Zt(e){function t(t){return Ut(t,e)}if(0<St.length){Ut(St[0],e);for(var n=1;n<St.length;n++){var r=St[n];r.blockedOn===e&&(r.blockedOn=null)}}for(null!==Ct&&Ut(Ct,e),null!==It&&Ut(It,e),null!==Ot&&Ut(Ot,e),Pt.forEach(t),Rt.forEach(t),n=0;n<Mt.length;n++)(r=Mt[n]).blockedOn===e&&(r.blockedOn=null);for(;0<Mt.length&&null===(n=Mt[0]).blockedOn;)Dt(n),null===n.blockedOn&&Mt.shift()}var qt=w.ReactCurrentBatchConfig,Ht=!0;function Vt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=1,Wt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Gt(e,t,n,r){var i=bt,o=qt.transition;qt.transition=null;try{bt=4,Wt(e,t,n,r)}finally{bt=i,qt.transition=o}}function Wt(e,t,n,r){if(Ht){var i=Jt(e,t,n,r);if(null===i)Hr(e,t,r,Kt,n),Nt(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Ct=Ft(Ct,e,t,n,r,i),!0;case"dragenter":return It=Ft(It,e,t,n,r,i),!0;case"mouseover":return Ot=Ft(Ot,e,t,n,r,i),!0;case"pointerover":var o=i.pointerId;return Pt.set(o,Ft(Pt.get(o)||null,e,t,n,r,i)),!0;case"gotpointercapture":return o=i.pointerId,Rt.set(o,Ft(Rt.get(o)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Nt(e,r),4&t&&-1<Bt.indexOf(e)){for(;null!==i;){var o=bi(i);if(null!==o&&xt(o),null===(o=Jt(e,t,n,r))&&Hr(e,t,r,Kt,n),o===i)break;i=o}null!==i&&r.stopPropagation()}else Hr(e,t,r,null,n)}}var Kt=null;function Jt(e,t,n,r){if(Kt=null,null!==(e=gi(e=xe(r))))if(null===(t=Ze(e)))e=null;else if(13===(n=t.tag)){if(null!==(e=qe(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return Kt=e,null}function Xt(e){switch(e){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch($e()){case Qe:return 1;case et:return 4;case tt:case nt:return 16;case rt:return 536870912;default:return 16}default:return 16}}var Yt=null,$t=null,Qt=null;function en(){if(Qt)return Qt;var e,t,n=$t,r=n.length,i="value"in Yt?Yt.value:Yt.textContent,o=i.length;for(e=0;e<r&&n[e]===i[e];e++);var a=r-e;for(t=1;t<=a&&n[r-t]===i[o-t];t++);return Qt=i.slice(e,1<t?1-t:void 0)}function tn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function nn(){return!0}function rn(){return!1}function on(e){function t(t,n,r,i,o){for(var a in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=o,this.currentTarget=null,e)e.hasOwnProperty(a)&&(t=e[a],this[a]=t?t(i):i[a]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?nn:rn,this.isPropagationStopped=rn,this}return D(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=nn)},persist:function(){},isPersistent:nn}),t}var an,sn,un,cn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ln=on(cn),fn=D({},cn,{view:0,detail:0}),dn=on(fn),pn=D({},fn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==un&&(un&&"mousemove"===e.type?(an=e.screenX-un.screenX,sn=e.screenY-un.screenY):sn=an=0,un=e),an)},movementY:function(e){return"movementY"in e?e.movementY:sn}}),hn=on(pn),mn=on(D({},pn,{dataTransfer:0})),yn=on(D({},fn,{relatedTarget:0})),vn=on(D({},cn,{animationName:0,elapsedTime:0,pseudoElement:0})),gn=D({},cn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),bn=on(gn),wn=on(D({},cn,{data:0})),xn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},An={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},kn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function En(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=kn[e])&&!!t[e]}function Tn(){return En}var _n=D({},fn,{key:function(e){if(e.key){var t=xn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=tn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?An[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tn,charCode:function(e){return"keypress"===e.type?tn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?tn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),Sn=on(_n),Cn=on(D({},pn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),In=on(D({},fn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tn})),On=on(D({},cn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Pn=D({},pn,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),Rn=on(Pn),Mn=[9,13,27,32],Bn=l&&"CompositionEvent"in window,Nn=null;l&&"documentMode"in document&&(Nn=document.documentMode);var Fn=l&&"TextEvent"in window&&!Nn,Dn=l&&(!Bn||Nn&&8<Nn&&11>=Nn),Ln=String.fromCharCode(32),zn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Mn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Un(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Zn=!1;var qn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Hn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!qn[e.type]:"textarea"===t}function Vn(e,t,n,r){_e(r),0<(t=Gr(t,"onChange")).length&&(n=new ln("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Gn=null,Wn=null;function Kn(e){Lr(e,0)}function Jn(e){if(W(wi(e)))return e}function Xn(e,t){if("change"===e)return t}var Yn=!1;if(l){var $n;if(l){var Qn="oninput"in document;if(!Qn){var er=document.createElement("div");er.setAttribute("oninput","return;"),Qn="function"===typeof er.oninput}$n=Qn}else $n=!1;Yn=$n&&(!document.documentMode||9<document.documentMode)}function tr(){Gn&&(Gn.detachEvent("onpropertychange",nr),Wn=Gn=null)}function nr(e){if("value"===e.propertyName&&Jn(Wn)){var t=[];Vn(t,Wn,e,xe(e)),Pe(Kn,t)}}function rr(e,t,n){"focusin"===e?(tr(),Wn=n,(Gn=t).attachEvent("onpropertychange",nr)):"focusout"===e&&tr()}function ir(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Jn(Wn)}function or(e,t){if("click"===e)return Jn(t)}function ar(e,t){if("input"===e||"change"===e)return Jn(t)}var sr="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function ur(e,t){if(sr(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!f.call(t,i)||!sr(e[i],t[i]))return!1}return!0}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function lr(e,t){var n,r=cr(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=cr(r)}}function fr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?fr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function dr(){for(var e=window,t=K();t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=K((e=t.contentWindow).document)}return t}function pr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}function hr(e){var t=dr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&fr(n.ownerDocument.documentElement,n)){if(null!==r&&pr(n))if(t=r.start,void 0===(e=r.end)&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if((e=(t=n.ownerDocument||document)&&t.defaultView||window).getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=void 0===r.end?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=lr(n,o);var a=lr(n,r);i&&a&&(1!==e.rangeCount||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&((t=t.createRange()).setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.offset),e.addRange(t)))}for(t=[],e=n;e=e.parentNode;)1===e.nodeType&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for("function"===typeof n.focus&&n.focus(),n=0;n<t.length;n++)(e=t[n]).element.scrollLeft=e.left,e.element.scrollTop=e.top}}var mr=l&&"documentMode"in document&&11>=document.documentMode,yr=null,vr=null,gr=null,br=!1;function wr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;br||null==yr||yr!==K(r)||("selectionStart"in(r=yr)&&pr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},gr&&ur(gr,r)||(gr=r,0<(r=Gr(vr,"onSelect")).length&&(t=new ln("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=yr)))}function xr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Ar={animationend:xr("Animation","AnimationEnd"),animationiteration:xr("Animation","AnimationIteration"),animationstart:xr("Animation","AnimationStart"),transitionend:xr("Transition","TransitionEnd")},kr={},Er={};function Tr(e){if(kr[e])return kr[e];if(!Ar[e])return e;var t,n=Ar[e];for(t in n)if(n.hasOwnProperty(t)&&t in Er)return kr[e]=n[t];return e}l&&(Er=document.createElement("div").style,"AnimationEvent"in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),"TransitionEvent"in window||delete Ar.transitionend.transition);var _r=Tr("animationend"),Sr=Tr("animationiteration"),Cr=Tr("animationstart"),Ir=Tr("transitionend"),Or=new Map,Pr="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Rr(e,t){Or.set(e,t),u(t,[e])}for(var Mr=0;Mr<Pr.length;Mr++){var Br=Pr[Mr];Rr(Br.toLowerCase(),"on"+(Br[0].toUpperCase()+Br.slice(1)))}Rr(_r,"onAnimationEnd"),Rr(Sr,"onAnimationIteration"),Rr(Cr,"onAnimationStart"),Rr("dblclick","onDoubleClick"),Rr("focusin","onFocus"),Rr("focusout","onBlur"),Rr(Ir,"onTransitionEnd"),c("onMouseEnter",["mouseout","mouseover"]),c("onMouseLeave",["mouseout","mouseover"]),c("onPointerEnter",["pointerout","pointerover"]),c("onPointerLeave",["pointerout","pointerover"]),u("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),u("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),u("onBeforeInput",["compositionend","keypress","textInput","paste"]),u("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),u("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Nr="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Fr=new Set("cancel close invalid load scroll toggle".split(" ").concat(Nr));function Dr(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,function(e,t,n,r,i,a,s,u,c){if(Ue.apply(this,arguments),Fe){if(!Fe)throw Error(o(198));var l=De;Fe=!1,De=null,Le||(Le=!0,ze=l)}}(r,t,void 0,e),e.currentTarget=null}function Lr(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var o=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],u=s.instance,c=s.currentTarget;if(s=s.listener,u!==o&&i.isPropagationStopped())break e;Dr(i,s,c),o=u}else for(a=0;a<r.length;a++){if(u=(s=r[a]).instance,c=s.currentTarget,s=s.listener,u!==o&&i.isPropagationStopped())break e;Dr(i,s,c),o=u}}}if(Le)throw e=ze,Le=!1,ze=null,e}function zr(e,t){var n=t[mi];void 0===n&&(n=t[mi]=new Set);var r=e+"__bubble";n.has(r)||(qr(t,e,2,!1),n.add(r))}function jr(e,t,n){var r=0;t&&(r|=4),qr(n,e,r,t)}var Ur="_reactListening"+Math.random().toString(36).slice(2);function Zr(e){if(!e[Ur]){e[Ur]=!0,a.forEach((function(t){"selectionchange"!==t&&(Fr.has(t)||jr(t,!1,e),jr(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Ur]||(t[Ur]=!0,jr("selectionchange",!1,t))}}function qr(e,t,n,r){switch(Xt(t)){case 1:var i=Vt;break;case 4:i=Gt;break;default:i=Wt}n=i.bind(null,t,n,e),i=void 0,!Me||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function Hr(e,t,n,r,i){var o=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var a=r.tag;if(3===a||4===a){var s=r.stateNode.containerInfo;if(s===i||8===s.nodeType&&s.parentNode===i)break;if(4===a)for(a=r.return;null!==a;){var u=a.tag;if((3===u||4===u)&&((u=a.stateNode.containerInfo)===i||8===u.nodeType&&u.parentNode===i))return;a=a.return}for(;null!==s;){if(null===(a=gi(s)))return;if(5===(u=a.tag)||6===u){r=o=a;continue e}s=s.parentNode}}r=r.return}Pe((function(){var r=o,i=xe(n),a=[];e:{var s=Or.get(e);if(void 0!==s){var u=ln,c=e;switch(e){case"keypress":if(0===tn(n))break e;case"keydown":case"keyup":u=Sn;break;case"focusin":c="focus",u=yn;break;case"focusout":c="blur",u=yn;break;case"beforeblur":case"afterblur":u=yn;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=hn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=mn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=In;break;case _r:case Sr:case Cr:u=vn;break;case Ir:u=On;break;case"scroll":u=dn;break;case"wheel":u=Rn;break;case"copy":case"cut":case"paste":u=bn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=Cn}var l=0!==(4&t),f=!l&&"scroll"===e,d=l?null!==s?s+"Capture":null:s;l=[];for(var p,h=r;null!==h;){var m=(p=h).stateNode;if(5===p.tag&&null!==m&&(p=m,null!==d&&(null!=(m=Re(h,d))&&l.push(Vr(h,m,p)))),f)break;h=h.return}0<l.length&&(s=new u(s,c,null,n,i),a.push({event:s,listeners:l}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===we||!(c=n.relatedTarget||n.fromElement)||!gi(c)&&!c[hi])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?gi(c):null)&&(c!==(f=Ze(c))||5!==c.tag&&6!==c.tag)&&(c=null)):(u=null,c=r),u!==c)){if(l=hn,m="onMouseLeave",d="onMouseEnter",h="mouse","pointerout"!==e&&"pointerover"!==e||(l=Cn,m="onPointerLeave",d="onPointerEnter",h="pointer"),f=null==u?s:wi(u),p=null==c?s:wi(c),(s=new l(m,h+"leave",u,n,i)).target=f,s.relatedTarget=p,m=null,gi(i)===r&&((l=new l(d,h+"enter",c,n,i)).target=p,l.relatedTarget=f,m=l),f=m,u&&c)e:{for(d=c,h=0,p=l=u;p;p=Wr(p))h++;for(p=0,m=d;m;m=Wr(m))p++;for(;0<h-p;)l=Wr(l),h--;for(;0<p-h;)d=Wr(d),p--;for(;h--;){if(l===d||null!==d&&l===d.alternate)break e;l=Wr(l),d=Wr(d)}l=null}else l=null;null!==u&&Kr(a,s,u,l,!1),null!==c&&null!==f&&Kr(a,f,c,l,!0)}if("select"===(u=(s=r?wi(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var y=Xn;else if(Hn(s))if(Yn)y=ar;else{y=ir;var v=rr}else(u=s.nodeName)&&"input"===u.toLowerCase()&&("checkbox"===s.type||"radio"===s.type)&&(y=or);switch(y&&(y=y(e,r))?Vn(a,y,n,i):(v&&v(e,s,r),"focusout"===e&&(v=s._wrapperState)&&v.controlled&&"number"===s.type&&ee(s,"number",s.value)),v=r?wi(r):window,e){case"focusin":(Hn(v)||"true"===v.contentEditable)&&(yr=v,vr=r,gr=null);break;case"focusout":gr=vr=yr=null;break;case"mousedown":br=!0;break;case"contextmenu":case"mouseup":case"dragend":br=!1,wr(a,n,i);break;case"selectionchange":if(mr)break;case"keydown":case"keyup":wr(a,n,i)}var g;if(Bn)e:{switch(e){case"compositionstart":var b="onCompositionStart";break e;case"compositionend":b="onCompositionEnd";break e;case"compositionupdate":b="onCompositionUpdate";break e}b=void 0}else Zn?jn(e,n)&&(b="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(b="onCompositionStart");b&&(Dn&&"ko"!==n.locale&&(Zn||"onCompositionStart"!==b?"onCompositionEnd"===b&&Zn&&(g=en()):($t="value"in(Yt=i)?Yt.value:Yt.textContent,Zn=!0)),0<(v=Gr(r,b)).length&&(b=new wn(b,e,null,n,i),a.push({event:b,listeners:v}),g?b.data=g:null!==(g=Un(n))&&(b.data=g))),(g=Fn?function(e,t){switch(e){case"compositionend":return Un(t);case"keypress":return 32!==t.which?null:(zn=!0,Ln);case"textInput":return(e=t.data)===Ln&&zn?null:e;default:return null}}(e,n):function(e,t){if(Zn)return"compositionend"===e||!Bn&&jn(e,t)?(e=en(),Qt=$t=Yt=null,Zn=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return Dn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(r=Gr(r,"onBeforeInput")).length&&(i=new wn("onBeforeInput","beforeinput",null,n,i),a.push({event:i,listeners:r}),i.data=g))}Lr(a,t)}))}function Vr(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Gr(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,o=i.stateNode;5===i.tag&&null!==o&&(i=o,null!=(o=Re(e,n))&&r.unshift(Vr(e,o,i)),null!=(o=Re(e,t))&&r.push(Vr(e,o,i))),e=e.return}return r}function Wr(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag);return e||null}function Kr(e,t,n,r,i){for(var o=t._reactName,a=[];null!==n&&n!==r;){var s=n,u=s.alternate,c=s.stateNode;if(null!==u&&u===r)break;5===s.tag&&null!==c&&(s=c,i?null!=(u=Re(n,o))&&a.unshift(Vr(n,u,s)):i||null!=(u=Re(n,o))&&a.push(Vr(n,u,s))),n=n.return}0!==a.length&&e.push({event:t,listeners:a})}var Jr=/\r\n?/g,Xr=/\u0000|\uFFFD/g;function Yr(e){return("string"===typeof e?e:""+e).replace(Jr,"\n").replace(Xr,"")}function $r(e,t,n){if(t=Yr(t),Yr(e)!==t&&n)throw Error(o(425))}function Qr(){}var ei=null,ti=null;function ni(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var ri="function"===typeof setTimeout?setTimeout:void 0,ii="function"===typeof clearTimeout?clearTimeout:void 0,oi="function"===typeof Promise?Promise:void 0,ai="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof oi?function(e){return oi.resolve(null).then(e).catch(si)}:ri;function si(e){setTimeout((function(){throw e}))}function ui(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)){if(0===r)return e.removeChild(i),void Zt(t);r--}else"$"!==n&&"$?"!==n&&"$!"!==n||r++;n=i}while(n);Zt(t)}function ci(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t)break;if("/$"===t)return null}}return e}function li(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n){if(0===t)return e;t--}else"/$"===n&&t++}e=e.previousSibling}return null}var fi=Math.random().toString(36).slice(2),di="__reactFiber$"+fi,pi="__reactProps$"+fi,hi="__reactContainer$"+fi,mi="__reactEvents$"+fi,yi="__reactListeners$"+fi,vi="__reactHandles$"+fi;function gi(e){var t=e[di];if(t)return t;for(var n=e.parentNode;n;){if(t=n[hi]||n[di]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=li(e);null!==e;){if(n=e[di])return n;e=li(e)}return t}n=(e=n).parentNode}return null}function bi(e){return!(e=e[di]||e[hi])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function wi(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(o(33))}function xi(e){return e[pi]||null}var Ai=[],ki=-1;function Ei(e){return{current:e}}function Ti(e){0>ki||(e.current=Ai[ki],Ai[ki]=null,ki--)}function _i(e,t){ki++,Ai[ki]=e.current,e.current=t}var Si={},Ci=Ei(Si),Ii=Ei(!1),Oi=Si;function Pi(e,t){var n=e.type.contextTypes;if(!n)return Si;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=t[i];return r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function Ri(e){return null!==(e=e.childContextTypes)&&void 0!==e}function Mi(){Ti(Ii),Ti(Ci)}function Bi(e,t,n){if(Ci.current!==Si)throw Error(o(168));_i(Ci,t),_i(Ii,n)}function Ni(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,"function"!==typeof r.getChildContext)return n;for(var i in r=r.getChildContext())if(!(i in t))throw Error(o(108,q(e)||"Unknown",i));return D({},n,r)}function Fi(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Si,Oi=Ci.current,_i(Ci,e),_i(Ii,Ii.current),!0}function Di(e,t,n){var r=e.stateNode;if(!r)throw Error(o(169));n?(e=Ni(e,t,Oi),r.__reactInternalMemoizedMergedChildContext=e,Ti(Ii),Ti(Ci),_i(Ci,e)):Ti(Ii),_i(Ii,n)}var Li=null,zi=!1,ji=!1;function Ui(e){null===Li?Li=[e]:Li.push(e)}function Zi(){if(!ji&&null!==Li){ji=!0;var e=0,t=bt;try{var n=Li;for(bt=1;e<n.length;e++){var r=n[e];do{r=r(!0)}while(null!==r)}Li=null,zi=!1}catch(i){throw null!==Li&&(Li=Li.slice(e+1)),We(Qe,Zi),i}finally{bt=t,ji=!1}}return null}var qi=[],Hi=0,Vi=null,Gi=0,Wi=[],Ki=0,Ji=null,Xi=1,Yi="";function $i(e,t){qi[Hi++]=Gi,qi[Hi++]=Vi,Vi=e,Gi=t}function Qi(e,t,n){Wi[Ki++]=Xi,Wi[Ki++]=Yi,Wi[Ki++]=Ji,Ji=e;var r=Xi;e=Yi;var i=32-at(r)-1;r&=~(1<<i),n+=1;var o=32-at(t)+i;if(30<o){var a=i-i%5;o=(r&(1<<a)-1).toString(32),r>>=a,i-=a,Xi=1<<32-at(t)+i|n<<i|r,Yi=o+e}else Xi=1<<o|n<<i|r,Yi=e}function eo(e){null!==e.return&&($i(e,1),Qi(e,1,0))}function to(e){for(;e===Vi;)Vi=qi[--Hi],qi[Hi]=null,Gi=qi[--Hi],qi[Hi]=null;for(;e===Ji;)Ji=Wi[--Ki],Wi[Ki]=null,Yi=Wi[--Ki],Wi[Ki]=null,Xi=Wi[--Ki],Wi[Ki]=null}var no=null,ro=null,io=!1,oo=null;function ao(e,t){var n=Rc(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,null===(t=e.deletions)?(e.deletions=[n],e.flags|=16):t.push(n)}function so(e,t){switch(e.tag){case 5:var n=e.type;return null!==(t=1!==t.nodeType||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,no=e,ro=ci(t.firstChild),!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,no=e,ro=null,!0);case 13:return null!==(t=8!==t.nodeType?null:t)&&(n=null!==Ji?{id:Xi,overflow:Yi}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},(n=Rc(18,null,null,0)).stateNode=t,n.return=e,e.child=n,no=e,ro=null,!0);default:return!1}}function uo(e){return 0!==(1&e.mode)&&0===(128&e.flags)}function co(e){if(io){var t=ro;if(t){var n=t;if(!so(e,t)){if(uo(e))throw Error(o(418));t=ci(n.nextSibling);var r=no;t&&so(e,t)?ao(r,n):(e.flags=-4097&e.flags|2,io=!1,no=e)}}else{if(uo(e))throw Error(o(418));e.flags=-4097&e.flags|2,io=!1,no=e}}}function lo(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;no=e}function fo(e){if(e!==no)return!1;if(!io)return lo(e),io=!0,!1;var t;if((t=3!==e.tag)&&!(t=5!==e.tag)&&(t="head"!==(t=e.type)&&"body"!==t&&!ni(e.type,e.memoizedProps)),t&&(t=ro)){if(uo(e))throw po(),Error(o(418));for(;t;)ao(e,t),t=ci(t.nextSibling)}if(lo(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n){if(0===t){ro=ci(e.nextSibling);break e}t--}else"$"!==n&&"$!"!==n&&"$?"!==n||t++}e=e.nextSibling}ro=null}}else ro=no?ci(e.stateNode.nextSibling):null;return!0}function po(){for(var e=ro;e;)e=ci(e.nextSibling)}function ho(){ro=no=null,io=!1}function mo(e){null===oo?oo=[e]:oo.push(e)}var yo=w.ReactCurrentBatchConfig;function vo(e,t){if(e&&e.defaultProps){for(var n in t=D({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}var go=Ei(null),bo=null,wo=null,xo=null;function Ao(){xo=wo=bo=null}function ko(e){var t=go.current;Ti(go),e._currentValue=t}function Eo(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function To(e,t){bo=e,xo=wo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(0!==(e.lanes&t)&&(ws=!0),e.firstContext=null)}function _o(e){var t=e._currentValue;if(xo!==e)if(e={context:e,memoizedValue:t,next:null},null===wo){if(null===bo)throw Error(o(308));wo=e,bo.dependencies={lanes:0,firstContext:e}}else wo=wo.next=e;return t}var So=null;function Co(e){null===So?So=[e]:So.push(e)}function Io(e,t,n,r){var i=t.interleaved;return null===i?(n.next=n,Co(t)):(n.next=i.next,i.next=n),t.interleaved=n,Oo(e,r)}function Oo(e,t){e.lanes|=t;var n=e.alternate;for(null!==n&&(n.lanes|=t),n=e,e=e.return;null!==e;)e.childLanes|=t,null!==(n=e.alternate)&&(n.childLanes|=t),n=e,e=e.return;return 3===n.tag?n.stateNode:null}var Po=!1;function Ro(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Bo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function No(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&Iu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,Oo(e,n)}return null===(i=r.interleaved)?(t.next=t,Co(r)):(t.next=i.next,i.next=t),r.interleaved=t,Oo(e,n)}function Fo(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194240&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}function Do(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,o=null;if(null!==(n=n.firstBaseUpdate)){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};null===o?i=o=a:o=o.next=a,n=n.next}while(null!==n);null===o?i=o=t:o=o.next=t}else i=o=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:r.shared,effects:r.effects},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Lo(e,t,n,r){var i=e.updateQueue;Po=!1;var o=i.firstBaseUpdate,a=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var u=s,c=u.next;u.next=null,null===a?o=c:a.next=c,a=u;var l=e.alternate;null!==l&&((s=(l=l.updateQueue).lastBaseUpdate)!==a&&(null===s?l.firstBaseUpdate=c:s.next=c,l.lastBaseUpdate=u))}if(null!==o){var f=i.baseState;for(a=0,l=c=u=null,s=o;;){var d=s.lane,p=s.eventTime;if((r&d)===d){null!==l&&(l=l.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=e,m=s;switch(d=t,p=n,m.tag){case 1:if("function"===typeof(h=m.payload)){f=h.call(p,f,d);break e}f=h;break e;case 3:h.flags=-65537&h.flags|128;case 0:if(null===(d="function"===typeof(h=m.payload)?h.call(p,f,d):h)||void 0===d)break e;f=D({},f,d);break e;case 2:Po=!0}}null!==s.callback&&0!==s.lane&&(e.flags|=64,null===(d=i.effects)?i.effects=[s]:d.push(s))}else p={eventTime:p,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===l?(c=l=p,u=f):l=l.next=p,a|=d;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(d=s).next,d.next=null,i.lastBaseUpdate=d,i.shared.pending=null}}if(null===l&&(u=f),i.baseState=u,i.firstBaseUpdate=c,i.lastBaseUpdate=l,null!==(t=i.shared.interleaved)){i=t;do{a|=i.lane,i=i.next}while(i!==t)}else null===o&&(i.shared.lanes=0);Du|=a,e.lanes=a,e.memoizedState=f}}function zo(e,t,n){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var r=e[t],i=r.callback;if(null!==i){if(r.callback=null,r=n,"function"!==typeof i)throw Error(o(191,i));i.call(r)}}}var jo=(new r.Component).refs;function Uo(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:D({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}var Zo={isMounted:function(e){return!!(e=e._reactInternals)&&Ze(e)===e},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Bo(r,i);o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=No(e,o,i))&&(rc(t,e,i,r),Fo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=tc(),i=nc(e),o=Bo(r,i);o.tag=1,o.payload=t,void 0!==n&&null!==n&&(o.callback=n),null!==(t=No(e,o,i))&&(rc(t,e,i,r),Fo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=tc(),r=nc(e),i=Bo(n,r);i.tag=2,void 0!==t&&null!==t&&(i.callback=t),null!==(t=No(e,i,r))&&(rc(t,e,r,n),Fo(t,e,r))}};function qo(e,t,n,r,i,o,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,o,a):!t.prototype||!t.prototype.isPureReactComponent||(!ur(n,r)||!ur(i,o))}function Ho(e,t,n){var r=!1,i=Si,o=t.contextType;return"object"===typeof o&&null!==o?o=_o(o):(i=Ri(t)?Oi:Ci.current,o=(r=null!==(r=t.contextTypes)&&void 0!==r)?Pi(e,i):Si),t=new t(n,o),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=Zo,e.stateNode=t,t._reactInternals=e,r&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function Vo(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Zo.enqueueReplaceState(t,t.state,null)}function Go(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs=jo,Ro(e);var o=t.contextType;"object"===typeof o&&null!==o?i.context=_o(o):(o=Ri(t)?Oi:Ci.current,i.context=Pi(e,o)),i.state=e.memoizedState,"function"===typeof(o=t.getDerivedStateFromProps)&&(Uo(e,t,o,n),i.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof i.getSnapshotBeforeUpdate||"function"!==typeof i.UNSAFE_componentWillMount&&"function"!==typeof i.componentWillMount||(t=i.state,"function"===typeof i.componentWillMount&&i.componentWillMount(),"function"===typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),t!==i.state&&Zo.enqueueReplaceState(i,i.state,null),Lo(e,n,i,r),i.state=e.memoizedState),"function"===typeof i.componentDidMount&&(e.flags|=4194308)}function Wo(e,t,n){if(null!==(e=n.ref)&&"function"!==typeof e&&"object"!==typeof e){if(n._owner){if(n=n._owner){if(1!==n.tag)throw Error(o(309));var r=n.stateNode}if(!r)throw Error(o(147,e));var i=r,a=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===a?t.ref:(t=function(e){var t=i.refs;t===jo&&(t=i.refs={}),null===e?delete t[a]:t[a]=e},t._stringRef=a,t)}if("string"!==typeof e)throw Error(o(284));if(!n._owner)throw Error(o(290,e))}return e}function Ko(e,t){throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function Jo(e){return(0,e._init)(e._payload)}function Xo(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function i(e,t){return(e=Bc(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=2,n):r:(t.flags|=2,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=2),t}function u(e,t,n,r){return null===t||6!==t.tag?((t=Lc(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function c(e,t,n,r){var o=n.type;return o===k?f(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===o||"object"===typeof o&&null!==o&&o.$$typeof===R&&Jo(o)===t.type)?((r=i(t,n.props)).ref=Wo(e,t,n),r.return=e,r):((r=Nc(n.type,n.key,n.props,null,e.mode,r)).ref=Wo(e,t,n),r.return=e,r)}function l(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=zc(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function f(e,t,n,r,o){return null===t||7!==t.tag?((t=Fc(n,e.mode,r,o)).return=e,t):((t=i(t,n)).return=e,t)}function d(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t)return(t=Lc(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case x:return(n=Nc(t.type,t.key,t.props,null,e.mode,n)).ref=Wo(e,null,t),n.return=e,n;case A:return(t=zc(t,e.mode,n)).return=e,t;case R:return d(e,(0,t._init)(t._payload),n)}if(te(t)||N(t))return(t=Fc(t,e.mode,n,null)).return=e,t;Ko(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n)return null!==i?null:u(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case x:return n.key===i?c(e,t,n,r):null;case A:return n.key===i?l(e,t,n,r):null;case R:return p(e,t,(i=n._init)(n._payload),r)}if(te(n)||N(n))return null!==i?null:f(e,t,n,r,null);Ko(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r)return u(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case x:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case A:return l(t,e=e.get(null===r.key?n:r.key)||null,r,i);case R:return h(e,t,n,(0,r._init)(r._payload),i)}if(te(r)||N(r))return f(t,e=e.get(n)||null,r,i,null);Ko(t,r)}return null}function m(i,o,s,u){for(var c=null,l=null,f=o,m=o=0,y=null;null!==f&&m<s.length;m++){f.index>m?(y=f,f=null):y=f.sibling;var v=p(i,f,s[m],u);if(null===v){null===f&&(f=y);break}e&&f&&null===v.alternate&&t(i,f),o=a(v,o,m),null===l?c=v:l.sibling=v,l=v,f=y}if(m===s.length)return n(i,f),io&&$i(i,m),c;if(null===f){for(;m<s.length;m++)null!==(f=d(i,s[m],u))&&(o=a(f,o,m),null===l?c=f:l.sibling=f,l=f);return io&&$i(i,m),c}for(f=r(i,f);m<s.length;m++)null!==(y=h(f,i,m,s[m],u))&&(e&&null!==y.alternate&&f.delete(null===y.key?m:y.key),o=a(y,o,m),null===l?c=y:l.sibling=y,l=y);return e&&f.forEach((function(e){return t(i,e)})),io&&$i(i,m),c}function y(i,s,u,c){var l=N(u);if("function"!==typeof l)throw Error(o(150));if(null==(u=l.call(u)))throw Error(o(151));for(var f=l=null,m=s,y=s=0,v=null,g=u.next();null!==m&&!g.done;y++,g=u.next()){m.index>y?(v=m,m=null):v=m.sibling;var b=p(i,m,g.value,c);if(null===b){null===m&&(m=v);break}e&&m&&null===b.alternate&&t(i,m),s=a(b,s,y),null===f?l=b:f.sibling=b,f=b,m=v}if(g.done)return n(i,m),io&&$i(i,y),l;if(null===m){for(;!g.done;y++,g=u.next())null!==(g=d(i,g.value,c))&&(s=a(g,s,y),null===f?l=g:f.sibling=g,f=g);return io&&$i(i,y),l}for(m=r(i,m);!g.done;y++,g=u.next())null!==(g=h(m,i,y,g.value,c))&&(e&&null!==g.alternate&&m.delete(null===g.key?y:g.key),s=a(g,s,y),null===f?l=g:f.sibling=g,f=g);return e&&m.forEach((function(e){return t(i,e)})),io&&$i(i,y),l}return function e(r,o,a,u){if("object"===typeof a&&null!==a&&a.type===k&&null===a.key&&(a=a.props.children),"object"===typeof a&&null!==a){switch(a.$$typeof){case x:e:{for(var c=a.key,l=o;null!==l;){if(l.key===c){if((c=a.type)===k){if(7===l.tag){n(r,l.sibling),(o=i(l,a.props.children)).return=r,r=o;break e}}else if(l.elementType===c||"object"===typeof c&&null!==c&&c.$$typeof===R&&Jo(c)===l.type){n(r,l.sibling),(o=i(l,a.props)).ref=Wo(r,l,a),o.return=r,r=o;break e}n(r,l);break}t(r,l),l=l.sibling}a.type===k?((o=Fc(a.props.children,r.mode,u,a.key)).return=r,r=o):((u=Nc(a.type,a.key,a.props,null,r.mode,u)).ref=Wo(r,o,a),u.return=r,r=u)}return s(r);case A:e:{for(l=a.key;null!==o;){if(o.key===l){if(4===o.tag&&o.stateNode.containerInfo===a.containerInfo&&o.stateNode.implementation===a.implementation){n(r,o.sibling),(o=i(o,a.children||[])).return=r,r=o;break e}n(r,o);break}t(r,o),o=o.sibling}(o=zc(a,r.mode,u)).return=r,r=o}return s(r);case R:return e(r,o,(l=a._init)(a._payload),u)}if(te(a))return m(r,o,a,u);if(N(a))return y(r,o,a,u);Ko(r,a)}return"string"===typeof a&&""!==a||"number"===typeof a?(a=""+a,null!==o&&6===o.tag?(n(r,o.sibling),(o=i(o,a)).return=r,r=o):(n(r,o),(o=Lc(a,r.mode,u)).return=r,r=o),s(r)):n(r,o)}}var Yo=Xo(!0),$o=Xo(!1),Qo={},ea=Ei(Qo),ta=Ei(Qo),na=Ei(Qo);function ra(e){if(e===Qo)throw Error(o(174));return e}function ia(e,t){switch(_i(na,t),_i(ta,e),_i(ea,Qo),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:ue(null,"");break;default:t=ue(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}Ti(ea),_i(ea,t)}function oa(){Ti(ea),Ti(ta),Ti(na)}function aa(e){ra(na.current);var t=ra(ea.current),n=ue(t,e.type);t!==n&&(_i(ta,e),_i(ea,n))}function sa(e){ta.current===e&&(Ti(ea),Ti(ta))}var ua=Ei(0);function ca(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||"$?"===n.data||"$!"===n.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(128&t.flags))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var la=[];function fa(){for(var e=0;e<la.length;e++)la[e]._workInProgressVersionPrimary=null;la.length=0}var da=w.ReactCurrentDispatcher,pa=w.ReactCurrentBatchConfig,ha=0,ma=null,ya=null,va=null,ga=!1,ba=!1,wa=0,xa=0;function Aa(){throw Error(o(321))}function ka(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!sr(e[n],t[n]))return!1;return!0}function Ea(e,t,n,r,i,a){if(ha=a,ma=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,da.current=null===e||null===e.memoizedState?ss:us,e=n(r,i),ba){a=0;do{if(ba=!1,wa=0,25<=a)throw Error(o(301));a+=1,va=ya=null,t.updateQueue=null,da.current=cs,e=n(r,i)}while(ba)}if(da.current=as,t=null!==ya&&null!==ya.next,ha=0,va=ya=ma=null,ga=!1,t)throw Error(o(300));return e}function Ta(){var e=0!==wa;return wa=0,e}function _a(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===va?ma.memoizedState=va=e:va=va.next=e,va}function Sa(){if(null===ya){var e=ma.alternate;e=null!==e?e.memoizedState:null}else e=ya.next;var t=null===va?ma.memoizedState:va.next;if(null!==t)va=t,ya=e;else{if(null===e)throw Error(o(310));e={memoizedState:(ya=e).memoizedState,baseState:ya.baseState,baseQueue:ya.baseQueue,queue:ya.queue,next:null},null===va?ma.memoizedState=va=e:va=va.next=e}return va}function Ca(e,t){return"function"===typeof t?t(e):t}function Ia(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=ya,i=r.baseQueue,a=n.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}r.baseQueue=i=a,n.pending=null}if(null!==i){a=i.next,r=r.baseState;var u=s=null,c=null,l=a;do{var f=l.lane;if((ha&f)===f)null!==c&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),r=l.hasEagerState?l.eagerState:e(r,l.action);else{var d={lane:f,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};null===c?(u=c=d,s=r):c=c.next=d,ma.lanes|=f,Du|=f}l=l.next}while(null!==l&&l!==a);null===c?s=r:c.next=u,sr(r,t.memoizedState)||(ws=!0),t.memoizedState=r,t.baseState=s,t.baseQueue=c,n.lastRenderedState=r}if(null!==(e=n.interleaved)){i=e;do{a=i.lane,ma.lanes|=a,Du|=a,i=i.next}while(i!==e)}else null===i&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function Oa(e){var t=Sa(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);sr(a,t.memoizedState)||(ws=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Pa(){}function Ra(e,t){var n=ma,r=Sa(),i=t(),a=!sr(r.memoizedState,i);if(a&&(r.memoizedState=i,ws=!0),r=r.queue,Ha(Na.bind(null,n,r,e),[e]),r.getSnapshot!==t||a||null!==va&&1&va.memoizedState.tag){if(n.flags|=2048,za(9,Ba.bind(null,n,r,i,t),void 0,null),null===Ou)throw Error(o(349));0!==(30&ha)||Ma(n,t,i)}return i}function Ma(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function Ba(e,t,n,r){t.value=n,t.getSnapshot=r,Fa(t)&&Da(e)}function Na(e,t,n){return n((function(){Fa(t)&&Da(e)}))}function Fa(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!sr(e,n)}catch(r){return!0}}function Da(e){var t=Oo(e,1);null!==t&&rc(t,e,1,-1)}function La(e){var t=_a();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Ca,lastRenderedState:e},t.queue=e,e=e.dispatch=ns.bind(null,ma,e),[t.memoizedState,e]}function za(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},null===(t=ma.updateQueue)?(t={lastEffect:null,stores:null},ma.updateQueue=t,t.lastEffect=e.next=e):null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function ja(){return Sa().memoizedState}function Ua(e,t,n,r){var i=_a();ma.flags|=e,i.memoizedState=za(1|t,n,void 0,void 0===r?null:r)}function Za(e,t,n,r){var i=Sa();r=void 0===r?null:r;var o=void 0;if(null!==ya){var a=ya.memoizedState;if(o=a.destroy,null!==r&&ka(r,a.deps))return void(i.memoizedState=za(t,n,o,r))}ma.flags|=e,i.memoizedState=za(1|t,n,o,r)}function qa(e,t){return Ua(8390656,8,e,t)}function Ha(e,t){return Za(2048,8,e,t)}function Va(e,t){return Za(4,2,e,t)}function Ga(e,t){return Za(4,4,e,t)}function Wa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function Ka(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Za(4,4,Wa.bind(null,t,e),n)}function Ja(){}function Xa(e,t){var n=Sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ya(e,t){var n=Sa();t=void 0===t?null:t;var r=n.memoizedState;return null!==r&&null!==t&&ka(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function $a(e,t,n){return 0===(21&ha)?(e.baseState&&(e.baseState=!1,ws=!0),e.memoizedState=n):(sr(n,t)||(n=mt(),ma.lanes|=n,Du|=n,e.baseState=!0),t)}function Qa(e,t){var n=bt;bt=0!==n&&4>n?n:4,e(!0);var r=pa.transition;pa.transition={};try{e(!1),t()}finally{bt=n,pa.transition=r}}function es(){return Sa().memoizedState}function ts(e,t,n){var r=nc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},rs(e))is(t,n);else if(null!==(n=Io(e,t,n,r))){rc(n,e,r,tc()),os(n,t,r)}}function ns(e,t,n){var r=nc(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(rs(e))is(t,i);else{var o=e.alternate;if(0===e.lanes&&(null===o||0===o.lanes)&&null!==(o=t.lastRenderedReducer))try{var a=t.lastRenderedState,s=o(a,n);if(i.hasEagerState=!0,i.eagerState=s,sr(s,a)){var u=t.interleaved;return null===u?(i.next=i,Co(t)):(i.next=u.next,u.next=i),void(t.interleaved=i)}}catch(c){}null!==(n=Io(e,t,i,r))&&(rc(n,e,r,i=tc()),os(n,t,r))}}function rs(e){var t=e.alternate;return e===ma||null!==t&&t===ma}function is(e,t){ba=ga=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function os(e,t,n){if(0!==(4194240&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,gt(e,n)}}var as={readContext:_o,useCallback:Aa,useContext:Aa,useEffect:Aa,useImperativeHandle:Aa,useInsertionEffect:Aa,useLayoutEffect:Aa,useMemo:Aa,useReducer:Aa,useRef:Aa,useState:Aa,useDebugValue:Aa,useDeferredValue:Aa,useTransition:Aa,useMutableSource:Aa,useSyncExternalStore:Aa,useId:Aa,unstable_isNewReconciler:!1},ss={readContext:_o,useCallback:function(e,t){return _a().memoizedState=[e,void 0===t?null:t],e},useContext:_o,useEffect:qa,useImperativeHandle:function(e,t,n){return n=null!==n&&void 0!==n?n.concat([e]):null,Ua(4194308,4,Wa.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Ua(4194308,4,e,t)},useInsertionEffect:function(e,t){return Ua(4,2,e,t)},useMemo:function(e,t){var n=_a();return t=void 0===t?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=_a();return t=void 0!==n?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=ts.bind(null,ma,e),[r.memoizedState,e]},useRef:function(e){return e={current:e},_a().memoizedState=e},useState:La,useDebugValue:Ja,useDeferredValue:function(e){return _a().memoizedState=e},useTransition:function(){var e=La(!1),t=e[0];return e=Qa.bind(null,e[1]),_a().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ma,i=_a();if(io){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===Ou)throw Error(o(349));0!==(30&ha)||Ma(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,qa(Na.bind(null,r,a,e),[e]),r.flags|=2048,za(9,Ba.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=_a(),t=Ou.identifierPrefix;if(io){var n=Yi;t=":"+t+"R"+(n=(Xi&~(1<<32-at(Xi)-1)).toString(32)+n),0<(n=wa++)&&(t+="H"+n.toString(32)),t+=":"}else t=":"+t+"r"+(n=xa++).toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},us={readContext:_o,useCallback:Xa,useContext:_o,useEffect:Ha,useImperativeHandle:Ka,useInsertionEffect:Va,useLayoutEffect:Ga,useMemo:Ya,useReducer:Ia,useRef:ja,useState:function(){return Ia(Ca)},useDebugValue:Ja,useDeferredValue:function(e){return $a(Sa(),ya.memoizedState,e)},useTransition:function(){return[Ia(Ca)[0],Sa().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1},cs={readContext:_o,useCallback:Xa,useContext:_o,useEffect:Ha,useImperativeHandle:Ka,useInsertionEffect:Va,useLayoutEffect:Ga,useMemo:Ya,useReducer:Oa,useRef:ja,useState:function(){return Oa(Ca)},useDebugValue:Ja,useDeferredValue:function(e){var t=Sa();return null===ya?t.memoizedState=e:$a(t,ya.memoizedState,e)},useTransition:function(){return[Oa(Ca)[0],Sa().memoizedState]},useMutableSource:Pa,useSyncExternalStore:Ra,useId:es,unstable_isNewReconciler:!1};function ls(e,t){try{var n="",r=t;do{n+=U(r),r=r.return}while(r);var i=n}catch(o){i="\nError generating stack: "+o.message+"\n"+o.stack}return{value:e,source:t,stack:i,digest:null}}function fs(e,t,n){return{value:e,source:null,stack:null!=n?n:null,digest:null!=t?t:null}}function ds(e,t){try{console.error(t.value)}catch(n){setTimeout((function(){throw n}))}}var ps="function"===typeof WeakMap?WeakMap:Map;function hs(e,t,n){(n=Bo(-1,n)).tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vu||(Vu=!0,Gu=r),ds(0,t)},n}function ms(e,t,n){(n=Bo(-1,n)).tag=3;var r=e.type.getDerivedStateFromError;if("function"===typeof r){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){ds(0,t)}}var o=e.stateNode;return null!==o&&"function"===typeof o.componentDidCatch&&(n.callback=function(){ds(0,t),"function"!==typeof r&&(null===Wu?Wu=new Set([this]):Wu.add(this));var e=t.stack;this.componentDidCatch(t.value,{componentStack:null!==e?e:""})}),n}function ys(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new ps;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=_c.bind(null,e,t,n),t.then(e,e))}function vs(e){do{var t;if((t=13===e.tag)&&(t=null===(t=e.memoizedState)||null!==t.dehydrated),t)return e;e=e.return}while(null!==e);return null}function gs(e,t,n,r,i){return 0===(1&e.mode)?(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,1===n.tag&&(null===n.alternate?n.tag=17:((t=Bo(-1,1)).tag=2,No(n,t,1))),n.lanes|=1),e):(e.flags|=65536,e.lanes=i,e)}var bs=w.ReactCurrentOwner,ws=!1;function xs(e,t,n,r){t.child=null===e?$o(t,null,n,r):Yo(t,e.child,n,r)}function As(e,t,n,r,i){n=n.render;var o=t.ref;return To(t,i),r=Ea(e,t,n,r,o,i),n=Ta(),null===e||ws?(io&&n&&eo(t),t.flags|=1,xs(e,t,r,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function ks(e,t,n,r,i){if(null===e){var o=n.type;return"function"!==typeof o||Mc(o)||void 0!==o.defaultProps||null!==n.compare||void 0!==n.defaultProps?((e=Nc(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=o,Es(e,t,o,r,i))}if(o=e.child,0===(e.lanes&i)){var a=o.memoizedProps;if((n=null!==(n=n.compare)?n:ur)(a,r)&&e.ref===t.ref)return Vs(e,t,i)}return t.flags|=1,(e=Bc(o,r)).ref=t.ref,e.return=t,t.child=e}function Es(e,t,n,r,i){if(null!==e){var o=e.memoizedProps;if(ur(o,r)&&e.ref===t.ref){if(ws=!1,t.pendingProps=r=o,0===(e.lanes&i))return t.lanes=e.lanes,Vs(e,t,i);0!==(131072&e.flags)&&(ws=!0)}}return Ss(e,t,n,r,i)}function Ts(e,t,n){var r=t.pendingProps,i=r.children,o=null!==e?e.memoizedState:null;if("hidden"===r.mode)if(0===(1&t.mode))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},_i(Bu,Mu),Mu|=n;else{if(0===(1073741824&n))return e=null!==o?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,_i(Bu,Mu),Mu|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=null!==o?o.baseLanes:n,_i(Bu,Mu),Mu|=r}else null!==o?(r=o.baseLanes|n,t.memoizedState=null):r=n,_i(Bu,Mu),Mu|=r;return xs(e,t,i,n),t.child}function _s(e,t){var n=t.ref;(null===e&&null!==n||null!==e&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Ss(e,t,n,r,i){var o=Ri(n)?Oi:Ci.current;return o=Pi(t,o),To(t,i),n=Ea(e,t,n,r,o,i),r=Ta(),null===e||ws?(io&&r&&eo(t),t.flags|=1,xs(e,t,n,i),t.child):(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Vs(e,t,i))}function Cs(e,t,n,r,i){if(Ri(n)){var o=!0;Fi(t)}else o=!1;if(To(t,i),null===t.stateNode)Hs(e,t),Ho(t,n,r),Go(t,n,r,i),r=!0;else if(null===e){var a=t.stateNode,s=t.memoizedProps;a.props=s;var u=a.context,c=n.contextType;"object"===typeof c&&null!==c?c=_o(c):c=Pi(t,c=Ri(n)?Oi:Ci.current);var l=n.getDerivedStateFromProps,f="function"===typeof l||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==r||u!==c)&&Vo(t,a,r,c),Po=!1;var d=t.memoizedState;a.state=d,Lo(t,r,a,i),u=t.memoizedState,s!==r||d!==u||Ii.current||Po?("function"===typeof l&&(Uo(t,n,l,r),u=t.memoizedState),(s=Po||qo(t,n,s,r,d,u,c))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=c,r=s):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Mo(e,t),s=t.memoizedProps,c=t.type===t.elementType?s:vo(t.type,s),a.props=c,f=t.pendingProps,d=a.context,"object"===typeof(u=n.contextType)&&null!==u?u=_o(u):u=Pi(t,u=Ri(n)?Oi:Ci.current);var p=n.getDerivedStateFromProps;(l="function"===typeof p||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s!==f||d!==u)&&Vo(t,a,r,u),Po=!1,d=t.memoizedState,a.state=d,Lo(t,r,a,i);var h=t.memoizedState;s!==f||d!==h||Ii.current||Po?("function"===typeof p&&(Uo(t,n,p,r),h=t.memoizedState),(c=Po||qo(t,n,c,r,d,h,u)||!1)?(l||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,h,u),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,h,u)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=h),a.props=r,a.state=h,a.context=u,r=c):("function"!==typeof a.componentDidUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||s===e.memoizedProps&&d===e.memoizedState||(t.flags|=1024),r=!1)}return Is(e,t,n,r,o,i)}function Is(e,t,n,r,i,o){_s(e,t);var a=0!==(128&t.flags);if(!r&&!a)return i&&Di(t,n,!1),Vs(e,t,o);r=t.stateNode,bs.current=t;var s=a&&"function"!==typeof n.getDerivedStateFromError?null:r.render();return t.flags|=1,null!==e&&a?(t.child=Yo(t,e.child,null,o),t.child=Yo(t,null,s,o)):xs(e,t,s,o),t.memoizedState=r.state,i&&Di(t,n,!0),t.child}function Os(e){var t=e.stateNode;t.pendingContext?Bi(0,t.pendingContext,t.pendingContext!==t.context):t.context&&Bi(0,t.context,!1),ia(e,t.containerInfo)}function Ps(e,t,n,r,i){return ho(),mo(i),t.flags|=256,xs(e,t,n,r),t.child}var Rs,Ms,Bs,Ns,Fs={dehydrated:null,treeContext:null,retryLane:0};function Ds(e){return{baseLanes:e,cachePool:null,transitions:null}}function Ls(e,t,n){var r,i=t.pendingProps,a=ua.current,s=!1,u=0!==(128&t.flags);if((r=u)||(r=(null===e||null!==e.memoizedState)&&0!==(2&a)),r?(s=!0,t.flags&=-129):null!==e&&null===e.memoizedState||(a|=1),_i(ua,1&a),null===e)return co(t),null!==(e=t.memoizedState)&&null!==(e=e.dehydrated)?(0===(1&t.mode)?t.lanes=1:"$!"===e.data?t.lanes=8:t.lanes=1073741824,null):(u=i.children,e=i.fallback,s?(i=t.mode,s=t.child,u={mode:"hidden",children:u},0===(1&i)&&null!==s?(s.childLanes=0,s.pendingProps=u):s=Dc(u,i,0,null),e=Fc(e,i,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=Ds(n),t.memoizedState=Fs,e):zs(t,u));if(null!==(a=e.memoizedState)&&null!==(r=a.dehydrated))return function(e,t,n,r,i,a,s){if(n)return 256&t.flags?(t.flags&=-257,js(e,t,s,r=fs(Error(o(422))))):null!==t.memoizedState?(t.child=e.child,t.flags|=128,null):(a=r.fallback,i=t.mode,r=Dc({mode:"visible",children:r.children},i,0,null),(a=Fc(a,i,s,null)).flags|=2,r.return=t,a.return=t,r.sibling=a,t.child=r,0!==(1&t.mode)&&Yo(t,e.child,null,s),t.child.memoizedState=Ds(s),t.memoizedState=Fs,a);if(0===(1&t.mode))return js(e,t,s,null);if("$!"===i.data){if(r=i.nextSibling&&i.nextSibling.dataset)var u=r.dgst;return r=u,js(e,t,s,r=fs(a=Error(o(419)),r,void 0))}if(u=0!==(s&e.childLanes),ws||u){if(null!==(r=Ou)){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}0!==(i=0!==(i&(r.suspendedLanes|s))?0:i)&&i!==a.retryLane&&(a.retryLane=i,Oo(e,i),rc(r,e,i,-1))}return yc(),js(e,t,s,r=fs(Error(o(421))))}return"$?"===i.data?(t.flags|=128,t.child=e.child,t=Cc.bind(null,e),i._reactRetry=t,null):(e=a.treeContext,ro=ci(i.nextSibling),no=t,io=!0,oo=null,null!==e&&(Wi[Ki++]=Xi,Wi[Ki++]=Yi,Wi[Ki++]=Ji,Xi=e.id,Yi=e.overflow,Ji=t),t=zs(t,r.children),t.flags|=4096,t)}(e,t,u,i,r,a,n);if(s){s=i.fallback,u=t.mode,r=(a=e.child).sibling;var c={mode:"hidden",children:i.children};return 0===(1&u)&&t.child!==a?((i=t.child).childLanes=0,i.pendingProps=c,t.deletions=null):(i=Bc(a,c)).subtreeFlags=14680064&a.subtreeFlags,null!==r?s=Bc(r,s):(s=Fc(s,u,n,null)).flags|=2,s.return=t,i.return=t,i.sibling=s,t.child=i,i=s,s=t.child,u=null===(u=e.child.memoizedState)?Ds(n):{baseLanes:u.baseLanes|n,cachePool:null,transitions:u.transitions},s.memoizedState=u,s.childLanes=e.childLanes&~n,t.memoizedState=Fs,i}return e=(s=e.child).sibling,i=Bc(s,{mode:"visible",children:i.children}),0===(1&t.mode)&&(i.lanes=n),i.return=t,i.sibling=null,null!==e&&(null===(n=t.deletions)?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=i,t.memoizedState=null,i}function zs(e,t){return(t=Dc({mode:"visible",children:t},e.mode,0,null)).return=e,e.child=t}function js(e,t,n,r){return null!==r&&mo(r),Yo(t,e.child,null,n),(e=zs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function Us(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Eo(e.return,t,n)}function Zs(e,t,n,r,i){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function qs(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(xs(e,t,r.children,n),0!==(2&(r=ua.current)))r=1&r|2,t.flags|=128;else{if(null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&Us(e,n,t);else if(19===e.tag)Us(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(_i(ua,r),0===(1&t.mode))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===ca(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Zs(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===ca(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Zs(t,!0,n,null,o);break;case"together":Zs(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Hs(e,t){0===(1&t.mode)&&null!==e&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Vs(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Du|=t.lanes,0===(n&t.childLanes))return null;if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Bc(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Bc(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function Gs(e,t){if(!io)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ws(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=14680064&i.subtreeFlags,r|=14680064&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Ks(e,t,n){var r=t.pendingProps;switch(to(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ws(t),null;case 1:case 17:return Ri(t.type)&&Mi(),Ws(t),null;case 3:return r=t.stateNode,oa(),Ti(Ii),Ti(Ci),fa(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||(fo(t)?t.flags|=4:null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,null!==oo&&(sc(oo),oo=null))),Ms(e,t),Ws(t),null;case 5:sa(t);var i=ra(na.current);if(n=t.type,null!==e&&null!=t.stateNode)Bs(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(null===t.stateNode)throw Error(o(166));return Ws(t),null}if(e=ra(ea.current),fo(t)){r=t.stateNode,n=t.type;var a=t.memoizedProps;switch(r[di]=t,r[pi]=a,e=0!==(1&t.mode),n){case"dialog":zr("cancel",r),zr("close",r);break;case"iframe":case"object":case"embed":zr("load",r);break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],r);break;case"source":zr("error",r);break;case"img":case"image":case"link":zr("error",r),zr("load",r);break;case"details":zr("toggle",r);break;case"input":X(r,a),zr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!a.multiple},zr("invalid",r);break;case"textarea":ie(r,a),zr("invalid",r)}for(var u in ge(n,a),i=null,a)if(a.hasOwnProperty(u)){var c=a[u];"children"===u?"string"===typeof c?r.textContent!==c&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,c,e),i=["children",c]):"number"===typeof c&&r.textContent!==""+c&&(!0!==a.suppressHydrationWarning&&$r(r.textContent,c,e),i=["children",""+c]):s.hasOwnProperty(u)&&null!=c&&"onScroll"===u&&zr("scroll",r)}switch(n){case"input":G(r),Q(r,a,!0);break;case"textarea":G(r),ae(r);break;case"select":case"option":break;default:"function"===typeof a.onClick&&(r.onclick=Qr)}r=i,t.updateQueue=r,null!==r&&(t.flags|=4)}else{u=9===i.nodeType?i:i.ownerDocument,"http://www.w3.org/1999/xhtml"===e&&(e=se(n)),"http://www.w3.org/1999/xhtml"===e?"script"===n?((e=u.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof r.is?e=u.createElement(n,{is:r.is}):(e=u.createElement(n),"select"===n&&(u=e,r.multiple?u.multiple=!0:r.size&&(u.size=r.size))):e=u.createElementNS(e,n),e[di]=t,e[pi]=r,Rs(e,t,!1,!1),t.stateNode=e;e:{switch(u=be(n,r),n){case"dialog":zr("cancel",e),zr("close",e),i=r;break;case"iframe":case"object":case"embed":zr("load",e),i=r;break;case"video":case"audio":for(i=0;i<Nr.length;i++)zr(Nr[i],e);i=r;break;case"source":zr("error",e),i=r;break;case"img":case"image":case"link":zr("error",e),zr("load",e),i=r;break;case"details":zr("toggle",e),i=r;break;case"input":X(e,r),i=J(e,r),zr("invalid",e);break;case"option":default:i=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},i=D({},r,{value:void 0}),zr("invalid",e);break;case"textarea":ie(e,r),i=re(e,r),zr("invalid",e)}for(a in ge(n,i),c=i)if(c.hasOwnProperty(a)){var l=c[a];"style"===a?ye(e,l):"dangerouslySetInnerHTML"===a?null!=(l=l?l.__html:void 0)&&fe(e,l):"children"===a?"string"===typeof l?("textarea"!==n||""!==l)&&de(e,l):"number"===typeof l&&de(e,""+l):"suppressContentEditableWarning"!==a&&"suppressHydrationWarning"!==a&&"autoFocus"!==a&&(s.hasOwnProperty(a)?null!=l&&"onScroll"===a&&zr("scroll",e):null!=l&&b(e,a,l,u))}switch(n){case"input":G(e),Q(e,r,!1);break;case"textarea":G(e),ae(e);break;case"option":null!=r.value&&e.setAttribute("value",""+H(r.value));break;case"select":e.multiple=!!r.multiple,null!=(a=r.value)?ne(e,!!r.multiple,a,!1):null!=r.defaultValue&&ne(e,!!r.multiple,r.defaultValue,!0);break;default:"function"===typeof i.onClick&&(e.onclick=Qr)}switch(n){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}}r&&(t.flags|=4)}null!==t.ref&&(t.flags|=512,t.flags|=2097152)}return Ws(t),null;case 6:if(e&&null!=t.stateNode)Ns(e,t,e.memoizedProps,r);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(n=ra(na.current),ra(ea.current),fo(t)){if(r=t.stateNode,n=t.memoizedProps,r[di]=t,(a=r.nodeValue!==n)&&null!==(e=no))switch(e.tag){case 3:$r(r.nodeValue,n,0!==(1&e.mode));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&$r(r.nodeValue,n,0!==(1&e.mode))}a&&(t.flags|=4)}else(r=(9===n.nodeType?n:n.ownerDocument).createTextNode(r))[di]=t,t.stateNode=r}return Ws(t),null;case 13:if(Ti(ua),r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(io&&null!==ro&&0!==(1&t.mode)&&0===(128&t.flags))po(),ho(),t.flags|=98560,a=!1;else if(a=fo(t),null!==r&&null!==r.dehydrated){if(null===e){if(!a)throw Error(o(318));if(!(a=null!==(a=t.memoizedState)?a.dehydrated:null))throw Error(o(317));a[di]=t}else ho(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;Ws(t),a=!1}else null!==oo&&(sc(oo),oo=null),a=!0;if(!a)return 65536&t.flags?t:null}return 0!==(128&t.flags)?(t.lanes=n,t):((r=null!==r)!==(null!==e&&null!==e.memoizedState)&&r&&(t.child.flags|=8192,0!==(1&t.mode)&&(null===e||0!==(1&ua.current)?0===Nu&&(Nu=3):yc())),null!==t.updateQueue&&(t.flags|=4),Ws(t),null);case 4:return oa(),Ms(e,t),null===e&&Zr(t.stateNode.containerInfo),Ws(t),null;case 10:return ko(t.type._context),Ws(t),null;case 19:if(Ti(ua),null===(a=t.memoizedState))return Ws(t),null;if(r=0!==(128&t.flags),null===(u=a.rendering))if(r)Gs(a,!1);else{if(0!==Nu||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(u=ca(e))){for(t.flags|=128,Gs(a,!1),null!==(r=u.updateQueue)&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;null!==n;)e=r,(a=n).flags&=14680066,null===(u=a.alternate)?(a.childLanes=0,a.lanes=e,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=u.childLanes,a.lanes=u.lanes,a.child=u.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=u.memoizedProps,a.memoizedState=u.memoizedState,a.updateQueue=u.updateQueue,a.type=u.type,e=u.dependencies,a.dependencies=null===e?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return _i(ua,1&ua.current|2),t.child}e=e.sibling}null!==a.tail&&Ye()>qu&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304)}else{if(!r)if(null!==(e=ca(u))){if(t.flags|=128,r=!0,null!==(n=e.updateQueue)&&(t.updateQueue=n,t.flags|=4),Gs(a,!0),null===a.tail&&"hidden"===a.tailMode&&!u.alternate&&!io)return Ws(t),null}else 2*Ye()-a.renderingStartTime>qu&&1073741824!==n&&(t.flags|=128,r=!0,Gs(a,!1),t.lanes=4194304);a.isBackwards?(u.sibling=t.child,t.child=u):(null!==(n=a.last)?n.sibling=u:t.child=u,a.last=u)}return null!==a.tail?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Ye(),t.sibling=null,n=ua.current,_i(ua,r?1&n|2:1&n),t):(Ws(t),null);case 22:case 23:return dc(),r=null!==t.memoizedState,null!==e&&null!==e.memoizedState!==r&&(t.flags|=8192),r&&0!==(1&t.mode)?0!==(1073741824&Mu)&&(Ws(t),6&t.subtreeFlags&&(t.flags|=8192)):Ws(t),null;case 24:case 25:return null}throw Error(o(156,t.tag))}function Js(e,t){switch(to(t),t.tag){case 1:return Ri(t.type)&&Mi(),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return oa(),Ti(Ii),Ti(Ci),fa(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 5:return sa(t),null;case 13:if(Ti(ua),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));ho()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return Ti(ua),null;case 4:return oa(),null;case 10:return ko(t.type._context),null;case 22:case 23:return dc(),null;default:return null}}Rs=function(e,t){for(var n=t.child;null!==n;){if(5===n.tag||6===n.tag)e.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===t)break;for(;null===n.sibling;){if(null===n.return||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},Ms=function(){},Bs=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,ra(ea.current);var o,a=null;switch(n){case"input":i=J(e,i),r=J(e,r),a=[];break;case"select":i=D({},i,{value:void 0}),r=D({},r,{value:void 0}),a=[];break;case"textarea":i=re(e,i),r=re(e,r),a=[];break;default:"function"!==typeof i.onClick&&"function"===typeof r.onClick&&(e.onclick=Qr)}for(l in ge(n,r),n=null,i)if(!r.hasOwnProperty(l)&&i.hasOwnProperty(l)&&null!=i[l])if("style"===l){var u=i[l];for(o in u)u.hasOwnProperty(o)&&(n||(n={}),n[o]="")}else"dangerouslySetInnerHTML"!==l&&"children"!==l&&"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&"autoFocus"!==l&&(s.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in r){var c=r[l];if(u=null!=i?i[l]:void 0,r.hasOwnProperty(l)&&c!==u&&(null!=c||null!=u))if("style"===l)if(u){for(o in u)!u.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(n||(n={}),n[o]="");for(o in c)c.hasOwnProperty(o)&&u[o]!==c[o]&&(n||(n={}),n[o]=c[o])}else n||(a||(a=[]),a.push(l,n)),n=c;else"dangerouslySetInnerHTML"===l?(c=c?c.__html:void 0,u=u?u.__html:void 0,null!=c&&u!==c&&(a=a||[]).push(l,c)):"children"===l?"string"!==typeof c&&"number"!==typeof c||(a=a||[]).push(l,""+c):"suppressContentEditableWarning"!==l&&"suppressHydrationWarning"!==l&&(s.hasOwnProperty(l)?(null!=c&&"onScroll"===l&&zr("scroll",e),a||u===c||(a=[])):(a=a||[]).push(l,c))}n&&(a=a||[]).push("style",n);var l=a;(t.updateQueue=l)&&(t.flags|=4)}},Ns=function(e,t,n,r){n!==r&&(t.flags|=4)};var Xs=!1,Ys=!1,$s="function"===typeof WeakSet?WeakSet:Set,Qs=null;function eu(e,t){var n=e.ref;if(null!==n)if("function"===typeof n)try{n(null)}catch(r){Tc(e,t,r)}else n.current=null}function tu(e,t,n){try{n()}catch(r){Tc(e,t,r)}}var nu=!1;function ru(e,t,n){var r=t.updateQueue;if(null!==(r=null!==r?r.lastEffect:null)){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,void 0!==o&&tu(t,n,o)}i=i.next}while(i!==r)}}function iu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function ou(e){var t=e.ref;if(null!==t){var n=e.stateNode;e.tag,e=n,"function"===typeof t?t(e):t.current=e}}function au(e){var t=e.alternate;null!==t&&(e.alternate=null,au(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&(delete t[di],delete t[pi],delete t[mi],delete t[yi],delete t[vi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function uu(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||su(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function cu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?8===n.nodeType?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(8===n.nodeType?(t=n.parentNode).insertBefore(e,n):(t=n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=Qr));else if(4!==r&&null!==(e=e.child))for(cu(e,t,n),e=e.sibling;null!==e;)cu(e,t,n),e=e.sibling}function lu(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&null!==(e=e.child))for(lu(e,t,n),e=e.sibling;null!==e;)lu(e,t,n),e=e.sibling}var fu=null,du=!1;function pu(e,t,n){for(n=n.child;null!==n;)hu(e,t,n),n=n.sibling}function hu(e,t,n){if(ot&&"function"===typeof ot.onCommitFiberUnmount)try{ot.onCommitFiberUnmount(it,n)}catch(s){}switch(n.tag){case 5:Ys||eu(n,t);case 6:var r=fu,i=du;fu=null,pu(e,t,n),du=i,null!==(fu=r)&&(du?(e=fu,n=n.stateNode,8===e.nodeType?e.parentNode.removeChild(n):e.removeChild(n)):fu.removeChild(n.stateNode));break;case 18:null!==fu&&(du?(e=fu,n=n.stateNode,8===e.nodeType?ui(e.parentNode,n):1===e.nodeType&&ui(e,n),Zt(e)):ui(fu,n.stateNode));break;case 4:r=fu,i=du,fu=n.stateNode.containerInfo,du=!0,pu(e,t,n),fu=r,du=i;break;case 0:case 11:case 14:case 15:if(!Ys&&(null!==(r=n.updateQueue)&&null!==(r=r.lastEffect))){i=r=r.next;do{var o=i,a=o.destroy;o=o.tag,void 0!==a&&(0!==(2&o)||0!==(4&o))&&tu(n,t,a),i=i.next}while(i!==r)}pu(e,t,n);break;case 1:if(!Ys&&(eu(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Tc(n,t,s)}pu(e,t,n);break;case 21:pu(e,t,n);break;case 22:1&n.mode?(Ys=(r=Ys)||null!==n.memoizedState,pu(e,t,n),Ys=r):pu(e,t,n);break;default:pu(e,t,n)}}function mu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var n=e.stateNode;null===n&&(n=e.stateNode=new $s),t.forEach((function(t){var r=Ic.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))}))}}function yu(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r];try{var a=e,s=t,u=s;e:for(;null!==u;){switch(u.tag){case 5:fu=u.stateNode,du=!1;break e;case 3:case 4:fu=u.stateNode.containerInfo,du=!0;break e}u=u.return}if(null===fu)throw Error(o(160));hu(a,s,i),fu=null,du=!1;var c=i.alternate;null!==c&&(c.return=null),i.return=null}catch(l){Tc(i,t,l)}}if(12854&t.subtreeFlags)for(t=t.child;null!==t;)vu(t,e),t=t.sibling}function vu(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(yu(t,e),gu(e),4&r){try{ru(3,e,e.return),iu(3,e)}catch(y){Tc(e,e.return,y)}try{ru(5,e,e.return)}catch(y){Tc(e,e.return,y)}}break;case 1:yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return);break;case 5:if(yu(t,e),gu(e),512&r&&null!==n&&eu(n,n.return),32&e.flags){var i=e.stateNode;try{de(i,"")}catch(y){Tc(e,e.return,y)}}if(4&r&&null!=(i=e.stateNode)){var a=e.memoizedProps,s=null!==n?n.memoizedProps:a,u=e.type,c=e.updateQueue;if(e.updateQueue=null,null!==c)try{"input"===u&&"radio"===a.type&&null!=a.name&&Y(i,a),be(u,s);var l=be(u,a);for(s=0;s<c.length;s+=2){var f=c[s],d=c[s+1];"style"===f?ye(i,d):"dangerouslySetInnerHTML"===f?fe(i,d):"children"===f?de(i,d):b(i,f,d,l)}switch(u){case"input":$(i,a);break;case"textarea":oe(i,a);break;case"select":var p=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!a.multiple;var h=a.value;null!=h?ne(i,!!a.multiple,h,!1):p!==!!a.multiple&&(null!=a.defaultValue?ne(i,!!a.multiple,a.defaultValue,!0):ne(i,!!a.multiple,a.multiple?[]:"",!1))}i[pi]=a}catch(y){Tc(e,e.return,y)}}break;case 6:if(yu(t,e),gu(e),4&r){if(null===e.stateNode)throw Error(o(162));i=e.stateNode,a=e.memoizedProps;try{i.nodeValue=a}catch(y){Tc(e,e.return,y)}}break;case 3:if(yu(t,e),gu(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Zt(t.containerInfo)}catch(y){Tc(e,e.return,y)}break;case 4:default:yu(t,e),gu(e);break;case 13:yu(t,e),gu(e),8192&(i=e.child).flags&&(a=null!==i.memoizedState,i.stateNode.isHidden=a,!a||null!==i.alternate&&null!==i.alternate.memoizedState||(Zu=Ye())),4&r&&mu(e);break;case 22:if(f=null!==n&&null!==n.memoizedState,1&e.mode?(Ys=(l=Ys)||f,yu(t,e),Ys=l):yu(t,e),gu(e),8192&r){if(l=null!==e.memoizedState,(e.stateNode.isHidden=l)&&!f&&0!==(1&e.mode))for(Qs=e,f=e.child;null!==f;){for(d=Qs=f;null!==Qs;){switch(h=(p=Qs).child,p.tag){case 0:case 11:case 14:case 15:ru(4,p,p.return);break;case 1:eu(p,p.return);var m=p.stateNode;if("function"===typeof m.componentWillUnmount){r=p,n=p.return;try{t=r,m.props=t.memoizedProps,m.state=t.memoizedState,m.componentWillUnmount()}catch(y){Tc(r,n,y)}}break;case 5:eu(p,p.return);break;case 22:if(null!==p.memoizedState){Au(d);continue}}null!==h?(h.return=p,Qs=h):Au(d)}f=f.sibling}e:for(f=null,d=e;;){if(5===d.tag){if(null===f){f=d;try{i=d.stateNode,l?"function"===typeof(a=i.style).setProperty?a.setProperty("display","none","important"):a.display="none":(u=d.stateNode,s=void 0!==(c=d.memoizedProps.style)&&null!==c&&c.hasOwnProperty("display")?c.display:null,u.style.display=me("display",s))}catch(y){Tc(e,e.return,y)}}}else if(6===d.tag){if(null===f)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){Tc(e,e.return,y)}}else if((22!==d.tag&&23!==d.tag||null===d.memoizedState||d===e)&&null!==d.child){d.child.return=d,d=d.child;continue}if(d===e)break e;for(;null===d.sibling;){if(null===d.return||d.return===e)break e;f===d&&(f=null),d=d.return}f===d&&(f=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:yu(t,e),gu(e),4&r&&mu(e);case 21:}}function gu(e){var t=e.flags;if(2&t){try{e:{for(var n=e.return;null!==n;){if(su(n)){var r=n;break e}n=n.return}throw Error(o(160))}switch(r.tag){case 5:var i=r.stateNode;32&r.flags&&(de(i,""),r.flags&=-33),lu(e,uu(e),i);break;case 3:case 4:var a=r.stateNode.containerInfo;cu(e,uu(e),a);break;default:throw Error(o(161))}}catch(s){Tc(e,e.return,s)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function bu(e,t,n){Qs=e,wu(e,t,n)}function wu(e,t,n){for(var r=0!==(1&e.mode);null!==Qs;){var i=Qs,o=i.child;if(22===i.tag&&r){var a=null!==i.memoizedState||Xs;if(!a){var s=i.alternate,u=null!==s&&null!==s.memoizedState||Ys;s=Xs;var c=Ys;if(Xs=a,(Ys=u)&&!c)for(Qs=i;null!==Qs;)u=(a=Qs).child,22===a.tag&&null!==a.memoizedState?ku(i):null!==u?(u.return=a,Qs=u):ku(i);for(;null!==o;)Qs=o,wu(o,t,n),o=o.sibling;Qs=i,Xs=s,Ys=c}xu(e)}else 0!==(8772&i.subtreeFlags)&&null!==o?(o.return=i,Qs=o):xu(e)}}function xu(e){for(;null!==Qs;){var t=Qs;if(0!==(8772&t.flags)){var n=t.alternate;try{if(0!==(8772&t.flags))switch(t.tag){case 0:case 11:case 15:Ys||iu(5,t);break;case 1:var r=t.stateNode;if(4&t.flags&&!Ys)if(null===n)r.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:vo(t.type,n.memoizedProps);r.componentDidUpdate(i,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var a=t.updateQueue;null!==a&&zo(t,a,r);break;case 3:var s=t.updateQueue;if(null!==s){if(n=null,null!==t.child)switch(t.child.tag){case 5:case 1:n=t.child.stateNode}zo(t,s,n)}break;case 5:var u=t.stateNode;if(null===n&&4&t.flags){n=u;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:case 4:case 12:case 19:case 17:case 21:case 22:case 23:case 25:break;case 13:if(null===t.memoizedState){var l=t.alternate;if(null!==l){var f=l.memoizedState;if(null!==f){var d=f.dehydrated;null!==d&&Zt(d)}}}break;default:throw Error(o(163))}Ys||512&t.flags&&ou(t)}catch(p){Tc(t,t.return,p)}}if(t===e){Qs=null;break}if(null!==(n=t.sibling)){n.return=t.return,Qs=n;break}Qs=t.return}}function Au(e){for(;null!==Qs;){var t=Qs;if(t===e){Qs=null;break}var n=t.sibling;if(null!==n){n.return=t.return,Qs=n;break}Qs=t.return}}function ku(e){for(;null!==Qs;){var t=Qs;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{iu(4,t)}catch(u){Tc(t,n,u)}break;case 1:var r=t.stateNode;if("function"===typeof r.componentDidMount){var i=t.return;try{r.componentDidMount()}catch(u){Tc(t,i,u)}}var o=t.return;try{ou(t)}catch(u){Tc(t,o,u)}break;case 5:var a=t.return;try{ou(t)}catch(u){Tc(t,a,u)}}}catch(u){Tc(t,t.return,u)}if(t===e){Qs=null;break}var s=t.sibling;if(null!==s){s.return=t.return,Qs=s;break}Qs=t.return}}var Eu,Tu=Math.ceil,_u=w.ReactCurrentDispatcher,Su=w.ReactCurrentOwner,Cu=w.ReactCurrentBatchConfig,Iu=0,Ou=null,Pu=null,Ru=0,Mu=0,Bu=Ei(0),Nu=0,Fu=null,Du=0,Lu=0,zu=0,ju=null,Uu=null,Zu=0,qu=1/0,Hu=null,Vu=!1,Gu=null,Wu=null,Ku=!1,Ju=null,Xu=0,Yu=0,$u=null,Qu=-1,ec=0;function tc(){return 0!==(6&Iu)?Ye():-1!==Qu?Qu:Qu=Ye()}function nc(e){return 0===(1&e.mode)?1:0!==(2&Iu)&&0!==Ru?Ru&-Ru:null!==yo.transition?(0===ec&&(ec=mt()),ec):0!==(e=bt)?e:e=void 0===(e=window.event)?16:Xt(e.type)}function rc(e,t,n,r){if(50<Yu)throw Yu=0,$u=null,Error(o(185));vt(e,n,r),0!==(2&Iu)&&e===Ou||(e===Ou&&(0===(2&Iu)&&(Lu|=n),4===Nu&&uc(e,Ru)),ic(e,r),1===n&&0===Iu&&0===(1&t.mode)&&(qu=Ye()+500,zi&&Zi()))}function ic(e,t){var n=e.callbackNode;!function(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var a=31-at(o),s=1<<a,u=i[a];-1===u?0!==(s&n)&&0===(s&r)||(i[a]=pt(s,t)):u<=t&&(e.expiredLanes|=s),o&=~s}}(e,t);var r=dt(e,e===Ou?Ru:0);if(0===r)null!==n&&Ke(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(null!=n&&Ke(n),1===t)0===e.tag?function(e){zi=!0,Ui(e)}(cc.bind(null,e)):Ui(cc.bind(null,e)),ai((function(){0===(6&Iu)&&Zi()})),n=null;else{switch(wt(r)){case 1:n=Qe;break;case 4:n=et;break;case 16:default:n=tt;break;case 536870912:n=rt}n=Oc(n,oc.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function oc(e,t){if(Qu=-1,ec=0,0!==(6&Iu))throw Error(o(327));var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=dt(e,e===Ou?Ru:0);if(0===r)return null;if(0!==(30&r)||0!==(r&e.expiredLanes)||t)t=vc(e,r);else{t=r;var i=Iu;Iu|=2;var a=mc();for(Ou===e&&Ru===t||(Hu=null,qu=Ye()+500,pc(e,t));;)try{bc();break}catch(u){hc(e,u)}Ao(),_u.current=a,Iu=i,null!==Pu?t=0:(Ou=null,Ru=0,t=Nu)}if(0!==t){if(2===t&&(0!==(i=ht(e))&&(r=i,t=ac(e,i))),1===t)throw n=Fu,pc(e,0),uc(e,r),ic(e,Ye()),n;if(6===t)uc(e,r);else{if(i=e.current.alternate,0===(30&r)&&!function(e){for(var t=e;;){if(16384&t.flags){var n=t.updateQueue;if(null!==n&&null!==(n=n.stores))for(var r=0;r<n.length;r++){var i=n[r],o=i.getSnapshot;i=i.value;try{if(!sr(o(),i))return!1}catch(s){return!1}}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}(i)&&(2===(t=vc(e,r))&&(0!==(a=ht(e))&&(r=a,t=ac(e,a))),1===t))throw n=Fu,pc(e,0),uc(e,r),ic(e,Ye()),n;switch(e.finishedWork=i,e.finishedLanes=r,t){case 0:case 1:throw Error(o(345));case 2:case 5:Ac(e,Uu,Hu);break;case 3:if(uc(e,r),(130023424&r)===r&&10<(t=Zu+500-Ye())){if(0!==dt(e,0))break;if(((i=e.suspendedLanes)&r)!==r){tc(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=ri(Ac.bind(null,e,Uu,Hu),t);break}Ac(e,Uu,Hu);break;case 4:if(uc(e,r),(4194240&r)===r)break;for(t=e.eventTimes,i=-1;0<r;){var s=31-at(r);a=1<<s,(s=t[s])>i&&(i=s),r&=~a}if(r=i,10<(r=(120>(r=Ye()-r)?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tu(r/1960))-r)){e.timeoutHandle=ri(Ac.bind(null,e,Uu,Hu),r);break}Ac(e,Uu,Hu);break;default:throw Error(o(329))}}}return ic(e,Ye()),e.callbackNode===n?oc.bind(null,e):null}function ac(e,t){var n=ju;return e.current.memoizedState.isDehydrated&&(pc(e,t).flags|=256),2!==(e=vc(e,t))&&(t=Uu,Uu=n,null!==t&&sc(t)),e}function sc(e){null===Uu?Uu=e:Uu.push.apply(Uu,e)}function uc(e,t){for(t&=~zu,t&=~Lu,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-at(t),r=1<<n;e[n]=-1,t&=~r}}function cc(e){if(0!==(6&Iu))throw Error(o(327));kc();var t=dt(e,0);if(0===(1&t))return ic(e,Ye()),null;var n=vc(e,t);if(0!==e.tag&&2===n){var r=ht(e);0!==r&&(t=r,n=ac(e,r))}if(1===n)throw n=Fu,pc(e,0),uc(e,t),ic(e,Ye()),n;if(6===n)throw Error(o(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Ac(e,Uu,Hu),ic(e,Ye()),null}function lc(e,t){var n=Iu;Iu|=1;try{return e(t)}finally{0===(Iu=n)&&(qu=Ye()+500,zi&&Zi())}}function fc(e){null!==Ju&&0===Ju.tag&&0===(6&Iu)&&kc();var t=Iu;Iu|=1;var n=Cu.transition,r=bt;try{if(Cu.transition=null,bt=1,e)return e()}finally{bt=r,Cu.transition=n,0===(6&(Iu=t))&&Zi()}}function dc(){Mu=Bu.current,Ti(Bu)}function pc(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(-1!==n&&(e.timeoutHandle=-1,ii(n)),null!==Pu)for(n=Pu.return;null!==n;){var r=n;switch(to(r),r.tag){case 1:null!==(r=r.type.childContextTypes)&&void 0!==r&&Mi();break;case 3:oa(),Ti(Ii),Ti(Ci),fa();break;case 5:sa(r);break;case 4:oa();break;case 13:case 19:Ti(ua);break;case 10:ko(r.type._context);break;case 22:case 23:dc()}n=n.return}if(Ou=e,Pu=e=Bc(e.current,null),Ru=Mu=t,Nu=0,Fu=null,zu=Lu=Du=0,Uu=ju=null,null!==So){for(t=0;t<So.length;t++)if(null!==(r=(n=So[t]).interleaved)){n.interleaved=null;var i=r.next,o=n.pending;if(null!==o){var a=o.next;o.next=i,r.next=a}n.pending=r}So=null}return e}function hc(e,t){for(;;){var n=Pu;try{if(Ao(),da.current=as,ga){for(var r=ma.memoizedState;null!==r;){var i=r.queue;null!==i&&(i.pending=null),r=r.next}ga=!1}if(ha=0,va=ya=ma=null,ba=!1,wa=0,Su.current=null,null===n||null===n.return){Nu=1,Fu=t,Pu=null;break}e:{var a=e,s=n.return,u=n,c=t;if(t=Ru,u.flags|=32768,null!==c&&"object"===typeof c&&"function"===typeof c.then){var l=c,f=u,d=f.tag;if(0===(1&f.mode)&&(0===d||11===d||15===d)){var p=f.alternate;p?(f.updateQueue=p.updateQueue,f.memoizedState=p.memoizedState,f.lanes=p.lanes):(f.updateQueue=null,f.memoizedState=null)}var h=vs(s);if(null!==h){h.flags&=-257,gs(h,s,u,0,t),1&h.mode&&ys(a,l,t),c=l;var m=(t=h).updateQueue;if(null===m){var y=new Set;y.add(c),t.updateQueue=y}else m.add(c);break e}if(0===(1&t)){ys(a,l,t),yc();break e}c=Error(o(426))}else if(io&&1&u.mode){var v=vs(s);if(null!==v){0===(65536&v.flags)&&(v.flags|=256),gs(v,s,u,0,t),mo(ls(c,u));break e}}a=c=ls(c,u),4!==Nu&&(Nu=2),null===ju?ju=[a]:ju.push(a),a=s;do{switch(a.tag){case 3:a.flags|=65536,t&=-t,a.lanes|=t,Do(a,hs(0,c,t));break e;case 1:u=c;var g=a.type,b=a.stateNode;if(0===(128&a.flags)&&("function"===typeof g.getDerivedStateFromError||null!==b&&"function"===typeof b.componentDidCatch&&(null===Wu||!Wu.has(b)))){a.flags|=65536,t&=-t,a.lanes|=t,Do(a,ms(a,u,t));break e}}a=a.return}while(null!==a)}xc(n)}catch(w){t=w,Pu===n&&null!==n&&(Pu=n=n.return);continue}break}}function mc(){var e=_u.current;return _u.current=as,null===e?as:e}function yc(){0!==Nu&&3!==Nu&&2!==Nu||(Nu=4),null===Ou||0===(268435455&Du)&&0===(268435455&Lu)||uc(Ou,Ru)}function vc(e,t){var n=Iu;Iu|=2;var r=mc();for(Ou===e&&Ru===t||(Hu=null,pc(e,t));;)try{gc();break}catch(i){hc(e,i)}if(Ao(),Iu=n,_u.current=r,null!==Pu)throw Error(o(261));return Ou=null,Ru=0,Nu}function gc(){for(;null!==Pu;)wc(Pu)}function bc(){for(;null!==Pu&&!Je();)wc(Pu)}function wc(e){var t=Eu(e.alternate,e,Mu);e.memoizedProps=e.pendingProps,null===t?xc(e):Pu=t,Su.current=null}function xc(e){var t=e;do{var n=t.alternate;if(e=t.return,0===(32768&t.flags)){if(null!==(n=Ks(n,t,Mu)))return void(Pu=n)}else{if(null!==(n=Js(n,t)))return n.flags&=32767,void(Pu=n);if(null===e)return Nu=6,void(Pu=null);e.flags|=32768,e.subtreeFlags=0,e.deletions=null}if(null!==(t=t.sibling))return void(Pu=t);Pu=t=e}while(null!==t);0===Nu&&(Nu=5)}function Ac(e,t,n){var r=bt,i=Cu.transition;try{Cu.transition=null,bt=1,function(e,t,n,r){do{kc()}while(null!==Ju);if(0!==(6&Iu))throw Error(o(327));n=e.finishedWork;var i=e.finishedLanes;if(null===n)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(o(177));e.callbackNode=null,e.callbackPriority=0;var a=n.lanes|n.childLanes;if(function(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-at(n),o=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~o}}(e,a),e===Ou&&(Pu=Ou=null,Ru=0),0===(2064&n.subtreeFlags)&&0===(2064&n.flags)||Ku||(Ku=!0,Oc(tt,(function(){return kc(),null}))),a=0!==(15990&n.flags),0!==(15990&n.subtreeFlags)||a){a=Cu.transition,Cu.transition=null;var s=bt;bt=1;var u=Iu;Iu|=4,Su.current=null,function(e,t){if(ei=Ht,pr(e=dr())){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(x){n=null;break e}var s=0,u=-1,c=-1,l=0,f=0,d=e,p=null;t:for(;;){for(var h;d!==n||0!==i&&3!==d.nodeType||(u=s+i),d!==a||0!==r&&3!==d.nodeType||(c=s+r),3===d.nodeType&&(s+=d.nodeValue.length),null!==(h=d.firstChild);)p=d,d=h;for(;;){if(d===e)break t;if(p===n&&++l===i&&(u=s),p===a&&++f===r&&(c=s),null!==(h=d.nextSibling))break;p=(d=p).parentNode}d=h}n=-1===u||-1===c?null:{start:u,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(ti={focusedElem:e,selectionRange:n},Ht=!1,Qs=t;null!==Qs;)if(e=(t=Qs).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Qs=e;else for(;null!==Qs;){t=Qs;try{var m=t.alternate;if(0!==(1024&t.flags))switch(t.tag){case 0:case 11:case 15:case 5:case 6:case 4:case 17:break;case 1:if(null!==m){var y=m.memoizedProps,v=m.memoizedState,g=t.stateNode,b=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:vo(t.type,y),v);g.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var w=t.stateNode.containerInfo;1===w.nodeType?w.textContent="":9===w.nodeType&&w.documentElement&&w.removeChild(w.documentElement);break;default:throw Error(o(163))}}catch(x){Tc(t,t.return,x)}if(null!==(e=t.sibling)){e.return=t.return,Qs=e;break}Qs=t.return}m=nu,nu=!1}(e,n),vu(n,e),hr(ti),Ht=!!ei,ti=ei=null,e.current=n,bu(n,e,i),Xe(),Iu=u,bt=s,Cu.transition=a}else e.current=n;if(Ku&&(Ku=!1,Ju=e,Xu=i),a=e.pendingLanes,0===a&&(Wu=null),function(e){if(ot&&"function"===typeof ot.onCommitFiberRoot)try{ot.onCommitFiberRoot(it,e,void 0,128===(128&e.current.flags))}catch(t){}}(n.stateNode),ic(e,Ye()),null!==t)for(r=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],r(i.value,{componentStack:i.stack,digest:i.digest});if(Vu)throw Vu=!1,e=Gu,Gu=null,e;0!==(1&Xu)&&0!==e.tag&&kc(),a=e.pendingLanes,0!==(1&a)?e===$u?Yu++:(Yu=0,$u=e):Yu=0,Zi()}(e,t,n,r)}finally{Cu.transition=i,bt=r}return null}function kc(){if(null!==Ju){var e=wt(Xu),t=Cu.transition,n=bt;try{if(Cu.transition=null,bt=16>e?16:e,null===Ju)var r=!1;else{if(e=Ju,Ju=null,Xu=0,0!==(6&Iu))throw Error(o(331));var i=Iu;for(Iu|=4,Qs=e.current;null!==Qs;){var a=Qs,s=a.child;if(0!==(16&Qs.flags)){var u=a.deletions;if(null!==u){for(var c=0;c<u.length;c++){var l=u[c];for(Qs=l;null!==Qs;){var f=Qs;switch(f.tag){case 0:case 11:case 15:ru(8,f,a)}var d=f.child;if(null!==d)d.return=f,Qs=d;else for(;null!==Qs;){var p=(f=Qs).sibling,h=f.return;if(au(f),f===l){Qs=null;break}if(null!==p){p.return=h,Qs=p;break}Qs=h}}}var m=a.alternate;if(null!==m){var y=m.child;if(null!==y){m.child=null;do{var v=y.sibling;y.sibling=null,y=v}while(null!==y)}}Qs=a}}if(0!==(2064&a.subtreeFlags)&&null!==s)s.return=a,Qs=s;else e:for(;null!==Qs;){if(0!==(2048&(a=Qs).flags))switch(a.tag){case 0:case 11:case 15:ru(9,a,a.return)}var g=a.sibling;if(null!==g){g.return=a.return,Qs=g;break e}Qs=a.return}}var b=e.current;for(Qs=b;null!==Qs;){var w=(s=Qs).child;if(0!==(2064&s.subtreeFlags)&&null!==w)w.return=s,Qs=w;else e:for(s=b;null!==Qs;){if(0!==(2048&(u=Qs).flags))try{switch(u.tag){case 0:case 11:case 15:iu(9,u)}}catch(A){Tc(u,u.return,A)}if(u===s){Qs=null;break e}var x=u.sibling;if(null!==x){x.return=u.return,Qs=x;break e}Qs=u.return}}if(Iu=i,Zi(),ot&&"function"===typeof ot.onPostCommitFiberRoot)try{ot.onPostCommitFiberRoot(it,e)}catch(A){}r=!0}return r}finally{bt=n,Cu.transition=t}}return!1}function Ec(e,t,n){e=No(e,t=hs(0,t=ls(n,t),1),1),t=tc(),null!==e&&(vt(e,1,t),ic(e,t))}function Tc(e,t,n){if(3===e.tag)Ec(e,e,n);else for(;null!==t;){if(3===t.tag){Ec(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Wu||!Wu.has(r))){t=No(t,e=ms(t,e=ls(n,e),1),1),e=tc(),null!==t&&(vt(t,1,e),ic(t,e));break}}t=t.return}}function _c(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),t=tc(),e.pingedLanes|=e.suspendedLanes&n,Ou===e&&(Ru&n)===n&&(4===Nu||3===Nu&&(130023424&Ru)===Ru&&500>Ye()-Zu?pc(e,0):zu|=n),ic(e,t)}function Sc(e,t){0===t&&(0===(1&e.mode)?t=1:(t=lt,0===(130023424&(lt<<=1))&&(lt=4194304)));var n=tc();null!==(e=Oo(e,t))&&(vt(e,t,n),ic(e,n))}function Cc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),Sc(e,n)}function Ic(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(o(314))}null!==r&&r.delete(t),Sc(e,n)}function Oc(e,t){return We(e,t)}function Pc(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rc(e,t,n,r){return new Pc(e,t,n,r)}function Mc(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Bc(e,t){var n=e.alternate;return null===n?((n=Rc(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=14680064&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Nc(e,t,n,r,i,a){var s=2;if(r=e,"function"===typeof e)Mc(e)&&(s=1);else if("string"===typeof e)s=5;else e:switch(e){case k:return Fc(n.children,i,a,t);case E:s=8,i|=8;break;case T:return(e=Rc(12,n,t,2|i)).elementType=T,e.lanes=a,e;case I:return(e=Rc(13,n,t,i)).elementType=I,e.lanes=a,e;case O:return(e=Rc(19,n,t,i)).elementType=O,e.lanes=a,e;case M:return Dc(n,i,a,t);default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case _:s=10;break e;case S:s=9;break e;case C:s=11;break e;case P:s=14;break e;case R:s=16,r=null;break e}throw Error(o(130,null==e?e:typeof e,""))}return(t=Rc(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function Fc(e,t,n,r){return(e=Rc(7,e,r,t)).lanes=n,e}function Dc(e,t,n,r){return(e=Rc(22,e,r,t)).elementType=M,e.lanes=n,e.stateNode={isHidden:!1},e}function Lc(e,t,n){return(e=Rc(6,e,null,t)).lanes=n,e}function zc(e,t,n){return(t=Rc(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function jc(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yt(0),this.expirationTimes=yt(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yt(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Uc(e,t,n,r,i,o,a,s,u){return e=new jc(e,t,n,s,u),1===t?(t=1,!0===o&&(t|=8)):t=0,o=Rc(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ro(o),e}function Zc(e){if(!e)return Si;e:{if(Ze(e=e._reactInternals)!==e||1!==e.tag)throw Error(o(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(Ri(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(null!==t);throw Error(o(171))}if(1===e.tag){var n=e.type;if(Ri(n))return Ni(e,n,t)}return t}function qc(e,t,n,r,i,o,a,s,u){return(e=Uc(n,r,!0,e,0,o,0,s,u)).context=Zc(null),n=e.current,(o=Bo(r=tc(),i=nc(n))).callback=void 0!==t&&null!==t?t:null,No(n,o,i),e.current.lanes=i,vt(e,i,r),ic(e,r),e}function Hc(e,t,n,r){var i=t.current,o=tc(),a=nc(i);return n=Zc(n),null===t.context?t.context=n:t.pendingContext=n,(t=Bo(o,a)).payload={element:e},null!==(r=void 0===r?null:r)&&(t.callback=r),null!==(e=No(i,t,a))&&(rc(e,i,a,o),Fo(e,i,a)),a}function Vc(e){return(e=e.current).child?(e.child.tag,e.child.stateNode):null}function Gc(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function Wc(e,t){Gc(e,t),(e=e.alternate)&&Gc(e,t)}Eu=function(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps||Ii.current)ws=!0;else{if(0===(e.lanes&n)&&0===(128&t.flags))return ws=!1,function(e,t,n){switch(t.tag){case 3:Os(t),ho();break;case 5:aa(t);break;case 1:Ri(t.type)&&Fi(t);break;case 4:ia(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;_i(go,r._currentValue),r._currentValue=i;break;case 13:if(null!==(r=t.memoizedState))return null!==r.dehydrated?(_i(ua,1&ua.current),t.flags|=128,null):0!==(n&t.child.childLanes)?Ls(e,t,n):(_i(ua,1&ua.current),null!==(e=Vs(e,t,n))?e.sibling:null);_i(ua,1&ua.current);break;case 19:if(r=0!==(n&t.childLanes),0!==(128&e.flags)){if(r)return qs(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),_i(ua,ua.current),r)break;return null;case 22:case 23:return t.lanes=0,Ts(e,t,n)}return Vs(e,t,n)}(e,t,n);ws=0!==(131072&e.flags)}else ws=!1,io&&0!==(1048576&t.flags)&&Qi(t,Gi,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Hs(e,t),e=t.pendingProps;var i=Pi(t,Ci.current);To(t,n),i=Ea(null,t,r,e,i,n);var a=Ta();return t.flags|=1,"object"===typeof i&&null!==i&&"function"===typeof i.render&&void 0===i.$$typeof?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Ri(r)?(a=!0,Fi(t)):a=!1,t.memoizedState=null!==i.state&&void 0!==i.state?i.state:null,Ro(t),i.updater=Zo,t.stateNode=i,i._reactInternals=t,Go(t,r,e,n),t=Is(null,t,r,!0,a,n)):(t.tag=0,io&&a&&eo(t),xs(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Hs(e,t),e=t.pendingProps,r=(i=r._init)(r._payload),t.type=r,i=t.tag=function(e){if("function"===typeof e)return Mc(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===C)return 11;if(e===P)return 14}return 2}(r),e=vo(r,e),i){case 0:t=Ss(null,t,r,e,n);break e;case 1:t=Cs(null,t,r,e,n);break e;case 11:t=As(null,t,r,e,n);break e;case 14:t=ks(null,t,r,vo(r.type,e),n);break e}throw Error(o(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,Ss(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 1:return r=t.type,i=t.pendingProps,Cs(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 3:e:{if(Os(t),null===e)throw Error(o(387));r=t.pendingProps,i=(a=t.memoizedState).element,Mo(e,t),Lo(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=Ps(e,t,r,n,i=ls(Error(o(423)),t));break e}if(r!==i){t=Ps(e,t,r,n,i=ls(Error(o(424)),t));break e}for(ro=ci(t.stateNode.containerInfo.firstChild),no=t,io=!0,oo=null,n=$o(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(ho(),r===i){t=Vs(e,t,n);break e}xs(e,t,r,n)}t=t.child}return t;case 5:return aa(t),null===e&&co(t),r=t.type,i=t.pendingProps,a=null!==e?e.memoizedProps:null,s=i.children,ni(r,i)?s=null:null!==a&&ni(r,a)&&(t.flags|=32),_s(e,t),xs(e,t,s,n),t.child;case 6:return null===e&&co(t),null;case 13:return Ls(e,t,n);case 4:return ia(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=Yo(t,null,r,n):xs(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,As(e,t,r,i=t.elementType===r?i:vo(r,i),n);case 7:return xs(e,t,t.pendingProps,n),t.child;case 8:case 12:return xs(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,_i(go,r._currentValue),r._currentValue=s,null!==a)if(sr(a.value,s)){if(a.children===i.children&&!Ii.current){t=Vs(e,t,n);break e}}else for(null!==(a=t.child)&&(a.return=t);null!==a;){var u=a.dependencies;if(null!==u){s=a.child;for(var c=u.firstContext;null!==c;){if(c.context===r){if(1===a.tag){(c=Bo(-1,n&-n)).tag=2;var l=a.updateQueue;if(null!==l){var f=(l=l.shared).pending;null===f?c.next=c:(c.next=f.next,f.next=c),l.pending=c}}a.lanes|=n,null!==(c=a.alternate)&&(c.lanes|=n),Eo(a.return,n,t),u.lanes|=n;break}c=c.next}}else if(10===a.tag)s=a.type===t.type?null:a.child;else if(18===a.tag){if(null===(s=a.return))throw Error(o(341));s.lanes|=n,null!==(u=s.alternate)&&(u.lanes|=n),Eo(s,n,t),s=a.sibling}else s=a.child;if(null!==s)s.return=a;else for(s=a;null!==s;){if(s===t){s=null;break}if(null!==(a=s.sibling)){a.return=s.return,s=a;break}s=s.return}a=s}xs(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,To(t,n),r=r(i=_o(i)),t.flags|=1,xs(e,t,r,n),t.child;case 14:return i=vo(r=t.type,t.pendingProps),ks(e,t,r,i=vo(r.type,i),n);case 15:return Es(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:vo(r,i),Hs(e,t),t.tag=1,Ri(r)?(e=!0,Fi(t)):e=!1,To(t,n),Ho(t,r,i),Go(t,r,i,n),Is(null,t,r,!0,e,n);case 19:return qs(e,t,n);case 22:return Ts(e,t,n)}throw Error(o(156,t.tag))};var Kc="function"===typeof reportError?reportError:function(e){console.error(e)};function Jc(e){this._internalRoot=e}function Xc(e){this._internalRoot=e}function Yc(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function $c(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Qc(){}function el(e,t,n,r,i){var o=n._reactRootContainer;if(o){var a=o;if("function"===typeof i){var s=i;i=function(){var e=Vc(a);s.call(e)}}Hc(t,a,e,i)}else a=function(e,t,n,r,i){if(i){if("function"===typeof r){var o=r;r=function(){var e=Vc(a);o.call(e)}}var a=qc(t,r,e,0,null,!1,0,"",Qc);return e._reactRootContainer=a,e[hi]=a.current,Zr(8===e.nodeType?e.parentNode:e),fc(),a}for(;i=e.lastChild;)e.removeChild(i);if("function"===typeof r){var s=r;r=function(){var e=Vc(u);s.call(e)}}var u=Uc(e,0,!1,null,0,!1,0,"",Qc);return e._reactRootContainer=u,e[hi]=u.current,Zr(8===e.nodeType?e.parentNode:e),fc((function(){Hc(t,u,n,r)})),u}(n,t,e,i,r);return Vc(a)}Xc.prototype.render=Jc.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));Hc(e,t,null,null)},Xc.prototype.unmount=Jc.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;fc((function(){Hc(null,e,null,null)})),t[hi]=null}},Xc.prototype.unstable_scheduleHydration=function(e){if(e){var t=Et();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Mt.length&&0!==t&&t<Mt[n].priority;n++);Mt.splice(n,0,e),0===n&&Dt(e)}},xt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=ft(t.pendingLanes);0!==n&&(gt(t,1|n),ic(t,Ye()),0===(6&Iu)&&(qu=Ye()+500,Zi()))}break;case 13:fc((function(){var t=Oo(e,1);if(null!==t){var n=tc();rc(t,e,1,n)}})),Wc(e,1)}},At=function(e){if(13===e.tag){var t=Oo(e,134217728);if(null!==t)rc(t,e,134217728,tc());Wc(e,134217728)}},kt=function(e){if(13===e.tag){var t=nc(e),n=Oo(e,t);if(null!==n)rc(n,e,t,tc());Wc(e,t)}},Et=function(){return bt},Tt=function(e,t){var n=bt;try{return bt=e,t()}finally{bt=n}},Ae=function(e,t,n){switch(t){case"input":if($(e,n),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=xi(r);if(!i)throw Error(o(90));W(r),$(r,i)}}}break;case"textarea":oe(e,n);break;case"select":null!=(t=n.value)&&ne(e,!!n.multiple,t,!1)}},Ce=lc,Ie=fc;var tl={usingClientEntryPoint:!1,Events:[bi,wi,xi,_e,Se,lc]},nl={findFiberByHostInstance:gi,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},rl={bundleType:nl.bundleType,version:nl.version,rendererPackageName:nl.rendererPackageName,rendererConfig:nl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:w.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=Ve(e))?null:e.stateNode},findFiberByHostInstance:nl.findFiberByHostInstance||function(){return null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var il=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!il.isDisabled&&il.supportsFiber)try{it=il.inject(rl),ot=il}catch(le){}}t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=tl,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Yc(t))throw Error(o(200));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:A,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.createRoot=function(e,t){if(!Yc(e))throw Error(o(299));var n=!1,r="",i=Kc;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onRecoverableError&&(i=t.onRecoverableError)),t=Uc(e,1,!1,null,0,n,0,r,i),e[hi]=t.current,Zr(8===e.nodeType?e.parentNode:e),new Jc(t)},t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=null===(e=Ve(t))?null:e.stateNode},t.flushSync=function(e){return fc(e)},t.hydrate=function(e,t,n){if(!$c(t))throw Error(o(200));return el(null,e,t,!0,n)},t.hydrateRoot=function(e,t,n){if(!Yc(e))throw Error(o(405));var r=null!=n&&n.hydratedSources||null,i=!1,a="",s=Kc;if(null!==n&&void 0!==n&&(!0===n.unstable_strictMode&&(i=!0),void 0!==n.identifierPrefix&&(a=n.identifierPrefix),void 0!==n.onRecoverableError&&(s=n.onRecoverableError)),t=qc(t,null,e,1,null!=n?n:null,i,0,a,s),e[hi]=t.current,Zr(e),r)for(e=0;e<r.length;e++)i=(i=(n=r[e])._getVersion)(n._source),null==t.mutableSourceEagerHydrationData?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new Xc(t)},t.render=function(e,t,n){if(!$c(t))throw Error(o(200));return el(null,e,t,!1,n)},t.unmountComponentAtNode=function(e){if(!$c(e))throw Error(o(40));return!!e._reactRootContainer&&(fc((function(){el(null,null,e,!1,(function(){e._reactRootContainer=null,e[hi]=null}))})),!0)},t.unstable_batchedUpdates=lc,t.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!$c(n))throw Error(o(200));if(null==e||void 0===e._reactInternals)throw Error(o(38));return el(e,t,n,!1,r)},t.version="18.2.0-next-9e3b772b8-20220608"},64093:function(e,t,n){"use strict";var r=n(67410);t.createRoot=r.createRoot,t.hydrateRoot=r.hydrateRoot},67410:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(19838)},42926:function(e,t){"use strict";var n="function"===typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,i=n?Symbol.for("react.portal"):60106,o=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,l=n?Symbol.for("react.async_mode"):60111,f=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,p=n?Symbol.for("react.suspense"):60113,h=n?Symbol.for("react.suspense_list"):60120,m=n?Symbol.for("react.memo"):60115,y=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,g=n?Symbol.for("react.fundamental"):60117,b=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function x(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case l:case f:case o:case s:case a:case p:return e;default:switch(e=e&&e.$$typeof){case c:case d:case y:case m:case u:return e;default:return t}}case i:return t}}}function A(e){return x(e)===f}t.AsyncMode=l,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=u,t.Element=r,t.ForwardRef=d,t.Fragment=o,t.Lazy=y,t.Memo=m,t.Portal=i,t.Profiler=s,t.StrictMode=a,t.Suspense=p,t.isAsyncMode=function(e){return A(e)||x(e)===l},t.isConcurrentMode=A,t.isContextConsumer=function(e){return x(e)===c},t.isContextProvider=function(e){return x(e)===u},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return x(e)===d},t.isFragment=function(e){return x(e)===o},t.isLazy=function(e){return x(e)===y},t.isMemo=function(e){return x(e)===m},t.isPortal=function(e){return x(e)===i},t.isProfiler=function(e){return x(e)===s},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===o||e===f||e===s||e===a||e===p||e===h||"object"===typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===m||e.$$typeof===u||e.$$typeof===c||e.$$typeof===d||e.$$typeof===g||e.$$typeof===b||e.$$typeof===w||e.$$typeof===v)},t.typeOf=x},21469:function(e,t,n){"use strict";e.exports=n(42926)},5401:function(e,t,n){"use strict";var r=n(65535),i=Symbol.for("react.element"),o=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,u={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var r,o={},c=null,l=null;for(r in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(l=t.ref),t)a.call(t,r)&&!u.hasOwnProperty(r)&&(o[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps)void 0===o[r]&&(o[r]=t[r]);return{$$typeof:i,type:e,key:c,ref:l,props:o,_owner:s.current}}t.Fragment=o,t.jsx=c,t.jsxs=c},40021:function(e,t){"use strict";var n=Symbol.for("react.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),c=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),f=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),p=Symbol.iterator;var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,y={};function v(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}function g(){}function b(e,t,n){this.props=e,this.context=t,this.refs=y,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},g.prototype=v.prototype;var w=b.prototype=new g;w.constructor=b,m(w,v.prototype),w.isPureReactComponent=!0;var x=Array.isArray,A=Object.prototype.hasOwnProperty,k={current:null},E={key:!0,ref:!0,__self:!0,__source:!0};function T(e,t,r){var i,o={},a=null,s=null;if(null!=t)for(i in void 0!==t.ref&&(s=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,i)&&!E.hasOwnProperty(i)&&(o[i]=t[i]);var u=arguments.length-2;if(1===u)o.children=r;else if(1<u){for(var c=Array(u),l=0;l<u;l++)c[l]=arguments[l+2];o.children=c}if(e&&e.defaultProps)for(i in u=e.defaultProps)void 0===o[i]&&(o[i]=u[i]);return{$$typeof:n,type:e,key:a,ref:s,props:o,_owner:k.current}}function _(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var S=/\/+/g;function C(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function I(e,t,i,o,a){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case n:case r:u=!0}}if(u)return a=a(u=e),e=""===o?"."+C(u,0):o,x(a)?(i="",null!=e&&(i=e.replace(S,"$&/")+"/"),I(a,t,i,"",(function(e){return e}))):null!=a&&(_(a)&&(a=function(e,t){return{$$typeof:n,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(a,i+(!a.key||u&&u.key===a.key?"":(""+a.key).replace(S,"$&/")+"/")+e)),t.push(a)),1;if(u=0,o=""===o?".":o+":",x(e))for(var c=0;c<e.length;c++){var l=o+C(s=e[c],c);u+=I(s,t,i,l,a)}else if(l=function(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=p&&e[p]||e["@@iterator"])?e:null}(e),"function"===typeof l)for(e=l.call(e),c=0;!(s=e.next()).done;)u+=I(s=s.value,t,i,l=o+C(s,c++),a);else if("object"===s)throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return u}function O(e,t,n){if(null==e)return e;var r=[],i=0;return I(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function P(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var R={current:null},M={transition:null},B={ReactCurrentDispatcher:R,ReactCurrentBatchConfig:M,ReactCurrentOwner:k};t.Children={map:O,forEach:function(e,t,n){O(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return O(e,(function(){t++})),t},toArray:function(e){return O(e,(function(e){return e}))||[]},only:function(e){if(!_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}},t.Component=v,t.Fragment=i,t.Profiler=a,t.PureComponent=b,t.StrictMode=o,t.Suspense=l,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=B,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var i=m({},e.props),o=e.key,a=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(a=t.ref,s=k.current),void 0!==t.key&&(o=""+t.key),e.type&&e.type.defaultProps)var u=e.type.defaultProps;for(c in t)A.call(t,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===t[c]&&void 0!==u?u[c]:t[c])}var c=arguments.length-2;if(1===c)i.children=r;else if(1<c){u=Array(c);for(var l=0;l<c;l++)u[l]=arguments[l+2];i.children=u}return{$$typeof:n,type:e.type,key:o,ref:a,props:i,_owner:s}},t.createContext=function(e){return(e={$$typeof:u,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null}).Provider={$$typeof:s,_context:e},e.Consumer=e},t.createElement=T,t.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:c,render:e}},t.isValidElement=_,t.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:P}},t.memo=function(e,t){return{$$typeof:f,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=M.transition;M.transition={};try{e()}finally{M.transition=t}},t.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},t.useCallback=function(e,t){return R.current.useCallback(e,t)},t.useContext=function(e){return R.current.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e){return R.current.useDeferredValue(e)},t.useEffect=function(e,t){return R.current.useEffect(e,t)},t.useId=function(){return R.current.useId()},t.useImperativeHandle=function(e,t,n){return R.current.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return R.current.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return R.current.useLayoutEffect(e,t)},t.useMemo=function(e,t){return R.current.useMemo(e,t)},t.useReducer=function(e,t,n){return R.current.useReducer(e,t,n)},t.useRef=function(e){return R.current.useRef(e)},t.useState=function(e){return R.current.useState(e)},t.useSyncExternalStore=function(e,t,n){return R.current.useSyncExternalStore(e,t,n)},t.useTransition=function(){return R.current.useTransition()},t.version="18.2.0"},65535:function(e,t,n){"use strict";e.exports=n(40021)},10256:function(e,t,n){"use strict";e.exports=n(5401)},81347:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<o(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,a=i>>>1;r<a;){var s=2*(r+1)-1,u=e[s],c=s+1,l=e[c];if(0>o(u,n))c<i&&0>o(l,u)?(e[r]=l,e[c]=n,r=c):(e[r]=u,e[s]=n,r=s);else{if(!(c<i&&0>o(l,n)))break e;e[r]=l,e[c]=n,r=c}}}return t}function o(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if("object"===typeof performance&&"function"===typeof performance.now){var a=performance;t.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();t.unstable_now=function(){return s.now()-u}}var c=[],l=[],f=1,d=null,p=3,h=!1,m=!1,y=!1,v="function"===typeof setTimeout?setTimeout:null,g="function"===typeof clearTimeout?clearTimeout:null,b="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(l);null!==t;){if(null===t.callback)i(l);else{if(!(t.startTime<=e))break;i(l),t.sortIndex=t.expirationTime,n(c,t)}t=r(l)}}function x(e){if(y=!1,w(e),!m)if(null!==r(c))m=!0,M(A);else{var t=r(l);null!==t&&B(x,t.startTime-e)}}function A(e,n){m=!1,y&&(y=!1,g(_),_=-1),h=!0;var o=p;try{for(w(n),d=r(c);null!==d&&(!(d.expirationTime>n)||e&&!I());){var a=d.callback;if("function"===typeof a){d.callback=null,p=d.priorityLevel;var s=a(d.expirationTime<=n);n=t.unstable_now(),"function"===typeof s?d.callback=s:d===r(c)&&i(c),w(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var f=r(l);null!==f&&B(x,f.startTime-n),u=!1}return u}finally{d=null,p=o,h=!1}}"undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var k,E=!1,T=null,_=-1,S=5,C=-1;function I(){return!(t.unstable_now()-C<S)}function O(){if(null!==T){var e=t.unstable_now();C=e;var n=!0;try{n=T(!0,e)}finally{n?k():(E=!1,T=null)}}else E=!1}if("function"===typeof b)k=function(){b(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,R=P.port2;P.port1.onmessage=O,k=function(){R.postMessage(null)}}else k=function(){v(O,0)};function M(e){T=e,E||(E=!0,k())}function B(e,n){_=v((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){m||h||(m=!0,M(A))},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):S=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,o){var a=t.unstable_now();switch("object"===typeof o&&null!==o?o="number"===typeof(o=o.delay)&&0<o?a+o:a:o=a,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:f++,callback:i,priorityLevel:e,startTime:o,expirationTime:s=o+s,sortIndex:-1},o>a?(e.sortIndex=o,n(l,e),null===r(c)&&e===r(l)&&(y?(g(_),_=-1):y=!0,B(x,o-a))):(e.sortIndex=s,n(c,e),m||h||(m=!0,M(A))),e},t.unstable_shouldYield=I,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},69793:function(e,t,n){"use strict";e.exports=n(81347)},22957:function(e){"use strict";!function(t){var n=2147483647;function r(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),n=1779033703,r=3144134277,i=1013904242,o=2773480762,a=1359893119,s=2600822924,u=528734635,c=1541459225,l=new Uint32Array(64);function f(e){for(var f=0,d=e.length;d>=64;){var p=n,h=r,m=i,y=o,v=a,g=s,b=u,w=c,x=void 0,A=void 0,k=void 0,E=void 0,T=void 0;for(A=0;A<16;A++)k=f+4*A,l[A]=(255&e[k])<<24|(255&e[k+1])<<16|(255&e[k+2])<<8|255&e[k+3];for(A=16;A<64;A++)E=((x=l[A-2])>>>17|x<<15)^(x>>>19|x<<13)^x>>>10,T=((x=l[A-15])>>>7|x<<25)^(x>>>18|x<<14)^x>>>3,l[A]=(E+l[A-7]|0)+(T+l[A-16]|0)|0;for(A=0;A<64;A++)E=(((v>>>6|v<<26)^(v>>>11|v<<21)^(v>>>25|v<<7))+(v&g^~v&b)|0)+(w+(t[A]+l[A]|0)|0)|0,T=((p>>>2|p<<30)^(p>>>13|p<<19)^(p>>>22|p<<10))+(p&h^p&m^h&m)|0,w=b,b=g,g=v,v=y+E|0,y=m,m=h,h=p,p=E+T|0;n=n+p|0,r=r+h|0,i=i+m|0,o=o+y|0,a=a+v|0,s=s+g|0,u=u+b|0,c=c+w|0,f+=64,d-=64}}f(e);var d,p=e.length%64,h=e.length/536870912|0,m=e.length<<3,y=p<56?56:120,v=e.slice(e.length-p,e.length);for(v.push(128),d=p+1;d<y;d++)v.push(0);return v.push(h>>>24&255),v.push(h>>>16&255),v.push(h>>>8&255),v.push(h>>>0&255),v.push(m>>>24&255),v.push(m>>>16&255),v.push(m>>>8&255),v.push(m>>>0&255),f(v),[n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,c>>>24&255,c>>>16&255,c>>>8&255,c>>>0&255]}function i(e,t,n){e=e.length<=64?e:r(e);var i,o=64+t.length+4,a=new Array(o),s=new Array(64),u=[];for(i=0;i<64;i++)a[i]=54;for(i=0;i<e.length;i++)a[i]^=e[i];for(i=0;i<t.length;i++)a[64+i]=t[i];for(i=o-4;i<o;i++)a[i]=0;for(i=0;i<64;i++)s[i]=92;for(i=0;i<e.length;i++)s[i]^=e[i];function c(){for(var e=o-1;e>=o-4;e--){if(a[e]++,a[e]<=255)return;a[e]=0}}for(;n>=32;)c(),u=u.concat(r(s.concat(r(a)))),n-=32;return n>0&&(c(),u=u.concat(r(s.concat(r(a))).slice(0,n))),u}function o(e,t,n,r,i){var o;for(c(e,16*(2*n-1),i,0,16),o=0;o<2*n;o++)u(e,16*o,i,16),s(i,r),c(i,0,e,t+16*o,16);for(o=0;o<n;o++)c(e,t+2*o*16,e,16*o,16);for(o=0;o<n;o++)c(e,t+16*(2*o+1),e,16*(o+n),16)}function a(e,t){return e<<t|e>>>32-t}function s(e,t){c(e,0,t,0,16);for(var n=8;n>0;n-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var r=0;r<16;++r)e[r]+=t[r]}function u(e,t,n,r){for(var i=0;i<r;i++)n[i]^=e[t+i]}function c(e,t,n,r,i){for(;i--;)n[r++]=e[t++]}function l(e){if(!e||"number"!==typeof e.length)return!1;for(var t=0;t<e.length;t++){var n=e[t];if("number"!==typeof n||n%1||n<0||n>=256)return!1}return!0}function f(e,t){if("number"!==typeof e||e%1)throw new Error("invalid "+t);return e}function d(e,t,r,a,s,d,p){if(r=f(r,"N"),a=f(a,"r"),s=f(s,"p"),d=f(d,"dkLen"),0===r||0!==(r&r-1))throw new Error("N must be power of 2");if(r>n/128/a)throw new Error("N too large");if(a>n/128/s)throw new Error("r too large");if(!l(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!l(t))throw new Error("salt must be an array or buffer");t=Array.prototype.slice.call(t);for(var h=i(e,t,128*s*a),m=new Uint32Array(32*s*a),y=0;y<m.length;y++){var v=4*y;m[y]=(255&h[v+3])<<24|(255&h[v+2])<<16|(255&h[v+1])<<8|(255&h[v+0])<<0}var g,b,w=new Uint32Array(64*a),x=new Uint32Array(32*a*r),A=32*a,k=new Uint32Array(16),E=new Uint32Array(16),T=s*r*2,_=0,S=null,C=!1,I=0,O=0,P=p?parseInt(1e3/a):4294967295,R="undefined"!==typeof setImmediate?setImmediate:setTimeout,M=function t(){if(C)return p(new Error("cancelled"),_/T);var n;switch(I){case 0:c(m,b=32*O*a,w,0,A),I=1,g=0;case 1:(n=r-g)>P&&(n=P);for(var l=0;l<n;l++)c(w,0,x,(g+l)*A,A),o(w,A,a,k,E);if(g+=n,_+=n,p){var f=parseInt(1e3*_/T);if(f!==S){if(C=p(null,_/T))break;S=f}}if(g<r)break;g=0,I=2;case 2:(n=r-g)>P&&(n=P);for(var y=0;y<n;y++){var v=w[16*(2*a-1)]&r-1;u(x,v*A,w,A),o(w,A,a,k,E)}if(g+=n,_+=n,p){var M=parseInt(1e3*_/T);if(M!==S){if(C=p(null,_/T))break;S=M}}if(g<r)break;if(c(w,0,m,b,A),++O<s){I=0;break}h=[];for(var B=0;B<m.length;B++)h.push(m[B]>>0&255),h.push(m[B]>>8&255),h.push(m[B]>>16&255),h.push(m[B]>>24&255);var N=i(e,h,d);return p&&p(null,1,N),N}p&&R(t)};if(!p)for(;;){var B=M();if(void 0!=B)return B}M()}var p={scrypt:function(e,t,n,r,i,o,a){return new Promise((function(s,u){var c=0;a&&a(0),d(e,t,n,r,i,o,(function(e,t,n){if(e)u(e);else if(n)a&&1!==c&&a(1),s(new Uint8Array(n));else if(a&&t!==c)return c=t,a(t)}))}))},syncScrypt:function(e,t,n,r,i,o){return new Uint8Array(d(e,t,n,r,i,o))}};e.exports=p}()},85317:function(e){e.exports=function(e){"use strict";var t=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(e,t){var n=e[0],r=e[1],i=e[2],o=e[3];r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[0]-680876936|0)<<7|n>>>25)+r|0)&r|~n&i)+t[1]-389564586|0)<<12|o>>>20)+n|0)&n|~o&r)+t[2]+606105819|0)<<17|i>>>15)+o|0)&o|~i&n)+t[3]-1044525330|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[4]-176418897|0)<<7|n>>>25)+r|0)&r|~n&i)+t[5]+1200080426|0)<<12|o>>>20)+n|0)&n|~o&r)+t[6]-1473231341|0)<<17|i>>>15)+o|0)&o|~i&n)+t[7]-45705983|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[8]+1770035416|0)<<7|n>>>25)+r|0)&r|~n&i)+t[9]-1958414417|0)<<12|o>>>20)+n|0)&n|~o&r)+t[10]-42063|0)<<17|i>>>15)+o|0)&o|~i&n)+t[11]-1990404162|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&i|~r&o)+t[12]+1804603682|0)<<7|n>>>25)+r|0)&r|~n&i)+t[13]-40341101|0)<<12|o>>>20)+n|0)&n|~o&r)+t[14]-1502002290|0)<<17|i>>>15)+o|0)&o|~i&n)+t[15]+1236535329|0)<<22|r>>>10)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[1]-165796510|0)<<5|n>>>27)+r|0)&i|r&~i)+t[6]-1069501632|0)<<9|o>>>23)+n|0)&r|n&~r)+t[11]+643717713|0)<<14|i>>>18)+o|0)&n|o&~n)+t[0]-373897302|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[5]-701558691|0)<<5|n>>>27)+r|0)&i|r&~i)+t[10]+38016083|0)<<9|o>>>23)+n|0)&r|n&~r)+t[15]-660478335|0)<<14|i>>>18)+o|0)&n|o&~n)+t[4]-405537848|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[9]+568446438|0)<<5|n>>>27)+r|0)&i|r&~i)+t[14]-1019803690|0)<<9|o>>>23)+n|0)&r|n&~r)+t[3]-187363961|0)<<14|i>>>18)+o|0)&n|o&~n)+t[8]+1163531501|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r&o|i&~o)+t[13]-1444681467|0)<<5|n>>>27)+r|0)&i|r&~i)+t[2]-51403784|0)<<9|o>>>23)+n|0)&r|n&~r)+t[7]+1735328473|0)<<14|i>>>18)+o|0)&n|o&~n)+t[12]-1926607734|0)<<20|r>>>12)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[5]-378558|0)<<4|n>>>28)+r|0)^r^i)+t[8]-2022574463|0)<<11|o>>>21)+n|0)^n^r)+t[11]+1839030562|0)<<16|i>>>16)+o|0)^o^n)+t[14]-35309556|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[1]-1530992060|0)<<4|n>>>28)+r|0)^r^i)+t[4]+1272893353|0)<<11|o>>>21)+n|0)^n^r)+t[7]-155497632|0)<<16|i>>>16)+o|0)^o^n)+t[10]-1094730640|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[13]+681279174|0)<<4|n>>>28)+r|0)^r^i)+t[0]-358537222|0)<<11|o>>>21)+n|0)^n^r)+t[3]-722521979|0)<<16|i>>>16)+o|0)^o^n)+t[6]+76029189|0)<<23|r>>>9)+i|0,r=((r+=((i=((i+=((o=((o+=((n=((n+=(r^i^o)+t[9]-640364487|0)<<4|n>>>28)+r|0)^r^i)+t[12]-421815835|0)<<11|o>>>21)+n|0)^n^r)+t[15]+530742520|0)<<16|i>>>16)+o|0)^o^n)+t[2]-995338651|0)<<23|r>>>9)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[0]-198630844|0)<<6|n>>>26)+r|0)|~i))+t[7]+1126891415|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[14]-1416354905|0)<<15|i>>>17)+o|0)|~n))+t[5]-57434055|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[12]+1700485571|0)<<6|n>>>26)+r|0)|~i))+t[3]-1894986606|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[10]-1051523|0)<<15|i>>>17)+o|0)|~n))+t[1]-2054922799|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[8]+1873313359|0)<<6|n>>>26)+r|0)|~i))+t[15]-30611744|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[6]-1560198380|0)<<15|i>>>17)+o|0)|~n))+t[13]+1309151649|0)<<21|r>>>11)+i|0,r=((r+=((o=((o+=(r^((n=((n+=(i^(r|~o))+t[4]-145523070|0)<<6|n>>>26)+r|0)|~i))+t[11]-1120210379|0)<<10|o>>>22)+n|0)^((i=((i+=(n^(o|~r))+t[2]+718787259|0)<<15|i>>>17)+o|0)|~n))+t[9]-343485551|0)<<21|r>>>11)+i|0,e[0]=n+e[0]|0,e[1]=r+e[1]|0,e[2]=i+e[2]|0,e[3]=o+e[3]|0}function r(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e.charCodeAt(t)+(e.charCodeAt(t+1)<<8)+(e.charCodeAt(t+2)<<16)+(e.charCodeAt(t+3)<<24);return n}function i(e){var t,n=[];for(t=0;t<64;t+=4)n[t>>2]=e[t]+(e[t+1]<<8)+(e[t+2]<<16)+(e[t+3]<<24);return n}function o(e){var t,i,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,r(e.substring(t-64,t)));for(i=(e=e.substring(t-64)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<i;t+=1)o[t>>2]|=e.charCodeAt(t)<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function a(e){var t,r,o,a,s,u,c=e.length,l=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=c;t+=64)n(l,i(e.subarray(t-64,t)));for(r=(e=t-64<c?e.subarray(t-64):new Uint8Array(0)).length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],t=0;t<r;t+=1)o[t>>2]|=e[t]<<(t%4<<3);if(o[t>>2]|=128<<(t%4<<3),t>55)for(n(l,o),t=0;t<16;t+=1)o[t]=0;return a=(a=8*c).toString(16).match(/(.*?)(.{0,8})$/),s=parseInt(a[2],16),u=parseInt(a[1],16)||0,o[14]=s,o[15]=u,n(l,o),l}function s(e){var n,r="";for(n=0;n<4;n+=1)r+=t[e>>8*n+4&15]+t[e>>8*n&15];return r}function u(e){var t;for(t=0;t<e.length;t+=1)e[t]=s(e[t]);return e.join("")}function c(e){return/[\u0080-\uFFFF]/.test(e)&&(e=unescape(encodeURIComponent(e))),e}function l(e,t){var n,r=e.length,i=new ArrayBuffer(r),o=new Uint8Array(i);for(n=0;n<r;n+=1)o[n]=e.charCodeAt(n);return t?o:i}function f(e){return String.fromCharCode.apply(null,new Uint8Array(e))}function d(e,t,n){var r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e)),r.set(new Uint8Array(t),e.byteLength),n?r:r.buffer}function p(e){var t,n=[],r=e.length;for(t=0;t<r-1;t+=2)n.push(parseInt(e.substr(t,2),16));return String.fromCharCode.apply(String,n)}function h(){this.reset()}return u(o("hello")),"undefined"===typeof ArrayBuffer||ArrayBuffer.prototype.slice||function(){function t(e,t){return(e=0|e||0)<0?Math.max(e+t,0):Math.min(e,t)}ArrayBuffer.prototype.slice=function(n,r){var i,o,a,s,u=this.byteLength,c=t(n,u),l=u;return r!==e&&(l=t(r,u)),c>l?new ArrayBuffer(0):(i=l-c,o=new ArrayBuffer(i),a=new Uint8Array(o),s=new Uint8Array(this,c,i),a.set(s),o)}}(),h.prototype.append=function(e){return this.appendBinary(c(e)),this},h.prototype.appendBinary=function(e){this._buff+=e,this._length+=e.length;var t,i=this._buff.length;for(t=64;t<=i;t+=64)n(this._hash,r(this._buff.substring(t-64,t)));return this._buff=this._buff.substring(t-64),this},h.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r.charCodeAt(t)<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=p(n)),this.reset(),n},h.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},h.prototype.setState=function(e){return this._buff=e.buff,this._length=e.length,this._hash=e.hash,this},h.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},h.prototype._finish=function(e,t){var r,i,o,a=t;if(e[a>>2]|=128<<(a%4<<3),a>55)for(n(this._hash,e),a=0;a<16;a+=1)e[a]=0;r=(r=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),i=parseInt(r[2],16),o=parseInt(r[1],16)||0,e[14]=i,e[15]=o,n(this._hash,e)},h.hash=function(e,t){return h.hashBinary(c(e),t)},h.hashBinary=function(e,t){var n=u(o(e));return t?p(n):n},h.ArrayBuffer=function(){this.reset()},h.ArrayBuffer.prototype.append=function(e){var t,r=d(this._buff.buffer,e,!0),o=r.length;for(this._length+=e.byteLength,t=64;t<=o;t+=64)n(this._hash,i(r.subarray(t-64,t)));return this._buff=t-64<o?new Uint8Array(r.buffer.slice(t-64)):new Uint8Array(0),this},h.ArrayBuffer.prototype.end=function(e){var t,n,r=this._buff,i=r.length,o=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<i;t+=1)o[t>>2]|=r[t]<<(t%4<<3);return this._finish(o,i),n=u(this._hash),e&&(n=p(n)),this.reset(),n},h.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},h.ArrayBuffer.prototype.getState=function(){var e=h.prototype.getState.call(this);return e.buff=f(e.buff),e},h.ArrayBuffer.prototype.setState=function(e){return e.buff=l(e.buff,!0),h.prototype.setState.call(this,e)},h.ArrayBuffer.prototype.destroy=h.prototype.destroy,h.ArrayBuffer.prototype._finish=h.prototype._finish,h.ArrayBuffer.hash=function(e,t){var n=u(a(new Uint8Array(e)));return t?p(n):n},h}()},22673:function(e){"use strict";var t="Invariant failed";e.exports=function(e,n){if(!e)throw new Error(t)}},66406:function(e){e.exports&&(e.exports=function(e){"use strict";return e.prototype.toFormat=function(e,t,n){if(!this.e&&0!==this.e)return this.toString();var r,i,o,a,s,u,c,l,f,d,p,h,m,y,v,g=this.format||{},b=this.constructor.format||{};if(e!=s?"object"==typeof e?(n=e,e=s):t!=s?"object"==typeof t?(n=t,t=s):"object"!=typeof n&&(n={}):n={}:n={},l=(r=this.toFixed(e,t).split("."))[0],f=r[1],u=(c=this.s<0?l.slice(1):l).length,(d=n.decimalSeparator)==s&&(d=g.decimalSeparator)==s&&(d=b.decimalSeparator)==s&&(d="."),(p=n.groupSeparator)==s&&(p=g.groupSeparator)==s&&(p=b.groupSeparator),p&&((h=n.groupSize)==s&&(h=g.groupSize)==s&&(h=b.groupSize)==s&&(h=0),(m=n.secondaryGroupSize)==s&&(m=g.secondaryGroupSize)==s&&(m=b.secondaryGroupSize)==s&&(m=0),m?(i=+m,u-=o=+h):(i=+h,o=+m),i>0&&u>0)){for(a=u%i||i,l=c.substr(0,a);a<u;a+=i)l+=p+c.substr(a,i);o>0&&(l+=p+c.slice(a)),this.s<0&&(l="-"+l)}return f?((y=n.fractionGroupSeparator)==s&&(y=g.fractionGroupSeparator)==s&&(y=b.fractionGroupSeparator),y&&((v=n.fractionGroupSize)==s&&(v=g.fractionGroupSize)==s&&(v=b.fractionGroupSize)==s&&(v=0),(v=+v)&&(f=f.replace(new RegExp("\\d{"+v+"}\\B","g"),"$&"+y))),l+d+f):l},e.format={decimalSeparator:".",groupSeparator:",",groupSize:3,secondaryGroupSize:0,fractionGroupSeparator:"",fractionGroupSize:0},e})},76327:function(e){e.exports=function(){function e(e,t){var n=t?"\u2514":"\u251c";return n+=e?"\u2500 ":"\u2500\u2500\u2510"}function t(e,t){var n=[];for(var r in e)e.hasOwnProperty(r)&&(t&&"function"===typeof e[r]||n.push(r));return n}function n(r,i,o,a,s,u,c){var l,f,d="",p=0,h=a.slice(0);if(h.push([i,o])&&a.length>0&&(a.forEach((function(e,t){t>0&&(d+=(e[1]?" ":"\u2502")+" "),f||e[0]!==i||(f=!0)})),d+=e(r,o)+r,s&&("object"!==typeof i||i instanceof Date)&&(d+=": "+i),f&&(d+=" (circular ref.)"),c(d)),!f&&"object"===typeof i){var m=t(i,u);m.forEach((function(e){l=++p===m.length,n(e,i[e],l,h,s,u,c)}))}}var r={asLines:function(e,t,r,i){n(".",e,!1,[],t,"function"!==typeof r&&r,i||r)},asTree:function(e,t,r){var i="";return n(".",e,!1,[],t,r,(function(e){i+=e+"\n"})),i}};return r}()},14238:function(e){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},2028:function(e,t,n){"use strict";var r=n(44072),i=n(44717),o=n(58464),a=n(75313);function s(e){return e.call.bind(e)}var u="undefined"!==typeof BigInt,c="undefined"!==typeof Symbol,l=s(Object.prototype.toString),f=s(Number.prototype.valueOf),d=s(String.prototype.valueOf),p=s(Boolean.prototype.valueOf);if(u)var h=s(BigInt.prototype.valueOf);if(c)var m=s(Symbol.prototype.valueOf);function y(e,t){if("object"!==typeof e)return!1;try{return t(e),!0}catch(n){return!1}}function v(e){return"[object Map]"===l(e)}function g(e){return"[object Set]"===l(e)}function b(e){return"[object WeakMap]"===l(e)}function w(e){return"[object WeakSet]"===l(e)}function x(e){return"[object ArrayBuffer]"===l(e)}function A(e){return"undefined"!==typeof ArrayBuffer&&(x.working?x(e):e instanceof ArrayBuffer)}function k(e){return"[object DataView]"===l(e)}function E(e){return"undefined"!==typeof DataView&&(k.working?k(e):e instanceof DataView)}t.isArgumentsObject=r,t.isGeneratorFunction=i,t.isTypedArray=a,t.isPromise=function(e){return"undefined"!==typeof Promise&&e instanceof Promise||null!==e&&"object"===typeof e&&"function"===typeof e.then&&"function"===typeof e.catch},t.isArrayBufferView=function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):a(e)||E(e)},t.isUint8Array=function(e){return"Uint8Array"===o(e)},t.isUint8ClampedArray=function(e){return"Uint8ClampedArray"===o(e)},t.isUint16Array=function(e){return"Uint16Array"===o(e)},t.isUint32Array=function(e){return"Uint32Array"===o(e)},t.isInt8Array=function(e){return"Int8Array"===o(e)},t.isInt16Array=function(e){return"Int16Array"===o(e)},t.isInt32Array=function(e){return"Int32Array"===o(e)},t.isFloat32Array=function(e){return"Float32Array"===o(e)},t.isFloat64Array=function(e){return"Float64Array"===o(e)},t.isBigInt64Array=function(e){return"BigInt64Array"===o(e)},t.isBigUint64Array=function(e){return"BigUint64Array"===o(e)},v.working="undefined"!==typeof Map&&v(new Map),t.isMap=function(e){return"undefined"!==typeof Map&&(v.working?v(e):e instanceof Map)},g.working="undefined"!==typeof Set&&g(new Set),t.isSet=function(e){return"undefined"!==typeof Set&&(g.working?g(e):e instanceof Set)},b.working="undefined"!==typeof WeakMap&&b(new WeakMap),t.isWeakMap=function(e){return"undefined"!==typeof WeakMap&&(b.working?b(e):e instanceof WeakMap)},w.working="undefined"!==typeof WeakSet&&w(new WeakSet),t.isWeakSet=function(e){return w(e)},x.working="undefined"!==typeof ArrayBuffer&&x(new ArrayBuffer),t.isArrayBuffer=A,k.working="undefined"!==typeof ArrayBuffer&&"undefined"!==typeof DataView&&k(new DataView(new ArrayBuffer(1),0,1)),t.isDataView=E;var T="undefined"!==typeof SharedArrayBuffer?SharedArrayBuffer:void 0;function _(e){return"[object SharedArrayBuffer]"===l(e)}function S(e){return"undefined"!==typeof T&&("undefined"===typeof _.working&&(_.working=_(new T)),_.working?_(e):e instanceof T)}function C(e){return y(e,f)}function I(e){return y(e,d)}function O(e){return y(e,p)}function P(e){return u&&y(e,h)}function R(e){return c&&y(e,m)}t.isSharedArrayBuffer=S,t.isAsyncFunction=function(e){return"[object AsyncFunction]"===l(e)},t.isMapIterator=function(e){return"[object Map Iterator]"===l(e)},t.isSetIterator=function(e){return"[object Set Iterator]"===l(e)},t.isGeneratorObject=function(e){return"[object Generator]"===l(e)},t.isWebAssemblyCompiledModule=function(e){return"[object WebAssembly.Module]"===l(e)},t.isNumberObject=C,t.isStringObject=I,t.isBooleanObject=O,t.isBigIntObject=P,t.isSymbolObject=R,t.isBoxedPrimitive=function(e){return C(e)||I(e)||O(e)||P(e)||R(e)},t.isAnyArrayBuffer=function(e){return"undefined"!==typeof Uint8Array&&(A(e)||S(e))},["isProxy","isExternal","isModuleNamespaceObject"].forEach((function(e){Object.defineProperty(t,e,{enumerable:!1,value:function(){throw new Error(e+" is not supported in userland")}})}))},13126:function(e,t,n){var r=n(33185),i=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r<t.length;r++)n[t[r]]=Object.getOwnPropertyDescriptor(e,t[r]);return n},o=/%[sdj%]/g;t.format=function(e){if(!b(e)){for(var t=[],n=0;n<arguments.length;n++)t.push(c(arguments[n]));return t.join(" ")}n=1;for(var r=arguments,i=r.length,a=String(e).replace(o,(function(e){if("%%"===e)return"%";if(n>=i)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return e}})),s=r[n];n<i;s=r[++n])v(s)||!A(s)?a+=" "+s:a+=" "+c(s);return a},t.deprecate=function(e,n){if("undefined"!==typeof r&&!0===r.noDeprecation)return e;if("undefined"===typeof r)return function(){return t.deprecate(e,n).apply(this,arguments)};var i=!1;return function(){if(!i){if(r.throwDeprecation)throw new Error(n);r.traceDeprecation?console.trace(n):console.error(n),i=!0}return e.apply(this,arguments)}};var a={},s=/^$/;if({NODE_ENV:"production",PUBLIC_URL:"/immutable/ts-immutable-sdk",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG){var u={NODE_ENV:"production",PUBLIC_URL:"/immutable/ts-immutable-sdk",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}.NODE_DEBUG;u=u.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+u+"$","i")}function c(e,n){var r={seen:[],stylize:f};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),d(r,e,r.depth)}function l(e,t){var n=c.styles[t];return n?"\x1b["+c.colors[n][0]+"m"+e+"\x1b["+c.colors[n][1]+"m":e}function f(e,t){return e}function d(e,n,r){if(e.customInspect&&n&&T(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return b(i)||(i=d(e,i,r)),i}var o=function(e,t){if(w(t))return e.stylize("undefined","undefined");if(b(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}if(g(t))return e.stylize(""+t,"number");if(y(t))return e.stylize(""+t,"boolean");if(v(t))return e.stylize("null","null")}(e,n);if(o)return o;var a=Object.keys(n),s=function(e){var t={};return e.forEach((function(e,n){t[e]=!0})),t}(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),E(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return p(n);if(0===a.length){if(T(n)){var u=n.name?": "+n.name:"";return e.stylize("[Function"+u+"]","special")}if(x(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(k(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return p(n)}var c,l="",f=!1,A=["{","}"];(m(n)&&(f=!0,A=["[","]"]),T(n))&&(l=" [Function"+(n.name?": "+n.name:"")+"]");return x(n)&&(l=" "+RegExp.prototype.toString.call(n)),k(n)&&(l=" "+Date.prototype.toUTCString.call(n)),E(n)&&(l=" "+p(n)),0!==a.length||f&&0!=n.length?r<0?x(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=f?function(e,t,n,r,i){for(var o=[],a=0,s=t.length;a<s;++a)I(t,String(a))?o.push(h(e,t,n,r,String(a),!0)):o.push("");return i.forEach((function(i){i.match(/^\d+$/)||o.push(h(e,t,n,r,i,!0))})),o}(e,n,r,s,a):a.map((function(t){return h(e,n,r,s,t,f)})),e.seen.pop(),function(e,t,n){var r=e.reduce((function(e,t){return t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1}),0);if(r>60)return n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1];return n[0]+t+" "+e.join(", ")+" "+n[1]}(c,l,A)):A[0]+l+A[1]}function p(e){return"["+Error.prototype.toString.call(e)+"]"}function h(e,t,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(t,i)||{value:t[i]}).get?s=u.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):u.set&&(s=e.stylize("[Setter]","special")),I(r,i)||(a="["+i+"]"),s||(e.seen.indexOf(u.value)<0?(s=v(n)?d(e,u.value,null):d(e,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(e){return" "+e})).join("\n").slice(2):"\n"+s.split("\n").map((function(e){return" "+e})).join("\n")):s=e.stylize("[Circular]","special")),w(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.slice(1,-1),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function m(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function v(e){return null===e}function g(e){return"number"===typeof e}function b(e){return"string"===typeof e}function w(e){return void 0===e}function x(e){return A(e)&&"[object RegExp]"===_(e)}function A(e){return"object"===typeof e&&null!==e}function k(e){return A(e)&&"[object Date]"===_(e)}function E(e){return A(e)&&("[object Error]"===_(e)||e instanceof Error)}function T(e){return"function"===typeof e}function _(e){return Object.prototype.toString.call(e)}function S(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(e){if(e=e.toUpperCase(),!a[e])if(s.test(e)){var n=r.pid;a[e]=function(){var r=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,r)}}else a[e]=function(){};return a[e]},t.inspect=c,c.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},c.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.types=n(2028),t.isArray=m,t.isBoolean=y,t.isNull=v,t.isNullOrUndefined=function(e){return null==e},t.isNumber=g,t.isString=b,t.isSymbol=function(e){return"symbol"===typeof e},t.isUndefined=w,t.isRegExp=x,t.types.isRegExp=x,t.isObject=A,t.isDate=k,t.types.isDate=k,t.isError=E,t.types.isNativeError=E,t.isFunction=T,t.isPrimitive=function(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e},t.isBuffer=n(14238);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function I(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",function(){var e=new Date,t=[S(e.getHours()),S(e.getMinutes()),S(e.getSeconds())].join(":");return[e.getDate(),C[e.getMonth()],t].join(" ")}(),t.format.apply(t,arguments))},t.inherits=n(45493),t._extend=function(e,t){if(!t||!A(t))return e;for(var n=Object.keys(t),r=n.length;r--;)e[n[r]]=t[n[r]];return e};var O="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function P(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}t.promisify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');if(O&&e[O]){var t;if("function"!==typeof(t=e[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),t}function t(){for(var t,n,r=new Promise((function(e,r){t=e,n=r})),i=[],o=0;o<arguments.length;o++)i.push(arguments[o]);i.push((function(e,r){e?n(e):t(r)}));try{e.apply(this,i)}catch(a){n(a)}return r}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),O&&Object.defineProperty(t,O,{value:t,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(t,i(e))},t.promisify.custom=O,t.callbackify=function(e){if("function"!==typeof e)throw new TypeError('The "original" argument must be of type Function');function t(){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n]);var i=t.pop();if("function"!==typeof i)throw new TypeError("The last argument must be of type Function");var o=this,a=function(){return i.apply(o,arguments)};e.apply(this,t).then((function(e){r.nextTick(a.bind(null,null,e))}),(function(e){r.nextTick(P.bind(null,e,a))}))}return Object.setPrototypeOf(t,Object.getPrototypeOf(e)),Object.defineProperties(t,i(e)),t}},58464:function(e,t,n){"use strict";var r=n(92004),i=n(95407),o=n(85677),a=n(12985),s=n(20667),u=a("Object.prototype.toString"),c=n(6484)(),l="undefined"===typeof globalThis?n.g:globalThis,f=i(),d=a("String.prototype.slice"),p=Object.getPrototypeOf,h=a("Array.prototype.indexOf",!0)||function(e,t){for(var n=0;n<e.length;n+=1)if(e[n]===t)return n;return-1},m={__proto__:null};r(f,c&&s&&p?function(e){var t=new l[e];if(Symbol.toStringTag in t){var n=p(t),r=s(n,Symbol.toStringTag);if(!r){var i=p(n);r=s(i,Symbol.toStringTag)}m["$"+e]=o(r.get)}}:function(e){var t=new l[e];m["$"+e]=o(t.slice)});e.exports=function(e){if(!e||"object"!==typeof e)return!1;if(!c){var t=d(u(e),8,-1);return h(f,t)>-1?t:"Object"===t&&function(e){var t=!1;return r(m,(function(n,r){if(!t)try{n(e),t=d(r,1)}catch(i){}})),t}(e)}return s?function(e){var t=!1;return r(m,(function(n,r){if(!t)try{"$"+n(e)===r&&(t=d(r,1))}catch(i){}})),t}(e):null}},29714:function(e){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r},e.exports.__esModule=!0,e.exports.default=e.exports},6900:function(e){e.exports=function(e){if(Array.isArray(e))return e},e.exports.__esModule=!0,e.exports.default=e.exports},17684:function(e,t,n){var r=n(29714);e.exports=function(e){if(Array.isArray(e))return r(e)},e.exports.__esModule=!0,e.exports.default=e.exports},56121:function(e){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e},e.exports.__esModule=!0,e.exports.default=e.exports},62638:function(e){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},e.exports.__esModule=!0,e.exports.default=e.exports},73994:function(e,t,n){var r=n(93494),i=n(71543);function o(t,n,a){return i()?(e.exports=o=Reflect.construct.bind(),e.exports.__esModule=!0,e.exports.default=e.exports):(e.exports=o=function(e,t,n){var i=[null];i.push.apply(i,t);var o=new(Function.bind.apply(e,i));return n&&r(o,n.prototype),o},e.exports.__esModule=!0,e.exports.default=e.exports),o.apply(null,arguments)}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},1023:function(e,t,n){var r=n(96174);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,r(i.key),i)}}e.exports=function(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e},e.exports.__esModule=!0,e.exports.default=e.exports},14759:function(e,t,n){var r=n(69563);e.exports=function(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=r(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}},e.exports.__esModule=!0,e.exports.default=e.exports},72077:function(e,t,n){var r=n(94692),i=n(71543),o=n(3310);e.exports=function(e){var t=i();return function(){var n,i=r(e);if(t){var a=r(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return o(this,n)}},e.exports.__esModule=!0,e.exports.default=e.exports},93213:function(e,t,n){var r=n(96174);e.exports=function(e,t,n){return(t=r(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},94692:function(e){function t(n){return e.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},40126:function(e,t,n){var r=n(93494);e.exports=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r(e,t)},e.exports.__esModule=!0,e.exports.default=e.exports},2298:function(e){e.exports=function(e){return-1!==Function.toString.call(e).indexOf("[native code]")},e.exports.__esModule=!0,e.exports.default=e.exports},71543:function(e){e.exports=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}},e.exports.__esModule=!0,e.exports.default=e.exports},84159:function(e){e.exports=function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)},e.exports.__esModule=!0,e.exports.default=e.exports},96313:function(e){e.exports=function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}},e.exports.__esModule=!0,e.exports.default=e.exports},45171:function(e){e.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},53784:function(e){e.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},e.exports.__esModule=!0,e.exports.default=e.exports},3310:function(e,t,n){var r=n(8114).default,i=n(56121);e.exports=function(e,t){if(t&&("object"===r(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i(e)},e.exports.__esModule=!0,e.exports.default=e.exports},39649:function(e,t,n){var r=n(8114).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function f(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{f({},"")}catch(P){f=function(e,t,n){return e[t]=n}}function d(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),s=new C(r||[]);return a(o,"_invoke",{value:E(e,n,s)}),o}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(P){return{type:"throw",arg:P}}}t.wrap=d;var h={};function m(){}function y(){}function v(){}var g={};f(g,u,(function(){return this}));var b=Object.getPrototypeOf,w=b&&b(b(I([])));w&&w!==n&&o.call(w,u)&&(g=w);var x=v.prototype=m.prototype=Object.create(g);function A(e){["next","throw","return"].forEach((function(t){f(e,t,(function(e){return this._invoke(t,e)}))}))}function k(e,t){function n(i,a,s,u){var c=p(e[i],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==r(f)&&o.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function E(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return O()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=T(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=p(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function T(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,T(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function I(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:O}}function O(){return{value:void 0,done:!0}}return y.prototype=v,a(x,"constructor",{value:v,configurable:!0}),a(v,"constructor",{value:y,configurable:!0}),y.displayName=f(v,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,v):(e.__proto__=v,f(e,l,"GeneratorFunction")),e.prototype=Object.create(x),e},t.awrap=function(e){return{__await:e}},A(k.prototype),f(k.prototype,c,(function(){return this})),t.AsyncIterator=k,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new k(d(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},A(x),f(x,l,"Generator"),f(x,u,(function(){return this})),f(x,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},93494:function(e){function t(n,r){return e.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n,r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},98371:function(e,t,n){var r=n(6900),i=n(96313),o=n(69563),a=n(45171);e.exports=function(e,t){return r(e)||i(e,t)||o(e,t)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},86764:function(e,t,n){var r=n(6900),i=n(84159),o=n(69563),a=n(45171);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},40299:function(e,t,n){var r=n(17684),i=n(84159),o=n(69563),a=n(53784);e.exports=function(e){return r(e)||i(e)||o(e)||a()},e.exports.__esModule=!0,e.exports.default=e.exports},27662:function(e,t,n){var r=n(8114).default;e.exports=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)},e.exports.__esModule=!0,e.exports.default=e.exports},96174:function(e,t,n){var r=n(8114).default,i=n(27662);e.exports=function(e){var t=i(e,"string");return"symbol"===r(t)?t:String(t)},e.exports.__esModule=!0,e.exports.default=e.exports},8114:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},69563:function(e,t,n){var r=n(29714);e.exports=function(e,t){if(e){if("string"===typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(e,t):void 0}},e.exports.__esModule=!0,e.exports.default=e.exports},17164:function(e,t,n){var r=n(94692),i=n(93494),o=n(2298),a=n(73994);function s(t){var n="function"===typeof Map?new Map:void 0;return e.exports=s=function(e){if(null===e||!o(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof n){if(n.has(e))return n.get(e);n.set(e,t)}function t(){return a(e,arguments,r(this).constructor)}return t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i(t,e)},e.exports.__esModule=!0,e.exports.default=e.exports,s(t)}e.exports=s,e.exports.__esModule=!0,e.exports.default=e.exports},95407:function(e,t,n){"use strict";var r=["BigInt64Array","BigUint64Array","Float32Array","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray"],i="undefined"===typeof globalThis?n.g:globalThis;e.exports=function(){for(var e=[],t=0;t<r.length;t++)"function"===typeof i[r[t]]&&(e[e.length]=r[t]);return e}},37017:function(e,t,n){"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:function(){return r}})},77325:function(e,t,n){"use strict";function r(e){if(Array.isArray(e))return e}n.d(t,{Z:function(){return r}})},93173:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},18950:function(e,t,n){"use strict";function r(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(c){return void n(c)}s.done?t(u):Promise.resolve(u).then(r,i)}function i(e){return function(){var t=this,n=arguments;return new Promise((function(i,o){var a=e.apply(t,n);function s(e){r(a,i,o,s,u,"next",e)}function u(e){r(a,i,o,s,u,"throw",e)}s(void 0)}))}}n.d(t,{Z:function(){return i}})},8821:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return r}})},85169:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(63525);function i(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,(0,r.Z)(i.key),i)}}function o(e,t,n){return t&&i(e.prototype,t),n&&i(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}},51212:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(49139);function i(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=(0,r.Z)(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var i=0,o=function(){};return{s:o,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,a=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw a}}}}},8416:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(2312),i=n(91578),o=n(17245);function a(e){var t=(0,i.Z)();return function(){var n,i=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(i,arguments,a)}else n=i.apply(this,arguments);return(0,o.Z)(this,n)}}},47169:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(63525);function i(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},69803:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(2312);function i(){return i="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=(0,r.Z)(e)););return e}(e,t);if(i){var o=Object.getOwnPropertyDescriptor(i,t);return o.get?o.get.call(arguments.length<3?e:n):o.value}},i.apply(this,arguments)}},2312:function(e,t,n){"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:function(){return r}})},82248:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(45901);function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},91578:function(e,t,n){"use strict";function r(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:function(){return r}})},28791:function(e,t,n){"use strict";function r(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:function(){return r}})},69656:function(e,t,n){"use strict";function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:function(){return r}})},37755:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(47169);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},17245:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(36655),i=n(93173);function o(e,t){if(t&&("object"===(0,r.Z)(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,i.Z)(e)}},46999:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(36655);function i(){i=function(){return e};var e={},t=Object.prototype,n=t.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{l({},"")}catch(O){l=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof h?t:h,a=Object.create(i.prototype),s=new S(r||[]);return o(a,"_invoke",{value:k(e,n,s)}),a}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(O){return{type:"throw",arg:O}}}e.wrap=f;var p={};function h(){}function m(){}function y(){}var v={};l(v,s,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(C([])));b&&b!==t&&n.call(b,s)&&(v=b);var w=y.prototype=h.prototype=Object.create(v);function x(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function A(e,t){function i(o,a,s,u){var c=d(e[o],e,a);if("throw"!==c.type){var l=c.arg,f=l.value;return f&&"object"==(0,r.Z)(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){i("next",e,s,u)}),(function(e){i("throw",e,s,u)})):t.resolve(f).then((function(e){l.value=e,s(l)}),(function(e){return i("throw",e,s,u)}))}u(c.arg)}var a;o(this,"_invoke",{value:function(e,n){function r(){return new t((function(t,r){i(e,n,t,r)}))}return a=a?a.then(r,r):r()}})}function k(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return I()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===p)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),p;var i=d(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,p;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,p):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,p)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function _(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function S(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function C(e){if(e){var t=e[s];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r<e.length;)if(n.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:I}}function I(){return{value:void 0,done:!0}}return m.prototype=y,o(w,"constructor",{value:y,configurable:!0}),o(y,"constructor",{value:m,configurable:!0}),m.displayName=l(y,c,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,l(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},x(A.prototype),l(A.prototype,u,(function(){return this})),e.AsyncIterator=A,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new A(f(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},x(w),l(w,c,"Generator"),l(w,s,(function(){return this})),l(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},e.values=C,S.prototype={constructor:S,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(_),!e)for(var t in this)"t"===t.charAt(0)&&n.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(s){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,p):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),p},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),_(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;_(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:C(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}},45901:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},72771:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(77325);var i=n(49139),o=n(69656);function a(e,t){return(0,r.Z)(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(l){c=!0,i=l}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(e,t)||(0,i.Z)(e,t)||(0,o.Z)()}},74708:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(37017);var i=n(28791),o=n(49139);function a(e){return function(e){if(Array.isArray(e))return(0,r.Z)(e)}(e)||(0,i.Z)(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},63525:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(36655);function i(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==(0,r.Z)(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},36655:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},49139:function(e,t,n){"use strict";n.d(t,{Z:function(){return i}});var r=n(37017);function i(e,t){if(e){if("string"===typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}},78192:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var r=n(2312),i=n(45901);var o=n(91578);function a(e,t,n){return a=(0,o.Z)()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var o=new(Function.bind.apply(e,r));return n&&(0,i.Z)(o,n.prototype),o},a.apply(null,arguments)}function s(e){var t="function"===typeof Map?new Map:void 0;return s=function(e){if(null===e||(n=e,-1===Function.toString.call(n).indexOf("[native code]")))return e;var n;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,o)}function o(){return a(e,arguments,(0,r.Z)(this).constructor)}return o.prototype=Object.create(e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),(0,i.Z)(o,e)},s(e)}},38339:function(e,t,n){"use strict";n.d(t,{Ai:function(){return p},I:function(){return v},Wp:function(){return g},Zh:function(){return h},qK:function(){return m},ue:function(){return p}});var r=n(59066),i={size:{600:"6px",500:"5px",400:"4px",300:"3px",200:"2px",100:"1px"}},o={size:{600:"64px",500:"48px",400:"32px",300:"24px",250:"20px",200:"16px",100:"12px"}},a={family:{heading:{primary:"'Suisse-Intl', sans-serif",secondary:"'Suisse-Intl', sans-serif"},body:{primary:"'Roboto', sans-serif",secondary:"'Roboto Mono', monospace"}},decoration:{underline:"underline",lineThrough:"line-through",none:"none"},casing:{uppercase:"uppercase",none:"none"}},s={body:{large:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:400},bold:{fontWeight:500}},medium:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:400},bold:{fontWeight:500}},small:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400},bold:{fontWeight:700}},xSmall:{regular:{fontSize:"12px",lineHeight:"16px",fontWeight:400},bold:{fontWeight:700}},xxSmall:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400},bold:{fontWeight:700}}},caption:{medium:{regular:{fontSize:"14px",lineHeight:"20px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"14px",lineHeight:"20px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}},small:{regular:{fontSize:"10px",lineHeight:"14px",fontWeight:400,casing:"uppercase",letterSpacing:"2px"},bold:{fontSize:"10px",lineHeight:"14px",fontWeight:700,casing:"uppercase",letterSpacing:"2px"}}},heading:{xxLarge:{regular:{fontSize:"96px",lineHeight:"112px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xLarge:{regular:{fontSize:"64px",lineHeight:"72px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},large:{regular:{fontSize:"40px",lineHeight:"48px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},medium:{regular:{fontSize:"28px",lineHeight:"32px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},small:{regular:{fontSize:"20px",lineHeight:"28px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}},xSmall:{regular:{fontSize:"16px",lineHeight:"24px",fontWeight:600},light:{fontWeight:400},bold:{fontWeight:700}}}},u={x1:"4px",x2:"8px",x3:"12px",x4:"16px",x5:"20px",x6:"24px",x7:"28px",x8:"32px",x9:"36px",x10:"40px",x11:"44px",x12:"48px",x13:"52px",x14:"56px",x15:"60px",x16:"64px",x17:"68px",x18:"72px",x19:"76px",x20:"80px",x21:"84px",x22:"88px",x23:"92px",x24:"96px",x25:"100px",x26:"104px",x27:"108px",x28:"112px",x29:"116px",x30:"120px",x31:"124px",x32:"128px",x33:"132px",x34:"136px",x35:"140px",x36:"144px",x37:"148px",x38:"152px",x39:"156px",x40:"160px",x41:"164px",x42:"168px",x43:"172px",x44:"176px",x45:"180px",x46:"184px",x47:"188px",x48:"192px",x49:"196px",x50:"200px"},c={x1:"2px",x2:"4px",x3:"6px",x4:"8px",x5:"10px",x6:"12px",x7:"14px",x8:"16px",x9:"18px",x10:"20px",x11:"22px",x12:"24px",x13:"26px",x14:"28px",x15:"30px",x16:"32px",x17:"34px",x18:"36px",x19:"38px",x20:"40px",x21:"42px",x22:"44px",x23:"46px",x24:"48px",x25:"50px"},l={small:450,medium:768,large:1024,xLarge:1280,xxLarge:1536,xxxLarge:1920},f={tooltip:11,popover:10,modal:9,bottomSheet:8},d={normal:{gentle:{cssDuration:"0.4s",jsDuration:.4,cssEase:"ease-in-out",jsEase:"easeInOut"},fast:{cssDuration:"0.25s",jsDuration:.25,cssEase:"ease-in-out",jsEase:"easeInOut"}},bounce:{gentle:{cssDuration:"0.6s",jsDuration:.6,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]},fast:{cssDuration:"0.45s",jsDuration:.45,cssEase:"cubic-bezier(0.47, 1.74, 0.41, 0.8)",jsEase:[.47,1.74,.41,.8]}}},p={colorMode:"darkOnLight",color:{brand:{1:"#131313",2:"#FFFFFF",3:"#E0E0E0",4:"#868686",5:"#36E0F8",6:"#1F8290"},neutral:{1e3:"#ECECEC",900:"#F0F0F0",800:"#F5F5F5",700:"#FAFAFA",600:"#FDFDFD",500:"#FFFFFF"},accent:{1:"#B026BD",2:"#1FD3F5",3:"#67C6E0",4:"#5AA0D9",5:"#8395E5",6:"#D8EFF4",7:"#F5BDD0",8:"#EC98CA"},translucent:{emphasis:{500:"#FFFFFFF5",400:"#FFFFFFE0",300:"#FFFFFFCC",200:"#FFFFFFA3",100:"#FFFFFF7A"},standard:{1e3:"#0D0D0DFF",900:"#0D0D0DE6",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D14",100:"#0D0D0D0A"},inverse:{1e3:"#FFFFFFFF",900:"#FFFFFFE6",800:"#FFFFFFCC",700:"#FFFFFFA3",600:"#FFFFFF7A",500:"#FFFFFF3D",400:"#FFFFFF29",300:"#FFFFFF1F",200:"#FFFFFF14",100:"#FFFFFF0A"}},status:{guidance:{bright:"#36E0F8",dim:"#9AEFFB"},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FBFF6D",dim:"#FCFEBF"},fatal:{bright:"#FF637F",dim:"#FFB1BF"},destructive:{bright:"#E01A3D",dim:"#FF637F"}},text:{primary:"base.color.brand.1",secondary:"#5C5C5C",link:{primary:"base.color.accent.1",secondary:"base.color.brand.1"},inverse:{primary:"base.color.brand.2",secondary:"base.color.brand.3"}}},gradient:{1:{spectrum:"linear-gradient(90.68deg, #F191FA 0%, #83E3F0 99.82%)",blendMode:"normal",svgDefs:'<linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#F191FA" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'<radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'<radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 8px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"},spacing:u,borderRadius:c,font:a,text:s,breakpoint:l,icon:o,border:i,zLevel:f,motion:d},h={colorMode:"lightOnDark",color:{brand:{1:"#F3F3F3",2:"#131313",3:"#E0E0E0",4:"#B6B6B6",5:"#36E0F8",6:"#1F8290"},neutral:{500:"#575757",600:"#444444",700:"#323232",800:"#1F1F1F",900:"#131313",1e3:"#0D0D0D"},accent:{1:"#F191FA",2:"#36E0F8",3:"#6FD6F2",4:"#61ADEB",5:"#99A8EA",6:"#E4F4F7",7:"#F8D1DE",8:"#F2B7DA"},translucent:{emphasis:{500:"#F3F3F333",400:"#F3F3F329",300:"#F3F3F31F",200:"#F3F3F314",100:"#F3F3F30A"},standard:{1e3:"#F3F3F3FF",900:"#F3F3F3E6",800:"#F3F3F3CC",700:"#F3F3F3A3",600:"#F3F3F37A",500:"#F3F3F33D",400:"#F3F3F329",300:"#F3F3F31F",200:"#F3F3F314",100:"#F3F3F30A"},inverse:{1e3:"#0D0D0DFF",900:"#0D0D0DE6",800:"#0D0D0DCC",700:"#0D0D0DA3",600:"#0D0D0D7A",500:"#0D0D0D3D",400:"#0D0D0D29",300:"#0D0D0D1F",200:"#0D0D0D14",100:"#0D0D0D0A"}},status:{guidance:{bright:"#36E0F8",dim:"#94E9F5 "},success:{bright:"#ABF790",dim:"#D5FAC7"},attention:{bright:"#FAFD7E",dim:"#F6F8B9"},fatal:{bright:"#FF637F",dim:"#F9ABB9"},destructive:{bright:"#E01A3D",dim:"#FF637F"}},text:{primary:"base.color.brand.1",secondary:"base.color.brand.4",link:{primary:"base.color.accent.1",secondary:"base.color.brand.1"},inverse:{primary:"base.color.brand.2",secondary:"#464646"}}},gradient:{1:{spectrum:"linear-gradient(105.76deg, #F191FA -46.96%, #83E3F0 99.99%)",blendMode:"normal",svgDefs:'\n <linearGradient id="gradient-1-singleLayer" x1="0" y1="0" x2="24" y2="0.214702"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#C9A2F6" />\n <stop offset="1" stop-color="#83E3F0" />\n </linearGradient>',svgDefIds:"gradient-1-singleLayer"},2:{spectrum:"radial-gradient(96.87% 65.57% at 54.34% 93.79%, #FCF5EE 0%, rgba(236, 190, 225, 0) 71.51%), radial-gradient(73.48% 242.97% at 26.54% 26.42%, #A3EEF8 0%, #A4DCF5 17.71%, #A6AEEC 38.02%, #ECBEE1 100%)",blendMode:"normal, normal",svgDefs:'\n <radialGradient id="gradient-2-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.7777 4.75595) rotate(44.9817) scale(18.6995 39.6574)">\n <stop stop-color="#A3EEF8" />\n <stop offset="0.177083" stop-color="#A4DCF5" />\n <stop offset="0.380208" stop-color="#A6AEEC" />\n <stop offset="1" stop-color="#ECBEE1" />\n </radialGradient>\n <radialGradient id="gradient-2-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(9.7806 16.8827) rotate(84.265) scale(9.68552 18.5286)">\n <stop stop-color="#FCF5EE" />\n <stop offset="0.715135" stop-color="#ECBEE1" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-2-bottomLayer, gradient-2-topLayer"},3:{spectrum:"radial-gradient(100% 100% at 24.5% 100%, rgba(106, 160, 242, 0.9) 0%, rgba(198, 229, 247, 0) 100%), linear-gradient(81.66deg, rgba(124, 246, 251, 0.48) 9.38%, rgba(254, 253, 248, 0.7) 98.47%), radial-gradient(4009.6% 10453.55% at 0% 0%, #7EF8FE 0%, #7ABFEC 30.21%, #AEC3ED 45.54%, #DEF3F6 61.46%, #FAF9F3 100%)",blendMode:"normal, normal, normal",svgDefs:'\n <radialGradient id="gradient-3-bottomLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="rotate(60.6728) scale(36.75 1550.85)">\n <stop stop-color="#7EF8FE" />\n <stop offset="0.302083" stop-color="#7ABFEC" />\n <stop offset="0.455396" stop-color="#AEC3ED" />\n <stop offset="0.614583" stop-color="#DEF3F6" />\n <stop offset="1" stop-color="#FAF9F3" />\n </radialGradient>\n <linearGradient id="gradient-3-middleLayer" x1="-1.26123e-07" y1="4.8" x2="24" y2="2.16"\n gradientUnits="userSpaceOnUse">\n <stop stop-color="#7CF6FB" stop-opacity="0.48" />\n <stop offset="1" stop-color="#FEFDF8" stop-opacity="0.7" />\n </linearGradient>\n <radialGradient id="gradient-3-topLayer" cx="0" cy="0" r="1" gradientUnits="userSpaceOnUse"\n gradientTransform="translate(4.41 18) rotate(-52.9472) scale(22.5541)">\n <stop stop-color="#6AA0F2" />\n <stop offset="1" stop-color="#C6E5F7" stop-opacity="0" />\n </radialGradient>',svgDefIds:"gradient-3-bottomLayer,\n gradient-3-middleLayer,\n gradient-3-topLayer"}},shadow:{100:"0px 1px 2px rgba(0, 0, 0, 0.16), 0px 1px 4px 1px rgba(0, 0, 0, 0.32)",200:"0px 2px 6px 2px rgba(0, 0, 0, 0.16), 0px 1px 2px rgba(0, 0, 0, 0.32)",300:"0px 4px 8px 4px rgba(0, 0, 0, 0.16), 0px 1px 4px rgba(0, 0, 0, 0.32)",400:"0px 6px 10px 4px rgba(0, 0, 0, 0.16), 0px 2px 4px rgba(0, 0, 0, 0.32)",500:"0px 8px 12px 6px rgba(0, 0, 0, 0.16), 0px 4px 4px rgba(0, 0, 0, 0.32)"},spacing:u,borderRadius:c,font:a,text:s,breakpoint:l,icon:o,border:i,zLevel:f,motion:d};function m(e){return"string"!=typeof e&&"number"!=typeof e&&!Array.isArray(e)&&null!=e}var y=function(e,t){return r(e,t)};function v(e,t){var n=y(e,t);return"string"==typeof n&&n.match(/^base./)&&(n=v(e,n)),n}var g={base:p}},50940:function(e,t,n){"use strict";n.d(t,{fU:function(){return Wh},mD:function(){return ap},Ac:function(){return Ld},jU:function(){return zd},uT:function(){return zf},R1:function(){return ch},xu:function(){return dl},iv:function(){return Ef},zx:function(){return kf},iz:function(){return mp},Ee:function(){return wm},NI:function(){return wy},fP:function(){return Qp},X6:function(){return Vf},AG:function(){return Cy},JO:function(){return El},rU:function(){return id},TR:function(){return xf},sN:function(){return bh},gi:function(){return qd},Wx:function(){return Em},nk:function(){return ed},OC:function(){return ny},oi:function(){return Wm},Cs:function(){return _c}});var r=n(8821),i=n(85169),o=n(93173),a=n(82248),s=n(8416);function u(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var c=n(46999),l=n(74708),f=n(77325),d=n(28791),p=n(49139),h=n(69656);var m=n(47169),y=n(72771),v=n(51212),g=n(65535),b=n.t(g,2),w=function(e){if("object"===typeof e&&null!==e){if("function"===typeof Object.getPrototypeOf){var t=Object.getPrototypeOf(e);return t===Object.prototype||null===t}return"[object Object]"===Object.prototype.toString.call(e)}return!1},x=function e(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return n.reduce((function(t,n){if(Array.isArray(n))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(n).forEach((function(r){["__proto__","constructor","prototype"].includes(r)||(Array.isArray(t[r])&&Array.isArray(n[r])?t[r]=e.options.mergeArrays?e.options.uniqueArrayItems?Array.from(new Set(t[r].concat(n[r]))):[].concat((0,l.Z)(t[r]),(0,l.Z)(n[r])):n[r]:w(t[r])&&w(n[r])?t[r]=e(t[r],n[r]):t[r]=void 0===n[r]?e.options.allowUndefinedOverrides?n[r]:t[r]:n[r])})),t}),{})},A={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};x.options=A,x.withOptions=function(e){x.options=Object.assign(Object.assign({},A),e);for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var i=x.apply(void 0,n);return x.options=A,i};var k=x,E=n(38339);var T=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(hc){0}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),_=Math.abs,S=String.fromCharCode,C=Object.assign;function I(e){return e.trim()}function O(e,t,n){return e.replace(t,n)}function P(e,t){return e.indexOf(t)}function R(e,t){return 0|e.charCodeAt(t)}function M(e,t,n){return e.slice(t,n)}function B(e){return e.length}function N(e){return e.length}function F(e,t){return t.push(e),e}var D=1,L=1,z=0,j=0,U=0,Z="";function q(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:D,column:L,length:a,return:""}}function H(e,t){return C(q("",null,null,"",null,null,0),e,{length:-e.length},t)}function V(){return U=j>0?R(Z,--j):0,L--,10===U&&(L=1,D--),U}function G(){return U=j<z?R(Z,j++):0,L++,10===U&&(L=1,D++),U}function W(){return R(Z,j)}function K(){return j}function J(e,t){return M(Z,e,t)}function X(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Y(e){return D=L=1,z=B(Z=e),j=0,[]}function $(e){return Z="",e}function Q(e){return I(J(j-1,ne(91===e?e+2:40===e?e+1:e)))}function ee(e){for(;(U=W())&&U<33;)G();return X(e)>2||X(U)>3?"":" "}function te(e,t){for(;--t&&G()&&!(U<48||U>102||U>57&&U<65||U>70&&U<97););return J(e,K()+(t<6&&32==W()&&32==G()))}function ne(e){for(;G();)switch(U){case e:return j;case 34:case 39:34!==e&&39!==e&&ne(U);break;case 40:41===e&&ne(e);break;case 92:G()}return j}function re(e,t){for(;G()&&e+U!==57&&(e+U!==84||47!==W()););return"/*"+J(t,j-1)+"*"+S(47===e?e:G())}function ie(e){for(;!X(W());)G();return J(e,j)}var oe="-ms-",ae="-moz-",se="-webkit-",ue="comm",ce="rule",le="decl",fe="@keyframes";function de(e,t){for(var n="",r=N(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function pe(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case le:return e.return=e.return||e.value;case ue:return"";case fe:return e.return=e.value+"{"+de(e.children,r)+"}";case ce:e.value=e.props.join(",")}return B(n=de(e.children,r))?e.return=e.value+"{"+n+"}":""}function he(e){return $(me("",null,null,null,[""],e=Y(e),0,[0],e))}function me(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,f=a,d=0,p=0,h=0,m=1,y=1,v=1,g=0,b="",w=i,x=o,A=r,k=b;y;)switch(h=g,g=G()){case 40:if(108!=h&&58==R(k,f-1)){-1!=P(k+=O(Q(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Q(g);break;case 9:case 10:case 13:case 32:k+=ee(h);break;case 92:k+=te(K()-1,7);continue;case 47:switch(W()){case 42:case 47:F(ve(re(G(),K()),t,n),u);break;default:k+="/"}break;case 123*m:s[c++]=B(k)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+l:-1==v&&(k=O(k,/\f/g,"")),p>0&&B(k)-f&&F(p>32?ge(k+";",r,n,f-1):ge(O(k," ","")+";",r,n,f-2),u);break;case 59:k+=";";default:if(F(A=ye(k,t,n,c,l,i,s,b,w=[],x=[],f),o),123===g)if(0===l)me(k,t,A,A,w,o,f,s,x);else switch(99===d&&110===R(k,3)?100:d){case 100:case 108:case 109:case 115:me(e,A,A,r&&F(ye(e,A,A,0,0,i,s,b,i,w=[],f),x),i,x,f,s,r?w:x);break;default:me(k,A,A,A,[""],x,0,s,x)}}c=l=p=0,m=v=1,b=k="",f=a;break;case 58:f=1+B(k),p=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==V())continue;switch(k+=S(g),g*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[c++]=(B(k)-1)*v,v=1;break;case 64:45===W()&&(k+=Q(G())),d=W(),l=f=B(b=k+=ie(K())),g++;break;case 45:45===h&&2==B(k)&&(m=0)}}return o}function ye(e,t,n,r,i,o,a,s,u,c,l){for(var f=i-1,d=0===i?o:[""],p=N(d),h=0,m=0,y=0;h<r;++h)for(var v=0,g=M(e,f+1,f=_(m=a[h])),b=e;v<p;++v)(b=I(m>0?d[v]+" "+g:O(g,/&\f/g,d[v])))&&(u[y++]=b);return q(e,t,n,0===i?ce:s,u,c,l)}function ve(e,t,n){return q(e,t,n,ue,S(U),M(e,2,-2),0)}function ge(e,t,n,r){return q(e,t,n,le,M(e,0,r),M(e,r+1,-1),r)}var be=function(e,t,n){for(var r=0,i=0;r=i,i=W(),38===r&&12===i&&(t[n]=1),!X(i);)G();return J(e,j)},we=function(e,t){return $(function(e,t){var n=-1,r=44;do{switch(X(r)){case 0:38===r&&12===W()&&(t[n]=1),e[n]+=be(j-1,t,n);break;case 2:e[n]+=Q(r);break;case 4:if(44===r){e[++n]=58===W()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=S(r)}}while(r=G());return e}(Y(e),t))},xe=new WeakMap,Ae=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||xe.get(n))&&!r){xe.set(e,!0);for(var i=[],o=we(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},ke=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function Ee(e,t){switch(function(e,t){return 45^R(e,0)?(((t<<2^R(e,0))<<2^R(e,1))<<2^R(e,2))<<2^R(e,3):0}(e,t)){case 5103:return se+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return se+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return se+e+ae+e+oe+e+e;case 6828:case 4268:return se+e+oe+e+e;case 6165:return se+e+oe+"flex-"+e+e;case 5187:return se+e+O(e,/(\w+).+(:[^]+)/,se+"box-$1$2"+oe+"flex-$1$2")+e;case 5443:return se+e+oe+"flex-item-"+O(e,/flex-|-self/,"")+e;case 4675:return se+e+oe+"flex-line-pack"+O(e,/align-content|flex-|-self/,"")+e;case 5548:return se+e+oe+O(e,"shrink","negative")+e;case 5292:return se+e+oe+O(e,"basis","preferred-size")+e;case 6060:return se+"box-"+O(e,"-grow","")+se+e+oe+O(e,"grow","positive")+e;case 4554:return se+O(e,/([^-])(transform)/g,"$1"+se+"$2")+e;case 6187:return O(O(O(e,/(zoom-|grab)/,se+"$1"),/(image-set)/,se+"$1"),e,"")+e;case 5495:case 3959:return O(e,/(image-set\([^]*)/,se+"$1$`$1");case 4968:return O(O(e,/(.+:)(flex-)?(.*)/,se+"box-pack:$3"+oe+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+se+e+e;case 4095:case 3583:case 4068:case 2532:return O(e,/(.+)-inline(.+)/,se+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(B(e)-1-t>6)switch(R(e,t+1)){case 109:if(45!==R(e,t+4))break;case 102:return O(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+ae+(108==R(e,t+3)?"$3":"$2-$3"))+e;case 115:return~P(e,"stretch")?Ee(O(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==R(e,t+1))break;case 6444:switch(R(e,B(e)-3-(~P(e,"!important")&&10))){case 107:return O(e,":",":"+se)+e;case 101:return O(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(45===R(e,14)?"inline-":"")+"box$3$1"+se+"$2$3$1"+oe+"$2box$3")+e}break;case 5936:switch(R(e,t+11)){case 114:return se+e+oe+O(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+oe+O(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+oe+O(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+oe+e+e}return e}var Te=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case le:e.return=Ee(e.value,e.length);break;case fe:return de([H(e,{value:O(e.value,"@","@"+se)})],r);case ce:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=t.exec(e))?e[0]:e}(t,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return de([H(e,{props:[O(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return de([H(e,{props:[O(t,/:(plac\w+)/,":"+se+"input-$1")]}),H(e,{props:[O(t,/:(plac\w+)/,":-moz-$1")]}),H(e,{props:[O(t,/:(plac\w+)/,oe+"input-$1")]})],r)}return""}))}}],_e=function(e){var t=e.key;if("css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||Te;var i,o,a={},s=[];i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)}));var u,c,l=[pe,(c=function(e){u.insert(e)},function(e){e.root||(e=e.return)&&c(e)})],f=function(e){var t=N(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}([Ae,ke].concat(r,l));o=function(e,t,n,r){u=n,de(he(e?e+"{"+t.styles+"}":t.styles),f),r&&(d.inserted[t.name]=!0)};var d={key:t,sheet:new T({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return d.sheet.hydrate(s),d};function Se(){return Se=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Se.apply(this,arguments)}var Ce=function(e){var t=new WeakMap;return function(n){if(t.has(n))return t.get(n);var r=e(n);return t.set(n,r),r}};function Ie(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}var Oe=function(e,t,n){var r=e.key+"-"+t.name;!1===n&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},Pe=function(e,t,n){Oe(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i=t;do{e.insert(t===i?"."+r:"",i,e.sheet,!0),i=i.next}while(void 0!==i)}};var Re={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Me(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var Be=/[A-Z]|^ms/g,Ne=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Fe=function(e){return 45===e.charCodeAt(1)},De=function(e){return null!=e&&"boolean"!==typeof e},Le=Me((function(e){return Fe(e)?e:e.replace(Be,"-$&").toLowerCase()})),ze=function(e,t){switch(e){case"animation":case"animationName":if("string"===typeof t)return t.replace(Ne,(function(e,t,n){return Ue={name:t,styles:n,next:Ue},t}))}return 1===Re[e]||Fe(e)||"number"!==typeof t||0===t?t:t+"px"};function je(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Ue={name:n.name,styles:n.styles,next:Ue},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Ue={name:r.name,styles:r.styles,next:Ue},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=je(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!==typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":De(a)&&(r+=Le(o)+":"+ze(o,a)+";");else if(!Array.isArray(a)||"string"!==typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=je(e,t,a);switch(o){case"animation":case"animationName":r+=Le(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)De(a[u])&&(r+=Le(o)+":"+ze(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Ue,o=n(e);return Ue=i,je(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Ue,Ze=/label:\s*([^\s;\n{]+)\s*(;|$)/g;var qe=function(e,t,n){if(1===e.length&&"object"===typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Ue=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=je(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=je(n,t,e[a]),r&&(i+=o[a]);Ze.lastIndex=0;for(var s,u="";null!==(s=Ze.exec(i));)u+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:c,styles:i,next:Ue}},He=!!b.useInsertionEffect&&b.useInsertionEffect,Ve=He||function(e){return e()},Ge=He||g.useLayoutEffect,We={}.hasOwnProperty,Ke=g.createContext("undefined"!==typeof HTMLElement?_e({key:"css"}):null);Ke.Provider;var Je=function(e){return(0,g.forwardRef)((function(t,n){var r=(0,g.useContext)(Ke);return e(t,r,n)}))};var Xe=g.createContext({});var Ye=function(){return g.useContext(Xe)},$e=Ce((function(e){return Ce((function(t){return function(e,t){return"function"===typeof t?t(e):Se({},e,t)}(e,t)}))})),Qe=function(e){var t=g.useContext(Xe);return e.theme!==t&&(t=$e(t)(e.theme)),g.createElement(Xe.Provider,{value:t},e.children)};var et="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",tt=function(e,t){var n={};for(var r in t)We.call(t,r)&&(n[r]=t[r]);return n[et]=e,n},nt=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return Oe(t,n,r),Ve((function(){return Pe(t,n,r)})),null},rt=Je((function(e,t,n){var r=e.css;"string"===typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[et],o=[r],a="";"string"===typeof e.className?a=Ie(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=qe(o,void 0,g.useContext(Xe));a+=t.key+"-"+s.name;var u={};for(var c in e)We.call(e,c)&&"css"!==c&&c!==et&&(u[c]=e[c]);return u.ref=n,u.className=a,g.createElement(g.Fragment,null,g.createElement(nt,{cache:t,serialized:s,isStringTag:"string"===typeof i}),g.createElement(i,u))}));var it=rt,ot=(n(32185),function(e,t){var n=arguments;if(null==t||!We.call(t,"css"))return g.createElement.apply(void 0,n);var r=n.length,i=new Array(r);i[0]=it,i[1]=tt(e,t);for(var o=2;o<r;o++)i[o]=n[o];return g.createElement.apply(null,i)}),at=Je((function(e,t){var n=e.styles,r=qe([n],void 0,g.useContext(Xe)),i=g.useRef();return Ge((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),o=!1,a=document.querySelector('style[data-emotion="'+e+" "+r.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==a&&(o=!0,a.setAttribute("data-emotion",e),n.hydrate([a])),i.current=[n,o],function(){n.flush()}}),[t]),Ge((function(){var e=i.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==r.next&&Pe(t,r.next,!0),n.tags.length){var o=n.tags[n.tags.length-1].nextElementSibling;n.before=o,n.flush()}t.insert("",r,n,!1)}}),[t,r.name]),null}));function st(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return qe(t)}var ut=function(){var e=st.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},ct=function e(t){for(var n=t.length,r=0,i="";r<n;r++){var o=t[r];if(null!=o){var a=void 0;switch(typeof o){case"boolean":break;case"object":if(Array.isArray(o))a=e(o);else for(var s in a="",o)o[s]&&s&&(a&&(a+=" "),a+=s);break;default:a=o}a&&(i&&(i+=" "),i+=a)}}return i};var lt=function(e){var t=e.cache,n=e.serializedArr;return Ve((function(){for(var e=0;e<n.length;e++)Pe(t,n[e],!1)})),null},ft=Je((function(e,t){var n=[],r=function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];var o=qe(r,t.registered);return n.push(o),Oe(t,o,!1),t.key+"-"+o.name},i={css:r,cx:function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return function(e,t,n){var r=[],i=Ie(e,r,n);return r.length<2?n:i+t(r)}(t.registered,r,ct(n))},theme:g.useContext(Xe)},o=e.children(i);return!0,g.createElement(g.Fragment,null,g.createElement(lt,{cache:t,serializedArr:n}),o)}));var dt=n(24747),pt=n(90942),ht=n(10256),mt=ht.Fragment;function yt(e,t,n){return We.call(t,"css")?ht.jsx(it,tt(e,t),n):ht.jsx(e,t,n)}function vt(e,t,n){return We.call(t,"css")?ht.jsxs(it,tt(e,t),n):ht.jsxs(e,t,n)}var gt=n(40712),bt="undefined"!==typeof document,wt=bt?g.useLayoutEffect:g.useEffect;function xt(){var e=(0,g.useRef)(!1);return wt((function(){return e.current=!0,function(){e.current=!1}}),[]),e}var At=function(e){return e};var kt=["prepare","read","update","preRender","render","postRender"];var Et=function(e,t){var n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},o=kt.reduce((function(e,t){return e[t]=function(e){var t=[],n=[],r=0,i=!1,o=!1,a=new WeakSet,s={schedule:function(e){var o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&i,s=o?t:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&a.add(e),-1===s.indexOf(e)&&(s.push(e),o&&i&&(r=t.length)),e},cancel:function(e){var t=n.indexOf(e);-1!==t&&n.splice(t,1),a.delete(e)},process:function(u){if(i)o=!0;else{i=!0;var c=[n,t];if(t=c[0],(n=c[1]).length=0,r=t.length)for(var l=0;l<r;l++){var f=t[l];f(u),a.has(f)&&(s.schedule(f),e())}i=!1,o&&(o=!1,s.process(u))}}};return s}((function(){return n=!0})),e}),{}),a=function(e){return o[e].process(i)},s=function o(s){n=!1,i.delta=r?1e3/60:Math.max(Math.min(s-i.timestamp,40),1),i.timestamp=s,i.isProcessing=!0,kt.forEach(a),i.isProcessing=!1,n&&t&&(r=!1,e(o))},u=kt.reduce((function(t,a){var u=o[a];return t[a]=function(t){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],a=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,i.isProcessing||e(s)),u.schedule(t,o,a)},t}),{});return{schedule:u,cancel:function(e){return kt.forEach((function(t){return o[t].cancel(e)}))},state:i,steps:o}}("undefined"!==typeof requestAnimationFrame?requestAnimationFrame:At,!0),Tt=Et.schedule,_t=Et.cancel,St=Et.state,Ct=Et.steps;var It=(0,g.createContext)(null);function Ot(e){var t=(0,g.useRef)(null);return null===t.current&&(t.current=e()),t.current}var Pt=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"getSnapshotBeforeUpdate",value:function(e){var t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){var n=this.props.sizeRef.current;n.height=t.offsetHeight||0,n.width=t.offsetWidth||0,n.top=t.offsetTop,n.left=t.offsetLeft}return null}},{key:"componentDidUpdate",value:function(){}},{key:"render",value:function(){return this.props.children}}]),n}(g.Component);function Rt(e){var t=e.children,n=e.isPresent,r=(0,g.useId)(),i=(0,g.useRef)(null),o=(0,g.useRef)({width:0,height:0,top:0,left:0});return(0,g.useInsertionEffect)((function(){var e=o.current,t=e.width,a=e.height,s=e.top,u=e.left;if(!n&&i.current&&t&&a){i.current.dataset.motionPopId=r;var c=document.createElement("style");return document.head.appendChild(c),c.sheet&&c.sheet.insertRule('\n [data-motion-pop-id="'.concat(r,'"] {\n position: absolute !important;\n width: ').concat(t,"px !important;\n height: ").concat(a,"px !important;\n top: ").concat(s,"px !important;\n left: ").concat(u,"px !important;\n }\n ")),function(){document.head.removeChild(c)}}}),[n]),g.createElement(Pt,{isPresent:n,childRef:i,sizeRef:o},g.cloneElement(t,{ref:i}))}var Mt=function(e){var t=e.children,n=e.initial,r=e.isPresent,i=e.onExitComplete,o=e.custom,a=e.presenceAffectsLayout,s=e.mode,u=Ot(Bt),c=(0,g.useId)(),l=(0,g.useMemo)((function(){return{id:c,initial:n,isPresent:r,custom:o,onExitComplete:function(e){u.set(e,!0);var t,n=(0,v.Z)(u.values());try{for(n.s();!(t=n.n()).done;){if(!t.value)return}}catch(r){n.e(r)}finally{n.f()}i&&i()},register:function(e){return u.set(e,!1),function(){return u.delete(e)}}}}),a?void 0:[r]);return(0,g.useMemo)((function(){u.forEach((function(e,t){return u.set(t,!1)}))}),[r]),g.useEffect((function(){!r&&!u.size&&i&&i()}),[r]),"popLayout"===s&&(t=g.createElement(Rt,{isPresent:r},t)),g.createElement(It.Provider,{value:l},t)};function Bt(){return new Map}var Nt=(0,g.createContext)({});var Ft=At,Dt=At;var Lt=function(e){return e.key||""};var zt=function(e){var t=e.children,n=e.custom,r=e.initial,i=void 0===r||r,o=e.onExitComplete,a=e.exitBeforeEnter,s=e.presenceAffectsLayout,u=void 0===s||s,c=e.mode,f=void 0===c?"sync":c;Dt(!a,"Replace exitBeforeEnter with mode='wait'");var d,p=(0,g.useContext)(Nt).forceRender||function(){var e=xt(),t=(0,g.useState)(0),n=(0,y.Z)(t,2),r=n[0],i=n[1],o=(0,g.useCallback)((function(){e.current&&i(r+1)}),[r]);return[(0,g.useCallback)((function(){return Tt.postRender(o)}),[o]),r]}()[0],h=xt(),m=function(e){var t=[];return g.Children.forEach(e,(function(e){(0,g.isValidElement)(e)&&t.push(e)})),t}(t),v=m,b=(0,g.useRef)(new Map).current,w=(0,g.useRef)(v),x=(0,g.useRef)(new Map).current,A=(0,g.useRef)(!0);if(wt((function(){A.current=!1,function(e,t){e.forEach((function(e){var n=Lt(e);t.set(n,e)}))}(m,x),w.current=v})),d=function(){A.current=!0,x.clear(),b.clear()},(0,g.useEffect)((function(){return function(){return d()}}),[]),A.current)return g.createElement(g.Fragment,null,v.map((function(e){return g.createElement(Mt,{key:Lt(e),isPresent:!0,initial:!!i&&void 0,presenceAffectsLayout:u,mode:f},e)})));v=(0,l.Z)(v);for(var k=w.current.map(Lt),E=m.map(Lt),T=k.length,_=0;_<T;_++){var S=k[_];-1!==E.indexOf(S)||b.has(S)||b.set(S,void 0)}return"wait"===f&&b.size&&(v=[]),b.forEach((function(e,t){if(-1===E.indexOf(t)){var r=x.get(t);if(r){var i=k.indexOf(t),a=e;if(!a){a=g.createElement(Mt,{key:Lt(r),isPresent:!1,onExitComplete:function(){x.delete(t),b.delete(t);var e=w.current.findIndex((function(e){return e.key===t}));if(w.current.splice(e,1),!b.size){if(w.current=m,!1===h.current)return;p(),o&&o()}},custom:n,presenceAffectsLayout:u,mode:f},r),b.set(t,a)}v.splice(i,0,a)}}})),v=v.map((function(e){var t=e.key;return b.has(t)?e:g.createElement(Mt,{key:Lt(e),isPresent:!0,presenceAffectsLayout:u,mode:f},e)})),g.createElement(g.Fragment,null,b.size?v:v.map((function(e){return(0,g.cloneElement)(e)})))},jt=n(37755),Ut=(0,g.createContext)({transformPagePoint:function(e){return e},isStatic:!1,reducedMotion:"never"}),Zt=(0,g.createContext)({}),qt=(0,g.createContext)({strict:!1});function Ht(e){return"object"===typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Vt(e){return"string"===typeof e||Array.isArray(e)}function Gt(e){return"object"===typeof e&&"function"===typeof e.start}var Wt=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Kt=["initial"].concat(Wt);function Jt(e){return Gt(e.animate)||Kt.some((function(t){return Vt(e[t])}))}function Xt(e){return Boolean(Jt(e)||e.variants)}function Yt(e){var t=function(e,t){if(Jt(e)){var n=e.initial,r=e.animate;return{initial:!1===n||Vt(n)?n:void 0,animate:Vt(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,g.useContext)(Zt)),n=t.initial,r=t.animate;return(0,g.useMemo)((function(){return{initial:n,animate:r}}),[$t(n),$t(r)])}function $t(e){return Array.isArray(e)?e.join(" "):e}var Qt={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},en={},tn=function(e){en[e]={isEnabled:function(t){return Qt[e].some((function(e){return!!t[e]}))}}};for(var nn in Qt)tn(nn);var rn=(0,g.createContext)({}),on=Symbol.for("motionComponentSymbol");function an(e){var t=e.preloadedFeatures,n=e.createVisualElement,r=e.useRender,i=e.useVisualState,o=e.Component;t&&function(e){for(var t in e)en[t]=(0,jt.Z)((0,jt.Z)({},en[t]),e[t])}(t);var a=(0,g.forwardRef)((function(e,a){var s,u=(0,jt.Z)((0,jt.Z)((0,jt.Z)({},(0,g.useContext)(Ut)),e),{},{layoutId:sn(e)}),c=u.isStatic,l=Yt(e),f=i(e,c);if(!c&&bt){l.visualElement=function(e,t,n,r){var i=(0,g.useContext)(Zt).visualElement,o=(0,g.useContext)(qt),a=(0,g.useContext)(It),s=(0,g.useContext)(Ut).reducedMotion,u=(0,g.useRef)();r=r||o.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:a,blockInitialAnimation:!!a&&!1===a.initial,reducedMotionConfig:s}));var c=u.current;return(0,g.useInsertionEffect)((function(){c&&c.update(n,a)})),wt((function(){c&&c.render()})),(0,g.useEffect)((function(){c&&c.updateFeatures()})),(window.HandoffAppearAnimations?wt:g.useEffect)((function(){c&&c.animationState&&c.animationState.animateChanges()})),c}(o,f,u,n);var d=(0,g.useContext)(rn),p=(0,g.useContext)(qt).strict;l.visualElement&&(s=l.visualElement.loadFeatures(u,p,t,d))}return g.createElement(Zt.Provider,{value:l},s&&l.visualElement?g.createElement(s,(0,jt.Z)({visualElement:l.visualElement},u)):null,r(o,e,function(e,t,n){return(0,g.useCallback)((function(r){r&&e.mount&&e.mount(r),t&&(r?t.mount(r):t.unmount()),n&&("function"===typeof n?n(r):Ht(n)&&(n.current=r))}),[t])}(f,l.visualElement,a),f,c,l.visualElement))}));return a[on]=o,a}function sn(e){var t=e.layoutId,n=(0,g.useContext)(Nt).id;return n&&void 0!==t?n+"-"+t:t}function un(e){function t(t){return an(e(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))}if("undefined"===typeof Proxy)return t;var n=new Map;return new Proxy(t,{get:function(e,r){return n.has(r)||n.set(r,t(r)),n.get(r)}})}var cn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ln(e){return"string"===typeof e&&!e.includes("-")&&!!(cn.indexOf(e)>-1||/[A-Z]/.test(e))}var fn={};var dn=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],pn=new Set(dn);function hn(e,t){var n=t.layout,r=t.layoutId;return pn.has(e)||e.startsWith("origin")||(n||void 0!==r)&&(!!fn[e]||"opacity"===e)}var mn=function(e){return Boolean(e&&e.getVelocity)},yn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},vn=dn.length;var gn=function(e){return function(t){return"string"===typeof t&&t.startsWith(e)}},bn=gn("--"),wn=gn("var(--"),xn=function(e,t){return t&&"number"===typeof e?t.transform(e):e},An=function(e,t,n){return Math.min(Math.max(n,e),t)},kn={test:function(e){return"number"===typeof e},parse:parseFloat,transform:function(e){return e}},En=(0,jt.Z)((0,jt.Z)({},kn),{},{transform:function(e){return An(0,1,e)}}),Tn=(0,jt.Z)((0,jt.Z)({},kn),{},{default:1}),_n=function(e){return Math.round(1e5*e)/1e5},Sn=/(-)?([\d]*\.?[\d])+/g,Cn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,In=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function On(e){return"string"===typeof e}var Pn=function(e){return{test:function(t){return On(t)&&t.endsWith(e)&&1===t.split(" ").length},parse:parseFloat,transform:function(t){return"".concat(t).concat(e)}}},Rn=Pn("deg"),Mn=Pn("%"),Bn=Pn("px"),Nn=Pn("vh"),Fn=Pn("vw"),Dn=(0,jt.Z)((0,jt.Z)({},Mn),{},{parse:function(e){return Mn.parse(e)/100},transform:function(e){return Mn.transform(100*e)}}),Ln=(0,jt.Z)((0,jt.Z)({},kn),{},{transform:Math.round}),zn={borderWidth:Bn,borderTopWidth:Bn,borderRightWidth:Bn,borderBottomWidth:Bn,borderLeftWidth:Bn,borderRadius:Bn,radius:Bn,borderTopLeftRadius:Bn,borderTopRightRadius:Bn,borderBottomRightRadius:Bn,borderBottomLeftRadius:Bn,width:Bn,maxWidth:Bn,height:Bn,maxHeight:Bn,size:Bn,top:Bn,right:Bn,bottom:Bn,left:Bn,padding:Bn,paddingTop:Bn,paddingRight:Bn,paddingBottom:Bn,paddingLeft:Bn,margin:Bn,marginTop:Bn,marginRight:Bn,marginBottom:Bn,marginLeft:Bn,rotate:Rn,rotateX:Rn,rotateY:Rn,rotateZ:Rn,scale:Tn,scaleX:Tn,scaleY:Tn,scaleZ:Tn,skew:Rn,skewX:Rn,skewY:Rn,distance:Bn,translateX:Bn,translateY:Bn,translateZ:Bn,x:Bn,y:Bn,z:Bn,perspective:Bn,transformPerspective:Bn,opacity:En,originX:Dn,originY:Dn,originZ:Bn,zIndex:Ln,fillOpacity:En,strokeOpacity:En,numOctaves:Ln};function jn(e,t,n,r){var i=e.style,o=e.vars,a=e.transform,s=e.transformOrigin,u=!1,c=!1,l=!0;for(var f in t){var d=t[f];if(bn(f))o[f]=d;else{var p=zn[f],h=xn(d,p);if(pn.has(f)){if(u=!0,a[f]=h,!l)continue;d!==(p.default||0)&&(l=!1)}else f.startsWith("origin")?(c=!0,s[f]=h):i[f]=h}}if(t.transform||(u||r?i.transform=function(e,t,n,r){for(var i=t.enableHardwareAcceleration,o=void 0===i||i,a=t.allowTransformNone,s=void 0===a||a,u="",c=0;c<vn;c++){var l=dn[c];if(void 0!==e[l]){var f=yn[l]||l;u+="".concat(f,"(").concat(e[l],") ")}}return o&&!e.z&&(u+="translateZ(0)"),u=u.trim(),r?u=r(e,n?"":u):s&&n&&(u="none"),u}(e.transform,n,l,r):i.transform&&(i.transform="none")),c){var m=s.originX,y=void 0===m?"50%":m,v=s.originY,g=void 0===v?"50%":v,b=s.originZ,w=void 0===b?0:b;i.transformOrigin="".concat(y," ").concat(g," ").concat(w)}}var Un=function(){return{style:{},transform:{},transformOrigin:{},vars:{}}};function Zn(e,t,n){for(var r in t)mn(t[r])||hn(r,n)||(e[r]=t[r])}function qn(e,t,n){var r={};return Zn(r,e.style||{},e),Object.assign(r,function(e,t,n){var r=e.transformTemplate;return(0,g.useMemo)((function(){var e=Un();return jn(e,t,{enableHardwareAcceleration:!n},r),Object.assign({},e.vars,e.style)}),[t])}(e,t,n)),e.transformValues?e.transformValues(r):r}function Hn(e,t,n){var r={},i=qn(e,t,n);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":"pan-".concat("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=i,r}var Vn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","ignoreStrict","viewport"]);function Gn(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||Vn.has(e)}var Wn,Kn=function(e){return!Gn(e)};try{(Wn=require("@emotion/is-prop-valid").default)&&(Kn=function(e){return e.startsWith("on")?!Gn(e):Wn(e)})}catch(rp){}function Jn(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Xn(e,t,n){return"string"===typeof e?e:Bn.transform(t+n*e)}var Yn={offset:"stroke-dashoffset",array:"stroke-dasharray"},$n={offset:"strokeDashoffset",array:"strokeDasharray"};var Qn=["attrX","attrY","attrScale","originX","originY","pathLength","pathSpacing","pathOffset"];function er(e,t,n,r,i){var o=t.attrX,a=t.attrY,s=t.attrScale,u=t.originX,c=t.originY,l=t.pathLength,f=t.pathSpacing,d=void 0===f?1:f,p=t.pathOffset,h=void 0===p?0:p;if(jn(e,Jn(t,Qn),n,i),r)e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);else{e.attrs=e.style,e.style={};var m=e.attrs,y=e.style,v=e.dimensions;m.transform&&(v&&(y.transform=m.transform),delete m.transform),v&&(void 0!==u||void 0!==c||y.transform)&&(y.transformOrigin=function(e,t,n){var r=Xn(t,e.x,e.width),i=Xn(n,e.y,e.height);return"".concat(r," ").concat(i)}(v,void 0!==u?u:.5,void 0!==c?c:.5)),void 0!==o&&(m.x=o),void 0!==a&&(m.y=a),void 0!==s&&(m.scale=s),void 0!==l&&function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];e.pathLength=1;var o=i?Yn:$n;e[o.offset]=Bn.transform(-r);var a=Bn.transform(t),s=Bn.transform(n);e[o.array]="".concat(a," ").concat(s)}(m,l,d,h,!1)}}var tr=function(){return(0,jt.Z)((0,jt.Z)({},Un()),{},{attrs:{}})},nr=function(e){return"string"===typeof e&&"svg"===e.toLowerCase()};function rr(e,t,n,r){var i=(0,g.useMemo)((function(){var n=tr();return er(n,t,{enableHardwareAcceleration:!1},nr(r),e.transformTemplate),(0,jt.Z)((0,jt.Z)({},n.attrs),{},{style:(0,jt.Z)({},n.style)})}),[t]);if(e.style){var o={};Zn(o,e.style,e),i.style=(0,jt.Z)((0,jt.Z)({},o),i.style)}return i}function ir(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return function(t,n,r,i,o){var a=i.latestValues,s=(ln(t)?rr:Hn)(n,a,o,t),u=function(e,t,n){var r={};for(var i in e)"values"===i&&"object"===typeof e.values||(Kn(i)||!0===n&&Gn(i)||!t&&!Gn(i)||e.draggable&&i.startsWith("onDrag"))&&(r[i]=e[i]);return r}(n,"string"===typeof t,e),c=(0,jt.Z)((0,jt.Z)((0,jt.Z)({},u),s),{},{ref:r}),l=n.children,f=(0,g.useMemo)((function(){return mn(l)?l.get():l}),[l]);return(0,g.createElement)(t,(0,jt.Z)((0,jt.Z)({},c),{},{children:f}))}}var or=function(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()};function ar(e,t,n,r){var i=t.style,o=t.vars;for(var a in Object.assign(e.style,i,r&&r.getProjectionStyles(n)),o)e.style.setProperty(a,o[a])}var sr=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function ur(e,t,n,r){for(var i in ar(e,t,void 0,r),t.attrs)e.setAttribute(sr.has(i)?i:or(i),t.attrs[i])}function cr(e,t){var n=e.style,r={};for(var i in n)(mn(n[i])||t.style&&mn(t.style[i])||hn(i,e))&&(r[i]=n[i]);return r}function lr(e,t){var n=cr(e,t);for(var r in e){if(mn(e[r])||mn(t[r]))n[-1!==dn.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]}return n}function fr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),"string"===typeof t&&(t=e.variants&&e.variants[t]),"function"===typeof t&&(t=t(void 0!==n?n:e.custom,r,i)),t}var dr=function(e){return Array.isArray(e)},pr=function(e){return Boolean(e&&"object"===typeof e&&e.mix&&e.toValue)},hr=function(e){return dr(e)?e[e.length-1]||0:e};function mr(e){var t=mn(e)?e.get():e;return pr(t)?t.toValue():t}var yr=["transitionEnd","transition"];var vr=function(e){return function(t,n){var r=(0,g.useContext)(Zt),i=(0,g.useContext)(It),o=function(){return function(e,t,n,r){var i=e.scrapeMotionValuesFromProps,o=e.createRenderState,a=e.onMount,s={latestValues:gr(t,n,r,i),renderState:o()};return a&&(s.mount=function(e){return a(t,e,s)}),s}(e,t,r,i)};return n?o():Ot(o)}};function gr(e,t,n,r){var i={},o=r(e,{});for(var a in o)i[a]=mr(o[a]);var s=e.initial,u=e.animate,c=Jt(e),l=Xt(e);t&&l&&!c&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===u&&(u=t.animate));var f=!!n&&!1===n.initial,d=(f=f||!1===s)?u:s;d&&"boolean"!==typeof d&&!Gt(d)&&(Array.isArray(d)?d:[d]).forEach((function(t){var n=fr(e,t);if(n){var r=n.transitionEnd,o=(n.transition,Jn(n,yr));for(var a in o){var s=o[a];if(Array.isArray(s))s=s[f?s.length-1:0];null!==s&&(i[a]=s)}for(var u in r)i[u]=r[u]}}));return i}var br={useVisualState:vr({scrapeMotionValuesFromProps:lr,createRenderState:tr,onMount:function(e,t,n){var r=n.renderState,i=n.latestValues;try{r.dimensions="function"===typeof t.getBBox?t.getBBox():t.getBoundingClientRect()}catch(hc){r.dimensions={x:0,y:0,width:0,height:0}}er(r,i,{enableHardwareAcceleration:!1},nr(t.tagName),e.transformTemplate),ur(t,r)}})},wr={useVisualState:vr({scrapeMotionValuesFromProps:cr,createRenderState:Un})};function xr(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return e.addEventListener(t,n,r),function(){return e.removeEventListener(t,n)}}var Ar=function(e){return"mouse"===e.pointerType?"number"!==typeof e.button||e.button<=0:!1!==e.isPrimary};function kr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"page";return{point:{x:e[t+"X"],y:e[t+"Y"]}}}var Er=function(e){return function(t){return Ar(t)&&e(t,kr(t))}};function Tr(e,t,n,r){return xr(e,t,Er(n),r)}var _r=function(e,t){return function(n){return t(e(n))}},Sr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(_r)};function Cr(e){var t=null;return function(){return null===t&&(t=e,function(){t=null})}}var Ir=Cr("dragHorizontal"),Or=Cr("dragVertical");function Pr(e){var t=!1;if("y"===e)t=Or();else if("x"===e)t=Ir();else{var n=Ir(),r=Or();n&&r?t=function(){n(),r()}:(n&&n(),r&&r())}return t}function Rr(){var e=Pr(!0);return!e||(e(),!1)}var Mr=function(){function e(t){(0,r.Z)(this,e),this.isMounted=!1,this.node=t}return(0,i.Z)(e,[{key:"update",value:function(){}}]),e}();function Br(e,t){var n="pointer"+(t?"enter":"leave"),r="onHover"+(t?"Start":"End");return Tr(e.current,n,(function(n,i){if("touch"!==n.type&&!Rr()){var o=e.getProps();e.animationState&&o.whileHover&&e.animationState.setActive("whileHover",t),o[r]&&Tt.update((function(){return o[r](n,i)}))}}),{passive:!e.getProps()[r]})}var Nr=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"mount",value:function(){this.unmount=Sr(Br(this.node,!0),Br(this.node,!1))}},{key:"unmount",value:function(){}}]),n}(Mr),Fr=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).isActive=!1,e}return(0,i.Z)(n,[{key:"onFocus",value:function(){var e=!1;try{e=this.node.current.matches(":focus-visible")}catch(hc){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}},{key:"onBlur",value:function(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}},{key:"mount",value:function(){var e=this;this.unmount=Sr(xr(this.node.current,"focus",(function(){return e.onFocus()})),xr(this.node.current,"blur",(function(){return e.onBlur()})))}},{key:"unmount",value:function(){}}]),n}(Mr),Dr=function e(t,n){return!!n&&(t===n||e(t,n.parentElement))};function Lr(e,t){if(t){var n=new PointerEvent("pointer"+e);t(n,kr(n))}}var zr=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).removeStartListeners=At,e.removeEndListeners=At,e.removeAccessibleListeners=At,e.startPointerPress=function(t,n){if(e.removeEndListeners(),!e.isPressing){var r=e.node.getProps(),i=Tr(window,"pointerup",(function(t,n){if(e.checkPressEnd()){var r=e.node.getProps(),i=r.onTap,o=r.onTapCancel;Tt.update((function(){Dr(e.node.current,t.target)?i&&i(t,n):o&&o(t,n)}))}}),{passive:!(r.onTap||r.onPointerUp)}),o=Tr(window,"pointercancel",(function(t,n){return e.cancelPress(t,n)}),{passive:!(r.onTapCancel||r.onPointerCancel)});e.removeEndListeners=Sr(i,o),e.startPress(t,n)}},e.startAccessiblePress=function(){var t=xr(e.node.current,"keydown",(function(t){if("Enter"===t.key&&!e.isPressing){e.removeEndListeners(),e.removeEndListeners=xr(e.node.current,"keyup",(function(t){"Enter"===t.key&&e.checkPressEnd()&&Lr("up",(function(t,n){var r=e.node.getProps().onTap;r&&Tt.update((function(){return r(t,n)}))}))})),Lr("down",(function(t,n){e.startPress(t,n)}))}})),n=xr(e.node.current,"blur",(function(){e.isPressing&&Lr("cancel",(function(t,n){return e.cancelPress(t,n)}))}));e.removeAccessibleListeners=Sr(t,n)},e}return(0,i.Z)(n,[{key:"startPress",value:function(e,t){this.isPressing=!0;var n=this.node.getProps(),r=n.onTapStart;n.whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),r&&Tt.update((function(){return r(e,t)}))}},{key:"checkPressEnd",value:function(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!Rr()}},{key:"cancelPress",value:function(e,t){if(this.checkPressEnd()){var n=this.node.getProps().onTapCancel;n&&Tt.update((function(){return n(e,t)}))}}},{key:"mount",value:function(){var e=this.node.getProps(),t=Tr(this.node.current,"pointerdown",this.startPointerPress,{passive:!(e.onTapStart||e.onPointerStart)}),n=xr(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Sr(t,n)}},{key:"unmount",value:function(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}]),n}(Mr),jr=["root"],Ur=new WeakMap,Zr=new WeakMap,qr=function(e){var t=Ur.get(e.target);t&&t(e)},Hr=function(e){e.forEach(qr)};function Vr(e,t,n){var r=function(e){var t=e.root,n=Jn(e,jr),r=t||document;Zr.has(r)||Zr.set(r,{});var i=Zr.get(r),o=JSON.stringify(n);return i[o]||(i[o]=new IntersectionObserver(Hr,(0,jt.Z)({root:t},n))),i[o]}(t);return Ur.set(e,n),r.observe(e),function(){Ur.delete(e),r.unobserve(e)}}var Gr={some:0,all:1},Wr=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).hasEnteredView=!1,e.isInView=!1,e}return(0,i.Z)(n,[{key:"startObserver",value:function(){var e=this;this.unmount();var t=this.node.getProps().viewport,n=void 0===t?{}:t,r=n.root,i=n.margin,o=n.amount,a=void 0===o?"some":o,s=n.once,u={root:r?r.current:void 0,rootMargin:i,threshold:"number"===typeof a?a:Gr[a]};return Vr(this.node.current,u,(function(t){var n=t.isIntersecting;if(e.isInView!==n&&(e.isInView=n,!s||n||!e.hasEnteredView)){n&&(e.hasEnteredView=!0),e.node.animationState&&e.node.animationState.setActive("whileInView",n);var r=e.node.getProps(),i=r.onViewportEnter,o=r.onViewportLeave,a=n?i:o;a&&a(t)}}))}},{key:"mount",value:function(){this.startObserver()}},{key:"update",value:function(){if("undefined"!==typeof IntersectionObserver){var e=this.node,t=e.props,n=e.prevProps,r=["amount","margin","root"].some(function(e){var t=e.viewport,n=void 0===t?{}:t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=r.viewport,o=void 0===i?{}:i;return function(e){return n[e]!==o[e]}}(t,n));r&&this.startObserver()}}},{key:"unmount",value:function(){}}]),n}(Mr);var Kr={inView:{Feature:Wr},tap:{Feature:zr},focus:{Feature:Fr},hover:{Feature:Nr}};function Jr(e,t){if(!Array.isArray(t))return!1;var n=t.length;if(n!==e.length)return!1;for(var r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Xr(e,t,n){var r=e.getProps();return fr(r,t,void 0!==n?n:r.custom,function(e){var t={};return e.values.forEach((function(e,n){return t[n]=e.get()})),t}(e),function(e){var t={};return e.values.forEach((function(e,n){return t[n]=e.getVelocity()})),t}(e))}var Yr="data-"+or("framerAppearId"),$r=function(e){return 1e3*e},Qr=function(e){return e/1e3},ei=!1,ti=function(e){return Array.isArray(e)&&"number"===typeof e[0]};function ni(e){return Boolean(!e||"string"===typeof e&&ii[e]||ti(e)||Array.isArray(e)&&e.every(ni))}var ri=function(e){var t=(0,y.Z)(e,4),n=t[0],r=t[1],i=t[2],o=t[3];return"cubic-bezier(".concat(n,", ").concat(r,", ").concat(i,", ").concat(o,")")},ii={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:ri([0,.65,.55,1]),circOut:ri([.55,0,1,.45]),backIn:ri([.31,.01,.66,-.59]),backOut:ri([.33,1.53,.69,.99])};function oi(e){if(e)return ti(e)?ri(e):Array.isArray(e)?e.map(oi):ii[e]}var ai=function(e,t,n){return(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e},si=1e-7,ui=12;function ci(e,t,n,r){if(e===t&&n===r)return At;var i=function(t){return function(e,t,n,r,i){var o,a,s=0;do{(o=ai(a=t+(n-t)/2,r,i)-e)>0?n=a:t=a}while(Math.abs(o)>si&&++s<ui);return a}(t,0,1,e,n)};return function(e){return 0===e||1===e?e:ai(i(e),t,r)}}var li=ci(.42,0,1,1),fi=ci(0,0,.58,1),di=ci(.42,0,.58,1),pi=function(e){return Array.isArray(e)&&"number"!==typeof e[0]},hi=function(e){return function(t){return t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2}},mi=function(e){return function(t){return 1-e(1-t)}},yi=function(e){return 1-Math.sin(Math.acos(e))},vi=mi(yi),gi=hi(vi),bi=ci(.33,1.53,.69,.99),wi=mi(bi),xi=hi(wi),Ai={linear:At,easeIn:li,easeInOut:di,easeOut:fi,circIn:yi,circInOut:gi,circOut:vi,backIn:wi,backInOut:xi,backOut:bi,anticipate:function(e){return(e*=2)<1?.5*wi(e):.5*(2-Math.pow(2,-10*(e-1)))}},ki=function(e){if(Array.isArray(e)){Dt(4===e.length,"Cubic bezier arrays must contain four numerical values.");var t=(0,y.Z)(e,4);return ci(t[0],t[1],t[2],t[3])}return"string"===typeof e?(Dt(void 0!==Ai[e],"Invalid easing type '".concat(e,"'")),Ai[e]):e},Ei=function(e,t){return function(n){return Boolean(On(n)&&In.test(n)&&n.startsWith(e)||t&&Object.prototype.hasOwnProperty.call(n,t))}},Ti=function(e,t,n){return function(r){var i;if(!On(r))return r;var o=r.match(Sn),a=(0,y.Z)(o,4),s=a[0],u=a[1],c=a[2],l=a[3];return i={},(0,m.Z)(i,e,parseFloat(s)),(0,m.Z)(i,t,parseFloat(u)),(0,m.Z)(i,n,parseFloat(c)),(0,m.Z)(i,"alpha",void 0!==l?parseFloat(l):1),i}},_i=(0,jt.Z)((0,jt.Z)({},kn),{},{transform:function(e){return Math.round(function(e){return An(0,255,e)}(e))}}),Si={test:Ei("rgb","red"),parse:Ti("red","green","blue"),transform:function(e){var t=e.red,n=e.green,r=e.blue,i=e.alpha,o=void 0===i?1:i;return"rgba("+_i.transform(t)+", "+_i.transform(n)+", "+_i.transform(r)+", "+_n(En.transform(o))+")"}};var Ci={test:Ei("#"),parse:function(e){var t="",n="",r="",i="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}},transform:Si.transform},Ii={test:Ei("hsl","hue"),parse:Ti("hue","saturation","lightness"),transform:function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha,o=void 0===i?1:i;return"hsla("+Math.round(t)+", "+Mn.transform(_n(n))+", "+Mn.transform(_n(r))+", "+_n(En.transform(o))+")"}},Oi={test:function(e){return Si.test(e)||Ci.test(e)||Ii.test(e)},parse:function(e){return Si.test(e)?Si.parse(e):Ii.test(e)?Ii.parse(e):Ci.parse(e)},transform:function(e){return On(e)?e:e.hasOwnProperty("red")?Si.transform(e):Ii.transform(e)}},Pi=function(e,t,n){return-n*e+n*t+e};function Ri(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}var Mi=function(e,t,n){var r=e*e;return Math.sqrt(Math.max(0,n*(t*t-r)+r))},Bi=[Ci,Si,Ii];function Ni(e){var t=function(e){return Bi.find((function(t){return t.test(e)}))}(e);Dt(Boolean(t),"'".concat(e,"' is not an animatable color. Use the equivalent color code instead."));var n=t.parse(e);return t===Ii&&(n=function(e){var t=e.hue,n=e.saturation,r=e.lightness,i=e.alpha;t/=360,r/=100;var o=0,a=0,s=0;if(n/=100){var u=r<.5?r*(1+n):r+n-r*n,c=2*r-u;o=Ri(c,u,t+1/3),a=Ri(c,u,t),s=Ri(c,u,t-1/3)}else o=a=s=r;return{red:Math.round(255*o),green:Math.round(255*a),blue:Math.round(255*s),alpha:i}}(n)),n}var Fi=function(e,t){var n=Ni(e),r=Ni(t),i=(0,jt.Z)({},n);return function(e){return i.red=Mi(n.red,r.red,e),i.green=Mi(n.green,r.green,e),i.blue=Mi(n.blue,r.blue,e),i.alpha=Pi(n.alpha,r.alpha,e),Si.transform(i)}};var Di={regex:/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)/g,countKey:"Vars",token:"${v}",parse:At},Li={regex:Cn,countKey:"Colors",token:"${c}",parse:Oi.parse},zi={regex:Sn,countKey:"Numbers",token:"${n}",parse:kn.parse};function ji(e,t){var n,r=t.regex,i=t.countKey,o=t.token,a=t.parse,s=e.tokenised.match(r);s&&(e["num"+i]=s.length,e.tokenised=e.tokenised.replace(r,o),(n=e.values).push.apply(n,(0,l.Z)(s.map(a))))}function Ui(e){var t=e.toString(),n={value:t,tokenised:t,values:[],numVars:0,numColors:0,numNumbers:0};return n.value.includes("var(--")&&ji(n,Di),ji(n,Li),ji(n,zi),n}function Zi(e){return Ui(e).values}function qi(e){var t=Ui(e),n=t.values,r=t.numColors,i=t.numVars,o=t.tokenised,a=n.length;return function(e){for(var t=o,n=0;n<a;n++)t=n<i?t.replace(Di.token,e[n]):n<i+r?t.replace(Li.token,Oi.transform(e[n])):t.replace(zi.token,_n(e[n]));return t}}var Hi=function(e){return"number"===typeof e?0:e};var Vi={test:function(e){var t,n;return isNaN(e)&&On(e)&&((null===(t=e.match(Sn))||void 0===t?void 0:t.length)||0)+((null===(n=e.match(Cn))||void 0===n?void 0:n.length)||0)>0},parse:Zi,createTransformer:qi,getAnimatableNone:function(e){var t=Zi(e);return qi(e)(t.map(Hi))}},Gi=function(e,t){return function(n){return"".concat(n>0?t:e)}};function Wi(e,t){return"number"===typeof e?function(n){return Pi(e,t,n)}:Oi.test(e)?Fi(e,t):e.startsWith("var(")?Gi(e,t):Xi(e,t)}var Ki=function(e,t){var n=(0,l.Z)(e),r=n.length,i=e.map((function(e,n){return Wi(e,t[n])}));return function(e){for(var t=0;t<r;t++)n[t]=i[t](e);return n}},Ji=function(e,t){var n=(0,jt.Z)((0,jt.Z)({},e),t),r={};for(var i in n)void 0!==e[i]&&void 0!==t[i]&&(r[i]=Wi(e[i],t[i]));return function(e){for(var t in r)n[t]=r[t](e);return n}},Xi=function(e,t){var n=Vi.createTransformer(t),r=Ui(e),i=Ui(t);return r.numVars===i.numVars&&r.numColors===i.numColors&&r.numNumbers>=i.numNumbers?Sr(Ki(r.values,i.values),n):(Ft(!0,"Complex values '".concat(e,"' and '").concat(t,"' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.")),Gi(e,t))},Yi=function(e,t,n){var r=t-e;return 0===r?1:(n-e)/r},$i=function(e,t){return function(n){return Pi(e,t,n)}};function Qi(e,t,n){for(var r=[],i=n||function(e){return"number"===typeof e?$i:"string"===typeof e?Oi.test(e)?Fi:Xi:Array.isArray(e)?Ki:"object"===typeof e?Ji:$i}(e[0]),o=e.length-1,a=0;a<o;a++){var s=i(e[a],e[a+1]);if(t){var u=Array.isArray(t)?t[a]||At:t;s=Sr(u,s)}r.push(s)}return r}function eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.clamp,i=void 0===r||r,o=n.ease,a=n.mixer,s=e.length;if(Dt(s===t.length,"Both input and output ranges must be the same length"),1===s)return function(){return t[0]};e[0]>e[s-1]&&(e=(0,l.Z)(e).reverse(),t=(0,l.Z)(t).reverse());var u=Qi(t,o,a),c=u.length,f=function(t){var n=0;if(c>1)for(;n<e.length-2&&!(t<e[n+1]);n++);var r=Yi(e[n],e[n+1],t);return u[n](r)};return i?function(t){return f(An(e[0],e[s-1],t))}:f}function to(e){var t=[0];return function(e,t){for(var n=e[e.length-1],r=1;r<=t;r++){var i=Yi(0,t,r);e.push(Pi(n,1,i))}}(t,e.length-1),t}function no(e){var t,n,r=e.duration,i=void 0===r?300:r,o=e.keyframes,a=e.times,s=e.ease,u=void 0===s?"easeInOut":s,c=pi(u)?u.map(ki):ki(u),l={done:!1,value:o[0]},f=function(e,t){return e.map((function(e){return e*t}))}(a&&a.length===o.length?a:to(o),i),d=eo(f,o,{ease:Array.isArray(c)?c:(t=o,n=c,t.map((function(){return n||di})).splice(0,t.length-1))});return{calculatedDuration:i,next:function(e){return l.value=d(e),l.done=e>=i,l}}}function ro(e,t){return t?e*(1e3/t):0}var io=5;function oo(e,t,n){var r=Math.max(t-io,0);return ro(n-e(r),t-r)}var ao=.001,so=.01,uo=10,co=.05,lo=1;function fo(e){var t,n,r=e.duration,i=void 0===r?800:r,o=e.bounce,a=void 0===o?.25:o,s=e.velocity,u=void 0===s?0:s,c=e.mass,l=void 0===c?1:c;Ft(i<=$r(uo),"Spring duration must be 10 seconds or less");var f=1-a;f=An(co,lo,f),i=An(so,uo,Qr(i)),f<1?(t=function(e){var t=e*f,n=t*i,r=t-u,o=ho(e,f),a=Math.exp(-n);return ao-r/o*a},n=function(e){var n=e*f*i,r=n*u+u,o=Math.pow(f,2)*Math.pow(e,2)*i,a=Math.exp(-n),s=ho(Math.pow(e,2),f);return(-t(e)+ao>0?-1:1)*((r-o)*a)/s}):(t=function(e){return Math.exp(-e*i)*((e-u)*i+1)-ao},n=function(e){return Math.exp(-e*i)*(i*i*(u-e))});var d=function(e,t,n){for(var r=n,i=1;i<po;i++)r-=e(r)/t(r);return r}(t,n,5/i);if(i=$r(i),isNaN(d))return{stiffness:100,damping:10,duration:i};var p=Math.pow(d,2)*l;return{stiffness:p,damping:2*f*Math.sqrt(l*p),duration:i}}var po=12;function ho(e,t){return e*Math.sqrt(1-t*t)}var mo=["keyframes","restDelta","restSpeed"],yo=["duration","bounce"],vo=["stiffness","damping","mass"];function go(e,t){return t.some((function(t){return void 0!==e[t]}))}function bo(e){var t,n=e.keyframes,r=e.restDelta,i=e.restSpeed,o=Jn(e,mo),a=n[0],s=n[n.length-1],u={done:!1,value:a},c=function(e){var t=(0,jt.Z)({velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1},e);if(!go(e,vo)&&go(e,yo)){var n=fo(e);(t=(0,jt.Z)((0,jt.Z)((0,jt.Z)({},t),n),{},{velocity:0,mass:1})).isResolvedFromDuration=!0}return t}(o),l=c.stiffness,f=c.damping,d=c.mass,p=c.velocity,h=c.duration,m=c.isResolvedFromDuration,y=p?-Qr(p):0,v=f/(2*Math.sqrt(l*d)),g=s-a,b=Qr(Math.sqrt(l/d)),w=Math.abs(g)<5;if(i||(i=w?.01:2),r||(r=w?.005:.5),v<1){var x=ho(b,v);t=function(e){var t=Math.exp(-v*b*e);return s-t*((y+v*b*g)/x*Math.sin(x*e)+g*Math.cos(x*e))}}else if(1===v)t=function(e){return s-Math.exp(-b*e)*(g+(y+b*g)*e)};else{var A=b*Math.sqrt(v*v-1);t=function(e){var t=Math.exp(-v*b*e),n=Math.min(A*e,300);return s-t*((y+v*b*g)*Math.sinh(n)+A*g*Math.cosh(n))/A}}return{calculatedDuration:m&&h||null,next:function(e){var n=t(e);if(m)u.done=e>=h;else{var o=y;0!==e&&(o=v<1?oo(t,e,n):0);var a=Math.abs(o)<=i,c=Math.abs(s-n)<=r;u.done=a&&c}return u.value=u.done?s:n,u}}}function wo(e){var t=e.keyframes,n=e.velocity,r=void 0===n?0:n,i=e.power,o=void 0===i?.8:i,a=e.timeConstant,s=void 0===a?325:a,u=e.bounceDamping,c=void 0===u?10:u,l=e.bounceStiffness,f=void 0===l?500:l,d=e.modifyTarget,p=e.min,h=e.max,m=e.restDelta,y=void 0===m?.5:m,v=e.restSpeed,g=t[0],b={done:!1,value:g},w=function(e){return void 0===p?h:void 0===h||Math.abs(p-e)<Math.abs(h-e)?p:h},x=o*r,A=g+x,k=void 0===d?A:d(A);k!==A&&(x=k-g);var E,T,_=function(e){return-x*Math.exp(-e/s)},S=function(e){return k+_(e)},C=function(e){var t=_(e),n=S(e);b.done=Math.abs(t)<=y,b.value=b.done?k:n},I=function(e){(function(e){return void 0!==p&&e<p||void 0!==h&&e>h})(b.value)&&(E=e,T=bo({keyframes:[b.value,w(b.value)],velocity:oo(S,e,b.value),damping:c,stiffness:f,restDelta:y,restSpeed:v}))};return I(0),{calculatedDuration:null,next:function(e){var t=!1;return T||void 0!==E||(t=!0,C(e),I(e)),void 0!==E&&e>E?T.next(e-E):(!t&&C(e),b)}}}var xo=function(e){var t=function(t){var n=t.timestamp;return e(n)};return{start:function(){return Tt.update(t,!0)},stop:function(){return _t(t)},now:function(){return St.isProcessing?St.timestamp:performance.now()}}},Ao=2e4;function ko(e){for(var t=0,n=e.next(t);!n.done&&t<Ao;)t+=50,n=e.next(t);return t>=Ao?1/0:t}var Eo=["autoplay","delay","driver","keyframes","type","repeat","repeatDelay","repeatType","onPlay","onStop","onComplete","onUpdate"],To={decay:wo,inertia:wo,tween:no,keyframes:no,spring:bo};function _o(e){var t,n,r,i=e.autoplay,o=void 0===i||i,a=e.delay,s=void 0===a?0:a,u=e.driver,c=void 0===u?xo:u,f=e.keyframes,d=e.type,p=void 0===d?"keyframes":d,h=e.repeat,m=void 0===h?0:h,y=e.repeatDelay,v=void 0===y?0:y,g=e.repeatType,b=void 0===g?"loop":g,w=e.onPlay,x=e.onStop,A=e.onComplete,k=e.onUpdate,E=Jn(e,Eo),T=1,_=!1,S=function(){n=new Promise((function(e){t=e}))};S();var C,I=To[p]||no;I!==no&&"number"!==typeof f[0]&&(C=eo([0,100],f,{clamp:!1}),f=[0,100]);var O,P=I((0,jt.Z)((0,jt.Z)({},E),{},{keyframes:f}));"mirror"===b&&(O=I((0,jt.Z)((0,jt.Z)({},E),{},{keyframes:(0,l.Z)(f).reverse(),velocity:-(E.velocity||0)})));var R="idle",M=null,B=null,N=null;null===P.calculatedDuration&&m&&(P.calculatedDuration=ko(P));var F=P.calculatedDuration,D=1/0,L=1/0;null!==F&&(L=(D=F+v)*(m+1)-v);var z=0,j=function(e){if(null!==B){T>0&&(B=Math.min(B,e)),T<0&&(B=Math.min(e-L/T,B));var t=(z=null!==M?M:Math.round(e-B)*T)-s*(T>=0?1:-1),n=T>=0?t<0:t>L;z=Math.max(t,0),"finished"===R&&null===M&&(z=L);var r=z,i=P;if(m){var o=z/D,a=Math.floor(o),u=o%1;!u&&o>=1&&(u=1),1===u&&a--,a=Math.min(a,m+1);var c=Boolean(a%2);c&&("reverse"===b?(u=1-u,v&&(u-=v/D)):"mirror"===b&&(i=O));var l=An(0,1,u);z>L&&(l="reverse"===b&&c?1:0),r=l*D}var d=n?{done:!1,value:f[0]}:i.next(r);C&&(d.value=C(d.value));var p=d.done;n||null===F||(p=T>=0?z>=L:z<=0);var h=null===M&&("finished"===R||"running"===R&&p);return k&&k(d.value),h&&q(),d}},U=function(){r&&r.stop(),r=void 0},Z=function(){R="idle",U(),t(),S(),B=N=null},q=function(){R="finished",A&&A(),U(),t()},H=function(){if(!_){r||(r=c(j));var e=r.now();w&&w(),null!==M?B=e-M:B&&"finished"!==R||(B=e),"finished"===R&&S(),N=B,M=null,R="running",r.start()}};o&&H();var V={then:function(e,t){return n.then(e,t)},get time(){return Qr(z)},set time(e){e=$r(e),z=e,null===M&&r&&0!==T?B=r.now()-e/T:M=e},get duration(){var e=null===P.calculatedDuration?ko(P):P.calculatedDuration;return Qr(e)},get speed(){return T},set speed(e){e!==T&&r&&(T=e,V.time=Qr(z))},get state(){return R},play:H,pause:function(){R="paused",M=z},stop:function(){_=!0,"idle"!==R&&(R="idle",x&&x(),Z())},cancel:function(){null!==N&&j(N),Z()},complete:function(){R="finished"},sample:function(e){return B=0,j(e)}};return V}var So=["onUpdate","onComplete"],Co=function(e){var t;return function(){return void 0===t&&(t=e()),t}}((function(){return Object.hasOwnProperty.call(Element.prototype,"animate")})),Io=new Set(["opacity","clipPath","filter","transform","backgroundColor"]);function Oo(e,t,n){n.onUpdate;var r=n.onComplete,i=Jn(n,So);if(!(Co()&&Io.has(t)&&!i.repeatDelay&&"mirror"!==i.repeatType&&0!==i.damping&&"inertia"!==i.type))return!1;var o,a,s=!1,u=function(){a=new Promise((function(e){o=e}))};u();var c=i.keyframes,l=i.duration,f=void 0===l?300:l,d=i.ease,p=i.times;if(function(e,t){return"spring"===t.type||"backgroundColor"===e||!ni(t.ease)}(t,i)){for(var h=_o((0,jt.Z)((0,jt.Z)({},i),{},{repeat:0,delay:0})),y={done:!1,value:c[0]},v=[],g=0;!y.done&&g<2e4;)y=h.sample(g),v.push(y.value),g+=10;p=void 0,c=v,f=g-10,d="linear"}var b=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=r.delay,o=void 0===i?0:i,a=r.duration,s=r.repeat,u=void 0===s?0:s,c=r.repeatType,l=void 0===c?"loop":c,f=r.ease,d=r.times,p=(0,m.Z)({},t,n);d&&(p.offset=d);var h=oi(f);return Array.isArray(h)&&(p.easing=h),e.animate(p,{delay:o,duration:a,easing:Array.isArray(h)?"linear":h,fill:"both",iterations:u+1,direction:"reverse"===l?"alternate":"normal"})}(e.owner.current,t,c,(0,jt.Z)((0,jt.Z)({},i),{},{duration:f,ease:d,times:p})),w=function(){return b.cancel()},x=function(){Tt.update(w),o(),u()};return b.onfinish=function(){e.set(function(e,t){var n=t.repeat,r=t.repeatType;return e[n&&"loop"!==(void 0===r?"loop":r)&&n%2===1?0:e.length-1]}(c,i)),r&&r(),x()},{then:function(e,t){return a.then(e,t)},get timeline(){return b.timeline},set timeline(e){b.timeline=e,b.onfinish=null},get time(){return Qr(b.currentTime||0)},set time(e){b.currentTime=$r(e)},get speed(){return b.playbackRate},set speed(e){b.playbackRate=e},get duration(){return Qr(f)},play:function(){s||(b.play(),_t(w))},pause:function(){return b.pause()},stop:function(){if(s=!0,"idle"!==b.playState){var t=b.currentTime;if(t){var n=_o((0,jt.Z)((0,jt.Z)({},i),{},{autoplay:!1}));e.setWithVelocity(n.sample(t-10).value,n.sample(t).value,10)}x()}},complete:function(){return b.finish()},cancel:x}}var Po={type:"spring",stiffness:500,damping:25,restSpeed:10},Ro={type:"keyframes",duration:.8},Mo={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Bo=function(e,t){var n=t.keyframes;return n.length>2?Ro:pn.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:Po:Mo},No=function(e,t){return"zIndex"!==e&&(!("number"!==typeof t&&!Array.isArray(t))||!("string"!==typeof t||!Vi.test(t)&&"0"!==t||t.startsWith("url(")))},Fo=new Set(["brightness","contrast","saturate","opacity"]);function Do(e){var t=e.slice(0,-1).split("("),n=(0,y.Z)(t,2),r=n[0],i=n[1];if("drop-shadow"===r)return e;var o=i.match(Sn)||[],a=(0,y.Z)(o,1)[0];if(!a)return e;var s=i.replace(a,""),u=Fo.has(r)?1:0;return a!==i&&(u*=100),r+"("+u+s+")"}var Lo=/([a-z-]*)\(.*?\)/g,zo=(0,jt.Z)((0,jt.Z)({},Vi),{},{getAnimatableNone:function(e){var t=e.match(Lo);return t?t.map(Do).join(" "):e}}),jo=(0,jt.Z)((0,jt.Z)({},zn),{},{color:Oi,backgroundColor:Oi,outlineColor:Oi,fill:Oi,stroke:Oi,borderColor:Oi,borderTopColor:Oi,borderRightColor:Oi,borderBottomColor:Oi,borderLeftColor:Oi,filter:zo,WebkitFilter:zo}),Uo=function(e){return jo[e]};function Zo(e,t){var n=Uo(e);return n!==zo&&(n=Vi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var qo=function(e){return/^0[^.\s]+$/.test(e)};function Ho(e){return"number"===typeof e?0===e:null!==e?"none"===e||"0"===e||qo(e):void 0}var Vo=["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"];function Go(e,t){return e[t]||e.default||e}var Wo=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return function(i){var o=Go(r,e)||{},a=o.delay||r.delay||0,s=r.elapsed,u=void 0===s?0:s;u-=$r(a);var c=function(e,t,n,r){var i,o=No(t,n);i=Array.isArray(n)?(0,l.Z)(n):[null,n];for(var a=void 0!==r.from?r.from:e.get(),s=void 0,u=[],c=0;c<i.length;c++)null===i[c]&&(i[c]=0===c?a:i[c-1]),Ho(i[c])&&u.push(c),"string"===typeof i[c]&&"none"!==i[c]&&"0"!==i[c]&&(s=i[c]);if(o&&u.length&&s)for(var f=0;f<u.length;f++)i[u[f]]=Zo(t,s);return i}(t,e,n,o),f=c[0],d=c[c.length-1],p=No(e,f),h=No(e,d);Ft(p===h,"You are trying to animate ".concat(e,' from "').concat(f,'" to "').concat(d,'". ').concat(f," is not an animatable value - to enable this animation set ").concat(f," to a value animatable to ").concat(d," via the `style` property."));var m=(0,jt.Z)((0,jt.Z)({keyframes:c,velocity:t.getVelocity(),ease:"easeOut"},o),{},{delay:-u,onUpdate:function(e){t.set(e),o.onUpdate&&o.onUpdate(e)},onComplete:function(){i(),o.onComplete&&o.onComplete()}});if(function(e){e.when,e.delay,e.delayChildren,e.staggerChildren,e.staggerDirection,e.repeat,e.repeatType,e.repeatDelay,e.from,e.elapsed;var t=Jn(e,Vo);return!!Object.keys(t).length}(o)||(m=(0,jt.Z)((0,jt.Z)({},m),Bo(e,m))),m.duration&&(m.duration=$r(m.duration)),m.repeatDelay&&(m.repeatDelay=$r(m.repeatDelay)),!p||!h||ei||!1===o.type)return function(e){var t=e.keyframes,n=e.delay,r=e.onUpdate,i=e.onComplete,o=function(){return r&&r(t[t.length-1]),i&&i(),{time:0,speed:1,duration:0,play:At,pause:At,stop:At,then:function(e){return e(),Promise.resolve()},cancel:At,complete:At}};return n?_o({keyframes:[0,1],duration:0,delay:n,onComplete:o}):o()}(ei?(0,jt.Z)((0,jt.Z)({},m),{},{delay:0}):m);if(t.owner&&t.owner.current instanceof HTMLElement&&!t.owner.getProps().onUpdate){var y=Oo(t,e,m);if(y)return y}return _o(m)}};function Ko(e){return Boolean(mn(e)&&e.add)}var Jo=function(e){return/^\-?\d*\.?\d+$/.test(e)};function Xo(e,t){-1===e.indexOf(t)&&e.push(t)}function Yo(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $o=function(){function e(){(0,r.Z)(this,e),this.subscriptions=[]}return(0,i.Z)(e,[{key:"add",value:function(e){var t=this;return Xo(this.subscriptions,e),function(){return Yo(t.subscriptions,e)}}},{key:"notify",value:function(e,t,n){var r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](e,t,n);else for(var i=0;i<r;i++){var o=this.subscriptions[i];o&&o(e,t,n)}}},{key:"getSize",value:function(){return this.subscriptions.length}},{key:"clear",value:function(){this.subscriptions.length=0}}]),e}(),Qo=function(){function e(t){var n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.Z)(this,e),this.version="10.13.0",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];i.prev=i.current,i.current=e;var n=St.delta,r=St.timestamp;i.lastUpdated!==r&&(i.timeDelta=n,i.lastUpdated=r,Tt.postRender(i.scheduleVelocityCheck)),i.prev!==i.current&&i.events.change&&i.events.change.notify(i.current),i.events.velocityChange&&i.events.velocityChange.notify(i.getVelocity()),t&&i.events.renderRequest&&i.events.renderRequest.notify(i.current)},this.scheduleVelocityCheck=function(){return Tt.postRender(i.velocityCheck)},this.velocityCheck=function(e){e.timestamp!==i.lastUpdated&&(i.prev=i.current,i.events.velocityChange&&i.events.velocityChange.notify(i.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=t,this.canTrackVelocity=(n=this.current,!isNaN(parseFloat(n))),this.owner=o.owner}return(0,i.Z)(e,[{key:"onChange",value:function(e){return this.on("change",e)}},{key:"on",value:function(e,t){var n=this;this.events[e]||(this.events[e]=new $o);var r=this.events[e].add(t);return"change"===e?function(){r(),Tt.read((function(){n.events.change.getSize()||n.stop()}))}:r}},{key:"clearListeners",value:function(){for(var e in this.events)this.events[e].clear()}},{key:"attach",value:function(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}},{key:"set",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}},{key:"setWithVelocity",value:function(e,t,n){this.set(t),this.prev=e,this.timeDelta=n}},{key:"jump",value:function(e){this.updateAndNotify(e),this.prev=e,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}},{key:"get",value:function(){return this.current}},{key:"getPrevious",value:function(){return this.prev}},{key:"getVelocity",value:function(){return this.canTrackVelocity?ro(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}},{key:"start",value:function(e){var t=this;return this.stop(),new Promise((function(n){t.hasAnimated=!0,t.animation=e(n),t.events.animationStart&&t.events.animationStart.notify()})).then((function(){t.events.animationComplete&&t.events.animationComplete.notify(),t.clearAnimation()}))}},{key:"stop",value:function(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}},{key:"isAnimating",value:function(){return!!this.animation}},{key:"clearAnimation",value:function(){delete this.animation}},{key:"destroy",value:function(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}]),e}();function ea(e,t){return new Qo(e,t)}var ta=function(e){return function(t){return t.test(e)}},na=[kn,Bn,Mn,Rn,Fn,Nn,{test:function(e){return"auto"===e},parse:function(e){return e}}],ra=function(e){return na.find(ta(e))},ia=[].concat((0,l.Z)(na),[Oi,Vi]),oa=function(e){return ia.find(ta(e))},aa=["transitionEnd","transition"];function sa(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,ea(n))}function ua(e,t){var n=Xr(e,t),r=n?e.makeTargetAnimatable(n,!1):{},i=r.transitionEnd,o=void 0===i?{}:i,a=(r.transition,Jn(r,aa));for(var s in a=(0,jt.Z)((0,jt.Z)({},a),o)){sa(e,s,hr(a[s]))}}function ca(e,t){if(t)return(t[e]||t.default||t).from}var la=["transition","transitionEnd"];function fa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.delay,i=void 0===r?0:r,o=n.transitionOverride,a=n.type,s=e.makeTargetAnimatable(t),u=s.transition,c=void 0===u?e.getDefaultTransition():u,l=s.transitionEnd,f=Jn(s,la),d=e.getValue("willChange");o&&(c=o);var p=[],h=a&&e.animationState&&e.animationState.getState()[a],m=function(t){var n=e.getValue(t),r=f[t];if(!n||void 0===r||h&&function(e,t){var n=e.protectedKeys,r=e.needsAnimating,i=n.hasOwnProperty(t)&&!0!==r[t];return r[t]=!1,i}(h,t))return"continue";var o=(0,jt.Z)({delay:i,elapsed:0},c);if(window.HandoffAppearAnimations&&!n.hasAnimated){var a=e.getProps()[Yr];a&&(o.elapsed=window.HandoffAppearAnimations(a,t,n,Tt))}n.start(Wo(t,n,r,e.shouldReduceMotion&&pn.has(t)?{type:!1}:o));var s=n.animation;Ko(d)&&(d.add(t),s.then((function(){return d.remove(t)}))),p.push(s)};for(var y in f)m(y);return l&&Promise.all(p).then((function(){l&&ua(e,l)})),p}function da(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=Xr(e,t,n.custom),i=(r||{}).transition,o=void 0===i?e.getDefaultTransition()||{}:i;n.transitionOverride&&(o=n.transitionOverride);var a=r?function(){return Promise.all(fa(e,r,n))}:function(){return Promise.resolve()},s=e.variantChildren&&e.variantChildren.size?function(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=o,a=i.delayChildren,s=void 0===a?0:a,u=i.staggerChildren,c=i.staggerDirection;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,o=arguments.length>5?arguments[5]:void 0,a=[],s=(e.variantChildren.size-1)*r,u=1===i?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return s-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(e.variantChildren).sort(pa).forEach((function(e,r){e.notify("AnimationStart",t),a.push(da(e,t,(0,jt.Z)((0,jt.Z)({},o),{},{delay:n+u(r)})).then((function(){return e.notify("AnimationComplete",t)})))})),Promise.all(a)}(e,t,s+r,u,c,n)}:function(){return Promise.resolve()},u=o.when;if(u){var c="beforeChildren"===u?[a,s]:[s,a],l=(0,y.Z)(c,2),f=l[0],d=l[1];return f().then((function(){return d()}))}return Promise.all([a(),s(n.delay)])}function pa(e,t){return e.sortNodePosition(t)}var ha=["transition","transitionEnd"],ma=(0,l.Z)(Wt).reverse(),ya=Wt.length;function va(e){return function(t){return Promise.all(t.map((function(t){var n=t.animation,r=t.options;return function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(e.notify("AnimationStart",t),Array.isArray(t)){var i=t.map((function(t){return da(e,t,r)}));n=Promise.all(i)}else if("string"===typeof t)n=da(e,t,r);else{var o="function"===typeof t?Xr(e,t,r.custom):t;n=Promise.all(fa(e,o,r))}return n.then((function(){return e.notify("AnimationComplete",t)}))}(e,n,r)})))}}function ga(e){var t=va(e),n={animate:ba(!0),whileInView:ba(),whileHover:ba(),whileTap:ba(),whileDrag:ba(),whileFocus:ba(),exit:ba()},r=!0,i=function(t,n){var r=Xr(e,n);if(r){r.transition;var i=r.transitionEnd,o=Jn(r,ha);t=(0,jt.Z)((0,jt.Z)((0,jt.Z)({},t),o),i)}return t};function o(o,a){for(var s=e.getProps(),u=e.getVariantContext(!0)||{},c=[],f=new Set,d={},p=1/0,h=function(){var t=ma[m],h=n[t],y=void 0!==s[t]?s[t]:u[t],v=Vt(y),g=t===a?h.isActive:null;!1===g&&(p=m);var b=y===u[t]&&y!==s[t]&&v;if(b&&r&&e.manuallyAnimateOnMount&&(b=!1),h.protectedKeys=(0,jt.Z)({},d),!h.isActive&&null===g||!y&&!h.prevProp||Gt(y)||"boolean"===typeof y)return"continue";var w=function(e,t){if("string"===typeof t)return t!==e;if(Array.isArray(t))return!Jr(t,e);return!1}(h.prevProp,y),x=w||t===a&&h.isActive&&!b&&v||m>p&&v,A=Array.isArray(y)?y:[y],k=A.reduce(i,{});!1===g&&(k={});var E=h.prevResolvedValues,T=void 0===E?{}:E,_=(0,jt.Z)((0,jt.Z)({},T),k),S=function(e){x=!0,f.delete(e),h.needsAnimating[e]=!0};for(var C in _){var I=k[C],O=T[C];d.hasOwnProperty(C)||(I!==O?dr(I)&&dr(O)?!Jr(I,O)||w?S(C):h.protectedKeys[C]=!0:void 0!==I?S(C):f.add(C):void 0!==I&&f.has(C)?S(C):h.protectedKeys[C]=!0)}h.prevProp=y,h.prevResolvedValues=k,h.isActive&&(d=(0,jt.Z)((0,jt.Z)({},d),k)),r&&e.blockInitialAnimation&&(x=!1),x&&!b&&c.push.apply(c,(0,l.Z)(A.map((function(e){return{animation:e,options:(0,jt.Z)({type:t},o)}}))))},m=0;m<ya;m++)h();if(f.size){var y={};f.forEach((function(t){var n=e.getBaseTarget(t);void 0!==n&&(y[t]=n)})),c.push({animation:y})}var v=Boolean(c.length);return r&&!1===s.initial&&!e.manuallyAnimateOnMount&&(v=!1),r=!1,v?t(c):Promise.resolve()}return{animateChanges:o,setActive:function(t,r,i){var a;if(n[t].isActive===r)return Promise.resolve();null===(a=e.variantChildren)||void 0===a||a.forEach((function(e){var n;return null===(n=e.animationState)||void 0===n?void 0:n.setActive(t,r)})),n[t].isActive=r;var s=o(i,t);for(var u in n)n[u].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:function(){return n}}}function ba(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}var wa=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),i=t.call(this,e),e.animationState||(e.animationState=ga(e)),i}return(0,i.Z)(n,[{key:"updateAnimationControlsSubscription",value:function(){var e=this.node.getProps().animate;this.unmount(),Gt(e)&&(this.unmount=e.subscribe(this.node))}},{key:"mount",value:function(){this.updateAnimationControlsSubscription()}},{key:"update",value:function(){this.node.getProps().animate!==(this.node.prevProps||{}).animate&&this.updateAnimationControlsSubscription()}},{key:"unmount",value:function(){}}]),n}(Mr),xa=0,Aa=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).id=xa++,e}return(0,i.Z)(n,[{key:"update",value:function(){var e=this;if(this.node.presenceContext){var t=this.node.presenceContext,n=t.isPresent,r=t.onExitComplete,i=t.custom,o=(this.node.prevPresenceContext||{}).isPresent;if(this.node.animationState&&n!==o){var a=this.node.animationState.setActive("exit",!n,{custom:null!==i&&void 0!==i?i:this.node.getProps().custom});r&&!n&&a.then((function(){return r(e.id)}))}}}},{key:"mount",value:function(){var e=(this.node.presenceContext||{}).register;e&&(this.unmount=e(this.id))}},{key:"unmount",value:function(){}}]),n}(Mr),ka={animation:{Feature:wa},exit:{Feature:Aa}},Ea=function(e,t){return Math.abs(e-t)};var Ta=function(){function e(t,n){var i=this,o=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).transformPagePoint;if((0,r.Z)(this,e),this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=function(){if(i.lastMoveEvent&&i.lastMoveEventInfo){var e=Ca(i.lastMoveEventInfo,i.history),t=null!==i.startEvent,n=function(e,t){var n=Ea(e.x,t.x),r=Ea(e.y,t.y);return Math.sqrt(Math.pow(n,2)+Math.pow(r,2))}(e.offset,{x:0,y:0})>=3;if(t||n){var r=e.point,o=St.timestamp;i.history.push((0,jt.Z)((0,jt.Z)({},r),{},{timestamp:o}));var a=i.handlers,s=a.onStart,u=a.onMove;t||(s&&s(i.lastMoveEvent,e),i.startEvent=i.lastMoveEvent),u&&u(i.lastMoveEvent,e)}}},this.handlePointerMove=function(e,t){i.lastMoveEvent=e,i.lastMoveEventInfo=_a(t,i.transformPagePoint),Tt.update(i.updatePoint,!0)},this.handlePointerUp=function(e,t){if(i.end(),i.lastMoveEvent&&i.lastMoveEventInfo){var n=i.handlers,r=n.onEnd,o=n.onSessionEnd,a=Ca("pointercancel"===e.type?i.lastMoveEventInfo:_a(t,i.transformPagePoint),i.history);i.startEvent&&r&&r(e,a),o&&o(e,a)}},Ar(t)){this.handlers=n,this.transformPagePoint=o;var a=_a(kr(t),this.transformPagePoint),s=a.point,u=St.timestamp;this.history=[(0,jt.Z)((0,jt.Z)({},s),{},{timestamp:u})];var c=n.onSessionStart;c&&c(t,Ca(a,this.history)),this.removeListeners=Sr(Tr(window,"pointermove",this.handlePointerMove),Tr(window,"pointerup",this.handlePointerUp),Tr(window,"pointercancel",this.handlePointerUp))}}return(0,i.Z)(e,[{key:"updateHandlers",value:function(e){this.handlers=e}},{key:"end",value:function(){this.removeListeners&&this.removeListeners(),_t(this.updatePoint)}}]),e}();function _a(e,t){return t?{point:t(e.point)}:e}function Sa(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Ca(e,t){var n=e.point;return{point:n,delta:Sa(n,Oa(t)),offset:Sa(n,Ia(t)),velocity:Pa(t,.1)}}function Ia(e){return e[0]}function Oa(e){return e[e.length-1]}function Pa(e,t){if(e.length<2)return{x:0,y:0};for(var n=e.length-1,r=null,i=Oa(e);n>=0&&(r=e[n],!(i.timestamp-r.timestamp>$r(t)));)n--;if(!r)return{x:0,y:0};var o=Qr(i.timestamp-r.timestamp);if(0===o)return{x:0,y:0};var a={x:(i.x-r.x)/o,y:(i.y-r.y)/o};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Ra(e){return e.max-e.min}function Ma(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.01;return Math.abs(e-t)<=n}function Ba(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;e.origin=r,e.originPoint=Pi(t.min,t.max,e.origin),e.scale=Ra(n)/Ra(t),(Ma(e.scale,1,1e-4)||isNaN(e.scale))&&(e.scale=1),e.translate=Pi(n.min,n.max,e.origin)-e.originPoint,(Ma(e.translate)||isNaN(e.translate))&&(e.translate=0)}function Na(e,t,n,r){Ba(e.x,t.x,n.x,r?r.originX:void 0),Ba(e.y,t.y,n.y,r?r.originY:void 0)}function Fa(e,t,n){e.min=n.min+t.min,e.max=e.min+Ra(t)}function Da(e,t,n){e.min=t.min-n.min,e.max=e.min+Ra(t)}function La(e,t,n){Da(e.x,t.x,n.x),Da(e.y,t.y,n.y)}function za(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function ja(e,t){var n=t.min-e.min,r=t.max-e.max;if(t.max-t.min<e.max-e.min){var i=[r,n];n=i[0],r=i[1]}return{min:n,max:r}}var Ua=.35;function Za(e,t,n){return{min:qa(e,t),max:qa(e,n)}}function qa(e,t){return"number"===typeof e?e:e[t]||0}var Ha=function(){return{x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}},Va=function(){return{x:{min:0,max:0},y:{min:0,max:0}}};function Ga(e){return[e("x"),e("y")]}function Wa(e){var t=e.top;return{x:{min:e.left,max:e.right},y:{min:t,max:e.bottom}}}function Ka(e){return void 0===e||1===e}function Ja(e){var t=e.scale,n=e.scaleX,r=e.scaleY;return!Ka(t)||!Ka(n)||!Ka(r)}function Xa(e){return Ja(e)||Ya(e)||e.z||e.rotate||e.rotateX||e.rotateY}function Ya(e){return $a(e.x)||$a(e.y)}function $a(e){return e&&"0%"!==e}function Qa(e,t,n){return n+t*(e-n)}function es(e,t,n,r,i){return void 0!==i&&(e=Qa(e,i,r)),Qa(e,n,r)+t}function ts(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0;e.min=es(e.min,t,n,r,i),e.max=es(e.max,t,n,r,i)}function ns(e,t){var n=t.x,r=t.y;ts(e.x,n.translate,n.scale,n.originPoint),ts(e.y,r.translate,r.scale,r.originPoint)}function rs(e){return Number.isInteger(e)||e>1.0000000000001||e<.999999999999?e:1}function is(e,t){e.min=e.min+t,e.max=e.max+t}function os(e,t,n){var r=(0,y.Z)(n,3),i=r[0],o=r[1],a=r[2],s=void 0!==t[a]?t[a]:.5,u=Pi(e.min,e.max,s);ts(e,t[i],t[o],u,t.scale)}var as=["x","scaleX","originX"],ss=["y","scaleY","originY"];function us(e,t){os(e.x,t,as),os(e.y,t,ss)}function cs(e,t){return Wa(function(e,t){if(!t)return e;var n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(e.getBoundingClientRect(),t))}var ls=new WeakMap,fs=function(){function e(t){(0,r.Z)(this,e),this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Va(),this.visualElement=t}return(0,i.Z)(e,[{key:"start",value:function(e){var t=this,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).snapToCursor,r=void 0!==n&&n,i=this.visualElement.presenceContext;if(!i||!1!==i.isPresent){this.panSession=new Ta(e,{onSessionStart:function(e){t.stopAnimation(),r&&t.snapToCursor(kr(e,"page").point)},onStart:function(e,n){var r=t.getProps(),i=r.drag,o=r.dragPropagation,a=r.onDragStart;if(!i||o||(t.openGlobalLock&&t.openGlobalLock(),t.openGlobalLock=Pr(i),t.openGlobalLock)){t.isDragging=!0,t.currentDirection=null,t.resolveConstraints(),t.visualElement.projection&&(t.visualElement.projection.isAnimationBlocked=!0,t.visualElement.projection.target=void 0),Ga((function(e){var n=t.getAxisMotionValue(e).get()||0;if(Mn.test(n)){var r=t.visualElement.projection;if(r&&r.layout){var i=r.layout.layoutBox[e];if(i)n=Ra(i)*(parseFloat(n)/100)}}t.originPoint[e]=n})),a&&Tt.update((function(){return a(e,n)}),!1,!0);var s=t.visualElement.animationState;s&&s.setActive("whileDrag",!0)}},onMove:function(e,n){var r=t.getProps(),i=r.dragPropagation,o=r.dragDirectionLock,a=r.onDirectionLock,s=r.onDrag;if(i||t.openGlobalLock){var u=n.offset;if(o&&null===t.currentDirection)return t.currentDirection=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x");return n}(u),void(null!==t.currentDirection&&a&&a(t.currentDirection));t.updateAxis("x",n.point,u),t.updateAxis("y",n.point,u),t.visualElement.render(),s&&s(e,n)}},onSessionEnd:function(e,n){return t.stop(e,n)}},{transformPagePoint:this.visualElement.getTransformPagePoint()})}}},{key:"stop",value:function(e,t){var n=this.isDragging;if(this.cancel(),n){var r=t.velocity;this.startAnimation(r);var i=this.getProps().onDragEnd;i&&Tt.update((function(){return i(e,t)}))}}},{key:"cancel",value:function(){this.isDragging=!1;var e=this.visualElement,t=e.projection,n=e.animationState;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0,!this.getProps().dragPropagation&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),n&&n.setActive("whileDrag",!1)}},{key:"updateAxis",value:function(e,t,n){var r=this.getProps().drag;if(n&&ds(e,r,this.currentDirection)){var i=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,t,n){var r=t.min,i=t.max;return void 0!==r&&e<r?e=n?Pi(r,e,n.min):Math.max(e,r):void 0!==i&&e>i&&(e=n?Pi(i,e,n.max):Math.min(e,i)),e}(o,this.constraints[e],this.elastic[e])),i.set(o)}}},{key:"resolveConstraints",value:function(){var e=this,t=this.getProps(),n=t.dragConstraints,r=t.dragElastic,i=(this.visualElement.projection||{}).layout,o=this.constraints;n&&Ht(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!n||!i)&&function(e,t){var n=t.top,r=t.left,i=t.bottom,o=t.right;return{x:za(e.x,r,o),y:za(e.y,n,i)}}(i.layoutBox,n),this.elastic=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Ua;return!1===e?e=0:!0===e&&(e=Ua),{x:Za(e,"left","right"),y:Za(e,"top","bottom")}}(r),o!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ga((function(t){e.getAxisMotionValue(t)&&(e.constraints[t]=function(e,t){var n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[t],e.constraints[t]))}))}},{key:"resolveRefConstraints",value:function(){var e=this.getProps(),t=e.dragConstraints,n=e.onMeasureDragConstraints;if(!t||!Ht(t))return!1;var r=t.current;Dt(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");var i=this.visualElement.projection;if(!i||!i.layout)return!1;var o=function(e,t,n){var r=cs(e,n),i=t.scroll;return i&&(is(r.x,i.offset.x),is(r.y,i.offset.y)),r}(r,i.root,this.visualElement.getTransformPagePoint()),a=function(e,t){return{x:ja(e.x,t.x),y:ja(e.y,t.y)}}(i.layout.layoutBox,o);if(n){var s=n(function(e){var t=e.x,n=e.y;return{top:n.min,right:t.max,bottom:n.max,left:t.min}}(a));this.hasMutatedConstraints=!!s,s&&(a=Wa(s))}return a}},{key:"startAnimation",value:function(e){var t=this,n=this.getProps(),r=n.drag,i=n.dragMomentum,o=n.dragElastic,a=n.dragTransition,s=n.dragSnapToOrigin,u=n.onDragTransitionEnd,c=this.constraints||{},l=Ga((function(n){if(ds(n,r,t.currentDirection)){var u=c&&c[n]||{};s&&(u={min:0,max:0});var l=o?200:1e6,f=o?40:1e7,d=(0,jt.Z)((0,jt.Z)({type:"inertia",velocity:i?e[n]:0,bounceStiffness:l,bounceDamping:f,timeConstant:750,restDelta:1,restSpeed:10},a),u);return t.startAxisValueAnimation(n,d)}}));return Promise.all(l).then(u)}},{key:"startAxisValueAnimation",value:function(e,t){var n=this.getAxisMotionValue(e);return n.start(Wo(e,n,0,t))}},{key:"stopAnimation",value:function(){var e=this;Ga((function(t){return e.getAxisMotionValue(t).stop()}))}},{key:"getAxisMotionValue",value:function(e){var t="_drag"+e.toUpperCase(),n=this.visualElement.getProps(),r=n[t];return r||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}},{key:"snapToCursor",value:function(e){var t=this;Ga((function(n){if(ds(n,t.getProps().drag,t.currentDirection)){var r=t.visualElement.projection,i=t.getAxisMotionValue(n);if(r&&r.layout){var o=r.layout.layoutBox[n],a=o.min,s=o.max;i.set(e[n]-Pi(a,s,.5))}}}))}},{key:"scalePositionWithinConstraints",value:function(){var e=this;if(this.visualElement.current){var t=this.getProps(),n=t.drag,r=t.dragConstraints,i=this.visualElement.projection;if(Ht(r)&&i&&this.constraints){this.stopAnimation();var o={x:0,y:0};Ga((function(t){var n=e.getAxisMotionValue(t);if(n){var r=n.get();o[t]=function(e,t){var n=.5,r=Ra(e),i=Ra(t);return i>r?n=Yi(t.min,t.max-r,e.min):r>i&&(n=Yi(e.min,e.max-i,t.min)),An(0,1,n)}({min:r,max:r},e.constraints[t])}}));var a=this.visualElement.getProps().transformTemplate;this.visualElement.current.style.transform=a?a({},""):"none",i.root&&i.root.updateScroll(),i.updateLayout(),this.resolveConstraints(),Ga((function(t){if(ds(t,n,null)){var r=e.getAxisMotionValue(t),i=e.constraints[t],a=i.min,s=i.max;r.set(Pi(a,s,o[t]))}}))}}}},{key:"addListeners",value:function(){var e=this;if(this.visualElement.current){ls.set(this.visualElement,this);var t=Tr(this.visualElement.current,"pointerdown",(function(t){var n=e.getProps(),r=n.drag,i=n.dragListener;r&&(void 0===i||i)&&e.start(t)})),n=function(){Ht(e.getProps().dragConstraints)&&(e.constraints=e.resolveRefConstraints())},r=this.visualElement.projection,i=r.addEventListener("measure",n);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),n();var o=xr(window,"resize",(function(){return e.scalePositionWithinConstraints()})),a=r.addEventListener("didUpdate",(function(t){var n=t.delta,r=t.hasLayoutChanged;e.isDragging&&r&&(Ga((function(t){var r=e.getAxisMotionValue(t);r&&(e.originPoint[t]+=n[t].translate,r.set(r.get()+n[t].translate))})),e.visualElement.render())}));return function(){o(),t(),i(),a&&a()}}}},{key:"getProps",value:function(){var e=this.visualElement.getProps(),t=e.drag,n=void 0!==t&&t,r=e.dragDirectionLock,i=void 0!==r&&r,o=e.dragPropagation,a=void 0!==o&&o,s=e.dragConstraints,u=void 0!==s&&s,c=e.dragElastic,l=void 0===c?Ua:c,f=e.dragMomentum,d=void 0===f||f;return(0,jt.Z)((0,jt.Z)({},e),{},{drag:n,dragDirectionLock:i,dragPropagation:a,dragConstraints:u,dragElastic:l,dragMomentum:d})}}]),e}();function ds(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}var ps=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).removeGroupControls=At,i.removeListeners=At,i.controls=new fs(e),i}return(0,i.Z)(n,[{key:"mount",value:function(){var e=this.node.getProps().dragControls;e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||At}},{key:"unmount",value:function(){this.removeGroupControls(),this.removeListeners()}}]),n}(Mr),hs=function(e){return function(t,n){e&&Tt.update((function(){return e(t,n)}))}},ms=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).removePointerDownListener=At,e}return(0,i.Z)(n,[{key:"onPointerDown",value:function(e){this.session=new Ta(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint()})}},{key:"createPanHandlers",value:function(){var e=this,t=this.node.getProps(),n=t.onPanSessionStart,r=t.onPanStart,i=t.onPan,o=t.onPanEnd;return{onSessionStart:hs(n),onStart:hs(r),onMove:i,onEnd:function(t,n){delete e.session,o&&Tt.update((function(){return o(t,n)}))}}}},{key:"mount",value:function(){var e=this;this.removePointerDownListener=Tr(this.node.current,"pointerdown",(function(t){return e.onPointerDown(t)}))}},{key:"update",value:function(){this.session&&this.session.updateHandlers(this.createPanHandlers())}},{key:"unmount",value:function(){this.removePointerDownListener(),this.session&&this.session.end()}}]),n}(Mr);var ys={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function vs(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var gs={correct:function(e,t){if(!t.target)return e;if("string"===typeof e){if(!Bn.test(e))return e;e=parseFloat(e)}var n=vs(e,t.target.x),r=vs(e,t.target.y);return"".concat(n,"% ").concat(r,"%")}},bs={correct:function(e,t){var n=t.treeScale,r=t.projectionDelta,i=e,o=Vi.parse(e);if(o.length>5)return i;var a=Vi.createTransformer(e),s="number"!==typeof o[0]?1:0,u=r.x.scale*n.x,c=r.y.scale*n.y;o[0+s]/=u,o[1+s]/=c;var l=Pi(u,c,.5);return"number"===typeof o[2+s]&&(o[2+s]/=l),"number"===typeof o[3+s]&&(o[3+s]/=l),a(o)}},ws=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"componentDidMount",value:function(){var e,t=this,n=this.props,r=n.visualElement,i=n.layoutGroup,o=n.switchLayoutGroup,a=n.layoutId,s=r.projection;e=As,Object.assign(fn,e),s&&(i.group&&i.group.add(s),o&&o.register&&a&&o.register(s),s.root.didUpdate(),s.addEventListener("animationComplete",(function(){t.safeToRemove()})),s.setOptions((0,jt.Z)((0,jt.Z)({},s.options),{},{onExitComplete:function(){return t.safeToRemove()}}))),ys.hasEverUpdated=!0}},{key:"getSnapshotBeforeUpdate",value:function(e){var t=this,n=this.props,r=n.layoutDependency,i=n.visualElement,o=n.drag,a=n.isPresent,s=i.projection;return s?(s.isPresent=a,o||e.layoutDependency!==r||void 0===r?s.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?s.promote():s.relegate()||Tt.postRender((function(){var e=s.getStack();e&&e.members.length||t.safeToRemove()}))),null):null}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props.visualElement.projection;t&&(t.root.didUpdate(),queueMicrotask((function(){!t.currentAnimation&&t.isLead()&&e.safeToRemove()})))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.visualElement,n=e.layoutGroup,r=e.switchLayoutGroup,i=t.projection;i&&(i.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(i),r&&r.deregister&&r.deregister(i))}},{key:"safeToRemove",value:function(){var e=this.props.safeToRemove;e&&e()}},{key:"render",value:function(){return null}}]),n}(g.Component);function xs(e){var t=function(){var e=(0,g.useContext)(It);if(null===e)return[!0,null];var t=e.isPresent,n=e.onExitComplete,r=e.register,i=(0,g.useId)();return(0,g.useEffect)((function(){return r(i)}),[]),!t&&n?[!1,function(){return n&&n(i)}]:[!0]}(),n=(0,y.Z)(t,2),r=n[0],i=n[1],o=(0,g.useContext)(Nt);return g.createElement(ws,(0,jt.Z)((0,jt.Z)({},e),{},{layoutGroup:o,switchLayoutGroup:(0,g.useContext)(rn),isPresent:r,safeToRemove:i}))}var As={borderRadius:(0,jt.Z)((0,jt.Z)({},gs),{},{applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]}),borderTopLeftRadius:gs,borderTopRightRadius:gs,borderBottomLeftRadius:gs,borderBottomRightRadius:gs,boxShadow:bs},ks=["TopLeft","TopRight","BottomLeft","BottomRight"],Es=ks.length,Ts=function(e){return"string"===typeof e?parseFloat(e):e},_s=function(e){return"number"===typeof e||Bn.test(e)};function Ss(e,t){return void 0!==e[t]?e[t]:e.borderRadius}var Cs=Os(0,.5,vi),Is=Os(.5,.95,At);function Os(e,t,n){return function(r){return r<e?0:r>t?1:n(Yi(e,t,r))}}function Ps(e,t){e.min=t.min,e.max=t.max}function Rs(e,t){Ps(e.x,t.x),Ps(e.y,t.y)}function Ms(e,t,n,r,i){return e=Qa(e-=t,1/n,r),void 0!==i&&(e=Qa(e,1/i,r)),e}function Bs(e,t,n,r,i){var o=(0,y.Z)(n,3),a=o[0],s=o[1],u=o[2];!function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,i=arguments.length>4?arguments[4]:void 0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:e,a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:e;if(Mn.test(t)&&(t=parseFloat(t),t=Pi(a.min,a.max,t/100)-a.min),"number"===typeof t){var s=Pi(o.min,o.max,r);e===o&&(s-=t),e.min=Ms(e.min,t,n,s,i),e.max=Ms(e.max,t,n,s,i)}}(e,t[a],t[s],t[u],t.scale,r,i)}var Ns=["x","scaleX","originX"],Fs=["y","scaleY","originY"];function Ds(e,t,n,r){Bs(e.x,t,Ns,n?n.x:void 0,r?r.x:void 0),Bs(e.y,t,Fs,n?n.y:void 0,r?r.y:void 0)}function Ls(e){return 0===e.translate&&1===e.scale}function zs(e){return Ls(e.x)&&Ls(e.y)}function js(e,t){return e.x.min===t.x.min&&e.x.max===t.x.max&&e.y.min===t.y.min&&e.y.max===t.y.max}function Us(e){return Ra(e.x)/Ra(e.y)}var Zs=function(){function e(){(0,r.Z)(this,e),this.members=[]}return(0,i.Z)(e,[{key:"add",value:function(e){Xo(this.members,e),e.scheduleRender()}},{key:"remove",value:function(e){if(Yo(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){var t=this.members[this.members.length-1];t&&this.promote(t)}}},{key:"relegate",value:function(e){var t,n=this.members.findIndex((function(t){return e===t}));if(0===n)return!1;for(var r=n;r>=0;r--){var i=this.members[r];if(!1!==i.isPresent){t=i;break}}return!!t&&(this.promote(t),!0)}},{key:"promote",value:function(e,t){var n=this.lead;e!==n&&(this.prevLead=n,this.lead=e,e.show(),n&&(n.instance&&n.scheduleRender(),e.scheduleRender(),e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0),!1===e.options.crossfade&&n.hide()))}},{key:"exitAnimationComplete",value:function(){this.members.forEach((function(e){var t=e.options,n=e.resumingFrom;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}},{key:"scheduleRender",value:function(){this.members.forEach((function(e){e.instance&&e.scheduleRender(!1)}))}},{key:"removeLeadSnapshot",value:function(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}]),e}();function qs(e,t,n){var r="",i=e.x.translate/t.x,o=e.y.translate/t.y;if((i||o)&&(r="translate3d(".concat(i,"px, ").concat(o,"px, 0) ")),1===t.x&&1===t.y||(r+="scale(".concat(1/t.x,", ").concat(1/t.y,") ")),n){var a=n.rotate,s=n.rotateX,u=n.rotateY;a&&(r+="rotate(".concat(a,"deg) ")),s&&(r+="rotateX(".concat(s,"deg) ")),u&&(r+="rotateY(".concat(u,"deg) "))}var c=e.x.scale*t.x,l=e.y.scale*t.y;return 1===c&&1===l||(r+="scale(".concat(c,", ").concat(l,")")),r||"none"}var Hs=function(e,t){return e.depth-t.depth},Vs=function(){function e(){(0,r.Z)(this,e),this.children=[],this.isDirty=!1}return(0,i.Z)(e,[{key:"add",value:function(e){Xo(this.children,e),this.isDirty=!0}},{key:"remove",value:function(e){Yo(this.children,e),this.isDirty=!0}},{key:"forEach",value:function(e){this.isDirty&&this.children.sort(Hs),this.isDirty=!1,this.children.forEach(e)}}]),e}();var Gs=["","X","Y","Z"],Ws=0,Ks={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function Js(e){var t=e.attachResizeListener,n=e.defaultParent,o=e.measureScroll,a=e.checkIsScrollRoot,s=e.resetTransform;return function(){function e(){var t=this,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null===n||void 0===n?void 0:n();(0,r.Z)(this,e),this.id=Ws++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.checkUpdateFailed=function(){t.isUpdating&&(t.isUpdating=!1,t.clearAllSnapshots())},this.updateProjection=function(){var e;Ks.totalNodes=Ks.resolvedTargetDeltas=Ks.recalculatedProjection=0,t.nodes.forEach($s),t.nodes.forEach(ou),t.nodes.forEach(au),t.nodes.forEach(Qs),e=Ks,window.MotionDebug&&window.MotionDebug.record(e)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=i,this.root=o?o.root||o:this,this.path=o?[].concat((0,l.Z)(o.path),[o]):[],this.parent=o,this.depth=o?o.depth+1:0;for(var a=0;a<this.path.length;a++)this.path[a].shouldResetTransform=!0;this.root===this&&(this.nodes=new Vs)}return(0,i.Z)(e,[{key:"addEventListener",value:function(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new $o),this.eventHandlers.get(e).add(t)}},{key:"notifyListeners",value:function(e){for(var t=this.eventHandlers.get(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];t&&t.notify.apply(t,r)}},{key:"hasListeners",value:function(e){return this.eventHandlers.has(e)}},{key:"mount",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(!this.instance){var i;this.isSVG=(i=e)instanceof SVGElement&&"svg"!==i.tagName,this.instance=e;var o=this.options,a=o.layoutId,s=o.layout,u=o.visualElement;if(u&&!u.current&&u.mount(e),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(s||a)&&(this.isLayoutDirty=!0),t){var c,l=function(){return n.root.updateBlockedByResize=!1};t(e,(function(){n.root.updateBlockedByResize=!0,c&&c(),c=function(e,t){var n=performance.now(),r=function r(i){var o=i.timestamp-n;o>=t&&(_t(r),e(o-t))};return Tt.read(r,!0),function(){return _t(r)}}(l,250),ys.hasAnimatedSinceResize&&(ys.hasAnimatedSinceResize=!1,n.nodes.forEach(iu))}))}a&&this.root.registerSharedNode(a,this),!1!==this.options.animate&&u&&(a||s)&&this.addEventListener("didUpdate",(function(e){var t=e.delta,r=e.hasLayoutChanged,i=e.hasRelativeTargetChanged,o=e.layout;if(n.isTreeAnimationBlocked())return n.target=void 0,void(n.relativeTarget=void 0);var a=n.options.transition||u.getDefaultTransition()||pu,s=u.getProps(),c=s.onLayoutAnimationStart,l=s.onLayoutAnimationComplete,f=!n.targetLayout||!js(n.targetLayout,o)||i,d=!r&&i;if(n.options.layoutRoot||n.resumeFrom&&n.resumeFrom.instance||d||r&&(f||!n.currentAnimation)){n.resumeFrom&&(n.resumingFrom=n.resumeFrom,n.resumingFrom.resumingFrom=void 0),n.setAnimationOrigin(t,d);var p=(0,jt.Z)((0,jt.Z)({},Go(a,"layout")),{},{onPlay:c,onComplete:l});(u.shouldReduceMotion||n.options.layoutRoot)&&(p.delay=0,p.type=!1),n.startAnimation(p)}else r||iu(n),n.isLead()&&n.options.onExitComplete&&n.options.onExitComplete();n.targetLayout=o}))}}},{key:"unmount",value:function(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);var e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_t(this.updateProjection)}},{key:"blockUpdate",value:function(){this.updateManuallyBlocked=!0}},{key:"unblockUpdate",value:function(){this.updateManuallyBlocked=!1}},{key:"isUpdateBlocked",value:function(){return this.updateManuallyBlocked||this.updateBlockedByResize}},{key:"isTreeAnimationBlocked",value:function(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}},{key:"startUpdate",value:function(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(su),this.animationId++)}},{key:"getTransformTemplate",value:function(){var e=this.options.visualElement;return e&&e.getProps().transformTemplate}},{key:"willUpdate",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())this.options.onExitComplete&&this.options.onExitComplete();else if(!this.root.isUpdating&&this.root.startUpdate(),!this.isLayoutDirty){this.isLayoutDirty=!0;for(var t=0;t<this.path.length;t++){var n=this.path[t];n.shouldResetTransform=!0,n.updateScroll("snapshot"),n.options.layoutRoot&&n.willUpdate(!1)}var r=this.options,i=r.layoutId,o=r.layout;if(void 0!==i||o){var a=this.getTransformTemplate();this.prevTransformTemplateValue=a?a(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}}}},{key:"update",value:function(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(tu);this.isUpdating||this.nodes.forEach(nu),this.isUpdating=!1,this.nodes.forEach(ru),this.nodes.forEach(Xs),this.nodes.forEach(Ys),this.clearAllSnapshots();var e=performance.now();St.delta=An(0,1e3/60,e-St.timestamp),St.timestamp=e,St.isProcessing=!0,Ct.update.process(St),Ct.preRender.process(St),Ct.render.process(St),St.isProcessing=!1}},{key:"didUpdate",value:function(){var e=this;this.updateScheduled||(this.updateScheduled=!0,queueMicrotask((function(){return e.update()})))}},{key:"clearAllSnapshots",value:function(){this.nodes.forEach(eu),this.sharedNodes.forEach(uu)}},{key:"scheduleUpdateProjection",value:function(){Tt.preRender(this.updateProjection,!1,!0)}},{key:"scheduleCheckAfterUnmount",value:function(){var e=this;Tt.postRender((function(){e.isLayoutDirty?e.root.didUpdate():e.root.checkUpdateFailed()}))}},{key:"updateSnapshot",value:function(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}},{key:"updateLayout",value:function(){if(this.instance&&(this.updateScroll(),this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty)){if(this.resumeFrom&&!this.resumeFrom.instance)for(var e=0;e<this.path.length;e++){this.path[e].updateScroll()}var t=this.layout;this.layout=this.measure(!1),this.layoutCorrected=Va(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);var n=this.options.visualElement;n&&n.notify("LayoutMeasure",this.layout.layoutBox,t?t.layoutBox:void 0)}}},{key:"updateScroll",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"measure",t=Boolean(this.options.layoutScroll&&this.instance);this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&(this.scroll={animationId:this.root.animationId,phase:e,isRoot:a(this.instance),offset:o(this.instance)})}},{key:"resetTransform",value:function(){if(s){var e=this.isLayoutDirty||this.shouldResetTransform,t=this.projectionDelta&&!zs(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,i=r!==this.prevTransformTemplateValue;e&&(t||Xa(this.latestValues)||i)&&(s(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}}},{key:"measure",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),function(e){du||(du=hu()?Math.round:function(e){return Math.round(2*e)/2});mu(e.x),mu(e.y)}(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}},{key:"measurePageBox",value:function(){var e=this.options.visualElement;if(!e)return Va();var t=e.measureViewportBox(),n=this.root.scroll;return n&&(is(t.x,n.offset.x),is(t.y,n.offset.y)),t}},{key:"removeElementScroll",value:function(e){var t=Va();Rs(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n],i=r.scroll,o=r.options;if(r!==this.root&&i&&o.layoutScroll){if(i.isRoot){Rs(t,e);var a=this.root.scroll;a&&(is(t.x,-a.offset.x),is(t.y,-a.offset.y))}is(t.x,i.offset.x),is(t.y,i.offset.y)}}return t}},{key:"applyTransform",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=Va();Rs(n,e);for(var r=0;r<this.path.length;r++){var i=this.path[r];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&us(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Xa(i.latestValues)&&us(n,i.latestValues)}return Xa(this.latestValues)&&us(n,this.latestValues),n}},{key:"removeTransform",value:function(e){var t=Va();Rs(t,e);for(var n=0;n<this.path.length;n++){var r=this.path[n];if(r.instance&&Xa(r.latestValues)){Ja(r.latestValues)&&r.updateSnapshot();var i=Va();Rs(i,r.measurePageBox()),Ds(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,i)}}return Xa(this.latestValues)&&Ds(t,this.latestValues),t}},{key:"setTargetDelta",value:function(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}},{key:"setOptions",value:function(e){this.options=(0,jt.Z)((0,jt.Z)((0,jt.Z)({},this.options),e),{},{crossfade:void 0===e.crossfade||e.crossfade})}},{key:"clearMeasurements",value:function(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}},{key:"forceRelativeParentToResolveTarget",value:function(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==St.timestamp&&this.relativeParent.resolveTargetDelta(!0)}},{key:"resolveTargetDelta",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);var r=Boolean(this.resumingFrom)||this!==n;if(!!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget)){var i=this.options,o=i.layout,a=i.layoutId;if(this.layout&&(o||a)){if(this.resolvedRelativeTargetAt=St.timestamp,!this.targetDelta&&!this.relativeTarget){var s=this.getClosestProjectingParent();s&&s.layout&&1!==this.animationProgress?(this.relativeParent=s,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Va(),this.relativeTargetOrigin=Va(),La(this.relativeTargetOrigin,this.layout.layoutBox,s.layout.layoutBox),Rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var u,c,l;if(this.target||(this.target=Va(),this.targetWithTransforms=Va()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),u=this.target,c=this.relativeTarget,l=this.relativeParent.target,Fa(u.x,c.x,l.x),Fa(u.y,c.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Rs(this.target,this.layout.layoutBox),ns(this.target,this.targetDelta)):Rs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;var f=this.getClosestProjectingParent();f&&Boolean(f.resumingFrom)===Boolean(this.resumingFrom)&&!f.options.layoutScroll&&f.target&&1!==this.animationProgress?(this.relativeParent=f,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Va(),this.relativeTargetOrigin=Va(),La(this.relativeTargetOrigin,this.target,f.target),Rs(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ks.resolvedTargetDeltas++}}}}},{key:"getClosestProjectingParent",value:function(){if(this.parent&&!Ja(this.parent.latestValues)&&!Ya(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}},{key:"isProjecting",value:function(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}},{key:"calcProjection",value:function(){var e,t=this.getLead(),n=Boolean(this.resumingFrom)||this!==t,r=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===St.timestamp&&(r=!1),!r){var i=this.options,o=i.layout,a=i.layoutId;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),this.layout&&(o||a)){Rs(this.layoutCorrected,this.layout.layoutBox);var s=this.treeScale.x,u=this.treeScale.y;!function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=n.length;if(i){var o,a;t.x=t.y=1;for(var s=0;s<i;s++){a=(o=n[s]).projectionDelta;var u=o.instance;u&&u.style&&"contents"===u.style.display||(r&&o.options.layoutScroll&&o.scroll&&o!==o.root&&us(e,{x:-o.scroll.offset.x,y:-o.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,ns(e,a)),r&&Xa(o.latestValues)&&us(e,o.latestValues))}t.x=rs(t.x),t.y=rs(t.y)}}(this.layoutCorrected,this.treeScale,this.path,n),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox);var c=t.target;if(c){this.projectionDelta||(this.projectionDelta=Ha(),this.projectionDeltaWithTransform=Ha());var l=this.projectionTransform;Na(this.projectionDelta,this.layoutCorrected,c,this.latestValues),this.projectionTransform=qs(this.projectionDelta,this.treeScale),this.projectionTransform===l&&this.treeScale.x===s&&this.treeScale.y===u||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",c)),Ks.recalculatedProjection++}else this.projectionTransform&&(this.projectionDelta=Ha(),this.projectionTransform="none",this.scheduleRender())}}}},{key:"hide",value:function(){this.isVisible=!1}},{key:"show",value:function(){this.isVisible=!0}},{key:"scheduleRender",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.options.scheduleRender&&this.options.scheduleRender(),e){var t=this.getStack();t&&t.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}},{key:"setAnimationOrigin",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.snapshot,i=r?r.latestValues:{},o=(0,jt.Z)({},this.latestValues),a=Ha();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!n;var s,u=Va(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),f=!l||l.members.length<=1,d=Boolean(c&&!f&&!0===this.options.crossfade&&!this.path.some(fu));this.animationProgress=0,this.mixTargetDelta=function(n){var r=n/1e3;cu(a.x,e.x,r),cu(a.y,e.y,r),t.setTargetDelta(a),t.relativeTarget&&t.relativeTargetOrigin&&t.layout&&t.relativeParent&&t.relativeParent.layout&&(La(u,t.layout.layoutBox,t.relativeParent.layout.layoutBox),function(e,t,n,r){lu(e.x,t.x,n.x,r),lu(e.y,t.y,n.y,r)}(t.relativeTarget,t.relativeTargetOrigin,u,r),s&&js(t.relativeTarget,s)&&(t.isProjectionDirty=!1),s||(s=Va()),Rs(s,t.relativeTarget)),c&&(t.animationValues=o,function(e,t,n,r,i,o){i?(e.opacity=Pi(0,void 0!==n.opacity?n.opacity:1,Cs(r)),e.opacityExit=Pi(void 0!==t.opacity?t.opacity:1,0,Is(r))):o&&(e.opacity=Pi(void 0!==t.opacity?t.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(var a=0;a<Es;a++){var s="border".concat(ks[a],"Radius"),u=Ss(t,s),c=Ss(n,s);void 0===u&&void 0===c||(u||(u=0),c||(c=0),0===u||0===c||_s(u)===_s(c)?(e[s]=Math.max(Pi(Ts(u),Ts(c),r),0),(Mn.test(c)||Mn.test(u))&&(e[s]+="%")):e[s]=c)}(t.rotate||n.rotate)&&(e.rotate=Pi(t.rotate||0,n.rotate||0,r))}(o,i,t.latestValues,r,d,f)),t.root.scheduleUpdateProjection(),t.scheduleRender(),t.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}},{key:"startAnimation",value:function(e){var t=this;this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_t(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Tt.update((function(){ys.hasAnimatedSinceResize=!0,t.currentAnimation=function(e,t,n){var r=mn(e)?e:ea(e);return r.start(Wo("",r,t,n)),r.animation}(0,1e3,(0,jt.Z)((0,jt.Z)({},e),{},{onUpdate:function(n){t.mixTargetDelta(n),e.onUpdate&&e.onUpdate(n)},onComplete:function(){e.onComplete&&e.onComplete(),t.completeAnimation()}})),t.resumingFrom&&(t.resumingFrom.currentAnimation=t.currentAnimation),t.pendingAnimation=void 0}))}},{key:"completeAnimation",value:function(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);var e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}},{key:"finishAnimation",value:function(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}},{key:"applyTransformsToTarget",value:function(){var e=this.getLead(),t=e.targetWithTransforms,n=e.target,r=e.layout,i=e.latestValues;if(t&&n&&r){if(this!==e&&this.layout&&r&&yu(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Va();var o=Ra(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+o;var a=Ra(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+a}Rs(t,n),us(t,i),Na(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}},{key:"registerSharedNode",value:function(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Zs),this.sharedNodes.get(e).add(t);var n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}},{key:"isLead",value:function(){var e=this.getStack();return!e||e.lead===this}},{key:"getLead",value:function(){var e;return this.options.layoutId&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}},{key:"getPrevLead",value:function(){var e;return this.options.layoutId?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}},{key:"getStack",value:function(){var e=this.options.layoutId;if(e)return this.root.sharedNodes.get(e)}},{key:"promote",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.needsReset,n=e.transition,r=e.preserveFollowOpacity,i=this.getStack();i&&i.promote(this,r),t&&(this.projectionDelta=void 0,this.needsReset=!0),n&&this.setOptions({transition:n})}},{key:"relegate",value:function(){var e=this.getStack();return!!e&&e.relegate(this)}},{key:"resetRotation",value:function(){var e=this.options.visualElement;if(e){var t=!1,n=e.latestValues;if((n.rotate||n.rotateX||n.rotateY||n.rotateZ)&&(t=!0),t){for(var r={},i=0;i<Gs.length;i++){var o="rotate"+Gs[i];n[o]&&(r[o]=n[o],e.setStaticValue(o,0))}for(var a in e.render(),r)e.setStaticValue(a,r[a]);e.scheduleRender()}}}},{key:"getProjectionStyles",value:function(){var e,t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r={};if(!this.instance||this.isSVG)return r;if(!this.isVisible)return{visibility:"hidden"};r.visibility="";var i=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,r.opacity="",r.pointerEvents=mr(n.pointerEvents)||"",r.transform=i?i(this.latestValues,""):"none",r;var o=this.getLead();if(!this.projectionDelta||!this.layout||!o.target){var a={};return this.options.layoutId&&(a.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,a.pointerEvents=mr(n.pointerEvents)||""),this.hasProjected&&!Xa(this.latestValues)&&(a.transform=i?i({},""):"none",this.hasProjected=!1),a}var s=o.animationValues||o.latestValues;this.applyTransformsToTarget(),r.transform=qs(this.projectionDeltaWithTransform,this.treeScale,s),i&&(r.transform=i(s,r.transform));var u=this.projectionDelta,c=u.x,l=u.y;for(var f in r.transformOrigin="".concat(100*c.origin,"% ").concat(100*l.origin,"% 0"),o.animationValues?r.opacity=o===this?null!==(t=null!==(e=s.opacity)&&void 0!==e?e:this.latestValues.opacity)&&void 0!==t?t:1:this.preserveOpacity?this.latestValues.opacity:s.opacityExit:r.opacity=o===this?void 0!==s.opacity?s.opacity:"":void 0!==s.opacityExit?s.opacityExit:0,fn)if(void 0!==s[f]){var d=fn[f],p=d.correct,h=d.applyTo,m="none"===r.transform?s[f]:p(s[f],o);if(h)for(var y=h.length,v=0;v<y;v++)r[h[v]]=m;else r[f]=m}return this.options.layoutId&&(r.pointerEvents=o===this?mr(n.pointerEvents)||"":"none"),r}},{key:"clearSnapshot",value:function(){this.resumeFrom=this.snapshot=void 0}},{key:"resetTree",value:function(){this.root.nodes.forEach((function(e){var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(tu),this.root.sharedNodes.clear()}}]),e}()}function Xs(e){e.updateLayout()}function Ys(e){var t,n=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){var r=e.layout,i=r.layoutBox,o=r.measuredBox,a=e.options.animationType,s=n.source!==e.layout.source;"size"===a?Ga((function(e){var t=s?n.measuredBox[e]:n.layoutBox[e],r=Ra(t);t.min=i[e].min,t.max=t.min+r})):yu(a,n.layoutBox,i)&&Ga((function(t){var r=s?n.measuredBox[t]:n.layoutBox[t],o=Ra(i[t]);r.max=r.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[t].max=e.relativeTarget[t].min+o)}));var u=Ha();Na(u,i,n.layoutBox);var c=Ha();s?Na(c,e.applyTransform(o,!0),n.measuredBox):Na(c,i,n.layoutBox);var l=!zs(u),f=!1;if(!e.resumeFrom){var d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){var p=d.snapshot,h=d.layout;if(p&&h){var m=Va();La(m,n.layoutBox,p.layoutBox);var y=Va();La(y,i,h.layoutBox),js(m,y)||(f=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=m,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:n,delta:c,layoutDelta:u,hasLayoutChanged:l,hasRelativeTargetChanged:f})}else if(e.isLead()){var v=e.options.onExitComplete;v&&v()}e.options.transition=void 0}function $s(e){Ks.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Qs(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function eu(e){e.clearSnapshot()}function tu(e){e.clearMeasurements()}function nu(e){e.isLayoutDirty=!1}function ru(e){var t=e.options.visualElement;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function iu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function ou(e){e.resolveTargetDelta()}function au(e){e.calcProjection()}function su(e){e.resetRotation()}function uu(e){e.removeLeadSnapshot()}function cu(e,t,n){e.translate=Pi(t.translate,0,n),e.scale=Pi(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function lu(e,t,n,r){e.min=Pi(t.min,n.min,r),e.max=Pi(t.max,n.max,r)}function fu(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}var du,pu={duration:.45,ease:[.4,0,.1,1]},hu=function(){return navigator.userAgent.toLowerCase().includes("applewebkit/")};function mu(e){e.min=du(e.min),e.max=du(e.max)}function yu(e,t,n){return"position"===e||"preserve-aspect"===e&&!Ma(Us(t),Us(n),.2)}var vu=Js({attachResizeListener:function(e,t){return xr(e,"resize",t)},measureScroll:function(){return{x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}},checkIsScrollRoot:function(){return!0}}),gu={current:void 0},bu=Js({measureScroll:function(e){return{x:e.scrollLeft,y:e.scrollTop}},defaultParent:function(){if(!gu.current){var e=new vu({});e.mount(window),e.setOptions({layoutScroll:!0}),gu.current=e}return gu.current},resetTransform:function(e,t){e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:function(e){return Boolean("fixed"===window.getComputedStyle(e).position)}}),wu={pan:{Feature:ms},drag:{Feature:ps,ProjectionNode:bu,MeasureLayout:xs}};var xu=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;var Au=4;function ku(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Dt(n<=Au,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=function(e){var t=xu.exec(e);if(!t)return[,];var n=(0,y.Z)(t,3);return[n[1],n[2]]}(e),i=(0,y.Z)(r,2),o=i[0],a=i[1];if(o){var s=window.getComputedStyle(t).getPropertyValue(o);return s?s.trim():wn(a)?ku(a,t,n+1):a}}function Eu(e,t,n){var r=Object.assign({},(function(e){if(null==e)throw new TypeError("Cannot destructure "+e)}(t),t)),i=e.current;if(!(i instanceof Element))return{target:r,transitionEnd:n};for(var o in n&&(n=(0,jt.Z)({},n)),e.values.forEach((function(e){var t=e.get();if(wn(t)){var n=ku(t,i);n&&e.set(n)}})),r){var a=r[o];if(wn(a)){var s=ku(a,i);s&&(r[o]=s,n||(n={}),void 0===n[o]&&(n[o]=a))}}return{target:r,transitionEnd:n}}var Tu=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),_u=function(e){return Tu.has(e)},Su=function(e){return e===kn||e===Bn},Cu=function(e,t){return parseFloat(e.split(", ")[t])},Iu=function(e,t){return function(n,r){var i=r.transform;if("none"===i||!i)return 0;var o=i.match(/^matrix3d\((.+)\)$/);if(o)return Cu(o[1],t);var a=i.match(/^matrix\((.+)\)$/);return a?Cu(a[1],e):0}},Ou=new Set(["x","y","z"]),Pu=dn.filter((function(e){return!Ou.has(e)}));var Ru={width:function(e,t){var n=e.x,r=t.paddingLeft,i=void 0===r?"0":r,o=t.paddingRight,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},height:function(e,t){var n=e.y,r=t.paddingTop,i=void 0===r?"0":r,o=t.paddingBottom,a=void 0===o?"0":o;return n.max-n.min-parseFloat(i)-parseFloat(a)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Iu(4,13),y:Iu(5,14)};Ru.translateX=Ru.x,Ru.translateY=Ru.y;var Mu=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=(0,jt.Z)({},t),r=(0,jt.Z)({},r);var i=Object.keys(t).filter(_u),o=[],a=!1,s=[];if(i.forEach((function(i){var u=e.getValue(i);if(e.hasValue(i)){var c,l=n[i],f=ra(l),d=t[i];if(dr(d)){var p=d.length,h=null===d[0]?1:0;l=d[h],f=ra(l);for(var m=h;m<p&&null!==d[m];m++)c?Dt(ra(d[m])===c,"All keyframes must be of the same type"):(c=ra(d[m]),Dt(c===f||Su(f)&&Su(c),"Keyframes must be of the same dimension as the current value"))}else c=ra(d);if(f!==c)if(Su(f)&&Su(c)){var y=u.get();"string"===typeof y&&u.set(parseFloat(y)),"string"===typeof d?t[i]=parseFloat(d):Array.isArray(d)&&c===Bn&&(t[i]=d.map(parseFloat))}else(null===f||void 0===f?void 0:f.transform)&&(null===c||void 0===c?void 0:c.transform)&&(0===l||0===d)?0===l?u.set(c.transform(l)):t[i]=f.transform(d):(a||(o=function(e){var t=[];return Pu.forEach((function(n){var r=e.getValue(n);void 0!==r&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),t.length&&e.render(),t}(e),a=!0),s.push(i),r[i]=void 0!==r[i]?r[i]:t[i],u.jump(d))}})),s.length){var u=s.indexOf("height")>=0?window.pageYOffset:null,c=function(e,t,n){var r=t.measureViewportBox(),i=t.current,o=getComputedStyle(i),a=o.display,s={};"none"===a&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Ru[e](r,o)})),t.render();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);r&&r.jump(s[n]),e[n]=Ru[n](u,o)})),e}(t,e,s);return o.length&&o.forEach((function(t){var n=(0,y.Z)(t,2),r=n[0],i=n[1];e.getValue(r).set(i)})),e.render(),bt&&null!==u&&window.scrollTo({top:u}),{target:c,transitionEnd:r}}return{target:t,transitionEnd:r}};function Bu(e,t,n,r){return function(e){return Object.keys(e).some(_u)}(t)?Mu(e,t,n,r):{target:t,transitionEnd:r}}var Nu={current:null},Fu={current:!1};var Du=new WeakMap,Lu=["willChange"],zu=["children"],ju=Object.keys(en),Uu=ju.length,Zu=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],qu=Kt.length,Hu=function(){function e(t){var n=this,i=t.parent,o=t.props,a=t.presenceContext,s=t.reducedMotionConfig,u=t.visualState,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,r.Z)(this,e),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return Tt.render(n.render,!1,!0)};var l=u.latestValues,f=u.renderState;this.latestValues=l,this.baseTarget=(0,jt.Z)({},l),this.initialValues=o.initial?(0,jt.Z)({},l):{},this.renderState=f,this.parent=i,this.props=o,this.presenceContext=a,this.depth=i?i.depth+1:0,this.reducedMotionConfig=s,this.options=c,this.isControllingVariants=Jt(o),this.isVariantNode=Xt(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(i&&i.current);var d=this.scrapeMotionValuesFromProps(o,{}),p=d.willChange,h=Jn(d,Lu);for(var m in h){var y=h[m];void 0!==l[m]&&mn(y)&&(y.set(l[m],!1),Ko(p)&&p.add(m))}}return(0,i.Z)(e,[{key:"scrapeMotionValuesFromProps",value:function(e,t){return{}}},{key:"mount",value:function(e){var t=this;this.current=e,Du.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((function(e,n){return t.bindToMotionValue(n,e)})),Fu.current||function(){if(Fu.current=!0,bt)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Nu.current=e.matches};e.addListener(t),t()}else Nu.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Nu.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){for(var e in Du.delete(this.current),this.projection&&this.projection.unmount(),_t(this.notifyUpdate),_t(this.render),this.valueSubscriptions.forEach((function(e){return e()})),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(var t in this.features)this.features[t].unmount();this.current=null}},{key:"bindToMotionValue",value:function(e,t){var n=this,r=pn.has(e),i=t.on("change",(function(t){n.latestValues[e]=t,n.props.onUpdate&&Tt.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(function(){i(),o()}))}},{key:"sortNodePosition",value:function(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}},{key:"loadFeatures",value:function(e,t,n,r){for(var i,o,a=this,s=(e.children,Jn(e,zu)),u=0;u<Uu;u++){var c=ju[u],l=en[c],f=l.isEnabled,d=l.Feature,p=l.ProjectionNode,h=l.MeasureLayout;p&&(i=p),f(s)&&(!this.features[c]&&d&&(this.features[c]=new d(this)),h&&(o=h))}if(!this.projection&&i){this.projection=new i(this.latestValues,this.parent&&this.parent.projection);var m=s.layoutId,y=s.layout,v=s.drag,g=s.dragConstraints,b=s.layoutScroll,w=s.layoutRoot;this.projection.setOptions({layoutId:m,layout:y,alwaysMeasureLayout:Boolean(v)||g&&Ht(g),visualElement:this,scheduleRender:function(){return a.scheduleRender()},animationType:"string"===typeof y?y:"both",initialPromotionConfig:r,layoutScroll:b,layoutRoot:w})}return o}},{key:"updateFeatures",value:function(){for(var e in this.features){var t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}},{key:"triggerBuild",value:function(){this.build(this.renderState,this.latestValues,this.options,this.props)}},{key:"measureViewportBox",value:function(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Va()}},{key:"getStaticValue",value:function(e){return this.latestValues[e]}},{key:"setStaticValue",value:function(e,t){this.latestValues[e]=t}},{key:"makeTargetAnimatable",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}},{key:"update",value:function(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(var n=0;n<Zu.length;n++){var r=Zu[n];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);var i=e["on"+r];i&&(this.propEventSubscriptions[r]=this.on(r,i))}this.prevMotionValues=function(e,t,n){var r=t.willChange;for(var i in t){var o=t[i],a=n[i];if(mn(o))e.addValue(i,o),Ko(r)&&r.add(i);else if(mn(a))e.addValue(i,ea(o,{owner:e})),Ko(r)&&r.remove(i);else if(a!==o)if(e.hasValue(i)){var s=e.getValue(i);!s.hasAnimated&&s.set(o)}else{var u=e.getStaticValue(i);e.addValue(i,ea(void 0!==u?u:o,{owner:e}))}}for(var c in n)void 0===t[c]&&e.removeValue(c);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}},{key:"getProps",value:function(){return this.props}},{key:"getVariant",value:function(e){return this.props.variants?this.props.variants[e]:void 0}},{key:"getDefaultTransition",value:function(){return this.props.transition}},{key:"getTransformPagePoint",value:function(){return this.props.transformPagePoint}},{key:"getClosestVariantNode",value:function(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}},{key:"getVariantContext",value:function(){if(arguments.length>0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){var e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}for(var t={},n=0;n<qu;n++){var r=Kt[n],i=this.props[r];(Vt(i)||!1===i)&&(t[r]=i)}return t}},{key:"addVariantChild",value:function(e){var t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),function(){return t.variantChildren.delete(e)}}},{key:"addValue",value:function(e,t){t!==this.values.get(e)&&(this.removeValue(e),this.bindToMotionValue(e,t)),this.values.set(e,t),this.latestValues[e]=t.get()}},{key:"removeValue",value:function(e){this.values.delete(e);var t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}},{key:"hasValue",value:function(e){return this.values.has(e)}},{key:"getValue",value:function(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];var n=this.values.get(e);return void 0===n&&void 0!==t&&(n=ea(t,{owner:this}),this.addValue(e,n)),n}},{key:"readValue",value:function(e){var t;return void 0===this.latestValues[e]&&this.current?null!==(t=this.getBaseTargetFromProps(this.props,e))&&void 0!==t?t:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e]}},{key:"setBaseTarget",value:function(e,t){this.baseTarget[e]=t}},{key:"getBaseTarget",value:function(e){var t,n=this.props.initial,r="string"===typeof n||"object"===typeof n?null===(t=fr(this.props,n))||void 0===t?void 0:t[e]:void 0;if(n&&void 0!==r)return r;var i=this.getBaseTargetFromProps(this.props,e);return void 0===i||mn(i)?void 0!==this.initialValues[e]&&void 0===r?void 0:this.baseTarget[e]:i}},{key:"on",value:function(e,t){return this.events[e]||(this.events[e]=new $o),this.events[e].add(t)}},{key:"notify",value:function(e){if(this.events[e]){for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];(t=this.events[e]).notify.apply(t,r)}}}]),e}(),Vu=["transition","transitionEnd"],Gu=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"sortInstanceNodePosition",value:function(e,t){return 2&e.compareDocumentPosition(t)?1:-1}},{key:"getBaseTargetFromProps",value:function(e,t){return e.style?e.style[t]:void 0}},{key:"removeValueFromRenderState",value:function(e,t){var n=t.vars,r=t.style;delete n[e],delete r[e]}},{key:"makeTargetAnimatableFromInstance",value:function(e,t,n){var r=e.transition,i=e.transitionEnd,o=Jn(e,Vu),a=t.transformValues,s=function(e,t,n){var r={};for(var i in e){var o=ca(i,t);if(void 0!==o)r[i]=o;else{var a=n.getValue(i);a&&(r[i]=a.get())}}return r}(o,r||{},this);if(a&&(i&&(i=a(i)),o&&(o=a(o)),s&&(s=a(s))),n){!function(e,t,n){var r,i,o=Object.keys(t).filter((function(t){return!e.hasValue(t)})),a=o.length;if(a)for(var s=0;s<a;s++){var u=o[s],c=t[u],l=null;Array.isArray(c)&&(l=c[0]),null===l&&(l=null!==(i=null!==(r=n[u])&&void 0!==r?r:e.readValue(u))&&void 0!==i?i:t[u]),void 0!==l&&null!==l&&("string"===typeof l&&(Jo(l)||qo(l))?l=parseFloat(l):!oa(l)&&Vi.test(c)&&(l=Zo(u,c)),e.addValue(u,ea(l,{owner:e})),void 0===n[u]&&(n[u]=l),null!==l&&e.setBaseTarget(u,l))}}(this,o,s);var u=function(e,t,n,r){var i=Eu(e,t,r);return Bu(e,t=i.target,n,r=i.transitionEnd)}(this,o,s,i);i=u.transitionEnd,o=u.target}return(0,jt.Z)({transition:r,transitionEnd:i},o)}}]),n}(Hu);var Wu=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){return(0,r.Z)(this,n),t.apply(this,arguments)}return(0,i.Z)(n,[{key:"readValueFromInstance",value:function(e,t){if(pn.has(t)){var n=Uo(t);return n&&n.default||0}var r,i=(r=e,window.getComputedStyle(r)),o=(bn(t)?i.getPropertyValue(t):i[t])||0;return"string"===typeof o?o.trim():o}},{key:"measureInstanceViewportBox",value:function(e,t){return cs(e,t.transformPagePoint)}},{key:"build",value:function(e,t,n,r){jn(e,t,n,r.transformTemplate)}},{key:"scrapeMotionValuesFromProps",value:function(e,t){return cr(e,t)}},{key:"handleChildMotionValue",value:function(){var e=this;this.childSubscription&&(this.childSubscription(),delete this.childSubscription);var t=this.props.children;mn(t)&&(this.childSubscription=t.on("change",(function(t){e.current&&(e.current.textContent="".concat(t))})))}},{key:"renderInstance",value:function(e,t,n,r){ar(e,t,n,r)}}]),n}(Gu),Ku=n(69803),Ju=n(2312),Xu=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(){var e;return(0,r.Z)(this,n),(e=t.apply(this,arguments)).isSVGTag=!1,e}return(0,i.Z)(n,[{key:"getBaseTargetFromProps",value:function(e,t){return e[t]}},{key:"readValueFromInstance",value:function(e,t){if(pn.has(t)){var n=Uo(t);return n&&n.default||0}return t=sr.has(t)?t:or(t),e.getAttribute(t)}},{key:"measureInstanceViewportBox",value:function(){return Va()}},{key:"scrapeMotionValuesFromProps",value:function(e,t){return lr(e,t)}},{key:"build",value:function(e,t,n,r){er(e,t,n,this.isSVGTag,r.transformTemplate)}},{key:"renderInstance",value:function(e,t,n,r){ur(e,t,0,r)}},{key:"mount",value:function(e){this.isSVGTag=nr(e.tagName),(0,Ku.Z)((0,Ju.Z)(n.prototype),"mount",this).call(this,e)}}]),n}(Gu),Yu=function(e,t){return ln(e)?new Xu(t,{enableHardwareAcceleration:!1}):new Wu(t,{enableHardwareAcceleration:!0})},$u={layout:{ProjectionNode:bu,MeasureLayout:xs}},Qu=(0,jt.Z)((0,jt.Z)((0,jt.Z)((0,jt.Z)({},ka),Kr),wu),$u),ec=un((function(e,t){return function(e,t,n,r){var i=t.forwardMotionProps,o=void 0!==i&&i,a=ln(e)?br:wr;return(0,jt.Z)((0,jt.Z)({},a),{},{preloadedFeatures:n,useRender:ir(o),createVisualElement:r,Component:e})}(e,t,Qu,Yu)}));var tc=n(60638),nc=n(8396),rc=n(67410);function ic(e,t){if(void 0===e.inserted[t.name])return e.insert("",t,e.sheet,!0)}function oc(e,t,n){var r=[],i=Ie(e,r,n);return r.length<2?n:i+t(r)}var ac,sc,uc,cc,lc,fc=function e(t){for(var n="",r=0;r<t.length;r++){var i=t[r];if(null!=i){var o=void 0;switch(typeof i){case"boolean":break;case"object":if(Array.isArray(i))o=e(i);else for(var a in o="",i)i[a]&&a&&(o&&(o+=" "),o+=a);break;default:o=i}o&&(n&&(n+=" "),n+=o)}}return n},dc=function(e){var t=_e(e);t.sheet.speedy=function(e){this.isSpeedy=e},t.compat=!0;var n=function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=qe(n,t.registered,void 0);return Pe(t,i,!1),t.key+"-"+i.name};return{css:n,cx:function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];return oc(t.registered,n,fc(r))},injectGlobal:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=qe(n,t.registered);ic(t,i)},keyframes:function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var i=qe(n,t.registered),o="animation-"+i.name;return ic(t,{name:i.name,styles:"@keyframes "+o+"{"+i.styles+"}"}),o},hydrate:function(e){e.forEach((function(e){t.inserted[e]=!0}))},flush:function(){t.registered={},t.inserted={},t.sheet.flush()},sheet:t.sheet,cache:t,getRegisteredStyles:Ie.bind(null,t.registered),merge:oc.bind(null,t.registered,n)}}({key:"css"}),pc=(dc.flush,dc.hydrate,dc.cx,dc.merge,dc.getRegisteredStyles,dc.injectGlobal),hc=(dc.keyframes,dc.css,dc.sheet,dc.cache,Object.defineProperty),mc=Object.defineProperties,yc=Object.getOwnPropertyDescriptors,vc=Object.getOwnPropertySymbols,gc=Object.prototype.hasOwnProperty,bc=Object.prototype.propertyIsEnumerable,wc=function(e,t,n){return t in e?hc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},xc=function(e,t){for(var n in t||(t={}))gc.call(t,n)&&wc(e,n,t[n]);if(vc){var r,i=(0,v.Z)(vc(t));try{for(i.s();!(r=i.n()).done;){n=r.value;bc.call(t,n)&&wc(e,n,t[n])}}catch(o){i.e(o)}finally{i.f()}}return e},Ac=function(e,t){return mc(e,yc(t))},kc=function(e,t){var n={};for(var r in e)gc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&vc){var i,o=(0,v.Z)(vc(e));try{for(o.s();!(i=o.n()).done;){r=i.value;t.indexOf(r)<0&&bc.call(e,r)&&(n[r]=e[r])}}catch(a){o.e(a)}finally{o.f()}}return n},Ec=function(e,t,n){return new Promise((function(r,i){var o=function(e){try{s(n.next(e))}catch(e){i(e)}},a=function(e){try{s(n.throw(e))}catch(e){i(e)}},s=function(e){return e.done?r(e.value):Promise.resolve(e.value).then(o,a)};s((n=n.apply(e,t)).next())}))},Tc="undefined"!=typeof window?g.useEffect:function(){},_c="undefined"!=typeof window?g.useLayoutEffect:function(){},Sc={c:"color",d:"display",f:"flex",o:"order",pos:"position",m:"margin",mt:"marginTop",mb:"marginBottom",ml:"marginLeft",mr:"marginRight",mx:"marginX",marginX:"marginX",marginY:"marginY",my:"marginY",p:"padding",pt:"paddingTop",pb:"paddingBottom",pr:"paddingRight",pl:"paddingLeft",px:"paddingX",paddingX:"paddingX",py:"paddingY",paddingY:"paddingY",w:"width",maxw:"maxWidth",minw:"minWidth",h:"height",minh:"minHeight",maxh:"maxHeight",bgc:"backgroundColor",bgi:"backgroundImage",bg:"background",b:"border",bl:"borderLeft",br:"borderRight",bt:"borderTop",bb:"borderBottom",brad:"borderRadius",bradtl:"borderTopLeftRadius",bradtr:"borderTopRightRadius",bradbl:"borderBottomLeftRadius",bradbr:"borderBottomRightRadius"};function Cc(e){var t,n=e;return"object"==typeof(t=Sc)&&null!==t&&e in t&&(n=Sc[e]),n}function Ic(e,t,n){var r;if(null==t)return{};var i=null!=(r=(0,E.I)(n,"".concat(t)))?r:t;if("object"==typeof i&&e.match(/background$|backgroundImage$|^color/)){var o=i,a={backgroundImage:o.spectrum,backgroundBlendMode:o.blendMode};return e.match(/color/)?Ac(xc({},a),{backgroundClip:"text",textFillColor:"transparent"}):a}return e.match(/paddingX$|paddingY|marginY|marginX$/)&&"string"==typeof i?function(e,t,n,r){var i=e.substring(0,e.length-1);return e.match(/[margin|padding]Y/)?(n={},(0,m.Z)(n,"".concat(i,"Top"),t),(0,m.Z)(n,"".concat(i,"Bottom"),t),n):(r={},(0,m.Z)(r,"".concat(i,"Left"),t),(0,m.Z)(r,"".concat(i,"Right"),t),r)}(e,i):(0,m.Z)({},e,i)}function Oc(e,t,n){var r,i=(r=t,(0,f.Z)(r)||(0,d.Z)(r)||(0,p.Z)(r)||(0,h.Z)()),o=i[0],a=i.slice(1).map((function(t,r){var i,o="@media screen and (min-width: ".concat(null==(i=n.base.breakpointAsArray)?void 0:i[r],"px)"),a="function"==typeof t?t(n):t;return t?(0,m.Z)({},o,Ic(e,a,n)):{}}));return xc(xc({},o?Ic(e,"function"==typeof o?o(n):o,n):{}),Object.assign.apply(Object,[{}].concat((0,l.Z)(a))))}function Pc(e,t,n){var r="function"==typeof t?t(n):t;return Array.isArray(r)?Oc(e,r,n):"object"==typeof r&&r.default?function(e,t,n){var r,i=t,o=i.default,a=kc(i,["default"]),s=[o];for(r in n.base.breakpoint){var u=a[r];u?s.push(u):s.push(null)}return Oc(e,s,n)}(e,r,n):"object"==typeof r?function(e,t,n){var r,i=(0,m.Z)({},e,{});for(r in t){var o=Cc(r),a=t[r];i[e]=k(i[e],Ic(o,"function"==typeof a?a(n):a,n))}return i}(e,r,n):Ic(e,r,n)}function Rc(e,t){var n,r=[];for(n in e){var i=e[n],o=Cc(n);(i||"number"==typeof i)&&r.push(Pc(o,i,t))}return k.apply(void 0,[{}].concat(r))}function Mc(){return Ye()}function Bc(e,t){var n=Mc();return t&&(n=t),(0,g.useMemo)((function(){return Rc(e,n)}),[e,n])}var Nc=/(http|https|\/)/i;function Fc(e){var t=e.imageUrl,n=(0,g.useState)(!1),r=(0,y.Z)(n,2),i=r[0],o=r[1];return _c((function(){t&&function(e){return Ec(this,null,(0,c.Z)().mark((function t(){return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,fetch(e,{method:"HEAD"});case 3:return t.t0=t.sent.headers.get("content-type"),t.abrupt("return","image/svg+xml"===t.t0);case 7:return t.prev=7,t.t1=t.catch(0),t.abrupt("return",(console.error("urlIsSvg Fetch HEAD Error:",e,t.t1),!1));case 10:case"end":return t.stop()}}),t,null,[[0,7]])})))}(t).then((function(e){o(e)}))}),[t]),i}function Dc(e,t,n){var r=(0,g.useRef)();_c((function(){var i=(null==n?void 0:n.current)||window;if(!i||!i.addEventListener)return function(){return{}};r.current!==t&&(r.current=t);var o=function(e){var t;null==(t=null==r?void 0:r.current)||t.call(r,e)};return i.addEventListener(e,o),function(){i.removeEventListener(e,o)}}),[e,n,t])}function Lc(e){var t=(0,g.useRef)(null);return(0,g.useEffect)((function(){e&&"object"==typeof e?e.current=t.current:"function"==typeof e&&e(t.current)}),[e,t]),t}function zc(e){return(0,g.isValidElement)(e)&&"string"!=typeof(null==e?void 0:e.type)&&"number"!=typeof(null==e?void 0:e.type)&&"boolean"!=typeof(null==e?void 0:e.type)}function jc(e,t){if(zc(e)){if(e.type===t)return!0;if("SmartClone"===e.type.displayName&&e.props.children.type===t)return!0}return!1}function Uc(e,t){return Array.isArray(e)?e.find((function(e){return jc(e,t)})):jc(e,t)?e:null}function Zc(e,t){return g.Children.toArray(e).find((function(e){return Array.isArray(t)?t.some((function(t){return jc(e,t)})):jc(e,t)}))}var qc=function(e,t){var n=e.props.__EMOTION_TYPE_PLEASE_DO_NOT_USE__||e.type,r=xc(xc({key:e.key,ref:e.ref},e.props),t);return(t.css||e.props.css)&&(r.css=[e.props.css,t.css]),ot(n,r)},Hc=function(e){return dt.isFragment(e)};var Vc=function(e){return JSON.stringify(e,function(){var e=new WeakSet;return function(t,n){if(t.startsWith("_"))return null;if("object"==typeof n&&null!==n){if(e.has(n))return null;e.add(n)}return n}}())};function Gc(e){var t=e,n=t.testId,r=t.children,i=t.fallBackDomNode,o=void 0===i?"span":i,a=t.onClick,s=t.sx,u=void 0===s?{}:s,c=t.domRef,l=t.rc,f=kc(t,["testId","children","fallBackDomNode","onClick","sx","domRef","rc"]),d=function(e){var t=(0,g.useMemo)((function(){var t=function(e){return"function"==typeof(null==e?void 0:e.type)}(e),n=Hc(e),r=Array.isArray(e);return{shouldCloneAsDom:!(null===e||t||r||n||"object"!=typeof e),shouldCloneAsComponent:t&&!n}}),[e]);return{shouldCloneAsComponent:t.shouldCloneAsComponent,shouldCloneAsDom:t.shouldCloneAsDom}}(r),p=d.shouldCloneAsComponent,h=d.shouldCloneAsDom,m=Bc(u),y=(0,g.useCallback)((function(e){var t,n;(0,g.isValidElement)(r)&&(null==(n=null==(t=r.props)?void 0:t.onClick)||n.call(t,e)),null==a||a(e)}),[a,r]);return p&&(0,g.isValidElement)(r)?qc(r,xc(Ac(xc(xc(xc(xc({},n?{testId:n}:{}),k({},r.props,f)),c?{domRef:c}:{}),a||r.props.onClick?{onClick:y}:{}),{sx:k({},xc({},r.props.sx),u)}),l?{rc:l}:{})):h&&(0,g.isValidElement)(r)?qc(r,xc(xc(xc(xc(xc({},n?{"data-testid":n}:{}),k({},r.props,f)),c?{ref:c}:{}),a||r.props.onClick?{onClick:y}:{}),r.props.css?{css:[m,r.props.css]}:{css:m})):ot(o,Ac(xc(xc(xc(xc({},f),n?{"data-testid":n}:{}),c?{ref:c}:{}),a?{onClick:a}:{}),{css:m,children:r}))}function Wc(e,t){return g.Children.toArray(e).filter((function(e){return jc(e,t)||function(e,t){if(zc(e)){var n=e.props.children;return zc(e)&&e.type===Gc&&n.type===t}return!1}(e,t)}))}function Kc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(0,g.useState)(!1),r=(0,y.Z)(n,2),i=r[0],o=r[1],a=(0,g.useRef)();return Dc("mouseenter",(function(){clearTimeout(a.current),o(!0)}),e),Dc("mouseleave",(function(){t?a.current=window.setTimeout((function(){o(!1)}),t):o(!1)}),e),i}function Jc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:60,n=(0,g.useState)({width:0,height:0}),r=(0,y.Z)(n,2),i=r[0],o=r[1],a=pt((function(t){var n,r,i=(0,y.Z)(t,1)[0],a={width:i.borderBoxSize[0].inlineSize||(null==(n=null==e?void 0:e.current)?void 0:n.offsetWidth),height:i.borderBoxSize[0].blockSize||(null==(r=null==e?void 0:e.current)?void 0:r.offsetHeight)};o(a)}),t,{leading:!0});return(0,g.useEffect)((function(){var t=new ResizeObserver(a);return e.current&&t.observe(e.current),function(){t.disconnect(),a.cancel()}}),[e,t]),i}function Xc(e){return"object"==typeof e&&null!==e&&"_error"in e}Gc.displayName="SmartClone";var Yc={heading:"medium",body:"medium",caption:"medium"},$c={heading:"regular",body:"regular",caption:"regular"};function Qc(e){var t,n,r=e.size,i=e.weight,o=e.tokenTextComponent,a=e.themeProps,s=Array.isArray(r)?(0,l.Z)(r):[r],u=Array.isArray(i)?(0,l.Z)(i):[i],c=null!=(t=s.shift())?t:Yc[o],f=null!=(n=u.shift())?n:$c[o],d=k.apply(void 0,(0,l.Z)(s.map((function(e,t){var n;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(n=a.base.breakpointAsArray)?void 0:n[t],"px)"),{fontSize:a.base.text[o][e].regular.fontSize,lineHeight:a.base.text[o][e].regular.lineHeight})})))),p=k.apply(void 0,(0,l.Z)(u.map((function(e,t){var n,r,i=null!=(n=s[t])?n:c;return null==e||Xc(i)||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=a.base.breakpointAsArray)?void 0:r[t],"px)"),{fontWeight:a.base.text[o][i][e].fontWeight})})))),h=k({},d,p);return{defaultSize:c,defaultWeight:f,styles:h}}function el(e){var t=e.size,n=e.weight,r=e.themeProps,i=e.mono,o=Qc({tokenTextComponent:"body",size:t,weight:n,themeProps:r}),a=o.defaultSize,s=o.defaultWeight,u=o.styles;return xc({fontFamily:i?r.base.font.family.body.secondary:r.base.font.family.body.primary,fontSize:r.base.text.body[a].regular.fontSize,lineHeight:r.base.text.body[a].regular.lineHeight,fontWeight:r.base.text.body[a][s].fontWeight,textTransform:"none",letterSpacing:"unset"},u)}function tl(e){var t=e.size,n=e.weight,r=e.themeProps,i=Qc({tokenTextComponent:"caption",size:t,weight:n,themeProps:r}),o=i.defaultSize,a=i.defaultWeight,s=i.styles;return xc({fontFamily:r.base.font.family.body.primary,fontSize:r.base.text.caption[o].regular.fontSize,lineHeight:r.base.text.caption[o].regular.lineHeight,fontWeight:r.base.text.caption[o][a].fontWeight,textTransform:r.base.text.caption[o][a].casing,letterSpacing:r.base.text.caption[o][a].letterSpacing},s)}function nl(e){var t=e.size,n=e.weight,r=e.themeProps,i=Qc({tokenTextComponent:"heading",size:t,weight:n,themeProps:r}),o=i.defaultSize,a=i.defaultWeight,s=i.styles;return xc({fontFamily:r.base.font.family.heading.primary,fontSize:r.base.text.heading[o].regular.fontSize,lineHeight:r.base.text.heading[o].regular.lineHeight,fontWeight:r.base.text.heading[o][a].fontWeight,textTransform:"none",letterSpacing:"unset"},s)}var rl=function(e){return{margin:0,position:"absolute",top:0,left:0,width:"100%",height:"100%",cursor:e?"default":"pointer",border:"none",appearance:"none"}};function il(e,t,n){var r=(Array.isArray(e)?(0,l.Z)(e):[e]).shift();return function(e,t){return"string"==typeof e&&t.includes(e)}(r,n)?r:t}function ol(e,t){return e.w?{w:t}:(e.width,{width:t})}function al(e,t){return e.c?{c:t}:(e.color,{color:t})}function sl(e,t){return e.minw?{minw:t}:(e.minWidth,{minWidth:t})}function ul(e){var t=e,n=t.theme,r=t.size,i=t.renderSxAtSize,o=kc(t,["theme","size","renderSxAtSize"]),a=Array.isArray(r)?(0,l.Z)(r):[r];return a.shift(),k.apply(void 0,(0,l.Z)(a.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),i(xc({size:e,theme:n},o)))}))))}function cl(e,t){function n(){var n=(0,g.useRef)(e),r=(0,g.useCallback)((function(){return n.current}),[]),i=(0,g.useRef)(new Set),o=(0,g.useCallback)((function(e){n.current=xc(xc({},n.current),e),i.current.forEach((function(e){return e()}))}),[]),a=(0,g.useCallback)((function(e){if(!t)throw new Error("Dispatching actions is only possible when a reducer is provided");n.current=t(n.current,e),i.current.forEach((function(e){return e()}))}),[]),s=(0,g.useCallback)((function(e){return i.current.add(e),function(){return i.current.delete(e)}}),[]);return Object.defineProperty(r,"name",{value:"get",writable:!1}),Object.defineProperty(o,"name",{value:"set",writable:!1}),Object.defineProperty(s,"name",{value:"subscribe",writable:!1}),Object.defineProperty(a,"name",{value:"dispatch",writable:!1}),{get:r,set:o,subscribe:s,dispatch:a}}var r=(0,g.createContext)(null);function i(e){var t=e.children;return yt(r.Provider,{value:n(),children:t})}return i.displayName="",{Provider:i,useStore:function(t){var n=(0,g.useContext)(r);if(!n)throw new Error("Store not found");return{state:(0,g.useSyncExternalStore)(n.subscribe,(function(){return t(n.get())}),(function(){return t(e)})),setState:n.set,dispatchAction:n.dispatch}}}}var ll=function(){return!("undefined"==typeof window)&&(!!(null==window?void 0:window.ontouchstart)||(null==navigator?void 0:navigator.maxTouchPoints)>0)};function fl(e){var t=e.replaceAll(",","").split(".");return t[0]=t[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),t.join(".")}function dl(e){var t=e,n=t.testId,r=t.sx,i=void 0===r?{}:r,o=t.children,a=t.rc,s=void 0===a?yt("div",{}):a,u=t.domRef,c=kc(t,["testId","sx","children","rc","domRef"]),l=Bc(i);return qc(s,Ac(xc(xc(xc({},c),n?{"data-testid":n}:{}),u?{ref:u}:{}),{css:l,children:o}))}function pl(e){var t=e,n=t.rc,r=void 0===n?yt("button",{}):n,i=t.testId,o=t.sx,a=void 0===o?{}:o,s=t.children,u=t.domRef,c=kc(t,["rc","testId","sx","children","domRef"]),l="onClick"in c?c:Ac(xc({},c),{onClick:null}),f=l.onClick,d=kc(l,["onClick"]),p=Bc(a),h=k({padding:0,border:"none",background:"transparent",display:"inline-flex",alignItems:"baseline",cursor:"pointer",textDecoration:"none"},p);return qc(r,Ac(xc(xc(xc(xc({},d),i?{"data-testid":i}:{}),u?{ref:u}:{}),f?{onClick:f}:{}),{css:h,children:s}))}pl.displayName="BaseClickable";var hl=["small","medium","large"];function ml(e,t,n,r){return Boolean(t)||!n&&Boolean(e)}function yl(e,t,n,r){return n||!t&&!e}var vl="<SvgIcon /> does not support fill styles that are css-gradients. Custom gradients must be converted into SVG gradient syntax.",gl="Due to the complexity involved, <SvgIcon /> does not yet support responsive gradients. Please only use a single gradient token. If this functionality is required, please indicate your interest in this functionality using the following jira ticket: https://immutable.atlassian.net/browse/DS-114.",bl=/base\.gradient|linear-gradient|radial-gradient/g,wl={fill:"base.color.brand.1"};function xl(e){var t=e,n=t.testId,r=t.children,i=t.domRef,o=t.className,a=t.viewBox,s=void 0===a?"0 0 24 24":a,u=t.sx,c=void 0===u?{}:u,l=t.rc,f=void 0===l?yt("svg",{}):l,d=kc(t,["testId","children","domRef","className","viewBox","sx","rc"]),p=Mc(),h={spectrum:"",blendMode:"",svgDefs:"",svgDefIds:""};if("string"==typeof c.fill){if(c.fill.includes("base.gradient"))h=(0,E.I)(p,c.fill);else if(c.fill.match(/linear-gradient|radial-gradient/g))throw new Error(vl)}else if("object"==typeof c.fill){var m,v;if(Array.isArray(c.fill)?m=Boolean(c.fill.find((function(e){return"string"==typeof e&&e.match(bl)}))):v=Boolean(Object.entries(c.fill).find((function(e){var t=(0,y.Z)(e,2)[1];return"string"==typeof t&&t.match(bl)}))),m||v)throw new Error(gl)}var b=h,w=b.svgDefs,x=b.svgDefIds,A=null==x?void 0:x.split(",").map((function(e){return e.trim()})),T=(0,dt.isFragment)(r)?r.props.children:r,_=(null==x?void 0:x.length)>1?g.Children.map(T,(function(e){return A.map((function(t){return(0,g.isValidElement)(e)?qc(e,{key:t,css:{fill:"url(#".concat(t,")")}}):null}))})):[r],S=Bc(k({},wl,ol(c,"base.icon.size.100"),c)),C=vt(mt,{children:[w&&yt("defs",{dangerouslySetInnerHTML:{__html:w}}),_]});return qc(f,Ac(xc(xc(xc({},d),n?{"data-testid":n}:{}),i?{ref:i}:{}),{viewBox:s,className:o,xmlns:"http://www.w3.org/2000/svg",css:S,children:C}))}xl.displayName="SvgIcon";var Al={Add:null,Alert:null,AirDrop:null,ArrowBackward:null,ArrowForward:null,Authenticated:null,Calendar:null,Cart:null,ChevronBackward:null,ChevronCollapse:null,ChevronExpand:null,ChevronForward:null,CircleRightArrow:null,CircleDownArrow:null,Close:null,CloseWithCircle:null,Coins:null,CopyText:null,Countdown:null,Dashboard:null,DevContracts:null,DevExplorer:null,Document:null,Documents:null,Dollar:null,Education:null,Edit:null,EmailAddress:null,EmbedCode:null,ESports:null,EthToken:null,Exclamation:null,Expand:null,Faucet:null,Fullscreen:null,FullscreenExit:null,Home:null,HidePassword:null,ImageAdd:null,Immutable:null,ImxRewards:null,ImxToken:null,Information:null,Instagram:null,JumpTo:null,Logout:null,Lock:null,Menu:null,Minting:null,Minus:null,More:null,MoreVertical:null,Notification:null,PancakeSwap:null,People:null,ReturnKeyboard:null,Search:null,Security:null,SettingsCog:null,Shield:null,ShowPassword:null,SocialShare:null,SoundOn:null,SoundOff:null,Sparkle:null,Swatch:null,TickWithCircle:null,Tags:null,Tick:null,Tokens:null,TreasureChest:null,Trophy:null,ViewList:null,Wallet:null,Profile:null,Items:null,BankCard:null},kl=(xc(xc({},Al),{Apple:null,DevSdk:null,Discord:null,Email:null,Exchange:null,GraphPerformance:null,Google:null,InformationCircle:null,JumpTo:null,LinkedIn:null,Loading:null,Pause:null,Percentage:null,Play:null,Preferences:null,Reddit:null,Refresh:null,SushiSwap:null,Swap:null,Flip:null,Sword:null,Telegram:null,ThemeDark:null,ThemeLight:null,Twitter:null,UniSwap:null,Unity:null,ViewGrid:null,WalletConnect:null,YouTube:null,Overview:null}),ut(ac||(ac=u(["\n from { \n rotate: 0deg; \n } \n to { \n rotate: 360deg; \n }\n"]))));function El(e){var t=e,n=t.icon,r=t.variant,i=void 0===r?"regular":r,o=t.sx,a=void 0===o?{}:o,s=t.testId,u=kc(t,["icon","variant","sx","testId"]),l=(0,g.useState)([]),f=(0,y.Z)(l,2),d=f[0],p=f[1],h="Loading"===n?k({animation:"".concat(kl," 1s linear infinite"),transformOrigin:"50% 50%"},a):a;return(0,g.useEffect)((function(){!function(){Ec(this,null,(0,c.Z)().mark((function e(){var t;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,function(e,t){return Ec(this,null,(0,c.Z)().mark((function n(){return(0,c.Z)().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",fetch("https://biome.immutable.com/hosted-assets/icons/".concat(e,".json")).then((function(e){return e.json()})).then((function(n){return"bold"===t&&Object.keys(Al).includes(e)?n[t]:n.regular})));case 1:case"end":return n.stop()}}),n)})))}(n,i);case 2:t=e.sent,p(t);case 4:case"end":return e.stop()}}),e)})))}()}),[n,i]),yt(xl,Ac(xc({},u),{testId:s,sx:h,"data-icon":n,"data-variant":i,children:yt("g",{"data-testid":"".concat(s,"__g"),dangerouslySetInnerHTML:{__html:d.join("")}})}))}var Tl=function(e){var t=e.base;return{height:t.spacing.x8,fontSize:t.text.body.xSmall.regular.fontSize,fontWeight:t.text.body.medium.bold.fontWeight,fontFamily:t.font.family.body.primary,borderRadius:t.borderRadius.x15,paddingX:t.spacing.x4,gap:"2px"}},_l=function(e){var t=e.base;return{height:t.spacing.x12,fontSize:t.text.body.medium.regular.fontSize,fontWeight:t.text.body.medium.bold.fontWeight,fontFamily:t.font.family.body.primary,borderRadius:t.borderRadius.x15,paddingX:t.spacing.x6,gap:t.spacing.x1}},Sl=function(e){var t=e.base;return{height:t.spacing.x16,fontSize:t.text.body.medium.regular.fontSize,fontWeight:t.text.body.medium.bold.fontWeight,fontFamily:t.font.family.body.primary,borderRadius:t.borderRadius.x20,paddingX:t.spacing.x8,gap:t.spacing.x2}},Cl={background:"base.color.brand.1",color:"base.color.text.inverse.primary",boxShadow:"inset 0 0 0 0 transparent",transitionProperty:"none","&::before":{content:'""',width:"100%",height:"100%",position:"absolute",top:0,left:0,background:"base.color.brand.1",transitionProperty:"clip-path",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase"}},Il=function(e){var t=e.base;return{background:"lightOnDark"===t.colorMode?"base.color.translucent.inverse.1000":"base.color.neutral.500",color:"base.color.text.primary","&::before":{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:"lightOnDark"===t.colorMode?"base.color.translucent.inverse.1000":"base.color.neutral.500"}}},Ol=function(e){return{background:"base.color.status.destructive.bright",color:"lightOnDark"===e.base.colorMode?"base.color.text.primary":"base.color.text.inverse.primary","&::before":{width:"100%",height:"100%",position:"absolute",top:0,left:0,background:"base.color.status.destructive.bright"}}};function Pl(e,t){return k("small"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[100]," + ").concat(t.border.size[200],")"),r="calc(".concat(t.border.size[200]," + ").concat(t.border.size[200],")");return Ac(xc({},Tl(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x10,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.brand[1])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.brand[1]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x10,")")}}})}(t):"medium"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[300],")"),r="calc(".concat(t.border.size[300]," + ").concat(t.border.size[300],")");return Ac(xc({},_l(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x15,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.brand[1])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.brand[1]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x15,")")}}})}(t):function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[400],")"),r="calc(".concat(t.border.size[400]," + ").concat(t.border.size[400],")");return Ac(xc({},Sl(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x20,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.brand[1])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.brand[1]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x20,")")}}})}(t))}function Rl(e,t){return k("small"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[100]," + ").concat(t.border.size[200],")"),r="calc(".concat(t.border.size[200]," + ").concat(t.border.size[200],")");return Ac(xc({},Tl(e)),{"&::before":{background:"base.color.text.primary",clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x10,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright)},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x10,")")}}})}(t):"medium"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[300],")"),r="calc(".concat(t.border.size[300]," + ").concat(t.border.size[300],")");return Ac(xc({},_l(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x15,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright)},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x15,")")}}})}(t):function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[400],")"),r="calc(".concat(t.border.size[400]," + ").concat(t.border.size[400],")");return Ac(xc({},Sl(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x20,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.status.destructive.bright)},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.status.destructive.bright),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x20,")")}}})}(t))}function Ml(e,t){return k("small"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[100]," + ").concat(t.border.size[200],")"),r="calc(".concat(t.border.size[200]," + ").concat(t.border.size[200],")");return Ac(xc({},Tl(e)),{"&::before":{background:"base.color.text.primary",clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x10,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x10,")")}}})}(t):"medium"===e?function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[300],")"),r="calc(".concat(t.border.size[300]," + ").concat(t.border.size[300],")");return Ac(xc({},_l(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x15,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x15,")")}}})}(t):function(e){var t=e.base,n="calc(".concat(t.border.size[200]," + ").concat(t.border.size[400],")"),r="calc(".concat(t.border.size[400]," + ").concat(t.border.size[400],")");return Ac(xc({},Sl(e)),{"&::before":{clipPath:"inset(".concat(n," ").concat(n," ").concat(n," ").concat(n," round ").concat(t.borderRadius.x20,")")},"&:hover:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500])},"&:active:not([disabled])":{background:"transparent",boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat("lightOnDark"===t.colorMode?t.color.translucent.inverse[1e3]:t.color.neutral[500]),"&::before":{clipPath:"inset(".concat(r," ").concat(r," ").concat(r," ").concat(r," round ").concat(t.borderRadius.x20,")")}}})}(t))}var Bl=ut(sc||(sc=u(["\n 0% {\n opacity: 0;\n scale: 0.95;\n }\n 100% {\n opacity: 1;\n scale: 1;\n }\n"]))),Nl={color:"base.color.text.primary","&::before":{position:"absolute",top:"50%",left:"50%",translate:"-50% -50%",boxShadow:"inset 0 0 0 0px transparent",transitionProperty:"box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase",animationName:Bl,animationDuration:"base.motion.normal.fast.cssDuration",animationTimingFunction:"base.motion.normal.fast.cssEase"}},Fl={color:"base.color.status.destructive.bright","&::before":{position:"absolute",boxShadow:"inset 0 0 0 0px transparent",top:"50%",left:"50%",translate:"-50% -50%",transitionProperty:"box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase",animationName:Bl,animationDuration:"base.motion.normal.fast.cssDuration",animationTimingFunction:"base.motion.normal.fast.cssEase"}};function Dl(e,t){return k("small"===e?function(e){var t="calc((".concat(e.base.border.size[100]," + ").concat(e.base.border.size[200],") * 2)"),n="calc((".concat(e.base.border.size[100]," + ").concat(e.base.border.size[200],") * 2)");return Ac(xc({},Tl(e)),{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(e.base.color.brand[1]),"&::before":{borderRadius:e.base.borderRadius.x15},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(t,")"),height:"calc(100% - ".concat(t,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[100]," ").concat(e.base.color.brand[1])}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(e.base.color.brand[1])}}})}(t):"medium"===e?function(e){var t="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[300],") * 2)"),n="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[300],") * 2)");return Ac(xc({},_l(e)),{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(e.base.color.brand[1]),"&::before":{borderRadius:e.base.borderRadius.x20},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(t,")"),height:"calc(100% - ".concat(t,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[100]," ").concat(e.base.color.brand[1])}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(e.base.color.brand[1])}}})}(t):function(e){var t="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[400],") * 2)"),n="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[400],") * 2)");return Ac(xc({},Sl(e)),{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(e.base.color.brand[1]),"&::before":{borderRadius:e.base.borderRadius.x25},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(t,")"),height:"calc(100% - ".concat(t,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(e.base.color.brand[1])}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(e.base.color.brand[1]),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(e.base.color.brand[1])}}})}(t))}function Ll(e,t){return k("small"===e?function(e){var t=e.base,n="calc((".concat(t.border.size[100]," + ").concat(t.border.size[200],") * 2)"),r="calc((".concat(t.border.size[100]," + ").concat(t.border.size[200],") * 2)");return Ac(xc({},Tl(e)),{boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright),"&::before":{borderRadius:t.borderRadius.x15},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[100]," ").concat(t.color.status.destructive.bright)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright)}}})}(t):"medium"===e?function(e){var t=e.base,n="calc((".concat(t.border.size[200]," + ").concat(t.border.size[300],") * 2)"),r="calc((".concat(t.border.size[200]," + ").concat(t.border.size[300],") * 2)");return Ac(xc({},_l(e)),{boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright),"&::before":{borderRadius:t.borderRadius.x20},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[100]," ").concat(t.color.status.destructive.bright)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright)}}})}(t):function(e){var t=e.base,n="calc((".concat(t.border.size[200]," + ").concat(t.border.size[400],") * 2)"),r="calc((".concat(t.border.size[200]," + ").concat(t.border.size[400],") * 2)");return Ac(xc({},Sl(e)),{boxShadow:"inset 0 0 0 ".concat(t.border.size[300]," ").concat(t.color.status.destructive.bright),"&::before":{borderRadius:t.borderRadius.x25},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.status.destructive.bright)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.status.destructive.bright),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(t.border.size[400]," ").concat(t.color.status.destructive.bright)}}})}(t))}var zl={color:"base.color.text.primary",transitionDelay:"0.06s",background:function(e){var t=e.base;return"lightOnDark"===t.colorMode?t.color.translucent.standard[200]:t.color.translucent.standard[100]},"&::before":{position:"absolute",top:"50%",left:"50%",translate:"-50% -50%",boxShadow:"inset 0 0 0 0px transparent",transitionProperty:"box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase"}},jl=Ac(xc({},zl),{color:"base.color.text.inverse.primary",background:"base.color.translucent.inverse.200","&::before":xc({},zl["&::before"])});function Ul(e,t,n){return k("small"===e?function(e,t){var n="calc((".concat(e.base.border.size[100]," + ").concat(e.base.border.size[200],") * 2)"),r="calc((".concat(e.base.border.size[100]," + ").concat(e.base.border.size[200],") * 2)");return Ac(xc({},Tl(e)),{"&::before":{borderRadius:e.base.borderRadius.x15},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[100]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}}})}(t,n):"medium"===e?function(e,t){var n="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[300],") * 2)"),r="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[300],") * 2)");return Ac(xc({},_l(e)),{"&::before":{borderRadius:e.base.borderRadius.x20},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[100]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[300]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}}})}(t,n):function(e,t){var n="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[400],") * 2)"),r="calc((".concat(e.base.border.size[200]," + ").concat(e.base.border.size[400],") * 2)");return Ac(xc({},Sl(e)),{"&::before":{borderRadius:e.base.borderRadius.x25},"&:hover:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(n,")"),height:"calc(100% - ".concat(n,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[200]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}},"&:active:not([disabled])":{boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary),"&::before":{content:'""',width:"calc(100% - ".concat(r,")"),height:"calc(100% - ".concat(r,")"),boxShadow:"inset 0 0 0 ".concat(e.base.border.size[400]," ").concat(t?e.base.color.text.inverse.primary:e.base.color.text.primary)}}})}(t,n))}var Zl="medium",ql="primary",Hl={position:"relative",display:"flex",justifyContent:"center",alignItems:"center"};function Vl(e){var t=e.size,n=e.themeProps.base;return{gap:"large"===t?n.spacing.x4:n.spacing.x2}}var Gl={position:"relative",display:"flex",justifyContent:"center",alignItems:"center",textDecoration:"none",transitionProperty:"box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","&[disabled]":{cursor:"default"}},Wl=function(e){var t=e.variant,n=e.size,r=e.themeProps.base;return{width:"small"===n?r.icon.size[200]:"medium"===n?r.icon.size[250]:r.icon.size[300],fill:t.includes("primary/inverse")?r.color.text.primary:t.includes("primary")?r.color.brand[2]:t.includes("secondary/destructive")?r.color.status.destructive.bright:t.includes("secondary")?r.color.text.primary:t.includes("tertiary/inverse")?r.color.text.inverse.primary:r.color.text.primary}},Kl=function(e){var t=e.size,n=e.themeProps;return{width:"small"===t?n.base.spacing.x8:"medium"===t?n.base.spacing.x12:n.base.spacing.x16,paddingLeft:"0",paddingRight:"0"}};function Jl(e,t){return{alignSelf:"center",width:"small"===e?t.base.icon.size[100]:"large"===e?t.base.icon.size[250]:t.base.icon.size[200]}}function Xl(e,t){var n,r=t.base;switch(e){case"primary/destructive":n="lightOnDark"===r.colorMode?r.color.text.primary:r.color.text.inverse.primary;break;case"primary/inverse":case"secondary":case"tertiary":default:n=r.color.text.primary;break;case"primary":case"tertiary/inverse":n=r.color.text.inverse.primary;break;case"secondary/destructive":n=r.color.status.destructive.bright}return{fill:n}}function Yl(e){var t=e.size,n=e.variant,r=e.themeProps,i=Array.isArray(t)?(0,l.Z)(t):[t],o=i.shift(),a=k.apply(void 0,(0,l.Z)(i.map((function(e,t){var n;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(n=r.base.breakpointAsArray)?void 0:n[t],"px)"),Jl(e,r))})))),s=Array.isArray(n)?(0,l.Z)(n):[n],u=s.shift(),c=k.apply(void 0,(0,l.Z)(s.map((function(e,t){var n;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(n=r.base.breakpointAsArray)?void 0:n[t],"px)"),Xl(e,r))}))));return{defaultSize:o,defaultVariant:u,styles:k({},a,c)}}function $l(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.iconVariant,o=t.variant,a=void 0===o?"primary":o,s=t.size,u=void 0===s?"medium":s,c=t.domRef,l=kc(t,["sx","iconVariant","variant","size","domRef"]),f=Mc(),d=Yl({size:u,variant:a,themeProps:f}),p=d.defaultSize,h=d.defaultVariant,m=d.styles,y=k(Jl(p,f),Xl(h,f),m,r);return yt(El,Ac(xc({},l),{sx:y,variant:i,domRef:c}))}function Ql(e){var t=(0,g.useState)([]),n=(0,y.Z)(t,2),r=n[0],i=n[1];return(0,g.useEffect)((function(){!function(){Ec(this,null,(0,c.Z)().mark((function t(){var n;return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,function(e){return Ec(this,null,(0,c.Z)().mark((function t(){return(0,c.Z)().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",fetch("https://biome.immutable.com/hosted-assets/logos/".concat(e,".json")).then((function(e){return e.json()})));case 1:case"end":return t.stop()}}),t)})))}(e);case 2:n=t.sent,i(n);case 4:case"end":return t.stop()}}),t)})))}()}),[e]),r}function ef(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("DocsHorizontalLockup");return yt(xl,Ac(xc({},o),{viewBox:"0 0 275 48",testId:i,sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function tf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("DocsHorizontalLockupCompact");return yt(xl,Ac(xc({},o),{viewBox:"0 0 130 48",testId:i,sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function nf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("DocsVerticalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 123 112",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function rf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("GameStopSymbol");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 48 48",sx:k(ol(r,"100px"),{fill:"base.color.text.primary"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function of(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("HubHorizontalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 262 48",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function af(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("HubHorizontalLockupCompact");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 115 48",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function sf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("HubVerticalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 123 112",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function uf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("ImmutableHorizontalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 200 48",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function cf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=kc(t,["sx"]);return yt(El,Ac(xc({},i),{icon:"Immutable",sx:k({fill:"base.color.brand.1"},ol(r,"32px"),r),variant:"bold"}))}function lf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("ImmutableVerticalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 123 96",sx:k(ol(r,"123px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function ff(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("MagicSymbol");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 48 48",sx:k(ol(r,"100px"),{fill:"#6851FF"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function df(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("MetaMaskSymbol");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 48 48",sx:k(ol(r,"100px"),r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function pf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("PassportHorizontalLockup");return yt(xl,Ac(xc({},o),{viewBox:"0 0 328 48",testId:i,sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function hf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("PassportHorizontalLockupCompact");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 181 48",sx:k(ol(r,"200px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function mf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("PassportSymbol");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 32 32",sx:k(ol(r,"100px"),r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function yf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("PassportSymbolOutlined");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 48 48",sx:k(ol(r,"100px"),r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}function vf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("PassportVerticalLockup");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 123 112",sx:k(ol(r,"123px"),{fill:"base.color.brand.1"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))}$l.displayName="Button.Icon",ef.displayName="DocsHorizontalLockup",tf.displayName="DocsHorizontalLockupCompact",nf.displayName="DocsVerticalLockup",rf.displayName="GameStopSymbol",of.displayName="HubHorizontalLockup",af.displayName="HubHorizontalLockupCompact",sf.displayName="HubVerticalLockup",uf.displayName="ImmutableHorizontalLockup",cf.displayName="ImmutableSymbol",lf.displayName="ImmutableVerticalLockup",ff.displayName="MagicSymbol",df.displayName="MetaMaskSymbol",pf.displayName="PassportHorizontalLockup",hf.displayName="PassportHorizontalLockupCompact",mf.displayName="PassportSymbol",yf.displayName="PassportSymbolOutlined",vf.displayName="PassportVerticalLockup";var gf={ImmutableSymbol:cf,PassportSymbol:mf,PassportSymbolOutlined:yf},bf={MetaMaskSymbol:df,WalletConnectSymbol:function(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=kc(t,["sx","testId"]),a=Ql("WalletConnectSymbol");return yt(xl,Ac(xc({},o),{testId:i,viewBox:"0 0 48 48",sx:k(ol(r,"100px"),{fill:"#368AFA"},r),children:yt("g",{"data-testid":"".concat(i,"__g"),dangerouslySetInnerHTML:{__html:a.join("")}})}))},MagicSymbol:ff,GameStopSymbol:rf},wf=xc(xc(xc({},{ImmutableHorizontalLockup:uf,ImmutableVerticalLockup:lf,PassportHorizontalLockup:pf,PassportHorizontalLockupCompact:hf,PassportVerticalLockup:vf,HubHorizontalLockup:of,HubHorizontalLockupCompact:af,HubVerticalLockup:sf,DocsHorizontalLockup:ef,DocsHorizontalLockupCompact:tf,DocsVerticalLockup:nf}),gf),bf);function xf(e){var t=e,n=t.logo,r=kc(t,["logo"]);return yt(wf[n],xc({},r))}function Af(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?"medium":i,a=t.variant,s=void 0===a?"primary":a,u=t.domRef,c=t.logo,l=kc(t,["sx","size","variant","domRef","logo"]),f=Mc(),d=Yl({size:o,variant:s,themeProps:f}),p=d.defaultSize,h=d.defaultVariant,m=d.styles,y=k(Jl(p,f),Xl(h,f),m,r);return yt(xf,Ac(xc({},l),{sx:y,logo:c,domRef:u}))}function kf(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=t.variant,a=void 0===o?"primary":o,s=t.size,u=void 0===s?Zl:s,c=t.testId,f=kc(t,["children","sx","variant","size","testId"]),d=Mc(),p=il(u,Zl,hl),h=k(function(e){var t=e.size,n=e.themeProps;switch(e.variant){case"secondary":return k({},Gl,Dl(t,n),Nl);case"secondary/destructive":return k({},Gl,Ll(t,n),Fl);case"tertiary/inverse":return k({},Gl,Ul(t,n,!0),jl);case"tertiary":return k({},Gl,Ul(t,n),zl);case"primary/destructive":return k({},Gl,Cl,Rl(t,n),Ol(n));case"primary/inverse":return k({},Gl,Cl,Ml(t,n),Il(n));default:return k({},Gl,Cl,Pl(t,n))}}({size:p,variant:a,themeProps:d}),function(e){var t=e.size,n=e.variant,r=e.themeProps,i=Array.isArray(t)?(0,l.Z)(t):[t];return i.shift(),k.apply(void 0,(0,l.Z)(i.map((function(e,t){var i;if(null!=e&&!Xc(e)){var o="@media screen and (min-width: ".concat(null==(i=r.base.breakpointAsArray)?void 0:i[t],"px)"),a={};switch(n){case"secondary":a=Dl(e,r);break;case"tertiary":a=Ul(e,r);break;case"tertiary/inverse":a=Ul(e,r,!0);break;case"primary/destructive":a=Rl(e,r);break;case"secondary/destructive":a=Ll(e,r);break;case"primary/inverse":a=Ml(e,r);break;default:a=Pl(e,r)}return(0,m.Z)({},o,a)}return{}}))))}({size:u,variant:a,themeProps:d}),i),y=k(Hl,Vl({size:p,themeProps:d}),function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Vl({size:e,themeProps:n}))}))))}({size:u,themeProps:d})),v=Bc(y);return yt(pl,Ac(xc({},f),{sx:h,testId:c,children:yt("span",{css:v,children:g.Children.map(n,(function(e){return jc(e,$l)||jc(e,Af)?(0,g.cloneElement)(e,{size:u,variant:a,className:"Button__iconOrLogo",testId:e.props.testId?e.props.testId:"".concat(c,"__icon"),sx:e.props.sx}):jc(e,El)||"object"!=typeof e?e:null}))})}))}function Ef(e){var t=e,n=t.size,r=void 0===n?Zl:n,i=t.variant,o=void 0===i?ql:i,a=t.sx,s=void 0===a?{}:a,u=t.iconSx,c=void 0===u?{}:u,f=t.testId,d=t.icon,p=t.iconVariant,h=kc(t,["size","variant","sx","iconSx","testId","icon","iconVariant"]),y=Mc(),v=il(r,Zl,hl),g=k(Kl({size:v,themeProps:y}),function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Kl({size:e,themeProps:n}))}))))}({size:r,themeProps:y}),s),b=k(Wl({size:v,variant:o,themeProps:y}),function(e){var t=e.variant,n=e.size,r=e.themeProps,i=Array.isArray(n)?(0,l.Z)(n):[n];return i.shift(),k.apply(void 0,(0,l.Z)(i.map((function(e,n){var i;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(i=r.base.breakpointAsArray)?void 0:i[n],"px)"),Wl({size:e,themeProps:r,variant:t}))}))))}({variant:o,size:r,themeProps:y}),c);return yt(kf,Ac(xc({},h),{size:r,variant:o,sx:g,testId:f,children:yt(El,{className:"buttCon__icon",sx:b,icon:d,variant:p,testId:"".concat(f,"__icon")})}))}xf.displayName="Logo",Af.displayName="Button.Logo",kf.displayName="Button",kf.Icon=$l,kf.Logo=Af,Ef.displayName="ButtCon";var Tf=function(e){switch(e.state){case"success":return{bg:"base.color.status.success.bright"};case"fatal":return{bg:"base.color.status.fatal.bright"};default:return{}}},_f=function(e){var t=e.state,n=e.theme;switch(t){case"success":case"fatal":return{fill:"lightOnDark"===n.base.colorMode?"base.color.text.inverse.primary":"base.color.text.primary"};default:return{}}};function Sf(e){var t=e,n=t.state,r=void 0===n?"initial":n,i=t.icon,o=t.iconVariant,a=void 0===o?"regular":o,s=t.sx,u=void 0===s?{}:s,c=kc(t,["state","icon","iconVariant","sx"]),l=Mc(),f=(0,g.useMemo)((function(){switch(r){case"loading":return{icon:"Loading",variant:"regular"};case"success":return{icon:"Tick",variant:"bold"};case"fatal":return{icon:"Exclamation",variant:"bold"};default:return{icon:i,variant:a}}}),[r,i,a]),d=k({transitionProperty:"background, box-shadow",transitionDuration:function(e){var t=e.base;return"".concat(t.motion.normal.gentle.cssDuration,", ").concat(t.motion.normal.fast.cssDuration)},transitionTimingFunction:function(e){var t=e.base;return"".concat(t.motion.normal.gentle.cssEase,", ").concat(t.motion.normal.fast.cssEase)}},Tf({state:r}),u),p=_f({state:r,theme:l});return yt(Ef,Ac(xc({},c),{variant:"tertiary",sx:d,iconSx:p,icon:f.icon,iconVariant:f.variant}))}var Cf=function(){return{display:"-webkit-box",WebkitLineClamp:arguments.length>0&&void 0!==arguments[0]?arguments[0]:2,WebkitBoxOrient:"vertical",wordBreak:"break-word",overflow:"hidden"}},If={d:"flex"},Of={d:"flex",flexDirection:"column"},Pf={display:"block",width:"100%",height:"100%",bgi:"base.gradient.1",mask:"linear-gradient(-60deg, #000 30%, #0005, #000 70%) right/400% 100%",brad:"base.borderRadius.x2",backgroundRepeat:"no-repeat",animation:"".concat(ut(uc||(uc=u(["100% { mask-position: left }"])))," 1.3s infinite"),opacity:.32};function Rf(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=kc(t,["sx"]);return yt(dl,Ac(xc({},i),{sx:k(Pf,r)}))}var Mf="base.color.text.primary",Bf="medium";function Nf(e){switch(e.size){case"large":return{gap:"0.25em"};case"small":return{gap:"0.3em"};case"xSmall":return{gap:"0.2em"};case"xxSmall":return{gap:"0.26em"};default:return{gap:"0.35em"}}}var Ff=function(e){var t=e.size;return ul({theme:e.theme,size:t,renderSxAtSize:Nf})};function Df(e){var t=e,n=t.size,r=void 0===n?Bf:n,i=t.shimmerLines,o=void 0===i?1:i,a=t.sx,s=void 0===a?{}:a,u=t.testId,c=kc(t,["size","shimmerLines","sx","testId"]),l=Mc(),f=il(r,Bf,Object.keys(E.Wp.base.text.body)),d=k(Ac(xc({},Of),{display:"inline-flex",minWidth:"50px",verticalAlign:"text-top"}),el({themeProps:l,mono:!1,size:r,weight:"regular"}),Nf({size:f}),Ff({size:r,theme:l}),s);return yt(dl,Ac(xc({},c),{sx:d,testId:u,children:Array.from({length:o},(function(e,t){return yt(Rf,{testId:"".concat(u,"__line--").concat(t),sx:xc({height:"1.2em"},o>1&&t===o-1?{w:"75%"}:{})},t)}))}))}function Lf(e){var t=e,n=t.size,r=void 0===n?Bf:n,i=t.rc,o=void 0===i?yt("span",{}):i,a=t.weight,s=void 0===a?"regular":a,u=t.sx,c=void 0===u?{}:u,l=t.testId,f=t.mono,d=t.children,p=t.domRef,h=kc(t,["size","rc","weight","sx","testId","mono","children","domRef"]),m=Mc(),y=Bc(k(al(c,Mf),c)),v=k(el({themeProps:m,mono:f,size:r,weight:s}),y);return qc(o,Ac(xc(xc(xc({},h),l?{"data-testid":l}:{}),p?{ref:p}:{}),{css:v,children:d}))}function zf(e){var t=e,n=t.size,r=void 0===n?Bf:n,i=t.weight,o=void 0===i?"regular":i,a=t.shimmer,s=t.shimmerSx,u=t.sx,c=t.children,l=t.mono,f=t.rc,d=void 0===f?yt("span",{}):f,p=t.domRef,h=t.testId,m=t.className,y=kc(t,["size","weight","shimmer","shimmerSx","sx","children","mono","rc","domRef","testId","className"]);return a?yt(Df,{size:r,sx:s,shimmerLines:a,rc:d,className:m,testId:"".concat(h,"__shimmer")}):yt(Lf,Ac(xc({},y),{size:r,sx:u,weight:o,mono:l,rc:d,domRef:p,testId:h,className:m,children:c}))}zf.displayName="Body";var jf="base.color.text.primary",Uf="medium";function Zf(e){var t=e,n=t.size,r=void 0===n?Uf:n,i=t.weight,o=void 0===i?"regular":i,a=t.rc,s=void 0===a?yt("span",{}):a,u=t.sx,c=void 0===u?{}:u,l=t.testId,f=t.children,d=t.domRef,p=kc(t,["size","weight","rc","sx","testId","children","domRef"]),h=Mc(),m=Bc(k(al(c,jf),c)),y=k(tl({themeProps:h,size:r,weight:o}),m);return qc(s,Ac(xc(xc(xc({},p),l?{"data-testid":l}:{}),d?{ref:d}:{}),{css:y,children:f}))}Zf.displayName="Caption";var qf={size:"medium",weight:"regular"},Hf="base.color.text.primary";function Vf(e){var t=e,n=t.size,r=void 0===n?qf.size:n,i=t.weight,o=void 0===i?qf.weight:i,a=t.testId,s=t.children,u=t.sx,c=void 0===u?{}:u,l=t.rc,f=void 0===l?yt("h1",{}):l,d=t.domRef,p=t.autoGenerateId,h=t.id,m=void 0===h?p&&"string"==typeof s?function(e){return e.toLowerCase().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}(s):void 0:h,y=kc(t,["size","weight","testId","children","sx","rc","domRef","autoGenerateId","id"]),v=Mc(),g=Bc(k(al(c,Hf),c)),b=k(nl({themeProps:v,size:r,weight:o}),g);return qc(f,Ac(xc(xc(xc({},y),a?{"data-testid":a}:{}),d?{ref:d}:{}),{css:b,id:m,children:s}))}Vf.displayName="Heading";var Gf="https://design-system.immutable.com/hosted-for-ds/images/defaultTokenImage--darkOnLight.svg",Wf="https://design-system.immutable.com/hosted-for-ds/images/defaultTokenImage--lightOnDark.svg",Kf=function(e){var t=e.imageUrl,n=e.imageResizeServiceUrl;return t?"".concat(n,"/url=").concat(function(e){return gt.Buffer.from(e).toString("base64").replace(/\+/g,"-").replace(/\//g,"_")}(t)):void 0},Jf=function(e){var t=e.width,n=e.height,r=e.imageUrl,i=e.imageResizeServiceUrl,o=e.isSvg;return r?"".concat(Kf({imageResizeServiceUrl:i,imageUrl:r})).concat(t&&!o?"&w=".concat(t):n&&!o?"&h=".concat(n):""):void 0},Xf=function(e){return null==e?void 0:e.sort()[0]},Yf=256;function $f(e){var t=e,n=t.testId,r=t.className,i=t.domRef,o=t.defaultImageClassName,a=t.imageUrl,s=t.defaultImageUrl,u=t.responsiveSizes,c=void 0===u?[32,64,128,256]:u,l=t.relativeImageSizeInLayout,f=void 0===l?"".concat(Xf(c),"px"):l,d=t.loading,p=void 0===d?"lazy":d,h=t.imageResizeServiceUrl,m=void 0===h?"https://image-resizer-cache.dev.immutable.com":h,v=t.sx,b=void 0===v?{}:v,w=t.alt,x=kc(t,["testId","className","domRef","defaultImageClassName","imageUrl","defaultImageUrl","responsiveSizes","relativeImageSizeInLayout","loading","imageResizeServiceUrl","sx","alt"]),A=Mc(),E=(0,g.useMemo)((function(){return s||("lightOnDark"===A.base.colorMode?Wf:Gf)}),[A,s]),T=Bc(b),_=Fc({imageUrl:Kf({imageUrl:a,imageResizeServiceUrl:m})}),S=function(e){var t=e.imageUrl,n=(0,g.useState)(!1),r=(0,y.Z)(n,2),i=r[0],o=r[1];return(0,g.useEffect)((function(){var e,n=function(){return o(!0)},r=function(){return o(!1)};return t&&Nc.test(t)&&((e=new Image).addEventListener("load",n),e.addEventListener("error",r),e.src=t),function(){null==e||e.removeEventListener("load",n),null==e||e.removeEventListener("error",r)}}),[t]),i}({imageUrl:Jf({imageUrl:a,imageResizeServiceUrl:m,width:32})}),C=(0,g.useMemo)((function(){return null==c?void 0:c.reduce((function(e,t){return"".concat(e).concat(Jf({imageUrl:a,imageResizeServiceUrl:m,width:t,isSvg:!1})," ").concat(t+20,"w, ")}),"")}),[c,a,m]),I=(0,g.useMemo)((function(){return _?{src:Jf({imageUrl:a,imageResizeServiceUrl:m,isSvg:!0})}:C?{srcSet:C,sizes:f}:{src:Jf({imageUrl:a,imageResizeServiceUrl:m,width:Yf,isSvg:!1})}}),[_,a,m,C,f]);return yt("img",S?Ac(xc(xc({},x),I),{alt:w,className:r,css:T,"data-testid":n,loading:p,ref:i}):Ac(xc({},x),{ref:i,alt:w,className:o,"data-testid":"".concat(n,"--defaultImage"),loading:p,src:E,css:k(T,{objectFit:"contain",objectPosition:"center"})}))}var Qf={display:"inline-flex",flexDirection:"column",alignItems:"flex-end",textAlign:"right",wordBreak:"break-word",position:"relative",c:"base.color.text.primary"};function ed(e){var t=e,n=t.price,r=t.fiatAmount,i=t.domRef,o=t.currencyImageUrl,a=t.imageResizeServiceUrl,s=t.sx,u=void 0===s?{}:s,c=t.testId,l=void 0===c?"PriceDisplay":c,f=t.rc,d=void 0===f?yt("span",{}):f,p=kc(t,["price","fiatAmount","domRef","currencyImageUrl","imageResizeServiceUrl","sx","testId","rc"]),h="use"in p?p:Ac(xc({},p),{use:void 0}),m=h.use,y=kc(h,["use"]),v=("size"in p?p:{size:void 0}).size,b=("weight"in p?p:{weight:void 0}).weight,w=fl(n),x=r?fl(r):null,A=(0,g.useMemo)((function(){return qc(m||yt(zf,{size:v,weight:b}),Ac(xc({testId:"".concat(l,"__price")},v?{size:v}:{}),{sx:{d:"flex",alignItems:"baseline",gap:"0.3em"},children:vt(mt,{children:[w,o&&yt($f,{testId:"".concat(l,"__price__currencyImage"),imageUrl:o,imageResizeServiceUrl:a,sx:{width:"0.76em"}})]})}))}),[o,a,w,v,l,m,b]);return vt(dl,Ac(xc({},y),{rc:d,testId:l,domRef:i,sx:k({},Qf,u),children:[A,x&&yt(zf,{sx:{color:"base.color.text.secondary",textAlign:"left"},size:"xSmall",weight:"regular",testId:"".concat(l,"__fiatAmount"),className:"fiatPrice",children:x})]}))}function td(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.variant,o=void 0===i?"primary":i,a=t.iconVariant,s=kc(t,["sx","variant","iconVariant"]),u=k({fill:"base.color.text.link.".concat(o)},r);return yt(El,Ac(xc({},s),{sx:u,variant:a}))}td.displayName="Link.Icon";var nd="medium",rd="regular";function id(e){var t=e,n=t.variant,r=void 0===n?"primary":n,i=t.sx,o=void 0===i?{}:i,a=t.children,s=t.testId,u=t.rc,c=void 0===u?yt("button",{}):u,l=kc(t,["variant","sx","children","testId","rc"]),f="use"in l?l:Ac(xc({},l),{use:void 0}),d=f.use,p=kc(f,["use"]),h=("size"in l?l:{size:nd}).size,m=("weight"in l?l:{weight:rd}).weight,y=Mc(),v=k(al(o,"base.color.text.link.primary"),function(e,t){return k({"&[disabled]":{cursor:"default"},"& > .inner":{position:"relative"},"& > .inner::before":{content:"''",position:"absolute",left:"0",width:"100%",bottom:"-0.04em",height:"0.07em",opacity:0,transformOrigin:"center bottom",transitionProperty:"opacity, scale",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase"},"&:hover:not([disabled]) > .inner::before":{opacity:1},"&:active:not([disabled]) > .inner::before":{opacity:1,scale:"1 2"}},"primary"===e?function(e){return{color:e.base.color.text.link.primary,"& > .inner::before":{background:e.base.color.text.link.primary}}}(t):function(e){return{color:e.base.color.text.link.secondary,"& > .inner::before":{background:e.base.color.text.link.secondary}}}(t))}(r,y),o),b=(0,g.useMemo)((function(){return qc(d||yt(zf,{size:h,weight:m}),{testId:"".concat(s,"__text"),className:"inner",sx:Ac(xc({},If),{color:"inherit",alignItems:"center",gap:"0.2em"}),children:g.Children.map(a,(function(e){return jc(e,td)?(0,g.cloneElement)(e,{size:h,variant:r,className:"Link__icon",testId:e.props.testId?e.props.testId:"".concat(s,"__text__icon"),sx:k({width:"1.1em"},e.props.sx||{})}):"object"!=typeof e?e:null}))})}),[a,h,s,d,r,m]);return yt(pl,Ac(xc({},p),{sx:v,rc:c,testId:s,children:b}))}function od(e){var t=e,n=(t.size,t.variant),r=void 0===n?"tertiary":n,i=t.sx,o=void 0===i?{}:i,a=kc(t,["size","variant","sx"]);return yt(Ef,Ac(xc({},a),{variant:r,size:Zl,sx:k({position:"relative",order:1},o)}))}function ad(e){var t=e,n=(t.size,t.logo),r=t.sx,i=void 0===r?{}:r,o=t.rc,a=kc(t,["size","logo","sx","rc"]),s=("onClick"in a?a:Ac(xc({},a),{onClick:null})).onClick,u=xc({onClick:s,rc:o},a),c=k({width:"base.icon.size.500",order:1,position:"relative"},i);return ml(s,o,!1)?yt(pl,Ac(xc({},u),{children:yt(xf,{logo:n,sx:c})})):function(e,t,n){return!t&&!e}(s,o)?yt(xf,Ac(xc({},a),{logo:n,sx:c})):null}id.displayName="Link",id.Icon=td,od.displayName="AppHeaderBar.LeftButtCon",ad.displayName="AppHeaderBar.LeftLogo";var sd="closeBottomSheet",ud="openBottomSheet",cd="updateBottomSheetContent",ld="closeModal",fd="openModal",dd="updateModalContent",pd="closePopover",hd="openPopover",md="updatePopoverContent",yd=cl({modalList:[],popoverList:[],bottomSheetList:[]},(function(e,t){switch(t.type){case dd:var n=-1;if(e.modalList.forEach((function(e,r){e.id===t.payload.id&&(n=r)})),n>=0){if(Vc(t.payload.content)!==Vc(e.modalList[n].content)){var r=(0,l.Z)(e.modalList);return r[n].content=t.payload.content,Ac(xc({},e),{modalList:r})}return e}return e;case fd:var i=!e.modalList.find((function(e){return e.id===t.payload.id}));return Ac(xc({},e),{modalList:[].concat((0,l.Z)(e.modalList),(0,l.Z)(i?[t.payload]:[]))});case ld:return Ac(xc({},e),{modalList:e.modalList.filter((function(e){return e.id!==t.payload.id}))});case md:var o=-1;if(e.popoverList.forEach((function(e,n){e.id===t.payload.id&&(o=n)})),o>=0){if(Vc(t.payload.content)!==Vc(e.popoverList[o].content)){var a=(0,l.Z)(e.popoverList);return a[o].content=t.payload.content,Ac(xc({},e),{popoverList:a})}return e}return e;case hd:var s=!e.popoverList.find((function(e){return e.id===t.payload.id}));return Ac(xc({},e),{popoverList:[].concat((0,l.Z)(e.popoverList),(0,l.Z)(s?[t.payload]:[]))});case pd:return Ac(xc({},e),{popoverList:e.popoverList.filter((function(e){return e.id!==t.payload.id}))});case cd:var u=-1;if(e.bottomSheetList.forEach((function(e,n){e.id===t.payload.id&&(u=n)})),u>=0){if(Vc(t.payload.content)!==Vc(e.bottomSheetList[u].content)){var c=(0,l.Z)(e.bottomSheetList);return c[u].content=t.payload.content,Ac(xc({},e),{bottomSheetList:c})}return e}return e;case ud:var f=!e.bottomSheetList.find((function(e){return e.id===t.payload.id}));return Ac(xc({},e),{bottomSheetList:[].concat((0,l.Z)(e.bottomSheetList),(0,l.Z)(f?[t.payload]:[]))});case sd:return Ac(xc({},e),{bottomSheetList:e.bottomSheetList.filter((function(e){return e.id!==t.payload.id}))});default:return console.error("Unknown reducer action:",t),e}})),vd=yd.Provider,gd=yd.useStore;function bd(e){var t=e.hasExternalContainer,n=Mc().base,r=gd((function(e){return e.bottomSheetList})),i=r.state,o=r.dispatchAction,a=i[i.length-1];return vt(zt,{children:[a?yt(ec.div,{"data-testid":"bottomSheetBgOverlay",onClick:function(){var e;a.outsideClicksClose&&(null==(e=a.onCloseBottomSheet)||e.call(a),a.isControlled||o({type:sd,payload:{id:a.id}}))},css:{position:t?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",background:a.showBgOverlay?n.color.translucent.standard[600]:"",zIndex:n.zLevel.bottomSheet},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:E.Ai.motion.normal.fast.jsDuration,ease:E.Ai.motion.normal.fast.jsEase}}):null,i.map((function(e){var r=(0,g.isValidElement)(e.content)&&e.content.props.sx?e.content.props.sx:{};return vt(ec.div,{"data-testid":"bottomSheet",css:{position:t?"absolute":"fixed",zIndex:n.zLevel.bottomSheet,background:n.color.neutral[700],boxShadow:"0 10vh 0 ".concat(n.color.neutral[700]),borderRadius:"".concat(n.borderRadius.x10," ").concat(n.borderRadius.x10," 0 0"),width:"100%",height:"half"===e.size?"50%":"quarter"===e.size?"25%":"full"===e.size?"calc(100% - 48px)":"75%",display:"flex",flexDirection:"column",bottom:0,left:0},initial:{y:"20%",opacity:0},animate:{y:"0%",opacity:1},exit:{y:"10%",opacity:0,transition:{ease:n.motion.normal.fast.jsEase}},transition:{duration:n.motion.bounce.gentle.jsDuration,ease:n.motion.bounce.gentle.jsEase,opacity:{ease:n.motion.normal.fast.jsEase}},children:[e.showHeaderBar&&vt(dl,{rc:yt("header",{}),sx:{display:"flex",justifyContent:"center",alignItems:"center",height:"base.spacing.x20",bg:"base.color.neutral.700",flexShrink:0,bradtl:"base.borderRadius.x10",bradtr:"base.borderRadius.x10"},testId:"bottomSheet__header",children:[yt(Ef,{variant:"tertiary",icon:"ChevronExpand",sx:{position:"absolute",top:"base.spacing.x4",left:"base.spacing.x4"},testId:"bottomSheet__header__closeButtCon",onClick:function(){var t;null==(t=e.onCloseBottomSheet)||t.call(e),e.isControlled||o({type:sd,payload:{id:e.id}})}}),yt(Vf,{size:"xSmall",weight:"bold",testId:"bottomSheet__header__title",children:e.headerBarTitle})]}),yt(Gc,{sx:k(xc({overflowX:"hidden",overflowY:"auto",flexGrow:1,padding:"base.spacing.x4"},e.showHeaderBar?{}:{bradtl:"base.borderRadius.x10",bradtr:"base.borderRadius.x10"}),r),children:e.content})]},e.id)}))]})}function wd(e){var t=e.hasExternalContainer,n=Mc().base,r=gd((function(e){return e.modalList})),i=r.state,o=r.dispatchAction;return yt(zt,{children:i.map((function(e){var r=function(e,t){var n={transform:""};switch(e.x){case"left":n.left=t.spacing.x12;break;case"right":n.right=t.spacing.x12;break;default:n.left="50%",n.translate="-50%"}switch(e.y){case"top":n.top=t.spacing.x12;break;case"bottom":n.bottom=t.spacing.x12;break;default:n.top="50%",n.translate+=" -50%"}return n}(e.position,n),i=Rc(e.bgOverlaySx,{base:n});return vt(g.Fragment,{children:[yt(ec.div,{"data-testid":"".concat(e.testId,"--bgOverlay"),onClick:function(){var t;e.outsideClicksClose&&(null==(t=e.onCloseModal)||t.call(e),e.isControlled||o({type:ld,payload:{id:e.id}}))},css:k({position:t?"absolute":"fixed",top:0,left:0,width:"100%",height:"100%",background:e.showBgOverlay?n.color.translucent.standard[600]:"",zIndex:n.zLevel.modal},i),initial:{opacity:0},exit:{opacity:0},animate:{opacity:"number"==typeof e.bgOverlaySx.opacity||"string"==typeof e.bgOverlaySx.opacity?e.bgOverlaySx.opacity:1},transition:{duration:n.motion.normal.gentle.jsDuration,ease:n.motion.normal.gentle.jsEase}},"".concat(e.id,"--bgOverlay")),yt(ec.div,{"data-testid":"".concat(e.testId,"--modalContent"),css:Ac(xc({},r),{position:t?"absolute":"fixed",zIndex:n.zLevel.modal,display:"flex",flexDirection:"column"}),initial:{scale:.8,opacity:0},animate:{scale:1,opacity:1},exit:{scale:.8,opacity:0,transition:{ease:n.motion.normal.fast.jsEase}},transition:{duration:n.motion.bounce.gentle.jsDuration,ease:n.motion.bounce.gentle.jsEase,opacity:{ease:n.motion.normal.fast.jsEase}},children:e.content},"".concat(e.id,"--modalContent"))]},e.id)}))})}function xd(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&t?e.left+e.width-t.width<0&&!n?Ad(e,t,!0):e.left+e.width-t.width:0}function Ad(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return e&&t?e.left+t.width>document.body.clientWidth&&!n?xd(e,t,!0):e.left:0}function kd(e,t){if(e&&t){var n=e.left+e.width/2-t.width/2,r=n<0,i=n+t.width>=document.body.clientWidth;return r?Ad(e,t,!0):i?xd(e,t,!0):n}return 0}function Ed(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e&&t?e.top-t.height-n<0&&!r?Td(e,t,n,!0):window.pageYOffset+e.top-t.height-n:0}function Td(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return e&&t?e.bottom+t.height+n>window.innerHeight&&!r?Ed(e,t,n,!0):window.pageYOffset+e.bottom+n:0}vd.displayName="BiomeOverlaysProvider";var _d={x:"center",y:"below"};function Sd(){var e=(0,g.useState)([]),t=(0,y.Z)(e,2),n=t[0],r=t[1],i=(0,g.useRef)([]),o=gd((function(e){return e.popoverList})),a=o.state,s=o.dispatchAction,u=rp((function(e){return e})),c=u.state,f=function(e){var t=(0,g.useRef)();return(0,g.useEffect)((function(){t.current=e}),[e]),t.current}(c),d=(0,g.useCallback)((function(){a.forEach((function(e){var t;null==(t=e.onOutsideClick)||t.call(e),e.isControlled||s({type:pd,payload:{id:e.id}})}))}),[s,a]);(0,g.useEffect)((function(){tc(c,f)||d()}),[c,f,d]),(0,g.useEffect)((function(){r(i.current.map((function(e){return null==e?void 0:e.getBoundingClientRect()})))}),[r,i,a]),function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1?arguments[1]:void 0,n=(0,g.useCallback)((function(n){t&&0!==e.length&&(e.some((function(e){var t;return!!e&&(null==(t=null==e?void 0:e.current)?void 0:t.contains(n.target))}))||t())}),[e,t]);(0,g.useEffect)((function(){return document.body.addEventListener("mousedown",n),document.body.addEventListener("touchstart",n),function(){document.body.removeEventListener("mousedown",n),document.body.removeEventListener("touchstart",n)}}),[n])}([].concat((0,l.Z)(i.current.map((function(e){return{current:e}}))),(0,l.Z)(a.map((function(e){return e.targetRef})))),d);var p=(0,g.useMemo)((function(){return a.map((function(e){var t,n;return null==(n=null==(t=e.targetRef)?void 0:t.current)?void 0:n.getBoundingClientRect()}))}),[a]),h=(0,g.useMemo)((function(){return a.map((function(e){return(null==e?void 0:e.position)||_d}))}),[a]),m=(0,g.useMemo)((function(){return a.map((function(e,t){var r=e.verticalGap,i=p[t],o=n[t];return{left:"center"===h[t].x?kd(i,o):"left"===h[t].x?Ad(i,o):xd(i,o),top:"above"===h[t].y?Ed(i,o,r):Td(i,o,r)}}))}),[n,a,h,p]);return yt(zt,{children:a.map((function(e,t){return yt(ec.div,{ref:function(e){e&&(i.current[t]=e)},"data-id":e.id,css:function(e){return xc({position:"absolute",zIndex:e.base.zLevel.popover},m[t])},initial:{opacity:0,y:"-8%"},exit:{opacity:0,y:"-8%"},animate:{opacity:1,y:0},transition:{duration:E.Wp.base.motion.normal.fast.jsDuration,ease:E.Wp.base.motion.normal.fast.jsEase},children:null==e?void 0:e.content},e.id)}))})}function Cd(e,t,n){if(e){e.setAttribute("data-tooltip-id",t),n&&e.setAttribute("data-tooltip-target","true");var r,i=(0,v.Z)(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.nodeType!==Node.TEXT_NODE&&(o.setAttribute("data-tooltip-id",t),n&&o.setAttribute("data-tooltip-target","true"),o.childNodes&&Cd(o,t))}}catch(a){i.e(a)}finally{i.f()}}}var Id="threeQuarter";var Od=["small","medium","large"],Pd="medium",Rd={position:"absolute",maxw:"320px",brad:"base.borderRadius.x4",boxShadow:"base.shadow.500",zIndex:"base.zLevel.tooltip",background:"base.color.neutral.500",textAlign:"center"};function Md(e){var t=e.size,n=e.theme;switch(t){case"small":return{padding:n.base.spacing.x3};case"large":return{padding:n.base.spacing.x5};default:return{padding:n.base.spacing.x4}}}var Bd=function(e){return e.getBoundingClientRect()},Nd=55;function Fd(){var e=Mc(),t=Bc(k(al({},Mf),Rd)),n=(0,g.useRef)(),r=(0,g.useRef)(null),i=(0,g.useRef)(null),o=$d((function(e){return e.tooltipList})),a=o.state,s=(0,g.useState)(void 0),u=(0,y.Z)(s,2),c=u[0],f=u[1],d=(0,g.useState)(void 0),p=(0,y.Z)(d,2),h=p[0],v=p[1],b=(0,g.useState)(void 0),w=(0,y.Z)(b,2),x=w[0],A=w[1],E=(0,g.useMemo)((function(){return h&&x&&c?{left:kd(h,x),top:Ed(h,x,16)}:{left:0,top:0}}),[c,x,h]),T=(0,g.useCallback)((function(e){if(ll()&&a.length>0){var t=e.target,n=t.getAttribute("data-tooltip-id"),r="true"===t.getAttribute("data-tooltip-target"),i=n===(null==c?void 0:c.id);return!r&&i||(r&&i?f(void 0):n!==(null==c?void 0:c.id)?f(a.find((function(e){return e.id===n}))):f(void 0)),!1}return!1}),[a,c]),_=(0,g.useCallback)((function(){f(void 0),v(void 0),A(void 0)}),[]),S=(0,g.useCallback)((function(e){if(clearTimeout(n.current),e!==(null==c?void 0:c.id)){var t=a.find((function(t){return t.id===e}));f(t)}}),[a,c]),C=(0,g.useCallback)((function(){clearTimeout(n.current),c&&_()}),[c,_]),I=(0,g.useCallback)((function(){clearTimeout(n.current),n.current=window.setTimeout((function(){C()}),Nd)}),[C]),O=(0,g.useCallback)((function(e){if(!ll()&&a.length>0){var t=e.target,n=null==t?void 0:t.getAttribute("data-tooltip-id");return n?S(n):I(),!1}return!1}),[a.length,S,I]);Dc("mousemove",nc(O,16)),Dc("click",T);var P=(0,g.useCallback)((function(){c&&_()}),[c,_]),R=pt(P,300,{leading:!0});if(Dc("scroll",R),Dc("resize",R),(0,g.useEffect)((function(){if(c){var e=document.body.querySelector('[data-tooltip-id="'.concat(c.id,'"]'));v(e?Bd(e):void 0),Cd(i.current,c.id)}else v(void 0)}),[c]),(0,g.useEffect)((function(){r.current&&A(Bd(r.current))}),[h,r]),!c)return null;var M=il(null==c?void 0:c.size,Pd,Od),B=k(t,el({size:"small",mono:!1,themeProps:e,weight:"regular"}),Md({size:M,theme:e}),function(e){var t=e.size,n=e.theme,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Md({size:e,theme:n}))}))))}({size:null==c?void 0:c.size,theme:e}),{top:E.top,left:E.left});return vt(mt,{children:[yt("div",{ref:r,css:k(B,{top:"0",left:"0",opacity:0,pointerEvents:"none"}),children:c.content}),yt(ec.div,{ref:i,"data-tooltip-id":c.id,"data-testid":"tooltip__container",initial:{opacity:0,y:"-8%"},animate:{opacity:1,y:"0%"},transition:{duration:e.base.motion.normal.fast.jsDuration,ease:e.base.motion.normal.fast.jsEase},css:B,children:c.content},c.id)]})}function Dd(e){var t=e.children,n=e.selector,r=(0,g.useRef)(null),i=(0,g.useState)(!1),o=(0,y.Z)(i,2),a=o[0],s=o[1];return _c((function(){return r.current=document.querySelector(n),s(!0),function(){return s(!1)}}),[]),a&&r.current?(0,rc.createPortal)(t,r.current):null}var Ld=(0,g.createContext)(void 0);function zd(e){var t=e.children,n=(0,g.useId)().replaceAll(":","-");return yt(Ld.Provider,{value:n,children:t})}var jd="modal-container",Ud="bottom-sheet-container",Zd="popover-container";function qd(e){var t=e.children,n=e.modalContainerId,r=e.bottomSheetContainerId,i=(0,g.useContext)(Ld);return vt(vd,{children:[t,yt(Dd,{selector:n?"#".concat(n):"#".concat(jd).concat(i),children:yt(wd,{hasExternalContainer:Boolean(n)})}),!n&&yt("div",{id:"".concat(jd).concat(i)}),yt(Dd,{selector:r?"#".concat(r):"#".concat(Ud).concat(i),children:yt(bd,{hasExternalContainer:Boolean(r)})}),!r&&yt("div",{id:"".concat(Ud).concat(i)}),yt(Dd,{selector:"#".concat(Zd).concat(i),children:yt(Sd,{})}),yt("div",{id:"".concat(Zd).concat(i)})]})}function Hd(e,t){var n;if((0,E.qK)(e))for(n in e){var r=e[n];"object"==typeof r?e[n]=Hd(e[n],t):"string"==typeof r&&r.includes("base.")&&(e[n]=(0,E.I)(t,r))}return e}pc(cc||(cc=u(['\n @import url("https://biome.immutable.com/hosted-assets/css/im-fonts-v4.css");\n /* ^ @NOTE: never put anyting (even a comment), before the fontFaceStylesImport */\n \n /* \n\n GLOBAL STYLES \n\n Please, think very carefully before putting stuff in here. \n The only things that belong in here are styles for the elements that \n sit outside of React\'s reach (eg html, body and #app). \n \n Everything else should go into component styles.\n\n */\n\n /* BASIC RESET STYLES */\n\n *,\n *::before,\n *::after {\n box-sizing: border-box;\n }\n\n html,\n body {\n height: 100%;\n margin: 0;\n }\n\n pre,\n p,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6 {\n margin: 0;\n }\n\n body {\n /* Get fonts to look slightly nicer where possible */\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n text-rendering: optimizeLegibility;\n }\n'])));var Vd=E.Wp;function Gd(e){var t=e.children,n=e.theme,r=void 0===n?Vd:n,i=e.globalSx,o=void 0===i?{}:i,a=function(e){var t=e.base,n=t.color;return{base:Ac(xc({},t),{color:Hd(n,e),breakpointAsArray:Object.values(t.breakpoint)})}}(r),s=Bc(o,a);return vt(Qe,{theme:a,children:[yt(at,{styles:s}),t]})}var Wd="clearTooltip",Kd="storeTooltip",Jd="updateTooltipContent",Xd=cl({tooltipList:[]},(function(e,t){switch(t.type){case Jd:var n=-1;if(e.tooltipList.forEach((function(e,r){e.id===t.payload.id&&(n=r)})),n>=0){if(Vc(t.payload.content)!==Vc(e.tooltipList[n].content)){var r=(0,l.Z)(e.tooltipList);return r[n].content=t.payload.content,Ac(xc({},e),{tooltipList:r})}return e}return e;case Kd:var i=(0,l.Z)(e.tooltipList),o=e.tooltipList.find((function(e){return e.id===t.payload.id})),a=!1;return o?i.forEach((function(e,n){e.id===t.payload.id&&Vc(t.payload)!==Vc(i[n])&&(i[n]=t.payload,a=!0)})):(i.push(t.payload),a=!0),a?Ac(xc({},e),{tooltipList:i}):e;case Wd:return Ac(xc({},e),{tooltipList:e.tooltipList.filter((function(e){return e.id!==t.payload.id}))});default:return console.error("Unknown reducer action:",t),e}})),Yd=Xd.Provider,$d=Xd.useStore;Yd.displayName="BiomeTooltipProvider";var Qd="tooltip-container";function ep(e){var t=e.children,n=(0,g.useContext)(Ld);return vt(Yd,{children:[t,yt(Dd,{selector:"#".concat(Qd).concat(n),children:yt(Fd,{})}),yt("div",{id:"".concat(Qd).concat(n)})]})}var tp=cl({width:null,height:null}),np=tp.Provider,rp=tp.useStore;function ip(e){var t=e.resizeDebounceDuration,n=void 0===t?op:t,r=rp((function(e){return e})),i=r.setState;return Dc("resize",pt((function(){i({width:window.innerWidth,height:window.innerHeight})}),n),{current:"undefined"!=typeof window?window:null}),_c((function(){return i({width:window.innerWidth,height:window.innerHeight})}),[]),null}np.displayName="BiomeWindowSizeProvider";var op=40;function ap(e){var t=e,n=t.children,r=t.resizeDebounceDuration,i=void 0===r?op:r,o=t.bottomSheetContainerId,a=t.modalContainerId,s=kc(t,["children","resizeDebounceDuration","bottomSheetContainerId","modalContainerId"]);return yt(zd,{children:yt(Gd,Ac(xc({},s),{children:vt(np,{children:[yt(ip,{resizeDebounceDuration:i}),yt(ep,{children:yt(qd,{modalContainerId:a,bottomSheetContainerId:o,children:n})})]})}))})}function sp(e){var t=e,n=t.children,r=t.domRef,i=kc(t,["children","domRef"]);return yt(dl,Ac(xc({},i),{domRef:r,children:n}))}function up(e){var t=e,n=t.children,r=kc(t,["children"]);return yt(Gc,Ac(xc({},r),{children:n}))}function cp(e){var t=e.visible,n=e.id,r=e.children,i=e.position,o=void 0===i?{x:"center",y:"below"}:i,a=e.domRef,s=void 0===a?{current:null}:a,u=e.onOutsideClick,c=e.verticalGap,l=void 0===c?4:c,f=Lc(s),d=(0,g.useId)(),p=n||d,h=Zc(r,up),m=Zc(r,sp),y=gd((function(e){return e.popoverList})),v=y.state,b=y.dispatchAction,w=void 0!==t;(0,g.useEffect)((function(){b({type:md,payload:{id:p,content:m}})}),[m,p,b]);var x=(0,g.useCallback)((function(){b({type:hd,payload:{id:p,content:m,targetRef:f,position:o,isControlled:w,onOutsideClick:u,verticalGap:l}})}),[b,p,m,f,o,w,u,l]),A=(0,g.useCallback)((function(){b({type:pd,payload:{id:p}})}),[b,p]);_c((function(){t?x():v.find((function(e){return e.id===p}))&&A()}),[t]);var k=(0,g.useMemo)((function(){return w?{}:{onClick:function(){v.find((function(e){return e.id===p}))?A():x()}}}),[v,w,p,A,x]);return h?yt(Gc,Ac(xc({},k),{id:p,domRef:f,children:h})):null}cp.displayName="Popover",cp.Target=up,cp.Content=sp;var lp=function(e){return{display:"flex",justifyContent:"flex-start",alignItems:"center",width:"100%",border:"none","&::after":{content:'""',flex:1,ml:e?"base.spacing.x6":"0"}}},fp=function(e){var t=e.size,n=e.theme,r="large"===t?nl({size:"xSmall",weight:"bold",themeProps:n}):"medium"===t?el({size:"medium",weight:"bold",themeProps:n}):tl({size:"small",weight:"bold",themeProps:n});return Ac(xc({},r),{color:"xSmall"===t?n.base.color.text.secondary:n.base.color.text.primary,"&::after":{height:"large"===t?"4px":"medium"===t?"2px":"1px",background:"xSmall"===t?n.base.color.translucent.standard[200]:n.base.color.text.primary}})},dp=function(e){var t=e.size,n=e.theme,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),fp({size:e,theme:n}))}))))},pp="medium",hp=["xSmall","small","medium","large"];function mp(e){var t=e,n=t.size,r=void 0===n?pp:n,i=t.sx,o=void 0===i?{}:i,a=t.children,s=kc(t,["size","sx","children"]),u=Mc(),c=il(r,pp,hp),l=k(lp(void 0!==a),fp({theme:u,size:c}),dp({theme:u,size:r}),o);return yt(dl,Ac(xc({},s),{sx:l,children:a}))}var yp={width:"base.spacing.x5",height:"base.spacing.x5",position:"relative"},vp=function(e){return{"&:disabled + .checkContainer":{boxShadow:"none"},"&:checked + .checkContainer":{borderWidth:e.base.border.size[200],borderColor:e.base.color.text.primary},"&:hover:not(:disabled) + .checkContainer":{borderWidth:e.base.border.size[200]},"&:checked:hover:not(:disabled) + .checkContainer":{borderColor:e.base.color.text.secondary,borderWidth:e.base.border.size[100]},"&:checked + .checkContainer > .checkIcon":{opacity:"1"}}},gp={borderStyle:"solid",borderWidth:"base.border.size[100]",borderColor:"base.color.text.secondary",borderRadius:"base.borderRadius.x4",boxShadow:"base.shadow[100]",width:"base.spacing.x5",height:"base.spacing.x5",d:"flex",alignItems:"center",justifyContent:"center"},bp={fill:"base.color.text.primary",pointerEvents:"none",opacity:"0"};function wp(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=void 0===i?"Checkbox":i,a=t.name,s=t.id,u=void 0===s?a:s,c=(t.children,t.domRef),l=void 0===c?{current:null}:c,f=t.className,d=t.onChange,p=t.checked,h=t.value,m=t.disabled,y=(t.validationStatus,t.inputRef),v=t.rc,g=(t.textAlign,kc(t,["sx","testId","name","id","children","domRef","className","onChange","checked","value","disabled","validationStatus","inputRef","rc","textAlign"])),b=Lc(l),w=Kc(b),x=rl(m),A=Mc();return vt(dl,{rc:v,domRef:b,testId:o,className:f,sx:k(yp,r),children:[yt("input",Ac(xc({},g),{type:"checkbox","data-testid":"".concat(o,"__input"),ref:y,id:u,name:a,value:h,checked:p,onChange:d,disabled:m,css:k(x,vp(A)),className:"actualInput"})),yt(dl,{className:"checkContainer",sx:gp,testId:"".concat(o,"__checkboxContainer"),children:yt(El,{icon:"Tick",className:"checkIcon",variant:w&&!m?"regular":"bold",sx:bp,testId:"".concat(o,"__checkIcon")})})]})}wp.displayName="Checkbox";var xp=ut(lc||(lc=u(["\n 0% {\n transform: scale(0.5);\n opacity: 0.8;\n }\n 100% {\n transform: scale(1);\n opacity: 0;\n }\n"]))),Ap=function(e){return e?{"&::before":{animation:"".concat(xp," infinite"),animationDuration:"1.3s",animationTimingFunction:"base.motion.normal.gentle.cssEase"},"&::after":{content:"''",position:"absolute",top:"50%",left:"50%",width:"base.spacing.x2",height:"base.spacing.x2",borderRadius:"50%",transform:"translate(-50%, -50%)"}}:{"&::before":{opacity:"1"}}},kp={height:"base.spacing.x4",width:"base.spacing.x4",borderRadius:"50%",position:"relative",flexShrink:"0",display:"flex",alignItems:"center",justifyContent:"center","&::before":{content:'""',height:"100%",width:"100%",borderRadius:"50%",transform:"scale(0.5)"}},Ep=function(e){return{"&::before, &::after":{backgroundColor:"base.color.status.".concat(e,".bright")}}};function Tp(e){var t=e,n=t.rc,r=void 0===n?yt("span",{}):n,i=t.domRef,o=t.testId,a=t.sx,s=void 0===a?{}:a,u=t.variant,c=void 0===u?"fatal":u,l=t.isAnimated,f=void 0!==l&&l,d=kc(t,["rc","domRef","testId","sx","variant","isAnimated"]),p=(0,g.useMemo)((function(){return k(kp,Ep(c),Ap(f),s)}),[f,s,c]);return yt(dl,xc({rc:r,sx:p,domRef:i,testId:o},d))}function _p(e){var t=kc(e,[]);return yt(Tp,xc({},t))}_p.displayName="MenuItem.Badge";var Sp="medium",Cp=["xSmall","small","medium"];function Ip(e){return Array.isArray(e)}var Op={display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",flexGrow:1},Pp=function(e){var t=e.size,n=e.theme;switch(t){case"xSmall":return{paddingTop:parseInt(n.base.spacing.x2,10)-2+"px",paddingBottom:parseInt(n.base.spacing.x2,10)-2+"px",paddingLeft:n.base.spacing.x2,minHeight:"50px","& .innerTextContainer":{minHeight:"34px"}};case"small":return{paddingTop:parseInt(n.base.spacing.x3,10)-2+"px",paddingBottom:parseInt(n.base.spacing.x3,10)-2+"px",minHeight:"72px","& .innerTextContainer":{minHeight:"48px"}};default:return{paddingTop:parseInt(n.base.spacing.x6,10)-2+"px",paddingBottom:parseInt(n.base.spacing.x6,10)-2+"px",minHeight:"96px","& .innerTextContainer":{minHeight:"48px"}}}},Rp={display:"flex",alignItems:"center",paddingX:"base.spacing.x3",borderRadius:"base.borderRadius.x6",width:"100%",gap:"base.spacing.x4",transitionProperty:"border, background, box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase",border:"solid transparent",borderWidth:"base.border.size.200","&.emphasized":{bgc:"base.color.translucent.emphasis.100"},"div&":{cursor:"pointer"},"&:not(article):hover":{bgc:"base.color.translucent.emphasis.200",boxShadow:"base.shadow.200"},"&.selected":{bgc:"base.color.translucent.emphasis.200",borderColor:"base.color.translucent.standard.1000"},"&.selected:not(article):hover":{boxShadow:"base.shadow.200"},"&:not(article):active":{bgc:"base.color.translucent.emphasis.100",boxShadow:"base.shadow.100"}},Mp=function(e){return ul({size:e.size,theme:e.theme,renderSxAtSize:Pp})},Bp={d:"flex",justifyContent:"center",alignItems:"center",bg:"base.color.translucent.standard.100",flexShrink:0},Np={width:"base.spacing.x12",height:"base.spacing.x12",flexShrink:0};function Fp(e){var t=e.size,n=e.theme;switch(t){case"xSmall":return el({themeProps:n,mono:!1,size:"small",weight:"regular"});case"small":return el({themeProps:n,mono:!1,size:"medium",weight:"regular"});default:return nl({themeProps:n,size:"xSmall",weight:"bold"})}}var Dp=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Fp}))};function Lp(e){var t=e.size,n=e.theme;return el("xSmall"===t?{themeProps:n,mono:!1,size:"xxSmall",weight:"regular"}:{themeProps:n,mono:!1,size:"xSmall",weight:"regular"})}var zp=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Lp}))},jp={position:"relative",w:"100%",borderRadius:Rp.borderRadius};function Up(e){switch(e.size){case"xSmall":return{height:"50px"};case"small":return{height:"72px"};default:return{height:"96px"}}}var Zp=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Up}))},qp={display:"block",width:"60%",height:"100%",WebkitMaskPosition:"left center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"},Hp={position:"absolute",width:"40%",height:"100%",top:"0",right:"0",display:"block",WebkitMaskPosition:"right center",WebkitMaskRepeat:"no-repeat",WebkitMaskSize:"contain"};function Vp(e){var t=e.size,n=e.theme;return"xSmall"===t?{width:n.base.spacing.x8,height:n.base.spacing.x8}:{width:n.base.spacing.x12,height:n.base.spacing.x12}}var Gp=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Vp}))};function Wp(e){var t=e,n=t.size,r=void 0===n?Sp:n,i=t.sx,o=void 0===i?{}:i,a=t.rc,s=void 0===a?yt("span",{}):a,u=kc(t,["size","sx","rc"]),c=Mc(),l=il(r,Sp,Cp),f=k(Ac(xc({},Cf(2)),{color:"base.color.text.secondary",textAlign:"left"}),Lp({theme:c,size:l}),zp({theme:c,size:r}),o);return yt(dl,Ac(xc({},u),{sx:f,rc:s}))}function Kp(e){var t=e,n=t.icon,r=t.sx,i=void 0===r?{}:r,o=t.testId,a=t.variant,s=t.circularFrame,u=t.size,c=void 0===u?Sp:u,l=t.rc,f=void 0===l?yt("span",{}):l,d=kc(t,["icon","sx","testId","variant","circularFrame","size","rc"]),p=Mc(),h=il(c,Sp,Cp),m=k(Bp,Vp({theme:p,size:h}),Gp({theme:p,size:c}),{borderRadius:s?"50%":"base.borderRadius.x2"},i);return yt(dl,Ac(xc({},d),{rc:f,testId:o,sx:m,children:yt(El,{icon:n,variant:a,sx:{width:"base.icon.size.300",fill:"base.color.text.primary"}})}))}Wp.displayName="MenuItem.Caption",Kp.displayName="MenuItem.FramedIcon";var Jp=["1:1","3:4","4:3","7:5","16:9","21:9","32:9"],Xp="1:1";function Yp(e){switch(e){case"3:4":return{paddingBottom:"133.33%"};case"4:3":return{paddingBottom:"75%"};case"7:5":return{paddingBottom:"71.43%"};case"16:9":return{paddingBottom:"56.25%"};case"21:9":return{paddingBottom:"42.86%"};case"32:9":return{paddingBottom:"28.13%"};default:return{paddingBottom:"100%"}}}function $p(e){var t=e,n=t.imageUrl,r=t.relativeImageSizeInLayout,i=t.responsiveSizes,o=t.imageResizeServiceUrl,a=t.defaultImageClassName,s=t.defaultImageUrl,u=t.loading,c=t.sx,f=void 0===c?{}:c,d=t.aspectRatio,p=void 0===d?Xp:d,h=t.objectFit,y=void 0===h?"cover":h,v=t.objectPosition,g=void 0===v?"50% 50%":v,b=t.testId,w=t.rc,x=t.className,A=t.alt,E=kc(t,["imageUrl","relativeImageSizeInLayout","responsiveSizes","imageResizeServiceUrl","defaultImageClassName","defaultImageUrl","loading","sx","aspectRatio","objectFit","objectPosition","testId","rc","className","alt"]),T=Mc(),_=il(p,Xp,Jp),S=k(Ac(xc({},If),{position:"relative",width:"100%"}),function(e){var t=e.theme,n=e.aspect,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),Yp(e))}))))}({theme:T,aspect:p}),Yp(_));return yt(dl,Ac(xc({},E),{testId:b,sx:k({d:"flex",w:"100%",minw:"16px"},f),rc:w,className:x,children:yt(dl,{sx:S,testId:"".concat(b,"__innerContainer"),rc:w,children:yt($f,{alt:A,className:"".concat(x,"__cloudImage"),testId:"".concat(b,"__innerContainer__cloudImage"),imageUrl:n,relativeImageSizeInLayout:r,responsiveSizes:i,imageResizeServiceUrl:o,loading:u,defaultImageClassName:a,defaultImageUrl:s,sx:{position:"absolute",width:"100%",height:"100%",top:"0",left:"0",objectFit:y,objectPosition:g}})})}))}function Qp(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=t.circularFrame,a=void 0!==o&&o,s=t.responsiveSizes,u=void 0===s?[64,128,256,450]:s,c=kc(t,["sx","testId","circularFrame","responsiveSizes"]),l=k({display:"block",bg:"base.color.translucent.standard.100",overflow:"hidden",borderRadius:a?"50%":"base.borderRadius.x2",objectFit:"cover",objectPosition:"center"},r);return yt($p,Ac(xc({},c),{responsiveSizes:u,aspectRatio:"1:1",testId:i,sx:l}))}function eh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.rc,o=void 0===i?yt("span",{}):i,a=t.size,s=void 0===a?Sp:a,u=kc(t,["sx","rc","size"]),c=Mc(),l=il(s,Sp,Cp),f=k(Np,Vp({theme:c,size:l}),Gp({theme:c,size:s}),r);return yt(Qp,Ac(xc({},u),{rc:o,sx:f}))}function th(e){var t=e,n=t.logo,r=t.sx,i=void 0===r?{}:r,o=t.testId,a=t.circularFrame,s=void 0!==a&&a,u=t.size,c=void 0===u?Sp:u,l=t.rc,f=void 0===l?yt("span",{}):l,d=kc(t,["logo","sx","testId","circularFrame","size","rc"]),p=Mc(),h=il(c,Sp,Cp),m=k(Bp,Vp({theme:p,size:h}),Gp({theme:p,size:c}),{overflow:"hidden",borderRadius:s?"50%":"base.borderRadius.x2",flexShrink:0},i);return yt(dl,Ac(xc({},d),{testId:o,sx:m,rc:f,children:yt(xf,{logo:n,sx:k({width:"base.icon.size.300"},i)})}))}function nh(e){var t=e,n=t.icon,r=t.sx,i=void 0===r?{}:r,o=kc(t,["icon","sx"]);return yt(El,Ac(xc({},o),{icon:n,sx:k({width:"base.icon.size.300",fill:"base.color.text.primary",flexShrink:0},i)}))}function rh(e){var t=e,n=t.icon,r=void 0===n?"ChevronForward":n,i=t.sx,o=void 0===i?{}:i,a=kc(t,["icon","sx"]);return yt(El,Ac(xc({},a),{icon:r,sx:k({width:"base.icon.size.200",fill:"base.color.text.secondary",flexShrink:0},o)}))}function ih(e){var t=e,n=t.size,r=void 0===n?Sp:n,i=t.children,o=t.testId,a=void 0===o?"MenuItemLabel":o,s=t.sx,u=void 0===s?{}:s,c=t.rc,l=void 0===c?yt("span",{}):c,f=kc(t,["size","children","testId","sx","rc"]),d=Mc(),p=il(r,Sp,Cp),h=k(Ac(xc({},Cf(2)),{textAlign:"left",color:"base.color.text.primary",wordBreak:"break-all"}),Fp({theme:d,size:p}),Dp({theme:d,size:r}),u);return yt(dl,Ac(xc({},f),{sx:h,rc:l,testId:a,children:i}))}function oh(e){var t=e,n=t.children,r=t.id,i=void 0===r?"":r,o=t.sx,a=void 0===o?{}:o,s=kc(t,["children","id","sx"]),u=gd((function(e){return e.modalList})),c=u.dispatchAction,l=(0,g.useCallback)((function(){return c({type:ld,payload:{id:i}})}),[c,i]),f="function"==typeof n?n({closeModal:l}):n;return yt(dl,Ac(xc({},s),{sx:k({maxWidth:"100svw",maxHeight:"100svh",overflow:"auto",padding:"base.spacing.x4"},a),children:f}))}function ah(e){var t=kc(e,[]);return yt(oh,xc({},t))}function sh(e){var t=e,n=t.children,r=kc(t,["children"]);return yt(Gc,Ac(xc({},r),{children:n}))}function uh(e){var t=kc(e,[]);return yt(sh,xc({},t))}function ch(e){var t=e.visible,n=e.id,r=e.children,i=e.size,o=void 0===i?Id:i,a=e.domRef,s=void 0===a?{current:null}:a,u=e.showHeaderBar,c=void 0===u||u,l=e.onCloseBottomSheet,f=e.showBgOverlay,d=void 0===f||f,p=e.headerBarTitle,h=e.outsideClicksClose,m=void 0===h||h,y=Lc(s),v=(0,g.useId)(),b=n||v,w=Zc(r,uh),x=Zc(r,ah),A=gd((function(e){return e.bottomSheetList})),k=A.state,E=A.dispatchAction;(0,g.useEffect)((function(){E({type:cd,payload:{id:b,content:x?(0,g.cloneElement)(x,{id:b}):null}})}),[x,b,E]);var T=(0,g.useCallback)((function(){E({type:sd,payload:{id:b}}),null==l||l()}),[E,l,b]),_=void 0!==t,S=(0,g.useCallback)((function(){E({type:ud,payload:{id:b,content:x?(0,g.cloneElement)(x,{id:b}):null,size:o,targetRef:y,headerBarTitle:p,showHeaderBar:c,showBgOverlay:d,isControlled:_,onCloseBottomSheet:l,outsideClicksClose:m}})}),[E,b,x,o,y,p,c,d,_,m,l]);_c((function(){t?S():k.find((function(e){return e.id===b}))&&T()}),[t]);var C=(0,g.useMemo)((function(){return _?{}:{onClick:function(){k.find((function(e){return e.id===b}))?T():S()}}}),[k,_,b,T,S]);return w?yt(Gc,Ac(xc({},C),{id:b,domRef:y,children:w})):null}function lh(e){var t=e,n=t.children,r=t.domRef,i=t.testId,o=t.icon,a=void 0===o?"MoreVertical":o,s=t.size,u=void 0===s?Zl:s,c=t.variant,l=void 0===c?"tertiary":c,f=t.onClick,d=t.bottomSheetSize,p=void 0===d?Id:d,h=t.showHeaderBar,m=void 0===h||h,v=t.headerBarTitle,b=t.showBgOverlay,w=t.outsideClicksClose,x=void 0===w||w,A=kc(t,["children","domRef","testId","icon","size","variant","onClick","bottomSheetSize","showHeaderBar","headerBarTitle","showBgOverlay","outsideClicksClose"]),k=(0,g.useState)(!1),E=(0,y.Z)(k,2),T=E[0],_=E[1];return vt(ch,Ac(xc({},{headerBarTitle:v,showHeaderBar:m}),{visible:T,onCloseBottomSheet:function(){return _(!1)},outsideClicksClose:x,size:p,showBgOverlay:b,domRef:r,children:[yt(ch.Target,{children:yt(Ef,Ac(xc({},A),{testId:i,icon:a,size:u,variant:l,onClick:function(e){e.preventDefault(),e.stopPropagation(),_(!T),null==f||f(e)}}))}),yt(ch.Content,{sx:{padding:"base.spacing.x4",paddingBottom:"0px"},children:yt(Mh,{testId:"".concat(i,"__overflowBottomSheetMenu"),sx:{maxHeight:"100%"},children:g.Children.map(n,(function(e){return(0,g.isValidElement)(e)&&Boolean(e.props.onClick)?yt(Gc,{onClick:function(e){e.preventDefault(),e.stopPropagation(),_(!1)},children:e}):e}))})})]}))}function fh(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=kc(t,["children","sx"]);return yt(lh,Ac(xc({},o),{size:"small",sx:k({flexShrink:0},i),children:n}))}function dh(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=kc(t,["children","sx"]);return yt(Bh,Ac(xc({},o),{size:"small",sx:k({flexShrink:0},i),children:n}))}function ph(e){var t=e,n=t.price,r=t.size,i=t.sx,o=void 0===i?{}:i,a=kc(t,["price","size","sx"]),s=xc({},a);return"medium"===r?yt(ed,Ac(xc({},s),{use:yt(Vf,{size:"xSmall",weight:"bold"}),rc:yt("span",{}),price:n,sx:o})):function(e,t){return"small"===e}(r)?yt(ed,Ac(xc({},s),{use:yt(zf,{size:"medium",weight:"regular"}),rc:yt("span",{}),price:n,sx:o})):null}function hh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?Sp:i,a=t.price,s=kc(t,["sx","size","price"]),u=rp((function(e){return e.width})),c=u.state,f=Mc().base.breakpointAsArray,d=il(o,Sp,Cp),p=k({whiteSpace:"nowrap"},r),h=yt(ph,Ac(xc({},s),{size:d,price:a,sx:p}));if(null===c)return h;if(Ip(o)){var m=(0,l.Z)(o);return m.shift(),m.reduce((function(e,t,n){var r=e;return null!==t&&c>=f[n]&&(r=yt(ph,Ac(xc({},s),{size:t,price:a,sx:p}))),r}),h)}return"medium"===o||"small"===o?yt(ph,Ac(xc({},s),{price:a,size:o,sx:p})):null}Qp.displayName="FramedImage",eh.displayName="MenuItem.FramedImage",th.displayName="MenuItem.FramedLogo",nh.displayName="MenuItem.Icon",rh.displayName="MenuItem.IntentIcon",ih.displayName="MenuItem.Label",oh.displayName="Modal.Content",ah.displayName="BottomSheet.Content",sh.displayName="Modal.Target",uh.displayName="BottomSheet.Target",ch.displayName="BottomSheet",ch.Content=ah,ch.Target=uh,fh.displayName="MenuItem.OverflowBottomSheetMenu",dh.displayName="MenuItem.OverflowPopoverMenu",hh.displayName="MenuItem.PriceDisplay";var mh={xSmall:{left:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 196 50" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M24 41C32.8366 41 40 33.8366 40 25C40 16.1634 32.8366 9 24 9C15.1634 9 8 16.1634 8 25C8 33.8366 15.1634 41 24 41ZM58 19C56.8954 19 56 19.8954 56 21V29C56 30.1046 56.8954 31 58 31H174C175.105 31 176 30.1046 176 29V21C176 19.8954 175.105 19 174 19H58Z" /></svg>\')',right:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 50 50" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M38 25C38 31.6274 32.6274 37 26 37C19.3726 37 14 31.6274 14 25C14 18.3726 19.3726 13 26 13C32.6274 13 38 18.3726 38 25Z" /></svg>\')'},small:{left:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 196 72" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M36 60C49.2548 60 60 49.2548 60 36C60 22.7452 49.2548 12 36 12C22.7452 12 12 22.7452 12 36C12 49.2548 22.7452 60 36 60ZM76 24C76 21.7909 77.7909 20 80 20H192C194.209 20 196 21.7909 196 24V32C196 34.2091 194.209 36 192 36H80C77.7909 36 76 34.2091 76 32V24ZM75 45C75 42.7909 76.7909 41 79 41H135C137.209 41 139 42.7909 139 45V49C139 51.2091 137.209 53 135 53H79C76.7909 53 75 51.2091 75 49V45Z" /></svg>\')',right:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 126 72" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M98 52C106.837 52 114 44.8366 114 36C114 27.1634 106.837 20 98 20C89.1634 20 82 27.1634 82 36C82 44.8366 89.1634 52 98 52ZM30 30C27.7909 30 26 31.7909 26 34V38C26 40.2091 27.7909 42 30 42H70C72.2091 42 74 40.2091 74 38V34C74 31.7909 72.2091 30 70 30H30Z" /></svg>\')'},medium:{left:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 196 96" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M36 72C49.2548 72 60 61.2548 60 48C60 34.7452 49.2548 24 36 24C22.7452 24 12 34.7452 12 48C12 61.2548 22.7452 72 36 72ZM76 36C76 33.7909 77.7909 32 80 32H192C194.209 32 196 33.7909 196 36V44C196 46.2091 194.209 48 192 48H80C77.7909 48 76 46.2091 76 44V36ZM76 58C76 55.7909 77.7909 54 80 54H136C138.209 54 140 55.7909 140 58V62C140 64.2091 138.209 66 136 66H80C77.7909 66 76 64.2091 76 62V58Z" /></svg>\')',right:'url(\'data:image/svg+xml;utf8, <svg viewBox="0 0 126 96" xmlns="http://www.w3.org/2000/svg" version="1.1"><path d="M98 64C106.837 64 114 56.8366 114 48C114 39.1634 106.837 32 98 32C89.1634 32 82 39.1634 82 48C82 56.8366 89.1634 64 98 64ZM30 42C27.7909 42 26 43.7909 26 46V50C26 52.2091 27.7909 54 30 54H70C72.2091 54 74 52.2091 74 50V46C74 43.7909 72.2091 42 70 42H30Z" /></svg>\')'}};function yh(e){var t=e,n=t.size,r=void 0===n?Sp:n,i=t.emphasized,o=t.sx,a=void 0===o?{}:o,s=t.testId,u=kc(t,["size","emphasized","sx","testId"]),c=rp((function(e){return e.width})),f=c.state,d=Ye(),p=d.base.breakpointAsArray,h=il(r,Sp,Cp),m=k(jp,Up({size:h}),Zp({size:r,theme:d}),{bgc:i?Rp["&.emphasized"].bgc:"transparent"},a),y=(0,g.useMemo)((function(){var e=mh.medium;if(null===f)return e;if(Ip(r)){var t=(0,l.Z)(r);return t.shift(),t.reduce((function(e,t,n){var r=e;return null!==t&&f>=p[n]&&(r=mh[t]),r}),e)}return"medium"===r||"small"===r||"xSmall"===r?mh[r]:e}),[p,r,f]),v=y.left,b=y.right;return vt(dl,Ac(xc({},u),{testId:s,sx:m,children:[yt(dl,{rc:yt("span",{}),testId:"".concat(s,"__leftMask"),sx:Ac(xc({},qp),{WebkitMaskImage:v}),children:yt(Rf,{rc:yt("span",{}),testId:"".concat(s,"__leftMask__shimmer")})}),yt(dl,{rc:yt("span",{}),testId:"".concat(s,"__rightMask"),sx:Ac(xc({},Hp),{WebkitMaskImage:b}),children:yt(Rf,{rc:yt("span",{}),testId:"".concat(s,"__rightMask__shimmer")})})]}))}function vh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=kc(t,["sx"]),o=("onClick"in i?i:{onClick:null}).onClick;return yt(Sf,Ac(xc({},i),{sx:k({flexShrink:0},r),onClick:function(e){e.stopPropagation(),"function"==typeof o&&o(e)},size:"small"}))}function gh(e){var t=e,n=t.testId,r=t.className,i=t.children,o=t.emphasized,a=t.selected,s=t.sx,u=void 0===s?{}:s,c=t.rc,l=t.size,f=void 0===l?Sp:l,d=kc(t,["testId","className","children","emphasized","selected","sx","rc","size"]),p=("onClick"in d?d:Ac(xc({},d),{onClick:null})).onClick,h=Mc(),m=il(f,Sp,Cp),y=k({},Rp,Pp({size:m,theme:h}),Mp({size:f,theme:h}),u),v=Zc(i,nh),g=Zc(i,Kp),b=Zc(i,eh),w=Zc(i,th),x=Zc(i,ih),A=Zc(i,Wp),E=Zc(i,rh),T=Zc(i,_p),_=Zc(i,hh),S=Zc(i,dh),C=Zc(i,fh),I=Zc(i,vh),O=Ac(xc({},d),{onClick:p,rc:c}),P=Ac(xc({},d),{onClick:p}),R=Boolean(I)||Boolean(S)||Boolean(C),M=vt(mt,{children:[w?yt(Gc,{testId:w.props.testId||"".concat(n,"__framedLogo"),size:f,children:w}):b?yt(Gc,{size:f,testId:b.props.testId||"".concat(n,"__framedImage"),children:b}):g?yt(Gc,{testId:g.props.testId||"".concat(n,"__framedIcon"),size:f,children:g}):v?yt(Gc,{testId:v.props.testId||"".concat(n,"__icon"),children:v}):null,vt(dl,{rc:yt("span",{}),sx:Op,className:"innerTextContainer",children:[x&&yt(Gc,{testId:x.props.testId||"".concat(n,"__label"),size:f,children:x}),A&&yt(Gc,{testId:A.props.testId||"".concat(n,"__caption"),size:f,children:A})]}),vt(dl,{sx:{d:"flex",gap:"base.spacing.x2",alignItems:"center",flexShrink:0},rc:yt("span",{}),children:[_&&yt(Gc,{testId:_.props.testId||"".concat(n,"__priceDisplay"),size:f,children:_}),I&&yt(Gc,{testId:I.props.testId||"".concat(n,"__statefulButtCon"),children:I}),C?yt(Gc,{testId:C.props.testId||"".concat(n,"__verticalBottomSheetMenu"),children:C}):S?yt(Gc,{testId:S.props.testId||"".concat(n,"__verticalPopoverMenu"),children:S}):null,(T||E)&&vt(dl,{sx:{d:"flex",alignItems:"center"},rc:yt("span",{}),children:[T&&yt(Gc,{testId:T.props.testId||"".concat(n,"__badge"),children:T}),E&&yt(Gc,{testId:E.props.testId||"".concat(n,"__intentIcon"),children:E})]})]})]});return yt(ft,{children:function(e){var t=e.cx;return ml(p,c,R)?yt(pl,Ac(xc({},O),{testId:n,className:t({selected:a,emphasized:o},r),sx:y,children:M})):yl(p,c,R)?yt(dl,Ac(xc({},P),{rc:yt(p?"div":"article",{}),testId:n,className:t({selected:a,emphasized:o},r),sx:y,children:M})):null}})}function bh(e){var t=e,n=t.shimmer,r=void 0!==n&&n,i=t.size,o=void 0===i?Sp:i,a=t.rc,s=t.testId,u=t.className,c=t.children,l=t.emphasized,f=t.selected,d=t.domRef,p=t.sx,h=void 0===p?{}:p,m=t.shimmerSx,y=void 0===m?{}:m,v=kc(t,["shimmer","size","rc","testId","className","children","emphasized","selected","domRef","sx","shimmerSx"]);return r?yt(yh,{size:o,rc:a,testId:"".concat(s,"__shimmer"),className:u,emphasized:l,sx:y}):yt(gh,Ac(xc({},v),{rc:a,size:o,testId:s,className:u,emphasized:l,selected:f,sx:h,domRef:d,children:c}))}yh.displayName="MenuItemShimmer",vh.displayName="MenuItem.StatefulButtCon",bh.Icon=nh,bh.FramedIcon=Kp,bh.FramedImage=eh,bh.FramedLogo=th,bh.Label=ih,bh.IntentIcon=rh,bh.PriceDisplay=hh,bh.Caption=Wp,bh.Badge=_p,bh.OverflowPopoverMenu=dh,bh.OverflowBottomSheetMenu=fh,bh.StatefulButtCon=vh;var wh={width:"base.spacing.x5",height:"base.spacing.x5",d:"flex",alignItems:"center",justifyContent:"center",position:"relative"},xh=function(e){return{"&:disabled + .radioContainer":{boxShadow:"none"},"&:checked + .radioContainer":{borderWidth:e.base.border.size[200],borderColor:e.base.color.text.primary},"&:checked + .radioContainer > .checkCircle":{opacity:"1"},"&:hover:not(:disabled) + .radioContainer":{borderWidth:e.base.border.size[200]},"&:checked:hover:not(:disabled) + .radioContainer":{borderColor:e.base.color.text.secondary,borderWidth:e.base.border.size[100]},":checked:not(:disabled):hover + .radioContainer > .checkCircle":{width:"6px",height:"6px"}}},Ah={borderStyle:"solid",borderWidth:"base.border.size[100]",borderColor:"base.color.text.secondary",borderRadius:"base.borderRadius.x6",boxShadow:"base.shadow[100]",width:"base.spacing.x5",height:"base.spacing.x5",d:"flex",alignItems:"center",justifyContent:"center"},kh={position:"relative",pointerEvents:"none",width:"10px",height:"10px",borderRadius:"50%",backgroundColor:"base.color.text.primary",opacity:"0"};function Eh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=void 0===i?"Radio":i,a=t.name,s=t.id,u=void 0===s?a:s,c=(t.children,t.domRef),l=void 0===c?{current:null}:c,f=t.className,d=t.onChange,p=t.checked,h=t.value,m=t.disabled,y=(t.validationStatus,t.textAlign,t.inputRef),v=t.rc,g=kc(t,["sx","testId","name","id","children","domRef","className","onChange","checked","value","disabled","validationStatus","textAlign","inputRef","rc"]),b=Lc(l),w=rl(m),x=Mc();return vt(dl,{rc:v,domRef:b,testId:o,className:f,sx:k(wh,r),children:[yt("input",Ac(xc({},g),{type:"radio","data-testid":"".concat(o,"__input"),id:u,name:a,ref:y,value:h,checked:p,onChange:d,disabled:m,css:k(w,xh(x)),className:"actualInput"})),yt(dl,{className:"radioContainer",sx:Ah,testId:"".concat(o,"__radioContainer"),children:yt(dl,{rc:yt("span",{}),className:"checkCircle",sx:kh,testId:"".concat(o,"__checkCircle")})})]})}Eh.displayName="Radio";var Th={width:"base.spacing.x12",height:"base.spacing.x7",position:"relative",d:"flex",alignItems:"center",justifyContent:"flexStart","&:disabled + .toggleContainer":{boxShadow:"none"},"input:hover:not(:disabled) + .toggleContainer":{boxShadow:"base.shadow.300",backgroundColor:"base.color.translucent.emphasis.200"},"input:hover:not(:disabled) + .toggleContainer:before":{borderColor:"base.color.translucent.standard.1000"},"input:hover:not(:disabled):not(checked) + .toggleContainer > .toggleHandle":{transform:"translateX(6px)",boxShadow:"base.shadow.300"},"input:checked + .toggleContainer":{background:"base.color.status.success.bright",boxShadow:"none"},"input:checked + .toggleContainer::before":{borderColor:"base.color.translucent.standard.1000",borderWidth:"base.border.size.200"},"input:checked:hover:not(:disabled) + .toggleContainer":{background:"base.color.status.success.bright",boxShadow:"base.shadow[200]"},"input:checked:not(:disabled):hover + .toggleContainer::before":{borderColor:"base.color.translucent.standard.1000",borderWidth:"base.border.size.100"},"input:checked + .toggleContainer > .toggleHandle":{transform:"translateX(22px)"},"input:checked + .toggleContainer > .toggleHandle > .toggleHandle__tickIcon":{opacity:"1"},"input:hover:checked:not(:disabled) + .toggleContainer > .toggleHandle":{transform:"translateX(20px)"}},_h={position:"relative",pointerEvents:"none",width:"base.spacing.x12",height:"base.spacing.x7",borderRadius:"base.borderRadius.x12",backgroundColor:"base.color.translucent.emphasis.100",d:"flex",alignItems:"center","&::before":{content:'""',position:"absolute",top:"0",left:"0",width:"100%",height:"100%",borderRadius:"base.borderRadius.x12",borderWidth:"base.border.size.100",borderStyle:"solid",borderColor:"base.color.translucent.standard.500"}},Sh={position:"absolute",top:"0",left:"0",width:"100%",height:"100%"},Ch={w:"22px",h:"22px",d:"flex",position:"relative",alignItems:"center",justifyContent:"center",borderRadius:"50%",backgroundColor:"base.color.translucent.standard.1000",boxShadow:"base.shadow.100",transition:"200ms ease-in-out",transitionProperty:"transform, box-shadow",pointerEvents:"none",transform:"translateX(3px)"},Ih={fill:"base.color.text.inverse.primary",opacity:"0"};function Oh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=void 0===i?"Toggle":i,a=t.name,s=t.id,u=void 0===s?a:s,c=(t.children,t.domRef),l=void 0===c?{current:null}:c,f=t.className,d=t.onChange,p=t.checked,h=t.value,m=t.disabled,y=(t.textAlign,t.validationStatus,t.inputRef),v=t.rc,g=kc(t,["sx","testId","name","id","children","domRef","className","onChange","checked","value","disabled","textAlign","validationStatus","inputRef","rc"]),b=Lc(l),w=Kc(b),x=rl(m);return vt(dl,{rc:v,domRef:b,testId:o,className:f,sx:k(Th,r),children:[yt("input",Ac(xc({},g),{type:"checkbox","data-testid":"".concat(o,"__input"),id:u,name:a,value:h,checked:p,onChange:d,disabled:m,ref:y,css:k(x,Sh),className:"actualInput"})),yt(dl,{className:"toggleContainer",sx:_h,testId:"".concat(o,"__toggleContainer"),children:yt(dl,{className:"toggleHandle",rc:yt("span",{}),sx:Ch,children:yt(El,{icon:"Tick",variant:w&&!m?"regular":"bold",testId:"".concat(o,"__checkIcon"),sx:Ih,className:"toggleHandle__tickIcon"})})})]})}function Ph(e){var t=e,n=t.children,r=t.checked,i=t.size,o=t.emphasized,a=t.disabled,s=t.id,u=t.inputType,c=void 0===u?"toggle":u,l=t.domRef,f=void 0===l?{current:null}:l,d=t.inputRef,p=void 0===d?{current:null}:d,h=t.onChange,m=t.testId,y=t.defaultChecked,v=t.sx,b=void 0===v?{}:v,w=t.rc,x=kc(t,["children","checked","size","emphasized","disabled","id","inputType","domRef","inputRef","onChange","testId","defaultChecked","sx","rc"]),A=(0,g.useId)(),E=s||A,T=Lc(f),_=Lc(p),S=Jc(T),C=S.width,I=S.height,O={position:"absolute",width:"100%",height:"100%","& .actualInput":{width:"".concat(C,"px"),height:"".concat(I,"px"),zIndex:1},"& .toggleContainer, & .checkContainer, & .radioContainer":{position:"absolute",right:"base.spacing.x4",top:"50%",translate:"0 -50%"}},P=Ac(xc({},x),{id:E,testId:"".concat(m,"__biomeInput"),onChange:h,defaultChecked:y,checked:r,disabled:a,sx:O,inputRef:_});return yt(ft,{children:function(e){var t=e.cx;return vt(dl,{rc:w,sx:k({position:"relative",d:"flex",width:"100%","&:has(.actualInput:checked) .menuItem":xc({},Rp["&.selected"]),"&:not(.disabled):has(.actualInput:checked):hover .menuItem":xc({},Rp["&.selected:not(article):hover"]),"&:not(.disabled):hover .menuItem":xc({},Rp["&:not(article):hover"])},b),testId:m,className:t({disabled:a}),domRef:T,children:["toggle"===c&&yt(Oh,xc({},P)),"checkbox"===c&&yt(wp,xc({},P)),"radio"===c&&yt(Eh,xc({},P)),yt(bh,{className:"menuItem",size:i,emphasized:o,testId:"".concat(m,"__menuItem"),sx:{pr:"toggle"===c?"base.spacing.x15":"base.spacing.x9"},children:g.Children.map(n,(function(e){return jc(e,ih)?(0,g.cloneElement)(e,{htmlFor:E,rc:yt("label",{})}):e}))})]})}})}Oh.displayName="Toggle",Ph.displayName="InputBar",Ph.Icon=nh,Ph.FramedIcon=Kp,Ph.FramedImage=eh,Ph.FramedLogo=th,Ph.Label=ih,Ph.Caption=Wp;var Rh={minWidth:"280px",maxHeight:"300px",bg:"base.color.neutral.600",position:"relative",p:"base.spacing.x1",overflowY:"auto",borderRadius:"base.borderRadius.x8"};function Mh(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=t.size,a=void 0===o?"xSmall":o,s=t.emphasized,u=kc(t,["children","sx","size","emphasized"]);return yt(dl,Ac(xc({},u),{sx:k(Rh,xc({},s?{boxShadow:"base.shadow.500"}:{}),i),children:g.Children.map(n,(function(e){return jc(e,bh)||jc(e,Ph)?yt(Gc,{size:e.props.size?e.props.size:a,children:e}):jc(e,mp)?yt(Gc,{size:e.props.size?e.props.size:a,sx:{my:"base.spacing.x1"},children:e}):null}))}))}function Bh(e){var t=e,n=t.children,r=t.domRef,i=t.testId,o=t.icon,a=void 0===o?"MoreVertical":o,s=t.size,u=void 0===s?"medium":s,c=t.variant,l=void 0===c?"tertiary":c,f=t.onClick,d=kc(t,["children","domRef","testId","icon","size","variant","onClick"]),p=(0,g.useState)(!1),h=(0,y.Z)(p,2),m=h[0],v=h[1],b=rp((function(e){return e})),w=b.state;return(0,g.useEffect)((function(){return v(!1)}),[w]),vt(cp,{position:{x:"right",y:"below"},visible:m,onOutsideClick:function(){return v(!1)},domRef:r,children:[yt(cp.Target,{children:yt(Ef,Ac(xc({},d),{testId:i,icon:a,size:u,variant:l,onClick:function(e){e.preventDefault(),e.stopPropagation(),v(!m),null==f||f(e)}}))}),yt(cp.Content,{children:yt(Mh,{testId:"".concat(i,"__overflowPopoverMenu"),emphasized:!0,children:g.Children.map(n,(function(e){return(0,g.isValidElement)(e)&&(Boolean(e.props.onClick)||Boolean(e.props.rc))?yt(Gc,{onClick:function(e){e.stopPropagation(),v(!1)},children:e}):e}))})})]})}function Nh(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=(t.size,kc(t,["children","sx","size"]));return yt(Bh,Ac(xc({},o),{size:Zl,sx:k({flexShrink:0},i),children:n}))}Mh.displayName="VerticalMenu",Mh.Item=bh,Mh.Divider=mp,Nh.displayName="AppHeaderBar.OverflowPopoverMenu";var Fh=["small","medium"],Dh="medium";function Lh(e){var t=e,n=t.size,r=void 0===n?Dh:n,i=t.sx,o=void 0===i?{}:i,a=t.children,s=kc(t,["size","sx","children"]);return yt(dl,Ac(xc({},s),{sx:k({display:"flex",gap:"base.spacing.x2"},o),children:g.Children.map(a,(function(e){return jc(e,kf)||jc(e,Ef)?yt(Gc,{variant:(0,g.isValidElement)(e)&&e.props.variant?e.props.variant:"tertiary",size:(0,g.isValidElement)(e)&&e.props.size?e.props.size:r,children:e}):jc(e,id)?yt(Gc,{variant:"secondary",children:e}):null}))}))}Lh.displayName="AppHeaderBar.RightHandButtons";var zh={width:"100%",padding:"base.spacing.x2"},jh={display:"flex",justifyContent:"flex-start",alignItems:"center",borderRadius:"base.borderRadius.x10",position:"relative",gap:"base.spacing.x6"};function Uh(e){return"small"===e.size?{height:"80px"}:{height:"96px"}}function Zh(e){var t=e.size,n=e.themeProps;return"small"===t?{padding:n.base.spacing.x2,minHeight:"64px"}:{paddingX:n.base.spacing.x6,paddingY:n.base.spacing.x4,minHeight:"80px"}}function qh(e){var t=e.size,n=e.theme;return nl("small"===t?{themeProps:n,size:"xSmall",weight:"bold"}:{themeProps:n,size:"medium",weight:"bold"})}function Hh(e){var t=e.size,n=e.theme;return"small"===t?{height:n.base.spacing.x8}:{height:n.base.spacing.x12}}function Vh(e){var t=e,n=t.size,r=void 0===n?Dh:n,i=t.sx,o=void 0===i?{}:i,a=t.contentAlign,s=t.rc,u=kc(t,["size","sx","contentAlign","rc"]),c=("onClick"in u?u:{onClick:null}).onClick,f=xc({onClick:c,rc:s},u),d=Ye(),p=il(r,Dh,Fh),h=k({color:"base.color.text.primary",order:2},Cf(1),"left"===a?{flex:1}:{position:"absolute",left:0,w:"100%",px:"base.spacing.x5",textAlign:"center"},qh({theme:d,size:p}),function(e){var t=e.theme,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),qh({size:e,theme:t}))}))))}({theme:d,size:r}),o);return ml(c,s,!1)?yt(pl,Ac(xc({},f),{sx:h})):yl(c,s,!1)?yt(dl,Ac(xc({},u),{rc:s||yt("h1",{}),sx:h})):null}function Gh(e){var t=e,n=t.size,r=void 0===n?Dh:n,i=t.logo,o=t.sx,a=void 0===o?{}:o,s=t.contentAlign,u=t.rc,c=t.testId,f=t.domRef,d=kc(t,["size","logo","sx","contentAlign","rc","testId","domRef"]),p="onClick"in d?d:{onClick:null},h=p.onClick,y=kc(p,["onClick"]),v=xc({onClick:h,rc:u,domRef:f},y),g=Mc(),b=il(r,Dh,Fh),w=function(e){var t=e.theme,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),Hh({size:e,theme:t}))}))))}({theme:g,size:r}),x=k({order:2},"left"===s?{pl:"base.spacing.x1",width:"auto",marginRight:"auto"}:{position:"absolute",left:0,width:"100%",textAlign:"center"},Hh({theme:g,size:b}),w,a),A=yt(xf,Ac(xc({},y),{logo:i,sx:x}));return ml(h,u,!1)?yt(pl,Ac(xc({},v),{sx:x,testId:c,children:A})):yt(Gc,{sx:x,testId:c,domRef:f,children:A})}function Wh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.rc,o=void 0===i?yt("header",{}):i,a=t.variant,s=void 0===a?"dim":a,u=t.size,c=void 0===u?Dh:u,f=t.children,d=t.emphasized,p=t.contentAlign,h=void 0===p?"center":p,y=t.testId,v=kc(t,["sx","rc","variant","size","children","emphasized","contentAlign","testId"]),b=Mc(),w=Zc(f,od),x=Zc(f,ad),A=Zc(f,Vh),E=Zc(f,Gh),T=Zc(f,Lh),_=Zc(f,Nh),S=il(c,Dh,Fh),C=function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Zh({themeProps:n,size:e}))}))))}({themeProps:b,size:c}),I=(0,g.useMemo)((function(){return k(zh,{bg:"dim"===s?"base.color.neutral.1000":"transparent"===s?"transparent":"bright"===s?"base.color.neutral.700":"base.color.neutral.1000"},Uh({size:S}),function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Uh({size:e}))}))))}({size:c,themeProps:b}),r)}),[S,r,b,s,c]),O=k(jh,xc({},d?{bg:"base.color.neutral.800"}:{}),Zh({themeProps:b,size:S}),C);return yt(dl,Ac(xc({},v),{rc:o,sx:I,testId:y,children:vt(dl,{sx:O,testId:"".concat(y,"__innerContainer"),children:["center"===h&&yt("span",{css:{flex:1,order:2}}),E?yt(Gc,{testId:"".concat(y,"__innerContainer__titleLogo"),size:c,contentAlign:h,children:E}):A?yt(Gc,{testId:"".concat(y,"__innerContainer__title"),contentAlign:h,size:c,children:A}):null,w?yt(Gc,{testId:"".concat(y,"__innerContainer__leftButtCon"),size:c,children:w}):x?yt(Gc,{testId:"".concat(y,"__innerContainer__leftLogo"),size:c,children:x}):null,vt(dl,{sx:{d:"flex",gap:"base.spacing.x6",alignItems:"center",order:3},children:[T||null,_?yt(Gc,{testId:"".concat(y,"__innerContainer__title"),size:c,children:_}):null]})]})}))}Vh.displayName="AppHeaderBar.Title",Gh.displayName="AppHeaderBar.TitleLogo",Wh.displayName="AppHeaderBar",Wh.LeftButtCon=od,Wh.LeftLogo=ad,Wh.Title=Vh,Wh.TitleLogo=Gh,Wh.RightHandButtons=Lh,Wh.OverflowPopoverMenu=Nh;var Kh={d:"flex",flexWrap:"wrap",justifyContent:"flex-start",alignItems:"center",width:"100%",minHeight:"base.spacing.x16",p:"base.spacing.x4",columnGap:"base.spacing.x2",rowGap:"base.spacing.x4",paddingLeft:"base.spacing.x14",position:"relative",boxShadow:"base.shadow.300",brad:"base.borderRadius.x6"},Jh={display:"flex",gap:"base.spacing.x2",ml:"auto"},Xh=function(e,t){return"lightOnDark"===t.base.colorMode&&!("standard"===e)},Yh="standard";function $h(e){var t=e,n=t.children,r=t.size,i=void 0===r?"medium":r,o=t.weight,a=t.variant,s=void 0===a?Yh:a,u=t.sx,c=void 0===u?{}:u,l=kc(t,["children","size","weight","variant","sx"]),f=Mc(),d=Xh(s,f),p=k({color:d?"base.color.text.inverse.primary":"base.color.text.primary"},c);return yt(zf,Ac(xc({},l),{size:i,weight:o,sx:p,children:n}))}function Qh(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.variant,o=void 0===i?Yh:i,a=t.iconVariant,s=kc(t,["sx","variant","iconVariant"]),u=Ye(),c=Xh(o,u);return yt(El,Ac(xc({},s),{variant:a,sx:k({position:"absolute",top:"base.spacing.x4",left:"base.spacing.x4",width:"base.icon.size.300",fill:c?"base.color.text.inverse.primary":"base.color.text.primary"},r)}))}function em(e){var t=e,n=t.variant,r=void 0===n?"tertiary":n,i=t.bannerVariant,o=void 0===i?Yh:i,a=kc(t,["variant","bannerVariant"]),s=Mc(),u=Xh(o,s);return yt(Ef,Ac(xc({},a),{size:"small",variant:u?"".concat(r,"/inverse"):r}))}function tm(e){var t=e,n=t.variant,r=void 0===n?"tertiary":n,i=t.bannerVariant,o=void 0===i?Yh:i,a=kc(t,["variant","bannerVariant"]),s=Mc(),u=Xh(o,s);return yt(kf,Ac(xc({},a),{size:"small",variant:u?"".concat(r,"/inverse"):r}))}function nm(e){var t=e,n=t.children,r=t.size,i=void 0===r?"medium":r,o=t.weight,a=void 0===o?"bold":o,s=t.variant,u=void 0===s?Yh:s,c=t.sx,l=void 0===c?{}:c,f=kc(t,["children","size","weight","variant","sx"]),d=Mc(),p=Xh(u,d),h=k({color:p?"base.color.text.inverse.primary":"base.color.text.primary"},l);return yt(zf,Ac(xc({},f),{size:i,weight:a,sx:h,children:n}))}function rm(e){var t=e,n=t.children,r=t.variant,i=void 0===r?Yh:r,o=t.sx,a=void 0===o?{}:o,s=t.testId,u=void 0===s?"banner":s,c=t.forceMultilineText,l=t.domRef,f=void 0===l?{current:null}:l,d=kc(t,["children","variant","sx","testId","forceMultilineText","domRef"]),p=Lc(f),h=Zc(n,Qh),m=Zc(n,nm),y=Zc(n,$h),v=(0,g.useMemo)((function(){switch(i){case"fatal":return yt(Qh,{icon:"CloseWithCircle",iconVariant:"bold"});case"attention":case"destructive":return yt(Qh,{icon:"Alert",iconVariant:"bold"});case"guidance":return yt(Qh,{icon:"InformationCircle",iconVariant:"bold"});case"success":return yt(Qh,{icon:"TickWithCircle",iconVariant:"bold"});default:return h||yt(Qh,{icon:"InformationCircle",iconVariant:"bold"})}}),[h,i]),b=k(Kh,function(e){switch(e){case"success":case"fatal":case"guidance":case"attention":case"destructive":return{bg:"base.color.status.".concat(e,".dim")};default:return{bg:"base.color.neutral.500"}}}(i),a),w={top:Jc(p).height>64?"16px":"19px"};return vt(dl,Ac(xc({},d),{sx:b,testId:u,domRef:p,children:[yt(Gc,{variant:i,testId:v.props.testId?v.props.testId:"".concat(u,"__icon"),sx:v.props.sx?k(w,v.props.sx):w,children:v}),vt(dl,{sx:xc({d:"flex"},c?{flexDirection:"column"}:{flexWrap:"wrap",columnGap:"base.spacing.x2"}),className:"innerTextContainer",children:[yt(Gc,{variant:i,testId:"".concat(u,"__title"),children:m}),yt(Gc,{variant:i,testId:"".concat(u,"__caption"),children:y})]}),yt(dl,{className:"rightButtonsContainer",testId:"".concat(u,"__rightHandButtons"),sx:Jh,children:g.Children.map(n,(function(e){var t=jc(e,em);return jc(e,tm)||t?yt(Gc,{bannerVariant:i,testId:"".concat(u,t?"__rightButtCon":"__rightButton"),children:e}):null}))})]}))}function im(e){var t=e,n=t.responsiveSizes,r=void 0===n?[128,256,450,512,720,860,1024]:n,i=(t.size,t.elevated,t.sx),o=void 0===i?{}:i,a=kc(t,["responsiveSizes","size","elevated","sx"]);return yt($p,Ac(xc({},a),{rc:yt("span",{}),responsiveSizes:r,sx:k({bg:"base.color.neutral.900",objectFit:"cover",objectPosition:"center"},o)}))}function om(e){var t=e,n=t.size,r=void 0===n?"medium":n,i=t.weight,o=void 0===i?"regular":i,a=t.sx,s=void 0===a?{}:a,u=t.rc,c=void 0===u?yt("span",{}):u,l=kc(t,["size","weight","sx","rc"]);return yt(zf,Ac(xc({},l),{sx:k(xc({color:"base.color.text.secondary",textAlign:"left"},Cf(3)),s),size:r,weight:o,rc:c}))}$h.displayName="Banner.Caption",Qh.displayName="Banner.Icon",em.displayName="Banner.RightButtCon",tm.displayName="Banner.RightButton",rm.displayName="Banner",rm.Icon=Qh,rm.Title=nm,rm.Caption=$h,rm.RightButton=tm,rm.RightButtCon=em,im.displayName="Card.AssetImage",om.displayName="Card.Caption";var am=["small","medium"],sm="medium",um={display:"flex",flexDirection:"column",alignItems:"stretch",width:"100%",borderRadius:"base.borderRadius.x6",overflow:"hidden",position:"relative",boxShadow:"base.shadow.100",transitionProperty:"box-shadow, translate",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","& .cardAssetImage":{overflow:"hidden"},"& .cardAssetImage__cloudImage":{transitionProperty:"scale",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase"},"&:hover:not(article)":{boxShadow:"base.shadow.300",translate:"0 -8px","& .cardAssetImage__cloudImage":{scale:"1.05"}}},cm={display:"flex",flexDirection:"column",position:"relative"},lm={d:"flex",justifyContent:"center",alignItems:"center",position:"absolute",top:"0px",transform:"translateY(-50%)",bg:"base.color.neutral.900",overflow:"hidden"};function fm(e){var t=e.size,n=e.theme;return"small"===t?el({themeProps:n,mono:!1,size:"medium",weight:"bold"}):nl({themeProps:n,size:"xSmall",weight:"bold"})}function dm(e){var t=e.size,n=e.theme;return"small"===t?{minHeight:"90px",paddingY:n.base.spacing.x5,paddingX:n.base.spacing.x4}:{minHeight:"134px",gap:n.base.spacing.x1,paddingY:n.base.spacing.x8,paddingX:n.base.spacing.x6}}function pm(e){var t=e.size,n=e.theme;return"small"===t?{width:n.base.icon.size[400],height:n.base.icon.size[400],borderRadius:"base.borderRadius.x2"}:{width:n.base.icon.size[500],height:n.base.icon.size[500],borderRadius:"base.borderRadius.x4"}}function hm(e){var t=e.theme,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),pm({size:e,theme:t}))}))))}function mm(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.testId,o=t.size,a=void 0===o?sm:o,s=t.responsiveSizes,u=void 0===s?[32,64,128,256]:s,c=kc(t,["sx","testId","size","responsiveSizes"]),l=Mc(),f=il(a,sm,am),d=hm({theme:l,size:a}),p=k(lm,pm({theme:l,size:f}),d,r);return yt($f,Ac(xc({},c),{responsiveSizes:u,testId:i,sx:p}))}function ym(e){var t=e,n=t.logo,r=t.sx,i=void 0===r?{}:r,o=t.testId,a=t.size,s=void 0===a?sm:a,u=kc(t,["logo","sx","testId","size"]),c=Mc(),l=il(s,sm,am),f=hm({theme:c,size:s}),d=k(lm,pm({theme:c,size:l}),f,i);return yt(dl,Ac(xc({},u),{testId:o,sx:d,rc:yt("span",{}),children:yt(xf,{logo:n,sx:k({width:"80%"},i)})}))}function vm(e){var t=e,n=t.size,r=void 0===n?sm:n,i=t.children,o=t.sx,a=void 0===o?{}:o,s=t.rc,u=void 0===s?yt("span",{}):s,c=kc(t,["size","children","sx","rc"]),f=Mc(),d=il(r,sm,am),p=function(e){var t=e.theme,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),fm({size:e,theme:t}))}))))}({theme:f,size:r}),h=k(xc({textAlign:"left",color:"base.color.text.primary",flexShrink:0},Cf(2)),fm({theme:f,size:d}),p,a);return yt(dl,Ac(xc({},c),{sx:h,rc:u,children:i}))}function gm(e){var t=e,n=t.size,r=void 0===n?sm:n,i=t.className,o=t.testId,a=t.domRef,s=t.rc,u=t.sx,c=void 0===u?{}:u,f=t.children,d=kc(t,["size","className","testId","domRef","rc","sx","children"]),p=("onClick"in d?d:Ac(xc({},d),{onClick:null})).onClick,h=Mc(),y=xc(xc({onClick:p,domRef:a},s?{rc:s}:{}),d),v=Zc(f,im),g=Zc(f,vm),b=Zc(f,om),w=Zc(f,ym),x=Zc(f,mm),A=il(r,sm,am),E=function(e){var t=e.theme,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),dm({size:e,theme:t}))}))))}({theme:h,size:r}),T=k(cm,dm({theme:h,size:A}),E),_=vt(mt,{children:[v?yt(Gc,{size:r,className:"cardAssetImage",children:v}):null,vt(dl,{sx:T,rc:yt("span",{}),className:"textContainer",testId:"".concat(o,"__textContainer"),children:[x?yt(Gc,{size:r,children:x}):w?yt(Gc,{size:r,children:w}):null,yt(Gc,{size:r,children:g}),b]})]}),S=k(um,{bg:"base.color.neutral.700"},c);return yt(ft,{children:function(e){var t=e.cx;return ml(p,s,!1)?yt(pl,Ac(xc({},y),{testId:o,sx:S,className:t(i),children:_})):yl(p,s,!1)?yt(dl,Ac(xc({},d),{domRef:a,rc:yt("article",{}),testId:o,sx:S,className:t(i),children:_})):null}})}function bm(e){var t=e.visible,n=e.id,r=e.children,i=e.domRef,o=void 0===i?{current:null}:i,a=e.onCloseModal,s=e.showBgOverlay,u=void 0===s||s,c=e.bgOverlaySx,l=void 0===c?{}:c,f=e.outsideClicksClose,d=void 0===f||f,p=e.position,h=void 0===p?{x:"center",y:"center"}:p,m=e.testId,y=void 0===m?"modal":m,v=e.ContentSubcomponent,b=void 0===v?oh:v,w=Lc(o),x=(0,g.useId)(),A=n||x,k=Zc(r,sh),E=Zc(r,b),T=gd((function(e){return e.modalList})),_=T.state,S=T.dispatchAction;(0,g.useEffect)((function(){S({type:dd,payload:{id:A,content:E?(0,g.cloneElement)(E,{id:A}):null}})}),[E,A,S]);var C=(0,g.useCallback)((function(){S({type:ld,payload:{id:A}}),null==a||a()}),[S,a,A]),I=void 0!==t,O=(0,g.useCallback)((function(){S({type:fd,payload:{id:A,content:E?(0,g.cloneElement)(E,{id:A}):null,targetRef:w,showBgOverlay:u,isControlled:I,onCloseModal:a,outsideClicksClose:d,bgOverlaySx:l,position:h,testId:y}})}),[S,A,l,E,w,u,I,d,a,h,y]);_c((function(){t?O():_.find((function(e){return e.id===A}))&&C()}),[t]);var P=(0,g.useMemo)((function(){return I?{}:{onClick:function(){_.find((function(e){return e.id===A}))?C():O()}}}),[_,I,A,C,O]);return k?yt(Gc,Ac(xc({},P),{id:A,domRef:w,testId:y,children:k})):null}function wm(e){var t=e,n=t.icon,r=t.variant,i=void 0===r?"regular":r,o=t.iconVariant,a=void 0===o?"regular":o,s=t.colorVariant,u=void 0===s?"guidance":s,c=t.outerShape,l=void 0===c?"circle":c,f=t.testId,d=t.sx,p=void 0===d?{}:d,h=kc(t,["icon","variant","iconVariant","colorVariant","outerShape","testId","sx"]),m=Mc(),y=(0,g.useMemo)((function(){return function(e,t,n){return e&&"regular"===n?"base.color.translucent.standard.400":e&&"bold"===n?"base.color.status.".concat(t,".bright"):"regular"===n?"base.color.translucent.standard.800":"base.color.status.".concat(t,".bright")}("lightOnDark"===m.base.colorMode,u,i)}),[m,u,i]),v=(0,g.useMemo)((function(){return function(e,t,n){return e&&"regular"===n?"base.color.status.".concat(t,".bright"):e&&"bold"===n?"base.color.text.inverse.primary":"regular"===n?"base.color.status.".concat(t,".bright"):"base.color.text.primary"}("lightOnDark"===m.base.colorMode,u,i)}),[m,u,i]),b=(0,g.useMemo)((function(){return k({w:"base.icon.size.600",d:"flex",alignItems:"center",justifyContent:"center",position:"relative","&::before":{content:'""',w:"100%",pb:"100%"}},p)}),[p]),w=(0,g.useMemo)((function(){return{position:"absolute",top:"0",left:"0",w:"100%",fill:y}}),[y]),x=(0,g.useMemo)((function(){return{w:"58.33%",position:"absolute",top:"50%",left:"50%",translate:"-50% -50%",fill:v}}),[v]);return vt(dl,Ac(xc({},h),{sx:b,testId:f,children:[yt(xl,{sx:w,"data-outer-shape":l,testId:"".concat(f,"__outerShape"),children:yt("path","circle"===l?{d:"M12 1C5.928 1 1 5.928 1 12C1 18.072 5.928 23 12 23C18.072 23 23 18.072 23 12C23 5.928 18.072 1 12 1Z"}:{d:"M7.65076 1.5L16.3492 1.5L22.5 7.65076V16.3492L16.3492 22.5H7.65076L1.5 16.3492L1.5 7.65076L7.65076 1.5Z"})}),yt(El,{icon:n,sx:x,variant:a,testId:"".concat(f,"__icon")})]}))}mm.displayName="Card.FramedImage",ym.displayName="Card.FramedLogo",vm.displayName="Card.Title",gm.displayName="Card",gm.Title=vm,gm.Caption=om,gm.FramedLogo=ym,gm.FramedImage=mm,gm.AssetImage=im,bm.displayName="Modal",bm.Content=oh,bm.Target=sh;var xm={d:"flex",flexDirection:"column"};function Am(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=t.testId,a=t.textAlign,s=void 0===a?"center":a,u=kc(t,["children","sx","testId","textAlign"]),c=Zc(n,$p),l=Zc(n,dl),f=Zc(n,wm),d=Wc(n,kf),p=Zc(n,Vf),h=Wc(n,zf);return vt(oh,Ac(xc({},u),{sx:k(sl(i,"320px"),Ac(xc({},xm),{bg:"base.color.neutral.500",boxShadow:"base.shadow.500",brad:"base.borderRadius.x8",p:"0px"}),i),testId:o,children:[c?yt(Gc,{testId:"".concat(o,"__aspectRaioImage"),children:c}):l?yt(Gc,{testId:"".concat(o,"__animationBox"),sx:{w:"100%",height:"250px",flexShrink:0},children:l}):f?yt(dl,{sx:{d:"flex",alignItems:"center",justifyContent:"center"===s?"center":"flex-start",pt:"base.spacing.x10",ml:"center"===s?"unset":"base.spacing.x6"},testId:"".concat(o,"__duoConContainer"),children:yt(Gc,{sx:{w:"72px"},testId:"".concat(o,"__duoConContainer__duoCon"),children:f})}):null,vt(dl,{sx:Ac(xc({},xm),{px:"base.spacing.x6",pt:"base.spacing.x8",pb:"base.spacing.x10",textAlign:s}),children:[p&&yt(Gc,{size:"small",sx:{textAlign:s},testId:"".concat(o,"__title"),children:p}),h&&yt(dl,{sx:Ac(xc({},xm),{gap:"base.spacing.x3",pt:"base.spacing.x2",textAlign:s}),testId:"".concat(o,"__captions"),children:g.Children.map(h,(function(e){return yt(Gc,{size:"small",sx:{textAlign:s},testId:"".concat(o,"__captions__caption"),children:e})}))}),d&&yt(dl,{testId:"".concat(o,"__buttons"),sx:Ac(xc({},xm),{gap:"base.spacing.x2",mt:"base.spacing.x8"}),children:g.Children.map(d,(function(e){return yt(Gc,{testId:"".concat(o,"__buttons__button"),children:e})}))})]})]}))}function km(e){var t=e,n=t.bgOverlaySx,r=void 0===n?{}:n,i=t.testId,o=void 0===i?"ConfirmationDialog":i,a=kc(t,["bgOverlaySx","testId"]);return yt(bm,Ac(xc({},a),{testId:o,ContentSubcomponent:Am,bgOverlaySx:k({bg:"base.color.translucent.standard.600"},r)}))}function Em(e){var t=e,n=t.size,r=void 0===n?"small":n,i=t.onOptionClick,o=t.children,a=t.optionKey,s=t.selected,u=t.sx,c=t.testId,l=kc(t,["size","onOptionClick","children","optionKey","selected","sx","testId"]),f=(0,g.useCallback)((function(){return null==i?void 0:i(o,a)}),[o,i,a]);return yt(bh,Ac(xc({},l),{rc:yt("button",{}),size:r,onClick:f,selected:s,sx:u,testId:c,children:o}))}Am.displayName="ConfirmationDialog.Content",Am.AnimationBox=dl,Am.AspectRatioImage=$p,Am.DuoCon=wm,Am.Title=Vf,Am.Caption=zf,Am.Button=kf,km.displayName="ConfirmationDialog",km.Target=sh,km.Content=Am,Em.displayName="Option",Em.Label=ih,Em.Caption=Wp,Em.Icon=nh,Em.FramedImage=eh;var Tm="medium",_m="left",Sm=["medium","large"],Cm="216px",Im={position:"relative",minWidth:Cm,flexShrink:0,"& > *":{position:"absolute"}},Om={top:"50%",right:"base.spacing.x2",transform:"translateY(-50%)",d:"flex",alignItems:"center",gap:"base.spacing.x2"},Pm={padding:"0",display:"flex",alignItems:"center",justifyContent:"center","& > svg":{fill:"base.color.text.secondary",transitionProperty:"fill",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase"},"&:hover > svg":{fill:"base.color.text.primary"}},Rm={appearance:"none",width:"100%",height:"100%",border:"none",borderRadius:"base.borderRadius.x4",fontFamily:"base.font.family.body.primary",fontSize:"base.text.body.medium.regular.fontSize",lineHeight:"base.text.body.medium.regular.lineHeight",fontWeight:"base.text.body.medium.regular.fontWeight",color:"base.color.text.primary",background:"base.color.translucent.emphasis.100",transitionProperty:"box-shadow, background",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","&:not(:disabled):hover":{background:"base.color.translucent.emphasis.200"},"&:not(:disabled):focus":{background:"base.color.translucent.emphasis.300"}},Mm={width:"base.icon.size.300",height:"base.icon.size.300",top:"50%",left:"base.spacing.x2",transform:"translateY(-50%)",position:"absolute",fill:"base.color.brand.1"},Bm={width:"base.icon.size.300",top:"50%",transform:"translateY(-50%)"};function Nm(e){var t,n,r=e.validationStatus,i=e.leftSideContent,o=e.rightHandButtonsWidth,a=e.textAlign,s=e.size,u=e.theme,c=e.hasValue;t=i?"large"===s?u.base.spacing.x11:u.base.spacing.x10:"large"===s?u.base.spacing.x3:u.base.spacing.x2,n=o>0?"calc(".concat(o,"px + ").concat("large"===s?u.base.spacing.x5:u.base.spacing.x4,")"):"large"===s?u.base.spacing.x3:u.base.spacing.x2;var l=u.base.shadow[200],f="0 0 0 rgba(0,0,0,0)";return{paddingLeft:t,paddingRight:n,textAlign:a,background:c?u.base.color.translucent.emphasis[300]:u.base.color.translucent.emphasis[100],boxShadow:"error"===r?"".concat(f,", inset 0 0 0 1px ").concat(u.base.color.status.fatal.bright):c?"".concat(f,", inset 0 0 0 1px ").concat(u.base.color.translucent.standard[500]):"".concat(f,", inset 0 0 0 1px ").concat(u.base.color.translucent.standard[300]),"&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{display:"none"},"&::placeholder":{color:u.base.color.text.secondary},"&:not(:disabled):hover":{background:c?u.base.color.translucent.emphasis[300]:u.base.color.translucent.emphasis[200],boxShadow:"error"===r?"".concat(l,", inset 0 0 0 1px ").concat(u.base.color.status.fatal.bright):"".concat(l,", inset 0 0 0 1px ").concat(u.base.color.translucent.standard[600])},"&:not(:disabled):focus":{outline:"none",background:u.base.color.translucent.emphasis[300],boxShadow:"error"===r?"".concat(l,", inset 0 0 0 2px ").concat(u.base.color.status.fatal.bright):"".concat(l,", inset 0 0 0 2px ").concat(u.base.color.brand[1])}}}var Fm=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Nm}))};function Dm(e){var t=e.size,n=e.theme;return"large"===t?{height:n.base.spacing.x16}:{height:n.base.spacing.x12}}var Lm=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Dm}))};function zm(e){var t=e.size,n=e.theme;return"large"===t?{left:n.base.spacing.x3}:{left:n.base.spacing.x2}}var jm=function(e){return ul({theme:e.theme,size:e.size,renderSxAtSize:zm})};function Um(e){var t=e.size,n=e.theme;return"large"===t?{right:n.base.spacing.x3}:{right:n.base.spacing.x2}}var Zm=function(e){return ul(Ac(xc({},e),{renderSxAtSize:Um}))};function qm(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.className,o=void 0===i?"clearValueButton":i,a=t.rc,s=kc(t,["sx","className","rc"]),u=Mc().base;return yt(pl,Ac(xc({},s),{rc:a||yt(ec.button,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{ease:u.motion.normal.fast.jsEase,duration:u.motion.normal.fast.jsDuration}}),className:o,sx:k(Pm,r),children:yt(El,{icon:"CloseWithCircle",variant:"bold",sx:{width:"base.icon.size.200"}})}))}function Hm(e){var t=e,n=t.children,r=(t.currentInputValue,t.sx),i=void 0===r?{}:r,o=kc(t,["children","currentInputValue","sx"]);return yt(kf,Ac(xc({},o),{variant:"tertiary",size:"small",sx:i,children:n}))}function Vm(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?Tm:i,a=kc(t,["sx","size"]),s=Mc(),u=il(o,Tm,Sm),c=k(Bm,zm({size:u,theme:s}),jm({size:o,theme:s}),r);return yt(Qp,Ac(xc({},a),{sx:c}))}function Gm(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.iconVariant,o=t.size,a=void 0===o?Tm:o,s=kc(t,["sx","iconVariant","size"]),u=Mc(),c=il(a,Tm,Sm),l=k(Mm,zm({size:c,theme:u}),jm({size:a,theme:u}),r);return yt(El,Ac(xc({},s),{variant:i,sx:l}))}function Wm(e){var t=e,n=t.domRef,r=t.inputRef,i=void 0===r?{current:null}:r,o=t.rc,a=t.placeholder,s=t.sx,u=void 0===s?{}:s,c=t.testId,l=void 0===c?"TextInput":c,f=t.name,d=t.id,p=void 0===d?f:d,h=t.children,m=t.className,v=t.validationStatus,b=t.onChange,w=t.onClearValue,x=t.value,A=t.hideClearValueButton,E=t.textAlign,T=void 0===E?_m:E,_=t.defaultValue,S=void 0===_?"":_,C=t.sizeVariant,I=void 0===C?Tm:C,O=t.disabled,P=kc(t,["domRef","inputRef","rc","placeholder","sx","testId","name","id","children","className","validationStatus","onChange","onClearValue","value","hideClearValueButton","textAlign","defaultValue","sizeVariant","disabled"]),R=Lc(i),M=(0,g.useState)("number"==typeof x?x.toString():"string"==typeof x?x:S),B=(0,y.Z)(M,2),N=B[0],F=B[1],D=Zc(h,Hm),L=Zc(h,Gm),z=Zc(h,Vm),j=(0,g.useRef)(null),U=Jc(j,30).width,Z=(0,g.useCallback)((function(){return void 0!==x?null==w?void 0:w():(R.current&&(R.current.value="",R.current.focus()),null==b||b({type:"change",target:null==R?void 0:R.current}),F(""),null==w||w(),!1)}),[R,b,x,w,F]),q=(0,g.useCallback)((function(e){F(e.target.value),null==b||b(e)}),[F,b]),H=Mc(),V=il(I,Tm,Sm),G=k(Im,Dm({size:V,theme:H}),Lm({size:I,theme:H}),u),W=null!=x?x:N,K=Bc(k(Rm,Nm({theme:H,validationStatus:v,size:V,leftSideContent:null!=z?z:L,rightHandButtonsWidth:U,textAlign:T,hasValue:Boolean(W)}),Fm({theme:H,validationStatus:v,size:I,leftSideContent:null!=z?z:L,rightHandButtonsWidth:U,textAlign:T,hasValue:Boolean(W)}))),J=k(Om,Um({size:V,theme:H}),Zm({size:I,theme:H}));return yt(ft,{children:function(e){var t,r=e.cx;return vt(dl,{rc:o,domRef:n,className:r(m,{disabled:O}),testId:l,sx:G,"data-validation-status":v,children:[yt("input",Ac(xc({},P),{disabled:O,name:f,ref:R,"data-testid":"".concat(l,"__input"),onChange:q,value:W,id:p,placeholder:a,css:K})),z?yt(Gc,{size:I,children:z}):L?yt(Gc,{size:I,children:L}):null,vt(dl,{sx:J,testId:"".concat(l,"__rightButtonsContainer"),domRef:j,children:[yt(zt,{children:W&&!A&&yt(qm,{disabled:O,onClick:Z,testId:"".concat(l,"__rightButtonsContainer__clearValueButton")})}),D&&yt(Gc,{disabled:O,currentInputValue:W,testId:null!=(t=D.props.testId)?t:"".concat(l,"__rightButtonsContainer__rightButton"),children:D})]})]})}})}qm.displayName="ClearValueButton",Hm.displayName="TextInput.Button",Vm.displayName="TextInput.FramedImage",Gm.displayName="TextInput.Icon",Wm.displayName="TextInput",Wm.Button=Hm,Wm.Icon=Gm,Wm.FramedImage=Vm;var Km=Tm,Jm=Sm;function Xm(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?Km:i,a=kc(t,["sx","size"]),s=Mc(),u=il(o,Km,Jm),c=k(Bm,zm({size:u,theme:s}),jm({size:o,theme:s}),r);return yt(Qp,Ac(xc({},a),{sx:c}))}function Ym(e){var t=e,n=t.size,r=void 0===n?Km:n,i=t.sx,o=void 0===i?{}:i,a=t.iconVariant,s=kc(t,["size","sx","iconVariant"]),u=Mc(),c=il(r,Km,Jm),l=k(Mm,zm({size:c,theme:u}),jm({size:r,theme:u}),o);return yt(El,Ac(xc({},s),{variant:a,sx:l}))}Xm.displayName="Select.DefaultFramedImage",Ym.displayName="Select.DefaultIcon";var $m={w:"base.icon.size.250",stroke:"base.color.brand.1",strokeWidth:2.75,fill:"transparent"},Qm=function(e){var t=e.textAlign;return{position:"relative",display:"flex",alignItems:"center",width:"auto",justifyContent:"left"===t?"flex-start":"flex-end",paddingRight:"right"===t?"base.spacing.x10":"base.spacing.x1",pointerEvents:e.disabled?"none":"auto"}};function ey(e,t){return void 0!==e&&Array.isArray(t)?t.find((function(t){return t.props.optionKey===e})):null}var ty=function(e){return"No <Option> found for selectedOption: ".concat(e)};function ny(e){var t=e,n=t.children,r=t.validationStatus,i=t.defaultLabel,o=void 0===i?"Select an option":i,a=t.sx,s=void 0===a?{}:a,u=t.popoverContainerSx,c=void 0===u?{}:u,l=t.onSelectChange,f=t.selectedOption,d=t.domRef,p=void 0===d?{current:null}:d,h=t.testId,m=void 0===h?"Select":h,v=t.id,b=t.size,w=void 0===b?Km:b,x=t.textAlign,A=void 0===x?_m:x,T=t.targetClickOveride,_=t.disabled,S=kc(t,["children","validationStatus","defaultLabel","sx","popoverContainerSx","onSelectChange","selectedOption","domRef","testId","id","size","textAlign","targetClickOveride","disabled"]),C=Mc(),I=(0,g.useState)(null),O=(0,y.Z)(I,2),P=O[0],R=O[1],M=Lc(p),B=(0,g.useState)(!1),N=(0,y.Z)(B,2),F=N[0],D=N[1],L=Wc(n,Em),z=Zc(n,Ym),j=Zc(n,Xm),U=Jc(M,30),Z=(0,g.useId)(),q=v||Z,H=rp((function(e){return e})),V=H.state.width,G=(0,g.useMemo)((function(){return Uc(P,Em.FramedImage)}),[P]),W=(0,g.useMemo)((function(){return Uc(P,Em.Icon)}),[P]),K=(0,g.useMemo)((function(){return Uc(P,Em.Label)}),[P]),J=(0,g.useMemo)((function(){if(null===f)return null;var e=ey(f,L);if(e&&(null==e?void 0:e.props.children))return Uc(e.props.children,Em.FramedImage);if(void 0!==f)throw new Error(ty(f));return!1}),[L,f]),X=(0,g.useMemo)((function(){if(null===f)return null;var e=ey(f,L);if(e&&(null==e?void 0:e.props.children))return Uc(e.props.children,Em.Icon);if(void 0!==f)throw new Error(ty(f));return!1}),[L,f]),Y=(0,g.useMemo)((function(){if(null===f)return null;var e=ey(f,L);if(e&&(null==e?void 0:e.props.children))return Uc(e.props.children,Em.Label);if(void 0!==f)throw new Error(ty(f));return!1}),[L,f]),$=(0,g.useMemo)((function(){return il(w,Tm,Sm)}),[w]),Q=(0,g.useMemo)((function(){return z||j||X||J||W||G}),[J,X,j,z,G,W]),ee=(0,g.useMemo)((function(){return k(Im,Rm,Dm({size:$,theme:C}),Lm({size:w,theme:C}),Nm({validationStatus:r,leftSideContent:Q,rightHandButtonsWidth:0,textAlign:A,size:$,theme:C,hasValue:Boolean(K||Y)}),Fm({theme:C,size:w,validationStatus:r,leftSideContent:Q,rightHandButtonsWidth:0,textAlign:A,hasValue:Boolean(K||Y)}),Qm({textAlign:A,disabled:_}),s)}),[Q,w,$,s,A,C,r,_,K,Y]),te=(0,g.useMemo)((function(){return k(Mm,{mr:"0"},zm({size:$,theme:C}),jm({size:w,theme:C}))}),[w,$,C]),ne=(0,g.useMemo)((function(){return k($m,Um({size:$,theme:C}),Zm({size:w,theme:C}))}),[w,$,C]);return _c((function(){D(!1)}),[V,D]),(0,g.useEffect)((function(){null===f&&P&&R(null)}),[f,P]),vt(cp,{domRef:M,position:{x:A,y:"below"},visible:F,id:q,onOutsideClick:function(){return D(!1)},children:[yt(cp.Target,{children:vt(pl,Ac(xc({},S),{disabled:_,testId:"".concat(m,"__target"),sx:ee,onClick:function(e){T?null==T||T(e):D(!F)},children:[vt(mt,null!=f?{children:[J?yt(Gc,{testId:"".concat(m,"__target__controlledFramedImage"),sx:te,children:J}):X?yt(Gc,{testId:"".concat(m,"__target__controlledIcon"),sx:te,children:X}):null,yt(Gc,{testId:"".concat(m,"__target__controlledLabel"),size:"small",children:Y})]}:P?{children:[G?yt(Gc,{testId:"".concat(m,"__target__selectedFramedImage"),sx:te,children:G}):W?yt(Gc,{testId:"".concat(m,"__target__selectedIcon"),sx:te,children:W}):null,yt(Gc,{testId:"".concat(m,"__target__selectedLabel"),size:"small",children:K})]}:{children:[j?yt(Gc,{size:j.props.size||w,testId:"".concat(m,"__target__defaultFramedImage"),children:j}):z?yt(Gc,{size:z.props.size||w,testId:"".concat(m,"__target__defaultIcon"),children:z}):null,yt(Gc,{testId:"".concat(m,"__target__defaultLabel"),size:"small",children:o})]}),yt(xl,{className:"chevron",sx:ne,rc:yt(ec.svg,{}),children:yt(ec.path,{initial:"down",variants:{down:{d:"M5 9L12 16L19 9"},up:{d:"M5 16L12 9L19 16"}},animate:F?"up":"down",transition:{ease:E.ue.motion.normal.fast.jsEase,duration:E.ue.motion.normal.fast.jsDuration}})})]}))}),yt(cp.Content,{testId:"".concat(m,"__content"),sx:k(Rh,{w:"".concat(U.width,"px"),boxShadow:"base.shadow.500"},c),children:g.Children.map(L,(function(e){return yt(Gc,{onOptionClick:function(e,t){D(!1),R(e),null==l||l(t)},children:e})}))})]})}ny.displayName="Select",ny.DefaultFramedImage=Xm,ny.DefaultIcon=Ym;var ry="medium",iy="left",oy=["medium","large"],ay={position:"relative",minWidth:Cm,flexShrink:0,borderRadius:"base.borderRadius.x4",py:"base.spacing.x2",transitionProperty:"box-shadow, background",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","&:not(.disabled):hover":{boxShadow:"base.shadow.200"}},sy={appearance:"none",width:"100%",minWidth:"100%",maxWidth:"100%",border:"none",borderRadius:"base.borderRadius.x4",fontFamily:"base.font.family.body.primary",fontSize:"base.text.body.medium.regular.fontSize",lineHeight:"base.text.body.medium.regular.lineHeight",fontWeight:"base.text.body.medium.regular.fontWeight",background:"transparent",padding:"0",color:"base.color.text.primary","&::-webkit-outer-spin-button, &::-webkit-inner-spin-button":{display:"none"},"&::placeholder":{color:"base.color.text.secondary"},"&:not(:disabled):focus":{outline:"none"}};function uy(e){return{textAlign:e.textAlign}}var cy=function(e){return ul(Ac(xc({},e),{renderSxAtSize:uy}))},ly={padding:"0",display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",right:"base.spacing.x2",top:"base.spacing.x3"};function fy(e){var t=e.validationStatus,n=e.size,r=e.theme,i=e.hasValue,o="large"===n?r.base.spacing.x3:r.base.spacing.x2,a=o,s="calc(".concat(o," * 2 + 16px)"),u=r.base.shadow[200],c="0 0 0 rgba(0,0,0,0)";return{paddingLeft:a,paddingRight:s,background:i?r.base.color.translucent.emphasis[300]:r.base.color.translucent.emphasis[100],boxShadow:"error"===t?"".concat(c,", inset 0 0 0 1px ").concat(r.base.color.status.fatal.bright):i?"".concat(c,", inset 0 0 0 1px ").concat(r.base.color.translucent.standard[500]):"".concat(c,", inset 0 0 0 1px ").concat(r.base.color.translucent.standard[300]),"&:not(.disabled):hover":{background:i?r.base.color.translucent.emphasis[300]:r.base.color.translucent.emphasis[200],boxShadow:"error"===t?"".concat(u,", inset 0 0 0 1px ").concat(r.base.color.status.fatal.bright):"".concat(u,", inset 0 0 0 1px ").concat(r.base.color.translucent.standard[600])},"&:not(.disabled).focused":{outline:"none",background:r.base.color.translucent.emphasis[300],boxShadow:"error"===t?"".concat(u,", inset 0 0 0 2px ").concat(r.base.color.status.fatal.bright):"".concat(u,", inset 0 0 0 2px ").concat(r.base.color.brand[1])}}}var dy=function(e){return ul(Ac(xc({},e),{renderSxAtSize:fy}))};function py(e){var t=e.size,n=e.theme;return{right:"large"===t?n.base.spacing.x3:n.base.spacing.x2}}var hy=function(e){return ul(Ac(xc({},e),{renderSxAtSize:py}))};function my(e){var t=e,n=t.onClick,r=t.domRef,i=t.textAreaRef,o=void 0===i?{current:null}:i,a=t.placeholder,s=t.testId,u=void 0===s?"TextArea":s,c=t.name,l=t.id,f=void 0===l?c:l,d=(t.children,t.className),p=t.validationStatus,h=t.onChange,m=t.onClearValue,v=t.value,b=t.hideClearValueButton,w=t.rc,x=t.defaultValue,A=void 0===x?"":x,E=t.disabled,T=t.rows,_=void 0===T?5:T,S=t.sizeVariant,C=void 0===S?ry:S,I=t.textAlign,O=void 0===I?iy:I,P=t.sx,R=void 0===P?{}:P,M=kc(t,["onClick","domRef","textAreaRef","placeholder","testId","name","id","children","className","validationStatus","onChange","onClearValue","value","hideClearValueButton","rc","defaultValue","disabled","rows","sizeVariant","textAlign","sx"]),B=Lc(o),N=(0,g.useState)("number"==typeof v?v.toString():"string"==typeof v?v:A),F=(0,y.Z)(N,2),D=F[0],L=F[1],z=(0,g.useCallback)((function(){return void 0!==v?null==m?void 0:m():(B.current&&(B.current.value="",B.current.focus()),null==h||h({type:"change",target:null==B?void 0:B.current}),L(""),null==m||m(),!1)}),[B,h,v,m,L]),j=(0,g.useCallback)((function(e){L(e.target.value),null==h||h(e)}),[L,h]),U=null!=v?v:D,Z=Mc(),q=il(C,ry,oy),H=k(ay,fy({validationStatus:p,size:q,theme:Z,hasValue:Boolean(U)}),dy({validationStatus:p,size:C,theme:Z,hasValue:Boolean(U)}),R),V=Bc(k(sy,uy({textAlign:O,theme:Z,size:q}),cy({textAlign:O,theme:Z,size:C}))),G=k(ly,py({theme:Z,size:q}),hy({theme:Z,size:C})),W=(0,g.useState)(!1),K=(0,y.Z)(W,2),J=K[0],X=K[1];return yt(ft,{children:function(e){var t=e.cx;return vt(dl,{rc:w,domRef:r,className:t(d,{disabled:E,focused:J}),testId:u,sx:H,"data-validation-status":p,onClick:function(e){var t;null==n||n(e),null==(t=B.current)||t.focus()},children:[yt("textarea",Ac(xc({},M),{rows:_,disabled:E,name:c,ref:B,"data-testid":"".concat(u,"__textarea"),onChange:j,value:U,id:f,placeholder:a,css:V,onFocus:function(e){var t;X(!0),null==(t=M.onFocus)||t.call(M,e)},onBlur:function(e){var t;X(!1),null==(t=M.onBlur)||t.call(M,e)}})),yt(zt,{children:U&&!b&&yt(qm,{sx:G,disabled:E,onClick:z,testId:"".concat(u,"__clearValueButton")})})]})}})}function yy(e){var t=e,n=t.size,r=void 0===n?"small":n,i=t.children,o=t.testId,a=t.sx,s=void 0===a?{}:a,u=t.textAlign,c=void 0===u?_m:u,l=kc(t,["size","children","testId","sx","textAlign"]);return yt(zf,Ac(xc({},l),{testId:o,rc:yt("span",{}),size:r,sx:k({marginBottom:"base.spacing.x2",color:"base.color.text.secondary",textAlign:c},s),children:i}))}function vy(e){var t=e,n=t.size,r=void 0===n?"small":n,i=t.children,o=t.testId,a=t.sx,s=void 0===a?{}:a,u=t.textAlign,c=void 0===u?_m:u,l=kc(t,["size","children","testId","sx","textAlign"]);return yt(zf,Ac(xc({},l),{testId:o,rc:yt("label",{}),size:r,sx:k({color:"base.color.text.primary",textAlign:c,cursor:"pointer"},s),children:i}))}function gy(e){var t=e,n=t.size,r=void 0===n?"xSmall":n,i=t.children,o=t.validationStatus,a=t.testId,s=t.sx,u=void 0===s?{}:s,c=t.textAlign,l=void 0===c?_m:c,f=kc(t,["size","children","validationStatus","testId","sx","textAlign"]),d=Ac(xc({marginTop:"-1px",order:"right"===l?1:0},"right"===l?{ml:"base.spacing.x1"}:{mr:"base.spacing.x1"}),{width:"base.icon.size.200",fill:"error"===o?"base.color.status.fatal.bright":"success"===o?"base.color.status.success.bright":"base.color.status.guidance.bright"});return vt(zf,Ac(xc({},f),{rc:yt("span",{}),size:r,testId:a,sx:k({color:"base.color.brand.4",display:"flex",alignItems:"center",flexGrow:1,justifyContent:"right"===l?"flex-end":"flex-start"},u),children:[yt(El,{icon:"error"===o?"Alert":"InformationCircle",sx:k(d)}),i]}))}yy.displayName="FormControlCaption",vy.displayName="FormControlLabel",gy.displayName="FormControlValidation";var by=[my,Wm,wp,Oh,Eh,ny];function wy(e){var t=e,n=t.domRef,r=t.sx,i=void 0===r?{}:r,o=t.id,a=t.testId,s=t.children,u=t.validationStatus,c=t.textAlign,l=void 0===c?_m:c,f=kc(t,["domRef","sx","id","testId","children","validationStatus","textAlign"]),d=(0,g.useId)(),p=o||d,h=Zc(s,vy),m=Zc(s,yy),y=Zc(s,gy),v=g.Children.toArray(s).find((function(e){return by.some((function(t){return(0,g.isValidElement)(e)&&e.type===t}))})),b=(0,g.isValidElement)(v)&&(v.type===my||v.type===Wm||v.type===ny);return yt(dl,Ac(xc({},f),{domRef:n,testId:a,sx:k({display:"flex",flexDirection:b?"column":"row",gap:"base.spacing.x1"},i),children:vt(mt,b?{children:[h&&yt(Gc,{textAlign:h.props.textAlign||l,htmlFor:p,children:h}),v&&yt(Gc,{textAlign:v.props.textAlign||l,id:p,validationStatus:v.props.validationStatus||u,children:v}),m&&yt(Gc,{textAlign:m.props.textAlign||l,htmlFor:p,children:m}),y&&yt(Gc,{htmlFor:p,textAlign:y.props.textAlign||l,validationStatus:y.props.validationStatus||u,children:y})]}:{children:[vt(dl,{sx:{d:"flex",flexDirection:"column",justifyContent:"center"},children:[h&&yt(Gc,{textAlign:h.props.textAlign||l,htmlFor:p,children:h}),m&&yt(Gc,{htmlFor:p,textAlign:m.props.textAlign||l,children:m}),y&&yt(Gc,{htmlFor:p,textAlign:y.props.textAlign||l,validationStatus:y.props.validationStatus||u,children:y})]}),v&&yt(Gc,{id:p,validationStatus:v.props.validationStatus||u,sx:k(xc({order:"left"===l?"-1":"1"},"left"===l?{mr:"base.spacing.x2"}:{ml:"base.spacing.x2"}),xc({},v.props.sx)),children:v})]})}))}wy.displayName="FormControl",wy.Label=vy,wy.Validation=gy,wy.Caption=yy;var xy={justifyContent:"stretch",bg:"base.color.translucent.standard.200",position:"relative",overflowY:"auto",display:"flex",width:"100%"};function Ay(e){var t=e.size,n=e.themeProps,r="large"===t||"medium"===t?n.base.spacing.x2:n.base.spacing.x1;return{gap:r,padding:r,borderRadius:"large"===t||"medium"===t?n.base.borderRadius.x8:n.base.borderRadius.x4}}function ky(e){var t=e.size,n=e.themeProps;return{borderRadius:"large"===t||"medium"===t?n.base.borderRadius.x4:n.base.spacing.x2}}var Ey={flex:1,paddingX:"base.spacing.x4",background:"base.color.translucent.emphasis.100",transitionProperty:"background, box-shadow",transitionDuration:"base.motion.normal.fast.cssDuration",transitionTimingFunction:"base.motion.normal.fast.cssEase","&:hover:not([disabled])":{boxShadow:function(e){var t=e.base;return"inset 0 0 0 ".concat(t.border.size[100]," ").concat(t.color.brand[1])}},"&:active:not([disabled])":{boxShadow:function(e){var t=e.base;return"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.brand[1])}},"&.selected":{boxShadow:function(e){var t=e.base;return"inset 0 0 0 ".concat(t.border.size[200]," ").concat(t.color.brand[1])}},"&:hover:not([disabled])::before":{content:"unset"},"& > span":{textAlign:"left",whiteSpace:"nowrap"}};function Ty(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),{styles:k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),ky({size:e,themeProps:n}))}))))}}function _y(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?"medium":i,a=t.selected,s=kc(t,["sx","size","selected"]),u=Mc(),c=il(o,Zl,hl),l=Ty({size:o,themeProps:u}).styles,f=k(Ey,l,ky({size:c,themeProps:u}),r);return yt(ft,{children:function(e){var t=e.cx;return yt(Ef,Ac(xc({},s),{size:o,variant:"tertiary",sx:f,className:t({selected:a})}))}})}function Sy(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=t.size,a=void 0===o?"medium":o,s=t.selected,u=kc(t,["children","sx","size","selected"]),c=Mc(),l=il(a,Zl,hl),f=Ty({size:a,themeProps:c}).styles;return yt(ft,{children:function(e){var t=e.cx;return yt(kf,Ac(xc({},u),{size:a,variant:"tertiary",className:t({selected:s}),sx:k(Ey,f,ky({size:l,themeProps:c}),i),children:n}))}})}function Cy(e){var t=e,n=t.children,r=t.sx,i=void 0===r?{}:r,o=t.size,a=void 0===o?"medium":o,s=kc(t,["children","sx","size"]),u=Wc(n,_y),c=Wc(n,Sy),f=Mc(),d=il(a,Zl,hl),p=function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),{styles:k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),Ay({size:e,themeProps:n}))}))))}}({size:a,themeProps:f}),h=p.styles,y=k(xy,Ay({size:d,themeProps:f}),h,i);return yt(dl,Ac(xc({},s),{sx:y,children:g.Children.map([].concat((0,l.Z)(u||[]),(0,l.Z)(c||[])),(function(e){return e?yt(Gc,{size:e.props.size?e.props.size:a,children:e}):null}))}))}_y.displayName="HorizontalMenuButtCon",Sy.displayName="HorizontalMenuButton",Sy.Icon=$l,Sy.Logo=Af,Cy.displayName="HorizontalMenu",Cy.Button=Sy,Cy.ButtCon=_y;var Iy={flexGrow:1,width:"100%",height:"100%",maxHeight:"100vh",display:"flex",flexDirection:"column",position:"relative"},Oy=function(e){return xc({flex:1,overflow:"hidden",overflowY:"scroll"},e?{paddingLeft:"10px",paddingRight:"10px"}:{})},Py=function(e,t){return xc({display:"flex",flexWrap:"wrap",gap:"".concat(t,"px")},e?{paddingTop:"12px",paddingBottom:"12px"}:{})},Ry={position:"absolute",top:"0",left:"0",opacity:0,pointerEvents:"none"},My={width:"100%",padding:"base.spacing.x5",display:"flex",justifyContent:"center"},By={pointerEvents:"none",position:"absolute",left:0,width:"100%",height:"200px"},Ny=function(e){(0,a.Z)(n,e);var t=(0,s.Z)(n);function n(e){var i;return(0,r.Z)(this,n),(i=t.call(this,e)).dimensions={container:{w:0,h:0},singleItem:{w:0,h:0,outerH:0}},i.shortCircuitPagingFunctionality=!1,i.lastScroll=0,i.loadingMoreItems=!1,i.concattedItems=[],i.currentColumnWidth=0,i.paddingTop=0,i.topSentinelPreviousY=0,i.bottomSentinelPreviousY=0,i.bottomSentinalIsIntersecting=!1,i.currentColumnCount=1,i.currentGridSize=0,i.currentFirstIndex=0,i.topIntersectionObserver=null,i.bottomIntersectionObserver=null,i.containerRef=i.props.domRef||(0,g.createRef)(),i.testItemRef=(0,g.createRef)(),i.topSentinelRef=(0,g.createRef)(),i.bottomSentinelRef=(0,g.createRef)(),i.gridRef=(0,g.createRef)(),i.overflowRef=(0,g.createRef)(),i.scrollTicking=!1,i.rAF=null,i.rIC=null,i.debouncedResize=pt((function(){i.handleResize()&&i.initRecycleView()}),200),i.containerResizeObserver=null,i.rowIncrementAmount=4,i.topSentinelCallback=function(e){var t=(0,y.Z)(e,1)[0];if(!i.shortCircuitPagingFunctionality){0===i.currentFirstIndex&&i.resetPadding();var n=t.isIntersecting,r=t.boundingClientRect.top;r>i.topSentinelPreviousY&&n&&i.changePaging(!1),i.topSentinelPreviousY=r}},i.bottomSentinelCallback=function(e){var t=(0,y.Z)(e,1)[0];if(!i.shortCircuitPagingFunctionality){var n=t.isIntersecting;i.bottomSentinalIsIntersecting=n;var r=t.boundingClientRect.top;i.currentFirstIndex===i.currentConcattedItemsDataSize-i.currentGridSize||i.loadingMoreItems||r<i.bottomSentinelPreviousY&&n&&i.changePaging(!0),i.bottomSentinelPreviousY=r}},i.debouncedOnScroll=pt((function(){var e;i.shortCircuitPagingFunctionality||i.scrollTicking||(i.scrollTicking=!0,null==(e=i.rIC)||e.call((0,o.Z)(i),(function(){var e;null==(e=i.rAF)||e.call((0,o.Z)(i),(function(){var e=i.overflowRef.current.getBoundingClientRect(),t=i.topSentinelRef.current.getBoundingClientRect(),n=i.overflowRef.current.scrollTop,r=n<i.lastScroll;t.top>=e.top&&r&&(i.lastScroll-n>e.height?i.reset():i.changePaging(!1)),i.lastScroll=n,i.scrollTicking=!1}))})))}),25,{leading:!0}),i.state={currentItems:[]},i}return(0,i.Z)(n,[{key:"currentConcattedItemsDataSize",get:function(){return this.concattedItems.length}},{key:"gridIndexIncrement",get:function(){return this.rowIncrementAmount*this.currentColumnCount}},{key:"resetPadding",value:function(){this.paddingTop=0}},{key:"checkToLoadMoreItems",value:function(){return!this.props.atEndOfData&&!this.loadingMoreItems&&this.currentFirstIndex+this.state.currentItems.length>=this.concattedItems.length-Math.floor(.5*this.state.currentItems.length)}},{key:"fetchMoreItems",value:function(){return Ec(this,null,(0,c.Z)().mark((function e(){var t;return(0,c.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.props.loadMoreItems&&!this.loadingMoreItems){e.next=2;break}return e.abrupt("return");case 2:return this.loadingMoreItems=!0,e.next=5,this.props.loadMoreItems(this.currentConcattedItemsDataSize);case 5:t=e.sent,this.concattedItems=[].concat((0,l.Z)(this.concattedItems),(0,l.Z)(t)),this.loadingMoreItems=!1,this.bottomSentinalIsIntersecting&&this.changePaging(!0);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"calculateNewFirstIndex",value:function(){var e;return(e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0]?this.currentFirstIndex+this.gridIndexIncrement:this.currentFirstIndex-this.gridIndexIncrement)<0&&(e=0),e}},{key:"changePaging",value:function(e){var t=this.calculateNewFirstIndex(e);this.updatePadding(e),this.currentFirstIndex=t,this.chooseCurrentItems(),e&&this.checkToLoadMoreItems()&&this.fetchMoreItems()}},{key:"updatePadding",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.dimensions.singleItem.outerH*this.rowIncrementAmount;e?this.paddingTop+=t:this.paddingTop=0===this.paddingTop?0:this.paddingTop-t}},{key:"initListeners",value:function(){this.topSentinelRef.current&&this.bottomSentinelRef.current&&this.overflowRef.current&&"function"!=typeof this.containerRef&&this.containerRef.current&&(this.topIntersectionObserver&&this.bottomIntersectionObserver&&this.containerResizeObserver||(this.topIntersectionObserver=new IntersectionObserver(this.topSentinelCallback,{root:this.overflowRef.current}),this.bottomIntersectionObserver=new IntersectionObserver(this.bottomSentinelCallback,{root:this.overflowRef.current}),this.containerResizeObserver=new ResizeObserver(this.debouncedResize)),this.topIntersectionObserver.observe(this.topSentinelRef.current),this.bottomIntersectionObserver.observe(this.bottomSentinelRef.current),this.containerResizeObserver.observe(this.containerRef.current),this.overflowRef.current.addEventListener("scroll",this.debouncedOnScroll))}},{key:"unloadListeners",value:function(){var e,t,n;this.topSentinelRef.current&&this.bottomSentinelRef.current&&"function"!=typeof this.containerRef&&this.containerRef.current&&this.overflowRef.current&&(null==(e=this.topIntersectionObserver)||e.unobserve(this.topSentinelRef.current),null==(t=this.bottomIntersectionObserver)||t.unobserve(this.bottomSentinelRef.current),null==(n=this.containerResizeObserver)||n.unobserve(this.containerRef.current),this.overflowRef.current.removeEventListener("scroll",this.debouncedOnScroll))}},{key:"handleResize",value:function(){return!!(this.gridRef.current&&"function"!=typeof this.containerRef&&this.containerRef.current&&this.testItemRef.current)&&(this.dimensions.container.w=this.gridRef.current.offsetWidth,this.dimensions.container.h=this.containerRef.current.offsetHeight,this.dimensions.singleItem.w=this.testItemRef.current.offsetWidth,this.dimensions.singleItem.h=this.testItemRef.current.offsetHeight,this.dimensions.singleItem.outerH=this.testItemRef.current.offsetHeight+this.props.gridGap,!0)}},{key:"chooseCurrentItems",value:function(){var e=xc({},this.state);e.currentItems=this.concattedItems.slice(this.currentFirstIndex,this.currentFirstIndex+this.currentGridSize),this.setState(e)}},{key:"reset",value:function(){this.currentFirstIndex=0,this.resetPadding(),this.overflowRef.current&&(this.overflowRef.current.scrollTop=0),this.chooseCurrentItems()}},{key:"initRecycleView",value:function(){this.concattedItems=(0,l.Z)(this.props.initialData),this.reset(),this.calculateGridColumns(),this.calculateAppropriateListSize(),this.chooseCurrentItems(),this.initListeners()}},{key:"calculateAppropriateListSize",value:function(){var e=this.dimensions,t=e.container,n=e.singleItem;if(0!==t.h){for(var r,i,o=1===this.currentColumnCount?6.5:t.h<=150?13:t.h<=250?10:t.h<=500?6:4,a=1,s=!0;s&&a<100;)a*n.outerH>=t.h*o?s=!1:a+=1;this.currentGridSize=a*this.currentColumnCount,this.currentGridSize>=this.props.initialData.length?(0!==this.props.initialData.length&&console.warn((r=this.props.initialData.length,i=this.currentGridSize+1,"@biom3/react \n<RecycleView /> Warning: \nPagination functionality has been disabled because you have not \nsupplied enough initialData items (".concat(r,") to power it. \nIf this isn't intentional, please supply more items via initialData prop.\nAt the current screen size, you need to supply at least ").concat(i," items."))),this.shortCircuitPagingFunctionality=!0):this.shortCircuitPagingFunctionality=!1}}},{key:"calculateGridColumns",value:function(){var e=this.dimensions.container;if(0!==e.w){var t=1,n=e.w;if("number"==typeof this.props.gridColumnWidthRange.min&&e.w>2*(this.props.gridColumnWidthRange.min+2*this.props.gridGap))for(var r=!0;r&&t<=50;)(n=Math.floor(e.w/t)-this.props.gridGap*(t-1)/t)<=this.props.gridColumnWidthRange.max&&n>=this.props.gridColumnWidthRange.min?r=!1:t+=1;this.currentColumnWidth=n,this.currentColumnCount=t}}},{key:"initPerfCallbacks",value:function(){this.rAF=function(e){return window.requestAnimationFrame(e)},this.rIC="requestIdleCallback"in window?function(e){return window.requestIdleCallback(e,{timeout:100})}:function(e){return e()}}},{key:"componentDidMount",value:function(){this.initPerfCallbacks(),this.handleResize()&&this.initRecycleView()}},{key:"componentWillUnmount",value:function(){this.unloadListeners()}},{key:"componentDidUpdate",value:function(e){var t,n,r,i;(null==(n=null==(t=e.initialData)?void 0:t[0])?void 0:n.id)!==(null==(i=null==(r=this.props.initialData)?void 0:r[0])?void 0:i.id)&&this.handleResize()&&this.initRecycleView()}},{key:"render",value:function(){var e=this,t=this.props,n=(t.gridGap,t.padForCardItems,t.rc),r=t.testId,i=t.sx,o=(t.initialData,t.renderItem,t.loadMoreItems,t.gridColumnWidthRange,t.atEndOfData,t.className),a=kc(t,["gridGap","padForCardItems","rc","testId","sx","initialData","renderItem","loadMoreItems","gridColumnWidthRange","atEndOfData","className"]);return vt(dl,Ac(xc({},a),{rc:n||yt("div",{}),domRef:this.containerRef,testId:r,sx:k(Iy,i),className:"container ".concat(o),children:[yt("div",{ref:this.testItemRef,css:Ry,style:{width:"".concat(this.currentColumnWidth,"px")},className:"testItem",children:this.props.initialData[0]&&this.props.renderItem(this.props.initialData[0],"testElement")}),yt("div",{css:Oy(this.props.padForCardItems),className:"overflow",ref:this.overflowRef,children:vt("div",{css:{position:"relative",paddingTop:"".concat(this.paddingTop,"px"),minHeight:"100%"},className:"overflow-inner",children:[yt("div",{"data-sentinel":"top",ref:this.topSentinelRef,css:k(By,{top:"".concat(this.paddingTop,"px")})}),vt("div",{css:Py(this.props.padForCardItems,this.props.gridGap),ref:this.gridRef,className:"grid",children:[this.state.currentItems.map((function(t){return yt(Gc,{sx:{width:"".concat(e.currentColumnWidth,"px")},children:e.props.renderItem(t)},t.id)})),this.loadingMoreItems&&yt(dl,{sx:My,className:"loading-container",children:yt(El,{icon:"Loading",sx:{width:"base.icon.size.300"}})})]}),yt("div",{"data-sentinel":"bottom",ref:this.bottomSentinelRef,css:k(By,{bottom:"0px"})})]})})]}))}}]),n}(g.Component);Ny.displayName="RecycleView",Ny.defaultProps={padForCardItems:!0,gridGap:10,gridColumnWidthRange:{min:120,max:350},sx:{}};var Fy={d:"flex",flexDirection:"column",w:"112px",h:"100%",flexGrow:1,px:"base.spacing.x2",py:"base.spacing.x6",gap:"base.spacing.x2",bg:"base.color.neutral.700",boxShadow:"base.shadow.200",overflowX:"hidden",overflowY:"auto"},Dy={d:"flex",flexDirection:"column",alignItems:"center",position:"relative",gap:"base.spacing.x2",py:"base.spacing.x3",color:"base.color.text.secondary",fill:"base.color.text.secondary",borderRadius:"base.borderRadius.x4","&::before":{content:'""',position:"absolute",left:"0px",top:"0px",w:"100%",h:"100%",borderRadius:"base.borderRadius.x4",border:"1px solid transparent"},"&:hover, &.selected":{c:"base.color.text.primary",fill:"base.color.text.primary",bg:"base.color.translucent.emphasis.200",boxShadow:"base.shadow.300"},"&:hover::before, &.selected::before":{borderColor:"base.color.translucent.standard.1000"},"&:active":{boxShadow:"base.shadow.200"},"&:active::before":{borderWidth:"2px",borderColor:"base.color.translucent.standard.1000"}},Ly={position:"absolute",top:"4px",left:"50%",transform:"translateX(-50%)",ml:"10px"},zy={width:"base.icon.size.250",fill:"inherit"};function jy(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.children,o=t.testId,a=t.selected,s=t.className,u=kc(t,["sx","children","testId","selected","className"]),c=Zc(i,zf),l=Zc(i,El),f=Zc(i,Tp);return yt(ft,{children:function(e){var t=e.cx;return vt(pl,Ac(xc({},u),{testId:o,sx:k(Dy,r),className:t(s,{selected:a}),children:[l&&yt(Gc,{testId:"".concat(o,"__icon"),sx:zy,children:l}),c&&yt(Gc,{testId:"".concat(o,"__label"),size:"small",sx:{c:"inherit"},children:c}),f&&yt(Gc,{testId:"".concat(o,"__badge"),sx:Ly,children:f})]}))}})}function Uy(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.children,o=t.rc,a=void 0===o?yt("aside",{}):o,s=t.spinePosition,u=void 0===s?"left":s,c=kc(t,["sx","children","rc","spinePosition"]),l=Wc(i,jy),f=(0,g.useMemo)((function(){return k(Fy,{brad:function(e){return"left"===u?"0px ".concat(e.base.borderRadius.x8," 0px 0px"):"".concat(e.base.borderRadius.x8," 0px 0px 0px")}},r)}),[u,r]);return yt(dl,Ac(xc({},c),{rc:a,sx:f,children:l}))}jy.displayName="SpineMenu.Item",jy.Label=zf,jy.Icon=El,jy.Badge=Tp,Uy.displayName="SpineMenu",Uy.Item=jy;var Zy=function(e){var t=e.isActive,n=e.disabled;return k({display:"flex",justifyContent:"center",alignItems:"center",width:"100%",flexGrow:"1",".TabsList__vertical > &":{flexDirection:"column",minHeight:"base.spacing.x19"},".TabsList__horizontal > &":{flexDirection:"row",minHeight:"base.spacing.x12"}},t?{backgroundColor:"base.color.translucent.standard.100",color:"base.color.brand.1",cursor:"pointer",borderTopColor:"base.color.brand.1",borderTopWidth:"3px",borderTopStyle:"solid"}:n?{cursor:"not-allowed",color:"base.color.brand.4"}:{backgroundColor:"base.color.translucent.standard.300","&:hover":{backgroundColor:"base.color.translucent.standard.200"},"&:active":{color:"base.color.brand.1"},color:"base.color.brand.4",cursor:"pointer"})},qy=function(e){var t=e.isActive,n=e.disabled;return t?{}:n?{color:"base.color.brand.4"}:{color:"base.color.brand.4","&:hover":{color:"base.color.brand.1"}}},Hy=function(e){var t=e.isActive,n=e.disabled;return k({width:"base.spacing.x6",flexShrink:0,".TabsList__vertical > * > &":{marginBottom:"base.spacing.x1"},".TabsList__horizontal > * > &":{marginRight:"base.spacing.x1"}},t?{fill:"base.color.brand.1"}:n?{fill:"base.color.brand.4"}:{fill:"base.color.brand.4","*:hover > &":{fill:"base.color.brand.1"}})},Vy=function(){return{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"base.spacing.x12",width:"100%",flexWrap:"nowrap",columnGap:"1px",flexGrow:"1"}},Gy=function(){return{background:"base.color.translucent.standard.100",width:"100%",minHeight:"base.spacing.x50"}},Wy=(0,g.createContext)({currentTabValue:"",onTabChange:function(){}});function Ky(e){var t,n=e.children,r=e.value,i=r.currentTabValue,o=r.defaultTabValue,a=r.onTabChange,s=(0,g.useState)(null!=(t=null!=i?i:o)?t:""),u=(0,y.Z)(s,2),c=u[0],l=u[1],f=null!=i?i:c,d=(0,g.useCallback)((function(e){null==a||a(e),l(e)}),[a]),p=(0,g.useMemo)((function(){return{currentTabValue:f,onTabChange:d}}),[d,f]);return yt(Wy.Provider,{value:p,children:n})}var Jy=function(){return(0,g.useContext)(Wy)};function Xy(e){var t=e,n=t.testId,r=void 0===n?"Tabs__Tab":n,i=t.value,o=void 0===i?"":i,a=t.disabled,s=void 0!==a&&a,u=t.children,c=t.icon,l=t.sx,f=void 0===l?{}:l,d=kc(t,["testId","value","disabled","children","icon","sx"]),p=Jy(),h=p.currentTabValue,m=p.onTabChange,y=h===o,v=Zy({isActive:y,disabled:s}),g=c?Hy({isActive:y,disabled:s}):{},b=qy({isActive:y,disabled:s}),w=k({background:"transparent",border:"none",cursor:"pointer",display:"flex",padding:"0"},v,f),x=s?function(){return null}:function(){return m(o)};return vt(pl,Ac(xc({},d),{testId:r,onClick:x,sx:w,children:[c&&yt(Gc,{sx:k(g,c.props.sx?c.props.sx:{}),children:c}),yt(zf,{sx:k(b,Cf(2)),children:u})]}))}function Yy(e){var t=e,n=t.testId,r=void 0===n?"Tabs__List":n,i=t.domRef,o=void 0===i?{current:null}:i,a=t.children,s=t.contentOrientation,u=void 0===s?"horizontal":s,c=t.sx,l=void 0===c?{}:c,f=kc(t,["testId","domRef","children","contentOrientation","sx"]),d=Vy(),p=Wc(a,Xy),h=k(d,l);return yt(dl,Ac(xc({},f),{testId:r,domRef:o,className:"TabsList__".concat(u),sx:h,children:p}))}function $y(e){var t=e,n=t.testId,r=void 0===n?"Tabs__Panel":n,i=t.children,o=t.value,a=t.sx,s=void 0===a?{}:a,u=kc(t,["testId","children","value","sx"]);if(Jy().currentTabValue!==o)return null;var c=Gy(),l=k(c,s);return yt(dl,Ac(xc({},u),{testId:r,sx:l,children:i}))}function Qy(e){var t=Ac(xc({},e),"currentTabValue"in e?{defaultTabValue:null}:{currentTabValue:null}),n=t.currentTabValue,r=t.defaultTabValue,i=t.onTabChange,o=t.children,a=kc(t,["currentTabValue","defaultTabValue","onTabChange","children"]),s=Wc(o,Yy),u=Wc(o,$y);return yt(Ky,{value:{currentTabValue:n,defaultTabValue:r,onTabChange:i},children:vt(dl,Ac(xc({},a),{children:[s,u]}))})}Xy.displayName="Tab",Yy.displayName="TabsList",$y.displayName="TabsPanel",Qy.displayName="Tabs",Qy.List=Yy,Qy.Tab=Xy,Qy.Panel=$y;var ev=["small","medium"],tv="medium",nv={bg:"base.color.neutral.800",width:"100%",paddingX:"base.spacing.x2",paddingY:"base.spacing.x3",display:"flex",alignItems:"center"};function rv(e){var t=e.size,n=e.themeProps;return"small"===t?{height:"64px",paddingX:n.base.spacing.x4}:{height:"80px",paddingX:n.base.spacing.x6}}function iv(e){var t=e.themeProps;return nl("small"===e.size?{themeProps:t,size:"xSmall",weight:"bold"}:{themeProps:t,size:"medium",weight:"bold"})}function ov(e){var t=e.themeProps;return el("small"===e.size?{themeProps:t,size:"xSmall",weight:"regular"}:{themeProps:t,size:"medium",weight:"regular"})}function av(e){var t=e.themeProps;return"small"===e.size?{marginRight:t.base.spacing.x4}:{marginRight:t.base.spacing.x6}}function sv(e){var t=e.themeProps;return"small"===e.size?{marginLeft:t.base.spacing.x4}:{marginLeft:t.base.spacing.x6}}function uv(e){var t=e.themeProps,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),sv({size:e,themeProps:t}))}))))}function cv(e){var t=e,n=t.size,r=void 0===n?tv:n,i=t.sx,o=void 0===i?{}:i,a=kc(t,["size","sx"]),s=Ye(),u=il(r,tv,ev),c=k(Ac(xc({},Cf(1)),{color:"base.color.text.secondary"}),ov({themeProps:s,size:u}),function(e){var t=e.themeProps,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),ov({size:e,themeProps:t}))}))))}({themeProps:s,size:r}),o);return yt(dl,Ac(xc({},a),{sx:c,rc:yt("p",{})}))}function lv(e){var t=e,n=t.size,r=void 0===n?tv:n,i=t.sx,o=void 0===i?{}:i,a=kc(t,["size","sx"]),s=Mc(),u=il(r,tv,ev);return yt(Cy,Ac(xc({},a),{size:r,sx:k({width:"auto",flexShrink:0},sv({size:u,themeProps:s}),uv({size:r,themeProps:s}),o)}))}function fv(e){var t=e,n=t.size,r=void 0===n?tv:n,i=t.variant,o=void 0===i?"tertiary":i,a=t.sx,s=void 0===a?{}:a,u=kc(t,["size","variant","sx"]),c=Mc(),f=il(r,tv,ev),d=k({color:"base.color.text.secondary",flexShrink:0},av({themeProps:c,size:f}),function(e){var t=e.themeProps,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),av({size:e,themeProps:t}))}))))}({themeProps:c,size:r}),s);return yt(Ef,Ac(xc({},u),{variant:o,size:r,sx:d}))}function dv(e){var t=e,n=t.size,r=void 0===n?tv:n,i=t.sx,o=void 0===i?{}:i,a=t.children,s=kc(t,["size","sx","children"]),u=Mc(),c=il(r,tv,ev);return yt(dl,Ac(xc({},s),{sx:k({display:"flex",gap:"base.spacing.x2"},sv({size:c,themeProps:u}),uv({size:r,themeProps:u}),o),children:g.Children.map(a,(function(e){return jc(e,kf)||jc(e,Ef)?yt(Gc,{variant:(0,g.isValidElement)(e)&&e.props.variant?e.props.variant:"tertiary",size:(0,g.isValidElement)(e)&&e.props.size?e.props.size:r,children:e}):null}))}))}function pv(e){var t=e,n=t.size,r=void 0===n?tv:n,i=t.sx,o=void 0===i?{}:i,a=t.rc,s=void 0===a?yt("h3",{}):a,u=kc(t,["size","sx","rc"]),c=Ye(),f=il(r,tv,ev),d=k(xc({color:"base.color.text.primary"},Cf(1)),iv({themeProps:c,size:f}),function(e){var t=e.themeProps,n=e.size,r=Array.isArray(n)?(0,l.Z)(n):[n];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,n){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=t.base.breakpointAsArray)?void 0:r[n],"px)"),iv({size:e,themeProps:t}))}))))}({themeProps:c,size:r}),o);return yt(dl,Ac(xc({},u),{sx:d,rc:s}))}function hv(e){var t=e,n=t.sx,r=void 0===n?{}:n,i=t.size,o=void 0===i?tv:i,a=t.children,s=t.rc,u=void 0===s?yt("header",{}):s,c=kc(t,["sx","size","children","rc"]),f=Zc(a,pv),d=Zc(a,cv),p=Zc(a,fv),h=Zc(a,lv),y=Zc(a,dv),v=Mc(),g=il(o,tv,ev),b=k(nv,rv({size:g,themeProps:v}),function(e){var t=e.size,n=e.themeProps,r=Array.isArray(t)?(0,l.Z)(t):[t];return r.shift(),k.apply(void 0,(0,l.Z)(r.map((function(e,t){var r;return null==e||Xc(e)?{}:(0,m.Z)({},"@media screen and (min-width: ".concat(null==(r=n.base.breakpointAsArray)?void 0:r[t],"px)"),rv({size:e,themeProps:n}))}))))}({size:o,themeProps:v}),r);return vt(dl,Ac(xc({},c),{sx:b,rc:u,children:[p&&yt(Gc,{size:o,children:p}),vt(dl,{sx:Ac(xc({},Of),{flexGrow:1}),rc:yt("hgroup",{}),children:[f&&yt(Gc,{size:o,children:f}),d&&yt(Gc,{size:o,children:d})]}),y&&yt(Gc,{size:o,children:y}),h&&yt(Gc,{size:o,children:h})]}))}function mv(e){var t=e,n=t.children,r=kc(t,["children"]);return yt(dl,Ac(xc({},r),{children:n}))}function yv(e){var t=e,n=t.children,r=kc(t,["children"]);return yt(Gc,Ac(xc({},r),{children:n}))}function vv(e){var t=e,n=t.id,r=t.children,i=t.size,o=void 0===i?Pd:i,a=t.domRef,s=void 0===a?{current:null}:a,u=kc(t,["id","children","size","domRef"]),c=Lc(s),l=(0,g.useId)(),f=n||l,d=Zc(r,yv),p=Zc(r,mv),h=$d((function(e){return e})),m=h.dispatchAction,v=(0,g.useState)(""),b=(0,y.Z)(v,2),w=b[0],x=b[1];return(0,g.useEffect)((function(){m({type:Jd,payload:{id:f,content:p}})}),[p,f,m]),Tc((function(){return x(f),function(){return m({type:Wd,payload:{id:f}})}}),[]),(0,g.useEffect)((function(){w&&Cd(c.current,w,!0)}),[w,c]),(0,g.useEffect)((function(){var e,t=null==(e=c.current)?void 0:e.getBoundingClientRect();m({type:Kd,payload:{id:f,size:o,content:p,targetRect:t}})}),[f,o,p,c,m]),d?yt(Gc,Ac(xc({},u),{id:f,domRef:c,children:d})):null}cv.displayName="Toolbar.Caption",lv.displayName="Toolbar.HorizontalMenu",lv.Button=Sy,lv.ButtCon=_y,fv.displayName="Toolbar.LeftButtCon",dv.displayName="Toolbar.RightHandButtons",pv.displayName="Toolbar.Title",hv.displayName="Toolbar",hv.LeftButtCon=fv,hv.Title=pv,hv.Caption=cv,hv.HorizontalMenu=lv,hv.RightHandButtons=dv,vv.displayName="Tooltip",vv.Target=yv,vv.Content=mv},45166:function(e,t,n){"use strict";n.d(t,{Z:function(){return Jn}});var r=n(46999),i=n(72771),o=n(51212),a=n(33621),s=n(33185);function u(){return"undefined"===typeof s?{}:{NODE_ENV:"production",PUBLIC_URL:"/immutable/ts-immutable-sdk",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0}}var c=n(3256),l=n(64124),f=n(20298);function d(e,t,n,r){var i,o=[e,t,n,r],a=(0,f.PO)(e)?e.event:e;if(!a||!(0,f.HD)(a))throw new Error("Event missing");var s=(0,f.PO)(e)?null!==(i=e.properties)&&void 0!==i?i:{}:(0,f.PO)(t)?t:{},u={};return(0,f.mf)(n)||(u=null!==n&&void 0!==n?n:{}),(0,f.PO)(e)&&!(0,f.mf)(t)&&(u=null!==t&&void 0!==t?t:{}),[a,s,u,o.find(f.mf)]}function p(e,t,n,r,i){var o,a,s=null,u=null,c=[e,t,n,r,i],l=c.filter(f.HD);void 0!==l[0]&&void 0!==l[1]&&(s=l[0],u=l[1]),1===l.length&&(s=null,u=l[0]);var d=c.find(f.mf),p=c.filter((function(e){return null===u?(0,f.PO)(e):(0,f.PO)(e)||null===e})),h=null!==(o=p[0])&&void 0!==o?o:{},m=null!==(a=p[1])&&void 0!==a?a:{};return[s,u,h,m,d]}var h=function(e){return function(){for(var t,n,r,i,o,a=[],s=0;s<arguments.length;s++)a[s]=arguments[s];var u;u=null!==(r=null!==(t=a.find(f.HD))&&void 0!==t?t:null===(n=a.find(f.hj))||void 0===n?void 0:n.toString())&&void 0!==r?r:e.id();var c=a.filter((function(e){return null===u?(0,f.PO)(e):(0,f.PO)(e)||null===e})),l=null!==(i=c[0])&&void 0!==i?i:{},d=null!==(o=c[1])&&void 0!==o?o:{},p=a.find(f.mf);return[u,l,d,p]}};function m(e,t,n,r){(0,f.hj)(e)&&(e=e.toString()),(0,f.hj)(t)&&(t=t.toString());var i=[e,t,n,r],o=i.filter(f.HD),a=o[0],s=void 0===a?e:a,u=o[1],c=void 0===u?null:u,l=i.filter(f.PO)[0];return[s,c,void 0===l?{}:l,i.find(f.mf)]}var y=n(99817),v=n(17999),g=n(47699),b=n(34589),w=function(e,t){var n=Date.now()-e;return Math.max((null!==t&&void 0!==t?t:300)-n,0)};function x(e,t,n,r){return(0,g.mG)(this,void 0,void 0,(function(){var i,o;return(0,g.Jh)(this,(function(a){switch(a.label){case 0:return n.emit("dispatch_start",e),i=Date.now(),t.isEmpty()?[4,t.dispatchSingle(e)]:[3,2];case 1:return o=a.sent(),[3,4];case 2:return[4,t.dispatch(e)];case 3:o=a.sent(),a.label=4;case 4:return(null===r||void 0===r?void 0:r.callback)?[4,(0,b.UI)(o,r.callback,w(i,r.timeout))]:[3,6];case 5:o=a.sent(),a.label=6;case 6:return(null===r||void 0===r?void 0:r.debug)&&o.flush(),[2,o]}}))}))}var A=n(38720),k=n(64847),E=n(72954),T=n(85317),_=n.n(T),S=function(){function e(e){this.user=e}return e.prototype.track=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{event:e,type:"track",properties:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)}))},e.prototype.page=function(e,t,n,r,i){var o,s={type:"page",properties:(0,a.pi)({},n),options:(0,a.pi)({},r),integrations:(0,a.pi)({},i)};return null!==e&&(s.category=e,s.properties=null!==(o=s.properties)&&void 0!==o?o:{},s.properties.category=e),null!==t&&(s.name=t),this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),s))},e.prototype.screen=function(e,t,n,r,i){var o={type:"screen",properties:(0,a.pi)({},n),options:(0,a.pi)({},r),integrations:(0,a.pi)({},i)};return null!==e&&(o.category=e),null!==t&&(o.name=t),this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),o))},e.prototype.identify=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{type:"identify",userId:e,traits:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)}))},e.prototype.group=function(e,t,n,r){return this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),{type:"group",traits:t,options:(0,a.pi)({},n),integrations:(0,a.pi)({},r),groupId:e}))},e.prototype.alias=function(e,t,n,r){var i={userId:e,type:"alias",options:(0,a.pi)({},n),integrations:(0,a.pi)({},r)};return null!==t&&(i.previousId=t),void 0===e?this.normalize((0,a.pi)((0,a.pi)({},i),this.baseEvent())):this.normalize((0,a.pi)((0,a.pi)({},this.baseEvent()),i))},e.prototype.baseEvent=function(){var e={integrations:{},options:{}},t=this.user;return t.id()&&(e.userId=t.id()),t.anonymousId()&&(e.anonymousId=t.anonymousId()),e},e.prototype.context=function(e){var t,n,r,i=["integrations","anonymousId","timestamp","userId"],o=null!==(t=e.options)&&void 0!==t?t:{};delete o.integrations;var a=Object.keys(o),s=null!==(r=null===(n=e.options)||void 0===n?void 0:n.context)&&void 0!==r?r:{},u={};return a.forEach((function(e){"context"!==e&&(i.includes(e)?(0,E.N)(u,e,o[e]):(0,E.N)(s,e,o[e]))})),[s,u]},e.prototype.normalize=function(e){var t,n,r;(null===(t=e.options)||void 0===t?void 0:t.anonymousId)&&this.user.anonymousId(e.options.anonymousId);var i=Object.keys(null!==(n=e.integrations)&&void 0!==n?n:{}).reduce((function(t,n){var r,i;return(0,a.pi)((0,a.pi)({},t),((r={})[n]=Boolean(null===(i=e.integrations)||void 0===i?void 0:i[n]),r))}),{}),o=(0,a.pi)((0,a.pi)({},i),null===(r=e.options)||void 0===r?void 0:r.integrations),s=this.context(e),u=s[0],c=s[1],l=(e.options,(0,a._T)(e,["options"])),f=(0,a.pi)((0,a.pi)((0,a.pi)({timestamp:new Date},l),{context:u,integrations:o}),c),d="ajs-next-"+_().hash(JSON.stringify(f)+(0,k.v4)());return(0,a.pi)((0,a.pi)({},f),{messageId:d})},e}(),C=n(90462);var I=n(10001),O=n(80985),P=n(41133),R=function(e){function t(t){var n=e.call(this)||this;return n.criticalTasks=function(){var e,t,n=0;return{done:function(){return e},run:function(r){var i,o=r();return"object"===typeof(i=o)&&null!==i&&"then"in i&&"function"===typeof i.then&&(1===++n&&(e=new Promise((function(e){return t=e}))),o.finally((function(){return 0===--n&&t()}))),o}}}(),n.plugins=[],n.failedInitializations=[],n.flushing=!1,n.queue=t,n.queue.on(I.M,(function(){n.scheduleFlush(0)})),n}return(0,g.ZT)(t,e),t.prototype.register=function(e,t,n){return(0,g.mG)(this,void 0,void 0,(function(){var r=this;return(0,g.Jh)(this,(function(i){switch(i.label){case 0:return[4,Promise.resolve(t.load(e,n)).then((function(){r.plugins.push(t)})).catch((function(n){if("destination"===t.type)return r.failedInitializations.push(t.name),console.warn(t.name,n),void e.log("warn","Failed to load destination",{plugin:t.name,error:n});throw n}))];case 1:return i.sent(),[2]}}))}))},t.prototype.deregister=function(e,t,n){return(0,g.mG)(this,void 0,void 0,(function(){var r;return(0,g.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.unload?[4,Promise.resolve(t.unload(e,n))]:[3,2];case 1:i.sent(),i.label=2;case 2:return this.plugins=this.plugins.filter((function(e){return e.name!==t.name})),[3,4];case 3:return r=i.sent(),e.log("warn","Failed to unload destination",{plugin:t.name,error:r}),[3,4];case 4:return[2]}}))}))},t.prototype.dispatch=function(e){return(0,g.mG)(this,void 0,void 0,(function(){var t;return(0,g.Jh)(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.push(e),t=this.subscribeToDelivery(e),this.scheduleFlush(0),[2,t]}))}))},t.prototype.subscribeToDelivery=function(e){return(0,g.mG)(this,void 0,void 0,(function(){var t=this;return(0,g.Jh)(this,(function(n){return[2,new Promise((function(n){t.on("flush",(function r(i,o){i.isSame(e)&&(t.off("flush",r),n(i))}))}))]}))}))},t.prototype.dispatchSingle=function(e){return(0,g.mG)(this,void 0,void 0,(function(){var t=this;return(0,g.Jh)(this,(function(n){return e.log("debug","Dispatching"),e.stats.increment("message_dispatched"),this.queue.updateAttempts(e),e.attempts=1,[2,this.deliver(e).catch((function(n){return t.enqueuRetry(n,e)?t.subscribeToDelivery(e):(e.setFailedDelivery({reason:n}),e)}))]}))}))},t.prototype.isEmpty=function(){return 0===this.queue.length},t.prototype.scheduleFlush=function(e){var t=this;void 0===e&&(e=500),this.flushing||(this.flushing=!0,setTimeout((function(){t.flush().then((function(){setTimeout((function(){t.flushing=!1,t.queue.length&&t.scheduleFlush(0)}),0)}))}),e))},t.prototype.deliver=function(e){return(0,g.mG)(this,void 0,void 0,(function(){var t,n,r,i;return(0,g.Jh)(this,(function(o){switch(o.label){case 0:return[4,this.criticalTasks.done()];case 1:o.sent(),t=Date.now(),o.label=2;case 2:return o.trys.push([2,4,,5]),[4,this.flushOne(e)];case 3:return e=o.sent(),n=Date.now()-t,this.emit("delivery_success",e),e.stats.gauge("delivered",n),e.log("debug","Delivered",e.event),[2,e];case 4:throw r=o.sent(),i=r,e.log("error","Failed to deliver",i),this.emit("delivery_failure",e,i),e.stats.increment("delivery_failed"),r;case 5:return[2]}}))}))},t.prototype.enqueuRetry=function(e,t){return!(e instanceof O.Y&&!e.retry)&&this.queue.pushWithBackoff(t)},t.prototype.flush=function(){return(0,g.mG)(this,void 0,void 0,(function(){var e,t;return(0,g.Jh)(this,(function(n){switch(n.label){case 0:if(0===this.queue.length)return[2,[]];if(!(e=this.queue.pop()))return[2,[]];e.attempts=this.queue.getAttempts(e),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.deliver(e)];case 2:return e=n.sent(),this.emit("flush",e,!0),[3,4];case 3:return t=n.sent(),this.enqueuRetry(t,e)||(e.setFailedDelivery({reason:t}),this.emit("flush",e,!1)),[2,[]];case 4:return[2,[e]]}}))}))},t.prototype.isReady=function(){return!0},t.prototype.availableExtensions=function(e){var t=this.plugins.filter((function(t){var n,r,i;if("destination"!==t.type&&"Segment.io"!==t.name)return!0;var o=void 0;return null===(n=t.alternativeNames)||void 0===n||n.forEach((function(t){void 0!==e[t]&&(o=e[t])})),null!==(i=null!==(r=e[t.name])&&void 0!==r?r:o)&&void 0!==i?i:!1!==("Segment.io"===t.name||e.All)})),n=function(e,t){var n={};return e.forEach((function(e){var r,i=void 0;if("string"===typeof t){var o=e[t];i="string"!==typeof o?JSON.stringify(o):o}else t instanceof Function&&(i=t(e));void 0!==i&&(n[i]=(0,g.ev)((0,g.ev)([],null!==(r=n[i])&&void 0!==r?r:[],!0),[e],!1))})),n}(t,"type"),r=n.before,i=void 0===r?[]:r,o=n.enrichment,a=void 0===o?[]:o,s=n.destination,u=void 0===s?[]:s,c=n.after;return{before:i,enrichment:a,destinations:u,after:void 0===c?[]:c}},t.prototype.flushOne=function(e){var t,n;return(0,g.mG)(this,void 0,void 0,(function(){var r,i,o,a,s,u,c,l,f,d,p,h,m,y;return(0,g.Jh)(this,(function(v){switch(v.label){case 0:if(!this.isReady())throw new Error("Not ready");e.attempts>1&&this.emit("delivery_retry",e),r=this.availableExtensions(null!==(t=e.event.integrations)&&void 0!==t?t:{}),i=r.before,o=r.enrichment,a=0,s=i,v.label=1;case 1:return a<s.length?(u=s[a],[4,(0,P.z)(e,u)]):[3,4];case 2:(d=v.sent())instanceof O._&&(e=d),this.emit("message_enriched",e,u),v.label=3;case 3:return a++,[3,1];case 4:c=0,l=o,v.label=5;case 5:return c<l.length?(f=l[c],[4,(0,P.a)(e,f)]):[3,8];case 6:(d=v.sent())instanceof O._&&(e=d),this.emit("message_enriched",e,f),v.label=7;case 7:return c++,[3,5];case 8:return p=this.availableExtensions(null!==(n=e.event.integrations)&&void 0!==n?n:{}),h=p.destinations,m=p.after,[4,new Promise((function(t,n){setTimeout((function(){var r=h.map((function(t){return(0,P.a)(e,t)}));Promise.all(r).then(t).catch(n)}),0)}))];case 9:return v.sent(),e.stats.increment("message_delivered"),this.emit("message_delivered",e),y=m.map((function(t){return(0,P.a)(e,t)})),[4,Promise.all(y)];case 10:return v.sent(),[2,e]}}))}))},t}(A.Q),M=function(e){function t(t){return e.call(this,"string"===typeof t?new C.$(4,t):t)||this}return(0,a.ZT)(t,e),t.prototype.flush=function(){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){return(0,y.s)()?[2,[]]:[2,e.prototype.flush.call(this)]}))}))},t}(R);function B(e){for(var t=e.constructor.prototype,n=0,r=Object.getOwnPropertyNames(t);n<r.length;n++){var i=r[n];if("constructor"!==i){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,i);o&&"function"===typeof o.value&&(e[i]=e[i].bind(e))}}return e}var N={Cookie:"cookie",LocalStorage:"localStorage",Memory:"memory"},F=n(96002),D=function(){function e(){this.cache={}}return e.prototype.get=function(e){var t;return null!==(t=this.cache[e])&&void 0!==t?t:null},e.prototype.set=function(e,t){this.cache[e]=t},e.prototype.remove=function(e){delete this.cache[e]},e}();function L(e){return e&&e.stores&&Array.isArray(e.stores)&&e.stores.every((function(e){return Object.values(N).includes(e)}))}var z=n(34415),j=function(){function e(){}return e.prototype.localStorageWarning=function(e,t){console.warn("Unable to access ".concat(e,", localStorage may be ").concat(t))},e.prototype.get=function(e){var t;try{var n=localStorage.getItem(e);if(null===n)return null;try{return null!==(t=JSON.parse(n))&&void 0!==t?t:null}catch(Qe){return null!==n&&void 0!==n?n:null}}catch(r){return this.localStorageWarning(e,"unavailable"),null}},e.prototype.set=function(e,t){try{localStorage.setItem(e,JSON.stringify(t))}catch(Ue){this.localStorageWarning(e,"full")}},e.prototype.remove=function(e){try{return localStorage.removeItem(e)}catch(t){this.localStorageWarning(e,"unavailable")}},e}();function U(e){var t=e.map((function(e){var t,n;switch(!function(e){return"object"===typeof e&&void 0!==e.name}(e)?t=e:(t=e.name,n=e.settings),t){case N.Cookie:return new z.e(n);case N.LocalStorage:return new j;case N.Memory:return new D;default:throw new Error("Unknown Store Type: ".concat(e))}}));return t}function Z(e,t){return e.map((function(e){return t&&e===N.Cookie?{name:e,settings:t}:e}))}var q={persist:!0,cookie:{key:"ajs_user_id",oldKey:"ajs_user"},localStorage:{key:"ajs_user_traits"}},H=function(){function e(e,t){void 0===e&&(e=q);var n,r,i,o,s=this;this.options={},this.id=function(e){if(s.options.disable)return null;var t=s.identityStore.getAndSync(s.idKey);void 0!==e&&(s.identityStore.set(s.idKey,e),e!==t&&null!==t&&null!==e&&s.anonymousId(null));var n=s.identityStore.getAndSync(s.idKey);if(n)return n;var r=s.legacyUserStore.get(q.cookie.oldKey);return r?"object"===typeof r?r.id:r:null},this.anonymousId=function(e){var t,n;if(s.options.disable)return null;if(void 0===e){var r=null!==(t=s.identityStore.getAndSync(s.anonKey))&&void 0!==t?t:null===(n=s.legacySIO())||void 0===n?void 0:n[0];if(r)return r}return null===e?(s.identityStore.set(s.anonKey,null),s.identityStore.getAndSync(s.anonKey)):(s.identityStore.set(s.anonKey,null!==e&&void 0!==e?e:(0,k.v4)()),s.identityStore.getAndSync(s.anonKey))},this.traits=function(e){var t;if(!s.options.disable)return null===e&&(e={}),e&&s.traitsStore.set(s.traitsKey,null!==e&&void 0!==e?e:{}),null!==(t=s.traitsStore.get(s.traitsKey))&&void 0!==t?t:{}},this.options=(0,a.pi)((0,a.pi)({},q),e),this.cookieOptions=t,this.idKey=null!==(r=null===(n=e.cookie)||void 0===n?void 0:n.key)&&void 0!==r?r:q.cookie.key,this.traitsKey=null!==(o=null===(i=e.localStorage)||void 0===i?void 0:i.key)&&void 0!==o?o:q.localStorage.key,this.anonKey="ajs_anonymous_id",this.identityStore=this.createStorage(this.options,t),this.legacyUserStore=this.createStorage(this.options,t,(function(e){return e===N.Cookie})),this.traitsStore=this.createStorage(this.options,t,(function(e){return e!==N.Cookie}));var u=this.legacyUserStore.get(q.cookie.oldKey);u&&"object"===typeof u&&(u.id&&this.id(u.id),u.traits&&this.traits(u.traits)),B(this)}return e.prototype.legacySIO=function(){var e=this.legacyUserStore.get("_sio");if(!e)return null;var t=e.split("----");return[t[0],t[1]]},e.prototype.identify=function(e,t){if(!this.options.disable){t=null!==t&&void 0!==t?t:{};var n=this.id();null!==n&&n!==e||(t=(0,a.pi)((0,a.pi)({},this.traits()),t)),e&&this.id(e),this.traits(t)}},e.prototype.logout=function(){this.anonymousId(null),this.id(null),this.traits({})},e.prototype.reset=function(){this.logout(),this.identityStore.clear(this.idKey),this.identityStore.clear(this.anonKey),this.traitsStore.clear(this.traitsKey)},e.prototype.load=function(){return new e(this.options,this.cookieOptions)},e.prototype.save=function(){return!0},e.prototype.createStorage=function(e,t,n){var r=[N.LocalStorage,N.Cookie,N.Memory];return e.disable?new F.N([]):e.persist?(void 0!==e.storage&&null!==e.storage&&L(e.storage)&&(r=e.storage.stores),e.localStorageFallbackDisabled&&(r=r.filter((function(e){return e!==N.LocalStorage}))),n&&(r=r.filter(n)),new F.N(U(Z(r,t)))):new F.N([new D])},e.defaults=q,e}(),V={persist:!0,cookie:{key:"ajs_group_id"},localStorage:{key:"ajs_group_properties"}},G=function(e){function t(t,n){void 0===t&&(t=V);var r=e.call(this,(0,a.pi)((0,a.pi)({},V),t),n)||this;return r.anonymousId=function(e){},B(r),r}return(0,a.ZT)(t,e),t}(H),W=n(99602),K=n(6406),J="This is being deprecated and will be not be available in future releases of Analytics JS",X=(0,K.R)(),Y=null===X||void 0===X?void 0:X.analytics;function $(){console.warn(J)}var Q=function(e){function t(t,n,r,i,o){var s,u,c,l=this;(l=e.call(this)||this)._debug=!1,l.initialized=!1,l.user=function(){return l._user},l.init=l.initialize.bind(l),l.log=$,l.addIntegrationMiddleware=$,l.listeners=$,l.addEventListener=$,l.removeAllListeners=$,l.removeListener=$,l.removeEventListener=$,l.hasListeners=$,l.add=$,l.addIntegration=$;var f=null===n||void 0===n?void 0:n.cookie,d=null!==(s=null===n||void 0===n?void 0:n.disableClientPersistence)&&void 0!==s&&s;l.settings=t,l.settings.timeout=null!==(u=l.settings.timeout)&&void 0!==u?u:300,l.queue=null!==r&&void 0!==r?r:function(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=t?4:1,i=n?new I.Z(r,[]):new C.$(r,e);return new M(i)}("".concat(t.writeKey,":event-queue"),null===n||void 0===n?void 0:n.retryQueue,d);var p=null===n||void 0===n?void 0:n.storage;return l._universalStorage=l.createStore(d,p,f),l._user=null!==i&&void 0!==i?i:new H((0,a.pi)({persist:!d,storage:null===n||void 0===n?void 0:n.storage},null===n||void 0===n?void 0:n.user),f).load(),l._group=null!==o&&void 0!==o?o:new G((0,a.pi)({persist:!d,storage:null===n||void 0===n?void 0:n.storage},null===n||void 0===n?void 0:n.group),f).load(),l.eventFactory=new S(l._user),l.integrations=null!==(c=null===n||void 0===n?void 0:n.integrations)&&void 0!==c?c:{},l.options=null!==n&&void 0!==n?n:{},B(l),l}return(0,a.ZT)(t,e),t.prototype.createStore=function(e,t,n){return e?new F.N([new D]):t&&L(t)?new F.N(U(Z(t.stores,n))):new F.N(U([N.LocalStorage,{name:N.Cookie,settings:n},N.Memory]))},Object.defineProperty(t.prototype,"storage",{get:function(){return this._universalStorage},enumerable:!1,configurable:!0}),t.prototype.track=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r,i,o,s,u=this;return(0,a.Jh)(this,(function(a){return t=d.apply(void 0,e),n=t[0],r=t[1],i=t[2],o=t[3],s=this.eventFactory.track(n,r,i,this.integrations),[2,this._dispatch(s,o).then((function(e){return u.emit("track",n,e.event.properties,e.event.options),e}))]}))}))},t.prototype.page=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r,i,o,s,u,c=this;return(0,a.Jh)(this,(function(a){return t=p.apply(void 0,e),n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],u=this.eventFactory.page(n,r,i,o,this.integrations),[2,this._dispatch(u,s).then((function(e){return c.emit("page",n,r,e.event.properties,e.event.options),e}))]}))}))},t.prototype.identify=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r,i,o,s,u=this;return(0,a.Jh)(this,(function(a){return t=h(this._user).apply(void 0,e),n=t[0],r=t[1],i=t[2],o=t[3],this._user.identify(n,r),s=this.eventFactory.identify(this._user.id(),this._user.traits(),i,this.integrations),[2,this._dispatch(s,o).then((function(e){return u.emit("identify",e.event.userId,e.event.traits,e.event.options),e}))]}))}))},t.prototype.group=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(0===t.length)return this._group;var r=h(this._group).apply(void 0,t),i=r[0],o=r[1],a=r[2],s=r[3];this._group.identify(i,o);var u=this._group.id(),c=this._group.traits(),l=this.eventFactory.group(u,c,a,this.integrations);return this._dispatch(l,s).then((function(t){return e.emit("group",t.event.groupId,t.event.traits,t.event.options),t}))},t.prototype.alias=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r,i,o,s,u=this;return(0,a.Jh)(this,(function(a){return t=m.apply(void 0,e),n=t[0],r=t[1],i=t[2],o=t[3],s=this.eventFactory.alias(n,r,i,this.integrations),[2,this._dispatch(s,o).then((function(e){return u.emit("alias",n,r,e.event.options),e}))]}))}))},t.prototype.screen=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r,i,o,s,u,c=this;return(0,a.Jh)(this,(function(a){return t=p.apply(void 0,e),n=t[0],r=t[1],i=t[2],o=t[3],s=t[4],u=this.eventFactory.screen(n,r,i,o,this.integrations),[2,this._dispatch(u,s).then((function(e){return c.emit("screen",n,r,e.event.properties,e.event.options),e}))]}))}))},t.prototype.trackClick=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,r;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(119).then(n.bind(n,91186))];case 1:return t=i.sent(),[2,(r=t.link).call.apply(r,(0,a.ev)([this],e,!1))]}}))}))},t.prototype.trackLink=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,r;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(119).then(n.bind(n,91186))];case 1:return t=i.sent(),[2,(r=t.link).call.apply(r,(0,a.ev)([this],e,!1))]}}))}))},t.prototype.trackSubmit=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,r;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(119).then(n.bind(n,91186))];case 1:return t=i.sent(),[2,(r=t.form).call.apply(r,(0,a.ev)([this],e,!1))]}}))}))},t.prototype.trackForm=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,r;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return[4,n.e(119).then(n.bind(n,91186))];case 1:return t=i.sent(),[2,(r=t.form).call.apply(r,(0,a.ev)([this],e,!1))]}}))}))},t.prototype.register=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r=this;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return t=v._.system(),n=e.map((function(e){return r.queue.register(t,e,r)})),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}}))}))},t.prototype.deregister=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,a.mG)(this,void 0,void 0,(function(){var t,n,r=this;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return t=v._.system(),n=e.map((function(e){var n=r.queue.plugins.find((function(t){return t.name===e}));if(n)return r.queue.deregister(t,n,r);t.log("warn","plugin ".concat(e," not found"))})),[4,Promise.all(n)];case 1:return i.sent(),[2,t]}}))}))},t.prototype.debug=function(e){return!1===e&&localStorage.getItem("debug")&&localStorage.removeItem("debug"),this._debug=e,this},t.prototype.reset=function(){this._user.reset(),this._group.reset(),this.emit("reset")},t.prototype.timeout=function(e){this.settings.timeout=e},t.prototype._dispatch=function(e,t){return(0,a.mG)(this,void 0,void 0,(function(){var n;return(0,a.Jh)(this,(function(r){return n=new v._(e),(0,y.s)()&&!this.options.retryQueue?[2,n]:[2,x(n,this.queue,this,{callback:t,debug:this._debug,timeout:this.settings.timeout})]}))}))},t.prototype.addSourceMiddleware=function(e){return(0,a.mG)(this,void 0,void 0,(function(){var t=this;return(0,a.Jh)(this,(function(r){switch(r.label){case 0:return[4,this.queue.criticalTasks.run((function(){return(0,a.mG)(t,void 0,void 0,(function(){var t,r,i;return(0,a.Jh)(this,(function(o){switch(o.label){case 0:return[4,Promise.resolve().then(n.bind(n,17677))];case 1:return t=o.sent().sourceMiddlewarePlugin,r={},this.queue.plugins.forEach((function(e){if("destination"===e.type)return r[e.name]=!0})),i=t(e,r),[4,this.register(i)];case 2:return o.sent(),[2]}}))}))}))];case 1:return r.sent(),[2,this]}}))}))},t.prototype.addDestinationMiddleware=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return this.queue.plugins.filter((function(t){return t.name.toLowerCase()===e.toLowerCase()})).forEach((function(e){e.addMiddleware.apply(e,t)})),Promise.resolve(this)},t.prototype.setAnonymousId=function(e){return this._user.anonymousId(e)},t.prototype.queryString=function(e){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){switch(t.label){case 0:return!1===this.options.useQueryString?[2,[]]:[4,n.e(96).then(n.bind(n,56115))];case 1:return[2,(0,t.sent().queryString)(this,e)]}}))}))},t.prototype.use=function(e){return e(this),this},t.prototype.ready=function(e){return void 0===e&&(e=function(e){return e}),(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){return[2,Promise.all(this.queue.plugins.map((function(e){return e.ready?e.ready():Promise.resolve()}))).then((function(t){return e(t),t}))]}))}))},t.prototype.noConflict=function(){return console.warn(J),window.analytics=null!==Y&&void 0!==Y?Y:this,this},t.prototype.normalize=function(e){return console.warn(J),this.eventFactory.normalize(e)},Object.defineProperty(t.prototype,"failedInitializations",{get:function(){return console.warn(J),this.queue.failedInitializations},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VERSION",{get:function(){return W.i},enumerable:!1,configurable:!0}),t.prototype.initialize=function(e,t){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(e){return console.warn(J),[2,Promise.resolve(this)]}))}))},t.prototype.pageview=function(e){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(t){switch(t.label){case 0:return console.warn(J),[4,this.page({path:e})];case 1:return t.sent(),[2,this]}}))}))},Object.defineProperty(t.prototype,"plugins",{get:function(){var e;return console.warn(J),null!==(e=this._plugins)&&void 0!==e?e:{}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Integrations",{get:function(){return console.warn(J),this.queue.plugins.filter((function(e){return"destination"===e.type})).reduce((function(e,t){var n="".concat(t.name.toLowerCase().replace(".","").split(" ").join("-"),"Integration"),r=window[n];if(!r)return e;var i=r.Integration;return i?(e[t.name]=i,e):(e[t.name]=r,e)}),{})},enumerable:!1,configurable:!0}),t.prototype.push=function(e){var t=e.shift();t&&!this[t]||this[t].apply(this,e)},t}(A.Q),ee=n(82263);function te(){var e=document.querySelector("link[rel='canonical']");if(e)return e.getAttribute("href")||void 0}function ne(){var e=te();if(!e)return window.location.pathname;var t=document.createElement("a");return t.href=e,t.pathname.startsWith("/")?t.pathname:"/"+t.pathname}function re(e){void 0===e&&(e="");var t=te();if(t)return t.includes("?")?t:"".concat(t).concat(e);var n=window.location.href,r=n.indexOf("#");return-1===r?n:n.slice(0,r)}function ie(e){var t=e.event;t.context=t.context||{};var n,r,i={path:ne(),referrer:document.referrer,search:location.search,title:document.title,url:re(location.search)},o=void 0;return"page"===t.type&&(o=t.properties&&(n=t.properties,r=Object.keys(i),Object.assign.apply(Object,(0,a.ev)([{}],r.map((function(e){var t;if(n&&Object.prototype.hasOwnProperty.call(n,e))return(t={})[e]=n[e],t})),!1))),t.properties=(0,a.pi)((0,a.pi)((0,a.pi)({},i),t.properties),t.name?{name:t.name}:{})),t.context.page=(0,a.pi)((0,a.pi)((0,a.pi)({},i),o),t.context.page),e}var oe={name:"Page Enrichment",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},type:"before",page:ie,alias:ie,track:ie,identify:ie,group:ie},ae=n(93325),se=n(17677),ue=function(){function e(e,t){this.version="1.0.0",this.alternativeNames=[],this.middleware=[],this.alias=this._createMethod("alias"),this.group=this._createMethod("group"),this.identify=this._createMethod("identify"),this.page=this._createMethod("page"),this.screen=this._createMethod("screen"),this.track=this._createMethod("track"),this.action=t,this.name=e,this.type=t.type,this.alternativeNames.push(t.name)}return e.prototype.addMiddleware=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];"destination"===this.type&&(e=this.middleware).push.apply(e,t)},e.prototype.transform=function(e){return(0,a.mG)(this,void 0,void 0,(function(){var t;return(0,a.Jh)(this,(function(n){switch(n.label){case 0:return[4,(0,se.applyDestinationMiddleware)(this.name,e.event,this.middleware)];case 1:return null===(t=n.sent())&&e.cancel(new O.Y({retry:!1,reason:"dropped by destination middleware"})),[2,new v._(t)]}}))}))},e.prototype._createMethod=function(e){var t=this;return function(n){return(0,a.mG)(t,void 0,void 0,(function(){var t;return(0,a.Jh)(this,(function(r){switch(r.label){case 0:return this.action[e]?(t=n,"destination"!==this.type?[3,2]:[4,this.transform(n)]):[2,n];case 1:t=r.sent(),r.label=2;case 2:return[4,this.action[e](t)];case 3:return r.sent(),[2,n]}}))}))}},e.prototype.isLoaded=function(){return this.action.isLoaded()},e.prototype.ready=function(){return this.action.ready?this.action.ready():Promise.resolve()},e.prototype.load=function(e,t){return this.action.load(e,t)},e.prototype.unload=function(e,t){var n,r;return null===(r=(n=this.action).unload)||void 0===r?void 0:r.call(n,e,t)},e}();function ce(e,t,n,r,i){var o,s,u;return(0,a.mG)(this,void 0,void 0,(function(){var l,f,d,p,h=this;return(0,a.Jh)(this,(function(m){switch(m.label){case 0:return l=[],f=(0,c.Vl)(),d=null!==(s=null===(o=e.middlewareSettings)||void 0===o?void 0:o.routingRules)&&void 0!==s?s:[],p=(null!==(u=e.remotePlugins)&&void 0!==u?u:[]).map((function(e){return(0,a.mG)(h,void 0,void 0,(function(){var o,s,u,c,p,h,m,y,v;return(0,a.Jh)(this,(function(g){switch(g.label){case 0:if(function(e,t){var n=e[t.creationName],r=e[t.name];return!1===e.All&&!n&&!r||!1===n||!1===r}(t,e))return[2];g.label=1;case 1:if(g.trys.push([1,12,,13]),o=new RegExp("https://cdn.segment.(com|build)"),!r)return[3,7];s=e.url.split("/"),u=s[s.length-2],c=e.url.replace(u,btoa(u).replace(/=/g,"")),g.label=2;case 2:return g.trys.push([2,4,,6]),[4,(0,ae.v)(c.replace(o,f))];case 3:return g.sent(),[3,6];case 4:return g.sent(),[4,(0,ae.v)(e.url.replace(o,f))];case 5:return g.sent(),[3,6];case 6:return[3,9];case 7:return[4,(0,ae.v)(e.url.replace(o,f))];case 8:g.sent(),g.label=9;case 9:return p=e.libraryName,"function"!==typeof window[p]?[3,11]:[4,(0,window[p])((0,a.pi)((0,a.pi)({},e.settings),n[e.name]))];case 10:h=g.sent(),function(e){if(!Array.isArray(e))throw new Error("Not a valid list of plugins");var t=["load","isLoaded","name","version","type"];e.forEach((function(e){t.forEach((function(t){var n;if(void 0===e[t])throw new Error("Plugin: ".concat(null!==(n=e.name)&&void 0!==n?n:"unknown"," missing required function ").concat(t))}))}))}(m=Array.isArray(h)?h:[h]),y=d.filter((function(t){return t.destinationName===e.creationName})),m.forEach((function(t){var n=new ue(e.creationName,t);y.length&&i&&"destination"===t.type&&n.addMiddleware(i),l.push(n)})),g.label=11;case 11:return[3,13];case 12:return v=g.sent(),console.warn("Failed to load Remote Plugin",v),[3,13];case 13:return[2]}}))}))})),[4,Promise.all(p)];case 1:return m.sent(),[2,l.filter(Boolean)]}}))}))}var le=n(35798),fe=function(e){var t=!1;window.addEventListener("pagehide",(function(){t||e(t=!0)})),document.addEventListener("visibilitychange",(function(){if("hidden"==document.visibilityState){if(t)return;t=!0}else t=!1;e(t)}))},de=500;function pe(e){return(encodeURI(JSON.stringify(e)).split(/%..|./).length-1)/1024}function he(e,t){var n,r,i,o=[],s=!1,u=null!==(n=null===t||void 0===t?void 0:t.size)&&void 0!==n?n:10,c=null!==(r=null===t||void 0===t?void 0:t.timeout)&&void 0!==r?r:5e3;function f(t){var n;if(0!==t.length){var r=null===(n=t[0])||void 0===n?void 0:n.writeKey,i=t.map((function(e){var t=e;t.sentAt;return(0,a._T)(t,["sentAt"])}));return(0,l.h)("https://".concat(e,"/b"),{keepalive:s,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify({writeKey:r,batch:i,sentAt:(new Date).toISOString()})})}}function d(){return(0,a.mG)(this,void 0,void 0,(function(){var e;return(0,a.Jh)(this,(function(t){return o.length?(e=o,o=[],[2,f(e)]):[2]}))}))}return fe((function(e){if((s=e)&&o.length){var t=function(e){var t=[],n=0;return e.forEach((function(e){pe(t[n])>=64&&n++,t[n]?t[n].push(e):t[n]=[e]})),t}(o).map(f);Promise.all(t).catch(console.error)}})),{dispatch:function(e,t){return(0,a.mG)(this,void 0,void 0,(function(){var e;return(0,a.Jh)(this,(function(n){return o.push(t),e=o.length>=u||function(e){return pe(e)>=de-50}(o),[2,e||s?d():void(i||(i=setTimeout((function(){i=void 0,d().catch(console.error)}),c)))]}))}))}}}var me=n(93911),ye=n(69052);function ve(e,t){return(0,a.mG)(this,void 0,void 0,(function(){var n,r=this;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return n=[],(0,y.s)()?[2,t]:[4,(0,ye.x)((function(){return t.length>0&&!(0,y.s)()}),(function(){return(0,a.mG)(r,void 0,void 0,(function(){var r,i;return(0,a.Jh)(this,(function(o){switch(o.label){case 0:return(r=t.pop())?[4,(0,P.a)(r,e)]:[2];case 1:return i=o.sent(),i instanceof v._||n.push(r),[2]}}))}))}))];case 1:return i.sent(),n.map((function(e){return t.pushWithBackoff(e)})),[2,t]}}))}))}function ge(e,t,n,r){var i=this;e||setTimeout((function(){return(0,a.mG)(i,void 0,void 0,(function(){var e,i;return(0,a.Jh)(this,(function(o){switch(o.label){case 0:return e=!0,[4,ve(n,t)];case 1:return i=o.sent(),e=!1,t.todo>0&&r(e,i,n,r),[2]}}))}))}),5e3*Math.random())}var be=n(41106);function we(e){return(0,a.mG)(this,void 0,void 0,(function(){var t;return(0,a.Jh)(this,(function(n){return(t=navigator.userAgentData)?e?[2,t.getHighEntropyValues(e).catch((function(){return t.toJSON()}))]:[2,t.toJSON()]:[2,void 0]}))}))}function xe(e,t,n){var r,i,o;return(0,a.mG)(this,void 0,void 0,(function(){function s(r){return(0,a.mG)(this,void 0,void 0,(function(){var i,o;return(0,a.Jh)(this,(function(a){return(0,y.s)()?(c.push(r),ge(d,c,w,ge),[2,r]):(f.add(r),i=r.event.type.charAt(0),b&&r.event.context&&(r.event.context.userAgentData=b),o=(0,le.D)(r.event).json(),"track"===r.event.type&&delete o.traits,"alias"===r.event.type&&(o=function(e,t){var n,r,i,o,a=e.user();return t.previousId=null!==(i=null!==(r=null!==(n=t.previousId)&&void 0!==n?n:t.from)&&void 0!==r?r:a.id())&&void 0!==i?i:a.anonymousId(),t.userId=null!==(o=t.userId)&&void 0!==o?o:t.to,delete t.from,delete t.to,t}(e,o)),[2,g.dispatch("".concat(m,"/").concat(i),(0,me.Fv)(e,o,t,n)).then((function(){return r})).catch((function(){return c.pushWithBackoff(r),ge(d,c,w,ge),r})).finally((function(){f.delete(r)}))])}))}))}var u,c,f,d,p,h,m,v,g,b,w;return(0,a.Jh)(this,(function(n){switch(n.label){case 0:window.addEventListener("pagehide",(function(){c.push.apply(c,Array.from(f)),f.clear()})),u=null!==(r=null===t||void 0===t?void 0:t.apiKey)&&void 0!==r?r:"",c=e.options.disableClientPersistence?new I.Z(e.queue.queue.maxAttempts,[]):new C.$(e.queue.queue.maxAttempts,"".concat(u,":dest-Segment.io")),f=new Set,d=!1,p=null!==(i=null===t||void 0===t?void 0:t.apiHost)&&void 0!==i?i:be.U,h=null!==(o=null===t||void 0===t?void 0:t.protocol)&&void 0!==o?o:"https",m="".concat(h,"://").concat(p),v=null===t||void 0===t?void 0:t.deliveryStrategy,g="batching"===(null===v||void 0===v?void 0:v.strategy)?he(p,v.config):(a=null===v||void 0===v?void 0:v.config,{dispatch:function(e,t){return(0,l.h)(e,{keepalive:null===a||void 0===a?void 0:a.keepalive,headers:{"Content-Type":"text/plain"},method:"post",body:JSON.stringify(t)})}}),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,we(e.options.highEntropyValuesClientHints)];case 2:return b=n.sent(),[3,4];case 3:return n.sent(),b=void 0,[3,4];case 4:return w={name:"Segment.io",type:"after",version:"0.1.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:s,identify:s,page:s,alias:s,group:s,screen:s},c.todo&&ge(d,c,w,ge),[2,w]}var a}))}))}var Ae=function(e){function t(t,n){var r=e.call(this,"".concat(t," ").concat(n))||this;return r.field=t,r}return(0,g.ZT)(t,e),t}(Error),ke="is not a string",Ee="is not an object",Te="is nil";function _e(e){var t=".userId/anonymousId/previousId/groupId",n=function(e){var t,n,r;return null!==(r=null!==(n=null!==(t=e.userId)&&void 0!==t?t:e.anonymousId)&&void 0!==n?n:e.groupId)&&void 0!==r?r:e.previousId}(e);if(!(0,f.Gg)(n))throw new Ae(t,Te);if(!(0,f.HD)(n))throw new Ae(t,ke)}function Se(e){if(!(0,f.Gg)(e))throw new Ae("Event",Te);if("object"!==typeof e)throw new Ae("Event",Ee)}function Ce(e){if(!(0,f.HD)(e.type))throw new Ae(".type",ke)}function Ie(e){if(!(0,f.HD)(e.event))throw new Ae(".event",ke)}function Oe(e){var t,n=e.event;Se(n),Ce(n),"track"===n.type&&Ie(n);var r=null!==(t=n.properties)&&void 0!==t?t:n.traits;if("alias"!==n.type&&!(0,f.PO)(r))throw new Ae(".properties","is not an object");return _e(n),e}var Pe={name:"Event Validation",type:"before",version:"1.0.0",isLoaded:function(){return!0},load:function(){return Promise.resolve()},track:Oe,identify:Oe,page:Oe,alias:Oe,group:Oe,screen:Oe},Re=function(e,t,n){n.getCalls(e).forEach((function(e){Le(t,e).catch(console.error)}))},Me=function(e,t){return(0,a.mG)(void 0,void 0,void 0,(function(){var n,r,i;return(0,a.Jh)(this,(function(o){switch(o.label){case 0:n=0,r=t.getCalls("addSourceMiddleware"),o.label=1;case 1:return n<r.length?(i=r[n],[4,Le(e,i).catch(console.error)]):[3,4];case 2:o.sent(),o.label=3;case 3:return n++,[3,1];case 4:return[2]}}))}))},Be=Re.bind(void 0,"on"),Ne=Re.bind(void 0,"setAnonymousId"),Fe=function(e,t){t.toArray().forEach((function(t){setTimeout((function(){Le(e,t).catch(console.error)}),0)}))},De=function(){function e(){this._value={}}return e.prototype.toArray=function(){var e;return(e=[]).concat.apply(e,Object.values(this._value))},e.prototype.getCalls=function(e){var t;return null!==(t=this._value[e])&&void 0!==t?t:[]},e.prototype.push=function(){for(var e=this,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t.forEach((function(t){e._value[t.method]?e._value[t.method].push(t):e._value[t.method]=[t]})),this},e.prototype.clear=function(){return this._value={},this},e}();function Le(e,t){return(0,a.mG)(this,void 0,void 0,(function(){var n,r;return(0,a.Jh)(this,(function(i){switch(i.label){case 0:return i.trys.push([0,3,,4]),t.called?[2,void 0]:(t.called=!0,n=e[t.method].apply(e,t.args),"object"===typeof(o=n)&&null!==o&&"then"in o&&"function"===typeof o.then?[4,n]:[3,2]);case 1:i.sent(),i.label=2;case 2:return t.resolve(n),[3,4];case 3:return r=i.sent(),t.reject(r),[3,4];case 4:return[2]}var o}))}))}var ze=function(){function e(e){var t=this;this._preInitBuffer=new De,this.trackSubmit=this._createMethod("trackSubmit"),this.trackClick=this._createMethod("trackClick"),this.trackLink=this._createMethod("trackLink"),this.pageView=this._createMethod("pageview"),this.identify=this._createMethod("identify"),this.reset=this._createMethod("reset"),this.group=this._createMethod("group"),this.track=this._createMethod("track"),this.ready=this._createMethod("ready"),this.alias=this._createMethod("alias"),this.debug=this._createChainableMethod("debug"),this.page=this._createMethod("page"),this.once=this._createChainableMethod("once"),this.off=this._createChainableMethod("off"),this.on=this._createChainableMethod("on"),this.addSourceMiddleware=this._createMethod("addSourceMiddleware"),this.setAnonymousId=this._createMethod("setAnonymousId"),this.addDestinationMiddleware=this._createMethod("addDestinationMiddleware"),this.screen=this._createMethod("screen"),this.register=this._createMethod("register"),this.deregister=this._createMethod("deregister"),this.user=this._createMethod("user"),this.VERSION=W.i,this._promise=e(this._preInitBuffer),this._promise.then((function(e){var n=e[0],r=e[1];t.instance=n,t.ctx=r})).catch((function(){}))}return e.prototype.then=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).then.apply(e,t)},e.prototype.catch=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).catch.apply(e,t)},e.prototype.finally=function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(e=this._promise).finally.apply(e,t)},e.prototype._createMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];if(t.instance){var o=(n=t.instance)[e].apply(n,r);return Promise.resolve(o)}return new Promise((function(n,i){t._preInitBuffer.push({method:e,args:r,resolve:n,reject:i,called:!1})}))}},e.prototype._createChainableMethod=function(e){var t=this;return function(){for(var n,r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return t.instance?((n=t.instance)[e].apply(n,r),t):(t._preInitBuffer.push({method:e,args:r,resolve:function(){},reject:console.error,called:!1}),t)}},e}();function je(e){var t=e[0],n=e.slice(1);return{method:t,resolve:function(){},reject:console.error,args:n,called:!1}}var Ue,Ze,qe=function(){var e=window.analytics;if(!Array.isArray(e))return[];var t=e.splice(0,e.length);return t.map(je)},He=null!==(Ue=(Ze=(0,K.R)()).__SEGMENT_INSPECTOR__)&&void 0!==Ue?Ue:Ze.__SEGMENT_INSPECTOR__={},Ve=n(93583);function Ge(e,t){var n=null!==t&&void 0!==t?t:(0,c.Vl)();return(0,l.h)("".concat(n,"/v1/projects/").concat(e,"/settings")).then((function(e){return e.ok?e.json():e.text().then((function(e){throw new Error(e)}))})).catch((function(e){throw console.error(e.message),e}))}function We(e,t){return(0,a.mG)(this,void 0,void 0,(function(){return(0,a.Jh)(this,(function(n){switch(n.label){case 0:return t.push.apply(t,qe()),[4,Me(e,t)];case 1:return n.sent(),t.push.apply(t,qe()),Fe(e,t),t.clear(),[2]}}))}))}function Ke(e,t,r,i,o,s,c){var l,f,d;return(0,a.mG)(this,void 0,void 0,(function(){var p,h,m,y,v,g,b,w,x,A,k,E,T=this;return(0,a.Jh)(this,(function(_){switch(_.label){case 0:return function(e){var t,n,r;return"test"!==u().NODE_ENV&&(null!==(r=null===(n=null===(t=e.middlewareSettings)||void 0===t?void 0:t.routingRules)||void 0===n?void 0:n.length)&&void 0!==r?r:0)>0}(t)?[4,n.e(604).then(n.bind(n,66215)).then((function(e){return e.tsubMiddleware(t.middlewareSettings.routingRules)}))]:[3,2];case 1:return h=_.sent(),[3,3];case 2:h=void 0,_.label=3;case 3:return p=h,S=t,"test"!==u().NODE_ENV&&Object.keys(S.integrations).length>1||c.length>0?[4,n.e(464).then(n.bind(n,74345)).then((function(n){return n.ajsDestinations(e,t,r.integrations,i,p,c)}))]:[3,5];case 4:return y=_.sent(),[3,6];case 5:y=[],_.label=6;case 6:return m=y,t.legacyVideoPluginsEnabled?[4,n.e(150).then(n.bind(n,47296)).then((function(e){return e.loadLegacyVideoPlugins(r)}))]:[3,8];case 7:_.sent(),_.label=8;case 8:return(null===(l=i.plan)||void 0===l?void 0:l.track)?[4,n.e(493).then(n.bind(n,84071)).then((function(e){var n;return e.schemaFilter(null===(n=i.plan)||void 0===n?void 0:n.track,t)}))]:[3,10];case 9:return g=_.sent(),[3,11];case 10:g=void 0,_.label=11;case 11:return v=g,b=(0,ee.o)(t,o),[4,ce(t,r.integrations,b,o.obfuscate,p).catch((function(){return[]}))];case 12:return w=_.sent(),x=(0,a.ev)((0,a.ev)((0,a.ev)([Pe,oe],s,!0),m,!0),w,!0),v&&x.push(v),!1===(null===(f=i.integrations)||void 0===f?void 0:f.All)&&!i.integrations["Segment.io"]||i.integrations&&!1===i.integrations["Segment.io"]?[3,14]:(k=(A=x).push,[4,xe(r,b["Segment.io"],t.integrations)]);case 13:k.apply(A,[_.sent()]),_.label=14;case 14:return[4,r.register.apply(r,x)];case 15:return E=_.sent(),Object.entries(null!==(d=t.enabledMiddleware)&&void 0!==d?d:{}).some((function(e){return e[1]}))?[4,n.e(214).then(n.bind(n,30208)).then((function(e){var n=e.remoteMiddlewares;return(0,a.mG)(T,void 0,void 0,(function(){var e,i;return(0,a.Jh)(this,(function(a){switch(a.label){case 0:return[4,n(E,t,o.obfuscate)];case 1:return e=a.sent(),i=e.map((function(e){return r.addSourceMiddleware(e)})),[2,Promise.all(i)]}}))}))}))]:[3,17];case 16:_.sent(),_.label=17;case 17:return[2,E]}var S}))}))}function Je(e,t,n){var r,i,o,s,u,l,f;return void 0===t&&(t={}),(0,a.mG)(this,void 0,void 0,(function(){var d,p,h,m,y,v,g,b,w,x,A;return(0,a.Jh)(this,(function(k){switch(k.label){case 0:return e.cdnURL&&(0,c.UH)(e.cdnURL),null===(r=e.cdnSettings)||void 0===r?[3,1]:(p=r,[3,3]);case 1:return[4,Ge(e.writeKey,e.cdnURL)];case 2:p=k.sent(),k.label=3;case 3:return d=p,t.updateCDNSettings&&(d=t.updateCDNSettings(d)),h=null===(o=null===(i=d.integrations["Segment.io"])||void 0===i?void 0:i.retryQueue)||void 0===o||o,m=(0,a.pi)({retryQueue:h},t),function(e){var t;null===(t=He.attach)||void 0===t||t.call(He,e)}(y=new Q(e,m)),v=null!==(s=e.plugins)&&void 0!==s?s:[],g=null!==(u=e.classicIntegrations)&&void 0!==u?u:[],Ve.j.initRemoteMetrics(d.metrics),function(e,t){t.push.apply(t,qe()),Ne(e,t),Be(e,t)}(y,n),[4,Ke(e.writeKey,d,y,m,t,v,g)];case 4:return b=k.sent(),w=null!==(l=window.location.search)&&void 0!==l?l:"",x=null!==(f=window.location.hash)&&void 0!==f?f:"",(A=w.length?w:x.replace(/(?=#).*(?=\?)/,"")).includes("ajs_")?[4,y.queryString(A).catch(console.error)]:[3,6];case 5:k.sent(),k.label=6;case 6:return y.initialized=!0,y.emit("initialize",e,t),t.initialPageview&&y.page().catch(console.error),[4,We(y,n)];case 7:return k.sent(),[2,[y,b]]}}))}))}var Xe=function(e){function t(){var t=this,n=function(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return{resolve:e,reject:t,promise:n}}(),r=n.promise,i=n.resolve;return t=e.call(this,(function(e){return r.then((function(t){return Je(t[0],t[1],e)}))}))||this,t._resolveLoadStart=function(e,t){return i([e,t])},t}return(0,a.ZT)(t,e),t.prototype.load=function(e,t){return void 0===t&&(t={}),this._resolveLoadStart(e,t),this},t.load=function(e,n){return void 0===n&&(n={}),(new t).load(e,n)},t.standalone=function(e,n){return t.load({writeKey:e},n).then((function(e){return e[0]}))},t}(ze),Ye=n(65535),$e=n(10256),Qe=Object.create,et=Object.defineProperty,tt=Object.getOwnPropertyDescriptor,nt=Object.getOwnPropertyNames,rt=Object.getOwnPropertySymbols,it=Object.getPrototypeOf,ot=Object.prototype.hasOwnProperty,at=Object.prototype.propertyIsEnumerable,st=function(e,t,n){return t in e?et(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n},ut=function(e,t){for(var n in t||(t={}))ot.call(t,n)&&st(e,n,t[n]);if(rt){var r,i=(0,o.Z)(rt(t));try{for(i.s();!(r=i.n()).done;){n=r.value;at.call(t,n)&&st(e,n,t[n])}}catch(a){i.e(a)}finally{i.f()}}return e},ct=function(e,t){var n={};for(var r in e)ot.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&rt){var i,a=(0,o.Z)(rt(e));try{for(a.s();!(i=a.n()).done;){r=i.value;t.indexOf(r)<0&&at.call(e,r)&&(n[r]=e[r])}}catch(s){a.e(s)}finally{a.f()}}return n},lt=function(e,t){return function(){return t||(0,e[nt(e)[0]])((t={exports:{}}).exports,t),t.exports}},ft=function(e,t,n){return n=null!=e?Qe(it(e)):{},function(e,t,n,r){if(t&&"object"==typeof t||"function"==typeof t){var i,a=(0,o.Z)(nt(t));try{var s=function(){var n=i.value;ot.call(e,n)||undefined===n||et(e,n,{get:function(){return t[n]},enumerable:!(r=tt(t,n))||r.enumerable})};for(a.s();!(i=a.n()).done;)s()}catch(u){a.e(u)}finally{a.f()}}return e}(!t&&e&&e.__esModule?n:et(n,"default",{value:e,enumerable:!0}),e)},dt=lt({"../../node_modules/react-is/cjs/react-is.production.min.js":function(e){var t="function"==typeof Symbol&&Symbol.for,n=t?Symbol.for("react.element"):60103,r=t?Symbol.for("react.portal"):60106,i=t?Symbol.for("react.fragment"):60107,o=t?Symbol.for("react.strict_mode"):60108,a=t?Symbol.for("react.profiler"):60114,s=t?Symbol.for("react.provider"):60109,u=t?Symbol.for("react.context"):60110,c=t?Symbol.for("react.async_mode"):60111,l=t?Symbol.for("react.concurrent_mode"):60111,f=t?Symbol.for("react.forward_ref"):60112,d=t?Symbol.for("react.suspense"):60113,p=t?Symbol.for("react.suspense_list"):60120,h=t?Symbol.for("react.memo"):60115,m=t?Symbol.for("react.lazy"):60116,y=t?Symbol.for("react.block"):60121,v=t?Symbol.for("react.fundamental"):60117,g=t?Symbol.for("react.responder"):60118,b=t?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case l:case i:case a:case o:case d:return e;default:switch(e=e&&e.$$typeof){case u:case f:case m:case h:case s:return e;default:return t}}case r:return t}}}function x(e){return w(e)===l}e.AsyncMode=c,e.ConcurrentMode=l,e.ContextConsumer=u,e.ContextProvider=s,e.Element=n,e.ForwardRef=f,e.Fragment=i,e.Lazy=m,e.Memo=h,e.Portal=r,e.Profiler=a,e.StrictMode=o,e.Suspense=d,e.isAsyncMode=function(e){return x(e)||w(e)===c},e.isConcurrentMode=x,e.isContextConsumer=function(e){return w(e)===u},e.isContextProvider=function(e){return w(e)===s},e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},e.isForwardRef=function(e){return w(e)===f},e.isFragment=function(e){return w(e)===i},e.isLazy=function(e){return w(e)===m},e.isMemo=function(e){return w(e)===h},e.isPortal=function(e){return w(e)===r},e.isProfiler=function(e){return w(e)===a},e.isStrictMode=function(e){return w(e)===o},e.isSuspense=function(e){return w(e)===d},e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===l||e===a||e===o||e===d||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===m||e.$$typeof===h||e.$$typeof===s||e.$$typeof===u||e.$$typeof===f||e.$$typeof===v||e.$$typeof===g||e.$$typeof===b||e.$$typeof===y)},e.typeOf=w}}),pt=(lt({"../../node_modules/react-is/cjs/react-is.development.js":function(e){}}),lt({"../../node_modules/react-is/index.js":function(e,t){t.exports=dt()}})),ht=lt({"../../node_modules/hoist-non-react-statics/dist/hoist-non-react-statics.cjs.js":function(e,t){var n=pt(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function s(e){return n.isMemo(e)?o:a[e.$$typeof]||r}a[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[n.Memo]=o;var u=Object.defineProperty,c=Object.getOwnPropertyNames,l=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,d=Object.getPrototypeOf,p=Object.prototype;t.exports=function e(t,n,r){if("string"!=typeof n){if(p){var o=d(n);o&&o!==p&&e(t,o,r)}var a=c(n);l&&(a=a.concat(l(n)));for(var h=s(t),m=s(n),y=0;y<a.length;++y){var v=a[y];if(!(i[v]||r&&r[v]||m&&m[v]||h&&h[v])){var g=f(n,v);try{u(t,v,g)}catch(e){}}}}return t}}}),mt=lt({"../../node_modules/@babel/runtime/helpers/extends.js":function(e,t){function n(){return t.exports=n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t.exports.__esModule=!0,t.exports.default=t.exports,n.apply(this,arguments)}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}});function yt(e){return e?e.charAt(0).toUpperCase()+e.slice(1):""}var vt=function(){function e(e){var t=this;this._insertTag=function(e){var n;n=0===t.tags.length?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling,t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=void 0===e.speedy||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(t);try{n.insertRule(e,n.cssRules.length)}catch(t){}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach((function(e){return e.parentNode&&e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0},e}(),gt="-ms-",bt="-moz-",wt="-webkit-",xt="comm",At="rule",kt="decl",Et="@keyframes",Tt=Math.abs,_t=String.fromCharCode,St=Object.assign;function Ct(e){return e.trim()}function It(e,t,n){return e.replace(t,n)}function Ot(e,t){return e.indexOf(t)}function Pt(e,t){return 0|e.charCodeAt(t)}function Rt(e,t,n){return e.slice(t,n)}function Mt(e){return e.length}function Bt(e){return e.length}function Nt(e,t){return t.push(e),e}var Ft=1,Dt=1,Lt=0,zt=0,jt=0,Ut="";function Zt(e,t,n,r,i,o,a){return{value:e,root:t,parent:n,type:r,props:i,children:o,line:Ft,column:Dt,length:a,return:""}}function qt(e,t){return St(Zt("",null,null,"",null,null,0),e,{length:-e.length},t)}function Ht(){return jt=zt<Lt?Pt(Ut,zt++):0,Dt++,10===jt&&(Dt=1,Ft++),jt}function Vt(){return Pt(Ut,zt)}function Gt(){return zt}function Wt(e,t){return Rt(Ut,e,t)}function Kt(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Jt(e){return Ft=Dt=1,Lt=Mt(Ut=e),zt=0,[]}function Xt(e){return Ut="",e}function Yt(e){return Ct(Wt(zt-1,en(91===e?e+2:40===e?e+1:e)))}function $t(e){for(;(jt=Vt())&&jt<33;)Ht();return Kt(e)>2||Kt(jt)>3?"":" "}function Qt(e,t){for(;--t&&Ht()&&!(jt<48||jt>102||jt>57&&jt<65||jt>70&&jt<97););return Wt(e,Gt()+(t<6&&32==Vt()&&32==Ht()))}function en(e){for(;Ht();)switch(jt){case e:return zt;case 34:case 39:34!==e&&39!==e&&en(jt);break;case 40:41===e&&en(e);break;case 92:Ht()}return zt}function tn(e,t){for(;Ht()&&e+jt!==57&&(e+jt!==84||47!==Vt()););return"/*"+Wt(t,zt-1)+"*"+_t(47===e?e:Ht())}function nn(e){for(;!Kt(Vt());)Ht();return Wt(e,zt)}function rn(e){return Xt(on("",null,null,null,[""],e=Jt(e),0,[0],e))}function on(e,t,n,r,i,o,a,s,u){for(var c=0,l=0,f=a,d=0,p=0,h=0,m=1,y=1,v=1,g=0,b="",w=i,x=o,A=r,k=b;y;)switch(h=g,g=Ht()){case 40:if(108!=h&&58==Pt(k,f-1)){-1!=Ot(k+=It(Yt(g),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:k+=Yt(g);break;case 9:case 10:case 13:case 32:k+=$t(h);break;case 92:k+=Qt(Gt()-1,7);continue;case 47:switch(Vt()){case 42:case 47:Nt(sn(tn(Ht(),Gt()),t,n),u);break;default:k+="/"}break;case 123*m:s[c++]=Mt(k)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:y=0;case 59+l:-1==v&&(k=It(k,/\f/g,"")),p>0&&Mt(k)-f&&Nt(p>32?un(k+";",r,n,f-1):un(It(k," ","")+";",r,n,f-2),u);break;case 59:k+=";";default:if(Nt(A=an(k,t,n,c,l,i,s,b,w=[],x=[],f),o),123===g)if(0===l)on(k,t,A,A,w,o,f,s,x);else switch(99===d&&110===Pt(k,3)?100:d){case 100:case 108:case 109:case 115:on(e,A,A,r&&Nt(an(e,A,A,0,0,i,s,b,i,w=[],f),x),i,x,f,s,r?w:x);break;default:on(k,A,A,A,[""],x,0,s,x)}}c=l=p=0,m=v=1,b=k="",f=a;break;case 58:f=1+Mt(k),p=h;default:if(m<1)if(123==g)--m;else if(125==g&&0==m++&&125==(jt=zt>0?Pt(Ut,--zt):0,Dt--,10===jt&&(Dt=1,Ft--),jt))continue;switch(k+=_t(g),g*m){case 38:v=l>0?1:(k+="\f",-1);break;case 44:s[c++]=(Mt(k)-1)*v,v=1;break;case 64:45===Vt()&&(k+=Yt(Ht())),d=Vt(),l=f=Mt(b=k+=nn(Gt())),g++;break;case 45:45===h&&2==Mt(k)&&(m=0)}}return o}function an(e,t,n,r,i,o,a,s,u,c,l){for(var f=i-1,d=0===i?o:[""],p=Bt(d),h=0,m=0,y=0;h<r;++h)for(var v=0,g=Rt(e,f+1,f=Tt(m=a[h])),b=e;v<p;++v)(b=Ct(m>0?d[v]+" "+g:It(g,/&\f/g,d[v])))&&(u[y++]=b);return Zt(e,t,n,0===i?At:s,u,c,l)}function sn(e,t,n){return Zt(e,t,n,xt,_t(jt),Rt(e,2,-2),0)}function un(e,t,n,r){return Zt(e,t,n,kt,Rt(e,0,r),Rt(e,r+1,-1),r)}function cn(e,t){for(var n="",r=Bt(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function ln(e,t,n,r){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case kt:return e.return=e.return||e.value;case xt:return"";case Et:return e.return=e.value+"{"+cn(e.children,r)+"}";case At:e.value=e.props.join(",")}return Mt(n=cn(e.children,r))?e.return=e.value+"{"+n+"}":""}function fn(e){var t=Bt(e);return function(n,r,i,o){for(var a="",s=0;s<t;s++)a+=e[s](n,r,i,o)||"";return a}}function dn(e){var t=Object.create(null);return function(n){return void 0===t[n]&&(t[n]=e(n)),t[n]}}var pn=function(e,t,n){for(var r=0,i=0;r=i,i=Vt(),38===r&&12===i&&(t[n]=1),!Kt(i);)Ht();return Wt(e,zt)},hn=new WeakMap,mn=function(e){if("rule"===e.type&&e.parent&&!(e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==e.props.length||58===t.charCodeAt(0)||hn.get(n))&&!r){hn.set(e,!0);for(var i=[],o=function(e,t){return Xt(function(e,t){var n=-1,r=44;do{switch(Kt(r)){case 0:38===r&&12===Vt()&&(t[n]=1),e[n]+=pn(zt-1,t,n);break;case 2:e[n]+=Yt(r);break;case 4:if(44===r){e[++n]=58===Vt()?"&\f":"",t[n]=e[n].length;break}default:e[n]+=_t(r)}}while(r=Ht());return e}(Jt(e),t))}(t,i),a=n.props,s=0,u=0;s<o.length;s++)for(var c=0;c<a.length;c++,u++)e.props[u]=i[s]?o[s].replace(/&\f/g,a[c]):a[c]+" "+o[s]}}},yn=function(e){if("decl"===e.type){var t=e.value;108===t.charCodeAt(0)&&98===t.charCodeAt(2)&&(e.return="",e.value="")}};function vn(e,t){switch(function(e,t){return 45^Pt(e,0)?(((t<<2^Pt(e,0))<<2^Pt(e,1))<<2^Pt(e,2))<<2^Pt(e,3):0}(e,t)){case 5103:return wt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return wt+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return wt+e+bt+e+gt+e+e;case 6828:case 4268:return wt+e+gt+e+e;case 6165:return wt+e+gt+"flex-"+e+e;case 5187:return wt+e+It(e,/(\w+).+(:[^]+)/,wt+"box-$1$2"+gt+"flex-$1$2")+e;case 5443:return wt+e+gt+"flex-item-"+It(e,/flex-|-self/,"")+e;case 4675:return wt+e+gt+"flex-line-pack"+It(e,/align-content|flex-|-self/,"")+e;case 5548:return wt+e+gt+It(e,"shrink","negative")+e;case 5292:return wt+e+gt+It(e,"basis","preferred-size")+e;case 6060:return wt+"box-"+It(e,"-grow","")+wt+e+gt+It(e,"grow","positive")+e;case 4554:return wt+It(e,/([^-])(transform)/g,"$1"+wt+"$2")+e;case 6187:return It(It(It(e,/(zoom-|grab)/,wt+"$1"),/(image-set)/,wt+"$1"),e,"")+e;case 5495:case 3959:return It(e,/(image-set\([^]*)/,wt+"$1$`$1");case 4968:return It(It(e,/(.+:)(flex-)?(.*)/,wt+"box-pack:$3"+gt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+wt+e+e;case 4095:case 3583:case 4068:case 2532:return It(e,/(.+)-inline(.+)/,wt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Mt(e)-1-t>6)switch(Pt(e,t+1)){case 109:if(45!==Pt(e,t+4))break;case 102:return It(e,/(.+:)(.+)-([^]+)/,"$1"+wt+"$2-$3$1"+bt+(108==Pt(e,t+3)?"$3":"$2-$3"))+e;case 115:return~Ot(e,"stretch")?vn(It(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(115!==Pt(e,t+1))break;case 6444:switch(Pt(e,Mt(e)-3-(~Ot(e,"!important")&&10))){case 107:return It(e,":",":"+wt)+e;case 101:return It(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+wt+(45===Pt(e,14)?"inline-":"")+"box$3$1"+wt+"$2$3$1"+gt+"$2box$3")+e}break;case 5936:switch(Pt(e,t+11)){case 114:return wt+e+gt+It(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return wt+e+gt+It(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return wt+e+gt+It(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return wt+e+gt+e+e}return e}var gn,bn,wn="undefined"!=typeof document,xn=wn?void 0:(gn=function(){return dn((function(){var e={};return function(t){return e[t]}}))},bn=new WeakMap,function(e){if(bn.has(e))return bn.get(e);var t=gn();return bn.set(e,t),t}),An=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case kt:e.return=vn(e.value,e.length);break;case Et:return cn([qt(e,{value:It(e.value,"@","@"+wt)})],r);case At:if(e.length)return function(e,t){return e.map(t).join("")}(e.props,(function(t){switch(function(e,t){return(e=/(::plac\w+|:read-\w+)/.exec(e))?e[0]:e}(t)){case":read-only":case":read-write":return cn([qt(e,{props:[It(t,/:(read-\w+)/,":-moz-$1")]})],r);case"::placeholder":return cn([qt(e,{props:[It(t,/:(plac\w+)/,":"+wt+"input-$1")]}),qt(e,{props:[It(t,/:(plac\w+)/,":-moz-$1")]}),qt(e,{props:[It(t,/:(plac\w+)/,gt+"input-$1")]})],r)}return""}))}}],kn=function(e){var t=e.key;if(wn&&"css"===t){var n=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(n,(function(e){-1!==e.getAttribute("data-emotion").indexOf(" ")&&(document.head.appendChild(e),e.setAttribute("data-s",""))}))}var r=e.stylisPlugins||An;var i,o,a={},s=[];wn&&(i=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+t+' "]'),(function(e){for(var t=e.getAttribute("data-emotion").split(" "),n=1;n<t.length;n++)a[t[n]]=!0;s.push(e)})));var u,c=[mn,yn];if(wn){var l,f=[ln,(u=function(e){l.insert(e)},function(e){e.root||(e=e.return)&&u(e)})],d=fn(c.concat(r,f));o=function(e,t,n,r){l=n,cn(rn(e?e+"{"+t.styles+"}":t.styles),d),r&&(y.inserted[t.name]=!0)}}else{var p=[ln],h=fn(c.concat(r,p)),m=xn(r)(t);o=function(e,t,n,r){var i=t.name,o=function(e,t){var n=t.name;return void 0===m[n]&&(m[n]=cn(rn(e?e+"{"+t.styles+"}":t.styles),h)),m[n]}(e,t);return void 0===y.compat?(r&&(y.inserted[i]=!0),o):r?void(y.inserted[i]=o):o}}var y={key:t,sheet:new vt({key:t,container:i,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:a,registered:{},insert:o};return y.sheet.hydrate(s),y},En="undefined"!=typeof document,Tn=function(e,t,n){var r=e.key+"-"+t.name;(!1===n||!1===En&&void 0!==e.compat)&&void 0===e.registered[r]&&(e.registered[r]=t.styles)},_n={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Sn=/[A-Z]|^ms/g,Cn=/_EMO_([^_]+?)_([^]*?)_EMO_/g,In=function(e){return 45===e.charCodeAt(1)},On=function(e){return null!=e&&"boolean"!=typeof e},Pn=dn((function(e){return In(e)?e:e.replace(Sn,"-$&").toLowerCase()})),Rn=function(e,t){switch(e){case"animation":case"animationName":if("string"==typeof t)return t.replace(Cn,(function(e,t,n){return Bn={name:t,styles:n,next:Bn},t}))}return 1===_n[e]||In(e)||"number"!=typeof t||0===t?t:t+"px"};function Mn(e,t,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return Bn={name:n.name,styles:n.styles,next:Bn},n.name;if(void 0!==n.styles){var r=n.next;if(void 0!==r)for(;void 0!==r;)Bn={name:r.name,styles:r.styles,next:Bn},r=r.next;return n.styles+";"}return function(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Mn(e,t,n[i])+";";else for(var o in n){var a=n[o];if("object"!=typeof a)null!=t&&void 0!==t[a]?r+=o+"{"+t[a]+"}":On(a)&&(r+=Pn(o)+":"+Rn(o,a)+";");else if(!Array.isArray(a)||"string"!=typeof a[0]||null!=t&&void 0!==t[a[0]]){var s=Mn(e,t,a);switch(o){case"animation":case"animationName":r+=Pn(o)+":"+s+";";break;default:r+=o+"{"+s+"}"}}else for(var u=0;u<a.length;u++)On(a[u])&&(r+=Pn(o)+":"+Rn(o,a[u])+";")}return r}(e,t,n);case"function":if(void 0!==e){var i=Bn,o=n(e);return Bn=i,Mn(e,t,o)}}if(null==t)return n;var a=t[n];return void 0!==a?a:n}var Bn,Nn=/label:\s*([^\s;\n{]+)\s*(;|$)/g,Fn="undefined"!=typeof document,Dn=!!Ye.useInsertionEffect&&Ye.useInsertionEffect,Ln=Fn&&Dn||function(e){return e()},zn="undefined"!=typeof document,jn={}.hasOwnProperty,Un=Ye.createContext("undefined"!=typeof HTMLElement?kn({key:"css"}):null);Un.Provider;var Zn=function(e){return(0,Ye.forwardRef)((function(t,n){var r=(0,Ye.useContext)(Un);return e(t,r,n)}))};zn||(Zn=function(e){return function(t){var n=(0,Ye.useContext)(Un);return null===n?(n=kn({key:"css"}),Ye.createElement(Un.Provider,{value:n},e(t,n))):e(t,n)}});var qn=Ye.createContext({}),Hn=(new Set(["renderWithHooks","processChild","finishClassComponent","renderToString"]),"__EMOTION_TYPE_PLEASE_DO_NOT_USE__"),Vn=function(e,t){var n={};for(var r in t)jn.call(t,r)&&(n[r]=t[r]);return n[Hn]=e,n},Gn=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;Tn(t,n,r);var i=Ln((function(){return function(e,t,n){Tn(e,t,n);var r=e.key+"-"+t.name;if(void 0===e.inserted[t.name]){var i="",o=t;do{var a=e.insert(t===o?"."+r:"",o,e.sheet,!0);En||void 0===a||(i+=a),o=o.next}while(void 0!==o);if(!En&&0!==i.length)return i}}(t,n,r)}));if(!zn&&void 0!==i){for(var o,a=n.name,s=n.next;void 0!==s;)a+=" "+s.name,s=s.next;return Ye.createElement("style",((o={})["data-emotion"]=t.key+" "+a,o.dangerouslySetInnerHTML={__html:i},o.nonce=t.sheet.nonce,o))}return null},Wn=Zn((function(e,t,n){var r=e.css;"string"==typeof r&&void 0!==t.registered[r]&&(r=t.registered[r]);var i=e[Hn],o=[r],a="";"string"==typeof e.className?a=function(e,t,n){var r="";return n.split(" ").forEach((function(n){void 0!==e[n]?t.push(e[n]+";"):r+=n+" "})),r}(t.registered,o,e.className):null!=e.className&&(a=e.className+" ");var s=function(e,t,n){if(1===e.length&&"object"==typeof e[0]&&null!==e[0]&&void 0!==e[0].styles)return e[0];var r=!0,i="";Bn=void 0;var o=e[0];null==o||void 0===o.raw?(r=!1,i+=Mn(n,t,o)):i+=o[0];for(var a=1;a<e.length;a++)i+=Mn(n,t,e[a]),r&&(i+=o[a]);Nn.lastIndex=0;for(var s,u="";null!==(s=Nn.exec(i));)u+="-"+s[1];var c=function(e){for(var t,n=0,r=0,i=e.length;i>=4;++r,i-=4)t=1540483477*(65535&(t=255&e.charCodeAt(r)|(255&e.charCodeAt(++r))<<8|(255&e.charCodeAt(++r))<<16|(255&e.charCodeAt(++r))<<24))+(59797*(t>>>16)<<16),n=1540483477*(65535&(t^=t>>>24))+(59797*(t>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(i){case 3:n^=(255&e.charCodeAt(r+2))<<16;case 2:n^=(255&e.charCodeAt(r+1))<<8;case 1:n=1540483477*(65535&(n^=255&e.charCodeAt(r)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)}(i)+u;return{name:c,styles:i,next:Bn}}(o,void 0,Ye.useContext(qn));a+=t.key+"-"+s.name;var u={};for(var c in e)!jn.call(e,c)||"css"===c||c===Hn||(u[c]=e[c]);return u.ref=n,u.className=a,Ye.createElement(Ye.Fragment,null,Ye.createElement(Gn,{cache:t,serialized:s,isStringTag:"string"==typeof i}),Ye.createElement(i,u))})),Kn=Wn;function Jn(e){var t=e.appName,n=e.writeKey,o=(0,Ye.createContext)(void 0);return{AnalyticsProvider:function(e){var a=this,s=e.children,u=(0,Ye.useState)(n),c=(0,i.Z)(u,2),l=c[0],f=c[1],d=(0,Ye.useMemo)((function(){return Xe.load({writeKey:l})}),[l]),p=(0,Ye.useCallback)((function(e){var n=e,r=n.userJourney,i=n.screen,o=n.action,a=ct(n,["userJourney","screen","action"]),s=[t+yt(r)+yt(i)+yt(o)].join("");return d.page(s,ut({},a))}),[d]),h=(0,Ye.useCallback)((function(e){var n=e,r=n.userJourney,i=n.screen,o=n.action,a=n.control,s=n.controlType,u=ct(n,["userJourney","screen","action","control","controlType"]),c=[t+yt(r)+yt(i),yt(a)+yt(s)+yt(o)].join("_");return d.track(c,ut({},u))}),[d]),m=(0,Ye.useCallback)((function(){return e=a,null,t=(0,r.Z)().mark((function e(){var t,n;return(0,r.Z)().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(t=("undefined"==typeof document?"":document.cookie).split("; ").find((function(e){return e.startsWith("ajs_user_id=")})))){e.next=4;break}return n=t.split("=")[1],e.abrupt("return",d.identify(n));case 4:return e.abrupt("return",Promise.reject(new Error("No user ID found in cookie")));case 5:case"end":return e.stop()}}),e)})),new Promise((function(n,r){var i=function(e){try{a(t.next(e))}catch(e){r(e)}},o=function(e){try{a(t.throw(e))}catch(e){r(e)}},a=function(e){return e.done?n(e.value):Promise.resolve(e.value).then(i,o)};a((t=t.apply(e,null)).next())}));var e,t}),[d]),y=(0,Ye.useMemo)((function(){return{page:p,track:h,identifyFromCookie:m,identify:d.identify,group:d.group,alias:d.alias,updateWriteKey:f}}),[d,p,h,m]);return function(e,t,n){return jn.call(t,"css")?$e.jsx(Kn,Vn(e,t),n):$e.jsx(e,t,n)}(o.Provider,{value:y,children:s})},useAnalytics:function(){var e=(0,Ye.useContext)(o);if(!e)throw new Error("useAnalytics: Store not found");return e}}}ft(mt()),ft(ht())},64847:function(e,t,n){"use strict";n.d(t,{v4:function(){return a}});for(var r,i=256,o=[];i--;)o[i]=(i+256).toString(16).substring(1);function a(){var e,t=0,n="";if(!r||i+16>256){for(r=Array(t=256);t--;)r[t]=256*Math.random()|0;t=i=0}for(;t<16;t++)e=r[i+t],n+=6==t?o[15&e|64]:8==t?o[63&e|128]:o[e],1&t&&t>1&&t<11&&(n+="-");return i++,n}},47699:function(e,t,n){"use strict";n.d(t,{Jh:function(){return s},ZT:function(){return i},ev:function(){return u},mG:function(){return a},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function s(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function u(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError},33621:function(e,t,n){"use strict";n.d(t,{Jh:function(){return u},ZT:function(){return i},_T:function(){return a},ev:function(){return c},mG:function(){return s},pi:function(){return o}});var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)};function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var o=function(){return o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},o.apply(this,arguments)};function a(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){return new(n||(n=Promise))((function(i,o){function a(e){try{u(r.next(e))}catch(t){o(t)}}function s(e){try{u(r.throw(e))}catch(t){o(t)}}function u(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))}function u(e,t){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){a.label=s[1];break}if(6===s[0]&&a.label<i[1]){a.label=i[1],i=s;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(s);break}i[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(u){s=[6,u],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}}Object.create;function c(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i<o;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}Object.create;"function"===typeof SuppressedError&&SuppressedError},53992:function(e,t,n){"use strict";n.d(t,{WE:function(){return i}});var r=n(82206),i=(r.Z.Axios,r.Z.AxiosError,r.Z.CanceledError,r.Z.isCancel,r.Z.CancelToken,r.Z.VERSION,r.Z.all,r.Z.Cancel,r.Z.isAxiosError,r.Z.spread,r.Z.toFormData,r.Z.AxiosHeaders,r.Z.HttpStatusCode);r.Z.formToJSON,r.Z.mergeConfig},82206:function(e,t,n){"use strict";function r(e,t){return function(){return e.apply(t,arguments)}}n.d(t,{Z:function(){return qe}});var i,o=Object.prototype.toString,a=Object.getPrototypeOf,s=(i=Object.create(null),function(e){var t=o.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())}),u=function(e){return e=e.toLowerCase(),function(t){return s(t)===e}},c=function(e){return function(t){return typeof t===e}},l=Array.isArray,f=c("undefined");var d=u("ArrayBuffer");var p=c("string"),h=c("function"),m=c("number"),y=function(e){return null!==e&&"object"===typeof e},v=function(e){if("object"!==s(e))return!1;var t=a(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},g=u("Date"),b=u("File"),w=u("Blob"),x=u("FileList"),A=u("URLSearchParams");function k(e,t){var n,r,i=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,o=void 0!==i&&i;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),l(e))for(n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else{var a,s=o?Object.getOwnPropertyNames(e):Object.keys(e),u=s.length;for(n=0;n<u;n++)a=s[n],t.call(null,e[a],a,e)}}function E(e,t){t=t.toLowerCase();for(var n,r=Object.keys(e),i=r.length;i-- >0;)if(t===(n=r[i]).toLowerCase())return n;return null}var T="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,_=function(e){return!f(e)&&e!==T};var S,C=(S="undefined"!==typeof Uint8Array&&a(Uint8Array),function(e){return S&&e instanceof S}),I=u("HTMLFormElement"),O=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),P=u("RegExp"),R=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};k(n,(function(n,i){!1!==t(n,i,e)&&(r[i]=n)})),Object.defineProperties(e,r)},M="abcdefghijklmnopqrstuvwxyz",B="0123456789",N={DIGIT:B,ALPHA:M,ALPHA_DIGIT:M+M.toUpperCase()+B};var F=u("AsyncFunction"),D={isArray:l,isArrayBuffer:d,isBuffer:function(e){return null!==e&&!f(e)&&null!==e.constructor&&!f(e.constructor)&&h(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||h(e.append)&&("formdata"===(t=s(e))||"object"===t&&h(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&d(e.buffer)},isString:p,isNumber:m,isBoolean:function(e){return!0===e||!1===e},isObject:y,isPlainObject:v,isUndefined:f,isDate:g,isFile:b,isBlob:w,isRegExp:P,isFunction:h,isStream:function(e){return y(e)&&h(e.pipe)},isURLSearchParams:A,isTypedArray:C,isFileList:x,forEach:k,merge:function e(){for(var t=(_(this)&&this||{}).caseless,n={},r=function(r,i){var o=t&&E(n,i)||i;v(n[o])&&v(r)?n[o]=e(n[o],r):v(r)?n[o]=e({},r):l(r)?n[o]=r.slice():n[o]=r},i=0,o=arguments.length;i<o;i++)arguments[i]&&k(arguments[i],r);return n},extend:function(e,t,n){return k(t,(function(t,i){n&&h(t)?e[i]=r(t,n):e[i]=t}),{allOwnKeys:(arguments.length>3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var i,o,s,u={};if(t=t||{},null==e)return t;do{for(o=(i=Object.getOwnPropertyNames(e)).length;o-- >0;)s=i[o],r&&!r(s,e,t)||u[s]||(t[s]=e[s],u[s]=!0);e=!1!==n&&a(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:s,kindOfTest:u,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(l(e))return e;var t=e.length;if(!m(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var i=n.value;t.call(e,i[0],i[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:I,hasOwnProperty:O,hasOwnProp:O,reduceDescriptors:R,freezeMethods:function(e){R(e,(function(t,n){if(h(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];h(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return l(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:E,global:T,isContextDefined:_,ALPHABET:N,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:N.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&h(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(y(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var i=l(n)?[]:{};return k(n,(function(t,n){var o=e(t,r+1);!f(o)&&(i[n]=o)})),t[r]=void 0,i}}return n}(e,0)},isAsyncFn:F,isThenable:function(e){return e&&(y(e)||h(e))&&h(e.then)&&h(e.catch)}},L=n(8821),z=n(85169);function j(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}D.inherits(j,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:D.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var U=j.prototype,Z={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){Z[e]={value:e}})),Object.defineProperties(j,Z),Object.defineProperty(U,"isAxiosError",{value:!0}),j.from=function(e,t,n,r,i,o){var a=Object.create(U);return D.toFlatObject(e,a,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),j.call(a,e.message,t,n,r,i),a.cause=e,a.name=e.name,o&&Object.assign(a,o),a};var q=j,H=n(40712).Buffer;function V(e){return D.isPlainObject(e)||D.isArray(e)}function G(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function W(e,t,n){return e?e.concat(t).map((function(e,t){return e=G(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var K=D.toFlatObject(D,{},null,(function(e){return/^is[A-Z]/.test(e)}));var J=function(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!D.isUndefined(t[e])}))).metaTokens,i=n.visitor||c,o=n.dots,a=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&D.isSpecCompliantForm(t);if(!D.isFunction(i))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(D.isDate(e))return e.toISOString();if(!s&&D.isBlob(e))throw new q("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(e)||D.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):H.from(e):e}function c(e,n,i){var s=e;if(e&&!i&&"object"===typeof e)if(D.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(D.isArray(e)&&function(e){return D.isArray(e)&&!e.some(V)}(e)||(D.isFileList(e)||D.endsWith(n,"[]"))&&(s=D.toArray(e)))return n=G(n),s.forEach((function(e,r){!D.isUndefined(e)&&null!==e&&t.append(!0===a?W([n],r,o):null===a?n:n+"[]",u(e))})),!1;return!!V(e)||(t.append(W(i,n,o),u(e)),!1)}var l=[],f=Object.assign(K,{defaultVisitor:c,convertValue:u,isVisitable:V});if(!D.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!D.isUndefined(n)){if(-1!==l.indexOf(n))throw Error("Circular reference detected in "+r.join("."));l.push(n),D.forEach(n,(function(n,o){!0===(!(D.isUndefined(n)||null===n)&&i.call(t,n,D.isString(o)?o.trim():o,r,f))&&e(n,r?r.concat(o):[o])})),l.pop()}}(e),t};function X(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function Y(e,t){this._pairs=[],e&&J(e,this,t)}var $=Y.prototype;$.append=function(e,t){this._pairs.push([e,t])},$.toString=function(e){var t=e?function(t){return e.call(this,t,X)}:X;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var Q=Y;function ee(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function te(e,t,n){if(!t)return e;var r,i=n&&n.encode||ee,o=n&&n.serialize;if(r=o?o(t,n):D.isURLSearchParams(t)?t.toString():new Q(t,n).toString(i)){var a=e.indexOf("#");-1!==a&&(e=e.slice(0,a)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var ne=function(){function e(){(0,L.Z)(this,e),this.handlers=[]}return(0,z.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){D.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),re={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ie={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:Q,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},isStandardBrowserEnv:function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),isStandardBrowserWebWorkerEnv:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var oe=function(e){function t(e,n,r,i){var o=e[i++],a=Number.isFinite(+o),s=i>=e.length;return o=!o&&D.isArray(r)?r.length:o,s?(D.hasOwnProp(r,o)?r[o]=[r[o],n]:r[o]=n,!a):(r[o]&&D.isObject(r[o])||(r[o]=[]),t(e,n,r[o],i)&&D.isArray(r[o])&&(r[o]=function(e){var t,n,r={},i=Object.keys(e),o=i.length;for(t=0;t<o;t++)r[n=i[t]]=e[n];return r}(r[o])),!a)}if(D.isFormData(e)&&D.isFunction(e.entries)){var n={};return D.forEachEntry(e,(function(e,r){t(function(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map((function(e){return"[]"===e[0]?"":e[1]||e[0]}))}(e),r,n,0)})),n}return null},ae={"Content-Type":void 0};var se={transitional:re,adapter:["xhr","http"],transformRequest:[function(e,t){var n,r=t.getContentType()||"",i=r.indexOf("application/json")>-1,o=D.isObject(e);if(o&&D.isHTMLForm(e)&&(e=new FormData(e)),D.isFormData(e))return i&&i?JSON.stringify(oe(e)):e;if(D.isArrayBuffer(e)||D.isBuffer(e)||D.isStream(e)||D.isFile(e)||D.isBlob(e))return e;if(D.isArrayBufferView(e))return e.buffer;if(D.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(o){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return J(e,new ie.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return ie.isNode&&D.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=D.isFileList(e))||r.indexOf("multipart/form-data")>-1){var a=this.env&&this.env.FormData;return J(n?{"files[]":e}:e,a&&new a,this.formSerializer)}}return o||i?(t.setContentType("application/json",!1),function(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||se.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&D.isString(e)&&(n&&!this.responseType||r)){var i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(o){if(i){if("SyntaxError"===o.name)throw q.from(o,q.ERR_BAD_RESPONSE,this,null,this.response);throw o}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:ie.classes.FormData,Blob:ie.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};D.forEach(["delete","get","head"],(function(e){se.headers[e]={}})),D.forEach(["post","put","patch"],(function(e){se.headers[e]=D.merge(ae)}));var ue=se,ce=n(72771),le=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fe=Symbol("internals");function de(e){return e&&String(e).trim().toLowerCase()}function pe(e){return!1===e||null==e?e:D.isArray(e)?e.map(pe):String(e)}function he(e,t,n,r,i){return D.isFunction(r)?r.call(this,t,n):(i&&(t=n),D.isString(t)?D.isString(r)?-1!==t.indexOf(r):D.isRegExp(r)?r.test(t):void 0:void 0)}var me=function(e,t){function n(e){(0,L.Z)(this,n),e&&this.set(e)}return(0,z.Z)(n,[{key:"set",value:function(e,t,n){var r=this;function i(e,t,n){var i=de(t);if(!i)throw new Error("header name must be a non-empty string");var o=D.findKey(r,i);(!o||void 0===r[o]||!0===n||void 0===n&&!1!==r[o])&&(r[o||t]=pe(e))}var o=function(e,t){return D.forEach(e,(function(e,n){return i(e,n,t)}))};return D.isPlainObject(e)||e instanceof this.constructor?o(e,t):D.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?o(function(e){var t,n,r,i={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||i[t]&&le[t]||("set-cookie"===t?i[t]?i[t].push(n):i[t]=[n]:i[t]=i[t]?i[t]+", "+n:n)})),i}(e),t):null!=e&&i(t,e,n),this}},{key:"get",value:function(e,t){if(e=de(e)){var n=D.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(D.isFunction(t))return t.call(this,r,n);if(D.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=de(e)){var n=D.findKey(this,e);return!(!n||void 0===this[n]||t&&!he(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function i(e){if(e=de(e)){var i=D.findKey(n,e);!i||t&&!he(0,n[i],i,t)||(delete n[i],r=!0)}}return D.isArray(e)?e.forEach(i):i(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var i=t[n];e&&!he(0,this[i],i,e,!0)||(delete this[i],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return D.forEach(this,(function(r,i){var o=D.findKey(n,i);if(o)return t[o]=pe(r),void delete t[i];var a=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(i):String(i).trim();a!==i&&delete t[i],t[a]=pe(r),n[a]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return(e=this.constructor).concat.apply(e,[this].concat(n))}},{key:"toJSON",value:function(e){var t=Object.create(null);return D.forEach(this,(function(n,r){null!=n&&!1!==n&&(t[r]=e&&D.isArray(n)?n.join(", "):n)})),t}},{key:e,value:function(){return Object.entries(this.toJSON())[Symbol.iterator]()}},{key:"toString",value:function(){return Object.entries(this.toJSON()).map((function(e){var t=(0,ce.Z)(e,2);return t[0]+": "+t[1]})).join("\n")}},{key:t,get:function(){return"AxiosHeaders"}}],[{key:"from",value:function(e){return e instanceof this?e:new this(e)}},{key:"concat",value:function(e){for(var t=new this(e),n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return r.forEach((function(e){return t.set(e)})),t}},{key:"accessor",value:function(e){var t=(this[fe]=this[fe]={accessors:{}}).accessors,n=this.prototype;function r(e){var r=de(e);t[r]||(!function(e,t){var n=D.toCamelCase(" "+t);["get","set","has"].forEach((function(r){Object.defineProperty(e,r+n,{value:function(e,n,i){return this[r].call(this,t,e,n,i)},configurable:!0})}))}(n,e),t[r]=!0)}return D.isArray(e)?e.forEach(r):r(e),this}}]),n}(Symbol.iterator,Symbol.toStringTag);me.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),D.freezeMethods(me.prototype),D.freezeMethods(me);var ye=me;function ve(e,t){var n=this||ue,r=t||n,i=ye.from(r.headers),o=r.data;return D.forEach(e,(function(e){o=e.call(n,o,i.normalize(),t?t.status:void 0)})),i.normalize(),o}function ge(e){return!(!e||!e.__CANCEL__)}function be(e,t,n){q.call(this,null==e?"canceled":e,q.ERR_CANCELED,t,n),this.name="CanceledError"}D.inherits(be,q,{__CANCEL__:!0});var we=be;var xe=ie.isStandardBrowserEnv?{write:function(e,t,n,r,i,o){var a=[];a.push(e+"="+encodeURIComponent(t)),D.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),D.isString(r)&&a.push("path="+r),D.isString(i)&&a.push("domain="+i),!0===o&&a.push("secure"),document.cookie=a.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}};function Ae(e,t){return e&&!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)?function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}var ke=ie.isStandardBrowserEnv?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var r=e;return t&&(n.setAttribute("href",r),r=n.href),n.setAttribute("href",r),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=D.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0};var Ee=function(e,t){e=e||10;var n,r=new Array(e),i=new Array(e),o=0,a=0;return t=void 0!==t?t:1e3,function(s){var u=Date.now(),c=i[a];n||(n=u),r[o]=s,i[o]=u;for(var l=a,f=0;l!==o;)f+=r[l++],l%=e;if((o=(o+1)%e)===a&&(a=(a+1)%e),!(u-n<t)){var d=c&&u-c;return d?Math.round(1e3*f/d):void 0}}};function Te(e,t){var n=0,r=Ee(50,250);return function(i){var o=i.loaded,a=i.lengthComputable?i.total:void 0,s=o-n,u=r(s);n=o;var c={loaded:o,total:a,progress:a?o/a:void 0,bytes:s,rate:u||void 0,estimated:u&&a&&o<=a?(a-o)/u:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}var _e={http:null,xhr:"undefined"!==typeof XMLHttpRequest&&function(e){return new Promise((function(t,n){var r,i=e.data,o=ye.from(e.headers).normalize(),a=e.responseType;function s(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}D.isFormData(i)&&(ie.isStandardBrowserEnv||ie.isStandardBrowserWebWorkerEnv?o.setContentType(!1):o.setContentType("multipart/form-data;",!1));var u=new XMLHttpRequest;if(e.auth){var c=e.auth.username||"",l=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";o.set("Authorization","Basic "+btoa(c+":"+l))}var f=Ae(e.baseURL,e.url);function d(){if(u){var r=ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders());!function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new q("Request failed with status code "+n.status,[q.ERR_BAD_REQUEST,q.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}((function(e){t(e),s()}),(function(e){n(e),s()}),{data:a&&"text"!==a&&"json"!==a?u.response:u.responseText,status:u.status,statusText:u.statusText,headers:r,config:e,request:u}),u=null}}if(u.open(e.method.toUpperCase(),te(f,e.params,e.paramsSerializer),!0),u.timeout=e.timeout,"onloadend"in u?u.onloadend=d:u.onreadystatechange=function(){u&&4===u.readyState&&(0!==u.status||u.responseURL&&0===u.responseURL.indexOf("file:"))&&setTimeout(d)},u.onabort=function(){u&&(n(new q("Request aborted",q.ECONNABORTED,e,u)),u=null)},u.onerror=function(){n(new q("Network Error",q.ERR_NETWORK,e,u)),u=null},u.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",r=e.transitional||re;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new q(t,r.clarifyTimeoutError?q.ETIMEDOUT:q.ECONNABORTED,e,u)),u=null},ie.isStandardBrowserEnv){var p=(e.withCredentials||ke(f))&&e.xsrfCookieName&&xe.read(e.xsrfCookieName);p&&o.set(e.xsrfHeaderName,p)}void 0===i&&o.setContentType(null),"setRequestHeader"in u&&D.forEach(o.toJSON(),(function(e,t){u.setRequestHeader(t,e)})),D.isUndefined(e.withCredentials)||(u.withCredentials=!!e.withCredentials),a&&"json"!==a&&(u.responseType=e.responseType),"function"===typeof e.onDownloadProgress&&u.addEventListener("progress",Te(e.onDownloadProgress,!0)),"function"===typeof e.onUploadProgress&&u.upload&&u.upload.addEventListener("progress",Te(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=function(t){u&&(n(!t||t.type?new we(null,e,u):t),u.abort(),u=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));var h=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(f);h&&-1===ie.protocols.indexOf(h)?n(new q("Unsupported protocol "+h+":",q.ERR_BAD_REQUEST,e)):u.send(i||null)}))}};D.forEach(_e,(function(e,t){if(e){try{Object.defineProperty(e,"name",{value:t})}catch(n){}Object.defineProperty(e,"adapterName",{value:t})}}));var Se=function(e){for(var t,n,r=(e=D.isArray(e)?e:[e]).length,i=0;i<r&&(t=e[i],!(n=D.isString(t)?_e[t.toLowerCase()]:t));i++);if(!n){if(!1===n)throw new q("Adapter ".concat(t," is not supported by the environment"),"ERR_NOT_SUPPORT");throw new Error(D.hasOwnProp(_e,t)?"Adapter '".concat(t,"' is not available in the build"):"Unknown adapter '".concat(t,"'"))}if(!D.isFunction(n))throw new TypeError("adapter is not a function");return n};function Ce(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new we(null,e)}function Ie(e){return Ce(e),e.headers=ye.from(e.headers),e.data=ve.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Se(e.adapter||ue.adapter)(e).then((function(t){return Ce(e),t.data=ve.call(e,e.transformResponse,t),t.headers=ye.from(t.headers),t}),(function(t){return ge(t)||(Ce(e),t&&t.response&&(t.response.data=ve.call(e,e.transformResponse,t.response),t.response.headers=ye.from(t.response.headers))),Promise.reject(t)}))}var Oe=function(e){return e instanceof ye?e.toJSON():e};function Pe(e,t){t=t||{};var n={};function r(e,t,n){return D.isPlainObject(e)&&D.isPlainObject(t)?D.merge.call({caseless:n},e,t):D.isPlainObject(t)?D.merge({},t):D.isArray(t)?t.slice():t}function i(e,t,n){return D.isUndefined(t)?D.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function o(e,t){if(!D.isUndefined(t))return r(void 0,t)}function a(e,t){return D.isUndefined(t)?D.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,i,o){return o in t?r(n,i):o in e?r(void 0,n):void 0}var u={url:o,method:o,data:o,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:function(e,t){return i(Oe(e),Oe(t),!0)}};return D.forEach(Object.keys(Object.assign({},e,t)),(function(r){var o=u[r]||i,a=o(e[r],t[r],r);D.isUndefined(a)&&o!==s||(n[r]=a)})),n}var Re="1.4.0",Me={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){Me[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var Be={};Me.transitional=function(e,t,n){function r(e,t){return"[Axios v1.4.0] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new q(r(i," has been removed"+(t?" in "+t:"")),q.ERR_DEPRECATED);return t&&!Be[i]&&(Be[i]=!0,console.warn(r(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}};var Ne={assertOptions:function(e,t,n){if("object"!==typeof e)throw new q("options must be an object",q.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],a=t[o];if(a){var s=e[o],u=void 0===s||a(s,o,e);if(!0!==u)throw new q("option "+o+" must be "+u,q.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new q("Unknown option "+o,q.ERR_BAD_OPTION)}},validators:Me},Fe=Ne.validators,De=function(){function e(t){(0,L.Z)(this,e),this.defaults=t,this.interceptors={request:new ne,response:new ne}}return(0,z.Z)(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n,r=t=Pe(this.defaults,t),i=r.transitional,o=r.paramsSerializer,a=r.headers;void 0!==i&&Ne.assertOptions(i,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean)},!1),null!=o&&(D.isFunction(o)?t.paramsSerializer={serialize:o}:Ne.assertOptions(o,{encode:Fe.function,serialize:Fe.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase(),(n=a&&D.merge(a.common,a[t.method]))&&D.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=ye.concat(n,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var c,l=[];this.interceptors.response.forEach((function(e){l.push(e.fulfilled,e.rejected)}));var f,d=0;if(!u){var p=[Ie.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,l),f=p.length,c=Promise.resolve(t);d<f;)c=c.then(p[d++],p[d++]);return c}f=s.length;var h=t;for(d=0;d<f;){var m=s[d++],y=s[d++];try{h=m(h)}catch(v){y.call(this,v);break}}try{c=Ie.call(this,h)}catch(v){return Promise.reject(v)}for(d=0,f=l.length;d<f;)c=c.then(l[d++],l[d++]);return c}},{key:"getUri",value:function(e){return te(Ae((e=Pe(this.defaults,e)).baseURL,e.url),e.params,e.paramsSerializer)}}]),e}();D.forEach(["delete","get","head","options"],(function(e){De.prototype[e]=function(t,n){return this.request(Pe(n||{},{method:e,url:t,data:(n||{}).data}))}})),D.forEach(["post","put","patch"],(function(e){function t(t){return function(n,r,i){return this.request(Pe(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}De.prototype[e]=t(),De.prototype[e+"Form"]=t(!0)}));var Le=De,ze=function(){function e(t){if((0,L.Z)(this,e),"function"!==typeof t)throw new TypeError("executor must be a function.");var n;this.promise=new Promise((function(e){n=e}));var r=this;this.promise.then((function(e){if(r._listeners){for(var t=r._listeners.length;t-- >0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,i){r.reason||(r.reason=new we(e,t,i),n(r.reason))}))}return(0,z.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}();var je={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(je).forEach((function(e){var t=(0,ce.Z)(e,2),n=t[0],r=t[1];je[r]=n}));var Ue=je;var Ze=function e(t){var n=new Le(t),i=r(Le.prototype.request,n);return D.extend(i,Le.prototype,n,{allOwnKeys:!0}),D.extend(i,n,null,{allOwnKeys:!0}),i.create=function(n){return e(Pe(t,n))},i}(ue);Ze.Axios=Le,Ze.CanceledError=we,Ze.CancelToken=ze,Ze.isCancel=ge,Ze.VERSION=Re,Ze.toFormData=J,Ze.AxiosError=q,Ze.Cancel=Ze.CanceledError,Ze.all=function(e){return Promise.all(e)},Ze.spread=function(e){return function(t){return e.apply(null,t)}},Ze.isAxiosError=function(e){return D.isObject(e)&&!0===e.isAxiosError},Ze.mergeConfig=Pe,Ze.AxiosHeaders=ye,Ze.formToJSON=function(e){return oe(D.isHTMLForm(e)?new FormData(e):e)},Ze.HttpStatusCode=Ue,Ze.default=Ze;var qe=Ze},72954:function(e,t,n){"use strict";function r(e,t,n){t.split&&(t=t.split("."));for(var r,i,o=0,a=t.length,s=e;o<a&&"__proto__"!==(i=t[o++])&&"constructor"!==i&&"prototype"!==i;)s=s[i]=o===a?n:typeof(r=s[i])===typeof t?r:0*t[o]!==0||~(""+t[o]).indexOf(".")?{}:[]}n.d(t,{N:function(){return r}})},29807:function(e,t){"use strict";function n(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}var r=function e(t,r){function i(e,i,o){if("undefined"!==typeof document){"number"===typeof(o=n({},r,o)).expires&&(o.expires=new Date(Date.now()+864e5*o.expires)),o.expires&&(o.expires=o.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var s in o)o[s]&&(a+="; "+s,!0!==o[s]&&(a+="="+o[s].split(";")[0]));return document.cookie=e+"="+t.write(i,e)+a}}return Object.create({set:i,get:function(e){if("undefined"!==typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),a=o.slice(1).join("=");try{var s=decodeURIComponent(o[0]);if(r[s]=t.read(a,s),e===s)break}catch(u){}}return e?r[e]:r}},remove:function(e,t){i(e,"",n({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,n({},this.attributes,t))},withConverter:function(t){return e(n({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(r)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});t.Z=r},53449:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?"".concat(i,": ").concat(n):i;throw new Error(o)}}},77650:function(e){"use strict";e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"IApproveAndCall","sourceName":"contracts/interfaces/IApproveAndCall.sol","abi":[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveMax","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveMaxMinusOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveZeroThenMax","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveZeroThenMaxMinusOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"callPositionManager","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getApprovalType","outputs":[{"internalType":"enum IApproveAndCall.ApprovalType","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"}],"internalType":"struct IApproveAndCall.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct IApproveAndCall.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","linkReferences":{},"deployedLinkReferences":{}}')},83217:function(e){"use strict";e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"IMulticallExtended","sourceName":"contracts/interfaces/IMulticallExtended.sol","abi":[{"inputs":[{"internalType":"bytes32","name":"previousBlockhash","type":"bytes32"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","linkReferences":{},"deployedLinkReferences":{}}')},35953:function(e){"use strict";e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"IPeripheryPaymentsWithFeeExtended","sourceName":"contracts/interfaces/IPeripheryPaymentsWithFeeExtended.sol","abi":[{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"}],"name":"pull","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[],"name":"refundETH","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"}],"name":"sweepToken","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"sweepTokenWithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"sweepTokenWithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"}],"name":"unwrapWETH9","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"unwrapWETH9WithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountMinimum","type":"uint256"},{"internalType":"uint256","name":"feeBips","type":"uint256"},{"internalType":"address","name":"feeRecipient","type":"address"}],"name":"unwrapWETH9WithFee","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"value","type":"uint256"}],"name":"wrapETH","outputs":[],"stateMutability":"payable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","linkReferences":{},"deployedLinkReferences":{}}')},84982:function(e){"use strict";e.exports=JSON.parse('{"_format":"hh-sol-artifact-1","contractName":"ISwapRouter02","sourceName":"contracts/interfaces/ISwapRouter02.sol","abi":[{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveMax","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveMaxMinusOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveZeroThenMax","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"}],"name":"approveZeroThenMaxMinusOne","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes","name":"data","type":"bytes"}],"name":"callPositionManager","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"}],"internalType":"struct IV3SwapRouter.ExactInputParams","name":"params","type":"tuple"}],"name":"exactInput","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMinimum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IV3SwapRouter.ExactInputSingleParams","name":"params","type":"tuple"}],"name":"exactInputSingle","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"bytes","name":"path","type":"bytes"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"}],"internalType":"struct IV3SwapRouter.ExactOutputParams","name":"params","type":"tuple"}],"name":"exactOutput","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"tokenIn","type":"address"},{"internalType":"address","name":"tokenOut","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMaximum","type":"uint256"},{"internalType":"uint160","name":"sqrtPriceLimitX96","type":"uint160"}],"internalType":"struct IV3SwapRouter.ExactOutputSingleParams","name":"params","type":"tuple"}],"name":"exactOutputSingle","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"getApprovalType","outputs":[{"internalType":"enum IApproveAndCall.ApprovalType","name":"","type":"uint8"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint256","name":"tokenId","type":"uint256"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"}],"internalType":"struct IApproveAndCall.IncreaseLiquidityParams","name":"params","type":"tuple"}],"name":"increaseLiquidity","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"components":[{"internalType":"address","name":"token0","type":"address"},{"internalType":"address","name":"token1","type":"address"},{"internalType":"uint24","name":"fee","type":"uint24"},{"internalType":"int24","name":"tickLower","type":"int24"},{"internalType":"int24","name":"tickUpper","type":"int24"},{"internalType":"uint256","name":"amount0Min","type":"uint256"},{"internalType":"uint256","name":"amount1Min","type":"uint256"},{"internalType":"address","name":"recipient","type":"address"}],"internalType":"struct IApproveAndCall.MintParams","name":"params","type":"tuple"}],"name":"mint","outputs":[{"internalType":"bytes","name":"result","type":"bytes"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes32","name":"previousBlockhash","type":"bytes32"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"bytes[]","name":"data","type":"bytes[]"}],"name":"multicall","outputs":[{"internalType":"bytes[]","name":"results","type":"bytes[]"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermit","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowed","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"nonce","type":"uint256"},{"internalType":"uint256","name":"expiry","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitAllowedIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"address","name":"token","type":"address"},{"internalType":"uint256","name":"value","type":"uint256"},{"internalType":"uint256","name":"deadline","type":"uint256"},{"internalType":"uint8","name":"v","type":"uint8"},{"internalType":"bytes32","name":"r","type":"bytes32"},{"internalType":"bytes32","name":"s","type":"bytes32"}],"name":"selfPermitIfNecessary","outputs":[],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"},{"internalType":"uint256","name":"amountOutMin","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"swapExactTokensForTokens","outputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"uint256","name":"amountOut","type":"uint256"},{"internalType":"uint256","name":"amountInMax","type":"uint256"},{"internalType":"address[]","name":"path","type":"address[]"},{"internalType":"address","name":"to","type":"address"}],"name":"swapTokensForExactTokens","outputs":[{"internalType":"uint256","name":"amountIn","type":"uint256"}],"stateMutability":"payable","type":"function"},{"inputs":[{"internalType":"int256","name":"amount0Delta","type":"int256"},{"internalType":"int256","name":"amount1Delta","type":"int256"},{"internalType":"bytes","name":"data","type":"bytes"}],"name":"uniswapV3SwapCallback","outputs":[],"stateMutability":"nonpayable","type":"function"}],"bytecode":"0x","deployedBytecode":"0x","linkReferences":{},"deployedLinkReferences":{}}')}}]);