1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5811],{39016:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletSDK=void 0;let r=n(52719),i=n(82704),s=n(49682),o=n(83143),u=n(31405),c=n(16570),a=n(27472),l=n(94643),h=n(43604);class d{constructor(e){var t,n,r;let o;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let l=e.linkAPIUrl||i.LINK_API_URL;if(o=e.uiConstructor?e.uiConstructor:e=>new u.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this._overrideIsCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this._diagnosticLogger={log:e.eventListener.onEvent}:this._diagnosticLogger=e.diagnosticLogger,this._reloadOnDisconnect=null===(r=e.reloadOnDisconnect)||void 0===r||r;let f=new URL(l),p=`${f.protocol}//${f.host}`;if(this._storage=new s.ScopedLocalStorage(`-walletlink:${p}`),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new a.WalletSDKRelayEventManager,this._relay=new c.WalletSDKRelay({linkAPIUrl:l,version:h.LIB_VERSION,darkMode:!!e.darkMode,uiConstructor:o,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode))return;this._relay.attachUI()}makeWeb3Provider(e="",t=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,t),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;let r=this.coinbaseBrowser;if(r)return r;let i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:t,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,t){var n;this._appName=e||"DApp",this._appLogoUrl=t||(0,l.getFavicon)();let r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let t=this.walletExtension;t?t.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,t;return null!==(t=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==t?t:null}getCoinbaseWalletLogo(e,t=240){return(0,r.walletLogo)(e,t)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,t;try{let n=null!==(e=window.ethereum)&&void 0!==e?e:null===(t=window.top)||void 0===t?void 0:t.ethereum;if(!n)return;if("isCoinbaseBrowser"in n&&n.isCoinbaseBrowser)return n;return}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}}t.CoinbaseWalletSDK=d,d.VERSION=h.LIB_VERSION},52719:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.walletLogo=void 0,t.walletLogo=(e,t)=>{switch(e){case"standard":default:return`data:image/svg+xml,%3Csvg width='${t}' height='${t}' viewBox='0 0 1024 1024' fill='none' xmlns='http://www.w3.org/2000/svg'%3E %3Crect width='1024' height='1024' fill='%230052FF'/%3E %3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M152 512C152 710.823 313.177 872 512 872C710.823 872 872 710.823 872 512C872 313.177 710.823 152 512 152C313.177 152 152 313.177 152 512ZM420 396C406.745 396 396 406.745 396 420V604C396 617.255 406.745 628 420 628H604C617.255 628 628 617.255 628 604V420C628 406.745 617.255 396 604 396H420Z' fill='white'/%3E %3C/svg%3E `;case"circle":return`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${t}' height='${t}
1' viewBox='0 0 999.81 999.81'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052fe;%7D.cls-2%7Bfill:%23fefefe;%7D.cls-3%7Bfill:%230152fe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M655-115.9h56c.83,1.59,2.36.88,3.56,1a478,478,0,0,1,75.06,10.42C891.4-81.76,978.33-32.58,1049.19,44q116.7,126,131.94,297.61c.38,4.14-.34,8.53,1.78,12.45v59c-1.58.84-.91,2.35-1,3.56a482.05,482.05,0,0,1-10.38,74.05c-24,106.72-76.64,196.76-158.83,268.93s-178.18,112.82-287.2,122.6c-4.83.43-9.86-.25-14.51,1.77H654c-1-1.68-2.69-.91-4.06-1a496.89,496.89,0,0,1-105.9-18.59c-93.54-27.42-172.78-77.59-236.91-150.94Q199.34,590.1,184.87,426.58c-.47-5.19.25-10.56-1.77-15.59V355c1.68-1,.91-2.7,1-4.06a498.12,498.12,0,0,1,18.58-105.9c26-88.75,72.64-164.9,140.6-227.57q126-116.27,297.21-131.61C645.32-114.57,650.35-113.88,655-115.9Zm377.92,500c0-192.44-156.31-349.49-347.56-350.15-194.13-.68-350.94,155.13-352.29,347.42-1.37,194.55,155.51,352.1,348.56,352.47C876.15,734.23,1032.93,577.84,1032.93,384.11Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-2' d='M1032.93,384.11c0,193.73-156.78,350.12-351.29,349.74-193-.37-349.93-157.92-348.56-352.47C334.43,189.09,491.24,33.28,685.37,34,876.62,34.62,1032.94,191.67,1032.93,384.11ZM683,496.81q43.74,0,87.48,0c15.55,0,25.32-9.72,25.33-25.21q0-87.48,0-175c0-15.83-9.68-25.46-25.59-25.46H595.77c-15.88,0-25.57,9.64-25.58,25.46q0,87.23,0,174.45c0,16.18,9.59,25.7,25.84,25.71Z' transform='translate(-183.1 115.9)'/%3E%3Cpath class='cls-3' d='M683,496.81H596c-16.25,0-25.84-9.53-25.84-25.71q0-87.23,0-174.45c0-15.82,9.7-25.46,25.58-25.46H770.22c15.91,0,25.59,9.63,25.59,25.46q0,87.47,0,175c0,15.49-9.78,25.2-25.33,25.21Q726.74,496.84,683,496.81Z' transform='translate(-183.1 115.9)'/%3E%3C/svg%3E`;case"text":return`data:image/svg+xml,%3Csvg width='${t}' height='${(.1*t).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V
152.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return`data:image/svg+xml,%3Csvg width='${t}' height='${(.25*t).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%230052ff;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`;case"textLight":return`data:image/svg+xml,%3Csvg width='${t}' height='${(.1*t).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 528.15 53.64'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Ctitle%3ECoinbase_Wordmark_SubBrands_ALL%3C/title%3E%3Cpath class='cls-1' d='M164.45,15a15,15,0,0,0-11.74,5.4V0h-8.64V52.92h8.5V48a15,15,0,0,0,11.88,5.62c10.37,0,18.21-8.21,18.21-19.3S174.67,15,164.45,15Zm-1.3,30.67c-6.19,0-10.73-4.83-10.73-11.31S157,23,163.22,23s10.66,4.82,10.66,11.37S169.34,45.65,163.15,45.65Zm83.31-14.91-6.34-.93c-3-.43-5.18-1.44-5.18-3.82,0-2.59,2.8-3.89,6.62-3.89,4.18,0,6.84,1.8,7.42,4.76h8.35c-.94-7.49-6.7-11.88-15.55-11.88-9.15,0-15.2,4.68-15.2,11.3,0,6.34,4,10,12,11.16l6.33.94c3.1.43,4.83,1.65,4.83,4,0,2.95-3,4.17-7.2,4.17-5.12,0-8-2.09-8.43-5.25h-8.49c.79,7.27,6.48,12.38,16.84,12.38,9.44,0,15.7-4.32,15.7-11.74C258.12,35.28,253.58,31.82,246.46,30.74Zm-27.65-2.3c0-8.06-4.9-13.46-15.27-13.46-9.79,0-15.26,5-16.34,12.6h8.57c.43-3,2.73-5.4,7.63-5.4,4.39,0,6.55,1.94,6.55,4.32,0,3.09-4,3.88-8.85,4.39-6.63.72-14.84,3-14.84,11.66,0,6.7,5,11,12.89,11,6.19,0,10.08-2.59,12-6.7.28,3.67,3,6.05,6.84,6.05h5v-7.7h-4.25Zm-8.5,9.36c0,5-4.32,8.64-9.57,8.64-3.24,0-6-1.37-6-4.25,0-3.67,4.39-4.68,8.42-5.11s6-1.22,7.13-2.88ZM281.09,15c-11.09,0-19.23,8.35-19.23,19.36,0,11.6,8.72,19.3,19.37,19.3,9,0,16.06-5.33,17.86-12.89h-9c-1.3,3.31-4.47,5.19-8.71,5.19-5.55,0-9.72-3.46-10.66-9.51H299.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return`data:image/svg+xml,%3Csvg width='${t}' height='${(.25*t).toFixed(2)}' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 308.44 77.61'%3E%3Cdefs%3E%3Cstyle%3E.cls-1%7Bfill:%23fefefe;%7D%3C/style%3E%3C/defs%3E%3Cpath class='cls-1' d='M142.94,20.2l-7.88,29H135l-8.15-29h-5.55l-8,28.93h-.11l-8-28.87H99.27l10.84,37.27h5.44l8.2-29.24h.1l8.41,29.24h5.66L148.39,20.2Zm17.82,0L146.48,57.42h5.82l3.28-8.88h16.65l3.34,8.88h6L167.16,20.2Zm-3.44,23.52,6.45-17.55h.11l6.56,17.55ZM278.2,20.2v4.86h12.32V57.42h5.6V25.06h12.32V20.2ZM248.11,57.42h25.54V52.55H253.71V40.61h18.35V35.85H253.71V25.06h19.94V20.2H248.11ZM223.26,20.2h-5.61V57.42H242V52.55H223.26Zm-30.46,0h-5.6V57.42h24.32V52.55H192.8Zm-154,38A19.41,19.41,0,1,1,57.92,35.57H77.47a38.81,38.8
11,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},57816:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},95558:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseAppSteps=t.CoinbaseWalletSteps=t.ConnectItem=t.ConnectContent=void 0;let i=r(n(86010)),s=n(6400),o=n(30396),u=n(94643),c=n(43604),a=n(37598),l=r(n(417)),h=r(n(12348)),d=n(18646),f=r(n(35666)),p=r(n(30019)),b=n(67494),y=n(70381),g=n(88727),m=r(n(57816)),v={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:x},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:E}},_=e=>"coinbase-app"===e?f.default:p.default,w=e=>"light"===e?"#FFFFFF":"#0A0B0D";function S({title:e,description:t,icon:n,selected:r,theme:o,onClick:u}){return(0,s.h)("div",{onClick:u,class:(0,i.default)("-cbwsdk-connect-item",o,{selected:r})},(0,s.h)("div",null,(0,s.h)("img",{src:n,alt:e})),(0,s.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,s.h)("h3",{class:"-cbwsdk-connect-item-title"},e),(0,s.h)("p",{class:"-cbwsdk-connect-item-description"},t)))}function x({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"Scan")," "),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(d.QRCodeIcon,{fill:w(e)})))))}function E({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,s.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",e)},(0,s.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,s.h)("span",null,"Tap ",(0,s.h)("strong",null,"More")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(b.StatusDotIcon,{fill:w(e)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(d.QRCodeIcon,{fill:w(e)})))))}t.ConnectContent=function(e){let{theme:t}=e,[n,r]=(0,o.useState)("coinbase-wallet-app"),l=(0,o.useCallback)(e=>{r(e)},[]),h=(0,u.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId),d=v[n];if(!n)return null;let f=d.steps,p="coinbase-app"===n;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",t)},(0,s.h)("style",null,m.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",t)},"Scan to connect with one of our mobile apps"),e.onCancel&&(0,s.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:e.onCancel},(0,s.h)(a.CloseIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,s.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,s.h)("div",null,Object.entries(v).map(([e,r])=>(0,s.h)(S,{key:e,title:r.title,description:r.description,icon:r.icon,selected:n===e,onClick:()=>l(e),theme:t}))),p&&(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",t)},"Donât see a ",(0,s.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,s.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,s.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,s.h)(y.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:_(n),width:25,height:25}}),(0,s.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:c.LIB_VERSION}),(0,s.h)("input",{type:"hidden",value:h})),(0,s.h)(f,{theme:t}),!e.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",t)},(0,s.h)(g.Spinner,{size:36,color:"dark"===t?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))))},t.ConnectItem=S,t.CoinbaseWalletSteps=x,t.CoinbaseAppSteps=E},96956:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},98845: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.ConnectDialog=void 0;let i=r(n(86010)),s=n(6400),o=n(30396),u=n(95558),c=n(26868),a=r(n(96956));t.ConnectDialog=e=>{let{isOpen:t,darkMode:n}=e,[r,l]=(0,o.useState)(!t),[h,d]=(0,o.useState)(!t);(0,o.useEffect)(()=>{let e=[window.setTimeout(()=>{d(!t)},10)];return t?l(!1):e.push(window.setTimeout(()=>{l(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[e.isOpen]);let f=n?"dark":"light";return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",r&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,a.default),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,s.h)(u.ConnectContent,{theme:f,version:e.version,sessionId:e.sessionId,sessionSecret:e.sessionSecret,linkAPIUrl:e.linkAPIUrl,isConnected:e.isConnected,isParentConnection:e.isParentConnection,chainId:e.chainId,onCancel:e.onCancel}),(0,s.h)(c.TryExtensionContent,{theme:f}))))}},27759:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LinkFlow=void 0;let r=n(6400),i=n(46949),s=n(98845);t.LinkFlow=class{constructor(e){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=e.darkMode,this.version=e.version,this.sessionId=e.sessionId,this.sessionSecret=e.sessionSecret,this.linkAPIUrl=e.linkAPIUrl,this.isParentConnection=e.isParentConnection,this.connected$=e.connected$,this.chainId$=e.chainId$}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",e.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe(e=>{this.isConnected!==e&&(this.isConnected=e,this.render())})),this.subscriptions.add(this.chainId$.subscribe(e=>{this.chainId!==e&&(this.chainId=e,this.render())}))}detach(){var e;this.root&&(this.subscriptions.unsubscribe(),(0,r.render)(null,this.root),null===(e=this.root.parentElement)||void 0===e||e.removeChild(this.root))}setConnectDisabled(e){this.connectDisabled=e}open(e){this.isOpen=!0,this.onCancel=e.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;let e=this.extensionUI$.subscribe(()=>{this.root&&(0,r.render)((0,r.h)(s.ConnectDialog,{darkMode:this.darkMode,version:this.version,sessionId:this.sessionId,sessionSecret:this.sessionSecret,linkAPIUrl:this.linkAPIUrl,isOpen:this.isOpen,isConnected:this.isConnected,isParentConnection:this.isParentConnection,chainId:this.chainId,onCancel:this.onCancel,connectDisabled:this.connectDisabled}),this.root)});this.subscriptions.add(e)}}},70381:function(e,t,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.QRCode=void 0;let s=n(6400),o=n(30396),u=i(n(7713));t.QRCode=e=>{let[t,n]=(0,o.useState)("");return(0,o.useEffect)(()=>{var t,i;let s=new u.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(t=e.width)&&void 0!==t?t:256,height:null!==(i=e.height)&&void 0!==i?i:256,padding:0,image:e.image}),o=r.from(s.svg(),"utf8").toString("base64");n(`data:image/svg+xml;base64,${o}`)}),t?(0,s.h)("img",{src:t,alt:"QR Code"}):null}},24325:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},19199: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.SnackbarInstance=t.SnackbarContainer=t.Snackbar=void 0;let i=r(n(86010)),s=n(6400),o=n(30396),u=r(n(24325));t.Snackbar=class{constructor(e){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=e.darkMode}attach(e){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",e.appendChild(this.root),this.render()}presentItem(e){let t=this.nextItemKey++;return this.items.set(t,e),this.render(),()=>{this.items.delete(t),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(t.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,s.h)(t.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}},t.SnackbarContainer=e=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,u.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},e.children)),t.SnackbarInstance=({autoExpand:e,message:t,menuItems:n,appSrc:r})=>{let[u,c]=(0,o.useState)(!0),[a,l]=(0,o.useState)(null!=e&&e);return(0,o.useEffect)(()=>{let e=[window.setTimeout(()=>{c(!1)},1),window.setTimeout(()=>{l(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",u&&"-cbwsdk-snackbar-instance-hidden",a&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{l(!a)}},(0,s.h)("img",{src:"coinbase-app"===r?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyA
1wLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},t),(0,s.h)("div",{class:"-gear-container"},!a&&(0,s.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,s.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map((e,t)=>(0,s.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:t},(0,s.h)("svg",{width:e.svgWidth,height:e.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,s.h)("path",{"fill-rule":e.defaultFillRule,"clip-rule":e.defaultClipRule,d:e.path,fill:"#AAAAAA"})),(0,s.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},22061:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-spinner{display:inline-block}.-cbwsdk-css-reset .-cbwsdk-spinner svg{display:inline-block;animation:2s linear infinite -cbwsdk-spinner-svg}.-cbwsdk-css-reset .-cbwsdk-spinner svg circle{animation:1.9s ease-in-out infinite both -cbwsdk-spinner-circle;display:block;fill:rgba(0,0,0,0);stroke-dasharray:283;stroke-dashoffset:280;stroke-linecap:round;stroke-width:10px;transform-origin:50% 50%}@keyframes -cbwsdk-spinner-svg{0%{transform:rotateZ(0deg)}100%{transform:rotateZ(360deg)}}@keyframes -cbwsdk-spinner-circle{0%,25%{stroke-dashoffset:280;transform:rotate(0)}50%,75%{stroke-dashoffset:75;transform:rotate(45deg)}100%{stroke-dashoffset:280;transform:rotate(360deg)}}"},88727:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
1dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.Spinner=void 0;let i=n(6400),s=r(n(22061));t.Spinner=e=>{var t;let n=null!==(t=e.size)&&void 0!==t?t:64,r=e.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,s.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},5157:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=".-cbwsdk-css-reset .-cbwsdk-try-extension{display:flex;margin-top:12px;height:202px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-try-extension.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-column-half{flex:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading{font-style:normal;font-weight:500;font-size:25px;line-height:32px;margin:0;max-width:204px}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-try-extension-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta{appearance:none;border:none;background:none;color:#0052ff;cursor:pointer;padding:0;text-decoration:none;display:block;font-weight:600;font-size:16px;line-height:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.light{color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta.dark{color:#588af5}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-wrapper{display:flex;align-items:center;margin-top:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-cta-icon{display:block;margin-left:4px;height:14px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list{display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0;padding:0;list-style:none;height:100%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item{display:flex;align-items:center;flex-flow:nowrap;margin-top:24px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item:first-of-type{margin-top:0}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon-wrapper{display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon{display:flex;height:32px;width:32px;border-radius:50%}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.light{background:#eef0f3}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-icon.dark{background:#1e2025}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy{display:block;font-weight:400;font-size:14px;line-height:20px;padding-left:12px}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.light{color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-try-extension-list-item-copy.dark{color:#8a919e}"},26868: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.TryExtensionContent=void 0;let i=r(n(86010)),s=n(6400),o=n(30396),u=n(79414),c=n(52467),a=n(25178),l=r(n(5157));t.TryExtensionContent=function({theme:e}){let[t,n]=(0,o.useState)(!1),r=(0,o.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),h=(0,o.useCallback)(()=>{t?window.location.reload():(r(),n(!0))},[r,t]);return(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",e)},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",e)},"Or try the Coinbase Wallet browser extension"),(0,s.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,s.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",e),onClick:h},t?"Refresh":"Install"),(0,s.h)("div",null,!t&&(0,s.h)(u.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===e?"#0052FF":"#588AF5"})))),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Connect with dapps with just one click on your desktop browser")),(0,s.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,s.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,s.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(a.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},79414:function(e,t,n){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.ArrowLeftIcon=void 0;let r=n(6400);t.ArrowLeftIcon=function(e){return(0,r.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},37598:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CloseIcon=void 0;let r=n(6400);t.CloseIcon=function(e){return(0,r.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},52467:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LaptopIcon=void 0;let r=n(6400);t.LaptopIcon=function(e){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,r.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},18646:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.QRCodeIcon=void 0;let r=n(6400);t.QRCodeIcon=function(e){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,r.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,r.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,r.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,r.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,r.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,r.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,r.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,r.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},35666:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let n=` 2 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 3 <path d="M50 100C77.6142 100 100 77.6142 100 50C100 22.3858 77.6142 0 50 0C22.3858 0 0 22.3858 0 50C0 77.6142 22.3858 100 50 100Z" fill="white"/> 4 <path d="M50.512 94C74.2907 94 93.5673 74.5244 93.5673 50.5C93.5673 26.4756 74.2907 7 50.512 7C26.7332 7 7.45667 26.4756 7.45667 50.5C7.45667 74.5244 26.7332 94 50.512 94Z" fill="#0052FF"/> 5 <path d="M50.6248 65.4335C42.3697 65.4335 35.8996 58.7469 35.8996 50.5C35.8996 42.2531 42.5928 35.5664 50.6248 35.5664C57.9873 35.5664 64.0111 40.9157 65.1267 48.0481H80.0749C78.7363 32.6688 66.0191 20.6328 50.6248 20.6328C34.3379 20.6328 20.9514 34.0062 20.9514 50.5C20.9514 66.9936 34.1148 80.3671 50.6248 80.3671C66.2422 80.3671 78.7363 68.331 80.0749 52.9516H65.1267C64.0111 60.0841 57.9873 65.4335 50.6248 65.4335Z" fill="white"/> 6 </svg> 7`;t.default=n},30019:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=` 8 <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg"> 9 <circle cx="50" cy="50" r="50" fill="white"/> 10 <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/> 11 <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/> 12 <path fill-rule="evenodd" clip-rule="evenodd" d="M19.3379 49.9484C19.3379 66.8508 33.04 80.553 49.9425 80.553C66.8449 80.553 80.5471 66.8508 80.5471 49.9484C80.5471 33.0459 66.8449 19.3438 49.9425 19.3438C33.04 19.3438 19.3379 33.0459 19.3379 49.9484ZM44.0817 40.0799C41.8725 40.0799 40.0817 41.8708 40.0817 44.0799V55.8029C40.0817 58.012 41.8725 59.8029 44.0817 59.8029H55.8046C58.0138 59.8029 59.8046 58.012 59.8046 55.8029V44.0799C59.8046 41.8708 58.0138 40.0799 55.8046 40.0799H44.0817Z" fill="white"/> 13 </svg> 14`},25178:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.SafeIcon=void 0;let r=n(6400);t.SafeIcon=function(e){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},67494:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.StatusDotIcon=void 0;let r=n(6400);t.StatusDotIcon=function(e){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},417:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},12348:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},85755:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ClientMessagePublishEvent=t.ClientMessageSetSessionConfig=t.ClientMessageGetSessionConfig=t.ClientMessageIsLinked=t.ClientMessageHostSession=void 0,t.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},t.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},t.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},t.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},t.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},32191:function(e,t){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.EVENTS=void 0,t.EVENTS={STARTED_CONNECTING:"walletlink_sdk.started.connecting",CONNECTED_STATE_CHANGE:"walletlink_sdk.connected",DISCONNECTED:"walletlink_sdk.disconnected",METADATA_DESTROYED:"walletlink_sdk_metadata_destroyed",LINKED:"walletlink_sdk.linked",FAILURE:"walletlink_sdk.generic_failure",SESSION_CONFIG_RECEIVED:"walletlink_sdk.session_config_event_received",ETH_ACCOUNTS_STATE:"walletlink_sdk.eth_accounts_state",SESSION_STATE_CHANGE:"walletlink_sdk.session_state_change",UNLINKED_ERROR_STATE:"walletlink_sdk.unlinked_error_state",SKIPPED_CLEARING_SESSION:"walletlink_sdk.skipped_clearing_session",GENERAL_ERROR:"walletlink_sdk.general_error",WEB3_REQUEST:"walletlink_sdk.web3.request",WEB3_REQUEST_PUBLISHED:"walletlink_sdk.web3.request_published",WEB3_RESPONSE:"walletlink_sdk.web3.response",UNKNOWN_ADDRESS_ENCOUNTERED:"walletlink_sdk.unknown_address_encountered"}},80179:function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0}),t.RxWebSocket=t.ConnectionState=void 0;let s=n(46949),o=n(16473);(i=r=t.ConnectionState||(t.ConnectionState={}))[i.DISCONNECTED=0]="DISCONNECTED",i[i.CONNECTING=1]="CONNECTING",i[i.CONNECTED=2]="CONNECTED",t.RxWebSocket=class{constructor(e,t=WebSocket){this.WebSocketClass=t,this.webSocket=null,this.connectionStateSubject=new s.BehaviorSubject(r.DISCONNECTED),this.incomingDataSubject=ne
14w s.Subject,this.url=e.replace(/^http/,"ws")}connect(){return this.webSocket?(0,s.throwError)(Error("webSocket object is not null")):new s.Observable(e=>{let t;try{this.webSocket=t=new this.WebSocketClass(this.url)}catch(t){e.error(t);return}this.connectionStateSubject.next(r.CONNECTING),t.onclose=t=>{this.clearWebSocket(),e.error(Error(`websocket error ${t.code}: ${t.reason}`)),this.connectionStateSubject.next(r.DISCONNECTED)},t.onopen=t=>{e.next(),e.complete(),this.connectionStateSubject.next(r.CONNECTED)},t.onmessage=e=>{this.incomingDataSubject.next(e.data)}}).pipe((0,o.take)(1))}disconnect(){let{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(r.DISCONNECTED);try{e.close()}catch(e){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,o.flatMap)(e=>{let t;try{t=JSON.parse(e)}catch(e){return(0,s.empty)()}return(0,s.of)(t)}))}sendData(e){let{webSocket:t}=this;if(!t)throw Error("websocket is not connected");t.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},76156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isServerMessageFail=void 0,t.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},18876:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKConnection=void 0;let r=n(46949),i=n(16473),s=n(73526),o=n(91295),u=n(85755),c=n(32191),a=n(80179),l=n(76156);t.WalletSDKConnection=class{constructor(e,t,n,u,l=WebSocket){this.sessionId=e,this.sessionKey=t,this.diagnostic=u,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,o.IntNumber)(1),this.connectedSubject=ne
14w r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);let h=new a.RxWebSocket(n+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)(t=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:t,sessionIdHash:s.Session.hash(e)})}),(0,i.skip)(1),(0,i.filter)(e=>e===a.ConnectionState.DISCONNECTED&&!this.destroyed),(0,i.delay)(5e3),(0,i.filter)(e=>!this.destroyed),(0,i.flatMap)(e=>h.connect()),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)(e=>(0,r.iif)(()=>e===a.ConnectionState.CONNECTED,this.authenticate().pipe((0,i.tap)(e=>this.sendIsLinked()),(0,i.tap)(e=>this.sendGetSessionConfig()),(0,i.map)(e=>!0)),(0,r.of)(!1))),(0,i.distinctUntilChanged)(),(0,i.catchError)(e=>(0,r.of)(!1))).subscribe(e=>this.connectedSubject.next(e))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)(e=>(0,r.iif)(()=>e===a.ConnectionState.CONNECTED,(0,r.timer)(0,1e4)))).subscribe(e=>0===e?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)(e=>"h"===e)).subscribe(e=>this.updateLastHeartbeat())),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(e=>["IsLinkedOK","Linked"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.LINKED,{sessionIdHash:s.Session.hash(e),linked:t.linked,type:t.type,onlineGuests:t.onlineGuests}),this.linkedSubject.next(t.linked||t.onlineGuests>0)})),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)(e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type))).subscribe(t=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(e),metadata_keys:t&&t.metadata?Object.keys(t.metadata):void 0}),this.sessionConfigSubject.next({webhookId:t.webhookId,webhookUrl:t.webhookUrl,metadata:t.metadata})}))}connect(){var e;if(this.destroyed)throw Error("instance is destroyed");null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.STARTED_CONNECTING,{sessionIdHash:s.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var e;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(e=this.diagnostic)||void 0===e||e.log(c.EVENTS.DISCONNECTED,{sessionIdHash:s.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)(e=>e),(0,i.take)(1),(0,i.map)(()=>void 0))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)(e=>e),(0,i.take)(1),(0,i.map)(()=>void 0))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)(e=>"Event"===e.type&&"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data),(0,i.map)(e=>e))}setSessionMetadata(e,t){let n=(0,u.ClientMessageSetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:t}});return this.onceConnected$.pipe((0,i.flatMap)(e=>this.makeRequest(n)),(0,i.map)(e=>{if((0,l.isServerMessageFail)(e))throw Error(e.error||"failed to set session metadata")}))}publishEvent(e,t,n=!1){let r=(0,u.ClientMessagePublishEvent)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:t,callWebhook:n});return this.onceLinked$.pipe((0,i.flatMap)(e=>this.makeRequest(r)),(0,i.map)(e=>{if((0,l.isServerMessageFail)(e))throw Error(e.error||"failed to publish event");return e.eventId}))}sendData(e){this.ws.sendData(JSON.stringify(e))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4){this.ws.disconnect();return}try{this.ws.sendData("h")}catch(e){}}makeRequest(e,t=6e4){let n=e.id;try{this.sendData(e)}catch(e){return(0,r.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(t,(0,r.throwError)(Error(`request ${n} timed out`))),(0,i.filter)(e=>e.id===n),(0,i.take)(1))}authenticate(){let e=(0,u.ClientMessageHostSession)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});
14return this.makeRequest(e).pipe((0,i.map)(e=>{if((0,l.isServerMessageFail)(e))throw Error(e.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,u.ClientMessageIsLinked)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,u.ClientMessageGetSessionConfig)({id:(0,o.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},82704:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LINK_API_URL=void 0,t.LINK_API_URL="https://www.walletlink.org"},69621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getErrorCode=t.serializeError=t.standardErrors=t.standardErrorMessage=t.standardErrorCodes=void 0;let r=n(79826),i=n(67386),s=n(43604);t.standardErrorCodes=Object.freeze(Object.assign(Object.assign({},r.errorCodes),{provider:Object.freeze(Object.assign(Object.assign({},r.errorCodes.provider),{unsupportedChain:4902}))})),t.standardErrorMessage=function(e){return void 0!==e?(0,r.getMessageFromCode)(e):"Unknown error"},t.standardErrors=Object.freeze(Object.assign(Object.assign({},r.ethErrors),{provider:Object.freeze(Object.assign(Object.assign({},r.ethErrors.provider),{unsupportedChain:(e="")=>r.ethErrors.provider.custom({code:t.standardErrorCodes.provider.unsupportedChain,message:`Unrecognized chain ID ${e}. Try adding the chain using wallet_addEthereumChain first.`})}))})),t.serializeError=function(e,n){let o=(0,r.serializeError)("string"==typeof e?{message:e,code:t.standardErrorCodes.rpc.internal}:(0,i.isErrorResponse)(e)?Object.assign(Object.assign({},e),{message:e.errorMessage,code:e.errorCode,data:{method:e.method,result:e.result}}):e,{shouldIncludeStack:!0}),u=new URL("https://docs.cloud.coinbase.com/wallet-sdk/docs/errors");u.searchParams.set("version",s.LIB_VERSION),u.searchParams.set("code",o.code.toString());let c=function(e,t){let n=null==e?void 0:e.method;return n?n:void 0!==t?"string"==typeof t?t:Array.isArray(t)?t.length>0?t[0].method:void 0:t.method:void 0}(o.data,n);return c&&u.searchParams.set("method",c),u.searchParams.set("message",o.message),Object.assign(Object.assign({},o),{docUrl:u.href})},t.getErrorCode=function(e){var t;return"number"==typeof e?e:"object"==typeof e&&null!==e&&("number"==typeof e.code||"number"==typeof e.errorCode)?null!==(t=e.code)&&void 0!==t?t:e.errorCode:void 0}},45811:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=t.CoinbaseWalletSDK=void 0;let r=n(39016),i=n(83143);var s=n(39016);Object.defineProperty(t,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var o=n(83143);Object.defineProperty(t,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return o.CoinbaseWalletProvider}}),t.default=r.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=r.CoinbaseWalletSDK,window.CoinbaseWalletProvider=i.CoinbaseWalletProvider,window.WalletLink=r.CoinbaseWalletSDK,window.WalletLinkProvider=i.CoinbaseWalletProvider)},49682:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ScopedLocalStorage=void 0,t.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,t){localStorage.setItem(this.scopedKey(e),t)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),t=[];for(let n=0;n<localStorage.length;n++){let r=localStorage.key(n);"string"==typeof r&&r.startsWith(e)&&t.push(r)}t.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`${this.scope}:${e}`}}},1119:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default='@namespace svg "http://www.w3.org/2000/svg";.-cbwsdk-css-reset,.-cbwsdk-css-reset *{animation:none;animation-delay:0;animation-direction:normal;animation-duration:0;animation-fill-mode:none;animation-iteration-count:1;animation-name:none;animation-play-state:running;animation-timing-function:ease;backface-visibility:visible;background:0;background-attachment:scroll;background-clip:border-box;background-color:rgba(0,0,0,0);background-image:none;background-origin:padding-box;background-position:0 0;background-position-x:0;background-position-y:0;background-repeat:repeat;background-size:auto auto;border:0;border-style:none;border-width:medium;border-color:inherit;border-bottom:0;border-bottom-color:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom-style:none;border-bottom-width:medium;border-collapse:separate;border-image:none;border-left:0;border-left-color:inherit;border-left-style:none;border-left-width:medium;border-radius:0;border-right:0;border-right-color:inherit;border-right-style:none;border-right-width:medium;border-spacing:0;border-top:0;border-top-color:inherit;border-top-left-radius:0;border-top-right-radius:0;border-top-style:none;border-top-width:medium;box-shadow:none;box-sizing:border-box;caption-side:top;clear:none;clip:auto;color:inherit;columns:auto;column-count:auto;column-fill:balance;column-gap:normal;column-rule:medium none currentColor;column-rule-color:currentColor;column-rule-style:none;column-rule-width:none;column-span:1;column-width:auto;counter-increment:none;counter-reset:none;direction:ltr;empty-cells:show;float:none;font:normal;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;font-size:medium;font-style:normal;font-variant:normal;font-weight:normal;height:auto;hyphens:none;letter-spacing:normal;line-height:normal;list-style:none;list-style-image:none;list-style-position:outside;list-style-type:disc;margin:0;margin-bottom:0;margin-left:0;margin-right:0;margin-top:0;opacity:1;orphans:0;outline:0;outline-color:invert;outline-style:none;outline-width:medium;overflow:visible;overflow-x:visible;overflow-y:visible;padding:0;padding-bottom:0;padding-left:0;padding-right:0;padding-top:0;page-break-after:auto;page-break-before:auto;page-break-inside:auto;perspective:none;perspective-origin:50% 50%;pointer-events:auto;position:static;quotes:"\\201C" "\\201D" "\\2018" "\\2019";tab-size:8;table-layout:auto;text-align:inherit;text-align-last:auto;text-decoration:none;text-decoration-color:inherit;text-decoration-line:none;text-decoration-style:solid;text-indent:0;text-shadow:none;text-transform:none;transform:none;transform-style:flat;transition:none;transition-delay:0s;transition-duration:0s;transition-property:none;transition-timing-function:ease;unicode-bidi:normal;vertical-align:baseline;visibility:visible;white-space:normal;widows:0;word-spacing:normal;z-index:auto}.-cbwsdk-css-reset strong{font-weight:bold}.-cbwsdk-css-reset *{box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Helvetica Neue",Arial,sans-serif;line-height:1}.-cbwsdk-css-reset [class*=container]{margin:0;padding:0}.-cbwsdk-css-reset style{display:none}'},27162:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
14dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectCssReset=void 0;let i=r(n(1119));t.injectCssReset=function(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(e)}},83143:function(e,t,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.CoinbaseWalletProvider=void 0;let s=i(n(19394)),o=i(n(13550)),u=n(32191),c=n(69621),a=n(73526),l=n(15633),h=n(93083),d=n(67386),f=n(94643),p=i(n(14497)),b=n(33648),y=n(28565),g=n(5313),m="DefaultChainId",v="DefaultJsonRpcUrl";class _ extends s.default{constructor(e){var t,n;super(),this._filterPolyfill=new b.FilterPolyfill(this),this._subscriptionManager=new g.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this.setProviderInfo=this.setProviderInfo.bind(this),this.updateProviderInfo=this.updateProviderInfo.bind(this),this.getChainId=this.getChainId.bind(this),this.setAppInfo=this.setAppInfo.bind(this),this.enable=this.enable.bind(this),this.close=this.close.bind(this),this.send=this.send.bind(this),this.sendAsync=this.sendAsync.bind(this),this.request=this.request.bind(this),this._setAddresses=this._setAddresses.bind(this),this.scanQRCode=this.scanQRCode.bind(this),this.genericRequest=this.genericRequest.bind(this),this._chainIdFromOpts=e.chainId,this._jsonRpcUrlFromOpts=e.jsonRpcUrl,this._overrideIsMetaMask=e.overrideIsMetaMask,this._relayProvider=e.relayProvider,this._storage=e.storage,this._relayEventManager=e.relayEventManager,this.diagnostic=e.diagnosticLogger,this.reloadOnDisconnect=!0,this.isCoinbaseWallet=null===(t=e.overrideIsCoinbaseWallet)||void 0===t||t,this.isCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this.qrUrl=e.qrUrl;let r=this.getChainId(),i=(0,f.prepend0x)(r.toString(16));this.emit("connect",{chainIdStr:i});let s=this._storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let e=s.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,f.ensureAddressString)(e)),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",e=>{this.emit("message",{type:e.method,data:e.params})}),this._isAuthorized()&&this.initializeRelay(),window.addEventListener("message",e=>{var t;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("dappChainSwitched"===e.data.data.action){let n=e.data.data.chainId,r=null!==(t=e.data.data.jsonRpcUrl)&&void 0!==t?t:this.jsonRpcUrl;this.updateProviderInfo(r,Number(n))}"addressChanged"===e.data.data.action&&this._setAddresses([e.data.data.address])}})}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,f.prepend0x)(this.getChainId().toString(16))}get isWalletLink(){return!0}get isMetaMask(){return this._overrideIsMetaMask}get host(){return this.jsonRpcUrl}get connected(){return!0}isConnected(){return!0}get jsonRpcUrl(){var e;return null!==(e=this._storage.getItem(v))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem(v,e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,t){this.isCoinbaseBrowser||(this._chainIdFromOpts=t,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,t){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem(m,t.toString(10));let r=(0,f.ensureIntNumber)(t)!==n;(r||!this.hasMadeFirstChainChangedEmission)&&(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,t,n,r,i,s){let o=await this.initializeRelay(),u=await o.watchAsset(e,t,n,r,i,null==s?void 0:s.toString()).promise;return!!u.result}async addEthereumChain(e,t,n,r,i,s){var o,u;if((0,f.ensureIntNumber)(e)===this.getChainId())return!1;let c=await this.initializeRelay(),a=c.inlineAddEthereumChain(e.toString());this._isAuthorized()||a||await c.requestEthereumAccounts().promise;let l=await c.addEthereumChain(e.toString(),t,i,n,r,s).promise;return(null===(o=l.result)||void 0===o?void 0:o.isApproved)===!0&&this.updateProviderInfo(t[0],e),(null===(u=l.result)||void 0===u?void 0:u.isApproved)===!0}async switchEthereumChain(e){let t=await this.initializeRelay(),n=await t.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if((0,d.isErrorResponse)(n)&&n.errorCode){if(n.errorCode===c.standardErrorCodes.provider.unsupportedChain)throw c.standardErrors.provider.unsupportedChain(e);throw c.standardErrors.provider.custom({message:n.errorMessage,code:n.errorCode})}let r=n.result;r.isApproved&&r.rpcUrl.length>0&&this.updateProviderInfo(r.rpcUrl,e)}setAppInfo(e,t){this.initializeRelay().then(n=>n.setAppInfo(e,t))}async enable(){var e;return(null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?a.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())?[...this._addresses]:await this.send(y.JSONRPCMethod.eth_requestAccounts)}async close(){let e=await this.initializeRelay();e.resetAndReload()}send(e,t){try{let n=this._send(e,t);if(n instanceof Promise)return n.catch(t=>{throw(0,c.serializeError)(t,e)})}catch(t){throw(0,c.serializeError)(t,e)}}_send(e,t){if("string"==typeof e){let n=Array.isArray(t)?t:void 0!==t?[t]:[];return this._sendRequestAsync({jsonrpc:"2.0",id:0,method:e,params:n}).then(e=>e.result)}return"function"==typeof t?this._sendAsync(e,t):Array.isArray(e)?e.map(e=>this._sendRequest(e)):this._sendRequest(e)}async sendAsync(e,t){try{return this._sendAsync(e,t).catch(t=>{throw(0,c.serializeError)(t,e)})}catch(t){return Promise.reject((0,c.serializeError)(t,e))}}async _sendAsync(e,t){if("function"!=typeof t)throw Error("callback is required");if(Array.isArray(e)){this._sendMultipleRequestsAsync(e).then(e=>t(null,e)).catch(e=>t(e,null));return}return this._sendRequestAsync(e).then(e=>t(null,e)).catch(e=>t(e,null))}async request(e){try{return this._request(e).catch(t=>{throw(0,c.serializeError)(t,e.method)})}catch(t){return Promise.reject((0,c.serializeError)(t,e.method))}}async _request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw c.standardErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:t,params:n}=e;if("string"!=typeof t||0===t.length)throw c.standardErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:e});if(void 0!==n&&!Array.isArray(n)&&("object"!=typeof n||null===n))throw c.standardErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let r=void 0===n?[]:n,i=this._relayEventManager.makeRequestId(),s=await this._sendRequestAsync({method:t,params:r,jsonrpc:"2.0",id:i});return s.result}
14async scanQRCode(e){var t;let n=await this.initializeRelay(),r=await n.scanQRCode((0,f.ensureRegExpString)(e)).promise;if("string"!=typeof r.result)throw(0,c.serializeError)(null!==(t=r.errorMessage)&&void 0!==t?t:"result was not a string",h.Web3Method.scanQRCode);return r.result}async genericRequest(e,t){var n;let r=await this.initializeRelay(),i=await r.genericRequest(e,t).promise;if("string"!=typeof i.result)throw(0,c.serializeError)(null!==(n=i.errorMessage)&&void 0!==n?n:"result was not a string",h.Web3Method.generic);return i.result}async selectProvider(e){var t;let n=await this.initializeRelay(),r=await n.selectProvider(e).promise;if("string"!=typeof r.result)throw(0,c.serializeError)(null!==(t=r.errorMessage)&&void 0!==t?t:"result was not a string",h.Web3Method.selectProvider);return r.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let t={jsonrpc:"2.0",id:e.id},{method:n}=e;if(t.result=this._handleSynchronousMethods(e),void 0===t.result)throw Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return t}_setAddresses(e,t){if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>(0,f.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(l.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" ")))}_sendRequestAsync(e){return new Promise((t,n)=>{try{let r=this._handleSynchronousMethods(e);if(void 0!==r)return t({jsonrpc:"2.0",id:e.id,result:r});let i=this._handleAsynchronousFilterMethods(e);if(void 0!==i){i.then(n=>t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));return}let s=this._handleSubscriptionMethods(e);if(void 0!==s){s.then(n=>t({jsonrpc:"2.0",id:e.id,result:n.result})).catch(e=>n(e));return}}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&t(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e))})}_sendMultipleRequestsAsync(e){return Promise.all(e.map(e=>this._sendRequestAsync(e)))}_handleSynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case y.JSONRPCMethod.eth_accounts:return this._eth_accounts();case y.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case y.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case y.JSONRPCMethod.net_version:return this._net_version();case y.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:t}=e,n=e.params||[];switch(t){case y.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case y.JSONRPCMethod.eth_sign:return this._eth_sign(n);case y.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case y.JSONRPCMethod.personal_sign:return this._personal_sign(n);case y.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case y.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case y.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case y.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case y.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case y.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case y.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case y.JSONRPCMethod.eth_signTypedData_v4:case y.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case y.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case y.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case y.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case y.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}let r=await this.initializeRelay();return r.makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:t}=e,n=e.params||[];switch(t){case y.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case y.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case y.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case y.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case y.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case y.JSONRPCMethod.eth_subscribe:case y.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let t=(0,f.ensureAddressString)(e),n=this._addresses.map(e=>(0,f.ensureAddressString)(e));return n.includes(t)}catch(e){}return!1}_ensureKnownAddress(e){var t;if(!this._isKnownAddress(e))throw null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(e){let t=e.from?(0,f.ensureAddressString)(e.from):this.selectedAddress;if(!t)throw Error("Ethereum address is unavailable");this._ensureKnownAddress(t);let n=e.to?(0,f.ensureAddressString)(e.to):null,i=null!=e.value?(0,f.ensureBN)(e.value):new o.default(0),s=e.data?(0,f.ensureBuffer)(e.data):r.alloc(0),u=null!=e.nonce?(0,f.ensureIntNumber)(e.nonce):null,c=null!=e.gasPrice?(0,f.ensureBN)(e.gasPrice):null,a=null!=e.maxFeePerGas?(0,f.ensureBN)(e.maxFeePerGas):null,l=null!=e.maxPriorityFeePerGas?(0,f.ensureBN)(e.maxPriorityFeePerGas):null,h=null!=e.gas?(0,f.ensureBN)(e.gas):null,d=this.getChainId();return{fromAddress:t,toAddress:n,weiValue:i,data:s,nonce:u,gasPriceInWei:c,maxFeePerGas:a,maxPriorityFeePerGas:l,gasLim
14it:h,chainId:d}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw c.standardErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw c.standardErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,t,n,r){this._ensureKnownAddress(t);try{let i=await this.initializeRelay(),s=await i.signEthereumMessage(e,t,n,r).promise;return{jsonrpc:"2.0",id:0,result:s.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,t,n){let r=await this.initializeRelay(),i=await r.ethereumAddressFromSignedMessage(e,t,n).promise;return{jsonrpc:"2.0",id:0,result:i.result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,f.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem(m);if(!e)return(0,f.ensureIntNumber)(this._chainIdFromOpts);let t=parseInt(e,10);return(0,f.ensureIntNumber)(t)}async _eth_requestAccounts(){var e;let t;if(null===(e=this.diagnostic)||void 0===e||e.log(u.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?a.Session.hash(this._relay.session.id):void 0}),this._isAuthorized())return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let e=await this.initializeRelay();t=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!t.result)throw Error("accounts received is empty");return this._setAddresses(t.result),this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let t=(0,f.ensureAddressString)(e[0]),n=(0,f.ensureBuffer)(e[1]);return this._signEthereumMessage(n,t,!1)}_eth_ecRecover(e){let t=(0,f.ensureBuffer)(e[0]),n=(0,f.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!1)}_personal_sign(e){this._requireAuthorization();let t=(0,f.ensureBuffer)(e[0]),n=(0,f.ensureAddressString)(e[1]);return this._signEthereumMessage(t,n,!0)}_personal_ecRecover(e){let t=(0,f.ensureBuffer)(e[0]),n=(0,f.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(t,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signEthereumTransaction(t).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let t=(0,f.ensureBuffer)(e[0]),n=await this.initializeRelay(),r=await n.submitEthereumTransaction(t,this.getChainId()).promise;return{jsonrpc:"2.0",id:0,result:r.result}}async _eth_sendTransaction(e){this._requireAuthorization();let t=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay(),n=await e.signAndSubmitEthereumTransaction(t).promise;return{jsonrpc:"2.0",id:0,result:n.result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw c.standardErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let t=(0,f.ensureParsedJSONObject)(e[0]),n=(0,f.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let r=p.default.hashForSignTypedDataLegacy({data:t}),i=JSON.stringify(t,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(e){this._requireAuthorization();let t=(0,f.ensureAddressString)(e[0]),n=(0,f.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let r=p.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _eth_signTypedData_v4(e){this._requireAuthorization();let t=(0,f.ensureAddressString)(e[0]),n=(0,f.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(t);let r=p.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,t,!1,i)}async _cbwallet_arbitrary(e){let t=e[0],n=e[1];if("string"!=typeof n)throw Error("parameter must be a string");if("object"!=typeof t||null===t)throw Error("parameter must be an object");let r=await this.genericRequest(t,n);return{jsonrpc:"2.0",id:0,result:r}}async _wallet_addEthereumChain(e){var t,n,r,i;let s=e[0];if((null===(t=s.rpcUrls)||void 0===t?void 0:t.length)===0)return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw c.standardErrors.rpc.invalidParams("chainName is a required field");if(!s.nativeCurrency)throw c.standardErrors.rpc.invalidParams("nativeCurrency is a required field");let o=parseInt(s.chainId,16),u=await this.addEthereumChain(o,null!==(n=s.rpcUrls)&&void 0!==n?n:[],null!==(r=s.blockExplorerUrls)&&void 0!==r?r:[],s.chainName,null!==(i=s.iconUrls)&&void 0!==i?i:[],s.nativeCurrency);return u?{jsonrpc:"2.0",id:0,result:null}:{jsonrpc:"2.0",id:0,error:{code:2,message:"unable to add ethereum chain"}}}async _wallet_switchEthereumChain(e){let t=e[0];return await this.switchEthereumChain(parseInt(t.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let t=Array.isArray(e)?e[0]:e;if(!t.type)throw c.standardErrors.rpc.invalidParams("Type is required");if((null==t?void 0:t.type)!=="ERC20")throw c.standardErrors.rpc.invalidParams(`Asset of type '${t.type}' is not supported`);if(!(null==t?void 0:t.options))throw c.standardErrors.rpc.invalidParams("Options are required");if(!(null==t?void 0:t.options.address))throw c.standardErrors.rpc.invalidParams("Address is required");let n=this.getChainId(),{address:r,symbol:i,image:s,decimals:o}=t.options,u=await this.watchAsset(t.type,r,i,o,s,n);return{jsonrpc:"2.0",id:0,result:u}}_eth_uninstallFilter(e){let t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(t)}async _eth_newFilter(e){let t=e[0],n=await this._filterPolyfill.newFilter(t);return{jsonrpc:"2.0",id:0,result:n}}async _eth_newBlockFilter(){let e=await this._filterPolyfill.newBlockFilter();return{jsonrpc:"2.0",id:0,result:e}}async _eth_newPendingTransactionFilter(){let e=await this._filterPolyfill.newPendingTransactionFilter();return{jsonrpc:"2.0",id:0,result:e}}_eth_getFilterChanges(e){let t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(t)}_eth_getFilterLogs(e){let t=(0,f.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(t)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((e,t)=>this._setAddresses(e,t)),e.setChainCallback((e,t)=>{this.updateProviderInfo(t,parseInt(e,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}}t.CoinbaseWalletProvider=_},33648:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.filterFromParam=t.FilterPolyfill=void 0;let r=n(91295),i=n(94643),s={jsonrpc:"2.0",id:0};function o(e){return{fromBlock:c(e.fromBlock),toBlock:c(e.toBlock),addresses:void 0===e.address?null:Array.isArray(e.address)?e.address:[e.address],topics:e.topics||[]}}function u(e){let t={fromBlock:a(e.fromBlock),toBlock:a(e.toBlock),topics:e.topics};return null!==e.addresses&&(t.address=e.addresses),t}function c(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,r.IntNumber)(0);if((0,i.isHexString)(e))return(0,i.intNumberFromHexString)(e);throw Error(`Invalid block option: ${String(e)}`)}function a(e){return"latest"===e?e:(0,i.hexStringFromIntNumber)(e)}function l(){return Object.assign(Object.assign({},s),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},s),{result:[]})}t.FilterPolyfill=class{constructor(e){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,r.IntNumber)(1),this.provider=e}async newFilter(e){let t=o(e),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,t.fromBlock);return console.log(`Installing new log filter(${n}):`,t,"initial cursor position:",r),this.logFilters.set(n,t),this.setFilterTimeout(n),(0,i.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.blockFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),t=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,t),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,i.hexStringFromIntNumber)(e)}uninstallFilter(e){let t=(0,i.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${t})`),this.deleteFilter(t),!0}getFilterChanges(e){let t=(0,i.intNumberFromHexString)(e);return(this.timeouts.has(t)&&this.setFilterTimeout(t),this.logFilters.has(t))?this.getLogFilterChanges(t):this.blockFilters.has(t)?this.getBlockFilterChanges(t):this.pendingTransactionFilters.has(t)?this.getPendingTransactionFilterChanges(t):Promise.resolve(l())}async getFilterLogs(e){let t=(0,i.intNumberFromHexString)(e),n=this.logFilters.get(t);return n?this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(n)]})):l()}makeFilterId(){return(0,r.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((t,n)=>{this.provider.sendAsync(e,(e,r)=>e?n(e):Array.isArray(r)||null==r?n(Error(`unexpected response received: ${JSON.stringify(r)}`)):void t(r))})}deleteFilter(e){console.log(`Deleting filter (${e})`),this.logFilters.delete(e),this.blockFilters.delete(e),this.pendingTransactionFilters.delete(e),this.cursors.delete(e),this.timeouts.delete(e)}async getLogFilterChanges(e){let t=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!t)return l();let o=await this.getCurrentBlockHeight(),c="latest"===t.toBlock?o:t.toBlock;if(n>o||n>t.toBlock)return h();console.log(`Fetching logs from ${n} to ${c} for filter ${e}`);let a=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(Object.assign(Object.assign({},t),{fromBlock:n,toBlock:c}))]}));if(Array.isArray(a.result)){let t=a.result.map(e=>(0,i.intNumberFromHexString)(e.blockNumber||"0x0")),s=Math.max(...t);if(s&&s>n){let t=(0,r.IntNumber)(s+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${t}`),this.cursors.set(e,t)}}return a}async getBlockFilterChanges(e){let t=this.cursors.get(e);if(!t)return l();let n=await this.getCurrentBlockHeight();if(t>n)return h();console.log(`Fetching blocks from ${t} to ${n} for filter (${e})`);let o=(await Promise.all((0,i.range)(t,n+1).map(e=>this.getBlockHashByNumber((0,r.IntNumber)(e))))).filter(e=>!!e),u=(0,r.IntNumber)(t+o.length);return console.log(`Moving cursor position for filter (${e}) from ${t} to ${u}`),this.cursors.set(e,u),Object.assign(Object.assign({},s),{result:o})}async getPendingTransactionFilterChanges(e){return Promise.resolve(h())}async setInitialCursorPosition(e,t){let n=await this.getCurrentBlockHeight(),r="number"==typeof t&&t>n?t:n;return this.cursors.set(e,r),r}setFilterTimeout(e){let t=this.timeouts.get(e);t&&window.clearTimeout(t);let n=window.setTimeout(()=>{console.log(`Filter (${e}) timed out`),this.deleteFilter(e)},3e5);this.timeouts.set(e,n)}async getCurrentBlockHeight(){let{result:e}=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(e))}async getBlockHashByNumber(e){let t=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(e),!1]}));return t.result&&"string"==typeof t.result.hash?(0,i.ensureHexString)(t.result.hash):null}},t.filterFromParam=o}
14,28565:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.JSONRPCMethod=void 0,(n=t.JSONRPCMethod||(t.JSONRPCMethod={})).eth_accounts="eth_accounts",n.eth_coinbase="eth_coinbase",n.net_version="net_version",n.eth_chainId="eth_chainId",n.eth_uninstallFilter="eth_uninstallFilter",n.eth_requestAccounts="eth_requestAccounts",n.eth_sign="eth_sign",n.eth_ecRecover="eth_ecRecover",n.personal_sign="personal_sign",n.personal_ecRecover="personal_ecRecover",n.eth_signTransaction="eth_signTransaction",n.eth_sendRawTransaction="eth_sendRawTransaction",n.eth_sendTransaction="eth_sendTransaction",n.eth_signTypedData_v1="eth_signTypedData_v1",n.eth_signTypedData_v2="eth_signTypedData_v2",n.eth_signTypedData_v3="eth_signTypedData_v3",n.eth_signTypedData_v4="eth_signTypedData_v4",n.eth_signTypedData="eth_signTypedData",n.cbWallet_arbitrary="walletlink_arbitrary",n.wallet_addEthereumChain="wallet_addEthereumChain",n.wallet_switchEthereumChain="wallet_switchEthereumChain",n.wallet_watchAsset="wallet_watchAsset",n.eth_subscribe="eth_subscribe",n.eth_unsubscribe="eth_unsubscribe",n.eth_newFilter="eth_newFilter",n.eth_newBlockFilter="eth_newBlockFilter",n.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",n.eth_getFilterChanges="eth_getFilterChanges",n.eth_getFilterLogs="eth_getFilterLogs"},5313:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SubscriptionManager=void 0;let r=n(6842),i=n(68961),s=()=>{};t.SubscriptionManager=class{constructor(e){let t=new r.PollingBlockTracker({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:s}=i({blockTracker:t,provider:e});this.events=n,this.subscriptionMiddleware=s}async handleRequest(e){let t={};return await this.subscriptionMiddleware(e,t,s,s),t}destroy(){this.subscriptionMiddleware.destroy()}}},31405:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKUI=void 0;let r=n(27759),i=n(19199),s=n(27162);t.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:e.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:e.darkMode,version:e.version,sessionId:e.session.id,sessionSecret:e.session.secret,linkAPIUrl:e.linkAPIUrl,connected$:e.connected$,chainId$:e.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw Error("Coinbase Wallet SDK UI is already attached");let e=document.documentElement,t=document.createElement("div");t.className="-cbwsdk-css-reset",e.appendChild(t),this.linkFlow.attach(t),this.snackbar.attach(t),this.attached=!0,(0,s.injectCssReset)()}setConnectDisabled(e){this.linkFlow.setConnectDisabled(e)}addEthereumChain(e){}watchAsset(e){}switchEthereumChain(e){}requestEthereumAccounts(e){this.linkFlow.open({onCancel:e.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(e){}signEthereumTransaction(e){}submitEthereumTransaction(e){}ethereumAddressFromSignedMessage(e){}showConnecting(e){let t;return t=e.isUnlinkedErrorState?{autoExpand:!0,message:"Connection lost",appSrc:this.appSrc,menuItems:[{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.96875C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]}:{message:"Confirm on phone",appSrc:this.appSrc,menuItems:[{isRed:!0,info:"Cancel transaction",svgWidth:"11",svgHeight:"11",path:"M10.3711 1.52346L9.21775 0.370117L5.37109 4.21022L1.52444 0.370117L0.371094 1.52346L4.2112 5.37012L0.371094 9.21677L1.52444 10.3701L5.37109 6.53001L9.21775 10.3701L10.3711 9.21677L6.53099 5.37012L10.3711 1.52346Z",defaultFillRule:"inherit",defaultClipRule:"inherit",onClick:e.onCancel},{isRed:!1,info:"Reset connection",svgWidth:"10",svgHeight:"11",path:"M5.00008 0.9687
145C6.73133 0.96875 8.23758 1.94375 9.00008 3.375L10.0001 2.375V5.5H9.53133H7.96883H6.87508L7.80633 4.56875C7.41258 3.3875 6.31258 2.53125 5.00008 2.53125C3.76258 2.53125 2.70633 3.2875 2.25633 4.36875L0.812576 3.76875C1.50008 2.125 3.11258 0.96875 5.00008 0.96875ZM2.19375 6.43125C2.5875 7.6125 3.6875 8.46875 5 8.46875C6.2375 8.46875 7.29375 7.7125 7.74375 6.63125L9.1875 7.23125C8.5 8.875 6.8875 10.0312 5 10.0312C3.26875 10.0312 1.7625 9.05625 1 7.625L0 8.625V5.5H0.46875H2.03125H3.125L2.19375 6.43125Z",defaultFillRule:"evenodd",defaultClipRule:"evenodd",onClick:e.onResetConnection}]},this.snackbar.presentItem(t)}setAppSrc(e){this.appSrc=e}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(e){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(e){this.standalone=e}isStandalone(){var e;return null!==(e=this.standalone)&&void 0!==e&&e}}},85813:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.RelayMessageType=void 0,(n=t.RelayMessageType||(t.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",n.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",n.LINKED="LINKED",n.UNLINKED="UNLINKED",n.WEB3_REQUEST="WEB3_REQUEST",n.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",n.WEB3_RESPONSE="WEB3_RESPONSE"},73526:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Session=void 0;let r=n(89072),i=n(94643),s="session:id",o="session:secret",u="session:linked";class c{constructor(e,t,n,s){this._storage=e,this._id=t||(0,i.randomBytesHex)(16),this._secret=n||(0,i.randomBytesHex)(32),this._key=new r.sha256().update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(e){let t=e.getItem(s),n=e.getItem(u),r=e.getItem(o);return t&&r?new c(e,t,r,"1"===n):null}static hash(e){return new r.sha256().update(e).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(e){this._linked=e,this.persistLinked()}save(){return this._storage.setItem(s,this._id),this._storage.setItem(o,this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem(u,this._linked?"1":"0")}}t.Session=c},16570: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}),s=this&&this.__decorate||function(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o},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},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelay=void 0;let c=u(n(47056)),a=n(46949),l=n(16473),h=n(32191),d=n(18876),f=n(69621),p=n(91295),b=n(94643),y=o(n(20235)),g=n(73526),m=n(15633),v=n(93083),_=n(85186),w=n(3770),S=n(67386),x=n(50287);class E extends m.WalletSDKRelayAbstract{constructor(e){var t;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new a.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new a.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:r,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=e.relayEventManager,e.diagnosticLogger&&e.eventListener)throw Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");e.eventListener?this.diagnostic={log:e.eventListener.onEvent}:this.diagnostic=e.diagnosticLogger,this._reloadOnDisconnect=null===(t=e.reloadOnDisconnect)||void 0===t||t,this.ui=r}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)}));let e=g.Session.load(this.storage)||new g.Session(this.storage).save(),t=new d.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(t.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ER
14ROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(t.incomingEvent$.pipe((0,l.filter)(e=>"Web3Response"===e.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(t.linked$.pipe((0,l.skip)(1),(0,l.tap)(e=>{var t;this.isLinked=e;let n=this.storage.getItem(m.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let r=n.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==r[0]&&!e&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}})).subscribe()),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>!!e.metadata&&"1"===e.metadata.__destroyed)).subscribe(()=>{var e;let n=t.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>e.metadata&&void 0!==e.metadata.WalletUsername)).pipe((0,l.mergeMap)(t=>y.decrypt(t.metadata.WalletUsername,e.secret))).subscribe({next:e=>{this.storage.setItem(m.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>e.metadata&&void 0!==e.metadata.AppVersion)).pipe((0,l.mergeMap)(t=>y.decrypt(t.metadata.AppVersion,e.secret))).subscribe({next:e=>{this.storage.setItem(m.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl)).pipe((0,l.mergeMap)(t=>(0,a.zip)(y.decrypt(t.metadata.ChainId,e.secret),y.decrypt(t.metadata.JsonRpcUrl,e.secret)))).pipe((0,l.distinctUntilChanged)()).subscribe({next:([e,t])=>{this.chainCallback&&this.chainCallback(e,t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>e.metadata&&void 0!==e.metadata.EthereumAddress)).pipe((0,l.mergeMap)(t=>y.decrypt(t.metadata.EthereumAddress,e.secret))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),E.accountRequestCallbackIds.size>0&&(Array.from(E.accountRequestCallbackIds.values()).forEach(t=>{let n=(0,x.Web3ResponseMessage)({id:t,response:(0,S.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:t}))}),E.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(t.sessionConfig$.pipe((0,l.filter)(e=>e.metadata&&void 0!==e.metadata.AppSrc)).pipe((0,l.mergeMap)(t=>y.decrypt(t.metadata.AppSrc,e.secret))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));let n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:e,connected$:t.connected$,chainId$:this.dappDefaultChainSubject});return t.connect(),{session:e,ui:n,connection:t}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,l.timeout)(1e3),(0,l.catchError)(e=>(0,a.of)(null))).subscribe(e=>{var t,n,r;let i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=g.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(r=this.diagnostic)||void 0===r||r.log(h.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:g.Session.hash(s.id)})),this._reloadOnDisconnect){this.ui.reloadUI();return}this.accountsCallback&&this.accountsCallback([],!0),this.subscriptions=new a.Subscription;let{session:o,ui:u,connection:c}=this.subscribe();this._session=o,this.connection=c,this.ui=u,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.FAILURE,{method:"relay::resetAndReload",message:`failed to reset and reload with ${e}`,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,t){this.appName=e,this.appLogoUrl=t}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,t){this.storage.setItem(e,t)}signEthereumMessage(e,t,n,r){return this.sendRequest({method:v.Web3Method.signEthereumMessage,params:{message:(0,b.hexStringFromBuffer)(e,!0),address:t,addPrefix:n,typedDataJson:r||null}})}ethereumAddressFromSignedMessage(e,t,n){return this.sendRequest({method:v.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,b.hexStringFromBuffer)(e,!0),signature:(0,b.hexStringFromBuffer)(t,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,b.bigIntStringFromBN)(e.weiValue),data:(0,b.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,b.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,b.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,b.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLim
14it?(0,b.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:v.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,b.bigIntStringFromBN)(e.weiValue),data:(0,b.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,b.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,b.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,b.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,b.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,t){return this.sendRequest({method:v.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,b.hexStringFromBuffer)(e,!0),chainId:t}})}scanQRCode(e){return this.sendRequest({method:v.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,b.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,t){return this.sendRequest({method:v.Web3Method.generic,params:{action:t,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let t=null,n=(0,b.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,r),null==t||t()},i=new Promise((i,s)=>{this.ui.isStandalone()||(t=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,e=>{if(null==t||t(),e.errorMessage)return s(Error(e.errorMessage));i(e)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)});return{promise:i,cancel:r}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,t){var n;let r=(0,w.Web3RequestMessage)({id:e,request:t}),i=g.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(h.EVENTS.WEB3_REQUEST,{eventId:r.id,method:`relay::${r.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?g.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",r,!0).subscribe({next:e=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:r.id,method:`relay::${r.request.method}`,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?g.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r.id,response:{method:r.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){let t=(0,_.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",t,!1).subscribe())}publishEvent(e,t,n){let r=this.session.secret;return new a.Observable(e=>{y.encrypt(JSON.stringify(Object.assign(Object.assign({},t),{origin:location.origin})),r).then(t=>{e.next(t),e.complete()})}).pipe((0,l.mergeMap)(t=>this.connection.publishEvent(e,t,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,a.from)(y.decrypt(e.data,this.session.secret)).pipe((0,l.map)(e=>JSON.parse(e))).subscribe({next:e=>{let t=(0,x.isWeb3ResponseMessage)(e)?e:null;t&&this.handleWeb3ResponseMessage(t)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(h.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var t;let{response:n}=e;if(null===(t=this.diagnostic)||void 0===t||t.log(h.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:`relay::${n.method}`,sessionIdHash:this.getSessionIdHash()}),(0,S.isRequestEthereumAccountsResponse)(n)){E.accountRequestCallbackIds.forEach(t=>this.invokeCallback(Object.assign(Object.assign({},e),{id:t}))),E.accountRequestCallbackIds.clear();return}this.invokeCallback(e)}handleErrorResponse(e,t,n,r){var i;let s=null!==(i=null==n?void 0:n.message)&&void 0!==i?i:(0,f.standardErrorMessage)(r);this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:e,response:{method:t,errorMessage:s,errorCode:r}}))}invokeCallback(e){let t=this.relayEventManager.callbacks.get(e.id);t&&(t(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:v.Web3Method.requestEthereumAccounts,params:{appName:this.appName,a
14ppLogoUrl:this.appLogoUrl||null}},t=(0,b.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(t),this.handleErrorResponse(t,e.method,n)},r=new Promise((r,i)=>{var s;this.relayEventManager.callbacks.set(t,e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return i(Error(e.errorMessage));r(e)});let o=(null===(s=null==window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(o&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(o)){let e;try{e=(0,b.isInIFrame)()&&window.top?window.top.location:window.location}catch(t){e=window.location}e.href=`https://www.coinbase.com/connect-dapp?uri=${encodeURIComponent(e.href)}`;return}if(this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:n,onAccounts:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:t,response:(0,S.RequestEthereumAccountsResponse)(e)}))}});else{let e=f.standardErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(e)})}E.accountRequestCallbackIds.add(t),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(t,e)});return{promise:r,cancel:n}}selectProvider(e){let t={method:v.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,b.randomBytesHex)(8),r=new Promise((t,r)=>{this.relayEventManager.callbacks.set(n,e=>{if(e.errorMessage)return r(Error(e.errorMessage));t(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,S.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,S.SelectProviderResponse)(p.ProviderType.Unselected)}))},providerOptions:e})});return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,e)},promise:r}}watchAsset(e,t,n,r,i,s){let o={method:v.Web3Method.watchAsset,params:{type:e,options:{address:t,symbol:n,decimals:r,image:i},chainId:s}},u=null,c=(0,b.randomBytesHex)(8),a=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,e),null==u||u()};this.ui.inlineWatchAsset()||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}));let l=new Promise((a,l)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return l(Error(e.errorMessage));a(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,S.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,S.WatchAssetReponse)(!1)}))},type:e,address:t,symbol:n,decimals:r,image:i,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)});return{cancel:a,promise:l}}addEthereumChain(e,t,n,r,i,s){let o={method:v.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:t,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:s}},u=null,c=(0,b.randomBytesHex)(8),a=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,o.method,e),null==u||u()};this.ui.inlineAddEthereumChain(e)||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:a,onResetConnection:this.resetAndReload}));let l=new Promise((t,n)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return n(Error(e.errorMessage));t(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,S.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,S.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:o.params.chainId,rpcUrls:o.params.rpcUrls,blockExplorerUrls:o.params.blockExplorerUrls,chainName:o.params.chainName,iconUrls:o.params.iconUrls,nativeCurrency:o.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,o)});return{promise:l,cancel:a}}switchEthereumChain(e,t){let n={method:v.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:t})},r=(0,b.randomBytesHex)(8),i=new Promise((t,i)=>{this.relayEventManager.callbacks.set(r,e=>(0,S.isErrorResponse)(e)&&e.errorCode?i(f.standardErrors.provider.custom({code:e.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):e.errorMessage?i(Error(e.errorMessage)):void t(e)),this.ui.switchEthereumChain({onCancel:t=>{var n;if(t){let i=null!==(n=(0,f.getErrorCode)(t))&&void 0!==n?n:f.standardErrorCodes.provider.unsupportedChain;this.handleErrorResponse(r,v.Web3Method.switchEthereumChain,t instanceof Error?t:f.standardErrors.provider.unsupportedChain(e),i)}else this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r,response:(0,S.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r,response:(0,S.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,n)});return{promise:i,cancel:e=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return g.Session.hash(this._session.id)}sendRequestStandalone(e,t){let n=n=>{this.handleErrorResponse(e,t.method,n)},r=t=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:e,response:t}))};switch(t.method){case v.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:t,onSuccess:r,onCancel:n});break;case v.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case v.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:t,onSuccess:r,onCancel:n});break;case v.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:t,onSuccess:r});break;default:n()}}onSessionConfigChanged(e){}}E.accountRequestCallbackIds=new Set,s([c.default],E.prototype,"resetAndReload",null),s([c.default],E.prototype,"handleIncomingEvent",null),t.WalletSDKRelay=E},15633:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayAbstract=t.APP_VERSION_KEY=t.LOCAL_STORAGE_ADDRESSES_KEY=t.WALLET_USER_NAME_KEY=void 0;let r=n(69621);t.WALLET_USER_NAME_KEY="walletUsername",t.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",t.APP_VERSION_KEY="AppVersion",t.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(e,t){if(!t)throw Error("Error: No jsonRpcUrl provided");return window.fetch(t,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(t=>{if(!t)throw r.standardErrors.rpc.parse({});let{error:n}=t;if(n)throw(0,r.serializeError)(n,e.method);return t})}}},27472:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.WalletSDKRelayEventManager=void 0;let r=n(94643);t.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,t=(0,r.prepend0x)(e.toString(16)),n=this.callbacks.get(t);return n&&this.callbacks.delete(t),e}}},93083:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Web3Method=void 0,(n=t.Web3Method||(t.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",n.signEthereumMessage="signEthereumMessage",n.signEthereumTransaction="signEthereumTransaction",n.submitEthereumTransaction="submitEthereumTransaction",n.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",n.scanQRCode="scanQRCode",n.generic="generic",n.childRequestEthereumAccounts="childRequestEthereumAccounts",n.addEthereumChain="addEthereumChain",n.switchEthereumChain="switchEthereumChain",n.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",n.watchAsset="watchAsset",n.selectProvider="selectProvider"},85186:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestCanceledMessage=void 0;let r=n(85813);t.Web3RequestCanceledMessage=function(e){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},3770:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Web3RequestMessage=void 0;let r=n(85813);t.Web3RequestMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},e)}},67386:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumAddressFromSignedMessageResponse=t.SubmitEthereumTransactionResponse=t.SignEthereumTransactionResponse=t.SignEthereumMessageResponse=t.isRequestEthereumAccountsResponse=t.SelectProviderResponse=t.WatchAssetReponse=t.RequestEthereumAccountsResponse=t.SwitchEthereumChainResponse=t.AddEthereumChainResponse=t.isErrorResponse=void 0;let r=n(93083);t.isErrorResponse=function(e){return(null==e?void 0:e.method)!==void 0&&(null==e?void 0:e.errorMessage)!==void 0},t.AddEthereumChainResponse=function(e){return{method:r.Web3Method.addEthereumChain,result:e}},t.SwitchEthereumChainResponse=function(e){return{method:r.Web3Method.switchEthereumChain,result:e}},t.RequestEthereumAccountsResponse=function(e){return{method:r.Web3Method.requestEthereumAccounts,result:e}},t.WatchAssetReponse=function(e){return{method:r.Web3Method.watchAsset,result:e}},t.SelectProviderResponse=function(e){return{method:r.Web3Method.selectProvider,result:e}},t.isRequestEthereumAccountsResponse=function(e){return e&&e.method===r.Web3Method.requestEthereumAccounts},t.SignEthereumMessageResponse=function(e){return{method:r.Web3Method.signEthereumMessage,result:e}},t.SignEthereumTransactionResponse=function(e){return{method:r.Web3Method.signEthereumTransaction,result:e}},t.SubmitEthereumTransactionResponse=function(e){return{method:r.Web3Method.submitEthereumTransaction,result:e}},t.EthereumAddressFromSignedMessageResponse=function(e){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:e}}},50287:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isWeb3ResponseMessage=t.Web3ResponseMessage=void 0;let r=n(85813);t.Web3ResponseMessage=function(e){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},e)},t.isWeb3ResponseMessage=function(e){return e&&e.type===r.RelayMessageType.WEB3_RESPONSE}},20235:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.decrypt=t.encrypt=void 0;let r=n(94643);async function i(e,t){if(64!==t.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,o=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,s.encode(e)),u=o.slice(o.byteLength-16),c=o.slice(0,o.byteLength-16),a=new Uint8Array(u),l=new Uint8Array(c),h=new Uint8Array([...n,...a,...l]);return(0,r.uint8ArrayToHex)(h)}t.encrypt=i,t.decrypt=function(e,t){if(64!==t.length)throw Error("secret must be 256 bits");return new Promise((n,i)=>{!async function(){let s=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(t),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=(0,r.hexStringToUint8Array)(e),u=o.slice(0,12),c=o.slice(12,28),a=o.slice(28),l=new Uint8Array([...a,...c]),h={name:"AES-GCM",iv:new Uint8Array(u)};try{let e=await window.crypto.subtle.decrypt(h,s,l),t=new TextDecoder;n(t.decode(e))}catch(e){i(e)}}()})}},91295:function(e,t){"use strict";var n;function r(){return e=>e}Object.defineProperty(t,"__esModule",{value:!0}),t.ProviderType=t.RegExpString=t.IntNumber=t.BigIntString=t.AddressString=t.HexString=t.OpaqueType=void 0,t.OpaqueType=r,t.HexString=r(),t.AddressString=r(),t.BigIntString=r(),t.IntNumber=function(e){return Math.floor(e)},t.RegExpString=r(),(n=t.ProviderType||(t.ProviderType={})).CoinbaseWallet="CoinbaseWallet",n.MetaMask="MetaMask",n.Unselected=""},94643:function(e,t,n){"use strict";var r=n(48764).Buffer,i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.isInIFrame=t.createQrUrl=t.getFavicon=t.range=t.isBigNumber=t.ensureParsedJSONObject=t.ensureBN=t.ensureRegExpString=t.ensureIntNumber=t.ensureBuffer=t.ensureAddressString=t.ensureEvenLengthHexString=t.ensureHexString=t.isHexString=t.prepend0x=t.strip0x=t.has0xPrefix=t.hexStringFromIntNumber=t.intNumberFromHexString=t.bigIntStringFromBN=t.hexStringFromBuffer=t.hexStringToUint8Array=t.uint8ArrayToHex=t.randomBytesHex=void 0;let s=i(n(13550)),o=n(80129),u=n(69621),c=n(91295),a=/^[0-9]*$/,l=/^[a-f0-9]*$/;function h(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function d(e){return e.startsWith("0x")||e.startsWith("0X")}function f(e){return d(e)?e.slice(2):e}function p(e){return d(e)?"0x"+e.slice(2):"0x"+e}function b(e){if("string"!=typeof e)return!1;let t=f(e).toLowerCase();return l.test(t)}function y(e,t=!1){if("string"==typeof e){let n=f(e).toLowerCase();if(l.test(n))return(0,c.HexString)(t?"0x"+n:n)}throw u.standardErrors.rpc.invalidParams(`"${String(e)}" is not a hexadecimal string`)}function g(e,t=!1){let n=y(e,!1);return n.length%2==1&&(n=(0,c.HexString)("0"+n)),t?(0,c.HexString)("0x"+n):n}function m(e){if("number"==typeof e&&Number.isInteger(e))return(0,c.IntNumber)(e);if("string"==typeof e){if(a.test(e))return(0,c.IntNumber)(Number(e));if(b(e))return(0,c.IntNumber)(new s.default(g(e,!1),16).toNumber())}throw u.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)}function v(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:t}=e;return"function"==typeof t.config&&"number"==typeof t.EUCLID}t.randomBytesHex=function(e){return h(crypto.getRandomValues(new Uint8Array(e)))},t.uint8ArrayToHex=h,t.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},t.hexStringFromBuffer=function(e,t=!1){let n=e.toString("hex");return(0,c.HexString)(t?"0x"+n:n)},t.bigIntStringFromBN=function(e){return(0,c.BigIntString)(e.toString(10))},t.intNumberFromHexString=function(e){return(0,c.IntNumber)(new s.default(g(e,!1),16).toNumber())},t.hexStringFromIntNumber=function(e){return(0,c.HexString)("0x"+new s.default(e).toString(16))},t.has0xPrefix=d,t.strip0x=f,t.prepend0x=p,t.isHexString=b,t.ensureHexString=y,t.ensureEvenLengthHexString=g,t.ensureAddressString=function(e){if("string"==typeof e){let t=f(e).toLowerCase();if(b(t)&&40===t.length)return(0,c.AddressString)(p(t))}throw u.standardErrors.rpc.invalidParams(`Invalid Ethereum address: ${String(e)}`)},t.ensureBuffer=function(e){if(r.isBuffer(e))return e;if("string"==typeof e){if(!b(e))return r.from(e,"utf8");{let t=g(e,!1);return r.from(t,"hex")}}throw u.standardErrors.rpc.invalidParams(`Not binary data: ${String(e)}`)},t.ensureIntNumber=m,t.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,c.RegExpString)(e.toString());throw u.standardErrors.rpc.invalidParams(`Not a RegExp: ${String(e)}`)},t.ensureBN=function(e){if(null!==e&&(s.default.isBN(e)||v(e)))return new s.default(e.toString(10),10);if("number"==typeof e)return new s.default(m(e));if("string"==typeof e){if(a.test(e))return new s.default(e,10);if(b(e))return new s.default(g(e,!1),16)}throw u.standardErrors.rpc.invalidParams(`Not an integer: ${String(e)}`)},t.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw u.standardErrors.rpc.invalidParams(`Not a JSON string or an object: ${String(e)}`)},t.isBigNumber=v,t.range=function(e,t){return Array.from({length:t-e},(t,n)=>e+n)},t.getFavicon=function(){let e=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:t,host:n}=document.location,r=e?e.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?t+r:`${t}//${n}${r}`},t.createQrUrl=function(e,t,n,r,i,s){let u=(0,o.stringify)({[r?"parent-id":"id"]:e,secret:t,server:n,v:i,chainId:s}),c=`${n}/#/link?${u}`;return c},t.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}},36089:function(e,t,n){var r=n(48764).Buffer;let i=n(32518),s=n(13550);function o(e){if(e.startsWith("int["))return"int256"+e.slice(3);if("int"===e)return"int256";if(e.startsWith("uint["))return"uint256"+e.slice(4);if("uint"===e)return"uint256";if(e.startsWith("fixed["))return"fixed128x128"+e.slice(5);if("fixed"===e)return"fixed128x128";if(e.startsWith("ufixed["))return"ufixed128x128"+e.slice(6);else if("ufixed"===e)return"ufixed128x128";return e}function u(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function c(e){var t=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(t[1],10),parseInt(t[2],10)]}function a(e){var t=e.match(/(.*)\[(.*?)\]$/);return t?""===t[2]?"dynamic":parseInt(t[2],10):null}function l(e){var t=typeof e;if("string"===t)return i.isHexString(e)?new s(i.stripHexPrefix(e),16):new s(e,10);if("number"===t)return new s(e);if(e.toArray)return e;throw Error("Argument is not a number")}function h(e,t){if("address"===e)return h("uint160",l(t));if("bool"===e)return h("uint8",t?1:0);if("string"===e)return h("bytes",new r(t,"utf8"));if((p=e).lastIndexOf("]")===p.length-1){if(void 0===t.length)throw Error("Not an array?");if("dynamic"!==(n=a(e))&&0!==n&&t.length>n)throw Error("Elements exceed array size: "+n);for(f in d=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof t&&(t=JSON.parse(t)),t)d.push(h(e,t[f]));if("dynamic"===n){var n,o,d,f,p,b=h("uint256",t.length);d.unshift(b)}return r.concat(d)}if("bytes"===e)return t=new r(t),d=r.concat([h("uint256",t.length),t]),t.length%32!=0&&(d=r.concat([d,i.zeros(32-t.length%32)])),d;if(e.startsWith("bytes")){if((n=u(e))<1||n>32)throw Error("Invalid bytes<N> width: "+n);
vendor: 6,007 bytes, line 14
14return i.setLengthRight(t,32)}else if(e.startsWith("uint")){if((n=u(e))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((o=l(t)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+o.bitLength());if(o<0)throw Error("Supplied uint is negative");return o.toArrayLike(r,"be",32)}else if(e.startsWith("int")){if((n=u(e))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((o=l(t)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+o.bitLength());return o.toTwos(256).toArrayLike(r,"be",32)}else if(e.startsWith("ufixed")){if(n=c(e),(o=l(t))<0)throw Error("Supplied ufixed is negative");return h("uint256",o.mul(new s(2).pow(new s(n[1]))))}else if(e.startsWith("fixed"))return n=c(e),h("int256",l(t).mul(new s(2).pow(new s(n[1]))));throw Error("Unsupported or invalid type: "+e)}function d(e,t){if(e.length!==t.length)throw Error("Number of types are not matching the values");for(var n,s,c=[],a=0;a<e.length;a++){var h=o(e[a]),d=t[a];if("bytes"===h)c.push(d);else if("string"===h)c.push(new r(d,"utf8"));else if("bool"===h)c.push(new r(d?"01":"00","hex"));else if("address"===h)c.push(i.setLength(d,20));else if(h.startsWith("bytes")){if((n=u(h))<1||n>32)throw Error("Invalid bytes<N> width: "+n);c.push(i.setLengthRight(d,n))}else if(h.startsWith("uint")){if((n=u(h))%8||n<8||n>256)throw Error("Invalid uint<N> width: "+n);if((s=l(d)).bitLength()>n)throw Error("Supplied uint exceeds width: "+n+" vs "+s.bitLength());c.push(s.toArrayLike(r,"be",n/8))}else if(h.startsWith("int")){if((n=u(h))%8||n<8||n>256)throw Error("Invalid int<N> width: "+n);if((s=l(d)).bitLength()>n)throw Error("Supplied int exceeds width: "+n+" vs "+s.bitLength());c.push(s.toTwos(n).toArrayLike(r,"be",n/8))}else throw Error("Unsupported or invalid type: "+h)}return r.concat(c)}e.exports={rawEncode:function(e,t){var n=[],i=[],s=32*e.length;for(var u in e){var c=o(e[u]),l=h(c,t[u]);"string"===c||"bytes"===c||"dynamic"===a(c)?(n.push(h("uint256",s)),i.push(l),s+=l.length):n.push(l)}return r.concat(n.concat(i))},solidityPack:d,soliditySHA3:function(e,t){return i.keccak(d(e,t))}}},14497:function(e,t,n){var r=n(48764).Buffer;let i=n(32518),s=n(36089),o={type:"object",properties:{types:{type:"object",additionalProperties:{type:"array",items:{type:"object",properties:{name:{type:"string"},type:{type:"string"}},required:["name","type"]}}},primaryType:{type:"string"},domain:{type:"object"},message:{type:"object"}},required:["types","primaryType","domain","message"]},u={encodeData(e,t,n,o=!0){let u=["bytes32"],c=[this.hashType(e,n)];if(o){let a=(e,t,u)=>{if(void 0!==n[t])return["bytes32",null==u?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(t,u,n,o))];if(void 0===u)throw Error(`missing value for field ${e} of type ${t}`);if("bytes"===t)return["bytes32",i.keccak(u)];if("string"===t)return"string"==typeof u&&(u=r.from(u,"utf8")),["bytes32",i.keccak(u)];if(t.lastIndexOf("]")===t.length-1){let n=t.slice(0,t.lastIndexOf("[")),r=u.map(t=>a(e,n,t));return["bytes32",i.keccak(s.rawEncode(r.map(([e])=>e),r.map(([,e])=>e)))]}return[t,u]};for(let r of n[e]){let[e,n]=a(r.name,r.type,t[r.name]);u.push(e),c.push(n)}}else for(let s of n[e]){let e=t[s.name];if(void 0!==e){if("bytes"===s.type)u.push("bytes32"),e=i.keccak(e),c.push(e);else if("string"===s.type)u.push("bytes32"),"string"==typeof e&&(e=r.from(e,"utf8")),e=i.keccak(e),c.push(e);else if(void 0!==n[s.type])u.push("bytes32"),e=i.keccak(this.encodeData(s.type,e,n,o)),c.push(e);else if(s.type.lastIndexOf("]")===s.type.length-1)throw Error("Arrays currently unimplemented in encodeData");else u.push(s.type),c.push(e)}}return s.rawEncode(u,c)},encodeType(e,t){let n="",r=this.findTypeDependencies(e,t).filter(t=>t!==e);for(let i of r=[e].concat(r.sort())){let e=t[i];if(!e)throw Error("No type definition specified: "+i);n+=i+"("+t[i].map(({name:e,type:t})=>t+" "+e).join(",")+")"}return n},findTypeDependencies(e,t,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===t[e])return n;for(let r of(n.push(e),t[e]))for(let e of this.findTypeDependencies(r.type,t,n))n.includes(e)||n.push(e);return n},hashStruct(e,t,n,r=!0){return i.keccak(this.encodeData(e,t,n,r))},hashType(e,t){return i.keccak(this.encodeType(e,t))},sanitizeData(e){let t={};for(let n in o.properties)e[n]&&(t[n]=e[n]);return t.types&&(t.types=Object.assign({EIP712Domain:[]},t.types)),t},hash(e,t=!0){let n=this.sanitizeData(e),s=[r.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",n.domain,n.types,t)),"EIP712Domain"!==n.primaryType&&s.push(this.hashStruct(n.primaryType,n.message,n.types,t)),i.keccak(r.concat(s))}};e.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:u,hashForSignTypedDataLegacy:function(e){return function(e){let t=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw t;let n=e.map(function(e){return"bytes"===e.type?i.toBuffer(e.value):e.value}),r=e.map(function(e){return e.type}),o=e.map(function(e){if(!e.name)throw t;return e.type+" "+e.name});return s.soliditySHA3(["bytes32","bytes32"],[s.soliditySHA3(Array(e.length).fill("string"),o),s.soliditySHA3(r,n)])}(e.data)},hashForSignTypedData_v3:function(e){return u.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return u.hash(e.data)}}},32518:function(e,t,n){var r=n(48764).Buffer;let i=n(95811),s=n(13550);function o(e){return r.allocUnsafe(e).fill(0)}function u(e,t,n){let r=o(t);return(e=c(e),n)?e.length<t?(e.copy(r),r):e.slice(0,t):e.length<t?(e.copy(r,t-e.length),r):e.slice(-t)}function c(e){if(!r.isBuffer(e)){if(Array.isArray(e))e=r.from(e);else if("string"==typeof e){var t;e=a(e)?r.from((t=l(e)).length%2?"0"+t:t,"hex"):r.from(e)}else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(s.isBN(e))e=e.toArrayLike(r);else if(e.toArray)e=r.from(e.toArray());else throw Error("invalid type")}return e}function a(e){return"string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/)}function l(e){return"string"==typeof e&&e.startsWith("0x")?e.slice(2):e}
14e.exports={zeros:o,setLength:u,setLengthRight:function(e,t){return u(e,t,!0)},isHexString:a,stripHexPrefix:l,toBuffer:c,bufferToHex:function(e){return"0x"+(e=c(e)).toString("hex")},keccak:function(e,t){return e=c(e),t||(t=256),i("keccak"+t).update(e).digest()}}},7713:function(e){function t(e){this.mode=r.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var t=0,n=this.data.length;t<n;t++){var i=[],s=this.data.charCodeAt(t);s>65536?(i[0]=240|(1835008&s)>>>18,i[1]=128|(258048&s)>>>12,i[2]=128|(4032&s)>>>6,i[3]=128|63&s):s>2048?(i[0]=224|(61440&s)>>>12,i[1]=128|(4032&s)>>>6,i[2]=128|63&s):s>128?(i[0]=192|(1984&s)>>>6,i[1]=128|63&s):i[0]=s,this.parsedData.push(i)}this.parsedData=Array.prototype.concat.apply([],this.parsedData),this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function n(e,t){this.typeNumber=e,this.errorCorrectLevel=t,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}t.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var t=0,n=this.parsedData.length;t<n;t++)e.put(this.parsedData[t],8)}},n.prototype={addData:function(e){var n=new t(e);this.dataList.push(n),this.dataCache=null},isDark:function(e,t){if(e<0||this.moduleCount<=e||t<0||this.moduleCount<=t)throw Error(e+","+t);return this.modules[e][t]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,t){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var r=0;r<this.moduleCount;r++){this.modules[r]=Array(this.moduleCount);for(var i=0;i<this.moduleCount;i++)this.modules[r][i]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,t),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=n.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,t)},setupPositionProbePattern:function(e,t){for(var n=-1;n<=7;n++)if(!(e+n<=-1)&&!(this.moduleCount<=e+n))for(var r=-1;r<=7;r++)t+r<=-1||this.moduleCount<=t+r||(0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4?this.modules[e+n][t+r]=!0:this.modules[e+n][t+r]=!1)},getBestMaskPattern:function(){for(var e=0,t=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||e>r)&&(e=r,t=n)}return t},createMovieClip:function(e,t,n){var r=e.createEmptyMovieClip(t,n);this.make();for(var i=0;i<this.modules.length;i++)for(var s=1*i,o=0;o<this.modules[i].length;o++){var u=1*o;this.modules[i][o]&&(r.beginFill(0,100),r.moveTo(u,s),r.lineTo(u+1,s),r.lineTo(u+1,s+1),r.lineTo(u,s+1),r.endFill())}return r},setupTimingPattern:function(){for(var e=8;e<this.moduleCount-8;e++)null==this.modules[e][6]&&(this.modules[e][6]=e%2==0);for(var t=8;t<this.moduleCount-8;t++)null==this.modules[6][t]&&(this.modules[6][t]=t%2==0)},setupPositionAdjustPattern:function(){for(var e=o.getPatternPosition(this.typeNumber),t=0;t<e.length;t++)for(var n=0;n<e.length;n++){var r=e[t],i=e[n];if(null==this.modules[r][i])for(var s=-2;s<=2;s++)for(var u=-2;u<=2;u++)-2==s||2==s||-2==u||2==u||0==s&&0==u?this.modules[r+s][i+u]=!0:this.modules[r+s][i+u]=!1}},setupTypeNumber:function(e){for(var t=o.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(var n=0;n<18;n++){var r=!e&&(t>>n&1)==1;this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r}},setupTypeInfo:function(e,t){for(var n=this.errorCorrectLevel<<3|t,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var s=!e&&(r>>i&1)==1;i<6?this.modules[i][8]=s:i<8?this.modules[i+1][8]=s:this.modules[this.moduleCount-15+i][8]=s}for(var i=0;i<15;i++){var s=!e&&(r>>i&1)==1;i<8?this.modules[8][this.moduleCount-i-1]=s:i<9?this.modules[8][15-i-1+1]=s:this.modules[8][15-i-1]=s}this.modules[this.moduleCount-8][8]=!e},mapData:function(e,t){for(var n=-1,r=this.moduleCount-1,i=7,s=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var c=0;c<2;c++)if(null==this.modules[r][u-c]){var a=!1;s<e.length&&(a=(e[s]>>>i&1)==1),o.getMask(t,r,u-c)&&(a=!a),this.modules[r][u-c]=a,-1==--i&&(s++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},n.PAD0=236,n.PAD1=17,n.createData=function(e,t,r){for(var i=l.getRSBlocks(e,t),s=new h,u=0;u<r.length;u++){var c=r[u];s.put(c.mode,4),s.put(c.getLength(),o.getLengthInBits(c.mode,e)),c.write(s)}for(var a=0,u=0;u<i.length;u++)a+=i[u].dataCount;if(s.getLengthInBits()>8*a)throw Error("code length overflow. ("+s.getLengthInBits()+">"+8*a+")");for(s.getLengthInBits()+4<=8*a&&s.put(0,4);s.getLengthInBits()%8!=0;)s.putBit(!1);for(;!(s.getLengthInBits()>=8*a)&&(s.put(n.PAD0,8),!(s.getLengthInBits()>=8*a));)s.put(n.PAD1,8);return n.createBytes(s,i)},n.createBytes=function(e,t){for(var n=0,r=0,i=0,s=Array(t.length),u=Array(t.length),c=0;c<t.length;c++){var l=t[c].dataCount,h=t[c].totalCount-l;r=Math.max(r,l),i=Math.max(i,h),s[c]=Array(l);for(var d=0;d<s[c].length;d++)s[c][d]=255&e.buffer[d+n];n+=l;var f=o.getErrorCorrectPolynomial(h),p=new a(s[c],f.getLength()-1).mod(f);u[c]=Array(f.getLength()-1);for(var d=0;d<u[c].length;d++){var b=d+p.getLength()-u[c].length;u[c][d]=b>=0?p.get(b):0}}for(var y=0,d=0;d<t.length;d++)y+=t[d].totalCount;for(var g=Array(y),m=0,d=0;d<r;d++)for(var c=0;c<t.length;c++)d<s[c].length&&(g[m++]=s[c][d]);for(var d=0;d<i;d++)for(var c=0;c<t.length;c++)d<u[c].length&&(g[m++]=u[c][d]);return g};for(var r={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},i={L:1,M:0,Q:3,H:2},s={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},o={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(e){for(var t=e<<10;
14o.getBCHDigit(t)-o.getBCHDigit(o.G15)>=0;)t^=o.G15<<o.getBCHDigit(t)-o.getBCHDigit(o.G15);return(e<<10|t)^o.G15_MASK},getBCHTypeNumber:function(e){for(var t=e<<12;o.getBCHDigit(t)-o.getBCHDigit(o.G18)>=0;)t^=o.G18<<o.getBCHDigit(t)-o.getBCHDigit(o.G18);return e<<12|t},getBCHDigit:function(e){for(var t=0;0!=e;)t++,e>>>=1;return t},getPatternPosition:function(e){return o.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,t,n){switch(e){case s.PATTERN000:return(t+n)%2==0;case s.PATTERN001:return t%2==0;case s.PATTERN010:return n%3==0;case s.PATTERN011:return(t+n)%3==0;case s.PATTERN100:return(Math.floor(t/2)+Math.floor(n/3))%2==0;case s.PATTERN101:return t*n%2+t*n%3==0;case s.PATTERN110:return(t*n%2+t*n%3)%2==0;case s.PATTERN111:return(t*n%3+(t+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var t=new a([1],0),n=0;n<e;n++)t=t.multiply(new a([1,u.gexp(n)],0));return t},getLengthInBits:function(e,t){if(1<=t&&t<10)switch(e){case r.MODE_NUMBER:return 10;case r.MODE_ALPHA_NUM:return 9;case r.MODE_8BIT_BYTE:case r.MODE_KANJI:return 8;default:throw Error("mode:"+e)}else if(t<27)switch(e){case r.MODE_NUMBER:return 12;case r.MODE_ALPHA_NUM:return 11;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 10;default:throw Error("mode:"+e)}else if(t<41)switch(e){case r.MODE_NUMBER:return 14;case r.MODE_ALPHA_NUM:return 13;case r.MODE_8BIT_BYTE:return 16;case r.MODE_KANJI:return 12;default:throw Error("mode:"+e)}else throw Error("type:"+t)},getLostPoint:function(e){for(var t=e.getModuleCount(),n=0,r=0;r<t;r++)for(var i=0;i<t;i++){for(var s=0,o=e.isDark(r,i),u=-1;u<=1;u++)if(!(r+u<0)&&!(t<=r+u))for(var c=-1;c<=1;c++)!(i+c<0)&&!(t<=i+c)&&(0!=u||0!=c)&&o==e.isDark(r+u,i+c)&&s++;s>5&&(n+=3+s-5)}for(var r=0;r<t-1;r++)for(var i=0;i<t-1;i++){var a=0;e.isDark(r,i)&&a++,e.isDark(r+1,i)&&a++,e.isDark(r,i+1)&&a++,e.isDark(r+1,i+1)&&a++,(0==a||4==a)&&(n+=3)}for(var r=0;r<t;r++)for(var i=0;i<t-6;i++)e.isDark(r,i)&&!e.isDark(r,i+1)&&e.isDark(r,i+2)&&e.isDark(r,i+3)&&e.isDark(r,i+4)&&!e.isDark(r,i+5)&&e.isDark(r,i+6)&&(n+=40);for(var i=0;i<t;i++)for(var r=0;r<t-6;r++)e.isDark(r,i)&&!e.isDark(r+1,i)&&e.isDark(r+2,i)&&e.isDark(r+3,i)&&e.isDark(r+4,i)&&!e.isDark(r+5,i)&&e.isDark(r+6,i)&&(n+=40);for(var l=0,i=0;i<t;i++)for(var r=0;r<t;r++)e.isDark(r,i)&&l++;return n+10*(Math.abs(100*l/t/t-50)/5)}},u={glog:function(e){if(e<1)throw Error("glog("+e+")");return u.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return u.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},c=0;c<8;c++)u.EXP_TABLE[c]=1<<c;for(var c=8;c<256;c++)u.EXP_TABLE[c]=u.EXP_TABLE[c-4]^u.EXP_TABLE[c-5]^u.EXP_TABLE[c-6]^u.EXP_TABLE[c-8];for(var c=0;c<255;c++)u.LOG_TABLE[u.EXP_TABLE[c]]=c;function a(e,t){if(void 0==e.length)throw Error(e.length+"/"+t);for(var n=0;n<e.length&&0==e[n];)n++;this.num=Array(e.length-n+t);for(var r=0;r<e.length-n;r++)this.num[r]=e[r+n]}function l(e,t){this.totalCount=e,this.dataCount=t}function h(){this.buffer=[],this.length=0}a.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var t=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var r=0;r<e.getLength();r++)t[n+r]^=u.gexp(u.glog(this.get(n))+u.glog(e.get(r)));return new a(t,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var t=u.glog(this.get(0))-u.glog(e.get(0)),n=Array(this.getLength()),r
14=0;r<this.getLength();r++)n[r]=this.get(r);for(var r=0;r<e.getLength();r++)n[r]^=u.gexp(u.glog(e.get(r))+t);return new a(n,0).mod(e)}},l.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],l.getRSBlocks=function(e,t){var n=l.getRsBlockTable(e,t);if(void 0==n)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+t);for(var r=n.length/3,i=[],s=0;s<r;s++)for(var o=n[3*s+0],u=n[3*s+1],c=n[3*s+2],a=0;a<o;a++)i.push(new l(u,c));return i},l.getRsBlockTable=function(e,t){switch(t){case i.L:return l.RS_BLOCK_TABLE[(e-1)*4+0];case i.M:return l.RS_BLOCK_TABLE[(e-1)*4+1];case i.Q:return l.RS_BLOCK_TABLE[(e-1)*4+2];case i.H:return l.RS_BLOCK_TABLE[(e-1)*4+3];default:return}},h.prototype={get:function(e){var t=Math.floor(e/8);return(this.buffer[t]>>>7-e%8&1)==1},put:function(e,t){for(var n=0;n<t;n++)this.putBit((e>>>t-n-1&1)==1)},getLengthInBits:function(){return this.length},putBit:function(e){var t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),e&&(this.buffer[t]|=128>>>this.length%8),this.length++}};var d=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,71
145,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]];function f(e){if(this.options={padding:4,width:256,height:256,typeNumber:4,color:"#000000",background:"#ffffff",ecl:"M",image:{svg:"",width:0,height:0}},"string"==typeof e&&(e={content:e}),e)for(var t in e)this.options[t]=e[t];if("string"!=typeof this.options.content)throw Error("Expected 'content' as string!");if(0===this.options.content.length)throw Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0)||!(this.options.height>0))throw Error("Expected 'width' or 'height' value to be higher than zero!");var r=this.options.content,s=function(e,t){for(var n,r=(n=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(n.length!=e?3:0),i=1,s=0,o=0,u=d.length;o<=u;o++){var c=d[o];if(!c)throw Error("Content too long: expected "+s+" but got "+r);switch(t){case"L":s=c[0];break;case"M":s=c[1];break;case"Q":s=c[2];break;case"H":s=c[3];break;default:throw Error("Unknwon error correction level: "+t)}if(r<=s)break;i++}if(i>d.length)throw Error("Content too long");return i}(r,this.options.ecl),o=function(e){switch(e){case"L":return i.L;case"M":return i.M;case"Q":return i.Q;case"H":return i.H;default:throw Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new n(s,o),this.qrcode.addData(r),this.qrcode.make()}f.prototype.svg=function(e){var t=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:t.container||"svg"});for(var r=void 0===t.pretty||!!t.pretty,i=r?" ":"",s=r?"\r\n":"",o=t.width,u=t.height,c=n.length,a=o/(c+2*t.padding),l=u/(c+2*t.padding),h=void 0!==t.join&&!!t.join,d=void 0!==t.swap&&!!t.swap,f=void 0===t.xmlDeclaration||!!t.xmlDeclaration,p=void 0!==t.predefined&&!!t.predefined,b=p?i+'<defs><path id="qrmodule" d="M0 0 h'+l+" v"+a+' H0 z" style="fill:'+t.color+';shape-rendering:crispEdges;" /></defs>'+s:"",y=i+'<rect x="0" y="0" width="'+o+'" height="'+u+'" style="fill:'+t.background+';shape-rendering:crispEdges;"/>'+s,g="",m="",v=0;v<c;v++)for(var _=0;_<c;_++)if(n[_][v]){var w=_*a+t.padding*a,S=v*l+t.padding*l;if(d){var x=w;w=S,S=x}if(h){var E=a+w,C=l+S;w=Number.isInteger(w)?Number(w):w.toFixed(2),S=Number.isInteger(S)?Number(S):S.toFixed(2),E=Number.isInteger(E)?Number(E):E.toFixed(2),m+="M"+w+","+S+" V"+(C=Number.isInteger(C)?Number(C):C.toFixed(2))+" H"+E+" V"+S+" H"+w+" Z "}else p?g+=i+'<use x="'+w.toString()+'" y="'+S.toString()+'" href="#qrmodule" />'+s:g+=i+'<rect x="'+w.toString()+'" y="'+S.toString()+'" width="'+a+'" height="'+l+'" style="fill:'+t.color+';shape-rendering:crispEdges;"/>'+s}h&&(g=i+'<path x="0" y="0" style="fill:'+t.color+';shape-rendering:crispEdges;" d="'+m+'" />');let k="";if(void 0!==this.options.image&&this.options.image.svg){let e=o*this.options.image.width/100,t=u*this.options.image.height/100;k+=`<svg x="${o/2-e/2}" y="${u/2-t/2}" width="${e}" height="${t}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+s)+"</svg>"}var M="";switch(e.container){case"svg":f&&(M+='<?xml version="1.0" standalone="yes"?>'+s),M+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+o+'" height="'+u+'">'+s+(b+y+g)+k+"</svg>";break;case"svg-viewbox":f&&(M+='<?xml version="1.0" standalone="yes"?>'+s),M+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+o+" "+u+'">'+s+(b+y+g)+k+"</svg>";break;case"g":M+='<g width="'+o+'" height="'+u+'">'+s+(b+y+g)+k+"</g>";break;default:M+=(b+y+g+k).replace(/^\s+/,"")}return M},e.exports=f},43604:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LIB_VERSION=void 0,t.LIB_VERSION="3.7.2"},19394:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});let r=n(17187);function i(e,t,n){try{Reflect.apply(e,t,n)}catch(e){setTimeout(()=>{throw e})}}class s extends r.EventEmitter{emit(e,...t){let n="error"===e,r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let e;if(t.length>0&&([e]=t),e instanceof Error)throw e;let n=Error(`Unhandled error.${e?` (${e.message})`:""}`);throw n.context=e,n}let s=r[e];if(void 0===s)return!1;if("function"==typeof s)i(s,this,t);else{let e=s.length,n=function(e){let t=e.length,n=Array(t);for(let r=0;r<t;r+=1)n[r]=e[r];return n}(s);for(let r=0;r<e;r+=1)i(n[r],this,t)}return!0}}t.default=s},31422:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.assertExhaustive=t.assertStruct=t.assert=t.AssertionError=void 0;let r=n(11821);function i(e,t){var n,r;return"string"==typeof(null===(r=null===(n=null==e?void 0:e.prototype)||void 0===n?void 0:n.constructor)||void 0===r?void 0:r.name)?new e({message:t}):e({message:t})}class s extends Error{constructor(e){super(e.message),this.code="ERR_ASSERTION"}}t.AssertionError=s,t.assert=function(e,t="Assertion failed.",n=s){if(!e){if(t instanceof Error)throw t;throw i(n,t)}},t.assertStruct=function(e,t,n="Assertion failed",o=s){try{(0,r.assert)(e,t)}catch(e){throw i(o,`${n}: ${function(e){let t="object"==typeof e&&null!==e&&"message"in e?e.message:String(e);return t.endsWith(".")?t.slice(0,-1):t}(e)}.`)}},t.assertExhaustive=function(e){throw Error("Invalid branch reached. Should be detected during compilation.")}},47207:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.base64=void 0;let r=n(11821),i=n(31422);t.base64=(e,t={})=>{var n,s;let o,u;let c=null!==(n=t.paddingRequired)&&void 0!==n&&n,a=null!==(s=t.characterSet)&&void 0!==s?s:"base64";return"base64"===a?o=String.raw`[A-Za-z0-9+\/]`:((0,i.assert)("base64url"===a),o=String.raw`[-_A-Za-z0-9]`),u=c?RegExp(`^(?:${o}{4})*(?:${o}{3}=|${o}{2}==)?$`,"u"):RegExp(`^(?:${o}{4})*(?:${o}{2,3}|${o}{3}=|${o}{2}==)?$`,"u"),(0,r.pattern)(e,u)}},8476:function(e,t,n){"use strict";var r=n(48764).Buffer;Object.defineProperty(t,"__esModule",{value:!0}),t.createDataView=t.concatBytes=t.valueToBytes=t.stringToBytes=t.numberToBytes=t.signedBigIntToBytes=t.bigIntToBytes=t.hexToBytes=t.bytesToString=t.bytesToNumber=t.bytesToSignedBigInt=t.bytesToBigInt=t.bytesToHex=t.assertIsBytes=t.isBytes=void 0;let i=n(31422),s=n(62009),o=function(){let e=[];return()=>{if(0===e.length)for(let t=0;t<256;t++)e.push(t.toString(16).padStart(2,"0"));return e}}();function u(e){return e instanceof Uint8Array}function c(e){(0,i.assert)(u(e),"Value must be a Uint8Array.")}function a(e){if(c(e),0===e.length)return"0x";let t=o(),n=Array(e.length);for(let r=0;r<e.length;r++)n[r]=t[e[r]];return(0,s.add0x)(n.join(""))}function l(e){c(e);let t=a(e);return BigInt(t)}function h(e){var t;if((null===(t=null==e?void 0:e.toLowerCase)||void 0===t?void 0:t.call(e))==="0x")return new Uint8Array;(0,s.assertIsHexString)(e);let n=(0,s.remove0x)(e).toLowerCase(),r=n.length%2==0?n:`0${n}`,i=new Uint8Array(r.length/2);for(let e=0;e<i.length;e++){let t=r.charCodeAt(2*e),n=r.charCodeAt(2*e+1),s=t-(t<58?48:87),o=n-(n<58?48:87);i[e]=16*s+o}return i}function d(e){(0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)(e>=BigInt(0),"Value must be a non-negative bigint.");let t=e.toString(16);return h(t)}function f(e){(0,i.assert)("number"==typeof e,"Value must be a number."),(0,i.assert)(e>=0,"Value must be a non-negative number."),(0,i.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToBytes` instead.");let t=e.toString(16);return h(t)}function p(e){return(0,i.assert)("string"==typeof e,"Value must be a string."),new TextEncoder().encode(e)}function b(e){if("bigint"==typeof e)return d(e);if("number"==typeof e)return f(e);if("string"==typeof e)return e.startsWith("0x")?h(e):p(e);if(u(e))return e;throw TypeError(`Unsupported value type: "${typeof e}".`)}t.isBytes=u,t.assertIsBytes=c,t.bytesToHex=a,t.bytesToBigInt=l,t.bytesToSignedBigInt=function(e){c(e);let t=BigInt(0);for(let n of e)t=(t<<BigInt(8))+BigInt(n);return BigInt.asIntN(8*e.length,t)},t.bytesToNumber=function(e){c(e);let t=l(e);return(0,i.assert)(t<=BigInt(Number.MAX_SAFE_INTEGER),"Number is not a safe integer. Use `bytesToBigInt` instead."),Number(t)},t.bytesToString=function(e){return c(e),new TextDecoder().decode(e)},t.hexToBytes=h,t.bigIntToBytes=d,t.signedBigIntToBytes=function(e,t){(0,i.assert)("bigint"==typeof e,"Value must be a bigint."),(0,i.assert)("number"==typeof t,"Byte length must be a number."),(0,i.assert)(t>0,"Byte length must be greater than 0."),(0,i.assert)(function(e,t){(0,i.assert)(t>0);let n=e>>BigInt(31);return!((~e&n)+(e&~n)>>BigInt(8*t+-1))}(e,t),"Byte length is too small to represent the given value.");let n=e,r=new Uint8Array(t);for(let e=0;e<r.length;e++)r[e]=Number(BigInt.asUintN(8,n)),n>>=BigInt(8);return r.reverse()},t.numberToBytes=f,t.stringToBytes=p,t.valueToBytes=b,t.concatBytes=function(e){let t=Array(e.length),n=0;for(let r=0;r<e.length;r++){let i=b(e[r]);t[r]=i,n+=i.length}let r=new Uint8Array(n);for(let e=0,n=0;e<t.length;e++)r.set(t[e],n),n+=t[e].length;return r},t.createDataView=function(e){if(void 0!==r&&e instanceof r){let t=e.buffer.slice(e.byteOffset,e.byteOffset+e.byteLength);return new DataView(t)}return new DataView(e.buffer,e.byteOffset,e.byteLength)}},85013:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0}),t.ChecksumStruct=void 0;let r=n(11821),i=n(47207);t.ChecksumStruct=(0,r.size)((0,i.base64)((0,r.string)(),{paddingRequired:!0}),44,44)},73557:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHex=t.createBytes=t.createBigInt=t.createNumber=void 0;let r=n(11821),i=n(31422),s=n(8476),o=n(62009),u=(0,r.union)([(0,r.number)(),(0,r.bigint)(),(0,r.string)(),o.StrictHexStruct]),c=(0,r.coerce)((0,r.number)(),u,Number),a=(0,r.coerce)((0,r.bigint)(),u,BigInt);(0,r.union)([o.StrictHexStruct,(0,r.instance)(Uint8Array)]);let l=(0,r.coerce)((0,r.instance)(Uint8Array),(0,r.union)([o.StrictHexStruct]),s.hexToBytes),h=(0,r.coerce)(o.StrictHexStruct,(0,r.instance)(Uint8Array),s.bytesToHex);t.createNumber=function(e){try{let t=(0,r.create)(e,c);return(0,i.assert)(Number.isFinite(t),`Expected a number-like value, got "${e}".`),t}catch(t){if(t instanceof r.StructError)throw Error(`Expected a number-like value, got "${e}".`);throw t}},t.createBigInt=function(e){try{return(0,r.create)(e,a)}catch(e){if(e instanceof r.StructError)throw Error(`Expected a number-like value, got "${String(e.value)}".`);throw e}},t.createBytes=function(e){if("string"==typeof e&&"0x"===e.toLowerCase())return new Uint8Array;try{return(0,r.create)(e,l)}catch(e){if(e instanceof r.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}},t.createHex=function(e){if(e instanceof Uint8Array&&0===e.length||"string"==typeof e&&"0x"===e.toLowerCase())return"0x";try{return(0,r.create)(e,h)}catch(e){if(e instanceof r.StructError)throw Error(`Expected a bytes-like value, got "${String(e.value)}".`);throw e}}},94283:function(e,t){"use strict";var n,r,i=this&&this.__classPrivateFieldSet||function(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},s=this&&this.__classPrivateFieldGet||function(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};Object.defineProperty(t,"__esModule",{value:!0}),t.FrozenSet=t.FrozenMap=void 0;class o{constructor(e){n.set(this,void 0),i(this,n,new Map(e),"f"),Object.freeze(this)}get size(){return s(this,n,"f").size}[(n=new WeakMap,Symbol.iterator)](){return s(this,n,"f")[Symbol.iterator]()}entries(){return s(this,n,"f").entries()}forEach(e,t){return s(this,n,"f").forEach((n,r,i)=>e.call(t,n,r,this))}get(e){return s(this,n,"f").get(e)}has(e){return s(this,n,"f").has(e)}keys(){return s(this,n,"f").keys()}values(){return s(this,n,"f").values()}toString(){return`FrozenMap(${this.size}) {${this.size>0?` ${[...this.entries()].map(([e,t])=>`${String(e)} => ${String(t)}`).join(", ")} `:""}}`}}t.FrozenMap=o;class u{constructor(e){r.set(this,void 0),i(this,r,new Set(e),"f"),Object.freeze(this)}get size(){return s(this,r,"f").size}[(r=new WeakMap,Symbol.iterator)](){return s(this,r,"f")[Symbol.iterator]()}entries(){return s(this,r,"f").entries()}forEach(e,t){return s(this,r,"f").forEach((n,r,i)=>e.call(t,n,r,this))}has(e){return s(this,r,"f").has(e)}keys(){return s(this,r,"f").keys()}values(){return s(this,r,"f").values()}toString(){return`FrozenSet(${this.size}) {${this.size>0?` ${[...this.values()].map(e=>String(e)).join(", ")} `:""}}`}}t.FrozenSet=u,Object.freeze(o),Object.freeze(o.prototype),Object.freeze(u),Object.freeze(u.prototype)},62009:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.remove0x=t.add0x=t.assertIsStrictHexString=t.assertIsHexString=t.isStrictHexString=t.isHexString=t.StrictHexStruct=t.HexStruct=void 0;let r=n(11821),i=n(31422);function s(e){return(0,r.is)(e,t.HexStruct)}function o(e){return(0,r.is)(e,t.StrictHexStruct)}t.HexStruct=(0,r.pattern)((0,r.string)(),/^(?:0x)?[0-9a-f]+$/iu),t.StrictHexStruct=(0,r.pattern)((0,r.string)(),/^0x[0-9a-f]+$/iu),t.isHexString=s,t.isStrictHexString=o,t.assertIsHexString=function(e){(0,i.assert)(s(e),"Value must be a hexadecimal string.")},t.assertIsStrictHexString=function(e){(0,i.assert)(o(e),'Value must be a hexadecimal string, starting with "0x".')},t.add0x=function(e){return e.startsWith("0x")?e:e.startsWith("0X")?`0x${e.substring(2)}`:`0x${e}`},t.remove0x=function(e){return e.startsWith("0x")||e.startsWith("0X")?e.substring(2):e}},42451:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);
14(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(31422),t),i(n(47207),t),i(n(8476),t),i(n(85013),t),i(n(73557),t),i(n(94283),t),i(n(62009),t),i(n(22497),t),i(n(20160),t),i(n(66215),t),i(n(89679),t),i(n(99108),t),i(n(97772),t),i(n(26815),t)},22497:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateJsonAndGetSize=t.getJsonRpcIdValidator=t.assertIsJsonRpcError=t.isJsonRpcError=t.assertIsJsonRpcFailure=t.isJsonRpcFailure=t.assertIsJsonRpcSuccess=t.isJsonRpcSuccess=t.assertIsJsonRpcResponse=t.isJsonRpcResponse=t.assertIsPendingJsonRpcResponse=t.isPendingJsonRpcResponse=t.JsonRpcResponseStruct=t.JsonRpcFailureStruct=t.JsonRpcSuccessStruct=t.PendingJsonRpcResponseStruct=t.assertIsJsonRpcRequest=t.isJsonRpcRequest=t.assertIsJsonRpcNotification=t.isJsonRpcNotification=t.JsonRpcNotificationStruct=t.JsonRpcRequestStruct=t.JsonRpcParamsStruct=t.JsonRpcErrorStruct=t.JsonRpcIdStruct=t.JsonRpcVersionStruct=t.jsonrpc2=t.isValidJson=t.JsonStruct=void 0;let r=n(11821),i=n(31422),s=n(66215);function o(e,t=!1){let n=new Set;return function e(t,r){if(void 0===t)return[!1,0];if(null===t)return[!0,r?0:s.JsonSize.Null];let i=typeof t;try{if("function"===i)return[!1,0];if("string"===i||t instanceof String)return[!0,r?0:(0,s.calculateStringSize)(t)+2*s.JsonSize.Quote];if("boolean"===i||t instanceof Boolean){if(r)return[!0,0];return[!0,!0==t?s.JsonSize.True:s.JsonSize.False]}if("number"===i||t instanceof Number){if(r)return[!0,0];return[!0,(0,s.calculateNumberSize)(t)]}else if(t instanceof Date){if(r)return[!0,0];return[!0,isNaN(t.getDate())?s.JsonSize.Null:s.JsonSize.Date+2*s.JsonSize.Quote]}}catch(e){return[!1,0]}if(!(0,s.isPlainObject)(t)&&!Array.isArray(t)||n.has(t))return[!1,0];n.add(t);try{return[!0,Object.entries(t).reduce((i,[o,u],c,a)=>{let[l,h]=e(u,r);if(!l)throw Error("JSON validation did not pass. Validation process stopped.");if(n.delete(t),r)return 0;let d=Array.isArray(t)?0:o.length+s.JsonSize.Comma+2*s.JsonSize.Colon,f=c<a.length-1?s.JsonSize.Comma:0;return i+d+h+f},r?0:2*s.JsonSize.Wrapper)]}catch(e){return[!1,0]}}(e,t)}t.JsonStruct=(0,r.define)("Json",e=>{let[t]=o(e,!0);return!!t||"Expected a valid JSON-serializable value"}),t.isValidJson=function(e){return(0,r.is)(e,t.JsonStruct)},t.jsonrpc2="2.0",t.JsonRpcVersionStruct=(0,r.literal)(t.jsonrpc2),t.JsonRpcIdStruct=(0,r.nullable)((0,r.union)([(0,r.number)(),(0,r.string)()])),t.JsonRpcErrorStruct=(0,r.object)({code:(0,r.integer)(),message:(0,r.string)(),data:(0,r.optional)(t.JsonStruct),stack:(0,r.optional)((0,r.string)())}),t.JsonRpcParamsStruct=(0,r.optional)((0,r.union)([(0,r.record)((0,r.string)(),t.JsonStruct),(0,r.array)(t.JsonStruct)])),t.JsonRpcRequestStruct=(0,r.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,method:(0,r.string)(),params:t.JsonRpcParamsStruct}),t.JsonRpcNotificationStruct=(0,r.omit)(t.JsonRpcRequestStruct,["id"]),t.isJsonRpcNotification=function(e){return(0,r.is)(e,t.JsonRpcNotificationStruct)},t.assertIsJsonRpcNotification=function(e,n){(0,i.assertStruct)(e,t.JsonRpcNotificationStruct,"Invalid JSON-RPC notification",n)},t.isJsonRpcRequest=function(e){return(0,r.is)(e,t.JsonRpcRequestStruct)},t.assertIsJsonRpcRequest=function(e,n){(0,i.assertStruct)(e,t.JsonRpcRequestStruct,"Invalid JSON-RPC request",n)},t.PendingJsonRpcResponseStruct=(0,r.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:(0,r.optional)((0,r.unknown)()),error:(0,r.optional)(t.JsonRpcErrorStruct)}),t.JsonRpcSuccessStruct=(0,r.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,result:t.JsonStruct}),t.JsonRpcFailureStruct=(0,r.object)({id:t.JsonRpcIdStruct,jsonrpc:t.JsonRpcVersionStruct,error:t.JsonRpcErrorStruct}),t.JsonRpcResponseStruct=(0,r.union)([t.JsonRpcSuccessStruct,t.JsonRpcFailureStruct]),t.isPendingJsonRpcResponse=function(e){return(0,r.is)(e,t.PendingJsonRpcResponseStruct)},t.assertIsPendingJsonRpcResponse=function(e,n){(0,i.assertStruct)(e,t.PendingJsonRpcResponseStruct,"Invalid pending JSON-RPC response",n)},t.isJsonRpcResponse=function(e){return(0,r.is)(e,t.JsonRpcResponseStruct)},t.assertIsJsonRpcResponse=function(e,n){(0,i.assertStruct)(e,t.JsonRpcResponseStruct,"Invalid JSON-RPC response",n)},t.isJsonRpcSuccess=function(e){return(0,r.is)(e,t.JsonRpcSuccessStruct)},t.assertIsJsonRpcSuccess=function(e,n){(0,i.assertStruct)(e,t.JsonRpcSuccessStruct,"Invalid JSON-RPC success response",n)},t.isJsonRpcFailure=function(e){return(0,r.is)(e,t.JsonRpcFailureStruct)},t.assertIsJsonRpcFailure=function(e,n){(0,i.assertStruct)(e,t.JsonRpcFailureStruct,"Invalid JSON-RPC failure response",n)},t.isJsonRpcError=function(e){return(0,r.is)(e,t.JsonRpcErrorStruct)},t.assertIsJsonRpcError=function(e,n){(0,i.assertStruct)(e,t.JsonRpcErrorStruct,"Invalid JSON-RPC error",n)},t.getJsonRpcIdValidator=function(e){let{permitEmptyString:t,permitFractions:n,permitNull:r}=Object.assign({permitEmptyString:!0,permitFractions:!1,permitNull:!0},e);return e=>!!("number"==typeof e&&(n||Number.isInteger(e))||"string"==typeof e&&(t||e.length>0)||r&&null===e)},t.validateJsonAndGetSize=o},20160:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
14dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.createProjectLogger=void 0;let i=r(n(11227)),s=(0,i.default)("metamask");t.createProjectLogger=function(e){return s.extend(e)},t.createModuleLogger=function(e,t){return e.extend(t)}},66215:function(e,t){"use strict";var n;function r(e){return 127>=e.charCodeAt(0)}Object.defineProperty(t,"__esModule",{value:!0}),t.calculateNumberSize=t.calculateStringSize=t.isASCII=t.isPlainObject=t.ESCAPE_CHARACTERS_REGEXP=t.JsonSize=t.hasProperty=t.isObject=t.isNullOrUndefined=t.isNonEmptyArray=void 0,t.isNonEmptyArray=function(e){return Array.isArray(e)&&e.length>0},t.isNullOrUndefined=function(e){return null==e},t.isObject=function(e){return!!e&&"object"==typeof e&&!Array.isArray(e)},t.hasProperty=(e,t)=>Object.hasOwnProperty.call(e,t),(n=t.JsonSize||(t.JsonSize={}))[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date",t.ESCAPE_CHARACTERS_REGEXP=/"|\\|\n|\r|\t/gu,t.isPlainObject=function(e){if("object"!=typeof e||null===e)return!1;try{let t=e;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}catch(e){return!1}},t.isASCII=r,t.calculateStringSize=function(e){var n;let i=e.split("").reduce((e,t)=>r(t)?e+1:e+2,0);return i+(null!==(n=e.match(t.ESCAPE_CHARACTERS_REGEXP))&&void 0!==n?n:[]).length},t.calculateNumberSize=function(e){return e.toString().length}},89679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.hexToBigInt=t.hexToNumber=t.bigIntToHex=t.numberToHex=void 0;let r=n(31422),i=n(62009);t.numberToHex=e=>((0,r.assert)("number"==typeof e,"Value must be a number."),(0,r.assert)(e>=0,"Value must be a non-negative number."),(0,r.assert)(Number.isSafeInteger(e),"Value is not a safe integer. Use `bigIntToHex` instead."),(0,i.add0x)(e.toString(16))),t.bigIntToHex=e=>((0,r.assert)("bigint"==typeof e,"Value must be a bigint."),(0,r.assert)(e>=0,"Value must be a non-negative bigint."),(0,i.add0x)(e.toString(16))),t.hexToNumber=e=>{(0,i.assertIsHexString)(e);let t=parseInt(e,16);return(0,r.assert)(Number.isSafeInteger(t),"Value is not a safe integer. Use `hexToBigInt` instead."),t},t.hexToBigInt=e=>((0,i.assertIsHexString)(e),BigInt((0,i.add0x)(e)))},99108:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},97772:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.timeSince=t.inMilliseconds=t.Duration=void 0,(n=t.Duration||(t.Duration={}))[n.Millisecond=1]="Millisecond",n[n.Second=1e3]="Second",n[n.Minute=6e4]="Minute",n[n.Hour=36e5]="Hour",n[n.Day=864e5]="Day",n[n.Week=6048e5]="Week",n[n.Year=31536e6]="Year";let r=e=>Number.isInteger(e)&&e>=0,i=(e,t)=>{if(!r(e))throw Error(`"${t}" must be a non-negative integer. Received: "${e}".`)};t.inMilliseconds=function(e,t){return i(e,"count"),e*t},t.timeSince=function(e){return i(e,"timestamp"),Date.now()-e}},26815:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.satisfiesVersionRange=t.gtRange=t.gtVersion=t.assertIsSemVerRange=t.assertIsSemVerVersion=t.isValidSemVerRange=t.isValidSemVerVersion=t.VersionRangeStruct=t.VersionStruct=void 0;let r=n(81249),i=n(11821),s=n(31422);t.VersionStruct=(0,i.refine)((0,i.string)(),"Version",e=>null!==(0,r.valid)(e)||`Expected SemVer version, got "${e}"`),t.VersionRangeStruct=(0,i.refine)((0,i.string)(),"Version range",e=>null!==(0,r.validRange)(e)||`Expected SemVer range, got "${e}"`),t.isValidSemVerVersion=function(e){return(0,i.is)(e,t.VersionStruct)},t.isValidSemVerRange=function(e){return(0,i.is)(e,t.VersionRangeStruct)},t.assertIsSemVerVersion=function(e){(0,s.assertStruct)(e,t.VersionStruct)},t.assertIsSemVerRange=function(e){(0,s.assertStruct)(e,t.VersionRangeStruct)},t.gtVersion=function(e,t){return(0,r.gt)(e,t)},t.gtRange=function(e,t){return(0,r.gtr)(e,t)},t.satisfiesVersionRange=function(e,t){return(0,r.satisfies)(e,t,{includePrerelease:!0})}},85078:function(e,t,n){"use strict";
14Object.defineProperty(t,"__esModule",{value:!0});var r=n(33649),i=n(2403),s=function(){function e(){this._semaphore=new i.default(1)}return e.prototype.acquire=function(){return r.__awaiter(this,void 0,void 0,function(){return r.__generator(this,function(e){switch(e.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,e.sent()[1]]}})})},e.prototype.runExclusive=function(e){return this._semaphore.runExclusive(function(){return e()})},e.prototype.isLocked=function(){return this._semaphore.isLocked()},e.prototype.release=function(){this._semaphore.release()},e}();t.default=s},2403:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(33649),i=function(){function e(e){if(this._maxConcurrency=e,this._queue=[],e<=0)throw Error("semaphore must be initialized to a positive value");this._value=e}return e.prototype.acquire=function(){var e=this,t=this.isLocked(),n=new Promise(function(t){return e._queue.push(t)});return t||this._dispatch(),n},e.prototype.runExclusive=function(e){return r.__awaiter(this,void 0,void 0,function(){var t,n,i;return r.__generator(this,function(r){switch(r.label){case 0:return[4,this.acquire()];case 1:n=(t=r.sent())[0],i=t[1],r.label=2;case 2:return r.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,r.sent()];case 4:return i(),[7];case 5:return[2]}})})},e.prototype.isLocked=function(){return this._value<=0},e.prototype.release=function(){if(this._maxConcurrency>1)throw Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var e=this._currentReleaser;this._currentReleaser=void 0,e()}},e.prototype._dispatch=function(){var e=this,t=this._queue.shift();if(t){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},t([this._value--,this._currentReleaser])}},e}();t.default=i},48125:function(e,t,n){"use strict";t.WU=void 0;var r=n(85078);Object.defineProperty(t,"WU",{enumerable:!0,get:function(){return r.default}}),n(2403),n(41960)},41960:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.withTimeout=void 0;var r=n(33649);t.withTimeout=function(e,t,n){var i=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(s,o){return r.__awaiter(i,void 0,void 0,function(){var i,u;return r.__generator(this,function(r){switch(r.label){case 0:return i=!1,setTimeout(function(){i=!0,o(n)},t),[4,e.acquire()];case 1:return u=r.sent(),i?(Array.isArray(u)?u[1]:u)():s(u),[2]}})})})},runExclusive:function(e){return r.__awaiter(this,void 0,void 0,function(){var t,n;return r.__generator(this,function(r){switch(r.label){case 0:t=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:if(!Array.isArray(n=r.sent()))return[3,4];return t=n[1],[4,e(n[0])];case 3:case 5:return[2,r.sent()];case 4:return t=n,[4,e()];case 6:return[3,8];case 7:return t(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}},47056:function(e,t){"use strict";var n,r;function i(e,t,r){if(!r||typeof r.value!==n.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+t+"> is not a method!");return{configurable:n.boolTrue,get:function(){var e=r.value.bind(this);return Object.defineProperty(this,t,{value:e,configurable:n.boolTrue,writable:n.boolTrue}),e}}}Object.defineProperty(t,"__esModule",{value:!0}),(r=n||(n={})).typeOfFunction="function",r.boolTrue=!0,t.bind=i,t.default=i},86010:function(e,t,n){"use strict";function r(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=function e(t){var n,r,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t){if(Array.isArray(t))for(n=0;n<t.length;n++)t[n]&&(r=e(t[n]))&&(i&&(i+=" "),i+=r);else for(n in t)t[n]&&(i&&(i+=" "),i+=n)}return i}(e))&&(r&&(r+=" "),r+=t);return r}n.r(t),n.d(t,{clsx:function(){return r}}),t.default=r},11227:function(e,t,n){let r;var i=n(34155);t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;let n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")}catch(e){}return!e&&void 0!==i&&"env"in i&&(e=i.env.DEBUG),e},t.useColors=function(){return"undefined"!=typeof window&&!!window.process&&("renderer"===window.process.type||!!window.process.__nwjs)||!("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))&&
14("undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/))},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(r=!1,()=>{r||(r=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=n(82447)(t);let{formatters:s}=e.exports;s.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}},82447:function(e,t,n){e.exports=function(e){function t(e){let n,i,s;let o=null;function u(...e){if(!u.enabled)return;let r=Number(new Date),i=r-(n||r);u.diff=i,u.prev=n,u.curr=r,n=r,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(n,r)=>{if("%%"===n)return"%";s++;let i=t.formatters[r];if("function"==typeof i){let t=e[s];n=i.call(u,t),e.splice(s,1),s--}return n}),t.formatArgs.call(u,e);let o=u.log||t.log;o.apply(u,e)}return u.namespace=e,u.useColors=t.useColors(),u.color=t.selectColor(e),u.extend=r,u.destroy=t.destroy,Object.defineProperty(u,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==o?o:(i!==t.namespaces&&(i=t.namespaces,s=t.enabled(e)),s),set:e=>{o=e}}),"function"==typeof t.init&&t.init(u),u}function r(e,n){let r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function i(e){return e.toString().substring(2,e.toString().length-2).replace(/\.\*\?$/,"*")}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){let e=[...t.names.map(i),...t.skips.map(i).map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){let n;t.save(e),t.namespaces=e,t.names=[],t.skips=[];let r=("string"==typeof e?e:"").split(/[\s,]+/),i=r.length;for(n=0;n<i;n++)r[n]&&("-"===(e=r[n].replace(/\*/g,".*?"))[0]?t.skips.push(RegExp("^"+e.slice(1)+"$")):t.names.push(RegExp("^"+e+"$")))},t.enabled=function(e){let n,r;if("*"===e[e.length-1])return!0;for(n=0,r=t.skips.length;n<r;n++)if(t.skips[n].test(e))return!1;for(n=0,r=t.names.length;n<r;n++)if(t.names[n].test(e))return!0;return!1},t.humanize=n(57824),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t)|0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}},60190: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.BaseBlockTracker=void 0;let i=r(n(19394)),s=(e,t)=>e+t,o=["sync","latest"];class u extends i.default{constructor(e){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._currentBlock=null,this._isRunning=!1,this._onNewListener=this._onNewListener.bind(this),this._onRemoveListener=this._onRemoveListener.bind(this),this._resetCurrentBlock=this._resetCurrentBlock.bind(this),this._setupInternalEvents()}async destroy(){this._cancelBlockResetTimeout(),await this._maybeEnd(),super.removeAllListeners()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){if(this._currentBlock)return this._currentBlock;let e=await new Promise(e=>this.once("latest",e));return e}removeAllListeners(e){return e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener(),this}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e){o.includes(e)&&this._maybeStart()}
14_onRemoveListener(){this._getBlockTrackerEventCount()>0||this._maybeEnd()}async _maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),await this._start(),this.emit("_started"))}async _maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),await this._end(),this.emit("_ended"))}_getBlockTrackerEventCount(){return o.map(e=>this.listenerCount(e)).reduce(s)}_newPotentialLatest(e){let t=this._currentBlock;t&&c(e)<=c(t)||this._setCurrentBlock(e)}_setCurrentBlock(e){let t=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:t,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){this._blockResetTimeout&&clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}function c(e){return Number.parseInt(e,16)}t.BaseBlockTracker=u},30790: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.PollingBlockTracker=void 0;let i=r(n(23420)),s=r(n(12352)),o=n(60190),u=n(59579),c=(0,u.createModuleLogger)(u.projectLogger,"polling-block-tracker"),a=(0,i.default)();class l extends o.BaseBlockTracker{constructor(e={}){var t;if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");super({blockResetDuration:null!==(t=e.blockResetDuration)&&void 0!==t?t:e.pollingInterval}),this._provider=e.provider,this._pollingInterval=e.pollingInterval||2e4,this._retryTimeout=e.retryTimeout||this._pollingInterval/10,this._keepEventLoopActive=void 0===e.keepEventLoopActive||e.keepEventLoopActive,this._setSkipCacheFlag=e.setSkipCacheFlag||!1}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}async _start(){this._synchronize()}async _end(){}async _synchronize(){for(var e;this._isRunning;)try{await this._updateLatestBlock();let e=h(this._pollingInterval,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await e}catch(r){let t=Error(`PollingBlockTracker - encountered an error while attempting to update latest block: 15${null!==(e=r.stack)&&void 0!==e?e:r}`);try{this.emit("error",t)}catch(e){console.error(t)}let n=h(this._retryTimeout,!this._keepEventLoopActive);this.emit("_waitingForNextIteration"),await n}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:a(),method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0),c("Making request",e);let t=await (0,s.default)(t=>this._provider.sendAsync(e,t))();if(c("Got response",t),t.error)throw Error(`PollingBlockTracker - encountered error fetching block: 16${t.error.message}`);return t.result}}function h(e,t){return new Promise(n=>{let r=setTimeout(n,e);r.unref&&t&&r.unref()})}t.PollingBlockTracker=l},66767: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.SubscribeBlockTracker=void 0;let i=r(n(23420)),s=n(60190),o=(0,i.default)();class u extends s.BaseBlockTracker{constructor(e={}){if(!e.provider)throw Error("SubscribeBlockTracker - no provider specified.");super(e),this._provider=e.provider,this._subscriptionId=null}async checkForLatestBlock(){return await this.getLatestBlock()}
16async _start(){if(void 0===this._subscriptionId||null===this._subscriptionId)try{let e=await this._call("eth_blockNumber");this._subscriptionId=await this._call("eth_subscribe","newHeads"),this._provider.on("data",this._handleSubData.bind(this)),this._newPotentialLatest(e)}catch(e){this.emit("error",e)}}async _end(){if(null!==this._subscriptionId&&void 0!==this._subscriptionId)try{await this._call("eth_unsubscribe",this._subscriptionId),this._subscriptionId=null}catch(e){this.emit("error",e)}}_call(e,...t){return new Promise((n,r)=>{this._provider.sendAsync({id:o(),method:e,params:t,jsonrpc:"2.0"},(e,t)=>{e?r(e):n(t.result)})})}_handleSubData(e,t){var n;"eth_subscription"===t.method&&(null===(n=t.params)||void 0===n?void 0:n.subscription)===this._subscriptionId&&this._newPotentialLatest(t.params.result.number)}}t.SubscribeBlockTracker=u},6842: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(30790),t),i(n(66767),t),i(n(77627),t)},59579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createModuleLogger=t.projectLogger=void 0;let r=n(42451);Object.defineProperty(t,"createModuleLogger",{enumerable:!0,get:function(){return r.createModuleLogger}}),t.projectLogger=(0,r.createProjectLogger)("eth-block-tracker")},77627:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},23256:function(e,t,n){let r=n(76622);e.exports=class extends r{constructor(){super(),this.allResults=[]}async update(){throw Error("BaseFilterWithHistory - no update method specified")}addResults(e){this.allResults=this.allResults.concat(e),super.addResults(e)}addInitialResults(e){this.allResults=this.allResults.concat(e),super.addInitialResults(e)}getAllResults(){return this.allResults}}},76622:function(e,t,n){let r=n(19394).default;e.exports=class extends r{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw Error("BaseFilter - no update method specified")}addResults(e){this.updates=this.updates.concat(e),e.forEach(e=>this.emit("update",e))}addInitialResults(e){}getChangesAndClear(){let e=this.updates;return this.updates=[],e}}},72785:function(e,t,n){let r=n(76622),i=n(40207),{incrementHexInt:s}=n(98112);e.exports=class extends r{constructor({provider:e,params:t}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:t}){let n=s(e),r=await i({provider:this.provider,fromBlock:n,toBlock:t}),o=r.map(e=>e.hash);this.addResults(o)}}},40207:function(e){async function t({provider:e,fromBlock:t,toBlock:s}){t||(t=s);let o=n(t),u=n(s),c=u-o+1,a=Array(c).fill().map((e,t)=>o+t).map(r),l=await Promise.all(a.map(t=>i(e,"eth_getBlockByNumber",[t,!1])));return l}function n(e){return null==e?e:Number.parseInt(e,16)}function r(e){if(null==e)return e;let t=e.toString(16);return"0x"+t}async function i(e,t,n){for(let r=0;r<3;r++)try{return await function(e,t){return new Promise((n,r)=>{e.sendAsync(t,(e,t)=>{e?r(e):t.error?r(t.error):t.result?n(t.result):r(Error("Result was empty"))})})}(e,{id:1,jsonrpc:"2.0",method:t,params:n})}catch(e){console.error(`provider.sendAsync failed: ${e.stack||e.message||e}`)}throw Error(`Block not found for params: ${JSON.stringify(n)}`)}e.exports=t},98112:function(e){function t(e){return e.sort((e,t)=>"latest"===e||"earliest"===t?1:"latest"===t||"earliest"===e?-1:n(e)-n(t))}function n(e){return null==e?e:Number.parseInt(e,16)}function r(e){if(null==e)return e;let t=e.toString(16),n=t.length%2;return n&&(t="0"+t),"0x"+t}function i(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){let n=t(e);return n[0]},maxBlockRef:function(...e){let n=t(e);return n[n.length-1]},sortBlockRefs:t,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:n,incrementHexInt:function(e){if(null==e)return e;let t=n(e);return r(t+1)},intToHex:r,unsafeRandomBytes:function(e){let t="0x";for(let n=0;n<e;n++)t+=i()+i();return t}}},98406:function(e,t,n){let r=n(48125).WU,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=n(88625),o=n(81663),u=n(72785),c=n(25792),{intToHex:a,hexToInt:l}=n(98112);function h(e){return d(async(...t)=>
16{let n=await e(...t),r=a(n.id);return r})}function d(e){return i(async(t,n)=>{let r=await e.apply(null,t.params);n.result=r})}function f(e,t){let n=[];for(let t in e)n.push(e[t]);return n}e.exports=function({blockTracker:e,provider:t}){let n=0,i={},p=new r,b=function({mutex:e}){return t=>async(n,r,i,s)=>{let o=await e.acquire();o(),t(n,r,i,s)}}({mutex:p}),y=s({eth_newFilter:b(h(m)),eth_newBlockFilter:b(h(v)),eth_newPendingTransactionFilter:b(h(_)),eth_uninstallFilter:b(d(x)),eth_getFilterChanges:b(d(w)),eth_getFilterLogs:b(d(S))}),g=async({oldBlock:e,newBlock:t})=>{if(0===i.length)return;let n=await p.acquire();try{await Promise.all(f(i).map(async n=>{try{await n.update({oldBlock:e,newBlock:t})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return y.newLogFilter=m,y.newBlockFilter=v,y.newPendingTransactionFilter=_,y.uninstallFilter=x,y.getFilterChanges=w,y.getFilterLogs=S,y.destroy=()=>{k()},y;async function m(e){let n=new o({provider:t,params:e});return await E(n),n}async function v(){let e=new u({provider:t});return await E(e),e}async function _(){let e=new c({provider:t});return await E(e),e}async function w(e){let t=l(e),n=i[t];if(!n)throw Error(`No filter for index "${t}"`);let r=n.getChangesAndClear();return r}async function S(e){let t=l(e),n=i[t];if(!n)throw Error(`No filter for index "${t}"`);let r=[];return"log"===n.type&&(r=n.getAllResults()),r}async function x(e){let t=l(e),n=i[t],r=!!n;return r&&await C(t),r}async function E(t){let r=f(i).length,s=await e.getLatestBlock();await t.initialize({currentBlock:s}),i[++n]=t,t.id=n,t.idHex=a(n);let o=f(i).length;return M({prevFilterCount:r,newFilterCount:o}),n}async function C(e){let t=f(i).length;delete i[e];let n=f(i).length;M({prevFilterCount:t,newFilterCount:n})}async function k(){let e=f(i).length;i={},M({prevFilterCount:e,newFilterCount:0})}function M({prevFilterCount:t,newFilterCount:n}){if(0===t&&n>0){e.on("sync",g);return}if(t>0&&0===n){e.removeListener("sync",g);return}}}},81663:function(e,t,n){let r=n(75682),i=n(6417),s=n(23256),{bnToHex:o,hexToInt:u,incrementHexInt:c,minBlockRef:a,blockRefIsNumber:l}=n(98112);e.exports=class extends s{constructor({provider:e,params:t}){super(),this.type="log",this.ethQuery=new r(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},t),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map(e=>e.toLowerCase()))}async initialize({currentBlock:e}){let t=this.params.fromBlock;["latest","pending"].includes(t)&&(t=e),"earliest"===t&&(t="0x0"),this.params.fromBlock=t;let n=a(this.params.toBlock,e),r=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(r);this.addInitialResults(i)}async update({oldBlock:e,newBlock:t}){let n;n=e?c(e):t;let r=Object.assign({},this.params,{fromBlock:n,toBlock:t}),i=await this._fetchLogs(r),s=i.filter(e=>this.matchLog(e));this.addResults(s)}async _fetchLogs(e){let t=await i(t=>this.ethQuery.getLogs(e,t))();return t}matchLog(e){if(u(this.params.fromBlock)>=u(e.blockNumber)||l(this.params.toBlock)&&u(this.params.toBlock)<=u(e.blockNumber))return!1;let t=e.address&&e.address.toLowerCase();if(this.params.address&&t&&!this.params.address.includes(t))return!1;let n=this.params.topics.every((t,n)=>{let r=e.topics[n];if(!r)return!1;r=r.toLowerCase();let i=Array.isArray(t)?t:[t],s=i.includes(null);if(s)return!0;i=i.map(e=>e.toLowerCase());let o=i.includes(r);return o});return n}}},6417:function(e){"use strict";let t=(e,t,n,r)=>function(...i){let s=t.promiseModule;return new s((s,o)=>{t.multiArgs?i.push((...e)=>{t.errorFirst?e[0]?o(e):(e.shift(),s(e)):s(e)}):t.errorFirst?i.push((e,t)=>{e?o(e):s(t)}):i.push(s);let u=this===n?r:this;Reflect.apply(e,u,i)})},n=new WeakMap;e.exports=(e,r)=>{r={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...r};let i=typeof e;if(!(null!==e&&("object"===i||"function"===i)))throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":i}\``);let s=(e,t)=>{let i=n.get(e);if(i||(i={}
16,n.set(e,i)),t in i)return i[t];let s=e=>"string"==typeof e||"symbol"==typeof t?t===e:e.test(t),o=Reflect.getOwnPropertyDescriptor(e,t),u=void 0===o||o.writable||o.configurable,c=r.include?r.include.some(s):!r.exclude.some(s),a=c&&u;return i[t]=a,a},o=new WeakMap,u=new Proxy(e,{apply(e,n,i){let s=o.get(e);if(s)return Reflect.apply(s,n,i);let c=r.excludeMain?e:t(e,r,u,e);return o.set(e,c),Reflect.apply(c,n,i)},get(e,n){let i=e[n];if(!s(e,n)||i===Function.prototype[n])return i;let c=o.get(i);if(c)return c;if("function"==typeof i){let n=t(i,r,u,e);return o.set(i,n),n}return i}});return u}},68961:function(e,t,n){let r=n(19394).default,{createAsyncMiddleware:i,createScaffoldMiddleware:s}=n(88625),o=n(98406),{unsafeRandomBytes:u,incrementHexInt:c}=n(98112),a=n(40207);function l(e){return null==e?null:{hash:e.hash,parentHash:e.parentHash,sha3Uncles:e.sha3Uncles,miner:e.miner,stateRoot:e.stateRoot,transactionsRoot:e.transactionsRoot,receiptsRoot:e.receiptsRoot,logsBloom:e.logsBloom,difficulty:e.difficulty,number:e.number,gasLimit:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function({blockTracker:e,provider:t}){let n={},h=o({blockTracker:e,provider:t}),d=!1,f=new r,p=s({eth_subscribe:i(b),eth_unsubscribe:i(y)});return p.destroy=function(){for(let e in f.removeAllListeners(),n)n[e].destroy(),delete n[e];d=!0},{events:f,middleware:p};async function b(r,i){let s;if(d)throw Error("SubscriptionManager - attempting to use after destroying");let o=r.params[0],f=u(16);switch(o){case"newHeads":s=function({subId:n}){let r={type:o,destroy:async()=>{e.removeListener("sync",r.update)},update:async({oldBlock:e,newBlock:r})=>{let i=c(e),s=await a({provider:t,fromBlock:i,toBlock:r}),o=s.map(l).filter(e=>null!==e);o.forEach(e=>{g(n,e)})}};return e.on("sync",r.update),r}({subId:f});break;case"logs":let p=r.params[1],b=await h.newLogFilter(p);s=function({subId:e,filter:t}){return t.on("update",t=>g(e,t)),{type:o,destroy:async()=>await h.uninstallFilter(t.idHex)}}({subId:f,filter:b});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${o}"`)}n[f]=s,i.result=f}async function y(e,t){if(d)throw Error("SubscriptionManager - attempting to use after destroying");let r=e.params[0],i=n[r];if(!i){t.result=!1;return}delete n[r],await i.destroy(),t.result=!0}function g(e,t){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:t}})}}},25792:function(e,t,n){let r=n(76622),i=n(40207),{incrementHexInt:s}=n(98112);e.exports=class extends r{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let t=s(e),n=await i({provider:this.provider,fromBlock:t,toBlock:e}),r=[];for(let e of n)r.push(...e.transactions);this.addResults(r)}}},75682:function(e,t,n){let r=n(47529),i=n(23420)();function s(e){this.currentProvider=e}function o(e){return function(){var t=[].slice.call(arguments),n=t.pop();this.sendAsync({method:e,params:t},n)}}function u(e,t){return function(){var n=[].slice.call(arguments),r=n.pop();n.length<e&&n.push("latest"),this.sendAsync({method:t,params:n},r)}}e.exports=s,s.prototype.getBalance=u(2,"eth_getBalance"),s.prototype.getCode=u(2,"eth_getCode"),s.prototype.getTransactionCount=u(2,"eth_getTransactionCount"),s.prototype.getStorageAt=u(3,"eth_getStorageAt"),s.prototype.call=u(2,"eth_call"),s.prototype.protocolVersion=o("eth_protocolVersion"),s.prototype.syncing=o("eth_syncing"),s.prototype.coinbase=o("eth_coinbase"),s.prototype.mining=o("eth_mining"),s.prototype.hashrate=o("eth_hashrate"),s.prototype.gasPrice=o("eth_gasPrice"),s.prototype.accounts=o("eth_accounts"),s.prototype.blockNumber=o("eth_blockNumber"),s.prototype.getBlockTransactionCountByHash=o("eth_getBlockTransactionCountByHash"),s.prototype.getBlockTransactionCountByNumber=o("eth_getBlockTransactionCountByNumber"),s.prototype.getUncleCountByBlockHash=o("eth_getUncleCountByBlockHash"),s.prototype.getUncleCountByBlockNumber=o("eth_getUncleCountByBlockNumber"),s.prototype.sign=o("eth_sign"),s.prototype.sendTransaction=o("eth_sendTransaction"),s.prototype.sendRawTransaction=o("eth_sendRawTransaction"),s.prototype.estimateGas=o("eth_estimateGas"),s.prototype.getBlockByHash=o("eth_getBlockByHash"),s.prototype.getBlockByNumber=o("eth_getBlockByNumber"),s.prototype.getTransactionByHash=o("eth_getTransactionByHash"),s.prototype.getTransactionByBlockHashAndIndex=o("eth_getTransactionByBlockHashAndIndex"),s.prototype.getTransactionByBlockNumberAndIndex=o("eth_getTransactionByBlockNumberAndIndex"),s.prototype.getTransactionReceipt=o("eth_getTransactionReceipt"),s.prototype.getUncleByBlockHashAndIndex=o("eth_getUncleByBlockHashAndIndex"),s.prototype.getUncleByBlockNumberAndIndex=o("eth_getUncleByBlockNumberAndIndex"),s.prototype.getCompilers=o("eth_getCompilers"),s.prototype.compileLLL=o("eth_compileLLL"),s.prototype.compileSolidity=o("eth_compileSolidity"),s.prototype.compileSerpent=o("eth_compileSerpent"),s.prototype.newFilter=o("eth_newFilter"),s.prototype.newBlockFilter=o("eth_newBlockFilter"),s.prototype.newPendingTransactionFilter=o("eth_newPendingTransactionFilter"),s.prototype.uninstallFilter=o("eth_uninstallFilter"),s.prototype.getFilterChanges=o("eth_getFilterChanges"),s.prototype.getFilterLogs=o("eth_getFilterLogs"),s.prototype.getLogs=o("eth_getLogs"),s.prototype.getWork=o("eth_getWork"),s.prototype.submitWork=o("eth_submitWork"),s.prototype.submitHashrate=o("eth_submitHashrate"),s.prototype.sendAsync=function(e,t){this.currentProvider.sendAsync(r({id:i(),jsonrpc:"2.0",params:[]},e),function(e,n){if(!e&&n.error&&(e=Error("EthQuery - RPC Error - "+n.error.message)),e)return t(e);t(null,n.result)})}},12294:function(e,t,n){"use strict";
16Object.defineProperty(t,"__esModule",{value:!0}),t.EthereumProviderError=t.EthereumRpcError=void 0;let r=n(4445);class i extends Error{constructor(e,t,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!t||"string"!=typeof t)throw Error('"message" must be a nonempty string.');super(t),this.code=e,void 0!==n&&(this.data=n)}serialize(){let e={code:this.code,message:this.message};return void 0!==this.data&&(e.data=this.data),this.stack&&(e.stack=this.stack),e}toString(){return r.default(this.serialize(),s,2)}}function s(e,t){if("[Circular]"!==t)return t}t.EthereumRpcError=i,t.EthereumProviderError=class extends i{constructor(e,t,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,t,n)}}},92662:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.errorValues=t.errorCodes=void 0,t.errorCodes={rpc:{invalidInput:-32e3,resourceNotFound:-32001,resourceUnavailable:-32002,transactionRejected:-32003,methodNotSupported:-32004,limitExceeded:-32005,parse:-32700,invalidRequest:-32600,methodNotFound:-32601,invalidParams:-32602,internal:-32603},provider:{userRejectedRequest:4001,unauthorized:4100,unsupportedMethod:4200,disconnected:4900,chainDisconnected:4901}},t.errorValues={"-32700":{standard:"JSON RPC 2.0",message:"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text."},"-32600":{standard:"JSON RPC 2.0",message:"The JSON sent is not a valid Request object."},"-32601":{standard:"JSON RPC 2.0",message:"The method does not exist / is not available."},"-32602":{standard:"JSON RPC 2.0",message:"Invalid method parameter(s)."},"-32603":{standard:"JSON RPC 2.0",message:"Internal JSON-RPC error."},"-32000":{standard:"EIP-1474",message:"Invalid input."},"-32001":{standard:"EIP-1474",message:"Resource not found."},"-32002":{standard:"EIP-1474",message:"Resource unavailable."},"-32003":{standard:"EIP-1474",message:"Transaction rejected."},"-32004":{standard:"EIP-1474",message:"Method not supported."},"-32005":{standard:"EIP-1474",message:"Request limit exceeded."},4001:{standard:"EIP-1193",message:"User rejected the request."},4100:{standard:"EIP-1193",message:"The requested account and/or method has not been authorized by the user."},4200:{standard:"EIP-1193",message:"The requested method is not supported by this Ethereum provider."},4900:{standard:"EIP-1193",message:"The provider is disconnected from all chains."},4901:{standard:"EIP-1193",message:"The provider is disconnected from the specified chain."}}},68797:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ethErrors=void 0;let r=n(12294),i=n(68753),s=n(92662);function o(e,t){let[n,s]=c(t);return new r.EthereumRpcError(e,n||i.getMessageFromCode(e),s)}function u(e,t){let[n,s]=c(t);return new r.EthereumProviderError(e,n||i.getMessageFromCode(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:t,data:n}=e;if(t&&"string"!=typeof t)throw Error("Must specify string message.");return[t||void 0,n]}}return[]}t.ethErrors={rpc:{parse:e=>o(s.errorCodes.rpc.parse,e),invalidRequest:e=>o(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>o(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>o(s.errorCodes.rpc.methodNotFound,e),internal:e=>o(s.errorCodes.rpc.internal,e),server:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum RPC Server errors must provide single object argument.");let{code:t}=e;if(!Number.isInteger(t)||t>-32005||t<-32099)throw Error('"code" must be an integer such that: -32099 <= code
16<= -32005');return o(t,e)},invalidInput:e=>o(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>o(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>o(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>o(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>o(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>o(s.errorCodes.rpc.limitExceeded,e)},provider:{userRejectedRequest:e=>u(s.errorCodes.provider.userRejectedRequest,e),unauthorized:e=>u(s.errorCodes.provider.unauthorized,e),unsupportedMethod:e=>u(s.errorCodes.provider.unsupportedMethod,e),disconnected:e=>u(s.errorCodes.provider.disconnected,e),chainDisconnected:e=>u(s.errorCodes.provider.chainDisconnected,e),custom:e=>{if(!e||"object"!=typeof e||Array.isArray(e))throw Error("Ethereum Provider custom errors must provide single object argument.");let{code:t,message:n,data:i}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new r.EthereumProviderError(t,n,i)}}}},79826:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getMessageFromCode=t.serializeError=t.EthereumProviderError=t.EthereumRpcError=t.ethErrors=t.errorCodes=void 0;let r=n(12294);Object.defineProperty(t,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(t,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});let i=n(68753);Object.defineProperty(t,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(t,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});let s=n(68797);Object.defineProperty(t,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});let o=n(92662);Object.defineProperty(t,"errorCodes",{enumerable:!0,get:function(){return o.errorCodes}})},68753:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.serializeError=t.isValidCode=t.getMessageFromCode=t.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let r=n(92662),i=n(12294),s=r.errorCodes.rpc.internal,o={code:s,message:u(s)};function u(e,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(e)){let n=e.toString();if(l(r.errorValues,n))return r.errorValues[n].message;if(e>=-32099&&e<=-32e3)return t.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function c(e){if(!Number.isInteger(e))return!1;let t=e.toString();return!!(r.errorValues[t]||e>=-32099&&e<=-32e3)}function a(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function l(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",t.getMessageFromCode=u,t.isValidCode=c,t.serializeError=function(e,{fallbackError:t=o,shouldIncludeStack:n=!1}={}){if(!t||!Number.isInteger(t.code)||"string"!=typeof t.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof i.EthereumRpcError)return e.serialize();let r={};if(e&&"object"==typeof e&&!Array.isArray(e)&&l(e,"code")&&c(e.code))r.code=e.code,e.message&&"string"==typeof e.message?(r.message=e.message,l(e,"data")&&(r.data=e.data)):(r.message=u(r.code),r.data={originalError:a(e)});else{r.code=t.code;let n=null==e?void 0:e.message;r.message=n&&"string"==typeof n?n:t.message,r.data={originalError:a(e)}}let s=null==e?void 0:e.stack;return n&&e&&s&&"string"==typeof s&&(r.stack=s),r}},4445:function(e){e.exports=o,o.default=o,o.stable=a,o.stableStringify=a;var t="[...]",n="[Circular]",r=[],i=[];function s(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(e,o,c,a){void 0===a&&(a=s()),function e(r,i,s,o,c,a,l){if(a+=1,"object"==typeof r&&null!==r){for(h=0;h<o.length;h++)if(o[h]===r){u(n,r,i,c);return}if(void 0!==l.depthLimit&&a>l.depthLimit||void 0!==l.edgesLimit&&s+1>l.edgesLimit){u(t,r,i,c);return}if(o.push(r),Array.isArray(r))for(h=0;h<r.length;h++)e(r[h],h,h,o,r,a,l);else{var h,d=Object.keys(r);for(h=0;h<d.length;h++){var f=d[h];e(r[f],f,h,o,r,a,l)}}o.pop()}}(e,"",0,[],void 0,0,a);try{h=0===i.length?JSON.stringify(e,o,c):JSON.stringify(e,l(o),c)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var h,d=r.pop();4===d.length?Object.defineProperty(d[0],d[1],d[3]):d[0][d[1]]=d[2]}}return h}function u(e,t,n,s){var o=Object.getOwnPropertyDescriptor(s,n);void 0!==o.get?o.configurable?(Object.defineProperty(s,n,{value:e}),r.push([s,n,t,o])):i.push([t,n,e]):(s[n]=e,r.push([s,n,t]))}function c(e,t){return e<t?-1:e>t?1:0}function a(e,o,a,h){void 0===h&&(h=s());var d,f=function e(i,s,o,a,l,h,d){if(h+=1,"object"==typeof i&&null!==i){for(f=0;f<a.length;f++)if(a[f]===i){u(n,i,s,l);return}try{if("function"==typeof i.toJSON)return}catch(e){return}if(void 0!==d.depthLimit&&h>d.depthLimit||void 0!==d.edgesLimit&&o+1>d.edgesLimit){u(t,i,s,l);return}if(a.push(i),Array.isArray(i))for(f=0;f<i.length;f++)e(i[f],f,f,a,i,h,d);else{var f,p={},b=Object.keys(i).sort(c);for(f=0;f<b.length;f++){var y=b[f];e(i[y],y,f,a,i,h,d),p[y]=i[y]}if(void 0===l)return p;r.push([l,s,i]),l[s]=p}a.pop()}}(e,"",0,[],void 0,0,h)||e;try{d=0===i.length?JSON.stringify(f,o,a):JSON.stringify(f,l(o),a)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==r.length;){var p=r.pop();4===p.length?Object.defineProperty(p[0],p[1],p[3]):p[0][p[1]]=p[2]}}return d}function l(e){return e=void 0!==e?e:function(e,t){return t},function(t,n){if(i.length>0)for(var r=0;r<i.length;r++){var s=i[r];if(s[1]===t&&s[0]===n){n=s[2],i.splice(r,1);break}}return e.call(this,t,n)}}},17398:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esMo
16dule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.JsonRpcEngine=void 0;let i=r(n(19394)),s=n(79826);class o extends i.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,t){if(t&&"function"!=typeof t)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?t?this._handleBatch(e,t):this._handleBatch(e):t?this._handle(e,t):this._promiseHandle(e)}asMiddleware(){return async(e,t,n,r)=>{try{let[i,s,u]=await o._runAllMiddleware(e,t,this._middleware);if(s)return await o._runReturnHandlers(u),r(i);return n(async e=>{try{await o._runReturnHandlers(u)}catch(t){return e(t)}return e()})}catch(e){return r(e)}}}async _handleBatch(e,t){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));if(t)return t(null,n);return n}catch(e){if(t)return t(e);throw e}}_promiseHandle(e){return new Promise(t=>{this._handle(e,(e,n)=>{t(n)})})}async _handle(e,t){if(!e||Array.isArray(e)||"object"!=typeof e){let n=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,`Requests must be plain objects. Received: ${typeof e}`,{request:e});return t(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof e.method){let n=new s.EthereumRpcError(s.errorCodes.rpc.invalidRequest,`Must specify a string method. Received: ${typeof e.method}`,{request:e});return t(n,{id:e.id,jsonrpc:"2.0",error:n})}let n=Object.assign({},e),r={id:n.id,jsonrpc:n.jsonrpc},i=null;try{await this._processRequest(n,r)}catch(e){i=e}return i&&(delete r.result,r.error||(r.error=s.serializeError(i))),t(i,r)}async _processRequest(e,t){let[n,r,i]=await o._runAllMiddleware(e,t,this._middleware);if(o._checkForCompletion(e,t,r),await o._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(e,t,n){let r=[],i=null,s=!1;for(let u of n)if([i,s]=await o._runMiddleware(e,t,u,r),s)break;return[i,s,r.reverse()]}static _runMiddleware(e,t,n,r){return new Promise(i=>{let o=e=>{let n=e||t.error;n&&(t.error=s.serializeError(n)),i([n,!0])};try{n(e,t,n=>{t.error?o(t.error):(n&&("function"!=typeof n&&o(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request: 17${u(e)}`,{request:e})),r.push(n)),i([null,!1]))},o)}catch(e){o(e)}})}static async _runReturnHandlers(e){for(let t of e)await new Promise((e,n)=>{t(t=>t?n(t):e())})}static _checkForCompletion(e,t,n){if(!("result"in t)&&!("error"in t))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Response has no error or result for request: 18${u(e)}`,{request:e});if(!n)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: Nothing ended request: 19${u(e)}`,{request:e})}}function u(e){return JSON.stringify(e,null,2)}t.JsonRpcEngine=o},31841:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createAsyncMiddleware=void 0,t.createAsyncMiddleware=function(e){return async(t,n,r,i)=>{let s;let o=new Promise(e=>{s=e}),u=null,c=!1,a=async()=>{c=!0,r(e=>{u=e,s()}),await o};try{await e(t,n,a),c?(await o,u(null)):i(null)}catch(e){u?u(e):i(e)}}}},48508:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createScaffoldMiddleware=void 0,t.createScaffoldMiddleware=function(e){return(t,n,r,i)=>{let s=e[t.method];return void 0===s?r():"function"==typeof s?s(t,n,r,i):(n.result=s,i())}}},33107:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getUniqueId=void 0;let n=Math.floor(4294967295*Math.random());t.getUniqueId=function(){return n=(n+1)%4294967295}},85086:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createIdRemapMiddleware=void 0;let r=n(33107);t.createIdRemapMiddleware=function(){return(e,t,n,i)=>{let s=e.id,o=r.getUniqueId();e.id=o,t.id=o,n(n=>{e.id=s,t.id=s,n()})}}},88625: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.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};
19Object.defineProperty(t,"__esModule",{value:!0}),i(n(85086),t),i(n(31841),t),i(n(48508),t),i(n(33107),t),i(n(17398),t),i(n(79962),t)},79962:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.mergeMiddleware=void 0;let r=n(17398);t.mergeMiddleware=function(e){let t=new r.JsonRpcEngine;return e.forEach(e=>t.push(e)),t.asMiddleware()}},23420:function(e){e.exports=function(e){var t=(e=e||{}).max||Number.MAX_SAFE_INTEGER,n=void 0!==e.start?e.start:Math.floor(Math.random()*t);return function(){return n%=t,n++}}},57824:function(e){function t(e,t,n,r){return Math.round(e/n)+" "+r+(t>=1.5*n?"s":"")}e.exports=function(e,n){n=n||{};var r,i,s=typeof e;if("string"===s&&e.length>0)return function(e){if(!((e=String(e)).length>100)){var t=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(t){var n=parseFloat(t[1]);switch((t[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*n;case"weeks":case"week":case"w":return 6048e5*n;case"days":case"day":case"d":return 864e5*n;case"hours":case"hour":case"hrs":case"hr":case"h":return 36e5*n;case"minutes":case"minute":case"mins":case"min":case"m":return 6e4*n;case"seconds":case"second":case"secs":case"sec":case"s":return 1e3*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return n;default:return}}}}(e);if("number"===s&&isFinite(e))return n.long?(r=Math.abs(e))>=864e5?t(e,r,864e5,"day"):r>=36e5?t(e,r,36e5,"hour"):r>=6e4?t(e,r,6e4,"minute"):r>=1e3?t(e,r,1e3,"second"):e+" ms":(i=Math.abs(e))>=864e5?Math.round(e/864e5)+"d":i>=36e5?Math.round(e/36e5)+"h":i>=6e4?Math.round(e/6e4)+"m":i>=1e3?Math.round(e/1e3)+"s":e+"ms";throw Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))}},70631:function(e,t,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=r&&i&&"function"==typeof i.get?i.get:null,o=r&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,a=u&&c&&"function"==typeof c.get?c.get:null,l=u&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,b=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,m=String.prototype.slice,v=String.prototype.replace,_=String.prototype.toUpperCase,w=String.prototype.toLowerCase,S=RegExp.prototype.test,x=Array.prototype.concat,E=Array.prototype.join,C=Array.prototype.slice,k=Math.floor,M="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,A="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===A?"object":"symbol")?Symbol.toStringTag:null,j=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||S.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var r=e<0?-k(-e):k(e);if(r!==e){var i=String(r),s=m.call(t,i.length+1);return v.call(i,n,"$&_")+"."+v.call(v.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return v.call(t,n,"$&_")}var L=n(24654),P=L.custom,D=z(P)?P:null;function B(e,t,n){var r="double"===(n.quoteStyle||t)?'"':"'";return r+e+r}function F(e){return"[object Array]"===U(e)&&(!R||!("object"==typeof e&&R in e))}function V(e){return"[object RegExp]"===U(e)&&(!R||!("object"==typeof e&&R in e))}function z(e){if(A)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!N)return!1;try{return N.call(e),!0}catch(e){}return!1}e.exports=function e(t,n,r,i){var u=n||{};if(W(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(W(u,"maxStringLength")&&("number"==typeof u.maxStringLength?u.maxStringLength<0&&u.maxStringLength!==1/0:null!==u.maxStringLength))throw TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!W(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
19if(W(u,"indent")&&null!==u.indent&&" "!==u.indent&&!(parseInt(u.indent,10)===u.indent&&u.indent>0))throw TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(W(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=u.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return function e(t,n){if(t.length>n.maxStringLength){var r=t.length-n.maxStringLength;return e(m.call(t,0,n.maxStringLength),n)+"... "+r+" more character"+(r>1?"s":"")}return B(v.call(v.call(t,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,$),"single",n)}(t,u);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var _=String(t);return b?O(t,_):_}if("bigint"==typeof t){var S=String(t)+"n";return b?O(t,S):S}var k=void 0===u.depth?5:u.depth;if(void 0===r&&(r=0),r>=k&&k>0&&"object"==typeof t)return F(t)?"[Array]":"[Object]";var I=function(e,t){var n;if(" "===e.indent)n=" ";else{if("number"!=typeof e.indent||!(e.indent>0))return null;n=E.call(Array(e.indent+1)," ")}return{base:n,prev:E.call(Array(t+1),n)}}(u,r);if(void 0===i)i=[];else if(q(i,t)>=0)return"[Circular]";function P(t,n,s){if(n&&(i=C.call(i)).push(n),s){var o={depth:u.depth};return W(u,"quoteStyle")&&(o.quoteStyle=u.quoteStyle),e(t,o,r+1,i)}return e(t,u,r+1,i)}if("function"==typeof t&&!V(t)){var H=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}(t),K=Y(t,P);return"[Function"+(H?": "+H:" (anonymous)")+"]"+(K.length>0?" { "+E.call(K,", ")+" }":"")}if(z(t)){var X=A?v.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):N.call(t);return"object"!=typeof t||A?X:J(X)}if(t&&"object"==typeof t&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)){for(var ee,et="<"+w.call(String(t.nodeName)),en=t.attributes||[],er=0;er<en.length;er++)et+=" "+en[er].name+"="+B((ee=en[er].value,v.call(String(ee),/"/g,""")),"double",u);return et+=">",t.childNodes&&t.childNodes.length&&(et+="..."),et+="</"+w.call(String(t.nodeName))+">"}if(F(t)){if(0===t.length)return"[]";var ei=Y(t,P);return I&&!function(e){for(var t=0;t<e.length;t++)if(q(e[t],"\n")>=0)return!1;return!0}(ei)?"["+G(ei,I)+"]":"[ "+E.call(ei,", ")+" ]"}if("[object Error]"===U(t)&&(!R||!("object"==typeof t&&R in t))){var es=Y(t,P);return"cause"in Error.prototype||!("cause"in t)||j.call(t,"cause")?0===es.length?"["+String(t)+"]":"{ ["+String(t)+"] "+E.call(es,", ")+" }":"{ ["+String(t)+"] "+E.call(x.call("[cause]: "+P(t.cause),es),", ")+" }"}if("object"==typeof t&&c){if(D&&"function"==typeof t[D]&&L)return L(t,{depth:k-r});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{a.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var eo=[];return o&&o.call(t,function(e,n){eo.push(P(n,t,!0)+" => "+P(e,t))}),Q("Map",s.call(t),eo,I)}if(function(e){if(!a||!e||"object"!=typeof e)return!1;try{a.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var eu=[];return l&&l.call(t,function(e){eu.push(P(e,t))}),Q("Set",a.call(t),eu,I)}if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Z("WeakMap");if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Z("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Z("WeakRef");if("[object Number]"===U(t)&&(!R||!("object"==typeof t&&R in t)))return J(P(Number(t)));if(function(e){if(!e||"object"!=typeof e||!M)return!1;try{return M.call(e),!0}catch(e){}return!1}(t))return J(P(M.call(t)));if("[object Boolean]"===U(t)&&(!R||!("object"==typeof t&&R in t)))return J(p.call(t));if("[object String]"===U(t)&&(!R||!("object"==typeof t&&R in t)))return J(P(String(t)));
19if(!("[object Date]"===U(t)&&(!R||!("object"==typeof t&&R in t)))&&!V(t)){var ec=Y(t,P),ea=T?T(t)===Object.prototype:t instanceof Object||t.constructor===Object,el=t instanceof Object?"":"null prototype",eh=!ea&&R&&Object(t)===t&&R in t?m.call(U(t),8,-1):el?"Object":"",ed=(ea||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(eh||el?"["+E.call(x.call([],eh||[],el||[]),": ")+"] ":"");return 0===ec.length?ed+"{}":I?ed+"{"+G(ec,I)+"}":ed+"{ "+E.call(ec,", ")+" }"}return String(t)};var H=Object.prototype.hasOwnProperty||function(e){return e in this};function W(e,t){return H.call(e,t)}function U(e){return b.call(e)}function q(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;n<r;n++)if(e[n]===t)return n;return -1}function $(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+_.call(t.toString(16))}function J(e){return"Object("+e+")"}function Z(e){return e+" { ? }"}function Q(e,t,n,r){return e+" ("+t+") {"+(r?G(n,r):E.call(n,", "))+"}"}function G(e,t){if(0===e.length)return"";var n="\n"+t.prev+t.base;return n+E.call(e,","+n)+"\n"+t.prev}function Y(e,t){var n,r=F(e),i=[];if(r){i.length=e.length;for(var s=0;s<e.length;s++)i[s]=W(e,s)?t(e[s],e):""}var o="function"==typeof I?I(e):[];if(A){n={};for(var u=0;u<o.length;u++)n["$"+o[u]]=o[u]}for(var c in e)W(e,c)&&(!r||String(Number(c))!==c||!(c<e.length))&&(A&&n["$"+c]instanceof Symbol||(S.call(/[^\w$]/,c)?i.push(t(c,e)+": "+t(e[c],e)):i.push(c+": "+t(e[c],e))));if("function"==typeof I)for(var a=0;a<o.length;a++)j.call(e,o[a])&&i.push("["+t(o[a])+"]: "+t(e[o[a]],e));return i}},12352:function(e){"use strict";let t=(e,t)=>function(){let n=t.promiseModule,r=Array(arguments.length);for(let e=0;e<arguments.length;e++)r[e]=arguments[e];return new n((n,i)=>{t.errorFirst?r.push(function(e,r){if(t.multiArgs){let t=Array(arguments.length-1);for(let e=1;e<arguments.length;e++)t[e-1]=arguments[e];e?(t.unshift(e),i(t)):n(t)}else e?i(e):n(r)}):r.push(function(e){if(t.multiArgs){let e=Array(arguments.length-1);for(let t=0;t<arguments.length;t++)e[t]=arguments[t];n(e)}else n(e)}),e.apply(this,r)})};e.exports=(e,n)=>{let r;n=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},n);let i=e=>{let t=t=>"string"==typeof t?e===t:t.test(e);return n.include?n.include.some(t):!n.exclude.some(t)};for(let s in r="function"==typeof e?function(){return n.excludeMain?e.apply(this,arguments):t(e,n).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){let o=e[s];r[s]="function"==typeof o&&i(s)?t(o,n):o}return r}},6400:function(e,t,n){"use strict";n.r(t),n.d(t,{Component:function(){return S},Fragment:function(){return w},cloneElement:function(){return F},createContext:function(){return V},createElement:function(){return m},createRef:function(){return _},h:function(){return m},hydrate:function(){return B},isValidElement:function(){return o},options:function(){return i},render:function(){return D},toChildArray:function(){return function e(t,n){return n=n||[],null==t||"boolean"==typeof t||(b(t)?t.some(function(t){e(t,n)}):n.push(t)),n}}});var r,i,s,o,u,c,a,l,h,d={},f=[],p=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function y(e,t){for(var n in t)e[n]=t[n];return e}function g(e){var t=e.parentNode;t&&t.removeChild(e)}function m(e,t,n){var i,s,o,u={};for(o in t)"key"==o?i=t[o]:"ref"==o?s=t[o]:u[o]=t[o];if(arguments.length>2&&(u.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===u[o]&&(u[o]=e.defaultProps[o]);return v(e,u,i,s,null)}function v(e,t,n,r,o){var u={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++s:o};return null==o&&null!=i.vnode&&i.vnode(u),u}function _(){return{current:null}}function w(e){return e.children}function S(e,t){this.props=e,this.context=t}function x(e,t){if(null==t)return e.__?x(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?x(e):null}function E(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!C.__r++||c!==i.debounceRendering)&&((c=i.debounceRendering)||a)(C)}function C(){var e,t,n,r,i,s,o,c,a;for(u.sort(l);e=u.shift();)e.__d&&(t=u.length,r=void 0,i=void 0,s=void 0,c=(o=(n=e).__v).__e,(a=n.__P)&&(r=[],i=[],(s=y({},o)).__v=o.__v+1,j(a,o,s,n.__n,void 0!==a.ownerSVGElement,null!=o.__h?[c]:null,r,null==c?x(o):c,o.__h,i),T(r,o,i),o.__e!=c&&function e(t){var n,r;if(null!=(t=t.__)&&null!=t.__c){for(t.__e=t.__c.base=null,n=0;n<t.__k.length;n++)if(null!=(r=t.__k[n])&&null!=r.__e){t.__e=t.__c.base=r.__e;break}return e(t)}}(o)),u.length>t&&u.sort(l));C.__r=0}function k(e,t,n,r,i,s,o,u,c,a,l){var h,p,y,g,m,_,S,E,C,k=0,I=r&&r.__k||f,N=I.length,A=N,R=t.length;
vendor: 3,798 bytes, line 19
19for(n.__k=[],h=0;h<R;h++)null!=(g=n.__k[h]=null==(g=t[h])||"boolean"==typeof g||"function"==typeof g?null:"string"==typeof g||"number"==typeof g||"bigint"==typeof g?v(null,g,null,null,g):b(g)?v(w,{children:g},null,null,null):g.__b>0?v(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(E=function(e,t,n,r){var i=e.key,s=e.type,o=n-1,u=n+1,c=t[n];if(null===c||c&&i==c.key&&s===c.type)return n;if(r>(null!=c?1:0))for(;o>=0||u<t.length;){if(o>=0){if((c=t[o])&&i==c.key&&s===c.type)return o;o--}if(u<t.length){if((c=t[u])&&i==c.key&&s===c.type)return u;u++}}return -1}(g,I,S=h+k,A))?y=d:(y=I[E]||d,I[E]=void 0,A--),j(e,g,y,i,s,o,u,c,a,l),m=g.__e,(p=g.ref)&&y.ref!=p&&(y.ref&&O(y.ref,null,g),l.push(p,g.__c||m,g)),null!=m&&(null==_&&(_=m),(C=y===d||null===y.__v)?-1==E&&k--:E!==S&&(E===S+1?k++:E>S?A>R-S?k+=E-S:k--:k=E<S&&E==S-1?E-S:0),S=h+k,"function"!=typeof g.type||E===S&&y.__k!==g.__k?"function"!=typeof g.type&&(E!==S||C)?c=M(e,m,c):void 0!==g.__d?(c=g.__d,g.__d=void 0):c=m.nextSibling:c=function e(t,n,r){for(var i,s=t.__k,o=0;s&&o<s.length;o++)(i=s[o])&&(i.__=t,n="function"==typeof i.type?e(i,n,r):M(r,i.__e,n));return n}(g,c,e),"function"==typeof n.type&&(n.__d=c))):(y=I[h])&&null==y.key&&y.__e&&(y.__e==c&&(c=x(y)),L(y,y,!1),I[h]=null);for(n.__e=_,h=N;h--;)null!=I[h]&&("function"==typeof n.type&&null!=I[h].__e&&I[h].__e==n.__d&&(n.__d=I[h].__e.nextSibling),L(I[h],I[h]))}function M(e,t,n){return null==n||n.parentNode!==e?e.insertBefore(t,null):t==n&&null!=t.parentNode||e.insertBefore(t,n),t.nextSibling}function I(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||p.test(t)?n:n+"px"}function N(e,t,n,r,i){var s;e:if("style"===t){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||I(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||I(e.style,t,n[t])}}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/(PointerCapture)$|Capture$/,"$1")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?r||e.addEventListener(t,s?R:A,s):e.removeEventListener(t,s?R:A,s);else if("dangerouslySetInnerHTML"!==t){if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&"rowSpan"!==t&&"colSpan"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function A(e){return this.l[e.type+!1](i.event?i.event(e):e)}function R(e){return this.l[e.type+!0](i.event?i.event(e):e)}function j(e,t,n,s,o,u,c,a,l,h){var f,p,m,v,_,E,C,M,I,A,R,j,T,O,L,D=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,u=[a]),(f=i.__b)&&f(t);e:if("function"==typeof D)try{if(M=t.props,I=(f=D.contextType)&&s[f.__c],A=f?I?I.props.value:f.__:s,n.__c?C=(p=t.__c=n.__c).__=p.__E:("prototype"in D&&D.prototype.render?t.__c=p=new D(M,A):(t.__c=p=new S(M,A),p.constructor=D,p.render=P),I&&I.sub(p),p.props=M,p.state||(p.state={}),p.context=A,p.__n=s,m=p.__d=!0,p.__h=[],p._sb=[]),null==p.__s&&(p.__s=p.state),null!=D.getDerivedStateFromProps&&(p.__s==p.state&&(p.__s=y({},p.__s)),y(p.__s,D.getDerivedStateFromProps(M,p.__s))),v=p.props,_=p.state,p.__v=t,m)null==D.getDerivedStateFromProps&&null!=p.componentWillMount&&p.componentWillMount(),null!=p.componentDidMount&&p.__h.push(p.componentDidMount);else{if(null==D.getDerivedStateFromProps&&M!==v&&null!=p.componentWillReceiveProps&&p.componentWillReceiveProps(M,A),!p.__e&&(null!=p.shouldComponentUpdate&&!1===p.shouldComponentUpdate(M,p.__s,A)||t.__v===n.__v)){for(t.__v!==n.__v&&(p.props=M,p.state=p.__s,p.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach(function(e){e&&(e.__=t)}),R=0;R<p._sb.length;
19R++)p.__h.push(p._sb[R]);p._sb=[],p.__h.length&&c.push(p);break e}null!=p.componentWillUpdate&&p.componentWillUpdate(M,p.__s,A),null!=p.componentDidUpdate&&p.__h.push(function(){p.componentDidUpdate(v,_,E)})}if(p.context=A,p.props=M,p.__P=e,p.__e=!1,j=i.__r,T=0,"prototype"in D&&D.prototype.render){for(p.state=p.__s,p.__d=!1,j&&j(t),f=p.render(p.props,p.state,p.context),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[]}else do p.__d=!1,j&&j(t),f=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++T<25);p.state=p.__s,null!=p.getChildContext&&(s=y(y({},s),p.getChildContext())),m||null==p.getSnapshotBeforeUpdate||(E=p.getSnapshotBeforeUpdate(v,_)),k(e,b(L=null!=f&&f.type===w&&null==f.key?f.props.children:f)?L:[L],t,n,s,o,u,c,a,l,h),p.base=t.__e,t.__h=null,p.__h.length&&c.push(p),C&&(p.__E=p.__=null)}catch(e){t.__v=null,(l||null!=u)&&(t.__e=a,t.__h=!!l,u[u.indexOf(a)]=null),i.__e(e,t,n)}else null==u&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=function(e,t,n,i,s,o,u,c,a){var l,h,f,p=n.props,y=t.props,m=t.type,v=0;if("svg"===m&&(s=!0),null!=o){for(;v<o.length;v++)if((l=o[v])&&"setAttribute"in l==!!m&&(m?l.localName===m:3===l.nodeType)){e=l,o[v]=null;break}}if(null==e){if(null===m)return document.createTextNode(y);e=s?document.createElementNS("http://www.w3.org/2000/svg",m):document.createElement(m,y.is&&y),o=null,c=!1}if(null===m)p===y||c&&e.data===y||(e.data=y);else{if(o=o&&r.call(e.childNodes),h=(p=n.props||d).dangerouslySetInnerHTML,f=y.dangerouslySetInnerHTML,!c){if(null!=o)for(p={},v=0;v<e.attributes.length;v++)p[e.attributes[v].name]=e.attributes[v].value;(f||h)&&(f&&(h&&f.__html==h.__html||f.__html===e.innerHTML)||(e.innerHTML=f&&f.__html||""))}if(function(e,t,n,r,i){var s;for(s in n)"children"===s||"key"===s||s in t||N(e,s,null,n[s],r);for(s in t)i&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||N(e,s,t[s],n[s],r)}(e,y,p,s,c),f)t.__k=[];else if(k(e,b(v=t.props.children)?v:[v],t,n,i,s&&"foreignObject"!==m,o,u,o?o[0]:n.__k&&x(n,0),c,a),null!=o)for(v=o.length;v--;)null!=o[v]&&g(o[v]);c||("value"in y&&void 0!==(v=y.value)&&(v!==e.value||"progress"===m&&!v||"option"===m&&v!==p.value)&&N(e,"value",v,p.value,!1),"checked"in y&&void 0!==(v=y.checked)&&v!==e.checked&&N(e,"checked",v,p.checked,!1))}return e}(n.__e,t,n,s,o,u,c,l,h);(f=i.diffed)&&f(t)}function T(e,t,n){for(var r=0;r<n.length;r++)O(n[r],n[++r],n[++r]);i.__c&&i.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){i.__e(e,t.__v)}})}function O(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){i.__e(e,n)}}function L(e,t,n){var r,s;if(i.unmount&&i.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||O(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){i.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(s=0;s<r.length;s++)r[s]&&L(r[s],t,n||"function"!=typeof e.type);n||null==e.__e||g(e.__e),e.__=e.__e=e.__d=void 0}function P(e,t,n){return this.constructor(e,n)}function D(e,t,n){var s,o,u,c;i.__&&i.__(e,t),o=(s="function"==typeof n)?null:n&&n.__k||t.__k,u=[],c=[],j(t,e=(!s&&n||t).__k=m(w,null,[e]),o||d,d,void 0!==t.ownerSVGElement,!s&&n?[n]:o?null:t.firstChild?r.call(t.childNodes):null,u,!s&&n?n:o?o.__e:t.firstChild,s,c),T(u,e,c)}function B(e,t){D(e,t,B)}function F(e,t,n){var i,s,o,u,c=y({},e.props);for(o in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),t)"key"==o?i=t[o]:"ref"==o?s=t[o]:c[o]=void 0===t[o]&&void 0!==u?u[o]:t[o];return arguments.length>2&&(c.children=arguments.length>3?r.call(arguments,2):n),v(e.type,c,i||e.key,s||e.ref,null)}function V(e,t){var n={__c:t="__cC"+h++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,E(e)})},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(e,t,n,r){for(var i,s,o;t=t.__;)if((i=t.__c)&&!i.__)try{if((s=i.constructor)&&null!=s.getDerivedStateFromError&&(i.setState(s.getDerivedStateFromError(e)),o=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),o=i.__d),o)return i.__E=i}catch(t){e=t}throw e}},s=0,o=function(e){return null!=e&&void 0===e.constructor},S.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=y({},this.state),"function"==typeof e&&(e=e(y({},n),this.props)),e&&y(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),E(this))},S.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),E(this))},S.prototype.render=w,u=[],a="function"==typeof Promise?Promise.prototype.then.bind(Prom
19ise.resolve()):setTimeout,l=function(e,t){return e.__v.__b-t.__v.__b},C.__r=0,h=0},30396:function(e,t,n){"use strict";n.r(t),n.d(t,{useCallback:function(){return E},useContext:function(){return C},useDebugValue:function(){return k},useEffect:function(){return v},useErrorBoundary:function(){return M},useId:function(){return I},useImperativeHandle:function(){return S},useLayoutEffect:function(){return _},useMemo:function(){return x},useReducer:function(){return m},useRef:function(){return w},useState:function(){return g}});var r,i,s,o,u=n(6400),c=0,a=[],l=[],h=u.options.__b,d=u.options.__r,f=u.options.diffed,p=u.options.__c,b=u.options.unmount;function y(e,t){u.options.__h&&u.options.__h(i,e,c||t),c=0;var n=i.__H||(i.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:l}),n.__[e]}function g(e){return c=1,m(L,e)}function m(e,t,n){var s=y(r++,2);if(s.t=e,!s.__c&&(s.__=[n?n(t):L(void 0,t),function(e){var t=s.__N?s.__N[0]:s.__[0],n=s.t(t,e);t!==n&&(s.__N=[n,s.__[1]],s.__c.setState({}))}],s.__c=i,!i.u)){var o=function(e,t,n){if(!s.__c.__H)return!0;var r=s.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!u||u.call(this,e,t,n);var i=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(i=!0)}}),!(!i&&s.__c.props===e)&&(!u||u.call(this,e,t,n))};i.u=!0;var u=i.shouldComponentUpdate,c=i.componentWillUpdate;i.componentWillUpdate=function(e,t,n){if(this.__e){var r=u;u=void 0,o(e,t,n),u=r}c&&c.call(this,e,t,n)},i.shouldComponentUpdate=o}return s.__N||s.__}function v(e,t){var n=y(r++,3);!u.options.__s&&O(n.__H,t)&&(n.__=e,n.i=t,i.__H.__h.push(n))}function _(e,t){var n=y(r++,4);!u.options.__s&&O(n.__H,t)&&(n.__=e,n.i=t,i.__h.push(n))}function w(e){return c=5,x(function(){return{current:e}},[])}function S(e,t,n){c=6,_(function(){return"function"==typeof e?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function x(e,t){var n=y(r++,7);return O(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function E(e,t){return c=8,x(function(){return e},t)}function C(e){var t=i.context[e.__c],n=y(r++,9);return n.c=e,t?(null==n.__&&(n.__=!0,t.sub(i)),t.props.value):e.__}function k(e,t){u.options.useDebugValue&&u.options.useDebugValue(t?t(e):e)}function M(e){var t=y(r++,10),n=g();return t.__=e,i.componentDidCatch||(i.componentDidCatch=function(e,r){t.__&&t.__(e,r),n[1](e)}),[n[0],function(){n[1](void 0)}]}function I(){var e=y(r++,11);if(!e.__){for(var t=i.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function N(){for(var e;e=a.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(j),e.__H.__h.forEach(T),e.__H.__h=[]}catch(t){e.__H.__h=[],u.options.__e(t,e.__v)}}u.options.__b=function(e){i=null,h&&h(e)},u.options.__r=function(e){d&&d(e),r=0;var t=(i=e.__c).__H;t&&(s===i?(t.__h=[],i.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=l,e.__N=e.i=void 0})):(t.__h.forEach(j),t.__h.forEach(T),t.__h=[],r=0)),s=i},u.options.diffed=function(e){f&&f(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==a.push(t)&&o===u.options.requestAnimationFrame||((o=u.options.requestAnimationFrame)||R)(N)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==l&&(e.__=e.__V),e.i=void 0,e.__V=l})),s=i=null},u.options.__c=function(e,t){t.some(function(e){try{e.__h.forEach(j),e.__h=e.__h.filter(function(e){return!e.__||T(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],u.options.__e(n,e.__v)}}),p&&p(e,t)},u.options.unmount=function(e){b&&b(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{j(e)}catch(e){t=e}}),n.__H=void 0,t&&u.options.__e(t,n.__v))};var A="function"==typeof requestAnimationFrame;function R(e){var t,n=function(){clearTimeout(r),A&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);A&&(t=requestAnimationFrame(n))}function j(e){var t=i,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),i=t}function T(e){var t=i;e.__c=e.__(),i=t}function O(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function L(e,t){return"function"==typeof t?t(e):t}},55798:function(e){"use strict";var t=String.prototype.replace,n=/%20/g,r={RFC1738:"RFC1738",RFC3986:"RFC3986"};e.exports={default:r.RFC3986,formatters:{RFC1738:function(e){return t.call(e,n,"+")},RFC3986:function(e){return String(e)}},RFC1738:r.RFC1738,RFC3986:r.RFC3986}},80129:function(e,t,n){"use strict";var r=n(58261),i=n(55235),s=n(55798);e.exports={formats:s,parse:i,stringify:r}},55235:function(e,t,n){"use strict";var r=n(12769),i=Object.prototype.hasOwnProperty,s=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:r.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,t){var n={__proto__:null},c=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,a=t.parameterLimit===1/0?void 0:t.parameterLimit,l=c.split(t.delimiter,a),h=-1,d=t.charset;if(t.charsetSentinel)for(f=0;f<l.length;++f)0===l[f].indexOf("utf8=")&&("utf8=%E2%9C%93"===l[f]?d="utf-8":"utf8=%26%2310003%3B"===l[f]&&(d="iso-8859-1"),h=f,f=l.length);for(f=0;f<l.length;++f)if(f!==h){var f,p,b,y=l[f],g=y.indexOf("]="),m=-1===g?y.indexOf("="):g+1;-1===m?(p=t.decoder(y,o.decoder,d,"key"),b=t.strictNullHandling?null:""):(p=t.decoder(y.slice(0,m),o.decoder,d,"key"),b=r.maybeMap(u(y.slice(m+1),t),function(e){return t.decoder(e,o.decoder,d,"value")})),b&&t.interpretNumericEntities&&"iso-8859-1"===d&&(b=b.replace(/&#(\d+);/g,function(e,t){return String.fromCharCode(parseInt(t,10))})),y.indexOf("[]=")>-1&&(b=s(b)?[b]:b),i.call(n,p)?n[p]=r.combine(n[p],b):n[p]=b}return n},a=function(e,t,n,r){for(var i=r?t:u(t,n),s=e.length-1;s>=0;--s){var o,c=e[s];if("[]"===c&&n.parseArrays)o=[].concat(i);else{o=n.plainObjects?Object.create(null):{};var a="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,l=parseInt(a,10);n.parseArrays||""!==a?!isNaN(l)&&c!==a&&String(l)===a&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(o=[])[l]=i:"__proto__"!==a&&(o[a]=i):o={0:i}}i=o}return i},l=function(e,t,n,r){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,u=n.depth>0&&/(\[[^[\]]*])/.exec(s),c=u?s.slice(0,u.index):s,l=[];
vendor: 7,059 bytes, line 19
19if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var h=0;n.depth>0&&null!==(u=o.exec(s))&&h<n.depth;){if(h+=1,!n.plainObjects&&i.call(Object.prototype,u[1].slice(1,-1))&&!n.allowPrototypes)return;l.push(u[1])}return u&&l.push("["+s.slice(u.index)+"]"),a(l,t,n,r)}},h=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||r.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}};e.exports=function(e,t){var n=h(t);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var i="string"==typeof e?c(e,n):e,s=n.plainObjects?Object.create(null):{},o=Object.keys(i),u=0;u<o.length;++u){var a=o[u],d=l(a,i[a],n,"string"==typeof e);s=r.merge(s,d,n)}return!0===n.allowSparse?s:r.compact(s)}},58261:function(e,t,n){"use strict";var r=n(37478),i=n(12769),s=n(55798),o=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,a=Array.prototype.push,l=function(e,t){a.apply(e,c(t)?t:[t])},h=Date.prototype.toISOString,d=s.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:s.formatters[d],indices:!1,serializeDate:function(e){return h.call(e)},skipNulls:!1,strictNullHandling:!1},p={},b=function e(t,n,s,o,u,a,h,d,b,y,g,m,v,_,w,S){for(var x,E,C=t,k=S,M=0,I=!1;void 0!==(k=k.get(p))&&!I;){var N=k.get(t);if(M+=1,void 0!==N){if(N===M)throw RangeError("Cyclic object value");I=!0}void 0===k.get(p)&&(M=0)}if("function"==typeof d?C=d(n,C):C instanceof Date?C=g(C):"comma"===s&&c(C)&&(C=i.maybeMap(C,function(e){return e instanceof Date?g(e):e})),null===C){if(u)return h&&!_?h(n,f.encoder,w,"key",m):n;C=""}if("string"==typeof(x=C)||"number"==typeof x||"boolean"==typeof x||"symbol"==typeof x||"bigint"==typeof x||i.isBuffer(C))return h?[v(_?n:h(n,f.encoder,w,"key",m))+"="+v(h(C,f.encoder,w,"value",m))]:[v(n)+"="+v(String(C))];var A=[];if(void 0===C)return A;if("comma"===s&&c(C))_&&h&&(C=i.maybeMap(C,h)),E=[{value:C.length>0?C.join(",")||null:void 0}];else if(c(d))E=d;else{var R=Object.keys(C);E=b?R.sort(b):R}for(var j=o&&c(C)&&1===C.length?n+"[]":n,T=0;T<E.length;++T){var O=E[T],L="object"==typeof O&&void 0!==O.value?O.value:C[O];if(!a||null!==L){var P=c(C)?"function"==typeof s?s(j,O):j:j+(y?"."+O:"["+O+"]");S.set(t,M);var D=r();D.set(p,S),l(A,e(L,P,s,o,u,a,"comma"===s&&_&&c(C)?null:h,d,b,y,g,m,v,_,w,D))}}return A},y=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var n=s.default;if(void 0!==e.format){if(!o.call(s.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var r=s.formatters[n],i=f.filter;return("function"==typeof e.filter||c(e.filter))&&(i=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:i,format:n,formatter:r,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}};e.exports=function(e,t){var n,i,s=e,o=y(t);"function"==typeof o.filter?s=(0,o.filter)("",s):c(o.filter)&&(n=o.filter);var a=[];if("object"!=typeof s||null===s)return"";i=t&&t.arrayFormat in u?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var h=u[i];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var d="comma"===h&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),o.sort&&n.sort(o.sort);for(var f=r(),p=0;p<n.length;++p){var g=n[p];o.skipNulls&&null===s[g]||l(a,b(s[g],g,h,d,o.strictNullHandling,o.skipNulls,o.encode?o.encoder:null,o.filter,o.sort,o.allowDots,o.serializeDate,o.format,o.formatter,o.encodeValuesOnly,o.charset,f))}var m=a.join(o.delimiter),v=!0===o.addQueryPrefix?"?":"";return o.charsetSentinel&&("iso-8859-1"===o.charset?v+="utf8=%26%2310003%3B&":v+="utf8=%E2%9C%93&"),m.length>0?v+m:""}},12769:function(e,t,n){"use strict";var r=n(55798),i=Object.prototype.hasOwnProperty,s=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),u=function(e){for(;e.length>1;){var t=e.pop(),n=t.obj[t.prop];if(s(n)){for(var r=[],i=0;i<n.length;++i)void 0!==n[i]&&r.push(n[i]);t.obj[t.prop]=r}}},c=function(e,t){for(var n=t&&t.plainObjects?Object.create(null):{},r=0;r<e.length;++r)void 0!==e[r]&&(n[r]=e[r]);return n};e.exports={arrayToObject:c,assign:function(e,t){return Object.keys(t).reduce(function(e,n){return e[n]=t[n],e},e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],n=[],r=0;r<t.length;++r)for(var i=t[r],s=i.obj[i.prop],o=Object.keys(s),c=0;c<o.length;++c){var a=o[c],l=s[a];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(t.push({obj:s,prop:a}),n.push(l))}return u(t),e},decode:function(e,t,n){var r=e.replace(/\+/g," ");
19if("iso-8859-1"===n)return r.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(r)}catch(e){return r}},encode:function(e,t,n,i,s){if(0===e.length)return e;var u=e;if("symbol"==typeof e?u=Symbol.prototype.toString.call(e):"string"!=typeof e&&(u=String(e)),"iso-8859-1"===n)return escape(u).replace(/%u[0-9a-f]{4}/gi,function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"});for(var c="",a=0;a<u.length;++a){var l=u.charCodeAt(a);if(45===l||46===l||95===l||126===l||l>=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||s===r.RFC1738&&(40===l||41===l)){c+=u.charAt(a);continue}if(l<128){c+=o[l];continue}if(l<2048){c+=o[192|l>>6]+o[128|63&l];continue}if(l<55296||l>=57344){c+=o[224|l>>12]+o[128|l>>6&63]+o[128|63&l];continue}a+=1,c+=o[240|(l=65536+((1023&l)<<10|1023&u.charCodeAt(a)))>>18]+o[128|l>>12&63]+o[128|l>>6&63]+o[128|63&l]}return c},isBuffer:function(e){return!!e&&"object"==typeof e&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(s(e)){for(var n=[],r=0;r<e.length;r+=1)n.push(t(e[r]));return n}return t(e)},merge:function e(t,n,r){if(!n)return t;if("object"!=typeof n){if(s(t))t.push(n);else{if(!t||"object"!=typeof t)return[t,n];(r&&(r.plainObjects||r.allowPrototypes)||!i.call(Object.prototype,n))&&(t[n]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(n);var o=t;return(s(t)&&!s(n)&&(o=c(t,r)),s(t)&&s(n))?(n.forEach(function(n,s){if(i.call(t,s)){var o=t[s];o&&"object"==typeof o&&n&&"object"==typeof n?t[s]=e(o,n,r):t.push(n)}else t[s]=n}),t):Object.keys(n).reduce(function(t,s){var o=n[s];return i.call(t,s)?t[s]=e(t[s],o,r):t[s]=o,t},o)}}},46949:function(e,t,n){"use strict";n.r(t),n.d(t,{ArgumentOutOfRangeError:function(){return A.W},AsyncSubject:function(){return l.c},BehaviorSubject:function(){return c.X},ConnectableObservable:function(){return i.c},EMPTY:function(){return J.E},EmptyError:function(){return R.K},GroupedObservable:function(){return s.T},NEVER:function(){return eo},Notification:function(){return C.P},NotificationKind:function(){return C.W},ObjectUnsubscribedError:function(){return j.N},Observable:function(){return r.y},ReplaySubject:function(){return a.t},Scheduler:function(){return S.b},Subject:function(){return u.xQ},Subscriber:function(){return E.L},Subscription:function(){return x.w},TimeoutError:function(){return O.W},UnsubscriptionError:function(){return T.B},VirtualAction:function(){return w},VirtualTimeScheduler:function(){return _},animationFrame:function(){return v},animationFrameScheduler:function(){return m},asap:function(){return h.e},asapScheduler:function(){return h.E},async:function(){return d.P},asyncScheduler:function(){return d.z},bindCallback:function(){return function e(t,n,i){if(n){if(!(0,B.K)(n))return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return e(t,i).apply(void 0,r).pipe((0,L.U)(function(e){return(0,D.k)(e)?n.apply(void 0,e):n(e)}))};i=n}return function(){for(var e,n=[],s=0;s<arguments.length;s++)n[s]=arguments[s];var o=this,u={context:o,subject:e,callbackFunc:t,scheduler:i};return new r.y(function(r){if(i)return i.schedule(F,0,{args:n,subscriber:r,params:u});if(!e){e=new l.c;try{t.apply(o,n.concat([function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];e.next(t.length<=1?t[0]:t),e.complete()}]))}catch(t){(0,P._)(e)?e.error(t):console.warn(t)}}return e.subscribe(r)})}}},bindNodeCallback:function(){return function e(t,n,i){if(n){if(!(0,B.K)(n))return function(){for(var r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];return e(t,i).apply(void 0,r).pipe((0,L.U)(function(e){return(0,D.k)(e)?n.apply(void 0,e):n(e)}))};i=n}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var s={subject:void 0,args:e,callbackFunc:t,scheduler:i,context:this};return new r.y(function(n){var r=s.context,o=s.subject;if(i)return i.schedule(z,0,{params:s,subscriber:n,context:r});if(!o){o=s.subject=new l.c;try{t.apply(r,e.concat([function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.shift();if(n){o.error(n);return}o.next(e.length<=1?e[0]:e),o.complete()}]))}catch(e){(0,P._)(o)?o.error(e):console.warn(e)}}return o.subscribe(n)})}}},combineLatest:function(){return U.aj}
19,concat:function(){return q.z},config:function(){return eE.v},defer:function(){return $.P},empty:function(){return J.c},forkJoin:function(){return G},from:function(){return Q.D},fromEvent:function(){return function e(t,n,i,s){return((0,K.m)(i)&&(s=i,i=void 0),s)?e(t,n,i).pipe((0,L.U)(function(e){return(0,D.k)(e)?s.apply(void 0,e):s(e)})):new r.y(function(e){(function e(t,n,r,i,s){if(t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener)t.addEventListener(n,r,s),o=function(){return t.removeEventListener(n,r,s)};else if(t&&"function"==typeof t.on&&"function"==typeof t.off)t.on(n,r),o=function(){return t.off(n,r)};else if(t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener)t.addListener(n,r),o=function(){return t.removeListener(n,r)};else if(t&&t.length)for(var o,u=0,c=t.length;u<c;u++)e(t[u],n,r,i,s);else throw TypeError("Invalid event target");i.add(o)})(t,n,function(t){arguments.length>1?e.next(Array.prototype.slice.call(arguments)):e.next(t)},e,i)})}},fromEventPattern:function(){return function e(t,n,i){return i?e(t,n).pipe((0,L.U)(function(e){return(0,D.k)(e)?i.apply(void 0,e):i(e)})):new r.y(function(e){var r,i=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return e.next(1===t.length?t[0]:t)};try{r=t(i)}catch(t){e.error(t);return}if((0,K.m)(n))return function(){return n(i,r)}})}},generate:function(){return X},identity:function(){return I.y},iif:function(){return et},interval:function(){return er},isObservable:function(){return N},merge:function(){return es.T},never:function(){return eu},noop:function(){return M.Z},observable:function(){return o.L},of:function(){return ec.of},onErrorResumeNext:function(){return ea},pairs:function(){return el},partition:function(){return eb},pipe:function(){return k.z},queue:function(){return f.c},queueScheduler:function(){return f.N},race:function(){return ey.S3},range:function(){return eg},scheduled:function(){return ex.x},throwError:function(){return ev._},timer:function(){return e_.H},using:function(){return ew},zip:function(){return eS.$R}});var r=n(61514),i=n(33140),s=n(11120),o=n(15050),u=n(70211),c=n(89233),a=n(12630),l=n(60364),h=n(81789),d=n(90964),f=n(76084),p=n(70655),b=n(48),y=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return p.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=requestAnimationFrame(function(){return t.flush(null)})))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(cancelAnimationFrame(n),t.scheduled=void 0)},t}(b.o),g=n(78399),m=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return p.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(g.v))(y),v=m,_=function(e){function t(t,n){void 0===t&&(t=w),void 0===n&&(n=Number.POSITIVE_INFINITY);var r=e.call(this,t,function(){return r.frame})||this;return r.maxFrames=n,r.frame=0,r.index=-1,r}return p.__extends(t,e),t.prototype.flush=function(){for(var e,t,n=this.actions,r=this.maxFrames;(t=n[0])&&t.delay<=r&&(n.shift(),this.frame=t.delay,!(e=t.execute(t.state,t.delay))););if(e){for(;t=n.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(g.v),w=function(e){function t(t,n,r){void 0===r&&(r=t.index+=1);var i=e.call(this,t,n)||this;
19return i.scheduler=t,i.work=n,i.index=r,i.active=!0,i.index=t.index=r,i}return p.__extends(t,e),t.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return e.prototype.schedule.call(this,n,r);this.active=!1;var i=new t(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},t.prototype.requestAsyncId=function(e,n,r){void 0===r&&(r=0),this.delay=e.frame+r;var i=e.actions;return i.push(this),i.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,n){void 0===n&&(n=0)},t.prototype._execute=function(t,n){if(!0===this.active)return e.prototype._execute.call(this,t,n)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(b.o),S=n(38725),x=n(98760),E=n(10979),C=n(42632),k=n(62561),M=n(33306),I=n(43608);function N(e){return!!e&&(e instanceof r.y||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var A=n(76565),R=n(26929),j=n(41016),T=n(28782),O=n(81462),L=n(55709),P=n(93642),D=n(59026),B=n(17507);function F(e){var t=this,n=e.args,r=e.subscriber,i=e.params,s=i.callbackFunc,o=i.context,u=i.scheduler,c=i.subject;if(!c){c=i.subject=new l.c;try{s.apply(o,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.length<=1?e[0]:e;t.add(u.schedule(V,0,{value:r,subject:c}))}]))}catch(e){c.error(e)}}this.add(c.subscribe(r))}function V(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function z(e){var t=this,n=e.params,r=e.subscriber,i=e.context,s=n.callbackFunc,o=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new l.c;try{s.apply(i,o.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var r=e.shift();if(r)t.add(u.schedule(W,0,{err:r,subject:c}));else{var i=e.length<=1?e[0]:e;t.add(u.schedule(H,0,{value:i,subject:c}))}}]))}catch(e){this.add(u.schedule(W,0,{err:e,subject:c}))}}this.add(c.subscribe(r))}function H(e){var t=e.value,n=e.subject;n.next(t),n.complete()}function W(e){var t=e.err;e.subject.error(t)}var U=n(75142),q=n(49795),$=n(51410),J=n(5631),Z=n(92009),Q=n(55760);function G(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){var n=e[0];if((0,D.k)(n))return Y(n,null);if((0,Z.K)(n)&&Object.getPrototypeOf(n)===Object.prototype){var r=Object.keys(n);return Y(r.map(function(e){return n[e]}),r)}}if("function"==typeof e[e.length-1]){var i=e.pop();return Y(e=1===e.length&&(0,D.k)(e[0])?e[0]:e,null).pipe((0,L.U)(function(e){return i.apply(void 0,e)}))}return Y(e,null)}function Y(e,t){return new r.y(function(n){var r=e.length;if(0===r){n.complete();return}for(var i=Array(r),s=0,o=0,u=function(u){var c=(0,Q.D)(e[u]),a=!1;n.add(c.subscribe({next:function(e){!a&&(a=!0,o++),i[u]=e},error:function(e){return n.error(e)},complete:function(){++s!==r&&a||(o===r&&n.next(t?t.reduce(function(e,t,n){return e[t]=i[n],e},{}):i),n.complete())}}))},c=0;c<r;c++)u(c)})}var K=n(14156);function X(e,t,n,i,s){if(1==arguments.length){var o,u;u=e.initialState,t=e.condition,n=e.iterate,o=e.resultSelector||I.y,s=e.scheduler}else void 0===i||(0,B.K)(i)?(u=e,o=I.y,s=i):(u=e,o=i);return new r.y(function(e){var r=u;if(s)return s.schedule(ee,0,{subscriber:e,iterate:n,condition:t,resultSelector:o,state:r});for(;;){if(t){var i=void 0;try{i=t(r)}catch(t){e.error(t);return}if(!i){e.complete();break}}var c=void 0;try{c=o(r)}catch(t){e.error(t);break}if(e.next(c),e.closed)break;try{r=n(r)}catch(t){e.error(t);break}}})}function ee(e){var t,n=e.subscriber,r=e.condition;if(!n.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){n.error(e);return}else e.needIterate=!0;if(r){var i=void 0;try{i=r(e.state)}catch(e){n.error(e);return}if(!i){n.complete();return}if(n.closed)return}try{t=e.resultSelector(e.state)}catch(e){n.error(e);return}if(!n.closed&&(n.next(t),!n.closed))return this.schedule(e)}}function et(e,t,n){return void 0===t&&(t=J.E),void 0===n&&(n=J.E),(0,$.P)(function(){return e()?t:n})}var en=n(35812);function er(e,t){return void 0===e&&(e=0),void 0===t&&(t=d.P),(!(0,en.k)(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=d.P),new r.y(function(n){return n.add(t.schedule(ei,e,{subscriber:n,counter:0,peri
19od:e})),n})}function ei(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}var es=n(14370),eo=new r.y(M.Z);function eu(){return eo}var ec=n(18170);function ea(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(0===e.length)return J.E;var n=e[0],i=e.slice(1);return 1===e.length&&(0,D.k)(n)?ea.apply(void 0,n):new r.y(function(e){var t=function(){return e.add(ea.apply(void 0,i).subscribe(e))};return(0,Q.D)(n).subscribe({next:function(t){e.next(t)},error:t,complete:t})})}function el(e,t){return new r.y(t?function(n){var r=Object.keys(e),i=new x.w;return i.add(t.schedule(eh,0,{keys:r,index:0,subscriber:n,subscription:i,obj:e})),i}:function(t){for(var n=Object.keys(e),r=0;r<n.length&&!t.closed;r++){var i=n[r];e.hasOwnProperty(i)&&t.next([i,e[i]])}t.complete()})}function eh(e){var t=e.keys,n=e.index,r=e.subscriber,i=e.subscription,s=e.obj;if(!r.closed){if(n<t.length){var o=t[n];r.next([o,s[o]]),i.add(this.schedule({keys:t,index:n+1,subscriber:r,subscription:i,obj:s}))}else r.complete()}}var ed=n(18463),ef=n(26730),ep=n(66008);function eb(e,t,n){return[(0,ep.h)(t,n)(new r.y((0,ef.s)(e))),(0,ep.h)((0,ed.f)(t,n))(new r.y((0,ef.s)(e)))]}var ey=n(38821);function eg(e,t,n){return void 0===e&&(e=0),new r.y(function(r){void 0===t&&(t=e,e=0);var i=0,s=e;if(n)return n.schedule(em,0,{index:i,count:t,start:e,subscriber:r});for(;;){if(i++>=t){r.complete();break}if(r.next(s++),r.closed)break}})}function em(e){var t=e.start,n=e.index,r=e.count,i=e.subscriber;if(n>=r){i.complete();return}i.next(t),i.closed||(e.index=n+1,e.start=t+1,this.schedule(e))}var ev=n(64944),e_=n(69604);function ew(e,t){return new r.y(function(n){try{r=e()}catch(e){n.error(e);return}try{i=t(r)}catch(e){n.error(e);return}var r,i,s=(i?(0,Q.D)(i):J.E).subscribe(n);return function(){s.unsubscribe(),r&&r.unsubscribe()}})}var eS=n(25080),ex=n(68503),eE=n(30150)},60364:function(e,t,n){"use strict";n.d(t,{c:function(){return o}});var r=n(70655),i=n(70211),s=n(98760),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.value=null,t.hasNext=!1,t.hasCompleted=!1,t}return r.__extends(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),s.w.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),s.w.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(i.xQ)},89233:function(e,t,n){"use strict";n.d(t,{X:function(){return o}});var r=n(70655),i=n(70211),s=n(41016),o=function(e){function t(t){var n=e.call(this)||this;return n._value=t,n}return r.__extends(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var n=e.prototype._subscribe.call(this,t);return n&&!n.closed&&t.next(this._value),n},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(!this.closed)return this._value;throw new s.N},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(i.xQ)},42632:function(e,t,n){"use strict";n.d(t,{P:function(){return u},W:function(){return r}});var r,i=n(5631),s=n(18170),o=n(64944);r||(r={});var u=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return(0,s.of)(this.value);case"E":return(0,o._)(this.error);case"C":return(0,i.c)()}throw Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},61514:function(e,t,n){"use strict";n.d(t,{y:function(){return l}});var r=n(93642),i=n(10979),s=n(23142),o=n(32174),u=n(15050),c=n(62561),a=n(30150),l=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,u=function(e,t,n){if(e){if(e instanceof i.L)return e;if(e[s.b])return e[s.b]()}
19return e||t||n?new i.L(e,t,n):new i.L(o.c)}(e,t,n);if(r?u.add(r.call(u,this.source)):u.add(this.source||a.v.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),a.v.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){a.v.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),(0,r._)(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=h(t))(function(t,r){var i;i=n.subscribe(function(t){try{e(t)}catch(e){r(e),i&&i.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[u.L]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:(0,c.U)(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=h(e))(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}();function h(e){if(e||(e=a.v.Promise||Promise),!e)throw Error("no Promise impl found");return e}},32174:function(e,t,n){"use strict";n.d(t,{c:function(){return s}});var r=n(30150),i=n(71644),s={closed:!0,next:function(e){},error:function(e){if(r.v.useDeprecatedSynchronousErrorHandling)throw e;(0,i.z)(e)},complete:function(){}}},62039:function(e,t,n){"use strict";n.d(t,{L:function(){return i}});var r=n(70655),i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(n(10979).L)},12630:function(e,t,n){"use strict";n.d(t,{t:function(){return l}});var r=n(70655),i=n(70211),s=n(76084),o=n(98760),u=n(89276),c=n(41016),a=n(18253),l=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this)||this;
vendor: 26,585 bytes, line 19
19return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=t<1?1:t,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){if(!this.isStopped){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this.isStopped||(this._events.push(new h(this._getNow(),t)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,s=r.length;if(this.closed)throw new c.N;if(this.isStopped||this.hasError?t=o.w.EMPTY:(this.observers.push(e),t=new a.W(this,e)),i&&e.add(e=new u.ht(e,i)),n)for(var l=0;l<s&&!e.closed;l++)e.next(r[l]);else for(var l=0;l<s&&!e.closed;l++)e.next(r[l].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||s.c).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,s=0;s<i&&!(e-r[s].time<n);)s++;return i>t&&(s=Math.max(s,i-t)),s>0&&r.splice(0,s),r},t}(i.xQ),h=function(e,t){this.time=e,this.value=t}},38725:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},70211:function(e,t,n){"use strict";n.d(t,{Yc:function(){return l},xQ:function(){return h}});var r=n(70655),i=n(61514),s=n(10979),o=n(98760),u=n(41016),c=n(18253),a=n(23142),l=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(s.L),h=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[a.b]=function(){return new l(this)},t.prototype.lift=function(e){var t=new d(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new u.N;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)},t.prototype.error=function(e){if(this.closed)throw new u.N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new u.N;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(!this.closed)return e.prototype._trySubscribe.call(this,t);throw new u.N},t.prototype._subscribe=function(e){if(this.closed)throw new u.N;return this.hasError?(e.error(this.thrownError),o.w.EMPTY):this.isStopped?(e.complete(),o.w.EMPTY):(this.observers.push(e),new c.W(this,e))},t.prototype.asObservable=function(){var e=new i.y;return e.source=this,e},t.create=function(e,t){return new d(e,t)},t}(i.y),d=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):o.w.EMPTY},t}(h)},18253:function(e,t,n){"use strict";n.d(t,{W:function(){return i}});var r=n(70655),i=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(n(98760).w)},10979:function(e,t,n){"use strict";n.d(t,{L:function(){return l}});var r=n(70655),i=n(14156),s=n(32174),o=n(98760),u=n(23142),c=n(30150),a=n(71644),l=function(e){function t(n,r,i){var o=e.call(this)||this;switch(o.syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=s.c;break;case 1:if(!n){o.destination=s.c;break}if("object"==typeof n){n instanceof t?(o.syncErrorThrowable=n.syncErrorThrowable,o.destination=n,n.add(o)):(o.syncErrorThrowable=!0,o.destination=new h(o,n));break}default:o.syncErrorThrowable=!0,o.destination=new h(o,n,r,i)}return o}return r.__extends(t,e),t.prototype[u.b]=function(){return this},t.create=function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},t}(o.w),h=function(e){function t(t,n,r,o){var u,c=e.call(this)||this;c._parentSubscriber=t;var a=c;return(0,i.m)(n)?u=n:n&&(u=n.next,r=n.error,o=n.complete,n!==s.c&&(a=Object.create(n),(0,i.m)(a.unsubscribe)&&c.add(a.unsubscribe.bind(a)),a.unsubscribe=c.unsubscribe.bind(c))),c._context=a,c._next=u,c._error=r,c._complete=o,c}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=c.v.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):(0,a.z)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;(0,a.z)(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.v.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){if(this.unsubscribe(),c.v.useDeprecatedSynchronousErrorHandling)throw e;(0,a.z)(e)}},t.prototype.__tryOrSetError=function(e,t,n){if(!c.v.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{t.call(this._context,n)}catch(t){if(c.v.useDeprecatedSynchronousErrorHandling)return e.syncErrorValue=t,e.syncErrorThrown=!0,!0;return(0,a.z)(t),!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l)},98760:function(e,t,n){"use strict";n.d(t,{w:function(){return u}});var r=n(59026),i=n(92009),s=n(14156),o=n(28782),u=function(){var e;function t(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return t.prototype.unsubscribe=function(){if(!this.closed){var e,n=this._parentOrParents,u=this._ctorUnsubscribe,a=this._unsubscribe,l=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(var h=0;h<n.length;++h)n[h].remove(this);if((0,s.m)(a)){u&&(this._unsubscribe=void 0);try{a.call(this)}catch(t){e=t instanceof o.B?c(t.errors):[t]}}if((0,r.k)(l))for(var h=-1,d=l.length;++h<d;){var f=l[h];if((0,i.K)(f))try{f.unsubscribe()}catch(t){e=e||[],t instanceof o.B?e=e.concat(c(t.errors)):e.push(t)}}if(e)throw new o.B(e)}},t.prototype.add=function(e){var n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){var r=n;(n=new t)._subscriptions=[r]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof t){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},t.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},t.EMPTY=((e=new t).closed=!0,e),t}();function c(e){return e.reduce(function(e,t){return e.concat(t instanceof o.B?t.errors:t)},[])}},30150:function(e,t,n){"use strict";n.d(t,{v:function(){return i}});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(value){value&&Error().stack,r=value},get useDeprecatedSynchronousErrorHandling(){return r}}},17604:function(e,t,n){"use strict";n.d(t,{Ds:function(){return c},IY:function(){return u},ft:function(){return a}});var r=n(70655),i=n(10979),s=n(61514),o=n(26730),u=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,n}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(e)},t.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},t}(i.L),c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.destination.complete()},t}(i.L);function a(e,t){var n;if(!t.closed){if(e instanceof s.y)return e.subscribe(t);try{n=(0,o.s)(e)(t)}catch(e){t.error(e)}return n}}},33140:function(e,t,n){"use strict";n.d(t,{N:function(){return l},c:function(){return a}});var r,i=n(70655),s=n(70211),o=n(61514),u=n(98760),c=n(3018),a=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return i.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return!e&&(this._isComplete=!1,(e=this._connection=new u.w).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed&&(this._connection=null,e=u.w.EMPTY)),e},t.prototype.refCount=function(){return(0,c.x)()(this)},t}(o.y),l={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(r=a.prototype)._subscribe},_isComplete:{value:r._isComplete,writable:!0},getSubject:{value:r.getSubject},connect:{value:r.connect},refCount:{value:r.refCount}},h=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return i.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(s.Yc)},75142:function(e,t,n){"use strict";n.d(t,{Ms:function(){return h},aj:function(){return l}});var r=n(70655),i=n(17507),s=n(59026),o=n(62039),u=n(61714),c=n(43375),a={};function l(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=void 0,r=void 0;return(0,i.K)(e[e.length-1])&&(r=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,s.k)(e[0])&&(e=e[0]),(0,c.n)(e,r).lift(new h(n))}var h=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new d(e,this.resultSelector))},e}(),d=function(e){function t(t,n){var r=e.call(this,t)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.__extends(t,e),t.prototype._next=function(e){this.values.push(a),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var n=0;n<t;n++){var r=e[n];this.add((0,u.D)(this,r,void 0,n))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n){var r=this.values,i=r[n],s=this.toRespond?i===a?--this.toRespond:this.toRespond:0;r[n]=t,0===s&&(this.resultSelector?this._tryResultSelector(r):this.destination.next(r.slice()))},t.prototype._tryResultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(o.L)},49795:function(e,t,n){"use strict";n.d(t,{z:function(){return s}});var r=n(18170),i=n(52257);function s(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,i.u)()(r.of.apply(void 0,e))}},51410:function(e,t,n){"use strict";n.d(t,{P:function(){return o}});var r=n(61514),i=n(55760),s=n(5631);function o(e){return new r.y(function(t){var n;try{n=e()}catch(e){t.error(e);return}return(n?(0,i.D)(n):(0,s.c)()).subscribe(t)})}},5631:function(e,t,n){"use strict";n.d(t,{E:function(){return i},c:function(){return s}});var r=n(61514),i=new r.y(function(e){return e.complete()});function s(e){return e?new r.y(function(t){return e.schedule(function(){return t.complete()})}):i}},55760:function(e,t,n){"use strict";n.d(t,{D:function(){return o}});var r=n(61514),i=n(26730),s=n(68503);function o(e,t){return t?(0,s.x)(e,t):e instanceof r.y?e:new r.y((0,i.s)(e))}},43375:function(e,t,n){"use strict";n.d(t,{n:function(){return o}});var r=n(61514),i=n(56900),s=n(53109);function o(e,t){return t?(0,s.r)(e,t):new r.y((0,i.V)(e))}},14370:function(e,t,n){"use strict";n.d(t,{T:function(){return u}});var r=n(61514),i=n(17507),s=n(22556),o=n(43375);function u(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,u=null,c=e[e.length-1];return((0,i.K)(c)?(u=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof c&&(n=e.pop()),null===u&&1===e.length&&e[0]instanceof r.y)?e[0]:(0,s.J)(n)((0,o.n)(e,u))}},18170:function(e,t,n){"use strict";n.d(t,{of:function(){return o}});var r=n(17507),i=n(43375),s=n(53109);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,r.K)(n)?(e.pop(),(0,s.r)(e,n)):(0,i.n)(e)}},38821:function(e,t,n){"use strict";n.d(t,{S3:function(){return c}});var r=n(70655),i=n(59026),s=n(43375),o=n(62039),u=n(61714);function c(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(1===e.length){if(!(0,i.k)(e[0]))return e[0];e=e[0]}return(0,s.n)(e,void 0).lift(new a)}var a=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new l(e))},e}(),l=function(e){function t(t){var n=e.call(this,t)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return r.__extends(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var n=0;n<t&&!this.hasFirst;n++){var r=e[n],i=(0,u.D)(this,r,void 0,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},t.prototype.notifyNext=function(e,t,n){if(!this.hasFirst){this.hasFirst=!0;for(var r=0;r<this.subscriptions.length;r++)if(r!==n){var i=this.subscriptions[r];i.unsubscribe(),this.remove(i)}this.subscriptions=null}this.destination.next(t)},t}(o.L)},64944:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(61514);function i(e,t){return new r.y(t?function(n){return t.schedule(s,0,{error:e,subscriber:n})}:function(t){return t.error(e)})}function s(e){var t=e.error;e.subscriber.error(t)}},69604:function(e,t,n){"use strict";n.d(t,{H:function(){return u}});var r=n(61514),i=n(90964),s=n(35812),o=n(17507);function u(e,t,n){void 0===e&&(e=0);var u=-1;return(0,s.k)(t)?u=1>Number(t)&&1||Number(t):(0,o.K)(t)&&(n=t),(0,o.K)(n)||(n=i.P),new r.y(function(t){var r=(0,s.k)(e)?e:+e-n.now();return n.schedule(c,r,{index:0,period:u,subscriber:t})})}function c(e){var t=e.index,n=e.period,r=e.subscriber;if(r.next(t),!r.closed){if(-1===n)return r.complete();e.index=t+1,this.schedule(e,n)}}},25080:function(e,t,n){"use strict";n.d(t,{$R:function(){return a},mx:function(){return l}});var r=n(70655),i=n(43375),s=n(59026),o=n(10979),u=n(999),c=n(17604);function a(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return"function"==typeof n&&e.pop(),(0,i.n)(e,void 0).lift(new l(n))}var l=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new h(e,this.resultSelector))},e}(),h=function(e){function t(t,n,r){void 0===r&&(r=Object.create(null));var i=e.call(this,t)||this;return i.resultSelector=n,i.iterators=[],i.active=0,i.resultSelector="function"==typeof n?n:void 0,i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.iterators;(0,s.k)(e)?t.push(new f(e)):"function"==typeof e[u.hZ]?t.push(new d(e[u.hZ]())):t.push(new p(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(this.unsubscribe(),0===t){this.destination.complete();return}this.active=t;for(var n=0;n<t;n++){var r=e[n];r.stillUnsubscribed?this.destination.add(r.subscribe()):this.active--}},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,n=this.destination,r=0;r<t;r++){var i=e[r];if("function"==typeof i.hasValue&&!i.hasValue())return}for(var s=!1,o=[],r=0;r<t;r++){var i=e[r],u=i.next();if(i.hasCompleted()&&(s=!0),u.done){n.complete();return}o.push(u.value)}this.resultSelector?this._tryresultSelector(o):n.next(o),s&&n.complete()},t.prototype._tryresultSelector=function(e){var t;try{t=this.resultSelector.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(o.L),d=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return!!(e&&e.done)},e}(),f=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[u.hZ]=function(){return this},e.prototype.next=function(e){var t=this.index++,n=this.array;return t<this.length?{value:n[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),p=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.__extends(t,e),t.prototype[u.hZ]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},t.prototype.subscribe=function(){return(0,c.ft)(this.observable,new c.IY(this))},t}(c.Ds)},52257:function(e,t,n){"use strict";n.d(t,{u:function(){return i}});var r=n(22556);function i(){return(0,r.J)(1)}},66008:function(e,t,n){"use strict";n.d(t,{h:function(){return s}});var r=n(70655),i=n(10979);function s(e,t){return function(n){return n.lift(new o(e,t))}}var o=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.thisArg=r,i.count=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}t&&this.destination.next(e)},t}(i.L)},11120:function(e,t,n){"use strict";n.d(t,{T:function(){return d},v:function(){return c}});var r=n(70655),i=n(10979),s=n(98760),o=n(61514),u=n(70211);function c(e,t,n,r){return function(i){return i.lift(new a(e,t,n,r))}}var a=function(){function e(e,t,n,r){this.keySelector=e,this.elementSelector=t,this.durationSelector=n,this.subjectSelector=r}return e.prototype.call=function(e,t){return t.subscribe(new l(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),l=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.keySelector=n,o.elementSelector=r,o.durationSelector=i,o.subjectSelector=s,o.groups=null,o.attemptedToUnsubscribe=!1,o.count=0,o}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){this.error(e);return}this._group(e,t)},t.prototype._group=function(e,t){var n,r=this.groups;r||(r=this.groups=new Map);var i=r.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(e){this.error(e)}else n=e;if(!i){i=this.subjectSelector?this.subjectSelector():new u.xQ,r.set(t,i);var s=new d(t,i,this);if(this.destination.next(s),this.durationSelector){var o=void 0;try{o=this.durationSelector(new d(t,i))}catch(e){this.error(e);return}this.add(o.subscribe(new h(t,i,this)))}}i.closed||i.next(n)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,n){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(i.L),h=function(e){function t(t,n,r){var i=e.call(this,n)||this;return i.key=t,i.group=n,i.parent=r,i}return r.__extends(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(i.L),d=function(e){function t(t,n,r){var i=e.call(this)||this;return i.key=t,i.groupSubject=n,i.refCountSubscription=r,i}return r.__extends(t,e),t.prototype._subscribe=function(e){var t=new s.w,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&t.add(new f(n)),t.add(r.subscribe(e)),t},t}(o.y),f=function(e){function t(t){var n=e.call(this)||this;return n.parent=t,t.count++,n}return r.__extends(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(s.w)},55709:function(e,t,n){"use strict";n.d(t,{U:function(){return s}});var r=n(70655),i=n(10979);function s(e,t){return function(n){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new o(e,t))}}var o=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.project,this.thisArg))},e}(),u=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.project=n,i.count=0,i.thisArg=r||i,i}return r.__extends(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(i.L)},22556:function(e,t,n){"use strict";n.d(t,{J:function(){return s}});var r=n(47746),i=n(43608);function s(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),(0,r.zg)(i.y,e)}},47746:function(e,t,n){"use strict";n.d(t,{VS:function(){return l},zg:function(){return u}});var r=n(70655),i=n(55709),s=n(55760),o=n(17604);function u(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?function(r){return r.pipe(u(function(n,r){return(0,s.D)(e(n,r)).pipe((0,i.U)(function(e,i){return t(n,e,r,i)}))},n))}:("number"==typeof t&&(n=t),function(t){return t.lift(new c(e,n))})}var c=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new a(e,this.project,this.concurrent))},e}(),a=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=e.call(this,t)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.active++,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new o.IY(this),n=this.destination;n.add(t);var r=(0,o.ft)(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(o.Ds),l=u},89276:function(e,t,n){"use strict";n.d(t,{QV:function(){return o},ht:function(){return c}});var r=n(70655),i=n(10979),s=n(42632);function o(e,t){return void 0===t&&(t=0),function(n){return n.lift(new u(e,t))}}var u=function(){function e(e,t){void 0===t&&(t=0),this.scheduler
19=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new c(e,this.scheduler,this.delay))},e}(),c=function(e){function t(t,n,r){void 0===r&&(r=0);var i=e.call(this,t)||this;return i.scheduler=n,i.delay=r,i}return r.__extends(t,e),t.dispatch=function(e){var t=e.notification,n=e.destination;t.observe(n),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new a(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(s.P.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(s.P.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(s.P.createComplete()),this.unsubscribe()},t}(i.L),a=function(e,t){this.notification=e,this.destination=t}},3018:function(e,t,n){"use strict";n.d(t,{x:function(){return s}});var r=n(70655),i=n(10979);function s(){return function(e){return e.lift(new o(e))}}var o=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new u(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(!e){this.connection=null;return}this.connectable=null;var t=e._refCount;if(t<=0||(e._refCount=t-1,t>1)){this.connection=null;return}var n=this.connection,r=e._connection;this.connection=null,r&&(!n||r===n)&&r.unsubscribe()},t}(i.L)},53109:function(e,t,n){"use strict";n.d(t,{r:function(){return s}});var r=n(61514),i=n(98760);function s(e,t){return new r.y(function(n){var r=new i.w,s=0;return r.add(t.schedule(function(){if(s===e.length){n.complete();return}n.next(e[s++]),n.closed||r.add(this.schedule())})),r})}},68503:function(e,t,n){"use strict";n.d(t,{x:function(){return l}});var r=n(61514),i=n(98760),s=n(15050),o=n(53109),u=n(999),c=n(70336),a=n(39217);function l(e,t){if(null!=e){if(e&&"function"==typeof e[s.L])return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){var i=e[s.L]();r.add(i.subscribe({next:function(e){r.add(t.schedule(function(){return n.next(e)}))},error:function(e){r.add(t.schedule(function(){return n.error(e)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r});if((0,c.t)(e))return new r.y(function(n){var r=new i.w;return r.add(t.schedule(function(){return e.then(function(e){r.add(t.schedule(function(){n.next(e),r.add(t.schedule(function(){return n.complete()}))}))},function(e){r.add(t.schedule(function(){return n.error(e)}))})})),r});if((0,a.z)(e))return(0,o.r)(e,t);if(e&&"function"==typeof e[u.hZ]||"string"==typeof e)return function(e,t){if(!e)throw Error("Iterable cannot be null");return new r.y(function(n){var r,s=new i.w;return s.add(function(){r&&"function"==typeof r.return&&r.return()}),s.add(t.schedule(function(){r=e[u.hZ](),s.add(t.schedule(function(){if(!n.closed){try{var e,t,i=r.next();e=i.value,t=i.done}catch(e){n.error(e);return}t?n.complete():(n.next(e),this.schedule())}}))})),s})}(e,t)}throw TypeError((null!==e&&typeof e||e)+" is not observable")}},48:function(e,t,n){"use strict";n.d(t,{o:function(){return i}});var r=n(70655),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(e){n=!0,r=!!e&&e||Error(e)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);
19this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n(98760).w))},78399:function(e,t,n){"use strict";n.d(t,{v:function(){return s}});var r=n(70655),i=n(38725),s=function(e){function t(n,r){void 0===r&&(r=i.b.now);var s=e.call(this,n,function(){return t.delegate&&t.delegate!==s?t.delegate.now():r()})||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return r.__extends(t,e),t.prototype.schedule=function(n,r,i){return(void 0===r&&(r=0),t.delegate&&t.delegate!==this)?t.delegate.schedule(n,r,i):e.prototype.schedule.call(this,n,r,i)},t.prototype.flush=function(e){var t,n=this.actions;if(this.active){n.push(e);return}this.active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,t){for(;e=n.shift();)e.unsubscribe();throw t}},t}(i.b)},81789:function(e,t,n){"use strict";n.d(t,{e:function(){return h},E:function(){return l}});var r=n(70655),i=1,s=Promise.resolve(),o={};function u(e){return e in o&&(delete o[e],!0)}var c={setImmediate:function(e){var t=i++;return o[t]=!0,s.then(function(){return u(t)&&e()}),t},clearImmediate:function(e){u(e)}},a=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0)?e.prototype.requestAsyncId.call(this,t,n,r):(t.actions.push(this),t.scheduled||(t.scheduled=c.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,n,r);0===t.actions.length&&(c.clearImmediate(n),t.scheduled=void 0)},t}(n(48).o),l=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,n=this.actions,r=-1,i=n.length;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while(++r<i&&(e=n.shift()));if(this.active=!1,t){for(;++r<i&&(e=n.shift());)e.unsubscribe();throw t}},t}(n(78399).v))(a),h=l},90964:function(e,t,n){"use strict";n.d(t,{P:function(){return s},z:function(){return i}});var r=n(48),i=new(n(78399)).v(r.o),s=i},76084:function(e,t,n){"use strict";n.d(t,{c:function(){return o},N:function(){return s}});var r=n(70655),i=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return(void 0===n&&(n=0),n>0)?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(n(48).o),s=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(n(78399).v))(i),o=s},999:function(e,t,n){"use strict";n.d(t,{hZ:function(){return r}});var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},15050:function(e,t,n){"use strict";n.d(t,{L:function(){return r}});var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},23142:function(e,t,n){"use strict";n.d(t,{b:function(){return r}});var r="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},76565:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return e.prototype=Object.create(Error.prototype),e}()},26929:function(e,t,n){"use strict";n.d(t,{K:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return e.prototype=Object.create(Error.prototype),e}()},41016:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},81462:function(e,t,n){"use strict";n.d(t,{W:function(){return r}});var r=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},28782:function(e,t,n){"use strict";n.d(t,{B:function(){return r}});var r=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},93642:function(e,t,n){"use strict";n.d(t,{_:function(){return i}});var r=n(10979);function i(e){for(;e;){var t=e,n=t.closed,i=t.destination,s=t.isStopped;
19if(n||s)return!1;e=i&&i instanceof r.L?i:null}return!0}},71644:function(e,t,n){"use strict";function r(e){setTimeout(function(){throw e},0)}n.d(t,{z:function(){return r}})},43608:function(e,t,n){"use strict";function r(e){return e}n.d(t,{y:function(){return r}})},59026:function(e,t,n){"use strict";n.d(t,{k:function(){return r}});var r=Array.isArray||function(e){return e&&"number"==typeof e.length}},39217:function(e,t,n){"use strict";n.d(t,{z:function(){return r}});var r=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},14156:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.d(t,{m:function(){return r}})},35812:function(e,t,n){"use strict";n.d(t,{k:function(){return i}});var r=n(59026);function i(e){return!(0,r.k)(e)&&e-parseFloat(e)+1>=0}},92009:function(e,t,n){"use strict";function r(e){return null!==e&&"object"==typeof e}n.d(t,{K:function(){return r}})},70336:function(e,t,n){"use strict";function r(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(t,{t:function(){return r}})},17507:function(e,t,n){"use strict";function r(e){return e&&"function"==typeof e.schedule}n.d(t,{K:function(){return r}})},33306:function(e,t,n){"use strict";function r(){}n.d(t,{Z:function(){return r}})},18463:function(e,t,n){"use strict";function r(e,t){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=t,n}n.d(t,{f:function(){return r}})},62561:function(e,t,n){"use strict";n.d(t,{U:function(){return s},z:function(){return i}});var r=n(43608);function i(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return s(e)}function s(e){return 0===e.length?r.y:1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}}},26730:function(e,t,n){"use strict";n.d(t,{s:function(){return l}});var r=n(56900),i=n(71644),s=n(999),o=n(15050),u=n(39217),c=n(70336),a=n(92009),l=function(e){if(e&&"function"==typeof e[o.L])return function(t){var n=e[o.L]();if("function"==typeof n.subscribe)return n.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")};if((0,u.z)(e))return(0,r.V)(e);if((0,c.t)(e))return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,i.z),t};if(e&&"function"==typeof e[s.hZ])return function(t){for(var n=e[s.hZ]();;){var r=void 0;try{r=n.next()}catch(e){return t.error(e),t}if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t};throw TypeError("You provided "+((0,a.K)(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},56900:function(e,t,n){"use strict";n.d(t,{V:function(){return r}});var r=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}}},61714:function(e,t,n){"use strict";n.d(t,{D:function(){return u}});var r=n(70655),i=function(e){function t(t,n,r){var i=e.call(this)||this;return i.parent=t,i.outerValue=n,i.outerIndex=r,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(n(10979).L),s=n(26730),o=n(61514);function u(e,t,n,r,u){return(void 0===u&&(u=new i(e,n,r)),u.closed)?void 0:t instanceof o.y?t.subscribe(u):(0,s.s)(t)(u)}},16473:function(e,t,n){"use strict";n.r(t),n.d(t,{audit:function(){return s},auditTime:function(){return l},buffer:function(){return h},bufferCount:function(){return b},bufferTime:function(){return _},bufferToggle:function(){return A},bufferWhen:function(){return T},catchError:function(){return P},combineAll:function(){return V},combineLatest:function(){return W},concat:function(){return q},concatAll:function(){return $.u},concatMap:function(){return Z},concatMapTo:function(){return Q},count:function(){return G},debounce:function(){return X},debounceTime:function(){return en},defaultIfEmpty:function(){return eo},delay:function(){return eh},delayWhen:function(){return ey},dematerialize:function(){return ew},distinct:function(){return eE},distinctUntilChanged:function(){return eM},distinctUntilKeyChanged:function(){return eA},elementAt:function(){return eH},endWith:function(){return eU},every:function(){return eq},exhaust:function(){return eZ},exhaustMap:function(){return function e(t,n){return n?function(r){return r.pipe(e(function(e,r){return(0,H.D)(t(e,r)).pipe((0,eY.U)(function(t,i){return n(e,t,r,i)}))}))}:function(e){return e.lift(new eK(t))}}},expand:function(){return e0},filter:function(){return ej.h},finalize:function(){return e3},find:function(){return e6},findIndex:function(){return e7},first:function(){return tt},flatMap:function(){return J.VS},groupBy:function(){return tn.v},ignoreElements:function(){return tr},isEmpty:function(){return to},last:function(){return td},map:function(){return eY.U},mapTo:function(){return tf},materialize:function(){return ty},max:function(){return tE},merge:function(){return tk},mergeAll:function(){return tM.J},mergeMap:function(){return J.zg},mergeMapTo:function(){return tI},mergeScan:function(){return tN},min:function(){return tj},multicast:function(){return tO},observeOn:function(){return tP.QV},onErrorResumeNext:function(){return tD},pairwise:function(){return tV},partition:function(){return tU},pluck:function(){return tq},publish:function(){return tJ},publishBehavior:function(){return tQ},publishLast:function(){return tY},publishReplay:function(){return tX},race:function(){return t1},reduce:function(){return tx},refCount:function(){return ni.x},repeat:function(){return t2},repeatWhen:function(){return t4},retry:function(){return t8},retryWhen:function(){return nt},sample:function(){return ns},sampleTime:function(){return nc},scan:function(){return tv},sequenceEqual:function(){return nd},share:function(){return ng},shareReplay:function(){return nm},single:function(){return nv},skip:function(){return nS},skipLast:function(){return nC},skipUntil:function(){return nI},skipWhile:function(){return nR},startWith:function(){return nO},subscribeOn:function(){return nB},switchAll:function(){return nW},switchMap:function(){return nV},switchMapTo:function(){return nU},take:function(){return eF},takeLast:function(){return ta},takeUntil:function(){return nq},takeWhile:function(){return nZ},tap:function(){return nX},throttle:function(){return n3},throttleTime:function(){return n6},throwIfEmpty:function(){return eO},timeInterval:function(){return rt},timeout:function(){return rc},timeoutWith:function(){return ri},timestamp:function(){return ra},toArray:function(){return rd},window:function(){return rf},windowCount:function(){return ry},windowTime:function(){return rv},windowToggle:function(){return rk},windowWhen:function(){return rN},withLatestFrom:function(){return rj},zip:function(){return rP},zipAll:function(){return rD}});var r=n(70655),i=n(17604);function s(e){return function(t){return t.lift(new o(e))}}var o=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=void 0;try{t=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=(0,i.ft)(t,new i.IY(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,n=this.throttled;
19n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(i.Ds),c=n(90964),a=n(69604);function l(e,t){return void 0===t&&(t=c.P),s(function(){return(0,a.H)(e,t)})}function h(e){return function(t){return t.lift(new d(e))}}var d=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new f(e,this.closingNotifier))},e}(),f=function(e){function t(t,n){var r=e.call(this,t)||this;return r.buffer=[],r.add((0,i.ft)(n,new i.IY(r))),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},t}(i.Ds),p=n(10979);function b(e,t){return void 0===t&&(t=null),function(n){return n.lift(new y(e,t))}}var y=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,t&&e!==t?this.subscriberClass=m:this.subscriberClass=g}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),g=function(e){function t(t,n){var r=e.call(this,t)||this;return r.bufferSize=n,r.buffer=[],r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(p.L),m=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var s=r.length;s--;){var o=r[s];o.push(e),o.length===t&&(r.splice(s,1),this.destination.next(o))}},t.prototype._complete=function(){for(var t=this.buffers,n=this.destination;t.length>0;){var r=t.shift();r.length>0&&n.next(r)}e.prototype._complete.call(this)},t}(p.L),v=n(17507);function _(e){var t=arguments.length,n=c.P;(0,v.K)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],t--);var r=null;t>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return t>=3&&(i=arguments[2]),function(t){return t.lift(new w(e,r,i,n))}}var w=function(){function e(e,t,n,r){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new x(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),S=function(){this.buffer=[]},x=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;o.bufferTimeSpan=n,o.bufferCreationInterval=r,o.maxBufferSize=i,o.scheduler=s,o.contexts=[];var u=o.openContext();return o.timespanOnly=null==r||r<0,o.timespanOnly?o.add(u.closeAction=s.schedule(E,n,{subscriber:o,context:u,bufferTimeSpan:n})):(o.add(u.closeAction=s.schedule(k,n,{subscriber:o,context:u})),o.add(s.schedule(C,r,{bufferTimeSpan:n,bufferCreationInterval:r,subscriber:o,scheduler:s}))),o}return r.__extends(t,e),t.prototype._next=function(e){for(var t,n=this.contexts,r=n.length,i=0;i<r;i++){var s=n[i],o=s.buffer;o.push(e),o.length==this.maxBufferSize&&(t=s)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,n=this.destination;t.length>0;){var r=t.shift();n.next(r.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(E,n,r))}},t.prototype.openContext=function(){var e=new S;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(p.L);function E(e){var t=e.subscriber,n=e.context;n&&t.closeContext(n),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function C(e){var t=e.bufferCreationInterval,n=e.bufferTimeSpan,r=e.subscriber,i=e.scheduler,s=r.openContext();r.closed||(r.add(s.closeAction=i.schedule(k,n,{subscriber:r,context:s})),this.schedule(e,t))}function k(e){var t=e.subscriber,n=e.context;t.closeContext(n)}var M=n(98760),I=n(61714),N=n(62039);function A(e,t){return function(n){return n.lift(new R(e,t))}}var R=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new j(e,this.openings,this.closingSelector))},e}(),j=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.closingSelector=r,i.contexts=[],i.add((0,I.D)(i,n)),i}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.contexts,n=t.length,r=0;r<n;r++)t[r].buffer.push(e)},t.prototype._error=function(t){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var n=t.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var n=e.buffer,r=e.subscription;this.destination.next(n),t.splice(t.indexOf(e),1),this.remove(r),r.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,n=new M.w,r={buffer:[],subscription:n};t.push(r);var i=(0,I.D)(this,e,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},t}(N.L);function T(e){return function(t){return t.lift(new O(e))}}var O=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new L(e,this.closingSelector))},e}(),L=function(e){function t(t,n){var r=e.call(this,t)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.__extends(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},t.prototype.notifyNext=function(){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e,t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(e){return this.error(e)}t=new M.w,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add((0,i.ft)(e,new i.IY(this))),this.subscribing=!1},t}(i.Ds);function P(e){return function(t){var n=new D(e),r=t.lift(n);return n.caught=r}}var D=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new B(e,this.selector,this.caught))},e}(),B=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.selector=n,i.caught=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=void 0;try{n=this.selector(t,this.caught)}catch(t){e.prototype.error.call(this,t);return}this._unsubscribeAndRecycle();var r=new i.IY(this);this.add(r);var s=(0,i.ft)(n,r);s!==r&&this.add(s)}},t}(i.Ds),F=n(75142);function V(e){return function(t){return t.lift(new F.Ms(e))}}var z=n(59026),H=n(55760);function W(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&(0,z.k)(e[0])&&(e=e[0].slice()),function(t){return t.lift.call((0,H.D)([t].concat(e)),new F.Ms(n))}}var U=n(49795);function q(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(U.z.apply(void 0,[t].concat(e)))}}var $=n(52257),J=n(47746);function Z(e,t){return(0,J.zg)(e,t,1)}function Q(e,t){return Z(function(){return e},t)}function G(e){return function(t){return t.lift(new Y(e,t))}}var Y=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new K(e,this.predicate,this.source))},e}(),K=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.count=0,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){this.destination.error(e);return}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(p.L);function X(e){return function(t){return t.lift(new ee(e))}}var ee=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new et(e,this.durationSelector))},e}(),et=function(e){function t(t,n){var r=e.call(this,t)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=(0,i.ft)(t,new i.IY(this)))&&!n.closed&&this.add(this.durationSubscription=n)},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,
19n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(i.Ds);function en(e,t){return void 0===t&&(t=c.P),function(n){return n.lift(new er(e,t))}}var er=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new ei(e,this.dueTime,this.scheduler))},e}(),ei=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.dueTime=n,i.scheduler=r,i.debouncedSubscription=null,i.lastValue=null,i.hasValue=!1,i}return r.__extends(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(es,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(p.L);function es(e){e.debouncedNext()}function eo(e){return void 0===e&&(e=null),function(t){return t.lift(new eu(e))}}var eu=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new ec(e,this.defaultValue))},e}(),ec=function(e){function t(t,n){var r=e.call(this,t)||this;return r.defaultValue=n,r.isEmpty=!0,r}return r.__extends(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(p.L);function ea(e){return e instanceof Date&&!isNaN(+e)}var el=n(42632);function eh(e,t){void 0===t&&(t=c.P);var n=ea(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new ed(n,t))}}var ed=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new ef(e,this.delay,this.scheduler))},e}(),ef=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.__extends(t,e),t.dispatch=function(e){for(var t=e.source,n=t.queue,r=e.scheduler,i=e.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var s=Math.max(0,n[0].time-r.now());this.schedule(e,s)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,n=new ep(t.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(el.P.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.scheduleNotification(el.P.createComplete()),this.unsubscribe()},t}(p.L),ep=function(e,t){this.time=e,this.notification=t},eb=n(61514);function ey(e,t){return t?function(n){return new ev(n,t).lift(new eg(e))}:function(t){return t.lift(new eg(e))}}var eg=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new em(e,this.delayDurationSelector))},e}(),em=function(e){function t(t,n){var r=e.call(this,t)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.destination.next(e),this.removeSubscription(i),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){var t=this.index++;try{var n=this.delayDurationSelector(e,t);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e);return -1!==t&&this.delayNotifierSubscriptions.splice(t,1),e.outerValue},t.prototype.tryDelay=function(e,t){var n=(0,I.D)(this,e,t);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(N.L),ev=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subscriptionDelay=n,r}return r.__extends(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new e_(e,this.source))},t}(eb.y),e_=function(e){function t(t,n){var r=e.call(this)||this;return r.parent=t,r.source=n,r.sourceSubscribed=!1,r}return r.__extends(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(p.L);function ew(){return function(e){return e.lift(new eS)}}var eS=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ex(e))},e}(),ex=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(p.L);function eE(e,t){return function(n){return n.lift(new eC(e,t))}}var eC=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new ek(e,this.keySelector,this.flushes))},e}(),ek=function(e){function t(t,n,r){var s=e.call(this,t)||this;return s.keySelector=n,s.values=new Set,r&&s.add((0,i.ft)(r,new i.IY(s))),s}return r.__extends(t,e),t.prototype.notifyNext=function(){this.values.clear()},t.prototype.notifyError=function(e){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
19,t.prototype._useKeySelector=function(e){var t,n=this.destination;try{t=this.keySelector(e)}catch(e){n.error(e);return}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var n=this.values;n.has(e)||(n.add(e),this.destination.next(t))},t}(i.Ds);function eM(e,t){return function(n){return n.lift(new eI(e,t))}}var eI=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new eN(e,this.compare,this.keySelector))},e}(),eN=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.__extends(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){try{var t,n=this.keySelector;t=n?n(e):e}catch(e){return this.destination.error(e)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,t)}catch(e){return this.destination.error(e)}else this.hasKey=!0;r||(this.key=t,this.destination.next(e))},t}(p.L);function eA(e,t){return eM(function(n,r){return t?t(n[e],r[e]):n[e]===r[e]})}var eR=n(76565),ej=n(66008),eT=n(26929);function eO(e){return void 0===e&&(e=eD),function(t){return t.lift(new eL(e))}}var eL=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,t){return t.subscribe(new eP(e,this.errorFactory))},e}(),eP=function(e){function t(t,n){var r=e.call(this,t)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.__extends(t,e),t.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},t.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(t){e=t}this.destination.error(e)},t}(p.L);function eD(){return new eT.K}var eB=n(5631);function eF(e){return function(t){return 0===e?(0,eB.c)():t.lift(new eV(e))}}var eV=function(){function e(e){if(this.total=e,this.total<0)throw new eR.W}return e.prototype.call=function(e,t){return t.subscribe(new ez(e,this.total))},e}(),ez=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.total,n=++this.count;n<=t&&(this.destination.next(e),n===t&&(this.destination.complete(),this.unsubscribe()))},t}(p.L);function eH(e,t){if(e<0)throw new eR.W;var n=arguments.length>=2;return function(r){return r.pipe((0,ej.h)(function(t,n){return n===e}),eF(1),n?eo(t):eO(function(){return new eR.W}))}}var eW=n(18170);function eU(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return(0,U.z)(t,eW.of.apply(void 0,e))}}function eq(e,t){return function(n){return n.lift(new e$(e,t,n))}}var e$=function(){function e(e,t,n){this.predicate=e,this.thisArg=t,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new eJ(e,this.predicate,this.thisArg,this.source))},e}(),eJ=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.predicate=n,s.thisArg=r,s.source=i,s.index=0,s.thisArg=r||s,s}return r.__extends(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){this.destination.error(e);return}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(p.L);function eZ(){return function(e){return e.lift(new eQ)}}var eQ=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new eG(e))},e}(),eG=function(e){function t(t){var n=e.call(this,t)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return r.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add((0,i.ft)(e,new i.IY(this))))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(i.Ds),eY=n(55709),eK=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new eX(e,this.project))},e}(),eX=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.hasSubscription=!1,r.hasCompleted=!1,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this.hasSubscription=!0,this._innerSub(t)},t.prototype._innerSub=function(e){var t=new i.IY(this),n=this.destination;n.add(t);var r=(0,i.ft)(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this.destination.next(e)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(i.Ds);function e0(e,t,n){return void 0===t&&(t=Number.POSITIVE_INFINITY),t=1>(t||0)?Number.POSITIVE_INFINITY:t,function(r){return r.lift(new e1(e,t,n))}}var e1=function(){function e(e,t,n){this.project=e,this.concurrent=t,this.scheduler
19=n}return e.prototype.call=function(e,t){return t.subscribe(new e2(e,this.project,this.concurrent,this.scheduler))},e}(),e2=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.project=n,s.concurrent=r,s.scheduler=i,s.index=0,s.active=0,s.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(s.buffer=[]),s}return r.__extends(t,e),t.dispatch=function(e){var t=e.subscriber,n=e.result,r=e.value,i=e.index;t.subscribeToProjection(n,r,i)},t.prototype._next=function(e){var n=this.destination;if(n.closed){this._complete();return}var r=this.index++;if(this.active<this.concurrent){n.next(e);try{var i=(0,this.project)(e,r);this.scheduler?this.destination.add(this.scheduler.schedule(t.dispatch,0,{subscriber:this,result:i,value:e,index:r})):this.subscribeToProjection(i,e,r)}catch(e){n.error(e)}}else this.buffer.push(e)},t.prototype.subscribeToProjection=function(e,t,n){this.active++,this.destination.add((0,i.ft)(e,new i.IY(this)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e){this._next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(i.Ds);function e3(e){return function(t){return t.lift(new e5(e))}}var e5=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new e4(e,this.callback))},e}(),e4=function(e){function t(t,n){var r=e.call(this,t)||this;return r.add(new M.w(n)),r}return r.__extends(t,e),t}(p.L);function e6(e,t){if("function"!=typeof e)throw TypeError("predicate is not a function");return function(n){return n.lift(new e9(e,n,!1,t))}}var e9=function(){function e(e,t,n,r){this.predicate=e,this.source=t,this.yieldIndex=n,this.thisArg=r}return e.prototype.call=function(e,t){return t.subscribe(new e8(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),e8=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.predicate=n,o.source=r,o.yieldIndex=i,o.thisArg=s,o.index=0,o}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete(),this.unsubscribe()},t.prototype._next=function(e){var t=this.predicate,n=this.thisArg,r=this.index++;try{t.call(n||this,e,r,this.source)&&this.notifyComplete(this.yieldIndex?r:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(p.L);function e7(e,t){return function(n){return n.lift(new e9(e,n,!0,t))}}var te=n(43608);function tt(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?(0,ej.h)(function(t,n){return e(t,n,r)}):te.y,eF(1),n?eo(t):eO(function(){return new eT.K}))}}var tn=n(11120);function tr(){return function(e){return e.lift(new ti)}}var ti=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new ts(e))},e}(),ts=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype._next=function(e){},t}(p.L);function to(){return function(e){return e.lift(new tu)}}var tu=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new tc(e))},e}(),tc=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(p.L);function ta(e){return function(t){return 0===e?(0,eB.c)():t.lift(new tl(e))}}var tl=function(){function e(e){if(this.total=e,this.total<0)throw new eR.W}return e.prototype.call=function(e,t){return t.subscribe(new th(e,this.total))},e}(),th=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.ring=[],r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.ring,n=this.total,r=this.count++;t.length<n?t.push(e):t[r%n]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var s=t++%n;e.next(r[s])}e.complete()},t}(p.L);function td(e,t){var n=arguments.length>=2;return function(r){return r.pipe(e?(0,ej.h)(function(t,n){return e(t,n,r)}):te.y,ta(1),n?eo(t):eO(function(){return new eT.K}))}}function tf(e){return function(t){return t.lift(new tp(e))}}var tp=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new tb(e,this.value))},e}(),tb=function(e){function t(t,n){var r=e.call(this,t)||this;return r.value=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(p.L);function ty(){return function(e){return e.lift(new tg)}}var tg=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new tm(e))},e}(),tm=function(e){function t(t){return e.call(this,t)||this}return r.__extends(t,e),t.prototype._next=function(e){this.destination.next(el.P.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(el.P.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(el.P.createComplete()),e.complete()},t}(p.L);function tv(e,t){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new t_(e,t,n))}}var t_=function(){function e(e,t,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=t,this.hasSeed=n}return e.prototype.call=function(e,t){return t.subscribe(new tw(e,this.accumulator,this.seed,this.hasSeed))},e}(),tw=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.accumulator=n,s._seed=r,s.hasSeed=i,s.index=0,s}return r.__extends(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(p.L),tS=n(62561);function tx(e,t){return arguments.length>=2?function(n){return(0,tS.z)(tv(e,t),ta(1),eo(t))(n)}:function(t){return(0,tS.z)(tv(function(t,n,r){return e(t,n,r+1)}),ta(1))(t)}}function tE(e){return tx("function"==typeof e?function(t,n){return e(t,n)>0?t:n}:function(e,t){return e>t?e:t})}var tC=n(14370);function tk(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(tC.T.apply(void 0,[t].concat(e)))}}var tM=n(22556);function tI(e,t,n){return(void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof t)?(0,J.zg)(function(){return e},t,n):("number"==typeof t&&(n=t),(0,J.zg)(function(){return e},n))}function tN(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new tA(e,t,n))}}var tA=function(){function e(e,t,n){this.accumulator=e,this.seed=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new tR(e,this.accumulator,this.seed,this.concurrent))},e}(),tR=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.accumulator=n,s.acc=r,s.concurrent=i,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return r.__extends(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,n=this.destination,r=void 0;try{r=(0,this.accumulator)(this.acc,e,t)}catch(e){return n.error(e)}this.active++,this._innerSub(r)}else this.buffer.push(e)},t.prototype._innerSub=function(e){var t=new i.IY(this),n=this.destination;n.add(t);var r=(0,i.ft)(e,t);r!==t&&n.add(r)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete()),this.unsubscribe()},t.prototype.notifyNext=function(e){var t=this.destination;this.acc=e,this.hasValue=!0,t.next(e)},t.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(i.Ds);function tj(e){return tx("function"==typeof e?function(t,n){return 0>e(t,n)?t:n}:function(e,t){return e<t?e:t})}
19var tT=n(33140);function tO(e,t){return function(n){if(r="function"==typeof e?e:function(){return e},"function"==typeof t)return n.lift(new tL(r,t));var r,i=Object.create(n,tT.N);return i.source=n,i.subjectFactory=r,i}}var tL=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(e);return i.add(t.subscribe(r)),i},e}(),tP=n(89276);function tD(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 1===e.length&&(0,z.k)(e[0])&&(e=e[0]),function(t){return t.lift(new tB(e))}}var tB=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new tF(e,this.nextSources))},e}(),tF=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.nextSources=n,r}return r.__extends(t,e),t.prototype.notifyError=function(){this.subscribeToNextSource()},t.prototype.notifyComplete=function(){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},t.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var t=new i.IY(this),n=this.destination;n.add(t);var r=(0,i.ft)(e,t);r!==t&&n.add(r)}else this.destination.complete()},t}(i.Ds);function tV(){return function(e){return e.lift(new tz)}}var tz=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new tH(e))},e}(),tH=function(e){function t(t){var n=e.call(this,t)||this;return n.hasPrev=!1,n}return r.__extends(t,e),t.prototype._next=function(e){var t;this.hasPrev?t=[this.prev,e]:this.hasPrev=!0,this.prev=e,t&&this.destination.next(t)},t}(p.L),tW=n(18463);function tU(e,t){return function(n){return[(0,ej.h)(e,t)(n),(0,ej.h)((0,tW.f)(e,t))(n)]}}function tq(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.length;if(0===n)throw Error("list of properties cannot be empty.");return function(t){return(0,eY.U)(function(t){for(var r=t,i=0;i<n;i++){var s=null!=r?r[e[i]]:void 0;if(void 0===s)return;r=s}return r})(t)}}var t$=n(70211);function tJ(e){return e?tO(function(){return new t$.xQ},e):tO(new t$.xQ)}var tZ=n(89233);function tQ(e){return function(t){return tO(new tZ.X(e))(t)}}var tG=n(60364);function tY(){return function(e){return tO(new tG.c)(e)}}var tK=n(12630);function tX(e,t,n,r){n&&"function"!=typeof n&&(r=n);var i="function"==typeof n?n:void 0,s=new tK.t(e,t,r);return function(e){return tO(function(){return s},i)(e)}}var t0=n(38821);function t1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return 1===e.length&&(0,z.k)(e[0])&&(e=e[0]),t.lift.call(t0.S3.apply(void 0,[t].concat(e)))}}function t2(e){return void 0===e&&(e=-1),function(t){return 0===e?(0,eB.c)():e<0?t.lift(new t3(-1,t)):t.lift(new t3(e-1,t))}}var t3=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new t5(e,this.count,this.source))},e}(),t5=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.__extends(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(p.L);function t4(e){return function(t){return t.lift(new t6(e))}}var t6=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new t9(e,this.notifier,t))},e}(),t9=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.__extends(t,e),t.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype._unsubscribeAndRecycle=function(){var t=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=t,this},t.prototype.subscribeToRetries=function(){this.notifications=new t$.xQ;try{var t;t=(0,this.notifier)(this.notifications)}catch(t){return e.prototype.complete.call(this)}this.retries=t,this.retriesSubscription=(0,i.ft)(t,new i.IY(this))},t}(i.Ds);function t8(e){return void 0===e&&(e=-1),function(t){return t.lift(new t7(e,t))}}var t7=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new ne(e,this.count,this.source))},e}(),ne=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.count=n,i.source=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return e.prototype.error.call(this,t);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},t}(p.L);function nt(e){return function(t){return t.lift(new nn(e,t))}}var nn=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new nr(e,this.notifier,this.source))},e}(),nr=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.notifier=n,i.source=r,i}return r.__extends(t,e),t.prototype.error=function(t){if(!this.isStopped){var n=this.errors,r=this.retries,s=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new t$.xQ;try{r=(0,this.notifier)(n)}catch(t){return e.prototype.error.call(this,t)}s=(0,i.ft)(r,new i.IY(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=s,n.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),t&&(t.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},t.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},t}(i.Ds),ni=n(3018);function ns(e){return function(t){return t.lift(new no(e))}}var no=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new nu(e),r=t.subscribe(n);return r.add((0,i.ft)(this.notifier,new i.IY(n))),r},e}(),nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hasValue=!1,t}return r.__extends(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(i.Ds);function nc(e,t){return void 0===t&&(t=c.P),function(n){return n.lift(new na(e,t))}}
19var na=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new nl(e,this.period,this.scheduler))},e}(),nl=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(nh,n,{subscriber:i,period:n})),i}return r.__extends(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(p.L);function nh(e){var t=e.subscriber,n=e.period;t.notifyNext(),this.schedule(e,n)}function nd(e,t){return function(n){return n.lift(new nf(e,t))}}var nf=function(){function e(e,t){this.compareTo=e,this.comparator=t}return e.prototype.call=function(e,t){return t.subscribe(new np(e,this.compareTo,this.comparator))},e}(),np=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new nb(t,i))),i}return r.__extends(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,n=this.comparator;e.length>0&&t.length>0;){var r=e.shift(),i=t.shift(),s=!1;try{s=n?n(r,i):r===i}catch(e){this.destination.error(e)}s||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t}(p.L),nb=function(e){function t(t,n){var r=e.call(this,t)||this;return r.parent=n,r}return r.__extends(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},t.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},t}(p.L);function ny(){return new t$.xQ}function ng(){return function(e){return(0,ni.x)()(tO(ny)(e))}}function nm(e,t,n){var r;return r=e&&"object"==typeof e?e:{bufferSize:e,windowTime:t,refCount:!1,scheduler:n},function(e){var t,n,i,s,o,u,c,a,l,h,d;return e.lift((s=void 0===(i=r.bufferSize)?Number.POSITIVE_INFINITY:i,u=void 0===(o=r.windowTime)?Number.POSITIVE_INFINITY:o,c=r.refCount,a=r.
19scheduler,l=0,h=!1,d=!1,function(e){var r;l++,!t||h?(h=!1,r=(t=new tK.t(s,u,a)).subscribe(this),n=e.subscribe({next:function(e){t.next(e)},error:function(e){h=!0,t.error(e)},complete:function(){d=!0,n=void 0,t.complete()}}),d&&(n=void 0)):r=t.subscribe(this),this.add(function(){l--,r.unsubscribe(),r=void 0,n&&!d&&c&&0===l&&(n.unsubscribe(),n=void 0,t=void 0)})}))}}function nv(e){return function(t){return t.lift(new n_(e,t))}}var n_=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new nw(e,this.predicate,this.source))},e}(),nw=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.__extends(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new eT.K)},t}(p.L);function nS(e){return function(t){return t.lift(new nx(e))}}var nx=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new nE(e,this.total))},e}(),nE=function(e){function t(t,n){var r=e.call(this,t)||this;return r.total=n,r.count=0,r}return r.__extends(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(p.L);function nC(e){return function(t){return t.lift(new nk(e))}}var nk=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new eR.W}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new p.L(e)):t.subscribe(new nM(e,this._skipCount))},e}(),nM=function(e){function t(t,n){var r=e.call(this,t)||this;return r._skipCount=n,r._count=0,r._ring=Array(n),r}return r.__extends(t,e),t.prototype._next=function(e){var t=this._skipCount,n=this._count++;if(n<t)this._ring[n]=e;else{var r=n%t,i=this._ring,s=i[r];i[r]=e,this.destination.next(s)}},t}(p.L);function nI(e){return function(t){return t.lift(new nN(e))}}var nN=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new nA(e,this.notifier))},e}(),nA=function(e){function t(t,n){var r=e.call(this,t)||this;r.hasValue=!1;var s=new i.IY(r);r.add(s),r.innerSubscription=s;var o=(0,i.ft)(n,s);return o!==s&&(r.add(o),r.innerSubscription=o),r}return r.__extends(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},t.prototype.notifyComplete=function(){},t}(i.Ds);function nR(e){return function(t){return t.lift(new nj(e))}}var nj=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new nT(e,this.predicate))},e}(),nT=function(e){function t(t,n){var r=e.call(this,t)||this;return r.predicate=n,r.skipping=!0,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=!!t}catch(e){this.destination.error(e)}},t}(p.L);function nO(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e[e.length-1];return(0,v.K)(n)?(e.pop(),function(t){return(0,U.z)(e,t,n)}):function(t){return(0,U.z)(e,t)}}var nL=n(81789),nP=n(35812),nD=function(e){function t(t,n,r){void 0===n&&(n=0),void 0===r&&(r=nL.e);var i=e.call(this)||this;return i.source=t,i.delayTime=n,i.scheduler=r,(!(0,nP.k)(n)||n<0)&&(i.delayTime=0),r&&"function"==typeof r.schedule||(i.scheduler=nL.e),i}return r.__extends(t,e),t.create=function(e,n,r){return void 0===n&&(n=0),void 0===r&&(r=nL.e),new t(e,n,r)},t.dispatch=function(e){var t=e.source,n=e.subscriber;return this.add(t.subscribe(n))},t.prototype._subscribe=function(e){var n=this.delayTime,r=this.source;return this.scheduler.schedule(t.dispatch,n,{source:r,subscriber:e})},t}(eb.y);function nB(e,t){return void 0===t&&(t=0),function(n){return n.lift(new nF(e,t))}}
19var nF=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new nD(t,this.delay,this.scheduler).subscribe(e)},e}();function nV(e,t){return"function"==typeof t?function(n){return n.pipe(nV(function(n,r){return(0,H.D)(e(n,r)).pipe((0,eY.U)(function(e,i){return t(n,e,r,i)}))}))}:function(t){return t.lift(new nz(e))}}var nz=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new nH(e,this.project))},e}(),nH=function(e){function t(t,n){var r=e.call(this,t)||this;return r.project=n,r.index=0,r}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){this.destination.error(e);return}this._innerSub(t)},t.prototype._innerSub=function(e){var t=this.innerSubscription;t&&t.unsubscribe();var n=new i.IY(this),r=this.destination;r.add(n),this.innerSubscription=(0,i.ft)(e,n),this.innerSubscription!==n&&r.add(this.innerSubscription)},t.prototype._complete=function(){var t=this.innerSubscription;(!t||t.closed)&&e.prototype._complete.call(this),this.unsubscribe()},t.prototype._unsubscribe=function(){this.innerSubscription=void 0},t.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e){this.destination.next(e)},t}(i.Ds);function nW(){return nV(te.y)}function nU(e,t){return t?nV(function(){return e},t):nV(function(){return e})}function nq(e){return function(t){return t.lift(new n$(e))}}var n$=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var n=new nJ(e),r=(0,i.ft)(this.notifier,new i.IY(n));return r&&!n.seenValue?(n.add(r),t.subscribe(n)):n},e}(),nJ=function(e){function t(t){var n=e.call(this,t)||this;return n.seenValue=!1,n}return r.__extends(t,e),t.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},t.prototype.notifyComplete=function(){},t}(i.Ds);function nZ(e,t){return void 0===t&&(t=!1),function(n){return n.lift(new nQ(e,t))}}var nQ=function(){function e(e,t){this.predicate=e,this.inclusive=t}return e.prototype.call=function(e,t){return t.subscribe(new nG(e,this.predicate,this.inclusive))},e}(),nG=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.predicate=n,i.inclusive=r,i.index=0,i}return r.__extends(t,e),t.prototype._next=function(e){var t,n=this.destination;try{t=this.predicate(e,this.index++)}catch(e){n.error(e);return}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var n=this.destination;t?n.next(e):(this.inclusive&&n.next(e),n.complete())},t}(p.L),nY=n(33306),nK=n(14156);function nX(e,t,n){return function(r){return r.lift(new n0(e,t,n))}}var n0=function(){function e(e,t,n){this.nextOrObserver=e,this.error=t,this.complete=n}return e.prototype.call=function(e,t){return t.subscribe(new n1(e,this.nextOrObserver,this.error,this.complete))},e}(),n1=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s._tapNext=nY.Z,s._tapError=nY.Z,s._tapComplete=nY.Z,s._tapError=r||nY.Z,s._tapComplete=i||nY.Z,(0,nK.m)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||nY.Z,s._tapError=n.error||nY.Z,s._tapComplete=n.complete||nY.Z),s}return r.__extends(t,e),t.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.next(e)},t.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){this.destination.error(e);return}this.destination.error(e)},t.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){this.destination.error(e);return}return this.destination.complete()},t}(p.L),n2={leading:!0,trailing:!1};function n3(e,t){return void 0===t&&(t=n2),function(n){return n.lift(new n5(e,!!t.leading,!!t.trailing))}}var n5=function(){function e(e,t,n){this.durationSelector=e,this.leading=t,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new n4(e,this.durationSelector,this.leading,this.trailing))},e}(),n4=function(e){function t(t,n,r,i){var s=e.call(this,t)||this;return s.destination=t,s.durationSelector=n,s._leading=r,s._trailing=i,s._hasValue=!1,s}return r.__extends(t,e),t.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},t.prototype.send=function(){var e=this._hasValue,t=this._sendValue;e&&(this.destination.next(t),this.throttle(t)),this._hasValue=!1,this._sendValue=void 0},t.prototype.throttle=function(e){var t=this.tryDurationSelector(e);t&&this.add(this._throttled=(0,i.ft)(t,new i.IY(this)))},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype.throttlingDone=function(){var e=this._throttled,t=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,t&&this.send()},t.prototype.notifyNext=function(){this.throttlingDone()},t.prototype.notifyComplete=function(){this.throttlingDone()},t}(i.Ds);function n6(e,t,n){return void 0===t&&(t=c.P),void 0===n&&(n=n2),function(r){return r.lift(new n9(e,t,n.leading,n.trailing))}}var n9=function(){function e(e,t,n,r){this.duration=e,this.scheduler
19=t,this.leading=n,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new n8(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),n8=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.duration=n,o.scheduler=r,o.leading=i,o.trailing=s,o._hasTrailingValue=!1,o._trailingValue=null,o}return r.__extends(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(n7,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},t.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(p.L);function n7(e){e.subscriber.clearThrottle()}var re=n(51410);function rt(e){return void 0===e&&(e=c.P),function(t){return(0,re.P)(function(){return t.pipe(tv(function(t,n){var r=t.current;return{value:n,current:e.now(),last:r}},{current:e.now(),value:void 0,last:void 0}),(0,eY.U)(function(e){var t=e.current,n=e.last,r=e.value;return new rn(r,t-n)}))})}}var rn=function(e,t){this.value=e,this.interval=t},rr=n(81462);function ri(e,t,n){return void 0===n&&(n=c.P),function(r){var i=ea(e),s=i?+e-n.now():Math.abs(e);return r.lift(new rs(s,i,t,n))}}var rs=function(){function e(e,t,n,r){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=n,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ro(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),ro=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;return o.absoluteTimeout=n,o.waitFor=r,o.withObservable=i,o.scheduler=s,o.scheduleTimeout(),o}return r.__extends(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add((0,i.ft)(t,new i.IY(e)))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},t}(i.Ds),ru=n(64944);function rc(e,t){return void 0===t&&(t=c.P),ri(e,(0,ru._)(new rr.W),t)}function ra(e){return void 0===e&&(e=c.P),(0,eY.U)(function(t){return new rl(t,e.now())})}var rl=function(e,t){this.value=e,this.timestamp=t};function rh(e,t,n){return 0===n?[t]:(e.push(t),e)}function rd(){return tx(rh,[])}function rf(e){return function(t){return t.lift(new rp(e))}}var rp=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var n=new rb(e),r=t.subscribe(n);return r.closed||n.add((0,i.ft)(this.windowBoundaries,new i.IY(n))),r},e}(),rb=function(e){function t(t){var n=e.call(this,t)||this;return n.window=new t$.xQ,t.next(n.window),n}return r.__extends(t,e),t.prototype.notifyNext=function(){this.openWindow()},t.prototype.notifyError=function(e){this._error(e)},t.prototype.notifyComplete=function(){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,n=this.window=new t$.xQ;t.next(n)},t}(i.Ds);function ry(e,t){return void 0===t&&(t=0),function(n){return n.lift(new rg(e,t))}}var rg=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new rm(e,this.windowSize,this.startWindowEvery))},e}(),rm=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.destination=t,i.windowSize=n,i.startWindowEvery=r,i.windows=[new t$.xQ],i.count=0,t.next(i.windows[0]),i}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,s=i.length,o=0;o<s&&!this.closed;o++)i[o].next(e);var u=this.count-r+1;if(u>=0&&u%t==0&&!this.closed&&i.shift().complete(),++this.count%t==0&&!this.closed){var c=new t$.xQ;i.push(c),n.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(p.L);function rv(e){var t=c.P,n=null,r=Number.POSITIVE_INFINITY;return(0,v.K)(arguments[3])&&(t=arguments[3]),(0,v.K)(arguments[2])?t=arguments[2]:(0,nP.k)(arguments[2])&&(r=Number(arguments[2])),(0,v.K)(arguments[1])?t=arguments[1]:(0,nP.k)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new r_(e,n,r,t))}}var r_=function(){function e(e,t,n,r){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=n,this.scheduler
19=r}return e.prototype.call=function(e,t){return t.subscribe(new rS(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),rw=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._numberOfNextedValues=0,t}return r.__extends(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(t$.xQ),rS=function(e){function t(t,n,r,i,s){var o=e.call(this,t)||this;o.destination=t,o.windowTimeSpan=n,o.windowCreationInterval=r,o.maxWindowSize=i,o.scheduler=s,o.windows=[];var u=o.openWindow();return null!==r&&r>=0?(o.add(s.schedule(rC,n,{subscriber:o,window:u,context:null})),o.add(s.schedule(rE,r,{windowTimeSpan:n,windowCreationInterval:r,subscriber:o,scheduler:s}))):o.add(s.schedule(rx,n,{subscriber:o,window:u,windowTimeSpan:n})),o}return r.__extends(t,e),t.prototype._next=function(e){for(var t=this.windows,n=t.length,r=0;r<n;r++){var i=t[r];!i.closed&&(i.next(e),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new rw;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(p.L);function rx(e){var t=e.subscriber,n=e.windowTimeSpan,r=e.window;r&&t.closeWindow(r),e.window=t.openWindow(),this.schedule(e,n)}function rE(e){var t=e.windowTimeSpan,n=e.subscriber,r=e.scheduler,i=e.windowCreationInterval,s=n.openWindow(),o={action:this,subscription:null};o.subscription=r.schedule(rC,t,{subscriber:n,window:s,context:o}),this.add(o.subscription),this.schedule(e,i)}function rC(e){var t=e.subscriber,n=e.window,r=e.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),t.closeWindow(n)}function rk(e,t){return function(n){return n.lift(new rM(e,t))}}var rM=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new rI(e,this.openings,this.closingSelector))},e}(),rI=function(e){function t(t,n,r){var i=e.call(this,t)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=(0,I.D)(i,n,n)),i}return r.__extends(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var n=t.length,r=0;r<n;r++)t[r].window.next(e)},t.prototype._error=function(t){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var s=n[i];s.window.error(t),s.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var n=t.length,r=-1;++r<n;){var i=t[r];i.window.complete(),i.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,n=-1;++n<t;){var r=e[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,n,r,i){if(e===this.openings){var s=void 0;try{s=(0,this.closingSelector)(t)}catch(e){return this.error(e)}var o=new t$.xQ,u=new M.w,c={window:o,subscription:u};this.contexts.push(c);var a=(0,I.D)(this,s,c);a.closed?this.closeWindow(this.contexts.length-1):(a.context=c,u.add(a)),this.destination.next(o)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,n=t[e],r=n.window,i=n.subscription;t.splice(e,1),r.complete(),i.unsubscribe()}},t}(N.L);function rN(e){return function(t){return t.lift(new rA(e))}}var rA=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new rR(e,this.closingSelector))},e}(),rR=function(e){function t(t,n){var r=e.call(this,t)||this;return r.destination=t,r.closingSelector=n,r.openWindow(),r}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,i){this.openWindow(i)},t.prototype.notifyError=function(e){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t,n=this.window;n&&n.complete();var r=this.window=new t$.xQ;this.destination.next(r);try{t=(0,this.closingSelector)()}catch(e){this.destination.error(e),this.window.error(e);return}this.add(this.closingNotification=(0,I.D)(this,t))},t}(N.L);function rj(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),t.lift(new rT(e,n))}}var rT=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new rO(e,this.observables,this.project))},e}(),rO=function(e){function t(t,n,r){var i=e.call(this,t)||this;i.observables=n,i.project=r,i.toRespond=[];var s=n.length;i.values=Array(s);for(var o=0;o<s;o++)i.toRespond.push(o);for(var o=0;o<s;o++){var u=n[o];i.add((0,I.D)(i,u,void 0,o))}return i}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n){this.values[n]=t;var r=this.toRespond;if(r.length>0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){this.destination.error(e);return}this.destination.next(t)},t}(N.L),rL=n(25080);function rP(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return function(t){return t.lift.call(rL.$R.apply(void 0,[t].concat(e)))}}function rD(e){return function(t){return t.lift(new rL.mx(e))}}},13507:function(e,t,n){let r=n(33959);e.exports=(e,t)=>{let n=r(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null}},99038:function(e,t,n){let r=n(26376),i=n(33959),{safeRe:s,t:o}=n(55765);e.exports=(e,t)=>{if(e instanceof r)return e;if("number"==typeof e&&(e=String(e)),"string"!=typeof e)return null;let n=null;if((t=t||{}).rtl){let t;for(;(t=s[o.COERCERTL].exec(e))&&(!n||n.index+n[0].length!==e.length);)n&&t.index+t[0].length===n.index+n[0].length||(n=t),s[o.COERCERTL].lastIndex=t.index+t[1].length+t[2].length;s[o.COERCERTL].lastIndex=-1}else n=e.match(s[o.COERCE]);return null===n?null:i(`${n[2]}.${n[3]||"0"}.${n[4]||"0"}`,t)}},88880:function(e,t,n){let r=n(26376);e.exports=(e,t,n)=>{let i=new r(e,n),s=new r(t,n);return i.compare(s)||i.compareBuild(s)}},27880:function(e,t,n){let r=n(46269);e.exports=(e,t)=>r(e,t,!0)},38419:function(e,t,n){let r=n(33959);e.exports=(e,t)=>{let n=r(e,null,!0),i=r(t,null,!0),s=n.compare(i);if(0===s)return null;let o=s>0,u=o?n:i,c=o?i:n,a=!!u.prerelease.length,l=!!c.prerelease.length;if(l&&!a)return c.patch||c.minor?u.patch?"patch":u.minor?"minor":"major":"major";let h=a?"pre":"";return n.major!==i.major?h+"major":n.minor!==i.minor?h+"minor":n.patch!==i.patch?h+"patch":"prerelease"}},20253:function(e,t,n){let r=n(26376);e.exports=(e,t,n,i,s)=>{"string"==typeof n&&(s=i,i=n,n=void 0);
19try{return new r(e instanceof r?e.version:e,n).inc(t,i,s).version}catch(e){return null}}},38679:function(e,t,n){let r=n(26376);e.exports=(e,t)=>new r(e,t).major},87789:function(e,t,n){let r=n(26376);e.exports=(e,t)=>new r(e,t).minor},33959:function(e,t,n){let r=n(26376);e.exports=(e,t,n=!1)=>{if(e instanceof r)return e;try{return new r(e,t)}catch(e){if(!n)return null;throw e}}},52358:function(e,t,n){let r=n(26376);e.exports=(e,t)=>new r(e,t).patch},57559:function(e,t,n){let r=n(33959);e.exports=(e,t)=>{let n=r(e,t);return n&&n.prerelease.length?n.prerelease:null}},79795:function(e,t,n){let r=n(46269);e.exports=(e,t,n)=>r(t,e,n)},63657:function(e,t,n){let r=n(88880);e.exports=(e,t)=>e.sort((e,n)=>r(n,e,t))},21100:function(e,t,n){let r=n(88880);e.exports=(e,t)=>e.sort((e,n)=>r(e,n,t))},76397:function(e,t,n){let r=n(33959);e.exports=(e,t)=>{let n=r(e,t);return n?n.version:null}},81249:function(e,t,n){let r=n(55765),i=n(83295),s=n(26376),o=n(86742),u=n(33959),c=n(76397),a=n(13507),l=n(20253),h=n(38419),d=n(38679),f=n(87789),p=n(52358),b=n(57559),y=n(46269),g=n(79795),m=n(27880),v=n(88880),_=n(21100),w=n(63657),S=n(71312),x=n(21544),E=n(58718),C=n(81194),k=n(25903),M=n(12056),I=n(7539),N=n(99038),A=n(22257),R=n(66902),j=n(45712),T=n(51042),O=n(85775),L=n(71657),P=n(95316),D=n(89042),B=n(6826),F=n(97606),V=n(50032),z=n(82937),H=n(17908),W=n(50799);e.exports={parse:u,valid:c,clean:a,inc:l,diff:h,major:d,minor:f,patch:p,prerelease:b,compare:y,rcompare:g,compareLoose:m,compareBuild:v,sort:_,rsort:w,gt:S,lt:x,eq:E,neq:C,gte:k,lte:M,cmp:I,coerce:N,Comparator:A,Range:R,satisfies:j,toComparators:T,maxSatisfying:O,minSatisfying:L,minVersion:P,validRange:D,outside:B,gtr:F,ltr:V,intersects:z,simplifyRange:H,subset:W,SemVer:s,re:r.re,src:r.src,tokens:r.t,SEMVER_SPEC_VERSION:i.SEMVER_SPEC_VERSION,RELEASE_TYPES:i.RELEASE_TYPES,compareIdentifiers:o.compareIdentifiers,rcompareIdentifiers:o.rcompareIdentifiers}},97606:function(e,t,n){let r=n(6826);e.exports=(e,t,n)=>r(e,t,">",n)},82937:function(e,t,n){let r=n(66902);e.exports=(e,t,n)=>(e=new r(e,n),t=new r(t,n),e.intersects(t,n))},50032:function(e,t,n){let r=n(6826);e.exports=(e,t,n)=>r(e,t,"<",n)},85775:function(e,t,n){let r=n(26376),i=n(66902);e.exports=(e,t,n)=>{let s=null,o=null,u=null;try{u=new i(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!s||-1===o.compare(e))&&(s=e,o=new r(s,n))}),s}},71657:function(e,t,n){let r=n(26376),i=n(66902);e.exports=(e,t,n)=>{let s=null,o=null,u=null;try{u=new i(t,n)}catch(e){return null}return e.forEach(e=>{u.test(e)&&(!s||1===o.compare(e))&&(s=e,o=new r(s,n))}),s}},95316:function(e,t,n){let r=n(26376),i=n(66902),s=n(71312);e.exports=(e,t)=>{e=new i(e,t);let n=new r("0.0.0");if(e.test(n)||(n=new r("0.0.0-0"),e.test(n)))return n;n=null;for(let t=0;t<e.set.length;++t){let i=e.set[t],o=null;i.forEach(e=>{let t=new r(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":(!o||s(t,o))&&(o=t);break;case"<":case"<=":break;default:throw Error(`Unexpected operation: ${e.operator}`)}}),o&&(!n||s(n,o))&&(n=o)}return n&&e.test(n)?n:null}},6826:function(e,t,n){let r=n(26376),i=n(22257),{ANY:s}=i,o=n(66902),u=n(45712),c=n(71312),a=n(21544),l=n(12056),h=n(25903);e.exports=(e,t,n,d)=>{let f,p,b,y,g;switch(e=new r(e,d),t=new o(t,d),n){case">":f=c,p=l,b=a,y=">",g=">=";break;case"<":f=a,p=h,b=c,y="<",g="<=";break;default:throw TypeError('Must provide a hilo val of "<" or ">"')}if(u(e,t,d))return!1;for(let n=0;n<t.set.length;++n){let r=t.set[n],o=null,u=null;if(r.forEach(e=>{e.semver===s&&(e=new i(">=0.0.0")),o=o||e,u=u||e,f(e.semver,o.semver,d)?o=e:b(e.semver,u.semver,d)&&(u=e)}),o.operator===y||o.operator===g||(!u.operator||u.operator===y)&&p(e,u.semver)||u.operator===g&&b(e,u.semver))return!1}return!0}},17908:function(e,t,n){let r=n(45712),i=n(46269);e.exports=(e,t,n)=>{let s=[],o=null,u=null,c=e.sort((e,t)=>i(e,t,n));for(let e of c){let i=r(e,t,n);i?(u=e,o||(o=e)):(u&&s.push([o,u]),u=null,o=null)}o&&s.push([o,null]);let a=[];for(let[e,t]of s)e===t?a.push(e):t||e!==c[0]?t?e===c[0]?a.push(`<=${t}`):a.push(`${e} - ${t}`):a.push(`>=${e}`):a.push("*");
19let l=a.join(" || "),h="string"==typeof t.raw?t.raw:String(t);return l.length<h.length?l:t}},50799:function(e,t,n){let r=n(66902),i=n(22257),{ANY:s}=i,o=n(45712),u=n(46269),c=[new i(">=0.0.0-0")],a=[new i(">=0.0.0")],l=(e,t,n)=>{let r,i,l,f,p,b,y;if(e===t)return!0;if(1===e.length&&e[0].semver===s){if(1===t.length&&t[0].semver===s)return!0;e=n.includePrerelease?c:a}if(1===t.length&&t[0].semver===s){if(n.includePrerelease)return!0;t=a}let g=new Set;for(let t of e)">"===t.operator||">="===t.operator?r=h(r,t,n):"<"===t.operator||"<="===t.operator?i=d(i,t,n):g.add(t.semver);if(g.size>1||r&&i&&((l=u(r.semver,i.semver,n))>0||0===l&&(">="!==r.operator||"<="!==i.operator)))return null;for(let e of g){if(r&&!o(e,String(r),n)||i&&!o(e,String(i),n))return null;for(let r of t)if(!o(e,String(r),n))return!1;return!0}let m=!!i&&!n.includePrerelease&&!!i.semver.prerelease.length&&i.semver,v=!!r&&!n.includePrerelease&&!!r.semver.prerelease.length&&r.semver;for(let e of(m&&1===m.prerelease.length&&"<"===i.operator&&0===m.prerelease[0]&&(m=!1),t)){if(y=y||">"===e.operator||">="===e.operator,b=b||"<"===e.operator||"<="===e.operator,r){if(v&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===v.major&&e.semver.minor===v.minor&&e.semver.patch===v.patch&&(v=!1),">"===e.operator||">="===e.operator){if((f=h(r,e,n))===e&&f!==r)return!1}else if(">="===r.operator&&!o(r.semver,String(e),n))return!1}if(i){if(m&&e.semver.prerelease&&e.semver.prerelease.length&&e.semver.major===m.major&&e.semver.minor===m.minor&&e.semver.patch===m.patch&&(m=!1),"<"===e.operator||"<="===e.operator){if((p=d(i,e,n))===e&&p!==i)return!1}else if("<="===i.operator&&!o(i.semver,String(e),n))return!1}if(!e.operator&&(i||r)&&0!==l)return!1}return(!r||!b||!!i||0===l)&&(!i||!y||!!r||0===l)&&!v&&!m},h=(e,t,n)=>{if(!e)return t;let r=u(e.semver,t.semver,n);return r>0?e:r<0?t:">"===t.operator&&">="===e.operator?t:e},d=(e,t,n)=>{if(!e)return t;let r=u(e.semver,t.semver,n);return r<0?e:r>0?t:"<"===t.operator&&"<="===e.operator?t:e};e.exports=(e,t,n={})=>{if(e===t)return!0;e=new r(e,n),t=new r(t,n);let i=!1;t:for(let r of e.set){for(let e of t.set){let t=l(r,e,n);if(i=i||null!==t,t)continue t}if(i)return!1}return!0}},51042:function(e,t,n){let r=n(66902);e.exports=(e,t)=>new r(e,t).set.map(e=>e.map(e=>e.value).join(" ").trim().split(" "))},89042:function(e,t,n){let r=n(66902);e.exports=(e,t)=>{try{return new r(e,t).range||"*"}catch(e){return null}}},37478:function(e,t,n){"use strict";var r=n(40210),i=n(21924),s=n(70631),o=r("%TypeError%"),u=r("%WeakMap%",!0),c=r("%Map%",!0),a=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),b=function(e,t){for(var n,r=e;null!==(n=r.next);r=n)if(n.key===t)return r.next=n.next,n.next=e.next,e.next=n,n},y=function(e,t){var n=b(e,t);return n&&n.value},g=function(e,t,n){var r=b(e,t);r?r.value=n:e.next={key:t,next:e.next,value:n}};e.exports=function(){var e,t,n,r={assert:function(e){if(!r.has(e))throw new o("Side channel does not contain "+s(e))},get:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return a(e,r)}else if(c){if(t)return d(t,r)}else if(n)return y(n,r)},has:function(r){if(u&&r&&("object"==typeof r||"function"==typeof r)){if(e)return h(e,r)}else if(c){if(t)return p(t,r)}else if(n)return!!b(n,r);return!1},set:function(r,i){u&&r&&("object"==typeof r||"function"==typeof r)?(e||(e=new u),l(e,r,i)):c?(t||(t=new c),f(t,r,i)):(n||(n={key:{},next:null}),g(n,r,i))}};return r}},47529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var i in r)t.call(r,i)&&(e[i]=r[i])}return e};var t=Object.prototype.hasOwnProperty},11821:function(e,t,n){"use strict";n.r(t),n.d(t,{Struct:function(){return a},StructError:function(){return r},any:function(){return E},array:function(){return C},assert:function(){return l},assign:function(){return b},bigint:function(){return k},boolean:function(){return M},coerce:function(){return Q},create:function(){return h},date:function(){return I},defaulted:function(){return G},define:function(){return y},deprecated:function(){return g},dynamic:function(){return m},empty:function(){return K},enums:function(){return N},func:function(){return A},instance:function(){return R},integer:function(){return j},intersection:function(){return T},is:function(){return f},lazy:function(){return v},literal:function(){return O},map:function(){return L},mask:function(){return d},max:function(){return ee},min:function(){return et},never:function(){return P},nonempty:function(){return en},nullable:function(){return D},number:function(){return B},object:function(){return F},omit:function(){return _},optional:function(){return V},partial:function(){return w},pattern:function(){return er},pick:function(){return S},record:function(){return z},refine:function(){return es},regexp:function(){return H},set:function(){return W},size:function(){return ei},string:function(){return U},struct:function(){return x},trimmed:function(){return Y},tuple:function(){return q},type:function(){return $},union:function(){return J},unknown:function(){return Z},validate:function(){return p}});class r extends TypeError{constructor(e,t){let n;let{message:r,explanation:i,...s}=e,{path:o}=e,u=0===o.length?r:`At path: ${o.join(".")} -- ${r}`;super(i??u),null!=i&&(this.cause=u),Object.assign(this,s),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function i(e){return"object"==typeof e&&null!=e}function s(e){if("[object Object]"!==Object.prototype.toString.call(e))return!1;let t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function o(e){return"symbol"==typeof e?e.toString():"string"==typeof e?JSON.stringify(e):`${e}`}function*u(e,t,n,r){var s;for(let u of(i(s=e)&&"function"==typeof s[Symbol.iterator]||(e=[e]),e)){let e=function(e,t,n,r){if(!0===e)return;!1===e?e={}:"string"==typeof e&&(e={message:e});let{path:i,branch:s}=t,{type:u}=n,{refinement:c,message:a=`Expected a value of type \`${u}\`${c?` with refinement \`${c}\``:""}, but received: \`${o(r)}\``}=e;return{value:r,type:u,refinement:c,key:i[i.length-1],path:i,branch:s,...e,message:a}}(u,t,n,r);e&&(yield e)}}function*c(e,t,n={}){let{path:r=[],branch:s=[e],coerce:o=!1,mask:u=!1}=n,a={path:r,branch:s};if(o&&(e=t.coercer(e,a),u&&"type"!==t.type&&i(t.schema)&&i(e)&&!Array.isArray(e)))for(let n in e)void 0===t.schema[n]&&delete e[n];let l="valid";for(let r of t.validator(e,a))r.explanation=n.message,l="not_val
19id",yield[r,void 0];for(let[h,d,f]of t.entries(e,a)){let t=c(d,f,{path:void 0===h?r:[...r,h],branch:void 0===h?s:[...s,d],coerce:o,mask:u,message:n.message});for(let n of t)n[0]?(l=null!=n[0].refinement?"not_refined":"not_valid",yield[n[0],void 0]):o&&(d=n[1],void 0===h?e=d:e instanceof Map?e.set(h,d):e instanceof Set?e.add(d):i(e)&&(void 0!==d||h in e)&&(e[h]=d))}if("not_valid"!==l)for(let r of t.refiner(e,a))r.explanation=n.message,l="not_refined",yield[r,void 0];"valid"===l&&(yield[void 0,e])}class a{constructor(e){let{type:t,schema:n,validator:r,refiner:i,coercer:s=e=>e,entries:o=function*(){}}=e;this.type=t,this.schema=n,this.entries=o,this.coercer=s,r?this.validator=(e,t)=>{let n=r(e,t);return u(n,t,this,e)}:this.validator=()=>[],i?this.refiner=(e,t)=>{let n=i(e,t);return u(n,t,this,e)}:this.refiner=()=>[]}assert(e,t){return l(e,this,t)}create(e,t){return h(e,this,t)}is(e){return f(e,this)}mask(e,t){return d(e,this,t)}validate(e,t={}){return p(e,this,t)}}function l(e,t,n){let r=p(e,t,{message:n});if(r[0])throw r[0]}function h(e,t,n){let r=p(e,t,{coerce:!0,message:n});if(!r[0])return r[1];throw r[0]}function d(e,t,n){let r=p(e,t,{coerce:!0,mask:!0,message:n});if(!r[0])return r[1];throw r[0]}function f(e,t){let n=p(e,t);return!n[0]}function p(e,t,n={}){let i=c(e,t,n),s=function(e){let{done:t,value:n}=e.next();return t?void 0:n}(i);if(s[0]){let e=new r(s[0],function*(){for(let e of i)e[0]&&(yield e[0])});return[e,void 0]}{let e=s[1];return[void 0,e]}}function b(...e){let t="type"===e[0].type,n=e.map(e=>e.schema),r=Object.assign({},...n);return t?$(r):F(r)}function y(e,t){return new a({type:e,schema:null,validator:t})}function g(e,t){return new a({...e,refiner:(t,n)=>void 0===t||e.refiner(t,n),validator:(n,r)=>void 0===n||(t(n,r),e.validator(n,r))})}function m(e){return new a({type:"dynamic",schema:null,*entries(t,n){let r=e(t,n);yield*r.entries(t,n)},validator(t,n){let r=e(t,n);return r.validator(t,n)},coercer(t,n){let r=e(t,n);return r.coercer(t,n)},refiner(t,n){let r=e(t,n);return r.refiner(t,n)}})}function v(e){let t;return new a({type:"lazy",schema:null,*entries(n,r){t??(t=e()),yield*t.entries(n,r)},validator:(n,r)=>(t??(t=e()),t.validator(n,r)),coercer:(n,r)=>(t??(t=e()),t.coercer(n,r)),refiner:(n,r)=>(t??(t=e()),t.refiner(n,r))})}function _(e,t){let{schema:n}=e,r={...n};for(let e of t)delete r[e];return"type"===e.type?$(r):F(r)}function w(e){let t=e instanceof a?{...e.schema}:{...e};for(let e in t)t[e]=V(t[e]);return F(t)}function S(e,t){let{schema:n}=e,r={};for(let e of t)r[e]=n[e];return F(r)}function x(e,t){return console.warn("[email protected] - The `struct` helper has been renamed to `define`."),y(e,t)}function E(){return y("any",()=>!0)}function C(e){return new a({type:"array",schema:e,*entries(t){if(e&&Array.isArray(t))for(let[n,r]of t.entries())yield[n,r,e]},coercer:e=>Array.isArray(e)?e.slice():e,validator:e=>Array.isArray(e)||`Expected an array value, but received: ${o(e)}`})}function k(){return y("bigint",e=>"bigint"==typeof e)}function M(){return y("boolean",e=>"boolean"==typeof e)}function I(){return y("date",e=>e instanceof Date&&!isNaN(e.getTime())||`Expected a valid \`Date\` object, but received: ${o(e)}`)}function N(e){let t={},n=e.map(e=>o(e)).join();for(let n of e)t[n]=n;return new a({type:"enums",schema:t,validator:t=>e.includes(t)||`Expected one of \`${n}\`, but received: ${o(t)}`})}function A(){return y("func",e=>"function"==typeof e||`Expected a function, but received: ${o(e)}`)}function R(e){return y("instance",t=>t instanceof e||`Expected a \`${e.name}\` instance, but received: ${o(t)}`)}function j(){return y("integer",e=>"number"==typeof e&&!isNaN(e)&&Number.isInteger(e)||`Expected an integer, but received: ${o(e)}`)}function T(e){return new a({type:"intersection",schema:null,*entries(t,n){for(let r of e)yield*r.entries(t,n)},*validator(t,n){for(let r of e)yield*r.validator(t,n)},*refiner(t,n){for(let r of e)yield*r.refiner(t,n)}})}function O(e){let t=o(e),n=typeof e;return new a({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?e:null,validator:n=>n===e||`Expected the literal \`${t}\`, but received: ${o(n)}`})}function L(e,t){return new a({type:"map",schema:null,*entries(n){if(e&&t&&n instanceof Map)for(let[r,i]of n.entries())yield[r,r,e],yield[r,i,t]},coercer:e=>e instanceof Map?new Map(e):e,validator:e=>e instanceof Map||`Expected a \`Map\` object, but received: ${o(e)}`})}function P(){return y("never",()=>!1)}function D(e){return new a({...e,validator:(t,n)=>null===t||e.validator(t,n),refiner:(t,n)=>null===t||e.refiner(t,n)})}function B(){return y("number",e=>"number"==typeof e&&!isNaN(e)||`Expected a number, but received: ${o(e)}`)}function F(e){let t=e?Object.keys(e):[],n=P();return new a({type:"object",schema:e||null,*entries(r){if(e&&i(r)){let i=new Set(Object.keys(r));for(let n of t)i.delete(n),yield[n,r[n],e[n]];for(let e of i)yield[e,r[e],n]}},validator:e=>i(e)||`Expected an object, but received: ${o(e)}`,coercer:e=>i(e)?{...e}:e})}function V(e){return new a({...e,validator:(t,n)=>void 0===t||e.validator(t,n),refiner:(t,n)=>void 0===t||e.refiner(t,n)})}function z(e,t){return new a({type:"record",schema:null,*entries(n){if(i(n))for(let r in n){let i=n[r];yield[r,r,e],yield[r,i,t]}},validator:e=>i(e)||`Expected an object, but received: ${o(e)}`})}function H(){return y("regexp",e=>e instanceof RegExp)}function W(e){return new a({type:"set",schema:null,*entries(t){if(e&&t instanceof Set)for(let n of t)yield[n,n,e]},coercer:e=>e instanceof Set?new Set(e):e,validator:e=>e instanceof Set||`Expected a \`Set\` object, but received: ${o(e)}`})}function U(){return y("string",e=>"string"==typeof e||`Expected a string, but received: ${o(e)}`)}function q(e){let t=P();return new a({type:"tuple",schema:null,*entries(n){if(Array.isArray(n)){let r=Math.max(e.length,n.length);for(let i=0;i<r;i++)yield[i,n[i],e[i]||t]}},validator:e=>Array.isArray(e)||`Expected an array, but received: ${o(e)}`})}function $(e){let t=Object.keys(e);return new a({type:"type",schema:e,*entries(n){if(i(n))for(let r of t)yield[r,n[r],e[r]]},validator:e=>i(e)||`Expected an object, but received: ${o(e)}`,coercer:e=>i(e)?{...e}:e})}function J(e){let t=e.map(e=>e.type).join(" | ");return new a({type:"union",schema:null,coercer(t){for(let n of e){let[e,r]=n.validate(t,{coerce:!0});if(!e)return r}return t},validator(n,r){let i=[];for(let t of e){let[...e]=c(n,t,r),[s]=e;if(!s[0])return[];for(let[t]of e)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${o(n)}`,...i]}})}function Z(){return y("unknown",()=>!0)}function Q(e,t,n){return new a({...e,coercer:(r,i)=>f(r,t)?e.coercer(n(r,i),i):e.coercer(r,i)})}function G(e,t,n={}){return Q(e,Z(),e=>{let r="function"==typeof t?t():t;if(void 0===e)return r;if(!n.strict&&s(e)&&s(r)){let t={...e},n=!1;for(let e in r)void 0===t[e]&&(t[e]=r[e],n=!0);if(n)return t}return e})}function Y(e){return Q(e,U(),e=>e.trim())}function K(e){return es(e,"empty",t=>{let n=X(t);return 0===n||`Expected an empty ${e.type} but received one with a size of \`${n}\``})}function X(e){return e instanceof Map||e instanceof Set?e.size:e.length}function ee(e,t,n={}){let{exclusive:r}=n;return es(e,"max",n=>r?n<t:n<=t||`Expected a ${e.type} less than ${r?"":"or equal to "}${t} but received \`${n}\``)}function et(e,t,n={}){let{exclusive:r}=n;return es(e,"min",n=>r?n>t:n>=t||`Expected a ${e.type} greater than ${r?"":"or equal to "}${t} but received \`${n}\``)}function en(e){return es(e,"nonempty",t=>{let n=X(t);return n>0||`Expected a nonempty ${e.type} but received an empty one`})}function er(e,t){return es(e,"pattern",n=>t.test(n)||`Expected a ${e.type} matching \`/${t.source}/\` but received "${n}"`)}function ei(e,t,n=t){let r=`Expected a ${e.type}`,i=t===n?`of \`${t}\``:`between \`${t}\` and \`${n}\``;return es(e,"size",e=>
19{if("number"==typeof e||e instanceof Date)return t<=e&&e<=n||`${r} ${i} but received \`${e}\``;if(e instanceof Map||e instanceof Set){let{size:s}=e;return t<=s&&s<=n||`${r} with a size ${i} but received one with a size of \`${s}\``}{let{length:s}=e;return t<=s&&s<=n||`${r} with a length ${i} but received one with a length of \`${s}\``}})}function es(e,t,n){return new a({...e,*refiner(r,i){yield*e.refiner(r,i);let s=n(r,i),o=u(s,i,e,r);for(let e of o)yield{...e,refinement:t}}})}},33649:function(e,t,n){"use strict";n.r(t),n.d(t,{__addDisposableResource:function(){return O},__assign:function(){return s},__asyncDelegator:function(){return C},__asyncGenerator:function(){return E},__asyncValues:function(){return k},__await:function(){return x},__awaiter:function(){return p},__classPrivateFieldGet:function(){return R},__classPrivateFieldIn:function(){return T},__classPrivateFieldSet:function(){return j},__createBinding:function(){return y},__decorate:function(){return u},__disposeResources:function(){return P},__esDecorate:function(){return a},__exportStar:function(){return g},__extends:function(){return i},__generator:function(){return b},__importDefault:function(){return A},__importStar:function(){return N}
vendor: 9,654 bytes, line 19
19,__makeTemplateObject:function(){return M},__metadata:function(){return f},__param:function(){return c},__propKey:function(){return h},__read:function(){return v},__rest:function(){return o},__runInitializers:function(){return l},__setFunctionName:function(){return d},__spread:function(){return _},__spreadArray:function(){return S},__spreadArrays:function(){return w},__values:function(){return m}});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])})(e,t)};function i(e,t){if("function"!=typeof t&&null!==t)throw 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 s=function(){return(s=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}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&0>t.indexOf(r)&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)0>t.indexOf(r[i])&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function u(e,t,n,r){var i,s=arguments.length,o=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(i=e[u])&&(o=(s<3?i(o):s>3?i(t,n,o):i(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,r){t(n,r,e)}}function a(e,t,n,r,i,s){function o(e){if(void 0!==e&&"function"!=typeof e)throw TypeError("Function expected");return e}for(var u,c=r.kind,a="getter"===c?"get":"setter"===c?"set":"value",l=!t&&e?r.static?e:e.prototype:null,h=t||(l?Object.getOwnPropertyDescriptor(l,r.name):{}),d=!1,f=n.length-1;f>=0;f--){var p={};for(var b in r)p[b]="access"===b?{}:r[b];for(var b in r.access)p.access[b]=r.access[b];p.addInitializer=function(e){if(d)throw TypeError("Cannot add initializers after decoration has completed");s.push(o(e||null))};var y=(0,n[f])("accessor"===c?{get:h.get,set:h.set}:h[a],p);if("accessor"===c){if(void 0===y)continue;if(null===y||"object"!=typeof y)throw TypeError("Object expected");(u=o(y.get))&&(h.get=u),(u=o(y.set))&&(h.set=u),(u=o(y.init))&&i.unshift(u)}else(u=o(y))&&("field"===c?i.unshift(u):h[a]=u)}l&&Object.defineProperty(l,r.name,h),d=!0}function l(e,t,n){for(var r=arguments.length>2,i=0;i<t.length;i++)n=r?t[i].call(e,n):t[i].call(e);return r?n:void 0}function h(e){return"symbol"==typeof e?e:"".concat(e)}function d(e,t,n){return"symbol"==typeof t&&(t=t.description?"[".concat(t.description,"]"):""),Object.defineProperty(e,"name",{configurable:!0,value:n?"".concat(n," ",t):t})}function f(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function p(e,t,n,r){return new(n||(n=Promise))(function(i,s){function o(e){try{c(r.next(e))}catch(e){s(e)}}function u(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):((t=e.value)instanceof n?t:new n(function(e){e(t)})).then(o,u)}c((r=r.apply(e,t||[])).next())})}function b(e,t){var n,r,i,s,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function u(u){return function(c){return function(u){if(n)throw TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&u[0]?r.return:u[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,u[1])).done)return i;switch(r=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return o.label++,{value:u[1],done:!1};case 5:o.label++,r=u[1],u=[0];continue;case 7:u=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){o=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){o.label=u[1];break}if(6===u[0]&&o.label<i[1]){o.label=i[1],i=u;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(u);break}i[2]&&o.ops.pop(),o.trys.pop();continue}u=t.call(e,o)}catch(e){u=[6,e],r=0}finally{n=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}var y=Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]};function g(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||y(t,e,n)}function m(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function v(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=s.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=s.return)&&n.call(s)}finally{if(i)throw i.error}}return o}function _(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(v(arguments[t]));return e}function w(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var r=Array(e),i=0,t=0;t<n;t++)for(var s=arguments[t],o=0,u=s.length;o<u;o++,i++)r[i]=s[o];return r}function S(e,t,n){if(n||2==arguments.length)for(var r,i=0,s=t.length;i<s;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))}function x(e){return this instanceof x?(this.v=e,this):new x(e)}function E(e,t,n){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise(function(n,r){s.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{var n;(n=i[e](t)).value instanceof x?Promise.resolve(n.value.v).then(c,a):l(s[0][2],n)}catch(e){l(s[0][3],e)}}function c(e){u("next",e)}function a(e){u("throw",e)}function l(e,t){e(t),s.shift(),s.length&&u(s[0][0],s[0][1])}}function C(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:x(e[r](t)),done:!1}:i?i(t):t}:i}}function k(e){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,i){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,i,(t=e[n](t)).done,t.value)})}}}function M(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}var I=Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t};function N(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)&&y(t,e,n);return I(t,e),t}function A(e){return e&&e.__esModule?e:{default:e}}function R(e,t,n,r){if("a"===n&&!r)throw TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}function j(e,t,n,r,i){if("m"===r)throw TypeError("Private method is not writable");if("a"===r&&!i)throw TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n}function T(e,t){if(null===t||"object"!=typeof t&&"function"!=typeof t)throw TypeError("Cannot use 'in' operator on non-object");return"function"==typeof e?t===e:e.has(t)}function O(e,t,n){if(null!=t){var r;if("object"!=typeof t&&"function"!=typeof t)throw TypeError("Object expected.");if(n){if(!Symbol.asyncDispose)throw TypeError("Symbol.asyncDispose is not defined.");r=t[Symbol.asyncDispose]}if(void 0===r){if(!Symbol.dispose)throw TypeError("Symbol.dispose is not defined.");r=t[Symbol.dispose]}if("function"!=typeof r)throw TypeError("Object not disposable.");e.stack.push({value:t,dispose:r,async:n})}else n&&e.stack.push({async:!0});return t}var L="function"==typeof SuppressedError?SuppressedError:function(e,t,n){var r=Error(n);return r.name="SuppressedError",r.error=e,r.suppressed=t,r};function P(e){function t(t){e.error=e.hasError?new L(t,e.error,"An error was suppressed during disposal."):t,e.hasError=!0}return function n(){for(;e.stack.length;){var r=e.stack.pop();try{var i=r.dispose&&r.dispose.call(r.value);if(r.async)return Promise.resolve(i).then(n,function(e){return t(e),n()})}catch(e){t(e)}}if(e.hasError)throw e.error}()}t.default={__extends:i,__assign:s,__rest:o,__decorate:u,__param:c,__metadata:f,__awaiter:p,__generator:b,__createBinding:y,__exportStar:g,__values:m,__read:v,__spread:_,__spreadArrays:w,__spreadArray:S,__await:x,__asyncGenerator:E,__asyncDelegator:C,__asyncValues:k,__makeTemplateOb
19ject:M,__importStar:N,__importDefault:A,__classPrivateFieldGet:R,__classPrivateFieldSet:j,__classPrivateFieldIn:T,__addDisposableResource:O,__disposeResources:P}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.