1try{!function(){var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="eb57b15b-22bf-4eae-a602-0c7d0ff3216a",e._sentryDebugIdIdentifier="sentry-dbid-eb57b15b-22bf-4eae-a602-0c7d0ff3216a")}()}catch(e){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9466],{41710:function(e,r,n){n.d(r,{j:function(){return o}});var i=function(e){var r={};function n(i){if(r[i])return r[i].exports;var o=r[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=r,n.d=function(e,r,i){n.o(e,r)||Object.defineProperty(e,r,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,r){if(1&r&&(e=n(e)),8&r||4&r&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&r&&"string"!=typeof e)for(var o in e)n.d(i,o,(function(r){return e[r]}).bind(null,o));return i},n.n=function(e){var r=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(r,"a",r),r},n.o=function(e,r){return Object.prototype.hasOwnProperty.call(e,r)},n.p="",n(n.s=125)}([function(e,r,n){"use strict";n.d(r,"a",function(){return o});var i=function(e,r){return(i=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var n in r)r.hasOwnProperty(n)&&(e[n]=r[n])})(e,r)};function o(e,r){function n(){this.constructor=e}i(e,r),e.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}},function(e,r,n){"use strict";n.d(r,"a",function(){return h});var i=n(0),o=n(26),s=n(58),a=n(4),u=n(43),c=n(14),l=n(36),h=function(e){function r(n,i,o){var a=e.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=s.a;break;case 1:if(!n){a.destination=s.a;break}if("object"==typeof n){n instanceof r?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new d(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new d(a,n,i,o)}return a}return i.a(r,e),r.prototype[u.a]=function(){return this},r.create=function(e,n,i){var o=new r(e,n,i);return o.syncErrorThrowable=!1,o},r.prototype.next=function(e){this.isStopped||this._next(e)},r.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},r.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},r.prototype._unsubscribeAndRecycle=function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this},r}(a.a),d=function(e){function r(r,n,i,a){var u,c=e.call(this)||this;c._parentSubscriber=r;var l=c;return Object(o.a)(n)?u=n:n&&(u=n.next,i=n.error,a=n.complete,n!==s.a&&(l=Object.create(n),Object(o.a)(l.unsubscribe)&&c.add(l.unsubscribe.bind(l)),l.unsubscribe=c.unsubscribe.bind(c))),c._context=l,c._next=u,c._error=i,c._complete=a,c}return i.a(r,e),r.prototype.next=function(e){if(!this.isStopped&&this._next){var r=this._parentSubscriber;c.a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},r.prototype.error=function(e){if(!this.isStopped){var r=this._parentSubscriber,n=c.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&r.syncErrorThrowable?this.__tryOrSetError(r,this._error,e):this.__tryOrUnsub(this._error,e),this.unsubscribe();else if(r.syncErrorThrowable)n?(r.syncErrorValue=e,r.syncErrorThrown=!0):Object(l.a)(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;Object(l.a)(e)}}},r.prototype.complete=function(){var e=this;if(!this.isStopped){var r=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};c.a.useDeprecatedSynchronousErrorHandling&&r.syncErrorThrowable?this.__tryOrSetError(r,n):this.__tryOrUnsub(n),this.unsubscribe()}else this.unsubscribe()}},r.prototype.__tryOrUnsub=function(e,r){try{e.call(this._context,r)}catch(e){if(this.unsubscribe(),c.a.useDeprecatedSynchronousErrorHandling)throw e;Object(l.a)(e)}},r.prototype.__tryOrSetError=function(e,r,n){if(!c.a.useDeprecatedSynchronousErrorHandling)throw Error("bad call");try{r.call(this._context,n)}catch(r){return c.a.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0):Object(l.a)(r),!0}return!1},r.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},r}(h)},function(e,r,n){"use strict";n.d(r,"a",function(){return u}),n.d(r,"b",function(){return c}),n.d(r,"c",function(){return l});var i=n(0),o=n(1),s=n(3),a=n(35),u=function(e){function r(r){var n=e.call(this)||this;return n.parent=r,n}return i.a(r,e),r.prototype._next=function(e){this.parent.notifyNext(e)},r.prototype._error=function(e){this.parent.notifyError(e),this.unsubscribe()},r.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},r}(o.a),c=(o.a,function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i.a(r,e),r.prototype.notifyNext=function(e){this.destination.next(e)},r.prototype.notifyError=function(e){this.destination.error(e)},r.prototype.notifyComplete=function(){this.destination.complete()},r}(o.a));function l(e,r){if(!r.closed){var n;if(e instanceof s.a)return e.subscribe(r);try{n=Object(a.a)(e)(r)}catch(e){r.error(e)}return n}}o.a},function(e,r,n){"use strict";n.d(r,"a",function(){return h});var i=n(56),o=n(1),s=n(43),a=n(58),u=n(22),c=n(41),l=n(14),h=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(r){var n=new e;return n.source=this,n.operator=r,n},e.prototype.subscribe=function(e,r,n){var i=this.operator,u=function(e,r,n){if(e){if(e instanceof o.a)return e;if(e[s.a])return e[s.a]()}return e||r||n?new o.a(e,r,n):new o.a(a.a)}(e,r,n);if(i?u.add(i.call(u,this.source)):u.add(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!u.syncErrorThrowable?this._subscribe(u):this._trySubscribe(u)),l.a.useDeprecatedSynchronousErrorHandling&&u.syncErrorThrowable&&(u.syncErrorThrowable=!1,u.syncErrorThrown))throw u.syncErrorValue;return u},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){l.a.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=r),Object(i.a)(e)?e.error(r):console.warn(r)}},e.prototype.forEach=function(e,r){var n=this;return new(r=d(r))(function(r,i){var o;o=n.subscribe(function(r){try{e(r)}catch(e){i(e),o&&o.unsubscribe()}},i,r)})},e.prototype._subscribe=function(e){var r=this.source;return r&&r.subscribe(e)},e.prototype[u.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 0===e.length?this:Object(c.b)(e)(this)},e.prototype.toPromise=function(e){var r=this;return new(e=d(e))(function(e,n){var i;r.subscribe(function(e){return i=e},function(e){return n(e)},function(){return e(i)})})},e.create=function(r){return new e(r)},e}();function d(e){if(e||(e=l.a.Promise||Promise),!e)throw Error("no Promise impl found");return e}},function(e,r,n){"use strict";n.d(r,"a",function(){return u});var i=n(8),o=n(55),s=n(26),a=n(44),u=function(){var e;function r(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}return r.prototype.unsubscribe=function(){var e;if(!this.closed){var n=this._parentOrParents,u=this._ctorUnsubscribe,l=this._unsubscribe,h=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof r)n.remove(this);else if(null!==n)for(var d=0;d<n.length;++d)n[d].remove(this);if(Object(s.a)(l)){u&&(this._unsubscribe=void 0);try{l.call(this)}catch(r){e=r instanceof a.a?c(r.errors):[r]}}if(Object(i.a)(h)){d=-1;for(var f=h.length;++d<f;){var p=h[d];if(Object(o.a)(p))try{p.unsubscribe()}catch(r){e=e||[],r instanceof a.a?e=e.concat(c(r.errors)):e.push(r)}}}if(e)throw new a.a(e)}},r.prototype.add=function(e){var n=e;if(!e)return r.EMPTY;switch(typeof e){case"function":n=new r(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof r)){var i=n;(n=new r)._subscriptions=[i]}break;default:throw Error("unrecognized teardown "+e+" added to Subscription.")}var o=n._parentOrParents;if(null===o)n._parentOrParents=this;else if(o instanceof r){if(o===this)return n;n._parentOrParents=[o,this]}else{if(-1!==o.indexOf(this))return n;o.push(this)}var s=this._subscriptions;return null===s?this._subscriptions=[n]:s.push(n),n},r.prototype.remove=function(e){var r=this._subscriptions;if(r){var n=r.indexOf(e);-1!==n&&r.splice(n,1)}},r.EMPTY=((e=new r).closed=!0,e),r}();function c(e){return e.reduce(function(e,r){return e.concat(r instanceof a.a?r.errors:r)},[])}},function(e,r,n){"use strict";n.r(r),n.d(r,"Component",function(){return E}),n.d(r,"Fragment",function(){return S}),n.d(r,"cloneElement",function(){return U}),n.d(r,"createContext",function(){return W}),n.d(r,"createElement",function(){return v}),n.d(r,"createRef",function(){return w}),n.d(r,"h",function(){return v}),n.d(r,"hydrate",function(){return F}),n.d(r,"isValidElement",function(){return a}),n.d(r,"options",function(){return o}
vendor: 5,285 bytes, line 1
1),n.d(r,"render",function(){return B}),n.d(r,"toChildArray",function(){return function e(r,n){return n=n||[],null==r||"boolean"==typeof r||(b(r)?r.some(function(r){e(r,n)}):n.push(r)),n}});var i,o,s,a,u,c,l,h,d,f={},p=[],y=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,b=Array.isArray;function g(e,r){for(var n in r)e[n]=r[n];return e}function m(e){var r=e.parentNode;r&&r.removeChild(e)}function v(e,r,n){var o,s,a,u={};for(a in r)"key"==a?o=r[a]:"ref"==a?s=r[a]:u[a]=r[a];if(arguments.length>2&&(u.children=arguments.length>3?i.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(a in e.defaultProps)void 0===u[a]&&(u[a]=e.defaultProps[a]);return _(e,u,o,s,null)}function _(e,r,n,i,a){var u={type:e,props:r,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++s:a};return null==a&&null!=o.vnode&&o.vnode(u),u}function w(){return{current:null}}function S(e){return e.children}function E(e,r){this.props=e,this.context=r}function M(e,r){if(null==r)return e.__?M(e.__,e.__.__k.indexOf(e)+1):null;for(var n;r<e.__k.length;r++)if(null!=(n=e.__k[r])&&null!=n.__e)return n.__e;return"function"==typeof e.type?M(e):null}function x(e){(!e.__d&&(e.__d=!0)&&u.push(e)&&!k.__r++||c!==o.debounceRendering)&&((c=o.debounceRendering)||l)(k)}function k(){var e,r,n,i,o,s,a,c,l;for(u.sort(h);e=u.shift();)e.__d&&(r=u.length,i=void 0,o=void 0,s=void 0,c=(a=(n=e).__v).__e,(l=n.__P)&&(i=[],o=[],(s=g({},a)).__v=a.__v+1,N(l,a,s,n.__n,void 0!==l.ownerSVGElement,null!=a.__h?[c]:null,i,null==c?M(a):c,a.__h,o),T(i,a,o),a.__e!=c&&function e(r){var n,i;if(null!=(r=r.__)&&null!=r.__c){for(r.__e=r.__c.base=null,n=0;n<r.__k.length;n++)if(null!=(i=r.__k[n])&&null!=i.__e){r.__e=r.__c.base=i.__e;break}return e(r)}}(a)),u.length>r&&u.sort(h));k.__r=0}function C(e,r,n,i,o,s,a,u,c,l,h){var d,y,g,m,v,w,E,x,k,C=0,I=i&&i.__k||p,O=I.length,j=O,R=r.length;for(n.__k=[],d=0;d<R;d++)null!=(m=n.__k[d]=null==(m=r[d])||"boolean"==typeof m||"function"==typeof m?null:"string"==typeof m||"number"==typeof m||"bigint"==typeof m?_(null,m,null,null,m):b(m)?_(S,{children:m},null,null,null):m.__b>0?_(m.type,m.props,m.key,m.ref?m.ref:null,m.__v):m)?(m.__=n,m.__b=n.__b+1,-1===(x=function(e,r,n,i){var o=e.key,s=e.type,a=n-1,u=n+1,c=r[n];if(null===c||c&&o==c.key&&s===c.type)return n;if(i>(null!=c?1:0))for(;a>=0||u<r.length;){if(a>=0){if((c=r[a])&&o==c.key&&s===c.type)return a;a--}if(u<r.length){if((c=r[u])&&o==c.key&&s===c.type)return u;u++}}return -1}(m,I,E=d+C,j))?g=f:(g=I[x]||f,I[x]=void 0,j--),N(e,m,g,o,s,a,u,c,l,h),v=m.__e,(y=m.ref)&&g.ref!=y&&(g.ref&&P(g.ref,null,m),h.push(y,m.__c||v,m)),null!=v&&(null==w&&(w=v),(k=g===f||null===g.__v)?-1==x&&C--:x!==E&&(x===E+1?C++:x>E?j>R-E?C+=x-E:C--:C=x<E&&x==E-1?x-E:0),E=d+C,"function"!=typeof m.type||x===E&&g.__k!==m.__k?"function"!=typeof m.type&&(x!==E||k)?c=A(e,v,c):void 0!==m.__d?(c=m.__d,m.__d=void 0):c=v.nextSibling:c=function e(r,n,i){for(var o,s=r.__k,a=0;s&&a<s.length;a++)(o=s[a])&&(o.__=r,n="function"==typeof o.type?e(o,n,i):A(i,o.__e,n));return n}(m,c,e),"function"==typeof n.type&&(n.__d=c))):(g=I[d])&&null==g.key&&g.__e&&(g.__e==c&&(c=M(g)),L(g,g,!1),I[d]=null);for(n.__e=w,d=O;d--;)null!=I[d]&&("function"==typeof n.type&&null!=I[d].__e&&I[d].__e==n.__d&&(n.__d=I[d].__e.nextSibling),L(I[d],I[d]))}function A(e,r,n){return null==n||n.parentNode!==e?e.insertBefore(r,null):r==n&&null!=r.parentNode||e.insertBefore(r,n),r.nextSibling}function I(e,r,n){"-"===r[0]?e.setProperty(r,null==n?"":n):e[r]=null==n?"":"number"!=typeof n||y.test(r)?n:n+"px"}function O(e,r,n,i,o){var s;t:if("style"===r){if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(r in i)n&&r in n||I(e.style,r,"");if(n)for(r in n)i&&n[r]===i[r]||I(e.style,r,n[r])}}else if("o"===r[0]&&"n"===r[1])s=r!==(r=r.replace(/(PointerCapture)$|Capture$/,"$1")),r=r.toLowerCase() in e?r.toLowerCase().slice(2):r.slice(2),e.l||(e.l={}),e.l[r+s]=n,n?i||e.addEventListener(r,s?R:j,s):e.removeEventListener(r,s?R:j,s);else if("dangerouslySetInnerHTML"!==r){if(o)r=r.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==r&&"height"!==r&&"href"!==r&&"list"!==r&&"form"!==r&&"tabIndex"!==r&&"download"!==r&&"rowSpan"!==r&&"colSpan"!==r&&r in e)try{e[r]=null==n?"":n;break t}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==r[4]?e.removeAttribute(r):e.setAttribute(r,n))}}function j(e){return this.l[e.type+!1](o.event?o.event(e):e)}function R(e){return this.l[e.type+!0](o.event?o.event(e):e)}function N(e,r,n,s,a,u,c,l,h,d){var p,y,v,_,w,x,k,A,I,j,R,N,T,P,L,B=r.type;if(void 0!==r.constructor)return null;null!=n.__h&&(h=n.__h,l=r.__e=n.__e,r.__h=null,u=[l]),(p=o.__b)&&p(r);t:if("function"==typeof B)try{if(A=r.props,I=(p=B.contextType)&&s[p.__c],j=p?I?I.props.value:p.__:s,n.__c?k=(y=r.__c=n.__c).__=y.__E:("prototype"in B&&B.prototype.render?r.__c=y=new B(A,j):(r.__c=y=new E(A,j),y.constructor=B,y.render=D),I&&I.sub(y),y.props=A,y.state||(y.state={}),y.context=j,y.__n=s,v=y.__d=!0,y.__h=[],y._sb=[]),null==y.__s&&(y.__s=y.state),null!=B.getDerivedStateFromProps&&(y.__s==y.state&&(y.__s=g({},y.__s)),g(y.__s,B.getDerivedStateFromProps(A,y.__s))),_=y.props,w=y.state,y.__v=r,v)null==B.getDerivedStateFromProps&&null!=y.componentWillMount&&y.c
1omponentWillMount(),null!=y.componentDidMount&&y.__h.push(y.componentDidMount);else{if(null==B.getDerivedStateFromProps&&A!==_&&null!=y.componentWillReceiveProps&&y.componentWillReceiveProps(A,j),!y.__e&&(null!=y.shouldComponentUpdate&&!1===y.shouldComponentUpdate(A,y.__s,j)||r.__v===n.__v)){for(r.__v!==n.__v&&(y.props=A,y.state=y.__s,y.__d=!1),r.__e=n.__e,r.__k=n.__k,r.__k.forEach(function(e){e&&(e.__=r)}),R=0;R<y._sb.length;R++)y.__h.push(y._sb[R]);y._sb=[],y.__h.length&&c.push(y);break t}null!=y.componentWillUpdate&&y.componentWillUpdate(A,y.__s,j),null!=y.componentDidUpdate&&y.__h.push(function(){y.componentDidUpdate(_,w,x)})}if(y.context=j,y.props=A,y.__P=e,y.__e=!1,N=o.__r,T=0,"prototype"in B&&B.prototype.render){for(y.state=y.__s,y.__d=!1,N&&N(r),p=y.render(y.props,y.state,y.context),P=0;P<y._sb.length;P++)y.__h.push(y._sb[P]);y._sb=[]}else do y.__d=!1,N&&N(r),p=y.render(y.props,y.state,y.context),y.state=y.__s;while(y.__d&&++T<25);y.state=y.__s,null!=y.getChildContext&&(s=g(g({},s),y.getChildContext())),v||null==y.getSnapshotBeforeUpdate||(x=y.getSnapshotBeforeUpdate(_,w)),C(e,b(L=null!=p&&p.type===S&&null==p.key?p.props.children:p)?L:[L],r,n,s,a,u,c,l,h,d),y.base=r.__e,r.__h=null,y.__h.length&&c.push(y),k&&(y.__E=y.__=null)}catch(e){r.__v=null,(h||null!=u)&&(r.__e=l,r.__h=!!h,u[u.indexOf(l)]=null),o.__e(e,r,n)}else null==u&&r.__v===n.__v?(r.__k=n.__k,r.__e=n.__e):r.__e=function(e,r,n,o,s,a,u,c,l){var h,d,p,y=n.props,g=r.props,v=r.type,_=0;if("svg"===v&&(s=!0),null!=a){for(;_<a.length;_++)if((h=a[_])&&"setAttribute"in h==!!v&&(v?h.localName===v:3===h.nodeType)){e=h,a[_]=null;break}}if(null==e){if(null===v)return document.createTextNode(g);e=s?document.createElementNS("http://www.w3.org/2000/svg",v):document.createElement(v,g.is&&g),a=null,c=!1}if(null===v)y===g||c&&e.data===g||(e.data=g);else{if(a=a&&i.call(e.childNodes),d=(y=n.props||f).dangerouslySetInnerHTML,p=g.dangerouslySetInnerHTML,!c){if(null!=a)for(y={},_=0;_<e.attributes.length;_++)y[e.attributes[_].name]=e.attributes[_].value;(p||d)&&(p&&(d&&p.__html==d.__html||p.__html===e.innerHTML)||(e.innerHTML=p&&p.__html||""))}if(function(e,r,n,i,o){var s;for(s in n)"children"===s||"key"===s||s in r||O(e,s,null,n[s],i);for(s in r)o&&"function"!=typeof r[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===r[s]||O(e,s,r[s],n[s],i)}(e,g,y,s,c),p)r.__k=[];else if(C(e,b(_=r.props.children)?_:[_],r,n,o,s&&"foreignObject"!==v,a,u,a?a[0]:n.__k&&M(n,0),c,l),null!=a)for(_=a.length;_--;)null!=a[_]&&m(a[_]);c||("value"in g&&void 0!==(_=g.value)&&(_!==e.value||"progress"===v&&!_||"option"===v&&_!==y.value)&&O(e,"value",_,y.value,!1),"checked"in g&&void 0!==(_=g.checked)&&_!==e.checked&&O(e,"checked",_,y.checked,!1))}return e}(n.__e,r,n,s,a,u,c,h,d);(p=o.diffed)&&p(r)}function T(e,r,n){for(var i=0;i<n.length;i++)P(n[i],n[++i],n[++i]);o.__c&&o.__c(r,e),e.some(function(r){try{e=r.__h,r.__h=[],e.some(function(e){e.call(r)})}catch(e){o.__e(e,r.__v)}})}function P(e,r,n){try{"function"==typeof e?e(r):e.current=r}catch(e){o.__e(e,n)}}function L(e,r,n){var i,s;if(o.unmount&&o.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||P(i,null,r)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){o.__e(e,r)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(s=0;s<i.length;s++)i[s]&&L(i[s],r,n||"function"!=typeof e.type);n||null==e.__e||m(e.__e),e.__=e.__e=e.__d=void 0}function D(e,r,n){return this.constructor(e,n)}function B(e,r,n){var s,a,u,c;o.__&&o.__(e,r),a=(s="function"==typeof n)?null:n&&n.__k||r.__k,u=[],c=[],N(r,e=(!s&&n||r).__k=v(S,null,[e]),a||f,f,void 0!==r.ownerSVGElement,!s&&n?[n]:a?null:r.firstChild?i.call(r.childNodes):null,u,!s&&n?n:a?a.__e:r.firstChild,s,c),T(u,e,c)}function F(e,r){B(e,r,F)}function U(e,r,n){var o,s,a,u,c=g({},e.props);for(a in e.type&&e.type.defaultProps&&(u=e.type.defaultProps),r)"key"==a?o=r[a]:"ref"==a?s=r[a]:c[a]=void 0===r[a]&&void 0!==u?u[a]:r[a];return arguments.length>2&&(c.children=arguments.length>3?i.call(arguments,2):n),_(e.type,c,o||e.key,s||e.ref,null)}function W(e,r){var n={__c:r="__cC"+d++,__:e,Consumer:function(e,r){return e.children(r)},Provider:function(e){var n,i;return this.getChildContext||(n=[],(i={})[r]=this,this.getChildContext=function(){return i},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some(function(e){e.__e=!0,x(e)})},this.sub=function(e){n.push(e);var r=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),r&&r.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}i=p.slice,o={__e:function(e,r,n,i){for(var o,s,a;r=r.__;)if((o=r.__c)&&!o.__)try{if((s=o.constructor)&&null!=s.getDerivedStateFromError&&(o.setState(s.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,i||{}),a=o.__d),a)return o.__E=o}catch(r){e=r}throw e}},s=0,a=function(e){return null!=e&&void 0===e.constructor},E.prototype.setState=function(e,r){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=g({},this.state),"function"==typeof e&&(e=e(g({},n),this.props)),e&&g(n,e),null!=e&&this.__v&&(r&&this._sb.push(r),x(this))},E.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),x(this))},E.prototype.render=S,u=[],l="function"==typeof Promise?Promise.prototype.then.bind(Prom
1ise.resolve()):setTimeout,h=function(e,r){return e.__v.__b-r.__v.__b},k.__r=0,d=0},function(e,r,n){"use strict";n.d(r,"b",function(){return h}),n.d(r,"a",function(){return d});var i=n(0),o=n(3),s=n(1),a=n(4),u=n(23),c=n(80),l=n(43),h=function(e){function r(r){var n=e.call(this,r)||this;return n.destination=r,n}return i.a(r,e),r}(s.a),d=function(e){function r(){var r=e.call(this)||this;return r.observers=[],r.closed=!1,r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return i.a(r,e),r.prototype[l.a]=function(){return new h(this)},r.prototype.lift=function(e){var r=new f(this,this);return r.operator=e,r},r.prototype.next=function(e){if(this.closed)throw new u.a;if(!this.isStopped)for(var r=this.observers,n=r.length,i=r.slice(),o=0;o<n;o++)i[o].next(e)},r.prototype.error=function(e){if(this.closed)throw new u.a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var r=this.observers,n=r.length,i=r.slice(),o=0;o<n;o++)i[o].error(e);this.observers.length=0},r.prototype.complete=function(){if(this.closed)throw new u.a;this.isStopped=!0;for(var e=this.observers,r=e.length,n=e.slice(),i=0;i<r;i++)n[i].complete();this.observers.length=0},r.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},r.prototype._trySubscribe=function(r){if(this.closed)throw new u.a;return e.prototype._trySubscribe.call(this,r)},r.prototype._subscribe=function(e){if(this.closed)throw new u.a;return this.hasError?(e.error(this.thrownError),a.a.EMPTY):this.isStopped?(e.complete(),a.a.EMPTY):(this.observers.push(e),new c.a(this,e))},r.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},r.create=function(e,r){return new f(e,r)},r}(o.a),f=function(e){function r(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return i.a(r,e),r.prototype.next=function(e){var r=this.destination;r&&r.next&&r.next(e)},r.prototype.error=function(e){var r=this.destination;r&&r.error&&this.destination.error(e)},r.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},r.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):a.a.EMPTY},r}(d)},function(e,r,n){"use strict";n.d(r,"b",function(){return o}),n.d(r,"a",function(){return s});var i=n(32),o=new(n(30)).a(i.a),s=o},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=Array.isArray||function(e){return e&&"number"==typeof e.length}},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(0),o=n(1);function s(e,r){return function(n){if("function"!=typeof e)throw TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new a(e,r))}}var a=function(){function e(e,r){this.project=e,this.thisArg=r}return e.prototype.call=function(e,r){return r.subscribe(new u(e,this.project,this.thisArg))},e}(),u=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.project=n,o.count=0,o.thisArg=i||o,o}return i.a(r,e),r.prototype._next=function(e){var r;try{r=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(r)},r}(o.a)},function(e,r,n){"use strict";function i(e){return e&&"function"==typeof e.schedule}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";n.d(r,"a",function(){return o}),n.d(r,"b",function(){return s});var i=n(3),o=new i.a(function(e){return e.complete()});function s(e){return e?new i.a(function(r){return e.schedule(function(){return r.complete()})}):o}},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(3),o=n(35),s=n(79);function a(e,r){return r?Object(s.a)(e,r):e instanceof i.a?e:new i.a(Object(o.a)(e))}},function(e,r,n){"use strict";n.d(r,"a",function(){return u});var i=n(0),o=function(e){function r(r,n,i){var o=e.call(this)||this;return o.parent=r,o.outerValue=n,o.outerIndex=i,o.index=0,o}return i.a(r,e),r.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},r.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},r.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},r}(n(1).a),s=n(35),a=n(3);function u(e,r,n,i,u){if(void 0===u&&(u=new o(e,n,i)),!u.closed)return r instanceof a.a?r.subscribe(u):Object(s.a)(r)(u)}},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1);var i=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){t&&Error().stack,i=t},get useDeprecatedSynchronousErrorHandling(){return i}}},function(e,r,n){"use strict";function i(e){return e}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";n.d(r,"a",function(){return o});var i=n(0),o=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i.a(r,e),r.prototype.notifyNext=function(e,r,n,i,o){this.destination.next(r)},r.prototype.notifyError=function(e,r){this.destination.error(e)},r.prototype.notifyComplete=function(e){this.destination.complete()},r}(n(1).a)},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(0),o=n(1);function s(e,r){return function(n){return n.lift(new a(e,r))}}var a=function(){function e(e,r){this.predicate=e,this.thisArg=r}return e.prototype.call=function(e,r){return r.subscribe(new u(e,this.predicate,this.thisArg))},e}(),u=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.predicate=n,o.thisArg=i,o.count=0,o}return i.a(r,e),r.prototype._next=function(e){var r;try{r=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}r&&this.destination.next(e)},r}(o.a)},function(e,r,n){"use strict";n.d(r,"b",function(){return i}),n.d(r,"a",function(){return u});var i,o=n(11),s=n(39),a=n(50);i||(i={});var u=function(){function e(e,r,n){this.kind=e,this.value=r,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,r,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return r&&r(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,r,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,r,n)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Object(s.a)(this.value);case"E":return Object(a.a)(this.error);case"C":return Object(o.b)()}throw Error("unexpected notification kind value")},e.createNext=function(r){return void 0!==r?new e("N",r):e.undefinedValueNotification},e.createError=function(r){return new e("E",void 0,r)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}()},function(e,r,n){"use strict";(function(e){var i=n(128),o=n(129),s=n(130);function a(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function u(e,r){if(a()<r)throw RangeError("Invalid typed array length");return c.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(r)).__proto__=c.prototype:(null===e&&(e=new c(r)),e.length=r),e}function c(e,r,n){if(!(c.TYPED_ARRAY_SUPPORT||this instanceof c))return new c(e,r,n);if("number"==typeof e){if("string"==typeof r)throw Error("If encoding is specified then the first argument must be a string");return d(this,e)}return l(this,e,r,n)}function l(e,r,n,i){if("number"==typeof r)throw TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&r instanceof ArrayBuffer?function(e,r,n,i){if(r.byteLength,n<0||r.byteLength<n)throw RangeError("'offset' is out of bounds");if(r.byteLength<n+(i||0))throw RangeError("'length' is out of bounds");return r=void 0===n&&void 0===i?new Uint8Array(r):void 0===i?new Uint8Array(r,n):new Uint8Array(r,n,i),c.TYPED_ARRAY_SUPPORT?(e=r).__proto__=c.prototype:e=f(e,r),e}(e,r,n,i):"string"==typeof r?function(e,r,n){if("string"==typeof n&&""!==n||(n="utf8"),!c.isEncoding(n))throw TypeError('"encoding" must be a valid string encoding');var i=0|y(r,n),o=(e=u(e,i)).write(r,n);return o!==i&&(e=e.slice(0,o)),e}(e,r,n):function(e,r){if(c.isBuffer(r)){var n,i=0|p(r.length);return 0===(e=u(e,i)).length||r.copy(e,0,0,i),e}if(r){if("undefined"!=typeof ArrayBuffer&&r.buffer instanceof ArrayBuffer||"length"in r)return"number"!=typeof r.length||(n=r.length)!=n?u(e,0):f(e,r);if("Buffer"===r.type&&s(r.data))return f(e,r.data)}throw TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,r)}function h(e){if("number"!=typeof e)throw TypeError('"size" argument must be a number');if(e<0)throw RangeError('"size" argument must not be negative')}function d(e,r){if(h(r),e=u(e,r<0?0:0|p(r)),!c.TYPED_ARRAY_SUPPORT)for(var n=0;n<r;++n)e[n]=0;return e}function f(e,r){var n=r.length<0?0:0|p(r.length);e=u(e,n);for(var i=0;i<n;i+=1)e[i]=255&r[i];return e}function p(e){if(e>=a())throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|e}function y(e,r){if(c.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 13,960 bytes, line 1
1(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(r){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return I(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return O(e).length;default:if(i)return I(e).length;r=(""+r).toLowerCase(),i=!0}}function b(e,r,n){var o,s,a=!1;if((void 0===r||r<0)&&(r=0),r>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0)||(n>>>=0)<=(r>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,r,n){var i,o=e.length;(!r||r<0)&&(r=0),(!n||n<0||n>o)&&(n=o);for(var s="",a=r;a<n;++a)s+=(i=e[a])<16?"0"+i.toString(16):i.toString(16);return s}(this,r,n);case"utf8":case"utf-8":return _(this,r,n);case"ascii":return function(e,r,n){var i="";n=Math.min(e.length,n);for(var o=r;o<n;++o)i+=String.fromCharCode(127&e[o]);return i}(this,r,n);case"latin1":case"binary":return function(e,r,n){var i="";n=Math.min(e.length,n);for(var o=r;o<n;++o)i+=String.fromCharCode(e[o]);return i}(this,r,n);case"base64":return o=r,s=n,0===o&&s===this.length?i.fromByteArray(this):i.fromByteArray(this.slice(o,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,r,n){for(var i=e.slice(r,n),o="",s=0;s<i.length;s+=2)o+=String.fromCharCode(i[s]+256*i[s+1]);return o}(this,r,n);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function g(e,r,n){var i=e[r];e[r]=e[n],e[n]=i}function m(e,r,n,i,o){if(0===e.length)return -1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),isNaN(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return -1;n=e.length-1}else if(n<0){if(!o)return -1;n=0}if("string"==typeof r&&(r=c.from(r,i)),c.isBuffer(r))return 0===r.length?-1:v(e,r,n,i,o);if("number"==typeof r)return r&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,r,n):Uint8Array.prototype.lastIndexOf.call(e,r,n):v(e,[r],n,i,o);throw TypeError("val must be string, number or Buffer")}function v(e,r,n,i,o){var s,a=1,u=e.length,c=r.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||r.length<2)return -1;a=2,u/=2,c/=2,n/=2}function l(e,r){return 1===a?e[r]:e.readUInt16BE(r*a)}if(o){var h=-1;for(s=n;s<u;s++)if(l(e,s)===l(r,-1===h?0:s-h)){if(-1===h&&(h=s),s-h+1===c)return h*a}else -1!==h&&(s-=s-h),h=-1}else for(n+c>u&&(n=u-c),s=n;s>=0;s--){for(var d=!0,f=0;f<c;f++)if(l(e,s+f)!==l(r,f)){d=!1;break}if(d)return s}return -1}function _(e,r,n){n=Math.min(e.length,n);for(var i=[],o=r;o<n;){var s,a,u,c,l=e[o],h=null,d=l>239?4:l>223?3:l>191?2:1;if(o+d<=n)switch(d){case 1:l<128&&(h=l);break;case 2:128==(192&(s=e[o+1]))&&(c=(31&l)<<6|63&s)>127&&(h=c);break;case 3:s=e[o+1],a=e[o+2],128==(192&s)&&128==(192&a)&&(c=(15&l)<<12|(63&s)<<6|63&a)>2047&&(c<55296||c>57343)&&(h=c);break;case 4:s=e[o+1],a=e[o+2],u=e[o+3],128==(192&s)&&128==(192&a)&&128==(192&u)&&(c=(15&l)<<18|(63&s)<<12|(63&a)<<6|63&u)>65535&&c<1114112&&(h=c)}null===h?(h=65533,d=1):h>65535&&(h-=65536,i.push(h>>>10&1023|55296),h=56320|1023&h),i.push(h),o+=d}return function(e){var r=e.length;if(r<=4096)return String.fromCharCode.apply(String,e);for(var n="",i=0;i<r;)n+=String.fromCharCode.apply(String,e.slice(i,i+=4096));return n}(i)}function w(e,r,n){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+r>n)throw RangeError("Trying to access beyond buffer length")}function S(e,r,n,i,o,s){if(!c.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(r>o||r<s)throw RangeError('"value" argument is out of bounds');if(n+i>e.length)throw RangeError("Index out of range")}function E(e,r,n,i){r<0&&(r=65535+r+1);for(var o=0,s=Math.min(e.length-n,2);o<s;++o)e[n+o]=(r&255<<8*(i?o:1-o))>>>8*(i?o:1-o)}function M(e,r,n,i){r<0&&(r=4294967295+r+1);for(var o=0,s=Math.min(e.length-n,4);o<s;++o)e[n+o]=r>>>8*(i?o:3-o)&255}function x(e,r,n,i,o,s){if(n+i>e.length||n<0)throw RangeError("Index out of range")}function k(e,r,n,i,s){return s||x(e,0,n,4),o.write(e,r,n,i,23,4),n+4}function C(e,r,n,i,s){return s||x(e,0,n,8),o.write(e,r,n,i,52,8),n+8}r.Buffer=c,r.SlowBuffer=function(e){return+e!=e&&(e=0),c.alloc(+e)},r.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),r.kMaxLength=a(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,r,n){return l(null,e,r,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,r,n){return h(e),e<=0?u(null,e):void 0!==r?"string"==typeof n?u(null,e).fill(r,n):u(null,e).fill(r):u(null,e)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,r){if(!c.isBuffer(e)||!c.isBuffer(r))throw TypeError("Arguments must be Buffers");if(e===r)return 0;for(var n=e.length,i=r.length,o=0,s=Math.min(n,i);o<s;++o)if(e[o]!==r[o]){n=e[o],i=r[o];break}return n<i?-1:i<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(e,r){if(!s(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);if(void 0===r)for(r=0,n=0;n<e.length;++n)r+=e[n].length;var n,i=c.allocUnsafe(r),o=0;for(n=0;n<e.length;++n){var a=e[n];if(!c.isBuffer(a))throw TypeError('"list" argument must be an Array of Buffers');a.copy(i,o),o+=a.length}return i},c.byteLength=y,c.prototype._isBuffer=!0,c.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var r=0;r<e;r+=2)g(this,r,r+1);return this},c.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var r=0;r<e;r+=4)g(this,r,r+3),g(this,r+1,r+2);return this},c.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var r=0;r<e;r+=8)g(this,r,r+7),g(this,r+1,r+6),g(this,r+2,r+5),g(this,r+3,r+4);return this},c.prototype.toString=function(){var e=0|this.length;return 0===e?"":0==arguments.length?_(this,0,e):b.apply(this,arguments)},c.prototype.equals=function(e){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){var e="",n=r.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},c.prototype.compare=function(e,r,n,i,o){if(!c.isBuffer(e))throw TypeError("Argument must be a Buffer");if(void 0===r&&(r=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),r<0||n>e.length||i<0||o>this.length)throw RangeError("out of range index");if(i>=o&&r>=n)return 0;if(i>=o)return -1;if(r>=n)return 1;if(this===e)return 0;for(var s=(o>>>=0)-(i>>>=0),a=(n>>>=0)-(r>>>=0),u=Math.min(s,a),l=this.slice(i,o),h=e.slice(r,n),d=0;d<u;++d)if(l[d]!==h[d]){s=l[d],a=h[d];break}return s<a?-1:a<s?1:0},c.prototype.includes=function(e,r,n){return -1!==this.indexOf(e,r,n)},c.prototype.indexOf=function(e,r,n){return m(this,e,r,n,!0)},c.prototype.lastIndexOf=function(e,r,n){return m(this,e,r,n,!1)},c.prototype.write=function(e,r,n,i){if(void 0===r)i="utf8",n=this.length,r=0;else if(void 0===n&&"string"==typeof r)i=r,n=this.length,r=0;else{if(!isFinite(r))throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");r|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var o,s,a,u,c,l,h,d,f,p,y=this.length-r;if((void 0===n||n>y)&&(n=y),e.length>0&&(n<0||r<0)||r>this.length)throw RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var b=!1;;)switch(i){case"hex":return function(e,r,n,i){n=Number(n)||0;var o=e.length-n;i?(i=Number(i))>o&&(i=o):i=o;var s=r.length;if(s%2!=0)throw TypeError("Invalid hex string");i>s/2&&(i=s/2);for(var a=0;a<i;++a){var u=parseInt(r.substr(2*a,2),16);if(isNaN(u))break;e[n+a]=u}return a}(this,e,r,n);case"utf8":case"utf-8":return c=r,l=n,j(I(e,this.length-c),this,c,l);case"ascii":case"latin1":case"binary":return o=this,s=e,a=r,u=n,j(function(e){for(var r=[],n=0;n<e.length;++n)r.push(255&e.charCodeAt(n));return r}(s),o,a,u);case"base64":return h=r,d=n,j(O(e),this,h,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f=r,p=n,j(function(e,r){for(var n,i,o=[],s=0;s<e.length&&!((r-=2)<0);++s)i=(n=e.charCodeAt(s))>>8,o.push(n%256),o.push(i);return o}(e,this.length-f),this,f,p);default:if(b)throw TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),b=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},c.prototype.slice=function(e,r){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(r=void 0===r?i:~~r)<0?(r+=i)<0&&(r=0):r>i&&(r=i),r<e&&(r=e),c.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,r)).__proto__=c.prototype;else{var o=r-e;n=new c(o,void 0);for(var s=0;s<o;++s)n[s]=this[s+e]}return n},c.prototype.readUIntLE=function(e,r,n){e|=0,r|=0,n||w(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i},c.prototype.readUIntBE=function(e,r,n){e|=0,r|=0,n||w(e,r,this.length);for(var i=this[e+--r],o=1;r>0&&(o*=256);)i+=this[e+--r]*o;return i},c.prototype.readUInt8=function(e,r){return r||w(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,r){return r||w(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,r){return r||w(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,r){return r||w(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,r){return r||w(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,r,n){e|=0,r|=0,n||w(e,r,this.length);for(var i=this[e],o=1,s=0;++s<r&&(o*=256);)i+=this[e+s]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*r)),i},c.prototype.readIntBE=function(e,r,n){e|=0,r|=0,n||w(e,r,this.length);for(var i=r,o=1,s=this[e+--i];i>0&&(o*=256);)s+=this[e+--i]*o;return s>=(o*=128)&&(s-=Math.pow(2,8*r)),s},c.prototype.readInt8=function(e,r){return r||w(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,r){r||w(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,r){r||w(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,r){return r||w(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,r){return r||w(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,r){return r||w(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,r){return r||w(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,r){return r||w(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,r){return r||w(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,r,n,i){e=+e,r|=0,n|=0,i||S(this,e,r,n,Math.pow(2,8*n)-1,0);var o=1,s=0;for(this[r]=255&e;++s<n&&(o*=256);)this[r+s]=e/o&255;return r+n},c.prototype.writeUIntBE=function(e,r,n,i){e=+e,r|=0,n|=0,i||S(this,e,r,n,Math.pow(2,8*n)-1,0);var o=n-1,s=1;for(this[r+o]=255&e;--o>=0&&(s*=256);)this[r+o]=e/s&255;return r+n},c.prototype.writeUInt8=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[r]=255&e,r+1},c.prototype.writeUInt16LE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):E(this,e,r,!0),r+2},c.prototype.writeUInt16BE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):E(this,e,r,!1),r+2},c.prototype.writeUInt32LE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=255&e):M(this,e,r,!0),r+4},c.prototype.writeUInt32BE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):M(this,e,r,!1),r+4},c.prototype.writeIntLE=function(e,r,n,i){if(e=+e,r|=0,!i){var o=Math.pow(2,8*n-1);S(this,e,r,n,o-1,-o)}var s=0,a=1,u=0;for(this[r]=255&e;++s<n&&(a*=256);)e<0&&0===u&&0!==this[r+s-1]&&(u=1),this[r+s]=(e/a>>0)-u&255;return r+n},c.prototype.writeIntBE=function(e,r,n,i){if(e=+e,r|=0,!i){var o=Math.pow(2,8*n-1);S(this,e,r,n,o-1,-o)}var s=n-1,a=1,u=0;for(this[r+s]=255&e;--s>=0&&(a*=256);)e<0&&0===u&&0!==this[r+s+1]&&(u=1),this[r+s]=(e/a>>0)-u&255;return r+n},c.prototype.writeInt8=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[r]=255&e,r+1},c.prototype.writeInt16LE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8):E(this,e,r,!0),r+2},c.prototype.writeInt16BE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[r]=e>>>8,this[r+1]=255&e):E(this,e,r,!1),r+2},c.prototype.writeInt32LE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,4,2147483647,-2147483648),
1c.TYPED_ARRAY_SUPPORT?(this[r]=255&e,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24):M(this,e,r,!0),r+4},c.prototype.writeInt32BE=function(e,r,n){return e=+e,r|=0,n||S(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=255&e):M(this,e,r,!1),r+4},c.prototype.writeFloatLE=function(e,r,n){return k(this,e,r,!0,n)},c.prototype.writeFloatBE=function(e,r,n){return k(this,e,r,!1,n)},c.prototype.writeDoubleLE=function(e,r,n){return C(this,e,r,!0,n)},c.prototype.writeDoubleBE=function(e,r,n){return C(this,e,r,!1,n)},c.prototype.copy=function(e,r,n,i){if(n||(n=0),i||0===i||(i=this.length),r>=e.length&&(r=e.length),r||(r=0),i>0&&i<n&&(i=n),i===n||0===e.length||0===this.length)return 0;if(r<0)throw RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw RangeError("sourceStart out of bounds");if(i<0)throw RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-r<i-n&&(i=e.length-r+n);var o,s=i-n;if(this===e&&n<r&&r<i)for(o=s-1;o>=0;--o)e[o+r]=this[o+n];else if(s<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o<s;++o)e[o+r]=this[o+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+s),r);return s},c.prototype.fill=function(e,r,n,i){if("string"==typeof e){if("string"==typeof r?(i=r,r=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var o,s=e.charCodeAt(0);s<256&&(e=s)}if(void 0!==i&&"string"!=typeof i)throw TypeError("encoding must be a string");if("string"==typeof i&&!c.isEncoding(i))throw TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(r<0||this.length<r||this.length<n)throw RangeError("Out of range index");if(n<=r)return this;if(r>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(o=r;o<n;++o)this[o]=e;else{var a=c.isBuffer(e)?e:I(new c(e,i).toString()),u=a.length;for(o=0;o<n-r;++o)this[o+r]=a[o%u]}return this};var A=/[^+\/0-9A-Za-z-_]/g;function I(e,r){var n;r=r||1/0;for(var i=e.length,o=null,s=[],a=0;a<i;++a){if((n=e.charCodeAt(a))>55295&&n<57344){if(!o){if(n>56319||a+1===i){(r-=3)>-1&&s.push(239,191,189);continue}o=n;continue}if(n<56320){(r-=3)>-1&&s.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(r-=3)>-1&&s.push(239,191,189);if(o=null,n<128){if((r-=1)<0)break;s.push(n)}else if(n<2048){if((r-=2)<0)break;s.push(n>>6|192,63&n|128)}else if(n<65536){if((r-=3)<0)break;s.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw Error("Invalid code point");if((r-=4)<0)break;s.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return s}function O(e){return i.toByteArray(function(e){var r;if((e=((r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"")).replace(A,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function j(e,r,n,i){for(var o=0;o<i&&!(o+n>=r.length||o>=e.length);++o)r[o+n]=e[o];return o}}).call(this,n(63))},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(e,r,n){"use strict";function i(){}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,r){"function"==typeof Object.create?e.exports=function(e,r){r&&(e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,r){if(r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}}},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=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}()},function(e,r,n){"use strict";function i(e){return"function"==typeof e}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=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}()},function(e,r,n){"use strict";n.d(r,"b",function(){return u}),n.d(r,"a",function(){return h});var i=n(0),o=n(9),s=n(12),a=n(2);function u(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?function(i){return i.pipe(u(function(n,i){return Object(s.a)(e(n,i)).pipe(Object(o.a)(function(e,o){return r(n,e,i,o)}))},n))}:("number"==typeof r&&(n=r),function(r){return r.lift(new c(e,n))})}var c=function(){function e(e,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=r}return e.prototype.call=function(e,r){return r.subscribe(new l(e,this.project,this.concurrent))},e}(),l=function(e){function r(r,n,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var o=e.call(this,r)||this;return o.project=n,o.concurrent=i,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return i.a(r,e),r.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},r.prototype._tryNext=function(e){var r,n=this.index++;try{r=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(r)},r.prototype._innerSub=function(e){var r=new a.a(this),n=this.destination;n.add(r);var i=Object(a.c)(e,r);i!==r&&n.add(i)},r.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},r.prototype.notifyNext=function(e){this.destination.next(e)},r.prototype.notifyComplete=function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},r}(a.b),h=u},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(3),o=n(81),s=n(57);function a(e,r){return r?Object(s.a)(e,r):new i.a(Object(o.a)(e))}},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(0),o=n(62),s=function(e){function r(n,i){void 0===i&&(i=o.a.now);var s=e.call(this,n,function(){return r.delegate&&r.delegate!==s?r.delegate.now():i()})||this;return s.actions=[],s.active=!1,s.scheduled=void 0,s}return i.a(r,e),r.prototype.schedule=function(n,i,o){return void 0===i&&(i=0),r.delegate&&r.delegate!==this?r.delegate.schedule(n,i,o):e.prototype.schedule.call(this,n,i,o)},r.prototype.flush=function(e){var r,n=this.actions;if(this.active)n.push(e);else{this.active=!0;do if(r=e.execute(e.state,e.delay))break;while(e=n.shift());if(this.active=!1,r){for(;e=n.shift();)e.unsubscribe();throw r}}},r}(o.a)},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(0),o=n(6),s=n(4),a=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.value=null,r.hasNext=!1,r.hasCompleted=!1,r}return i.a(r,e),r.prototype._subscribe=function(r){return this.hasError?(r.error(this.thrownError),s.a.EMPTY):this.hasCompleted&&this.hasNext?(r.next(this.value),r.complete(),s.a.EMPTY):e.prototype._subscribe.call(this,r)},r.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},r.prototype.error=function(r){this.hasCompleted||e.prototype.error.call(this,r)},r.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},r}(o.a)},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1);var i=n(0),o=function(e){function r(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i.pending=!1,i}return i.a(r,e),r.prototype.schedule=function(e,r){if(void 0===r&&(r=0),this.closed)return this;this.state=e;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,r)),this.pending=!0,this.delay=r,this.id=this.id||this.requestAsyncId(i,this.id,r),this},r.prototype.requestAsyncId=function(e,r,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},r.prototype.recycleAsyncId=function(e,r,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return r;clearInterval(r)},r.prototype.execute=function(e,r){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,r);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(e,r){var n=!1,i=void 0;try{this.work(e)}catch(e){n=!0,i=!!e&&e||Error(e)}if(n)return this.unsubscribe(),i},r.prototype._unsubscribe=function(){var e=this.id,r=this.scheduler,n=r.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=e&&(this.id=this.recycleAsyncId(r,e,null)),this.delay=null},r}(function(e){function r(r,n){return e.call(this)||this}return i.a(r,e),r.prototype.schedule=function(e,r){return void 0===r&&(r=0),this},r}(n(4).a))},function(e,r,n){"use strict";n.d(r,"a",function(){return o});var i=n(8);function o(e){return!Object(i.a)(e)&&e-parseFloat(e)+1>=0}},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(39),o=n(75);function s(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return Object(o.a)()(i.a.apply(void 0,e))}},function(e,r,n){"use strict";n.d(r,"a",function(){return h});var i=n(81),o=n(36),s=n(20),a=n(22),u=n(82),c=n(83),l=n(55),h=function(e){if(e&&"function"==typeof e[a.a])return function(r){var n=e[a.a]();if("function"!=typeof n.subscribe)throw TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(r)};if(Object(u.a)(e))return Object(i.a)(e);if(Object(c.a)(e))return function(r){return e.then(function(e){r.closed||(r.next(e),r.complete())},function(e){return r.error(e)}).then(null,o.a),r};if(e&&"function"==typeof e[s.a])return function(r){for(var n=e[s.a]();;){var i=void 0;try{i=n.next()}catch(e){return r.error(e),r}if(i.done){r.complete();break}if(r.next(i.value),r.closed)break}return"function"==typeof n.return&&r.add(function(){n.return&&n.return()}),r};throw TypeError("You provided "+(Object(l.a)(e)?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")}},function(e,r,n){"use strict";function i(e){setTimeout(function(){throw e},0)}n.d(r,"a",function(){return i})},function(e,r,n){var i=n(19),o=i.Buffer;function s(e,r){for(var n in e)r[n]=e[n]}function a(e,r,n){return o(e,r,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?e.exports=i:(s(i,r),r.Buffer=a),a.prototype=Object.create(o.prototype),s(o,a),a.from=function(e,r,n){if("number"==typeof e)throw TypeError("Argument must not be a number");return o(e,r,n)},a.alloc=function(e,r,n){if("number"!=typeof e)throw TypeError("Argument must be a number");var i=o(e);return void 0!==r?"string"==typeof n?i.fill(r,n):i.fill(r):i.fill(0),i},a.allocUnsafe=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return o(e)},a.allocUnsafeSlow=function(e){if("number"!=typeof e)throw TypeError("Argument must be a number");return i.SlowBuffer(e)}},function(e,r,n){"use strict";(function(e){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.isInIFrame=r.createQrUrl=r.getFavicon=r.range=r.isBigNumber=r.ensureParsedJSONObject=r.ensureBN=r.ensureRegExpString=r.ensureIntNumber=r.ensureBuffer=r.ensureAddressString=r.ensureEvenLengthHexString=r.ensureHexString=r.isHexString=r.prepend0x=r.strip0x=r.has0xPrefix=r.hexStringFromIntNumber=r.intNumberFromHexString=r.bigIntStringFromBN=r.hexStringFromBuffer=r.hexStringToUint8Array=r.uint8ArrayToHex=r.randomBytesHex=void 0;let o=i(n(66)),s=n(139),a=n(67),u=/^[0-9]*$/,c=/^[a-f0-9]*$/;function l(e){return[...e].map(e=>e.toString(16).padStart(2,"0")).join("")}function h(e){return e.startsWith("0x")||e.startsWith("0X")}function d(e){return h(e)?e.slice(2):e}function f(e){return h(e)?"0x"+e.slice(2):"0x"+e}function p(e){if("string"!=typeof e)return!1;let r=d(e).toLowerCase();return c.test(r)}function y(e,r=!1){if("string"==typeof e){let n=d(e).toLowerCase();if(c.test(n))return(0,a.HexString)(r?"0x"+n:n)}throw Error(`"${String(e)}" is not a hexadecimal string`)}function b(e,r=!1){let n=y(e,!1);return n.length%2==1&&(n=(0,a.HexString)("0"+n)),r?(0,a.HexString)("0x"+n):n}function g(e){if("number"==typeof e&&Number.isInteger(e))return(0,a.IntNumber)(e);if("string"==typeof e){if(u.test(e))return(0,a.IntNumber)(Number(e));if(p(e))return(0,a.IntNumber)(new o.default(b(e,!1),16).toNumber())}throw Error("Not an integer: "+String(e))}function m(e){if(null==e||"function"!=typeof e.constructor)return!1;let{constructor:r}=e;
1return"function"==typeof r.config&&"number"==typeof r.EUCLID}r.randomBytesHex=function(e){return l(crypto.getRandomValues(new Uint8Array(e)))},r.uint8ArrayToHex=l,r.hexStringToUint8Array=function(e){return new Uint8Array(e.match(/.{1,2}/g).map(e=>parseInt(e,16)))},r.hexStringFromBuffer=function(e,r=!1){let n=e.toString("hex");return(0,a.HexString)(r?"0x"+n:n)},r.bigIntStringFromBN=function(e){return(0,a.BigIntString)(e.toString(10))},r.intNumberFromHexString=function(e){return(0,a.IntNumber)(new o.default(b(e,!1),16).toNumber())},r.hexStringFromIntNumber=function(e){return(0,a.HexString)("0x"+new o.default(e).toString(16))},r.has0xPrefix=h,r.strip0x=d,r.prepend0x=f,r.isHexString=p,r.ensureHexString=y,r.ensureEvenLengthHexString=b,r.ensureAddressString=function(e){if("string"==typeof e){let r=d(e).toLowerCase();if(p(r)&&40===r.length)return(0,a.AddressString)(f(r))}throw Error("Invalid Ethereum address: "+String(e))},r.ensureBuffer=function(r){if(e.isBuffer(r))return r;if("string"==typeof r){if(p(r)){let n=b(r,!1);return e.from(n,"hex")}return e.from(r,"utf8")}throw Error("Not binary data: "+String(r))},r.ensureIntNumber=g,r.ensureRegExpString=function(e){if(e instanceof RegExp)return(0,a.RegExpString)(e.toString());throw Error("Not a RegExp: "+String(e))},r.ensureBN=function(e){if(null!==e&&(o.default.isBN(e)||m(e)))return new o.default(e.toString(10),10);if("number"==typeof e)return new o.default(g(e));if("string"==typeof e){if(u.test(e))return new o.default(e,10);if(p(e))return new o.default(b(e,!1),16)}throw Error("Not an integer: "+String(e))},r.ensureParsedJSONObject=function(e){if("string"==typeof e)return JSON.parse(e);if("object"==typeof e)return e;throw Error("Not a JSON string or an object: "+String(e))},r.isBigNumber=m,r.range=function(e,r){return Array.from({length:r-e},(r,n)=>e+n)},r.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:r,host:n}=document.location,i=e?e.getAttribute("href"):null;return!i||i.startsWith("javascript:")?null:i.startsWith("http://")||i.startsWith("https://")||i.startsWith("data:")?i:i.startsWith("//")?r+i:`${r}//${n}${i}`},r.createQrUrl=function(e,r,n,i,o,a){return`${n}/#/link?${(0,s.stringify)({[i?"parent-id":"id"]:e,secret:r,server:n,v:o,chainId:a})}`},r.isInIFrame=function(){try{return null!==window.frameElement}catch(e){return!1}}}).call(this,n(19).Buffer)},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(10),o=n(29),s=n(57);function a(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[e.length-1];return Object(i.a)(n)?(e.pop(),Object(s.a)(e,n)):Object(o.a)(e)}},function(e,r){var n,i,o=e.exports={};function s(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function u(e){if(n===setTimeout)return setTimeout(e,0);if((n===s||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(r){try{return n.call(null,e,0)}catch(r){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:s}catch(e){n=s}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,l=[],h=!1,d=-1;function f(){h&&c&&(h=!1,c.length?l=c.concat(l):d=-1,l.length&&p())}function p(){if(!h){var e=u(f);h=!0;for(var r=l.length;r;){for(c=l,l=[];++d<r;)c&&c[d].run();d=-1,r=l.length}c=null,h=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(r){try{return i.call(null,e)}catch(r){return i.call(this,e)}}}(e)}}function y(e,r){this.fun=e,this.array=r}function b(){}o.nextTick=function(e){var r=Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)r[n-1]=arguments[n];l.push(new y(e,r)),1!==l.length||h||u(p)},y.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=b,o.addListener=b,o.once=b,o.off=b,o.removeListener=b,o.removeAllListeners=b,o.emit=b,o.prependListener=b,o.prependOnceListener=b,o.listeners=function(e){return[]},o.binding=function(e){throw Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1),n.d(r,"b",function(){return s});var i=n(15);function o(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return s(e)}function s(e){return 0===e.length?i.a:1===e.length?e[0]:function(r){return e.reduce(function(e,r){return r(e)},r)}}},function(e,r,n){"use strict";n.d(r,"b",function(){return d}),n.d(r,"a",function(){return f});var i=n(0),o=1,s=Promise.resolve(),a={};function u(e){return e in a&&(delete a[e],!0)}var c=function(e){var r=o++;return a[r]=!0,s.then(function(){return u(r)&&e()}),r},l=function(e){u(e)},h=function(e){function r(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return i.a(r,e),r.prototype.requestAsyncId=function(r,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=c(r.flush.bind(r,null))))},r.prototype.recycleAsyncId=function(r,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);0===r.actions.length&&(l(n),r.scheduled=void 0)},r}(n(32).a),d=new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i.a(r,e),r.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var r,n=this.actions,i=-1,o=n.length;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while(++i<o&&(e=n.shift()));if(this.active=!1,r){for(;++i<o&&(e=n.shift());)e.unsubscribe();throw r}},r}(n(30).a))(h),f=d},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random()},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(){function e(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,r){return r+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}()},function(e,r,n){var i=n(37).Buffer;function o(e,r){this._block=i.alloc(e),this._finalSize=r,this._blockSize=e,this._len=0}o.prototype.update=function(e,r){"string"==typeof e&&(r=r||"utf8",e=i.from(e,r));for(var n=this._block,o=this._blockSize,s=e.length,a=this._len,u=0;u<s;){for(var c=a%o,l=Math.min(s-u,o-c),h=0;h<l;h++)n[c+h]=e[u+h];u+=l,(a+=l)%o==0&&this._update(n)}return this._len+=s,this},o.prototype.digest=function(e){var r=this._len%this._blockSize;this._block[r]=128,this._block.fill(0,r+1),r>=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0;this._block.writeUInt32BE((n-i)/4294967296,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var o=this._hash();return e?o.toString(e):o},o.prototype._update=function(){throw Error("_update must be implemented by subclass")},e.exports=o},function(e,r,n){"use strict";var i={};function o(e,r,n){n||(n=Error);var o=function(e){function n(n,i,o){return e.call(this,"string"==typeof r?r:r(n,i,o))||this}return n.prototype=Object.create(e.prototype),n.prototype.constructor=n,n.__proto__=e,n}(n);o.prototype.name=n.name,o.prototype.code=e,i[e]=o}function s(e,r){if(Array.isArray(e)){var n=e.length;return e=e.map(function(e){return String(e)}),n>2?"one of ".concat(r," ").concat(e.slice(0,n-1).join(", "),", or ")+e[n-1]:2===n?"one of ".concat(r," ").concat(e[0]," or ").concat(e[1]):"of ".concat(r," ").concat(e[0])}return"of ".concat(r," ").concat(String(e))}o("ERR_INVALID_OPT_VALUE",function(e,r){return'The value "'+r+'" is invalid for option "'+e+'"'},TypeError),o("ERR_INVALID_ARG_TYPE",function(e,r,n){if("string"==typeof r&&(o="not ",r.substr(!a||a<0?0:+a,o.length)===o)?(i="must not be",r=r.replace(/^not /,"")):i="must be",c=" argument",(void 0===l||l>e.length)&&(l=e.length),e.substring(l-c.length,l)===c)u="The ".concat(e," ").concat(i," ").concat(s(r,"type"));else{var i,o,a,u,c,l,h,d=("number"!=typeof h&&(h=0),h+1>e.length||-1===e.indexOf(".",h))?"argument":"property";u='The "'.concat(e,'" ').concat(d," ").concat(i," ").concat(s(r,"type"))}return u+". Received type ".concat(typeof n)},TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENT
1ED",function(e){return"The "+e+" method is not implemented"}),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",function(e){return"Cannot call "+e+" after a stream was destroyed"}),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",function(e){return"Unknown encoding: "+e},TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),e.exports.codes=i},function(e,r,n){"use strict";(function(r){var i=Object.keys||function(e){var r=[];for(var n in e)r.push(n);return r};e.exports=l;var o=n(111),s=n(115);n(24)(l,o);for(var a=i(s.prototype),u=0;u<a.length;u++){var c=a[u];l.prototype[c]||(l.prototype[c]=s.prototype[c])}function l(e){if(!(this instanceof l))return new l(e);o.call(this,e),s.call(this,e),this.allowHalfOpen=!0,e&&(!1===e.readable&&(this.readable=!1),!1===e.writable&&(this.writable=!1),!1===e.allowHalfOpen&&(this.allowHalfOpen=!1,this.once("end",h)))}function h(){this._writableState.ended||r.nextTick(d,this)}function d(e){e.end()}Object.defineProperty(l.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),Object.defineProperty(l.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(l.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(l.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&this._readableState.destroyed&&this._writableState.destroyed},set:function(e){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=e,this._writableState.destroyed=e)}})}).call(this,n(40))},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(0),o=n(1);function s(){return function(e){return e.lift(new a(e))}}var a=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,r){var n=this.connectable;n._refCount++;var i=new u(e,n),o=r.subscribe(i);return i.closed||(i.connection=n.connect()),o},e}(),u=function(e){function r(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return i.a(r,e),r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var r=e._refCount;if(r<=0)this.connection=null;else if(e._refCount=r-1,r>1)this.connection=null;else{var n=this.connection,i=e._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},r}(o.a)},function(e,r,n){"use strict";n.d(r,"a",function(){return h});var i=n(0),o=n(6),s=n(61),a=n(4),u=n(73),c=n(23),l=n(80),h=function(e){function r(r,n,i){void 0===r&&(r=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=i,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=r<1?1:r,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return i.a(r,e),r.prototype.nextInfiniteTimeWindow=function(r){if(!this.isStopped){var n=this._events;n.push(r),n.length>this._bufferSize&&n.shift()}e.prototype.next.call(this,r)},r.prototype.nextTimeWindow=function(r){this.isStopped||(this._events.push(new d(this._getNow(),r)),this._trimBufferThenGetEvents()),e.prototype.next.call(this,r)},r.prototype._subscribe=function(e){var r,n=this._infiniteTimeWindow,i=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,s=i.length;if(this.closed)throw new c.a;if(this.isStopped||this.hasError?r=a.a.EMPTY:(this.observers.push(e),r=new l.a(this,e)),o&&e.add(e=new u.a(e,o)),n)for(var h=0;h<s&&!e.closed;h++)e.next(i[h]);else for(h=0;h<s&&!e.closed;h++)e.next(i[h].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),r},r.prototype._getNow=function(){return(this.scheduler||s.a).now()},r.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),r=this._bufferSize,n=this._windowTime,i=this._events,o=i.length,s=0;s<o&&!(e-i[s].time<n);)s++;return o>r&&(s=Math.max(s,o-r)),s>0&&i.splice(0,s),i},r}(o.a),d=function(e,r){this.time=e,this.value=r}},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1);var i=n(3);function o(e,r){return new i.a(r?function(n){return r.schedule(s,0,{error:e,subscriber:n})}:function(r){return r.error(e)})}function s(e){var r=e.error;e.subscriber.error(r)}},function(e,r,n){"use strict";n.d(r,"b",function(){return h}),n.d(r,"a",function(){return d});var i=n(0),o=n(10),s=n(8),a=n(16),u=n(13),c=n(29),l={};function h(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=void 0,i=void 0;return Object(o.a)(e[e.length-1])&&(i=e.pop()),"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(s.a)(e[0])&&(e=e[0]),Object(c.a)(e,i).lift(new d(n))}var d=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new f(e,this.resultSelector))},e}(),f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.resultSelector=n,i.active=0,i.values=[],i.observables=[],i}return i.a(r,e),r.prototype._next=function(e){this.values.push(l),this.observables.push(e)},r.prototype._complete=function(){var e=this.observables,r=e.length;if(0===r)this.destination.complete();else{this.active=r,this.toRespond=r;for(var n=0;n<r;n++){var i=e[n];this.add(Object(u.a)(this,i,void 0,n))}}},r.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},r.prototype.notifyNext=function(e,r,n){var i=this.values,o=i[n],s=this.toRespond?o===l?--this.toRespond:this.toRespond:0;i[n]=r,0===s&&(this.resultSelector?this._tryResultSelector(i):this.destination.next(i.slice()))},r.prototype._tryResultSelector=function(e){var r;try{r=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(r)},r}(a.a)},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(28),o=n(15);function s(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),Object(i.b)(o.a,e)}},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(3),o=n(12),s=n(11);function a(e){return new i.a(function(r){var n;try{n=e()}catch(e){return void r.error(e)}return(n?Object(o.a)(n):Object(s.b)()).subscribe(r)})}},function(e,r,n){"use strict";n.d(r,"b",function(){return l}),n.d(r,"a",function(){return h});var i=n(0),o=n(29),s=n(8),a=n(1),u=n(20),c=n(2);function l(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[e.length-1];return"function"==typeof n&&e.pop(),Object(o.a)(e,void 0).lift(new h(n))}var h=function(){function e(e){this.resultSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new d(e,this.resultSelector))},e}(),d=function(e){function r(r,n,i){void 0===i&&(i=Object.create(null));var o=e.call(this,r)||this;return o.resultSelector=n,o.iterators=[],o.active=0,o.resultSelector="function"==typeof n?n:void 0,o}return i.a(r,e),r.prototype._next=function(e){var r=this.iterators;Object(s.a)(e)?r.push(new p(e)):"function"==typeof e[u.a]?r.push(new f(e[u.a]())):r.push(new y(this.destination,this,e))},r.prototype._complete=function(){var e=this.iterators,r=e.length;if(this.unsubscribe(),0!==r){this.active=r;for(var n=0;n<r;n++){var i=e[n];i.stillUnsubscribed?this.destination.add(i.subscribe()):this.active--}}else this.destination.complete()},r.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},r.prototype.checkIterators=function(){for(var e=this.iterators,r=e.length,n=this.destination,i=0;i<r;i++)if("function"==typeof(a=e[i]).hasValue&&!a.hasValue())return;var o=!1,s=[];for(i=0;i<r;i++){var a,u=(a=e[i]).next();if(a.hasCompleted()&&(o=!0),u.done)return void n.complete();s.push(u.value)}this.resultSelector?this._tryresultSelector(s):n.next(s),o&&n.complete()},r.prototype._tryresultSelector=function(e){var r;try{r=this.resultSelector.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(r)},r}(a.a),f=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}(),p=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[u.a]=function(){return this},e.prototype.next=function(e){var r=this.index++,n=this.array;return r<this.length?{value:n[r],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}(),y=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.parent=n,o.observable=i,o.stillUnsubscribed=!0,o.buffer=[],o.isComplete=!1,o}return i.a(r,e),r.prototype[u.a]=function(){return this},r.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},r.prototype.hasValue=function(){return this.buffer.length>0},r.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},r.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},r.prototype.notifyNext=function(e){this.buffer.push(e),this.parent.checkIterators()},r.prototype.subscribe=function(){return Object(c.c)(this.observable,new c.a(this))},r}(c.b)},function(e,r,n){"use strict";function i(e){return null!==e&&"object"==typeof e}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1);var i=n(1);function o(e){for(;e;){var r=e,n=r.closed,o=r.destination,s=r.isStopped;if(n||s)return!1;e=o&&o instanceof i.a?o:null}return!0}},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(3),o=n(4);function s(e,r){return new i.a(function(n){var i=new o.a,s=0;return i.add(r.schedule(function(){s!==e.length?(n.next(e[s++]),n.closed||i.add(this.schedule())):n.complete()})),i})}},function(e,r,n){"use strict";n.d(r,"a",function(){return s});var i=n(14),o=n(36),s={closed:!0,next:function(e){},error:function(e){if(i.a.useDeprecatedSynchronousErrorHandling)throw e;Object(o.a)(e)},complete:function(){}}},function(e,r){function n(e){return e.sort((e,r)=>"latest"===e||"earliest"===r?1:"latest"===r||"earliest"===e?-1:i(e)-i(r))}function i(e){return null==e?e:Number.parseInt(e,16)}function o(e){if(null==e)return e;let r=e.toString(16);return r.length%2&&(r="0"+r),"0x"+r}function s(){return Math.floor(16*Math.random()).toString(16)}e.exports={minBlockRef:function(...e){return n(e)[0]},maxBlockRef:function(...e){let r=n(e);return r[r.length-1]},sortBlockRefs:n,bnToHex:function(e){return"0x"+e.toString(16)},blockRefIsNumber:function(e){return e&&!["earliest","latest","pending"].includes(e)},hexToInt:i,incrementHexInt:function(e){return null==e?e:o(i(e)+1)},intToHex:o,unsafeRandomBytes:function(e){let r="0x";for(let n=0;n<e;n++)r+=s()+s();return r}}},function(e,r,n){"use strict";n.r(r),n.d(r,"useCallback",function(){return x}),n.d(r,"useContext",function(){return k}),n.d(r,"useDebugValue",function(){return C}),n.d(r,"useEffect",function(){return _}),n.d(r,"useErrorBoundary",function(){return A}),n.d(r,"useId",function(){return I}),n.d(r,"useImperativeHandle",function(){return E}),n.d(r,"useLayoutEffect",function(){return w}),n.d(r,"useMemo",function(){return M}),n.d(r,"useReducer",function(){return v}),n.d(r,"useRef",function(){return S}),n.d(r,"useState",function(){return m});var i,o,s,a,u=n(5),c=0,l=[],h=[],d=u.options.__b,f=u.options.__r,p=u.options.diffed,y=u.options.__c,b=u.options.unmount;function g(e,r){u.options.__h&&u.options.__h(o,e,c||r),c=0;var n=o.__H||(o.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:h}),n.__[e]}function m(e){return c=1,v(P,e)}function v(e,r,n){var s=g(i++,2);if(s.t=e,!s.__c&&(s.__=[n?n(r):P(void 0,r),function(e){var r=s.__N?s.__N[0]:s.__[0],n=s.t(r,e);r!==n&&(s.__N=[n,s.__[1]],s.__c.setState({}))}],s.__c=o,!o.u)){var a=function(e,r,n){if(!s.__c.__H)return!0;var i=s.__c.__H.__.filter(function(e){return e.__c});if(i.every(function(e){return!e.__N}))return!u||u.call(this,e,r,n);var o=!1;return i.forEach(function(e){if(e.__N){var r=e.__[0];e.__=e.__N,e.__N=void 0,r!==e.__[0]&&(o=!0)}}),!(!o&&s.__c.props===e)&&(!u||u.call(this,e,r,n))};o.u=!0;var u=o.shouldComponentUpdate,c=o.componentWillUpdate;o.componentWillUpdate=function(e,r,n){if(this.__e){var i=u;u=void 0,a(e,r,n),u=i}c&&c.call(this,e,r,n)},o.shouldComponentUpdate=a}return s.__N||s.__}function _(e,r){var n=g(i++,3);!u.options.__s&&T(n.__H,r)&&(n.__=e,n.i=r,o.__H.__h.push(n))}function w(e,r){var n=g(i++,4);!u.options.__s&&T(n.__H,r)&&(n.__=e,n.i=r,o.__h.push(n))}function S(e){return c=5,M(function(){return{current:e}},[])}function E(e,r,n){c=6,w(function(){return"function"==typeof e?(e(r()),function(){return e(null)}):e?(e.current=r(),function(){return e.current=null}):void 0},null==n?n:n.concat(e))}function M(e,r){var n=g(i++,7);return T(n.__H,r)?(n.__V=e(),n.i=r,n.__h=e,n.__V):n.__}function x(e,r){return c=8,M(function(){return e},r)}function k(e){var r=o.context[e.__c],n=g(i++,9);return n.c=e,r?(null==n.__&&(n.__=!0,r.sub(o)),r.props.value):e.__}function C(e,r){u.options.useDebugValue&&u.options.useDebugValue(r?r(e):e)}function A(e){var r=g(i++,10),n=m();return r.__=e,o.componentDidCatch||(o.componentDidCatch=function(e,i){r.__&&r.__(e,i),n[1](e)}),[n[0],function(){n[1](void 0)}]}function I(){var e=g(i++,11);if(!e.__){for(var r=o.__v;null!==r&&!r.__m&&null!==r.__;)r=r.__;var n=r.__m||(r.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function O(){for(var e;e=l.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(R),e.__H.__h.forEach(N),e.__H.__h=[]}catch(r){e.__H.__h=[],u.options.__e(r,e.__v)}}u.options.__b=function(e){o=null,d&&d(e)},u.options.__r=function(e){f&&f(e),i=0;var r=(o=e.__c).__H;r&&(s===o?(r.__h=[],o.__h=[],r.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=h,e.__N=e.i=void 0})):(r.__h.forEach(R),r.__h.forEach(N),r.__h=[],i=0)),s=o},u.options.diffed=function(e){p&&p(e);var r=e.__c;r&&r.__H&&(r.__H.__h.length&&(1!==l.push(r)&&a===u.options.requestAnimationFrame||((a=u.options.requestAnimationFrame)||function(e){var r,n=function(){clearTimeout(i),j&&cancelAnimationFrame(r),setTimeout(e)},i=setTimeout(n,100);j&&(r=requestAnimationFrame(n))}
1)(O)),r.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==h&&(e.__=e.__V),e.i=void 0,e.__V=h})),s=o=null},u.options.__c=function(e,r){r.some(function(e){try{e.__h.forEach(R),e.__h=e.__h.filter(function(e){return!e.__||N(e)})}catch(n){r.some(function(e){e.__h&&(e.__h=[])}),r=[],u.options.__e(n,e.__v)}}),y&&y(e,r)},u.options.unmount=function(e){b&&b(e);var r,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{R(e)}catch(e){r=e}}),n.__H=void 0,r&&u.options.__e(r,n.__v))};var j="function"==typeof requestAnimationFrame;function R(e){var r=o,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),o=r}function N(e){var r=o;e.__c=e.__(),o=r}function T(e,r){return!e||e.length!==r.length||r.some(function(r,n){return r!==e[n]})}function P(e,r){return"function"==typeof r?r(e):r}},function(e,r,n){"use strict";n.d(r,"b",function(){return s}),n.d(r,"a",function(){return a});var i=n(0),o=function(e){function r(r,n){var i=e.call(this,r,n)||this;return i.scheduler=r,i.work=n,i}return i.a(r,e),r.prototype.schedule=function(r,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,r,n):(this.delay=n,this.state=r,this.scheduler.flush(this),this)},r.prototype.execute=function(r,n){return n>0||this.closed?e.prototype.execute.call(this,r,n):this._execute(r,n)},r.prototype.requestAsyncId=function(r,n,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?e.prototype.requestAsyncId.call(this,r,n,i):r.flush(this)},r}(n(32).a),s=new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i.a(r,e),r}(n(30).a))(o),a=s},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(){function e(r,n){void 0===n&&(n=e.now),this.SchedulerAction=r,this.now=n}return e.prototype.schedule=function(e,r,n){return void 0===r&&(r=0),new this.SchedulerAction(this,e).schedule(n,r)},e.now=function(){return Date.now()},e}()},function(e,r){var n;n=function(){return this}();try{n=n||Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0});let i=n(65);function o(e,r,n){try{Reflect.apply(e,r,n)}catch(e){setTimeout(()=>{throw e})}}class s extends i.EventEmitter{emit(e,...r){let n="error"===e,i=this._events;if(void 0!==i)n=n&&void 0===i.error;else if(!n)return!1;if(n){let e;if(r.length>0&&([e]=r),e instanceof Error)throw e;let n=Error("Unhandled error."+(e?` (${e.message})`:""));throw n.context=e,n}let s=i[e];if(void 0===s)return!1;if("function"==typeof s)o(s,this,r);else{let e=s.length,n=function(e){let r=e.length,n=Array(r);for(let i=0;i<r;i+=1)n[i]=e[i];return n}(s);for(let i=0;i<e;i+=1)o(n[i],this,r)}return!0}}r.default=s},function(e,r,n){"use strict";var i,o="object"==typeof Reflect?Reflect:null,s=o&&"function"==typeof o.apply?o.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)};i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function u(){u.init.call(this)}e.exports=u,e.exports.once=function(e,r){return new Promise(function(n,i){var o;function s(n){e.removeListener(r,a),i(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",s),n([].slice.call(arguments))}m(e,r,a,{once:!0}),"error"!==r&&(o={once:!0},"function"==typeof e.on&&m(e,"error",s,o))})},u.EventEmitter=u,u.prototype._events=void 0,u.prototype._eventsCount=0,u.prototype._maxListeners=void 0;var c=10;function l(e){if("function"!=typeof e)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?u.defaultMaxListeners:e._maxListeners}function d(e,r,n,i){var o,s,a;if(l(n),void 0===(s=e._events)?(s=e._events=Object.create(null),e._eventsCount=0):(void 0!==s.newListener&&(e.emit("newListener",r,n.listener?n.listener:n),s=e._events),a=s[r]),void 0===a)a=s[r]=n,++e._eventsCount;else if("function"==typeof a?a=s[r]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(o=h(e))>0&&a.length>o&&!a.warned){a.warned=!0;var u=Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(r)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=r,u.count=a.length,console&&console.warn&&console.warn(u)}return e}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,r,n){var i={fired:!1,wrapFn:void 0,target:e,type:r,listener:n},o=f.bind(i);return o.listener=n,i.wrapFn=o,o}function y(e,r,n){var i=e._events;if(void 0===i)return[];var o=i[r];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var r=Array(e.length),n=0;n<r.length;++n)r[n]=e[n].listener||e[n];return r}(o):g(o,o.length)}function b(e){var r=this._events;if(void 0!==r){var n=r[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function g(e,r){for(var n=Array(r),i=0;i<r;++i)n[i]=e[i];return n}function m(e,r,n,i){if("function"==typeof e.on)i.once?e.once(r,n):e.on(r,n);else{if("function"!=typeof e.addEventListener)throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(r,function o(s){i.once&&e.removeEventListener(r,o),n(s)})}}Object.defineProperty(u,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),u.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},u.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},u.prototype.getMaxListeners=function(){return h(this)},u.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(r.length>0&&(a=r[0]),a instanceof Error)throw a;var a,u=Error("Unhandled error."+(a?" ("+a.message+")":""));throw u.context=a,u}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)s(c,this,r);else{var l=c.length,h=g(c,l);for(n=0;n<l;++n)s(h[n],this,r)}return!0},u.prototype.addListener=function(e,r){return d(this,e,r,!1)},u.prototype.on=u.prototype.addListener,u.prototype.prependListener=function(e,r){return d(this,e,r,!0)},u.prototype.once=function(e,r){return l(r),this.on(e,p(this,e,r)),this},u.prototype.prependOnceListener=function(e,r){return l(r),this.prependListener(e,p(this,e,r)),this},u.prototype.removeListener=function(e,r){var n,i,o,s,a;if(l(r),void 0===(i=this._events)||void 0===(n=i[e]))return this;if(n===r||n.listener===r)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit
vendor: 1,793 bytes, line 1
1("removeListener",e,n.listener||r));else if("function"!=typeof n){for(o=-1,s=n.length-1;s>=0;s--)if(n[s]===r||n[s].listener===r){a=n[s].listener,o=s;break}if(o<0)return this;0===o?n.shift():function(e,r){for(;r+1<e.length;r++)e[r]=e[r+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||r)}return this},u.prototype.off=u.prototype.removeListener,u.prototype.removeAllListeners=function(e){var r,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0==arguments.length){var o,s=Object.keys(n);for(i=0;i<s.length;++i)"removeListener"!==(o=s[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(r=n[e]))this.removeListener(e,r);else if(void 0!==r)for(i=r.length-1;i>=0;i--)this.removeListener(e,r[i]);return this},u.prototype.listeners=function(e){return y(this,e,!0)},u.prototype.rawListeners=function(e){return y(this,e,!1)},u.listenerCount=function(e,r){return"function"==typeof e.listenerCount?e.listenerCount(r):b.call(e,r)},u.prototype.listenerCount=b,u.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,r,n){(function(e){!function(e,r){"use strict";function i(e,r){if(!e)throw Error(r||"Assertion failed")}function o(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}function s(e,r,n){if(s.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==r&&"be"!==r||(n=r,r=10),this._init(e||0,r||10,n||"be"))}
vendor: 4,457 bytes, line 1
1"object"==typeof e?e.exports=s:r.BN=s,s.BN=s,s.wordSize=26;try{d="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(132).Buffer}catch(e){}function a(e,r){var n=e.charCodeAt(r);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void i(!1,"Invalid character in "+e)}function u(e,r,n){var i=a(e,n);return n-1>=r&&(i|=a(e,n-1)<<4),i}function c(e,r,n,o){for(var s=0,a=0,u=Math.min(e.length,n),c=r;c<u;c++){var l=e.charCodeAt(c)-48;s*=o,a=l>=49?l-49+10:l>=17?l-17+10:l,i(l>=0&&a<o,"Invalid character"),s+=a}return s}function l(e,r){e.words=r.words,e.length=r.length,e.negative=r.negative,e.red=r.red}if(s.isBN=function(e){return e instanceof s||null!==e&&"object"==typeof e&&e.constructor.wordSize===s.wordSize&&Array.isArray(e.words)},s.max=function(e,r){return e.cmp(r)>0?e:r},s.min=function(e,r){return 0>e.cmp(r)?e:r},s.prototype._init=function(e,r,n){if("number"==typeof e)return this._initNumber(e,r,n);if("object"==typeof e)return this._initArray(e,r,n);"hex"===r&&(r=16),i(r===(0|r)&&r>=2&&r<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===r?this._parseHex(e,o,n):(this._parseBase(e,r,o),"le"===n&&this._initArray(this.toArray(),r,n)))},s.prototype._initNumber=function(e,r,n){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(i(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===n&&this._initArray(this.toArray(),r,n)},s.prototype._initArray=function(e,r,n){if(i("number"==typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var s,a,u=0;if("be"===n)for(o=e.length-1,s=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[s]|=a<<u&67108863,this.words[s+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,s++);else if("le"===n)for(o=0,s=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[s]|=a<<u&67108863,this.words[s+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,s++);return this._strip()},s.prototype._parseHex=function(e,r,n){this.length=Math.ceil((e.length-r)/6),this.words=Array(this.length);for(var i=0;i<this.length;i++)this.words[i]=0;var o,s=0,a=0;if("be"===n)for(i=e.length-1;i>=r;i-=2)o=u(e,r,i)<<s,this.words[a]|=67108863&o,s>=18?(s-=18,a+=1,this.words[a]|=o>>>26):s+=8;else for(i=(e.length-r)%2==0?r+1:r;i<e.length;i+=2)o=u(e,r,i)<<s,this.words[a]|=67108863&o,s>=18?(s-=18,a+=1,this.words[a]|=o>>>26):s+=8;this._strip()},s.prototype._parseBase=function(e,r,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=r)i++;i--,o=o/r|0;for(var s=e.length-n,a=s%i,u=Math.min(s,s-a)+n,l=0,h=n;h<u;h+=i)l=c(e,h,h+i,r),this.imuln(o),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l);if(0!==a){var d=1;for(l=c(e,h,e.length,r),h=0;h<a;h++)d*=r;this.imuln(d),this.words[0]+l<67108864?this.words[0]+=l:this._iaddn(l)}this._strip()},s.prototype.copy=function(e){e.words=Array(this.length);for(var r=0;r<this.length;r++)e.words[r]=this.words[r];e.length=this.length,e.negative=this.negative,e.red=this.red},s.prototype._move=function(e){l(e,this)},s.prototype.clone=function(){var e=new s(null);return this.copy(e),e},s.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},s.prototype._strip=function(){for(;this.length>1&&0===this.words[this.length-1];)this.length--;return this._normSign()},s.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{s.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(e){s.prototype.inspect=h}else s.prototype.inspect=h;function h(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"}var d,f=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],y=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16
vendor: 12,784 bytes, line 1
1777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function b(e,r,n){n.negative=r.negative^e.negative;var i=e.length+r.length|0;n.length=i,i=i-1|0;var o=0|e.words[0],s=0|r.words[0],a=o*s,u=67108863&a,c=a/67108864|0;n.words[0]=u;for(var l=1;l<i;l++){for(var h=c>>>26,d=67108863&c,f=Math.min(l,r.length-1),p=Math.max(0,l-e.length+1);p<=f;p++){var y=l-p|0;h+=(a=(o=0|e.words[y])*(s=0|r.words[p])+d)/67108864|0,d=67108863&a}n.words[l]=0|d,c=0|h}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}s.prototype.toString=function(e,r){var n;if(r=0|r||1,16===(e=e||10)||"hex"===e){n="";for(var o=0,s=0,a=0;a<this.length;a++){var u=this.words[a],c=(16777215&(u<<o|s)).toString(16);s=u>>>24-o&16777215,(o+=2)>=26&&(o-=26,a--),n=0!==s||a!==this.length-1?f[6-c.length]+c+n:c+n}for(0!==s&&(n=s.toString(16)+n);n.length%r!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(e===(0|e)&&e>=2&&e<=36){var l=p[e],h=y[e];n="";var d=this.clone();for(d.negative=0;!d.isZero();){var b=d.modrn(h).toString(e);n=(d=d.idivn(h)).isZero()?b+n:f[l-b.length]+b+n}for(this.isZero()&&(n="0"+n);n.length%r!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},s.prototype.toNumber=function(){var e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},s.prototype.toJSON=function(){return this.toString(16,2)},d&&(s.prototype.toBuffer=function(e,r){return this.toArrayLike(d,e,r)}),s.prototype.toArray=function(e,r){return this.toArrayLike(Array,e,r)},s.prototype.toArrayLike=function(e,r,n){this._strip();var o=this.byteLength(),s=n||Math.max(1,o);i(o<=s,"byte array longer than desired length"),i(s>0,"Requested array length <= 0");var a=e.allocUnsafe?e.allocUnsafe(s):new e(s);return this["_toArrayLike"+("le"===r?"LE":"BE")](a,o),a},s.prototype._toArrayLikeLE=function(e,r){for(var n=0,i=0,o=0,s=0;o<this.length;o++){var a=this.words[o]<<s|i;e[n++]=255&a,n<e.length&&(e[n++]=a>>8&255),n<e.length&&(e[n++]=a>>16&255),6===s?(n<e.length&&(e[n++]=a>>24&255),i=0,s=0):(i=a>>>24,s+=2)}if(n<e.length)for(e[n++]=i;n<e.length;)e[n++]=0},s.prototype._toArrayLikeBE=function(e,r){for(var n=e.length-1,i=0,o=0,s=0;o<this.length;o++){var a=this.words[o]<<s|i;e[n--]=255&a,n>=0&&(e[n--]=a>>8&255),n>=0&&(e[n--]=a>>16&255),6===s?(n>=0&&(e[n--]=a>>24&255),i=0,s=0):(i=a>>>24,s+=2)}if(n>=0)for(e[n--]=i;n>=0;)e[n--]=0},Math.clz32?s.prototype._countBits=function(e){return 32-Math.clz32(e)}:s.prototype._countBits=function(e){var r=e,n=0;return r>=4096&&(n+=13,r>>>=13),r>=64&&(n+=7,r>>>=7),r>=8&&(n+=4,r>>>=4),r>=2&&(n+=2,r>>>=2),n+r},s.prototype._zeroBits=function(e){if(0===e)return 26;var r=e,n=0;return 0==(8191&r)&&(n+=13,r>>>=13),0==(127&r)&&(n+=7,r>>>=7),0==(15&r)&&(n+=4,r>>>=4),0==(3&r)&&(n+=2,r>>>=2),0==(1&r)&&n++,n},s.prototype.bitLength=function(){var e=this.words[this.length-1],r=this._countBits(e);return 26*(this.length-1)+r},s.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,r=0;r<this.length;r++){var n=this._zeroBits(this.words[r]);if(e+=n,26!==n)break}return e},s.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},s.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},s.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},s.prototype.isNeg=function(){return 0!==this.negative},s.prototype.neg=function(){return this.clone().ineg()},s.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},s.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var r=0;r<e.length;r++)this.words[r]=this.words[r]|e.words[r];return this._strip()},s.prototype.ior=function(e){return i(0==(this.negative|e.negative)),this.iuor(e)},s.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},s.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},s.prototype.iuand=function(e){var r;r=this.length>e.length?e:this;for(var n=0;n<r.length;n++)this.words[n]=this.words[n]&e.words[n];return this.length=r.length,this._strip()},s.prototype.iand=function(e){return i(0==(this.negative|e.negative)),this.iuand(e)},s.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},s.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},s.prototype.iuxor=function(e){var r,n;this.length>e.length?(r=this,n=e):(r=e,n=this);for(var i=0;i<n.length;i++)this.words[i]=r.words[i]^n.words[i];if(this!==r)for(;i<r.length;i++)this.words[i]=r.words[i];return this.length=r.length,this._strip()},s.prototype.ixor=function(e){return i(0==(this.negative|e.negative)),this.iuxor(e)},s.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},s.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},s.prototype.inotn=function(e){i("number"==typeof e&&e>=0);var r=0|Math.ceil(e/26),n=e%26;this._expand(r),n>0&&r--;for(var o=0;o<r;o++)this.words[o]=67108863&~this.words[o];return n>0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},s.prototype.notn=function(e){return this.clone().inotn(e)},s.prototype.setn=function(e,r){i("number"==typeof e&&e>=0);var n=e/26|0,o=e%26;return this._expand(n+1),this.words[n]=r?this.words[n]|1<<o:this.words[n]&~(1<<o),this._strip()},s.prototype.iadd=function(e){var r,n,i;if(0!==this.negative&&0===e.negative)return this.negative=0,r=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,r=this.isub(e),e.negative=1,r._normSign();this.length>e.length?(n=this,i=e):(n=e,i=this);for(var o=0,s=0;s<i.length;s++)r=(0|n.words[s])+(0|i.words[s])+o,this.words[s]=67108863&r,o=r>>>26;for(;0!==o&&s<n.length;s++)r=(0|n.words[s])+o,this.words[s]=67108863&r,o=r>>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;s<n.length;s++)this.words[s]=n.words[s];return this},s.prototype.add=function(e){var r;return 0!==e.negative&&0===this.negative?(e.negative=0,r=this.sub(e),e.negative^=1,r):0===e.negative&&0!==this.negative?(this.negative=0,r=e.sub(this),this.negative=1,r):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},s.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var r=this.iadd(e);return e.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var n,i,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=e):(n=e,i=this);for(var s=0,a=0;a<i.length;a++)s=(r=(0|n.words[a])-(0|i.words[a])+s)>>26,this.words[a]=67108863&r;for(;0!==s&&a<n.length;a++)s=(r=(0|n.words[a])+s)>>26,this.words[a]=67108863&r;if(0===s&&a<n.length&&n!==this)for(;a<n.length;a++)this.words[a]=n.words[a];return this.length=Math.max(this.length,a),n!==this&&(this.negative=1),this._strip()},s.prototype.sub=function(e){return this.clone().isub(e)};var g=function(e,r,n){var i,o,s,a=e.words,u=r.words,c=n.words,l=0,h=0|a[0],d=8191&h,f=h>>>13,p=0|a[1],y=8191&p,b=p>>>13,g=0|a[2],m=8191&g,v=g>>>13,_=0|a[3],w=8191&_,S=_>>>13,E=0|a[4],M=8191&E,x=E>>>13,k=0|a[5],C=8191&k,A=k>>>13,I=0|a[6],O=8191&I,j=I>>>13,R=0|a[7],N=8191&R,T=R>>>13,P=0|a[8],L=8191&P,D=P>>>13,B=0|a[9],F=8191&B,U=B>>>13,W=0|u[0],H=8191&W,z=W>>>13,V=0|u[1],q=8191&V,Z=V>>>13,G=0|u[2],Y=8191&G,J=G>>>13,$=0|u[3],Q=8191&$,K=$>>>13,X=0|u[4],tt=8191&X,te=X>>>13,tr=0|u[5],tn=8191&tr,ti=tr>>>13,to=0|u[6],ts=8191&to,ta=to>>>13,tu=0|u[7],tc=8191&tu,tl=tu>>>13,th=0|u[8],td=8191&th,tf=th>>>13,tp=0|u[9],ty=8191&tp,tb=tp>>>13;n.negative=e.negative^r.negative,n.length=19;var tg=(l+(i=Math.imul(d,H))|0)+((8191&(o=(o=Math.imul(d,z))+Math.imul(f,H)|0))<<13)|0;l=((s=Math.imul(f,z))+(o>>>13)|0)+(tg>>>26)|0,tg&=67108863,i=Math.imul(y,H),o=(o=Math.imul(y,z))+Math.imul(b,H)|0,s=Math.imul(b,z);var tm=(l+(i=i+Math.imul(d,q)|0)|0)+((8191&(o=(o=o+Math.imul(d,Z)|0)+Math.imul(f,q)|0))<<13)|0;l=((s=s+Math.imul(f,Z)|0)+(o>>>13)|0)+(tm>>>26)|0,tm&=67108863,i=Math.imul(m,H),o=(o=Math.imul(m,z))+Math.imul(v,H)|0,s=Math.imul(v,z),i=i+Math.imul(y,q)|0,o=(o=o+Math.imul(y,Z)|0)+Math.imul(b,q)|0,s=s+Math.imul(b,Z)|0;var tv=(l+(i=i+Math.imul(d,Y)|0)|0)+((8191&(o=(o=o+Math.imul(d,J)|0)+Math.imul(f,Y)|0))<<13)|0;l=((s=s+Math.imul(f,J)|0)+(o>>>13)|0)+(tv>>>26)|0,tv&=67108863,i=Math.imul(w,H),o=(o=Math.imul(w,z))+Math.imul(S,H)|0,s=Math.imul(S,z),i=i+Math.imul(m,q)|0,o=(o=o+Math.imul(m,Z)|0)+Math.imul(v,q)|0,s=s+Math.imul(v,Z)|0,i=i+Math.imul(y,Y)|0,o=(o=o+Math.imul(y,J)|0)+Math.imul(b,Y)|0,s=s+Math.imul(b,J)|0;var t_=(l+(i=i+Math.imul(d,Q)|0)|0)+((8191&(o=(o=o+Math.imul(d,K)|0)+Math.imul(f,Q)|0))<<13)|0;l=((s=s+Math.imul(f,K)|0)+(o>>>13)|0)+(t_>>>26)|0,t_&=67108863,i=Math.imul(M,H),o=(o=Math.imul(M,z))+Math.imul(x,H)|0,s=Math.imul(x,z),i=i+Math.imul(w,q)|0,o=(o=o+Math.imul(w,Z)|0)+Math.imul(S,q)|0,s=s+Math.imul(S,Z)|0,i=i+Math.imul(m,Y)|0,o=(o=o+Math.imul(m,J)|0)+Math.imul(v,Y)|0,s=s+Math.imul(v,J)|0,i=i+Math.imul(y,Q)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(b,Q)|0,s=s+Math.imul(b,K)|0;var tw=(l+(i=i+Math.imul(d,tt)|0)|0)+((8191&(o=(o=o+Math.imul(d,te)|0)+Math.imul(f,tt)|0))<<13)|0;l=((s=s+Math.imul(f,te)|0)+(o>>>13)|0)+(tw>>>26)|0,tw&=67108863,i=Math.imul(C,H),o=(o=Math.imul(C,z))+Math.imul(A,H)|0,s=Math.imul(A,z),i=i+Math.imul(M,q)|0,o=(o=o+Math.imul(M,Z)|0)+Math.imul(x,q)|0,s=s+Math.imul(x,Z)|0,i=i+Math.imul(w,Y)|0,o=(o=o+Math.imul(w,J)|0)+Math.imul(S,Y)|0,s=s+Math.imul(S,J)|0,i=i+Math.imul(m,Q)|0,o=(o=o+Math.imul(m,K)|0)+Math.imul(v,Q)|0,s=s+Math.imul(v,K)|0,i=i+Math.imul(y,tt)|0,o=(o=o+Math.imul(y,te)|0)+Math.imul(b,tt)|0,s=s+Math.imul(b,te)|0;var tS=(l+(i=i+Math.imul(d,tn)|0)|0)+((8191&(o=(o=o+Math.imul(d,ti)|0)+Math.imul(f,tn)|0))<<13)|0;l=((s=s+Math.imul(f,ti)|0)+(o>>>13)|0)+(tS>>>26)|0,tS&=67108863,i=Math.imul(O,H),o=(o=Math.imul(O,z))+Math.imul(j,H)|0,s=Math.imul(j,z),i=i+Math.imul(C,q)|0,o=(o=o+Math.imul(C,Z)|0)+Math.imul(A,q)|0,s=s+Math.imul(A,Z)|0,i=i+Math.imul(M,Y)|0,o=(o=o+Math.imul(M,J)|0)+Math.imul(x,Y)|0,s=s+Math.imul(x,J)|0,i=i+Math.imul(w,Q)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(S,Q)|0,s=s+Math.imul(S,K)|0,i=i+Math.imul(m,tt)|0,o=(o=o+Math.imul(m,te)|0)+Math.imul(v,tt)|0,s=s+Math.imul(v,te)|0,i=i+Math.imul(y,tn)|0,o=(o=o+Math.imul(y,ti)|0)+Math.imul(b,tn)|0,s=s+Math.imul(b,ti)|0;var tE=(l+(i=i+Math.imul(d,ts)|0)|0)+((8191&(o=(o=o+Math.imul(d,ta)|0)+Math.imul(f,ts)|0))<<13)|0;l=((s=s+Math.imul(f,ta)|0)+(o>>>13)|0)+(tE>>>26)|0,tE&=67108863,i=Math.imul(N,H),o=(o=Math.imul(N,z))+Math.imul(T,H)|0,s=Math.imul(T,z),i=i+Math.imul(O,q)|0,o=(o=o+Math.imul(O,Z)|0)+Math.imul(j,q)|0,s=s+Math.imul(j,Z)|0,i=i+Math.imul(C,Y)|0,o=(o=o+Math.imul(C,J)|0)+Math.imul(A,Y)|0,s=s+Math.imul(A,J)|0,i=i+Math.imul(M,Q)|0,o=(o=o+Math.imul(M,K)|0)+Math.imul(x,Q)|0,s=s+Math.imul(x,K)|0,i=i+Math.imul(w,tt)|0,o=(o=o+Math.imul(w,te)|0)+Math.imul(S,tt)|0,s=s+Math.imul(S,te)|0,i=i+Math.imul(m,tn)|0,o=(o=o+Math.imul(m,ti)|0)+Math.imul(v,tn)|0,s=s+Math.imul(v,ti)|0,i=i+Math.imul(y,ts)|0,o=(o=o+Math.imul(y,ta)|0)+Math.imul(b,ts)|0,s=s+Math.imul(b,ta)|0;var tM=(l+(i=i+Math.imul(d,tc)|0)|0)+((8191&(o=(o=o+Math.imul(d,tl)|0)+Math.imul(f,tc)|0))<<13)|0;l=((s=s+Math.imul(f,tl)|0)+(o>>>13)|0)+(tM>>>26)|0,tM&=67108863,i=Math.imul(L,H),o=(o=Math.imul(L,z))+Math.imul(D,H)|0,s=Math.imul(D,z),i=i+Math.imul(N,q)|0,o=(o=o+Math.imul(N,Z)|0)+Math.imul(T,q)|0,s=s+Math.imul(T,Z)|0,i=i+Math.imul(O,Y)|0,o=(o=o+Math.imul(O,J)|0)+Math.imul(j,Y)|0,s=s+Math.imul(j,J)|0,i=i+Math.imul(C,Q)|0,o=(o=o+Math.imul(C,K)|0)+Math.imul(A,Q)|0,s=s+Math.imul(A,K)|0,i=i+Math.imul(M,tt)|0,o=(o=o+Math.imul(M,te)|0)+Math.imul(x,tt)|0,s=s+Math.imul(x,te)|0,i=i+Math.imul(w,tn)|0,o=(o=o+Math.imul(w,ti)|0)+Math.imul(S,tn)|0,s=s+Math.imul(S,ti)|0,i=i+Math.imul(m,ts)|0,o=(o=o+Math.imul(m,ta)|0)+Math.imul(v,ts)|0,s=s+Math.imul(v,ta)|0,i=i+Math.imul(y,tc)|0,o=(o=o+Math.imul(y,tl)|0)+Math.imul(b,tc)|0,s=s+Math.imul(b,tl)|0;var tx=(l+(i=i+Math.imul(d,td)|0)|0)+((8191&(o=(o=o+Math.imul(d,tf)|0)+Math.imul(f,td)|0))<<13)|0;l=((s=s+Math.imul(f,tf)|0)+(o>>>13)|0)+(tx>>>26)|0,tx&=67108863,i=Math.imul(F,H),o=(o=Math.imul(F,z))+Math.imul(U,H)|0,s=Math.imul(U,z),i=i+Math.imul(L,q)|0,o=(o=o+Math.imul(L,Z)|0)+Math.imul(D,q)|0,s=s+Math.imul(D,Z)|0,i=i+Math.imul(N,Y)|0,o=(o=o+Math.imul(N,J)|0)+Math.imul(T,Y)|0,s=s+Math.imul(T,J)|0,i=i+Math.imul(O,Q)|0,o=(o=o+Math.imul(O,K)|0)+Math.imul(j,Q)|0,s=s+Math.imul(j,K)|0,i=i+Math.imul(C,tt)|0,o=(o=o+Math.imul(C,te)|0)+Math.imul(A,tt)|0,s=s+Math.imul(A,te)|0,i=i+Math.imul(M,tn
vendor: 4,583 bytes, line 1
1)|0,o=(o=o+Math.imul(M,ti)|0)+Math.imul(x,tn)|0,s=s+Math.imul(x,ti)|0,i=i+Math.imul(w,ts)|0,o=(o=o+Math.imul(w,ta)|0)+Math.imul(S,ts)|0,s=s+Math.imul(S,ta)|0,i=i+Math.imul(m,tc)|0,o=(o=o+Math.imul(m,tl)|0)+Math.imul(v,tc)|0,s=s+Math.imul(v,tl)|0,i=i+Math.imul(y,td)|0,o=(o=o+Math.imul(y,tf)|0)+Math.imul(b,td)|0,s=s+Math.imul(b,tf)|0;var tk=(l+(i=i+Math.imul(d,ty)|0)|0)+((8191&(o=(o=o+Math.imul(d,tb)|0)+Math.imul(f,ty)|0))<<13)|0;l=((s=s+Math.imul(f,tb)|0)+(o>>>13)|0)+(tk>>>26)|0,tk&=67108863,i=Math.imul(F,q),o=(o=Math.imul(F,Z))+Math.imul(U,q)|0,s=Math.imul(U,Z),i=i+Math.imul(L,Y)|0,o=(o=o+Math.imul(L,J)|0)+Math.imul(D,Y)|0,s=s+Math.imul(D,J)|0,i=i+Math.imul(N,Q)|0,o=(o=o+Math.imul(N,K)|0)+Math.imul(T,Q)|0,s=s+Math.imul(T,K)|0,i=i+Math.imul(O,tt)|0,o=(o=o+Math.imul(O,te)|0)+Math.imul(j,tt)|0,s=s+Math.imul(j,te)|0,i=i+Math.imul(C,tn)|0,o=(o=o+Math.imul(C,ti)|0)+Math.imul(A,tn)|0,s=s+Math.imul(A,ti)|0,i=i+Math.imul(M,ts)|0,o=(o=o+Math.imul(M,ta)|0)+Math.imul(x,ts)|0,s=s+Math.imul(x,ta)|0,i=i+Math.imul(w,tc)|0,o=(o=o+Math.imul(w,tl)|0)+Math.imul(S,tc)|0,s=s+Math.imul(S,tl)|0,i=i+Math.imul(m,td)|0,o=(o=o+Math.imul(m,tf)|0)+Math.imul(v,td)|0,s=s+Math.imul(v,tf)|0;var tC=(l+(i=i+Math.imul(y,ty)|0)|0)+((8191&(o=(o=o+Math.imul(y,tb)|0)+Math.imul(b,ty)|0))<<13)|0;l=((s=s+Math.imul(b,tb)|0)+(o>>>13)|0)+(tC>>>26)|0,tC&=67108863,i=Math.imul(F,Y),o=(o=Math.imul(F,J))+Math.imul(U,Y)|0,s=Math.imul(U,J),i=i+Math.imul(L,Q)|0,o=(o=o+Math.imul(L,K)|0)+Math.imul(D,Q)|0,s=s+Math.imul(D,K)|0,i=i+Math.imul(N,tt)|0,o=(o=o+Math.imul(N,te)|0)+Math.imul(T,tt)|0,s=s+Math.imul(T,te)|0,i=i+Math.imul(O,tn)|0,o=(o=o+Math.imul(O,ti)|0)+Math.imul(j,tn)|0,s=s+Math.imul(j,ti)|0,i=i+Math.imul(C,ts)|0,o=(o=o+Math.imul(C,ta)|0)+Math.imul(A,ts)|0,s=s+Math.imul(A,ta)|0,i=i+Math.imul(M,tc)|0,o=(o=o+Math.imul(M,tl)|0)+Math.imul(x,tc)|0,s=s+Math.imul(x,tl)|0,i=i+Math.imul(w,td)|0,o=(o=o+Math.imul(w,tf)|0)+Math.imul(S,td)|0,s=s+Math.imul(S,tf)|0;var tA=(l+(i=i+Math.imul(m,ty)|0)|0)+((8191&(o=(o=o+Math.imul(m,tb)|0)+Math.imul(v,ty)|0))<<13)|0;l=((s=s+Math.imul(v,tb)|0)+(o>>>13)|0)+(tA>>>26)|0,tA&=67108863,i=Math.imul(F,Q),o=(o=Math.imul(F,K))+Math.imul(U,Q)|0,s=Math.imul(U,K),i=i+Math.imul(L,tt)|0,o=(o=o+Math.imul(L,te)|0)+Math.imul(D,tt)|0,s=s+Math.imul(D,te)|0,i=i+Math.imul(N,tn)|0,o=(o=o+Math.imul(N,ti)|0)+Math.imul(T,tn)|0,s=s+Math.imul(T,ti)|0,i=i+Math.imul(O,ts)|0,o=(o=o+Math.imul(O,ta)|0)+Math.imul(j,ts)|0,s=s+Math.imul(j,ta)|0,i=i+Math.imul(C,tc)|0,o=(o=o+Math.imul(C,tl)|0)+Math.imul(A,tc)|0,s=s+Math.imul(A,tl)|0,i=i+Math.imul(M,td)|0,o=(o=o+Math.imul(M,tf)|0)+Math.imul(x,td)|0,s=s+Math.imul(x,tf)|0;var tI=(l+(i=i+Math.imul(w,ty)|0)|0)+((8191&(o=(o=o+Math.imul(w,tb)|0)+Math.imul(S,ty)|0))<<13)|0;l=((s=s+Math.imul(S,tb)|0)+(o>>>13)|0)+(tI>>>26)|0,tI&=67108863,i=Math.imul(F,tt),o=(o=Math.imul(F,te))+Math.imul(U,tt)|0,s=Math.imul(U,te),i=i+Math.imul(L,tn)|0,o=(o=o+Math.imul(L,ti)|0)+Math.imul(D,tn)|0,s=s+Math.imul(D,ti)|0,i=i+Math.imul(N,ts)|0,o=(o=o+Math.imul(N,ta)|0)+Math.imul(T,ts)|0,s=s+Math.imul(T,ta)|0,i=i+Math.imul(O,tc)|0,o=(o=o+Math.imul(O,tl)|0)+Math.imul(j,tc)|0,s=s+Math.imul(j,tl)|0,i=i+Math.imul(C,td)|0,o=(o=o+Math.imul(C,tf)|0)+Math.imul(A,td)|0,s=s+Math.imul(A,tf)|0;var tO=(l+(i=i+Math.imul(M,ty)|0)|0)+((8191&(o=(o=o+Math.imul(M,tb)|0)+Math.imul(x,ty)|0))<<13)|0;l=((s=s+Math.imul(x,tb)|0)+(o>>>13)|0)+(tO>>>26)|0,tO&=67108863,i=Math.imul(F,tn),o=(o=Math.imul(F,ti))+Math.imul(U,tn)|0,s=Math.imul(U,ti),i=i+Math.imul(L,ts)|0,o=(o=o+Math.imul(L,ta)|0)+Math.imul(D,ts)|0,s=s+Math.imul(D,ta)|0,i=i+Math.imul(N,tc)|0,o=(o=o+Math.imul(N,tl)|0)+Math.imul(T,tc)|0,s=s+Math.imul(T,tl)|0,i=i+Math.imul(O,td)|0,o=(o=o+Math.imul(O,tf)|0)+Math.imul(j,td)|0,s=s+Math.imul(j,tf)|0;var tj=(l+(i=i+Math.imul(C,ty)|0)|0)+((8191&(o=(o=o+Math.imul(C,tb)|0)+Math.imul(A,ty)|0))<<13)|0;l=((s=s+Math.imul(A,tb)|0)+(o>>>13)|0)+(tj>>>26)|0,tj&=67108863,i=Math.imul(F,ts),o=(o=Math.imul(F,ta))+Math.imul(U,ts)|0,s=Math.imul(U,ta),i=i+Math.imul(L,tc)|0,o=(o=o+Math.imul(L,tl)|0)+Math.imul(D,tc)|0,s=s+Math.imul(D,tl)|0,i=i+Math.imul(N,td)|0,o=(o=o+Math.imul(N,tf)|0)+Math.imul(T,td)|0,s=s+Math.imul(T,tf)|0;var tR=(l+(i=i+Math.imul(O,ty)|0)|0)+((8191&(o=(o=o+Math.imul(O,tb)|0)+Math.imul(j,ty)|0))<<13)|0;l=((s=s+Math.imul(j,tb)|0)+(o>>>13)|0)+(tR>>>26)|0,tR&=67108863,i=Math.imul(F,tc),o=(o=Math.imul(F,tl))+Math.imul(U,tc)|0,s=Math.imul(U,tl),i=i+Math.imul(L,td)|0,o=(o=o+Math.imul(L,tf)|0)+Math.imul(D,td)|0,s=s+Math.imul(D,tf)|0;var tN=(l+(i=i+Math.imul(N,ty)|0)|0)+((8191&(o=(o=o+Math.imul(N,tb)|0)+Math.imul(T,ty)|0))<<13)|0;l=((s=s+Math.imul(T,tb)|0)+(o>>>13)|0)+(tN>>>
vendor: 6,252 bytes, line 1
126)|0,tN&=67108863,i=Math.imul(F,td),o=(o=Math.imul(F,tf))+Math.imul(U,td)|0,s=Math.imul(U,tf);var tT=(l+(i=i+Math.imul(L,ty)|0)|0)+((8191&(o=(o=o+Math.imul(L,tb)|0)+Math.imul(D,ty)|0))<<13)|0;l=((s=s+Math.imul(D,tb)|0)+(o>>>13)|0)+(tT>>>26)|0,tT&=67108863;var tP=(l+(i=Math.imul(F,ty))|0)+((8191&(o=(o=Math.imul(F,tb))+Math.imul(U,ty)|0))<<13)|0;return l=((s=Math.imul(U,tb))+(o>>>13)|0)+(tP>>>26)|0,tP&=67108863,c[0]=tg,c[1]=tm,c[2]=tv,c[3]=t_,c[4]=tw,c[5]=tS,c[6]=tE,c[7]=tM,c[8]=tx,c[9]=tk,c[10]=tC,c[11]=tA,c[12]=tI,c[13]=tO,c[14]=tj,c[15]=tR,c[16]=tN,c[17]=tT,c[18]=tP,0!==l&&(c[19]=l,n.length++),n};function m(e,r,n){n.negative=r.negative^e.negative,n.length=e.length+r.length;for(var i=0,o=0,s=0;s<n.length-1;s++){var a=o;o=0;for(var u=67108863&i,c=Math.min(s,r.length-1),l=Math.max(0,s-e.length+1);l<=c;l++){var h=s-l,d=(0|e.words[h])*(0|r.words[l]),f=67108863&d;u=67108863&(f=f+u|0),o+=(a=(a=a+(d/67108864|0)|0)+(f>>>26)|0)>>>26,a&=67108863}n.words[s]=u,i=a,a=o}return 0!==i?n.words[s]=i:n.length--,n._strip()}function v(e,r){this.x=e,this.y=r}Math.imul||(g=b),s.prototype.mulTo=function(e,r){var n=this.length+e.length;return 10===this.length&&10===e.length?g(this,e,r):n<63?b(this,e,r):m(this,e,r)},v.prototype.makeRBT=function(e){for(var r=Array(e),n=s.prototype._countBits(e)-1,i=0;i<e;i++)r[i]=this.revBin(i,n,e);return r},v.prototype.revBin=function(e,r,n){if(0===e||e===n-1)return e;for(var i=0,o=0;o<r;o++)i|=(1&e)<<r-o-1,e>>=1;return i},v.prototype.permute=function(e,r,n,i,o,s){for(var a=0;a<s;a++)i[a]=r[e[a]],o[a]=n[e[a]]},v.prototype.transform=function(e,r,n,i,o,s){this.permute(s,e,r,n,i,o);for(var a=1;a<o;a<<=1)for(var u=a<<1,c=Math.cos(2*Math.PI/u),l=Math.sin(2*Math.PI/u),h=0;h<o;h+=u)for(var d=c,f=l,p=0;p<a;p++){var y=n[h+p],b=i[h+p],g=n[h+p+a],m=i[h+p+a],v=d*g-f*m;m=d*m+f*g,g=v,n[h+p]=y+g,i[h+p]=b+m,n[h+p+a]=y-g,i[h+p+a]=b-m,p!==u&&(v=c*d-l*f,f=c*f+l*d,d=v)}},v.prototype.guessLen13b=function(e,r){var n=1|Math.max(r,e),i=1&n,o=0;for(n=n/2|0;n;n>>>=1)o++;return 1<<o+1+i},v.prototype.conjugate=function(e,r,n){if(!(n<=1))for(var i=0;i<n/2;i++){var o=e[i];e[i]=e[n-i-1],e[n-i-1]=o,o=r[i],r[i]=-r[n-i-1],r[n-i-1]=-o}},v.prototype.normalize13b=function(e,r){for(var n=0,i=0;i<r/2;i++){var o=8192*Math.round(e[2*i+1]/r)+Math.round(e[2*i]/r)+n;e[i]=67108863&o,n=o<67108864?0:o/67108864|0}return e},v.prototype.convert13b=function(e,r,n,o){for(var s=0,a=0;a<r;a++)s+=0|e[a],n[2*a]=8191&s,s>>>=13,n[2*a+1]=8191&s,s>>>=13;for(a=2*r;a<o;++a)n[a]=0;i(0===s),i(0==(-8192&s))},v.prototype.stub=function(e){for(var r=Array(e),n=0;n<e;n++)r[n]=0;return r},v.prototype.mulp=function(e,r,n){var i=2*this.guessLen13b(e.length,r.length),o=this.makeRBT(i),s=this.stub(i),a=Array(i),u=Array(i),c=Array(i),l=Array(i),h=Array(i),d=Array(i),f=n.words;f.length=i,this.convert13b(e.words,e.length,a,i),this.convert13b(r.words,r.length,l,i),this.transform(a,s,u,c,i,o),this.transform(l,s,h,d,i,o);for(var p=0;p<i;p++){var y=u[p]*h[p]-c[p]*d[p];c[p]=u[p]*d[p]+c[p]*h[p],u[p]=y}return this.conjugate(u,c,i),this.transform(u,c,f,s,i,o),this.conjugate(f,s,i),this.normalize13b(f,i),n.negative=e.negative^r.negative,n.length=e.length+r.length,n._strip()},s.prototype.mul=function(e){var r=new s(null);return r.words=Array(this.length+e.length),this.mulTo(e,r)},s.prototype.mulf=function(e){var r=new s(null);return r.words=Array(this.length+e.length),m(this,e,r)},s.prototype.imul=function(e){return this.clone().mulTo(e,this)},s.prototype.imuln=function(e){var r=e<0;r&&(e=-e),i("number"==typeof e),i(e<67108864);for(var n=0,o=0;o<this.length;o++){var s=(0|this.words[o])*e,a=(67108863&s)+(67108863&n);n>>=26,n+=(s/67108864|0)+(a>>>26),this.words[o]=67108863&a}return 0!==n&&(this.words[o]=n,this.length++),r?this.ineg():this},s.prototype.muln=function(e){return this.clone().imuln(e)},s.prototype.sqr=function(){return this.mul(this)},s.prototype.isqr=function(){return this.imul(this.clone())},s.prototype.pow=function(e){var r=function(e){for(var r=Array(e.bitLength()),n=0;n<r.length;n++){var i=n/26|0,o=n%26;r[n]=e.words[i]>>>o&1}return r}(e);if(0===r.length)return new s(1);for(var n=this,i=0;i<r.length&&0===r[i];i++,n=n.sqr());if(++i<r.length)for(var o=n.sqr();i<r.length;i++,o=o.sqr())0!==r[i]&&(n=n.mul(o));return n},s.prototype.iushln=function(e){i("number"==typeof e&&e>=0);var r,n=e%26,o=(e-n)/26,s=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(r=0;r<this.length;r++){var u=this.words[r]&s,c=(0|this.words[r])-u<<n;this.words[r]=c|a,a=u>>>26-n}a&&(this.words[r]=a,this.length++)}if(0!==o){for(r=this.length-1;r>=0;r--)this.words[r+o]=this.words[r];for(r=0;r<o;r++)this.words[r]=0;this.length+=o}return this._strip()},s.prototype.ishln=function(e){return i(0===this.negative),this.iushln(e)},s.prototype.iushrn=function(e,r,n){i("number"==typeof e&&e>=0),o=r?(r-r%26)/26:0;var o,s=e%26,a=Math.min((e-s)/26,this.length),u=67108863^67108863>>>s<<s;if(o-=a,o=Math.max(0,o),n){for(var c=0;c<a;c++)n.words[c]=this.words[c];n.length=a}if(0===a);else if(this.length>a)for(this.length-=a,c=0;c<this.length;c++)this.words[c]=this.words[c+a];else this.words[0]=0,this.length=1;var l=0;for(c=this.length-1;c>=0&&(0!==l||c>=o);c--){var h=0|this.words[c];this.words[c]=l<<26-s|h>>>s,l=h&u}return n&&0!==l&&(n.words[n.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},s.prototype.ishrn=function(e,r,n){return i(0===this.negative),this.iushrn(e,r,n)},s.prototype.shln=function(e){return this.clone().ishln(e)},s.prototype.ushln=function(e){return this.clone().iushln(e)},s.prototype.shrn=function(e){return this.clone().ishrn(e)},s.prototype.ushrn=function(e){return this.clone().iushrn(e)},s.prototype.testn=function(e){i("number"==typeof e&&e>=0);var r=e%26,n=(e-r)/26;return!(this.length<=n)&&!!(this.words[n]&1<<r)},s.prototype.imaskn=function(e){i("number"==typeof e&&e>=0);var r=e%26,n=(e-r)/26;return(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)?this:(0!==r&&n++,this.length=Math.min(n,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<<r),this._strip())},s.prototype.maskn=function(e){return this.clone().imaskn(e)},s.prototype.iaddn=function(e){return i("number"==typeof e),i(e<67108864),e<0?this.isubn(-e):0!==this.negative?(1===this.length&&(0|this.words[0])<=e?
vendor: 15,566 bytes, line 1
1(this.words[0]=e-(0|this.words[0]),this.negative=0):(this.negative=0,this.isubn(e),this.negative=1),this):this._iaddn(e)},s.prototype._iaddn=function(e){this.words[0]+=e;for(var r=0;r<this.length&&this.words[r]>=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},s.prototype.isubn=function(e){if(i("number"==typeof e),i(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r<this.length&&this.words[r]<0;r++)this.words[r]+=67108864,this.words[r+1]-=1;return this._strip()},s.prototype.addn=function(e){return this.clone().iaddn(e)},s.prototype.subn=function(e){return this.clone().isubn(e)},s.prototype.iabs=function(){return this.negative=0,this},s.prototype.abs=function(){return this.clone().iabs()},s.prototype._ishlnsubmul=function(e,r,n){var o,s,a=e.length+n;this._expand(a);var u=0;for(o=0;o<e.length;o++){s=(0|this.words[o+n])+u;var c=(0|e.words[o])*r;u=((s-=67108863&c)>>26)-(c/67108864|0),this.words[o+n]=67108863&s}for(;o<this.length-n;o++)u=(s=(0|this.words[o+n])+u)>>26,this.words[o+n]=67108863&s;if(0===u)return this._strip();for(i(-1===u),u=0,o=0;o<this.length;o++)u=(s=-(0|this.words[o])+u)>>26,this.words[o]=67108863&s;return this.negative=1,this._strip()},s.prototype._wordDiv=function(e,r){var n=(this.length,e.length),i=this.clone(),o=e,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),i.iushln(n),a=0|o.words[o.length-1]);var u,c=i.length-o.length;if("mod"!==r){(u=new s(null)).length=c+1,u.words=Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var h=i.clone()._ishlnsubmul(o,1,c);0===h.negative&&(i=h,u&&(u.words[c]=1));for(var d=c-1;d>=0;d--){var f=67108864*(0|i.words[o.length+d])+(0|i.words[o.length+d-1]);for(f=Math.min(f/a|0,67108863),i._ishlnsubmul(o,f,d);0!==i.negative;)f--,i.negative=0,i._ishlnsubmul(o,1,d),i.isZero()||(i.negative^=1);u&&(u.words[d]=f)}return u&&u._strip(),i._strip(),"div"!==r&&0!==n&&i.iushrn(n),{div:u||null,mod:i}},s.prototype.divmod=function(e,r,n){var o,a,u;return i(!e.isZero()),this.isZero()?{div:new s(0),mod:new s(0)}:0!==this.negative&&0===e.negative?(u=this.neg().divmod(e,r),"mod"!==r&&(o=u.div.neg()),"div"!==r&&(a=u.mod.neg(),n&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(u=this.divmod(e.neg(),r),"mod"!==r&&(o=u.div.neg()),{div:o,mod:u.mod}):0!=(this.negative&e.negative)?(u=this.neg().divmod(e.neg(),r),"div"!==r&&(a=u.mod.neg(),n&&0!==a.negative&&a.isub(e)),{div:u.div,mod:a}):e.length>this.length||0>this.cmp(e)?{div:new s(0),mod:this}:1===e.length?"div"===r?{div:this.divn(e.words[0]),mod:null}:"mod"===r?{div:null,mod:new s(this.modrn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new s(this.modrn(e.words[0]))}:this._wordDiv(e,r)},s.prototype.div=function(e){return this.divmod(e,"div",!1).div},s.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},s.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},s.prototype.divRound=function(e){var r=this.divmod(e);if(r.mod.isZero())return r.div;var n=0!==r.div.negative?r.mod.isub(e):r.mod,i=e.ushrn(1),o=e.andln(1),s=n.cmp(i);return s<0||1===o&&0===s?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},s.prototype.modrn=function(e){var r=e<0;r&&(e=-e),i(e<=67108863);for(var n=67108864%e,o=0,s=this.length-1;s>=0;s--)o=(n*o+(0|this.words[s]))%e;return r?-o:o},s.prototype.modn=function(e){return this.modrn(e)},s.prototype.idivn=function(e){var r=e<0;r&&(e=-e),i(e<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var s=(0|this.words[o])+67108864*n;this.words[o]=s/e|0,n=s%e}return this._strip(),r?this.ineg():this},s.prototype.divn=function(e){return this.clone().idivn(e)},s.prototype.egcd=function(e){i(0===e.negative),i(!e.isZero());var r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o=new s(1),a=new s(0),u=new s(0),c=new s(1),l=0;r.isEven()&&n.isEven();)r.iushrn(1),n.iushrn(1),++l;for(var h=n.clone(),d=r.clone();!r.isZero();){for(var f=0,p=1;0==(r.words[0]&p)&&f<26;++f,p<<=1);if(f>0)for(r.iushrn(f);f-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(h),a.isub(d)),o.iushrn(1),a.iushrn(1);for(var y=0,b=1;0==(n.words[0]&b)&&y<26;++y,b<<=1);if(y>0)for(n.iushrn(y);y-- >0;)(u.isOdd()||c.isOdd())&&(u.iadd(h),c.isub(d)),u.iushrn(1),c.iushrn(1);r.cmp(n)>=0?(r.isub(n),o.isub(u),a.isub(c)):(n.isub(r),u.isub(o),c.isub(a))}return{a:u,b:c,gcd:n.iushln(l)}},s.prototype._invmp=function(e){i(0===e.negative),i(!e.isZero());var r=this,n=e.clone();r=0!==r.negative?r.umod(e):r.clone();for(var o,a=new s(1),u=new s(0),c=n.clone();r.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,h=1;0==(r.words[0]&h)&&l<26;++l,h<<=1);if(l>0)for(r.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);for(var d=0,f=1;0==(n.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(n.iushrn(d);d-- >0;)u.isOdd()&&u.iadd(c),u.iushrn(1);r.cmp(n)>=0?(r.isub(n),a.isub(u)):(n.isub(r),u.isub(a))}return 0>(o=0===r.cmpn(1)?a:u).cmpn(0)&&o.iadd(e),o},s.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var r=this.clone(),n=e.clone();r.negative=0,n.negative=0;for(var i=0;r.isEven()&&n.isEven();i++)r.iushrn(1),n.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=r.cmp(n);if(o<0){var s=r;r=n,n=s}else if(0===o||0===n.cmpn(1))break;r.isub(n)}return n.iushln(i)},s.prototype.invm=function(e){return this.egcd(e).a.umod(e)},s.prototype.isEven=function(){return 0==(1&this.words[0])},s.prototype.isOdd=function(){return 1==(1&this.words[0])},s.prototype.andln=function(e){return this.words[0]&e},s.prototype.bincn=function(e){i("number"==typeof e);var r=e%26,n=(e-r)/26,o=1<<r;if(this.length<=n)return this._expand(n+1),this.words[n]|=o,this;for(var s=o,a=n;0!==s&&a<this.length;a++){var u=0|this.words[a];s=(u+=s)>>>26,u&=67108863,this.words[a]=u}return 0!==s&&(this.words[a]=s,this.length++),this},s.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},s.prototype.cmpn=function(e){var r,n=e<0;if(0!==this.negative&&!n)return -1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)r=1;else{n&&(e=-e),i(e<=67108863,"Number is too big");var o=0|this.words[0];r=o===e?0:o<e?-1:1}return 0!==this.negative?0|-r:r},s.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return -1;if(0===this.negative&&0!==e.negative)return 1;var r=this.ucmp(e);return 0!==this.negative?0|-r:r},s.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return -1;for(var r=0,n=this.length-1;n>=0;n--){var i=0|this.words[n],o=0|e.words[n];if(i!==o){i<o?r=-1:i>o&&(r=1);break}}return r},s.prototype.gtn=function(e){return 1===this.cmpn(e)},s.prototype.gt=function(e){return 1===this.cmp(e)},s.prototype.gten=function(e){return this.cmpn(e)>=0},s.prototype.gte=function(e){return this.cmp(e)>=0},s.prototype.ltn=function(e){return -1===this.cmpn(e)},s.prototype.lt=function(e){return -1===this.cmp(e)},s.prototype.lten=function(e){return 0>=this.cmpn(e)},s.prototype.lte=function(e){return 0>=this.cmp(e)},s.prototype.eqn=function(e){return 0===this.cmpn(e)},s.prototype.eq=function(e){return 0===this.cmp(e)},s.red=function(e){return new k(e)},s.prototype.toRed=function(e){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},s.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},s.prototype._forceRed=function(e){return this.red=e,this},s.prototype.forceRed=function(e){return i(!this.red,"Already a number in reduction context"),this._forceRed(e)},s.prototype.redAdd=function(e){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},s.prototype.redIAdd=function(e){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},s.prototype.redSub=function(e){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},s.prototype.redISub=function(e){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},s.prototype.redShl=function(e){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},s.prototype.redMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},s.prototype.redIMul=function(e){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},s.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},s.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},s.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},s.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},s.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},s.prototype.redPow=function(e){return i(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var _={k256:null,p224:null,p192:null,p25519:null};function w(e,r){this.name=e,this.p=new s(r,16),this.n=this.p.bitLength(),this.k=new s(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function E(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function M(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function k(e){if("string"==typeof e){var r=s._prime(e);this.m=r.p,this.prime=r}else i(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function C(e){k.call(this,e),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new s(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var e=new s(null);return e.words=Array(Math.ceil(this.n/13)),e},w.prototype.ireduce=function(e){var r,n=e;do this.split(n,this.tmp),r=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength();while(r>this.n);var i=r<this.n?-1:n.ucmp(this.p);return 0===i?(n.words[0]=0,n.length=1):i>0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(e,r){e.iushrn(this.n,0,r)},w.prototype.imulK=function(e){return e.imul(this.k)},o(S,w),S.prototype.split=function(e,r){for(var n=Math.min(e.length,9),i=0;i<n;i++)r.words[i]=e.words[i];if(r.length=n,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(r.words[r.length++]=4194303&o,i=10;i<e.length;i++){var s=0|e.words[i];e.words[i-10]=(4194303&s)<<4|o>>>22,o=s}o>>>=22,e.words[i-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},S.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var r=0,n=0;n<e.length;n++){var i=0|e.words[n];r+=977*i,e.words[n]=67108863&r,r=64*i+(r/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(E,w),o(M,w),o(x,w),x.prototype.imulK=function(e){for(var r=0,n=0;n<e.length;n++){var i=19*(0|e.words[n])+r,o=67108863&i;i>>>=26,e.words[n]=o,r=i}return 0!==r&&(e.words[e.length++]=r),e},s._prime=function(e){var r;if(_[e])return _[e];if("k256"===e)r=new S;else if("p224"===e)r=new E;else if("p192"===e)r=new M;else{if("p25519"!==e)throw Error("Unknown prime "+e);r=new x}return _[e]=r,r},k.prototype._verify1=function(e){i(0===e.negative,"red works only with positives"),i(e.red,"red works only with red numbers")},k.prototype._verify2=function(e,r){i(0==(e.negative|r.negative),"red works only with positives"),i(e.red&&e.red===r.red,"red works only with red numbers")},k.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):(l(e,e.umod(this.m)._forceRed(this)),e)},k.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},k.prototype.add=function(e,r){this._verify2(e,r);var n=e.add(r);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},k.prototype.iadd=function(e,r){this._verify2(e,r);var n=e.iadd(r);return n.cmp(this.m)>=0&&n.isub(this.m),n},k.prototype.sub=function(e,r){this._verify2(e,r);var n=e.sub(r);return 0>n.cmpn(0)&&n.iadd(this.m),n._forceRed(this)},k.prototype.isub=function(e,r){this._verify2(e,r);var n=e.isub(r);return 0>n.cmpn(0)&&n.iadd(this.m),n},k.prototype.shl=function(e,r){return this._verify1(e),this.imod(e.ushln(r))},k.prototype.imul=function(e,r){return this._verify2(e,r),this.imod(e.imul(r))},k.prototype.mul=function(e,r){return this._verify2(e,r),this.imod(e.mul(r))},k.prototype.isqr=function(e){return this.imul(e,e.clone())},k.prototype.sqr=function(e){return this.mul(e,e)},k.prototype.sqrt=function(e){if(e.isZero())return e.clone();var r=this.m.andln(3);if(i(r%2==1),3===r){var n=this.m.add(new s(1)).iushrn(2);return this.pow(e,n)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);i(!o.isZero());var u=new s(1).toRed(this),c=u.redNeg(),l=this.m.subn(1).iushrn(1),h=this.m.bitLength();for(h=new s(2*h*h).toRed(this);0!==this.pow(h,l).cmp(c);)h.redIAdd(c);for(var d=this.pow(h,o),f=this.pow(e,o.addn(1).iushrn(1)),p=this.pow(e,o),y=a;0!==p.cmp(u);){for(var b=p,g=0;0!==b.cmp(u);g++)b=b.redSqr();i(g<y);var m=this.pow(d,new s(1).iushln(y-g-1));f=f.redMul(m),d=m.redSqr(),p=p.redMul(d),y=g}return f},k.prototype.invm=function(e){var r=e._invmp(this.m);return 0!==r.negative?(r.negative=0,this.imod(r).redNeg()):this.imod(r)},k.prototype.pow=function(e,r){if(r.isZero())return new s(1).toRed(this);if(0===r.cmpn(1))return e.clone();var n=Array(16);n[0]=new s(1).toRed(this),n[1]=e;for(var i=2;i<n.length;i++)n[i]=this.mul(n[i-1],e);var o=n[0],a=0,u=0,c=r.bitLength()%26;for(0===c&&(c=26),i=r.length-1;i>=0;i--){for(var l=r.words[i],h=c-1;h>=0;h--){var d=l>>h&1;o!==n[0]&&(o=this.sqr(o)),0!==d||0!==a?(a<<=1,a|=d,(4==++u||0===i&&0===h)&&(o=this.mul(o,n[a]),u=0,a=0)):u=0}c=26}return o},k.prototype.convertTo=function(e){var r=e.umod(this.m);return r===e?r.clone():r},k.prototype.convertFrom=function(e){var r=e.clone();return r.red=null,r},s.mont=function(e){return new C(e)},o(C,k),C.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},C.prototype.convertFrom=function(e){var r=this.imod(e.mul(this.rinv));return r.red=null,r},C.prototype.imul=function(e,r){if(e.isZero()||r.isZero())return e.words[0]=0,e.length=1,e;var n=e.imul(r),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):0>o.cmpn(0)&&(s=o.iadd(this.m)),s._forceRed(this)},C.prototype.mul=function(e,r){if(e.isZero()||r.isZero())return new s(0)._forceRed(this);var n=e.mul(r),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):0>o.cmpn(0)&&(a=o.iadd(this.m)),a._forceRed(this)},C.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,n(131)(e))},function(e,r,n){"use strict";var i;
1Object.defineProperty(r,"__esModule",{value:!0}),r.ProviderType=r.RegExpString=r.IntNumber=r.BigIntString=r.AddressString=r.HexString=r.OpaqueType=void 0,r.OpaqueType=function(){return e=>e},r.HexString=e=>e,r.AddressString=e=>e,r.BigIntString=e=>e,r.IntNumber=function(e){return Math.floor(e)},r.RegExpString=e=>e,(i=r.ProviderType||(r.ProviderType={})).CoinbaseWallet="CoinbaseWallet",i.MetaMask="MetaMask",i.Unselected=""},function(e,r,n){"use strict";n.d(r,"b",function(){return c}),n.d(r,"a",function(){return f});var i=n(0),o=n(1),s=n(4),a=n(3),u=n(6);function c(e,r,n,i){return function(o){return o.lift(new l(e,r,n,i))}}var l=function(){function e(e,r,n,i){this.keySelector=e,this.elementSelector=r,this.durationSelector=n,this.subjectSelector=i}return e.prototype.call=function(e,r){return r.subscribe(new h(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),h=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;return a.keySelector=n,a.elementSelector=i,a.durationSelector=o,a.subjectSelector=s,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return i.a(r,e),r.prototype._next=function(e){var r;try{r=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,r)},r.prototype._group=function(e,r){var n=this.groups;n||(n=this.groups=new Map);var i,o=n.get(r);if(this.elementSelector)try{i=this.elementSelector(e)}catch(e){this.error(e)}else i=e;if(!o){o=this.subjectSelector?this.subjectSelector():new u.a,n.set(r,o);var s=new f(r,o,this);if(this.destination.next(s),this.durationSelector){var a=void 0;try{a=this.durationSelector(new f(r,o))}catch(e){return void this.error(e)}this.add(a.subscribe(new d(r,o,this)))}}o.closed||o.next(i)},r.prototype._error=function(e){var r=this.groups;r&&(r.forEach(function(r,n){r.error(e)}),r.clear()),this.destination.error(e)},r.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,r){e.complete()}),e.clear()),this.destination.complete()},r.prototype.removeGroup=function(e){this.groups.delete(e)},r.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},r}(o.a),d=function(e){function r(r,n,i){var o=e.call(this,n)||this;return o.key=r,o.group=n,o.parent=i,o}return i.a(r,e),r.prototype._next=function(e){this.complete()},r.prototype._unsubscribe=function(){var e=this.parent,r=this.key;this.key=this.parent=null,e&&e.removeGroup(r)},r}(o.a),f=function(e){function r(r,n,i){var o=e.call(this)||this;return o.key=r,o.groupSubject=n,o.refCountSubscription=i,o}return i.a(r,e),r.prototype._subscribe=function(e){var r=new s.a,n=this.refCountSubscription,i=this.groupSubject;return n&&!n.closed&&r.add(new p(n)),r.add(i.subscribe(e)),r},r}(a.a),p=function(e){function r(r){var n=e.call(this)||this;return n.parent=r,r.count++,n}return i.a(r,e),r.prototype.unsubscribe=function(){var r=this.parent;r.closed||this.closed||(e.prototype.unsubscribe.call(this),r.count-=1,0===r.count&&r.attemptedToUnsubscribe&&r.unsubscribe())},r}(s.a)},function(e,r,n){"use strict";function i(){for(var e,r,n=0,i="";n<arguments.length;)(e=arguments[n++])&&(r=function e(r){var n,i,o="";if("string"==typeof r||"number"==typeof r)o+=r;else if("object"==typeof r){if(Array.isArray(r))for(n=0;n<r.length;n++)r[n]&&(i=e(r[n]))&&(o&&(o+=" "),o+=i);else for(n in r)r[n]&&(o&&(o+=" "),o+=n)}return o}(e))&&(i&&(i+=" "),i+=r);return i}n.r(r),n.d(r,"clsx",function(){return i}),r.default=i},function(e,r,n){"use strict";n.r(r),n.d(r,"Observable",function(){return i.a}),n.d(r,"ConnectableObservable",function(){return o.a}),n.d(r,"GroupedObservable",function(){return s.a}),n.d(r,"observable",function(){return a.a}),n.d(r,"Subject",function(){return u.a}),n.d(r,"BehaviorSubject",function(){return c.a}),n.d(r,"ReplaySubject",function(){return l.a}),n.d(r,"AsyncSubject",function(){return h.a}),n.d(r,"asap",function(){return d.a}),n.d(r,"asapScheduler",function(){return d.b}),n.d(r,"async",function(){return f.a}),n.d(r,"asyncScheduler",function(){return f.b}),n.d(r,"queue",function(){return p.a}),n.d(r,"queueScheduler",function(){return p.b}),n.d(r,"animationFrame",function(){return _}),n.d(r,"animationFrameScheduler",function(){return v}),n.d(r,"VirtualTimeScheduler",function(){return w}),n.d(r,"VirtualAction",function(){return S}),n.d(r,"Scheduler",function(){return E.a}),n.d(r,"Subscription",function(){return M.a}
1),n.d(r,"Subscriber",function(){return x.a}),n.d(r,"Notification",function(){return k.a}),n.d(r,"NotificationKind",function(){return k.b}),n.d(r,"pipe",function(){return C.a}),n.d(r,"noop",function(){return A.a}),n.d(r,"identity",function(){return I.a}),n.d(r,"isObservable",function(){return O}),n.d(r,"ArgumentOutOfRangeError",function(){return j.a}),n.d(r,"EmptyError",function(){return R.a}),n.d(r,"ObjectUnsubscribedError",function(){return N.a}),n.d(r,"UnsubscriptionError",function(){return T.a}),n.d(r,"TimeoutError",function(){return P.a}),n.d(r,"bindCallback",function(){return function e(r,n,o){if(n){if(!Object(F.a)(n))return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return e(r,o).apply(void 0,i).pipe(Object(L.a)(function(e){return Object(B.a)(e)?n.apply(void 0,e):n(e)}))};o=n}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var s,a=this,u={context:a,subject:s,callbackFunc:r,scheduler:o};return new i.a(function(n){if(o)return o.schedule(U,0,{args:e,subscriber:n,params:u});if(!s){s=new h.a;try{r.apply(a,e.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];s.next(e.length<=1?e[0]:e),s.complete()}]))}catch(e){Object(D.a)(s)?s.error(e):console.warn(e)}}return s.subscribe(n)})}}}),n.d(r,"bindNodeCallback",function(){return function e(r,n,o){if(n){if(!Object(F.a)(n))return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];return e(r,o).apply(void 0,i).pipe(Object(L.a)(function(e){return Object(B.a)(e)?n.apply(void 0,e):n(e)}))};o=n}return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var s={subject:void 0,args:e,callbackFunc:r,scheduler:o,context:this};return new i.a(function(n){var i=s.context,a=s.subject;if(o)return o.schedule(H,0,{params:s,subscriber:n,context:i});if(!a){a=s.subject=new h.a;try{r.apply(i,e.concat([function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.shift();n?a.error(n):(a.next(e.length<=1?e[0]:e),a.complete())}]))}catch(e){Object(D.a)(a)?a.error(e):console.warn(e)}}return a.subscribe(n)})}}}),n.d(r,"combineLatest",function(){return q.b}),n.d(r,"concat",function(){return Z.a}),n.d(r,"defer",function(){return G.a}),n.d(r,"empty",function(){return Y.b}),n.d(r,"forkJoin",function(){return Q}),n.d(r,"from",function(){return $.a}),n.d(r,"fromEvent",function(){return function e(r,n,o,s){return Object(X.a)(o)&&(s=o,o=void 0),s?e(r,n,o).pipe(Object(L.a)(function(e){return Object(B.a)(e)?s.apply(void 0,e):s(e)})):new i.a(function(e){!function e(r,n,i,o,s){if(r&&"function"==typeof r.addEventListener&&"function"==typeof r.removeEventListener)r.addEventListener(n,i,s),a=function(){return r.removeEventListener(n,i,s)};else if(r&&"function"==typeof r.on&&"function"==typeof r.off)r.on(n,i),a=function(){return r.off(n,i)};else if(r&&"function"==typeof r.addListener&&"function"==typeof r.removeListener)r.addListener(n,i),a=function(){return r.removeListener(n,i)};else{if(!r||!r.length)throw TypeError("Invalid event target");for(var a,u=0,c=r.length;u<c;u++)e(r[u],n,i,o,s)}o.add(a)}(r,n,function(r){arguments.length>1?e.next(Array.prototype.slice.call(arguments)):e.next(r)},e,o)})}}),n.d(r,"fromEventPattern",function(){return function e(r,n,o){return o?e(r,n).pipe(Object(L.a)(function(e){return Object(B.a)(e)?o.apply(void 0,e):o(e)})):new i.a(function(e){var i,o=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return e.next(1===r.length?r[0]:r)};try{i=r(o)}catch(r){return void e.error(r)}if(Object(X.a)(n))return function(){return n(o,i)}})}}),n.d(r,"generate",function(){return tt}),n.d(r,"iif",function(){return tr}),n.d(r,"interval",function(){return ti}),n.d(r,"merge",function(){return ts.a}),n.d(r,"never",function(){return tu}),n.d(r,"of",function(){return tc.a}),n.d(r,"onErrorResumeNext",function(){return tl}),n.d(r,"pairs",function(){return th}),n.d(r,"partition",function(){return tb}),n.d(r,"race",function(){return tg.a}),n.d(r,"range",function(){return tm}),n.d(r,"throwError",function(){return t_.a}),n.d(r,"timer",function(){return tw.a}),n.d(r,"using",function(){return tS}),n.d(r,"zip",function(){return tE.b}),n.d(r,"scheduled",function(){return tM.a}),n.d(r,"EMPTY",function(){return Y.a}),n.d(r,"NEVER",function(){return ta}),n.d(r,"config",function(){return tx.a});var i=n(3),o=n(71),s=n(68),a=n(22),u=n(6),c=n(72),l=n(49),h=n(31),d=n(42),f=n(7),p=n(61),y=n(0),b=n(32),g=function(e){function r(r,n){var i=e.call(this,r,n)||this;
1return i.scheduler=r,i.work=n,i}return y.a(r,e),r.prototype.requestAsyncId=function(r,n,i){return void 0===i&&(i=0),null!==i&&i>0?e.prototype.requestAsyncId.call(this,r,n,i):(r.actions.push(this),r.scheduled||(r.scheduled=requestAnimationFrame(function(){return r.flush(null)})))},r.prototype.recycleAsyncId=function(r,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return e.prototype.recycleAsyncId.call(this,r,n,i);0===r.actions.length&&(cancelAnimationFrame(n),r.scheduled=void 0)},r}(b.a),m=n(30),v=new(function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return y.a(r,e),r.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var r,n=this.actions,i=-1,o=n.length;e=e||n.shift();do if(r=e.execute(e.state,e.delay))break;while(++i<o&&(e=n.shift()));if(this.active=!1,r){for(;++i<o&&(e=n.shift());)e.unsubscribe();throw r}},r}(m.a))(g),_=v,w=function(e){function r(r,n){void 0===r&&(r=S),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=e.call(this,r,function(){return i.frame})||this;return i.maxFrames=n,i.frame=0,i.index=-1,i}return y.a(r,e),r.prototype.flush=function(){for(var e,r,n=this.actions,i=this.maxFrames;
1(r=n[0])&&r.delay<=i&&(n.shift(),this.frame=r.delay,!(e=r.execute(r.state,r.delay))););if(e){for(;r=n.shift();)r.unsubscribe();throw e}},r.frameTimeFactor=10,r}(m.a),S=function(e){function r(r,n,i){void 0===i&&(i=r.index+=1);var o=e.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.index=i,o.active=!0,o.index=r.index=i,o}return y.a(r,e),r.prototype.schedule=function(n,i){if(void 0===i&&(i=0),!this.id)return e.prototype.schedule.call(this,n,i);this.active=!1;var o=new r(this.scheduler,this.work);return this.add(o),o.schedule(n,i)},r.prototype.requestAsyncId=function(e,n,i){void 0===i&&(i=0),this.delay=e.frame+i;var o=e.actions;return o.push(this),o.sort(r.sortActions),!0},r.prototype.recycleAsyncId=function(e,r,n){void 0===n&&(n=0)},r.prototype._execute=function(r,n){if(!0===this.active)return e.prototype._execute.call(this,r,n)},r.sortActions=function(e,r){return e.delay===r.delay?e.index===r.index?0:e.index>r.index?1:-1:e.delay>r.delay?1:-1},r}(b.a),E=n(62),M=n(4),x=n(1),k=n(18),C=n(41),A=n(21),I=n(15);function O(e){return!!e&&(e instanceof i.a||"function"==typeof e.lift&&"function"==typeof e.subscribe)}var j=n(25),R=n(27),N=n(23),T=n(44),P=n(74),L=n(9),D=n(56),B=n(8),F=n(10);function U(e){var r=this,n=e.args,i=e.subscriber,o=e.params,s=o.callbackFunc,a=o.context,u=o.scheduler,c=o.subject;if(!c){c=o.subject=new h.a;try{s.apply(a,n.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.length<=1?e[0]:e;r.add(u.schedule(W,0,{value:i,subject:c}))}]))}catch(e){c.error(e)}}this.add(c.subscribe(i))}function W(e){var r=e.value,n=e.subject;n.next(r),n.complete()}function H(e){var r=this,n=e.params,i=e.subscriber,o=e.context,s=n.callbackFunc,a=n.args,u=n.scheduler,c=n.subject;if(!c){c=n.subject=new h.a;try{s.apply(o,a.concat([function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];var i=e.shift();if(i)r.add(u.schedule(V,0,{err:i,subject:c}));else{var o=e.length<=1?e[0]:e;r.add(u.schedule(z,0,{value:o,subject:c}))}}]))}catch(e){this.add(u.schedule(V,0,{err:e,subject:c}))}}this.add(c.subscribe(i))}function z(e){var r=e.value,n=e.subject;n.next(r),n.complete()}function V(e){var r=e.err;e.subject.error(r)}var q=n(51),Z=n(34),G=n(53),Y=n(11),J=n(55),$=n(12);function Q(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(1===e.length){var n=e[0];if(Object(B.a)(n))return K(n,null);if(Object(J.a)(n)&&Object.getPrototypeOf(n)===Object.prototype){var i=Object.keys(n);return K(i.map(function(e){return n[e]}),i)}}if("function"==typeof e[e.length-1]){var o=e.pop();return K(e=1===e.length&&Object(B.a)(e[0])?e[0]:e,null).pipe(Object(L.a)(function(e){return o.apply(void 0,e)}))}return K(e,null)}function K(e,r){return new i.a(function(n){var i=e.length;if(0!==i)for(var o=Array(i),s=0,a=0,u=function(u){var c=Object($.a)(e[u]),l=!1;n.add(c.subscribe({next:function(e){l||(l=!0,a++),o[u]=e},error:function(e){return n.error(e)},complete:function(){++s!==i&&l||(a===i&&n.next(r?r.reduce(function(e,r,n){return e[r]=o[n],e},{}):o),n.complete())}}))},c=0;c<i;c++)u(c);else n.complete()})}var X=n(26);function tt(e,r,n,o,s){var a,u;return 1==arguments.length?(u=e.initialState,r=e.condition,n=e.iterate,a=e.resultSelector||I.a,s=e.scheduler):void 0===o||Object(F.a)(o)?(u=e,a=I.a,s=o):(u=e,a=o),new i.a(function(e){var i=u;if(s)return s.schedule(te,0,{subscriber:e,iterate:n,condition:r,resultSelector:a,state:i});for(;;){if(r){var o=void 0;try{o=r(i)}catch(r){return void e.error(r)}if(!o){e.complete();break}}var c=void 0;try{c=a(i)}catch(r){return void e.error(r)}if(e.next(c),e.closed)break;try{i=n(i)}catch(r){return void e.error(r)}}})}function te(e){var r=e.subscriber,n=e.condition;if(!r.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void r.error(e)}else e.needIterate=!0;if(n){var i,o=void 0;try{o=n(e.state)}catch(e){return void r.error(e)}if(!o)return void r.complete();if(r.closed)return}try{i=e.resultSelector(e.state)}catch(e){return void r.error(e)}if(!r.closed&&(r.next(i),!r.closed))return this.schedule(e)}}function tr(e,r,n){return void 0===r&&(r=Y.a),void 0===n&&(n=Y.a),Object(G.a)(function(){return e()?r:n})}var tn=n(33);function ti(e,r){return void 0===e&&(e=0),void 0===r&&(r=f.a),(!Object(tn.a)(e)||e<0)&&(e=0),r&&"function"==typeof r.schedule||(r=f.a),new i.a(function(n){return n.add(r.schedule(to,e,{subscriber:n,counter:0,peri
1od:e})),n})}function to(e){var r=e.subscriber,n=e.counter,i=e.period;r.next(n),this.schedule({subscriber:r,counter:n+1,period:i},i)}var ts=n(76),ta=new i.a(A.a);function tu(){return ta}var tc=n(39);function tl(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(0===e.length)return Y.a;var n=e[0],o=e.slice(1);return 1===e.length&&Object(B.a)(n)?tl.apply(void 0,n):new i.a(function(e){var r=function(){return e.add(tl.apply(void 0,o).subscribe(e))};return Object($.a)(n).subscribe({next:function(r){e.next(r)},error:r,complete:r})})}function th(e,r){return new i.a(r?function(n){var i=Object.keys(e),o=new M.a;return o.add(r.schedule(td,0,{keys:i,index:0,subscriber:n,subscription:o,obj:e})),o}:function(r){for(var n=Object.keys(e),i=0;i<n.length&&!r.closed;i++){var o=n[i];e.hasOwnProperty(o)&&r.next([o,e[o]])}r.complete()})}function td(e){var r=e.keys,n=e.index,i=e.subscriber,o=e.subscription,s=e.obj;if(!i.closed){if(n<r.length){var a=r[n];i.next([a,s[a]]),o.add(this.schedule({keys:r,index:n+1,subscriber:i,subscription:o,obj:s}))}else i.complete()}}var tf=n(84),tp=n(35),ty=n(17);function tb(e,r,n){return[Object(ty.a)(r,n)(new i.a(Object(tp.a)(e))),Object(ty.a)(Object(tf.a)(r,n))(new i.a(Object(tp.a)(e)))]}var tg=n(77);function tm(e,r,n){return void 0===e&&(e=0),new i.a(function(i){void 0===r&&(r=e,e=0);var o=0,s=e;if(n)return n.schedule(tv,0,{index:o,count:r,start:e,subscriber:i});for(;;){if(o++>=r){i.complete();break}if(i.next(s++),i.closed)break}})}function tv(e){var r=e.start,n=e.index,i=e.count,o=e.subscriber;n>=i?o.complete():(o.next(r),o.closed||(e.index=n+1,e.start=r+1,this.schedule(e)))}var t_=n(50),tw=n(78);function tS(e,r){return new i.a(function(n){try{i=e()}catch(e){return void n.error(e)}try{o=r(i)}catch(e){return void n.error(e)}var i,o,s=(o?Object($.a)(o):Y.a).subscribe(n);return function(){s.unsubscribe(),i&&i.unsubscribe()}})}var tE=n(54),tM=n(79),tx=n(14)},function(e,r,n){"use strict";n.d(r,"a",function(){return h}),n.d(r,"b",function(){return d});var i,o=n(0),s=n(6),a=n(3),u=n(1),c=n(4),l=n(48),h=function(e){function r(r,n){var i=e.call(this)||this;return i.source=r,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return o.a(r,e),r.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},r.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},r.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new c.a).add(this.source.subscribe(new f(this.getSubject(),this))),e.closed&&(this._connection=null,e=c.a.EMPTY)),e},r.prototype.refCount=function(){return Object(l.a)()(this)},r}(a.a),d={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(i=h.prototype)._subscribe},_isComplete:{value:i._isComplete,writable:!0},getSubject:{value:i.getSubject},connect:{value:i.connect},refCount:{value:i.refCount}},f=function(e){function r(r,n){var i=e.call(this,r)||this;return i.connectable=n,i}return o.a(r,e),r.prototype._error=function(r){this._unsubscribe(),e.prototype._error.call(this,r)},r.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var r=e._connection;e._refCount=0,e._subject=null,e._connection=null,r&&r.unsubscribe()}},r}(s.b);u.a},function(e,r,n){"use strict";n.d(r,"a",function(){return a});var i=n(0),o=n(6),s=n(23),a=function(e){function r(r){var n=e.call(this)||this;return n._value=r,n}return i.a(r,e),Object.defineProperty(r.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),r.prototype._subscribe=function(r){var n=e.prototype._subscribe.call(this,r);return n&&!n.closed&&r.next(this._value),n},r.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new s.a;return this._value},r.prototype.next=function(r){e.prototype.next.call(this,this._value=r)},r}(o.a)},function(e,r,n){"use strict";n.d(r,"b",function(){return a}),n.d(r,"a",function(){return c});var i=n(0),o=n(1),s=n(18);function a(e,r){return void 0===r&&(r=0),function(n){return n.lift(new u(e,r))}}var u=function(){function e(e,r){void 0===r&&(r=0),this.scheduler
1=e,this.delay=r}return e.prototype.call=function(e,r){return r.subscribe(new c(e,this.scheduler,this.delay))},e}(),c=function(e){function r(r,n,i){void 0===i&&(i=0);var o=e.call(this,r)||this;return o.scheduler=n,o.delay=i,o}return i.a(r,e),r.dispatch=function(e){var r=e.notification,n=e.destination;r.observe(n),this.unsubscribe()},r.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(r.dispatch,this.delay,new l(e,this.destination)))},r.prototype._next=function(e){this.scheduleMessage(s.a.createNext(e))},r.prototype._error=function(e){this.scheduleMessage(s.a.createError(e)),this.unsubscribe()},r.prototype._complete=function(){this.scheduleMessage(s.a.createComplete()),this.unsubscribe()},r}(o.a),l=function(e,r){this.notification=e,this.destination=r}},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(){function e(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return e.prototype=Object.create(Error.prototype),e}()},function(e,r,n){"use strict";n.d(r,"a",function(){return o});var i=n(52);function o(){return Object(i.a)(1)}},function(e,r,n){"use strict";n.d(r,"a",function(){return u});var i=n(3),o=n(10),s=n(52),a=n(29);function u(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=Number.POSITIVE_INFINITY,u=null,c=e[e.length-1];return Object(o.a)(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 i.a?e[0]:Object(s.a)(n)(Object(a.a)(e,u))}},function(e,r,n){"use strict";n.d(r,"a",function(){return c});var i=n(0),o=n(8),s=n(29),a=n(16),u=n(13);function c(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];if(1===e.length){if(!Object(o.a)(e[0]))return e[0];e=e[0]}return Object(s.a)(e,void 0).lift(new l)}var l=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new h(e))},e}(),h=function(e){function r(r){var n=e.call(this,r)||this;return n.hasFirst=!1,n.observables=[],n.subscriptions=[],n}return i.a(r,e),r.prototype._next=function(e){this.observables.push(e)},r.prototype._complete=function(){var e=this.observables,r=e.length;if(0===r)this.destination.complete();else{for(var n=0;n<r&&!this.hasFirst;n++){var i=e[n],o=Object(u.a)(this,i,void 0,n);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},r.prototype.notifyNext=function(e,r,n){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==n){var o=this.subscriptions[i];o.unsubscribe(),this.remove(o)}this.subscriptions=null}this.destination.next(r)},r}(a.a)},function(e,r,n){"use strict";n.d(r,"a",function(){return u});var i=n(3),o=n(7),s=n(33),a=n(10);function u(e,r,n){void 0===e&&(e=0);var u=-1;return Object(s.a)(r)?u=1>Number(r)?1:Number(r):Object(a.a)(r)&&(n=r),Object(a.a)(n)||(n=o.a),new i.a(function(r){var i=Object(s.a)(e)?e:+e-n.now();return n.schedule(c,i,{index:0,period:u,subscriber:r})})}function c(e){var r=e.index,n=e.period,i=e.subscriber;if(i.next(r),!i.closed){if(-1===n)return i.complete();e.index=r+1,this.schedule(e,n)}}},function(e,r,n){"use strict";n.d(r,"a",function(){return h});var i=n(3),o=n(4),s=n(22),a=n(57),u=n(20),c=n(83),l=n(82);function h(e,r){if(null!=e){if(e&&"function"==typeof e[s.a])return new i.a(function(n){var i=new o.a;return i.add(r.schedule(function(){var o=e[s.a]();i.add(o.subscribe({next:function(e){i.add(r.schedule(function(){return n.next(e)}))},error:function(e){i.add(r.schedule(function(){return n.error(e)}))},complete:function(){i.add(r.schedule(function(){return n.complete()}))}}))})),i});if(Object(c.a)(e))return new i.a(function(n){var i=new o.a;return i.add(r.schedule(function(){return e.then(function(e){i.add(r.schedule(function(){n.next(e),i.add(r.schedule(function(){return n.complete()}))}))},function(e){i.add(r.schedule(function(){return n.error(e)}))})})),i});if(Object(l.a)(e))return Object(a.a)(e,r);if(e&&"function"==typeof e[u.a]||"string"==typeof e)return function(e,r){if(!e)throw Error("Iterable cannot be null");return new i.a(function(n){var i,s=new o.a;return s.add(function(){i&&"function"==typeof i.return&&i.return()}),s.add(r.schedule(function(){i=e[u.a](),s.add(r.schedule(function(){if(!n.closed){var e,r;try{var o=i.next();e=o.value,r=o.done}catch(e){return void n.error(e)}r?n.complete():(n.next(e),this.schedule())}}))})),s})}(e,r)}throw TypeError((null!==e&&typeof e||e)+" is not observable")}},function(e,r,n){"use strict";n.d(r,"a",function(){return o}
1);var i=n(0),o=function(e){function r(r,n){var i=e.call(this)||this;return i.subject=r,i.subscriber=n,i.closed=!1,i}return i.a(r,e),r.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,r=e.observers;if(this.subject=null,r&&0!==r.length&&!e.isStopped&&!e.closed){var n=r.indexOf(this.subscriber);-1!==n&&r.splice(n,1)}}},r}(n(4).a)},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(e){return function(r){for(var n=0,i=e.length;n<i&&!r.closed;n++)r.next(e[n]);r.complete()}}},function(e,r,n){"use strict";n.d(r,"a",function(){return i});var i=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e}},function(e,r,n){"use strict";function i(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";function i(e,r){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=e,n.thisArg=r,n}n.d(r,"a",function(){return i})},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CoinbaseWalletProvider=r.CoinbaseWalletSDK=void 0;let i=n(102),o=n(86);var s=n(102);Object.defineProperty(r,"CoinbaseWalletSDK",{enumerable:!0,get:function(){return s.CoinbaseWalletSDK}});var a=n(86);Object.defineProperty(r,"CoinbaseWalletProvider",{enumerable:!0,get:function(){return a.CoinbaseWalletProvider}}),r.default=i.CoinbaseWalletSDK,"undefined"!=typeof window&&(window.CoinbaseWalletSDK=i.CoinbaseWalletSDK,window.CoinbaseWalletProvider=o.CoinbaseWalletProvider,window.WalletLink=i.CoinbaseWalletSDK,window.WalletLinkProvider=o.CoinbaseWalletProvider)},function(e,r,n){"use strict";(function(e){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoinbaseWalletProvider=void 0;let o=i(n(64)),s=i(n(66)),a=n(87),u=n(90),c=n(91),l=n(108),h=n(38),d=i(n(152)),f=n(168),p=n(169),y=n(170);class b extends o.default{constructor(e){var r,n;super(),this._filterPolyfill=new f.FilterPolyfill(this),this._subscriptionManager=new y.SubscriptionManager(this),this._relay=null,this._addresses=[],this.hasMadeFirstChainChangedEmission=!1,this._send=this.send.bind(this),this._sendAsync=this.sendAsync.bind(this),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===(r=e.overrideIsCoinbaseWallet)||void 0===r||r,this.isCoinbaseBrowser=null!==(n=e.overrideIsCoinbaseBrowser)&&void 0!==n&&n,this.qrUrl=e.qrUrl,this.supportsAddressSwitching=e.supportsAddressSwitching,this.isLedger=e.isLedger;let i=this.getChainId(),o=(0,h.prepend0x)(i.toString(16));this.emit("connect",{chainIdStr:o});let s=this._storage.getItem(l.LOCAL_STORAGE_ADDRESSES_KEY);if(s){let e=s.split(" ");""!==e[0]&&(this._addresses=e.map(e=>(0,h.ensureAddressString)(e)),this.emit("accountsChanged",e))}this._subscriptionManager.events.on("notification",e=>{this.emit("message",{type:e.method,data:e.params})}),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",e=>{var r;if(e.origin===location.origin&&e.source===window&&"walletLinkMessage"===e.data.type){if("defaultChainChanged"===e.data.data.action||"dappChainSwitched"===e.data.data.action){let n=e.data.data.chainId,i=null!==(r=e.data.data.jsonRpcUrl)&&void 0!==r?r:this.jsonRpcUrl;this.updateProviderInfo(i,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,h.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("DefaultJsonRpcUrl"))&&void 0!==e?e:this._jsonRpcUrlFromOpts}set jsonRpcUrl(e){this._storage.setItem("DefaultJsonRpcUrl",e)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(e,r){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=r,this._jsonRpcUrlFromOpts=e),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(e,r){this.jsonRpcUrl=e;let n=this.getChainId();this._storage.setItem("DefaultChainId",r.toString(10)),!((0,h.ensureIntNumber)(r)!==n)&&this.hasMadeFirstChainChangedEmission||(this.emit
1("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(e,r,n,i,o,s){let a=await this.initializeRelay();return!!(await a.watchAsset(e,r,n,i,o,null==s?void 0:s.toString()).promise).result}async addEthereumChain(e,r,n,i,o,s){var a,u;if((0,h.ensureIntNumber)(e)===this.getChainId())return!1;let c=await this.initializeRelay(),l=c.inlineAddEthereumChain(e.toString());this._isAuthorized()||l||await c.requestEthereumAccounts().promise;let d=await c.addEthereumChain(e.toString(),r,o,n,i,s).promise;return!0===(null===(a=d.result)||void 0===a?void 0:a.isApproved)&&this.updateProviderInfo(r[0],e),!0===(null===(u=d.result)||void 0===u?void 0:u.isApproved)}async switchEthereumChain(e){let r=await this.initializeRelay(),n=await r.switchEthereumChain(e.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw a.ethErrors.provider.custom({code:n.errorCode});let i=n.result;i.isApproved&&i.rpcUrl.length>0&&this.updateProviderInfo(i.rpcUrl,e)}setAppInfo(e,r){this.initializeRelay().then(n=>n.setAppInfo(e,r))}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?c.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(p.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(e,r){if("string"==typeof e){let n={jsonrpc:"2.0",id:0,method:e,params:Array.isArray(r)?r:void 0!==r?[r]:[]};return this._sendRequestAsync(n).then(e=>e.result)}return"function"==typeof r?this._sendAsync(e,r):Array.isArray(e)?e.map(e=>this._sendRequest(e)):this._sendRequest(e)}async sendAsync(e,r){if("function"!=typeof r)throw Error("callback is required");return Array.isArray(e)?void this._sendMultipleRequestsAsync(e).then(e=>r(null,e)).catch(e=>r(e,null)):this._sendRequestAsync(e).then(e=>r(null,e)).catch(e=>r(e,null))}async request(e){if(!e||"object"!=typeof e||Array.isArray(e))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:e});let{method:r,params:n}=e;if("string"!=typeof r||0===r.length)throw a.ethErrors.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 a.ethErrors.rpc.invalidRequest({message:"'args.params' must be an object or array if provided.",data:e});let i=void 0===n?[]:n,o=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:r,params:i,jsonrpc:"2.0",id:o})).result}async scanQRCode(e){let r=await this.initializeRelay(),n=await r.scanQRCode((0,h.ensureRegExpString)(e)).promise;if("string"!=typeof n.result)throw Error("result was not a string");return n.result}async genericRequest(e,r){let n=await this.initializeRelay(),i=await n.genericRequest(e,r).promise;if("string"!=typeof i.result)throw Error("result was not a string");return i.result}async selectProvider(e){let r=await this.initializeRelay(),n=await r.selectProvider(e).promise;if("string"!=typeof n.result)throw Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw Error("Subscriptions are not supported")}unsubscribe(){throw Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(e){let r={jsonrpc:"2.0",id:e.id},{method:n}=e;if(r.result=this._handleSynchronousMethods(e),void 0===r.result)throw Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return r}_setAddresses(e,r){if(!Array.isArray(e))throw Error("addresses is not an array");let n=e.map(e=>(0,h.ensureAddressString)(e));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!r||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(l.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(e){return new Promise((r,n)=>{try{let i=this._handleSynchronousMethods(e);if(void 0!==i)return r({jsonrpc:"2.0",id:e.id,result:i});let o=this._handleAsynchronousFilterMethods(e);if(void 0!==o)return void o.then(n=>r(Object.assign(Object.assign({},n),{id:e.id}))).catch(e=>n(e));let s=this._handleSubscriptionMethods(e);if(void 0!==s)return void s.then(n=>r({jsonrpc:"2.0",id:e.id,result:n.result})).catch(e=>n(e))}catch(e){return n(e)}this._handleAsynchronousMethods(e).then(n=>n&&r(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:r}=e,n=e.params||[];switch(r){case p.JSONRPCMethod.eth_accounts:return this._eth_accounts();case p.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case p.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case p.JSONRPCMethod.net_version:return this._net_version();case p.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(e){let{method:r}=e,n=e.params||[];switch(r){case p.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case p.JSONRPCMethod.eth_sign:return this._eth_sign(n);case p.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case p.JSONRPCMethod.personal_sign:return this._personal_sign(n);case p.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case p.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case p.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case p.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case p.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case p.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case p.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case p.JSONRPCMethod.eth_signTypedData_v4:case p.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case p.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case p.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case p.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case p.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(e,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(e){let{method:r}=e,n=e.params||[];switch(r){case p.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case p.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case p.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case p.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case p.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(e){switch(e.method){case p.JSONRPCMethod.eth_subscribe:case p.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(e)}}_isKnownAddress(e){try{let r=(0,h.ensureAddressString)(e);return this._addresses.map(e=>(0,h.ensureAddressString)(e)).includes(r)}catch(e){}return!1}_ensureKnownAddress(e){var r;if(!this._isKnownAddress(e))throw null===(r=this.diagnostic)||void 0===r||r.log(u.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),Error("Unknown Ethereum address")}_prepareTransactionParams(r){let n=r.from?(0,h.ensureAddressString)(r.from):this.selectedAddress;if(!n)throw Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:r.to?(0,h.ensureAddressString)(r.to):null,weiValue:null!=r.value?(0,h.ensureBN)(r.value):new s.default(0),data:r.data?(0,h.ensureBuffer)(r.data):e.alloc(0),nonce:null!=r.nonce?(0,h.ensureIntNumber)(r.nonce):null,gasPriceInWei:null!=r.gasPrice?(0,h.ensureBN)(r.gasPrice):null,maxFeePerGas:null!=r.maxFeePerGas?(0,h.ensureBN)(r.maxFeePerGas):null,maxPriorityFeePerGas:null!=r.maxPriorityFeePerGas?(0,h.ensureBN)(r.maxPriorityFeePerGas):null,gasLimit:null!=r.gas?(0,h.ensureBN)(r.gas):null,chainId:this.getChainId()}}_isAuthorized(){return this._addresses.length>0}_requireAuthorization(){if(!this._isAuthorized())throw a.ethErrors.provider.unauthorized({})}_throwUnsupportedMethodError(){throw a.ethErrors.provider.unsupportedMethod({})}async _signEthereumMessage(e,r,n,i){this._ensureKnownAddress(r);try{let o=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await o.signEthereumMessage(e,r,n,i).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw e}}async _ethereumAddressFromSignedMessage(e,r,n){let i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.ethereumAddressFromSignedMessage(e,r,n).promise).result}}_eth_accounts(){return[...this._addresses]}_eth_coinbase(){return this.selectedAddress||null}_net_version(){return this.getChainId().toString(10)}_eth_chainId(){return(0,h.hexStringFromIntNumber)(this.getChainId())}getChainId(){let e=this._storage.getItem("DefaultChainId");if(!e)return(0,h.ensureIntNumber)(this._chainIdFromOpts);let r=parseInt(e,10);return(0,h.ensureIntNumber)(r)}async _eth_requestAccounts(){var e;let r;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?c.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});try{let e=await this.initializeRelay();r=await e.requestEthereumAccounts().promise}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw e}if(!r.result)throw Error("accounts received is empty");return this._setAddresses(r.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(e){this._requireAuthorization();let r=(0,h.ensureAddressString)(e[0]),n=(0,h.ensureBuffer)(e[1]);return this._signEthereumMessage(n,r,!1)}_eth_ecRecover(e){let r=(0,h.ensureBuffer)(e[0]),n=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(r,n,!1)}_personal_sign(e){this._requireAuthorization();let r=(0,h.ensureBuffer)(e[0]),n=(0,h.ensureAddressString)(e[1]);return this._signEthereumMessage(r,n,!0)}_personal_ecRecover(e){let r=(0,h.ensureBuffer)(e[0]),n=(0,h.ensureBuffer)(e[1]);return this._ethereumAddressFromSignedMessage(r,n,!0)}async _eth_signTransaction(e){this._requireAuthorization();let r=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signEthereumTransaction(r).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_sendRawTransaction(e){let r=(0,h.ensureBuffer)(e[0]),n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.submitEthereumTransaction(r,this.getChainId()).promise).result}}async _eth_sendTransaction(e){this._requireAuthorization();let r=this._prepareTransactionParams(e[0]||{});try{let e=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await e.signAndSubmitEthereumTransaction(r).promise).result}}catch(e){if("string"==typeof e.message&&e.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw e}}async _eth_signTypedData_v1(e){this._requireAuthorization();let r=(0,h.ensureParsedJSONObject)(e[0]),n=(0,h.ensureAddressString)(e[1]);this._ensureKnownAddress(n);let i=d.default.hashForSignTypedDataLegacy({data:r}),o=JSON.stringify(r,null,2);return this._signEthereumMessage(i,n,!1,o)}async _eth_signTypedData_v3(e){this._requireAuthorization();let r=(0,h.ensureAddressString)(e[0]),n=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(r);let i=d.default.hashForSignTypedData_v3({data:n}),o=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,o)}async _eth_signTypedData_v4(e){this._requireAuthorization();let r=(0,h.ensureAddressString)(e[0]),n=(0,h.ensureParsedJSONObject)(e[1]);this._ensureKnownAddress(r);let i=d.default.hashForSignTypedData_v4({data:n}),o=JSON.stringify(n,null,2);return this._signEthereumMessage(i,r,!1,o)}async _cbwallet_arbitrary(e){let r=e[0],n=e[1];if("string"!=typeof n)throw Error("parameter must be a string");if("object"!=typeof r||null===r)throw Error("parameter must be an object");
1return{jsonrpc:"2.0",id:0,result:await this.genericRequest(r,n)}}async _wallet_addEthereumChain(e){var r,n,i,o;let s=e[0];if(0===(null===(r=s.rpcUrls)||void 0===r?void 0:r.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!s.chainName||""===s.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!s.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});let u=parseInt(s.chainId,16);return await this.addEthereumChain(u,null!==(n=s.rpcUrls)&&void 0!==n?n:[],null!==(i=s.blockExplorerUrls)&&void 0!==i?i:[],s.chainName,null!==(o=s.iconUrls)&&void 0!==o?o:[],s.nativeCurrency)?{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 r=e[0];return await this.switchEthereumChain(parseInt(r.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(e){let r=Array.isArray(e)?e[0]:e;if(!r.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if("ERC20"!==(null==r?void 0:r.type))throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${r.type}' is not supported`});if(!(null==r?void 0:r.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==r?void 0:r.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});let n=this.getChainId(),{address:i,symbol:o,image:s,decimals:u}=r.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(r.type,i,o,u,s,n)}}_eth_uninstallFilter(e){let r=(0,h.ensureHexString)(e[0]);return this._filterPolyfill.uninstallFilter(r)}async _eth_newFilter(e){let r=e[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(r)}}async _eth_newBlockFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newBlockFilter()}}async _eth_newPendingTransactionFilter(){return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newPendingTransactionFilter()}}_eth_getFilterChanges(e){let r=(0,h.ensureHexString)(e[0]);return this._filterPolyfill.getFilterChanges(r)}_eth_getFilterLogs(e){let r=(0,h.ensureHexString)(e[0]);return this._filterPolyfill.getFilterLogs(r)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then(e=>(e.setAccountsCallback((e,r)=>this._setAddresses(e,r)),e.setChainCallback((e,r)=>{this.updateProviderInfo(r,parseInt(e,10))}),e.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=e,e))}}r.CoinbaseWalletProvider=b}).call(this,n(19).Buffer)},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getMessageFromCode=r.serializeError=r.EthereumProviderError=r.EthereumRpcError=r.ethErrors=r.errorCodes=void 0;let i=n(88);Object.defineProperty(r,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(r,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let o=n(104);Object.defineProperty(r,"serializeError",{enumerable:!0,get:function(){return o.serializeError}}),Object.defineProperty(r,"getMessageFromCode",{enumerable:!0,get:function(){return o.getMessageFromCode}});let s=n(133);Object.defineProperty(r,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});let a=n(89);Object.defineProperty(r,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.EthereumRpcError=void 0;let i=n(103);class o extends Error{constructor(e,r,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string.');super(r),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 i.default(this.serialize(),s,2)}}function s(e,r){if("[Circular]"!==r)return r}r.EthereumRpcError=o,r.EthereumProviderError=class extends o{constructor(e,r,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code
1<= 4999');super(e,r,n)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.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}},r.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."}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EVENTS=void 0,r.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"}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Session=void 0;let i=n(134),o=n(38);class s{constructor(e,r,n,s){this._storage=e,this._id=r||(0,o.randomBytesHex)(16),this._secret=n||(0,o.randomBytesHex)(32),this._key=(new i.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!s}static load(e){let r=e.getItem("session:id"),n=e.getItem("session:linked"),i=e.getItem("session:secret");return r&&i?new s(e,r,i,"1"===n):null}static hash(e){return(new i.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("session:id",this._id),this._storage.setItem("session:secret",this._secret),this.persistLinked(),this}persistLinked(){this._storage.setItem("session:linked",this._linked?"1":"0")}}r.Session=s},function(e,r,n){"use strict";var i=SyntaxError,o=Function,s=TypeError,a=function(e){try{return o('"use strict"; return ('+e+").constructor;")()}catch(e){}},u=Object.getOwnPropertyDescriptor;if(u)try{u({},"")}catch(e){u=null}var c=function(){throw new s},l=u?function(){try{return c}catch(e){try{return u(arguments,"callee").get}catch(e){return c}}}():c,h=n(142)(),d=n(144)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),p={},y="undefined"!=typeof Uint8Array&&f?f(Uint8Array):void 0,b={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":h&&f?f([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":p,"%AsyncGenerator%":p,"%AsyncGeneratorFunction%":p,"%AsyncIteratorPrototype%":p,"%Atomics%":"undefined"==typeof Atomics?void 0:Atomics,"%BigInt%":"undefined"==typeof BigInt?void 0:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?void 0:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?void 0:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?void 0:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?void 0:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?void 0:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?void 0:FinalizationRegistry,"%Function%":o,"%GeneratorFunction%":p,"%Int8Array%":"undefined"==typeof Int8Array?void 0:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?void 0:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?void 0:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%
1IteratorPrototype%":h&&f?f(f([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&h&&f?f((new Map)[Symbol.iterator]()):void 0,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?void 0:Promise,"%Proxy%":"undefined"==typeof Proxy?void 0:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?void 0:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?void 0:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&h&&f?f((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":h&&f?f(""[Symbol.iterator]()):void 0,"%Symbol%":h?Symbol:void 0,"%SyntaxError%":i,"%ThrowTypeError%":l,"%TypedArray%":y,"%TypeError%":s,"%Uint8Array%":"undefined"==typeof Uint8Array?void 0:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?void 0:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?void 0:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?void 0:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?void 0:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?void 0:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?void 0:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));b["%Error.prototype%"]=g}var m={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},v=n(93),_=n(146),w=v.call(Function.call,Array.prototype.concat),S=v.call(Function.apply,Array.prototype.splice),E=v.call(Function.call,String.prototype.replace),M=v.call(Function.call,String.prototype.slice),x=v.call(Function.call,RegExp.prototype.exec),k=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,C=/\\(\\)?/g,A=function(e){var r=M(e,0,1),n=M(e,-1);if("%"===r&&"%"!==n)throw new i("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==r)throw new i("invalid intrinsic syntax, expected opening `%`");var o=[];return E(e,k,function(e,r,n,i){o[o.length]=n?E(i,C,"$1"):r||e}),o},I=function(e,r){var n,o=e;if(_(m,o)&&(o="%"+(n=m[o])[0]+"%"),_(b,o)){var u=b[o];if(u===p&&(u=function e(r){var n;if("%AsyncFunction%"===r)n=a("async function () {}");else if("%GeneratorFunction%"===r)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===r)n=a("async function* () {}");else if("%AsyncGenerator%"===r){var i=e("%AsyncGeneratorFunction%");i&&(n=i.prototype)}else if("%AsyncIteratorPrototype%"===r){var o=e("%AsyncGenerator%");o&&f&&(n=f(o.prototype))}return b[r]=n,n}(o)),void 0===u&&!r)throw new s("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:o,value:u}}throw new i("intrinsic "+e+" does not exist!")};e.exports=function(e,r){if("string"!=typeof e||0===e.length)throw new s("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof r)throw new s('"allowMissing" argument must be a boolean');if(null===x(/^%?[^%]*%?$/,e))throw new i("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=A(e),o=n.length>0?n[0]:"",a=I("%"+o+"%",r),c=a.name,l=a.value,h=!1,d=a.alias;d&&(o=d[0],S(n,w([0,1],d)));for(var f=1,p=!0;f<n.length;f+=1){var y=n[f],g=M(y,0,1),m=M(y,-1);if(('"'===g||"'"===g||"`"===g||'"'===m||"'"===m||"`"===m)&&g!==m)throw new i("property names with quotes must have matching quotes");if("constructor"!==y&&p||(h=!0),_(b,c="%"+(o+="."+y)+"%"))l=b[c];else if(null!=l){if(!(y in l)){if(!r)throw new s("base intrinsic for "+e+" exists, but the property is not available.");return}if(u&&f+1>=n.length){var v=u(l,y);l=(p=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[y]}else p=_(l,y),l=l[y];p&&!h&&(b[c]=l)}}return l}},function(e,r,n){"use strict";var i=n(145);e.exports=Function.prototype.bind||i},function(e,r,n){"use strict";var i=String.prototype.replace,o=/%20/g,s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return i.call(e,o,"+")},RFC3986:function(e){return String(e)}},RFC1738:"RFC1738",RFC3986:s}},function(e,r,n){"use strict";var i=n(46).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}e.exports=function e(r,n,s){if("function"==typeof n)return e(r,null,n);n||(n={}),a=s||o,u=!1,s=function(){if(!u){u=!0;for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];a.apply(this,r)}};var a,u,c=n.readable||!1!==n.readable&&r.readable,l=n.writable||!1!==n.writable&&r.writable,h=function(){r.writable||f()},d=r._writableState&&r._writableState.finished,f=function(){l=!1,d=!0,c||s.call(r)},p=r._readableState&&r._readableState.endEmitted,y=function(){c=!1,p=!0,l||s.call(r)},b=function(e){s.call(r,e)},g=function(){var e;return c&&!p?(r._readableState&&r._readableState.ended||(e=new i),s.call(r,e)):l&&!d?(r._writableState&&r._writableState.ended||(e=new i),s.call(r,e)):void 0},m=function(){r.req.on("finish",f)};return r.setHeader&&"function"==typeof r.abort?(r.on("complete",f),r.on("abort",g),r.req?m():r.on("request",m)):l&&!r._writableState&&(r.on("end",h),r.on("close",h)),r.on("end",y),r.on("finish",f),!1!==n.error&&r.on("error",b),r.on("close",g),function(){r.removeListener("complete",f),r.removeListener("abort",g),r.removeListener("request",m),r.req&&r.req.removeListener("finish",f),r.removeListener("end",h),r.removeListener("close",h),r.removeListener("finish",f),r.removeListener("end",y),r.removeListener("error",b),r.removeListener("close",g)}}},function(e,r,n){"use strict";
1Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumProviderError=r.EthereumRpcError=void 0;let i=n(103);class o extends Error{constructor(e,r,n){if(!Number.isInteger(e))throw Error('"code" must be an integer.');if(!r||"string"!=typeof r)throw Error('"message" must be a nonempty string.');super(r),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 i.default(this.serialize(),s,2)}}function s(e,r){if("[Circular]"!==r)return r}r.EthereumRpcError=o,r.EthereumProviderError=class extends o{constructor(e,r,n){if(!(Number.isInteger(e)&&e>=1e3&&e<=4999))throw Error('"code" must be an integer such that: 1000 <= code <= 4999');super(e,r,n)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.errorValues=r.errorCodes=void 0,r.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}},r.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."}}},function(e,r,n){let i=n(64).default;e.exports=class extends i{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}}},function(e,r){function n(e){return null==e?e:Number.parseInt(e,16)}function i(e){return null==e?e:"0x"+e.toString(16)}e.exports=async function({provider:e,fromBlock:r,toBlock:o}){r||(r=o);let s=n(r),a=Array(n(o)-s+1).fill().map((e,r)=>s+r).map(i);return await Promise.all(a.map(r=>(async function(e,r,n){for(let i=0;i<3;i++)try{return await function(e,r){return new Promise((n,i)=>{e.sendAsync(r,(e,r)=>{e?i(e):r.error?i(r.error):r.result?n(r.result):i(Error("Result was empty"))})})}(e,{id:1,jsonrpc:"2.0",method:r,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,"eth_getBlockByNumber",[r,!1])))}},function(e,r,n){"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.RelayMessageType=void 0,(i=r.RelayMessageType||(r.RelayMessageType={})).SESSION_ID_REQUEST="SESSION_ID_REQUEST",i.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",i.LINKED="LINKED",i.UNLINKED="UNLINKED",i.WEB3_REQUEST="WEB3_REQUEST",i.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",i.WEB3_RESPONSE="WEB3_RESPONSE"},function(e,r,n){"use strict";n.r(r),n.d(r,"audit",function(){return s}),n.d(r,"auditTime",function(){return h}),n.d(r,"buffer",function(){return d}),n.d(r,"bufferCount",function(){return b}),n.d(r,"bufferTime",function(){return w}),n.d(r,"bufferToggle",function(){return j}),n.d(r,"bufferWhen",function(){return T}),n.d(r,"catchError",function(){return D}),n.d(r,"combineAll",function(){return W}),n.d(r,"combineLatest",function(){return V}),n.d(r,"concat",function(){return Z}),n.d(r,"concatAll",function(){return G.a}),n.d(r,"concatMap",function(){return J}),n.d(r,"concatMapTo",function(){return $}),n.d(r,"count",function(){return Q}),n.d(r,"debounce",function(){return tt}),n.d(r,"debounceTime",function(){return tn}),n.d(r,"defaultIfEmpty",function(){return ta}),n.d(r,"delay",function(){return td}),n.d(r,"delayWhen",function(){return tg}),n.d(r,"dematerialize",function(){return tS}),n.d(r,"distinct",function(){return tx}),n.d(r,"distinctUntilChanged",function(){return tA}),n.d(r,"distinctUntilKeyChanged",function(){return tj}),n.d(r,"elementAt",function(){return tz}),n.d(r,"endWith",function(){return tq}),n.d(r,"every",function(){return tZ}),n.d(r,"exhaust",function(){return tJ}),n.d(r,"exhaustMap",function(){return function e(r,n){return n?function(i){return i.pipe(e(function(e,i){return Object(z.a)(r(e,i)).pipe(Object(tK.a)(function(r,o){return n(e,r,i,o)}))}))}:function(e){return e.lift(new tX(r))}}}),n.d(r,"expand",function(){return t1}),n.d(r,"filter",function(){return tN.a}),n.d(r,"finalize",function(){return t4}),n.d(r,"find",function(){return t8}),n.d(r,"findIndex",function(){return et}),n.d(r,"first",function(){return er}),n.d(r,"groupBy",function(){return en.b}),n.d(r,"ignoreElements",function(){return ei}),n.d(r,"isEmpty",function(){return ea}),n.d(r,"last",function(){return ef}),n.d(r,"map",function(){return tK.a}),n.d(r,"mapTo",function(){return ep}
1),n.d(r,"materialize",function(){return eg}),n.d(r,"max",function(){return ex}),n.d(r,"merge",function(){return eC}),n.d(r,"mergeAll",function(){return eA.a}),n.d(r,"mergeMap",function(){return Y.b}),n.d(r,"flatMap",function(){return Y.a}),n.d(r,"mergeMapTo",function(){return eI}),n.d(r,"mergeScan",function(){return eO}),n.d(r,"min",function(){return eN}),n.d(r,"multicast",function(){return eP}),n.d(r,"observeOn",function(){return eD.b}),n.d(r,"onErrorResumeNext",function(){return eB}),n.d(r,"pairwise",function(){return eW}),n.d(r,"partition",function(){return eq}),n.d(r,"pluck",function(){return eZ}),n.d(r,"publish",function(){return eY}),n.d(r,"publishBehavior",function(){return e$}),n.d(r,"publishLast",function(){return eK}),n.d(r,"publishReplay",function(){return e0}),n.d(r,"race",function(){return e2}),n.d(r,"reduce",function(){return eM}),n.d(r,"repeat",function(){return e3}),n.d(r,"repeatWhen",function(){return e6}),n.d(r,"retry",function(){return e7}),n.d(r,"retryWhen",function(){return rr}),n.d(r,"refCount",function(){return ro.a}),n.d(r,"sample",function(){return rs}),n.d(r,"sampleTime",function(){return rc}),n.d(r,"scan",function(){return e_}),n.d(r,"sequenceEqual",function(){return rf}),n.d(r,"share",function(){return rm}),n.d(r,"shareReplay",function(){return rv}),n.d(r,"single",function(){return r_}),n.d(r,"skip",function(){return rE}),n.d(r,"skipLast",function(){return rk}),n.d(r,"skipUntil",function(){return rI}),n.d(r,"skipWhile",function(){return rR}),n.d(r,"startWith",function(){return rP}),n.d(r,"subscribeOn",function(){return rF}),n.d(r,"switchAll",function(){return rV}),n.d(r,"switchMap",function(){return rW}),n.d(r,"switchMapTo",function(){return rq}),n.d(r,"take",function(){return tU}),n.d(r,"takeLast",function(){return el}),n.d(r,"takeUntil",function(){return rZ}),n.d(r,"takeWhile",function(){return rJ}),n.d(r,"tap",function(){return r0}),n.d(r,"throttle",function(){return r4}),n.d(r,"throttleTime",function(){return r8}),n.d(r,"throwIfEmpty",function(){return tP}),n.d(r,"timeInterval",function(){return nr}),n.d(r,"timeout",function(){return nc}),n.d(r,"timeoutWith",function(){return no}),n.d(r,"timestamp",function(){return nl}),n.d(r,"toArray",function(){return nf}),n.d(r,"window",function(){return np}),n.d(r,"windowCount",function(){return ng}),n.d(r,"windowTime",function(){return n_}),n.d(r,"windowToggle",function(){return nC}),n.d(r,"windowWhen",function(){return nO}),n.d(r,"withLatestFrom",function(){return nN}),n.d(r,"zip",function(){return nD}),n.d(r,"zipAll",function(){return nB});var i=n(0),o=n(2);function s(e){return function(r){return r.lift(new a(e))}}var a=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new u(e,this.durationSelector))},e}(),u=function(e){function r(r,n){var i=e.call(this,r)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.a(r,e),r.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var r=void 0;try{r=(0,this.durationSelector)(e)}catch(e){return this.destination.error(e)}var n=Object(o.c)(r,new o.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},r.prototype.clearThrottle=function(){var e=this.value,r=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),r&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))},r.prototype.notifyNext=function(){this.clearThrottle()},r.prototype.notifyComplete=function(){this.clearThrottle()},r}(o.b),c=n(7),l=n(78);function h(e,r){return void 0===r&&(r=c.a),s(function(){return Object(l.a)(e,r)})}function d(e){return function(r){return r.lift(new f(e))}}var f=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,r){return r.subscribe(new p(e,this.closingNotifier))},e}(),p=function(e){function r(r,n){var i=e.call(this,r)||this;return i.buffer=[],i.add(Object(o.c)(n,new o.a(i))),i}return i.a(r,e),r.prototype._next=function(e){this.buffer.push(e)},r.prototype.notifyNext=function(){var e=this.buffer;this.buffer=[],this.destination.next(e)},r}(o.b),y=n(1);function b(e,r){return void 0===r&&(r=null),function(n){return n.lift(new g(e,r))}}var g=function(){function e(e,r){this.bufferSize=e,this.startBufferEvery=r,this.subscriberClass=r&&e!==r?v:m}return e.prototype.call=function(e,r){return r.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),m=function(e){function r(r,n){var i=e.call(this,r)||this;return i.bufferSize=n,i.buffer=[],i}return i.a(r,e),r.prototype._next=function(e){var r=this.buffer;r.push(e),r.length==this.bufferSize&&(this.destination.next(r),this.buffer=[])},r.prototype._complete=function(){var r=this.buffer;r.length>0&&this.destination.next(r),e.prototype._complete.call(this)},r}(y.a),v=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.bufferSize=n,o.startBufferEvery=i,o.buffers=[],o.count=0,o}return i.a(r,e),r.prototype._next=function(e){var r=this.bufferSize,n=this.startBufferEvery,i=this.buffers,o=this.count;this.count++,o%n==0&&i.push([]);for(var s=i.length;s--;){var a=i[s];a.push(e),a.length===r&&(i.splice(s,1),this.destination.next(a))}},r.prototype._complete=function(){for(var r=this.buffers,n=this.destination;r.length>0;){var i=r.shift();i.length>0&&n.next(i)}e.prototype._complete.call(this)},r}(y.a),_=n(10);function w(e){var r=arguments.length,n=c.a;Object(_.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],r--);var i=null;r>=2&&(i=arguments[1]);var o=Number.POSITIVE_INFINITY;return r>=3&&(o=arguments[2]),function(r){return r.lift(new S(e,i,o,n))}}var S=function(){function e(e,r,n,i){this.bufferTimeSpan=e,this.bufferCreationInterval=r,this.maxBufferSize=n,this.scheduler
1=i}return e.prototype.call=function(e,r){return r.subscribe(new M(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),E=function(){this.buffer=[]},M=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=i,a.maxBufferSize=o,a.scheduler=s,a.contexts=[];var u=a.openContext();return(a.timespanOnly=null==i||i<0,a.timespanOnly)?a.add(u.closeAction=s.schedule(x,n,{subscriber:a,context:u,bufferTimeSpan:n})):(a.add(u.closeAction=s.schedule(C,n,{subscriber:a,context:u})),a.add(s.schedule(k,i,{bufferTimeSpan:n,bufferCreationInterval:i,subscriber:a,scheduler:s}))),a}return i.a(r,e),r.prototype._next=function(e){for(var r,n=this.contexts,i=n.length,o=0;o<i;o++){var s=n[o],a=s.buffer;a.push(e),a.length==this.maxBufferSize&&(r=s)}r&&this.onBufferFull(r)},r.prototype._error=function(r){this.contexts.length=0,e.prototype._error.call(this,r)},r.prototype._complete=function(){for(var r=this.contexts,n=this.destination;r.length>0;){var i=r.shift();n.next(i.buffer)}e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){this.contexts=null},r.prototype.onBufferFull=function(e){this.closeContext(e);var r=e.closeAction;if(r.unsubscribe(),this.remove(r),!this.closed&&this.timespanOnly){e=this.openContext();var n=this.bufferTimeSpan,i={subscriber:this,context:e,bufferTimeSpan:n};this.add(e.closeAction=this.scheduler.schedule(x,n,i))}},r.prototype.openContext=function(){var e=new E;return this.contexts.push(e),e},r.prototype.closeContext=function(e){this.destination.next(e.buffer);var r=this.contexts;(r?r.indexOf(e):-1)>=0&&r.splice(r.indexOf(e),1)},r}(y.a);function x(e){var r=e.subscriber,n=e.context;n&&r.closeContext(n),r.closed||(e.context=r.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function k(e){var r=e.bufferCreationInterval,n=e.bufferTimeSpan,i=e.subscriber,o=e.scheduler,s=i.openContext();i.closed||(i.add(s.closeAction=o.schedule(C,n,{subscriber:i,context:s})),this.schedule(e,r))}function C(e){var r=e.subscriber,n=e.context;r.closeContext(n)}var A=n(4),I=n(13),O=n(16);function j(e,r){return function(n){return n.lift(new R(e,r))}}var R=function(){function e(e,r){this.openings=e,this.closingSelector=r}return e.prototype.call=function(e,r){return r.subscribe(new N(e,this.openings,this.closingSelector))},e}(),N=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.closingSelector=i,o.contexts=[],o.add(Object(I.a)(o,n)),o}return i.a(r,e),r.prototype._next=function(e){for(var r=this.contexts,n=r.length,i=0;i<n;i++)r[i].buffer.push(e)},r.prototype._error=function(r){for(var n=this.contexts;n.length>0;){var i=n.shift();i.subscription.unsubscribe(),i.buffer=null,i.subscription=null}this.contexts=null,e.prototype._error.call(this,r)},r.prototype._complete=function(){for(var r=this.contexts;r.length>0;){var n=r.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._complete.call(this)},r.prototype.notifyNext=function(e,r){e?this.closeBuffer(e):this.openBuffer(r)},r.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},r.prototype.openBuffer=function(e){try{var r=this.closingSelector.call(this,e);r&&this.trySubscribe(r)}catch(e){this._error(e)}},r.prototype.closeBuffer=function(e){var r=this.contexts;if(r&&e){var n=e.buffer,i=e.subscription;this.destination.next(n),r.splice(r.indexOf(e),1),this.remove(i),i.unsubscribe()}},r.prototype.trySubscribe=function(e){var r=this.contexts,n=new A.a,i={buffer:[],subscription:n};r.push(i);var o=Object(I.a)(this,e,i);!o||o.closed?this.closeBuffer(i):(o.context=i,this.add(o),n.add(o))},r}(O.a);function T(e){return function(r){return r.lift(new P(e))}}var P=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new L(e,this.closingSelector))},e}(),L=function(e){function r(r,n){var i=e.call(this,r)||this;return i.closingSelector=n,i.subscribing=!1,i.openBuffer(),i}return i.a(r,e),r.prototype._next=function(e){this.buffer.push(e)},r.prototype._complete=function(){var r=this.buffer;r&&this.destination.next(r),e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},r.prototype.notifyNext=function(){this.openBuffer()},r.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},r.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var r,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{r=(0,this.closingSelector)()}catch(e){return this.error(e)}e=new A.a,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(Object(o.c)(r,new o.a(this))),this.subscribing=!1},r}(o.b);function D(e){return function(r){var n=new B(e),i=r.lift(n);return n.caught=i}}var B=function(){function e(e){this.selector=e}return e.prototype.call=function(e,r){return r.subscribe(new F(e,this.selector,this.caught))},e}(),F=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.selector=n,o.caught=i,o}return i.a(r,e),r.prototype.error=function(r){if(!this.isStopped){var n=void 0;try{n=this.selector(r,this.caught)}catch(r){return void e.prototype.error.call(this,r)}this._unsubscribeAndRecycle();var i=new o.a(this);this.add(i);var s=Object(o.c)(n,i);s!==i&&this.add(s)}},r}(o.b),U=n(51);function W(e){return function(r){return r.lift(new U.a(e))}}var H=n(8),z=n(12);function V(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&Object(H.a)(e[0])&&(e=e[0].slice()),function(r){return r.lift.call(Object(z.a)([r].concat(e)),new U.a(n))}}var q=n(34);function Z(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return r.lift.call(q.a.apply(void 0,[r].concat(e)))}}var G=n(75),Y=n(28);function J(e,r){return Object(Y.b)(e,r,1)}function $(e,r){return J(function(){return e},r)}function Q(e){return function(r){return r.lift(new K(e,r))}}var K=function(){function e(e,r){this.predicate=e,this.source=r}return e.prototype.call=function(e,r){return r.subscribe(new X(e,this.predicate,this.source))},e}(),X=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.predicate=n,o.source=i,o.count=0,o.index=0,o}return i.a(r,e),r.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},r.prototype._tryPredicate=function(e){var r;try{r=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}r&&this.count++},r.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},r}(y.a);function tt(e){return function(r){return r.lift(new te(e))}}var te=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new tr(e,this.durationSelector))},e}(),tr=function(e){function r(r,n){var i=e.call(this,r)||this;return i.durationSelector=n,i.hasValue=!1,i}return i.a(r,e),r.prototype._next=function(e){try{var r=this.durationSelector.call(this,e);r&&this._tryNext(e,r)}catch(e){this.destination.error(e)}},r.prototype._complete=function(){this.emitValue(),this.destination.complete()},r.prototype._tryNext=function(e,r){var n=this.durationSubscription;this.value=e,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),(n=Object(o.c)(r,new o.a(this)))&&!n.closed&&this.add(this.durationSubscription=n)},r.prototype.notifyNext=function(){this.emitValue()},r.prototype.notifyComplete=function(){this.emitValue()},r.prototype.emitValue=function(){if(this.hasValue){var r=this.value,
1n=this.durationSubscription;n&&(this.durationSubscription=void 0,n.unsubscribe(),this.remove(n)),this.value=void 0,this.hasValue=!1,e.prototype._next.call(this,r)}},r}(o.b);function tn(e,r){return void 0===r&&(r=c.a),function(n){return n.lift(new ti(e,r))}}var ti=function(){function e(e,r){this.dueTime=e,this.scheduler=r}return e.prototype.call=function(e,r){return r.subscribe(new to(e,this.dueTime,this.scheduler))},e}(),to=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.dueTime=n,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return i.a(r,e),r.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ts,this.dueTime,this))},r.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},r.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var e=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}},r.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},r}(y.a);function ts(e){e.debouncedNext()}function ta(e){return void 0===e&&(e=null),function(r){return r.lift(new tu(e))}}var tu=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,r){return r.subscribe(new tc(e,this.defaultValue))},e}(),tc=function(e){function r(r,n){var i=e.call(this,r)||this;return i.defaultValue=n,i.isEmpty=!0,i}return i.a(r,e),r.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},r.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},r}(y.a);function tl(e){return e instanceof Date&&!isNaN(+e)}var th=n(18);function td(e,r){void 0===r&&(r=c.a);var n=tl(e)?+e-r.now():Math.abs(e);return function(e){return e.lift(new tf(n,r))}}var tf=function(){function e(e,r){this.delay=e,this.scheduler=r}return e.prototype.call=function(e,r){return r.subscribe(new tp(e,this.delay,this.scheduler))},e}(),tp=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.delay=n,o.scheduler=i,o.queue=[],o.active=!1,o.errored=!1,o}return i.a(r,e),r.dispatch=function(e){for(var r=e.source,n=r.queue,i=e.scheduler,o=e.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(o);if(n.length>0){var s=Math.max(0,n[0].time-i.now());this.schedule(e,s)}else this.unsubscribe(),r.active=!1},r.prototype._schedule=function(e){this.active=!0,this.destination.add(e.schedule(r.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},r.prototype.scheduleNotification=function(e){if(!0!==this.errored){var r=this.scheduler,n=new ty(r.now()+this.delay,e);this.queue.push(n),!1===this.active&&this._schedule(r)}},r.prototype._next=function(e){this.scheduleNotification(th.a.createNext(e))},r.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()},r.prototype._complete=function(){this.scheduleNotification(th.a.createComplete()),this.unsubscribe()},r}(y.a),ty=function(e,r){this.time=e,this.notification=r},tb=n(3);function tg(e,r){return r?function(n){return new t_(n,r).lift(new tm(e))}:function(r){return r.lift(new tm(e))}}var tm=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new tv(e,this.delayDurationSelector))},e}(),tv=function(e){function r(r,n){var i=e.call(this,r)||this;return i.delayDurationSelector=n,i.completed=!1,i.delayNotifierSubscriptions=[],i.index=0,i}return i.a(r,e),r.prototype.notifyNext=function(e,r,n,i,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},r.prototype.notifyError=function(e,r){this._error(e)},r.prototype.notifyComplete=function(e){var r=this.removeSubscription(e);r&&this.destination.next(r),this.tryComplete()},r.prototype._next=function(e){var r=this.index++;try{var n=this.delayDurationSelector(e,r);n&&this.tryDelay(n,e)}catch(e){this.destination.error(e)}},r.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},r.prototype.removeSubscription=function(e){e.unsubscribe();var r=this.delayNotifierSubscriptions.indexOf(e);return -1!==r&&this.delayNotifierSubscriptions.splice(r,1),e.outerValue},r.prototype.tryDelay=function(e,r){var n=Object(I.a)(this,e,r);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},r.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},r}(O.a),t_=function(e){function r(r,n){var i=e.call(this)||this;return i.source=r,i.subscriptionDelay=n,i}return i.a(r,e),r.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new tw(e,this.source))},r}(tb.a),tw=function(e){function r(r,n){var i=e.call(this)||this;return i.parent=r,i.source=n,i.sourceSubscribed=!1,i}return i.a(r,e),r.prototype._next=function(e){this.subscribeToSource()},r.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},r.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},r.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},r}(y.a);function tS(){return function(e){return e.lift(new tE)}}var tE=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new tM(e))},e}(),tM=function(e){function r(r){return e.call(this,r)||this}return i.a(r,e),r.prototype._next=function(e){e.observe(this.destination)},r}(y.a);function tx(e,r){return function(n){return n.lift(new tk(e,r))}}var tk=function(){function e(e,r){this.keySelector=e,this.flushes=r}return e.prototype.call=function(e,r){return r.subscribe(new tC(e,this.keySelector,this.flushes))},e}(),tC=function(e){function r(r,n,i){var s=e.call(this,r)||this;return s.keySelector=n,s.values=new Set,i&&s.add(Object(o.c)(i,new o.a(s))),s}return i.a(r,e),r.prototype.notifyNext=function(){this.values.clear()},r.prototype.notifyError=function(e){this._error(e)},r.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)}
1,r.prototype._useKeySelector=function(e){var r,n=this.destination;try{r=this.keySelector(e)}catch(e){return void n.error(e)}this._finalizeNext(r,e)},r.prototype._finalizeNext=function(e,r){var n=this.values;n.has(e)||(n.add(e),this.destination.next(r))},r}(o.b);function tA(e,r){return function(n){return n.lift(new tI(e,r))}}var tI=function(){function e(e,r){this.compare=e,this.keySelector=r}return e.prototype.call=function(e,r){return r.subscribe(new tO(e,this.compare,this.keySelector))},e}(),tO=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.keySelector=i,o.hasKey=!1,"function"==typeof n&&(o.compare=n),o}return i.a(r,e),r.prototype.compare=function(e,r){return e===r},r.prototype._next=function(e){try{var r,n=this.keySelector;r=n?n(e):e}catch(e){return this.destination.error(e)}var i=!1;if(this.hasKey)try{i=(0,this.compare)(this.key,r)}catch(e){return this.destination.error(e)}else this.hasKey=!0;i||(this.key=r,this.destination.next(e))},r}(y.a);function tj(e,r){return tA(function(n,i){return r?r(n[e],i[e]):n[e]===i[e]})}var tR=n(25),tN=n(17),tT=n(27);function tP(e){return void 0===e&&(e=tB),function(r){return r.lift(new tL(e))}}var tL=function(){function e(e){this.errorFactory=e}return e.prototype.call=function(e,r){return r.subscribe(new tD(e,this.errorFactory))},e}(),tD=function(e){function r(r,n){var i=e.call(this,r)||this;return i.errorFactory=n,i.hasValue=!1,i}return i.a(r,e),r.prototype._next=function(e){this.hasValue=!0,this.destination.next(e)},r.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var e=void 0;try{e=this.errorFactory()}catch(r){e=r}this.destination.error(e)},r}(y.a);function tB(){return new tT.a}var tF=n(11);function tU(e){return function(r){return 0===e?Object(tF.b)():r.lift(new tW(e))}}var tW=function(){function e(e){if(this.total=e,this.total<0)throw new tR.a}return e.prototype.call=function(e,r){return r.subscribe(new tH(e,this.total))},e}(),tH=function(e){function r(r,n){var i=e.call(this,r)||this;return i.total=n,i.count=0,i}return i.a(r,e),r.prototype._next=function(e){var r=this.total,n=++this.count;n<=r&&(this.destination.next(e),n===r&&(this.destination.complete(),this.unsubscribe()))},r}(y.a);function tz(e,r){if(e<0)throw new tR.a;var n=arguments.length>=2;return function(i){return i.pipe(Object(tN.a)(function(r,n){return n===e}),tU(1),n?ta(r):tP(function(){return new tR.a}))}}var tV=n(39);function tq(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return Object(q.a)(r,tV.a.apply(void 0,e))}}function tZ(e,r){return function(n){return n.lift(new tG(e,r,n))}}var tG=function(){function e(e,r,n){this.predicate=e,this.thisArg=r,this.source=n}return e.prototype.call=function(e,r){return r.subscribe(new tY(e,this.predicate,this.thisArg,this.source))},e}(),tY=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s.predicate=n,s.thisArg=i,s.source=o,s.index=0,s.thisArg=i||s,s}return i.a(r,e),r.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},r.prototype._next=function(e){var r=!1;try{r=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}r||this.notifyComplete(!1)},r.prototype._complete=function(){this.notifyComplete(!0)},r}(y.a);function tJ(){return function(e){return e.lift(new t$)}}var t$=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new tQ(e))},e}(),tQ=function(e){function r(r){var n=e.call(this,r)||this;return n.hasCompleted=!1,n.hasSubscription=!1,n}return i.a(r,e),r.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(Object(o.c)(e,new o.a(this))))},r.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},r.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},r}(o.b),tK=n(9),tX=function(){function e(e){this.project=e}return e.prototype.call=function(e,r){return r.subscribe(new t0(e,this.project))},e}(),t0=function(e){function r(r,n){var i=e.call(this,r)||this;return i.project=n,i.hasSubscription=!1,i.hasCompleted=!1,i.index=0,i}return i.a(r,e),r.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},r.prototype.tryNext=function(e){var r,n=this.index++;try{r=this.project(e,n)}catch(e){return void this.destination.error(e)}this.hasSubscription=!0,this._innerSub(r)},r.prototype._innerSub=function(e){var r=new o.a(this),n=this.destination;n.add(r);var i=Object(o.c)(e,r);i!==r&&n.add(i)},r.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete(),this.unsubscribe()},r.prototype.notifyNext=function(e){this.destination.next(e)},r.prototype.notifyError=function(e){this.destination.error(e)},r.prototype.notifyComplete=function(){this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},r}(o.b);function t1(e,r,n){return void 0===r&&(r=Number.POSITIVE_INFINITY),r=1>(r||0)?Number.POSITIVE_INFINITY:r,function(i){return i.lift(new t2(e,r,n))}}var t2=function(){function e(e,r,n){this.project=e,this.concurrent=r,this.scheduler
1=n}return e.prototype.call=function(e,r){return r.subscribe(new t3(e,this.project,this.concurrent,this.scheduler))},e}(),t3=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s.project=n,s.concurrent=i,s.scheduler=o,s.index=0,s.active=0,s.hasCompleted=!1,i<Number.POSITIVE_INFINITY&&(s.buffer=[]),s}return i.a(r,e),r.dispatch=function(e){var r=e.subscriber,n=e.result,i=e.value,o=e.index;r.subscribeToProjection(n,i,o)},r.prototype._next=function(e){var n=this.destination;if(n.closed)this._complete();else{var i=this.index++;if(this.active<this.concurrent){n.next(e);try{var o=(0,this.project)(e,i);this.scheduler?this.destination.add(this.scheduler.schedule(r.dispatch,0,{subscriber:this,result:o,value:e,index:i})):this.subscribeToProjection(o,e,i)}catch(e){n.error(e)}}else this.buffer.push(e)}},r.prototype.subscribeToProjection=function(e,r,n){this.active++,this.destination.add(Object(o.c)(e,new o.a(this)))},r.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete(),this.unsubscribe()},r.prototype.notifyNext=function(e){this._next(e)},r.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()},r}(o.b);function t4(e){return function(r){return r.lift(new t5(e))}}var t5=function(){function e(e){this.callback=e}return e.prototype.call=function(e,r){return r.subscribe(new t6(e,this.callback))},e}(),t6=function(e){function r(r,n){var i=e.call(this,r)||this;return i.add(new A.a(n)),i}return i.a(r,e),r}(y.a);function t8(e,r){if("function"!=typeof e)throw TypeError("predicate is not a function");return function(n){return n.lift(new t9(e,n,!1,r))}}var t9=function(){function e(e,r,n,i){this.predicate=e,this.source=r,this.yieldIndex=n,this.thisArg=i}return e.prototype.call=function(e,r){return r.subscribe(new t7(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),t7=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;return a.predicate=n,a.source=i,a.yieldIndex=o,a.thisArg=s,a.index=0,a}return i.a(r,e),r.prototype.notifyComplete=function(e){var r=this.destination;r.next(e),r.complete(),this.unsubscribe()},r.prototype._next=function(e){var r=this.predicate,n=this.thisArg,i=this.index++;try{r.call(n||this,e,i,this.source)&&this.notifyComplete(this.yieldIndex?i:e)}catch(e){this.destination.error(e)}},r.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},r}(y.a);function et(e,r){return function(n){return n.lift(new t9(e,n,!0,r))}}var ee=n(15);function er(e,r){var n=arguments.length>=2;return function(i){return i.pipe(e?Object(tN.a)(function(r,n){return e(r,n,i)}):ee.a,tU(1),n?ta(r):tP(function(){return new tT.a}))}}var en=n(68);function ei(){return function(e){return e.lift(new eo)}}var eo=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new es(e))},e}(),es=function(e){function r(){return null!==e&&e.apply(this,arguments)||this}return i.a(r,e),r.prototype._next=function(e){},r}(y.a);function ea(){return function(e){return e.lift(new eu)}}var eu=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new ec(e))},e}(),ec=function(e){function r(r){return e.call(this,r)||this}return i.a(r,e),r.prototype.notifyComplete=function(e){var r=this.destination;r.next(e),r.complete()},r.prototype._next=function(e){this.notifyComplete(!1)},r.prototype._complete=function(){this.notifyComplete(!0)},r}(y.a);function el(e){return function(r){return 0===e?Object(tF.b)():r.lift(new eh(e))}}var eh=function(){function e(e){if(this.total=e,this.total<0)throw new tR.a}return e.prototype.call=function(e,r){return r.subscribe(new ed(e,this.total))},e}(),ed=function(e){function r(r,n){var i=e.call(this,r)||this;return i.total=n,i.ring=[],i.count=0,i}return i.a(r,e),r.prototype._next=function(e){var r=this.ring,n=this.total,i=this.count++;r.length<n?r.push(e):r[i%n]=e},r.prototype._complete=function(){var e=this.destination,r=this.count;if(r>0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o<n;o++){var s=r++%n;e.next(i[s])}e.complete()},r}(y.a);function ef(e,r){var n=arguments.length>=2;return function(i){return i.pipe(e?Object(tN.a)(function(r,n){return e(r,n,i)}):ee.a,el(1),n?ta(r):tP(function(){return new tT.a}))}}function ep(e){return function(r){return r.lift(new ey(e))}}var ey=function(){function e(e){this.value=e}return e.prototype.call=function(e,r){return r.subscribe(new eb(e,this.value))},e}(),eb=function(e){function r(r,n){var i=e.call(this,r)||this;return i.value=n,i}return i.a(r,e),r.prototype._next=function(e){this.destination.next(this.value)},r}(y.a);function eg(){return function(e){return e.lift(new em)}}var em=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new ev(e))},e}(),ev=function(e){function r(r){return e.call(this,r)||this}return i.a(r,e),r.prototype._next=function(e){this.destination.next(th.a.createNext(e))},r.prototype._error=function(e){var r=this.destination;r.next(th.a.createError(e)),r.complete()},r.prototype._complete=function(){var e=this.destination;e.next(th.a.createComplete()),e.complete()},r}(y.a);function e_(e,r){var n=!1;return arguments.length>=2&&(n=!0),function(i){return i.lift(new ew(e,r,n))}}var ew=function(){function e(e,r,n){void 0===n&&(n=!1),this.accumulator=e,this.seed=r,this.hasSeed=n}return e.prototype.call=function(e,r){return r.subscribe(new eS(e,this.accumulator,this.seed,this.hasSeed))},e}(),eS=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s.accumulator=n,s._seed=i,s.hasSeed=o,s.index=0,s}return i.a(r,e),Object.defineProperty(r.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),r.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},r.prototype._tryNext=function(e){var r,n=this.index++;try{r=this.accumulator(this.seed,e,n)}catch(e){this.destination.error(e)}this.seed=r,this.destination.next(r)},r}(y.a),eE=n(41);function eM(e,r){return arguments.length>=2?function(n){return Object(eE.a)(e_(e,r),el(1),ta(r))(n)}:function(r){return Object(eE.a)(e_(function(r,n,i){return e(r,n,i+1)}),el(1))(r)}}function ex(e){return eM("function"==typeof e?function(r,n){return e(r,n)>0?r:n}:function(e,r){return e>r?e:r})}var ek=n(76);function eC(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return r.lift.call(ek.a.apply(void 0,[r].concat(e)))}}var eA=n(52);function eI(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof r?Object(Y.b)(function(){return e},r,n):("number"==typeof r&&(n=r),Object(Y.b)(function(){return e},n))}function eO(e,r,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(i){return i.lift(new ej(e,r,n))}}var ej=function(){function e(e,r,n){this.accumulator=e,this.seed=r,this.concurrent=n}return e.prototype.call=function(e,r){return r.subscribe(new eR(e,this.accumulator,this.seed,this.concurrent))},e}(),eR=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s.accumulator=n,s.acc=i,s.concurrent=o,s.hasValue=!1,s.hasCompleted=!1,s.buffer=[],s.active=0,s.index=0,s}return i.a(r,e),r.prototype._next=function(e){if(this.active<this.concurrent){var r=this.index++,n=this.destination,i=void 0;try{i=(0,this.accumulator)(this.acc,e,r)}catch(e){return n.error(e)}this.active++,this._innerSub(i)}else this.buffer.push(e)},r.prototype._innerSub=function(e){var r=new o.a(this),n=this.destination;n.add(r);var i=Object(o.c)(e,r);i!==r&&n.add(i)},r.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()},r.prototype.notifyNext=function(e){var r=this.destination;this.acc=e,this.hasValue=!0,r.next(e)},r.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())},r}(o.b);function eN(e){return eM("function"==typeof e?function(r,n){return 0>e(r,n)?r:n}:function(e,r){return e<r?e:r})}var eT=n(71);function eP(e,r){return function(n){if(i="function"==typeof e?e:function(){return e},"function"==typeof r)return n.lift(new eL(i,r));var i,o=Object.create(n,eT.b);return o.source=n,o.subjectFactory=i,o}}var eL=function(){function e(e,r){this.subjectFactory=e,this.selector=r}return e.prototype.call=function(e,r){var n=this.selector,i=this.subjectFactory(),o=n(i).subscribe(e);return o.add(r.subscribe(i)),o},e}(),eD=n(73);function eB(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return 1===e.length&&Object(H.a)(e[0])&&(e=e[0]),function(r){return r.lift(new eF(e))}}var eF=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,r){return r.subscribe(new eU(e,this.nextSources))},e}(),eU=function(e){function r(r,n){var i=e.call(this,r)||this;return i.destination=r,i.nextSources=n,i}return i.a(r,e),r.prototype.notifyError=function(){this.subscribeToNextSource()},r.prototype.notifyComplete=function(){this.subscribeToNextSource()},r.prototype._error=function(e){this.subscribeToNextSource(),this.unsubscribe()},r.prototype._complete=function(){this.subscribeToNextSource(),this.unsubscribe()},r.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();if(e){var r=new o.a(this),n=this.destination;n.add(r);var i=Object(o.c)(e,r);i!==r&&n.add(i)}else this.destination.complete()},r}(o.b);function eW(){return function(e){return e.lift(new eH)}}var eH=function(){function e(){}return e.prototype.call=function(e,r){return r.subscribe(new ez(e))},e}(),ez=function(e){function r(r){var n=e.call(this,r)||this;return n.hasPrev=!1,n}return i.a(r,e),r.prototype._next=function(e){var r;this.hasPrev?r=[this.prev,e]:this.hasPrev=!0,this.prev=e,r&&this.destination.next(r)},r}(y.a),eV=n(84);function eq(e,r){return function(n){return[Object(tN.a)(e,r)(n),Object(tN.a)(Object(eV.a)(e,r))(n)]}}function eZ(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e.length;if(0===n)throw Error("list of properties cannot be empty.");return function(r){return Object(tK.a)(function(r){for(var i=r,o=0;o<n;o++){var s=null!=i?i[e[o]]:void 0;if(void 0===s)return;i=s}return i})(r)}}var eG=n(6);function eY(e){return e?eP(function(){return new eG.a},e):eP(new eG.a)}var eJ=n(72);function e$(e){return function(r){return eP(new eJ.a(e))(r)}}var eQ=n(31);function eK(){return function(e){return eP(new eQ.a)(e)}}var eX=n(49);function e0(e,r,n,i){n&&"function"!=typeof n&&(i=n);var o="function"==typeof n?n:void 0,s=new eX.a(e,r,i);return function(e){return eP(function(){return s},o)(e)}}var e1=n(77);function e2(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return 1===e.length&&Object(H.a)(e[0])&&(e=e[0]),r.lift.call(e1.a.apply(void 0,[r].concat(e)))}}function e3(e){return void 0===e&&(e=-1),function(r){return 0===e?Object(tF.b)():e<0?r.lift(new e4(-1,r)):r.lift(new e4(e-1,r))}}var e4=function(){function e(e,r){this.count=e,this.source=r}return e.prototype.call=function(e,r){return r.subscribe(new e5(e,this.count,this.source))},e}(),e5=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.count=n,o.source=i,o}return i.a(r,e),r.prototype.complete=function(){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return e.prototype.complete.call(this);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},r}(y.a);function e6(e){return function(r){return r.lift(new e8(e))}}var e8=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,r){return r.subscribe(new e9(e,this.notifier,r))},e}(),e9=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.notifier=n,o.source=i,o.sourceIsBeingSubscribedTo=!0,o}return i.a(r,e),r.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},r.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},r.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)}},r.prototype._unsubscribe=function(){var e=this.notifications,r=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=void 0),r&&(r.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},r.prototype._unsubscribeAndRecycle=function(){var r=this._unsubscribe;return this._unsubscribe=null,e.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=r,this},r.prototype.subscribeToRetries=function(){var r;this.notifications=new eG.a;try{r=(0,this.notifier)(this.notifications)}catch(r){return e.prototype.complete.call(this)}this.retries=r,this.retriesSubscription=Object(o.c)(r,new o.a(this))},r}(o.b);function e7(e){return void 0===e&&(e=-1),function(r){return r.lift(new rt(e,r))}}var rt=function(){function e(e,r){this.count=e,this.source=r}return e.prototype.call=function(e,r){return r.subscribe(new re(e,this.count,this.source))},e}(),re=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.count=n,o.source=i,o}return i.a(r,e),r.prototype.error=function(r){if(!this.isStopped){var n=this.source,i=this.count;if(0===i)return e.prototype.error.call(this,r);i>-1&&(this.count=i-1),n.subscribe(this._unsubscribeAndRecycle())}},r}(y.a);function rr(e){return function(r){return r.lift(new rn(e,r))}}var rn=function(){function e(e,r){this.notifier=e,this.source=r}return e.prototype.call=function(e,r){return r.subscribe(new ri(e,this.notifier,this.source))},e}(),ri=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.notifier=n,o.source=i,o}return i.a(r,e),r.prototype.error=function(r){if(!this.isStopped){var n=this.errors,i=this.retries,s=this.retriesSubscription;if(i)this.errors=void 0,this.retriesSubscription=void 0;else{n=new eG.a;try{i=(0,this.notifier)(n)}catch(r){return e.prototype.error.call(this,r)}s=Object(o.c)(i,new o.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=i,this.retriesSubscription=s,n.next(r)}},r.prototype._unsubscribe=function(){var e=this.errors,r=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=void 0),r&&(r.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},r.prototype.notifyNext=function(){var e=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=e,this.source.subscribe(this)},r}(o.b),ro=n(48);function rs(e){return function(r){return r.lift(new ra(e))}}var ra=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,r){var n=new ru(e),i=r.subscribe(n);return i.add(Object(o.c)(this.notifier,new o.a(n))),i},e}(),ru=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r.hasValue=!1,r}return i.a(r,e),r.prototype._next=function(e){this.value=e,this.hasValue=!0},r.prototype.notifyNext=function(){this.emitValue()},r.prototype.notifyComplete=function(){this.emitValue()},r.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},r}(o.b);function rc(e,r){return void 0===r&&(r=c.a),function(n){return n.lift(new rl(e,r))}}
1var rl=function(){function e(e,r){this.period=e,this.scheduler=r}return e.prototype.call=function(e,r){return r.subscribe(new rh(e,this.period,this.scheduler))},e}(),rh=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.period=n,o.scheduler=i,o.hasValue=!1,o.add(i.schedule(rd,n,{subscriber:o,period:n})),o}return i.a(r,e),r.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},r.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},r}(y.a);function rd(e){var r=e.subscriber,n=e.period;r.notifyNext(),this.schedule(e,n)}function rf(e,r){return function(n){return n.lift(new rp(e,r))}}var rp=function(){function e(e,r){this.compareTo=e,this.comparator=r}return e.prototype.call=function(e,r){return r.subscribe(new ry(e,this.compareTo,this.comparator))},e}(),ry=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.compareTo=n,o.comparator=i,o._a=[],o._b=[],o._oneComplete=!1,o.destination.add(n.subscribe(new rb(r,o))),o}return i.a(r,e),r.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},r.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},r.prototype.checkValues=function(){for(var e=this._a,r=this._b,n=this.comparator;e.length>0&&r.length>0;){var i=e.shift(),o=r.shift(),s=!1;try{s=n?n(i,o):i===o}catch(e){this.destination.error(e)}s||this.emit(!1)}},r.prototype.emit=function(e){var r=this.destination;r.next(e),r.complete()},r.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},r.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},r}(y.a),rb=function(e){function r(r,n){var i=e.call(this,r)||this;return i.parent=n,i}return i.a(r,e),r.prototype._next=function(e){this.parent.nextB(e)},r.prototype._error=function(e){this.parent.error(e),this.unsubscribe()},r.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},r}(y.a);function rg(){return new eG.a}function rm(){return function(e){return Object(ro.a)()(eP(rg)(e))}}function rv(e,r,n){var i;return i=e&&"object"==typeof e?e:{bufferSize:e,windowTime:r,refCount:!1,scheduler:n},function(e){var r,n,o,s,a,u,c,l,h,d,f;return e.lift((s=void 0===(o=i.bufferSize)?Number.POSITIVE_INFINITY:o,u=void 0===(a=i.windowTime)?Number.POSITIVE_INFINITY:a,c=i.refCount,l=i.scheduler,h=0,d=!1,f=!1,function(e){var i;h++,!r||d?(d=!1,i=(r=new eX.a(s,u,l)).subscribe(this),n=e.subscribe({next:function(e){r.next(e)},error:function(e){d=!0,r.error(e)},complete:function(){f=!0,n=void 0,r.complete()}}),f&&(n=void 0)):i=r.subscribe(this),this.add(function(){h--,i.unsubscribe(),i=void 0,n&&!f&&c&&0===h&&(n.unsubscribe(),n=void 0,r=void 0)})}))}}function r_(e){return function(r){return r.lift(new rw(e,r))}}var rw=function(){function e(e,r){this.predicate=e,this.source=r}return e.prototype.call=function(e,r){return r.subscribe(new rS(e,this.predicate,this.source))},e}(),rS=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.predicate=n,o.source=i,o.seenValue=!1,o.index=0,o}return i.a(r,e),r.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},r.prototype._next=function(e){var r=this.index++;this.predicate?this.tryNext(e,r):this.applySingleValue(e)},r.prototype.tryNext=function(e,r){try{this.predicate(e,r,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},r.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new tT.a)},r}(y.a);function rE(e){return function(r){return r.lift(new rM(e))}}var rM=function(){function e(e){this.total=e}return e.prototype.call=function(e,r){return r.subscribe(new rx(e,this.total))},e}(),rx=function(e){function r(r,n){var i=e.call(this,r)||this;return i.total=n,i.count=0,i}return i.a(r,e),r.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},r}(y.a);function rk(e){return function(r){return r.lift(new rC(e))}}var rC=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new tR.a}return e.prototype.call=function(e,r){return 0===this._skipCount?r.subscribe(new y.a(e)):r.subscribe(new rA(e,this._skipCount))},e}(),rA=function(e){function r(r,n){var i=e.call(this,r)||this;return i._skipCount=n,i._count=0,i._ring=Array(n),i}return i.a(r,e),r.prototype._next=function(e){var r=this._skipCount,n=this._count++;
1if(n<r)this._ring[n]=e;else{var i=n%r,o=this._ring,s=o[i];o[i]=e,this.destination.next(s)}},r}(y.a);function rI(e){return function(r){return r.lift(new rO(e))}}var rO=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,r){return r.subscribe(new rj(e,this.notifier))},e}(),rj=function(e){function r(r,n){var i=e.call(this,r)||this;i.hasValue=!1;var s=new o.a(i);i.add(s),i.innerSubscription=s;var a=Object(o.c)(n,s);return a!==s&&(i.add(a),i.innerSubscription=a),i}return i.a(r,e),r.prototype._next=function(r){this.hasValue&&e.prototype._next.call(this,r)},r.prototype.notifyNext=function(){this.hasValue=!0,this.innerSubscription&&this.innerSubscription.unsubscribe()},r.prototype.notifyComplete=function(){},r}(o.b);function rR(e){return function(r){return r.lift(new rN(e))}}var rN=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,r){return r.subscribe(new rT(e,this.predicate))},e}(),rT=function(e){function r(r,n){var i=e.call(this,r)||this;return i.predicate=n,i.skipping=!0,i.index=0,i}return i.a(r,e),r.prototype._next=function(e){var r=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||r.next(e)},r.prototype.tryCallPredicate=function(e){try{var r=this.predicate(e,this.index++);this.skipping=!!r}catch(e){this.destination.error(e)}},r}(y.a);function rP(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var n=e[e.length-1];return Object(_.a)(n)?(e.pop(),function(r){return Object(q.a)(e,r,n)}):function(r){return Object(q.a)(e,r)}}var rL=n(42),rD=n(33),rB=function(e){function r(r,n,i){void 0===n&&(n=0),void 0===i&&(i=rL.a);var o=e.call(this)||this;return o.source=r,o.delayTime=n,o.scheduler=i,(!Object(rD.a)(n)||n<0)&&(o.delayTime=0),i&&"function"==typeof i.schedule||(o.scheduler
1=rL.a),o}return i.a(r,e),r.create=function(e,n,i){return void 0===n&&(n=0),void 0===i&&(i=rL.a),new r(e,n,i)},r.dispatch=function(e){var r=e.source,n=e.subscriber;return this.add(r.subscribe(n))},r.prototype._subscribe=function(e){var n=this.delayTime,i=this.source;return this.scheduler.schedule(r.dispatch,n,{source:i,subscriber:e})},r}(tb.a);function rF(e,r){return void 0===r&&(r=0),function(n){return n.lift(new rU(e,r))}}var rU=function(){function e(e,r){this.scheduler=e,this.delay=r}return e.prototype.call=function(e,r){return new rB(r,this.delay,this.scheduler).subscribe(e)},e}();function rW(e,r){return"function"==typeof r?function(n){return n.pipe(rW(function(n,i){return Object(z.a)(e(n,i)).pipe(Object(tK.a)(function(e,o){return r(n,e,i,o)}))}))}:function(r){return r.lift(new rH(e))}}var rH=function(){function e(e){this.project=e}return e.prototype.call=function(e,r){return r.subscribe(new rz(e,this.project))},e}(),rz=function(e){function r(r,n){var i=e.call(this,r)||this;return i.project=n,i.index=0,i}return i.a(r,e),r.prototype._next=function(e){var r,n=this.index++;try{r=this.project(e,n)}catch(e){return void this.destination.error(e)}this._innerSub(r)},r.prototype._innerSub=function(e){var r=this.innerSubscription;r&&r.unsubscribe();var n=new o.a(this),i=this.destination;i.add(n),this.innerSubscription=Object(o.c)(e,n),this.innerSubscription!==n&&i.add(this.innerSubscription)},r.prototype._complete=function(){var r=this.innerSubscription;r&&!r.closed||e.prototype._complete.call(this),this.unsubscribe()},r.prototype._unsubscribe=function(){this.innerSubscription=void 0},r.prototype.notifyComplete=function(){this.innerSubscription=void 0,this.isStopped&&e.prototype._complete.call(this)},r.prototype.notifyNext=function(e){this.destination.next(e)},r}(o.b);function rV(){return rW(ee.a)}function rq(e,r){return r?rW(function(){return e},r):rW(function(){return e})}function rZ(e){return function(r){return r.lift(new rG(e))}}var rG=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,r){var n=new rY(e),i=Object(o.c)(this.notifier,new o.a(n));return i&&!n.seenValue?(n.add(i),r.subscribe(n)):n},e}(),rY=function(e){function r(r){var n=e.call(this,r)||this;return n.seenValue=!1,n}return i.a(r,e),r.prototype.notifyNext=function(){this.seenValue=!0,this.complete()},r.prototype.notifyComplete=function(){},r}(o.b);function rJ(e,r){return void 0===r&&(r=!1),function(n){return n.lift(new r$(e,r))}}var r$=function(){function e(e,r){this.predicate=e,this.inclusive=r}return e.prototype.call=function(e,r){return r.subscribe(new rQ(e,this.predicate,this.inclusive))},e}(),rQ=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.predicate=n,o.inclusive=i,o.index=0,o}return i.a(r,e),r.prototype._next=function(e){var r,n=this.destination;try{r=this.predicate(e,this.index++)}catch(e){return void n.error(e)}this.nextOrComplete(e,r)},r.prototype.nextOrComplete=function(e,r){var n=this.destination;r?n.next(e):(this.inclusive&&n.next(e),n.complete())},r}(y.a),rK=n(21),rX=n(26);function r0(e,r,n){return function(i){return i.lift(new r1(e,r,n))}}var r1=function(){function e(e,r,n){this.nextOrObserver=e,this.error=r,this.complete=n}return e.prototype.call=function(e,r){return r.subscribe(new r2(e,this.nextOrObserver,this.error,this.complete))},e}(),r2=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s._tapNext=rK.a,s._tapError=rK.a,s._tapComplete=rK.a,s._tapError=i||rK.a,s._tapComplete=o||rK.a,Object(rX.a)(n)?(s._context=s,s._tapNext=n):n&&(s._context=n,s._tapNext=n.next||rK.a,s._tapError=n.error||rK.a,s._tapComplete=n.complete||rK.a),s}return i.a(r,e),r.prototype._next=function(e){try{this._tapNext.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.next(e)},r.prototype._error=function(e){try{this._tapError.call(this._context,e)}catch(e){return void this.destination.error(e)}this.destination.error(e)},r.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()},r}(y.a),r3={leading:!0,trailing:!1};function r4(e,r){return void 0===r&&(r=r3),function(n){return n.lift(new r5(e,!!r.leading,!!r.trailing))}}var r5=function(){function e(e,r,n){this.durationSelector=e,this.leading=r,this.trailing=n}return e.prototype.call=function(e,r){return r.subscribe(new r6(e,this.durationSelector,this.leading,this.trailing))},e}(),r6=function(e){function r(r,n,i,o){var s=e.call(this,r)||this;return s.destination=r,s.durationSelector=n,s._leading=i,s._trailing=o,s._hasValue=!1,s}return i.a(r,e),r.prototype._next=function(e){this._hasValue=!0,this._sendValue=e,this._throttled||(this._leading?this.send():this.throttle(e))},r.prototype.send=function(){var e=this._hasValue,r=this._sendValue;e&&(this.destination.next(r),this.throttle(r)),this._hasValue=!1,this._sendValue=void 0},r.prototype.throttle=function(e){var r=this.tryDurationSelector(e);r&&this.add(this._throttled=Object(o.c)(r,new o.a(this)))},r.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},r.prototype.throttlingDone=function(){var e=this._throttled,r=this._trailing;e&&e.unsubscribe(),this._throttled=void 0,r&&this.send()},r.prototype.notifyNext=function(){this.throttlingDone()},r.prototype.notifyComplete=function(){this.throttlingDone()},r}(o.b);function r8(e,r,n){return void 0===r&&(r=c.a),void 0===n&&(n=r3),function(i){return i.lift(new r9(e,r,n.leading,n.trailing))}}var r9=function(){function e(e,r,n,i){this.duration=e,this.scheduler
1=r,this.leading=n,this.trailing=i}return e.prototype.call=function(e,r){return r.subscribe(new r7(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),r7=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;return a.duration=n,a.scheduler=i,a.leading=o,a.trailing=s,a._hasTrailingValue=!1,a._trailingValue=null,a}return i.a(r,e),r.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(nt,this.duration,{subscriber:this})),this.leading?this.destination.next(e):this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0))},r.prototype._complete=function(){this._hasTrailingValue&&this.destination.next(this._trailingValue),this.destination.complete()},r.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)},r}(y.a);function nt(e){e.subscriber.clearThrottle()}var ne=n(53);function nr(e){return void 0===e&&(e=c.a),function(r){return Object(ne.a)(function(){return r.pipe(e_(function(r,n){var i=r.current;return{value:n,current:e.now(),last:i}},{current:e.now(),value:void 0,last:void 0}),Object(tK.a)(function(e){var r=e.current,n=e.last;return new nn(e.value,r-n)}))})}}var nn=function(e,r){this.value=e,this.interval=r},ni=n(74);function no(e,r,n){return void 0===n&&(n=c.a),function(i){var o=tl(e),s=o?+e-n.now():Math.abs(e);return i.lift(new ns(s,o,r,n))}}var ns=function(){function e(e,r,n,i){this.waitFor=e,this.absoluteTimeout=r,this.withObservable=n,this.scheduler=i}return e.prototype.call=function(e,r){return r.subscribe(new na(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),na=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;return a.absoluteTimeout=n,a.waitFor=i,a.withObservable=o,a.scheduler=s,a.scheduleTimeout(),a}return i.a(r,e),r.dispatchTimeout=function(e){var r=e.withObservable;e._unsubscribeAndRecycle(),e.add(Object(o.c)(r,new o.a(e)))},r.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(r.dispatchTimeout,this.waitFor,this))},r.prototype._next=function(r){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,r)},r.prototype._unsubscribe=function(){this.action=void 0,this.scheduler=null,this.withObservable=null},r}(o.b),nu=n(50);function nc(e,r){return void 0===r&&(r=c.a),no(e,Object(nu.a)(new ni.a),r)}function nl(e){return void 0===e&&(e=c.a),Object(tK.a)(function(r){return new nh(r,e.now())})}var nh=function(e,r){this.value=e,this.timestamp=r};function nd(e,r,n){return 0===n?[r]:(e.push(r),e)}function nf(){return eM(nd,[])}function np(e){return function(r){return r.lift(new ny(e))}}var ny=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,r){var n=new nb(e),i=r.subscribe(n);return i.closed||n.add(Object(o.c)(this.windowBoundaries,new o.a(n))),i},e}(),nb=function(e){function r(r){var n=e.call(this,r)||this;return n.window=new eG.a,r.next(n.window),n}return i.a(r,e),r.prototype.notifyNext=function(){this.openWindow()},r.prototype.notifyError=function(e){this._error(e)},r.prototype.notifyComplete=function(){this._complete()},r.prototype._next=function(e){this.window.next(e)},r.prototype._error=function(e){this.window.error(e),this.destination.error(e)},r.prototype._complete=function(){this.window.complete(),this.destination.complete()},r.prototype._unsubscribe=function(){this.window=null},r.prototype.openWindow=function(){var e=this.window;e&&e.complete();var r=this.destination,n=this.window=new eG.a;r.next(n)},r}(o.b);function ng(e,r){return void 0===r&&(r=0),function(n){return n.lift(new nm(e,r))}}var nm=function(){function e(e,r){this.windowSize=e,this.startWindowEvery=r}return e.prototype.call=function(e,r){return r.subscribe(new nv(e,this.windowSize,this.startWindowEvery))},e}(),nv=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.destination=r,o.windowSize=n,o.startWindowEvery=i,o.windows=[new eG.a],o.count=0,r.next(o.windows[0]),o}return i.a(r,e),r.prototype._next=function(e){for(var r=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,i=this.windowSize,o=this.windows,s=o.length,a=0;a<s&&!this.closed;a++)o[a].next(e);var u=this.count-i+1;if(u>=0&&u%r==0&&!this.closed&&o.shift().complete(),++this.count%r==0&&!this.closed){var c=new eG.a;o.push(c),n.next(c)}},r.prototype._error=function(e){var r=this.windows;if(r)for(;r.length>0&&!this.closed;)r.shift().error(e);this.destination.error(e)},r.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},r.prototype._unsubscribe=function(){this.count=0,this.windows=null},r}(y.a);function n_(e){var r=c.a,n=null,i=Number.POSITIVE_INFINITY;
1return Object(_.a)(arguments[3])&&(r=arguments[3]),Object(_.a)(arguments[2])?r=arguments[2]:Object(rD.a)(arguments[2])&&(i=Number(arguments[2])),Object(_.a)(arguments[1])?r=arguments[1]:Object(rD.a)(arguments[1])&&(n=Number(arguments[1])),function(o){return o.lift(new nw(e,n,i,r))}}var nw=function(){function e(e,r,n,i){this.windowTimeSpan=e,this.windowCreationInterval=r,this.maxWindowSize=n,this.scheduler=i}return e.prototype.call=function(e,r){return r.subscribe(new nE(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),nS=function(e){function r(){var r=null!==e&&e.apply(this,arguments)||this;return r._numberOfNextedValues=0,r}return i.a(r,e),r.prototype.next=function(r){this._numberOfNextedValues++,e.prototype.next.call(this,r)},Object.defineProperty(r.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),r}(eG.a),nE=function(e){function r(r,n,i,o,s){var a=e.call(this,r)||this;a.destination=r,a.windowTimeSpan=n,a.windowCreationInterval=i,a.maxWindowSize=o,a.scheduler=s,a.windows=[];var u=a.openWindow();return null!==i&&i>=0?(a.add(s.schedule(nk,n,{subscriber:a,window:u,context:null})),a.add(s.schedule(nx,i,{windowTimeSpan:n,windowCreationInterval:i,subscriber:a,scheduler:s}))):a.add(s.schedule(nM,n,{subscriber:a,window:u,windowTimeSpan:n})),a}return i.a(r,e),r.prototype._next=function(e){for(var r=this.windows,n=r.length,i=0;i<n;i++){var o=r[i];o.closed||(o.next(e),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},r.prototype._error=function(e){for(var r=this.windows;r.length>0;)r.shift().error(e);this.destination.error(e)},r.prototype._complete=function(){for(var e=this.windows;e.length>0;){var r=e.shift();r.closed||r.complete()}this.destination.complete()},r.prototype.openWindow=function(){var e=new nS;return this.windows.push(e),this.destination.next(e),e},r.prototype.closeWindow=function(e){e.complete();var r=this.windows;r.splice(r.indexOf(e),1)},r}(y.a);function nM(e){var r=e.subscriber,n=e.windowTimeSpan,i=e.window;i&&r.closeWindow(i),e.window=r.openWindow(),this.schedule(e,n)}function nx(e){var r=e.windowTimeSpan,n=e.subscriber,i=e.scheduler,o=e.windowCreationInterval,s=n.openWindow(),a={action:this,subscription:null};a.subscription=i.schedule(nk,r,{subscriber:n,window:s,context:a}),this.add(a.subscription),this.schedule(e,o)}function nk(e){var r=e.subscriber,n=e.window,i=e.context;i&&i.action&&i.subscription&&i.action.remove(i.subscription),r.closeWindow(n)}function nC(e,r){return function(n){return n.lift(new nA(e,r))}}var nA=function(){function e(e,r){this.openings=e,this.closingSelector=r}return e.prototype.call=function(e,r){return r.subscribe(new nI(e,this.openings,this.closingSelector))},e}(),nI=function(e){function r(r,n,i){var o=e.call(this,r)||this;return o.openings=n,o.closingSelector=i,o.contexts=[],o.add(o.openSubscription=Object(I.a)(o,n,n)),o}return i.a(r,e),r.prototype._next=function(e){var r=this.contexts;if(r)for(var n=r.length,i=0;i<n;i++)r[i].window.next(e)},r.prototype._error=function(r){var n=this.contexts;if(this.contexts=null,n)for(var i=n.length,o=-1;++o<i;){var s=n[o];s.window.error(r),s.subscription.unsubscribe()}e.prototype._error.call(this,r)},r.prototype._complete=function(){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,i=-1;++i<n;){var o=r[i];o.window.complete(),o.subscription.unsubscribe()}e.prototype._complete.call(this)},r.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var r=e.length,n=-1;++n<r;){var i=e[n];i.window.unsubscribe(),i.subscription.unsubscribe()}},r.prototype.notifyNext=function(e,r,n,i,o){if(e===this.openings){var s=void 0;try{s=(0,this.closingSelector)(r)}catch(e){return this.error(e)}var a=new eG.a,u=new A.a,c={window:a,subscription:u};this.contexts.push(c);var l=Object(I.a)(this,s,c);l.closed?this.closeWindow(this.contexts.length-1):(l.context=c,u.add(l)),this.destination.next(a)}else this.closeWindow(this.contexts.indexOf(e))},r.prototype.notifyError=function(e){this.error(e)},r.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},r.prototype.closeWindow=function(e){if(-1!==e){var r=this.contexts,n=r[e],i=n.window,o=n.subscription;r.splice(e,1),i.complete(),o.unsubscribe()}},r}(O.a);function nO(e){return function(r){return r.lift(new nj(e))}}var nj=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,r){return r.subscribe(new nR(e,this.closingSelector))},e}(),nR=function(e){function r(r,n){var i=e.call(this,r)||this;return i.destination=r,i.closingSelector=n,i.openWindow(),i}return i.a(r,e),r.prototype.notifyNext=function(e,r,n,i,o){this.openWindow(o)},r.prototype.notifyError=function(e){this._error(e)},r.prototype.notifyComplete=function(e){this.openWindow(e)},r.prototype._next=function(e){this.window.next(e)},r.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},r.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},r.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},r.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var r=this.window;r&&r.complete();var n,i=this.window=new eG.a;this.destination.next(i);try{n=(0,this.closingSelector)()}catch(e){return this.destination.error(e),void this.window.error(e)}this.add(this.closingNotification=Object(I.a)(this,n))},r}(O.a);function nN(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){var n;return"function"==typeof e[e.length-1]&&(n=e.pop()),r.lift(new nT(e,n))}}var nT=function(){function e(e,r){this.observables=e,this.project=r}return e.prototype.call=function(e,r){return r.subscribe(new nP(e,this.observables,this.project))},e}(),nP=function(e){function r(r,n,i){var o=e.call(this,r)||this;o.observables=n,o.project=i,o.toRespond=[];var s=n.length;o.values=Array(s);for(var a=0;a<s;a++)o.toRespond.push(a);for(a=0;a<s;a++){var u=n[a];o.add(Object(I.a)(o,u,void 0,a))}return o}return i.a(r,e),r.prototype.notifyNext=function(e,r,n){this.values[n]=r;var i=this.toRespond;if(i.length>0){var o=i.indexOf(n);-1!==o&&i.splice(o,1)}},r.prototype.notifyComplete=function(){},r.prototype._next=function(e){if(0===this.toRespond.length){var r=[e].concat(this.values);this.project?this._tryProject(r):this.destination.next(r)}},r.prototype._tryProject=function(e){var r;try{r=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(r)},r}(O.a),nL=n(54);function nD(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(r){return r.lift.call(nL.b.apply(void 0,[r].concat(e)))}}function nB(e){return function(r){return r.lift(new nL.a(e))}}},function(e,r,n){"use strict";
1(function(e){Object.defineProperty(r,"__esModule",{value:!0}),r.CoinbaseWalletSDK=void 0;let i=n(126),o=n(127),s=n(86),a=n(192),u=n(219),c=n(231),l=n(38),h=e.env.LINK_API_URL||"https://www.walletlink.org",d=e.env.SDK_VERSION||n(232).version||"unknown";class f{constructor(e){var r,n,i;let s;this._appName="",this._appLogoUrl=null,this._relay=null,this._relayEventManager=null;let l=e.linkAPIUrl||h;if(s=e.uiConstructor?e.uiConstructor:e=>new a.WalletSDKUI(e),void 0===e.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=e.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(r=e.overrideIsCoinbaseWallet)||void 0===r||r,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===(i=e.reloadOnDisconnect)||void 0===i||i;let p=new URL(l),y=`${p.protocol}//${p.host}`;this._storage=new o.ScopedLocalStorage("-walletlink:"+y),this._storage.setItem("version",f.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new c.WalletSDKRelayEventManager,this._relay=new u.WalletSDKRelay({linkAPIUrl:l,version:d,darkMode:!!e.darkMode,uiConstructor:s,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(e.appName,e.appLogoUrl),e.headlessMode||this._relay.attachUI())}makeWeb3Provider(e="",r=1){let n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(e,r),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;let i=this.coinbaseBrowser;if(i)return i;let o=this._relay;if(!o||!this._relayEventManager||!this._storage)throw Error("Relay not initialized, should never happen");return e||o.setConnectDisabled(!0),new s.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(o),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:e,chainId:r,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(e,r){var n;this._appName=e||"DApp",this._appLogoUrl=r||(0,l.getFavicon)();let i=this.walletExtension;i?this.isCipherProvider(i)||i.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var e;let r=this.walletExtension;r?r.close():null===(e=this._relay)||void 0===e||e.resetAndReload()}getQrUrl(){var e,r;return null!==(r=null===(e=this._relay)||void 0===e?void 0:e.getQRCodeUrl())&&void 0!==r?r:null}getCoinbaseWalletLogo(e,r=240){return(0,i.walletLogo)(e,r)}get walletExtension(){var e;return null!==(e=window.coinbaseWalletExtension)&&void 0!==e?e:window.walletLinkExtension}get coinbaseBrowser(){var e,r;try{let n=null!==(e=window.ethereum)&&void 0!==e?e:null===(r=window.top)||void 0===r?void 0:r.ethereum;if(!n)return;return"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch(e){return}}isCipherProvider(e){return"boolean"==typeof e.isCipher&&e.isCipher}}r.CoinbaseWalletSDK=f,f.VERSION=d}).call(this,n(40))},function(e,r){e.exports=s,s.default=s,s.stable=c,s.stableStringify=c;var n=[],i=[];function o(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function s(e,r,s,u){var c;void 0===u&&(u=o()),function e(r,n,i,o,s,u,c){var l;if(u+=1,"object"==typeof r&&null!==r){for(l=0;l<o.length;l++)if(o[l]===r)return void a("[Circular]",r,n,s);if(void 0!==c.depthLimit&&u>c.depthLimit||void 0!==c.edgesLimit&&i+1>c.edgesLimit)return void a("[...]",r,n,s);if(o.push(r),Array.isArray(r))for(l=0;l<r.length;l++)e(r[l],l,l,o,r,u,c);else{var h=Object.keys(r);for(l=0;l<h.length;l++){var d=h[l];e(r[d],d,l,o,r,u,c)}}o.pop()}}(e,"",0,[],void 0,0,u);try{c=0===i.length?JSON.stringify(e,r,s):JSON.stringify(e,l(r),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var h=n.pop();4===h.length?Object.defineProperty(h[0],h[1],h[3]):h[0][h[1]]=h[2]}}return c}function a(e,r,o,s){var a=Object.getOwnPropertyDescriptor(s,o);void 0!==a.get?a.configurable?(Object.defineProperty(s,o,{value:e}
1),n.push([s,o,r,a])):i.push([r,o,e]):(s[o]=e,n.push([s,o,r]))}function u(e,r){return e<r?-1:e>r?1:0}function c(e,r,s,c){void 0===c&&(c=o());var h,d=function e(r,i,o,s,c,l,h){var d;if(l+=1,"object"==typeof r&&null!==r){for(d=0;d<s.length;d++)if(s[d]===r)return void a("[Circular]",r,i,c);try{if("function"==typeof r.toJSON)return}catch(e){return}if(void 0!==h.depthLimit&&l>h.depthLimit||void 0!==h.edgesLimit&&o+1>h.edgesLimit)return void a("[...]",r,i,c);if(s.push(r),Array.isArray(r))for(d=0;d<r.length;d++)e(r[d],d,d,s,r,l,h);else{var f={},p=Object.keys(r).sort(u);for(d=0;d<p.length;d++){var y=p[d];e(r[y],y,d,s,r,l,h),f[y]=r[y]}if(void 0===c)return f;n.push([c,i,r]),c[i]=f}s.pop()}}(e,"",0,[],void 0,0,c)||e;try{h=0===i.length?JSON.stringify(d,r,s):JSON.stringify(d,l(r),s)}catch(e){return JSON.stringify("[unable to serialize, circular reference is too complex to analyze]")}finally{for(;0!==n.length;){var f=n.pop();4===f.length?Object.defineProperty(f[0],f[1],f[3]):f[0][f[1]]=f[2]}}return h}function l(e){return e=void 0!==e?e:function(e,r){return r},function(r,n){if(i.length>0)for(var o=0;o<i.length;o++){var s=i[o];if(s[1]===r&&s[0]===n){n=s[2],i.splice(o,1);break}}return e.call(this,r,n)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.serializeError=r.isValidCode=r.getMessageFromCode=r.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(89),o=n(88),s=i.errorCodes.rpc.internal,a={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(h(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return r.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function c(e){if(!Number.isInteger(e))return!1;let r=e.toString();return!!i.errorValues[r]||!!(e>=-32099&&e<=-32e3)}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function h(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=u,r.isValidCode=c,r.serializeError=function(e,{fallbackError:r=a,shouldIncludeStack:n=!1}={}){if(!r||!Number.isInteger(r.code)||"string"!=typeof r.message)throw Error("Must provide fallback error with integer number code and string message.");if(e instanceof o.EthereumRpcError)return e.serialize();let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&h(e,"code")&&c(e.code))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,h(e,"data")&&(i.data=e.data)):(i.message=u(i.code),i.data={originalError:l(e)});else{i.code=r.code;let n=null==e?void 0:e.message;i.message=n&&"string"==typeof n?n:r.message,i.data={originalError:l(e)}}let s=null==e?void 0:e.stack;return n&&e&&s&&"string"==typeof s&&(i.stack=s),i}},function(e,r,n){var i=n(24),o=n(45),s=n(37).Buffer,a=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],u=Array(64);function c(){this.init(),this._w=u,o.call(this,64,56)}i(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(e){for(var r,n=this._w,i=0|this._a,o=0|this._b,s=0|this._c,u=0|this._d,c=0|this._e,l=0|this._f,h=0|this._g,d=0|this._h,f=0;f<16;++f)n[f]=e.readInt32BE(4*f);for(;f<64;++f)n[f]=0|(((r=n[f-2])>>>17|r<<15)^(r>>>19|r<<13)^r>>>10)+n[f-7]+(((y=n[f-15])>>>7|y<<25)^(y>>>18|y<<14)^y>>>3)+n[f-16];for(var p=0;p<64;++p){var y,b,g,m,v,_,w,S,E=d+(((b=c)>>>6|b<<26)^(b>>>11|b<<21)^(b>>>25|b<<7))+(g=c,m=l,(v=h)^g&(m^v))+a[p]+n[p]|0,M=(((_=i)>>>2|_<<30)^(_>>>13|_<<19)^(_>>>22|_<<10))+((w=i)&(S=o)|s&(w|S))|0;d=h,h=l,l=c,c=u+E|0,u=s,s=o,o=i,i=E+M|0}this._a=i+this._a|0,this._b=o+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0,this._f=l+this._f|0,this._g=h+this._g|0,this._h=d+this._h|0},c.prototype._hash=function(){var e=s.allocUnsafe(32);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e.writeInt32BE(this._h,28),e},e.exports=c},function(e,r,n){var i=n(24),o=n(45),s=n(37).Buffer,a=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,
11322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=Array(160);function c(){this.init(),this._w=u,o.call(this,128,112)}function l(e,r){return(e>>>28|r<<4)^(r>>>2|e<<30)^(r>>>7|e<<25)}function h(e,r){return(e>>>14|r<<18)^(e>>>18|r<<14)^(r>>>9|e<<23)}function d(e,r){return e>>>0<r>>>0?1:0}i(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(e){for(var r=this._w,n=0|this._ah,i=0|this._bh,o=0|this._ch,s=0|this._dh,u=0|this._eh,c=0|this._fh,f=0|this._gh,p=0|this._hh,y=0|this._al,b=0|this._bl,g=0|this._cl,m=0|this._dl,v=0|this._el,_=0|this._fl,w=0|this._gl,S=0|this._hl,E=0;E<32;E+=2)r[E]=e.readInt32BE(4*E),r[E+1]=e.readInt32BE(4*E+4);for(;E<160;E+=2){var M,x,k,C,A,I,O,j,R=r[E-30],N=r[E-30+1],T=((M=R)>>>1|(x=N)<<31)^(M>>>8|x<<24)^M>>>7,P=((k=N)>>>1|(C=R)<<31)^(k>>>8|C<<24)^(k>>>7|C<<25),L=((A=R=r[E-4])>>>19|(I=N=r[E-4+1])<<13)^(I>>>29|A<<3)^A>>>6,D=((O=N)>>>19|(j=R)<<13)^(j>>>29|O<<3)^(O>>>6|j<<26),B=r[E-14],F=r[E-14+1],U=r[E-32],W=r[E-32+1],H=P+F|0,z=T+B+d(H,P)|0;z=(z=z+L+d(H=H+D|0,D)|0)+U+d(H=H+W|0,W)|0,r[E]=z,r[E+1]=H}for(var V=0;V<160;V+=2){z=r[V],H=r[V+1];var q,Z,G,Y,J,$,Q,K,X,tt,te=(q=n)&(Z=i)|o&(q|Z),tr=(G=y)&(Y=b)|g&(G|Y),tn=l(n,y),ti=l(y,n),to=h(u,v),ts=h(v,u),ta=a[V],tu=a[V+1],tc=(J=u,$=c,(Q=f)^J&($^Q)),tl=(K=v,X=_,(tt=w)^K&(X^tt)),th=S+ts|0,td=p+to+d(th,S)|0;td=(td=(td=td+tc+d(th=th+tl|0,tl)|0)+ta+d(th=th+tu|0,tu)|0)+z+d(th=th+H|0,H)|0;var tf=ti+tr|0,tp=tn+te+d(tf,ti)|0;p=f,S=w,f=c,w=_,c=u,_=v,u=s+td+d(v=m+th|0,m)|0,s=o,m=g,o=i,g=b,i=n,b=y,n=td+tp+d(y=th+tf|0,th)|0}this._al=this._al+y|0,this._bl=this._bl+b|0,this._cl=this._cl+g|0,this._dl=this._dl+m|0,this._el=this._el+v|0,this._fl=this._fl+_|0,this._gl=this._gl+w|0,this._hl=this._hl+S|0,this._ah=this._ah+n+d(this._al,y)|0,this._bh=this._bh+i+d(this._bl,b)|0,this._ch=this._ch+o+d(this._cl,g)|0,this._dh=this._dh+s+d(this._dl,m)|0,this._eh=this._eh+u+d(this._el,v)|0,this._fh=this._fh+c+d(this._fl,_)|0,this._gh=this._gh+f+d(this._gl,w)|0,this._hh=this._hh+p+d(this._hl,S)|0},c.prototype._hash=function(){var e=s.allocUnsafe(64);function r(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),r(this._gh,this._gl,48),r(this._hh,this._hl,56),e},e.exports=c},function(e,r,n){"use strict";var i=n(94),o=Object.prototype.hasOwnProperty,s=Array.isArray,a=function(){for(var e=[],r=0;r<256;++r)e.push("%"+((r<16?"0":"")+r.toString(16)).toUpperCase());return e}(),u=function(e,r){for(var n=r&&r.plainObjects?Object.create(null):{},i=0;i<e.length;++i)void 0!==e[i]&&(n[i]=e[i]);return n};e.exports={arrayToObject:u,assign:function(e,r){return Object.keys(r).reduce(function(e,n){return e[n]=r[n],e},e)},combine:function(e,r){return[].concat(e,r)},compact:function(e){for(var r=[{obj:{o:e},prop:"o"}],n=[],i=0;i<r.length;++i)for(var o=r[i],a=o.obj[o.prop],u=Object.keys(a),c=0;c<u.length;++c){var l=u[c],h=a[l];"object"==typeof h&&null!==h&&-1===n.indexOf(h)&&(r.push({obj:a,prop:l}),n.push(h))}return function(e){for(;e.length>1;){var r=e.pop(),n=r.obj[r.prop];if(s(n)){for(var i=[],o=0;o<n.length;++o)void 0!==n[o]&&i.push(n[o]);r.obj[r.prop]=i}}}(r),e},decode:function(e,r,n){var i=e.replace(/\+/g," ");
1if("iso-8859-1"===n)return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch(e){return i}},encode:function(e,r,n,o,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="",l=0;l<u.length;++l){var h=u.charCodeAt(l);45===h||46===h||95===h||126===h||h>=48&&h<=57||h>=65&&h<=90||h>=97&&h<=122||s===i.RFC1738&&(40===h||41===h)?c+=u.charAt(l):h<128?c+=a[h]:h<2048?c+=a[192|h>>6]+a[128|63&h]:h<55296||h>=57344?c+=a[224|h>>12]+a[128|h>>6&63]+a[128|63&h]:(l+=1,c+=a[240|(h=65536+((1023&h)<<10|1023&u.charCodeAt(l)))>>18]+a[128|h>>12&63]+a[128|h>>6&63]+a[128|63&h])}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,r){if(s(e)){for(var n=[],i=0;i<e.length;i+=1)n.push(r(e[i]));return n}return r(e)},merge:function e(r,n,i){if(!n)return r;if("object"!=typeof n){if(s(r))r.push(n);else{if(!r||"object"!=typeof r)return[r,n];(i&&(i.plainObjects||i.allowPrototypes)||!o.call(Object.prototype,n))&&(r[n]=!0)}return r}if(!r||"object"!=typeof r)return[r].concat(n);var a=r;return s(r)&&!s(n)&&(a=u(r,i)),s(r)&&s(n)?(n.forEach(function(n,s){if(o.call(r,s)){var a=r[s];a&&"object"==typeof a&&n&&"object"==typeof n?r[s]=e(a,n,i):r.push(n)}else r[s]=n}),r):Object.keys(n).reduce(function(r,s){var a=n[s];return o.call(r,s)?r[s]=e(r[s],a,i):r[s]=a,r},a)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletSDKRelayAbstract=r.APP_VERSION_KEY=r.LOCAL_STORAGE_ADDRESSES_KEY=r.WALLET_USER_NAME_KEY=void 0;let i=n(87);r.WALLET_USER_NAME_KEY="walletUsername",r.LOCAL_STORAGE_ADDRESSES_KEY="Addresses",r.APP_VERSION_KEY="AppVersion",r.WalletSDKRelayAbstract=class{async makeEthereumJSONRPCRequest(e,r){if(!r)throw Error("Error: No jsonRpcUrl provided");return window.fetch(r,{method:"POST",body:JSON.stringify(e),mode:"cors",headers:{"Content-Type":"application/json"}}).then(e=>e.json()).then(e=>{if(!e)throw i.ethErrors.rpc.parse({});let{error:r}=e;if(r)throw(0,i.serializeError)(r);return e})}}},function(e,r,n){(function(r){let i=n(153),o=n(66);function s(e){return r.allocUnsafe(e).fill(0)}function a(e,r,n){let i=s(r);return e=u(e),n?e.length<r?(e.copy(i),i):e.slice(0,r):e.length<r?(e.copy(i,r-e.length),i):e.slice(-r)}function u(e){var n;if(!r.isBuffer(e)){if(Array.isArray(e))e=r.from(e);else if("string"==typeof e)e=c(e)?r.from((n=l(e)).length%2?"0"+n:n,"hex"):r.from(e);else if("number"==typeof e)e=intToBuffer(e);else if(null==e)e=r.allocUnsafe(0);else if(o.isBN(e))e=e.toArrayLike(r);else{if(!e.toArray)throw Error("invalid type");e=r.from(e.toArray())}}return e}function c(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}e.exports={zeros:s,setLength:a,setLengthRight:function(e,r){return a(e,r,!0)},isHexString:c,stripHexPrefix:l,toBuffer:u,bufferToHex:function(e){return"0x"+(e=u(e)).toString("hex")},keccak:function(e,r){return e=u(e),r||(r=256),i("keccak"+r).update(e).digest()}}}).call(this,n(19).Buffer)},function(e,r,n){(r=e.exports=n(111)).Stream=r,r.Readable=r,r.Writable=n(115),r.Duplex=n(47),r.Transform=n(117),r.PassThrough=n(162),r.finished=n(95),r.pipeline=n(163)},function(e,r,n){"use strict";(function(r,i){e.exports=k,k.ReadableState=x,n(65).EventEmitter;var o,s,a=function(e,r){return e.listeners(r).length},u=n(112),c=n(19).Buffer,l=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},h=n(156);s=h&&h.debuglog?h.debuglog("stream"):function(){};var d,f,p,y=n(157),b=n(113),g=n(114).getHighWaterMark,m=n(46).codes,v=m.ERR_INVALID_ARG_TYPE,_=m.ERR_STREAM_PUSH_AFTER_EOF,w=m.ERR_METHOD_NOT_IMPLEMENTED,S=m.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(24)(k,u);var E=b.errorOrDestroy,M=["error","close","destroy","pause","resume"];function x(e,r,i){o=o||n(47),e=e||{},"boolean"!=typeof i&&(i=r instanceof o),this.objectMode=!!e.objectMode,i&&(this.objectMode=this.objectMode||!!e.readableObjectMode),this.highWaterMark=g(this,e,"readableHighWaterMark",i),this.buffer=new y,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(d||(d=n(116).StringDecoder),this.decoder=new d(e.encoding),this.encoding=e.encoding)}function k(e){if(o=o||n(47),!(this instanceof k))return new k(e);var r=this instanceof o;this._readableState=new x(e,this,r),this.readable=!0,e&&("function"==typeof e.read&&(this._read=e.read),"function"==typeof e.destroy&&(this._destroy=e.destroy)),u.call(this)}function C(e,r,n,i,o){s("readableAddChunk",r);var a,u,h,d,f=e._readableState;if(null===r)f.reading=!1,function(e,r){if(s("onEofChunk"),!r.ended){if(r.decoder){var n=r.decoder.end();n&&n.length&&(r.buffer.push(n),r.length+=r.objectMode?1:n.length)}r.ended=!0,r.sync?O(e):(r.needReadable=!1,r.emittedReadable||(r.emittedReadable=!0,j(e)))}}(e,f);else if(o||(a=r,c.isBuffer(a)||a instanceof l||"string"==typeof a||void 0===a||f.objectMode||(u=new v("chunk",["string","Buffer","Uint8Array"],a)),d=u),d)E(e,d);else if(f.objectMode||r&&r.length>0){if("string"==typeof r||f.objectMode||Object.getPrototypeOf(r)===c.prototype||(h=r,r=c.from(h)
vendor: 4,478 bytes, line 1
1),i)f.endEmitted?E(e,new S):A(e,f,r,!0);else if(f.ended)E(e,new _);else{if(f.destroyed)return!1;f.reading=!1,f.decoder&&!n?(r=f.decoder.write(r),f.objectMode||0!==r.length?A(e,f,r,!1):R(e,f)):A(e,f,r,!1)}}else i||(f.reading=!1,R(e,f));return!f.ended&&(f.length<f.highWaterMark||0===f.length)}function A(e,r,n,i){r.flowing&&0===r.length&&!r.sync?(r.awaitDrain=0,e.emit("data",n)):(r.length+=r.objectMode?1:n.length,i?r.buffer.unshift(n):r.buffer.push(n),r.needReadable&&O(e)),R(e,r)}function I(e,r){var n;return e<=0||0===r.length&&r.ended?0:r.objectMode?1:e!=e?r.flowing&&r.length?r.buffer.head.data.length:r.length:(e>r.highWaterMark&&(r.highWaterMark=((n=e)>=1073741824?n=1073741824:(n--,n|=n>>>1,n|=n>>>2,n|=n>>>4,n|=n>>>8,n|=n>>>16,n++),n)),e<=r.length?e:r.ended?r.length:(r.needReadable=!0,0))}function O(e){var r=e._readableState;s("emitReadable",r.needReadable,r.emittedReadable),r.needReadable=!1,r.emittedReadable||(s("emitReadable",r.flowing),r.emittedReadable=!0,i.nextTick(j,e))}function j(e){var r=e._readableState;s("emitReadable_",r.destroyed,r.length,r.ended),!r.destroyed&&(r.length||r.ended)&&(e.emit("readable"),r.emittedReadable=!1),r.needReadable=!r.flowing&&!r.ended&&r.length<=r.highWaterMark,D(e)}function R(e,r){r.readingMore||(r.readingMore=!0,i.nextTick(N,e,r))}function N(e,r){for(;!r.reading&&!r.ended&&(r.length<r.highWaterMark||r.flowing&&0===r.length);){var n=r.length;if(s("maybeReadMore read 0"),e.read(0),n===r.length)break}r.readingMore=!1}function T(e){var r=e._readableState;r.readableListening=e.listenerCount("readable")>0,r.resumeScheduled&&!r.paused?r.flowing=!0:e.listenerCount("data")>0&&e.resume()}function P(e){s("readable nexttick read 0"),e.read(0)}function L(e,r){s("resume",r.reading),r.reading||e.read(0),r.resumeScheduled=!1,e.emit("resume"),D(e),r.flowing&&!r.reading&&e.read(0)}function D(e){var r=e._readableState;for(s("flow",r.flowing);r.flowing&&null!==e.read(););}function B(e,r){var n;return 0===r.length?null:(r.objectMode?n=r.buffer.shift():!e||e>=r.length?(n=r.decoder?r.buffer.join(""):1===r.buffer.length?r.buffer.first():r.buffer.concat(r.length),r.buffer.clear()):n=r.buffer.consume(e,r.decoder),n)}function F(e){var r=e._readableState;s("endReadable",r.endEmitted),r.endEmitted||(r.ended=!0,i.nextTick(U,r,e))}function U(e,r){if(s("endReadableNT",e.endEmitted,e.length),!e.endEmitted&&0===e.length&&(e.endEmitted=!0,r.readable=!1,r.emit("end"),e.autoDestroy)){var n=r._writableState;(!n||n.autoDestroy&&n.finished)&&r.destroy()}}function W(e,r){for(var n=0,i=e.length;n<i;n++)if(e[n]===r)return n;return -1}Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(e){this._readableState&&(this._readableState.destroyed=e)}}),k.prototype.destroy=b.destroy,k.prototype._undestroy=b.undestroy,k.prototype._destroy=function(e,r){r(e)},k.prototype.push=function(e,r){var n,i=this._readableState;return i.objectMode?n=!0:"string"==typeof e&&((r=r||i.defaultEncoding)!==i.encoding&&(e=c.from(e,r),r=""),n=!0),C(this,e,r,!1,n)},k.prototype.unshift=function(e){return C(this,e,null,!0,!1)},k.prototype.isPaused=function(){return!1===this._readableState.flowing},k.prototype.setEncoding=function(e){d||(d=n(116).StringDecoder);var r=new d(e);this._readableState.decoder=r,this._readableState.encoding=this._readableState.decoder.encoding;for(var i=this._readableState.buffer.head,o="";null!==i;)o+=r.write(i.data),i=i.next;return this._readableState.buffer.clear(),""!==o&&this._readableState.buffer.push(o),this._readableState.length=o.length,this},k.prototype.read=function(e){s("read",e),e=parseInt(e,10);var r=this._readableState,n=e;if(0!==e&&(r.emittedReadable=!1),0===e&&r.needReadable&&((0!==r.highWaterMark?r.length>=r.highWaterMark:r.length>0)||r.ended))return s("read: emitReadable",r.length,r.ended),0===r.length&&r.ended?F(this):O(this),null;if(0===(e=I(e,r))&&r.ended)return 0===r.length&&F(this),null;var i,o=r.needReadable;return s("need readable",o),(0===r.length||r.length-e<r.highWaterMark)&&s("length less than watermark",o=!0),r.ended||r.reading?s("reading or ended",o=!1):o&&(s("do read"),r.reading=!0,r.sync=!0,0===r.length&&(r.needReadable=!0),this._read(r.highWaterMark),r.sync=!1,r.reading||(e=I(n,r))),null===(i=e>0?B(e,r):null)?(r.needReadable=r.length<=r.highWaterMark,e=0):(r.length-=e,r.awaitDrain=0),0===r.length&&(r.ended||(r.needReadable=!0),n!==e&&r.ended&&F(this)),null!==i&&this.emit
1("data",i),i},k.prototype._read=function(e){E(this,new w("_read()"))},k.prototype.pipe=function(e,r){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e)}o.pipesCount+=1,s("pipe count=%d opts=%j",o.pipesCount,r);var u=r&&!1===r.end||e===i.stdout||e===i.stderr?b:c;function c(){s("onend"),e.end()}o.endEmitted?i.nextTick(u):n.once("end",u),e.on("unpipe",function r(i,a){s("onunpipe"),i===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,s("cleanup"),e.removeListener("close",p),e.removeListener("finish",y),e.removeListener("drain",l),e.removeListener("error",f),e.removeListener("unpipe",r),n.removeListener("end",c),n.removeListener("end",b),n.removeListener("data",d),h=!0,o.awaitDrain&&(!e._writableState||e._writableState.needDrain)&&l())});var l=function(){var e=n._readableState;s("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(n,"data")&&(e.flowing=!0,D(n))};e.on("drain",l);var h=!1;function d(r){s("ondata");var i=e.write(r);s("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==W(o.pipes,e))&&!h&&(s("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function f(r){s("onerror",r),b(),e.removeListener("error",f),0===a(e,"error")&&E(e,r)}function p(){e.removeListener("finish",y),b()}function y(){s("onfinish"),e.removeListener("close",p),b()}function b(){s("unpipe"),n.unpipe(e)}return n.on("data",d),function(e,r,n){if("function"==typeof e.prependListener)return e.prepe
vendor: 5,454 bytes, line 1
1ndListener(r,n);e._events&&e._events[r]?Array.isArray(e._events[r])?e._events[r].unshift(n):e._events[r]=[n,e._events[r]]:e.on(r,n)}(e,"error",f),e.once("close",p),e.once("finish",y),e.emit("pipe",n),o.flowing||(s("pipe resume"),n.resume()),e},k.prototype.unpipe=function(e){var r=this._readableState,n={hasUnpiped:!1};if(0===r.pipesCount)return this;if(1===r.pipesCount)return e&&e!==r.pipes||(e||(e=r.pipes),r.pipes=null,r.pipesCount=0,r.flowing=!1,e&&e.emit("unpipe",this,n)),this;if(!e){var i=r.pipes,o=r.pipesCount;r.pipes=null,r.pipesCount=0,r.flowing=!1;for(var s=0;s<o;s++)i[s].emit("unpipe",this,{hasUnpiped:!1});return this}var a=W(r.pipes,e);return -1===a||(r.pipes.splice(a,1),r.pipesCount-=1,1===r.pipesCount&&(r.pipes=r.pipes[0]),e.emit("unpipe",this,n)),this},k.prototype.on=function(e,r){var n=u.prototype.on.call(this,e,r),o=this._readableState;return"data"===e?(o.readableListening=this.listenerCount("readable")>0,!1!==o.flowing&&this.resume()):"readable"===e&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,s("on readable",o.length,o.reading),o.length?O(this):o.reading||i.nextTick(P,this))),n},k.prototype.addListener=k.prototype.on,k.prototype.removeListener=function(e,r){var n=u.prototype.removeListener.call(this,e,r);return"readable"===e&&i.nextTick(T,this),n},k.prototype.removeAllListeners=function(e){var r=u.prototype.removeAllListeners.apply(this,arguments);return"readable"!==e&&void 0!==e||i.nextTick(T,this),r},k.prototype.resume=function(){var e=this._readableState;return e.flowing||(s("resume"),e.flowing=!e.readableListening,e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(L,this,e))),e.paused=!1,this},k.prototype.pause=function(){return s("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(s("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},k.prototype.wrap=function(e){var r=this,n=this._readableState,i=!1;for(var o in e.on("end",function(){if(s("wrapped end"),n.decoder&&!n.ended){var e=n.decoder.end();e&&e.length&&r.push(e)}r.push(null)}),e.on("data",function(o){s("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o||(n.objectMode||o&&o.length)&&(r.push(o)||(i=!0,e.pause()))}),e)void 0===this[o]&&"function"==typeof e[o]&&(this[o]=function(r){return function(){return e[r].apply(e,arguments)}}(o));for(var a=0;a<M.length;a++)e.on(M[a],this.emit.bind(this,M[a]));return this._read=function(r){s("wrapped _read",r),i&&(i=!1,e.resume())},this},"function"==typeof Symbol&&(k.prototype[Symbol.asyncIterator]=function(){return void 0===f&&(f=n(160)),f(this)}),Object.defineProperty(k.prototype,"readableHighWaterMark",{enumerable:!1,get:function(){return this._readableState.highWaterMark}}),Object.defineProperty(k.prototype,"readableBuffer",{enumerable:!1,get:function(){return this._readableState&&this._readableState.buffer}}),Object.defineProperty(k.prototype,"readableFlowing",{enumerable:!1,get:function(){return this._readableState.flowing},set:function(e){this._readableState&&(this._readableState.flowing=e)}}),k._fromList=B,Object.defineProperty(k.prototype,"readableLength",{enumerable:!1,get:function(){return this._readableState.length}}),"function"==typeof Symbol&&(k.from=function(e,r){return void 0===p&&(p=n(161)),p(k,e,r)})}).call(this,n(63),n(40))},function(e,r,n){e.exports=n(65).EventEmitter},function(e,r,n){"use strict";(function(r){function n(e,r){o(e,r),i(e)}function i(e){e._writableState&&!e._writableState.emitClose||e._readableState&&!e._readableState.emitClose||e.emit("close")}function o(e,r){e.emit("error",r)}e.exports={destroy:function(e,s){var a=this,u=this._readableState&&this._readableState.destroyed,c=this._writableState&&this._writableState.destroyed;return u||c?s?s(e):e&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,r.nextTick(o,this,e)):r.nextTick(o,this,e)):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!s&&e?a._writableState?a._writableState.errorEmitted?r.nextTick(i,a):(a._writableState.errorEmitted=!0,r.nextTick(n,a,e)):r.nextTick(n,a,e):s?(r.nextTick(i,a),s(e)):r.nextTick(i,a)})),this},undestroy:function(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finalCalled=!1,this._writableState.prefinished=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)},errorOrDestroy:function(e,r){var n=e._readableState,i=e._writableState;n&&n.autoDestroy||i&&i.autoDestroy?e.destroy(r):e.emit("error",r)}}}).call(this,n(40))},function(e,r,n){"use strict";var i=n(46).codes.ERR_INVALID_OPT_VALUE;e.exports={getHighWaterMark:function(e,r,n,o){var s=null!=r.highWaterMark?r.highWaterMark:o?r[n]:null;if(null!=s){if(!isFinite(s)||Math.floor(s)!==s||s<0)throw new i(o?n:"highWaterMark",s);return Math.floor(s)}return e.objectMode?16:16384}}},function(e,r,n){"use strict";(function(r,i){function o(e){var r=this;this.next=null,this.entry=null,this.finish=function(){!function(e,r,n){var i=e.entry;for(e.entry=null;i;){var o=i.callback;r.pendingcb--,o(void 0),i=i.next}r.corkedRequestsFree.next=e}(r,e)}}
1e.exports=k,k.WritableState=x;var s,a,u={deprecate:n(159)},c=n(112),l=n(19).Buffer,h=(void 0!==r?r:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{}).Uint8Array||function(){},d=n(113),f=n(114).getHighWaterMark,p=n(46).codes,y=p.ERR_INVALID_ARG_TYPE,b=p.ERR_METHOD_NOT_IMPLEMENTED,g=p.ERR_MULTIPLE_CALLBACK,m=p.ERR_STREAM_CANNOT_PIPE,v=p.ERR_STREAM_DESTROYED,_=p.ERR_STREAM_NULL_VALUES,w=p.ERR_STREAM_WRITE_AFTER_END,S=p.ERR_UNKNOWN_ENCODING,E=d.errorOrDestroy;function M(){}function x(e,r,a){s=s||n(47),e=e||{},"boolean"!=typeof a&&(a=r instanceof s),this.objectMode=!!e.objectMode,a&&(this.objectMode=this.objectMode||!!e.writableObjectMode),this.highWaterMark=f(this,e,"writableHighWaterMark",a),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var u=!1===e.decodeStrings;this.decodeStrings=!u,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){!function(e,r){var n=e._writableState,o=n.sync,s=n.writecb;if("function"!=typeof s)throw new g;if(n.writing=!1,n.writecb=null,n.length-=n.writelen,n.writelen=0,r)--n.pendingcb,o?(i.nextTick(s,r),i.nextTick(R,e,n),e._writableState.errorEmitted=!0,E(e,r)):(s(r),e._writableState.errorEmitted=!0,E(e,r),R(e,n));else{var a=O(n)||e.destroyed;a||n.corked||n.bufferProcessing||!n.bufferedRequest||I(e,n),o?i.nextTick(A,e,n,a,s):A(e,n,a,s)}}(r,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==e.emitClose,this.autoDestroy=!!e.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function k(e){var r=this instanceof(s=s||n(47));if(!r&&!a.call(k,this))return new k(e);this._writableState=new x(e,this,r),this.writable=!0,e&&("function"==typeof e.write&&(this._write=e.write),"function"==typeof e.writev&&(this._writev=e.writev),"function"==typeof e.destroy&&(this._destroy=e.destroy),"function"==typeof e.final&&(this._final=e.final)),c.call(this)}function C(e,r,n,i,o,s,a){r.writelen=i,r.writecb=a,r.writing=!0,r.sync=!0,r.destroyed?r.onwrite(new v("write")):n?e._writev(o,r.onwrite):e._write(o,s,r.onwrite),r.sync=!1}function A(e,r,n,i){n||0===r.length&&r.needDrain&&(r.needDrain=!1,e.emit("drain")),r.pendingcb--,i(),R(e,r)}function I(e,r){r.bufferProcessing=!0;var n=r.bufferedRequest;if(e._writev&&n&&n.next){var i=Array(r.bufferedRequestCount),s=r.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)i[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;i.allBuffers=u,C(e,r,!0,r.length,i,"",s.finish),r.pendingcb++,r.lastBufferedRequest=null,s.next?(r.corkedRequestsFree=s.next,s.next=null):r.corkedRequestsFree=new o(r),r.bufferedRequestCount=0}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback;if(C(e,r,!1,r.objectMode?1:c.length,c,l,h),n=n.next,r.bufferedRequestCount--,r.writing)break}null===n&&(r.lastBufferedRequest=null)}r.bufferedRequest=n,r.bufferProcessing=!1}function O(e){return e.ending&&0===e.length&&null===e.bufferedRequest&&!e.finished&&!e.writing}function j(e,r){e._final(function(n){r.pendingcb--,n&&E(e,n),r.prefinished=!0,e.emit("prefinish"),R(e,r)})}function R(e,r){var n=O(r);if(n&&(r.prefinished||r.finalCalled||("function"!=typeof e._final||r.destroyed?(r.prefinished=!0,e.emit("prefinish")):(r.pendingcb++,r.finalCalled=!0,i.nextTick(j,e,r))),0===r.pendingcb&&(r.finished=!0,e.emit("finish"),r.autoDestroy))){var o=e._readableState;(!o||o.autoDestroy&&o.endEmitted)&&e.destroy()}return n}n(24)(k,c),x.prototype.getBuffer=function(){for(var e=this.bufferedRequest,r=[];e;)r.push(e),e=e.next;return r},function(){try{Object.defineProperty(x.prototype,"buffer",{get:u.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(e){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(a=Function.prototype[Symbol.hasInstance],Object.defineProperty(k,Symbol.hasInstance,{value:function(e){return!!a.call(this,e)||this===k&&e&&e._writableState instanceof x}})):a=function(e){return e instanceof this},k.prototype.pipe=function(){E(this,new m)},k.prototype.write=function(e,r,n){var o,s,a,u,c,d,f,p=this._writableState,b=!1,g=!p.objectMode&&(f=e,l.isBuffer(f)||f instanceof h);return g&&!l.isBuffer(e)&&(o=e,e=l.from(o)),"function"==typeof r&&(n=r,r=null),g?r="buffer":r||(r=p.defaultEncoding),"function"!=typeof n&&(n=M),p.ending?(s=n,E(this,a=new w),i.nextTick(s,a)):!g&&(u=e,c=n,null===u?d=new _:"string"==typeof u||p.objectMode||(d=new y("chunk",["string","Buffer"],u)),d&&(E(this,d),i.nextTick(c,d),1))||(p.pendingcb++,b=function(e,r,n,i,o,s){if
vendor: 5,733 bytes, line 1
1(!n){var a,u,c=(a=i,u=o,r.objectMode||!1===r.decodeStrings||"string"!=typeof a||(a=l.from(a,u)),a);i!==c&&(n=!0,o="buffer",i=c)}var h=r.objectMode?1:i.length;r.length+=h;var d=r.length<r.highWaterMark;if(d||(r.needDrain=!0),r.writing||r.corked){var f=r.lastBufferedRequest;r.lastBufferedRequest={chunk:i,encoding:o,isBuf:n,callback:s,next:null},f?f.next=r.lastBufferedRequest:r.bufferedRequest=r.lastBufferedRequest,r.bufferedRequestCount+=1}else C(e,r,!1,h,i,o,s);return d}(this,p,g,e,r,n)),b},k.prototype.cork=function(){this._writableState.corked++},k.prototype.uncork=function(){var e=this._writableState;e.corked&&(e.corked--,e.writing||e.corked||e.bufferProcessing||!e.bufferedRequest||I(this,e))},k.prototype.setDefaultEncoding=function(e){if("string"==typeof e&&(e=e.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((e+"").toLowerCase())>-1))throw new S(e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(k.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(k.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),k.prototype._write=function(e,r,n){n(new b("_write()"))},k.prototype._writev=null,k.prototype.end=function(e,r,n){var o,s=this._writableState;return"function"==typeof e?(n=e,e=null,r=null):"function"==typeof r&&(n=r,r=null),null!=e&&this.write(e,r),s.corked&&(s.corked=1,this.uncork()),s.ending||(o=n,s.ending=!0,R(this,s),o&&(s.finished?i.nextTick(o):this.once("finish",o)),s.ended=!0,this.writable=!1),this},Object.defineProperty(k.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(k.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),k.prototype.destroy=d.destroy,k.prototype._undestroy=d.undestroy,k.prototype._destroy=function(e,r){r(e)}}).call(this,n(63),n(40))},function(e,r,n){"use strict";var i=n(37).Buffer,o=i.isEncoding||function(e){switch((e=""+e)&&e.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function s(e){var r;switch(this.encoding=function(e){var r=function(e){if(!e)return"utf8";for(var r;;)switch(e){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return e;default:if(r)return;e=(""+e).toLowerCase(),r=!0}}(e);if("string"!=typeof r&&(i.isEncoding===o||!o(e)))throw Error("Unknown encoding: "+e);return r||e}(e),this.encoding){case"utf16le":this.text=c,this.end=l,r=4;break;case"utf8":this.fillLast=u,r=4;break;case"base64":this.text=h,this.end=d,r=3;break;default:return this.write=f,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(r)}function a(e){return e<=127?0:e>>5==6?2:e>>4==14?3:e>>3==30?4:e>>6==2?-1:-2}function u(e){var r=this.lastTotal-this.lastNeed,n=function(e,r,n){if(128!=(192&r[0]))return e.lastNeed=0,"�";if(e.lastNeed>1&&r.length>1){if(128!=(192&r[1]))return e.lastNeed=1,"�";if(e.lastNeed>2&&r.length>2&&128!=(192&r[2]))return e.lastNeed=2,"�"}}(this,e);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,r,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,r,0,e.length),void(this.lastNeed-=e.length))}function c(e,r){if((e.length-r)%2==0){var n=e.toString("utf16le",r);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",r,e.length-1)}function l(e){var r=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return r+this.lastChar.toString("utf16le",0,n)}return r}function h(e,r){var n=(e.length-r)%3;return 0===n?e.toString("base64",r):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",r,e.length-n))}function d(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+this.lastChar.toString("base64",0,3-this.lastNeed):r}function f(e){return e.toString(this.encoding)}function p(e){return e&&e.length?this.write(e):""}r.StringDecoder=s,s.prototype.write=function(e){var r,n;if(0===e.length)return"";if(this.lastNeed){if(void 0===(r=this.fillLast(e)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<e.length?r?r+this.text(e,n):this.text(e,n):r||""},s.prototype.end=function(e){var r=e&&e.length?this.write(e):"";return this.lastNeed?r+"�":r},s.prototype.text=function(e,r){var n=function(e,r,n){var i=r.length-1;if(i<n)return 0;var o=a(r[i]);return o>=0?(o>0&&(e.lastNeed=o-1),o):--i<n||-2===o?0:(o=a(r[i]))>=0?(o>0&&(e.lastNeed=o-2),o):--i<n||-2===o?0:(o=a(r[i]))>=0?(o>0&&(2===o?o=0:e.lastNeed=o-3),o):0}(this,e,r);if(!this.lastNeed)return e.toString("utf8",r);this.lastTotal=n;var i=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,i),e.toString("utf8",r,i)},s.prototype.fillLast=function(e){if(this.lastNeed<=e.length)return e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);e.copy(this.lastChar,this.lastTotal-this.lastNeed,0,e.length),this.lastNeed-=e.length}},function(e,r,n){"use strict";e.exports=h;
1var i=n(46).codes,o=i.ERR_METHOD_NOT_IMPLEMENTED,s=i.ERR_MULTIPLE_CALLBACK,a=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,u=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(47);function l(e,r){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new s);n.writechunk=null,n.writecb=null,null!=r&&this.push(r),i(e);var o=this._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}function h(e){if(!(this instanceof h))return new h(e);c.call(this,e),this._transformState={afterTransform:l.bind(this),needTransform:!1,transforming:!1,writecb:null,writechunk:null,writeencoding:null},this._readableState.needReadable=!0,this._readableState.sync=!1,e&&("function"==typeof e.transform&&(this._transform=e.transform),"function"==typeof e.flush&&(this._flush=e.flush)),this.on("prefinish",d)}function d(){var e=this;"function"!=typeof this._flush||this._readableState.destroyed?f(this,null,null):this._flush(function(r,n){f(e,r,n)})}function f(e,r,n){if(r)return e.emit("error",r);if(null!=n&&e.push(n),e._writableState.length)throw new u;if(e._transformState.transforming)throw new a;return e.push(null)}n(24)(h,c),h.prototype.push=function(e,r){return this._transformState.needTransform=!1,c.prototype.push.call(this,e,r)},h.prototype._transform=function(e,r,n){n(new o("_transform()"))},h.prototype._write=function(e,r,n){var i=this._transformState;if(i.writecb=n,i.writechunk=e,i.writeencoding=r,!i.transforming){var o=this._readableState;(i.needTransform||o.needReadable||o.length<o.highWaterMark)&&this._read(o.highWaterMark)}},h.prototype._read=function(e){var r=this._transformState;null===r.writechunk||r.transforming?r.needTransform=!0:(r.transforming=!0,this._transform(r.writechunk,r.writeencoding,r.afterTransform))},h.prototype._destroy=function(e,r){c.prototype._destroy.call(this,e,function(e){r(e)})}},function(e,r,n){"use strict";let i=(e,r)=>function(){let n=r.promiseModule,i=Array(arguments.length);for(let e=0;e<arguments.length;e++)i[e]=arguments[e];return new n((n,o)=>{r.errorFirst?i.push(function(e,i){if(r.multiArgs){let r=Array(arguments.length-1);for(let e=1;e<arguments.length;e++)r[e-1]=arguments[e];e?(r.unshift(e),o(r)):n(r)}else e?o(e):n(i)}):i.push(function(e){if(r.multiArgs){let e=Array(arguments.length-1);for(let r=0;r<arguments.length;r++)e[r]=arguments[r];n(e)}else n(e)}),e.apply(this,i)})};e.exports=(e,r)=>{let n;r=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},r);let o=e=>{let n=r=>"string"==typeof r?e===r:r.test(e);return r.include?r.include.some(n):!r.exclude.some(n)};for(let s in n="function"==typeof e?function(){return r.excludeMain?e.apply(this,arguments):i(e,r).apply(this,arguments)}:Object.create(Object.getPrototypeOf(e)),e){let a=e[s];n[s]="function"==typeof a&&o(s)?i(a,r):a}return n}},function(e,r,n){let i=n(173),o=n(174)();function s(e){this.currentProvider=e}function a(e){return function(){var r=[].slice.call(arguments),n=r.pop();this.sendAsync({method:e,params:r},n)}}function u(e,r){return function(){var n=[].slice.call(arguments),i=n.pop();n.length<e&&n.push("latest"),this.sendAsync({method:r,params:n},i)}}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=a("eth_protocolVersion"),s.prototype.syncing=a("eth_syncing"),s.prototype.coinbase=a("eth_coinbase"),s.prototype.mining=a("eth_mining"),s.prototype.hashrate=a("eth_hashrate"),s.prototype.gasPrice=a("eth_gasPrice"),s.prototype.accounts=a("eth_accounts"),s.prototype.blockNumber=a("eth_blockNumber"),s.prototype.getBlockTransactionCountByHash=a("eth_getBlockTransactionCountByHash"),s.prototype.getBlockTransactionCountByNumber=a("eth_getBlockTransactionCountByNumber"),s.prototype.getUncleCountByBlockHash=a("eth_getUncleCountByBlockHash"),s.prototype.getUncleCountByBlockNumber=a("eth_getUncleCountByBlockNumber"),s.prototype.sign=a("eth_sign"),s.prototype.sendTransaction=a("eth_sendTransaction"),s.prototype.sendRawTransaction=a("eth_sendRawTransaction"),s.prototype.estimateGas=a("eth_estimateGas"),s.prototype.getBlockByHash=a("eth_getBlockByHash"),s.prototype.getBlockByNumber=a("eth_getBlockByNumber"),s.prototype.getTransactionByHash=a("eth_getTransactionByHash"),s.prototype.getTransactionByBlockHashAndIndex=a("eth_getTransactionByBlockHashAndIndex"),s.prototype.getTransactionByBlockNumberAndIndex=a("eth_getTransactionByBlockNumberAndIndex"),s.prototype.getTransactionReceipt=a("eth_getTransactionReceipt"),s.prototype.getUncleByBlockHashAndIndex=a("eth_getUncleByBlockHashAndIndex"),s.prototype.getUncleByBlockNumberAndIndex=a("eth_getUncleByBlockNumberAndIndex"),s.prototype.getCompilers=a("eth_getCompilers"),s.prototype.compileLLL=a("eth_compileLLL"),s.prototype.compileSolidity=a("eth_compileSolidity"),s.prototype.compileSerpent=a("eth_compileSerpent"),s.prototype.newFilter=a("eth_newFilter"),s.prototype.newBlockFilter=a("eth_newBlockFilter"),s.prototype.newPendingTransactionFilter=a("eth_newPendingTransactionFilter"),s.prototype.uninstallFilter=a("eth_uninstallFilter"),s.prototype.getFilterChanges=a("eth_getFilterChanges"),s.prototype.getFilterLogs=a("eth_getFilterLogs"),s.prototype.getLogs=a("eth_getLogs"),s.prototype.getWork=a("eth_getWork"),s.prototype.submitWork=a("eth_submitWork"),s.prototype.submitHashrate=a("eth_submitHashrate"),s.prototype.sendAsync=function(e,r){this.currentProvider.sendAsync(i({id:o(),jsonrpc:"2.0",params:[]},e),function(e,n){if(!e&&n.error&&(e=Error("EthQuery - RPC Error - "+n.error.message)),e)return r(e);r(null,n.result)})}},function(e,r,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,i){void 0===i&&(i=n),e[i]=r[n]}),o=this&&this.__exportStar||function(e,r){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(r,n)||i(r,e,n)};
1Object.defineProperty(r,"__esModule",{value:!0}),o(n(180),r),o(n(181),r),o(n(182),r),o(n(121),r),o(n(122),r),o(n(185),r)},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getUniqueId=void 0;let i=Math.floor(4294967295*Math.random());r.getUniqueId=function(){return i=(i+1)%4294967295}},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.JsonRpcEngine=void 0;let o=i(n(64)),s=n(183);class a extends o.default{constructor(){super(),this._middleware=[]}push(e){this._middleware.push(e)}handle(e,r){if(r&&"function"!=typeof r)throw Error('"callback" must be a function if provided.');return Array.isArray(e)?r?this._handleBatch(e,r):this._handleBatch(e):r?this._handle(e,r):this._promiseHandle(e)}asMiddleware(){return async(e,r,n,i)=>{try{let[o,s,u]=await a._runAllMiddleware(e,r,this._middleware);return s?(await a._runReturnHandlers(u),i(o)):n(async e=>{try{await a._runReturnHandlers(u)}catch(r){return e(r)}return e()})}catch(e){return i(e)}}}async _handleBatch(e,r){try{let n=await Promise.all(e.map(this._promiseHandle.bind(this)));return r?r(null,n):n}catch(e){if(r)return r(e);throw e}}_promiseHandle(e){return new Promise(r=>{this._handle(e,(e,n)=>{r(n)})})}async _handle(e,r){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 r(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 r(n,{id:e.id,jsonrpc:"2.0",error:n})}let n=Object.assign({},e),i={id:n.id,jsonrpc:n.jsonrpc},o=null;try{await this._processRequest(n,i)}catch(e){o=e}return o&&(delete i.result,i.error||(i.error=s.serializeError(o))),r(o,i)}async _processRequest(e,r){let[n,i,o]=await a._runAllMiddleware(e,r,this._middleware);if(a._checkForCompletion(e,r,i),await a._runReturnHandlers(o),n)throw n}static async _runAllMiddleware(e,r,n){let i=[],o=null,s=!1;for(let u of n)if([o,s]=await a._runMiddleware(e,r,u,i),s)break;return[o,s,i.reverse()]}static _runMiddleware(e,r,n,i){return new Promise(o=>{let a=e=>{let n=e||r.error;n&&(r.error=s.serializeError(n)),o([n,!0])};try{n(e,r,n=>{r.error?a(r.error):(n&&("function"!=typeof n&&a(new s.EthereumRpcError(s.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request: 2${u(e)}`,{request:e})),i.push(n)),o([null,!1]))},a)}catch(e){a(e)}})}static async _runReturnHandlers(e){for(let r of e)await new Promise((e,n)=>{r(r=>r?n(r):e())})}static _checkForCompletion(e,r,n){if(!("result"in r)&&!("error"in r))throw new s.EthereumRpcError(s.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+u(e),{request:e});if(!n)throw new s.EthereumRpcError(s.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+u(e),{request:e})}}function u(e){return JSON.stringify(e,null,2)}r.JsonRpcEngine=a},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.serializeError=r.isValidCode=r.getMessageFromCode=r.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;let i=n(97),o=n(96),s=i.errorCodes.rpc.internal,a={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(h(i.errorValues,n))return i.errorValues[n].message;if(e>=-32099&&e<=-32e3)return r.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function c(e){if(!Number.isInteger(e))return!1;let r=e.toString();return!!i.errorValues[r]||!!(e>=-32099&&e<=-32e3)}function l(e){return e&&"object"==typeof e&&!Array.isArray(e)?Object.assign({},e):e}function h(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",r.getMessageFromCode=u,r.isValidCode=c,r.serializeError=function(e,{fallbackError:r=a,shouldIncludeStack:n=!1}={}){if(!r||!Number.isInteger(r.code)||"string"!=typeof r.message)throw Error("Mu
2st provide fallback error with integer number code and string message.");if(e instanceof o.EthereumRpcError)return e.serialize();let i={};if(e&&"object"==typeof e&&!Array.isArray(e)&&h(e,"code")&&c(e.code))i.code=e.code,e.message&&"string"==typeof e.message?(i.message=e.message,h(e,"data")&&(i.data=e.data)):(i.message=u(i.code),i.data={originalError:l(e)});else{i.code=r.code;let n=null==e?void 0:e.message;i.message=n&&"string"==typeof n?n:r.message,i.data={originalError:l(e)}}let s=null==e?void 0:e.stack;return n&&e&&s&&"string"==typeof s&&(i.stack=s),i}},function(e,r,n){"use strict";var i;Object.defineProperty(r,"__esModule",{value:!0}),r.Web3Method=void 0,(i=r.Web3Method||(r.Web3Method={})).requestEthereumAccounts="requestEthereumAccounts",i.signEthereumMessage="signEthereumMessage",i.signEthereumTransaction="signEthereumTransaction",i.submitEthereumTransaction="submitEthereumTransaction",i.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",i.scanQRCode="scanQRCode",i.generic="generic",i.childRequestEthereumAccounts="childRequestEthereumAccounts",i.addEthereumChain="addEthereumChain",i.switchEthereumChain="switchEthereumChain",i.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",i.watchAsset="watchAsset",i.selectProvider="selectProvider"},function(e,r,n){"use strict";n.r(r);var i=n(85);n.d(r,"CoinbaseWalletProvider",function(){return i.CoinbaseWalletProvider}),n.d(r,"CoinbaseWalletSDK",function(){return i.CoinbaseWalletSDK})},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.walletLogo=void 0,r.walletLogo=(e,r)=>{let n;switch(e){case"standard":default:return n=r,`data:image/svg+xml,%3Csvg width='${r}' height='${n}' 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 n=r,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${r}' height='${n}' 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 n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' 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.3
2V33.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"textWithLogo":return n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' 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 n=(.1*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' 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.7
2h-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 n=(.25*r).toFixed(2),`data:image/svg+xml,%3Csvg width='${r}' height='${n}' 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.81,0,1,0,0,6.47H57.92A19.39,19.39,0,0,1,38.81,58.21Z'/%3E%3C/svg%3E`}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ScopedLocalStorage=void 0,r.ScopedLocalStorage=class{constructor(e){this.scope=e}setItem(e,r){localStorage.setItem(this.scopedKey(e),r)}getItem(e){return localStorage.getItem(this.scopedKey(e))}removeItem(e){localStorage.removeItem(this.scopedKey(e))}clear(){let e=this.scopedKey(""),r=[];for(let n=0;n<localStorage.length;n++){let i=localStorage.key(n);"string"==typeof i&&i.startsWith(e)&&r.push(i)}r.forEach(e=>localStorage.removeItem(e))}scopedKey(e){return`${this.scope}:${e}`}}},function(e,r,n){"use strict";r.byteLength=function(e){var r=l(e),n=r[0],i=r[1];return 3*(n+i)/4-i},r.toByteArray=function(e){var r,n,i=l(e),a=i[0],u=i[1],c=new s(3*(a+u)/4-u),h=0,d=u>0?a-4:a;for(n=0;n<d;n+=4)r=o[e.charCodeAt(n)]<<18|o[e.charCodeAt(n+1)]<<12|o[e.charCodeAt(n+2)]<<6|o[e.charCodeAt(n+3)],c[h++]=r>>16&255,c[h++]=r>>8&255,c[h++]=255&r;return 2===u&&(r=o[e.charCodeAt(n)]<<2|o[e.charCodeAt(n+1)]>>4,c[h++]=255&r),1===u&&(r=o[e.charCodeAt(n)]<<10|o[e.charCodeAt(n+1)]<<4|o[e.charCodeAt(n+2)]>>2,c[h++]=r>>8&255,c[h++]=255&r),c},r.fromByteArray=function(e){for(var r,n=e.length,o=n%3,s=[],a=0,u=n-o;a<u;a+=16383)s.push(function(e,r,n){for(var o,s=[],a=r;a<n;a+=3)s.push(i[(o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+i[o>>12&63]+i[o>>6&63]+i[63&o]);return s.join("")}(e,a,a+16383>u?u:a+16383));return 1===o?s.push(i[(r=e[n-1])>>2]+i[r<<4&63]+"=="):2===o&&s.push(i[(r=(e[n-2]<<8)+e[n-1])>>10]+i[r>>4&63]+i[r<<2&63]+"="),s.join("")};for(var i=[],o=[],s="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=0,c=a.length;u<c;++u)i[u]=a[u],o[a.charCodeAt(u)]=u;function l(e){var r=e.length;if(r%4>0)throw Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return -1===n&&(n=r),[n,n===r?0:4-n%4]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(e,r){r.read=function(e,r,n,i,o){var s,a,u=8*o-i-1,c=(1<<u)-1,l=c>>1,h=-7,d=n?o-1:0,f=n?-1:1,p=e[r+d];for(d+=f,s=p&(1<<-h)-1,p>>=-h,h+=u;h>0;s=256*s+e[r+d],d+=f,h-=8);for(a=s&(1<<-h)-1,s>>=-h,h+=i;h>0;a=256*a+e[r+d],d+=f,h-=8);if(0===s)s=1-l;else{if(s===c)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,i),s-=l}return(p?-1:1)*a*Math.pow(2,s-i)},r.write=function(e,r,n,i,o,s){var a,u,c,l=8*s-o-1,h=(1<<l)-1,d=h>>1,f=23===o?5960464477539062e-23:0,p=i?0:s-1,y=i?1:-1,b=r<0||0===r&&1/r<0?1:0;for(isNaN(r=Math.abs(r))||r===1/0?(u=isNaN(r)?1:0,a=h):(a=Math.floor(Math.log(r)/Math.LN2),r*(c=Math.pow(2,-a))<1&&(a--,c*=2),(r+=a+d>=1?f/c:f*Math.pow(2,1-d))*c>=2&&(a++,c/=2),a+d>=h?(u=0,a=h):a+d>=1?(u=(r*c-1)*Math.pow(2,o),a+=d):(u=r*Math.pow(2,d-1)*Math.pow(2,o),a=0));o>=8;e[n+p]=255&u,p+=y,u/=256,o-=8);for(a=a<<o|u,l+=o;l>0;e[n+p]=255&a,p+=y,a/=256,l-=8);e[n+p-y]|=128*b}},function(e,r){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},function(e,r){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,r){},function(e,r,n){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.ethErrors=void 0;let i=n(88),o=n(104),s=n(89);function a(e,r){let[n,s]=c(r);return new i.EthereumRpcError(e,n||o.getMessageFromCode(e),s)}function u(e,r){let[n,s]=c(r);return new i.EthereumProviderError(e,n||o.getMessageFromCode(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:r,data:n}=e;if(r&&"string"!=typeof r)throw Error("Must specify string message.");return[r||void 0,n]}}return[]}r.ethErrors={rpc:{parse:e=>a(s.errorCodes.rpc.parse,e),invalidRequest:e=>a(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(s.errorCodes.rpc.methodNotFound,e),internal:e=>a(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:r}=e;if(!Number.isInteger(r)||r>-32005||r<-32099)throw Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(r,e)},invalidInput:e=>a(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(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:r,message:n,data:o}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(r,n,o)}}}},function(e,r,n){(r=e.exports=function(e){var n=r[e=e.toLowerCase()];if(!n)throw Error(e+" is not supported (we accept pull requests)");return new n}).sha=n(135),r.sha1=n(136),r.sha224=n(137),r.sha256=n(105),r.sha384=n(138),r.sha512=n(106)},function(e,r,n){var i=n(24),o=n(45),s=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function c(){this.init(),this._w=u,o.call(this,64,56)}i(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var r,n=this._w,i=0|this._a,o=0|this._b,s=0|this._c,u=0|this._d,c=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=n[l-3]^n[l-8]^n[l-14]^n[l-16];for(var h=0;h<80;++h){var d,f,p,y,b=~~(h/20),g=0|((r=i)<<5|r>>>27)+(d=o,f=s,p=u,0===b?d&f|~d&p:2===b?d&f|d&p|f&p:d^f^p)+c+n[h]+a[b];c=u,u=s,s=(y=o)<<30|y>>>2,o=i,i=g}this._a=i+this._a|0,this._b=o+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,r,n){var i=n(24),o=n(45),s=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],u=Array(80);function c(){this.init(),this._w=u,o.call(this,64,56)}i(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(e){for(var r,n=this._w,i=0|this._a,o=0|this._b,s=0|this._c,u=0|this._d,c=0|this._e,l=0;l<16;++l)n[l]=e.readInt32BE(4*l);for(;l<80;++l)n[l]=(r=n[l-3]^n[l-8]^n[l-14]^n[l-16])<<1|r>>>31;for(var h=0;h<80;++h){var d,f,p,y,b,g=~~(h/20),m=((d=i)<<5|d>>>27)+(f=o,p=s,y=u,0===g?f&p|~f&y:2===g?f&p|f&y|p&y:f^p^y)+c+n[h]+a[g]|0;c=u,u=s,s=(b=o)<<30|b>>>2,o=i,i=m}this._a=i+this._a|0,this._b=o+this._b|0,this._c=s+this._c|0,this._d=u+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var e=s.allocUnsafe(20);return e.writeInt32BE(0|this._a,0),e.writeInt32BE(0|this._b,4),e.writeInt32BE(0|this._c,8),e.writeInt32BE(0|this._d,12),e.writeInt32BE(0|this._e,16),e},e.exports=c},function(e,r,n){var i=n(24),o=n(105),s=n(45),a=n(37).Buffer,u=Array(64);function c(){this.init(),this._w=u,s.call(this,64,56)}i(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(28);return e.writeInt32BE(this._a,0),e.writeInt32BE(this._b,4),e.writeInt32BE(this._c,8),e.writeInt32BE(this._d,12),e.writeInt32BE(this._e,16),e.writeInt32BE(this._f,20),e.writeInt32BE(this._g,24),e},e.exports=c},function(e,r,n){var i=n(24),o=n(106),s=n(45),a=n(37).Buffer,u=Array(160);function c(){this.init(),this._w=u,s.call(this,128,112)}i(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var e=a.allocUnsafe(48);function r(r,n,i){e.writeInt32BE(r,i),e.writeInt32BE(n,i+4)}return r(this._ah,this._al,0),r(this._bh,this._bl,8),r(this._ch,this._cl,16),r(this._dh,this._dl,24),r(this._eh,this._el,32),r(this._fh,this._fl,40),e},e.exports=c},function(e,r,n){"use strict";var i=n(140),o=n(151),s=n(94);e.exports={formats:s,parse:o,stringify:i}},function(e,r,n){"use strict";var i=n(141),o=n(107),s=n(94),a=Object.prototype.hasOwnProperty,u={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,r){return e+"["+r+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,h=function(e,r){l.apply(e,c(r)?r:[r])},d=Date.prototype.toISOString,f=s.default,p={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:o.encode,encodeValuesOnly:!1,format:f,formatter:s.formatters[f],indices:!1,serializeDate:function(e){return d.call(e)},skipNulls:!1,strictNullHandling:!1},y={},b=function e(r,n,s,a,u,l,d,f,b,g,m,v,_,w,S,E){for(var M,x=r,k=E,C=0,A=!1;void 0!==(k=k.get(y))&&!A;){var I=k.get(r);if(C+=1,void 0!==I){if(I===C)throw RangeError("Cyclic object value");A=!0}void 0===k.get(y)&&(C=0)}if("function"==typeof f?x=f(n,x):x instanceof Date?x=m(x):"comma"===s&&c(x)&&(x=o.maybeMap(x,function(e){return e instanceof Date?m(e):e}
2)),null===x){if(u)return d&&!w?d(n,p.encoder,S,"key",v):n;x=""}if("string"==typeof(M=x)||"number"==typeof M||"boolean"==typeof M||"symbol"==typeof M||"bigint"==typeof M||o.isBuffer(x))return d?[_(w?n:d(n,p.encoder,S,"key",v))+"="+_(d(x,p.encoder,S,"value",v))]:[_(n)+"="+_(String(x))];var O,j=[];if(void 0===x)return j;if("comma"===s&&c(x))w&&d&&(x=o.maybeMap(x,d)),O=[{value:x.length>0?x.join(",")||null:void 0}];else if(c(f))O=f;else{var R=Object.keys(x);O=b?R.sort(b):R}for(var N=a&&c(x)&&1===x.length?n+"[]":n,T=0;T<O.length;++T){var P=O[T],L="object"==typeof P&&void 0!==P.value?P.value:x[P];if(!l||null!==L){var D=c(x)?"function"==typeof s?s(N,P):N:N+(g?"."+P:"["+P+"]");E.set(r,C);var B=i();B.set(y,E),h(j,e(L,D,s,a,u,l,"comma"===s&&w&&c(x)?null:d,f,b,g,m,v,_,w,S,B))}}return j};e.exports=function(e,r){var n,o=e,l=function(e){if(!e)return p;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw TypeError("Encoder has to be a function.");var r=e.charset||p.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(!a.call(s.formatters,e.format))throw TypeError("Unknown format option provided.");n=e.format}var i=s.formatters[n],o=p.filter;return("function"==typeof e.filter||c(e.filter))&&(o=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:p.addQueryPrefix,allowDots:void 0===e.allowDots?p.allowDots:!!e.allowDots,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:p.charsetSentinel,delimiter:void 0===e.delimiter?p.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:p.encode,encoder:"function"==typeof e.encoder?e.encoder:p.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:p.encodeValuesOnly,filter:o,format:n,formatter:i,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:p.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:p.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:p.strictNullHandling}}(r);"function"==typeof l.filter?o=(0,l.filter)("",o):c(l.filter)&&(n=l.filter);var d,f=[];if("object"!=typeof o||null===o)return"";d=r&&r.arrayFormat in u?r.arrayFormat:r&&"indices"in r?r.indices?"indices":"repeat":"indices";var y=u[d];if(r&&"commaRoundTrip"in r&&"boolean"!=typeof r.commaRoundTrip)throw TypeError("`commaRoundTrip` must be a boolean, or absent");var g="comma"===y&&r&&r.commaRoundTrip;n||(n=Object.keys(o)),l.sort&&n.sort(l.sort);for(var m=i(),v=0;v<n.length;++v){var _=n[v];l.skipNulls&&null===o[_]||h(f,b(o[_],_,y,g,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,m))}var w=f.join(l.delimiter),S=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?S+="utf8=%26%2310003%3B&":S+="utf8=%E2%9C%93&"),w.length>0?S+w:""}},function(e,r,n){"use strict";var i=n(92),o=n(147),s=n(149),a=i("%TypeError%"),u=i("%WeakMap%",!0),c=i("%Map%",!0),l=o("WeakMap.prototype.get",!0),h=o("WeakMap.prototype.set",!0),d=o("WeakMap.prototype.has",!0),f=o("Map.prototype.get",!0),p=o("Map.prototype.set",!0),y=o("Map.prototype.has",!0),b=function(e,r){for(var n,i=e;null!==(n=i.next);i=n)if(n.key===r)return i.next=n.next,n.next=e.next,e.next=n,n};e.exports=function(){var e,r,n,i={assert:function(e){if(!i.has(e))throw new a("Side channel does not contain "+s(e))},get:function(i){if(u&&i&&("object"==typeof i||"function"==typeof i)){if(e)return l(e,i)}else if(c){if(r)return f(r,i)}else if(n){var o;return(o=b(n,i))&&o.value}},has:function(i){if(u&&i&&("object"==typeof i||"function"==typeof i)){if(e)return d(e,i)}else if(c){if(r)return y(r,i)}else if(n)return!!b(n,i);return!1},set:function(i,o){var s,a;u&&i&&("object"==typeof i||"function"==typeof i)?(e||(e=new u),h(e,i,o)):c?(r||(r=new c),p(r,i,o)):(n||(n={key:{},next:null}),(a=b(s=n,i))?a.value=o:s.next={key:i,next:s.next,value:o})}};return i}},function(e,r,n){"use strict";var i="undefined"!=typeof Symbol&&Symbol,o=n(143);e.exports=function(){return"function"==typeof i&&"function"==typeof Symbol&&"symbol"==typeof i("foo")&&"symbol"==typeof Symbol("bar")&&o()}},function(e,r,n){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},r=Symbol("test"),n=Object(r);if("string"==typeof r||"[object Symbol]"!==Object.prototype.toString.call(r)||"[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(r in e[r]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length||"function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var i=Object.getOwnPropertySymbols(e);if(1!==i.length||i[0]!==r||!Object.prototype.propertyIsEnumerable.call(e,r))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,r);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},function(e,r,n){"use strict";var i={foo:{}},o=Object;e.exports=function(){return({__proto__:i}).foo===i.foo&&!(({__proto__:null})instanceof o)}},function(e,r,n){"use strict";var i=Array.prototype.slice,o=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==o.call(r))throw TypeError("Function.prototype.bind called on incompatible "+r);
vendor: 4,151 bytes, line 2
2for(var n,s=i.call(arguments,1),a=Math.max(0,r.length-s.length),u=[],c=0;c<a;c++)u.push("$"+c);if(n=Function("binder","return function ("+u.join(",")+"){ return binder.apply(this,arguments); }")(function(){if(this instanceof n){var o=r.apply(this,s.concat(i.call(arguments)));return Object(o)===o?o:this}return r.apply(e,s.concat(i.call(arguments)))}),r.prototype){var l=function(){};l.prototype=r.prototype,n.prototype=new l,l.prototype=null}return n}},function(e,r,n){"use strict";var i=n(93);e.exports=i.call(Function.call,Object.prototype.hasOwnProperty)},function(e,r,n){"use strict";var i=n(92),o=n(148),s=o(i("String.prototype.indexOf"));e.exports=function(e,r){var n=i(e,!!r);return"function"==typeof n&&s(e,".prototype.")>-1?o(n):n}},function(e,r,n){"use strict";var i=n(93),o=n(92),s=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),u=o("%Reflect.apply%",!0)||i.call(a,s),c=o("%Object.getOwnPropertyDescriptor%",!0),l=o("%Object.defineProperty%",!0),h=o("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var r=u(i,a,arguments);return c&&l&&c(r,"length").configurable&&l(r,"length",{value:1+h(0,e.length-(arguments.length-1))}),r};var d=function(){return u(i,s,arguments)};l?l(e.exports,"apply",{value:d}):e.exports.apply=d},function(e,r,n){var i="function"==typeof Map&&Map.prototype,o=Object.getOwnPropertyDescriptor&&i?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,s=i&&o&&"function"==typeof o.get?o.get:null,a=i&&Map.prototype.forEach,u="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&u?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=u&&c&&"function"==typeof c.get?c.get:null,h=u&&Set.prototype.forEach,d="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,f="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,p="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,y=Boolean.prototype.valueOf,b=Object.prototype.toString,g=Function.prototype.toString,m=String.prototype.match,v=String.prototype.slice,_=String.prototype.replace,w=String.prototype.toUpperCase,S=String.prototype.toLowerCase,E=RegExp.prototype.test,M=Array.prototype.concat,x=Array.prototype.join,k=Array.prototype.slice,C=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,I=Object.getOwnPropertySymbols,O="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,j="function"==typeof Symbol&&"object"==typeof Symbol.iterator,R="function"==typeof Symbol&&Symbol.toStringTag?Symbol.toStringTag:null,N=Object.prototype.propertyIsEnumerable,T=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function P(e,r){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||E.call(/e/,r))return r;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var i=e<0?-C(-e):C(e);if(i!==e){var o=String(i),s=v.call(r,o.length+1);return _.call(o,n,"$&_")+"."+_.call(_.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return _.call(r,n,"$&_")}var L=n(150),D=L.custom,B=H(D)?D:null;function F(e,r,n){var i="double"===(n.quoteStyle||r)?'"':"'";return i+e+i}function U(e){return!("[object Array]"!==q(e)||R&&"object"==typeof e&&R in e)}function W(e){return!("[object RegExp]"!==q(e)||R&&"object"==typeof e&&R in e)}function H(e){if(j)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!O)return!1;try{return O.call(e),!0}catch(e){}return!1}e.exports=function e(r,n,i,o){var u=n||{};if(V(u,"quoteStyle")&&"single"!==u.quoteStyle&&"double"!==u.quoteStyle)throw TypeError('option "quoteStyle" must be "single" or "double"');if(V(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=!V(u,"customInspect")||u.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");
2if(V(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(V(u,"numericSeparator")&&"boolean"!=typeof u.numericSeparator)throw TypeError('option "numericSeparator", if provided, must be `true` or `false`');var b=u.numericSeparator;if(void 0===r)return"undefined";if(null===r)return"null";if("boolean"==typeof r)return r?"true":"false";if("string"==typeof r)return function e(r,n){if(r.length>n.maxStringLength){var i=r.length-n.maxStringLength;return e(v.call(r,0,n.maxStringLength),n)+"... "+i+" more character"+(i>1?"s":"")}return F(_.call(_.call(r,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(r,u);if("number"==typeof r){if(0===r)return 1/0/r>0?"0":"-0";var w=String(r);return b?P(r,w):w}if("bigint"==typeof r){var E=String(r)+"n";return b?P(r,E):E}var C=void 0===u.depth?5:u.depth;if(void 0===i&&(i=0),i>=C&&C>0&&"object"==typeof r)return U(r)?"[Array]":"[Object]";var I=function(e,r){var n;if(" "===e.indent)n=" ";else{if(!("number"==typeof e.indent&&e.indent>0))return null;n=x.call(Array(e.indent+1)," ")}return{base:n,prev:x.call(Array(r+1),n)}}(u,i);if(void 0===o)o=[];else if(Z(o,r)>=0)return"[Circular]";function D(r,n,s){if(n&&(o=k.call(o)).push(n),s){var a={depth:u.depth};return V(u,"quoteStyle")&&(a.quoteStyle=u.quoteStyle),e(r,a,i+1,o)}return e(r,u,i+1,o)}if("function"==typeof r&&!W(r)){var z=function(e){if(e.name)return e.name;var r=m.call(g.call(e),/^function\s*([\w$]+)/);return r?r[1]:null}(r),X=K(r,D);return"[Function"+(z?": "+z:" (anonymous)")+"]"+(X.length>0?" { "+x.call(X,", ")+" }":"")}if(H(r)){var tt=j?_.call(String(r),/^(Symbol\(.*\))_[^)]*$/,"$1"):O.call(r);return"object"!=typeof r||j?tt:Y(tt)}if(r&&"object"==typeof r&&("undefined"!=typeof HTMLElement&&r instanceof HTMLElement||"string"==typeof r.nodeName&&"function"==typeof r.getAttribute)){for(var te,tr="<"+S.call(String(r.nodeName)),tn=r.attributes||[],ti=0;ti<tn.length;ti++)tr+=" "+tn[ti].name+"="+F((te=tn[ti].value,_.call(String(te),/"/g,""")),"double",u);return tr+=">",r.childNodes&&r.childNodes.length&&(tr+="..."),tr+="</"+S.call(String(r.nodeName))+">"}if(U(r)){if(0===r.length)return"[]";var to=K(r,D);return I&&!function(e){for(var r=0;r<e.length;r++)if(Z(e[r],"\n")>=0)return!1;return!0}(to)?"["+Q(to,I)+"]":"[ "+x.call(to,", ")+" ]"}if(!("[object Error]"!==q(r)||R&&"object"==typeof r&&R in r)){var ts=K(r,D);return"cause"in Error.prototype||!("cause"in r)||N.call(r,"cause")?0===ts.length?"["+String(r)+"]":"{ ["+String(r)+"] "+x.call(ts,", ")+" }":"{ ["+String(r)+"] "+x.call(M.call("[cause]: "+D(r.cause),ts),", ")+" }"}if("object"==typeof r&&c){if(B&&"function"==typeof r[B]&&L)return L(r,{depth:C-i});if("symbol"!==c&&"function"==typeof r.inspect)return r.inspect()}if(function(e){if(!s||!e||"object"!=typeof e)return!1;try{s.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(r)){var ta=[];return a&&a.call(r,function(e,n){ta.push(D(n,r,!0)+" => "+D(e,r))}),$("Map",s.call(r),ta,I)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{s.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(r)){var tu=[];return h&&h.call(r,function(e){tu.push(D(e,r))}),$("Set",l.call(r),tu,I)}if(function(e){if(!d||!e||"object"!=typeof e)return!1;try{d.call(e,d);try{f.call(e,f)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(r))return J("WeakMap");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{f.call(e,f);try{d.call(e,d)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(r))return J("WeakSet");if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{return p.call(e),!0}catch(e){}return!1}(r))return J("WeakRef");if(!("[object Number]"!==q(r)||R&&"object"==typeof r&&R in r))return Y(D(Number(r)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(r))return Y(D(A.call(r)));if(!("[object Boolean]"!==q(r)||R&&"object"==typeof r&&R in r))return Y(y.call(r));if(!("[object String]"!==q(r)||R&&"object"==typeof r&&R in r))return Y(D(String(r)));if(("[object Date]"!==q(r)||R&&"object"==typeof r&&R in r)&&!W(r)){var tc=K(r,D),tl=T?T(r)===Object.prototype:r instanceof Object||r.constructor===Object,th=r instanceof Object?"":"null prototype",td=!tl&&R&&Object(r)===r&&R in r?v.call(q(r),8,-1):th?"Object":"",tf=(tl||"function"!=typeof r.constructor?"":r.constructor.name?r.constructor.name+" ":"")+(td||th?"["+x.call(M.call([],td||[],th||[]),": ")+"] ":"");return 0===tc.length?tf+"{}":I?tf+"{"+Q(tc,I)+"}
2":tf+"{ "+x.call(tc,", ")+" }"}return String(r)};var z=Object.prototype.hasOwnProperty||function(e){return e in this};function V(e,r){return z.call(e,r)}function q(e){return b.call(e)}function Z(e,r){if(e.indexOf)return e.indexOf(r);for(var n=0,i=e.length;n<i;n++)if(e[n]===r)return n;return -1}function G(e){var r=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[r];return n?"\\"+n:"\\x"+(r<16?"0":"")+w.call(r.toString(16))}function Y(e){return"Object("+e+")"}function J(e){return e+" { ? }"}function $(e,r,n,i){return e+" ("+r+") {"+(i?Q(n,i):x.call(n,", "))+"}"}function Q(e,r){if(0===e.length)return"";var n="\n"+r.prev+r.base;return n+x.call(e,","+n)+"\n"+r.prev}function K(e,r){var n=U(e),i=[];if(n){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=V(e,o)?r(e[o],e):""}var s,a="function"==typeof I?I(e):[];if(j){s={};for(var u=0;u<a.length;u++)s["$"+a[u]]=a[u]}for(var c in e)V(e,c)&&(n&&String(Number(c))===c&&c<e.length||j&&s["$"+c]instanceof Symbol||(E.call(/[^\w$]/,c)?i.push(r(c,e)+": "+r(e[c],e)):i.push(c+": "+r(e[c],e))));if("function"==typeof I)for(var l=0;l<a.length;l++)N.call(e,a[l])&&i.push("["+r(a[l])+"]: "+r(e[a[l]],e));return i}},function(e,r){},function(e,r,n){"use strict";var i=n(107),o=Object.prototype.hasOwnProperty,s=Array.isArray,a={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:i.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},u=function(e,r){return e&&"string"==typeof e&&r.comma&&e.indexOf(",")>-1?e.split(","):e},c=function(e,r,n,i){if(e){var s=n.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,a=/(\[[^[\]]*])/g,c=n.depth>0&&/(\[[^[\]]*])/.exec(s),l=c?s.slice(0,c.index):s,h=[];if(l){if(!n.plainObjects&&o.call(Object.prototype,l)&&!n.allowPrototypes)return;h.push(l)}for(var d=0;n.depth>0&&null!==(c=a.exec(s))&&d<n.depth;){if(d+=1,!n.plainObjects&&o.call(Object.prototype,c[1].slice(1,-1))&&!n.allowPrototypes)return;h.push(c[1])}return c&&h.push("["+s.slice(c.index)+"]"),function(e,r,n,i){for(var o=i?r:u(r,n),s=e.length-1;s>=0;--s){var a,c=e[s];if("[]"===c&&n.parseArrays)a=[].concat(o);else{a=n.plainObjects?Object.create(null):{};var l="["===c.charAt(0)&&"]"===c.charAt(c.length-1)?c.slice(1,-1):c,h=parseInt(l,10);n.parseArrays||""!==l?!isNaN(h)&&c!==l&&String(h)===l&&h>=0&&n.parseArrays&&h<=n.arrayLimit?(a=[])[h]=o:"__proto__"!==l&&(a[l]=o):a={0:o}}o=a}return o}(h,r,n,i)}};e.exports=function(e,r){var n=function(e){if(!e)return a;
2if(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 r=void 0===e.charset?a.charset:e.charset;return{allowDots:void 0===e.allowDots?a.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:a.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:a.arrayLimit,charset:r,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:a.comma,decoder:"function"==typeof e.decoder?e.decoder:a.decoder,delimiter:"string"==typeof e.delimiter||i.isRegExp(e.delimiter)?e.delimiter:a.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:a.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:a.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:a.strictNullHandling}}(r);if(""===e||null==e)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof e?function(e,r){var n,c={__proto__:null},l=r.ignoreQueryPrefix?e.replace(/^\?/,""):e,h=r.parameterLimit===1/0?void 0:r.parameterLimit,d=l.split(r.delimiter,h),f=-1,p=r.charset;if(r.charsetSentinel)for(n=0;n<d.length;++n)0===d[n].indexOf("utf8=")&&("utf8=%E2%9C%93"===d[n]?p="utf-8":"utf8=%26%2310003%3B"===d[n]&&(p="iso-8859-1"),f=n,n=d.length);for(n=0;n<d.length;++n)if(n!==f){var y,b,g=d[n],m=g.indexOf("]="),v=-1===m?g.indexOf("="):m+1;-1===v?(y=r.decoder(g,a.decoder,p,"key"),b=r.strictNullHandling?null:""):(y=r.decoder(g.slice(0,v),a.decoder,p,"key"),b=i.maybeMap(u(g.slice(v+1),r),function(e){return r.decoder(e,a.decoder,p,"value")})),b&&r.interpretNumericEntities&&"iso-8859-1"===p&&(b=b.replace(/&#(\d+);/g,function(e,r){return String.fromCharCode(parseInt(r,10))})),g.indexOf("[]=")>-1&&(b=s(b)?[b]:b),o.call(c,y)?c[y]=i.combine(c[y],b):c[y]=b}return c}(e,n):e,h=n.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f<d.length;++f){var p=d[f],y=c(p,l[p],n,"string"==typeof e);h=i.merge(h,y,n)}return!0===n.allowSparse?h:i.compact(h)}},function(e,r,n){(function(r){let i=n(109),o=n(167),s={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"]},a={encodeData(e,n,s,a=!0){let u=["bytes32"],c=[this.hashType(e,s)];if(a){let l=(e,n,u)=>{if(void 0!==s[n])return["bytes32",null==u?"0x0000000000000000000000000000000000000000000000000000000000000000":i.keccak(this.encodeData(n,u,s,a))];if(void 0===u)throw Error(`missing value for field ${e} of type ${n}`);if("bytes"===n)return["bytes32",i.keccak(u)];if("string"===n)return"string"==typeof u&&(u=r.from(u,"utf8")),["bytes32",i.keccak(u)];if(n.lastIndexOf("]")===n.length-1){let r=n.slice(0,n.lastIndexOf("[")),s=u.map(n=>l(e,r,n));return["bytes32",i.keccak(o.rawEncode(s.map(([e])=>e),s.map(([,e])=>e)))]}return[n,u]};for(let r of s[e]){let[e,i]=l(r.name,r.type,n[r.name]);u.push(e),c.push(i)}}else for(let o of s[e]){let e=n[o.name];if(void 0!==e){if("bytes"===o.type)u.push("bytes32"),e=i.keccak(e),c.push(e);else if("string"===o.type)u.push("bytes32"),"string"==typeof e&&(e=r.from(e,"utf8")),e=i.keccak(e),c.push(e);else if(void 0!==s[o.type])u.push("bytes32"),e=i.keccak(this.encodeData(o.type,e,s,a)),c.push(e);else{if(o.type.lastIndexOf("]")===o.type.length-1)throw Error("Arrays currently unimplemented in encodeData");u.push(o.type),c.push(e)}}}return o.rawEncode(u,c)},encodeType(e,r){let n="",i=this.findTypeDependencies(e,r).filter(r=>r!==e);for(let o of i=[e].concat(i.sort())){if(!r[o])throw Error("No type definition specified: "+o);n+=o+"("+r[o].map(({name:e,type:r})=>r+" "+e).join(",")+")"}return n},findTypeDependencies(e,r,n=[]){if(e=e.match(/^\w*/)[0],n.includes(e)||void 0===r[e])return n;for(let i of(n.push(e),r[e]))for(let e of this.findTypeDependencies(i.type,r,n))n.includes(e)||n.push(e);return n},hashStruct(e,r,n,o=!0){return i.keccak(this.encodeData(e,r,n,o))},hashType(e,r){return i.keccak(this.encodeType(e,r))},sanitizeData(e){let r={};for(let n in s.properties)e[n]&&(r[n]=e[n]);return r.types&&(r.types=Object.assign({EIP712Domain:[]},r.types)),r},hash(e,n=!0){let o=this.sanitizeData(e),s=[r.from("1901","hex")];return s.push(this.hashStruct("EIP712Domain",o.domain,o.types,n)),"EIP712Domain"!==o.primaryType&&s.push(this.hashStruct(o.primaryType,o.message,o.types,n)),i.keccak(r.concat(s))}};e.exports={TYPED_MESSAGE_SCHEMA:s,TypedDataUtils:a,hashForSignTypedDataLegacy:function(e){return function(e){let r=Error("Expect argument to be non-empty array");if("object"!=typeof e||!e.length)throw r;let n=e.map(function(e){return"bytes"===e.type?i.toBuffer(e.value):e.value}),s=e.map(function(e){return e.type}),a=e.map(function(e){if(!e.name)throw r;return e.type+" "+e.name});return o.soliditySHA3(["bytes32","bytes32"],[o.soliditySHA3(Array(e.length).fill("string"),a),o.soliditySHA3(s,n)])}(e.data)},hashForSignTypedData_v3:function(e){return a.hash(e.data,!1)},hashForSignTypedData_v4:function(e){return a.hash(e.data)}}}).call(this,n(19).Buffer)},function(e,r,n){e.exports=n(154)(n(165))},function(e,r,n){let i=n(155),o=n(164);e.exports=function(e){let r=i(e),n=o(e);return function(e,i){switch("string"==typeof e?e.toLowerCase():e){case"keccak224":return new r(1152,448,null,224,i);case"keccak256":return new r(1088,512,null,256,i);case"keccak384":return new r(832,768,null,384,i);case"keccak512":return new r(576,1024,null,512,i);case"sha3-224":return new r(1152,448,6,224,i);case"sha3-256":return new r(1088,512,6,256,i);case"sha3-384":return new r(832,768,6,384,i);case"sha3-512":return new r(576,1024,6,512,i);case"shake128":return new n(1344,256,31,i);case"shake256":return new n(1088,512,31,i);default:throw Error("Invald algorithm: "+e)}}}},function(e,r,n){(function(r){let{Transform:i}=n(110);e.exports=e=>class n extends i{constructor(r,n,i,o,s){super(s),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._hashBitLength=o,this._options=s,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(e,r,n){let i=null;try{this.update(e,r)}catch(e){i=e}n(i)}_flush(e){let r=null;try{this.push(this.digest())}catch(e){r=e}e(r)}update(e,n){if(!r.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Digest already called");return r.isBuffer(e)||(e=r.from(e,n)),this._state.absorb(e),this}
2digest(e){if(this._finalized)throw Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let r=this._state.squeeze(this._hashBitLength/8);return void 0!==e&&(r=r.toString(e)),this._resetState(),r}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,r){},function(e,r,n){"use strict";function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,i)}return n}function o(e){for(var r=1;r<arguments.length;r++){var n=null!=arguments[r]?arguments[r]:{};r%2?i(Object(n),!0).forEach(function(r){var i,o;i=r,o=n[r],(i=a(i))in e?Object.defineProperty(e,i,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[i]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function s(e,r){for(var n=0;n<r.length;n++){var i=r[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,a(i.key),i)}}function a(e){var r=function(e,r){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(e,"string");return"symbol"==typeof r?r:String(r)}var u=n(19).Buffer,c=n(158).inspect,l=c&&c.custom||"inspect";e.exports=function(){var e,r;function n(){!function(e,r){if(!(e instanceof r))throw TypeError("Cannot call a class as a function")}(this,n),this.head=null,this.tail=null,this.length=0}return e=[{key:"push",value:function(e){var r={data:e,next:null};this.length>0?this.tail.next=r:this.head=r,this.tail=r,++this.length}},{key:"unshift",value:function(e){var r={data:e,next:this.head};0===this.length&&(this.tail=r),this.head=r,++this.length}},{key:"shift",value:function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(e){if(0===this.length)return"";for(var r=this.head,n=""+r.data;r=r.next;)n+=e+r.data;return n}},{key:"concat",value:function(e){if(0===this.length)return u.alloc(0);for(var r,n,i=u.allocUnsafe(e>>>0),o=this.head,s=0;o;)r=o.data,n=s,u.prototype.copy.call(r,i,n),s+=o.data.length,o=o.next;return i}},{key:"consume",value:function(e,r){var n;return e<this.head.data.length?(n=this.head.data.slice(0,e),this.head.data=this.head.data.slice(e)):n=e===this.head.data.length?this.shift():r?this._getString(e):this._getBuffer(e),n}},{key:"first",value:function(){return this.head.data}},{key:"_getString",value:function(e){var r=this.head,n=1,i=r.data;for(e-=i.length;r=r.next;){var o=r.data,s=e>o.length?o.length:e;if(s===o.length?i+=o:i+=o.slice(0,e),0==(e-=s)){s===o.length?(++n,r.next?this.head=r.next:this.head=this.tail=null):(this.head=r,r.data=o.slice(s));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(e){var r=u.allocUnsafe(e),n=this.head,i=1;for(n.data.copy(r),e-=n.data.length;n=n.next;){var o=n.data,s=e>o.length?o.length:e;if(o.copy(r,r.length-e,0,s),0==(e-=s)){s===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(s));break}++i}return this.length-=i,r}},{key:l,value:function(e,r){return c(this,o(o({},r),{},{depth:0,customInspect:!1}))}}],s(n.prototype,e),r&&s(n,r),Object.defineProperty(n,"prototype",{writable:!1}),n}()},function(e,r){},function(e,r,n){(function(r){function n(e){try{if(!r.localStorage)return!1}catch(e){return!1}var n=r.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}
2e.exports=function(e,r){if(n("noDeprecation"))return e;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw Error(r);n("traceDeprecation")?console.trace(r):console.warn(r),i=!0}return e.apply(this,arguments)}}}).call(this,n(63))},function(e,r,n){"use strict";(function(r){function i(e,r,n){var i;return(r="symbol"==typeof(i=function(e,r){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,r||"default");if("object"!=typeof i)return i;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(e)}(r,"string"))?i:String(i))in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}var o,s=n(95),a=Symbol("lastResolve"),u=Symbol("lastReject"),c=Symbol("error"),l=Symbol("ended"),h=Symbol("lastPromise"),d=Symbol("handlePromise"),f=Symbol("stream");function p(e,r){return{value:e,done:r}}function y(e){var r=e[a];if(null!==r){var n=e[f].read();null!==n&&(e[h]=null,e[a]=null,e[u]=null,r(p(n,!1)))}}function b(e){r.nextTick(y,e)}var g=Object.getPrototypeOf(function(){}),m=Object.setPrototypeOf((i(o={get stream(){return this[f]},next:function(){var e,n=this,i=this[c];if(null!==i)return Promise.reject(i);if(this[l])return Promise.resolve(p(void 0,!0));if(this[f].destroyed)return new Promise(function(e,i){r.nextTick(function(){n[c]?i(n[c]):e(p(void 0,!0))})});var o,s=this[h];
2if(s)o=new Promise((e=this,function(r,n){s.then(function(){e[l]?r(p(void 0,!0)):e[d](r,n)},n)}));else{var a=this[f].read();if(null!==a)return Promise.resolve(p(a,!1));o=new Promise(this[d])}return this[h]=o,o}},Symbol.asyncIterator,function(){return this}),i(o,"return",function(){var e=this;return new Promise(function(r,n){e[f].destroy(null,function(e){e?n(e):r(p(void 0,!0))})})}),o),g);e.exports=function(e){var r,n=Object.create(m,(i(r={},f,{value:e,writable:!0}),i(r,a,{value:null,writable:!0}),i(r,u,{value:null,writable:!0}),i(r,c,{value:null,writable:!0}),i(r,l,{value:e._readableState.endEmitted,writable:!0}),i(r,d,{value:function(e,r){var i=n[f].read();i?(n[h]=null,n[a]=null,n[u]=null,e(p(i,!1))):(n[a]=e,n[u]=r)},writable:!0}),r));return n[h]=null,s(e,function(e){if(e&&"ERR_STREAM_PREMATURE_CLOSE"!==e.code){var r=n[u];return null!==r&&(n[h]=null,n[a]=null,n[u]=null,r(e)),void(n[c]=e)}var i=n[a];null!==i&&(n[h]=null,n[a]=null,n[u]=null,i(p(void 0,!0))),n[l]=!0}),e.on("readable",b.bind(null,n)),n}}).call(this,n(40))},function(e,r){e.exports=function(){throw Error("Readable.from is not available in the browser")}},function(e,r,n){"use strict";e.exports=o;var i=n(117);function o(e){if(!(this instanceof o))return new o(e);i.call(this,e)}n(24)(o,i),o.prototype._transform=function(e,r,n){n(null,e)}},function(e,r,n){"use strict";var i,o=n(46).codes,s=o.ERR_MISSING_ARGS,a=o.ERR_STREAM_DESTROYED;function u(e){if(e)throw e}function c(e){e()}function l(e,r){return e.pipe(r)}e.exports=function(){for(var e=arguments.length,r=Array(e),o=0;o<e;o++)r[o]=arguments[o];var h,d,f=(h=r).length?"function"!=typeof h[h.length-1]?u:h.pop():u;if(Array.isArray(r[0])&&(r=r[0]),r.length<2)throw new s("streams");var p=r.map(function(e,o){var s,u,l,h,y,b,g=o<r.length-1;return s=o>0,l=u=function(e){d||(d=e),e&&p.forEach(c),g||(p.forEach(c),f(d))},h=!1,u=function(){h||(h=!0,l.apply(void 0,arguments))},y=!1,e.on("close",function(){y=!0}),void 0===i&&(i=n(95)),i(e,{readable:g,writable:s},function(e){if(e)return u(e);y=!0,u()}),b=!1,function(r){if(!y&&!b)return b=!0,e.setHeader&&"function"==typeof e.abort?e.abort():"function"==typeof e.destroy?e.destroy():void u(r||new a("pipe"))}});return r.reduce(l)}},function(e,r,n){(function(r){let{Transform:i}=n(110);e.exports=e=>class n extends i{constructor(r,n,i,o){super(o),this._rate=r,this._capacity=n,this._delimitedSuffix=i,this._options=o,this._state=new e,this._state.initialize(r,n),this._finalized=!1}_transform(e,r,n){let i=null;try{this.update(e,r)}catch(e){i=e}n(i)}_flush(){}_read(e){this.push(this.squeeze(e))}update(e,n){if(!r.isBuffer(e)&&"string"!=typeof e)throw TypeError("Data must be a string or a buffer");if(this._finalized)throw Error("Squeeze already called");return r.isBuffer(e)||(e=r.from(e,n)),this._state.absorb(e),this}squeeze(e,r){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(e);return void 0!==r&&(n=n.toString(r)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){let e=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(e._state),e._finalized=this._finalized,e}}}).call(this,n(19).Buffer)},function(e,r,n){(function(r){let i=n(166);function o(){this.state=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],this.blockSize=null,this.count=0,this.squeezing=!1}o.prototype.initialize=function(e,r){for(let e=0;e<50;++e)this.state[e]=0;this.blockSize=e/8,this.count=0,this.squeezing=!1},o.prototype.absorb=function(e){for(let r=0;r<e.length;++r)this.state[~~(this.count/4)]^=e[r]<<this.count%4*8,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0)},o.prototype.absorbLastFewBits=function(e){this.state[~~(this.count/4)]^=e<<this.count%4*8,0!=(128&e)&&this.count===this.blockSize-1&&i.p1600(this.state),this.state[~~((this.blockSize-1)/4)]^=128<<(this.blockSize-1)%4*8,i.p1600(this.state),this.count=0,this.squeezing=!0},o.prototype.squeeze=function(e){this.squeezing||this.absorbLastFewBits(1);let n=r.alloc(e);for(let r=0;r<e;++r)n[r]=this.state[~~(this.count/4)]>>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(i.p1600(this.state),this.count=0);return n},o.prototype.copy=function(e){for(let r=0;r<50;++r)e.state[r]=this.state[r];e.blockSize=this.blockSize,e.count=this.count,e.squeezing=this.squeezing},e.exports=o}).call(this,n(19).Buffer)},function(e,r){let n=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648];r.p1600=function(e){for(let r=0;r<24;++r){let i=e[0]^e[10]^e[20]^e[30]^e[40],o=e[1]^e[11]^e[21]^e[31]^e[41],s=e[2]^e[12]^e[22]^e[32]^e[42],a=e[3]^e[13]^e[23]^e[33]^e[43],u=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],l=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],d=e[8]^e[18]^e[28]^e[38]^e[48],f=e[9]^e[19]^e[29]^e[39]^e[49],p=d^(s<<1|a>>>31),y=f^(a<<1|s>>>31),b=e[0]^p,g=e[1]^y,m=e[10]^p,v=e[11]^y,_=e[20]^p,w=e[21]^y,S=e[30]^p,E=e[31]^y,M=e[40]^p,x=e[41]^y;p=i^(u<<1|c>>>31),y=o^(c<<1|u>>>31);let k=e[2]^p,C=e[3]^y,A=e[12]^p,I=e[13]^y,O=e[22]^p,j=e[23]^y,R=e[32]^p,N=e[33]^y,T=e[42]^p,P=e[43]^y;p=s^(l<<1|h>>>31),y=a^(h<<1|l>>>31);let L=e[4]^p,D=e[5]^y,B=e[14]^p,F=e[15]^y,U=e[24]^p,W=e[25]^y,H=e[34]^p,z=e[35]^y,V=e[44]^p,q=e[45]^y;p=u^(d<<1|f>>>
231),y=c^(f<<1|d>>>31);let Z=e[6]^p,G=e[7]^y,Y=e[16]^p,J=e[17]^y,$=e[26]^p,Q=e[27]^y,K=e[36]^p,X=e[37]^y,tt=e[46]^p,te=e[47]^y;p=l^(i<<1|o>>>31),y=h^(o<<1|i>>>31);let tr=e[8]^p,tn=e[9]^y,ti=e[18]^p,to=e[19]^y,ts=e[28]^p,ta=e[29]^y,tu=e[38]^p,tc=e[39]^y,tl=e[48]^p,th=e[49]^y,td=v<<4|m>>>28,tf=m<<4|v>>>28,tp=_<<3|w>>>29,ty=w<<3|_>>>29,tb=E<<9|S>>>23,tg=S<<9|E>>>23,tm=M<<18|x>>>14,tv=x<<18|M>>>14,t_=k<<1|C>>>31,tw=C<<1|k>>>31,tS=I<<12|A>>>20,tE=A<<12|I>>>20,tM=O<<10|j>>>22,tx=j<<10|O>>>22,tk=N<<13|R>>>19,tC=R<<13|N>>>19,tA=T<<2|P>>>30,tI=P<<2|T>>>30,tO=D<<30|L>>>2,tj=L<<30|D>>>2,tR=B<<6|F>>>26,tN=F<<6|B>>>26,tT=W<<11|U>>>21,tP=U<<11|W>>>21,tL=H<<15|z>>>17,tD=z<<15|H>>>17,tB=q<<29|V>>>3,tF=V<<29|q>>>3,tU=Z<<28|G>>>4,tW=G<<28|Z>>>4,tH=J<<23|Y>>>9,tz=Y<<23|J>>>9,tV=$<<25|Q>>>7,tq=Q<<25|$>>>7,tZ=K<<21|X>>>11,tG=X<<21|K>>>11,tY=te<<24|tt>>>8,tJ=tt<<24|te>>>8,t$=tr<<27|tn>>>5,tQ=tn<<27|tr>>>5,tK=ti<<20|to>>>12,tX=to<<20|ti>>>12,t0=ta<<7|ts>>>25,t1=ts<<7|ta>>>25,t2=tu<<8|tc>>>24,t3=tc<<8|tu>>>24,t4=tl<<14|th>>>18,t5=th<<14|tl>>>18;e[0]=b^~tS&tT,e[1]=g^~tE&tP,e[10]=tU^~tK&tp,e[11]=tW^~tX&ty,e[20]=t_^~tR&tV,e[21]=tw^~tN&tq,e[30]=t$^~td&tM,e[31]=tQ^~tf&tx,e[40]=tO^~tH&t0,e[41]=tj^~tz&t1,e[2]=tS^~tT&tZ,e[3]=tE^~tP&tG,e[12]=tK^~tp&tk,e[13]=tX^~ty&tC,e[22]=tR^~tV&t2,e[23]=tN^~tq&t3,e[32]=td^~tM&tL,e[33]=tf^~tx&tD,e[42]=tH^~t0&tb,e[43]=tz^~t1&tg,e[4]=tT^~tZ&t4,e[5]=tP^~tG&t5,e[14]=tp^~tk&tB,e[15]=ty^~tC&tF,e[24]=tV^~t2&tm,e[25]=tq^~t3&tv,e[34]=tM^~tL&tY,e[35]=tx^~tD&tJ,e[44]=t0^~tb&tA,e[45]=t1^~tg&tI,e[6]=tZ^~t4&b,e[7]=tG^~t5&g,e[16]=tk^~tB&tU,e[17]=tC^~tF&tW,e[26]=t2^~tm&t_,e[27]=t3^~tv&tw,e[36]=tL^~tY&t$,e[37]=tD^~tJ&tQ,e[46]=tb^~tA&tO,e[47]=tg^~tI&tj,e[8]=t4^~b&tS,e[9]=t5^~g&tE,e[18]=tB^~tU&tK,e[19]=tF^~tW&tX,e[28]=tm^~t_&tR,e[29]=tv^~tw&tN,e[38]=tY^~t$&td,e[39]=tJ^~tQ&tf,e[48]=tA^~tO&tH,e[49]=tI^~tj&tz,e[0]^=n[2*r],e[1]^=n[2*r+1]}}},function(e,r,n){(function(r){let i=n(109),o=n(66);function s(e){return e.startsWith("int[")?"int256"+e.slice(3):"int"===e?"int256":e.startsWith("uint[")?"uint256"+e.slice(4):"uint"===e?"uint256":e.startsWith("fixed[")?"fixed128x128"+e.slice(5):"fixed"===e?"fixed128x128":e.startsWith("ufixed[")?"ufixed128x128"+e.slice(6):"ufixed"===e?"ufixed128x128":e}function a(e){return parseInt(/^\D+(\d+)$/.exec(e)[1],10)}function u(e){var r=/^\D+(\d+)x(\d+)$/.exec(e);return[parseInt(r[1],10),parseInt(r[2],10)]}function c(e){var r=e.match(/(.*)\[(.*?)\]$/);return r?""===r[2]?"dynamic":parseInt(r[2],10):null}function l(e){var r=typeof e;if("string"===r)return i.isHexString(e)?new o(i.stripHexPrefix(e),16):new o(e,10);if("number"===r)return new o(e);if(e.toArray)return e;throw Error("Argument is not a number")}function h(e,n){if("address"===e)return h("uint160",l(n));if("bool"===e)return h("uint8",n?1:0);if("string"===e)return h("bytes",new r(n,"utf8"));if((y=e).lastIndexOf("]")===y.length-1){if(void 0===n.length)throw Error("Not an array?");if("dynamic"!==(s=c(e))&&0!==s&&n.length>s)throw Error("Elements exceed array size: "+s);for(p in f=[],e=e.slice(0,e.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)f.push(h(e,n[p]));if("dynamic"===s){var s,d,f,p,y,b=h("uint256",n.length);f.unshift(b)}return r.concat(f)}if("bytes"===e)return n=new r(n),f=r.concat([h("uint256",n.length),n]),n.length%32!=0&&(f=r.concat([f,i.zeros(32-n.length%32)])),f;if(e.startsWith("bytes")){if((s=a(e))<1||s>32)throw Error("Invalid bytes<N> width: "+s);return i.setLengthRight(n,32)}if(e.startsWith("uint")){if((s=a(e))%8||s<8||s>256)throw Error("Invalid uint<N> width: "+s);if((d=l(n)).bitLength()>s)throw Error("Supplied uint exceeds width: "+s+" vs "+d.bitLength());if(d<0)throw Error("Supplied uint is negative");return d.toArrayLike(r,"be",32)}if(e.startsWith("int")){if((s=a(e))%8||s<8||s>256)throw Error("Invalid int<N> width: "+s);if((d=l(n)).bitLength()>s)throw Error("Supplied int exceeds width: "+s+" vs "+d.bitLength());return d.toTwos(256).toArrayLike(r,"be",32)}if(e.startsWith("ufixed")){if(s=u(e),(d=l(n))<0)throw Error("Supplied ufixed is negative");return h("uint256",d.mul(new o(2).pow(new o(s[1]))))}if(e.startsWith("fixed"))return s=u(e),h("int256",l(n).mul(new o(2).pow(new o(s[1]))));throw Error("Unsupported or invalid type: "+e)}function d(e,n){if(e.length!==n.length)throw Error("Number of types are not matching the values");for(var o,u,c=[],h=0;h<e.length;h++){var d=s(e[h]),f=n[h];if("bytes"===d)c.push(f);else if("string"===d)c.push(new r(f,"utf8"));else if("bool"===d)c.push(new r(f?"01":"00","hex"));else if("address"===d)c.push(i.setLength(f,20));else if(d.startsWith("bytes")){if((o=a(d))<1||o>32)throw Error("Invalid bytes<N> width: "+o);c.push(i.setLengthRight(f,o))}else if(d.startsWith("uint")){if((o=a(d))%8||o<8||o>256)throw Error("Invalid uint<N> width: "+o);if((u=l(f)).bitLength()>o)throw Error("Supplied uint exceeds width: "+o+" vs "+u.bitLength());c.push(u.toArrayLike(r,"be",o/8))}else{if(!d.startsWith("int"))throw Error("Unsupported or invalid type: "+d);if((o=a(d))%8||o<8||o>256)throw Error("Invalid int<N> width: "+o);if((u=l(f)).bitLength()>o)throw Error("Supplied int exceeds width: "+o+" vs "+u.bitLength());c.push(u.toTwos(o).toArrayLike(r,"be",o/8))}}return r.concat(c)}e.exports={rawEncode:function(e,n){var i=[],o=[],a=32*e.length;for(var u in e){var l=s(e[u]),d=h(l,n[u]);"string"===l||"bytes"===l||"dynamic"===c(l)?(i.push(h("uint256",a)),o.push(d),a+=d.length):i.push(d)}return r.concat(i.concat(o))},solidityPack:d,soliditySHA3:function(e,r){return i.keccak(d(e,r))}}}).call(this,n(19).Buffer)},function(e,r,n){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.filterFromParam=r.FilterPolyfill=void 0;let i=n(67),o=n(38),s={jsonrpc:"2.0",id:0};function a(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 r={fromBlock:l(e.fromBlock),toBlock:l(e.toBlock),topics:e.topics};return null!==e.addresses&&(r.address=e.addresses),r}function c(e){if(void 0===e||"latest"===e||"pending"===e)return"latest";if("earliest"===e)return(0,i.IntNumber)(0);if((0,o.isHexString)(e))return(0,o.intNumberFromHexString)(e);throw Error("Invalid block option: "+String(e))}function l(e){return"latest"===e?e:(0,o.hexStringFromIntNumber)(e)}function h(){return Object.assign(Object.assign({},s),{error:{code:-32e3,message:"filter not found"}})}function d(){return Object.assign(Object.assign({},s),{result:[]})}r.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,i.IntNumber)(1),this.provider=e}async newFilter(e){let r=a(e),n=this.makeFilterId(),i=await this.setInitialCursorPosition(n,r.fromBlock);return console.log(`Installing new log filter(${n}):`,r,"initial cursor position:",i),this.logFilters.set(n,r),this.setFilterTimeout(n),(0,o.hexStringFromIntNumber)(n)}async newBlockFilter(){let e=this.makeFilterId(),r=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,r),this.blockFilters.add(e),this.setFilterTimeout(e),(0,o.hexStringFromIntNumber)(e)}async newPendingTransactionFilter(){let e=this.makeFilterId(),r=await this.setInitialCursorPosition(e,"latest");return console.log(`Installing new block filter (${e}) with initial cursor position:`,r),this.pendingTransactionFilters.add(e),this.setFilterTimeout(e),(0,o.hexStringFromIntNumber)(e)}uninstallFilter(e){let r=(0,o.intNumberFromHexString)(e);return console.log(`Uninstalling filter (${r})`),this.deleteFilter(r),!0}getFilterChanges(e){let r=(0,o.intNumberFromHexString)(e);return this.timeouts.has(r)&&this.setFilterTimeout(r),this.logFilters.has(r)?this.getLogFilterChanges(r):this.blockFilters.has(r)?this.getBlockFilterChanges(r):this.pendingTransactionFilters.has(r)?this.getPendingTransactionFilterChanges(r):Promise.resolve(h())}async getFilterLogs(e){let r=(0,o.intNumberFromHexString)(e),n=this.logFilters.get(r);return n?this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(n)]})):h()}makeFilterId(){return(0,i.IntNumber)(++this.nextFilterId)}sendAsyncPromise(e){return new Promise((r,n)=>{this.provider.sendAsync(e,(e,i)=>e?n(e):Array.isArray(i)||null==i?n(Error("unexpected response received: "+JSON.stringify(i))):void r(i))})}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 r=this.logFilters.get(e),n=this.cursors.get(e);if(!n||!r)return h();let a=await this.getCurrentBlockHeight(),c="latest"===r.toBlock?a:r.toBlock;if(n>a||n>r.toBlock)return d();console.log(`Fetching logs from ${n} to ${c} for filter ${e}`);let l=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getLogs",params:[u(Object.assign(Object.assign({},r),{fromBlock:n,toBlock:c}))]}));if(Array.isArray(l.result)){let r=Math.max(...l.result.map(e=>(0,o.intNumberFromHexString)(e.blockNumber||"0x0")));if(r&&r>n){let o=(0,i.IntNumber)(r+1);console.log(`Moving cursor position for filter (${e}) from ${n} to ${o}`),this.cursors.set(e,o)}}return l}async getBlockFilterChanges(e){let r=this.cursors.get(e);if(!r)return h();let n=await this.getCurrentBlockHeight();if(r>n)return d();console.log(`Fetching blocks from ${r} to ${n} for filter (${e})`);let a=(await Promise.all((0,o.range)(r,n+1).map(e=>this.getBlockHashByNumber((0,i.IntNumber)(e))))).filter(e=>!!e),u=(0,i.IntNumber)(r+a.length);return console.log(`Moving cursor position for filter (${e}) from ${r} to ${u}`),this.cursors.set(e,u),Object.assign(Object.assign({},s),{result:a})}async getPendingTransactionFilterChanges(e){return Promise.resolve(d())}async setInitialCursorPosition(e,r){let n=await this.getCurrentBlockHeight(),i="number"==typeof r&&r>n?r:n;return this.cursors.set(e,i),i}setFilterTimeout(e){let r=this.timeouts.get(e);r&&window.clearTimeout(r);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,o.intNumberFromHexString)((0,o.ensureHexString)(e))}async getBlockHashByNumber(e){let r=await this.sendAsyncPromise(Object.assign(Object.assign({},s),{method:"eth_getBlockByNumber",params:[(0,o.hexStringFromIntNumber)(e),!1]}));return r.result&&"string"==typeof r.result.hash?(0,o.ensureHexString)(r.result.hash):null}},r.filterFromParam=a},function(e,r,n){"use strict";var i;
2Object.defineProperty(r,"__esModule",{value:!0}),r.JSONRPCMethod=void 0,(i=r.JSONRPCMethod||(r.JSONRPCMethod={})).eth_accounts="eth_accounts",i.eth_coinbase="eth_coinbase",i.net_version="net_version",i.eth_chainId="eth_chainId",i.eth_uninstallFilter="eth_uninstallFilter",i.eth_requestAccounts="eth_requestAccounts",i.eth_sign="eth_sign",i.eth_ecRecover="eth_ecRecover",i.personal_sign="personal_sign",i.personal_ecRecover="personal_ecRecover",i.eth_signTransaction="eth_signTransaction",i.eth_sendRawTransaction="eth_sendRawTransaction",i.eth_sendTransaction="eth_sendTransaction",i.eth_signTypedData_v1="eth_signTypedData_v1",i.eth_signTypedData_v2="eth_signTypedData_v2",i.eth_signTypedData_v3="eth_signTypedData_v3",i.eth_signTypedData_v4="eth_signTypedData_v4",i.eth_signTypedData="eth_signTypedData",i.cbWallet_arbitrary="walletlink_arbitrary",i.wallet_addEthereumChain="wallet_addEthereumChain",i.wallet_switchEthereumChain="wallet_switchEthereumChain",i.wallet_watchAsset="wallet_watchAsset",i.eth_subscribe="eth_subscribe",i.eth_unsubscribe="eth_unsubscribe",i.eth_newFilter="eth_newFilter",i.eth_newBlockFilter="eth_newBlockFilter",i.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",i.eth_getFilterChanges="eth_getFilterChanges",i.eth_getFilterLogs="eth_getFilterLogs"},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SubscriptionManager=void 0;let i=n(171),o=n(179),s=()=>{};r.SubscriptionManager=class{constructor(e){let{events:r,middleware:n}=o({blockTracker:new i({provider:e,pollingInterval:15e3,setSkipCacheFlag:!0}),provider:e});this.events=r,this.subscriptionMiddleware=n}async handleRequest(e){let r={};return await this.subscriptionMiddleware(e,r,s,s),r}destroy(){this.subscriptionMiddleware.destroy()}}},function(e,r,n){let i=n(118),o=n(172);function s(e,r){return new Promise(n=>{let i=setTimeout(n,e);i.unref&&r&&i.unref()})}e.exports=class extends o{constructor(e={}){if(!e.provider)throw Error("PollingBlockTracker - no provider specified.");let r=e.pollingInterval||2e4,n=e.retryTimeout||r/10,i=void 0===e.keepEventLoopActive||e.keepEventLoopActive,o=e.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:r},e)),this._provider=e.provider,this._pollingInterval=r,this._retryTimeout=n,this._keepEventLoopActive=i,this._setSkipCacheFlag=o}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch(e=>this.emit("error",e))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await s(this._pollingInterval,!this._keepEventLoopActive)}catch(r){let e=Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+r.stack);try{this.emit("error",e)}catch(r){console.error(e)}await s(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){let e=await this._fetchLatestBlock();this._newPotentialLatest(e)}async _fetchLatestBlock(){let e={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(e.skipCache=!0);let r=await i(r=>this._provider.sendAsync(e,r))();if(r.error)throw Error("PollingBlockTracker - encountered error fetching block:\n"+r.error);return r.result}}},function(e,r,n){n(119),n(118);let i=n(175),o=(e,r)=>e+r,s=["sync","latest"];function a(e){return Number.parseInt(e,16)}e.exports=class extends i{constructor(e={}){super(),this._blockResetDuration=e.blockResetDuration||2e4,this._blockResetTimeout,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()}isRunning(){return this._isRunning}getCurrentBlock(){return this._currentBlock}async getLatestBlock(){return this._currentBlock?this._currentBlock:await new Promise(e=>this.once("latest",e))}removeAllListeners(e){e?super.removeAllListeners(e):super.removeAllListeners(),this._setupInternalEvents(),this._onRemoveListener()}_start(){}_end(){}_setupInternalEvents(){this.removeListener("newListener",this._onNewListener),this.removeListener("removeListener",this._onRemoveListener),this.on("newListener",this._onNewListener),this.on("removeListener",this._onRemoveListener)}_onNewListener(e,r){s.includes(e)&&this._maybeStart()}
2_onRemoveListener(e,r){this._getBlockTrackerEventCount()>0||this._maybeEnd()}_maybeStart(){this._isRunning||(this._isRunning=!0,this._cancelBlockResetTimeout(),this._start())}_maybeEnd(){this._isRunning&&(this._isRunning=!1,this._setupBlockResetTimeout(),this._end())}_getBlockTrackerEventCount(){return s.map(e=>this.listenerCount(e)).reduce(o)}_newPotentialLatest(e){let r=this._currentBlock;r&&a(e)<=a(r)||this._setCurrentBlock(e)}_setCurrentBlock(e){let r=this._currentBlock;this._currentBlock=e,this.emit("latest",e),this.emit("sync",{oldBlock:r,newBlock:e})}_setupBlockResetTimeout(){this._cancelBlockResetTimeout(),this._blockResetTimeout=setTimeout(this._resetCurrentBlock,this._blockResetDuration),this._blockResetTimeout.unref&&this._blockResetTimeout.unref()}_cancelBlockResetTimeout(){clearTimeout(this._blockResetTimeout)}_resetCurrentBlock(){this._currentBlock=null}}},function(e,r){e.exports=function(){for(var e={},r=0;r<arguments.length;r++){var i=arguments[r];for(var o in i)n.call(i,o)&&(e[o]=i[o])}return e};var n=Object.prototype.hasOwnProperty},function(e,r){e.exports=function(e){var r=(e=e||{}).max||Number.MAX_SAFE_INTEGER,n=void 0!==e.start?e.start:Math.floor(Math.random()*r);return function(){return n%=r,n++}}},function(e,r,n){let i=n(176),o=n(65);var s="object"==typeof Reflect?Reflect:null,a=s&&"function"==typeof s.apply?s.apply:function(e,r,n){return Function.prototype.apply.call(e,r,n)};function u(){o.call(this)}function c(e,r,n){try{a(e,r,n)}catch(e){setTimeout(()=>{throw e})}}e.exports=u,i.inherits(u,o),u.prototype.emit=function(e){for(var r=[],n=1;n<arguments.length;n++)r.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){if(r.length>0&&(s=r[0]),s instanceof Error)throw s;var s,a=Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var u=o[e];if(void 0===u)return!1;if("function"==typeof u)c(u,this,r);else{var l=u.length,h=function(e,r){for(var n=Array(r),i=0;i<r;++i)n[i]=e[i];return n}(u,l);for(n=0;n<l;++n)c(h[n],this,r)}return!0}},function(e,r,n){(function(e){var i=Object.getOwnPropertyDescriptors||function(e){for(var r=Object.keys(e),n={},i=0;i<r.length;i++)n[r[i]]=Object.getOwnPropertyDescriptor(e,r[i]);return n},o=/%[sdj%]/g;r.format=function(e){if(!m(e)){for(var r=[],n=0;n<arguments.length;n++)r.push(u(arguments[n]));return r.join(" ")}n=1;for(var i=arguments,s=i.length,a=String(e).replace(o,function(e){if("%%"===e)return"%";if(n>=s)return e;switch(e){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return e}}),c=i[n];n<s;c=i[++n])b(c)||!w(c)?a+=" "+c:a+=" "+u(c);return a},r.deprecate=function(n,i){if(void 0!==e&&!0===e.noDeprecation)return n;if(void 0===e)return function(){return r.deprecate(n,i).apply(this,arguments)};var o=!1;return function(){if(!o){if(e.throwDeprecation)throw Error(i);e.traceDeprecation?console.trace(i):console.error(i),o=!0}return n.apply(this,arguments)}};var s,a={};function u(e,n){var i={seen:[],stylize:l};return arguments.length>=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),y(n)?i.showHidden=n:n&&r._extend(i,n),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=c),h(i,e,i.depth)}function c(e,r){var n=u.styles[r];return n?"\x1b["+u.colors[n][0]+"m"+e+"\x1b["+u.colors[n][1]+"m":e}function l(e,r){return e}function h(e,n,i){if(e.customInspect&&n&&M(n.inspect)&&n.inspect!==r.inspect&&(!n.constructor||n.constructor.prototype!==n)){var o,s,a=n.inspect(i,e);return m(a)||(a=h(e,a,i)),a}var u=function(e,r){if(v(r))return e.stylize("undefined","undefined");if(m(r)){var n="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return g(r)?e.stylize(""+r,"number"):y(r)?e.stylize(""+r,"boolean"):b(r)?e.stylize("null","null"):void 0}(e,n);if(u)return u;var c=Object.keys(n),l=(x={},c.forEach(function(e,r){x[e]=!0}),x);if(e.showHidden&&(c=Object.getOwnPropertyNames(n)),E(n)&&(c.indexOf("message")>=0||c.indexOf("description")>=0))return d(n);if(0===c.length){if(M(n)){var w=n.name?": "+n.name:"";return e.stylize("[Function"+w+"]","special")}if(_(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return e.stylize(Date.prototype.toString.call(n),"date");if(E(n))return d(n)}var x,k,C="",I=!1,O=["{","}"];return p(n)&&(I=!0,O=["[","]"]),M(n)&&(C=" [Function"+(n.name?": "+n.name:"")+"]"),_(n)&&(C=" "+RegExp.prototype.toString.call(n)),S(n)&&(C=" "+Date.prototype.toUTCString.call(n)),E(n)&&(C=" "+d(n)),0!==c.length||I&&0!=n.length?i<0?_(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),k=I?function(e,r,n,i,o){for(var s=[],a=0,u=r.length;a<u;++a)A(r,String(a))?s.push(f(e,r,n,i,String(a),!0)):s.push("");return o.forEach(function(o){o.match(/^\d+$/)||s.push(f(e,r,n,i,o,!0))}),s}(e,n,i,l,c):c.map(function(r){return f(e,n,i,l,r,I)}),e.seen.pop(),o=C,s=O,k.reduce(function(e,r){return r.indexOf("\n"),e+r.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?s[0]+(""===o?"":o+"\n ")+" "+k.join(",\n ")+" "+s[1]:s[0]+o+" "+k.join(", ")+" "+s[1]):O[0]+C+O[1]}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function f(e,r,n,i,o,s){var a,u,c;if((c=Object.getOwnPropertyDescriptor(r,o)||{value:r[o]}).get?u=c.set?e.stylize("[Getter/Setter]","special"):e.stylize("[Getter]","special"):c.set&&(u=e.stylize("[
2Setter]","special")),A(i,o)||(a="["+o+"]"),u||(0>e.seen.indexOf(c.value)?(u=b(n)?h(e,c.value,null):h(e,c.value,n-1)).indexOf("\n")>-1&&(u=s?u.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+u.split("\n").map(function(e){return" "+e}).join("\n")):u=e.stylize("[Circular]","special")),v(a)){if(s&&o.match(/^\d+$/))return u;(a=JSON.stringify(""+o)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+u}function p(e){return Array.isArray(e)}function y(e){return"boolean"==typeof e}function b(e){return null===e}function g(e){return"number"==typeof e}function m(e){return"string"==typeof e}function v(e){return void 0===e}function _(e){return w(e)&&"[object RegExp]"===x(e)}function w(e){return"object"==typeof e&&null!==e}function S(e){return w(e)&&"[object Date]"===x(e)}function E(e){return w(e)&&("[object Error]"===x(e)||e instanceof Error)}function M(e){return"function"==typeof e}function x(e){return Object.prototype.toString.call(e)}function k(e){return e<10?"0"+e.toString(10):e.toString(10)}r.debuglog=function(n){if(v(s)&&(s=e.env.NODE_DEBUG||""),!a[n=n.toUpperCase()]){if(RegExp("\\b"+n+"\\b","i").test(s)){var i=e.pid;a[n]=function(){var e=r.format.apply(r,arguments);console.error("%s %d: %s",n,i,e)}}else a[n]=function(){}}return a[n]},r.inspect=u,u.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},u.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},r.isArray=p,r.isBoolean=y,r.isNull=b,r.isNullOrUndefined=function(e){return null==e},r.isNumber=g,r.isString=m,r.isSymbol=function(e){return"symbol"==typeof e},r.isUndefined=v,r.isRegExp=_,r.isObject=w,r.isDate=S,r.isError=E,r.isFunction=M,r.isPrimitive=function(e){return null===e||"boolean"==typeof e||"number"==typeof e||"string"==typeof e||"symbol"==typeof e||void 0===e},r.isBuffer=n(177);var C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function A(e,r){return Object.prototype.hasOwnProperty.call(e,r)}r.log=function(){var e,n;console.log("%s - %s",(n=[k((e=new Date).getHours()),k(e.getMinutes()),k(e.getSeconds())].join(":"),[e.getDate(),C[e.getMonth()],n].join(" ")),r.format.apply(r,arguments))},r.inherits=n(178),r._extend=function(e,r){if(!r||!w(r))return e;for(var n=Object.keys(r),i=n.length;i--;)e[n[i]]=r[n[i]];return e};var I="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function O(e,r){if(!e){var n=Error("Promise was rejected with a falsy value");n.reason=e,e=n}return r(e)}r.promisify=function(e){if("function"!=typeof e)throw TypeError('The "original" argument must be of type Function');if(I&&e[I]){var r;if("function"!=typeof(r=e[I]))throw TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(r,I,{value:r,enumerable:!1,writable:!1,configurable:!0}),r}function r(){for(var r,n,i=new Promise(function(e,i){r=e,n=i}),o=[],s=0;s<arguments.length;s++)o.push(arguments[s]);o.push(function(e,i){e?n(e):r(i)});try{e.apply(this,o)}catch(e){n(e)}return i}return Object.setPrototypeOf(r,Object.getPrototypeOf(e)),I&&Object.defineProperty(r,I,{value:r,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(r,i(e))},r.promisify.custom=I,r.callbackify=function(r){if("function"!=typeof r)throw TypeError('The "original" argument must be of type Function');function n(){for(var n=[],i=0;i<arguments.length;i++)n.push(arguments[i]);var o=n.pop();if("function"!=typeof o)throw TypeError("The last argument must be of type Function");var s=this,a=function(){return o.apply(s,arguments)};r.apply(this,n).then(function(r){e.nextTick(a,null,r)},function(r){e.nextTick(O,r,a)})}return Object.setPrototypeOf(n,Object.getPrototypeOf(r)),Object.defineProperties(n,i(r)),n}}).call(this,n(40))},function(e,r){e.exports=function(e){return e&&"object"==typeof e&&"function"==typeof e.copy&&"function"==typeof e.fill&&"function"==typeof e.readUInt8}},function(e,r){"function"==typeof Object.create?e.exports=function(e,r){e.super_=r,e.prototype=Object.create(r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,r){e.super_=r;var n=function(){};n.prototype=r.prototype,e.prototype=new n,e.prototype.constructor=e}},function(e,r,n){let i=n(64).default,{createAsyncMiddleware:o,createScaffoldMiddleware:s}=n(120),a=n(186),{unsafeRandomBytes:u,incrementHexInt:c}=n(59),l=n(99);function h(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,gasLim
2it:e.gasLimit,gasUsed:e.gasUsed,nonce:e.nonce,mixHash:e.mixHash,timestamp:e.timestamp,extraData:e.extraData}}e.exports=function({blockTracker:e,provider:r}){let n={},d=a({blockTracker:e,provider:r}),f=!1,p=new i,y=s({eth_subscribe:o(async function(i,o){let s;if(f)throw Error("SubscriptionManager - attempting to use after destroying");let a=i.params[0],p=u(16);switch(a){case"newHeads":s=function({subId:n}){let i={type:a,destroy:async()=>{e.removeListener("sync",i.update)},update:async({oldBlock:e,newBlock:i})=>{let o=c(e);(await l({provider:r,fromBlock:o,toBlock:i})).map(h).filter(e=>null!==e).forEach(e=>{b(n,e)})}};return e.on("sync",i.update),i}({subId:p});break;case"logs":let y=i.params[1];s=function({subId:e,filter:r}){return r.on("update",r=>b(e,r)),{type:a,destroy:async()=>await d.uninstallFilter(r.idHex)}}({subId:p,filter:await d.newLogFilter(y)});break;default:throw Error(`SubscriptionManager - unsupported subscription type "${a}"`)}return n[p]=s,void(o.result=p)}),eth_unsubscribe:o(async function(e,r){if(f)throw Error("SubscriptionManager - attempting to use after destroying");let i=e.params[0],o=n[i];if(!o)return void(r.result=!1);delete n[i],await o.destroy(),r.result=!0})});return y.destroy=function(){for(let e in p.removeAllListeners(),n)n[e].destroy(),delete n[e];f=!0},{events:p,middleware:y};function b(e,r){p.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:e,result:r}})}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createIdRemapMiddleware=void 0;let i=n(121);r.createIdRemapMiddleware=function(){return(e,r,n,o)=>{let s=e.id,a=i.getUniqueId();e.id=a,r.id=a,n(n=>{e.id=s,r.id=s,n()})}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createAsyncMiddleware=void 0,r.createAsyncMiddleware=function(e){return async(r,n,i,o)=>{let s;let a=new Promise(e=>{s=e}),u=null,c=!1,l=async()=>{c=!0,i(e=>{u=e,s()}),await a};try{await e(r,n,l),c?(await a,u(null)):o(null)}catch(e){u?u(e):o(e)}}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.createScaffoldMiddleware=void 0,r.createScaffoldMiddleware=function(e){return(r,n,i,o)=>{let s=e[r.method];return void 0===s?i():"function"==typeof s?s(r,n,i,o):(n.result=s,o())}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.getMessageFromCode=r.serializeError=r.EthereumProviderError=r.EthereumRpcError=r.ethErrors=r.errorCodes=void 0;let i=n(96);Object.defineProperty(r,"EthereumRpcError",{enumerable:!0,get:function(){return i.EthereumRpcError}}),Object.defineProperty(r,"EthereumProviderError",{enumerable:!0,get:function(){return i.EthereumProviderError}});let o=n(123);Object.defineProperty(r,"serializeError",{enumerable:!0,get:function(){return o.serializeError}}),Object.defineProperty(r,"getMessageFromCode",{enumerable:!0,get:function(){return o.getMessageFromCode}});let s=n(184);Object.defineProperty(r,"ethErrors",{enumerable:!0,get:function(){return s.ethErrors}});let a=n(97);Object.defineProperty(r,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ethErrors=void 0;let i=n(96),o=n(123),s=n(97);function a(e,r){let[n,s]=c(r);return new i.EthereumRpcError(e,n||o.getMessageFromCode(e),s)}function u(e,r){let[n,s]=c(r);return new i.EthereumProviderError(e,n||o.getMessageFromCode(e),s)}function c(e){if(e){if("string"==typeof e)return[e];if("object"==typeof e&&!Array.isArray(e)){let{message:r,data:n}=e;if(r&&"string"!=typeof r)throw Error("Must specify string message.");return[r||void 0,n]}}return[]}r.ethErrors={rpc:{parse:e=>a(s.errorCodes.rpc.parse,e),invalidRequest:e=>a(s.errorCodes.rpc.invalidRequest,e),invalidParams:e=>a(s.errorCodes.rpc.invalidParams,e),methodNotFound:e=>a(s.errorCodes.rpc.methodNotFound,e),internal:e=>a(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:r}=e;if(!Number.isInteger(r)||r>-32005||r<-32099)throw Error('"code" must be an integer such that: -32099 <= code
2<= -32005');return a(r,e)},invalidInput:e=>a(s.errorCodes.rpc.invalidInput,e),resourceNotFound:e=>a(s.errorCodes.rpc.resourceNotFound,e),resourceUnavailable:e=>a(s.errorCodes.rpc.resourceUnavailable,e),transactionRejected:e=>a(s.errorCodes.rpc.transactionRejected,e),methodNotSupported:e=>a(s.errorCodes.rpc.methodNotSupported,e),limitExceeded:e=>a(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:r,message:n,data:o}=e;if(!n||"string"!=typeof n)throw Error('"message" must be a nonempty string');return new i.EthereumProviderError(r,n,o)}}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.mergeMiddleware=void 0;let i=n(122);r.mergeMiddleware=function(e){let r=new i.JsonRpcEngine;return e.forEach(e=>r.push(e)),r.asMiddleware()}},function(e,r,n){let i=n(233).Mutex,{createAsyncMiddleware:o,createScaffoldMiddleware:s}=n(120),a=n(187),u=n(190),c=n(191),{intToHex:l,hexToInt:h}=n(59);function d(e){return f(async(...r)=>l((await e(...r)).id))}function f(e){return o(async(r,n)=>{let i=await e.apply(null,r.params);n.result=i})}function p(e,r){let n=[];for(let r in e)n.push(e[r]);return n}e.exports=function({blockTracker:e,provider:r}){let n=0,o={},y=new i,b=function({mutex:e}){return r=>async(n,i,o,s)=>{(await e.acquire())(),r(n,i,o,s)}}({mutex:y}),g=s({eth_newFilter:b(d(v)),eth_newBlockFilter:b(d(_)),eth_newPendingTransactionFilter:b(d(w)),eth_uninstallFilter:b(f(M)),eth_getFilterChanges:b(f(S)),eth_getFilterLogs:b(f(E))}),m=async({oldBlock:e,newBlock:r})=>{if(0===o.length)return;let n=await y.acquire();try{await Promise.all(p(o).map(async n=>{try{await n.update({oldBlock:e,newBlock:r})}catch(e){console.error(e)}}))}catch(e){console.error(e)}n()};return g.newLogFilter=v,g.newBlockFilter=_,g.newPendingTransactionFilter=w,g.uninstallFilter=M,g.getFilterChanges=S,g.getFilterLogs=E,g.destroy=()=>{!async function(){let e=p(o).length;o={},k({prevFilterCount:e,newFilterCount:0})}()},g;async function v(e){let n=new a({provider:r,params:e});return await x(n),n}async function _(){let e=new u({provider:r});return await x(e),e}async function w(){let e=new c({provider:r});return await x(e),e}async function S(e){let r=h(e),n=o[r];if(!n)throw Error(`No filter for index "${r}"`);return n.getChangesAndClear()}async function E(e){let r=h(e),n=o[r];if(!n)throw Error(`No filter for index "${r}"`);let i=[];return"log"===n.type&&(i=n.getAllResults()),i}async function M(e){let r=h(e),n=!!o[r];return n&&await async function(e){let r=p(o).length;delete o[e],k({prevFilterCount:r,newFilterCount:p(o).length})}(r),n}async function x(r){let i=p(o).length,s=await e.getLatestBlock();return await r.initialize({currentBlock:s}),o[++n]=r,r.id=n,r.idHex=l(n),k({prevFilterCount:i,newFilterCount:p(o).length}),n}function k({prevFilterCount:r,newFilterCount:n}){0===r&&n>0?e.on("sync",m):r>0&&0===n&&e.removeListener("sync",m)}}},function(e,r,n){let i=n(119),o=n(188),s=n(189),{bnToHex:a,hexToInt:u,incrementHexInt:c,minBlockRef:l,blockRefIsNumber:h}=n(59);e.exports=class extends s{constructor({provider:e,params:r}){super(),this.type="log",this.ethQuery=new i(e),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},r),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 r=this.params.fromBlock;["latest","pending"].includes(r)&&(r=e),"earliest"===r&&(r="0x0"),this.params.fromBlock=r;let n=l(this.params.toBlock,e),i=Object.assign({},this.params,{toBlock:n}),o=await this._fetchLogs(i);this.addInitialResults(o)}async update({oldBlock:e,newBlock:r}){let n;n=e?c(e):r;let i=Object.assign({},this.params,{fromBlock:n,toBlock:r}),o=(await this._fetchLogs(i)).filter(e=>this.matchLog(e));this.addResults(o)}async _fetchLogs(e){return await o(r=>this.ethQuery.getLogs(e,r))()}matchLog(e){if(u(this.params.fromBlock)>=u(e.blockNumber)||h(this.params.toBlock)&&u(this.params.toBlock)<=u(e.blockNumber))return!1;let r=e.address&&e.address.toLowerCase();return(!this.params.address||!r||!!this.params.address.includes(r))&&this.params.topics.every((r,n)=>{let i=e.topics[n];if(!i)return!1;i=i.toLowerCase();let o=Array.isArray(r)?r:[r];return!!o.includes(null)||(o=o.map(e=>e.toLowerCase())).includes(i)})}}},function(e,r,n){"use strict";let i=(e,r,n,i)=>function(...o){return new r.promiseModule((s,a)=>{r.multiArgs?o.push((...e)=>{r.errorFirst?e[0]?a(e):(e.shift(),s(e)):s(e)}):r.errorFirst?o.push((e,r)=>{e?a(e):s(r)}):o.push(s),Reflect.apply(e,this===n?i:this,o)})},o=new WeakMap;e.exports=(e,r)=>{r={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...r};let n=typeof e;if(null===e||"object"!==n&&"function"!==n)throw TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===e?"null":n}\``);let s=new WeakMap,a=new Proxy(e,{apply(e,n,o){let u=s.get(e);if(u)return Reflect.apply(u,n,o);let c=r.excludeMain?e:i(e,r,a,e);return s.set(e,c),Reflect.apply(c,n,o)},get(e,n){let u=e[n];if(!((e,n)=>{let i=o.get(e);if(i||(i={},o.set(e,i)),n in i)return i[n];let s=e=>"string"==typeof e||"symbol"==typeof n?n===e:e.test(n),a=Reflect.getOwnPropertyDescriptor(e,n),u=void 0===a||a.writable||a.configurable,c=(r.include?r.include.some(s):!r.exclude.some(s))&&u;return i[n]=c,c})(e,n)||u===Function.prototype[n])return u;let c=s.get(u);if(c)return c;if("function"==typeof u){let n=i(u,r,a,e);return s.set(u,n),n}return u}});return a}},function(e,r,n){let i=n(98);e.exports=class extends i{constructor(){super(),this.allResults=[]}
2async 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}}},function(e,r,n){let i=n(98),o=n(99),{incrementHexInt:s}=n(59);e.exports=class extends i{constructor({provider:e,params:r}){super(),this.type="block",this.provider=e}async update({oldBlock:e,newBlock:r}){let n=s(e),i=(await o({provider:this.provider,fromBlock:n,toBlock:r})).map(e=>e.hash);this.addResults(i)}}},function(e,r,n){let i=n(98),o=n(99),{incrementHexInt:s}=n(59);e.exports=class extends i{constructor({provider:e}){super(),this.type="tx",this.provider=e}async update({oldBlock:e}){let r=s(e),n=await o({provider:this.provider,fromBlock:r,toBlock:e}),i=[];for(let e of n)i.push(...e.transactions);this.addResults(i)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletSDKUI=void 0;let i=n(193),o=n(215),s=n(217);r.WalletSDKUI=class{constructor(e){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new o.Snackbar({darkMode:e.darkMode}),this.linkFlow=new i.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,r=document.createElement("div");r.className="-cbwsdk-css-reset",e.appendChild(r),this.linkFlow.attach(r),this.snackbar.attach(r),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 r;return r=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.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}]},this.snackbar.presentItem(r)}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}}},function(e,r,n){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.LinkFlow=void 0;let i=n(5),o=n(70),s=n(194);r.LinkFlow=class{constructor(e){this.extensionUI$=new o.BehaviorSubject({}),this.subscriptions=new o.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,i.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,i.render)((0,i.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)}}},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.ConnectDialog=void 0;let o=i(n(69)),s=n(5),a=n(60),u=n(195),c=n(209),l=i(n(214));r.ConnectDialog=e=>{let{isOpen:r,darkMode:n}=e,[i,h]=(0,a.useState)(!r),[d,f]=(0,a.useState)(!r);(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{f(!r)},10)];return r?h(!1):e.push(window.setTimeout(()=>{h(!0)},360)),()=>{e.forEach(window.clearTimeout)}},[e.isOpen]);let p=n?"dark":"light";return(0,s.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-container",i&&"-cbwsdk-connect-dialog-container-hidden")},(0,s.h)("style",null,l.default),(0,s.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-backdrop",p,d&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,s.h)("div",{class:"-cbwsdk-connect-dialog"},(0,s.h)("div",{class:(0,o.default)("-cbwsdk-connect-dialog-box",d&&"-cbwsdk-connect-dialog-box-hidden")},e.connectDisabled?null:(0,s.h)(u.ConnectContent,{theme:p,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:p}))))}},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.CoinbaseAppSteps=r.CoinbaseWalletSteps=r.ConnectItem=r.ConnectContent=void 0;let o=i(n(69)),s=n(5),a=n(60),u=n(38),c=n(196),l=n(197),h=i(n(198)),d=i(n(199)),f=n(200),p=i(n(201)),y=i(n(202)),b=n(203),g=n(204),m=n(206),v=i(n(208)),_={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:d.default,steps:M},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:h.default,steps:x}},w=e=>"coinbase-app"===e?p.default:y.default,S=e=>"light"===e?"#FFFFFF":"#0A0B0D";function E({title:e,description:r,icon:n,selected:i,theme:a,onClick:u}){return(0,s.h)("div",{onClick:u,class:(0,o.default)("-cbwsdk-connect-item",a,{selected:i})},(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"},r)))}function M({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,o.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,o.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,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(f.QRCodeIcon,{fill:S(e)})))))}function x({theme:e}){return(0,s.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,s.h)("li",{class:(0,o.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,o.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,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(b.StatusDotIcon,{fill:S(e)})),(0,s.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,s.h)("strong",null,"Scan")),(0,s.h)("span",{class:(0,o.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",e)},(0,s.h)(f.QRCodeIcon,{fill:S(e)})))))}r.ConnectContent=function(e){let{theme:r}=e,[n,i]=(0,a.useState)("coinbase-wallet-app"),h=(0,a.useCallback)(e=>{i(e)},[]),d=(0,u.createQrUrl)(e.sessionId,e.sessionSecret,e.linkAPIUrl,e.isParentConnection,e.version,e.chainId);if(!n)return null;
2let f=_[n].steps;return(0,s.h)("div",{"data-testid":"connect-content",class:(0,o.default)("-cbwsdk-connect-content",r)},(0,s.h)("style",null,v.default),(0,s.h)("div",{class:"-cbwsdk-connect-content-header"},(0,s.h)("h2",{class:(0,o.default)("-cbwsdk-connect-content-heading",r)},"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)(l.CloseIcon,{fill:"light"===r?"#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(_).map(([e,i])=>(0,s.h)(E,{key:e,title:i.title,description:i.description,icon:i.icon,selected:n===e,onClick:()=>h(e),theme:r}))),"coinbase-app"===n&&(0,s.h)("div",{class:(0,o.default)("-cbwsdk-connect-content-update-app",r)},"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)(g.QRCode,{content:d,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:w(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:d})),(0,s.h)(f,{theme:r}),!e.isConnected&&(0,s.h)("div",{"data-testid":"connecting-spinner",class:(0,o.default)("-cbwsdk-connect-content-qr-connecting",r)},(0,s.h)(m.Spinner,{size:36,color:"dark"===r?"#FFF":"#000"}),(0,s.h)("p",null,"Connecting...")))))},r.ConnectItem=E,r.CoinbaseWalletSteps=M,r.CoinbaseAppSteps=x},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LIB_VERSION=void 0,r.LIB_VERSION="3.6.4"},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.CloseIcon=void 0;let i=n(5);r.CloseIcon=function(e){return(0,i.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMTQuMDM3IDE4LjkyNmMtMi43NSAwLTQuOTA3LTIuMjA1LTQuOTA3LTQuOTI2IDAtMi43MiAyLjIzLTQuOTI2IDQuOTA3LTQuOTI2YTQuODY2IDQuODY2IDAgMCAxIDQuODMzIDQuMTE4aDQuOTgyYy0uNDQ2LTUuMDczLTQuNjg0LTkuMDQ0LTkuODE1LTkuMDQ0QzguNjEgNC4xNDggNC4xNDkgOC41NiA0LjE0OSAxNHM0LjM4NyA5Ljg1MiA5Ljg5IDkuODUyYzUuMjA0IDAgOS4zNjgtMy45NyA5LjgxNC05LjA0M0gxOC44N2E0Ljg2NiA0Ljg2NiAwIDAgMS00LjgzMyA0LjExN1oiIGZpbGw9IiNmZmYiLz48L3N2Zz4="},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMTQiIGN5PSIxNCIgcj0iMTQiIGZpbGw9IiMwMDUyRkYiLz48cGF0aCBkPSJNMjMuODUyIDE0QTkuODM0IDkuODM0IDAgMCAxIDE0IDIzLjg1MiA5LjgzNCA5LjgzNCAwIDAgMSA0LjE0OCAxNCA5LjgzNCA5LjgzNCAwIDAgMSAxNCA0LjE0OCA5LjgzNCA5LjgzNCAwIDAgMSAyMy44NTIgMTRaIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTExLjE4NSAxMi41MDRjMC0uNDU2IDAtLjcxLjA5OC0uODYyLjA5OC0uMTUyLjE5Ni0uMzA0LjM0My0uMzU1LjE5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.QRCodeIcon=void 0;let i=n(5);r.QRCodeIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,i.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,i.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,i.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,i.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,i.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,i.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,i.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,i.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},function(e,r,n){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.default='\n <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n <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"/>\n <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"/>\n <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"/>\n </svg>\n'},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.default='\n <svg width="100" height="100" viewBox="0 0 100 100" fill="none" xmlns="http://www.w3.org/2000/svg">\n <circle cx="50" cy="50" r="50" fill="white"/>\n <circle cx="49.9996" cy="49.9996" r="43.6363" fill="#1B53E4"/>\n <circle cx="49.9996" cy="49.9996" r="43.6363" stroke="white"/>\n <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"/>\n </svg>\n'},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.StatusDotIcon=void 0;let i=n(5);r.StatusDotIcon=function(e){return(0,i.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},function(e,r,n){"use strict";(function(e){var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.QRCode=void 0;let o=n(5),s=n(60),a=i(n(205));r.QRCode=r=>{let[n,i]=(0,s.useState)("");return(0,s.useEffect)(()=>{var n,o;let s=new a.default({content:r.content,background:r.bgColor||"#ffffff",color:r.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(n=r.width)&&void 0!==n?n:256,height:null!==(o=r.height)&&void 0!==o?o:256,padding:0,image:r.image});i("data:image/svg+xml;base64,"+e.from(s.svg(),"utf8").toString("base64"))}),n?(0,o.h)("img",{src:n,alt:"QR Code"}):null}}).call(this,n(19).Buffer)},function(e,r){function n(e){this.mode=o.MODE_8BIT_BYTE,this.data=e,this.parsedData=[];for(var r=0,n=this.data.length;r<n;r++){var i=[],s=this.data.charCodeAt(r);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 i(e,r){this.typeNumber=e,this.errorCorrectLevel=r,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(e){return this.parsedData.length},write:function(e){for(var r=0,n=this.parsedData.length;r<n;r++)e.put(this.parsedData[r],8)}},i.prototype={addData:function(e){var r=new n(e);this.dataList.push(r),this.dataCache=null},isDark:function(e,r){if(e<0||this.moduleCount<=e||r<0||this.moduleCount<=r)throw Error(e+","+r);return this.modules[e][r]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(e,r){this.moduleCount=4*this.typeNumber+17,this.modules=Array(this.moduleCount);for(var n=0;n<this.moduleCount;n++){this.modules[n]=Array(this.moduleCount);for(var o=0;o<this.moduleCount;o++)this.modules[n][o]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(e,r),this.typeNumber>=7&&this.setupTypeNumber(e),null==this.dataCache&&(this.dataCache=i.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,r)},setupPositionProbePattern:function(e,r){for(var n=-1;n<=7;n++)if(!(e+n<=-1||this.moduleCount<=e+n))for(var i=-1;i<=7;
2i++)r+i<=-1||this.moduleCount<=r+i||(this.modules[e+n][r+i]=0<=n&&n<=6&&(0==i||6==i)||0<=i&&i<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=i&&i<=4)},getBestMaskPattern:function(){for(var e=0,r=0,n=0;n<8;n++){this.makeImpl(!0,n);var i=s.getLostPoint(this);(0==n||e>i)&&(e=i,r=n)}return r},createMovieClip:function(e,r,n){var i=e.createEmptyMovieClip(r,n);this.make();for(var o=0;o<this.modules.length;o++)for(var s=1*o,a=0;a<this.modules[o].length;a++){var u=1*a;this.modules[o][a]&&(i.beginFill(0,100),i.moveTo(u,s),i.lineTo(u+1,s),i.lineTo(u+1,s+1),i.lineTo(u,s+1),i.endFill())}return i},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 r=8;r<this.moduleCount-8;r++)null==this.modules[6][r]&&(this.modules[6][r]=r%2==0)},setupPositionAdjustPattern:function(){for(var e=s.getPatternPosition(this.typeNumber),r=0;r<e.length;r++)for(var n=0;n<e.length;n++){var i=e[r],o=e[n];if(null==this.modules[i][o])for(var a=-2;a<=2;a++)for(var u=-2;u<=2;u++)this.modules[i+a][o+u]=-2==a||2==a||-2==u||2==u||0==a&&0==u}},setupTypeNumber:function(e){for(var r=s.getBCHTypeNumber(this.typeNumber),n=0;n<18;n++){var i=!e&&1==(r>>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=i}for(n=0;n<18;n++)i=!e&&1==(r>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=i},setupTypeInfo:function(e,r){for(var n=this.errorCorrectLevel<<3|r,i=s.getBCHTypeInfo(n),o=0;o<15;o++){var a=!e&&1==(i>>o&1);o<6?this.modules[o][8]=a:o<8?this.modules[o+1][8]=a:this.modules[this.moduleCount-15+o][8]=a}for(o=0;o<15;o++)a=!e&&1==(i>>o&1),o<8?this.modules[8][this.moduleCount-o-1]=a:o<9?this.modules[8][15-o-1+1]=a:this.modules[8][15-o-1]=a;this.modules[this.moduleCount-8][8]=!e},mapData:function(e,r){for(var n=-1,i=this.moduleCount-1,o=7,a=0,u=this.moduleCount-1;u>0;u-=2)for(6==u&&u--;;){for(var c=0;c<2;c++)if(null==this.modules[i][u-c]){var l=!1;a<e.length&&(l=1==(e[a]>>>o&1)),s.getMask(r,i,u-c)&&(l=!l),this.modules[i][u-c]=l,-1==--o&&(a++,o=7)}if((i+=n)<0||this.moduleCount<=i){i-=n,n=-n;break}}}},i.PAD0=236,i.PAD1=17,i.createData=function(e,r,n){for(var o=l.getRSBlocks(e,r),a=new h,u=0;u<n.length;u++){var c=n[u];a.put(c.mode,4),a.put(c.getLength(),s.getLengthInBits(c.mode,e)),c.write(a)}var d=0;for(u=0;u<o.length;u++)d+=o[u].dataCount;if(a.getLengthInBits()>8*d)throw Error("code length overflow. ("+a.getLengthInBits()+">"+8*d+")");for(a.getLengthInBits()+4<=8*d&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*d||(a.put(i.PAD0,8),a.getLengthInBits()>=8*d));)a.put(i.PAD1,8);return i.createBytes(a,o)},i.createBytes=function(e,r){for(var n=0,i=0,o=0,a=Array(r.length),u=Array(r.length),l=0;l<r.length;l++){var h=r[l].dataCount,d=r[l].totalCount-h;i=Math.max(i,h),o=Math.max(o,d),a[l]=Array(h);for(var f=0;f<a[l].length;f++)a[l][f]=255&e.buffer[f+n];n+=h;var p=s.getErrorCorrectPolynomial(d),y=new c(a[l],p.getLength()-1).mod(p);for(f=0,u[l]=Array(p.getLength()-1);f<u[l].length;f++){var b=f+y.getLength()-u[l].length;u[l][f]=b>=0?y.get(b):0}}var g=0;for(f=0;f<r.length;f++)g+=r[f].totalCount;var m=Array(g),v=0;for(f=0;f<i;f++)for(l=0;l<r.length;l++)f<a[l].length&&(m[v++]=a[l][f]);for(f=0;f<o;f++)for(l=0;l<r.length;l++)f<u[l].length&&(m[v++]=u[l][f]);return m};for(var o={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},s={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 r=e<<10;s.getBCHDigit(r)-s.getBCHDigit(s.G15)>=0;
2)r^=s.G15<<s.getBCHDigit(r)-s.getBCHDigit(s.G15);return(e<<10|r)^s.G15_MASK},getBCHTypeNumber:function(e){for(var r=e<<12;s.getBCHDigit(r)-s.getBCHDigit(s.G18)>=0;)r^=s.G18<<s.getBCHDigit(r)-s.getBCHDigit(s.G18);return e<<12|r},getBCHDigit:function(e){for(var r=0;0!=e;)r++,e>>>=1;return r},getPatternPosition:function(e){return s.PATTERN_POSITION_TABLE[e-1]},getMask:function(e,r,n){switch(e){case 0:return(r+n)%2==0;case 1:return r%2==0;case 2:return n%3==0;case 3:return(r+n)%3==0;case 4:return(Math.floor(r/2)+Math.floor(n/3))%2==0;case 5:return r*n%2+r*n%3==0;case 6:return(r*n%2+r*n%3)%2==0;case 7:return(r*n%3+(r+n)%2)%2==0;default:throw Error("bad maskPattern:"+e)}},getErrorCorrectPolynomial:function(e){for(var r=new c([1],0),n=0;n<e;n++)r=r.multiply(new c([1,a.gexp(n)],0));return r},getLengthInBits:function(e,r){if(1<=r&&r<10)switch(e){case o.MODE_NUMBER:return 10;case o.MODE_ALPHA_NUM:return 9;case o.MODE_8BIT_BYTE:case o.MODE_KANJI:return 8;default:throw Error("mode:"+e)}else if(r<27)switch(e){case o.MODE_NUMBER:return 12;case o.MODE_ALPHA_NUM:return 11;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 10;default:throw Error("mode:"+e)}else{if(!(r<41))throw Error("type:"+r);switch(e){case o.MODE_NUMBER:return 14;case o.MODE_ALPHA_NUM:return 13;case o.MODE_8BIT_BYTE:return 16;case o.MODE_KANJI:return 12;default:throw Error("mode:"+e)}}},getLostPoint:function(e){for(var r=e.getModuleCount(),n=0,i=0;i<r;i++)for(var o=0;o<r;o++){for(var s=0,a=e.isDark(i,o),u=-1;u<=1;u++)if(!(i+u<0||r<=i+u))for(var c=-1;c<=1;c++)o+c<0||r<=o+c||0==u&&0==c||a==e.isDark(i+u,o+c)&&s++;s>5&&(n+=3+s-5)}for(i=0;i<r-1;i++)for(o=0;o<r-1;o++){var l=0;e.isDark(i,o)&&l++,e.isDark(i+1,o)&&l++,e.isDark(i,o+1)&&l++,e.isDark(i+1,o+1)&&l++,0!=l&&4!=l||(n+=3)}for(i=0;i<r;i++)for(o=0;o<r-6;o++)e.isDark(i,o)&&!e.isDark(i,o+1)&&e.isDark(i,o+2)&&e.isDark(i,o+3)&&e.isDark(i,o+4)&&!e.isDark(i,o+5)&&e.isDark(i,o+6)&&(n+=40);for(o=0;o<r;o++)for(i=0;i<r-6;i++)e.isDark(i,o)&&!e.isDark(i+1,o)&&e.isDark(i+2,o)&&e.isDark(i+3,o)&&e.isDark(i+4,o)&&!e.isDark(i+5,o)&&e.isDark(i+6,o)&&(n+=40);var h=0;for(o=0;o<r;o++)for(i=0;i<r;i++)e.isDark(i,o)&&h++;return n+Math.abs(100*h/r/r-50)/5*10}},a={glog:function(e){if(e<1)throw Error("glog("+e+")");return a.LOG_TABLE[e]},gexp:function(e){for(;e<0;)e+=255;for(;e>=256;)e-=255;return a.EXP_TABLE[e]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},u=0;u<8;u++)a.EXP_TABLE[u]=1<<u;for(u=8;u<256;u++)a.EXP_TABLE[u]=a.EXP_TABLE[u-4]^a.EXP_TABLE[u-5]^a.EXP_TABLE[u-6]^a.EXP_TABLE[u-8];for(u=0;u<255;u++)a.LOG_TABLE[a.EXP_TABLE[u]]=u;function c(e,r){if(null==e.length)throw Error(e.length+"/"+r);for(var n=0;n<e.length&&0==e[n];)n++;this.num=Array(e.length-n+r);for(var i=0;i<e.length-n;i++)this.num[i]=e[i+n]}function l(e,r){this.totalCount=e,this.dataCount=r}function h(){this.buffer=[],this.length=0}c.prototype={get:function(e){return this.num[e]},getLength:function(){return this.num.length},multiply:function(e){for(var r=Array(this.getLength()+e.getLength()-1),n=0;n<this.getLength();n++)for(var i=0;i<e.getLength();i++)r[n+i]^=a.gexp(a.glog(this.get(n))+a.glog(e.get(i)));return new c(r,0)},mod:function(e){if(this.getLength()-e.getLength()<0)return this;for(var r=a.glog(this.get(0))-a.glog(e.get(0)),n=Array(this.getLength()),i=0;i<this.getLength();i++)n[i]=this.get(i);for(i=0;i<e.getLength();i++)n[i]^=a.gexp(a.glog(e.get(i))+r);return new c(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,r){var n=l.getRsBlockTable(e,r);if(null==n)throw Error("bad rs block @ typeNumber:"+e+"/errorCorrectLevel:"+r);for(var i=n.length/3,o=[],s=0;s<i;s++)for(var a=n[3*s+0],u=n[3*s+1],c=n[3*s+2],h=0;h<a;h++)o.push(new l(u,c));return o},l.getRsBlockTable=function(e,r){switch(r){case 1:return l.RS_BLOCK_TABLE[4*(e-1)+0];case 0:return l.RS_BLOCK_TABLE[4*(e-1)+1];case 3:return l.RS_BLOCK_TABLE[4*(e-1)+2];case 2:return l.RS_BLOCK_TABLE[4*(e-1)+3];default:return}},h.prototype={get:function(e){return 1==(this.buffer[Math.floor(e/8)]>>>7-e%8&1)},put:function(e,r){for(var n=0;n<r;n++)this.putBit(1==(e>>>r-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(e){var r=Math.floor(this.length/8);this.buffer.length<=r&&this.buffer.push(0),e&&(this.buffer[r]|=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,8
26,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,715,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 r in e)this.options[r]=e[r];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 n=this.options.content,o=function(e,r){for(var n,i=(n=encodeURI(e).toString().replace(/\%[0-9a-fA-F]{2}/g,"a")).length+(n.length!=e?3:0),o=1,s=0,a=0,u=d.length;a<=u;a++){var c=d[a];if(!c)throw Error("Content too long: expected "+s+" but got "+i);switch(r){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: "+r)}if(i<=s)break;o++}if(o>d.length)throw Error("Content too long");return o}(n,this.options.ecl),s=function(e){switch(e){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw Error("Unknwon error correction level: "+e)}}(this.options.ecl);this.qrcode=new i(o,s),this.qrcode.addData(n),this.qrcode.make()}f.prototype.svg=function(e){var r=this.options||{},n=this.qrcode.modules;void 0===e&&(e={container:r.container||"svg"});for(var i=void 0===r.pretty||!!r.pretty,o=i?" ":"",s=i?"\r\n":"",a=r.width,u=r.height,c=n.length,l=a/(c+2*r.padding),h=u/(c+2*r.padding),d=void 0!==r.join&&!!r.join,f=void 0!==r.swap&&!!r.swap,p=void 0===r.xmlDeclaration||!!r.xmlDeclaration,y=void 0!==r.predefined&&!!r.predefined,b=y?o+'<defs><path id="qrmodule" d="M0 0 h'+h+" v"+l+' H0 z" style="fill:'+r.color+';shape-rendering:crispEdges;" /></defs>'+s:"",g=o+'<rect x="0" y="0" width="'+a+'" height="'+u+'" style="fill:'+r.background+';shape-rendering:crispEdges;"/>'+s,m="",v="",_=0;_<c;_++)for(var w=0;w<c;w++)if(n[w][_]){var S=w*l+r.padding*l,E=_*h+r.padding*h;if(f){var M=S;S=E,E=M}if(d){var x=l+S,k=h+E;S=Number.isInteger(S)?Number(S):S.toFixed(2),E=Number.isInteger(E)?Number(E):E.toFixed(2),x=Number.isInteger(x)?Number(x):x.toFixed(2),v+="M"+S+","+E+" V"+(k=Number.isInteger(k)?Number(k):k.toFixed(2))+" H"+x+" V"+E+" H"+S+" Z "}else m+=y?o+'<use x="'+S.toString()+'" y="'+E.toString()+'" href="#qrmodule" />'+s:o+'<rect x="'+S.toString()+'" y="'+E.toString()+'" width="'+l+'" height="'+h+'" style="fill:'+r.color+';shape-rendering:crispEdges;"/>'+s}d&&(m=o+'<path x="0" y="0" style="fill:'+r.color+';shape-rendering:crispEdges;" d="'+v+'" />');let C="";if(void 0!==this.options.image&&this.options.image.svg){let e=a*this.options.image.width/100,r=u*this.options.image.height/100;C+=`<svg x="${a/2-e/2}" y="${u/2-r/2}" width="${e}" height="${r}" viewBox="0 0 100 100" preserveAspectRatio="xMinYMin meet">`+(this.options.image.svg+s)+"</svg>"}var A="";switch(e.container){case"svg":p&&(A+='<?xml version="1.0" standalone="yes"?>'+s),A+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" width="'+a+'" height="'+u+'">'+s+(b+g+m)+C+"</svg>";break;case"svg-viewbox":p&&(A+='<?xml version="1.0" standalone="yes"?>'+s),A+='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 '+a+" "+u+'">'+s+(b+g+m)+C+"</svg>";break;case"g":A+='<g width="'+a+'" height="'+u+'">'+s+(b+g+m)+C+"</g>";break;default:A+=(b+g+m+C).replace(/^\s+/,"")}return A},e.exports=f},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esMo
2dule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.Spinner=void 0;let o=n(5),s=i(n(207));r.Spinner=e=>{var r;let n=null!==(r=e.size)&&void 0!==r?r:64,i=e.color||"#000";return(0,o.h)("div",{class:"-cbwsdk-spinner"},(0,o.h)("style",null,s.default),(0,o.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,o.h)("circle",{style:{cx:50,cy:50,r:45,stroke:i}})))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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)}}"},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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;
2color:#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}"},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.TryExtensionContent=void 0;let o=i(n(69)),s=n(5),a=n(60),u=n(210),c=n(211),l=n(212),h=i(n(213));r.TryExtensionContent=function({theme:e}){let[r,n]=(0,a.useState)(!1),i=(0,a.useCallback)(()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")},[]),d=(0,a.useCallback)(()=>{r?window.location.reload():(i(),n(!0))},[i,r]);return(0,s.h)("div",{class:(0,o.default)("-cbwsdk-try-extension",e)},(0,s.h)("style",null,h.default),(0,s.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,s.h)("h3",{class:(0,o.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,o.default)("-cbwsdk-try-extension-cta",e),onClick:d},r?"Refresh":"Install"),(0,s.h)("div",null,!r&&(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,o.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(c.LaptopIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,o.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,o.default)("-cbwsdk-try-extension-list-item-icon",e)},(0,s.h)(l.SafeIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,s.h)("div",{class:(0,o.default)("-cbwsdk-try-extension-list-item-copy",e)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ArrowLeftIcon=void 0;let i=n(5);r.ArrowLeftIcon=function(e){return(0,i.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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"}))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.LaptopIcon=void 0;let i=n(5);r.LaptopIcon=function(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,i.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"}))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.SafeIcon=void 0;let i=n(5);r.SafeIcon=function(e){return(0,i.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},e),(0,i.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.8
2001 5.20598 8.8001 6.2001Z"}))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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}"},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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}
2.-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}"},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.SnackbarInstance=r.SnackbarContainer=r.Snackbar=void 0;let o=i(n(69)),s=n(5),a=n(60),u=i(n(216));r.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 r=this.nextItemKey++;return this.items.set(r,e),this.render(),()=>{this.items.delete(r),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,s.render)((0,s.h)("div",null,(0,s.h)(r.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map(([e,n])=>(0,s.h)(r.SnackbarInstance,Object.assign({},n,{key:e}))))),this.root)}},r.SnackbarContainer=e=>(0,s.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-container")},(0,s.h)("style",null,u.default),(0,s.h)("div",{class:"-cbwsdk-snackbar"},e.children)),r.SnackbarInstance=({autoExpand:e,message:r,menuItems:n,appSrc:i})=>{let[u,c]=(0,a.useState)(!0),[l,h]=(0,a.useState)(null!=e&&e);return(0,a.useEffect)(()=>{let e=[window.setTimeout(()=>{c(!1)},1),window.setTimeout(()=>{h(!0)},1e4)];return()=>{e.forEach(window.clearTimeout)}}),(0,s.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-instance",u&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!l)}},(0,s.h)("img",{src:"coinbase-app"===i?"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyAxLjM3NyAzLjU5MyAzLjIxNGgzLjcwM2MtLjMzMS0zLjk2LTMuNDgyLTcuMDU5LTcuMjk2LTcuMDU5LTQuMDM0IDAtNy4zNSAzLjQ0My03LjM1IDcuNjkgMCA0LjI0NiAzLjI2IDcuNjkgNy4zNSA3LjY5IDMuODcgMCA2Ljk2NS0zLjEgNy4yOTYtNy4wNTloLTMuNzAzYy0uMjc2IDEuODM2LTEuNzY5IDMuMjE0LTMuNTkzIDMuMjE0WiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0wIDEwLjY3OGMwLTMuNzExIDAtNS41OTYuNzQyLTcuMDIzQTYuNTMyIDYuNTMyIDAgMCAxIDMuNjU1Ljc0MkM1LjA4MiAwIDYuOTY3IDAgMTAuNjc4IDBoNy45MzhjMy43MTEgMCA1LjU5NiAwIDcuMDIzLjc0MmE2LjUzMSA2LjUzMSAwIDAgMSAyLjkxMyAyLjkxM2MuNzQyIDEuNDI3Ljc0MiAzLjMxMi43NDIgNy4wMjN2Ny45MzhjMCAzLjcxMSAwIDUuNTk2LS43NDIgNy4wMjNhNi41MzEgNi41MzEgMCAwIDEtMi45MTMgMi45MTNjLTEuNDI3Ljc0Mi0zLjMxMi43NDItNy4wMjMuNzQyaC03LjkzOGMtMy43MTEgMC01LjU5NiAwLTcuMDIzLS43NDJhNi41MzEgNi41MzEgMCAwIDEtMi45MTMtMi45MTNDMCAyNC4yMTIgMCAyMi4zODQgMCAxOC42MTZ2LTcuOTM4WiIgZmlsbD0iIzAwNTJGRiIvPjxwYXRoIGQ9Ik0xNC42ODQgMTkuNzczYy0yLjcyNyAwLTQuODY0LTIuMjk1LTQuODY0LTUuMTI2IDAtMi44MzEgMi4yMS01LjEyNyA0Ljg2NC01LjEyNyAyLjQzMiAwIDQuNDIyIDEuODM3IDQuNzkgNC4yODVoNC45MzhjLS40NDItNS4yOC00LjY0My05LjQxMS05LjcyOC05LjQxMS01LjM4IDAtOS44MDIgNC41OS05LjgwMiAxMC4yNTMgMCA1LjY2MiA0LjM0OCAxMC4yNTMgOS44MDIgMTAuMjUzIDUuMTU5IDAgOS4yODYtNC4xMzIgOS43MjgtOS40MTFoLTQuOTM4Yy0uMzY4IDIuNDQ4LTIuMzU4IDQuMjg0LTQuNzkgNC4yODRaIiBmaWxsPSIjZmZmIi8+PC9zdmc+":"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzIiIGhlaWdodD0iMzIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEuNDkyIDEwLjQxOWE4LjkzIDguOTMgMCAwMTguOTMtOC45M2gxMS4xNjNhOC45MyA4LjkzIDAgMDE4LjkzIDguOTN2MTEuMTYzYTguOTMgOC45MyAwIDAxLTguOTMgOC45M0gxMC40MjJhOC45MyA4LjkzIDAgMDEtOC45My04LjkzVjEwLjQxOXoiIGZpbGw9IiMxNjUyRjAiLz48cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZD0iTTEwLjQxOSAwSDIxLjU4QzI3LjMzNSAwIDMyIDQuNjY1IDMyIDEwLjQxOVYyMS41OEMzMiAyNy4zMzUgMjcuMzM1IDMyIDIxLjU4MSAzMkgxMC40MkM0LjY2NSAzMiAwIDI3LjMzNSAwIDIxLjU4MVYxMC40MkMwIDQuNjY1IDQuNjY1IDAgMTAuNDE5IDB6bTAgMS40ODhhOC45MyA4LjkzIDAgMDAtOC45MyA4LjkzdjExLjE2M2E4LjkzIDguOTMgMCAwMDguOTMgOC45M0gyMS41OGE4LjkzIDguOTMgMCAwMDguOTMtOC45M1YxMC40MmE4LjkzIDguOTMgMCAwMC04LjkzLTguOTNIMTAuNDJ6IiBmaWxsPSIjZmZmIi8+PHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiA
2wIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+",class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,s.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},r),(0,s.h)("div",{class:"-gear-container"},!l&&(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,r)=>(0,s.h)("div",{class:(0,o.default)("-cbwsdk-snackbar-instance-menu-item",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:e.onClick,key:r},(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,o.default)("-cbwsdk-snackbar-instance-menu-item-info",e.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},e.info)))))}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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}
2.-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}"},function(e,r,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.injectCssReset=void 0;let o=i(n(218));r.injectCssReset=function(){let e=document.createElement("style");e.type="text/css",e.appendChild(document.createTextNode(o.default)),document.documentElement.appendChild(e)}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.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}'},function(e,r,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,r,n,i){void 0===i&&(i=n),Object.defineProperty(e,i,{enumerable:!0,get:function(){return r[n]}})}:function(e,r,n,i){void 0===i&&(i=n),e[i]=r[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r}),s=this&&this.__decorate||function(e,r,n,i){var o,s=arguments.length,a=s<3?r:null===i?i=Object.getOwnPropertyDescriptor(r,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,r,n,i);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(a=(s<3?o(a):s>3?o(r,n,a):o(r,n))||a);return s>3&&a&&Object.defineProperty(r,n,a),a}
2,a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&i(r,e,n);return o(r,e),r},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(r,"__esModule",{value:!0}),r.WalletSDKRelay=void 0;let c=u(n(220)),l=n(87),h=n(70),d=n(101),f=n(90),p=n(221),y=n(225),b=n(67),g=n(38),m=a(n(226)),v=n(91),_=n(108),w=n(124),S=n(227),E=n(228),M=n(229),x=n(230);class k extends _.WalletSDKRelayAbstract{constructor(e){var r;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new h.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new h.Subscription,this.linkAPIUrl=e.linkAPIUrl,this.storage=e.storage,this.options=e;let{session:n,ui:i,connection:o}=this.subscribe();if(this._session=n,this.connection=o,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===(r=e.reloadOnDisconnect)||void 0===r||r,this.ui=i}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe(e=>{this.dappDefaultChain!==e&&(this.dappDefaultChain=e)}));let e=v.Session.load(this.storage)||new v.Session(this.storage).save(),r=new p.WalletSDKConnection(e.id,e.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(r.sessionConfig$.subscribe({next:e=>{this.onSessionConfigChanged(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(r.incomingEvent$.pipe((0,d.filter)(e=>"Web3Response"===e.event)).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(r.linked$.pipe((0,d.skip)(1),(0,d.tap)(e=>{var r;this.isLinked=e;let n=this.storage.getItem(_.LOCAL_STORAGE_ADDRESSES_KEY);if(e&&(this.session.linked=e),this.isUnlinkedErrorState=!1,n){let i=n.split(" "),o="true"===this.storage.getItem("IsStandaloneSigning");if(""!==i[0]&&!e&&this.session.linked&&!o){this.isUnlinkedErrorState=!0;let e=this.getSessionIdHash();null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:e})}}})).subscribe()),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>!!e.metadata&&"1"===e.metadata.__destroyed)).subscribe(()=>{var e;let n=r.isDestroyed;return null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()})),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>e.metadata&&void 0!==e.metadata.WalletUsername)).pipe((0,d.mergeMap)(r=>m.decrypt(r.metadata.WalletUsername,e.secret))).subscribe({next:e=>{this.storage.setItem(_.WALLET_USER_NAME_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>e.metadata&&void 0!==e.metadata.AppVersion)).pipe((0,d.mergeMap)(r=>m.decrypt(r.metadata.AppVersion,e.secret))).subscribe({next:e=>{this.storage.setItem(_.APP_VERSION_KEY,e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>e.metadata&&void 0!==e.metadata.ChainId&&void 0!==e.metadata.JsonRpcUrl)).pipe((0,d.mergeMap)(r=>(0,h.zip)(m.decrypt(r.metadata.ChainId,e.secret),m.decrypt(r.metadata.JsonRpcUrl,e.secret)))).pipe((0,d.distinctUntilChanged)()).subscribe({next:([e,r])=>{this.chainCallback&&this.chainCallback(e,r)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>e.metadata&&void 0!==e.metadata.EthereumAddress)).pipe((0,d.mergeMap)(r=>m.decrypt(r.metadata.EthereumAddress,e.secret))).subscribe({next:e=>{this.accountsCallback&&this.accountsCallback([e]),k.accountRequestCallbackIds.size>
20&&(Array.from(k.accountRequestCallbackIds.values()).forEach(r=>{let n=(0,x.Web3ResponseMessage)({id:r,response:(0,M.RequestEthereumAccountsResponse)([e])});this.invokeCallback(Object.assign(Object.assign({},n),{id:r}))}),k.accountRequestCallbackIds.clear())},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(r.sessionConfig$.pipe((0,d.filter)(e=>e.metadata&&void 0!==e.metadata.AppSrc)).pipe((0,d.mergeMap)(r=>m.decrypt(r.metadata.AppSrc,e.secret))).subscribe({next:e=>{this.ui.setAppSrc(e)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.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$:r.connected$,chainId$:this.dappDefaultChainSubject});return r.connect(),{session:e,ui:n,connection:r}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,d.timeout)(1e3),(0,d.catchError)(e=>(0,h.of)(null))).subscribe(e=>{var r,n,i;let o=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(e){null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(f.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();let s=v.Session.load(this.storage);if((null==s?void 0:s.id)===this._session.id?this.storage.clear():s&&(null===(i=this.diagnostic)||void 0===i||i.log(f.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:v.Session.hash(s.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0);let{session:a,ui:u,connection:c}=this.subscribe();this._session=a,this.connection=c,this.ui=u,o&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()},e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with "+e,sessionIdHash:this.getSessionIdHash()})})}setAppInfo(e,r){this.appName=e,this.appLogoUrl=r}getStorageItem(e){return this.storage.getItem(e)}get session(){return this._session}setStorageItem(e,r){this.storage.setItem(e,r)}signEthereumMessage(e,r,n,i){return this.sendRequest({method:w.Web3Method.signEthereumMessage,params:{message:(0,g.hexStringFromBuffer)(e,!0),address:r,addPrefix:n,typedDataJson:i||null}})}ethereumAddressFromSignedMessage(e,r,n){return this.sendRequest({method:w.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,g.hexStringFromBuffer)(e,!0),signature:(0,g.hexStringFromBuffer)(r,!0),addPrefix:n}})}signEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,g.bigIntStringFromBN)(e.weiValue),data:(0,g.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,g.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.gasPriceInWei?(0,g.bigIntStringFromBN)(e.gasPriceInWei):null,maxPriorityFeePerGas:e.gasPriceInWei?(0,g.bigIntStringFromBN)(e.gasPriceInWei):null,gasLimit:e.gasLimit?(0,g.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(e){return this.sendRequest({method:w.Web3Method.signEthereumTransaction,params:{fromAddress:e.fromAddress,toAddress:e.toAddress,weiValue:(0,g.bigIntStringFromBN)(e.weiValue),data:(0,g.hexStringFromBuffer)(e.data,!0),nonce:e.nonce,gasPriceInWei:e.gasPriceInWei?(0,g.bigIntStringFromBN)(e.gasPriceInWei):null,maxFeePerGas:e.maxFeePerGas?(0,g.bigIntStringFromBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:e.maxPriorityFeePerGas?(0,g.bigIntStringFromBN)(e.maxPriorityFeePerGas):null,gasLimit:e.gasLimit?(0,g.bigIntStringFromBN)(e.gasLimit):null,chainId:e.chainId,shouldSubmit:!0}})}submitEthereumTransaction(e,r){return this.sendRequest({method:w.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,g.hexStringFromBuffer)(e,!0),chainId:r}})}scanQRCode(e){return this.sendRequest({method:w.Web3Method.scanQRCode,params:{regExp:e}})}getQRCodeUrl(){return(0,g.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(e,r){return this.sendRequest({method:w.Web3Method.generic,params:{action:r,data:e}})}sendGenericMessage(e){return this.sendRequest(e)}sendRequest(e){let r=null,n=(0,g.randomBytesHex)(8),i=i=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,i),null==r||r()};return{promise:new Promise((o,s)=>{this.ui.isStandalone()||(r=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:i,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,e=>{if(null==r||r(),e.errorMessage)return s(Error(e.errorMessage));o(e)}),this.ui.isStandalone()?this.sendRequestStandalone(n,e):this.publishWeb3RequestEvent(n,e)}),cancel:i}}setConnectDisabled(e){this.ui.setConnectDisabled(e)}setAccountsCallback(e){this.accountsCallback=e}setChainCallback(e){this.chainCallback=e}setDappDefaultChainCallback(e){this.dappDefaultChainSubject.next(e)}publishWeb3RequestEvent(e,r){var n;let i=(0,E.Web3RequestMessage)({id:e,request:r}),o=v.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(f.EVENTS.WEB3_REQUEST,{eventId:i.id,method:"relay::"+i.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?v.Session.hash(o.id):"",isSessionMismatched:((null==o?void 0:o.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",i,!0).subscribe({next:e=>{var r;null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:i.id,method:"relay::"+i.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:o?v.Session.hash(o.id):"",isSessionMismatched:((null==o?void 0:o.id)!==this._session.id).toString()})},error:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:i.id,response:{method:i.request.method,errorMessage:e.message}}))}}))}publishWeb3RequestCanceledEvent(e){let r=(0,S.Web3RequestCanceledMessage)(e);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",r,!1).subscribe())}publishEvent(e,r,n){let i=this.session.secret;return new h.Observable(e=>{m.encrypt(JSON.stringify(Object.assign(Object.assign({},r),{origin:location.origin})),i).then(r=>{e.next(r),e.complete()})}).pipe((0,d.mergeMap)(r=>this.connection.publishEvent(e,r,n)))}handleIncomingEvent(e){try{this.subscriptions.add((0,h.from)(m.decrypt(e.data,this.session.secret)).pipe((0,d.map)(e=>JSON.parse(e))).subscribe({next:e=>{let r=(0,x.isWeb3ResponseMessage)(e)?e:null;r&&this.handleWeb3ResponseMessage(r)},error:()=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(f.EVENTS.GENERAL_ER
2ROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(e){return}}handleWeb3ResponseMessage(e){var r;let{response:n}=e;if(null===(r=this.diagnostic)||void 0===r||r.log(f.EVENTS.WEB3_RESPONSE,{eventId:e.id,method:"relay::"+n.method,sessionIdHash:this.getSessionIdHash()}),(0,M.isRequestEthereumAccountsResponse)(n))return k.accountRequestCallbackIds.forEach(r=>this.invokeCallback(Object.assign(Object.assign({},e),{id:r}))),void k.accountRequestCallbackIds.clear();this.invokeCallback(e)}handleErrorResponse(e,r,n,i){this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:e,response:(0,M.ErrorResponse)(r,(null!=n?n:y.WalletUIError.UserRejectedRequest).message,i)}))}invokeCallback(e){let r=this.relayEventManager.callbacks.get(e.id);r&&(r(e.response),this.relayEventManager.callbacks.delete(e.id))}requestEthereumAccounts(){let e={method:w.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},r=(0,g.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,e.method,n)};return{promise:new Promise((i,o)=>{var s;this.relayEventManager.callbacks.set(r,e=>{if(this.ui.hideRequestEthereumAccounts(),e.errorMessage)return o(Error(e.errorMessage));i(e)});let a=(null===(s=null==window?void 0:window.navigator)||void 0===s?void 0:s.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){let e;try{e=(0,g.isInIFrame)()&&window.top?window.top.location:window.location}catch(r){e=window.location}e.href="https://www.coinbase.com/connect-dapp?uri="+encodeURIComponent(e.href)}else{if(this.ui.inlineAccountsResponse())this.ui.requestEthereumAccounts({onCancel:n,onAccounts:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:r,response:(0,M.RequestEthereumAccountsResponse)(e)}))}});else{let e=l.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(e)})}k.accountRequestCallbackIds.add(r),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,e)}}),cancel:n}}selectProvider(e){let r={method:w.Web3Method.selectProvider,params:{providerOptions:e}},n=(0,g.randomBytesHex)(8);return{cancel:e=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,r.method,e)},promise:new Promise((r,i)=>{this.relayEventManager.callbacks.set(n,e=>{if(e.errorMessage)return i(Error(e.errorMessage));r(e)}),this.ui.selectProvider&&this.ui.selectProvider({onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,M.SelectProviderResponse)(e)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:n,response:(0,M.SelectProviderResponse)(b.ProviderType.Unselected)}))},providerOptions:e})})}}watchAsset(e,r,n,i,o,s){let a={method:w.Web3Method.watchAsset,params:{type:e,options:{address:r,symbol:n,decimals:i,image:o},chainId:s}},u=null,c=(0,g.randomBytesHex)(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==u||u()};return this.ui.inlineWatchAsset()||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{cancel:l,promise:new Promise((l,h)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return h(Error(e.errorMessage));l(e)}),this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,M.WatchAssetReponse)(!0)}))},onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,M.WatchAssetReponse)(!1)}))},type:e,address:r,symbol:n,decimals:i,image:o,chainId:s}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,a)})}}addEthereumChain(e,r,n,i,o,s){let a={method:w.Web3Method.addEthereumChain,params:{chainId:e,rpcUrls:r,blockExplorerUrls:i,chainName:o,iconUrls:n,nativeCurrency:s}},u=null,c=(0,g.randomBytesHex)(8),l=e=>{this.publishWeb3RequestCanceledEvent(c),this.handleErrorResponse(c,a.method,e),null==u||u()};return this.ui.inlineAddEthereumChain(e)||(u=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:l,onResetConnection:this.resetAndReload})),{promise:new Promise((r,n)=>{this.relayEventManager.callbacks.set(c,e=>{if(null==u||u(),e.errorMessage)return n(Error(e.errorMessage));r(e)}),this.ui.inlineAddEthereumChain(e)&&this.ui.addEthereumChain({onCancel:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,M.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:c,response:(0,M.AddEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:a.params.chainId,rpcUrls:a.params.rpcUrls,blockExplorerUrls:a.params.blockExplorerUrls,chainName:a.params.chainName,iconUrls:a.params.iconUrls,nativeCurrency:a.params.nativeCurrency}),this.ui.inlineAddEthereumChain(e)||this.ui.isStandalone()||this.publishWeb3RequestEvent(c,a)}),cancel:l}}switchEthereumChain(e,r){let n={method:w.Web3Method.switchEthereumChain,params:Object.assign({chainId:e},{address:r})},i=(0,g.randomBytesHex)(8);return{promise:new Promise((e,r)=>{this.relayEventManager.callbacks.set(i,n=>n.errorMessage&&n.errorCode?r(l.ethErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):n.errorMessage?r(Error(n.errorMessage)):void e(n)),this.ui.switchEthereumChain({onCancel:e=>{"number"==typeof e?this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:i,response:(0,M.ErrorResponse)(w.Web3Method.switchEthereumChain,y.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,e)})):e instanceof y.WalletUIError?this.handleErrorResponse(i,w.Web3Method.switchEthereumChain,e,e.errorCode):this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:i,response:(0,M.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:e=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:i,response:(0,M.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:e})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(i,n)}),cancel:e=>{this.publishWeb3RequestCanceledEvent(i),this.handleErrorResponse(i,n.method,e)}}}inlineAddEthereumChain(e){return this.ui.inlineAddEthereumChain(e)}getSessionIdHash(){return v.Session.hash(this._session.id)}sendRequestStandalone(e,r){let n=n=>{this.handleErrorResponse(e,r.method,n)},i=r=>{this.handleWeb3ResponseMessage((0,x.Web3ResponseMessage)({id:e,response:r}))};switch(r.method){case w.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:r,onSuccess:i,onCancel:n});break;case w.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case w.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:r,onSuccess:i,onCancel:n});break;case w.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:r,onSuccess:i});break;default:n()}}onSessionConfigChanged(e){}}k.accountRequestCallbackIds=new Set,s([c.default],k.prototype,"resetAndReload",null),s([c.default],k.prototype,"handleIncomingEvent",null),r.WalletSDKRelay=k},function(e,r,n){"use strict";var i,o;function s(e,r,n){if(!n||typeof n.value!==i.typeOfFunction)throw TypeError("Only methods can be decorated with @bind. <"+r+"> is not a method!");return{configurable:i.boolTrue,get:function(){var e=n.value.bind(this);return Object.defineProperty(this,r,{value:e,configurable:i.boolTrue,writable:i.boolTrue}),e}}}
2Object.defineProperty(r,"__esModule",{value:!0}),(o=i||(i={})).typeOfFunction="function",o.boolTrue=!0,r.bind=s,r.default=s},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletSDKConnection=void 0;let i=n(70),o=n(101),s=n(91),a=n(67),u=n(222),c=n(90),l=n(223),h=n(224);r.WalletSDKConnection=class{constructor(e,r,n,u,h=WebSocket){this.sessionId=e,this.sessionKey=r,this.diagnostic=u,this.subscriptions=new i.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=new i.BehaviorSubject(!1),this.linkedSubject=new i.BehaviorSubject(!1),this.sessionConfigSubject=new i.ReplaySubject(1);let d=new l.RxWebSocket(n+"/rpc",h);this.ws=d,this.subscriptions.add(d.connectionState$.pipe((0,o.tap)(r=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(c.EVENTS.CONNECTED_STATE_CHANGE,{state:r,sessionIdHash:s.Session.hash(e)})}),(0,o.skip)(1),(0,o.filter)(e=>e===l.ConnectionState.DISCONNECTED&&!this.destroyed),(0,o.delay)(5e3),(0,o.filter)(e=>!this.destroyed),(0,o.flatMap)(e=>d.connect()),(0,o.retry)()).subscribe()),this.subscriptions.add(d.connectionState$.pipe((0,o.skip)(2),(0,o.switchMap)(e=>(0,i.iif)(()=>e===l.ConnectionState.CONNECTED,this.authenticate().pipe((0,o.tap)(e=>this.sendIsLinked()),(0,o.tap)(e=>this.sendGetSessionConfig()),(0,o.map)(e=>!0)),(0,i.of)(!1))),(0,o.distinctUntilChanged)(),(0,o.catchError)(e=>(0,i.of)(!1))).subscribe(e=>this.connectedSubject.next(e))),this.subscriptions.add(d.connectionState$.pipe((0,o.skip)(1),(0,o.switchMap)(e=>(0,i.iif)(()=>e===l.ConnectionState.CONNECTED,(0,i.timer)(0,1e4)))).subscribe(e=>0===e?this.updateLastHeartbeat():this.heartbeat())),this.subscriptions.add(d.incomingData$.pipe((0,o.filter)(e=>"h"===e)).subscribe(e=>this.updateLastHeartbeat())),this.subscriptions.add(d.incomingJSONData$.pipe((0,o.filter)(e=>["IsLinkedOK","Linked"].includes(e.type))).subscribe(r=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.LINKED,{sessionIdHash:s.Session.hash(e),linked:r.linked,type:r.type,onlineGuests:r.onlineGuests}),this.linkedSubject.next(r.linked||r.onlineGuests>0)})),this.subscriptions.add(d.incomingJSONData$.pipe((0,o.filter)(e=>["GetSessionConfigOK","SessionConfigUpdated"].includes(e.type))).subscribe(r=>{var n;null===(n=this.diagnostic)||void 0===n||n.log(c.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:s.Session.hash(e),metadata_keys:r&&r.metadata?Object.keys(r.metadata):void 0}),this.sessionConfigSubject.next({webhookId:r.webhookId,webhookUrl:r.webhookUrl,metadata:r.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,o.filter)(e=>e),(0,o.take)(1),(0,o.map)(()=>{}))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,o.filter)(e=>e),(0,o.take)(1),(0,o.map)(()=>{}))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,o.filter)(e=>"Event"===e.type&&"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data),(0,o.map)(e=>e))}setSessionMetadata(e,r){let n=(0,u.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[e]:r}});return this.onceConnected$.pipe((0,o.flatMap)(e=>this.makeRequest(n)),(0,o.map)(e=>{if((0,h.isServerMessageFail)(e))throw Error(e.error||"failed to set session metadata")}))}publishEvent(e,r,n=!1){let i=(0,u.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:e,data:r,callWebhook:n});return this.onceLinked$.pipe((0,o.flatMap)(e=>
2this.makeRequest(i)),(0,o.map)(e=>{if((0,h.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();else try{this.ws.sendData("h")}catch(e){}}makeRequest(e,r=6e4){let n=e.id;try{this.sendData(e)}catch(e){return(0,i.throwError)(e)}return this.ws.incomingJSONData$.pipe((0,o.timeoutWith)(r,(0,i.throwError)(Error(`request ${n} timed out`))),(0,o.filter)(e=>e.id===n),(0,o.take)(1))}authenticate(){let e=(0,u.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(e).pipe((0,o.map)(e=>{if((0,h.isServerMessageFail)(e))throw Error(e.error||"failed to authentcate")}))}sendIsLinked(){let e=(0,u.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}sendGetSessionConfig(){let e=(0,u.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(e)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.ClientMessagePublishEvent=r.ClientMessageSetSessionConfig=r.ClientMessageGetSessionConfig=r.ClientMessageIsLinked=r.ClientMessageHostSession=void 0,r.ClientMessageHostSession=function(e){return Object.assign({type:"HostSession"},e)},r.ClientMessageIsLinked=function(e){return Object.assign({type:"IsLinked"},e)},r.ClientMessageGetSessionConfig=function(e){return Object.assign({type:"GetSessionConfig"},e)},r.ClientMessageSetSessionConfig=function(e){return Object.assign({type:"SetSessionConfig"},e)},r.ClientMessagePublishEvent=function(e){return Object.assign({type:"PublishEvent"},e)}},function(e,r,n){"use strict";var i,o;Object.defineProperty(r,"__esModule",{value:!0}),r.RxWebSocket=r.ConnectionState=void 0;let s=n(70),a=n(101);(o=i=r.ConnectionState||(r.ConnectionState={}))[o.DISCONNECTED=0]="DISCONNECTED",o[o.CONNECTING=1]="CONNECTING",o[o.CONNECTED=2]="CONNECTED",r.RxWebSocket=class{constructor(e,r=WebSocket){this.WebSocketClass=r,this.webSocket=null,this.connectionStateSubject=new s.BehaviorSubject(i.DISCONNECTED),this.incomingDataSubject=ne
2w 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 r;try{this.webSocket=r=new this.WebSocketClass(this.url)}catch(r){return void e.error(r)}this.connectionStateSubject.next(i.CONNECTING),r.onclose=r=>{this.clearWebSocket(),e.error(Error(`websocket error ${r.code}: ${r.reason}`)),this.connectionStateSubject.next(i.DISCONNECTED)},r.onopen=r=>{e.next(),e.complete(),this.connectionStateSubject.next(i.CONNECTED)},r.onmessage=e=>{this.incomingDataSubject.next(e.data)}}).pipe((0,a.take)(1))}disconnect(){let{webSocket:e}=this;if(e){this.clearWebSocket(),this.connectionStateSubject.next(i.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,a.flatMap)(e=>{let r;try{r=JSON.parse(e)}catch(e){return(0,s.empty)()}return(0,s.of)(r)}))}sendData(e){let{webSocket:r}=this;if(!r)throw Error("websocket is not connected");r.send(e)}clearWebSocket(){let{webSocket:e}=this;e&&(this.webSocket=null,e.onclose=null,e.onerror=null,e.onmessage=null,e.onopen=null)}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.isServerMessageFail=void 0,r.isServerMessageFail=function(e){return e&&"Fail"===e.type&&"number"==typeof e.id&&"string"==typeof e.sessionId&&"string"==typeof e.error}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletUIError=void 0;class i extends Error{constructor(e,r){super(e),this.message=e,this.errorCode=r}}r.WalletUIError=i,i.UserRejectedRequest=new i("User rejected request"),i.SwitchEthereumChainUnsupportedChainId=new i("Unsupported chainId",4902)},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.decrypt=r.encrypt=void 0;let i=n(38);r.encrypt=async function(e,r){if(64!==r.length)throw Error("secret must be 256 bits");let n=crypto.getRandomValues(new Uint8Array(12)),o=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),s=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},o,s.encode(e)),u=a.slice(a.byteLength-16),c=a.slice(0,a.byteLength-16),l=new Uint8Array(u),h=new Uint8Array(c),d=new Uint8Array([...n,...l,...h]);return(0,i.uint8ArrayToHex)(d)},r.decrypt=function(e,r){if(64!==r.length)throw Error("secret must be 256 bits");return new Promise((n,o)=>{!async function(){let s=await crypto.subtle.importKey("raw",(0,i.hexStringToUint8Array)(r),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,i.hexStringToUint8Array)(e),u=a.slice(0,12),c=a.slice(12,28),l=new Uint8Array([...a.slice(28),...c]),h={name:"AES-GCM",iv:new Uint8Array(u)};try{let e=await window.crypto.subtle.decrypt(h,s,l),r=new TextDecoder;n(r.decode(e))}catch(e){o(e)}}()})}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Web3RequestCanceledMessage=void 0;let i=n(100);r.Web3RequestCanceledMessage=function(e){return{type:i.RelayMessageType.WEB3_REQUEST_CANCELED,id:e}}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.Web3RequestMessage=void 0;let i=n(100);r.Web3RequestMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_REQUEST},e)}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.EthereumAddressFromSignedMessageResponse=r.SubmitEthereumTransactionResponse=r.SignEthereumTransactionResponse=r.SignEthereumMessageResponse=r.isRequestEthereumAccountsResponse=r.SelectProviderResponse=r.WatchAssetReponse=r.RequestEthereumAccountsResponse=r.SwitchEthereumChainResponse=r.AddEthereumChainResponse=r.ErrorResponse=void 0;let i=n(124);r.ErrorResponse=function(e,r,n){return{method:e,errorMessage:r,errorCode:n}},r.AddEthereumChainResponse=function(e){return{method:i.Web3Method.addEthereumChain,result:e}},r.SwitchEthereumChainResponse=function(e){return{method:i.Web3Method.switchEthereumChain,result:e}},r.RequestEthereumAccountsResponse=function(e){return{method:i.Web3Method.requestEthereumAccounts,result:e}},r.WatchAssetReponse=function(e){return{method:i.Web3Method.watchAsset,result:e}},r.SelectProviderResponse=function(e){return{method:i.Web3Method.selectProvider,result:e}},r.isRequestEthereumAccountsResponse=function(e){return e&&e.method===i.Web3Method.requestEthereumAccounts},r.SignEthereumMessageResponse=function(e){return{method:i.Web3Method.signEthereumMessage,result:e}},r.SignEthereumTransactionResponse=function(e){return{method:i.Web3Method.signEthereumTransaction,result:e}},r.SubmitEthereumTransactionResponse=function(e){return{method:i.Web3Method.submitEthereumTransaction,result:e}},r.EthereumAddressFromSignedMessageResponse=function(e){return{method:i.Web3Method.ethereumAddressFromSignedMessage,result:e}}},function(e,r,n){"use strict";
2Object.defineProperty(r,"__esModule",{value:!0}),r.isWeb3ResponseMessage=r.Web3ResponseMessage=void 0;let i=n(100);r.Web3ResponseMessage=function(e){return Object.assign({type:i.RelayMessageType.WEB3_RESPONSE},e)},r.isWeb3ResponseMessage=function(e){return e&&e.type===i.RelayMessageType.WEB3_RESPONSE}},function(e,r,n){"use strict";Object.defineProperty(r,"__esModule",{value:!0}),r.WalletSDKRelayEventManager=void 0;let i=n(38);r.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;let e=this._nextRequestId,r=(0,i.prepend0x)(e.toString(16));return this.callbacks.get(r)&&this.callbacks.delete(r),e}}},function(e){e.exports=JSON.parse('{"name":"@coinbase/wallet-sdk","version":"3.6.4","description":"Coinbase Wallet JavaScript SDK","keywords":["cipher","cipherbrowser","coinbase","coinbasewallet","eth","ether","ethereum","etherium","injection","toshi","wallet","walletlink","web3"],"main":"dist/index.js","types":"dist/index.d.ts","repository":"https://github.com/coinbase/coinbase-wallet-sdk.git","author":"Coinbase, Inc.","license":"Apache-2.0","scripts":{"pretest:unit":"node compile-assets.js","test:unit":"jest","test:unit:coverage":"yarn test:unit && open coverage/lcov-report/index.html","test:karma":"yarn build-npm && karma start","prebuild":"rm -rf ./build && node -p \\"\'export const LIB_VERSION = \' + JSON.stringify(require(\'./package.json\').version) + \';\'\\" > src/version.ts","build":"node compile-assets.js && webpack --config webpack.config.js","build-npm":"tsc -p ./tsconfig.build.json","build:dev":"export LINK_API_URL=\'http://localhost:3000\'; yarn build","build:dev:watch":"nodemon -e \'ts,tsx,js,json,css,scss,svg\' --ignore \'src/**/*-css.ts\' --ignore \'src/**/*-svg.ts\' --watch src/ --exec \'yarn build:dev\'","build:prod":"yarn prebuild && yarn build && yarn build-npm && cp ./package.json ../../README.md ./LICENSE build/npm && cp -a src/vendor-js build/npm/dist && sed -i.bak \'s| \\"private\\": true,||g\' build/npm/package.json && rm -f build/npm/package.json.bak","lint:types":"tsc --noEmit","lint:prettier":"prettier --check \\"{src,__tests__}/**/*.(js|ts|tsx)\\"","lint:eslint":"eslint ./src --ext .ts,.tsx","lint":"yarn lint:eslint && yarn lint:types && yarn lint:prettier","fix:eslint":"yarn lint:eslint --fix","fix:prettier":"prettier . --write","release":"./scripts/release.sh"},"dependencies":{"@metamask/safe-event-emitter":"2.0.0","@solana/web3.js":"^1.70.1","bind-decorator":"^1.0.11","bn.js":"^5.1.1","buffer":"^6.0.3","clsx":"^1.1.0","eth-block-tracker":"4.4.3","eth-json-rpc-filters":"5.1.0","eth-rpc-errors":"4.0.2","json-rpc-engine":"6.1.0","keccak":"^3.0.1","preact":"^10.5.9","qs":"^6.10.3","rxjs":"^6.6.3","sha.js":"^2.4.11","stream-browserify":"^3.0.0","util":"^0.12.4"},"devDependencies":{"@babel/core":"^7.17.9","@babel/plugin-proposal-decorators":"^7.17.9","@babel/plugin-transform-react-jsx":"^7.17.3","@babel/preset-env":"^7.16.11","@babel/preset-typescript":"^7.16.7","@peculiar/webcrypto":"^1.3.3","@testing-library/jest-dom":"^5.16.4","@testing-library/preact":"^2.0.1","@types/bn.js":"^4.11.6","@types/jest":"^27.4.1","@types/node":"^14.14.20","@types/qs":"^6.9.7","@types/sha.js":"^2.4.0","@typescript-eslint/eslint-plugin":"^5.7.0","@typescript-eslint/eslint-plugin-tslint":"^5.7.0","@typescript-eslint/parser":"^5.7.0","babel-jest":"^27.5.1","browserify":"17.0.0","copy-webpack-plugin":"^6.4.1","core-js":"^3.8.2","eslint":"^8.4.1","eslint-config-prettier":"^8.3.0","eslint-plugin-import":"^2.25.3","eslint-plugin-preact":"^0.1.0","eslint-plugin-prettier":"^4.0.0","eslint-plugin-simple-import-sort":"^7.0.0","jasmine":"3.8.0","jest":"^27.5.1","jest-chrome":"^0.7.2","jest-websocket-mock":"^2.3.0","karma":"^6.4.0","karma-browserify":"8.1.0","karma-chrome-launcher":"^3.1.0","karma-jasmine":"^4.0.1","nodemon":"^2.0.6","prettier":"^2.5.1","raw-loader":"^4.0.2","regenerator-runtime":"^0.13.7","sass":"^1.50.0","svgo":"^2.8.0","ts-jest":"^27.1.4","ts-loader":"^8.0.13","ts-node":"^10.7.0","tslib":"^2.0.3","typescript":"^4.1.3","watchify":"4.0.0","webpack":"^5.72.0","webpack-cli":"^4.9.2","whatwg-fetch":"^3.5.0"},"engines":{"node":">= 10.0.0"}}')},function(e,r,n){"use strict";
2function i(e,r,n,i){return new(n||(n=Promise))(function(o,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function u(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var r;e.done?o(e.value):((r=e.value)instanceof n?r:new n(function(e){e(r)})).then(a,u)}c((i=i.apply(e,r||[])).next())})}function o(e,r){var n,i,o,s,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[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]&&(a=0)),a;)try{if(n=1,i&&(o=2&u[0]?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,i=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!(o=(o=a.trys).length>0&&o[o.length-1])&&(6===u[0]||2===u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=r.call(e,a)}catch(e){u=[6,e],i=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}n.r(r),n.d(r,"Mutex",function(){return a}),n.d(r,"Semaphore",function(){return s}),n.d(r,"withTimeout",function(){return u}),"function"==typeof SuppressedError&&SuppressedError;var s=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,r=this.isLocked(),n=new Promise(function(r){return e._queue.push(r)});return r||this._dispatch(),n},e.prototype.runExclusive=function(e){return i(this,void 0,void 0,function(){var r,n,i;return o(this,function(o){switch(o.label){case 0:return[4,this.acquire()];case 1:n=(r=o.sent())[0],i=r[1],o.label=2;case 2:return o.trys.push([2,,4,5]),[4,e(n)];case 3:return[2,o.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,r=this._queue.shift();if(r){var n=!1;this._currentReleaser=function(){n||(n=!0,e._value++,e._dispatch())},r([this._value--,this._currentReleaser])}},e}(),a=function(){function e(){this._semaphore=new s(1)}return e.prototype.acquire=function(){return i(this,void 0,void 0,function(){return o(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}();function u(e,r,n){var s=this;return void 0===n&&(n=Error("timeout")),{acquire:function(){return new Promise(function(a,u){return i(s,void 0,void 0,function(){var i,s;return o(this,function(o){switch(o.label){case 0:return i=!1,setTimeout(function(){i=!0,u(n)},r),[4,e.acquire()];case 1:return s=o.sent(),i?(Array.isArray(s)?s[1]:s)():a(s),[2]}})})})},runExclusive:function(e){return i(this,void 0,void 0,function(){var r,n;return o(this,function(i){switch(i.label){case 0:r=function(){},i.label=1;case 1:return i.trys.push([1,,7,8]),[4,this.acquire()];case 2:return Array.isArray(n=i.sent())?(r=n[1],[4,e(n[0])]):[3,4];case 3:case 5:return[2,i.sent()];case 4:return r=n,[4,e()];case 6:return[3,8];case 7:return r(),[7];case 8:return[2]}})})},release:function(){e.release()},isLocked:function(){return e.isLocked()}}}}]);void 0===i&&console.error("esm-webpack-plugin: nothing exported!"),i.CoinbaseWalletProvider;let o=i.CoinbaseWalletSDK}}]);
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.