diff --git a/dev.html b/dev.html index 2b07b3a4..4d3859cc 100644 --- a/dev.html +++ b/dev.html @@ -16,15 +16,15 @@ - - + + - + diff --git a/dist/esm/index.bundle.js b/dist/esm/index.bundle.js index d01b5e2b..7f871187 100644 --- a/dist/esm/index.bundle.js +++ b/dist/esm/index.bundle.js @@ -1,14 +1,14 @@ -function t(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var n=1;nt.length)&&(e=t.length);for(var n=0,r=new Array(e);n1)for(var n=1;n=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function z(t){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){P(o,r,i,a,s,"next",t)}function s(t){P(o,r,i,a,s,"throw",t)}a(void 0)}))}}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z(t)}function X(t){var e=V();return function(){var n,r=W(t);if(e){var i=W(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return J(this,n)}}function K(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=W(t)););return t}function $(){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=K(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function tt(t,e){return nt(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||it(t,e)||at()}function et(t){return function(t){if(Array.isArray(t))return ot(t)}(t)||rt(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(t){if(Array.isArray(t))return t}function rt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function it(t,e){if(t){if("string"==typeof t)return ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(t,e):void 0}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var ut={},ct=void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lt=[],ht=[],dt="undefined"!=typeof Uint8Array?Uint8Array:Array,ft=!1;function pt(){ft=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e>18&63]+lt[i>>12&63]+lt[i>>6&63]+lt[63&i]);return o.join("")}function mt(t){var e;ft||pt();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(e=t[n-1],i+=lt[e>>2],i+=lt[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=lt[e>>10],i+=lt[e>>4&63],i+=lt[e<<2&63],i+="="),o.push(i),o.join("")}function gt(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)}function vt(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}var wt={}.toString,bt=Array.isArray||function(t){return"[object Array]"==wt.call(t)};Nt.TYPED_ARRAY_SUPPORT=void 0===ct.TYPED_ARRAY_SUPPORT||ct.TYPED_ARRAY_SUPPORT;var Mt=At();function At(){return Nt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function It(t,e){if(At()=At())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+At().toString(16)+" bytes");return 0|t}function St(t){return!(null==t||!t._isBuffer)}function jt(t,e){if(St(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return re(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ie(t).length;default:if(r)return re(t).length;e=(""+e).toLowerCase(),r=!0}}function Dt(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ht(this,e,n);case"utf8":case"utf-8":return Wt(this,e,n);case"ascii":return Ft(this,e,n);case"latin1":case"binary":return Vt(this,e,n);case"base64":return Yt(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Ct(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Ot(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Nt.from(e,r)),St(e))return 0===e.length?-1:zt(t,e,n,r,i);if("number"==typeof e)return e&=255,Nt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):zt(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function zt(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Yt(t,e,n){return 0===e&&n===t.length?mt(t):mt(t.slice(e,n))}function Wt(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},Nt.prototype.compare=function(t,e,n,r,i){if(!St(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Pt(this,t,e,n);case"utf8":case"utf-8":return _t(this,t,e,n);case"ascii":return Bt(this,t,e,n);case"latin1":case"binary":return Rt(this,t,e,n);case"base64":return Ut(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Nt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ft(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function Zt(t,e,n,r,i,o){if(!St(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function Jt(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function Xt(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function Kt(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $t(t,e,n,r,i){return i||Kt(t,0,n,4),vt(t,e,n,r,23,4),n+4}function te(t,e,n,r,i){return i||Kt(t,0,n,8),vt(t,e,n,r,52,8),n+8}Nt.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},Nt.prototype.readUInt8=function(t,e){return e||qt(t,1,this.length),this[t]},Nt.prototype.readUInt16LE=function(t,e){return e||qt(t,2,this.length),this[t]|this[t+1]<<8},Nt.prototype.readUInt16BE=function(t,e){return e||qt(t,2,this.length),this[t]<<8|this[t+1]},Nt.prototype.readUInt32LE=function(t,e){return e||qt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Nt.prototype.readUInt32BE=function(t,e){return e||qt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Nt.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||qt(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},Nt.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||qt(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Nt.prototype.readInt8=function(t,e){return e||qt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Nt.prototype.readInt16LE=function(t,e){e||qt(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Nt.prototype.readInt16BE=function(t,e){e||qt(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Nt.prototype.readInt32LE=function(t,e){return e||qt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Nt.prototype.readInt32BE=function(t,e){return e||qt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Nt.prototype.readFloatLE=function(t,e){return e||qt(t,4,this.length),gt(this,t,!0,23,4)},Nt.prototype.readFloatBE=function(t,e){return e||qt(t,4,this.length),gt(this,t,!1,23,4)},Nt.prototype.readDoubleLE=function(t,e){return e||qt(t,8,this.length),gt(this,t,!0,52,8)},Nt.prototype.readDoubleBE=function(t,e){return e||qt(t,8,this.length),gt(this,t,!1,52,8)},Nt.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Zt(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Nt.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,1,255,0),Nt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Nt.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Jt(this,t,e,!0),e+2},Nt.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Jt(this,t,e,!1),e+2},Nt.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Xt(this,t,e,!0),e+4},Nt.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xt(this,t,e,!1),e+4},Nt.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},Nt.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Nt.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,1,127,-128),Nt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Nt.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Jt(this,t,e,!0),e+2},Nt.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Jt(this,t,e,!1),e+2},Nt.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,2147483647,-2147483648),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Xt(this,t,e,!0),e+4},Nt.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xt(this,t,e,!1),e+4},Nt.prototype.writeFloatLE=function(t,e,n){return $t(this,t,e,!0,n)},Nt.prototype.writeFloatBE=function(t,e,n){return $t(this,t,e,!1,n)},Nt.prototype.writeDoubleLE=function(t,e,n){return te(this,t,e,!0,n)},Nt.prototype.writeDoubleBE=function(t,e,n){return te(this,t,e,!1,n)},Nt.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Nt.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ie(t){return function(t){var e,n,r,i,o,a;ft||pt();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new dt(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=ht[t.charCodeAt(e)]<<2|ht[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=ht[t.charCodeAt(e)]<<10|ht[t.charCodeAt(e+1)]<<4|ht[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(ee,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function oe(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ae(t){return null!=t&&(!!t._isBuffer||se(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&se(t.slice(0,0))}(t))}function se(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ue=Object.freeze({__proto__:null,Buffer:Nt,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),Nt.alloc(+t)},isBuffer:ae,kMaxLength:Mt});function ce(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("Wrong positive integer: ".concat(t))}function le(t){return t instanceof Uint8Array||null!=t&&"object"===z(t)&&"Uint8Array"===t.constructor.name}function he(t){if(!le(t))throw new Error("Expected Uint8Array");for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&!n.includes(t.length))throw new Error("Expected Uint8Array of length ".concat(n,", not of length=").concat(t.length))}function de(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function fe(t,e){he(t);var n=e.outputLen;if(t.length>>e};if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function we(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got ".concat(z(t)));return new Uint8Array((new TextEncoder).encode(t))}function be(t){if("string"==typeof t&&(t=we(t)),!me(t))throw new Error("expected Uint8Array, got ".concat(z(t)));return t}function Me(){for(var t=0,e=0;e0&&void 0!==arguments[0]?arguments[0]:32;if(pe&&"function"==typeof pe.getRandomValues)return pe.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}var Ee=function(t){Y(n,Ae);var e=X(n);function n(t,r,i,o){var a;return B(this,n),(a=e.call(this)).blockLen=t,a.outputLen=r,a.padOffset=i,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(t),a.view=ge(a.buffer),a}return U(n,[{key:"update",value:function(t){de(this);for(var e=this.view,n=this.buffer,r=this.blockLen,i=(t=be(t)).length,o=0;or-o&&(this.process(n,0),o=0);for(var a=o;a>i&o),s=Number(n&o),u=r?4:0,c=r?0:4;t.setUint32(e+u,a,r),t.setUint32(e+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);var s=ge(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var c=u/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(var h=0;h1&&void 0!==arguments[1]&&arguments[1];return e?{h:Number(t&xe),l:Number(t>>ke&xe)}:{h:0|Number(t>>ke&xe),l:0|Number(t&xe)}}function Le(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(t.length),r=new Uint32Array(t.length),i=0;i>>32-n},je=function(t,e,n){return e<>>32-n},De=function(t,e,n){return e<>>64-n},Ce=function(t,e,n){return t<>>64-n};var Oe={fromBig:Te,split:Le,toBig:function(t,e){return BigInt(t>>>0)<>>0)},shrSH:function(t,e,n){return t>>>n},shrSL:function(t,e,n){return t<<32-n|e>>>n},rotrSH:function(t,e,n){return t>>>n|e<<32-n},rotrSL:function(t,e,n){return t<<32-n|e>>>n},rotrBH:function(t,e,n){return t<<64-n|e>>>n-32},rotrBL:function(t,e,n){return t>>>n-32|e<<64-n},rotr32H:function(t,e){return e},rotr32L:function(t,e){return t},rotlSH:Se,rotlSL:je,rotlBH:De,rotlBL:Ce,add:function(t,e,n,r){var i=(e>>>0)+(r>>>0);return{h:t+n+(i/Math.pow(2,32)|0)|0,l:0|i}},add3L:function(t,e,n){return(t>>>0)+(e>>>0)+(n>>>0)},add3H:function(t,e,n,r){return e+n+r+(t/Math.pow(2,32)|0)|0},add4L:function(t,e,n,r){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)},add4H:function(t,e,n,r,i){return e+n+r+i+(t/Math.pow(2,32)|0)|0},add5H:function(t,e,n,r,i,o){return e+n+r+i+o+(t/Math.pow(2,32)|0)|0},add5L:function(t,e,n,r,i){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0)}},ze=tt(function(){return Oe.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((function(t){return BigInt(t)})))}(),2),Pe=ze[0],_e=ze[1],Be=new Uint32Array(80),Re=new Uint32Array(80),Ue=function(t){Y(n,Ee);var e=X(n);function n(){var t;return B(this,n),(t=e.call(this,128,64,16,!1)).Ah=1779033703,t.Al=-205731576,t.Bh=-1150833019,t.Bl=-2067093701,t.Ch=1013904242,t.Cl=-23791573,t.Dh=-1521486534,t.Dl=1595750129,t.Eh=1359893119,t.El=-1377402159,t.Fh=-1694144372,t.Fl=725511199,t.Gh=528734635,t.Gl=-79577749,t.Hh=1541459225,t.Hl=327033209,t}return U(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(t,e,n,r,i,o,a,s,u,c,l,h,d,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|h,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}},{key:"process",value:function(t,e){for(var n=0;n<16;n++,e+=4)Be[n]=t.getUint32(e),Re[n]=t.getUint32(e+=4);for(var r=16;r<80;r++){var i=0|Be[r-15],o=0|Re[r-15],a=Oe.rotrSH(i,o,1)^Oe.rotrSH(i,o,8)^Oe.shrSH(i,o,7),s=Oe.rotrSL(i,o,1)^Oe.rotrSL(i,o,8)^Oe.shrSL(i,o,7),u=0|Be[r-2],c=0|Re[r-2],l=Oe.rotrSH(u,c,19)^Oe.rotrBH(u,c,61)^Oe.shrSH(u,c,6),h=Oe.rotrSL(u,c,19)^Oe.rotrBL(u,c,61)^Oe.shrSL(u,c,6),d=Oe.add4L(s,h,Re[r-7],Re[r-16]),f=Oe.add4H(d,a,l,Be[r-7],Be[r-16]);Be[r]=0|f,Re[r]=0|d}for(var p=this.Ah,y=this.Al,m=this.Bh,g=this.Bl,v=this.Ch,w=this.Cl,b=this.Dh,M=this.Dl,A=this.Eh,I=this.El,N=this.Fh,E=this.Fl,x=this.Gh,k=this.Gl,T=this.Hh,L=this.Hl,S=0;S<80;S++){var j=Oe.rotrSH(A,I,14)^Oe.rotrSH(A,I,18)^Oe.rotrBH(A,I,41),D=Oe.rotrSL(A,I,14)^Oe.rotrSL(A,I,18)^Oe.rotrBL(A,I,41),C=A&N^~A&x,O=I&E^~I&k,z=Oe.add5L(L,D,O,_e[S],Re[S]),P=Oe.add5H(z,T,j,C,Pe[S],Be[S]),_=0|z,B=Oe.rotrSH(p,y,28)^Oe.rotrBH(p,y,34)^Oe.rotrBH(p,y,39),R=Oe.rotrSL(p,y,28)^Oe.rotrBL(p,y,34)^Oe.rotrBL(p,y,39),U=p&m^p&v^m&v,Q=y&g^y&w^g&w;T=0|x,L=0|k,x=0|N,k=0|E,N=0|A,E=0|I;var Y=Oe.add(0|b,0|M,0|P,0|_);A=Y.h,I=Y.l,b=0|v,M=0|w,v=0|m,w=0|g,m=0|p,g=0|y;var W=Oe.add3L(_,R,Q);p=Oe.add3H(W,P,B,U),y=0|W}var F=Oe.add(0|this.Ah,0|this.Al,0|p,0|y);p=F.h,y=F.l;var V=Oe.add(0|this.Bh,0|this.Bl,0|m,0|g);m=V.h,g=V.l;var H=Oe.add(0|this.Ch,0|this.Cl,0|v,0|w);v=H.h,w=H.l;var G=Oe.add(0|this.Dh,0|this.Dl,0|b,0|M);b=G.h,M=G.l;var q=Oe.add(0|this.Eh,0|this.El,0|A,0|I);A=q.h,I=q.l;var Z=Oe.add(0|this.Fh,0|this.Fl,0|N,0|E);N=Z.h,E=Z.l;var J=Oe.add(0|this.Gh,0|this.Gl,0|x,0|k);x=J.h,k=J.l;var X=Oe.add(0|this.Hh,0|this.Hl,0|T,0|L);T=X.h,L=X.l,this.set(p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L)}},{key:"roundClean",value:function(){Be.fill(0),Re.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(),Qe=Ie((function(){return new Ue})),Ye=BigInt(0),We=BigInt(1),Fe=BigInt(2);function Ve(t){return t instanceof Uint8Array||null!=t&&"object"===z(t)&&"Uint8Array"===t.constructor.name}var He=Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));function Ge(t){if(!Ve(t))throw new Error("Uint8Array expected");for(var e="",n=0;n=Je&&t<=Xe?t-Je:t>=Ke&&t<=$e?t-(Ke-10):t>=tn&&t<=en?t-(tn-10):void 0}function rn(t){if("string"!=typeof t)throw new Error("hex string expected, got "+z(t));var e=t.length,n=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);for(var r=new Uint8Array(n),i=0,o=0;i0&&void 0!==arguments[0]?arguments[0]:dn();i=s(fn([0]),t),r=s(),0!==t.length&&(i=s(fn([1]),t),r=s())},c=function(){if(o++>=1e3)throw new Error("drbg: tried 1000 values");for(var t=0,n=[];t2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,n,r){var i=yn[n];if("function"!=typeof i)throw new Error('Invalid validator "'.concat(n,'", expected function'));var o=t[e];if(!(r&&void 0===o||i(o,t)))throw new Error("Invalid param ".concat(String(e),"=").concat(o," (").concat(z(o),"), expected ").concat(n))},i=0,o=Object.entries(e);iYe;t>>=We,e+=1);return e},bitGet:function(t,e){return t>>BigInt(e)&We},bitSet:function(t,e,n){return t|(n?We:Ye)<=vn?n:e+n}function xn(t,e,n){if(n<=vn||e 0");if(n===wn)return vn;for(var r=wn;e>vn;)e&wn&&(r=r*t%n),t=t*t%n,e>>=wn;return r}function kn(t,e,n){for(var r=t;e-- >vn;)r*=r,r%=n;return r}function Tn(t,e){if(t===vn||e<=vn)throw new Error("invert: expected positive integers, got n=".concat(t," mod=").concat(e));for(var n=En(t,e),r=e,i=vn,o=wn;n!==vn;){var a=r%n,s=i-o*(r/n);r=n,n=a,i=o,o=s}if(r!==wn)throw new Error("invert: does not exist");return En(i,e)}function Ln(t){if(t%An===Mn){var e=(t+wn)/An;return function(t,n){var r=t.pow(n,e);if(!t.eql(t.sqr(r),n))throw new Error("Cannot find square root");return r}}if(t%Nn===In){var n=(t-In)/Nn;return function(t,e){var r=t.mul(e,bn),i=t.pow(r,n),o=t.mul(e,i),a=t.mul(t.mul(o,bn),i),s=t.mul(o,t.sub(a,t.ONE));if(!t.eql(t.sqr(s),e))throw new Error("Cannot find square root");return s}}return function(t){var e,n,r,i=(t-wn)/bn;for(e=t-wn,n=0;e%bn===vn;e/=bn,n++);for(r=bn;r 0");if(n===vn)return t.ONE;if(n===wn)return e;for(var r=t.ONE,i=e;n>vn;)n&wn&&(r=t.mul(r,i)),i=t.sqr(i),n>>=wn;return r}function Dn(t,e){var n=new Array(e.length),r=e.reduce((function(e,r,i){return t.is0(r)?e:(n[i]=e,t.mul(e,r))}),t.ONE),i=t.inv(r);return e.reduceRight((function(e,r,i){return t.is0(r)?e:(n[i]=t.mul(e,n[i]),t.mul(e,r))}),i),n}function Cn(t,e){var n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function On(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t<=vn)throw new Error("Expected Field ORDER > 0, got ".concat(t));var i=Cn(t,e),o=i.nBitLength,a=i.nByteLength;if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");var s=Ln(t),u=Object.freeze({ORDER:t,BITS:o,BYTES:a,MASK:hn(o),ZERO:vn,ONE:wn,create:function(e){return En(e,t)},isValid:function(e){if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got ".concat(z(e)));return vn<=e&&e_n;)n&Bn&&(r=r.add(i)),i=i.double(),n>>=Bn;return r},precomputeWindow:function(t,e){for(var n=r(e),i=n.windows,o=n.windowSize,a=[],s=t,u=s,c=0;c>=f,m>u&&(m-=d,o+=Bn);var g=y,v=y+Math.abs(m)-1,w=p%2!=0,b=m<0;0===m?l=l.add(n(w,i[g])):c=c.add(n(b,i[v]))}return{p:c,f:l}},wNAFCached:function(t,e,n,r){var i=t._WINDOW_SIZE||1,o=e.get(t);return o||(o=this.precomputeWindow(t,i),1!==i&&e.set(t,r(o))),this.wNAF(i,o,n)}}}function Un(t){return mn(t.Fp,Sn.reduce((function(t,e){return t[e]="function",t}),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),mn(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(C(C(C({},Cn(t.n,t.nBitLength)),t),{p:t.Fp.ORDER}))}var Qn=BigInt(0),Yn=BigInt(1),Wn=BigInt(2),Fn=BigInt(8),Vn={zip215:!0};function Hn(t){var e,n,r=(n=Un(e=t),mn(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze(C({},n))),i=r.Fp,o=r.n,a=r.prehash,s=r.hash,u=r.randomBytes,c=r.nByteLength,l=r.h,h=Wn<1&&void 0!==arguments[1]&&arguments[1],o=r.d,a=r.a,s=i.BYTES,u=(e=cn("pointHex",e,s)).slice(),c=e[s-1];u[s-1]=-129&c;var l=an(u);l===Qn||w(l,n?h:i.ORDER);var p=d(l*l),y=d(p-Yn),m=d(o*p-a),g=f(y,m),v=g.isValid,b=g.value;if(!v)throw new Error("Point.fromHex: invalid y coordinate");var M=(b&Yn)===Yn,A=0!=(128&c);if(!n&&b===Qn&&A)throw new Error("Point.fromHex: x=0 and x_0=1");return A!==M&&(b=d(-b)),t.fromAffine({x:b,y:l})}},{key:"fromPrivateKey",value:function(t){return L(t).point}}]),t}();I.BASE=new I(r.Gx,r.Gy,Yn,d(r.Gx*r.Gy)),I.ZERO=new I(Qn,Yn,Yn,Qn);var N=I.BASE,E=I.ZERO,x=Rn(I,8*c);function k(t){return En(t,o)}function T(t){return k(an(t))}function L(t){var e=c;t=cn("private key",t,e);var n=cn("hashed private key",s(t),2*e),r=p(n.slice(0,e)),i=n.slice(e,2*e),o=T(r),a=N.multiply(o),u=a.toRawBytes();return{head:r,prefix:i,scalar:o,point:a,pointBytes:u}}function S(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,e=arguments.length,n=new Array(e>1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};t=cn("message",t),a&&(t=a(t));var r=L(e),o=r.prefix,s=r.scalar,u=r.pointBytes,l=S(n.context,o,t),h=N.multiply(l).toRawBytes(),d=S(n.context,h,u,t),f=k(l+d*s);b(f);var p=ln(h,un(f,i.BYTES));return cn("result",p,2*c)},verify:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,o=r.context,s=r.zip215,u=i.BYTES;t=cn("signature",t,2*u),e=cn("message",e),a&&(e=a(e));var c,l,h,d=an(t.slice(u,2*u));try{c=I.fromHex(n,s),l=I.fromHex(t.slice(0,u),s),h=N.multiplyUnsafe(d)}catch(t){return!1}if(!s&&c.isSmallOrder())return!1;var f=S(o,l.toRawBytes(),c.toRawBytes(),e),p=l.add(c.multiplyUnsafe(f));return p.subtract(h).clearCofactor().equals(I.ZERO)},ExtendedPoint:I,utils:{getExtendedPublicKey:L,randomPrivateKey:function(){return u(i.BYTES)},precompute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.BASE;return e._setWindowSize(t),e.multiply(BigInt(3)),e}}}}var Gn=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),qn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);var Zn=BigInt(1),Jn=BigInt(2),Xn=BigInt(5),Kn=BigInt(10),$n=BigInt(20),tr=BigInt(40),er=BigInt(80);var nr=On(Gn,void 0,!0),rr={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:nr,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Qe,randomBytes:Ne,adjustScalarBytes:function(t){return t[0]&=248,t[31]&=127,t[31]|=64,t},uvRatio:function(t,e){var n=Gn,r=En(e*e*e,n),i=En(r*r*e,n),o=En(t*r*function(t){var e=Gn,n=t*t%e*t%e,r=kn(n,Jn,e)*n%e,i=kn(r,Zn,e)*t%e,o=kn(i,Xn,e)*i%e,a=kn(o,Kn,e)*o%e,s=kn(a,$n,e)*a%e,u=kn(s,tr,e)*s%e,c=kn(u,er,e)*u%e,l=kn(c,er,e)*u%e,h=kn(l,Kn,e)*o%e;return{pow_p_5_8:kn(h,Jn,e)*t%e,b2:n}}(t*i).pow_p_5_8,n),a=En(e*o*o,n),s=o,u=En(o*qn,n),c=a===t,l=a===En(-t,n),h=a===En(-t*qn,n);return c&&(o=s),(l||h)&&(o=u),(En(o,n)&wn)===wn&&(o=En(-o,n)),{isValid:c||l,value:o}}},ir=Hn(rr);function or(t,e,n){if(e.length>255)throw new Error("Context is too big");return Me(we("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}C(C({},rr),{},{domain:or}),C(C({},rr),{},{domain:or,prehash:Qe});var ar=(nr.ORDER+BigInt(3))/BigInt(8);nr.pow(Jn,ar),nr.sqrt(nr.neg(nr.ONE)),nr.ORDER,BigInt(5),BigInt(8),BigInt(486662),function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");var n=t.sqrt(e);t.isOdd(n)&&t.neg(n)}(nr,nr.neg(BigInt(486664))),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var sr={exports:{}},ur=j(ue);!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(sr,L);var cr=sr.exports,lr={exports:{}}; +O=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},i=r.iterator||"@@iterator",o=r.asyncIterator||"@@asyncIterator",a=r.toStringTag||"@@toStringTag";function s(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,n){return t[e]=n}}function u(t,e,n,r){var i=e&&e.prototype instanceof h?e:h,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return E()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=b(a,n);if(s){if(s===l)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=c(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===l)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function c(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=u;var l={};function h(){}function d(){}function f(){}var p={};s(p,i,(function(){return this}));var y=Object.getPrototypeOf,m=y&&y(y(N([])));m&&m!==e&&n.call(m,i)&&(p=m);var g=f.prototype=h.prototype=Object.create(p);function v(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function w(t,e){function r(i,o,a,s){var u=c(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==typeof h&&n.call(h,"__await")?e.resolve(h.__await).then((function(t){r("next",t,a,s)}),(function(t){r("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return r("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,n){function o(){return new e((function(e,i){r(t,n,e,i)}))}return i=i?i.then(o,o):o()}}function b(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,b(t,e),"throw"===e.method))return l;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return l}var r=c(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,l;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,l):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,l)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function N(t){if(t){var e=t[i];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,o=function e(){for(;++r=0;--i){var o=this.tryEntries[i],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var s=n.call(o,"catchLoc"),u=n.call(o,"finallyLoc");if(s&&u){if(this.prev=0;--r){var i=this.tryEntries[r];if(i.tryLoc<=this.prev&&n.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),A(n),l}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;A(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:N(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),l}},t}function z(t){return(z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function P(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function _(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){P(o,r,i,a,s,"next",t)}function s(t){P(o,r,i,a,s,"throw",t)}a(void 0)}))}}function B(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function R(t,e){for(var n=0;n=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function Z(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function J(t,e){if(e&&("object"==typeof e||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Z(t)}function X(t){var e=V();return function(){var n,r=W(t);if(e){var i=W(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return J(this,n)}}function K(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=W(t)););return t}function $(){return($="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var r=K(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(arguments.length<3?t:n):i.value}}).apply(this,arguments)}function tt(t,e){return nt(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null==n)return;var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}(t,e)||it(t,e)||at()}function et(t){return function(t){if(Array.isArray(t))return ot(t)}(t)||rt(t)||it(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function nt(t){if(Array.isArray(t))return t}function rt(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function it(t,e){if(t){if("string"==typeof t)return ot(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ot(t,e):void 0}}function ot(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}var ut={},ct=void 0!==r?r:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},lt=[],ht=[],dt="undefined"!=typeof Uint8Array?Uint8Array:Array,ft=!1;function pt(){ft=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e>18&63]+lt[i>>12&63]+lt[i>>6&63]+lt[63&i]);return o.join("")}function mt(t){var e;ft||pt();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(e=t[n-1],i+=lt[e>>2],i+=lt[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=lt[e>>10],i+=lt[e>>4&63],i+=lt[e<<2&63],i+="="),o.push(i),o.join("")}function gt(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)}function vt(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}var wt={}.toString,bt=Array.isArray||function(t){return"[object Array]"==wt.call(t)};Nt.TYPED_ARRAY_SUPPORT=void 0===ct.TYPED_ARRAY_SUPPORT||ct.TYPED_ARRAY_SUPPORT;var Mt=At();function At(){return Nt.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function It(t,e){if(At()=At())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+At().toString(16)+" bytes");return 0|t}function St(t){return!(null==t||!t._isBuffer)}function jt(t,e){if(St(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return re(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return ie(t).length;default:if(r)return re(t).length;e=(""+e).toLowerCase(),r=!0}}function Ct(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Ht(this,e,n);case"utf8":case"utf-8":return Wt(this,e,n);case"ascii":return Ft(this,e,n);case"latin1":case"binary":return Vt(this,e,n);case"base64":return Yt(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Gt(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function Dt(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function Ot(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=Nt.from(e,r)),St(e))return 0===e.length?-1:zt(t,e,n,r,i);if("number"==typeof e)return e&=255,Nt.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):zt(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function zt(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Yt(t,e,n){return 0===e&&n===t.length?mt(t):mt(t.slice(e,n))}function Wt(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},Nt.prototype.compare=function(t,e,n,r,i){if(!St(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return Pt(this,t,e,n);case"utf8":case"utf-8":return _t(this,t,e,n);case"ascii":return Bt(this,t,e,n);case"latin1":case"binary":return Rt(this,t,e,n);case"base64":return Ut(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Qt(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},Nt.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ft(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function Zt(t,e,n,r,i,o){if(!St(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function Jt(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function Xt(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function Kt(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function $t(t,e,n,r,i){return i||Kt(t,0,n,4),vt(t,e,n,r,23,4),n+4}function te(t,e,n,r,i){return i||Kt(t,0,n,8),vt(t,e,n,r,52,8),n+8}Nt.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},Nt.prototype.readUInt8=function(t,e){return e||qt(t,1,this.length),this[t]},Nt.prototype.readUInt16LE=function(t,e){return e||qt(t,2,this.length),this[t]|this[t+1]<<8},Nt.prototype.readUInt16BE=function(t,e){return e||qt(t,2,this.length),this[t]<<8|this[t+1]},Nt.prototype.readUInt32LE=function(t,e){return e||qt(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},Nt.prototype.readUInt32BE=function(t,e){return e||qt(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},Nt.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||qt(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},Nt.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||qt(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},Nt.prototype.readInt8=function(t,e){return e||qt(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},Nt.prototype.readInt16LE=function(t,e){e||qt(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},Nt.prototype.readInt16BE=function(t,e){e||qt(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},Nt.prototype.readInt32LE=function(t,e){return e||qt(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},Nt.prototype.readInt32BE=function(t,e){return e||qt(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},Nt.prototype.readFloatLE=function(t,e){return e||qt(t,4,this.length),gt(this,t,!0,23,4)},Nt.prototype.readFloatBE=function(t,e){return e||qt(t,4,this.length),gt(this,t,!1,23,4)},Nt.prototype.readDoubleLE=function(t,e){return e||qt(t,8,this.length),gt(this,t,!0,52,8)},Nt.prototype.readDoubleBE=function(t,e){return e||qt(t,8,this.length),gt(this,t,!1,52,8)},Nt.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Zt(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},Nt.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,1,255,0),Nt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},Nt.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Jt(this,t,e,!0),e+2},Nt.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,65535,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Jt(this,t,e,!1),e+2},Nt.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Xt(this,t,e,!0),e+4},Nt.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,4294967295,0),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xt(this,t,e,!1),e+4},Nt.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},Nt.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Zt(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},Nt.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,1,127,-128),Nt.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},Nt.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Jt(this,t,e,!0),e+2},Nt.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,2,32767,-32768),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Jt(this,t,e,!1),e+2},Nt.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,2147483647,-2147483648),Nt.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Xt(this,t,e,!0),e+4},Nt.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Zt(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),Nt.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Xt(this,t,e,!1),e+4},Nt.prototype.writeFloatLE=function(t,e,n){return $t(this,t,e,!0,n)},Nt.prototype.writeFloatBE=function(t,e,n){return $t(this,t,e,!1,n)},Nt.prototype.writeDoubleLE=function(t,e,n){return te(this,t,e,!0,n)},Nt.prototype.writeDoubleBE=function(t,e,n){return te(this,t,e,!1,n)},Nt.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!Nt.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function ie(t){return function(t){var e,n,r,i,o,a;ft||pt();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new dt(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=ht[t.charCodeAt(e)]<<2|ht[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=ht[t.charCodeAt(e)]<<10|ht[t.charCodeAt(e+1)]<<4|ht[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(ee,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function oe(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function ae(t){return null!=t&&(!!t._isBuffer||se(t)||function(t){return"function"==typeof t.readFloatLE&&"function"==typeof t.slice&&se(t.slice(0,0))}(t))}function se(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var ue=Object.freeze({__proto__:null,Buffer:Nt,INSPECT_MAX_BYTES:50,SlowBuffer:function(t){return+t!=t&&(t=0),Nt.alloc(+t)},isBuffer:ae,kMaxLength:Mt});function ce(t){if(!Number.isSafeInteger(t)||t<0)throw new Error("Wrong positive integer: ".concat(t))}function le(t){return t instanceof Uint8Array||null!=t&&"object"===z(t)&&"Uint8Array"===t.constructor.name}function he(t){if(!le(t))throw new Error("Expected Uint8Array");for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0&&!n.includes(t.length))throw new Error("Expected Uint8Array of length ".concat(n,", not of length=").concat(t.length))}function de(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(t.destroyed)throw new Error("Hash instance has been destroyed");if(e&&t.finished)throw new Error("Hash#digest() has already been called")}function fe(t,e){he(t);var n=e.outputLen;if(t.length>>e};if(!(68===new Uint8Array(new Uint32Array([287454020]).buffer)[0]))throw new Error("Non little-endian hardware is not supported");function we(t){if("string"!=typeof t)throw new Error("utf8ToBytes expected string, got ".concat(z(t)));return new Uint8Array((new TextEncoder).encode(t))}function be(t){if("string"==typeof t&&(t=we(t)),!me(t))throw new Error("expected Uint8Array, got ".concat(z(t)));return t}function Me(){for(var t=0,e=0;e0&&void 0!==arguments[0]?arguments[0]:32;if(pe&&"function"==typeof pe.getRandomValues)return pe.getRandomValues(new Uint8Array(t));throw new Error("crypto.getRandomValues must be defined")}var Ee=function(t){Y(n,Ae);var e=X(n);function n(t,r,i,o){var a;return B(this,n),(a=e.call(this)).blockLen=t,a.outputLen=r,a.padOffset=i,a.isLE=o,a.finished=!1,a.length=0,a.pos=0,a.destroyed=!1,a.buffer=new Uint8Array(t),a.view=ge(a.buffer),a}return U(n,[{key:"update",value:function(t){de(this);for(var e=this.view,n=this.buffer,r=this.blockLen,i=(t=be(t)).length,o=0;or-o&&(this.process(n,0),o=0);for(var a=o;a>i&o),s=Number(n&o),u=r?4:0,c=r?0:4;t.setUint32(e+u,a,r),t.setUint32(e+c,s,r)}(n,r-8,BigInt(8*this.length),i),this.process(n,0);var s=ge(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");var c=u/4,l=this.get();if(c>l.length)throw new Error("_sha2: outputLen bigger than state");for(var h=0;h1&&void 0!==arguments[1]&&arguments[1];return e?{h:Number(t&xe),l:Number(t>>ke&xe)}:{h:0|Number(t>>ke&xe),l:0|Number(t&xe)}}function Le(t){for(var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=new Uint32Array(t.length),r=new Uint32Array(t.length),i=0;i>>32-n},je=function(t,e,n){return e<>>32-n},Ce=function(t,e,n){return e<>>64-n},De=function(t,e,n){return t<>>64-n};var Oe={fromBig:Te,split:Le,toBig:function(t,e){return BigInt(t>>>0)<>>0)},shrSH:function(t,e,n){return t>>>n},shrSL:function(t,e,n){return t<<32-n|e>>>n},rotrSH:function(t,e,n){return t>>>n|e<<32-n},rotrSL:function(t,e,n){return t<<32-n|e>>>n},rotrBH:function(t,e,n){return t<<64-n|e>>>n-32},rotrBL:function(t,e,n){return t>>>n-32|e<<64-n},rotr32H:function(t,e){return e},rotr32L:function(t,e){return t},rotlSH:Se,rotlSL:je,rotlBH:Ce,rotlBL:De,add:function(t,e,n,r){var i=(e>>>0)+(r>>>0);return{h:t+n+(i/Math.pow(2,32)|0)|0,l:0|i}},add3L:function(t,e,n){return(t>>>0)+(e>>>0)+(n>>>0)},add3H:function(t,e,n,r){return e+n+r+(t/Math.pow(2,32)|0)|0},add4L:function(t,e,n,r){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)},add4H:function(t,e,n,r,i){return e+n+r+i+(t/Math.pow(2,32)|0)|0},add5H:function(t,e,n,r,i,o){return e+n+r+i+o+(t/Math.pow(2,32)|0)|0},add5L:function(t,e,n,r,i){return(t>>>0)+(e>>>0)+(n>>>0)+(r>>>0)+(i>>>0)}},ze=tt(function(){return Oe.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map((function(t){return BigInt(t)})))}(),2),Pe=ze[0],_e=ze[1],Be=new Uint32Array(80),Re=new Uint32Array(80),Ue=function(t){Y(n,Ee);var e=X(n);function n(){var t;return B(this,n),(t=e.call(this,128,64,16,!1)).Ah=1779033703,t.Al=-205731576,t.Bh=-1150833019,t.Bl=-2067093701,t.Ch=1013904242,t.Cl=-23791573,t.Dh=-1521486534,t.Dl=1595750129,t.Eh=1359893119,t.El=-1377402159,t.Fh=-1694144372,t.Fl=725511199,t.Gh=528734635,t.Gl=-79577749,t.Hh=1541459225,t.Hl=327033209,t}return U(n,[{key:"get",value:function(){return[this.Ah,this.Al,this.Bh,this.Bl,this.Ch,this.Cl,this.Dh,this.Dl,this.Eh,this.El,this.Fh,this.Fl,this.Gh,this.Gl,this.Hh,this.Hl]}},{key:"set",value:function(t,e,n,r,i,o,a,s,u,c,l,h,d,f,p,y){this.Ah=0|t,this.Al=0|e,this.Bh=0|n,this.Bl=0|r,this.Ch=0|i,this.Cl=0|o,this.Dh=0|a,this.Dl=0|s,this.Eh=0|u,this.El=0|c,this.Fh=0|l,this.Fl=0|h,this.Gh=0|d,this.Gl=0|f,this.Hh=0|p,this.Hl=0|y}},{key:"process",value:function(t,e){for(var n=0;n<16;n++,e+=4)Be[n]=t.getUint32(e),Re[n]=t.getUint32(e+=4);for(var r=16;r<80;r++){var i=0|Be[r-15],o=0|Re[r-15],a=Oe.rotrSH(i,o,1)^Oe.rotrSH(i,o,8)^Oe.shrSH(i,o,7),s=Oe.rotrSL(i,o,1)^Oe.rotrSL(i,o,8)^Oe.shrSL(i,o,7),u=0|Be[r-2],c=0|Re[r-2],l=Oe.rotrSH(u,c,19)^Oe.rotrBH(u,c,61)^Oe.shrSH(u,c,6),h=Oe.rotrSL(u,c,19)^Oe.rotrBL(u,c,61)^Oe.shrSL(u,c,6),d=Oe.add4L(s,h,Re[r-7],Re[r-16]),f=Oe.add4H(d,a,l,Be[r-7],Be[r-16]);Be[r]=0|f,Re[r]=0|d}for(var p=this.Ah,y=this.Al,m=this.Bh,g=this.Bl,v=this.Ch,w=this.Cl,b=this.Dh,M=this.Dl,A=this.Eh,I=this.El,N=this.Fh,E=this.Fl,x=this.Gh,k=this.Gl,T=this.Hh,L=this.Hl,S=0;S<80;S++){var j=Oe.rotrSH(A,I,14)^Oe.rotrSH(A,I,18)^Oe.rotrBH(A,I,41),C=Oe.rotrSL(A,I,14)^Oe.rotrSL(A,I,18)^Oe.rotrBL(A,I,41),D=A&N^~A&x,O=I&E^~I&k,z=Oe.add5L(L,C,O,_e[S],Re[S]),P=Oe.add5H(z,T,j,D,Pe[S],Be[S]),_=0|z,B=Oe.rotrSH(p,y,28)^Oe.rotrBH(p,y,34)^Oe.rotrBH(p,y,39),R=Oe.rotrSL(p,y,28)^Oe.rotrBL(p,y,34)^Oe.rotrBL(p,y,39),U=p&m^p&v^m&v,Q=y&g^y&w^g&w;T=0|x,L=0|k,x=0|N,k=0|E,N=0|A,E=0|I;var Y=Oe.add(0|b,0|M,0|P,0|_);A=Y.h,I=Y.l,b=0|v,M=0|w,v=0|m,w=0|g,m=0|p,g=0|y;var W=Oe.add3L(_,R,Q);p=Oe.add3H(W,P,B,U),y=0|W}var F=Oe.add(0|this.Ah,0|this.Al,0|p,0|y);p=F.h,y=F.l;var V=Oe.add(0|this.Bh,0|this.Bl,0|m,0|g);m=V.h,g=V.l;var H=Oe.add(0|this.Ch,0|this.Cl,0|v,0|w);v=H.h,w=H.l;var G=Oe.add(0|this.Dh,0|this.Dl,0|b,0|M);b=G.h,M=G.l;var q=Oe.add(0|this.Eh,0|this.El,0|A,0|I);A=q.h,I=q.l;var Z=Oe.add(0|this.Fh,0|this.Fl,0|N,0|E);N=Z.h,E=Z.l;var J=Oe.add(0|this.Gh,0|this.Gl,0|x,0|k);x=J.h,k=J.l;var X=Oe.add(0|this.Hh,0|this.Hl,0|T,0|L);T=X.h,L=X.l,this.set(p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L)}},{key:"roundClean",value:function(){Be.fill(0),Re.fill(0)}},{key:"destroy",value:function(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}]),n}(),Qe=Ie((function(){return new Ue})),Ye=BigInt(0),We=BigInt(1),Fe=BigInt(2);function Ve(t){return t instanceof Uint8Array||null!=t&&"object"===z(t)&&"Uint8Array"===t.constructor.name}var He=Array.from({length:256},(function(t,e){return e.toString(16).padStart(2,"0")}));function Ge(t){if(!Ve(t))throw new Error("Uint8Array expected");for(var e="",n=0;n=Je&&t<=Xe?t-Je:t>=Ke&&t<=$e?t-(Ke-10):t>=tn&&t<=en?t-(tn-10):void 0}function rn(t){if("string"!=typeof t)throw new Error("hex string expected, got "+z(t));var e=t.length,n=e/2;if(e%2)throw new Error("padded hex string expected, got unpadded hex of length "+e);for(var r=new Uint8Array(n),i=0,o=0;i0&&void 0!==arguments[0]?arguments[0]:dn();i=s(fn([0]),t),r=s(),0!==t.length&&(i=s(fn([1]),t),r=s())},c=function(){if(o++>=1e3)throw new Error("drbg: tried 1000 values");for(var t=0,n=[];t2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,n,r){var i=yn[n];if("function"!=typeof i)throw new Error('Invalid validator "'.concat(n,'", expected function'));var o=t[e];if(!(r&&void 0===o||i(o,t)))throw new Error("Invalid param ".concat(String(e),"=").concat(o," (").concat(z(o),"), expected ").concat(n))},i=0,o=Object.entries(e);iYe;t>>=We,e+=1);return e},bitGet:function(t,e){return t>>BigInt(e)&We},bitSet:function(t,e,n){return t|(n?We:Ye)<=vn?n:e+n}function xn(t,e,n){if(n<=vn||e 0");if(n===wn)return vn;for(var r=wn;e>vn;)e&wn&&(r=r*t%n),t=t*t%n,e>>=wn;return r}function kn(t,e,n){for(var r=t;e-- >vn;)r*=r,r%=n;return r}function Tn(t,e){if(t===vn||e<=vn)throw new Error("invert: expected positive integers, got n=".concat(t," mod=").concat(e));for(var n=En(t,e),r=e,i=vn,o=wn;n!==vn;){var a=r%n,s=i-o*(r/n);r=n,n=a,i=o,o=s}if(r!==wn)throw new Error("invert: does not exist");return En(i,e)}function Ln(t){if(t%An===Mn){var e=(t+wn)/An;return function(t,n){var r=t.pow(n,e);if(!t.eql(t.sqr(r),n))throw new Error("Cannot find square root");return r}}if(t%Nn===In){var n=(t-In)/Nn;return function(t,e){var r=t.mul(e,bn),i=t.pow(r,n),o=t.mul(e,i),a=t.mul(t.mul(o,bn),i),s=t.mul(o,t.sub(a,t.ONE));if(!t.eql(t.sqr(s),e))throw new Error("Cannot find square root");return s}}return function(t){var e,n,r,i=(t-wn)/bn;for(e=t-wn,n=0;e%bn===vn;e/=bn,n++);for(r=bn;r 0");if(n===vn)return t.ONE;if(n===wn)return e;for(var r=t.ONE,i=e;n>vn;)n&wn&&(r=t.mul(r,i)),i=t.sqr(i),n>>=wn;return r}function Cn(t,e){var n=new Array(e.length),r=e.reduce((function(e,r,i){return t.is0(r)?e:(n[i]=e,t.mul(e,r))}),t.ONE),i=t.inv(r);return e.reduceRight((function(e,r,i){return t.is0(r)?e:(n[i]=t.mul(e,n[i]),t.mul(e,r))}),i),n}function Dn(t,e){var n=void 0!==e?e:t.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function On(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(t<=vn)throw new Error("Expected Field ORDER > 0, got ".concat(t));var i=Dn(t,e),o=i.nBitLength,a=i.nByteLength;if(a>2048)throw new Error("Field lengths over 2048 bytes are not supported");var s=Ln(t),u=Object.freeze({ORDER:t,BITS:o,BYTES:a,MASK:hn(o),ZERO:vn,ONE:wn,create:function(e){return En(e,t)},isValid:function(e){if("bigint"!=typeof e)throw new Error("Invalid field element: expected bigint, got ".concat(z(e)));return vn<=e&&e_n;)n&Bn&&(r=r.add(i)),i=i.double(),n>>=Bn;return r},precomputeWindow:function(t,e){for(var n=r(e),i=n.windows,o=n.windowSize,a=[],s=t,u=s,c=0;c>=f,m>u&&(m-=d,o+=Bn);var g=y,v=y+Math.abs(m)-1,w=p%2!=0,b=m<0;0===m?l=l.add(n(w,i[g])):c=c.add(n(b,i[v]))}return{p:c,f:l}},wNAFCached:function(t,e,n,r){var i=t._WINDOW_SIZE||1,o=e.get(t);return o||(o=this.precomputeWindow(t,i),1!==i&&e.set(t,r(o))),this.wNAF(i,o,n)}}}function Un(t){return mn(t.Fp,Sn.reduce((function(t,e){return t[e]="function",t}),{ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"})),mn(t,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze(D(D(D({},Dn(t.n,t.nBitLength)),t),{p:t.Fp.ORDER}))}var Qn=BigInt(0),Yn=BigInt(1),Wn=BigInt(2),Fn=BigInt(8),Vn={zip215:!0};function Hn(t){var e,n,r=(n=Un(e=t),mn(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze(D({},n))),i=r.Fp,o=r.n,a=r.prehash,s=r.hash,u=r.randomBytes,c=r.nByteLength,l=r.h,h=Wn<1&&void 0!==arguments[1]&&arguments[1],o=r.d,a=r.a,s=i.BYTES,u=(e=cn("pointHex",e,s)).slice(),c=e[s-1];u[s-1]=-129&c;var l=an(u);l===Qn||w(l,n?h:i.ORDER);var p=d(l*l),y=d(p-Yn),m=d(o*p-a),g=f(y,m),v=g.isValid,b=g.value;if(!v)throw new Error("Point.fromHex: invalid y coordinate");var M=(b&Yn)===Yn,A=0!=(128&c);if(!n&&b===Qn&&A)throw new Error("Point.fromHex: x=0 and x_0=1");return A!==M&&(b=d(-b)),t.fromAffine({x:b,y:l})}},{key:"fromPrivateKey",value:function(t){return L(t).point}}]),t}();I.BASE=new I(r.Gx,r.Gy,Yn,d(r.Gx*r.Gy)),I.ZERO=new I(Qn,Yn,Yn,Qn);var N=I.BASE,E=I.ZERO,x=Rn(I,8*c);function k(t){return En(t,o)}function T(t){return k(an(t))}function L(t){var e=c;t=cn("private key",t,e);var n=cn("hashed private key",s(t),2*e),r=p(n.slice(0,e)),i=n.slice(e,2*e),o=T(r),a=N.multiply(o),u=a.toRawBytes();return{head:r,prefix:i,scalar:o,point:a,pointBytes:u}}function S(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Uint8Array,e=arguments.length,n=new Array(e>1?e-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{};t=cn("message",t),a&&(t=a(t));var r=L(e),o=r.prefix,s=r.scalar,u=r.pointBytes,l=S(n.context,o,t),h=N.multiply(l).toRawBytes(),d=S(n.context,h,u,t),f=k(l+d*s);b(f);var p=ln(h,un(f,i.BYTES));return cn("result",p,2*c)},verify:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:j,o=r.context,s=r.zip215,u=i.BYTES;t=cn("signature",t,2*u),e=cn("message",e),a&&(e=a(e));var c,l,h,d=an(t.slice(u,2*u));try{c=I.fromHex(n,s),l=I.fromHex(t.slice(0,u),s),h=N.multiplyUnsafe(d)}catch(t){return!1}if(!s&&c.isSmallOrder())return!1;var f=S(o,l.toRawBytes(),c.toRawBytes(),e),p=l.add(c.multiplyUnsafe(f));return p.subtract(h).clearCofactor().equals(I.ZERO)},ExtendedPoint:I,utils:{getExtendedPublicKey:L,randomPrivateKey:function(){return u(i.BYTES)},precompute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:I.BASE;return e._setWindowSize(t),e.multiply(BigInt(3)),e}}}}var Gn=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),qn=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);var Zn=BigInt(1),Jn=BigInt(2),Xn=BigInt(5),Kn=BigInt(10),$n=BigInt(20),tr=BigInt(40),er=BigInt(80);var nr=On(Gn,void 0,!0),rr={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:nr,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:BigInt(8),Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:Qe,randomBytes:Ne,adjustScalarBytes:function(t){return t[0]&=248,t[31]&=127,t[31]|=64,t},uvRatio:function(t,e){var n=Gn,r=En(e*e*e,n),i=En(r*r*e,n),o=En(t*r*function(t){var e=Gn,n=t*t%e*t%e,r=kn(n,Jn,e)*n%e,i=kn(r,Zn,e)*t%e,o=kn(i,Xn,e)*i%e,a=kn(o,Kn,e)*o%e,s=kn(a,$n,e)*a%e,u=kn(s,tr,e)*s%e,c=kn(u,er,e)*u%e,l=kn(c,er,e)*u%e,h=kn(l,Kn,e)*o%e;return{pow_p_5_8:kn(h,Jn,e)*t%e,b2:n}}(t*i).pow_p_5_8,n),a=En(e*o*o,n),s=o,u=En(o*qn,n),c=a===t,l=a===En(-t,n),h=a===En(-t*qn,n);return c&&(o=s),(l||h)&&(o=u),(En(o,n)&wn)===wn&&(o=En(-o,n)),{isValid:c||l,value:o}}},ir=Hn(rr);function or(t,e,n){if(e.length>255)throw new Error("Context is too big");return Me(we("SigEd25519 no Ed25519 collisions"),new Uint8Array([n?1:0,e.length]),e,t)}D(D({},rr),{},{domain:or}),D(D({},rr),{},{domain:or,prehash:Qe});var ar=(nr.ORDER+BigInt(3))/BigInt(8);nr.pow(Jn,ar),nr.sqrt(nr.neg(nr.ONE)),nr.ORDER,BigInt(5),BigInt(8),BigInt(486662),function(t,e){if(!t.isOdd)throw new Error("Field doesn't have isOdd");var n=t.sqrt(e);t.isOdd(n)&&t.neg(n)}(nr,nr.neg(BigInt(486664))),BigInt("25063068953384623474111414158702152701244531502492656460079210482610430750235"),BigInt("54469307008909316920995813868745141605393597292927456921205312896311721017578"),BigInt("1159843021668779879193775521855586647937357759715417654439879720876111806838"),BigInt("40440834346308536858101042469323190826248399146238708352240133220865137265952"),BigInt("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var sr={exports:{}},ur=j(ue);!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(sr,L);var cr=sr.exports,lr={exports:{}}; /*! safe-buffer. MIT License. Feross Aboukhadijeh */ -!function(t,e){var n=ur,r=n.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(lr,lr.exports);var hr=lr.exports.Buffer;var dr=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;var p=hr.allocUnsafe(r+(o-f));p.fill(0,0,r);for(var y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=hr.from(e)),!hr.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);p>>3,s=ve(o,17)^ve(o,19)^o>>>10;mr[r]=s+mr[r-7]+a+mr[r-16]|0}for(var u,c=this.A,l=this.B,h=this.C,d=this.D,f=this.E,p=this.F,y=this.G,m=this.H,g=0;g<64;g++){var v=m+(ve(f,6)^ve(f,11)^ve(f,25))+((u=f)&p^~u&y)+pr[g]+mr[g]|0,w=(ve(c,2)^ve(c,13)^ve(c,22))+fr(c,l,h)|0;m=y,y=p,p=f,f=d+v|0,d=h,h=l,l=c,c=v+w|0}c=c+this.A|0,l=l+this.B|0,h=h+this.C|0,d=d+this.D|0,f=f+this.E|0,p=p+this.F|0,y=y+this.G|0,m=m+this.H|0,this.set(c,l,h,d,f,p,y,m)}},{key:"roundClean",value:function(){mr.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(),vr=Ie((function(){return new gr})),wr={},br={exports:{}};!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(br,L);var Mr={exports:{}}; -/*! safe-buffer. MIT License. Feross Aboukhadijeh */!function(t,e){var n=ur,r=n.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(Mr,Mr.exports);var Ar=Mr.exports.Buffer;var Ir=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;var p=Ar.allocUnsafe(r+(o-f));p.fill(0,0,r);for(var y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=Ar.from(e)),!Ar.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);p>6*n)+r];n>0;){var o=e>>6*(n-1);i.push(128|63&o),n-=1}return i}}Tr.prototype={decode:function(t,e){var n;n="object"===z(t)&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===z(t)&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=Er(e),this._streaming||(this._decoder=new Sr({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,i=new xr(n),o=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n>10),56320+(1023&r)))}return e}(o)}},Lr.prototype={encode:function(t,e){t=t?String(t):"",e=Er(e),this._streaming||(this._encoder=new jr(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],i=new xr(function(t){for(var e=String(t),n=e.length,r=0,i=[];r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=t.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(t));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var Dr=j(Object.freeze({__proto__:null,TextEncoder:Lr,TextDecoder:Tr})),Cr=L&&L.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),Or=L&&L.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zr=L&&L.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":z(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Pr=L&&L.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&Cr(e,t,n);return Or(e,t),e},_r=L&&L.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wr,"__esModule",{value:!0});var Br=wr.deserializeUnchecked=$r=wr.deserialize=Jr=wr.serialize=wr.BinaryReader=wr.BinaryWriter=wr.BorshError=wr.baseDecode=wr.baseEncode=void 0,Rr=_r(br.exports),Ur=_r(Ir),Qr=Pr(Dr),Yr=new("function"!=typeof TextDecoder?Qr.TextDecoder:TextDecoder)("utf-8",{fatal:!0});wr.baseEncode=function(t){return"string"==typeof t&&(t=Nt.from(t,"utf8")),Ur.default.encode(Nt.from(t))},wr.baseDecode=function(t){return Nt.from(Ur.default.decode(t))};var Wr=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,t)).fieldPath=[],r.originalMessage=t,r}return U(n,[{key:"addToFieldPath",value:function(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}();wr.BorshError=Wr;var Fr=function(){function t(){B(this,t),this.buf=Nt.alloc(1024),this.length=0}return U(t,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=Nt.concat([this.buf,Nt.alloc(1024)]))}},{key:"writeU8",value:function(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}},{key:"writeU16",value:function(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}},{key:"writeU32",value:function(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}},{key:"writeU64",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",8)))}},{key:"writeU128",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",16)))}},{key:"writeU256",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",32)))}},{key:"writeU512",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",64)))}},{key:"writeBuffer",value:function(t){this.buf=Nt.concat([Nt.from(this.buf.subarray(0,this.length)),t,Nt.alloc(1024)]),this.length+=t.length}},{key:"writeString",value:function(t){this.maybeResize();var e=Nt.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}},{key:"writeFixedArray",value:function(t){this.writeBuffer(Nt.from(t))}},{key:"writeArray",value:function(t,e){this.maybeResize(),this.writeU32(t.length);var n,r=st(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.maybeResize(),e(i)}}catch(t){r.e(t)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),t}();function Vr(t,e,n){var r=n.value;n.value=function(){try{for(var t=arguments.length,e=new Array(t),n=0;n=0)throw new Wr("Reached the end of buffer when deserializing")}throw t}}}wr.BinaryWriter=Fr;var Hr=function(){function t(e){B(this,t),this.buf=e,this.offset=0}return U(t,[{key:"readU8",value:function(){var t=this.buf.readUInt8(this.offset);return this.offset+=1,t}},{key:"readU16",value:function(){var t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}},{key:"readU32",value:function(){var t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}},{key:"readU64",value:function(){var t=this.readBuffer(8);return new Rr.default(t,"le")}},{key:"readU128",value:function(){var t=this.readBuffer(16);return new Rr.default(t,"le")}},{key:"readU256",value:function(){var t=this.readBuffer(32);return new Rr.default(t,"le")}},{key:"readU512",value:function(){var t=this.readBuffer(64);return new Rr.default(t,"le")}},{key:"readBuffer",value:function(t){if(this.offset+t>this.buf.length)throw new Wr("Expected buffer length ".concat(t," isn't within bounds"));var e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}},{key:"readString",value:function(){var t=this.readU32(),e=this.readBuffer(t);try{return Yr.decode(e)}catch(t){throw new Wr("Error decoding UTF-8 string: ".concat(t))}}},{key:"readFixedArray",value:function(t){return new Uint8Array(this.readBuffer(t))}},{key:"readArray",value:function(t){for(var e=this.readU32(),n=Array(),r=0;r2&&void 0!==arguments[2]?arguments[2]:Fr,r=new n;return Zr(t,e,r),r.toArray()};function Xr(t,e,n,r){try{if("string"==typeof n)return r["read".concat(Gr(n))]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){for(var i=[],o=0;o=r.values.length)throw new Wr("Enum index: ".concat(l," is out of range"));var h=tt(r.values[l],2),d=h[0];return new e(Q({},d,Xr(t,d,h[1],n)))}throw new Wr("Unexpected schema kind: ".concat(r.kind," for ").concat(e.constructor.name))}var $r=wr.deserialize=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Hr,i=new r(n),o=Kr(t,e,i);if(i.offset3&&void 0!==arguments[3]?arguments[3]:Hr,i=new r(n);return Kr(t,e,i)};var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.s16=ti.s8=ti.nu64be=ti.u48be=ti.u40be=ti.u32be=ti.u24be=ti.u16be=Yi=ti.nu64=ti.u48=ti.u40=Qi=ti.u32=ti.u24=Ui=ti.u16=Ri=ti.u8=Bi=ti.offset=ti.greedy=ti.Constant=ti.UTF8=ti.CString=ti.Blob=ti.Boolean=ti.BitField=ti.BitStructure=ti.VariantLayout=ti.Union=ti.UnionLayoutDiscriminator=ti.UnionDiscriminator=ti.Structure=ti.Sequence=ti.DoubleBE=ti.Double=ti.FloatBE=ti.Float=ti.NearInt64BE=ti.NearInt64=ti.NearUInt64BE=ti.NearUInt64=ti.IntBE=ti.Int=ti.UIntBE=ti.UInt=ti.OffsetLayout=ti.GreedyCount=ti.ExternalLayout=ti.bindConstructorLayout=ti.nameWithProperty=ti.Layout=ti.uint8ArrayToBuffer=ti.checkUint8Array=void 0,ti.constant=ti.utf8=ti.cstr=Hi=ti.blob=ti.unionLayoutDiscriminator=ti.union=Vi=ti.seq=ti.bits=Fi=ti.struct=ti.f64be=ti.f64=ti.f32be=ti.f32=ti.ns64be=ti.s48be=ti.s40be=ti.s32be=ti.s24be=ti.s16be=Wi=ti.ns64=ti.s48=ti.s40=ti.s32=ti.s24=void 0;var ei=ur;function ni(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function ri(t){return ni(t),ei.Buffer.from(t.buffer,t.byteOffset,t.length)}ti.checkUint8Array=ni,ti.uint8ArrayToBuffer=ri;var ii=function(){function t(e,n){if(B(this,t),!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=n}return U(t,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}]),t}();function oi(t,e){return e.property?t+"["+e.property+"]":t}ti.Layout=ii,ti.nameWithProperty=oi,ti.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof ii))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,n){return e.decode(t,n)},writable:!0})};var ai=function(t){Y(n,ii);var e=X(n);function n(){return B(this,n),e.apply(this,arguments)}return U(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}();ti.ExternalLayout=ai;var si=function(t){Y(n,ai);var e=X(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1?arguments[1]:void 0;if(B(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(t=e.call(this,-1,i)).elementSpan=r,t}return U(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);var n=t.length-e;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(t,e,n){return 0}}]),n}();ti.GreedyCount=si;var ui=function(t){Y(n,ai);var e=X(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;if(B(this,n),!(t instanceof ii))throw new TypeError("layout must be a Layout");if(!Number.isInteger(i))throw new TypeError("offset must be integer or undefined");return(r=e.call(this,t.span,o||t.property)).layout=t,r.offset=i,r}return U(n,[{key:"isCount",value:function(){return this.layout instanceof ci||this.layout instanceof li}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(t,e,n+this.offset)}}]),n}();ti.OffsetLayout=ui;var ci=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readUIntLE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeUIntLE(t,n,this.span),this.span}}]),n}();ti.UInt=ci;var li=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readUIntBE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeUIntBE(t,n,this.span),this.span}}]),n}();ti.UIntBE=li;var hi=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readIntLE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeIntLE(t,n,this.span),this.span}}]),n}();ti.Int=hi;var di=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readIntBE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeIntBE(t,n,this.span),this.span}}]),n}();ti.IntBE=di;var fi=Math.pow(2,32);function pi(t){var e=Math.floor(t/fi);return{hi32:e,lo32:t-e*fi}}function yi(t,e){return t*fi+e}var mi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32LE(e),i=n.readUInt32LE(e+4);return yi(i,r)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}]),n}();ti.NearUInt64=mi;var gi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32BE(e),i=n.readUInt32BE(e+4);return yi(r,i)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();ti.NearUInt64BE=gi;var vi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32LE(e),i=n.readInt32LE(e+4);return yi(i,r)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}]),n}();ti.NearInt64=vi;var wi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readInt32BE(e),i=n.readUInt32BE(e+4);return yi(r,i)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();ti.NearInt64BE=wi;var bi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readFloatLE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeFloatLE(t,n),4}}]),n}();ti.Float=bi;var Mi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readFloatBE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeFloatBE(t,n),4}}]),n}();ti.FloatBE=Mi;var Ai=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readDoubleLE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeDoubleLE(t,n),8}}]),n}();ti.Double=Ai;var Ii=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readDoubleBE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeDoubleBE(t,n),8}}]),n}();ti.DoubleBE=Ii;var Ni=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof ii))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof ai&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof ai)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof ai&&(r=r.decode(t,e)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,i=this.count;for(i instanceof ai&&(i=i.decode(t,e));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,i=t.reduce((function(t,i){return t+r.encode(i,e,n+t)}),0);return this.count instanceof ai&&this.count.encode(t.length,e,n),i}}]),n}();ti.Sequence=Ni;var Ei=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!Array.isArray(t)||!t.reduce((function(t,e){return t&&e instanceof ii}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===i&&(i=r,r=void 0);var a,s=st(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(t){s.e(t)}finally{s.f()}var c=-1;try{c=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(t){}return(o=e.call(this,c,r)).fields=t,o.decodePrefixes=!!i,o}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(t){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);var n,r=this.makeDestinationObject(),i=st(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(t,e)),e+=o.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"encode",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=0,a=0,s=st(this.fields);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.span;if(a=0c&&(c=u.getSpan(e,r)))}o=r,r+=c}}catch(t){s.e(t)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(t){var e,n=this.makeDestinationObject(),r=st(this.fields);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(t){r.e(t)}finally{r.f()}}}]),n}();ti.Structure=Ei;var xi=function(){function t(e){B(this,t),this.property=e}return U(t,[{key:"decode",value:function(t,e){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(t,e,n){throw new Error("UnionDiscriminator is abstract")}}]),t}();ti.UnionDiscriminator=xi;var ki=function(t){Y(n,xi);var e=X(n);function n(t,r){var i;if(B(this,n),!(t instanceof ai&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,r||t.property||"variant")).layout=t,i}return U(n,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,n){return this.layout.encode(t,e,n)}}]),n}();ti.UnionLayoutDiscriminator=ki;var Ti=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o,a;if(B(this,n),t instanceof ci||t instanceof li)a=new ki(new ui(t));else if(t instanceof ai&&t.isCount())a=new ki(t);else{if(!(t instanceof xi))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");a=t}if(void 0===r&&(r=null),!(null===r||r instanceof ii))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&(t instanceof ci||t instanceof li)&&(s+=a.layout.span),(o=e.call(this,s,i)).discriminator=a,o.usesPrefixDiscriminator=t instanceof ci||t instanceof li,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(Z(o));return o.getSourceVariant=function(t){return u(t)},o.configGetSourceVariant=function(t){u=t.bind(this)},o}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,i=r.decode(t,n),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(e=this.makeDestinationObject())[r.property]=i,e[a.property]=a.decode(t,n+s)}else e=o.decode(t,n);return e}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(t);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,n),a+o.encode(t[o.property],e,n+a)}return r.encode(t,e,n)}},{key:"addVariant",value:function(t,e,n){var r=new Li(this,t,e,n);return this.registry[t]=r,r}},{key:"getVariant",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e=t instanceof Uint8Array?this.discriminator.decode(t,n):t,this.registry[e]}}]),n}();ti.Union=Ti;var Li=function(t){Y(n,ii);var e=X(n);function n(t,r,i,o){var a;if(B(this,n),!(t instanceof Ti))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof ii))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=t.span;return 0>t.span&&0<=(s=i?i.span:0)&&t.usesPrefixDiscriminator&&(s+=t.discriminator.layout.span),(a=e.call(this,s,o)).union=t,a.variant=r,a.layout=i||null,a}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);var i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),n}();function Si(t){return 0>t&&(t+=4294967296),t}ti.VariantLayout=Li;var ji=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof ci||t instanceof li))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(t,e);this._packedSetValue(r);var i,o=st(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;void 0!==a.property&&(n[a.property]=a.decode(t))}}catch(t){o.e(t)}finally{o.f()}return n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(e,n);this._packedSetValue(r);var i,o=st(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(void 0!==a.property){var s=t[a.property];void 0!==s&&a.encode(s)}}}catch(t){o.e(t)}finally{o.f()}return this.word.encode(this._packedGetValue(),e,n)}},{key:"addField",value:function(t,e){var n=new Di(this,t,e);return this.fields.push(n),n}},{key:"addBoolean",value:function(t){var e=new Ci(this,t);return this.fields.push(e),e}},{key:"fieldFor",value:function(t){if("string"!=typeof t)throw new TypeError("property must be string");var e,n=st(this.fields);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.property===t)return r}}catch(t){n.e(t)}finally{n.f()}}}]),n}();ti.BitStructure=ji;var Di=function(){function t(e,n,r){if(B(this,t),!(e instanceof ji))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(t){if("number"!=typeof t||!Number.isInteger(t)||t!==Si(t&this.valueMask))throw new TypeError(oi("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),n=Si(t<n&&(n=this.length.decode(t,e)),n}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(t,e)),ri(t).slice(e,e+n)}},{key:"encode",value:function(t,e,n){var r=this.length;if(this.length instanceof ai&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw new TypeError(oi("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw new RangeError("encoding overruns Uint8Array");var i=ri(t);return ri(e).write(i.toString("hex"),n,r,"hex"),this.length instanceof ai&&this.length.encode(r,e,n),r}}]),n}();ti.Blob=Oi;var zi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,-1,t)}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);for(var n=e;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(t,e);return ri(t).slice(e,e+n-1).toString("utf-8")}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof t&&(t=String(t));var r=ei.Buffer.from(t,"utf8"),i=r.length;if(n+i>e.length)throw new RangeError("encoding overruns Buffer");var o=ri(e);return r.copy(o,n),o[n+i]=0,i+1}}]),n}();ti.CString=zi;var Pi=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),"string"==typeof t&&void 0===r&&(r=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=e.call(this,-1,r)).maxSpan=t,i}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ni(t),t.length-e}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof t&&(t=String(t));var r=ei.Buffer.from(t,"utf8"),i=r.length;if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return r.copy(ri(e),n),i}}]),n}();ti.UTF8=Pi;var _i=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,0,r)).value=t,i}return U(n,[{key:"decode",value:function(t,e){return this.value}},{key:"encode",value:function(t,e,n){return 0}}]),n}();ti.Constant=_i,ti.greedy=function(t,e){return new si(t,e)};var Bi=ti.offset=function(t,e,n){return new ui(t,e,n)},Ri=ti.u8=function(t){return new ci(1,t)},Ui=ti.u16=function(t){return new ci(2,t)};ti.u24=function(t){return new ci(3,t)};var Qi=ti.u32=function(t){return new ci(4,t)};ti.u40=function(t){return new ci(5,t)},ti.u48=function(t){return new ci(6,t)};var Yi=ti.nu64=function(t){return new mi(t)};ti.u16be=function(t){return new li(2,t)},ti.u24be=function(t){return new li(3,t)},ti.u32be=function(t){return new li(4,t)},ti.u40be=function(t){return new li(5,t)},ti.u48be=function(t){return new li(6,t)},ti.nu64be=function(t){return new gi(t)},ti.s8=function(t){return new hi(1,t)},ti.s16=function(t){return new hi(2,t)},ti.s24=function(t){return new hi(3,t)},ti.s32=function(t){return new hi(4,t)},ti.s40=function(t){return new hi(5,t)},ti.s48=function(t){return new hi(6,t)};var Wi=ti.ns64=function(t){return new vi(t)};ti.s16be=function(t){return new di(2,t)},ti.s24be=function(t){return new di(3,t)},ti.s32be=function(t){return new di(4,t)},ti.s40be=function(t){return new di(5,t)},ti.s48be=function(t){return new di(6,t)},ti.ns64be=function(t){return new wi(t)},ti.f32=function(t){return new bi(t)},ti.f32be=function(t){return new Mi(t)},ti.f64=function(t){return new Ai(t)},ti.f64be=function(t){return new Ii(t)};var Fi=ti.struct=function(t,e,n){return new Ei(t,e,n)};ti.bits=function(t,e,n){return new ji(t,e,n)};var Vi=ti.seq=function(t,e,n){return new Ni(t,e,n)};ti.union=function(t,e,n){return new Ti(t,e,n)},ti.unionLayoutDiscriminator=function(t,e){return new ki(t,e)};var Hi=ti.blob=function(t,e){return new Oi(t,e)};ti.cstr=function(t){return new zi(t)},ti.utf8=function(t,e){return new Pi(t,e)},ti.constant=function(t,e){return new _i(t,e)};var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});var qi=Gi.toBigIntLE=function(t){var e=Nt.from(t);e.reverse();var n=e.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))};Gi.toBigIntBE=function(t){var e=t.toString("hex");return 0===e.length?BigInt(0):BigInt("0x".concat(e))};var Zi=Gi.toBufferLE=function(t,e){var n=t.toString(16),r=Nt.from(n.padStart(2*e,"0").slice(0,2*e),"hex");return r.reverse(),r};Gi.toBufferBE=function(t,e){var n=t.toString(16);return Nt.from(n.padStart(2*e,"0").slice(0,2*e),"hex")};var Ji=["message"],Xi=O().mark(io),Ki=function(t){Y(n,G(TypeError));var e=X(n);function n(t,r){var i,o;B(this,n);var a=t.message,s=q(t,Ji),u=t.path,c=0===u.length?a:"At path: "+u.join(".")+" -- "+a;return i=e.call(this,c),Object.assign(Z(i),s),i.name=i.constructor.name,i.failures=function(){var e;return null!=(e=o)?e:o=[t].concat(et(r()))},i}return U(n)}();function $i(t){return to(t)&&"function"==typeof t[Symbol.iterator]}function to(t){return"object"===z(t)&&null!=t}function eo(t){return"string"==typeof t?JSON.stringify(t):""+t}function no(t){var e=t.next(),n=e.done,r=e.value;return n?void 0:r}function ro(t,e,n,r){if(!0!==t){!1===t?t={}:"string"==typeof t&&(t={message:t});var i=e.path,o=e.branch,a=n.type,s=t,u=s.refinement,c=s.message,l=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+eo(r)+"`":c;return C(C({value:r,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},t),{},{message:l})}}function io(t,e,n,r){var i,o,a,s;return O().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:$i(t)||(t=[t]),i=st(t),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=12;break}if(a=o.value,!(s=ro(a,e,n,r))){u.next=10;break}return u.next=10,s;case 10:u.next=4;break;case 12:u.next=17;break;case 14:u.prev=14,u.t0=u.catch(2),i.e(u.t0);case 17:return u.prev=17,i.f(),u.finish(17);case 20:case"end":return u.stop()}}),Xi,null,[[2,14,17,20]])}function oo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O().mark((function r(){var i,o,a,s,u,c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=n.path,o=void 0===i?[]:i,a=n.branch,s=void 0===a?[t]:a,u=n.coerce,c=void 0!==u&&u,l=n.mask,h=void 0!==l&&l,d={path:o,branch:s},c&&(t=e.coercer(t,d),h&&"type"!==e.type&&to(e.schema)&&to(t)&&!Array.isArray(t)))for(f in t)void 0===e.schema[f]&&delete t[f];p=!0,y=st(e.validator(t,d)),r.prev=5,y.s();case 7:if((m=y.n()).done){r.next=14;break}return g=m.value,p=!1,r.next=12,[g,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),y.e(r.t0);case 19:return r.prev=19,y.f(),r.finish(19);case 22:v=st(e.entries(t,d)),r.prev=23,v.s();case 25:if((w=v.n()).done){r.next=52;break}b=tt(w.value,3),M=b[0],A=b[1],I=b[2],N=oo(A,I,{path:void 0===M?o:[].concat(et(o),[M]),branch:void 0===M?s:[].concat(et(s),[A]),coerce:c,mask:h}),E=st(N),r.prev=29,E.s();case 31:if((x=E.n()).done){r.next=42;break}if(!(k=x.value)[0]){r.next=39;break}return p=!1,r.next=37,[k[0],void 0];case 37:r.next=40;break;case 39:c&&(A=k[1],void 0===M?t=A:t instanceof Map?t.set(M,A):t instanceof Set?t.add(A):to(t)&&(t[M]=A));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),E.e(r.t1);case 47:return r.prev=47,E.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),v.e(r.t2);case 57:return r.prev=57,v.f(),r.finish(57);case 60:if(!p){r.next=79;break}T=st(e.refiner(t,d)),r.prev=62,T.s();case 64:if((L=T.n()).done){r.next=71;break}return S=L.value,p=!1,r.next=69,[S,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),T.e(r.t3);case 76:return r.prev=76,T.f(),r.finish(76);case 79:if(!p){r.next=82;break}return r.next=82,[void 0,t];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var ao,so=function(){function t(e){var n=this;B(this,t);var r=e.type,i=e.schema,o=e.validator,a=e.refiner,s=e.coercer,u=void 0===s?function(t){return t}:s,c=e.entries,l=void 0===c?O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})):c;this.type=r,this.schema=i,this.entries=l,this.coercer=u,this.validator=o?function(t,e){return io(o(t,e),e,n,t)}:function(){return[]},this.refiner=a?function(t,e){return io(a(t,e),e,n,t)}:function(){return[]}}return U(t,[{key:"assert",value:function(t){return uo(t,this)}},{key:"create",value:function(t){return co(t,this)}},{key:"is",value:function(t){return lo(t,this)}},{key:"mask",value:function(t){return function(t,e){var n=ho(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(t,this)}},{key:"validate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ho(t,this,e)}}]),t}();function uo(t,e){var n=ho(t,e);if(n[0])throw n[0]}function co(t,e){var n=ho(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function lo(t,e){return!ho(t,e)[0]}function ho(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=oo(t,e,n),i=no(r);if(i[0]){var o=new Ki(i[0],O().mark((function t(){var e,n,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=st(r),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=10;break}if(!(i=n.value)[0]){t.next=8;break}return t.next=8,i[0];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),e.e(t.t0);case 15:return t.prev=15,e.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])})));return[o,void 0]}var a=i[1];return[void 0,a]}function fo(t,e){return new so({type:t,schema:null,validator:e})}function po(t){return new so({type:"array",schema:t,entries:O().mark((function e(n){var r,i,o,a,s;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!Array.isArray(n)){e.next=18;break}r=st(n.entries()),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=10;break}return o=tt(i.value,2),a=o[0],s=o[1],e.next=8,[a,s,t];case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})),coercer:function(t){return Array.isArray(t)?t.slice():t},validator:function(t){return Array.isArray(t)||"Expected an array value, but received: "+eo(t)}})}function yo(){return fo("boolean",(function(t){return"boolean"==typeof t}))}function mo(t){return fo("instance",(function(e){return e instanceof t||"Expected a `"+t.name+"` instance, but received: "+eo(e)}))}function go(t){var e=eo(t),n=z(t);return new so({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:function(n){return n===t||"Expected the literal `"+e+"`, but received: "+eo(n)}})}function vo(t){return new so(C(C({},t),{},{validator:function(e,n){return null===e||t.validator(e,n)},refiner:function(e,n){return null===e||t.refiner(e,n)}}))}function wo(){return fo("number",(function(t){return"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+eo(t)}))}function bo(t){return new so(C(C({},t),{},{validator:function(e,n){return void 0===e||t.validator(e,n)},refiner:function(e,n){return void 0===e||t.refiner(e,n)}}))}function Mo(t,e){return new so({type:"record",schema:null,entries:O().mark((function n(r){var i,o;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!to(r)){n.next=11;break}n.t0=O().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return i=n.t1.value,o=r[i],n.next=7,[i,i,t];case 7:return n.next=9,[i,o,e];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(t){return to(t)||"Expected an object, but received: "+eo(t)}})}function Ao(){return fo("string",(function(t){return"string"==typeof t||"Expected a string, but received: "+eo(t)}))}function Io(t){var e=fo("never",(function(){return!1}));return new so({type:"tuple",schema:null,entries:O().mark((function n(r){var i,o;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}i=Math.max(t.length,r.length),o=0;case 3:if(!(o1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[t[e+0]]+Oo[t[e+1]]+Oo[t[e+2]]+Oo[t[e+3]]+"-"+Oo[t[e+4]]+Oo[t[e+5]]+"-"+Oo[t[e+6]]+Oo[t[e+7]]+"-"+Oo[t[e+8]]+Oo[t[e+9]]+"-"+Oo[t[e+10]]+Oo[t[e+11]]+Oo[t[e+12]]+Oo[t[e+13]]+Oo[t[e+14]]+Oo[t[e+15]]).toLowerCase();if(!jo(n))throw TypeError("Stringified UUID is invalid");return n}var _o=0,Bo=0;function Ro(t){if(!jo(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function Uo(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n>>9<<4)+1}function Yo(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function Wo(t,e,n,r,i,o){return Yo((a=Yo(Yo(e,t),Yo(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function Fo(t,e,n,r,i,o,a){return Wo(e&n|~e&r,t,e,i,o,a)}function Vo(t,e,n,r,i,o,a){return Wo(e&r|n&~r,t,e,i,o,a)}function Ho(t,e,n,r,i,o,a){return Wo(e^n^r,t,e,i,o,a)}function Go(t,e,n,r,i,o,a){return Wo(n^(e|~r),t,e,i,o,a)}var qo=Uo("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<>5]|=(255&t[r/8])<>>32-e}var Xo=Uo("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i>>0;w=v,v=g,g=Jo(m,30)>>>0,m=y,y=A}n[0]=n[0]+y>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Ko=j(Object.freeze({__proto__:null,v1:function(t,e,n){var r=e&&n||0,i=e||new Array(16),o=(t=t||{}).node||Do,a=void 0!==t.clockseq?t.clockseq:Co;if(null==o||null==a){var s=t.random||(t.rng||Lo)();null==o&&(o=Do=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Co=16383&(s[6]<<8|s[7]))}var u=void 0!==t.msecs?t.msecs:Date.now(),c=void 0!==t.nsecs?t.nsecs:Bo+1,l=u-_o+(c-Bo)/1e4;if(l<0&&void 0===t.clockseq&&(a=a+1&16383),(l<0||u>_o)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_o=u,Bo=c,Co=a;var h=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var f=0;f<6;++f)i[r+f]=o[f];return e||Po(i)},v3:qo,v4:function(t,e,n){var r=(t=t||{}).random||(t.rng||Lo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Po(r)},v5:Xo,NIL:"00000000-0000-0000-0000-000000000000",version:function(t){if(!jo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)},validate:jo,stringify:Po,parse:Ro})),$o=Ko.v4,ta=function(t,e,n,r){if("string"!=typeof t)throw new TypeError(t+" must be a string");var i="number"==typeof(r=r||{}).version?r.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:t};if(2===i&&(o.jsonrpc="2.0"),e){if("object"!==z(e)&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");o.params=e}if(void 0===n){var a="function"==typeof r.generator?r.generator:function(){return $o()};o.id=a(o,r)}else 2===i&&null===n?r.notificationIdNull&&(o.id=null):o.id=n;return o},ea=Ko.v4,na=ta,ra=function t(e,n){if(!(this instanceof t))return new t(e,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return ea()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=e},ia=ra;ra.prototype.request=function(t,e,n,r){var i=this,o=null,a=Array.isArray(t)&&"function"==typeof e;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");var s,u=!a&&t&&"object"===z(t)&&"function"==typeof e;if(a||u)r=e,o=t;else{"function"==typeof n&&(r=n,n=void 0);var c="function"==typeof r;try{o=na(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(t){if(c)return r(t);throw t}if(!c)return o}try{s=JSON.stringify(o,this.options.replacer)}catch(t){return r(t)}return this.callServer(s,(function(t,e){i._parseResponse(t,e,r)})),o},ra.prototype._parseResponse=function(t,e,n){if(t)n(t);else{if(!e)return n();var r;try{r=JSON.parse(e,this.options.reviver)}catch(t){return n(t)}if(3===n.length){if(Array.isArray(r)){var i=function(t){return void 0!==t.error};return n(null,r.filter(i),r.filter((function(t){return!i(t)})))}return n(null,r.error,r.result)}n(null,r)}};var oa,aa=ia,sa={},ua={exports:{}};(oa=ua).exports=function(t){return t&&t.__esModule?t:{default:t}},oa.exports.__esModule=!0,oa.exports.default=oa.exports;var ca,la,ha,da,fa={exports:{}},pa={exports:{}};function ya(){return ca||(ca=1,function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(pa)),pa.exports}function ma(){return la||(la=1,function(t){var e=ya().default;function n(){ +!function(t,e){var n=ur,r=n.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(lr,lr.exports);var hr=lr.exports.Buffer;var dr=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;var p=hr.allocUnsafe(r+(o-f));p.fill(0,0,r);for(var y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=hr.from(e)),!hr.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);p>>3,s=ve(o,17)^ve(o,19)^o>>>10;mr[r]=s+mr[r-7]+a+mr[r-16]|0}for(var u,c=this.A,l=this.B,h=this.C,d=this.D,f=this.E,p=this.F,y=this.G,m=this.H,g=0;g<64;g++){var v=m+(ve(f,6)^ve(f,11)^ve(f,25))+((u=f)&p^~u&y)+pr[g]+mr[g]|0,w=(ve(c,2)^ve(c,13)^ve(c,22))+fr(c,l,h)|0;m=y,y=p,p=f,f=d+v|0,d=h,h=l,l=c,c=v+w|0}c=c+this.A|0,l=l+this.B|0,h=h+this.C|0,d=d+this.D|0,f=f+this.E|0,p=p+this.F|0,y=y+this.G|0,m=m+this.H|0,this.set(c,l,h,d,f,p,y,m)}},{key:"roundClean",value:function(){mr.fill(0)}},{key:"destroy",value:function(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}]),n}(),vr=Ie((function(){return new gr})),wr={},br={exports:{}};!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215)||a!==this.length-1?h[6-u.length]+u+r:u+r,(i+=2)>=26&&(i-=26,a--)}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(br,L);var Mr={exports:{}}; +/*! safe-buffer. MIT License. Feross Aboukhadijeh */!function(t,e){var n=ur,r=n.Buffer;function i(t,e){for(var n in t)e[n]=t[n]}function o(t,e,n){return r(t,e,n)}r.from&&r.alloc&&r.allocUnsafe&&r.allocUnsafeSlow?t.exports=n:(i(n,e),e.Buffer=o),o.prototype=Object.create(r.prototype),i(r,o),o.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return r(t,e,n)},o.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=r(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},o.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r(t)},o.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return n.SlowBuffer(t)}}(Mr,Mr.exports);var Ar=Mr.exports.Buffer;var Ir=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;var p=Ar.allocUnsafe(r+(o-f));p.fill(0,0,r);for(var y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if((Array.isArray(e)||e instanceof Uint8Array)&&(e=Ar.from(e)),!Ar.isBuffer(e))throw new TypeError("Expected Buffer");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);p>6*n)+r];n>0;){var o=e>>6*(n-1);i.push(128|63&o),n-=1}return i}}Tr.prototype={decode:function(t,e){var n;n="object"===z(t)&&t instanceof ArrayBuffer?new Uint8Array(t):"object"===z(t)&&"buffer"in t&&t.buffer instanceof ArrayBuffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):new Uint8Array(0),e=Er(e),this._streaming||(this._decoder=new Sr({fatal:this._fatal}),this._BOMseen=!1),this._streaming=Boolean(e.stream);for(var r,i=new xr(n),o=[];!i.endOfStream()&&-1!==(r=this._decoder.handler(i,i.read()));)null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r));if(!this._streaming){do{if(-1===(r=this._decoder.handler(i,i.read())))break;null!==r&&(Array.isArray(r)?o.push.apply(o,r):o.push(r))}while(!i.endOfStream());this._decoder=null}return o.length&&(-1===["utf-8"].indexOf(this.encoding)||this._ignoreBOM||this._BOMseen||(65279===o[0]?(this._BOMseen=!0,o.shift()):this._BOMseen=!0)),function(t){for(var e="",n=0;n>10),56320+(1023&r)))}return e}(o)}},Lr.prototype={encode:function(t,e){t=t?String(t):"",e=Er(e),this._streaming||(this._encoder=new jr(this._options)),this._streaming=Boolean(e.stream);for(var n,r=[],i=new xr(function(t){for(var e=String(t),n=e.length,r=0,i=[];r57343)i.push(o);else if(56320<=o&&o<=57343)i.push(65533);else if(55296<=o&&o<=56319)if(r===n-1)i.push(65533);else{var a=t.charCodeAt(r+1);if(56320<=a&&a<=57343){var s=1023&o,u=1023&a;i.push(65536+(s<<10)+u),r+=1}else i.push(65533)}r+=1}return i}(t));!i.endOfStream()&&-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);if(!this._streaming){for(;-1!==(n=this._encoder.handler(i,i.read()));)Array.isArray(n)?r.push.apply(r,n):r.push(n);this._encoder=null}return new Uint8Array(r)}};var Cr=j(Object.freeze({__proto__:null,TextEncoder:Lr,TextDecoder:Tr})),Dr=L&&L.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),Or=L&&L.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),zr=L&&L.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"===("undefined"==typeof Reflect?"undefined":z(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},Pr=L&&L.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.hasOwnProperty.call(t,n)&&Dr(e,t,n);return Or(e,t),e},_r=L&&L.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(wr,"__esModule",{value:!0});var Br=wr.deserializeUnchecked=$r=wr.deserialize=Jr=wr.serialize=wr.BinaryReader=wr.BinaryWriter=wr.BorshError=wr.baseDecode=wr.baseEncode=void 0,Rr=_r(br.exports),Ur=_r(Ir),Qr=Pr(Cr),Yr=new("function"!=typeof TextDecoder?Qr.TextDecoder:TextDecoder)("utf-8",{fatal:!0});wr.baseEncode=function(t){return"string"==typeof t&&(t=Nt.from(t,"utf8")),Ur.default.encode(Nt.from(t))},wr.baseDecode=function(t){return Nt.from(Ur.default.decode(t))};var Wr=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,t)).fieldPath=[],r.originalMessage=t,r}return U(n,[{key:"addToFieldPath",value:function(t){this.fieldPath.splice(0,0,t),this.message=this.originalMessage+": "+this.fieldPath.join(".")}}]),n}();wr.BorshError=Wr;var Fr=function(){function t(){B(this,t),this.buf=Nt.alloc(1024),this.length=0}return U(t,[{key:"maybeResize",value:function(){this.buf.length<16+this.length&&(this.buf=Nt.concat([this.buf,Nt.alloc(1024)]))}},{key:"writeU8",value:function(t){this.maybeResize(),this.buf.writeUInt8(t,this.length),this.length+=1}},{key:"writeU16",value:function(t){this.maybeResize(),this.buf.writeUInt16LE(t,this.length),this.length+=2}},{key:"writeU32",value:function(t){this.maybeResize(),this.buf.writeUInt32LE(t,this.length),this.length+=4}},{key:"writeU64",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",8)))}},{key:"writeU128",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",16)))}},{key:"writeU256",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",32)))}},{key:"writeU512",value:function(t){this.maybeResize(),this.writeBuffer(Nt.from(new Rr.default(t).toArray("le",64)))}},{key:"writeBuffer",value:function(t){this.buf=Nt.concat([Nt.from(this.buf.subarray(0,this.length)),t,Nt.alloc(1024)]),this.length+=t.length}},{key:"writeString",value:function(t){this.maybeResize();var e=Nt.from(t,"utf8");this.writeU32(e.length),this.writeBuffer(e)}},{key:"writeFixedArray",value:function(t){this.writeBuffer(Nt.from(t))}},{key:"writeArray",value:function(t,e){this.maybeResize(),this.writeU32(t.length);var n,r=st(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this.maybeResize(),e(i)}}catch(t){r.e(t)}finally{r.f()}}},{key:"toArray",value:function(){return this.buf.subarray(0,this.length)}}]),t}();function Vr(t,e,n){var r=n.value;n.value=function(){try{for(var t=arguments.length,e=new Array(t),n=0;n=0)throw new Wr("Reached the end of buffer when deserializing")}throw t}}}wr.BinaryWriter=Fr;var Hr=function(){function t(e){B(this,t),this.buf=e,this.offset=0}return U(t,[{key:"readU8",value:function(){var t=this.buf.readUInt8(this.offset);return this.offset+=1,t}},{key:"readU16",value:function(){var t=this.buf.readUInt16LE(this.offset);return this.offset+=2,t}},{key:"readU32",value:function(){var t=this.buf.readUInt32LE(this.offset);return this.offset+=4,t}},{key:"readU64",value:function(){var t=this.readBuffer(8);return new Rr.default(t,"le")}},{key:"readU128",value:function(){var t=this.readBuffer(16);return new Rr.default(t,"le")}},{key:"readU256",value:function(){var t=this.readBuffer(32);return new Rr.default(t,"le")}},{key:"readU512",value:function(){var t=this.readBuffer(64);return new Rr.default(t,"le")}},{key:"readBuffer",value:function(t){if(this.offset+t>this.buf.length)throw new Wr("Expected buffer length ".concat(t," isn't within bounds"));var e=this.buf.slice(this.offset,this.offset+t);return this.offset+=t,e}},{key:"readString",value:function(){var t=this.readU32(),e=this.readBuffer(t);try{return Yr.decode(e)}catch(t){throw new Wr("Error decoding UTF-8 string: ".concat(t))}}},{key:"readFixedArray",value:function(t){return new Uint8Array(this.readBuffer(t))}},{key:"readArray",value:function(t){for(var e=this.readU32(),n=Array(),r=0;r2&&void 0!==arguments[2]?arguments[2]:Fr,r=new n;return Zr(t,e,r),r.toArray()};function Xr(t,e,n,r){try{if("string"==typeof n)return r["read".concat(Gr(n))]();if(n instanceof Array){if("number"==typeof n[0])return r.readFixedArray(n[0]);if("number"==typeof n[1]){for(var i=[],o=0;o=r.values.length)throw new Wr("Enum index: ".concat(l," is out of range"));var h=tt(r.values[l],2),d=h[0];return new e(Q({},d,Xr(t,d,h[1],n)))}throw new Wr("Unexpected schema kind: ".concat(r.kind," for ").concat(e.constructor.name))}var $r=wr.deserialize=function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Hr,i=new r(n),o=Kr(t,e,i);if(i.offset3&&void 0!==arguments[3]?arguments[3]:Hr,i=new r(n);return Kr(t,e,i)};var ti={};Object.defineProperty(ti,"__esModule",{value:!0}),ti.s16=ti.s8=ti.nu64be=ti.u48be=ti.u40be=ti.u32be=ti.u24be=ti.u16be=Yi=ti.nu64=ti.u48=ti.u40=Qi=ti.u32=ti.u24=Ui=ti.u16=Ri=ti.u8=Bi=ti.offset=ti.greedy=ti.Constant=ti.UTF8=ti.CString=ti.Blob=ti.Boolean=ti.BitField=ti.BitStructure=ti.VariantLayout=ti.Union=ti.UnionLayoutDiscriminator=ti.UnionDiscriminator=ti.Structure=ti.Sequence=ti.DoubleBE=ti.Double=ti.FloatBE=ti.Float=ti.NearInt64BE=ti.NearInt64=ti.NearUInt64BE=ti.NearUInt64=ti.IntBE=ti.Int=ti.UIntBE=ti.UInt=ti.OffsetLayout=ti.GreedyCount=ti.ExternalLayout=ti.bindConstructorLayout=ti.nameWithProperty=ti.Layout=ti.uint8ArrayToBuffer=ti.checkUint8Array=void 0,ti.constant=ti.utf8=ti.cstr=Hi=ti.blob=ti.unionLayoutDiscriminator=ti.union=Vi=ti.seq=ti.bits=Fi=ti.struct=ti.f64be=ti.f64=ti.f32be=ti.f32=ti.ns64be=ti.s48be=ti.s40be=ti.s32be=ti.s24be=ti.s16be=Wi=ti.ns64=ti.s48=ti.s40=ti.s32=ti.s24=void 0;var ei=ur;function ni(t){if(!(t instanceof Uint8Array))throw new TypeError("b must be a Uint8Array")}function ri(t){return ni(t),ei.Buffer.from(t.buffer,t.byteOffset,t.length)}ti.checkUint8Array=ni,ti.uint8ArrayToBuffer=ri;var ii=function(){function t(e,n){if(B(this,t),!Number.isInteger(e))throw new TypeError("span must be an integer");this.span=e,this.property=n}return U(t,[{key:"makeDestinationObject",value:function(){return{}}},{key:"getSpan",value:function(t,e){if(0>this.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}]),t}();function oi(t,e){return e.property?t+"["+e.property+"]":t}ti.Layout=ii,ti.nameWithProperty=oi,ti.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(Object.prototype.hasOwnProperty.call(t,"layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof ii))throw new TypeError("layout must be a Layout");if(Object.prototype.hasOwnProperty.call(e,"boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,n){return e.decode(t,n)},writable:!0})};var ai=function(t){Y(n,ii);var e=X(n);function n(){return B(this,n),e.apply(this,arguments)}return U(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}();ti.ExternalLayout=ai;var si=function(t){Y(n,ai);var e=X(n);function n(){var t,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,i=arguments.length>1?arguments[1]:void 0;if(B(this,n),!Number.isInteger(r)||0>=r)throw new TypeError("elementSpan must be a (positive) integer");return(t=e.call(this,-1,i)).elementSpan=r,t}return U(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);var n=t.length-e;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(t,e,n){return 0}}]),n}();ti.GreedyCount=si;var ui=function(t){Y(n,ai);var e=X(n);function n(t){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2?arguments[2]:void 0;if(B(this,n),!(t instanceof ii))throw new TypeError("layout must be a Layout");if(!Number.isInteger(i))throw new TypeError("offset must be integer or undefined");return(r=e.call(this,t.span,o||t.property)).layout=t,r.offset=i,r}return U(n,[{key:"isCount",value:function(){return this.layout instanceof ci||this.layout instanceof li}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.layout.encode(t,e,n+this.offset)}}]),n}();ti.OffsetLayout=ui;var ci=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readUIntLE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeUIntLE(t,n,this.span),this.span}}]),n}();ti.UInt=ci;var li=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readUIntBE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeUIntBE(t,n,this.span),this.span}}]),n}();ti.UIntBE=li;var hi=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readIntLE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeIntLE(t,n,this.span),this.span}}]),n}();ti.Int=hi;var di=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readIntBE(e,this.span)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeIntBE(t,n,this.span),this.span}}]),n}();ti.IntBE=di;var fi=Math.pow(2,32);function pi(t){var e=Math.floor(t/fi);return{hi32:e,lo32:t-e*fi}}function yi(t,e){return t*fi+e}var mi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32LE(e),i=n.readUInt32LE(e+4);return yi(i,r)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32LE(r.lo32,n),i.writeUInt32LE(r.hi32,n+4),8}}]),n}();ti.NearUInt64=mi;var gi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32BE(e),i=n.readUInt32BE(e+4);return yi(r,i)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();ti.NearUInt64BE=gi;var vi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readUInt32LE(e),i=n.readInt32LE(e+4);return yi(i,r)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeUInt32LE(r.lo32,n),i.writeInt32LE(r.hi32,n+4),8}}]),n}();ti.NearInt64=vi;var wi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=ri(t),r=n.readInt32BE(e),i=n.readUInt32BE(e+4);return yi(r,i)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=pi(t),i=ri(e);return i.writeInt32BE(r.hi32,n),i.writeUInt32BE(r.lo32,n+4),8}}]),n}();ti.NearInt64BE=wi;var bi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readFloatLE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeFloatLE(t,n),4}}]),n}();ti.Float=bi;var Mi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readFloatBE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeFloatBE(t,n),4}}]),n}();ti.FloatBE=Mi;var Ai=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readDoubleLE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeDoubleLE(t,n),8}}]),n}();ti.Double=Ai;var Ii=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ri(t).readDoubleBE(e)}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return ri(e).writeDoubleBE(t,n),8}}]),n}();ti.DoubleBE=Ii;var Ni=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof ii))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof ai&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof ai)&&01&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0,r=this.count;if(r instanceof ai&&(r=r.decode(t,e)),01&&void 0!==arguments[1]?arguments[1]:0,n=[],r=0,i=this.count;for(i instanceof ai&&(i=i.decode(t,e));r2&&void 0!==arguments[2]?arguments[2]:0,r=this.elementLayout,i=t.reduce((function(t,i){return t+r.encode(i,e,n+t)}),0);return this.count instanceof ai&&this.count.encode(t.length,e,n),i}}]),n}();ti.Sequence=Ni;var Ei=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!Array.isArray(t)||!t.reduce((function(t,e){return t&&e instanceof ii}),!0))throw new TypeError("fields must be array of Layout instances");"boolean"==typeof r&&void 0===i&&(i=r,r=void 0);var a,s=st(t);try{for(s.s();!(a=s.n()).done;){var u=a.value;if(0>u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(t){s.e(t)}finally{s.f()}var c=-1;try{c=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(t){}return(o=e.call(this,c,r)).fields=t,o.decodePrefixes=!!i,o}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(t){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);var n,r=this.makeDestinationObject(),i=st(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(t,e)),e+=o.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"encode",value:function(t,e){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=r,o=0,a=0,s=st(this.fields);try{for(s.s();!(n=s.n()).done;){var u=n.value,c=u.span;if(a=0c&&(c=u.getSpan(e,r)))}o=r,r+=c}}catch(t){s.e(t)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(t){var e,n=this.makeDestinationObject(),r=st(this.fields);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(t){r.e(t)}finally{r.f()}}}]),n}();ti.Structure=Ei;var xi=function(){function t(e){B(this,t),this.property=e}return U(t,[{key:"decode",value:function(t,e){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(t,e,n){throw new Error("UnionDiscriminator is abstract")}}]),t}();ti.UnionDiscriminator=xi;var ki=function(t){Y(n,xi);var e=X(n);function n(t,r){var i;if(B(this,n),!(t instanceof ai&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,r||t.property||"variant")).layout=t,i}return U(n,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,n){return this.layout.encode(t,e,n)}}]),n}();ti.UnionLayoutDiscriminator=ki;var Ti=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o,a;if(B(this,n),t instanceof ci||t instanceof li)a=new ki(new ui(t));else if(t instanceof ai&&t.isCount())a=new ki(t);else{if(!(t instanceof xi))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");a=t}if(void 0===r&&(r=null),!(null===r||r instanceof ii))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&(t instanceof ci||t instanceof li)&&(s+=a.layout.span),(o=e.call(this,s,i)).discriminator=a,o.usesPrefixDiscriminator=t instanceof ci||t instanceof li,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(Z(o));return o.getSourceVariant=function(t){return u(t)},o.configGetSourceVariant=function(t){u=t.bind(this)},o}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(Object.prototype.hasOwnProperty.call(t,this.discriminator.property)){if(this.defaultLayout&&this.defaultLayout.property&&Object.prototype.hasOwnProperty.call(t,this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||e.property&&Object.prototype.hasOwnProperty.call(t,e.property)))return e}else for(var n in this.registry){var r=this.registry[n];if(r.property&&Object.prototype.hasOwnProperty.call(t,r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.discriminator,i=r.decode(t,n),o=this.registry[i];if(void 0===o){var a=this.defaultLayout,s=0;this.usesPrefixDiscriminator&&(s=r.layout.span),(e=this.makeDestinationObject())[r.property]=i,e[a.property]=a.decode(t,n+s)}else e=o.decode(t,n);return e}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.getSourceVariant(t);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,n),a+o.encode(t[o.property],e,n+a)}return r.encode(t,e,n)}},{key:"addVariant",value:function(t,e,n){var r=new Li(this,t,e,n);return this.registry[t]=r,r}},{key:"getVariant",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return e=t instanceof Uint8Array?this.discriminator.decode(t,n):t,this.registry[e]}}]),n}();ti.Union=Ti;var Li=function(t){Y(n,ii);var e=X(n);function n(t,r,i,o){var a;if(B(this,n),!(t instanceof Ti))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof ii))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=t.span;return 0>t.span&&0<=(s=i?i.span:0)&&t.usesPrefixDiscriminator&&(s+=t.discriminator.layout.span),(a=e.call(this,s,o)).union=t,a.variant=r,a.layout=i||null,a}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(0<=this.span)return this.span;var n=0;this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span);var r=0;return this.layout&&(r=this.layout.getSpan(t,e+n)),n+r}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject();if(this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!Object.prototype.hasOwnProperty.call(t,this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);var i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),n}();function Si(t){return 0>t&&(t+=4294967296),t}ti.VariantLayout=Li;var ji=function(t){Y(n,ii);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof ci||t instanceof li))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=!1),41&&void 0!==arguments[1]?arguments[1]:0,n=this.makeDestinationObject(),r=this.word.decode(t,e);this._packedSetValue(r);var i,o=st(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;void 0!==a.property&&(n[a.property]=a.decode(t))}}catch(t){o.e(t)}finally{o.f()}return n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=this.word.decode(e,n);this._packedSetValue(r);var i,o=st(this.fields);try{for(o.s();!(i=o.n()).done;){var a=i.value;if(void 0!==a.property){var s=t[a.property];void 0!==s&&a.encode(s)}}}catch(t){o.e(t)}finally{o.f()}return this.word.encode(this._packedGetValue(),e,n)}},{key:"addField",value:function(t,e){var n=new Ci(this,t,e);return this.fields.push(n),n}},{key:"addBoolean",value:function(t){var e=new Di(this,t);return this.fields.push(e),e}},{key:"fieldFor",value:function(t){if("string"!=typeof t)throw new TypeError("property must be string");var e,n=st(this.fields);try{for(n.s();!(e=n.n()).done;){var r=e.value;if(r.property===t)return r}}catch(t){n.e(t)}finally{n.f()}}}]),n}();ti.BitStructure=ji;var Ci=function(){function t(e,n,r){if(B(this,t),!(e instanceof ji))throw new TypeError("container must be a BitStructure");if(!Number.isInteger(n)||0>=n)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(t){if("number"!=typeof t||!Number.isInteger(t)||t!==Si(t&this.valueMask))throw new TypeError(oi("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),n=Si(t<n&&(n=this.length.decode(t,e)),n}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.span;return 0>n&&(n=this.length.decode(t,e)),ri(t).slice(e,e+n)}},{key:"encode",value:function(t,e,n){var r=this.length;if(this.length instanceof ai&&(r=t.length),!(t instanceof Uint8Array&&r===t.length))throw new TypeError(oi("Blob.encode",this)+" requires (length "+r+") Uint8Array as src");if(n+r>e.length)throw new RangeError("encoding overruns Uint8Array");var i=ri(t);return ri(e).write(i.toString("hex"),n,r,"hex"),this.length instanceof ai&&this.length.encode(r,e,n),r}}]),n}();ti.Blob=Oi;var zi=function(t){Y(n,ii);var e=X(n);function n(t){return B(this,n),e.call(this,-1,t)}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;ni(t);for(var n=e;n1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(t,e);return ri(t).slice(e,e+n-1).toString("utf-8")}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof t&&(t=String(t));var r=ei.Buffer.from(t,"utf8"),i=r.length;if(n+i>e.length)throw new RangeError("encoding overruns Buffer");var o=ri(e);return r.copy(o,n),o[n+i]=0,i+1}}]),n}();ti.CString=zi;var Pi=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;if(B(this,n),"string"==typeof t&&void 0===r&&(r=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=e.call(this,-1,r)).maxSpan=t,i}return U(n,[{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return ni(t),t.length-e}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpan2&&void 0!==arguments[2]?arguments[2]:0;"string"!=typeof t&&(t=String(t));var r=ei.Buffer.from(t,"utf8"),i=r.length;if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return r.copy(ri(e),n),i}}]),n}();ti.UTF8=Pi;var _i=function(t){Y(n,ii);var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,0,r)).value=t,i}return U(n,[{key:"decode",value:function(t,e){return this.value}},{key:"encode",value:function(t,e,n){return 0}}]),n}();ti.Constant=_i,ti.greedy=function(t,e){return new si(t,e)};var Bi=ti.offset=function(t,e,n){return new ui(t,e,n)},Ri=ti.u8=function(t){return new ci(1,t)},Ui=ti.u16=function(t){return new ci(2,t)};ti.u24=function(t){return new ci(3,t)};var Qi=ti.u32=function(t){return new ci(4,t)};ti.u40=function(t){return new ci(5,t)},ti.u48=function(t){return new ci(6,t)};var Yi=ti.nu64=function(t){return new mi(t)};ti.u16be=function(t){return new li(2,t)},ti.u24be=function(t){return new li(3,t)},ti.u32be=function(t){return new li(4,t)},ti.u40be=function(t){return new li(5,t)},ti.u48be=function(t){return new li(6,t)},ti.nu64be=function(t){return new gi(t)},ti.s8=function(t){return new hi(1,t)},ti.s16=function(t){return new hi(2,t)},ti.s24=function(t){return new hi(3,t)},ti.s32=function(t){return new hi(4,t)},ti.s40=function(t){return new hi(5,t)},ti.s48=function(t){return new hi(6,t)};var Wi=ti.ns64=function(t){return new vi(t)};ti.s16be=function(t){return new di(2,t)},ti.s24be=function(t){return new di(3,t)},ti.s32be=function(t){return new di(4,t)},ti.s40be=function(t){return new di(5,t)},ti.s48be=function(t){return new di(6,t)},ti.ns64be=function(t){return new wi(t)},ti.f32=function(t){return new bi(t)},ti.f32be=function(t){return new Mi(t)},ti.f64=function(t){return new Ai(t)},ti.f64be=function(t){return new Ii(t)};var Fi=ti.struct=function(t,e,n){return new Ei(t,e,n)};ti.bits=function(t,e,n){return new ji(t,e,n)};var Vi=ti.seq=function(t,e,n){return new Ni(t,e,n)};ti.union=function(t,e,n){return new Ti(t,e,n)},ti.unionLayoutDiscriminator=function(t,e){return new ki(t,e)};var Hi=ti.blob=function(t,e){return new Oi(t,e)};ti.cstr=function(t){return new zi(t)},ti.utf8=function(t,e){return new Pi(t,e)},ti.constant=function(t,e){return new _i(t,e)};var Gi={};Object.defineProperty(Gi,"__esModule",{value:!0});var qi=Gi.toBigIntLE=function(t){var e=Nt.from(t);e.reverse();var n=e.toString("hex");return 0===n.length?BigInt(0):BigInt("0x".concat(n))};Gi.toBigIntBE=function(t){var e=t.toString("hex");return 0===e.length?BigInt(0):BigInt("0x".concat(e))};var Zi=Gi.toBufferLE=function(t,e){var n=t.toString(16),r=Nt.from(n.padStart(2*e,"0").slice(0,2*e),"hex");return r.reverse(),r};Gi.toBufferBE=function(t,e){var n=t.toString(16);return Nt.from(n.padStart(2*e,"0").slice(0,2*e),"hex")};var Ji=["message"],Xi=O().mark(io),Ki=function(t){Y(n,G(TypeError));var e=X(n);function n(t,r){var i,o;B(this,n);var a=t.message,s=q(t,Ji),u=t.path,c=0===u.length?a:"At path: "+u.join(".")+" -- "+a;return i=e.call(this,c),Object.assign(Z(i),s),i.name=i.constructor.name,i.failures=function(){var e;return null!=(e=o)?e:o=[t].concat(et(r()))},i}return U(n)}();function $i(t){return to(t)&&"function"==typeof t[Symbol.iterator]}function to(t){return"object"===z(t)&&null!=t}function eo(t){return"string"==typeof t?JSON.stringify(t):""+t}function no(t){var e=t.next(),n=e.done,r=e.value;return n?void 0:r}function ro(t,e,n,r){if(!0!==t){!1===t?t={}:"string"==typeof t&&(t={message:t});var i=e.path,o=e.branch,a=n.type,s=t,u=s.refinement,c=s.message,l=void 0===c?"Expected a value of type `"+a+"`"+(u?" with refinement `"+u+"`":"")+", but received: `"+eo(r)+"`":c;return D(D({value:r,type:a,refinement:u,key:i[i.length-1],path:i,branch:o},t),{},{message:l})}}function io(t,e,n,r){var i,o,a,s;return O().wrap((function(u){for(;;)switch(u.prev=u.next){case 0:$i(t)||(t=[t]),i=st(t),u.prev=2,i.s();case 4:if((o=i.n()).done){u.next=12;break}if(a=o.value,!(s=ro(a,e,n,r))){u.next=10;break}return u.next=10,s;case 10:u.next=4;break;case 12:u.next=17;break;case 14:u.prev=14,u.t0=u.catch(2),i.e(u.t0);case 17:return u.prev=17,i.f(),u.finish(17);case 20:case"end":return u.stop()}}),Xi,null,[[2,14,17,20]])}function oo(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return O().mark((function r(){var i,o,a,s,u,c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=n.path,o=void 0===i?[]:i,a=n.branch,s=void 0===a?[t]:a,u=n.coerce,c=void 0!==u&&u,l=n.mask,h=void 0!==l&&l,d={path:o,branch:s},c&&(t=e.coercer(t,d),h&&"type"!==e.type&&to(e.schema)&&to(t)&&!Array.isArray(t)))for(f in t)void 0===e.schema[f]&&delete t[f];p=!0,y=st(e.validator(t,d)),r.prev=5,y.s();case 7:if((m=y.n()).done){r.next=14;break}return g=m.value,p=!1,r.next=12,[g,void 0];case 12:r.next=7;break;case 14:r.next=19;break;case 16:r.prev=16,r.t0=r.catch(5),y.e(r.t0);case 19:return r.prev=19,y.f(),r.finish(19);case 22:v=st(e.entries(t,d)),r.prev=23,v.s();case 25:if((w=v.n()).done){r.next=52;break}b=tt(w.value,3),M=b[0],A=b[1],I=b[2],N=oo(A,I,{path:void 0===M?o:[].concat(et(o),[M]),branch:void 0===M?s:[].concat(et(s),[A]),coerce:c,mask:h}),E=st(N),r.prev=29,E.s();case 31:if((x=E.n()).done){r.next=42;break}if(!(k=x.value)[0]){r.next=39;break}return p=!1,r.next=37,[k[0],void 0];case 37:r.next=40;break;case 39:c&&(A=k[1],void 0===M?t=A:t instanceof Map?t.set(M,A):t instanceof Set?t.add(A):to(t)&&(t[M]=A));case 40:r.next=31;break;case 42:r.next=47;break;case 44:r.prev=44,r.t1=r.catch(29),E.e(r.t1);case 47:return r.prev=47,E.f(),r.finish(47);case 50:r.next=25;break;case 52:r.next=57;break;case 54:r.prev=54,r.t2=r.catch(23),v.e(r.t2);case 57:return r.prev=57,v.f(),r.finish(57);case 60:if(!p){r.next=79;break}T=st(e.refiner(t,d)),r.prev=62,T.s();case 64:if((L=T.n()).done){r.next=71;break}return S=L.value,p=!1,r.next=69,[S,void 0];case 69:r.next=64;break;case 71:r.next=76;break;case 73:r.prev=73,r.t3=r.catch(62),T.e(r.t3);case 76:return r.prev=76,T.f(),r.finish(76);case 79:if(!p){r.next=82;break}return r.next=82,[void 0,t];case 82:case"end":return r.stop()}}),r,null,[[5,16,19,22],[23,54,57,60],[29,44,47,50],[62,73,76,79]])}))()}var ao,so=function(){function t(e){var n=this;B(this,t);var r=e.type,i=e.schema,o=e.validator,a=e.refiner,s=e.coercer,u=void 0===s?function(t){return t}:s,c=e.entries,l=void 0===c?O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})):c;this.type=r,this.schema=i,this.entries=l,this.coercer=u,this.validator=o?function(t,e){return io(o(t,e),e,n,t)}:function(){return[]},this.refiner=a?function(t,e){return io(a(t,e),e,n,t)}:function(){return[]}}return U(t,[{key:"assert",value:function(t){return uo(t,this)}},{key:"create",value:function(t){return co(t,this)}},{key:"is",value:function(t){return lo(t,this)}},{key:"mask",value:function(t){return function(t,e){var n=ho(t,e,{coerce:!0,mask:!0});if(n[0])throw n[0];return n[1]}(t,this)}},{key:"validate",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return ho(t,this,e)}}]),t}();function uo(t,e){var n=ho(t,e);if(n[0])throw n[0]}function co(t,e){var n=ho(t,e,{coerce:!0});if(n[0])throw n[0];return n[1]}function lo(t,e){return!ho(t,e)[0]}function ho(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=oo(t,e,n),i=no(r);if(i[0]){var o=new Ki(i[0],O().mark((function t(){var e,n,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=st(r),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=10;break}if(!(i=n.value)[0]){t.next=8;break}return t.next=8,i[0];case 8:t.next=3;break;case 10:t.next=15;break;case 12:t.prev=12,t.t0=t.catch(1),e.e(t.t0);case 15:return t.prev=15,e.f(),t.finish(15);case 18:case"end":return t.stop()}}),t,null,[[1,12,15,18]])})));return[o,void 0]}var a=i[1];return[void 0,a]}function fo(t,e){return new so({type:t,schema:null,validator:e})}function po(t){return new so({type:"array",schema:t,entries:O().mark((function e(n){var r,i,o,a,s;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!Array.isArray(n)){e.next=18;break}r=st(n.entries()),e.prev=2,r.s();case 4:if((i=r.n()).done){e.next=10;break}return o=tt(i.value,2),a=o[0],s=o[1],e.next=8,[a,s,t];case 8:e.next=4;break;case 10:e.next=15;break;case 12:e.prev=12,e.t0=e.catch(2),r.e(e.t0);case 15:return e.prev=15,r.f(),e.finish(15);case 18:case"end":return e.stop()}}),e,null,[[2,12,15,18]])})),coercer:function(t){return Array.isArray(t)?t.slice():t},validator:function(t){return Array.isArray(t)||"Expected an array value, but received: "+eo(t)}})}function yo(){return fo("boolean",(function(t){return"boolean"==typeof t}))}function mo(t){return fo("instance",(function(e){return e instanceof t||"Expected a `"+t.name+"` instance, but received: "+eo(e)}))}function go(t){var e=eo(t),n=z(t);return new so({type:"literal",schema:"string"===n||"number"===n||"boolean"===n?t:null,validator:function(n){return n===t||"Expected the literal `"+e+"`, but received: "+eo(n)}})}function vo(t){return new so(D(D({},t),{},{validator:function(e,n){return null===e||t.validator(e,n)},refiner:function(e,n){return null===e||t.refiner(e,n)}}))}function wo(){return fo("number",(function(t){return"number"==typeof t&&!isNaN(t)||"Expected a number, but received: "+eo(t)}))}function bo(t){return new so(D(D({},t),{},{validator:function(e,n){return void 0===e||t.validator(e,n)},refiner:function(e,n){return void 0===e||t.refiner(e,n)}}))}function Mo(t,e){return new so({type:"record",schema:null,entries:O().mark((function n(r){var i,o;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!to(r)){n.next=11;break}n.t0=O().keys(r);case 2:if((n.t1=n.t0()).done){n.next=11;break}return i=n.t1.value,o=r[i],n.next=7,[i,i,t];case 7:return n.next=9,[i,o,e];case 9:n.next=2;break;case 11:case"end":return n.stop()}}),n)})),validator:function(t){return to(t)||"Expected an object, but received: "+eo(t)}})}function Ao(){return fo("string",(function(t){return"string"==typeof t||"Expected a string, but received: "+eo(t)}))}function Io(t){var e=fo("never",(function(){return!1}));return new so({type:"tuple",schema:null,entries:O().mark((function n(r){var i,o;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=9;break}i=Math.max(t.length,r.length),o=0;case 3:if(!(o1&&void 0!==arguments[1]?arguments[1]:0,n=(Oo[t[e+0]]+Oo[t[e+1]]+Oo[t[e+2]]+Oo[t[e+3]]+"-"+Oo[t[e+4]]+Oo[t[e+5]]+"-"+Oo[t[e+6]]+Oo[t[e+7]]+"-"+Oo[t[e+8]]+Oo[t[e+9]]+"-"+Oo[t[e+10]]+Oo[t[e+11]]+Oo[t[e+12]]+Oo[t[e+13]]+Oo[t[e+14]]+Oo[t[e+15]]).toLowerCase();if(!jo(n))throw TypeError("Stringified UUID is invalid");return n}var _o=0,Bo=0;function Ro(t){if(!jo(t))throw TypeError("Invalid UUID");var e,n=new Uint8Array(16);return n[0]=(e=parseInt(t.slice(0,8),16))>>>24,n[1]=e>>>16&255,n[2]=e>>>8&255,n[3]=255&e,n[4]=(e=parseInt(t.slice(9,13),16))>>>8,n[5]=255&e,n[6]=(e=parseInt(t.slice(14,18),16))>>>8,n[7]=255&e,n[8]=(e=parseInt(t.slice(19,23),16))>>>8,n[9]=255&e,n[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,n[11]=e/4294967296&255,n[12]=e>>>24&255,n[13]=e>>>16&255,n[14]=e>>>8&255,n[15]=255&e,n}function Uo(t,e,n){function r(t,r,i,o){if("string"==typeof t&&(t=function(t){t=unescape(encodeURIComponent(t));for(var e=[],n=0;n>>9<<4)+1}function Yo(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}function Wo(t,e,n,r,i,o){return Yo((a=Yo(Yo(e,t),Yo(r,o)))<<(s=i)|a>>>32-s,n);var a,s}function Fo(t,e,n,r,i,o,a){return Wo(e&n|~e&r,t,e,i,o,a)}function Vo(t,e,n,r,i,o,a){return Wo(e&r|n&~r,t,e,i,o,a)}function Ho(t,e,n,r,i,o,a){return Wo(e^n^r,t,e,i,o,a)}function Go(t,e,n,r,i,o,a){return Wo(n^(e|~r),t,e,i,o,a)}var qo=Uo("v3",48,(function(t){if("string"==typeof t){var e=unescape(encodeURIComponent(t));t=new Uint8Array(e.length);for(var n=0;n>5]>>>i%32&255,a=parseInt(r.charAt(o>>>4&15)+r.charAt(15&o),16);e.push(a)}return e}(function(t,e){t[e>>5]|=128<>5]|=(255&t[r/8])<>>32-e}var Xo=Uo("v5",80,(function(t){var e=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof t){var r=unescape(encodeURIComponent(t));t=[];for(var i=0;i>>0;w=v,v=g,g=Jo(m,30)>>>0,m=y,y=A}n[0]=n[0]+y>>>0,n[1]=n[1]+m>>>0,n[2]=n[2]+g>>>0,n[3]=n[3]+v>>>0,n[4]=n[4]+w>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]}));var Ko=j(Object.freeze({__proto__:null,v1:function(t,e,n){var r=e&&n||0,i=e||new Array(16),o=(t=t||{}).node||Co,a=void 0!==t.clockseq?t.clockseq:Do;if(null==o||null==a){var s=t.random||(t.rng||Lo)();null==o&&(o=Co=[1|s[0],s[1],s[2],s[3],s[4],s[5]]),null==a&&(a=Do=16383&(s[6]<<8|s[7]))}var u=void 0!==t.msecs?t.msecs:Date.now(),c=void 0!==t.nsecs?t.nsecs:Bo+1,l=u-_o+(c-Bo)/1e4;if(l<0&&void 0===t.clockseq&&(a=a+1&16383),(l<0||u>_o)&&void 0===t.nsecs&&(c=0),c>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");_o=u,Bo=c,Do=a;var h=(1e4*(268435455&(u+=122192928e5))+c)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var d=u/4294967296*1e4&268435455;i[r++]=d>>>8&255,i[r++]=255&d,i[r++]=d>>>24&15|16,i[r++]=d>>>16&255,i[r++]=a>>>8|128,i[r++]=255&a;for(var f=0;f<6;++f)i[r+f]=o[f];return e||Po(i)},v3:qo,v4:function(t,e,n){var r=(t=t||{}).random||(t.rng||Lo)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,e){n=n||0;for(var i=0;i<16;++i)e[n+i]=r[i];return e}return Po(r)},v5:Xo,NIL:"00000000-0000-0000-0000-000000000000",version:function(t){if(!jo(t))throw TypeError("Invalid UUID");return parseInt(t.substr(14,1),16)},validate:jo,stringify:Po,parse:Ro})),$o=Ko.v4,ta=function(t,e,n,r){if("string"!=typeof t)throw new TypeError(t+" must be a string");var i="number"==typeof(r=r||{}).version?r.version:2;if(1!==i&&2!==i)throw new TypeError(i+" must be 1 or 2");var o={method:t};if(2===i&&(o.jsonrpc="2.0"),e){if("object"!==z(e)&&!Array.isArray(e))throw new TypeError(e+" must be an object, array or omitted");o.params=e}if(void 0===n){var a="function"==typeof r.generator?r.generator:function(){return $o()};o.id=a(o,r)}else 2===i&&null===n?r.notificationIdNull&&(o.id=null):o.id=n;return o},ea=Ko.v4,na=ta,ra=function t(e,n){if(!(this instanceof t))return new t(e,n);n||(n={}),this.options={reviver:void 0!==n.reviver?n.reviver:null,replacer:void 0!==n.replacer?n.replacer:null,generator:void 0!==n.generator?n.generator:function(){return ea()},version:void 0!==n.version?n.version:2,notificationIdNull:"boolean"==typeof n.notificationIdNull&&n.notificationIdNull},this.callServer=e},ia=ra;ra.prototype.request=function(t,e,n,r){var i=this,o=null,a=Array.isArray(t)&&"function"==typeof e;if(1===this.options.version&&a)throw new TypeError("JSON-RPC 1.0 does not support batching");var s,u=!a&&t&&"object"===z(t)&&"function"==typeof e;if(a||u)r=e,o=t;else{"function"==typeof n&&(r=n,n=void 0);var c="function"==typeof r;try{o=na(t,e,n,{generator:this.options.generator,version:this.options.version,notificationIdNull:this.options.notificationIdNull})}catch(t){if(c)return r(t);throw t}if(!c)return o}try{s=JSON.stringify(o,this.options.replacer)}catch(t){return r(t)}return this.callServer(s,(function(t,e){i._parseResponse(t,e,r)})),o},ra.prototype._parseResponse=function(t,e,n){if(t)n(t);else{if(!e)return n();var r;try{r=JSON.parse(e,this.options.reviver)}catch(t){return n(t)}if(3===n.length){if(Array.isArray(r)){var i=function(t){return void 0!==t.error};return n(null,r.filter(i),r.filter((function(t){return!i(t)})))}return n(null,r.error,r.result)}n(null,r)}};var oa,aa=ia,sa={},ua={exports:{}};(oa=ua).exports=function(t){return t&&t.__esModule?t:{default:t}},oa.exports.__esModule=!0,oa.exports.default=oa.exports;var ca,la,ha,da,fa={exports:{}},pa={exports:{}};function ya(){return ca||(ca=1,function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports}(pa)),pa.exports}function ma(){return la||(la=1,function(t){var e=ya().default;function n(){ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ -t.exports=n=function(){return r},t.exports.__esModule=!0,t.exports.default=t.exports;var r={},i=Object.prototype,o=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},s=a.iterator||"@@iterator",u=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function h(t,e,n,r){var i=e&&e.prototype instanceof p?e:p,o=Object.create(i.prototype),a=new x(r||[]);return o._invoke=function(t,e,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return T()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=I(a,n);if(s){if(s===f)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=d(t,e,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===f)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function d(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}r.wrap=h;var f={};function p(){}function y(){}function m(){}var g={};l(g,s,(function(){return this}));var v=Object.getPrototypeOf,w=v&&v(v(k([])));w&&w!==i&&o.call(w,s)&&(g=w);var b=m.prototype=p.prototype=Object.create(g);function M(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function A(t,n){function r(i,a,s,u){var c=d(t[i],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==e(h)&&o.call(h,"__await")?n.resolve(h.__await).then((function(t){r("next",t,s,u)}),(function(t){r("throw",t,s,u)})):n.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return r("throw",t,s,u)}))}u(c.arg)}var i;this._invoke=function(t,e){function o(){return new n((function(n,i){r(t,e,n,i)}))}return i=i?i.then(o,o):o()}}function I(t,e){var n=t.iterator[e.method];if(void 0===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=void 0,I(t,e),"throw"===e.method))return f;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return f}var r=d(n,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,f;var i=r.arg;return i?i.done?(e[t.resultName]=i.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,f):i:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,f)}function N(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function E(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function x(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(N,this),this.reset(!0)}function k(t){if(t){var e=t[s];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(fa)),fa.exports}var ga,va={exports:{}};var wa,ba={exports:{}};function Ma(){return wa||(wa=1,function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(ba)),ba.exports}var Aa,Ia={exports:{}};function Na(){return Aa||(Aa=1,function(t){function e(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,o.default)(this,p);var a=r.autoconnect,s=void 0===a||a,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,h=void 0===l?1e3:l,y=r.max_reconnects,m=void 0===y?5:y,g=d(r,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(e=f.call(this)).webSocketFactory=t,e.queue={},e.rpc_id=0,e.address=n,e.autoconnect=s,e.ready=!1,e.reconnect=c,e.reconnect_timer_id=void 0,e.reconnect_interval=h,e.max_reconnects=m,e.rest_options=g,e.current_reconnects=0,e.generate_request_id=i||function(){return++e.rpc_id},e.autoconnect&&e._connect(e.address,Object.assign({autoconnect:e.autoconnect,reconnect:e.reconnect,reconnect_interval:e.reconnect_interval,max_reconnects:e.max_reconnects},e.rest_options)),e}return(0,a.default)(p,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,n,r){var o=this;return r||"object"!==(0,i.default)(n)||(r=n,n=null),new Promise((function(i,a){if(!o.ready)return a(new Error("socket not ready"));var s=o.generate_request_id(t,e),u={jsonrpc:"2.0",method:t,params:e||null,id:s};o.socket.send(JSON.stringify(u),r,(function(t){if(t)return a(t);o.queue[s]={promise:[i,a]},n&&(o.queue[s].timeout=setTimeout((function(){delete o.queue[s],a(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:(l=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(r=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"listMethods",value:(c=(0,r.default)(n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(t,e){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};n.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);r()}))}))}},{key:"subscribe",value:(u=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+r[e]);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"unsubscribe",value:(e=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var n=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=Nt.from(e).toString());try{e=JSON.parse(e)}catch(t){return}if(e.notification&&n.listeners(e.notification).length){if(!Object.keys(e.params).length)return n.emit(e.notification);var r=[e.notification];if(e.params.constructor===Object)r.push(e.params);else for(var i=0;in.current_reconnects||0===n.max_reconnects)&&(n.reconnect_timer_id=setTimeout((function(){return n._connect(t,e)}),n.reconnect_interval)))}))}}]),p}(l.EventEmitter);t.default=f}(sa);var Wa=S(sa),Fa={};!function(t){var e=ua.exports;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,e){return new u(t,e)};var n=e(Ma()),r=e(Na()),i=e(Sa()),o=e(Pa()),a=e(Ra());function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,a.default)(t);if(e){var i=(0,a.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.default)(this,n)}}var u=function(t){(0,i.default)(o,t);var e=s(o);function o(t,r,i){var a;return(0,n.default)(this,o),(a=e.call(this)).socket=new window.WebSocket(t,i),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(t){return a.emit("message",t.data)},a.socket.onerror=function(t){return a.emit("error",t)},a.socket.onclose=function(t){a.emit("close",t.code,t.reason)},a}return(0,r.default)(o,[{key:"send",value:function(t,e,n){var r=n||e;try{this.socket.send(t),r()}catch(t){r(t)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,n){this.socket.addEventListener(t,e,n)}}]),o}(Ya().EventEmitter)}(Fa);for(var Va=S(Fa),Ha=[],Ga=[],qa=[],Za=BigInt(0),Ja=BigInt(1),Xa=BigInt(2),Ka=BigInt(7),$a=BigInt(256),ts=BigInt(113),es=0,ns=Ja,rs=1,is=0;es<24;es++){var os=[is,(2*rs+3*is)%5];rs=os[0],is=os[1],Ha.push(2*(5*is+rs)),Ga.push((es+1)*(es+2)/2%64);for(var as=Za,ss=0;ss<7;ss++)(ns=(ns<>Ka)*ts)%$a)&Xa&&(as^=Ja<<(Ja<32?De(t,e,n):Se(t,e,n)},ds=function(t,e,n){return n>32?Ce(t,e,n):je(t,e,n)};var fs=function(t){Y(n,Ae);var e=X(n);function n(t,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(B(this,n),(o=e.call(this)).blockLen=t,o.suffix=r,o.outputLen=i,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,ce(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=ye(o.state),o}return U(n,[{key:"keccak",value:function(){!function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-e;r<24;r++){for(var i=0;i<10;i++)n[i]=t[i]^t[i+10]^t[i+20]^t[i+30]^t[i+40];for(var o=0;o<10;o+=2)for(var a=(o+8)%10,s=(o+2)%10,u=n[s],c=n[s+1],l=hs(u,c,1)^n[a],h=ds(u,c,1)^n[a+1],d=0;d<50;d+=10)t[o+d]^=l,t[o+d+1]^=h;for(var f=t[2],p=t[3],y=0;y<24;y++){var m=Ga[y],g=hs(f,p,m),v=ds(f,p,m),w=Ha[y];f=t[w],p=t[w+1],t[w]=g,t[w+1]=v}for(var b=0;b<50;b+=10){for(var M=0;M<10;M++)n[M]=t[b+M];for(var A=0;A<10;A++)t[b+A]^=~n[(A+2)%10]&n[(A+4)%10]}t[0]^=cs[r],t[1]^=ls[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(t){de(this);for(var e=this.blockLen,n=this.state,r=(t=be(t)).length,i=0;i=n&&this.keccak();var o=Math.min(n-this.posOut,i-r);t.set(e.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return t}},{key:"xofInto",value:function(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}},{key:"xof",value:function(t){return ce(t),this.xofInto(new Uint8Array(t))}},{key:"digestInto",value:function(t){if(fe(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(t){var e=this.blockLen,r=this.suffix,i=this.outputLen,o=this.rounds,a=this.enableXOF;return t||(t=new n(e,r,i,a,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=a,t.destroyed=this.destroyed,t}}]),n}(),ps=function(t,e,n){return Ie((function(){return new fs(e,t,n)}))}(1,136,32);var ys=on,ms=rn,gs={Err:function(t){Y(n,G(Error));var e=X(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return B(this,n),e.call(this,t)}return U(n)}(),_parseInt:function(t){var e=gs.Err;if(t.length<2||2!==t[0])throw new e("Invalid signature integer tag");var n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(128&r[0])throw new e("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new e("Invalid signature integer: unnecessary leading zero");return{d:ys(r),l:t.subarray(n+2)}},toSig:function(t){var e=gs.Err,n="string"==typeof t?ms(t):t;if(!Ve(n))throw new Error("ui8a expected");var r=n.length;if(r<2||48!=n[0])throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");var i=gs._parseInt(n.subarray(2)),o=i.d,a=i.l,s=gs._parseInt(a),u=s.d;if(s.l.length)throw new e("Invalid signature: left bytes after parsing");return{r:o,s:u}},hexFromSig:function(t){var e=function(t){return 8&Number.parseInt(t[0],16)?"00"+t:t},n=function(t){var e=t.toString(16);return 1&e.length?"0".concat(e):e},r=e(n(t.s)),i=e(n(t.r)),o=r.length/2,a=i.length/2,s=n(o),u=n(a);return"30".concat(n(a+o+4),"02").concat(u).concat(i,"02").concat(s).concat(r)}},vs=BigInt(0),ws=BigInt(1);BigInt(2);var bs=BigInt(3);function Ms(t){var e=function(t){var e=Un(t);mn(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});var n=e.endo,r=e.Fp,i=e.a;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==z(n)||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(C({},e))}(t),n=e.Fp,r=e.toBytes||function(t,e,r){var i=e.toAffine();return ln(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))},i=e.fromBytes||function(t){var e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}};function o(t){var r=e.a,i=e.b,o=n.sqr(t),a=n.mul(o,t);return n.add(n.add(a,n.mul(t,r)),i)}if(!n.eql(n.sqr(e.Gy),o(e.Gx)))throw new Error("bad generator point: equation left != right");function a(t){return"bigint"==typeof t&&vsvs||h>vs;)c&ws&&(d=d.add(y)),h&ws&&(p=p.add(y)),y=y.double(),c>>=ws,h>>=ws;return u&&(d=d.negate()),l&&(p=p.negate()),p=new t(n.mul(p.px,o.beta),p.py,p.pz),d.add(p)}},{key:"multiply",value:function(r){s(r);var i,o,a=r,u=e.endo;if(u){var c=u.splitScalar(a),l=c.k1neg,h=c.k1,d=c.k2neg,p=c.k2,y=this.wNAF(h),m=y.p,g=y.f,v=this.wNAF(p),w=v.p,b=v.f;m=f.constTimeNegate(l,m),w=f.constTimeNegate(d,w),w=new t(n.mul(w.px,u.beta),w.py,w.pz),i=m.add(w),o=g.add(b)}else{var M=this.wNAF(a);i=M.p,o=M.f}return t.normalizeZ([i,o])[0]}},{key:"multiplyAndAddUnsafe",value:function(e,n,r){var i=t.BASE,o=function(t,e){return e!==vs&&e!==ws&&t.equals(i)?t.multiply(e):t.multiplyUnsafe(e)},a=o(this,n).add(o(e,r));return a.is0()?void 0:a}},{key:"toAffine",value:function(t){var e=this.px,r=this.py,i=this.pz,o=this.is0();null==t&&(t=o?n.ONE:n.inv(i));var a=n.mul(e,t),s=n.mul(r,t),u=n.mul(i,t);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}},{key:"isTorsionFree",value:function(){var n=e.h,r=e.isTorsionFree;if(n===ws)return!0;if(r)return r(t,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}},{key:"clearCofactor",value:function(){var n=e.h,r=e.clearCofactor;return n===ws?this:r?r(t,this):this.multiplyUnsafe(e.h)}},{key:"toRawBytes",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),r(t,this,e)}},{key:"toHex",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ge(this.toRawBytes(t))}}],[{key:"fromAffine",value:function(e){var r=e||{},i=r.x,o=r.y;if(!e||!n.isValid(i)||!n.isValid(o))throw new Error("invalid affine point");if(e instanceof t)throw new Error("projective point not allowed");var a=function(t){return n.eql(t,n.ZERO)};return a(i)&&a(o)?t.ZERO:new t(i,o,n.ONE)}},{key:"normalizeZ",value:function(e){var r=n.invertBatch(e.map((function(t){return t.pz})));return e.map((function(t,e){return t.toAffine(r[e])})).map(t.fromAffine)}},{key:"fromHex",value:function(e){var n=t.fromAffine(i(cn("pointHex",e)));return n.assertValidity(),n}},{key:"fromPrivateKey",value:function(e){return t.BASE.multiply(u(e))}}]),t}();h.BASE=new h(e.Gx,e.Gy,n.ONE),h.ZERO=new h(n.ZERO,n.ONE,n.ZERO);var d=e.nBitLength,f=Rn(h,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:h,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}function As(t){var e,n=(mn(e=Un(t),{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(C({lowS:!0},e))),r=n.Fp,i=n.n,o=r.BYTES+1,a=2*r.BYTES+1;function s(t){return En(t,i)}function u(t){return Tn(t,i)}var c=Ms(C(C({},n),{},{toBytes:function(t,e,n){var i=e.toAffine(),o=r.toBytes(i.x),a=ln;return n?a(Uint8Array.from([e.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes:function(t){var e=t.length,n=t[0],i=t.subarray(1);if(e!==o||2!==n&&3!==n){if(e===a&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw new Error("Point of length ".concat(e," was invalid. Expected ").concat(o," compressed bytes or ").concat(a," uncompressed bytes"))}var s=on(i);if(!(vs<(u=s)&&ui>>ws}function m(t){return y(t)?s(-t):t}var g=function(t,e,n){return on(t.slice(e,n))},v=function(){function t(e,n,r){B(this,t),this.r=e,this.s=n,this.recovery=r,this.assertValidity()}return U(t,[{key:"assertValidity",value:function(){if(!f(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw new Error("s must be 0 < s < CURVE.n")}},{key:"addRecoveryBit",value:function(e){return new t(this.r,this.s,e)}},{key:"recoverPublicKey",value:function(t){var e=this.r,i=this.s,o=this.recovery,a=A(cn("msgHash",t));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");var c=2===o||3===o?e+n.n:e;if(c>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");var h=0==(1&o)?"02":"03",d=l.fromHex(h+p(c)),f=u(c),y=s(-a*f),m=s(i*f),g=l.BASE.multiplyAndAddUnsafe(d,y,m);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}},{key:"hasHighS",value:function(){return y(this.s)}},{key:"normalizeS",value:function(){return this.hasHighS()?new t(this.r,s(-this.s),this.recovery):this}},{key:"toDERRawBytes",value:function(){return rn(this.toDERHex())}},{key:"toDERHex",value:function(){return gs.hexFromSig({r:this.r,s:this.s})}},{key:"toCompactRawBytes",value:function(){return rn(this.toCompactHex())}},{key:"toCompactHex",value:function(){return p(this.r)+p(this.s)}}],[{key:"fromCompact",value:function(e){var r=n.nByteLength;return e=cn("compactSignature",e,2*r),new t(g(e,0,r),g(e,r,2*r))}},{key:"fromDER",value:function(e){var n=gs.toSig(cn("DER",e));return new t(n.r,n.s)}}]),t}(),w={isValidPrivateKey:function(t){try{return h(t),!0}catch(t){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:function(){var t=Pn(n.n);return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.length,i=zn(e),o=Pn(e);if(r<16||r1024)throw new Error("expected ".concat(o,"-1024 bytes of input, got ").concat(r));var a=En(n?on(t):an(t),e-wn)+wn;return n?un(a,i):sn(a,i)}(n.randomBytes(t),n.n)},precompute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return e._setWindowSize(t),e.multiply(BigInt(3)),e}};function b(t){var e=Ve(t),n="string"==typeof t,r=(e||n)&&t.length;return e?r===o||r===a:n?r===2*o||r===2*a:t instanceof l}var M=n.bits2int||function(t){var e=on(t),r=8*t.length-n.nBitLength;return r>0?e>>BigInt(r):e},A=n.bits2int_modN||function(t){return s(M(t))},I=hn(n.nBitLength);function N(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(vs<=t&&t2&&void 0!==arguments[2]?arguments[2]:x;if(["recovered","canonical"].some((function(t){return t in i})))throw new Error("sign() legacy options not supported");var o=n.hash,a=n.randomBytes,c=i.lowS,d=i.prehash,p=i.extraEntropy;null==c&&(c=!0),t=cn("msgHash",t),d&&(t=cn("prehashed msgHash",o(t)));var g=A(t),w=h(e),b=[N(w),N(g)];if(null!=p){var I=!0===p?a(r.BYTES):p;b.push(cn("extraEntropy",I))}var E=ln.apply(gn,b),k=g;function T(t){var e=M(t);if(f(e)){var n=u(e),r=l.BASE.multiply(e).toAffine(),i=s(r.x);if(i!==vs){var o=s(n*s(k+i*w));if(o!==vs){var a=(r.x===i?0:2)|Number(r.y&ws),h=o;return c&&y(o)&&(h=m(o),a^=1),new v(i,h,a)}}}}return{seed:E,k2sig:T}}var x={lowS:n.lowS,prehash:!1},k={lowS:n.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(b(t))throw new Error("first arg must be private key");if(!b(e))throw new Error("second arg must be public key");var r=l.fromHex(e);return r.multiply(h(t)).toRawBytes(n)},sign:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x,i=E(t,e,r),o=i.seed,a=i.k2sig,s=n,u=pn(s.hash.outputLen,s.nByteLength,s.hmac);return u(o,a)},verify:function(t,e,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,a=t;if(e=cn("msgHash",e),r=cn("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");var c,h=o.lowS,d=o.prehash,f=void 0;try{if("string"==typeof a||Ve(a))try{f=v.fromDER(a)}catch(t){if(!(t instanceof gs.Err))throw t;f=v.fromCompact(a)}else{if("object"!==z(a)||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");var p=a.r,y=a.s;f=new v(p,y)}c=l.fromHex(r)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(h&&f.hasHighS())return!1;d&&(e=n.hash(e));var m=f,g=m.r,w=m.s,b=A(e),M=u(w),I=s(b*M),N=s(g*M),E=null===(i=l.BASE.multiplyAndAddUnsafe(c,I,N))||void 0===i?void 0:i.toAffine();if(!E)return!1;var x=s(E.x);return x===g},ProjectivePoint:l,Signature:v,utils:w}}BigInt(4);var Is=function(t){Y(n,Ae);var e=X(n);function n(t,r){var i;B(this,n),(i=e.call(this)).finished=!1,i.destroyed=!1,function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");ce(t.outputLen),ce(t.blockLen)}(t);var o=be(r);if(i.iHash=t.create(),"function"!=typeof i.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var a=i.blockLen,s=new Uint8Array(a);s.set(o.length>a?t.create().update(o).digest():o);for(var u=0;u=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),E(n),f}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;E(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:k(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),f}},r}t.exports=n,t.exports.__esModule=!0,t.exports.default=t.exports}(fa)),fa.exports}var ga,va={exports:{}};var wa,ba={exports:{}};function Ma(){return wa||(wa=1,function(t){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},t.exports.__esModule=!0,t.exports.default=t.exports}(ba)),ba.exports}var Aa,Ia={exports:{}};function Na(){return Aa||(Aa=1,function(t){function e(t,e){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:"ws://localhost:8080",r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3?arguments[3]:void 0;(0,o.default)(this,p);var a=r.autoconnect,s=void 0===a||a,u=r.reconnect,c=void 0===u||u,l=r.reconnect_interval,h=void 0===l?1e3:l,y=r.max_reconnects,m=void 0===y?5:y,g=d(r,["autoconnect","reconnect","reconnect_interval","max_reconnects"]);return(e=f.call(this)).webSocketFactory=t,e.queue={},e.rpc_id=0,e.address=n,e.autoconnect=s,e.ready=!1,e.reconnect=c,e.reconnect_timer_id=void 0,e.reconnect_interval=h,e.max_reconnects=m,e.rest_options=g,e.current_reconnects=0,e.generate_request_id=i||function(){return++e.rpc_id},e.autoconnect&&e._connect(e.address,Object.assign({autoconnect:e.autoconnect,reconnect:e.reconnect,reconnect_interval:e.reconnect_interval,max_reconnects:e.max_reconnects},e.rest_options)),e}return(0,a.default)(p,[{key:"connect",value:function(){this.socket||this._connect(this.address,Object.assign({autoconnect:this.autoconnect,reconnect:this.reconnect,reconnect_interval:this.reconnect_interval,max_reconnects:this.max_reconnects},this.rest_options))}},{key:"call",value:function(t,e,n,r){var o=this;return r||"object"!==(0,i.default)(n)||(r=n,n=null),new Promise((function(i,a){if(!o.ready)return a(new Error("socket not ready"));var s=o.generate_request_id(t,e),u={jsonrpc:"2.0",method:t,params:e||null,id:s};o.socket.send(JSON.stringify(u),r,(function(t){if(t)return a(t);o.queue[s]={promise:[i,a]},n&&(o.queue[s].timeout=setTimeout((function(){delete o.queue[s],a(new Error("reply timeout"))}),n))}))}))}},{key:"login",value:(l=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("rpc.login",e);case 2:if(r=t.sent){t.next=5;break}throw new Error("authentication failed");case 5:return t.abrupt("return",r);case 6:case"end":return t.stop()}}),t,this)}))),function(t){return l.apply(this,arguments)})},{key:"listMethods",value:(c=(0,r.default)(n.default.mark((function t(){return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.call("__listMethods");case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"notify",value:function(t,e){var n=this;return new Promise((function(r,i){if(!n.ready)return i(new Error("socket not ready"));var o={jsonrpc:"2.0",method:t,params:e||null};n.socket.send(JSON.stringify(o),(function(t){if(t)return i(t);r()}))}))}},{key:"subscribe",value:(u=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.on",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed subscribing to an event '"+e+"' with: "+r[e]);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"unsubscribe",value:(e=(0,r.default)(n.default.mark((function t(e){var r;return n.default.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return"string"==typeof e&&(e=[e]),t.next=3,this.call("rpc.off",e);case 3:if(r=t.sent,"string"!=typeof e||"ok"===r[e]){t.next=6;break}throw new Error("Failed unsubscribing from an event with: "+r);case 6:return t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"close",value:function(t,e){this.socket.close(t||1e3,e)}},{key:"_connect",value:function(t,e){var n=this;clearTimeout(this.reconnect_timer_id),this.socket=this.webSocketFactory(t,e),this.socket.addEventListener("open",(function(){n.ready=!0,n.emit("open"),n.current_reconnects=0})),this.socket.addEventListener("message",(function(t){var e=t.data;e instanceof ArrayBuffer&&(e=Nt.from(e).toString());try{e=JSON.parse(e)}catch(t){return}if(e.notification&&n.listeners(e.notification).length){if(!Object.keys(e.params).length)return n.emit(e.notification);var r=[e.notification];if(e.params.constructor===Object)r.push(e.params);else for(var i=0;in.current_reconnects||0===n.max_reconnects)&&(n.reconnect_timer_id=setTimeout((function(){return n._connect(t,e)}),n.reconnect_interval)))}))}}]),p}(l.EventEmitter);t.default=f}(sa);var Wa=S(sa),Fa={};!function(t){var e=ua.exports;Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(t,e){return new u(t,e)};var n=e(Ma()),r=e(Na()),i=e(Sa()),o=e(Pa()),a=e(Ra());function s(t){var e=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}();return function(){var n,r=(0,a.default)(t);if(e){var i=(0,a.default)(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return(0,o.default)(this,n)}}var u=function(t){(0,i.default)(o,t);var e=s(o);function o(t,r,i){var a;return(0,n.default)(this,o),(a=e.call(this)).socket=new window.WebSocket(t,i),a.socket.onopen=function(){return a.emit("open")},a.socket.onmessage=function(t){return a.emit("message",t.data)},a.socket.onerror=function(t){return a.emit("error",t)},a.socket.onclose=function(t){a.emit("close",t.code,t.reason)},a}return(0,r.default)(o,[{key:"send",value:function(t,e,n){var r=n||e;try{this.socket.send(t),r()}catch(t){r(t)}}},{key:"close",value:function(t,e){this.socket.close(t,e)}},{key:"addEventListener",value:function(t,e,n){this.socket.addEventListener(t,e,n)}}]),o}(Ya().EventEmitter)}(Fa);for(var Va=S(Fa),Ha=[],Ga=[],qa=[],Za=BigInt(0),Ja=BigInt(1),Xa=BigInt(2),Ka=BigInt(7),$a=BigInt(256),ts=BigInt(113),es=0,ns=Ja,rs=1,is=0;es<24;es++){var os=[is,(2*rs+3*is)%5];rs=os[0],is=os[1],Ha.push(2*(5*is+rs)),Ga.push((es+1)*(es+2)/2%64);for(var as=Za,ss=0;ss<7;ss++)(ns=(ns<>Ka)*ts)%$a)&Xa&&(as^=Ja<<(Ja<32?Ce(t,e,n):Se(t,e,n)},ds=function(t,e,n){return n>32?De(t,e,n):je(t,e,n)};var fs=function(t){Y(n,Ae);var e=X(n);function n(t,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:24;if(B(this,n),(o=e.call(this)).blockLen=t,o.suffix=r,o.outputLen=i,o.enableXOF=a,o.rounds=s,o.pos=0,o.posOut=0,o.finished=!1,o.destroyed=!1,ce(i),0>=o.blockLen||o.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");return o.state=new Uint8Array(200),o.state32=ye(o.state),o}return U(n,[{key:"keccak",value:function(){!function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:24,n=new Uint32Array(10),r=24-e;r<24;r++){for(var i=0;i<10;i++)n[i]=t[i]^t[i+10]^t[i+20]^t[i+30]^t[i+40];for(var o=0;o<10;o+=2)for(var a=(o+8)%10,s=(o+2)%10,u=n[s],c=n[s+1],l=hs(u,c,1)^n[a],h=ds(u,c,1)^n[a+1],d=0;d<50;d+=10)t[o+d]^=l,t[o+d+1]^=h;for(var f=t[2],p=t[3],y=0;y<24;y++){var m=Ga[y],g=hs(f,p,m),v=ds(f,p,m),w=Ha[y];f=t[w],p=t[w+1],t[w]=g,t[w+1]=v}for(var b=0;b<50;b+=10){for(var M=0;M<10;M++)n[M]=t[b+M];for(var A=0;A<10;A++)t[b+A]^=~n[(A+2)%10]&n[(A+4)%10]}t[0]^=cs[r],t[1]^=ls[r]}n.fill(0)}(this.state32,this.rounds),this.posOut=0,this.pos=0}},{key:"update",value:function(t){de(this);for(var e=this.blockLen,n=this.state,r=(t=be(t)).length,i=0;i=n&&this.keccak();var o=Math.min(n-this.posOut,i-r);t.set(e.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return t}},{key:"xofInto",value:function(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}},{key:"xof",value:function(t){return ce(t),this.xofInto(new Uint8Array(t))}},{key:"digestInto",value:function(t){if(fe(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}},{key:"digest",value:function(){return this.digestInto(new Uint8Array(this.outputLen))}},{key:"destroy",value:function(){this.destroyed=!0,this.state.fill(0)}},{key:"_cloneInto",value:function(t){var e=this.blockLen,r=this.suffix,i=this.outputLen,o=this.rounds,a=this.enableXOF;return t||(t=new n(e,r,i,a,o)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=o,t.suffix=r,t.outputLen=i,t.enableXOF=a,t.destroyed=this.destroyed,t}}]),n}(),ps=function(t,e,n){return Ie((function(){return new fs(e,t,n)}))}(1,136,32);var ys=on,ms=rn,gs={Err:function(t){Y(n,G(Error));var e=X(n);function n(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return B(this,n),e.call(this,t)}return U(n)}(),_parseInt:function(t){var e=gs.Err;if(t.length<2||2!==t[0])throw new e("Invalid signature integer tag");var n=t[1],r=t.subarray(2,n+2);if(!n||r.length!==n)throw new e("Invalid signature integer: wrong length");if(128&r[0])throw new e("Invalid signature integer: negative");if(0===r[0]&&!(128&r[1]))throw new e("Invalid signature integer: unnecessary leading zero");return{d:ys(r),l:t.subarray(n+2)}},toSig:function(t){var e=gs.Err,n="string"==typeof t?ms(t):t;if(!Ve(n))throw new Error("ui8a expected");var r=n.length;if(r<2||48!=n[0])throw new e("Invalid signature tag");if(n[1]!==r-2)throw new e("Invalid signature: incorrect length");var i=gs._parseInt(n.subarray(2)),o=i.d,a=i.l,s=gs._parseInt(a),u=s.d;if(s.l.length)throw new e("Invalid signature: left bytes after parsing");return{r:o,s:u}},hexFromSig:function(t){var e=function(t){return 8&Number.parseInt(t[0],16)?"00"+t:t},n=function(t){var e=t.toString(16);return 1&e.length?"0".concat(e):e},r=e(n(t.s)),i=e(n(t.r)),o=r.length/2,a=i.length/2,s=n(o),u=n(a);return"30".concat(n(a+o+4),"02").concat(u).concat(i,"02").concat(s).concat(r)}},vs=BigInt(0),ws=BigInt(1);BigInt(2);var bs=BigInt(3);function Ms(t){var e=function(t){var e=Un(t);mn(e,{a:"field",b:"field"},{allowedPrivateKeyLengths:"array",wrapPrivateKey:"boolean",isTorsionFree:"function",clearCofactor:"function",allowInfinityPoint:"boolean",fromBytes:"function",toBytes:"function"});var n=e.endo,r=e.Fp,i=e.a;if(n){if(!r.eql(i,r.ZERO))throw new Error("Endomorphism can only be defined for Koblitz curves that have a=0");if("object"!==z(n)||"bigint"!=typeof n.beta||"function"!=typeof n.splitScalar)throw new Error("Expected endomorphism with beta: bigint and splitScalar: function")}return Object.freeze(D({},e))}(t),n=e.Fp,r=e.toBytes||function(t,e,r){var i=e.toAffine();return ln(Uint8Array.from([4]),n.toBytes(i.x),n.toBytes(i.y))},i=e.fromBytes||function(t){var e=t.subarray(1);return{x:n.fromBytes(e.subarray(0,n.BYTES)),y:n.fromBytes(e.subarray(n.BYTES,2*n.BYTES))}};function o(t){var r=e.a,i=e.b,o=n.sqr(t),a=n.mul(o,t);return n.add(n.add(a,n.mul(t,r)),i)}if(!n.eql(n.sqr(e.Gy),o(e.Gx)))throw new Error("bad generator point: equation left != right");function a(t){return"bigint"==typeof t&&vsvs||h>vs;)c&ws&&(d=d.add(y)),h&ws&&(p=p.add(y)),y=y.double(),c>>=ws,h>>=ws;return u&&(d=d.negate()),l&&(p=p.negate()),p=new t(n.mul(p.px,o.beta),p.py,p.pz),d.add(p)}},{key:"multiply",value:function(r){s(r);var i,o,a=r,u=e.endo;if(u){var c=u.splitScalar(a),l=c.k1neg,h=c.k1,d=c.k2neg,p=c.k2,y=this.wNAF(h),m=y.p,g=y.f,v=this.wNAF(p),w=v.p,b=v.f;m=f.constTimeNegate(l,m),w=f.constTimeNegate(d,w),w=new t(n.mul(w.px,u.beta),w.py,w.pz),i=m.add(w),o=g.add(b)}else{var M=this.wNAF(a);i=M.p,o=M.f}return t.normalizeZ([i,o])[0]}},{key:"multiplyAndAddUnsafe",value:function(e,n,r){var i=t.BASE,o=function(t,e){return e!==vs&&e!==ws&&t.equals(i)?t.multiply(e):t.multiplyUnsafe(e)},a=o(this,n).add(o(e,r));return a.is0()?void 0:a}},{key:"toAffine",value:function(t){var e=this.px,r=this.py,i=this.pz,o=this.is0();null==t&&(t=o?n.ONE:n.inv(i));var a=n.mul(e,t),s=n.mul(r,t),u=n.mul(i,t);if(o)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error("invZ was invalid");return{x:a,y:s}}},{key:"isTorsionFree",value:function(){var n=e.h,r=e.isTorsionFree;if(n===ws)return!0;if(r)return r(t,this);throw new Error("isTorsionFree() has not been declared for the elliptic curve")}},{key:"clearCofactor",value:function(){var n=e.h,r=e.clearCofactor;return n===ws?this:r?r(t,this):this.multiplyUnsafe(e.h)}},{key:"toRawBytes",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return this.assertValidity(),r(t,this,e)}},{key:"toHex",value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ge(this.toRawBytes(t))}}],[{key:"fromAffine",value:function(e){var r=e||{},i=r.x,o=r.y;if(!e||!n.isValid(i)||!n.isValid(o))throw new Error("invalid affine point");if(e instanceof t)throw new Error("projective point not allowed");var a=function(t){return n.eql(t,n.ZERO)};return a(i)&&a(o)?t.ZERO:new t(i,o,n.ONE)}},{key:"normalizeZ",value:function(e){var r=n.invertBatch(e.map((function(t){return t.pz})));return e.map((function(t,e){return t.toAffine(r[e])})).map(t.fromAffine)}},{key:"fromHex",value:function(e){var n=t.fromAffine(i(cn("pointHex",e)));return n.assertValidity(),n}},{key:"fromPrivateKey",value:function(e){return t.BASE.multiply(u(e))}}]),t}();h.BASE=new h(e.Gx,e.Gy,n.ONE),h.ZERO=new h(n.ZERO,n.ONE,n.ZERO);var d=e.nBitLength,f=Rn(h,e.endo?Math.ceil(d/2):d);return{CURVE:e,ProjectivePoint:h,normPrivateKeyToScalar:u,weierstrassEquation:o,isWithinCurveOrder:a}}function As(t){var e,n=(mn(e=Un(t),{hash:"hash",hmac:"function",randomBytes:"function"},{bits2int:"function",bits2int_modN:"function",lowS:"boolean"}),Object.freeze(D({lowS:!0},e))),r=n.Fp,i=n.n,o=r.BYTES+1,a=2*r.BYTES+1;function s(t){return En(t,i)}function u(t){return Tn(t,i)}var c=Ms(D(D({},n),{},{toBytes:function(t,e,n){var i=e.toAffine(),o=r.toBytes(i.x),a=ln;return n?a(Uint8Array.from([e.hasEvenY()?2:3]),o):a(Uint8Array.from([4]),o,r.toBytes(i.y))},fromBytes:function(t){var e=t.length,n=t[0],i=t.subarray(1);if(e!==o||2!==n&&3!==n){if(e===a&&4===n)return{x:r.fromBytes(i.subarray(0,r.BYTES)),y:r.fromBytes(i.subarray(r.BYTES,2*r.BYTES))};throw new Error("Point of length ".concat(e," was invalid. Expected ").concat(o," compressed bytes or ").concat(a," uncompressed bytes"))}var s=on(i);if(!(vs<(u=s)&&ui>>ws}function m(t){return y(t)?s(-t):t}var g=function(t,e,n){return on(t.slice(e,n))},v=function(){function t(e,n,r){B(this,t),this.r=e,this.s=n,this.recovery=r,this.assertValidity()}return U(t,[{key:"assertValidity",value:function(){if(!f(this.r))throw new Error("r must be 0 < r < CURVE.n");if(!f(this.s))throw new Error("s must be 0 < s < CURVE.n")}},{key:"addRecoveryBit",value:function(e){return new t(this.r,this.s,e)}},{key:"recoverPublicKey",value:function(t){var e=this.r,i=this.s,o=this.recovery,a=A(cn("msgHash",t));if(null==o||![0,1,2,3].includes(o))throw new Error("recovery id invalid");var c=2===o||3===o?e+n.n:e;if(c>=r.ORDER)throw new Error("recovery id 2 or 3 invalid");var h=0==(1&o)?"02":"03",d=l.fromHex(h+p(c)),f=u(c),y=s(-a*f),m=s(i*f),g=l.BASE.multiplyAndAddUnsafe(d,y,m);if(!g)throw new Error("point at infinify");return g.assertValidity(),g}},{key:"hasHighS",value:function(){return y(this.s)}},{key:"normalizeS",value:function(){return this.hasHighS()?new t(this.r,s(-this.s),this.recovery):this}},{key:"toDERRawBytes",value:function(){return rn(this.toDERHex())}},{key:"toDERHex",value:function(){return gs.hexFromSig({r:this.r,s:this.s})}},{key:"toCompactRawBytes",value:function(){return rn(this.toCompactHex())}},{key:"toCompactHex",value:function(){return p(this.r)+p(this.s)}}],[{key:"fromCompact",value:function(e){var r=n.nByteLength;return e=cn("compactSignature",e,2*r),new t(g(e,0,r),g(e,r,2*r))}},{key:"fromDER",value:function(e){var n=gs.toSig(cn("DER",e));return new t(n.r,n.s)}}]),t}(),w={isValidPrivateKey:function(t){try{return h(t),!0}catch(t){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:function(){var t=Pn(n.n);return function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=t.length,i=zn(e),o=Pn(e);if(r<16||r1024)throw new Error("expected ".concat(o,"-1024 bytes of input, got ").concat(r));var a=En(n?on(t):an(t),e-wn)+wn;return n?un(a,i):sn(a,i)}(n.randomBytes(t),n.n)},precompute:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.BASE;return e._setWindowSize(t),e.multiply(BigInt(3)),e}};function b(t){var e=Ve(t),n="string"==typeof t,r=(e||n)&&t.length;return e?r===o||r===a:n?r===2*o||r===2*a:t instanceof l}var M=n.bits2int||function(t){var e=on(t),r=8*t.length-n.nBitLength;return r>0?e>>BigInt(r):e},A=n.bits2int_modN||function(t){return s(M(t))},I=hn(n.nBitLength);function N(t){if("bigint"!=typeof t)throw new Error("bigint expected");if(!(vs<=t&&t2&&void 0!==arguments[2]?arguments[2]:x;if(["recovered","canonical"].some((function(t){return t in i})))throw new Error("sign() legacy options not supported");var o=n.hash,a=n.randomBytes,c=i.lowS,d=i.prehash,p=i.extraEntropy;null==c&&(c=!0),t=cn("msgHash",t),d&&(t=cn("prehashed msgHash",o(t)));var g=A(t),w=h(e),b=[N(w),N(g)];if(null!=p){var I=!0===p?a(r.BYTES):p;b.push(cn("extraEntropy",I))}var E=ln.apply(gn,b),k=g;function T(t){var e=M(t);if(f(e)){var n=u(e),r=l.BASE.multiply(e).toAffine(),i=s(r.x);if(i!==vs){var o=s(n*s(k+i*w));if(o!==vs){var a=(r.x===i?0:2)|Number(r.y&ws),h=o;return c&&y(o)&&(h=m(o),a^=1),new v(i,h,a)}}}}return{seed:E,k2sig:T}}var x={lowS:n.lowS,prehash:!1},k={lowS:n.lowS,prehash:!1};return l.BASE._setWindowSize(8),{CURVE:n,getPublicKey:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return l.fromPrivateKey(t).toRawBytes(e)},getSharedSecret:function(t,e){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(b(t))throw new Error("first arg must be private key");if(!b(e))throw new Error("second arg must be public key");var r=l.fromHex(e);return r.multiply(h(t)).toRawBytes(n)},sign:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:x,i=E(t,e,r),o=i.seed,a=i.k2sig,s=n,u=pn(s.hash.outputLen,s.nByteLength,s.hmac);return u(o,a)},verify:function(t,e,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:k,a=t;if(e=cn("msgHash",e),r=cn("publicKey",r),"strict"in o)throw new Error("options.strict was renamed to lowS");var c,h=o.lowS,d=o.prehash,f=void 0;try{if("string"==typeof a||Ve(a))try{f=v.fromDER(a)}catch(t){if(!(t instanceof gs.Err))throw t;f=v.fromCompact(a)}else{if("object"!==z(a)||"bigint"!=typeof a.r||"bigint"!=typeof a.s)throw new Error("PARSE");var p=a.r,y=a.s;f=new v(p,y)}c=l.fromHex(r)}catch(t){if("PARSE"===t.message)throw new Error("signature must be Signature instance, Uint8Array or hex string");return!1}if(h&&f.hasHighS())return!1;d&&(e=n.hash(e));var m=f,g=m.r,w=m.s,b=A(e),M=u(w),I=s(b*M),N=s(g*M),E=null===(i=l.BASE.multiplyAndAddUnsafe(c,I,N))||void 0===i?void 0:i.toAffine();if(!E)return!1;var x=s(E.x);return x===g},ProjectivePoint:l,Signature:v,utils:w}}BigInt(4);var Is=function(t){Y(n,Ae);var e=X(n);function n(t,r){var i;B(this,n),(i=e.call(this)).finished=!1,i.destroyed=!1,function(t){if("function"!=typeof t||"function"!=typeof t.create)throw new Error("Hash should be wrapped by utils.wrapConstructor");ce(t.outputLen),ce(t.blockLen)}(t);var o=be(r);if(i.iHash=t.create(),"function"!=typeof i.iHash.update)throw new Error("Expected instance of class which extends utils.Hash");i.blockLen=i.iHash.blockLen,i.outputLen=i.iHash.outputLen;var a=i.blockLen,s=new Uint8Array(a);s.set(o.length>a?t.create().update(o).digest():o);for(var u=0;ua,d=l>a;if(h&&(c=e-c),d&&(l=e-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:h,k1:c,k2neg:d,k2:l}}}},js=vr,Ds=function(t){return As(C(C({},Ss),function(t){return{hash:t,hmac:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i32)throw new Error("Invalid public key input")}return e}return U(a,[{key:"equals",value:function(t){return this._bn.eq(t._bn)}},{key:"toBase58",value:function(){return dr.encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},{key:"toBuffer",value:function(){var t=this._bn.toArrayLike(Nt);if(32===t.length)return t;var e=Nt.alloc(32);return t.copy(e,32-t.length),e}},{key:e,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var t=new a(Js);return Js+=1,new a(t.toBuffer())}},{key:"createWithSeed",value:(i=_(O().mark((function t(e,n,r){var i,o;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Nt.concat([e.toBuffer(),Nt.from(n),r.toBuffer()]),o=vr(i),t.abrupt("return",new a(o));case 3:case"end":return t.stop()}}),t)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(t,e){var n=Nt.alloc(0);t.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");n=Nt.concat([n,Hs(t)])})),n=Nt.concat([n,e.toBuffer(),Nt.from("ProgramDerivedAddress")]);var r=vr(n);if(Ys(r))throw new Error("Invalid seeds, address must fall off the curve");return new a(r)}},{key:"createProgramAddress",value:(r=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.createProgramAddressSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(t,e){for(var n,r=255;0!=r;){try{var i=t.concat(Nt.from([r]));n=this.createProgramAddressSync(i,e)}catch(t){if(t instanceof TypeError)throw t;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.findProgramAddressSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(t){return Ys(new a(t).toBytes())}}]),a}(0,Symbol.toStringTag);Ws=Xs,Xs.default=new Ws("11111111111111111111111111111111"),Zs.set(Xs,{kind:"struct",fields:[["_bn","u256"]]});var Ks=function(){function t(e){if(B(this,t),this._publicKey=void 0,this._secretKey=void 0,e){var n=Hs(e);if(64!==e.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Hs(Rs()),this._publicKey=Hs(Qs(this._secretKey))}return U(t,[{key:"publicKey",get:function(){return new Xs(this._publicKey)}},{key:"secretKey",get:function(){return Nt.concat([this._secretKey,this._publicKey],64)}}]),t}(),$s=new Xs("BPFLoader1111111111111111111111111111111111"),tu=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,"Signature ".concat(t," has expired: block height exceeded."))).signature=void 0,r.signature=t,r}return U(n)}();Object.defineProperty(tu.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var eu=function(t){Y(n,G(Error));var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(t," using the Solana Explorer or CLI tools."))).signature=void 0,i.signature=t,i}return U(n)}();Object.defineProperty(eu.prototype,"name",{value:"TransactionExpiredTimeoutError"});var nu=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,"Signature ".concat(t," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=t,r}return U(n)}();Object.defineProperty(nu.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var ru=function(){function t(e,n){B(this,t),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=n}return U(t,[{key:"keySegments",value:function(){var t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}},{key:"get",value:function(t){var e,n=st(this.keySegments());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(t256)throw new Error("Account index overflow encountered during compilation");var e=new Map;this.keySegments().flat().forEach((function(t,n){e.set(t.toBase58(),n)}));var n=function(t){var n=e.get(t.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return t.map((function(t){return{programIdIndex:n(t.programId),accountKeyIndexes:t.keys.map((function(t){return n(t.pubkey)})),data:t.data}}))}}]),t}(),iu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return Hi(32,t)},ou=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return Hi(64,t)},au=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",e=Fi([Qi("length"),Qi("lengthPadding"),Hi(Bi(Qi(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=function(t,e){return n(t,e).chars.toString()},i.encode=function(t,e,n){var i={chars:Nt.from(t,"utf8")};return r(i,e,n)},i.alloc=function(t){return Qi().span+Qi().span+Nt.from(t,"utf8").length},i};function su(t,e){var n=function t(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(e[n.property]);if("count"in n&&"elementLayout"in n){var r=e[n.property];if(Array.isArray(r))return r.length*t(n.elementLayout)}else if("fields"in n)return su({layout:n},e[n.property]);return 0},r=0;return t.layout.fields.forEach((function(t){r+=n(t)})),r}function uu(t){for(var e=0,n=0;;){var r=t.shift();if(e|=(127&r)<<7*n,n+=1,0==(128&r))break}return e}function cu(t,e){for(var n=e;;){var r=127&n;if(0==(n>>=7)){t.push(r);break}r|=128,t.push(r)}}function lu(t,e){if(!t)throw new Error(e||"Assertion failed")}var hu=function(){function t(e,n){B(this,t),this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=n}return U(t,[{key:"getMessageComponents",value:function(){var t=et(this.keyMetaMap.entries());lu(t.length<=256,"Max static account keys length exceeded");var e=t.filter((function(t){var e=tt(t,2)[1];return e.isSigner&&e.isWritable})),n=t.filter((function(t){var e=tt(t,2)[1];return e.isSigner&&!e.isWritable})),r=t.filter((function(t){var e=tt(t,2)[1];return!e.isSigner&&e.isWritable})),i=t.filter((function(t){var e=tt(t,2)[1];return!e.isSigner&&!e.isWritable})),o={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};return lu(e.length>0,"Expected at least one writable signer key"),lu(tt(e[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[o,[].concat(et(e.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(n.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(r.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(i.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))))]}},{key:"extractTableLookup",value:function(t){var e=tt(this.drainKeysFoundInLookupTable(t.state.addresses,(function(t){return!t.isSigner&&!t.isInvoked&&t.isWritable})),2),n=e[0],r=e[1],i=tt(this.drainKeysFoundInLookupTable(t.state.addresses,(function(t){return!t.isSigner&&!t.isInvoked&&!t.isWritable})),2),o=i[0],a=i[1];if(0!==n.length||0!==o.length)return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:a}]}},{key:"drainKeysFoundInLookupTable",value:function(t,e){var n,r=this,i=new Array,o=new Array,a=st(this.keyMetaMap.entries());try{var s=function(){var a=tt(n.value,2),s=a[0],u=a[1];if(e(u)){var c=new Xs(s),l=t.findIndex((function(t){return t.equals(c)}));l>=0&&(lu(l<256,"Max lookup table index exceeded"),i.push(l),o.push(c),r.keyMetaMap.delete(s))}};for(a.s();!(n=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}return[i,o]}}],[{key:"compile",value:function(e,n){var r=new Map,i=function(t){var e=t.toBase58(),n=r.get(e);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(e,n)),n},o=i(n);o.isSigner=!0,o.isWritable=!0;var a,s=st(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;i(u.programId).isInvoked=!0;var c,l=st(u.keys);try{for(l.s();!(c=l.n()).done;){var h=c.value,d=i(h.pubkey);d.isSigner||(d.isSigner=h.isSigner),d.isWritable||(d.isWritable=h.isWritable)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){s.e(t)}finally{s.f()}return new t(n,r)}}]),t}(),du=function(){function t(e){var n=this;B(this,t),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map((function(t){return new Xs(t)})),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach((function(t){return n.indexToProgramIds.set(t.programIdIndex,n.accountKeys[t.programIdIndex])}))}return U(t,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(t){return{programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:dr.decode(t.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new ru(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(t){return t=this.header.numRequiredSignatures?t-e0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ru(this.staticAccountKeys,e)}},{key:"isAccountSigner",value:function(t){return t=n?t-n=this.header.numRequiredSignatures?t-e0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(t){return t.toJSON()})),signers:this.signatures.map((function(t){return t.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(a[n].isWritable=a[n].isWritable||t.isWritable,a[n].isSigner=a[n].isSigner||t.isSigner):a.push(t)})),a.sort((function(t,e){if(t.isSigner!==e.isSigner)return t.isSigner?-1:1;if(t.isWritable!==e.isWritable)return t.isWritable?-1:1;return t.pubkey.toBase58().localeCompare(e.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})}));var s=a.findIndex((function(t){return t.pubkey.equals(n)}));if(s>-1){var u=tt(a.splice(s,1),1)[0];u.isSigner=!0,u.isWritable=!0,a.unshift(u)}else a.unshift({pubkey:n,isSigner:!0,isWritable:!0});var c,l=st(this.signatures);try{var h=function(){var t=c.value,e=a.findIndex((function(e){return e.pubkey.equals(t.publicKey)}));if(!(e>-1))throw new Error("unknown signer: ".concat(t.publicKey.toString()));a[e].isSigner||(a[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(l.s();!(c=l.n()).done;)h()}catch(t){l.e(t)}finally{l.f()}var d=0,f=0,p=0,y=[],m=[];a.forEach((function(t){var e=t.pubkey,n=t.isSigner,r=t.isWritable;n?(y.push(e.toString()),d+=1,r||(f+=1)):(m.push(e.toString()),r||(p+=1))}));var g=y.concat(m),v=e.map((function(t){var e=t.data,n=t.programId;return{programIdIndex:g.indexOf(n.toString()),accounts:t.keys.map((function(t){return g.indexOf(t.pubkey.toString())})),data:dr.encode(e)}}));return v.forEach((function(t){lu(t.programIdIndex>=0),t.accounts.forEach((function(t){return lu(t>=0)}))})),new du({header:{numRequiredSignatures:d,numReadonlySignedAccounts:f,numReadonlyUnsignedAccounts:p},accountKeys:g,recentBlockhash:t,instructions:v})}},{key:"_compile",value:function(){var t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length&&this.signatures.every((function(t,n){return e[n].equals(t.publicKey)})))return t;return this.signatures=e.map((function(t){return{signature:null,publicKey:t}})),t}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(e=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getFeeForMessage(this.compileMessage());case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"setSigners",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?r-1:0),o=1;o ").concat(1232)),i}},{key:"keys",get:function(){return lu(1===this.instructions.length),this.instructions[0].keys.map((function(t){return t.pubkey}))}},{key:"programId",get:function(){return lu(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return lu(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(e){for(var n=et(e),r=uu(n),i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:[],r=new t;return r.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(r.feePayer=e.accountKeys[0]),n.forEach((function(t,n){var i={signature:t==dr.encode(mu)?null:dr.decode(t),publicKey:e.accountKeys[n]};r.signatures.push(i)})),e.instructions.forEach((function(t){var n=t.accounts.map((function(t){var n=e.accountKeys[t];return{pubkey:n,isSigner:r.signatures.some((function(t){return t.publicKey.toString()===n.toString()}))||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}}));r.instructions.push(new gu({keys:n,programId:e.accountKeys[t.programIdIndex],data:dr.decode(t.data)}))})),r._message=e,r._json=r.toJSON(),r}}]),t}(),wu=function(){function t(e){B(this,t),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=e.payerKey,this.instructions=e.instructions,this.recentBlockhash=e.recentBlockhash}return U(t,[{key:"compileToLegacyMessage",value:function(){return du.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(t){return fu.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}],[{key:"decompile",value:function(e,n){var r=e.header,i=e.compiledInstructions,o=e.recentBlockhash,a=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,u=r.numReadonlyUnsignedAccounts,c=a-s;lu(c>0,"Message header is invalid");var l=e.staticAccountKeys.length-a-u;lu(l>=0,"Message header is invalid");var h=e.getAccountKeys(n),d=h.get(0);if(void 0===d)throw new Error("Failed to decompile message because no account keys were found");var f,p=[],y=st(i);try{for(y.s();!(f=y.n()).done;){var m,g=f.value,v=[],w=st(g.accountKeyIndexes);try{for(w.s();!(m=w.n()).done;){var b=m.value,M=h.get(b);if(void 0===M)throw new Error("Failed to find key for account key index ".concat(b));var A=void 0;A=b=0,"Cannot sign with non signer key ".concat(t.publicKey.toBase58())),n.signatures[o]=Fs(r,t.secretKey)};for(o.s();!(e=o.n()).done;)a()}catch(t){o.e(t)}finally{o.f()}}},{key:"addSignature",value:function(t,e){lu(64===e.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(e){return e.equals(t)}));lu(n>=0,"Can not add signature; `".concat(t.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=e}}],[{key:"deserialize",value:function(e){for(var n=et(e),r=[],i=uu(n),o=0;o=0?t.layout.span:su(t,e),r=Nt.alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function Ou(t,e){var n;try{n=t.layout.decode(e)}catch(t){throw new Error("invalid instruction; "+t)}if(n.instruction!==t.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(t.index));return n}var zu,Pu=Yi("lamportsPerSignature"),_u=Fi([Qi("version"),Qi("state"),iu("authorizedPubkey"),iu("nonce"),Fi([Pu],"feeCalculator")]),Bu=_u.span,Ru=function(){function t(e){B(this,t),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}return U(t,null,[{key:"fromAccountData",value:function(e){var n=_u.decode(Hs(e),0);return new t({authorizedPubkey:new Xs(n.authorizedPubkey),nonce:new Xs(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),t}(),Uu=(zu=8,function(t){var e=Hi(zu,t),n=function(t){return{decode:t.decode.bind(t),encode:t.encode.bind(t)}}(e),r=n.encode,i=n.decode,o=e;return o.decode=function(t,e){var n=i(t,e);return qi(Nt.from(n))},o.encode=function(t,e,n){var i=Zi(t,zu);return r(i,e,n)},o}),Qu=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(Yu);r0?s:1,space:a.length,programId:o}));case 17:if(null===c){e.next=20;break}return e.next=20,Su(n,c,[r,i],{commitment:"confirmed"});case 20:l=Fi([Qi("instruction"),Qi("offset"),Qi("bytesLength"),Qi("bytesLengthPadding"),Vi(Ri("byte"),Bi(Qi(),-8),"bytes")]),h=t.chunkSize,d=0,f=a,p=[];case 25:if(!(f.length>0)){e.next=39;break}if(y=f.slice(0,h),m=Nt.alloc(h+16),l.encode({instruction:0,offset:d,bytes:y,bytesLength:0,bytesLengthPadding:0},m),g=(new vu).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),p.push(Su(n,g,[r,i],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){e.next=35;break}return e.next=35,Du(250);case 35:d+=h,f=f.slice(h),e.next=25;break;case 39:return e.next=41,Promise.all(p);case 41:return v=Fi([Qi("instruction")]),w=Nt.alloc(v.span),v.encode({instruction:1},w),b=(new vu).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1}],programId:o,data:w}),M="processed",e.next=48,n.sendTransaction(b,[r,i],{preflightCommitment:M});case 48:return A=e.sent,e.next=51,n.confirmTransaction({signature:A,lastValidBlockHeight:b.lastValidBlockHeight,blockhash:b.recentBlockhash},M);case 51:if(I=e.sent,N=I.context,!(E=I.value).err){e.next=56;break}throw new Error("Transaction ".concat(A," failed (").concat(JSON.stringify(E),")"));case 56:return e.prev=57,e.next=60,n.getSlot({commitment:M});case 60:if(!(e.sent>N.slot)){e.next=63;break}return e.abrupt("break",71);case 63:e.next=67;break;case 65:e.prev=65,e.t0=e.catch(57);case 67:return e.next=69,new Promise((function(t){return setTimeout(t,Math.round(200))}));case 69:e.next=56;break;case 71:return e.abrupt("return",!0);case 72:case"end":return e.stop()}}),e,null,[[57,65]])}))),function(t,n,r,i,o){return e.apply(this,arguments)})}]),t}();Fu.chunkSize=932;var Vu=new Xs("BPFLoader2111111111111111111111111111111111"),Hu=function(){function t(){B(this,t)}return U(t,null,[{key:"getMinNumSignatures",value:function(t){return Fu.getMinNumSignatures(t)}},{key:"load",value:function(t,e,n,r,i){return Fu.load(t,e,n,i,r)}}]),t}();function Gu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qu=Object.prototype.toString,Zu=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Ju(t,e){var n,r,i,o,a,s,u;if(!0===t)return"true";if(!1===t)return"false";switch(z(t)){case"object":if(null===t)return null;if(t.toJSON&&"function"==typeof t.toJSON)return Ju(t.toJSON(),e);if("[object Array]"===(u=qu.call(t))){for(i="[",r=t.length-1,n=0;n-1&&(i+=Ju(t[n],!0)),i+"]"}if("[object Object]"===u){for(r=(o=Zu(t).sort()).length,i="",n=0;n1;)t/=2,e++;return e}var $u=function(){function t(e,n,r,i,o){B(this,t),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=i,this.firstNormalSlot=o}return U(t,[{key:"getEpoch",value:function(t){return this.getEpochAndSlotIndex(t)[0]}},{key:"getEpochAndSlotIndex",value:function(t){if(t>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Ku(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}var n=t-this.firstNormalSlot,r=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+r,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}},{key:"getSlotsInEpoch",value:function(t){return t0&&(i.until=a.signatures[a.signatures.length-1].toString()),t.next=22;break;case 15:if(t.prev=15,t.t0=t.catch(8),!(t.t0 instanceof Error&&t.t0.message.includes("skipped"))){t.next=21;break}return t.abrupt("continue",4);case 21:throw t.t0;case 22:t.next=4;break;case 24:return t.next=26,this.getSlot("finalized");case 26:s=t.sent;case 27:if("before"in i){t.next=47;break}if(!(++r>s)){t.next=31;break}return t.abrupt("break",47);case 31:return t.prev=31,t.next=34,this.getConfirmedBlockSignatures(r);case 34:(u=t.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),t.next=45;break;case 38:if(t.prev=38,t.t1=t.catch(31),!(t.t1 instanceof Error&&t.t1.message.includes("skipped"))){t.next=44;break}return t.abrupt("continue",27);case 44:throw t.t1;case 45:t.next=27;break;case 47:return t.next=49,this.getConfirmedSignaturesForAddress2(e,i);case 49:return c=t.sent,t.abrupt("return",c.map((function(t){return t.signature})));case 51:case"end":return t.stop()}}),t,this,[[8,15],[31,38]])}))),function(t,e,n){return I.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(A=_(O().mark((function t(e,n,r){var i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,n),t.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i);case 3:if(o=t.sent,!("error"in(a=co(o,Jc)))){t.next=7;break}throw new ec(a.error,"failed to get confirmed signatures for address");case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return A.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(M=_(O().mark((function t(e,n,r){var i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,n),t.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=t.sent,!("error"in(a=co(o,Xc)))){t.next=7;break}throw new ec(a.error,"failed to get signatures for address");case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return M.apply(this,arguments)})},{key:"getAddressLookupTable",value:(b=_(O().mark((function t(e,n){var r,i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccountInfoAndContext(e,n);case 2:return r=t.sent,i=r.context,o=r.value,a=null,null!==o&&(a=new ic({key:e,state:ic.deserialize(o.data)})),t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return b.apply(this,arguments)})},{key:"getNonceAndContext",value:(w=_(O().mark((function t(e,n){var r,i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccountInfoAndContext(e,n);case 2:return r=t.sent,i=r.context,o=r.value,a=null,null!==o&&(a=Ru.fromAccountData(o.data)),t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return w.apply(this,arguments)})},{key:"getNonce",value:(v=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNonceAndContext(e,n).then((function(t){return t.value})).catch((function(t){throw new Error("failed to get nonce for account "+e.toBase58()+": "+t)}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return v.apply(this,arguments)})},{key:"requestAirdrop",value:(g=_(O().mark((function t(e,n){var r,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("requestAirdrop",[e.toBase58(),n]);case 2:if(r=t.sent,!("error"in(i=co(r,Wl)))){t.next=6;break}throw new ec(i.error,"airdrop to ".concat(e.toBase58()," failed"));case 6:return t.abrupt("return",i.result);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return g.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(m=_(O().mark((function t(e){var n,r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=10;break}case 1:if(!this._pollingBlockhash){t.next=6;break}return t.next=4,Du(100);case 4:t.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=3e4,null===this._blockhashInfo.latestBlockhash||r){t.next=10;break}return t.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return t.next=12,this._pollNewBlockhash();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(y=_(O().mark((function t(){var e,n,r,i,o;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._pollingBlockhash=!0,t.prev=1,e=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,i=0;case 6:if(!(i<50)){t.next=18;break}return t.next=9,this.getLatestBlockhash("finalized");case 9:if(o=t.sent,r===o.blockhash){t.next=13;break}return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t.abrupt("return",o);case 13:return t.next=15,Du(200);case 15:i++,t.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-e,"ms"));case 19:return t.prev=19,this._pollingBlockhash=!1,t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[1,,19,22]])}))),function(){return y.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(p=_(O().mark((function t(e){var n,r,i,o,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=lc(e),r=n.commitment,i=n.config,o=this._buildArgs([],r,"base64",i),t.next=4,this._rpcRequest("getStakeMinimumDelegation",o);case 4:if(a=t.sent,!("error"in(s=co(a,pc(wo()))))){t.next=8;break}throw new ec(s.error,"failed to get stake minimum delegation");case 8:return t.abrupt("return",s.result);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"simulateTransaction",value:(f=_(O().mark((function t(e,n,r){var i,o,a,s,u,c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!("message"in e)){t.next=17;break}if(i=e.serialize(),o=Nt.from(i).toString("base64"),!Array.isArray(n)&&void 0===r){t.next=6;break}throw new Error("Invalid arguments");case 6:return(a=n||{}).encoding="base64","commitment"in a||(a.commitment=this.commitment),s=[o,a],t.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=t.sent,!("error"in(c=co(u,Tc)))){t.next=16;break}throw new Error("failed to simulate transaction: "+c.error.message);case 16:return t.abrupt("return",c.result);case 17:if(e instanceof vu?(h=e,(l=new vu).feePayer=h.feePayer,l.instructions=e.instructions,l.nonceInfo=h.nonceInfo,l.signatures=h.signatures):(l=vu.populate(e))._message=l._json=void 0,void 0===n||Array.isArray(n)){t.next=20;break}throw new Error("Invalid arguments");case 20:if(d=n,!l.nonceInfo||!d){t.next=25;break}(f=l).sign.apply(f,et(d)),t.next=45;break;case 25:p=this._disableBlockhashCaching;case 26:return t.next=28,this._blockhashWithExpiryBlockHeight(p);case 28:if(m=t.sent,l.lastValidBlockHeight=m.lastValidBlockHeight,l.recentBlockhash=m.blockhash,d){t.next=33;break}return t.abrupt("break",45);case 33:if((y=l).sign.apply(y,et(d)),l.signature){t.next=36;break}throw new Error("!signature");case 36:if(g=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(g)||this._blockhashInfo.transactionSignatures.includes(g)){t.next=42;break}return this._blockhashInfo.simulatedSignatures.push(g),t.abrupt("break",45);case 42:p=!0;case 43:t.next=26;break;case 45:return v=l._compile(),w=v.serialize(),b=l._serialize(w),M=b.toString("base64"),A={encoding:"base64",commitment:this.commitment},r&&(I=(Array.isArray(r)?r:v.nonProgramIds()).map((function(t){return t.toBase58()})),A.accounts={encoding:"base64",addresses:I}),d&&(A.sigVerify=!0),N=[M,A],t.next=55,this._rpcRequest("simulateTransaction",N);case 55:if(E=t.sent,!("error"in(x=co(E,Tc)))){t.next=60;break}throw"data"in x.error&&(k=x.error.data.logs)&&Array.isArray(k)&&(L=(T="\n ")+k.join(T),console.error(x.error.message,L)),new tc("failed to simulate transaction: "+x.error.message,k);case 60:return t.abrupt("return",x.result);case 61:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return f.apply(this,arguments)})},{key:"sendTransaction",value:(d=_(O().mark((function t(e,n,r){var i,o,a,s,u,c;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!("version"in e)){t.next=7;break}if(!n||!Array.isArray(n)){t.next=3;break}throw new Error("Invalid arguments");case 3:return i=e.serialize(),t.next=6,this.sendRawTransaction(i,n);case 6:return t.abrupt("return",t.sent);case 7:if(void 0!==n&&Array.isArray(n)){t.next=9;break}throw new Error("Invalid arguments");case 9:if(o=n,!e.nonceInfo){t.next=14;break}e.sign.apply(e,et(o)),t.next=32;break;case 14:a=this._disableBlockhashCaching;case 15:return t.next=17,this._blockhashWithExpiryBlockHeight(a);case 17:if(s=t.sent,e.lastValidBlockHeight=s.lastValidBlockHeight,e.recentBlockhash=s.blockhash,e.sign.apply(e,et(o)),e.signature){t.next=23;break}throw new Error("!signature");case 23:if(u=e.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){t.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),t.abrupt("break",32);case 29:a=!0;case 30:t.next=15;break;case 32:return c=e.serialize(),t.next=35,this.sendRawTransaction(c,r);case 35:return t.abrupt("return",t.sent);case 36:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return d.apply(this,arguments)})},{key:"sendRawTransaction",value:(h=_(O().mark((function t(e,n){var r,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Hs(e).toString("base64"),t.next=3,this.sendEncodedTransaction(r,n);case 3:return i=t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(l=_(O().mark((function t(e,n){var r,i,o,a,s,u,c;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={encoding:"base64"},i=n&&n.skipPreflight,o=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),i&&(r.skipPreflight=i),o&&(r.preflightCommitment=o),a=[e,r],t.next=10,this._rpcRequest("sendTransaction",a);case 10:if(s=t.sent,!("error"in(u=co(s,Fl)))){t.next=15;break}throw"data"in u.error&&(c=u.error.data.logs),new tc("failed to send transaction: "+u.error.message,c);case 15:return t.abrupt("return",u.result);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var t=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){_(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t._rpcWebSocket.notify("ping");case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}},{key:"_wsOnClose",value:function(t){var e=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(t){var n=tt(t,2),r=n[0],i=n[1];e._setSubscription(r,C(C({},i),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(t,e){var n,r=null===(n=this._subscriptionsByHash[t])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[t]=e,r!==e.state){var i=this._subscriptionStateChangeCallbacksByHash[t];i&&i.forEach((function(t){try{t(e.state)}catch(t){}}))}}},{key:"_onSubscriptionStateChange",value:function(t,e){var n,r=this,i=this._subscriptionHashByClientSubscriptionId[t];if(null==i)return function(){};var o=(n=this._subscriptionStateChangeCallbacksByHash)[i]||(n[i]=new Set);return o.add(e),function(){o.delete(e),0===o.size&&delete r._subscriptionStateChangeCallbacksByHash[i]}}},{key:"_updateSubscriptions",value:(c=_(O().mark((function t(){var e,n,r=this;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){t.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log("Error when closing socket connection: ".concat(t.message))}}),500)),t.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){t.next=7;break}return this._rpcWebSocket.connect(),t.abrupt("return");case 7:return e=this._rpcWebSocketGeneration,n=function(){return e===r._rpcWebSocketGeneration},t.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var t=_(O().mark((function t(e){var i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==(i=r._subscriptionsByHash[e])){t.next=3;break}return t.abrupt("return");case 3:t.t0=i.state,t.next="pending"===t.t0||"unsubscribed"===t.t0?6:"subscribed"===t.t0?15:19;break;case 6:if(0!==i.callbacks.size){t.next=12;break}return delete r._subscriptionsByHash[e],"unsubscribed"===i.state&&delete r._subscriptionCallbacksByServerSubscriptionId[i.serverSubscriptionId],t.next=11,r._updateSubscriptions();case 11:return t.abrupt("return");case 12:return t.next=14,_(O().mark((function t(){var o,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i.args,a=i.method,t.prev=1,r._setSubscription(e,C(C({},i),{},{state:"subscribing"})),t.next=5,r._rpcWebSocket.call(a,o);case 5:return s=t.sent,r._setSubscription(e,C(C({},i),{},{serverSubscriptionId:s,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[s]=i.callbacks,t.next=10,r._updateSubscriptions();case 10:t.next=20;break;case 12:if(t.prev=12,t.t0=t.catch(1),t.t0 instanceof Error&&console.error("".concat(a," error for argument"),o,t.t0.message),n()){t.next=17;break}return t.abrupt("return");case 17:return r._setSubscription(e,C(C({},i),{},{state:"pending"})),t.next=20,r._updateSubscriptions();case 20:case"end":return t.stop()}}),t,null,[[1,12]])})))();case 14:return t.abrupt("break",19);case 15:if(0!==i.callbacks.size){t.next=18;break}return t.next=18,_(O().mark((function t(){var o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=i.serverSubscriptionId,a=i.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(o)){t.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(o),t.next=21;break;case 5:return r._setSubscription(e,C(C({},i),{},{state:"unsubscribing"})),r._setSubscription(e,C(C({},i),{},{state:"unsubscribing"})),t.prev=7,t.next=10,r._rpcWebSocket.call(a,[o]);case 10:t.next=21;break;case 12:if(t.prev=12,t.t0=t.catch(7),t.t0 instanceof Error&&console.error("".concat(a," error:"),t.t0.message),n()){t.next=17;break}return t.abrupt("return");case 17:return r._setSubscription(e,C(C({},i),{},{state:"subscribed"})),t.next=20,r._updateSubscriptions();case 20:return t.abrupt("return");case 21:return r._setSubscription(e,C(C({},i),{},{state:"unsubscribed"})),t.next=24,r._updateSubscriptions();case 24:case"end":return t.stop()}}),t,null,[[7,12]])})))();case 18:return t.abrupt("break",19);case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 11:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"_handleServerNotification",value:function(t,e){var n=this._subscriptionCallbacksByServerSubscriptionId[t];void 0!==n&&n.forEach((function(t){try{t.apply(void 0,et(e))}catch(t){console.error(t)}}))}},{key:"_wsOnAccountNotification",value:function(t){var e=co(t,Kc),n=e.result,r=e.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(t,e){var n=this,r=this._nextClientSubscriptionId++,i=Xu([t.method,e],!0),o=this._subscriptionsByHash[i];return void 0===o?this._subscriptionsByHash[i]=C(C({},t),{},{args:e,callbacks:new Set([t.callback]),state:"pending"}):o.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[r]=i,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=_(O().mark((function e(){var o;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],lu(void 0!==(o=n._subscriptionsByHash[i]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),o.callbacks.delete(t.callback),e.next=7,n._updateSubscriptions();case 7:case"end":return e.stop()}}),e)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(t,e,n){var r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(u=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"account change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(t){var e=co(t,tl),n=e.result,r=e.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(t,e,n,r){var i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}},{key:"removeProgramAccountChangeListener",value:(s=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"program account change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"onLogs",value:function(t,e,n){var r=this._buildArgs(["object"===z(t)?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(a=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"logs");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(t){var e=co(t,Hl),n=e.result,r=e.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(t){var e=co(t,nl),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(o=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"slot change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(t){var e=co(t,il),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"slot update");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(r=_(O().mark((function t(e,n){var r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[e])){t.next=6;break}return t.next=4,r();case 4:t.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(e,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_buildArgs",value:function(t,e,n,r){var i=e||this._commitment;if(i||n||r){var o={};n&&(o.encoding=n),i&&(o.commitment=i),r&&(o=Object.assign(o,r)),t.push(o)}return t}},{key:"_buildArgsAtLeastConfirmed",value:function(t,e,n,r){var i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}},{key:"_wsOnSignatureNotification",value:function(t){var e=co(t,ol),n=e.result,r=e.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(t,e,n){var r=this,i=this._buildArgs([t],n||this._commitment||"finalized"),o=this._makeSubscription({callback:function(t,n){if("status"===t.type){e(t.result,n);try{r.removeSignatureListener(o)}catch(t){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return o}},{key:"onSignatureWithOptions",value:function(t,e,n){var r=this,i=C(C({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),o=i.commitment,a=q(i,Bs),s=this._buildArgs([t],o,void 0,a),u=this._makeSubscription({callback:function(t,n){e(t,n);try{r.removeSignatureListener(u)}catch(t){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return u}},{key:"removeSignatureListener",value:(n=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"signature result");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(t){var e=co(t,al),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(e=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"root change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}(),Zl=function(){function t(e){B(this,t),this._keypair=void 0,this._keypair=null!=e?e:Us()}return U(t,[{key:"publicKey",get:function(){return new Xs(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new t(Us())}},{key:"fromSecretKey",value:function(e,n){if(64!==e.byteLength)throw new Error("bad secret key size");var r=e.slice(32,64);if(!n||!n.skipValidation)for(var i=e.slice(0,32),o=Qs(i),a=0;a<32;a++)if(r[a]!==o[a])throw new Error("provided secretKey is invalid");return new t({publicKey:r,secretKey:e})}},{key:"fromSeed",value:function(e){var n=Qs(e),r=new Uint8Array(64);return r.set(e),r.set(n,32),new t({publicKey:n,secretKey:r})}}]),t}(),Jl=Object.freeze({CreateLookupTable:{index:0,layout:Fi([Qi("instruction"),Uu("recentSlot"),Ri("bumpSeed")])},FreezeLookupTable:{index:1,layout:Fi([Qi("instruction")])},ExtendLookupTable:{index:2,layout:Fi([Qi("instruction"),Uu(),Vi(iu(),Bi(Qi(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Fi([Qi("instruction")])},CloseLookupTable:{index:4,layout:Fi([Qi("instruction")])}}),Xl=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(Jl);r2?t.keys[2].pubkey:void 0,addresses:e.map((function(t){return new Xs(t)}))}}},{key:"decodeCloseLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}},{key:"checkProgramId",value:function(t){if(!t.equals(Kl.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(t,e){if(t.length3&&(i.custodianPubkey=t.keys[3].pubkey),i}},{key:"decodeAuthorizeWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=Ou(dh.AuthorizeWithSeed,t.data),n=e.newAuthorized,r=e.stakeAuthorizationType,i=e.authoritySeed,o=e.authorityOwner,a={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:i,authorityOwner:new Xs(o),newAuthorizedPubkey:new Xs(n),stakeAuthorizationType:{index:r}};return t.keys.length>3&&(a.custodianPubkey=t.keys[3].pubkey),a}},{key:"decodeSplit",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=Ou(dh.Split,t.data).lamports;return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}},{key:"decodeMerge",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ou(dh.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);var e=Ou(dh.Withdraw,t.data).lamports,n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ou(dh.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}},{key:"checkProgramId",value:function(t){if(!t.equals(ph.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(t,e){if(t.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return Fi([iu("staker"),iu("withdrawer")],t)}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return Fi([Wi("unixTimestamp"),Wi("epoch"),iu("custodian")],t)}()])},Authorize:{index:1,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("stakeAuthorizationType")])},Delegate:{index:2,layout:Fi([Qi("instruction")])},Split:{index:3,layout:Fi([Qi("instruction"),Wi("lamports")])},Withdraw:{index:4,layout:Fi([Qi("instruction"),Wi("lamports")])},Deactivate:{index:5,layout:Fi([Qi("instruction")])},Merge:{index:7,layout:Fi([Qi("instruction")])},AuthorizeWithSeed:{index:8,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("stakeAuthorizationType"),au("authoritySeed"),iu("authorityOwner")])}}),fh=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),ph=function(){function t(){B(this,t)}return U(t,null,[{key:"initialize",value:function(t){var e=t.stakePubkey,n=t.authorized,r=t.lockup||lh.default,i=Cu(dh.Initialize,{authorized:{staker:Hs(n.staker.toBuffer()),withdrawer:Hs(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:Hs(r.custodian.toBuffer())}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new gu(o)}},{key:"createAccountWithSeed",value:function(t){var e=new vu;e.add(Wu.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));var n=t.stakePubkey,r=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"createAccount",value:function(t){var e=new vu;e.add(Wu.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));var n=t.stakePubkey,r=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"delegate",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.votePubkey,i=Cu(dh.Delegate);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:uh,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.newAuthorizedPubkey,i=t.stakeAuthorizationType,o=t.custodianPubkey,a=Cu(dh.Authorize,{newAuthorized:Hs(r.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new vu).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(t){var e=t.stakePubkey,n=t.authorityBase,r=t.authoritySeed,i=t.authorityOwner,o=t.newAuthorizedPubkey,a=t.stakeAuthorizationType,s=t.custodianPubkey,u=Cu(dh.AuthorizeWithSeed,{newAuthorized:Hs(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:r,authorityOwner:Hs(i.toBuffer())}),c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new vu).add({keys:c,programId:this.programId,data:u})}},{key:"splitInstruction",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.splitStakePubkey,i=t.lamports,o=Cu(dh.Split,{lamports:i});return new gu({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}},{key:"split",value:function(t){var e=new vu;return e.add(Wu.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}},{key:"splitWithSeed",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.splitStakePubkey,i=t.basePubkey,o=t.seed,a=t.lamports,s=new vu;return s.add(Wu.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:a}))}},{key:"merge",value:function(t){var e=t.stakePubkey,n=t.sourceStakePubKey,r=t.authorizedPubkey,i=Cu(dh.Merge);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.toPubkey,i=t.lamports,o=t.custodianPubkey,a=Cu(dh.Withdraw,{lamports:i}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new vu).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=Cu(dh.Deactivate);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),t}();ph.programId=new Xs("Stake11111111111111111111111111111111111111"),ph.space=200;var yh=U((function t(e,n,r,i){B(this,t),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=i})),mh=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(gh);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return Fi([iu("nodePubkey"),iu("authorizedVoter"),iu("authorizedWithdrawer"),Ri("commission")],t)}()])},Authorize:{index:1,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("voteAuthorizationType")])},Withdraw:{index:3,layout:Fi([Qi("instruction"),Wi("lamports")])},AuthorizeWithSeed:{index:10,layout:Fi([Qi("instruction"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return Fi([Qi("voteAuthorizationType"),iu("currentAuthorityDerivedKeyOwnerPubkey"),au("currentAuthorityDerivedKeySeed"),iu("newAuthorized")],t)}()])}}),vh=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),wh=function(){function t(){B(this,t)}return U(t,null,[{key:"initializeAccount",value:function(t){var e=t.votePubkey,n=t.nodePubkey,r=t.voteInit,i=Cu(gh.InitializeAccount,{voteInit:{nodePubkey:Hs(r.nodePubkey.toBuffer()),authorizedVoter:Hs(r.authorizedVoter.toBuffer()),authorizedWithdrawer:Hs(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new gu(o)}},{key:"createAccount",value:function(t){var e=new vu;return e.add(Wu.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}},{key:"authorize",value:function(t){var e=t.votePubkey,n=t.authorizedPubkey,r=t.newAuthorizedPubkey,i=t.voteAuthorizationType,o=Cu(gh.Authorize,{newAuthorized:Hs(r.toBuffer()),voteAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new vu).add({keys:a,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(t){var e=t.currentAuthorityDerivedKeyBasePubkey,n=t.currentAuthorityDerivedKeyOwnerPubkey,r=t.currentAuthorityDerivedKeySeed,i=t.newAuthorizedPubkey,o=t.voteAuthorizationType,a=t.votePubkey,s=Cu(gh.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Hs(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:Hs(i.toBuffer()),voteAuthorizationType:o.index}}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return(new vu).add({keys:u,programId:this.programId,data:s})}},{key:"withdraw",value:function(t){var e=t.votePubkey,n=t.authorizedWithdrawerPubkey,r=t.lamports,i=t.toPubkey,o=Cu(gh.Withdraw,{lamports:r}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new vu).add({keys:a,programId:this.programId,data:o})}},{key:"safeWithdraw",value:function(e,n,r){if(e.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return t.withdraw(e)}}]),t}();wh.programId=new Xs("Vote111111111111111111111111111111111111111"),wh.space=3731;var bh=new Xs("Va1idator1nfo111111111111111111111111111111"),Mh=No({name:Ao(),website:bo(Ao()),details:bo(Ao()),keybaseUsername:bo(Ao())}),Ah=function(){function t(e,n){B(this,t),this.key=void 0,this.info=void 0,this.key=e,this.info=n}return U(t,null,[{key:"fromConfigData",value:function(e){var n=et(e);if(2!==uu(n))return null;for(var r=[],i=0;i<2;i++){var o=new Xs(n.slice(0,32)),a=1===(n=n.slice(32)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:o,isSigner:a})}if(r[0].publicKey.equals(bh)&&r[1].isSigner){var s=au().decode(Nt.from(n)),u=JSON.parse(s);return uo(u,Mh),new t(r[1].publicKey,u)}return null}}]),t}(),Ih=new Xs("Vote111111111111111111111111111111111111111"),Nh=Fi([iu("nodePubkey"),iu("authorizedWithdrawer"),Ri("commission"),Yi(),Vi(Fi([Yi("slot"),Qi("confirmationCount")]),Bi(Qi(),-8),"votes"),Ri("rootSlotValid"),Yi("rootSlot"),Yi(),Vi(Fi([Yi("epoch"),iu("authorizedVoter")]),Bi(Qi(),-8),"authorizedVoters"),Fi([Vi(Fi([iu("authorizedPubkey"),Yi("epochOfLastAuthorizedSwitch"),Yi("targetEpoch")]),32,"buf"),Yi("idx"),Ri("isEmpty")],"priorVoters"),Yi(),Vi(Fi([Yi("epoch"),Yi("credits"),Yi("prevCredits")]),Bi(Qi(),-8),"epochCredits"),Fi([Yi("slot"),Yi("timestamp")],"lastTimestamp")]),Eh=function(){function t(e){B(this,t),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}return U(t,null,[{key:"fromAccountData",value:function(e){var n=Nh.decode(Hs(e),4),r=n.rootSlot;return n.rootSlotValid||(r=null),new t({nodePubkey:new Xs(n.nodePubkey),authorizedWithdrawer:new Xs(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:r,authorizedVoters:n.authorizedVoters.map(xh),priorVoters:Th(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}]),t}();function xh(t){var e=t.authorizedVoter;return{epoch:t.epoch,authorizedVoter:new Xs(e)}}function kh(t){var e=t.authorizedPubkey,n=t.epochOfLastAuthorizedSwitch,r=t.targetEpoch;return{authorizedPubkey:new Xs(e),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}function Th(t){var e=t.buf,n=t.idx;return t.isEmpty?[]:[].concat(et(e.slice(n+1).map(kh)),et(e.slice(0,n).map(kh)))}var Lh={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function Sh(){return(Sh=_(O().mark((function t(e,n,r,i){var o,a,s,u,c,l,h;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(o=r,a=i):a=r,s=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},t.next=4,e.sendRawTransaction(n,s);case 4:return u=t.sent,c=a&&a.commitment,l=o?e.confirmTransaction(o,c):e.confirmTransaction(u,c),t.next=9,l;case 9:if(!(h=t.sent.value).err){t.next=12;break}throw new Error("Raw transaction ".concat(u," failed (").concat(JSON.stringify(h),")"));case 12:return t.abrupt("return",u);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var jh=j(Object.freeze({__proto__:null,Account:Ks,AddressLookupTableAccount:ic,AddressLookupTableInstruction:Xl,AddressLookupTableProgram:Kl,Authorized:ch,BLOCKHASH_CACHE_TIMEOUT_MS:3e4,BPF_LOADER_DEPRECATED_PROGRAM_ID:$s,BPF_LOADER_PROGRAM_ID:Vu,BpfLoader:Hu,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:th,ComputeBudgetInstruction:$l,ComputeBudgetProgram:eh,Connection:ql,Ed25519Program:rh,Enum:qs,EpochSchedule:$u,FeeCalculatorLayout:Pu,Keypair:Zl,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Jl,Loader:Fu,Lockup:lh,MAX_SEED_LENGTH:32,Message:du,MessageAccountKeys:ru,MessageV0:fu,NONCE_ACCOUNT_LENGTH:Bu,NonceAccount:Ru,PACKET_DATA_SIZE:1232,PUBLIC_KEY_LENGTH:32,PublicKey:Xs,SIGNATURE_LENGTH_IN_BYTES:64,SOLANA_SCHEMA:Zs,STAKE_CONFIG_ID:uh,STAKE_INSTRUCTION_LAYOUTS:dh,SYSTEM_INSTRUCTION_LAYOUTS:Yu,SYSVAR_CLOCK_PUBKEY:Mu,SYSVAR_EPOCH_SCHEDULE_PUBKEY:Au,SYSVAR_INSTRUCTIONS_PUBKEY:Iu,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Nu,SYSVAR_RENT_PUBKEY:Eu,SYSVAR_REWARDS_PUBKEY:xu,SYSVAR_SLOT_HASHES_PUBKEY:ku,SYSVAR_SLOT_HISTORY_PUBKEY:Tu,SYSVAR_STAKE_HISTORY_PUBKEY:Lu,Secp256k1Program:sh,SendTransactionError:tc,SolanaJSONRPCError:ec,SolanaJSONRPCErrorCode:{JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},StakeAuthorizationLayout:fh,StakeInstruction:hh,StakeProgram:ph,Struct:Gs,SystemInstruction:Qu,SystemProgram:Wu,Transaction:vu,TransactionExpiredBlockheightExceededError:tu,TransactionExpiredNonceInvalidError:nu,TransactionExpiredTimeoutError:eu,TransactionInstruction:gu,TransactionMessage:wu,TransactionStatus:yu,VALIDATOR_INFO_KEY:bh,VERSION_PREFIX_MASK:127,VOTE_PROGRAM_ID:Ih,ValidatorInfo:Ah,VersionedMessage:pu,VersionedTransaction:bu,VoteAccount:Eh,VoteAuthorizationLayout:vh,VoteInit:yh,VoteInstruction:mh,VoteProgram:wh,clusterApiUrl:function(t,e){var n=!1===e?"http":"https";if(!t)return Lh[n].devnet;var r=Lh[n][t];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(t));return r},sendAndConfirmRawTransaction:function(t,e,n,r){return Sh.apply(this,arguments)},sendAndConfirmTransaction:Su})),Dh={};Object.defineProperty(Dh,"__esModule",{value:!0});var Ch={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND"},Oh=function(t){Y(n,G(Error));var e=X(n);function n(){var t;B(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");var e=new ArrayBuffer(4);return new DataView(e).setUint32(0,t,!1),new Uint8Array(e)}function Rh(){return Ph(this,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))}function Uh(){return Ph(this,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))}var Qh;function Yh(t,e){return Ph(this,void 0,void 0,O().mark((function n(){var r,i,o,a,s;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=JSON.stringify(t),i=Bh(t.id),o=new Uint8Array(12),crypto.getRandomValues(o),n.next=6,crypto.subtle.encrypt(Fh(i,o),e,(new TextEncoder).encode(r));case 6:return a=n.sent,(s=new Uint8Array(i.byteLength+o.byteLength+a.byteLength)).set(new Uint8Array(i),0),s.set(new Uint8Array(o),i.byteLength),s.set(new Uint8Array(a),i.byteLength+o.byteLength),n.abrupt("return",s);case 12:case"end":return n.stop()}}),n)})))}function Wh(t,e){return Ph(this,void 0,void 0,O().mark((function n(){var r,i,o,a,s,u;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.slice(0,4),i=t.slice(4,16),o=t.slice(16),n.next=5,crypto.subtle.decrypt(Fh(r,i),e,o);case 5:if(a=n.sent,s=Vh().decode(a),u=JSON.parse(s),!Object.hasOwnProperty.call(u,"error")){n.next=10;break}throw new zh(u.id,u.error.code,u.error.message);case 10:return n.abrupt("return",u);case 11:case"end":return n.stop()}}),n)})))}function Fh(t,e){return{additionalData:t,iv:e,name:"AES-GCM",tagLength:128}}function Vh(){return void 0===Qh&&(Qh=new TextDecoder("utf-8")),Qh}function Hh(t,e,n){return Ph(this,void 0,void 0,O().mark((function r(){var i,o,a,s,u,c,l;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([crypto.subtle.exportKey("raw",e),crypto.subtle.importKey("raw",t,{name:"ECDH",namedCurve:"P-256"},!1,[])]);case 2:return i=r.sent,o=tt(i,2),a=o[0],s=o[1],r.next=8,crypto.subtle.deriveBits({name:"ECDH",public:s},n,256);case 8:return u=r.sent,r.next=11,crypto.subtle.importKey("raw",u,"HKDF",!1,["deriveKey"]);case 11:return c=r.sent,r.next=14,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(a),info:new Uint8Array},c,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);case 14:return l=r.sent,r.abrupt("return",l);case 16:case"end":return r.stop()}}),r)})))}function Gh(t){if(t<49152||t>65535)throw new Oh(Ch.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,"Association port number must be between 49152 and 65535. ".concat(t," given."),{port:t});return t}function qh(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i1?t.shift():t[0]}}(),u=1,c=0,l={__type:"disconnected"},n.abrupt("return",new Promise((function(e,n){var d,f,p,y={},m=function t(){return Ph(h,void 0,void 0,O().mark((function e(){var n,r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("connecting"===l.__type){e.next=3;break}return console.warn("Expected adapter state to be `connecting` at the moment the websocket opens. "+"Got `".concat(l.__type,"`.")),e.abrupt("return");case 3:return n=l.associationKeypair,d.removeEventListener("open",t),e.next=7,Uh();case 7:return r=e.sent,e.t0=d,e.next=11,_h(r.publicKey,n.privateKey);case 11:e.t1=e.sent,e.t0.send.call(e.t0,e.t1),l={__type:"hello_req_sent",associationPublicKey:n.publicKey,ecdhPrivateKey:r.privateKey};case 14:case"end":return e.stop()}}),e)})))},g=function(t){t.wasClean?l={__type:"disconnected"}:n(new Oh(Ch.ERROR_SESSION_CLOSED,"The wallet session dropped unexpectedly (".concat(t.code,": ").concat(t.reason,")."),{closeEvent:t})),f()},v=function(t){return Ph(h,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f(),!(Date.now()-a>=rd)){t.next=5;break}n(new Oh(Ch.ERROR_SESSION_TIMEOUT,"Failed to connect to the wallet websocket on port ".concat(i,"."))),t.next=8;break;case 5:return t.next=7,new Promise((function(t){var e=s();p=window.setTimeout(t,e)}));case 7:b();case 8:case"end":return t.stop()}}),t)})))},w=function(r){return Ph(h,void 0,void 0,O().mark((function i(){var o,a,s,h,p,m,g,v;return O().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.data.arrayBuffer();case 2:o=i.sent,i.t0=l.__type,i.next="connected"===i.t0?6:"hello_req_sent"===i.t0?30:51;break;case 6:if(i.prev=6,a=o.slice(0,4),(s=new DataView(a).getUint32(0,!1))===c+1){i.next=11;break}throw new Error("Encrypted message has invalid sequence number");case 11:return c=s,i.next=14,Wh(o,l.sharedSecret);case 14:h=i.sent,p=y[h.id],delete y[h.id],p.resolve(h.result),i.next=29;break;case 20:if(i.prev=20,i.t1=i.catch(6),!(i.t1 instanceof zh)){i.next=28;break}m=y[i.t1.jsonRpcMessageId],delete y[i.t1.jsonRpcMessageId],m.reject(i.t1),i.next=29;break;case 28:throw i.t1;case 29:return i.abrupt("break",51);case 30:return i.next=32,Hh(o,l.associationPublicKey,l.ecdhPrivateKey);case 32:return g=i.sent,l={__type:"connected",sharedSecret:g},v=new Proxy({},{get:function(t,e){if(null==t[e]){var n=e.toString().replace(/[A-Z]/g,(function(t){return"_".concat(t.toLowerCase())})).toLowerCase();t[e]=function(t){return Ph(this,void 0,void 0,O().mark((function r(){var i;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=u++,r.t0=d,r.next=4,Yh({id:i,jsonrpc:"2.0",method:n,params:null!=t?t:{}},g);case 4:return r.t1=r.sent,r.t0.send.call(r.t0,r.t1),r.abrupt("return",new Promise((function(t,n){y[i]={resolve:function(r){switch(e){case"authorize":case"reauthorize":var i=r.wallet_uri_base;if(null!=i)try{od(i)}catch(t){return void n(t)}}t(r)},reject:n}})));case 7:case"end":return r.stop()}}),r)})))}}return t[e]},defineProperty:function(){return!1},deleteProperty:function(){return!1}}),i.prev=35,i.t2=e,i.next=39,t(v);case 39:i.t3=i.sent,(0,i.t2)(i.t3),i.next=46;break;case 43:i.prev=43,i.t4=i.catch(35),n(i.t4);case 46:return i.prev=46,f(),d.close(),i.finish(46);case 50:return i.abrupt("break",51);case 51:case"end":return i.stop()}}),i,null,[[6,20],[35,43,46,50]])})))},b=function(){f&&f(),l={__type:"connecting",associationKeypair:r},void 0===a&&(a=Date.now()),(d=new WebSocket(o,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",m),d.addEventListener("close",g),d.addEventListener("error",v),d.addEventListener("message",w),f=function(){window.clearTimeout(p),d.removeEventListener("open",m),d.removeEventListener("close",g),d.removeEventListener("error",v),d.removeEventListener("message",w)}};b()})));case 13:case"end":return n.stop()}}),n)})))};var ad=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);pthis.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}]),t}();function wd(t,e){return e.property?t+"["+e.property+"]":t}gd.Layout=vd,gd.nameWithProperty=wd,gd.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof vd))throw new TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,n){return e.decode(t,n)},writable:!0})};var bd=function(t){Y(n,vd);var e=X(n);function n(){return B(this,n),e.apply(this,arguments)}return U(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(),Md=function(t){Y(n,bd);var e=X(n);function n(t,r){var i;if(B(this,n),void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");return(i=e.call(this,-1,r)).elementSpan=t,i}return U(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.length-e;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(t,e,n){return 0}}]),n}(),Ad=function(t){Y(n,bd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof vd))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(o=e.call(this,t.span,i||t.property)).layout=t,o.offset=r,o}return U(n,[{key:"isCount",value:function(){return this.layout instanceof Id||this.layout instanceof Nd}},{key:"decode",value:function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),this.layout.encode(t,e,n+this.offset)}}]),n}(),Id=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeUIntLE(t,n,this.span),this.span}}]),n}(),Nd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeUIntBE(t,n,this.span),this.span}}]),n}(),Ed=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeIntLE(t,n,this.span),this.span}}]),n}(),xd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeIntBE(t,n,this.span),this.span}}]),n}(),kd=Math.pow(2,32);function Td(t){var e=Math.floor(t/kd);return{hi32:e,lo32:t-e*kd}}function Ld(t,e){return t*kd+e}var Sd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.readUInt32LE(e);return Ld(t.readUInt32LE(e+4),n)}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32LE(r.lo32,n),e.writeUInt32LE(r.hi32,n+4),8}}]),n}(),jd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Ld(t.readUInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}]),n}(),Dd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.readUInt32LE(e);return Ld(t.readInt32LE(e+4),n)}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32LE(r.lo32,n),e.writeInt32LE(r.hi32,n+4),8}}]),n}(),Cd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Ld(t.readInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}]),n}(),Od=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeFloatLE(t,n),4}}]),n}(),zd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeFloatBE(t,n),4}}]),n}(),Pd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeDoubleLE(t,n),8}}]),n}(),_d=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeDoubleBE(t,n),8}}]),n}(),Bd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof vd))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof bd&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof bd)&&0u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(t){s.e(t)}finally{s.f()}var c=-1;try{c=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(t){}return(o=e.call(this,c,r)).fields=t,o.decodePrefixes=!!i,o}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(t){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n,r=this.makeDestinationObject(),i=st(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(t,e)),e+=o.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r,i=n,o=0,a=0,s=st(this.fields);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.span;if(a=0c&&(c=u.getSpan(e,n)))}o=n,n+=c}}catch(t){s.e(t)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(t){var e,n=this.makeDestinationObject(),r=st(this.fields);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(t){r.e(t)}finally{r.f()}}}]),n}(),Ud=function(){function t(e){B(this,t),this.property=e}return U(t,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),t}(),Qd=function(t){Y(n,Ud);var e=X(n);function n(t,r){var i;if(B(this,n),!(t instanceof bd&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,r||t.property||"variant")).layout=t,i}return U(n,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,n){return this.layout.encode(t,e,n)}}]),n}(),Yd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;B(this,n);var a=t instanceof Id||t instanceof Nd;if(a)t=new Qd(new Ad(t));else if(t instanceof bd&&t.isCount())t=new Qd(t);else if(!(t instanceof Ud))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof vd))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&a&&(s+=t.layout.span),(o=e.call(this,s,i)).discriminator=t,o.usesPrefixDiscriminator=a,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(Z(o));return o.getSourceVariant=function(t){return u(t)},o.configGetSourceVariant=function(t){u=t.bind(this)},o}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(var n in this.registry){var r=this.registry[n];if(t.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t,e){var n;void 0===e&&(e=0);var r=this.discriminator,i=r.decode(t,e),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=r.layout.span),(n=this.makeDestinationObject())[r.property]=i,n[o.property]=this.defaultLayout.decode(t,e+a)}else n=o.decode(t,e);return n}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=this.getSourceVariant(t);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,n),a+o.encode(t[o.property],e,n+a)}return r.encode(t,e,n)}},{key:"addVariant",value:function(t,e,n){var r=new Wd(this,t,e,n);return this.registry[t]=r,r}},{key:"getVariant",value:function(t,e){var n=t;return Nt.isBuffer(t)&&(void 0===e&&(e=0),n=this.discriminator.decode(t,e)),this.registry[n]}}]),n}(),Wd=function(t){Y(n,vd);var e=X(n);function n(t,r,i,o){var a;if(B(this,n),!(t instanceof Yd))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof vd))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=t.span;return 0>t.span&&0<=(s=i?i.span:0)&&t.usesPrefixDiscriminator&&(s+=t.discriminator.layout.span),(a=e.call(this,s,o)).union=t,a.variant=r,a.layout=i||null,a}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(t,e+n)}},{key:"decode",value:function(t,e){var n=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);var i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),n}();function Fd(t){return 0>t&&(t+=4294967296),t}var Vd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof Id||t instanceof Nd))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(t){if(!Number.isInteger(t)||t!==Fd(t&this.valueMask))throw new TypeError(wd("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),n=Fd(t<n&&(n=this.length.decode(t,e)),n}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=this.span;return 0>n&&(n=this.length.decode(t,e)),t.slice(e,e+n)}},{key:"encode",value:function(t,e,n){var r=this.length;if(this.length instanceof bd&&(r=t.length),!Nt.isBuffer(t)||r!==t.length)throw new TypeError(wd("Blob.encode",this)+" requires (length "+r+") Buffer as src");if(n+r>e.length)throw new RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),n,r,"hex"),this.length instanceof bd&&this.length.encode(r,e,n),r}}]),n}(),Zd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,-1,t)}return U(n,[{key:"getSpan",value:function(t,e){if(!Nt.isBuffer(t))throw new TypeError("b must be a Buffer");void 0===e&&(e=0);for(var n=e;ne.length)throw new RangeError("encoding overruns Buffer");return r.copy(e,n),e[n+i]=0,i+1}}]),n}(),Jd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),"string"==typeof t&&void 0===r&&(r=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=e.call(this,-1,r)).maxSpan=t,i}return U(n,[{key:"getSpan",value:function(t,e){if(!Nt.isBuffer(t))throw new TypeError("b must be a Buffer");return void 0===e&&(e=0),t.length-e}},{key:"decode",value:function(t,e,n){void 0===e&&(e=0);var r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return r.copy(e,n),i}}]),n}(),Xd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,0,r)).value=t,i}return U(n,[{key:"decode",value:function(t,e,n){return this.value}},{key:"encode",value:function(t,e,n){return 0}}]),n}();gd.ExternalLayout=bd,gd.GreedyCount=Md,gd.OffsetLayout=Ad,gd.UInt=Id,gd.UIntBE=Nd,gd.Int=Ed,gd.IntBE=xd,gd.Float=Od,gd.FloatBE=zd,gd.Double=Pd,gd.DoubleBE=_d,gd.Sequence=Bd,gd.Structure=Rd,gd.UnionDiscriminator=Ud,gd.UnionLayoutDiscriminator=Qd,gd.Union=Yd,gd.VariantLayout=Wd,gd.BitStructure=Vd,gd.BitField=Hd,gd.Boolean=Gd,gd.Blob=qd,gd.CString=Zd,gd.UTF8=Jd,gd.Constant=Xd,gd.greedy=function(t,e){return new Md(t,e)},gd.offset=function(t,e,n){return new Ad(t,e,n)},gd.u8=function(t){return new Id(1,t)},gd.u16=function(t){return new Id(2,t)},gd.u24=function(t){return new Id(3,t)},gd.u32=function(t){return new Id(4,t)},gd.u40=function(t){return new Id(5,t)},gd.u48=function(t){return new Id(6,t)},gd.nu64=function(t){return new Sd(t)},gd.u16be=function(t){return new Nd(2,t)},gd.u24be=function(t){return new Nd(3,t)},gd.u32be=function(t){return new Nd(4,t)},gd.u40be=function(t){return new Nd(5,t)},gd.u48be=function(t){return new Nd(6,t)},gd.nu64be=function(t){return new jd(t)},gd.s8=function(t){return new Ed(1,t)},gd.s16=function(t){return new Ed(2,t)},gd.s24=function(t){return new Ed(3,t)},gd.s32=function(t){return new Ed(4,t)},gd.s40=function(t){return new Ed(5,t)},gd.s48=function(t){return new Ed(6,t)},gd.ns64=function(t){return new Dd(t)},gd.s16be=function(t){return new xd(2,t)},gd.s24be=function(t){return new xd(3,t)},gd.s32be=function(t){return new xd(4,t)},gd.s40be=function(t){return new xd(5,t)},gd.s48be=function(t){return new xd(6,t)},gd.ns64be=function(t){return new Cd(t)},gd.f32=function(t){return new Od(t)},gd.f32be=function(t){return new zd(t)},gd.f64=function(t){return new Pd(t)},gd.f64be=function(t){return new _d(t)},gd.struct=function(t,e,n){return new Rd(t,e,n)},gd.bits=function(t,e,n){return new Vd(t,e,n)};var Kd=gd.seq=function(t,e,n){return new Bd(t,e,n)};gd.union=function(t,e,n){return new Yd(t,e,n)},gd.unionLayoutDiscriminator=function(t,e){return new Qd(t,e)},gd.blob=function(t,e){return new qd(t,e)},gd.cstr=function(t){return new Zd(t)},gd.utf8=function(t,e){return new Jd(t,e)},gd.const=function(t,e){return new Xd(t,e)};var $d={},tf={exports:{}};!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(tf,L),function(t){var e=L&&L.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.array=t.rustEnum=t.str=t.vecU8=t.tagged=t.vec=t.bool=t.option=t.publicKey=t.i128=t.u128=t.i64=t.u64=t.struct=t.f64=t.f32=t.i32=t.u32=t.i16=t.u16=t.i8=t.u8=void 0;var n=gd,r=jh,i=e(tf.exports),o=gd;Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return o.u8}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return o.s8}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return o.u16}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return o.s16}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return o.u32}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return o.s32}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return o.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return o.f64}}),Object.defineProperty(t,"struct",{enumerable:!0,get:function(){return o.struct}});var a=function(t){Y(r,t);var e=X(r);function r(t,i,o){var a;return B(this,r),(a=e.call(this,t,o)).blob=n.blob(t),a.signed=i,a}return U(r,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new i.default(this.blob.decode(t,e),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(t=t.toTwos(8*this.span)),this.blob.encode(t.toArrayLike(Nt,"le",this.span),e,n)}}]),r}(n.Layout);function s(t){return new a(8,!1,t)}t.u64=s,t.i64=function(t){return new a(8,!0,t)},t.u128=function(t){return new a(16,!1,t)},t.i128=function(t){return new a(16,!0,t)};var u=function(t){Y(n,t);var e=X(n);function n(t,r,i,o){var a;return B(this,n),(a=e.call(this,t.span,o)).layout=t,a.decoder=r,a.encoder=i,a}return U(n,[{key:"decode",value:function(t,e){return this.decoder(this.layout.decode(t,e))}},{key:"encode",value:function(t,e,n){return this.layout.encode(this.encoder(t),e,n)}},{key:"getSpan",value:function(t,e){return this.layout.getSpan(t,e)}}]),n}(n.Layout);t.publicKey=function(t){return new u(n.blob(32),(function(t){return new r.PublicKey(t)}),(function(t){return t.toBuffer()}),t)};var c=function(t){Y(r,t);var e=X(r);function r(t,i){var o;return B(this,r),(o=e.call(this,-1,i)).layout=t,o.discriminator=n.u8(),o}return U(r,[{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==t?this.discriminator.encode(0,e,n):(this.discriminator.encode(1,e,n),this.layout.encode(t,e,n+1)+1)}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(t,e);if(0===n)return null;if(1===n)return this.layout.decode(t,e+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(t,e);if(0===n)return 1;if(1===n)return this.layout.getSpan(t,e+1)+1;throw new Error("Invalid option "+this.property)}}]),r}(n.Layout);function l(t){if(0===t)return!1;if(1===t)return!0;throw new Error("Invalid bool: "+t)}function h(t){return t?1:0}function d(t){var e=n.u32("length"),r=n.struct([e,n.blob(n.offset(e,-e.span),"data")]);return new u(r,(function(t){return t.data}),(function(t){return{data:t}}),t)}t.option=function(t,e){return new c(t,e)},t.bool=function(t){return new u(n.u8(),l,h,t)},t.vec=function(t,e){var r=n.u32("length"),i=n.struct([r,n.seq(t,n.offset(r,-r.span),"values")]);return new u(i,(function(t){return t.values}),(function(t){return{values:t}}),e)},t.tagged=function(t,e,r){var i=n.struct([s("tag"),e.replicate("data")]);return new u(i,(function(e){var n=e.tag,r=e.data;if(!n.eq(t))throw new Error("Invalid tag, expected: "+t.toString("hex")+", got: "+n.toString("hex"));return r}),(function(e){return{tag:t,data:e}}),r)},t.vecU8=d,t.str=function(t){return new u(d(),(function(t){return t.toString("utf-8")}),(function(t){return Nt.from(t,"utf-8")}),t)},t.rustEnum=function(t,e,r){var i=n.union(null!=r?r:n.u8(),e);return t.forEach((function(t,e){return i.addVariant(e,t,t.property)})),i},t.array=function(t,e,r){var i=n.struct([n.seq(t,e,"values")]);return new u(i,(function(t){return t.values}),(function(t){return{values:t}}),r)};var f=function(t){Y(n,t);var e=X(n);function n(t,r,i){var o;return B(this,n),(o=e.call(this,t.span+r.span,i)).keyLayout=t,o.valueLayout=r,o}return U(n,[{key:"decode",value:function(t,e){return e=e||0,[this.keyLayout.decode(t,e),this.valueLayout.decode(t,e+this.keyLayout.getSpan(t,e))]}},{key:"encode",value:function(t,e,n){n=n||0;var r=this.keyLayout.encode(t[0],e,n);return r+this.valueLayout.encode(t[1],e,n+r)}},{key:"getSpan",value:function(t,e){return this.keyLayout.getSpan(t,e)+this.valueLayout.getSpan(t,e)}}]),n}(n.Layout);t.map=function(t,e,r){var i=n.u32("length"),o=n.struct([i,n.seq(new f(t,e),n.offset(i,-i.span),"values")]);return new u(o,(function(t){var e=t.values;return new Map(e)}),(function(t){return{values:Array.from(t.entries())}}),r)}}($d),ut.Web3MobileWallet;var ef=ut.transact,nf=ur.Buffer,rf=br.exports,of=$d.struct([$d.publicKey("mint"),$d.publicKey("owner"),$d.u64("amount"),$d.u32("delegateOption"),$d.publicKey("delegate"),$d.u8("state"),$d.u32("isNativeOption"),$d.u64("isNative"),$d.u64("delegatedAmount"),$d.u32("closeAuthorityOption"),$d.publicKey("closeAuthority")]);$d.array;var af=$d.bool,sf=$d.i128;$d.i16;var uf=$d.i32,cf=$d.i64;$d.i8,$d.map;var lf=$d.option,hf=$d.publicKey,df=$d.rustEnum,ff=$d.str,pf=$d.struct;$d.tagged;var yf=$d.u128,mf=$d.u16,gf=$d.u32,vf=$d.u64,wf=$d.u8,bf=$d.vec;$d.vecU8;const Mf="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0yOTkuMyAyMzcuNSA1MDAgMTIybDIwMC43IDExNS41LTczLjUgNDIuNkw1MDAgMjA4LjJsLTEyNy4xIDcxLjktNzMuNi00Mi42em00MDEuNCAxNDYtNzMuNS00Mi42LTEyNy4xIDczTDM3MyAzNDAuNGwtNzMuNSA0My4xdjg1LjdsMTI3LjEgNzN2MTQ1LjRsNzMuNSA0My4xIDczLjUtNDMuMVY1NDIuMWwxMjcuMS03M3YtODUuNnptMCAyMzIuMXYtODUuN2wtNzMuNSA0Mi42djg1LjdjLS4xLS42IDczLjUtNDIuNiA3My41LTQyLjZ6bTUxLjkgMjkuMy0xMjcuMSA3M3Y4NS43TDgyNi4xIDY4OFY0NTYuNGwtNzMuNSA0My4xdjE0NS40em0tNzMuNS0zMzQuNCA3My41IDQzLjF2ODUuN2w3My41LTQzLjF2LTg1LjdsLTczLjUtNDMuMS03My41IDQzLjF6TTQyNi41IDc0OS40djg1LjdsNzMuNSA0My4xIDczLjUtNDMuMXYtODUuN2wtNzMuNSA0Mi03My41LTQyek0yOTkuMyA2MTUuNmw3My41IDQzLjF2LTg2LjJMMjk5LjMgNTMwdjg1LjZ6bTEyNy4yLTMwNS4xIDczLjUgNDMuMSA3My41LTQzLjEtNzMuNS00Mi42YzAtLjUtNzMuNSA0Mi42LTczLjUgNDIuNnptLTE3OS4xIDQzLjEgNzMuNS00My4xLTczLjUtNDMuMS03My41IDQzLjF2ODUuN2w3My41IDQzLjF2LTg1Ljd6bTAgMTQ1LjQtNzMuNS00Mi42VjY4OGwyMDAuNyAxMTUuNXYtODUuN2wtMTI3LjEtNzNjLS4xLjEtLjEtMTQ1LjgtLjEtMTQ1Ljh6IiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",Af="https://app.uniswap.org/static/media/bnb-logo.797868eb94521320b78e3967134febbe.svg";var If={name:"bsc",id:"0x38",networkId:"56",namespace:"eip155",platform:"evm",label:"BNB Smart Chain",fullName:"BNB Smart Chain Mainnet",logo:Mf,logoBackgroundColor:"#000000",logoWhiteBackground:Mf,currency:{name:"BNB",symbol:"BNB",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Af},wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png"},stables:{usd:["0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d","0x55d398326f99059fF775485246999027B3197955"]},explorer:"https://bscscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://bscscan.com/tx/${t.id||t}`:e?`https://bscscan.com/token/${e}`:n?`https://bscscan.com/address/${n}`:void 0,endpoints:["https://bsc-dataseed.binance.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed3.defibit.io"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"BNB",name:"Binance Coin",decimals:18,logo:Af,type:"NATIVE"},{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",symbol:"WBNB",name:"Wrapped BNB",decimals:18,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png",type:"20"},{address:"0x55d398326f99059fF775485246999027B3197955",symbol:"USDT",name:"Tether USD",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x55d398326f99059fF775485246999027B3197955/logo.png",type:"20"},{address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",symbol:"USDC",name:"USD Coin",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d/logo.png",type:"20"},{address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8",symbol:"ETH",name:"Ethereum Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png",type:"20"},{address:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",symbol:"Cake",name:"PancakeSwap Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82/logo.png",type:"20"},{address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",symbol:"BTCB",name:"BTCB Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADxdJREFUeJztXVtzFMcVplwuP8VVeYmf7HJ+RKqSl/AQP6X8H+yqXUEIjhMnQY5jO9oVCIzA5mowdzAYG4xAGAyWLC5G3IyDL8gOASUYKrarYGZWC7qi23b6692VV6uZ7e6ZnT3di07VV6JUaLfnnG+6z+lz+vScOXUoL6SzP52/2PtlQ9p7piHlLU2k3P2JJqcjkXLO8589/OdN/tPjvx8VEP8Wv+sp/J8O/A3+Fp+Bz8JnUj/XrPjIwjT7ybxm57fJlLsy2eR2cwPe4QZksYB/Nr4D34XvxHdTP/8DJ+k0e4S/lb9Jpr2WZJNzgRtjPDaDS4DvFmPgY8GYMDZq/dStNKQzv0qmnA1c6RkqgysQIoMxYqzU+qoLWZDO/jyZdl7lir1ObdwQZLiOseMZqPVonSTS7i+4AtsTTW6O2pDR4ebEs/Bnotar8dKw2Pk1n0I76Y0W16zgdOIZqfVsnCSbvaeEB2+AkWpCBEQS/Jmp9U4u3Fl6nIdWB6gNQgb+7NABtR1qLjxcejiZdhfxKXGA3AjUswHXAXQBnVDbpSbCPeO5fAr8hlrxpgE6gW6o7ROb5N96Z3l9ePZxgUcMXEd1NxssbMk8kWxyztEr2A5AV3XjGySb3acTSLYYoFjL4EF31PYLLXwaeyiZcltnp/woEJtIrdAltT21BEkR7tnuo1dgfQC6tCbRlGh1H02k3C5qpalg/bt3WdOGDPk4lACdct1S27eiLEgPPMbDmcvkylLAgiUOc/sm2LHuITavmX48KoBun1828DNqO/tKsiX7JF+zeqmVpIqPzg2xyckc++Sfw2ImoB6POtxe6Jra3tMEb75Nxv/Hmxk2MZGbIsCpz4bZn1d45OPSIQF0Tm13IViXbJn2i+i9NcYgRQIA+zsGyMelA6Fzap8Anq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ap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png";var xf={name:"ethereum",id:"0x1",networkId:"1",namespace:"eip155",platform:"evm",label:"Ethereum",fullName:"Ethereum Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbC1vcGFjaXR5Oi42MDJ9LnN0MCwuc3Qxe2ZpbGw6I2ZmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MTEuNCA3My4zdjMxNS41TDc3OCA1MDggNTExLjQgNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTExLjQgNzMuMyAyNDQuNyA1MDhsMjY2LjYtMTE5LjJWNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTExLjQgNzEyLjN2MjE0LjVsMjY2LjgtMzY5LjEtMjY2LjggMTU0LjZ6Ii8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTUxMS40IDkyNi43VjcxMi4zTDI0NC43IDU1Ny42bDI2Ni43IDM2OS4xeiIvPjxwYXRoIGQ9Ik01MTEuNCA2NjIuNyA3NzggNTA4IDUxMS40IDM4OC44djI3My45eiIgZmlsbD0iI2ZmZiIgZmlsbC1vcGFjaXR5PSIuMiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0yNDQuNyA1MDggMjY2LjYgMTU0LjdWMzg4LjhMMjQ0LjcgNTA4eiIvPjwvc3ZnPgo=",logoBackgroundColor:"#5683ec",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIGltYWdlLXJlbmRlcmluZz0ib3B0aW1pemVRdWFsaXR5IiBzaGF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D2ee523a2206206994597C13D831ec7"]},explorer:"https://etherscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://etherscan.io/tx/${t.id||t}`:e?`https://etherscan.io/token/${e}`:n?`https://etherscan.io/address/${n}`:void 0,endpoints:["https://rpc.ankr.com/eth","https://eth.llamarpc.com","https://ethereum.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:Nf,type:"NATIVE"},{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:Ef,type:"20"},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c/logo.png",type:"20"},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x853d955aCEf822Db058eb8505911ED77F175b99e",symbol:"FRAX",name:"Frax",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x853d955aCEf822Db058eb8505911ED77F175b99e/logo.png",type:"20"},{address:"0x956F47F50A910163D8BF957Cf5846D573E7f87CA",symbol:"FEI",name:"Fei USD",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x956F47F50A910163D8BF957Cf5846D573E7f87CA/logo.png",type:"20"},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const kf="https://assets.spooky.fi/tokens/wFTM.png";var Tf={name:"fantom",id:"0xfa",networkId:"250",namespace:"eip155",label:"Fantom",fullName:"Fantom Opera",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00NjcgMTM1LjVjMTgtOS4zIDQ1LjEtOS4zIDYzIDBsMTgzLjQgOTdjMTAuNyA2LjEgMTYuNiAxNCAxOCAyMy4zdjQ4Ni42YzAgOS4zLTYuMSAxOS4yLTE4IDI1LjJsLTE4My4yIDk3Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTgzLjMtOTdjLTExLjktNi4xLTE3LjItMTUuOS0xOC0yNS4yVjI1NS43Yy43LTguNyA2LjctMTcuMiAxNy4yLTIzLjNMNDY3IDEzNS41em0yMzUuOCAzODkuNy0xNzIuNiA5MC45Yy0xOCA5LjMtNDUuMSA5LjMtNjMgMGwtMTcxLjktOTAuM3Y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QuMi0yMi4yLTE0LjgtMzAuMS0zMS4yLTMwLjEtNjV2LTEuMWgyMS43em0xOTcuMi0yNjYuNGMtMS4xLjUtMi4xLjUtMy4yIDEuMWwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzEuMS41IDIuMSAxLjEgMy4yIDEuMVY0MTguMXptMjMuMiAwdjE1Ny41YzEuMS0uNSAyLjEtLjUgMy4yLTEuMWwxNDUuOS03Ny4yaC41LS41bC0xNDUuOS03OC4yYy0xLjEtLjUtMi4xLTEtMy4yLTF6TTY2MS44IDMzM2wtMTMxLjEgNjguNyAxMzEuMSA2OC43VjMzM3ptLTMyNC42IDB2MTM4bDEzMS4xLTY4LjdjMC0uMS0xMzEuMS02OS4zLTEzMS4xLTY5LjN6bTE3Ny4xLTEwMi4xYy03LjQtNC4yLTIxLjEtNC4yLTI5LjEgMGwtMTQ1LjkgNzcuMmgtLjUuNWwxNDUuOSA3Ny4yYzcuNCA0LjIgMjEuMSA0LjIgMjkuMSAwbDE0NS45LTc3LjJoLjUtLjVsLTE0NS45LTc3LjJ6bTE2OS4xIDcuNCA5IDUuOCAxLjYgMS4xYzIuNiAxLjYgNC44IDMuMiA2LjkgNC4yIDIyLjIgMTQuOCAzMC4xIDMxLjIgMzAuMSA2NXYxLjFoLTIyLjdjMC0xNC44LTEuNi0yNC44LTUuMy0zMS43LTIuNi01LjgtNi45LTEwLTE0LjgtMTUuM2wtLjUtLjVjLTEuNi0xLjEtMy43LTIuMS01LjgtMy43bC0yLjYtMS42LTguNS00LjggMTIuNi0xOS42eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",currency:{name:"Fantom",symbol:"FTM",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:"https://assets.spooky.fi/tokens/FTM.png"},wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",logo:kf},stables:{usd:["0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf","0x1B6382DBDEa11d97f24495C9A90b7c88469134a4"]},explorer:"https://ftmscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://ftmscan.com/tx/${t.id||t}`:e?`https://ftmscan.com/token/${e}`:n?`https://ftmscan.com/address/${n}`:void 0,endpoints:["https://rpc.ftm.tools","https://fantom.publicnode.com","https://rpc2.fantom.network"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"FTM",name:"Fantom",decimals:18,logo:"https://assets.spooky.fi/tokens/FTM.png",type:"NATIVE"},{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",symbol:"WFTM",name:"Wrapped Fantom",decimals:18,logo:kf,type:"20"},{address:"0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf",symbol:"lzUSDC",name:"LayerZero USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"},{address:"0x1B6382DBDEa11d97f24495C9A90b7c88469134a4",symbol:"axlUSDC",name:"Axelar Wrapped USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Lf="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/info/logo.png",Sf="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/assets/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270/logo.png";var jf={name:"polygon",id:"0x89",networkId:"137",namespace:"eip155",label:"Polygon (POS)",fullName:"Polygon (POS) Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0xMzEuNSA0NTkuM2MtMTQuNCA5LjYtMjQgMjQtMjQgNDMuMnYxOTQuNGMwIDE5L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LTkuNC01MS42IDAtLjEuMS0xNzEuMiAxMDMuMi0xNzMuNSAxMDMuMnoiIGZpbGw9IiM4MjQ3ZTUiLz48L3N2Zz4=",currency:{name:"Polygon",symbol:"MATIC",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Lf},wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",logo:Sf},stables:{usd:["0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"]},explorer:"https://polygonscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://polygonscan.com/tx/${t.id||t}`:e?`https://polygonscan.com/token/${e}`:n?`https://polygonscan.com/address/${n}`:void 0,endpoints:["https://polygon-rpc.com","https://polygon.meowrpc.com","https://polygon-bor.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"MATIC",name:"Polygon",decimals:18,logo:Lf,type:"NATIVE"},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",symbol:"WMATIC",name:"Wrapped Matic",decimals:18,logo:Sf,type:"20"},{address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",type:"20"},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xf6261529C6C2fBEB313aB25cDEcD243613b40EB5",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Df="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDE5Njc2ODQzODE5NzI3MzAwODIwMDAwMDA1OTQ3NjMyODMzODYxMjM4OTE3Xyl9LnN0MntmaWxsOnVybCgjU1ZHSURfMDAwMDAwNjQzMjA1MjE4MTcxODM4NzM1NjAwMDAwMDMxNzkyNDIxNTkzMzkwODM5NjdfKX08L3N0eWxlPjxsaW5lYXJHcmFkaWVudCBpZD0iU1ZHSURfMV8iIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiB4MT0iODE1Ljg1NiIgeTE9IjcwLjgyNCIgeDI9IjM4OC4zMzYiIHkyPSItNzQ4LjA1MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJp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DAwMTUwODE1NDQzMjY3MjY5NzYwNDQwMDAwMDEzNDYwODI0MzcwNDAzMTcyNTQzXykiLz48bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzAwMDAwMDA3NDA5ODc3MzYzMTA0OTgxNjMwMDAwMDE1MTMzNzA1NTcwNjgwMDk3NzA5XyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSI3MjAuOTIzIiB5MT0iMTE1Ljg3IiB4Mj0iMjkzLjQwNiIgeTI9Ii03MDMuMDAzIiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDAgMTkxLjQzNSkiPjxzdG9wIG9mZnNldD0iMCIgc3RvcC1jb2xvcj0iIzAwZmZhMyIvPjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iI2RjMWZmZiIvPjwvbGluZWFyR3JhZGllbnQ+PHBhdGggZD0iTTc2Mi4xIDQzMC4xYy00LjktNC45LTEyLjItNy4zLTE3LjEtNy4zSDEyNS4zYy0xMi4yIDAtMTcuMSAxNC43LTkuOCAyMkwyMzggNTY3LjNjNC45IDQuOSAxMi4yIDcuMyAxNy4xIDcuM2g2MTkuN2MxMi4yIDAgMTcuMS0xNC43IDkuOC0yMkw3NjIuMSA0MzAuMXoiIGZpbGw9InVybCgjU1ZHSURfMDAwMDAwMDc0MDk4NzczNjMxMDQ5ODE2MzAwMDAwMTUxMzM3MDU1NzA2ODAwOTc3MDlfKSIvPjwvc3ZnPgo=",Cf="https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png";var Of={name:"solana",networkId:"solana",namespace:"solana",label:"Solana",fullName:"Solana Mainnet Beta",logo:Df,logoBackgroundColor:"#000000",logoWhiteBackground:Df,currency:{name:"Solana",symbol:"SOL",decimals:9,address:"11111111111111111111111111111111",logo:Cf},wrapped:{address:"So11111111111111111111111111111111111111112",logo:Cf},stables:{usd:["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]},explorer:"https://solscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://solscan.io/tx/${t.id||t}`:e?`https://solscan.io/token/${e}`:n?`https://solscan.io/address/${n}`:void 0,endpoints:["https://swr.xnftdata.com/rpc-proxy","https://solana-rpc.publicnode.com","https://mainnet-beta.solflare.network","https://endpoints.omniatech.io/v1/sol/mainnet/public"],sockets:["wss://solana.drpc.org","wss://mainnet-beta.solflare.network","wss://solana.a.exodus.io"],tokens:[{address:"11111111111111111111111111111111",symbol:"SOL",name:"Solana",decimals:9,logo:Cf,type:"NATIVE"},{address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",type:"SPL"},{address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",symbol:"USDT",name:"USDT",decimals:6,logo:"https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png",type:"SPL"},{address:"7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj",symbol:"stSOL",name:"Lido Staked SOL",decimals:9,logo:"https://img.raydium.io/icon/7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj.png",type:"SPL"},{address:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",symbol:"BONK",name:"BONK",decimals:5,logo:"https://img.raydium.io/icon/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263.png",type:"SPL"},{address:"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",symbol:"SAMO",name:"Samoyed Coin",decimals:9,logo:"https://img.raydium.io/icon/7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU.png",type:"SPL"},{address:"DePay1miDBPWXs6PVQrdC5Vch2jemgEPaiyXLNLLa2NF",symbol:"DEPAY",name:"DePay",decimals:9,logo:"https://depay.com/favicon.png",type:"SPL"}],zero:"0",maxInt:"340282366920938463463374607431768211455"};const zf="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDojMjEzMTQ3fTwvc3R5bGU+PHBhdGggZD0iTTkyIDkyaDgxNnY4MTZIOTJWOTJ6IiBmaWxsPSJub25lIi8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTE2NS44IDM0MC4xVjY2MGMwIDIwLjYgMTAuOCAzOS4yIDI4LjcgNDkuNmwyNzcuMSAxNTkuOWMxNy42IDEwLjEgMzkuNSAxMC4xIDU3LjEgMGwyNzcuMS0xNTkuOWMxNy42LTEwLjEgMjguNy0yOSAyOC43LTQ5LjZWMzQwLjFjMC0yMC42LTEwLjgtMzkuMi0yOC43LTQ5LjZsLTI3Ny4xLTE2MGMtMTcuNi0xMC4xLTM5LjUtMTAuMS01Ny4xIDBsLTI3Ny4xIDE2MGMtMTcuNiAxMC4xLTI4LjQgMjktMjguNCA0OS42aC0uM3oiLz48cGF0aCBkPSJtNTYwLjQgNTYyLTM5LjUgMTA4LjRjLTEgMi45LTEgNi4yIDAgOS41bDY3LjkgMTg2LjQgNzguNi00NS40LTk0LjMtMjU4LjhjLTIuMy02LTEwLjQtNi0xMi43LS4xem03OS4zLTE4Mi4xYy0yLjMtNS45LTEwLjQtNS45LTEyLjcgMGwtMzkuNSAxMDguNGMtMSAyLjktMSA2LjIgMCA5LjVMNjk4LjggODAzbDc4LjYtNDUuNC0xMzcuNy0zNzcuNHYtLjN6IiBmaWxsPSIjMTJ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sPSIjZmZmIi8+PC9zdmc+Cg==";var Pf={name:"arbitrum",id:"0xa4b1",networkId:"42161",namespace:"eip155",platform:"evm",label:"Arbitrum",fullName:"Arbitrum One",logo:zf,logoBackgroundColor:"#2b354d",logoWhiteBackground:zf,currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",logo:xf.wrapped.logo},stables:{usd:["0xaf88d065e77c8cC2239327C5EDb3A432268e5831","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"]},explorer:"https://arbiscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://arbiscan.io/tx/${t.id||t}`:e?`https://arbiscan.io/token/${e}`:n?`https://arbiscan.io/address/${n}`:void 0,endpoints:["https://arbitrum.blockpi.network/v1/rpc/public","https://arbitrum-one.publicnode.com","https://endpoints.omniatech.io/v1/arbitrum/one/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8/logo.png",type:"20"},{address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1/logo.png",type:"20"},{address:"0x912CE59144191C1204E64559FE8253a0e49E6548",symbol:"ARB",name:"Arbitrum",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x912CE59144191C1204E64559FE8253a0e49E6548/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const _f="https://traderjoexyz.com/static/media/avalanche.7c81486190237e87e238c029fd746008.svg",Bf="https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png";var Rf={name:"avalanche",id:"0xa86a",networkId:"43114",namespace:"eip155",platform:"evm",label:"Avalanche",fullName:"Avalanche C-Chain",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0zNTkuMSA3NTEuMWgtOTUuM2MtMjAgMC0yOS45IDAtMzYtMy44LTYuNi00LjMtMTAuNC0xMS4zLTEwLjktMTguOS0uMy03LjEgNC42LTE1LjggMTQuNC0zM2wyMzUtNDE0LjNjMTAuMS0xNy42IDE1LjEtMjYuNCAyMS40LTI5LjYgNi45LTMuNSAxNS4xLTMuNSAyMS45IDAgNi40IDMuMyAxMS40IDEyIDIxLjQgMjkuNmw0OC40IDg0LjMuMi41YzEwLjggMTguOSAxNi4zIDI4LjUgMTguNiAzOC41IDIuNiAxMC45IDIuNiAyMi42IDAgMzMuNS0yLjQgMTAuMS03LjggMTkuOC0xOC44IDM4LjlMNDU2LjIgNjk0LjlsLS4zLjVjLTEwL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MyAxOC43LTI1LjkgNi0zIDEzLjEtMyAxOS4xIDAgNS42IDIuOCAxMCAxMC41IDE4LjcgMjUuOWw0Mi4yIDczLjYuMi40YzkuNCAxNi41IDE0LjIgMjQuOCAxNi4zIDMzLjYgMi4zIDkuNiAyLjMgMTkuNiAwIDI5LjItMi4xIDguOC02LjggMTcuMi0xNi40IDM0TDQ2My42IDYyMS4ybC0uMy41Yy05LjUgMTYuNi0xNC4zIDI1LTIxIDMxLjQtNy4zIDYuOS0xNiAxMi0yNS41IDE0LjgtOC43IDIuNC0xOC41IDIuNC0zOC4xIDIuNHptMjA5LjggMGgxMTljMTcuNiAwIDI2LjQgMCAzMS43LTMuNSA1LjctMy43IDkuMi05LjkgOS42LTE2LjYuMy02LTMuOS0xMy4zLTEyLjItMjcuNWwtLjktMS41LTU5LjYtMTAyLS43LTEuMWMtOC40LTE0LjItMTIuNi0yMS4zLTE4LTI0LjEtNi0zLTEzLjEtMy0xOSAwLTUuNSAyLjgtOS45IDEwLjMtMTguNiAyNS4zbC01OS40IDEwMi0uMi40Yy04LjcgMTUtMTMgMjIuNS0xMi43IDI4LjcuNCA2LjcgMy45IDEyLjkgOS42IDE2LjYgNSAzLjMgMTMuOCAzLjMgMzEuNCAzLjN6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2U4NDE0MiIvPjwvc3ZnPg==",currency:{name:"Avalanche",symbol:"AVAX",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:_f},wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",logo:Bf},stables:{usd:["0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]},explorer:"https://snowtrace.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://snowtrace.io/tx/${t.id||t}`:e?`https://snowtrace.io/token/${e}`:n?`https://snowtrace.io/address/${n}`:void 0,endpoints:["https://avalanche.public-rpc.com","https://avalanche.blockpi.network/v1/rpc/public","https://avax.meowrpc.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"AVAX",name:"Avalanche",decimals:18,logo:_f,type:"NATIVE"},{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",symbol:"WAVAX",name:"Wrapped AVAX",decimals:18,logo:Bf,type:"20"},{address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7/logo.png",type:"20"},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E/logo.png",type:"20"},{address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70/logo.png",type:"20"},{address:"0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALsAAAC7CAMAAAAKTh9YAAAAYFBMVEVHcEz////////////////////////////////////j++ma6qVj5nsl5lAK4zpA6mXO79aD8Zyr87u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ti8EvDuiX6e/+pUVq2Kv5/ZFH3rZ0tW4m4l2COitbJ/NbYWlFdZ/9216wpkWeuKJRfvvJ7l4QzhDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyR24QyJXThDYhfOkNiFMyj2OQhhvzkPIeYhhO105zr28G0IYTsVfuRBYQZC2C7EjKdn7RK7sJ+HaQ+lKHaZtwu7lWhkn5mk0GV0Fzabps4r6+xh+AqEsNdx+k8l9gAnIFMZYaNQH0c682I0mFdip6lMGP4KQthGhdPxmyunCwSYhIzuwjZlvBC/uRK7jO7CNkqHPjM5F/9x9YlgNLqHcq6MsAB1fPrFiep3rY6dRncvPAYhuKvTsV/zQef+MYedDyr9GDAGITii6cvpyeO1727kwI9f048FRyEEK+EJnJl8rN7fNL54oxwco5NnIAQX1GsZDafhat0bj44PwlMn9UeNQgiTUehB+Mit01/qWv+yPLohfQKoExDCWHrq0iR0sv7IXu3g+ARC9TyEMEn0ZHT1EmPjD23FwfExBOplfathCJEnWken5cXTk9MbvUlrscdklBd5oWumPX2kv6QPgDaZtqzVXuxkdHwYvtLR42EZ6UXqOog81n7s1faPP6k/0xNyIEokigJX4Yx+/Up0GnqbkceSiT1GS5UFvUwZYEx/5n36ixzW/8SgjPyiqeicrHC+sgGAmtGRvx1dMtph4NW+AiZycfiu2QTRAAAAAElFTkSuQmCC";var Yf={name:"gnosis",id:"0x64",networkId:"100",namespace:"eip155",label:"Gnosis",fullName:"Gnosis Chain",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMzMS45IDU1Ni41YzIzLjUgMCA0Ni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S4xIDQuOC05LjkgOS42LTE0LjMgMTQuMy0xMC42IDExLjMtMjAuNSAyMi45LTMwIDM0LjhMNTAwIDU3OC44bDMzOC42LTMzOC42Yy05LjItMTIuMi0xOS41LTIzLjgtMzAtMzQuN3pNNTAwIDEyOWM5OS43IDAgMTkyLjUgMzguNiAyNjIuNSAxMDguNUw1MDAgNTAwIDIzNy41IDIzNy41QzMwNy4yIDE2Ny4yIDQwMC4zIDEyOSA1MDAgMTI5eiIvPjwvc3ZnPgo=",currency:{name:"xDAI",symbol:"xDAI",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Uf},wrapped:{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",logo:Qf},stables:{usd:["0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83"]},explorer:"https://gnosisscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://gnosisscan.io/tx/${t.id||t}`:e?`https://gnosisscan.io/token/${e}`:n?`https://gnosisscan.io/address/${n}`:void 0,endpoints:["https://rpc.gnosis.gateway.fm","https://rpc.gnosischain.com","https://gnosis.blockpi.network/v1/rpc/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"xDAI",name:"xDAI",decimals:18,logo:Uf,type:"NATIVE"},{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",symbol:"WXDAI",name:"Wrapped XDAI",decimals:18,logo:Qf,type:"20"},{address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",symbol:"GNO",name:"Gnosis",decimals:18,logo:"https://cdn.sushi.com/image/upload/f_auto,c_limit,w_16,q_auto/tokens/100/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb.jpg",type:"20"},{address:"0xD057604A14982FE8D88c5fC25Aac3267eA142a08",symbol:"HOPR",name:"HOPR",decimals:18,logo:"https://hoprnet.org/assets/icons/hopr_icon.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var Wf={name:"optimism",id:"0xa",networkId:"10",namespace:"eip155",label:"Optimism",fullName:"Optimism",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00ODcuMSAzOTUuN2MtNS4yLTE1LjgtMTMuMi0zMS43LTI2LjQtNDIuMi0xMy4yLTEwLjUtMjYuNC0yMS4yLTQ0LjktMjYuNC0xOC41LTUuMi0zNy04LTU4LjEtOC00Ny41IDAtODcuMSAxMC41LTExNi4xIDM0LjQtMjkgMjMuOC00Ny41IDU4LjEtNjAuNyAxMDIuOS0yLjYgMTUuOC04IDI5LTEwLjUgNDQuOS0yLjYgMTMuMi01LjIgMjktOCA0Mi4yLTIuNiAyMy44LTIuNiA0Mi4yIDIuNiA2MC43IDUuMiAxNS44IDEzLjIgMzEuNyAyNi40IDQyLjIgMTMuMiAxMC41IDI2LjQgMjEuMiA0NC45IDI2LjQgMTguNCA1LjIgMzcgOCA1OC4xIDggNDcuNSAwIDg3LjEtMTAuNSAxMTYuMS0zNC40czQ3LjUtNTguMSA2MC43LTEwMi45YzIu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VsZT0iZXZlbm9kZCIgZmlsbD0iI2ZmMDQyMCIvPjwvc3ZnPg==",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:xf.wrapped.logo},stables:{usd:["0x94b008aA00579c1307B0EF2c499aD98a8ce58e58","0x7F5c764cBc14f9669B88837ca1490cCa17c31607"]},explorer:"https://optimistic.etherscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://optimistic.etherscan.io/tx/${t.id||t}`:e?`https://optimistic.etherscan.io/token/${e}`:n?`https://optimistic.etherscan.io/address/${n}`:void 0,endpoints:["https://optimism.blockpi.network/v1/rpc/public","https://optimism.meowrpc.com","https://optimism.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/logo.png",type:"20"},{address:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x7F5c764cBc14f9669B88837ca1490cCa17c31607/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x4200000000000000000000000000000000000042",symbol:"OP",name:"Optimism",decimals:18,logo:"https://user-images.githubusercontent.com/1300064/219575413-d7990d69-1d21-44ef-a2b1-e9c682c79802.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var Ff={name:"base",id:"0x2105",networkId:"8453",namespace:"eip155",label:"Base",fullName:"Base",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguNiA4NDJDNjg4IDg0MiA4NDIgNjg4LjkgODQyIDQ5OS41UzY4OCAxNTcgNDk4LjYgMTU3QzMxOSAxNTcgMTcxLjIgMjk1LjEgMTU3IDQ3MC4zaDQ1My4xdjU3LjVIMTU3QzE3MiA3MDMuOSAzMTkgODQyIDQ5OC42IDg0MnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",logoBackgroundColor:"#0052FF",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguOSA4NDVDNjkwLjEgODQ1IDg0NSA2OTAuMyA4NDUgNDk5LjVTNjkwLjEgMTU0IDQ5OC45IDE1NEMzMTcuNiAxNTQgMTY4LjggMjkzLjMgMTU0IDQ3MC41aDQ1Ny40djU4LjFIMTU0QzE2OC44IDcwNS44IDMxNy42IDg0NSA0OTguOSA4NDV6IiBmaWxsPSIjMDA1MmZmIi8+PC9zdmc+",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:xf.wrapped.logo},stables:{usd:["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"]},explorer:"https://basescan.org",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://basescan.org/tx/${t.id||t}`:e?`https://basescan.org/token/${e}`:n?`https://basescan.org/address/${n}`:void 0,endpoints:["https://base.blockpi.network/v1/rpc/public","https://base.meowrpc.com","https://mainnet.base.org"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",symbol:"USDbC",name:"USD Base Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Vf=[xf,If,jf,Of,Tf,Pf,Rf,Yf,Wf,Ff];var Hf={ethereum:xf,bsc:If,polygon:jf,solana:Of,fantom:Tf,arbitrum:Pf,avalanche:Rf,gnosis:Yf,optimism:Wf,base:Ff,all:Vf,findById:function(t){let e=t;return e.match("0x0")&&(e=e.replace(/0x0+/,"0x")),Vf.find((t=>t.id&&t.id.toLowerCase()==e.toLowerCase()))},findByNetworkId:function(t){return t=t.toString(),Vf.find((e=>e.networkId==t))},findByName:function(t){return Vf.find((e=>e.name==t))}},Gf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zf(t){var e={exports:{}};return t(e,e.exports),e.exports}for(var Jf=function(t){var e=op(t),n=e[0],r=e[1];return 3*(n+r)/4-r},Xf=function(t){var e,n,r=op(t),i=r[0],o=r[1],a=new ep(function(t,e,n){return 3*(e+n)/4-n}(0,i,o)),s=0,u=o>0?i-4:i;for(n=0;n>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===o&&(e=tp[t.charCodeAt(n)]<<2|tp[t.charCodeAt(n+1)]>>4,a[s++]=255&e);1===o&&(e=tp[t.charCodeAt(n)]<<10|tp[t.charCodeAt(n+1)]<<4|tp[t.charCodeAt(n+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},Kf=function(t){for(var e,n=t.length,r=n%3,i=[],o=16383,a=0,s=n-r;as?s:a+o));1===r?(e=t[n-1],i.push($f[e>>2]+$f[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push($f[e>>10]+$f[e>>4&63]+$f[e<<2&63]+"="));return i.join("")},$f=[],tp=[],ep="undefined"!=typeof Uint8Array?Uint8Array:Array,np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rp=0,ip=np.length;rp0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function ap(t,e,n){for(var r,i,o=[],a=e;a>18&63]+$f[i>>12&63]+$f[i>>6&63]+$f[63&i]);return o.join("")}tp["-".charCodeAt(0)]=62,tp["_".charCodeAt(0)]=63;var sp={byteLength:Jf,toByteArray:Xf,fromByteArray:Kf},up=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},cp=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y},lp=Zf((function(t,e){const n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},e.INSPECT_MAX_BYTES=50;const r=2147483647;function i(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return a(t,e,n)}function a(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|d(t,e);let r=i(n);const a=r.write(t,e);a!==n&&(r=r.slice(0,a));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return l(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return l(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return o.from(r,e,n);const a=function(t){if(o.isBuffer(t)){const e=0|h(t.length),n=i(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||G(t.length)?i(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return s(t),i(t<0?0:0|h(t))}function c(t){const e=t.length<0?0:0|h(t.length),n=i(e);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function d(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(i)return r?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function f(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function p(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){let o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?sp.fromByteArray(t):sp.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(o=u));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=N)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(t,e,n,r,i){if(H(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":case"latin1":case"binary":return w(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function E(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function j(t,e,n,r,i){R(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function D(t,e,n,r,i){R(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function C(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(t,e,n,r,i){return e=+e,n>>>=0,i||C(t,0,n,4),cp(t,e,n,r,23,4),n+4}function z(t,e,n,r,i){return e=+e,n>>>=0,i||C(t,0,n,8),cp(t,e,n,r,52,8),n+8}o.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=Z((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||L(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=Z((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||L(t,4,this.length),up(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),up(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),up(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),up(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){S(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,!r){S(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=Z((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=Z((function(t,e=0){return D(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=Z((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=Z((function(t,e=0){return D(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(t,e,n){return O(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return O(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function R(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new P.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){U(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Q(e,t.length-(n+1))}(r,i,o)}function U(t,e){if("number"!=typeof t)throw new P.ERR_INVALID_ARG_TYPE(e,"number",t)}function Q(t,e,n){if(Math.floor(t)!==t)throw U(t,n),new P.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}_("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),_("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),_("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=B(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=B(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function W(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return sp.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function G(t){return t!=t}const q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}})),hp=Zf((function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:lp.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gf)})); -/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */let dp=!1,fp=!1;const pp={debug:1,default:2,info:2,warning:3,error:4,off:5};let yp=pp.default,mp=null;const gp=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var vp,wp;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(vp||(vp={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(wp||(wp={}));const bp="0123456789abcdef";class Mp{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==pp[n]&&this.throwArgumentError("invalid log level name","logLevel",t),yp>pp[n]||console.log.apply(console,e)}debug(...t){this._log(Mp.levels.DEBUG,t)}info(...t){this._log(Mp.levels.INFO,t)}warn(...t){this._log(Mp.levels.WARNING,t)}makeError(t,e,n){if(fp)return this.makeError("censored error",e,{});e||(e=Mp.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t>4],n+=bp[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(e){r.push(t+"="+JSON.stringify(n[t].toString()))}})),r.push(`code=${e}`),r.push(`version=${this.version}`);const i=t;let o="";switch(e){case wp.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case wp.CALL_EXCEPTION:case wp.INSUFFICIENT_FUNDS:case wp.MISSING_NEW:case wp.NONCE_EXPIRED:case wp.REPLACEMENT_UNDERPRICED:case wp.TRANSACTION_REPLACED:case wp.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const a=new Error(t);return a.reason=i,a.code=e,Object.keys(n).forEach((function(t){a[t]=n[t]})),a}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Mp.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){gp&&this.throwError("platform missing String.prototype.normalize",Mp.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:gp})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Mp.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Mp.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",te&&this.throwError("too many arguments"+n,Mp.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Mp.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Mp.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Mp.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return mp||(mp=new Mp("logger/5.7.0")),mp}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Mp.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),dp){if(!t)return;this.globalLogger().throwError("error censorship permanent",Mp.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}fp=!!t,dp=!!e}static setLogLevel(t){const e=pp[t.toLowerCase()];null!=e?yp=e:Mp.globalLogger().warn("invalid log level - "+t)}static from(t){return new Mp(t)}}Mp.errors=wp,Mp.levels=vp;const Ap=new Mp("bytes/5.7.0");function Ip(t){return!!t.toHexString}function Np(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Np(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Ep(t){return Dp(t)&&!(t.length%2)||kp(t)}function xp(t){return"number"==typeof t&&t==t&&t%1==0}function kp(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!xp(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function Tp(t,e){if(e||(e={}),"number"==typeof t){Ap.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Np(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ip(t)&&(t=t.toHexString()),Dp(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":Ap.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;tTp(t))),n=e.reduce(((t,e)=>t+e.length),0),r=new Uint8Array(n);return e.reduce(((t,e)=>(r.set(e,t),t+e.length)),0),Np(r)}function Sp(t){let e=Tp(t);if(0===e.length)return e;let n=0;for(;ne&&Ap.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(t,e-t.length),Np(n)}function Dp(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function Cp(t,e){if(e||(e={}),"number"==typeof t){Ap.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e="0123456789abcdef"[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ip(t))return t.toHexString();if(Dp(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":Ap.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(kp(t)){let e="0x";for(let n=0;n>4]+"0123456789abcdef"[15&r]}return e}return Ap.throwArgumentError("invalid hexlify value","value",t)}function Op(t){if("string"!=typeof t)t=Cp(t);else if(!Dp(t)||t.length%2)return null;return(t.length-2)/2}function zp(t,e,n){return"string"!=typeof t?t=Cp(t):(!Dp(t)||t.length%2)&&Ap.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function Pp(t){let e="0x";return t.forEach((t=>{e+=Cp(t).substring(2)})),e}function _p(t){const e=function(t){"string"!=typeof t&&(t=Cp(t));Dp(t)||Ap.throwArgumentError("invalid hex string","value",t);t=t.substring(2);let e=0;for(;e2*e+2&&Ap.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Rp(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ep(t)){let n=Tp(t);64===n.length?(e.v=27+(n[32]>>7),n[32]&=127,e.r=Cp(n.slice(0,32)),e.s=Cp(n.slice(32,64))):65===n.length?(e.r=Cp(n.slice(0,32)),e.s=Cp(n.slice(32,64)),e.v=n[64]):Ap.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Ap.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=Cp(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const n=jp(Tp(e._vs),32);e._vs=Cp(n);const r=n[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=r:e.recoveryParam!==r&&Ap.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;const i=Cp(n);null==e.s?e.s=i:e.s!==i&&Ap.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Ap.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const n=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==n&&Ap.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&Dp(e.r)?e.r=Bp(e.r,32):Ap.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&Dp(e.s)?e.s=Bp(e.s,32):Ap.throwArgumentError("signature missing or invalid s","signature",t);const n=Tp(e.s);n[0]>=128&&Ap.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(n[0]|=128);const r=Cp(n);e._vs&&(Dp(e._vs)||Ap.throwArgumentError("signature invalid _vs","signature",t),e._vs=Bp(e._vs,32)),null==e._vs?e._vs=r:e._vs!==r&&Ap.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var Up=hp.BN;const Qp=new Mp("bignumber/5.7.0"),Yp={};let Wp=!1;class Fp{constructor(t,e){t!==Yp&&Qp.throwError("cannot call constructor directly; use BigNumber.from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Hp(Gp(this).fromTwos(t))}toTwos(t){return Hp(Gp(this).toTwos(t))}abs(){return"-"===this._hex[0]?Fp.from(this._hex.substring(1)):this}add(t){return Hp(Gp(this).add(Gp(t)))}sub(t){return Hp(Gp(this).sub(Gp(t)))}div(t){return Fp.from(t).isZero()&&qp("division-by-zero","div"),Hp(Gp(this).div(Gp(t)))}mul(t){return Hp(Gp(this).mul(Gp(t)))}mod(t){const e=Gp(t);return e.isNeg()&&qp("division-by-zero","mod"),Hp(Gp(this).umod(e))}pow(t){const e=Gp(t);return e.isNeg()&&qp("negative-power","pow"),Hp(Gp(this).pow(e))}and(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","and"),Hp(Gp(this).and(e))}or(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","or"),Hp(Gp(this).or(e))}xor(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","xor"),Hp(Gp(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&qp("negative-width","mask"),Hp(Gp(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&qp("negative-width","shl"),Hp(Gp(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&qp("negative-width","shr"),Hp(Gp(this).shrn(t))}eq(t){return Gp(this).eq(Gp(t))}lt(t){return Gp(this).lt(Gp(t))}lte(t){return Gp(this).lte(Gp(t))}gt(t){return Gp(this).gt(Gp(t))}gte(t){return Gp(this).gte(Gp(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Gp(this).isZero()}toNumber(){try{return Gp(this).toNumber()}catch(t){qp("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Qp.throwError("this platform does not support BigInt",Mp.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Wp||(Wp=!0,Qp.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Qp.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Mp.errors.UNEXPECTED_ARGUMENT,{}):Qp.throwError("BigNumber.toString does not accept parameters",Mp.errors.UNEXPECTED_ARGUMENT,{})),Gp(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Fp)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Fp(Yp,Vp(t)):t.match(/^-?[0-9]+$/)?new Fp(Yp,Vp(new Up(t))):Qp.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&qp("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&qp("overflow","BigNumber.from",t),Fp.from(String(t));const e=t;if("bigint"==typeof e)return Fp.from(e.toString());if(kp(e))return Fp.from(Cp(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Fp.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Dp(t)||"-"===t[0]&&Dp(t.substring(1))))return Fp.from(t)}return Qp.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Vp(t){if("string"!=typeof t)return Vp(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Qp.throwArgumentError("invalid hex","value",t),"0x00"===(t=Vp(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Hp(t){return Fp.from(Vp(t))}function Gp(t){const e=Fp.from(t).toHexString();return"-"===e[0]?new Up("-"+e.substring(3),16):new Up(e.substring(2),16)}function qp(t,e,n){const r={fault:t,operation:e};return null!=n&&(r.value=n),Qp.throwError(t,Mp.errors.NUMERIC_FAULT,r)}const Zp=new Mp("bignumber/5.7.0"),Jp={},Xp=Fp.from(0),Kp=Fp.from(-1);function $p(t,e,n,r){const i={fault:e,operation:n};return void 0!==r&&(i.value=r),Zp.throwError(t,Mp.errors.NUMERIC_FAULT,i)}let ty="0";for(;ty.length<256;)ty+=ty;function ey(t){if("number"!=typeof t)try{t=Fp.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ty.substring(0,t):Zp.throwArgumentError("invalid decimal size","decimals",t)}function ny(t,e){null==e&&(e=0);const n=ey(e),r=(t=Fp.from(t)).lt(Xp);r&&(t=t.mul(Kp));let i=t.mod(n).toString();for(;i.length2&&Zp.throwArgumentError("too many decimal points","value",t);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&$p("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==t[e]?r:(typeof t[e]!==n&&Zp.throwArgumentError("invalid fixed format ("+e+" not "+n+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&Zp.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&Zp.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new iy(Jp,e,n,r)}}class oy{constructor(t,e,n,r){t!==Jp&&Zp.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=e,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&Zp.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.add(n),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.sub(n),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=oy.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(e=e.subUnsafe(ay.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=oy.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(e=e.addUnsafe(ay.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&Zp.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const n=oy.from("1"+ty.substring(0,t),this.format),r=sy.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&Zp.throwArgumentError("invalid byte width","width",t);return Bp(Fp.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return oy.fromString(this._value,t)}static fromValue(t,e,n){return null!=n||null==e||function(t){return null!=t&&(Fp.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Dp(t)||"bigint"==typeof t||kp(t))}(e)||(n=e,e=null),null==e&&(e=0),null==n&&(n="fixed"),oy.fromString(ny(t,e),iy.from(n))}static fromString(t,e){null==e&&(e="fixed");const n=iy.from(e),r=ry(t,n.decimals);!n.signed&&r.lt(Xp)&&$p("unsigned value cannot be negative","overflow","value",t);let i=null;n.signed?i=r.toTwos(n.width).toHexString():(i=r.toHexString(),i=Bp(i,n.width/8));const o=ny(r,n.decimals);return new oy(Jp,i,o,n)}static fromBytes(t,e){null==e&&(e="fixed");const n=iy.from(e);if(Tp(t).length>n.width/8)throw new Error("overflow");let r=Fp.from(t);n.signed&&(r=r.fromTwos(n.width));const i=r.toTwos((n.signed?0:1)+n.width).toHexString(),o=ny(r,n.decimals);return new oy(Jp,i,o,n)}static from(t,e){if("string"==typeof t)return oy.fromString(t,e);if(kp(t))return oy.fromBytes(t,e);try{return oy.fromValue(t,0,e)}catch(t){if(t.code!==Mp.errors.INVALID_ARGUMENT)throw t}return Zp.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const ay=oy.from(1),sy=oy.from("0.5");var uy=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const cy=new Mp("properties/5.7.0");function ly(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function hy(t,e){for(let n=0;n<32;n++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function dy(t){return uy(this,void 0,void 0,(function*(){const e=Object.keys(t).map((e=>{const n=t[e];return Promise.resolve(n).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((t,e)=>(t[e.key]=e.value,t)),{})}))}function fy(t){const e={};for(const n in t)e[n]=t[n];return e}const py={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function yy(t){if(null==t||py[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let n=0;ngy(t))));if("object"==typeof t){const e={};for(const n in t){const r=t[n];void 0!==r&&ly(e,n,gy(r))}return e}return cy.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function gy(t){return my(t)}class vy{constructor(t){for(const e in t)this[e]=gy(t[e])}}const wy=new Mp("abi/5.7.0"),by={};let My={calldata:!0,memory:!0,storage:!0},Ay={calldata:!0,memory:!0};function Iy(t,e){if("bytes"===t||"string"===t){if(My[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&Ay[e])return!0;return(My[e]||"payable"===e)&&wy.throwArgumentError("invalid modifier","name",e),!1}function Ny(t,e){for(let n in e)ly(t,n,e[n])}const Ey=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),xy=new RegExp(/^(.*)\[([0-9]*)\]$/);class ky{constructor(t,e){t!==by&&wy.throwError("use fromString",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Ny(this,e);let n=this.type.match(xy);Ny(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:ky.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==Ey.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===Ey.full?", ":",")+")"):e+=this.type,t!==Ey.sighash&&(!0===this.indexed&&(e+=" indexed"),t===Ey.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?ky.fromString(t,e):ky.fromObject(t)}static fromObject(t){return ky.isParamType(t)?t:new ky(by,{name:t.name||null,type:By(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(ky.fromObject):null})}static fromString(t,e){return n=function(t,e){let n=t;function r(e){wy.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let n={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(n.indexed=!1),n}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let n=0;nky.fromString(t,e)))}class Ly{constructor(t,e){t!==by&&wy.throwError("use a static from method",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Ny(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return Ly.isFragment(t)?t:"string"==typeof t?Ly.fromString(t):Ly.fromObject(t)}static fromObject(t){if(Ly.isFragment(t))return t;switch(t.type){case"function":return zy.fromObject(t);case"event":return Sy.fromObject(t);case"constructor":return Oy.fromObject(t);case"error":return _y.fromObject(t);case"fallback":case"receive":return null}return wy.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Sy.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?zy.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?Oy.fromString(t.trim()):"error"===t.split(" ")[0]?_y.fromString(t.substring(5).trim()):wy.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class Sy extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",t!==Ey.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?Sy.fromString(t):Sy.fromObject(t)}static fromObject(t){if(Sy.isEventFragment(t))return t;"event"!==t.type&&wy.throwArgumentError("invalid event object","value",t);const e={name:Uy(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(ky.fromObject):[],type:"event"};return new Sy(by,e)}static fromString(t){let e=t.match(Qy);e||wy.throwArgumentError("invalid event string","value",t);let n=!1;return e[3].split(" ").forEach((t=>{switch(t.trim()){case"anonymous":n=!0;break;case"":break;default:wy.warn("unknown modifier: "+t)}})),Sy.fromObject({name:e[1].trim(),anonymous:n,inputs:Ty(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function jy(t,e){e.gas=null;let n=t.split("@");return 1!==n.length?(n.length>2&&wy.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||wy.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=Fp.from(n[1]),n[0]):t}function Dy(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function Cy(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&wy.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&wy.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||wy.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&wy.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&wy.throwArgumentError("unable to determine stateMutability","value",t),e}class Oy extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});t===Ey.sighash&&wy.throwError("cannot format a constructor for sighash",Mp.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?Oy.fromString(t):Oy.fromObject(t)}static fromObject(t){if(Oy.isConstructorFragment(t))return t;"constructor"!==t.type&&wy.throwArgumentError("invalid constructor object","value",t);let e=Cy(t);e.constant&&wy.throwArgumentError("constructor cannot be constant","value",t);const n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(ky.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Fp.from(t.gas):null};return new Oy(by,n)}static fromString(t){let e={type:"constructor"},n=(t=jy(t,e)).match(Qy);return n&&"constructor"===n[1].trim()||wy.throwArgumentError("invalid constructor string","value",t),e.inputs=Ty(n[2].trim(),!1),Dy(n[3].trim(),e),Oy.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class zy extends Oy{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",t!==Ey.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((e=>e.format(t))).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?zy.fromString(t):zy.fromObject(t)}static fromObject(t){if(zy.isFunctionFragment(t))return t;"function"!==t.type&&wy.throwArgumentError("invalid function object","value",t);let e=Cy(t);const n={type:t.type,name:Uy(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(ky.fromObject):[],outputs:t.outputs?t.outputs.map(ky.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Fp.from(t.gas):null};return new zy(by,n)}static fromString(t){let e={type:"function"},n=(t=jy(t,e)).split(" returns ");n.length>2&&wy.throwArgumentError("invalid function string","value",t);let r=n[0].match(Qy);if(r||wy.throwArgumentError("invalid function signature","value",t),e.name=r[1].trim(),e.name&&Uy(e.name),e.inputs=Ty(r[2],!1),Dy(r[3].trim(),e),n.length>1){let r=n[1].match(Qy);""==r[1].trim()&&""==r[3].trim()||wy.throwArgumentError("unexpected tokens","value",t),e.outputs=Ty(r[2],!1)}else e.outputs=[];return zy.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function Py(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||wy.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class _y extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",e.trim()}static from(t){return"string"==typeof t?_y.fromString(t):_y.fromObject(t)}static fromObject(t){if(_y.isErrorFragment(t))return t;"error"!==t.type&&wy.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:Uy(t.name),inputs:t.inputs?t.inputs.map(ky.fromObject):[]};return Py(new _y(by,e))}static fromString(t){let e={type:"error"},n=t.match(Qy);return n||wy.throwArgumentError("invalid error signature","value",t),e.name=n[1].trim(),e.name&&Uy(e.name),e.inputs=Ty(n[2],!1),Py(_y.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function By(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Ry=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Uy(t){return t&&t.match(Ry)||wy.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Qy=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Yy=new Mp("abi/5.7.0");class Wy{constructor(t,e,n,r){this.name=t,this.type=e,this.localName=n,this.dynamic=r}_throwError(t,e){Yy.throwArgumentError(t,this.localName,e)}}class Fy{constructor(t){ly(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Pp(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(Lp(t._data))}writeBytes(t){let e=Tp(t);const n=e.length%this.wordSize;return n&&(e=Lp([e,this._padding.slice(n)])),this._writeData(e)}_getValue(t){let e=Tp(Fp.from(t));return e.length>this.wordSize&&Yy.throwError("value out-of-bounds",Mp.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Lp([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Vy{constructor(t,e,n,r){ly(this,"_data",Tp(t)),ly(this,"wordSize",e||32),ly(this,"_coerceFunc",n),ly(this,"allowLoose",r),this._offset=0}get data(){return Cp(this._data)}get consumed(){return this._offset}static coerce(t,e){let n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Vy.coerce(t,e)}_peekBytes(t,e,n){let r=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+e<=this._data.length?r=e:Yy.throwError("data out-of-bounds",Mp.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(t){return new Vy(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let n=this._peekBytes(0,t,!!e);return this._offset+=n.length,n.slice(0,t)}readValue(){return Fp.from(this.readBytes(this.wordSize))}}var Hy=Zf((function(t){!function(){var e="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof k&&k.versions&&k.versions.node?r=Gf:i&&(r=self);var o=!r.JS_SHA3_NO_COMMON_JS&&t.exports,a=!r.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,s="0123456789abcdef".split(""),u=[4,1024,262144,67108864],c=[0,8,16,24],l=[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],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};!r.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!a||!r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var y=function(t,e,n){return function(r){return new j(t,e,t).update(r)[n]()}},m=function(t,e,n){return function(r,i){return new j(t,e,i).update(r)[n]()}},g=function(t,e,n){return function(e,r,i,o){return A["cshake"+t].update(e,r,i,o)[n]()}},v=function(t,e,n){return function(e,r,i,o){return A["kmac"+t].update(e,r,i,o)[n]()}},w=function(t,e,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(t,e,n){j.call(this,t,e,n)}j.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var i,o,s=this.blocks,u=this.byteCount,l=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(s[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=s[h],i=0;i>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(t){var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}var i=0,o=t.length;if(n)i=o;else for(var s=0;s=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},j.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e==0&&(C(n),o=0)}return i&&(t=n[o],u+=s[t>>4&15]+s[15&t],i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},j.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n==0&&C(r)}return o&&(t=s<<2,e=r[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},D.prototype=new j,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var C=function(t){var e,n,r,i,o,a,s,u,c,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S,j,D,C,O,z,P,_,B,R,U,Q,Y,W,F,V,H,G,q,Z,J,X,K,$,tt,et,nt,rt,it,ot,at,st,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(h<<1|d>>>31),n=s^(d<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(f<<1|p>>>31),n=c^(p<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=d^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,y=t[0],m=t[1],G=t[11]<<4|t[10]>>>28,q=t[10]<<4|t[11]>>>28,L=t[20]<<3|t[21]>>>29,S=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,W=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,z=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,j=t[33]<<13|t[32]>>>19,D=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,_=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,K=t[35]<<15|t[34]>>>17,C=t[45]<<29|t[44]>>>3,O=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,R=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,A=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,T=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,Q=t[38]<<8|t[39]>>>24,Y=t[39]<<8|t[38]>>>24,I=t[48]<<14|t[49]>>>18,N=t[49]<<14|t[48]>>>18,t[0]=y^~g&w,t[1]=m^~v&b,t[10]=E^~k&L,t[11]=x^~T&S,t[20]=z^~_&R,t[21]=P^~B&U,t[30]=V^~G&Z,t[31]=H^~q&J,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~w&M,t[3]=v^~b&A,t[12]=k^~L&j,t[13]=T^~S&D,t[22]=_^~R&Q,t[23]=B^~U&Y,t[32]=G^~Z&X,t[33]=q^~J&K,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=w^~M&I,t[5]=b^~A&N,t[14]=L^~j&C,t[15]=S^~D&O,t[24]=R^~Q&W,t[25]=U^~Y&F,t[34]=Z^~X&$,t[35]=J^~K&tt,t[44]=ot^~st&ct,t[45]=at^~ut<,t[6]=M^~I&y,t[7]=A^~N&m,t[16]=j^~C&E,t[17]=D^~O&x,t[26]=Q^~W&z,t[27]=Y^~F&P,t[36]=X^~$&V,t[37]=K^~tt&H,t[46]=st^~ct&et,t[47]=ut^~lt&nt,t[8]=I^~y&g,t[9]=N^~m&v,t[18]=C^~E&k,t[19]=O^~x&T,t[28]=W^~z&_,t[29]=F^~P&B,t[38]=$^~V&G,t[39]=tt^~H&q,t[48]=ct^~et&rt,t[49]=lt^~nt&it,t[0]^=l[r],t[1]^=l[r+1]};if(o)t.exports=A;else for(N=0;N>=8;return e}function Jy(t,e,n){let r=0;for(let i=0;ie+1+r&&qy.throwError("child data too short",Mp.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function tm(t,e){if(0===t.length&&qy.throwError("data too short",Mp.errors.BUFFER_OVERRUN,{}),t[e]>=248){const n=t[e]-247;e+1+n>t.length&&qy.throwError("data short segment too short",Mp.errors.BUFFER_OVERRUN,{});const r=Jy(t,e+1,n);return e+1+n+r>t.length&&qy.throwError("data long segment too short",Mp.errors.BUFFER_OVERRUN,{}),$y(t,e,e+1+n,n+r)}if(t[e]>=192){const n=t[e]-192;return e+1+n>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{}),$y(t,e,e+1,n)}if(t[e]>=184){const n=t[e]-183;e+1+n>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{});const r=Jy(t,e+1,n);e+1+n+r>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{});return{consumed:1+n+r,result:Cp(t.slice(e+1+n,e+1+n+r))}}if(t[e]>=128){const n=t[e]-128;e+1+n>t.length&&qy.throwError("data too short",Mp.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Cp(t.slice(e+1,e+1+n))}}return{consumed:1,result:Cp(t[e])}}function em(t){const e=Tp(t),n=tm(e,0);return n.consumed!==e.length&&qy.throwArgumentError("invalid rlp data","data",t),n.result}const nm=new Mp("address/5.7.0");function rm(t){Dp(t,20)||nm.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let t=0;t<40;t++)n[t]=e[t].charCodeAt(0);const r=Tp(Gy(n));for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&r[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const im={};for(let t=0;t<10;t++)im[String(t)]=String(t);for(let t=0;t<26;t++)im[String.fromCharCode(65+t)]=String(10+t);const om=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function am(t){let e=null;if("string"!=typeof t&&nm.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=rm(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&nm.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>im[t])).join("");for(;e.length>=om;){let t=e.substring(0,om);e=parseInt(t,10)%97+e.substring(t.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}(t)&&nm.throwArgumentError("bad icap checksum","address",t),n=t.substring(4),e=new Up(n,36).toString(16);e.length<40;)e="0"+e;e=rm("0x"+e)}else nm.throwArgumentError("invalid address","address",t);var n;return e}function sm(t){let e=null;try{e=am(t.from)}catch(e){nm.throwArgumentError("missing from address","transaction",t)}return am(zp(Gy(Ky([e,Sp(Tp(Fp.from(t.nonce).toHexString()))])),12))}class um extends Wy{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=am(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return am(Bp(t.readValue().toHexString(),20))}}class cm extends Wy{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const lm=new Mp("abi/5.7.0");function hm(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let t={};r=e.map((e=>{const r=e.localName;return r||lm.throwError("cannot encode object for signature with missing names",Mp.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]&&lm.throwError("cannot encode object for signature with duplicate names",Mp.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]=!0,n[r]}))}else lm.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&lm.throwArgumentError("types/value length mismatch","tuple",n);let i=new Fy(t.wordSize),o=new Fy(t.wordSize),a=[];e.forEach(((t,e)=>{let n=r[e];if(t.dynamic){let e=o.length;t.encode(o,n);let r=i.writeUpdatableValue();a.push((t=>{r(t+e)}))}else t.encode(i,n)})),a.forEach((t=>{t(i.length)}));let s=t.appendWriter(i);return s+=t.appendWriter(o),s}function dm(t,e){let n=[],r=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let n=t.readValue(),o=r.subReader(n.toNumber());try{i=e.decode(o)}catch(t){if(t.code===Mp.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===Mp.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&n.push(i)}));const i=e.reduce(((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t}),{});e.forEach(((t,e)=>{let r=t.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[e];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o}));for(let t=0;t{throw e}})}return Object.freeze(n)}class fm extends Wy{constructor(t,e,n){super("array",t.type+"["+(e>=0?e:"")+"]",n,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let n=0;nt._data.length&&lm.throwError("insufficient data length",Mp.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let n=[];for(let t=0;t>6==2;r++)t++;return t}return t===xm.OVERRUN?n.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Em||(Em={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(xm||(xm={}));const Tm=Object.freeze({error:function(t,e,n,r,i){return Nm.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n)},ignore:km,replace:function(t,e,n,r,i){return t===xm.OVERLONG?(r.push(i),0):(r.push(65533),km(t,e,n))}});function Lm(t,e){null==e&&(e=Tm.error),t=Tp(t);const n=[];let r=0;for(;r>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=e(128==(192&i)?xm.UNEXPECTED_CONTINUE:xm.BAD_PREFIX,r-1,t,n);continue}o=3,a=65535}if(r-1+o>=t.length){r+=e(xm.OVERRUN,r-1,t,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i1114111?r+=e(xm.OUT_OF_RANGE,r-1-o,t,n,s):s>=55296&&s<=57343?r+=e(xm.UTF16_SURROGATE,r-1-o,t,n,s):s<=a?r+=e(xm.OVERLONG,r-1-o,t,n,s):n.push(s))}return n}function Sm(t,e=Em.current){e!=Em.current&&(Nm.checkNormalize(),t=t.normalize(e));let n=[];for(let e=0;e>6|192),n.push(63&r|128);else if(55296==(64512&r)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Tp(n)}function jm(t,e){return Lm(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}class Dm extends ym{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,Sm(e))}decode(t){return jm(super.decode(t))}}class Cm extends Wy{constructor(t,e){let n=!1;const r=[];t.forEach((t=>{t.dynamic&&(n=!0),r.push(t.type)}));super("tuple","tuple("+r.join(",")+")",e,n),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[r]))})),Object.freeze(t)}encode(t,e){return hm(t,this.coders,e)}decode(t){return t.coerce(this.name,dm(t,this.coders))}}const Om=new Mp("abi/5.7.0"),zm=new RegExp(/^bytes([0-9]*)$/),Pm=new RegExp(/^(u?int)([0-9]*)$/);const _m=new class{constructor(t){ly(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new um(t.name);case"bool":return new pm(t.name);case"string":return new Dm(t.name);case"bytes":return new mm(t.name);case"array":return new fm(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Cm((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new vm(t.name)}let e=t.type.match(Pm);if(e){let n=parseInt(e[2]||"256");return(0===n||n>256||n%8!=0)&&Om.throwArgumentError("invalid "+e[1]+" bit length","param",t),new Im(n/8,"int"===e[1],t.name)}if(e=t.type.match(zm),e){let n=parseInt(e[1]);return(0===n||n>32)&&Om.throwArgumentError("invalid bytes length","param",t),new gm(n,t.name)}return Om.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Vy(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new Fy(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(ky.from(t))));return new Cm(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Om.throwError("types/values length mismatch",Mp.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const n=t.map((t=>this._getCoder(ky.from(t)))),r=new Cm(n,"_"),i=this._getWriter();return r.encode(i,e),i.data}decode(t,e,n){const r=t.map((t=>this._getCoder(ky.from(t))));return new Cm(r,"_").decode(this._getReader(Tp(e),n))}};function Bm(t){return Gy(Sm(t))}function Rm(t){t=atob(t);const e=[];for(let n=0;n0&&Array.isArray(t)?i(t,e-1):n.push(t)}))};return i(t,e),n}function Ym(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),i=1,o=[0,1];for(let t=1;t>--u&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let y=0;for(let t=0;t<31;t++)y=y<<1|l();let m=[],g=0,v=h;for(;;){let t=Math.floor(((y-g+1)*i-1)/v),e=0,n=r;for(;n-e>1;){let r=e+n>>>1;t>>1|l(),a=a<<1^d,s=(s^d)<<1|d|1;g=a,v=1+s-a}let w=r-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[s++]<<16|t[s++]<<8|t[s++]);case 2:return w+256+(t[s++]<<8|t[s++]);case 1:return w+t[s++];default:return e-1}}))}(t))}function Wm(t){return 1&t?~t>>1:t>>1}function Fm(t,e){let n=Array(t);for(let r=0,i=-1;re[t])):n}function Gm(t,e,n){let r=Array(t).fill(void 0).map((()=>[]));for(let i=0;ir[e].push(t)));return r}function qm(t,e){let n=1+e(),r=e(),i=function(t){let e=[];for(;;){let n=t();if(0==n)break;e.push(n)}return e}(e);return Qm(Gm(i.length,1+t,e).map(((t,e)=>{const o=t[0],a=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*r;return[o+e*n,a.map((t=>t+i))]}))})))}function Zm(t,e){return Gm(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const Jm=Ym(Rm("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9ABMAGgARAA4ADwAWABMAFgAIAA8AHgQXBYMA5BHJAS8JtAYoAe4AExozi0UAH21tAaMnBT8CrnIyhrMDhRgDygIBUAEHcoFHUPe8AXBjAewCjgDQR8IICIcEcQLwATXCDgzvHwBmBoHNAqsBdBcUAykgDhAMShskMgo8AY8jqAQfAUAfHw8BDw87MioGlCIPBwZCa4ELatMAAMspJVgsDl8AIhckSg8XAHdvTwBcIQEiDT4OPhUqbyECAEoAS34Aej8Ybx83JgT/Xw8gHxZ/7w8RICxPHA9vBw+Pfw8PHwAPFv+fAsAvCc8vEr8ivwD/EQ8Bol8OEBa/A78hrwAPCU8vESNvvwWfHwNfAVoDHr+ZAAED34YaAdJPAK7PLwSEgDLHAGo1Pz8Pvx9fUwMrpb8O/58VTzAPIBoXIyQJNF8hpwIVAT8YGAUADDNBaX3RAMomJCg9EhUeA29MABs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jT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Xm=new Set(Hm(Jm)),Km=new Set(Hm(Jm)),$m=function(t){let e=[];for(;;){let n=t();if(0==n)break;e.push(qm(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(Zm(n,t))}return function(t){const e={};for(let n=0;nt-e));return function n(){let r=[];for(;;){let i=Hm(t,e);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((t,e)=>e.set.size-t.set.size));let i=t(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}(Jm);function eg(t){return function(t,e=Em.current){return Lm(Sm(t,e))}(t)}function ng(t){return t.filter((t=>65039!=t))}function rg(t){for(let e of t.split(".")){let t=eg(e);try{for(let e=t.lastIndexOf(95)-1;e>=0;e--)if(95!==t[e])throw new Error("underscore only allowed at start");if(t.length>=4&&t.every((t=>t<128))&&45===t[2]&&45===t[3])throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${e}": ${t.message}`)}}return t}function ig(t){return rg(function(t,e){let n=eg(t).reverse(),r=[];for(;n.length;){let t=og(n);if(t){r.push(...e(t));continue}let i=n.pop();if(Xm.has(i)){r.push(i);continue}if(Km.has(i))continue;let o=$m[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);r.push(...o)}return rg(function(t){return t.normalize("NFC")}(String.fromCodePoint(...r)))}(t,ng))}function og(t,e){var n;let r,i,o=tg,a=[],s=t.length;for(e&&(e.length=0);s;){let u=t[--s];if(o=null===(n=o.branches.find((t=>t.set.has(u))))||void 0===n?void 0:n.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==t[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),e&&e.push(...t.slice(s).reverse()),t.length=s)}return r}const ag=new Mp("hash/5.7.0"),sg=new Uint8Array(32);function ug(t){if(0===t.length)throw new Error("invalid ENS name; empty component");return t}function cg(t){const e=Sm(ig(t)),n=[];if(0===t.length)return n;let r=0;for(let t=0;t=e.length)throw new Error("invalid ENS name; empty component");return n.push(ug(e.slice(r))),n}function lg(t){"string"!=typeof t&&ag.throwArgumentError("invalid ENS name; not a string","name",t);let e=sg;const n=cg(t);for(;n.length;)e=Gy(Lp([e,Gy(n.pop())]));return Cp(e)}sg.fill(0);var hg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const dg=new Mp("hash/5.7.0"),fg=new Uint8Array(32);fg.fill(0);const pg=Fp.from(-1),yg=Fp.from(0),mg=Fp.from(1),gg=Fp.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const vg=Bp(mg.toHexString(),32),wg=Bp(yg.toHexString(),32),bg={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Mg=["name","version","chainId","verifyingContract","salt"];function Ag(t){return function(e){return"string"!=typeof e&&dg.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Ig={name:Ag("name"),version:Ag("version"),chainId:function(t){try{return Fp.from(t).toString()}catch(t){}return dg.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return am(t).toLowerCase()}catch(t){}return dg.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Tp(t);if(32!==e.length)throw new Error("bad length");return Cp(e)}catch(t){}return dg.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Ng(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=""===e[1],r=parseInt(e[2]||"256");(r%8!=0||r>256||e[2]&&e[2]!==String(r))&&dg.throwArgumentError("invalid numeric width","type",t);const i=gg.mask(n?r-1:r),o=n?i.add(mg).mul(pg):yg;return function(e){const n=Fp.from(e);return(n.lt(o)||n.gt(i))&&dg.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),Bp(n.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(0===n||n>32||e[1]!==String(n))&&dg.throwArgumentError("invalid bytes width","type",t),function(e){return Tp(e).length!==n&&dg.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){const e=Tp(t),n=e.length%32;return n?Pp([e,fg.slice(n)]):Cp(e)}(e)}}}switch(t){case"address":return function(t){return Bp(am(t),32)};case"bool":return function(t){return t?vg:wg};case"bytes":return function(t){return Gy(t)};case"string":return function(t){return Bm(t)}}return null}function Eg(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class xg{constructor(t){ly(this,"types",Object.freeze(gy(t))),ly(this,"_encoderCache",{}),ly(this,"_types",{});const e={},n={},r={};Object.keys(t).forEach((t=>{e[t]={},n[t]=[],r[t]={}}));for(const r in t){const i={};t[r].forEach((o=>{i[o.name]&&dg.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,"types",t),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===r&&dg.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",t);Ng(a)||(n[a]||dg.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",t),n[a].push(r),e[r][a]=!0)}))}const i=Object.keys(n).filter((t=>0===n[t].length));0===i.length?dg.throwArgumentError("missing primary type","types",t):i.length>1&&dg.throwArgumentError(`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),ly(this,"primaryType",i[0]),function i(o,a){a[o]&&dg.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),a[o]=!0,Object.keys(e[o]).forEach((t=>{n[t]&&(i(t,a),Object.keys(a).forEach((e=>{r[e][t]=!0})))})),delete a[o]}(this.primaryType,{});for(const e in r){const n=Object.keys(r[e]);n.sort(),this._types[e]=Eg(e,t[e])+n.map((e=>Eg(e,t[e]))).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=Ng(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],n=this.getEncoder(t),r=parseInt(e[3]);return e=>{r>=0&&e.length!==r&&dg.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(n);return this._types[t]&&(i=i.map(Gy)),Gy(Pp(i))}}const n=this.types[t];if(n){const e=Bm(this._types[t]);return t=>{const r=n.map((({name:e,type:n})=>{const r=this.getEncoder(n)(t[e]);return this._types[n]?Gy(r):r}));return r.unshift(e),Pp(r)}}return dg.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||dg.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Gy(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,n){if(Ng(t))return n(t,e);const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const t=r[1],i=parseInt(r[3]);return i>=0&&e.length!==i&&dg.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,n)))}const i=this.types[t];return i?i.reduce(((t,{name:r,type:i})=>(t[r]=this._visit(i,e[r],n),t)),{}):dg.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new xg(t)}static getPrimaryType(t){return xg.from(t).primaryType}static hashStruct(t,e,n){return xg.from(e).hashStruct(t,n)}static hashDomain(t){const e=[];for(const n in t){const r=bg[n];r||dg.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),e.push({name:n,type:r})}return e.sort(((t,e)=>Mg.indexOf(t.name)-Mg.indexOf(e.name))),xg.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,n){return Pp(["0x1901",xg.hashDomain(t),xg.from(e).hash(n)])}static hash(t,e,n){return Gy(xg.encode(t,e,n))}static resolveNames(t,e,n,r){return hg(this,void 0,void 0,(function*(){t=fy(t);const i={};t.verifyingContract&&!Dp(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const o=xg.from(e);o.visit(n,((t,e)=>("address"!==t||Dp(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield r(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),n=o.visit(n,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:n}}))}static getPayload(t,e,n){xg.hashDomain(t);const r={},i=[];Mg.forEach((e=>{const n=t[e];null!=n&&(r[e]=Ig[e](n),i.push({name:e,type:bg[e]}))}));const o=xg.from(e),a=fy(e);return a.EIP712Domain?dg.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):a.EIP712Domain=i,o.encode(n),{types:a,domain:r,primaryType:o.primaryType,message:o.visit(n,((t,e)=>{if(t.match(/^bytes(\d*)/))return Cp(Tp(e));if(t.match(/^u?int/))return Fp.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&dg.throwArgumentError("invalid string","value",e),e}return dg.throwArgumentError("unsupported type","type",t)}))}}}const kg=new Mp("abi/5.7.0");class Tg extends vy{}class Lg extends vy{}class Sg extends vy{}class jg extends vy{static isIndexed(t){return!(!t||!t._isIndexed)}}const Dg={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Cg(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n}class Og{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,ly(this,"fragments",e.map((t=>Ly.from(t))).filter((t=>null!=t))),ly(this,"_abiCoder",hy(new.target,"getAbiCoder")()),ly(this,"functions",{}),ly(this,"errors",{}),ly(this,"events",{}),ly(this,"structs",{}),this.fragments.forEach((t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void kg.warn("duplicate definition - constructor"):void ly(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let n=t.format();e[n]?kg.warn("duplicate definition - "+n):e[n]=t})),this.deploy||ly(this,"deploy",Oy.from({payable:!1,type:"constructor"})),ly(this,"_isInterface",!0)}format(t){t||(t=Ey.full),t===Ey.sighash&&kg.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map((e=>e.format(t)));return t===Ey.json?JSON.stringify(e.map((t=>JSON.parse(t)))):e}static getAbiCoder(){return _m}static getAddress(t){return am(t)}static getSighash(t){return zp(Bm(t.format()),0,4)}static getEventTopic(t){return Bm(t.format())}getFunction(t){if(Dp(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];kg.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.functions).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching function","name",e):n.length>1&&kg.throwArgumentError("multiple matching functions","name",e),this.functions[n[0]]}const e=this.functions[zy.fromString(t).format()];return e||kg.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(Dp(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];kg.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.events).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching event","name",e):n.length>1&&kg.throwArgumentError("multiple matching events","name",e),this.events[n[0]]}const e=this.events[Sy.fromString(t).format()];return e||kg.throwArgumentError("no matching event","signature",t),e}getError(t){if(Dp(t)){const e=hy(this.constructor,"getSighash");for(const n in this.errors){if(t===e(this.errors[n]))return this.errors[n]}kg.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.errors).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching error","name",e):n.length>1&&kg.throwArgumentError("multiple matching errors","name",e),this.errors[n[0]]}const e=this.errors[zy.fromString(t).format()];return e||kg.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return hy(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),hy(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));const n=Tp(e);return Cp(n.slice(0,4))!==this.getSighash(t)&&kg.throwArgumentError(`data signature does not match error ${t.name}.`,"data",Cp(n)),this._decodeParams(t.inputs,n.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),Cp(Lp([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));const n=Tp(e);return Cp(n.slice(0,4))!==this.getSighash(t)&&kg.throwArgumentError(`data signature does not match function ${t.name}.`,"data",Cp(n)),this._decodeParams(t.inputs,n.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Cp(Lp([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let n=Tp(e),r=null,i="",o=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,n)}catch(t){}break;case 4:{const t=Cp(n.slice(0,4)),e=Dg[t];if(e)o=this._abiCoder.decode(e.inputs,n.slice(4)),a=e.name,s=e.signature,e.reason&&(r=o[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const e=this.getError(t);o=this._abiCoder.decode(e.inputs,n.slice(4)),a=e.name,s=e.format()}catch(t){}break}}return kg.throwError("call revert exception"+i,Mp.errors.CALL_EXCEPTION,{method:t.format(),data:Cp(e),errorArgs:o,errorName:a,errorSignature:s,reason:r})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Cp(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&kg.throwError("too many arguments for "+t.format(),Mp.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let n=[];t.anonymous||n.push(this.getEventTopic(t));const r=(t,e)=>"string"===t.type?Bm(e):"bytes"===t.type?Gy(Cp(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=Fp.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),Bp(Cp(e),32));for(e.forEach(((e,i)=>{let o=t.inputs[i];o.indexed?null==e?n.push(null):"array"===o.baseType||"tuple"===o.baseType?kg.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?n.push(e.map((t=>r(o,t)))):n.push(r(o,e)):null!=e&&kg.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const n=[],r=[],i=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&kg.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach(((t,o)=>{const a=e[o];if(t.indexed)if("string"===t.type)n.push(Bm(a));else if("bytes"===t.type)n.push(Gy(a));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([t.type],[a]))}else r.push(t),i.push(a)})),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(t,e,n){if("string"==typeof t&&(t=this.getEvent(t)),null!=n&&!t.anonymous){let e=this.getEventTopic(t);Dp(n[0],32)&&n[0].toLowerCase()===e||kg.throwError("fragment/topic mismatch",Mp.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:n[0]}),n=n.slice(1)}let r=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(r.push(ky.fromObject({type:"bytes32",name:t.name})),o.push(!0)):(r.push(t),o.push(!1)):(i.push(t),o.push(!1))}));let a=null!=n?this._abiCoder.decode(r,Lp(n)):null,s=this._abiCoder.decode(i,e,!0),u=[],c=0,l=0;t.inputs.forEach(((t,e)=>{if(t.indexed)if(null==a)u[e]=new jg({_isIndexed:!0,hash:null});else if(o[e])u[e]=new jg({_isIndexed:!0,hash:a[l++]});else try{u[e]=a[l++]}catch(t){u[e]=t}else try{u[e]=s[c++]}catch(t){u[e]=t}if(t.name&&null==u[t.name]){const n=u[e];n instanceof Error?Object.defineProperty(u,t.name,{enumerable:!0,get:()=>{throw Cg(`property ${JSON.stringify(t.name)}`,n)}}):u[t.name]=n}}));for(let t=0;t{throw Cg(`index ${t}`,e)}})}return Object.freeze(u)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new Lg({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:Fp.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new Tg({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){const e=Cp(t);let n=this.getError(e.substring(0,10).toLowerCase());return n?new Sg({args:this._abiCoder.decode(n.inputs,"0x"+e.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(t){return!(!t||!t._isInterface)}}var zg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const Pg=new Mp("abstract-provider/5.7.0");class _g extends vy{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class Bg{constructor(){Pg.checkAbstract(new.target,Bg),ly(this,"_isProvider",!0)}getFeeData(){return zg(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield dy({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((t=>null))});let n=null,r=null,i=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,i=Fp.from("1500000000"),r=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}var Rg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const Ug=new Mp("abstract-signer/5.7.0"),Qg=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Yg=[Mp.errors.INSUFFICIENT_FUNDS,Mp.errors.NONCE_EXPIRED,Mp.errors.REPLACEMENT_UNDERPRICED];class Wg{constructor(){Ug.checkAbstract(new.target,Wg),ly(this,"_isSigner",!0)}getBalance(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)}))}getTransactionCount(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)}))}estimateGas(t){return Rg(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const e=yield dy(this.checkTransaction(t));return yield this.provider.estimateGas(e)}))}call(t,e){return Rg(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield dy(this.checkTransaction(t));return yield this.provider.call(n,e)}))}sendTransaction(t){return Rg(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),n=yield this.signTransaction(e);return yield this.provider.sendTransaction(n)}))}getChainId(){return Rg(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)}))}checkTransaction(t){for(const e in t)-1===Qg.indexOf(e)&&Ug.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=fy(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then((e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&Ug.throwArgumentError("from address mismatch","transaction",t),e[0]))),e}populateTransaction(t){return Rg(this,void 0,void 0,(function*(){const e=yield dy(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then((t=>Rg(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.resolveName(t);return null==e&&Ug.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})))),e.to.catch((t=>{})));const n=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!n?0!==e.type&&1!==e.type||!n||Ug.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Ug.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?(n&&Ug.throwError("network does not support EIP-1559",Mp.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):Ug.throwError("failed to get consistent fee data",Mp.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch((t=>{if(Yg.indexOf(t.code)>=0)throw t;return Ug.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})}))),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then((e=>(0!==e[1]&&e[0]!==e[1]&&Ug.throwArgumentError("chainId address mismatch","transaction",t),e[0]))),yield dy(e)}))}_checkProvider(t){this.provider||Ug.throwError("missing provider",Mp.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}class Fg extends Wg{constructor(t,e){super(),ly(this,"address",t),ly(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then((()=>{Ug.throwError(t,Mp.errors.UNSUPPORTED_OPERATION,{operation:e})}))}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new Fg(this.address,t)}}var Vg=Zf((function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:lp.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gf)})),Hg=Gg;function Gg(t,e){if(!t)throw new Error(e||"Assertion failed")}Gg.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var qg=[],Zg=[],Jg="undefined"!=typeof Uint8Array?Uint8Array:Array,Xg=!1;function Kg(){Xg=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e>18&63]+qg[i>>12&63]+qg[i>>6&63]+qg[63&i]);return o.join("")}function tv(t){var e;Xg||Kg();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(e=t[n-1],i+=qg[e>>2],i+=qg[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=qg[e>>10],i+=qg[e>>4&63],i+=qg[e<<2&63],i+="="),o.push(i),o.join("")}function ev(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)}function nv(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}var rv={}.toString,iv=Array.isArray||function(t){return"[object Array]"==rv.call(t)};function ov(){return sv.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function av(t,e){if(ov()=ov())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ov().toString(16)+" bytes");return 0|t}function fv(t){return!(null==t||!t._isBuffer)}function pv(t,e){if(fv(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Uv(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Qv(t).length;default:if(r)return Uv(t).length;e=(""+e).toLowerCase(),r=!0}}function yv(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Lv(this,e,n);case"utf8":case"utf-8":return xv(this,e,n);case"ascii":return kv(this,e,n);case"latin1":case"binary":return Tv(this,e,n);case"base64":return Ev(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sv(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function mv(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function gv(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=sv.from(e,r)),fv(e))return 0===e.length?-1:vv(t,e,n,r,i);if("number"==typeof e)return e&=255,sv.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):vv(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function vv(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Ev(t,e,n){return 0===e&&n===t.length?tv(t):tv(t.slice(e,n))}function xv(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},sv.prototype.compare=function(t,e,n,r,i){if(!fv(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return wv(this,t,e,n);case"utf8":case"utf-8":return bv(this,t,e,n);case"ascii":return Mv(this,t,e,n);case"latin1":case"binary":return Av(this,t,e,n);case"base64":return Iv(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nv(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},sv.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kv(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function Dv(t,e,n,r,i,o){if(!fv(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function Cv(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function Ov(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function zv(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Pv(t,e,n,r,i){return i||zv(t,0,n,4),nv(t,e,n,r,23,4),n+4}function _v(t,e,n,r,i){return i||zv(t,0,n,8),nv(t,e,n,r,52,8),n+8}sv.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},sv.prototype.readUInt8=function(t,e){return e||jv(t,1,this.length),this[t]},sv.prototype.readUInt16LE=function(t,e){return e||jv(t,2,this.length),this[t]|this[t+1]<<8},sv.prototype.readUInt16BE=function(t,e){return e||jv(t,2,this.length),this[t]<<8|this[t+1]},sv.prototype.readUInt32LE=function(t,e){return e||jv(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},sv.prototype.readUInt32BE=function(t,e){return e||jv(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},sv.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||jv(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},sv.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||jv(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},sv.prototype.readInt8=function(t,e){return e||jv(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},sv.prototype.readInt16LE=function(t,e){e||jv(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},sv.prototype.readInt16BE=function(t,e){e||jv(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},sv.prototype.readInt32LE=function(t,e){return e||jv(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},sv.prototype.readInt32BE=function(t,e){return e||jv(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},sv.prototype.readFloatLE=function(t,e){return e||jv(t,4,this.length),ev(this,t,!0,23,4)},sv.prototype.readFloatBE=function(t,e){return e||jv(t,4,this.length),ev(this,t,!1,23,4)},sv.prototype.readDoubleLE=function(t,e){return e||jv(t,8,this.length),ev(this,t,!0,52,8)},sv.prototype.readDoubleBE=function(t,e){return e||jv(t,8,this.length),ev(this,t,!1,52,8)},sv.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Dv(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},sv.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,1,255,0),sv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},sv.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,2,65535,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Cv(this,t,e,!0),e+2},sv.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,2,65535,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Cv(this,t,e,!1),e+2},sv.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,4,4294967295,0),sv.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Ov(this,t,e,!0),e+4},sv.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,4,4294967295,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ov(this,t,e,!1),e+4},sv.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Dv(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},sv.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Dv(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},sv.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,1,127,-128),sv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},sv.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,2,32767,-32768),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Cv(this,t,e,!0),e+2},sv.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,2,32767,-32768),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Cv(this,t,e,!1),e+2},sv.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,4,2147483647,-2147483648),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ov(this,t,e,!0),e+4},sv.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Dv(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ov(this,t,e,!1),e+4},sv.prototype.writeFloatLE=function(t,e,n){return Pv(this,t,e,!0,n)},sv.prototype.writeFloatBE=function(t,e,n){return Pv(this,t,e,!1,n)},sv.prototype.writeDoubleLE=function(t,e,n){return _v(this,t,e,!0,n)},sv.prototype.writeDoubleBE=function(t,e,n){return _v(this,t,e,!1,n)},sv.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!sv.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Qv(t){return function(t){var e,n,r,i,o,a;Xg||Kg();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new Jg(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Zg[t.charCodeAt(e)]<<2|Zg[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=Zg[t.charCodeAt(e)]<<10|Zg[t.charCodeAt(e+1)]<<4|Zg[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Bv,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Yv(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Wv(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Fv=function(t){return t instanceof sv},Vv=Zf((function(t,e){var n=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r=a)return t;switch(t){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return t}})),u=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),u(r,t,r.depth)}function a(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function s(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&M(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=u(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(p(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(f(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),0===a.length){if(M(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(b(n))return c(n)}var A,I="",N=!1,E=["{","}"];(h(n)&&(N=!0,E=["[","]"]),M(n))&&(I=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(I=" "+RegExp.prototype.toString.call(n)),w(n)&&(I=" "+Date.prototype.toUTCString.call(n)),b(n)&&(I=" "+c(n)),0!==a.length||N&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),A=N?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(A,I,E)):E[0]+I+E[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),x(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=f(n)?u(t,c.value,null):u(t,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function f(t){return null===t}function p(t){return"number"==typeof t}function y(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return v(t)&&"[object RegExp]"===A(t)}function v(t){return"object"==typeof t&&null!==t}function w(t){return v(t)&&"[object Date]"===A(t)}function b(t){return v(t)&&("[object Error]"===A(t)||t instanceof Error)}function M(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(r)&&(r=k.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(r)){var n=k.pid;i[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else i[t]=function(){};return i[t]},e.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=f,e.isNullOrUndefined=function(t){return null==t},e.isNumber=p,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=v,e.isDate=w,e.isError=b,e.isFunction=M,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Fv;var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[I(t.getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":");return[t.getDate(),N[t.getMonth()],e].join(" ")}function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e._extend=function(t,e){if(!e||!v(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}})),Hv=Zf((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}}));function Gv(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function qv(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Zv(t){return 1===t.length?"0"+t:t}function Jv(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var Xv={inherits:Zf((function(t){try{var e=Vv;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=Hv}})),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):Gv(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},split32:function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,n){return t+e+n>>>0},sum32_4:function(t,e,n,r){return t+e+n+r>>>0},sum32_5:function(t,e,n,r,i){return t+e+n+r+i>>>0},sum64:function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},sum64_hi:function(t,e,n,r){return(e+r>>>0>>0},sum64_lo:function(t,e,n,r){return e+r>>>0},sum64_4_hi:function(t,e,n,r,i,o,a,s){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},sum64_4_lo:function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},sum64_5_hi:function(t,e,n,r,i,o,a,s,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},rotr64_hi:function(t,e,n){return(e<<32-n|t>>>n)>>>0},rotr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0},shr64_hi:function(t,e,n){return t>>>n},shr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0}};function Kv(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var $v=Kv;Kv.prototype.update=function(t,e){if(t=Xv.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=Xv.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},g1_256:function(t){return ew(t,17)^ew(t,19)^t>>>10}},aw=Xv.rotl32,sw=Xv.sum32,uw=Xv.sum32_5,cw=ow.ft_1,lw=tw.BlockHash,hw=[1518500249,1859775393,2400959708,3395469782];function dw(){if(!(this instanceof dw))return new dw;lw.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Xv.inherits(dw,lw);var fw=dw;dw.blockSize=512,dw.outSize=160,dw.hmacStrength=80,dw.padLength=64,dw.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),Hg(t.length<=this.blockSize);for(var e=t.length;e>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}})),kb=Ib((function(t,e){var n=e;n.assert=Nb,n.toArray=xb.toArray,n.zero2=xb.zero2,n.toHex=xb.toHex,n.encode=xb.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0==(1&c)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new Vg(t,"hex","le")}})),Tb=kb.getNAF,Lb=kb.getJSF,Sb=kb.assert;function jb(t,e){this.type=t,this.p=new Vg(e.p,16),this.red=e.prime?Vg.red(e.prime):Vg.mont(this.p),this.zero=new Vg(0).toRed(this.red),this.one=new Vg(1).toRed(this.red),this.two=new Vg(2).toRed(this.red),this.n=e.n&&new Vg(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Db=jb;function Cb(t,e){this.curve=t,this.type=e,this.precomputed=null}jb.prototype.point=function(){throw new Error("Not implemented")},jb.prototype.validate=function(){throw new Error("Not implemented")},jb.prototype._fixedNafMul=function(t,e){Sb(t.precomputed);var n=t._getDoubles(),r=Tb(e,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];Sb(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},jb.prototype._wnafMulAdd=function(t,e,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var y=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(y[1]=e[f].add(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].add(e[p].neg())):(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=Lb(n[f],n[p]);for(h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h),a=0;a=0;o--){for(var A=0;o>=0;){var I=!0;for(a=0;a=0&&A++,b=b.dblp(A),o<0)break;for(a=0;a0?s=c[a][N-1>>1]:N<0&&(s=c[a][-N-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},Cb.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=e,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Pb.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},Pb.prototype.pointFromX=function(t,e){(t=new Vg(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},Pb.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Pb.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Bb.prototype.isInfinity=function(){return this.inf},Bb.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},Bb.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Bb.prototype.getX=function(){return this.x.fromRed()},Bb.prototype.getY=function(){return this.y.fromRed()},Bb.prototype.mul=function(t){return t=new Vg(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Bb.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},Bb.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},Bb.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Bb.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},Bb.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ob(Rb,Db.BasePoint),Pb.prototype.jpoint=function(t,e,n){return new Rb(this,t,e,n)},Rb.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},Rb.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Rb.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},Rb.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),h=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(h,d,f)},Rb.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},Rb.prototype.inspect=function(){return this.isInfinity()?"":""},Rb.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Ub=Ib((function(t,e){var n=e;n.base=Db,n.short=_b,n.mont=null,n.edwards=null})),Qb=Ib((function(t,e){var n,r=e,i=kb.assert;function o(t){"short"===t.type?this.curve=new Ub.short(t):"edwards"===t.type?this.curve=new Ub.edwards(t):this.curve=new Ub.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new o(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Ab.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Ab.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Ab.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Ab.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Ab.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Ab.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Ab.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(t){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Ab.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function Yb(t){if(!(this instanceof Yb))return new Yb(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=xb.toArray(t.entropy,t.entropyEnc||"hex"),n=xb.toArray(t.nonce,t.nonceEnc||"hex"),r=xb.toArray(t.pers,t.persEnc||"hex");Nb(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var Wb=Yb;Yb.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},Yb.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=xb.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var Gb=kb.assert;function qb(t,e){if(t instanceof qb)return t;this._importDER(t,e)||(Gb(t.r&&t.s,"Signature without r or s"),this.r=new Vg(t.r,16),this.s=new Vg(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Zb=qb;function Jb(){this.place=0}function Xb(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function Kb(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}qb.prototype._importDER=function(t,e){t=kb.toArray(t,e);var n=new Jb;if(48!==t[n.place++])return!1;var r=Xb(t,n);if(!1===r)return!1;if(r+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var i=Xb(t,n);if(!1===i)return!1;var o=t.slice(n.place,i+n.place);if(n.place+=i,2!==t[n.place++])return!1;var a=Xb(t,n);if(!1===a)return!1;if(t.length!==a+n.place)return!1;var s=t.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Vg(o),this.s=new Vg(s),this.recoveryParam=null,!0},qb.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=Kb(e),n=Kb(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];$b(r,e.length),(r=r.concat(e)).push(2),$b(r,n.length);var i=r.concat(n),o=[48];return $b(o,i.length),o=o.concat(i),kb.encode(o,t)};var tM=function(){throw new Error("unsupported")},eM=kb.assert;function nM(t){if(!(this instanceof nM))return new nM(t);"string"==typeof t&&(eM(Object.prototype.hasOwnProperty.call(Qb,t),"Unknown curve "+t),t=Qb[t]),t instanceof Qb.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var rM=nM;nM.prototype.keyPair=function(t){return new Hb(this,t)},nM.prototype.keyFromPrivate=function(t,e){return Hb.fromPrivate(this,t,e)},nM.prototype.keyFromPublic=function(t,e){return Hb.fromPublic(this,t,e)},nM.prototype.genKeyPair=function(t){t||(t={});for(var e=new Wb({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||tM(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new Vg(2));;){var i=new Vg(e.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},nM.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},nM.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new Vg(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new Wb({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new Vg(1)),c=0;;c++){var l=r.k?r.k(c):new Vg(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=l.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),y^=1),new Zb({r:f,s:p,recoveryParam:y})}}}}}},nM.prototype.verify=function(t,e,n,r){t=this._truncateToN(new Vg(t,16)),n=this.keyFromPublic(n,r);var i=(e=new Zb(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},nM.prototype.recoverPubKey=function(t,e,n,r){eM((3&n)===n,"The recovery param is more than two bits"),e=new Zb(e,r);var i=this.n,o=new Vg(t),a=e.r,s=e.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=e.r.invm(i),h=i.sub(o).mul(l).umod(i),d=s.mul(l).umod(i);return this.g.mulAdd(h,a,d)},nM.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new Zb(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var iM=Ib((function(t,e){var n=e;n.version="6.5.4",n.utils=kb,n.rand=function(){throw new Error("unsupported")},n.curve=Ub,n.curves=Qb,n.ec=rM,n.eddsa=null})).ec;const oM=new Mp("signing-key/5.7.0");let aM=null;function sM(){return aM||(aM=new iM("secp256k1")),aM}class uM{constructor(t){ly(this,"curve","secp256k1"),ly(this,"privateKey",Cp(t)),32!==Op(this.privateKey)&&oM.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=sM().keyFromPrivate(Tp(this.privateKey));ly(this,"publicKey","0x"+e.getPublic(!1,"hex")),ly(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),ly(this,"_isSigningKey",!0)}_addPoint(t){const e=sM().keyFromPublic(Tp(this.publicKey)),n=sM().keyFromPublic(Tp(t));return"0x"+e.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const e=sM().keyFromPrivate(Tp(this.privateKey)),n=Tp(t);32!==n.length&&oM.throwArgumentError("bad digest length","digest",t);const r=e.sign(n,{canonical:!0});return Rp({recoveryParam:r.recoveryParam,r:Bp("0x"+r.r.toString(16),32),s:Bp("0x"+r.s.toString(16),32)})}computeSharedSecret(t){const e=sM().keyFromPrivate(Tp(this.privateKey)),n=sM().keyFromPublic(Tp(cM(t)));return Bp("0x"+e.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function cM(t,e){const n=Tp(t);if(32===n.length){const t=new uM(n);return e?"0x"+sM().keyFromPrivate(n).getPublic(!0,"hex"):t.publicKey}return 33===n.length?e?Cp(n):"0x"+sM().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+sM().keyFromPublic(n).getPublic(!0,"hex"):Cp(n):oM.throwArgumentError("invalid public or private key","key","[REDACTED]")}const lM=new Mp("transactions/5.7.0");var hM;function dM(t){return"0x"===t?null:am(t)}function fM(t){return"0x"===t?bm:Fp.from(t)}function pM(t,e){return function(t){return am(zp(Gy(zp(cM(t),1)),12))}(function(t,e){const n=Rp(e),r={r:Tp(n.r),s:Tp(n.s)};return"0x"+sM().recoverPubKey(Tp(t),r,n.recoveryParam).encode("hex",!1)}(Tp(t),e))}function yM(t,e){const n=Sp(Fp.from(t).toHexString());return n.length>32&&lM.throwArgumentError("invalid length for "+e,"transaction:"+e,t),n}function mM(t,e){return{address:am(t),storageKeys:(e||[]).map(((e,n)=>(32!==Op(e)&&lM.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,e),e.toLowerCase())))}}function gM(t){if(Array.isArray(t))return t.map(((t,e)=>Array.isArray(t)?(t.length>2&&lM.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),mM(t[0],t[1])):mM(t.address,t.storageKeys)));const e=Object.keys(t).map((e=>{const n=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return mM(e,Object.keys(n).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}function vM(t){return gM(t).map((t=>[t.address,t.storageKeys]))}function wM(t,e){if(null!=t.gasPrice){const e=Fp.from(t.gasPrice),n=Fp.from(t.maxFeePerGas||0);e.eq(n)||lM.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:n})}const n=[yM(t.chainId||0,"chainId"),yM(t.nonce||0,"nonce"),yM(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),yM(t.maxFeePerGas||0,"maxFeePerGas"),yM(t.gasLimit||0,"gasLimit"),null!=t.to?am(t.to):"0x",yM(t.value||0,"value"),t.data||"0x",vM(t.accessList||[])];if(e){const t=Rp(e);n.push(yM(t.recoveryParam,"recoveryParam")),n.push(Sp(t.r)),n.push(Sp(t.s))}return Pp(["0x02",Ky(n)])}function bM(t,e){const n=[yM(t.chainId||0,"chainId"),yM(t.nonce||0,"nonce"),yM(t.gasPrice||0,"gasPrice"),yM(t.gasLimit||0,"gasLimit"),null!=t.to?am(t.to):"0x",yM(t.value||0,"value"),t.data||"0x",vM(t.accessList||[])];if(e){const t=Rp(e);n.push(yM(t.recoveryParam,"recoveryParam")),n.push(Sp(t.r)),n.push(Sp(t.s))}return Pp(["0x01",Ky(n)])}function MM(t,e,n){try{const n=fM(e[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");t.v=n}catch(t){lM.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Bp(e[1],32),t.s=Bp(e[2],32);try{const e=Gy(n(t));t.from=pM(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function AM(t){const e=Tp(t);if(e[0]>127)return function(t){const e=em(t);9!==e.length&&6!==e.length&&lM.throwArgumentError("invalid raw transaction","rawTransaction",t);const n={nonce:fM(e[0]).toNumber(),gasPrice:fM(e[1]),gasLimit:fM(e[2]),to:dM(e[3]),value:fM(e[4]),data:e[5],chainId:0};if(6===e.length)return n;try{n.v=Fp.from(e[6]).toNumber()}catch(t){return n}if(n.r=Bp(e[7],32),n.s=Bp(e[8],32),Fp.from(n.r).isZero()&&Fp.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=e.slice(0,6);0!==n.chainId&&(i.push(Cp(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const o=Gy(Ky(i));try{n.from=pM(o,{r:Cp(n.r),s:Cp(n.s),recoveryParam:r})}catch(t){}n.hash=Gy(t)}return n.type=null,n}(e);switch(e[0]){case 1:return function(t){const e=em(t.slice(1));8!==e.length&&11!==e.length&&lM.throwArgumentError("invalid component count for transaction type: 1","payload",Cp(t));const n={type:1,chainId:fM(e[0]).toNumber(),nonce:fM(e[1]).toNumber(),gasPrice:fM(e[2]),gasLimit:fM(e[3]),to:dM(e[4]),value:fM(e[5]),data:e[6],accessList:gM(e[7])};return 8===e.length||(n.hash=Gy(t),MM(n,e.slice(8),bM)),n}(e);case 2:return function(t){const e=em(t.slice(1));9!==e.length&&12!==e.length&&lM.throwArgumentError("invalid component count for transaction type: 2","payload",Cp(t));const n=fM(e[2]),r=fM(e[3]),i={type:2,chainId:fM(e[0]).toNumber(),nonce:fM(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:fM(e[4]),to:dM(e[5]),value:fM(e[6]),data:e[7],accessList:gM(e[8])};return 9===e.length||(i.hash=Gy(t),MM(i,e.slice(9),wM)),i}(e)}return lM.throwError(`unsupported transaction type: ${e[0]}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(hM||(hM={}));var IM=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const NM=new Mp("contracts/5.7.0");function EM(t,e){return IM(this,void 0,void 0,(function*(){const n=yield e;"string"!=typeof n&&NM.throwArgumentError("invalid address or ENS name","name",n);try{return am(n)}catch(t){}t||NM.throwError("a provider or signer is needed to resolve ENS names",Mp.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield t.resolveName(n);return null==r&&NM.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function xM(t,e,n){return IM(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map(((n,r)=>xM(t,Array.isArray(e)?e[r]:e[n.name],n)))):"address"===n.type?yield EM(t,e):"tuple"===n.type?yield xM(t,e,n.components):"array"===n.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>xM(t,e,n.arrayChildren)))):Promise.reject(NM.makeError("invalid value for array",Mp.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function kM(t,e,n){return IM(this,void 0,void 0,(function*(){let r={};n.length===e.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=fy(n.pop())),NM.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),t.signer?r.from?r.from=dy({override:EM(t.signer,r.from),signer:t.signer.getAddress()}).then((t=>IM(this,void 0,void 0,(function*(){return am(t.signer)!==t.override&&NM.throwError("Contract with a Signer cannot override from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):r.from=t.signer.getAddress():r.from&&(r.from=EM(t.provider,r.from));const i=yield dy({args:xM(t.signer||t.provider,n,e.inputs),address:t.resolvedAddress,overrides:dy(r)||{}}),o=t.interface.encodeFunctionData(e,i.args),a={data:o,to:i.address},s=i.overrides;if(null!=s.nonce&&(a.nonce=Fp.from(s.nonce).toNumber()),null!=s.gasLimit&&(a.gasLimit=Fp.from(s.gasLimit)),null!=s.gasPrice&&(a.gasPrice=Fp.from(s.gasPrice)),null!=s.maxFeePerGas&&(a.maxFeePerGas=Fp.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=Fp.from(s.maxPriorityFeePerGas)),null!=s.from&&(a.from=s.from),null!=s.type&&(a.type=s.type),null!=s.accessList&&(a.accessList=gM(s.accessList)),null==a.gasLimit&&null!=e.gas){let t=21e3;const n=Tp(o);for(let e=0;enull!=r[t]));return u.length&&NM.throwError(`cannot override ${u.map((t=>JSON.stringify(t))).join(",")}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),a}))}function TM(t,e,n){const r=t.signer||t.provider;return function(...i){return IM(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){const t=fy(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const a=yield kM(t,e,i),s=yield r.call(a,o);try{let r=t.interface.decodeFunctionResult(e,s);return n&&1===e.outputs.length&&(r=r[0]),r}catch(e){throw e.code===Mp.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=a),e}}))}}function LM(t,e){return function(...n){return IM(this,void 0,void 0,(function*(){t.signer||NM.throwError("sending a transaction requires a signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const r=yield kM(t,e,n),i=yield t.signer.sendTransaction(r);return function(t,e){const n=e.wait.bind(e);e.wait=e=>n(e).then((e=>(e.events=e.logs.map((n=>{let r=gy(n),i=null;try{i=t.interface.parseLog(n)}catch(t){}return i&&(r.args=i.args,r.decode=(e,n)=>t.interface.decodeEventLog(i.eventFragment,e,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>t.provider,r.getBlock=()=>t.provider.getBlock(e.blockHash),r.getTransaction=()=>t.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(e),r})),e)))}(t,i),i}))}}function SM(t,e,n){return e.constant?TM(t,e,n):LM(t,e)}function jM(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class DM{constructor(t,e){ly(this,"tag",t),ly(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((n=>!(!e&&n.listener===t)||(e=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const n=t.slice();return setTimeout((()=>{e.listener.apply(this,n)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class CM extends DM{constructor(){super("error",null)}}class OM extends DM{constructor(t,e,n,r){const i={address:t};let o=e.getEventTopic(n);r?(o!==r[0]&&NM.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(jM(i),i),ly(this,"address",t),ly(this,"interface",e),ly(this,"fragment",n)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=function(t){const e=[],n=function(t,r){if(Array.isArray(r))for(let i in r){const o=t.slice();o.push(i);try{n(o,r[i])}catch(t){e.push({path:o,error:t})}}};return n([],t),e}(t.args);if(e.length)throw e[0].error;const n=(t.args||[]).slice();return n.push(t),n}}class zM extends DM{constructor(t,e){super("*",{address:t}),ly(this,"address",t),ly(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,n)=>this.interface.decodeEventLog(e.eventFragment,t,n),t.args=e.args}catch(t){}}}class PM extends class{constructor(t,e,n){ly(this,"interface",hy(new.target,"getInterface")(e)),null==n?(ly(this,"provider",null),ly(this,"signer",null)):Wg.isSigner(n)?(ly(this,"provider",n.provider||null),ly(this,"signer",n)):Bg.isProvider(n)?(ly(this,"provider",n),ly(this,"signer",null)):NM.throwArgumentError("invalid signer or provider","signerOrProvider",n),ly(this,"callStatic",{}),ly(this,"estimateGas",{}),ly(this,"functions",{}),ly(this,"populateTransaction",{}),ly(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach((e=>{const n=this.interface.events[e];ly(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,t)}))),t[n.name]||(t[n.name]=[]),t[n.name].push(e)})),Object.keys(t).forEach((e=>{const n=t[e];1===n.length?ly(this.filters,e,this.filters[n[0]]):NM.warn(`Duplicate definition of ${e} (${n.join(", ")})`)}))}if(ly(this,"_runningEvents",{}),ly(this,"_wrappedEmits",{}),null==t&&NM.throwArgumentError("invalid contract address or ENS name","addressOrName",t),ly(this,"address",t),this.provider)ly(this,"resolvedAddress",EM(this.provider,t));else try{ly(this,"resolvedAddress",Promise.resolve(am(t)))}catch(t){NM.throwError("provider is required to use ENS name as contract address",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const r={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])NM.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{i[t]=!0;{const n=e.name;r[`%${n}`]||(r[`%${n}`]=[]),r[`%${n}`].push(t)}null==this[t]&&ly(this,t,SM(this,e,!0)),null==this.functions[t]&&ly(this.functions,t,SM(this,e,!1)),null==this.callStatic[t]&&ly(this.callStatic,t,TM(this,e,!0)),null==this.populateTransaction[t]&&ly(this.populateTransaction,t,function(t,e){return function(...n){return kM(t,e,n)}}(this,e)),null==this.estimateGas[t]&&ly(this.estimateGas,t,function(t,e){const n=t.signer||t.provider;return function(...r){return IM(this,void 0,void 0,(function*(){n||NM.throwError("estimate require a provider or signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield kM(t,e,r);return yield n.estimateGas(i)}))}}(this,e))}})),Object.keys(r).forEach((t=>{const e=r[t];if(e.length>1)return;t=t.substring(1);const n=e[0];try{null==this[t]&&ly(this,t,this[n])}catch(t){}null==this.functions[t]&&ly(this.functions,t,this.functions[n]),null==this.callStatic[t]&&ly(this.callStatic,t,this.callStatic[n]),null==this.populateTransaction[t]&&ly(this.populateTransaction,t,this.populateTransaction[n]),null==this.estimateGas[t]&&ly(this.estimateGas,t,this.estimateGas[n])}))}static getContractAddress(t){return sm(t)}static getInterface(t){return Og.isInterface(t)?t:new Og(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&NM.throwError("contract not deployed",Mp.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||NM.throwError("sending a transactions require a signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=fy(t||{});return["from","to"].forEach((function(t){null!=e[t]&&NM.throwError("cannot override "+t,Mp.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"==typeof t&&(t=new Fg(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&ly(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return jg.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new CM);if("event"===t)return this._normalizeRunningEvent(new DM("event",null));if("*"===t)return this._normalizeRunningEvent(new zM(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new OM(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new OM(this.address,this.interface,n,t.topics))}catch(t){}const e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new DM(jM(e),e))}return this._normalizeRunningEvent(new zM(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,n){const r=gy(e);return r.removeListener=()=>{n&&(t.removeListener(n),this._checkRunningEvents(t))},r.getBlock=()=>this.provider.getBlock(e.blockHash),r.getTransaction=()=>this.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(r),r}_addEventListener(t,e,n){if(this.provider||NM.throwError("events require a provider or a signer with a provider",Mp.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,n),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const n=n=>{let r=this._wrapEvent(t,n,e);if(null==r.decodeError)try{const e=t.getEmit(r);this.emit(t.filter,...e)}catch(t){r.decodeError=t.error}null!=t.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[t.tag]=n,null!=t.filter&&this.provider.on(t.filter,n)}}queryFilter(t,e,n){const r=this._getRunningEvent(t),i=fy(r.filter);return"string"==typeof e&&Dp(e,32)?(null!=n&&NM.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(r,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const n=this._getRunningEvent(t),r=n.run(e)>0;return this._checkRunningEvents(n),r}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const n=this._getRunningEvent(t);return n.removeListener(e),this._checkRunningEvents(n),this}removeListener(t,e){return this.off(t,e)}}{}class _M{constructor(t){ly(this,"alphabet",t),ly(this,"base",t.length),ly(this,"_alphabetMap",{}),ly(this,"_leader",t.charAt(0));for(let e=0;e0;)n.push(r%this.base),r=r/this.base|0}let r="";for(let t=0;0===e[t]&&t=0;--t)r+=this.alphabet[n[t]];return r}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let n=0;n>=8;for(;i>0;)e.push(255&i),i>>=8}for(let n=0;t[n]===this._leader&&n{o[e.toLowerCase()]=t})):r.headers.keys().forEach((t=>{o[t.toLowerCase()]=r.headers.get(t)})),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:Tp(new Uint8Array(i))}}))}var ZM=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const JM=new Mp("web/5.7.1");function XM(t){return new Promise((e=>{setTimeout(e,t)}))}function KM(t,e){if(null==t)return null;if("string"==typeof t)return t;if(Ep(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return jm(t)}catch(t){}return Cp(t)}return t}function $M(t,e,n){let r=null;if(null!=e){r=Sm(e);const n="string"==typeof t?{url:t}:fy(t);if(n.headers){0!==Object.keys(n.headers).filter((t=>"content-type"===t.toLowerCase())).length||(n.headers=fy(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};t=n}return function(t,e,n){const r="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;JM.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;JM.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"==typeof t&&!!t.errorPassThrough,s={};let u=null;const c={method:"GET"};let l=!1,h=12e4;if("string"==typeof t)u=t;else if("object"==typeof t){if(null!=t&&null!=t.url||JM.throwArgumentError("missing URL","connection.url",t),u=t.url,"number"==typeof t.timeout&&t.timeout>0&&(h=t.timeout),t.headers)for(const e in t.headers)s[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(l=!0);if(c.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==u.substring(0,6)&&!0!==t.allowInsecureAuthentication&&JM.throwError("basic authentication requires a secure https url",Mp.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;s.authorization={key:"Authorization",value:"Basic "+Um(Sm(e))}}null!=t.skipFetchSetup&&(c.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(c.fetchOptions=fy(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=u?u.match(d):null;if(f)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?Rm(f[3]):(p=f[3],Sm(p.replace(/%([0-9a-f][0-9a-f])/gi,((t,e)=>String.fromCharCode(parseInt(e,16))))))};let e=t.body;return n&&(e=n(t.body,t)),Promise.resolve(e)}catch(t){JM.throwError("processing response error",Mp.errors.SERVER_ERROR,{body:KM(f[1],f[2]),error:t,requestBody:null,requestMethod:"GET",url:u})}var p;e&&(c.method="POST",c.body=e,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(e.length)}));const y={};Object.keys(s).forEach((t=>{const e=s[t];y[e.key]=e.value})),c.headers=y;const m=function(){let t=null;return{promise:new Promise((function(e,n){h&&(t=setTimeout((()=>{null!=t&&(t=null,n(JM.makeError("timeout",Mp.errors.TIMEOUT,{requestBody:KM(c.body,y["content-type"]),requestMethod:c.method,timeout:h,url:u})))}),h))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),g=function(){return ZM(this,void 0,void 0,(function*(){for(let t=0;t=300)&&(m.cancel(),JM.throwError("bad response",Mp.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:KM(s,e.headers?e.headers["content-type"]:null),requestBody:KM(c.body,y["content-type"]),requestMethod:c.method,url:u})),n)try{const t=yield n(s,e);return m.cancel(),t}catch(n){if(n.throttleRetry&&t{let r=null;if(null!=t)try{r=JSON.parse(jm(t))}catch(e){JM.throwError("invalid JSON",Mp.errors.SERVER_ERROR,{body:t,error:e})}return n&&(r=n(r,e)),r}))}function tA(t,e){return e||(e={}),null==(e=fy(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout((()=>{a()&&r(new Error("timeout"))}),e.timeout));const s=e.retryLimit;let u=0;!function i(){return t().then((function(t){if(void 0!==t)a()&&n(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!o){if(u++,u>s)return void(a()&&r(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));te.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null}),(function(t){a()&&r(t)}))}()}))}for(var eA="qpzry9x8gf2tvdw0s3jn54khce6mua7l",nA={},rA=0;rA>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function aA(t){for(var e=1,n=0;n126)return"Invalid prefix ("+t+")";e=oA(e)^r>>5}for(e=oA(e),n=0;ne)return"Exceeds length limit";var n=t.toLowerCase(),r=t.toUpperCase();if(t!==n&&t!==r)return"Mixed-case string "+t;var i=(t=n).lastIndexOf("1");if(-1===i)return"No separator character for "+t;if(0===i)return"Missing prefix for "+t;var o=t.slice(0,i),a=t.slice(i+1);if(a.length<6)return"Data too short";var s=aA(o);if("string"==typeof s)return s;for(var u=[],c=0;c=a.length||u.push(h)}return 1!==s?"Invalid checksum for "+t:{prefix:o,words:u}}function uA(t,e,n,r){for(var i=0,o=0,a=(1<=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<=e)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var r=aA(t=t.toLowerCase());if("string"==typeof r)throw new Error(r);for(var i=t+"1",o=0;o>5!=0)throw new Error("Non 5-bit word");r=oA(r)^a,i+=eA.charAt(a)}for(o=0;o<6;++o)r=oA(r);for(r^=1,o=0;o<6;++o){i+=eA.charAt(r>>5*(5-o)&31)}return i},toWordsUnsafe:function(t){var e=uA(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=uA(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=uA(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=uA(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}};const lA="providers/5.7.2",hA=new Mp(lA);class dA{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),u=this.type.bind(this);return t.transaction={hash:o,type:u,accessList:dA.allowNull(this.accessList.bind(this),null),blockHash:dA.allowNull(o,null),blockNumber:dA.allowNull(s,null),transactionIndex:dA.allowNull(s,null),confirmations:dA.allowNull(s,null),from:e,gasPrice:dA.allowNull(n),maxPriorityFeePerGas:dA.allowNull(n),maxFeePerGas:dA.allowNull(n),gasLimit:n,to:dA.allowNull(e,null),value:n,nonce:s,data:i,r:dA.allowNull(this.uint256),s:dA.allowNull(this.uint256),v:dA.allowNull(s),creates:dA.allowNull(e,null),raw:dA.allowNull(i)},t.transactionRequest={from:dA.allowNull(e),nonce:dA.allowNull(s),gasLimit:dA.allowNull(n),gasPrice:dA.allowNull(n),maxPriorityFeePerGas:dA.allowNull(n),maxFeePerGas:dA.allowNull(n),to:dA.allowNull(e),value:dA.allowNull(n),data:dA.allowNull((t=>this.data(t,!0))),type:dA.allowNull(s),accessList:dA.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:e,topics:dA.arrayOf(o),data:i,logIndex:s,blockHash:o},t.receipt={to:dA.allowNull(this.address,null),from:dA.allowNull(this.address,null),contractAddress:dA.allowNull(e,null),transactionIndex:s,root:dA.allowNull(a),gasUsed:n,logsBloom:dA.allowNull(i),blockHash:o,transactionHash:o,logs:dA.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:dA.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:dA.allowNull(n),status:dA.allowNull(s),type:u},t.block={hash:dA.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:dA.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:dA.allowNull(e),extraData:i,transactions:dA.allowNull(dA.arrayOf(o)),baseFeePerGas:dA.allowNull(n)},t.blockWithTransactions=fy(t.block),t.blockWithTransactions.transactions=dA.allowNull(dA.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:dA.allowNull(r,void 0),toBlock:dA.allowNull(r,void 0),blockHash:dA.allowNull(o,void 0),address:dA.allowNull(e,void 0),topics:dA.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:dA.allowNull(s),blockHash:dA.allowNull(o),transactionIndex:s,removed:dA.allowNull(this.boolean.bind(this)),address:e,data:dA.allowFalsish(i,"0x"),topics:dA.arrayOf(o),transactionHash:o,logIndex:s},t}accessList(t){return gM(t||[])}number(t){return"0x"===t?0:Fp.from(t).toNumber()}type(t){return"0x"===t||null==t?0:Fp.from(t).toNumber()}bigNumber(t){return Fp.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),Dp(t))?t.toLowerCase():hA.throwArgumentError("invalid hash","value",t)}data(t,e){const n=this.hex(t,e);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+t);return n}address(t){return am(t)}callAddress(t){if(!Dp(t,32))return null;const e=am(zp(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return sm(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if("number"==typeof t||Dp(t))return _p(t);throw new Error("invalid blockTag")}hash(t,e){const n=this.hex(t,e);return 32!==Op(n)?hA.throwArgumentError("invalid hash","value",t):n}difficulty(t){if(null==t)return null;const e=Fp.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!Dp(t))throw new Error("invalid uint256");return Bp(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const n=null!=t._difficulty?t._difficulty:t.difficulty,r=dA.check(e,t);return r._difficulty=null==n?null:Fp.from(n),r}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return dA.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&Fp.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=dA.check(this.formats.transaction,t);if(null!=t.chainId){let n=t.chainId;Dp(n)&&(n=Fp.from(n).toNumber()),e.chainId=n}else{let n=t.networkId;null==n&&null==e.v&&(n=t.chainId),Dp(n)&&(n=Fp.from(n).toNumber()),"number"!=typeof n&&null!=e.v&&(n=(e.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),e.chainId=n}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return AM(t)}receiptLog(t){return dA.check(this.formats.receiptLog,t)}receipt(t){const e=dA.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=Fp.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&hA.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):hA.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&hA.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return dA.check(this.formats.filter,t)}filterLog(t){return dA.check(this.formats.filterLog,t)}static check(t,e){const n={};for(const r in t)try{const i=t[r](e[r]);void 0!==i&&(n[r]=i)}catch(t){throw t.checkKey=r,t.checkValue=e[r],t}return n}static allowNull(t,e){return function(n){return null==n?e:t(n)}}static allowFalsish(t,e){return function(n){return n?t(n):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const n=[];return e.forEach((function(e){n.push(t(e))})),n}}}var fA=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const pA=new Mp(lA);function yA(t){return null==t?"null":(32!==Op(t)&&pA.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function mA(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[yA(t)]=!0}));const n=Object.keys(e);return n.sort(),n.join("|")}return yA(t)})).join("&")}function gA(t){if("string"==typeof t){if(32===Op(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+mA(t);if(_g.isForkEvent(t))throw pA.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+mA(t.topics||[])}throw new Error("invalid event - "+t)}function vA(){return(new Date).getTime()}function wA(t){return new Promise((e=>{setTimeout(e,t)}))}const bA=["block","network","pending","poll"];class MA{constructor(t,e,n){ly(this,"tag",t),ly(this,"listener",e),ly(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],n=""===(r=t[2])?[]:r.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var r;const i={};return n.length>0&&(i.topics=n),e&&"*"!==e&&(i.address=e),i}pollable(){return this.tag.indexOf(":")>=0||bA.indexOf(this.tag)>=0}}const AA={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function IA(t){return Bp(Fp.from(t).toHexString(),32)}function NA(t){return BM.encode(Lp([t,zp(RM(RM(t)),0,4)]))}const EA=new RegExp("^(ipfs)://(.*)$","i"),xA=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),EA,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function kA(t,e){try{return jm(TA(t,e))}catch(t){}return null}function TA(t,e){if("0x"===t)return null;const n=Fp.from(zp(t,e,e+32)).toNumber(),r=Fp.from(zp(t,n,n+32)).toNumber();return zp(t,n+32,n+32+r)}function LA(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):pA.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function SA(t){const e=Tp(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function jA(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}function DA(t){const e=[];let n=0;for(let r=0;rFp.from(t).eq(1))).catch((t=>{if(t.code===Mp.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t}))),this._supportsEip2544}_fetch(t,e){return fA(this,void 0,void 0,(function*(){const n={to:this.address,ccipReadEnabled:!0,data:Pp([t,lg(this.name),e||"0x"])};let r=!1;var i;(yield this.supportsWildcard())&&(r=!0,n.data=Pp(["0x9061b923",DA([(i=this.name,Cp(Lp(cg(i).map((t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e}))))+"00"),n.data])]));try{let t=yield this.provider.call(n);return Tp(t).length%32==4&&pA.throwError("resolver threw error",Mp.errors.CALL_EXCEPTION,{transaction:n,data:t}),r&&(t=TA(t,0)),t}catch(t){if(t.code===Mp.errors.CALL_EXCEPTION)return null;throw t}}))}_fetchBytes(t,e){return fA(this,void 0,void 0,(function*(){const n=yield this._fetch(t,e);return null!=n?TA(n,0):null}))}_getAddress(t,e){const n=AA[String(t)];if(null==n&&pA.throwError(`unsupported coin type: ${t}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===n.ilk)return this.provider.formatter.address(e);const r=Tp(e);if(null!=n.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return NA(Lp([[n.p2pkh],"0x"+t[2]]))}}if(null!=n.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return NA(Lp([[n.p2sh],"0x"+t[2]]))}}if(null!=n.prefix){const t=r[1];let e=r[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&r.length===2+t&&t>=1&&t<=75){const t=cA.toWords(r.slice(2));return t.unshift(e),cA.encode(n.prefix,t)}}return null}getAddress(t){return fA(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t=yield this._fetch("0x3b3b57de");return"0x"===t||"0x0000000000000000000000000000000000000000000000000000000000000000"===t?null:this.provider.formatter.callAddress(t)}catch(t){if(t.code===Mp.errors.CALL_EXCEPTION)return null;throw t}const e=yield this._fetchBytes("0xf1cb7e06",IA(t));if(null==e||"0x"===e)return null;const n=this._getAddress(t,e);return null==n&&pA.throwError("invalid or unsupported coin data",Mp.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),n}))}getAvatar(){return fA(this,void 0,void 0,(function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let n=0;nt[e]))}return pA.throwError("invalid or unsupported content hash data",Mp.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})}))}getText(t){return fA(this,void 0,void 0,(function*(){let e=Sm(t);e=Lp([IA(64),IA(e.length),e]),e.length%32!=0&&(e=Lp([e,Bp("0x",32-t.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Cp(e));return null==n||"0x"===n?null:jm(n)}))}}let OA=null,zA=1;class PA extends Bg{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ly(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch((t=>{})),this._ready().catch((t=>{}));else{const e=hy(new.target,"getNetwork")(t);e?(ly(this,"_network",e),this.emit("network",e,null)):pA.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return fA(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||pA.throwError("no network detected",Mp.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:ly(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return tA((()=>this._ready().then((t=>t),(t=>{if(t.code!==Mp.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==OA&&(OA=new dA),OA}static getNetwork(t){return function(t){if(null==t)return null;if("number"==typeof t){for(const e in HM){const n=HM[e];if(n.chainId===t)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"==typeof t){const e=HM[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}const e=HM[t.name];if(!e)return"number"!=typeof t.chainId&&UM.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&UM.throwArgumentError("network chainId mismatch","network",t);let n=t._defaultProvider||null;var r;return null==n&&e._defaultProvider&&(n=(r=e._defaultProvider)&&"function"==typeof r.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:n}}(null==t?"homestead":t)}ccipReadFetch(t,e,n){return fA(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===n.length)return null;const r=t.to.toLowerCase(),i=e.toLowerCase(),o=[];for(let t=0;t=0?null:JSON.stringify({data:i,sender:r}),u=yield $M({url:a,errorPassThrough:!0},s,((t,e)=>(t.status=e.statusCode,t)));if(u.data)return u.data;const c=u.message||"unknown error";if(u.status>=400&&u.status<500)return pA.throwError(`response not found during CCIP fetch: ${c}`,Mp.errors.SERVER_ERROR,{url:e,errorMessage:c});o.push(c)}return pA.throwError(`error encountered during CCIP fetch: ${o.map((t=>JSON.stringify(t))).join(", ")}`,Mp.errors.SERVER_ERROR,{urls:n,errorMessages:o})}))}_getInternalBlockNumber(t){return fA(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const n=yield e;if(vA()-n.respTime<=t)return n.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}const e=vA(),n=dy({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const i=vA();return(t=Fp.from(t).toNumber()){this._internalBlockNumber===n&&(this._internalBlockNumber=null)})),(yield n).blockNumber}))}poll(){return fA(this,void 0,void 0,(function*(){const t=zA++,e=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){return void this.emit("error",t)}if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)pA.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",pA.makeError("network block skew detected",Mp.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let t=this._emitted.block+1;t<=n;t++)this.emit("block",t);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&n-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((t=>{switch(t.type){case"tx":{const n=t.hash;let r=this.getTransactionReceipt(n).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+n]=t.blockNumber,this.emit(n,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(r);break}case"filter":if(!t._inflight){t._inflight=!0,-2===t._lastBlockNumber&&(t._lastBlockNumber=n-1);const r=t.filter;r.fromBlock=t._lastBlockNumber+1,r.toBlock=n;const i=r.toBlock-this._maxFilterBlockRange;i>r.fromBlock&&(r.fromBlock=i),r.fromBlock<0&&(r.fromBlock=0);const o=this.getLogs(r).then((e=>{t._inflight=!1,0!==e.length&&e.forEach((e=>{e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(r,e)}))})).catch((e=>{this.emit("error",e),t._inflight=!1}));e.push(o)}}})),this._lastBlockNumber=n,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return fA(this,void 0,void 0,(function*(){return pA.throwError("provider does not support network detection",Mp.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return fA(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield wA(0),this._network;const n=pA.makeError("underlying network changed",Mp.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",n),n}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=vA();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,n){return fA(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,n||0,null)}))}_waitForTransaction(t,e,n,r){return fA(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise(((i,o)=>{const a=[];let s=!1;const u=function(){return!!s||(s=!0,a.forEach((t=>{t()})),!1)},c=t=>{t.confirmations{this.removeListener(t,c)})),r){let n=r.startBlock,i=null;const c=a=>fA(this,void 0,void 0,(function*(){s||(yield wA(1e3),this.getTransactionCount(r.from).then((l=>fA(this,void 0,void 0,(function*(){if(!s){if(l<=r.nonce)n=a;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==i&&(i=n-3,i{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"==typeof n&&n>0){const t=setTimeout((()=>{u()||o(pA.makeError("timeout exceeded",Mp.errors.TIMEOUT,{timeout:n}))}),n);t.unref&&t.unref(),a.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return fA(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return Fp.from(t)}catch(e){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getBalance",n);try{return Fp.from(r)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:t})}}))}getTransactionCount(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getTransactionCount",n);try{return Fp.from(r).toNumber()}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:t})}}))}getCode(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getCode",n);try{return Cp(r)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:t})}}))}getStorageAt(t,e,n){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(n),position:Promise.resolve(e).then((t=>_p(t)))}),i=yield this.perform("getStorageAt",r);try{return Cp(i)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:t})}}))}_wrapTransaction(t,e,n){if(null!=e&&32!==Op(e))throw new Error("invalid response - sendTransaction");const r=t;return null!=e&&t.hash!==e&&pA.throwError("Transaction hash mismatch from Provider.sendTransaction.",Mp.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),r.wait=(e,r)=>fA(this,void 0,void 0,(function*(){let i;null==e&&(e=1),null==r&&(r=0),0!==e&&null!=n&&(i={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:n});const o=yield this._waitForTransaction(t.hash,e,r,i);return null==o&&0===e?null:(this._emitted["t:"+t.hash]=o.blockNumber,0===o.status&&pA.throwError("transaction failed",Mp.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:o}),o)})),r}sendTransaction(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>Cp(t))),n=this.formatter.transaction(t);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(n,t,r)}catch(t){throw t.transaction=n,t.transactionHash=n.hash,t}}))}_getTransactionRequest(t){return fA(this,void 0,void 0,(function*(){const e=yield t,n={};return["from","to"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?Fp.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(n.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?Cp(t):null)))})),this.formatter.transactionRequest(yield dy(n))}))}_getFilter(t){return fA(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((n=>{null!=t[n]&&(e[n]=t[n])})),["fromBlock","toBlock"].forEach((n=>{null!=t[n]&&(e[n]=this._getBlockTag(t[n]))})),this.formatter.filter(yield dy(e))}))}_call(t,e,n){return fA(this,void 0,void 0,(function*(){n>=10&&pA.throwError("CCIP read exceeded maximum redirections",Mp.errors.SERVER_ERROR,{redirects:n,transaction:t});const r=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(n>=0&&"latest"===e&&null!=r&&"0x556f1830"===i.substring(0,10)&&Op(i)%32==4)try{const o=zp(i,4),a=zp(o,0,32);Fp.from(a).eq(r)||pA.throwError("CCIP Read sender did not match",Mp.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const s=[],u=Fp.from(zp(o,32,64)).toNumber(),c=Fp.from(zp(o,u,u+32)).toNumber(),l=zp(o,u+32);for(let e=0;efA(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",r);if(null==t)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(e){let e=null;for(let n=0;nthis._wrapTransaction(t))),n}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return tA((()=>fA(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t}return this._wrapTransaction(r)}))),{oncePoll:this})}))}getTransactionReceipt(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return tA((()=>fA(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t}return r}))),{oncePoll:this})}))}getLogs(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield dy({filter:this._getFilter(t)}),n=yield this.perform("getLogs",e);return n.forEach((t=>{null==t.removed&&(t.removed=!1)})),dA.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return fA(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return fA(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&pA.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return fA(this,void 0,void 0,(function*(){let e=t;for(;;){if(""===e||"."===e)return null;if("eth"!==t&&"eth"===e)return null;const n=yield this._getResolver(e,"getResolver");if(null!=n){const r=new CA(this,n,t);return e===t||(yield r.supportsWildcard())?r:null}e=e.split(".").slice(1).join(".")}}))}_getResolver(t,e){return fA(this,void 0,void 0,(function*(){null==e&&(e="ENS");const n=yield this.getNetwork();n.ensAddress||pA.throwError("network does not support ENS",Mp.errors.UNSUPPORTED_OPERATION,{operation:e,network:n.name});try{const e=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+lg(t).substring(2)});return this.formatter.callAddress(e)}catch(t){}return null}))}resolveName(t){return fA(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if(Dp(t))throw e}"string"!=typeof t&&pA.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return fA(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(e,"lookupAddress");if(null==n)return null;const r=kA(yield this.call({to:n,data:"0x691f3431"+lg(e).substring(2)}),0);return(yield this.resolveName(r))!=t?null:r}))}getAvatar(t){return fA(this,void 0,void 0,(function*(){let e=null;if(Dp(t)){const n=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"getAvatar");if(!r)return null;e=new CA(this,r,n);try{const t=yield e.getAvatar();if(t)return t.url}catch(t){if(t.code!==Mp.errors.CALL_EXCEPTION)throw t}try{const t=kA(yield this.call({to:r,data:"0x691f3431"+lg(n).substring(2)}),0);e=yield this.getResolver(t)}catch(t){if(t.code!==Mp.errors.CALL_EXCEPTION)throw t;return null}}else if(e=yield this.getResolver(t),!e)return null;const n=yield e.getAvatar();return null==n?null:n.url}))}perform(t,e){return pA.throwError(t+" not implemented",Mp.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,n){const r=new MA(gA(t),e,n);return this._events.push(r),this._startEvent(r),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let n=!1,r=[],i=gA(t);return this._events=this._events.filter((t=>t.tag!==i||(setTimeout((()=>{t.listener.apply(this,e)}),0),n=!0,!t.once||(r.push(t),!1)))),r.forEach((t=>{this._stopEvent(t)})),n}listenerCount(t){if(!t)return this._events.length;let e=gA(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=gA(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const n=[];let r=!1,i=gA(t);return this._events=this._events.filter((t=>t.tag!==i||t.listener!=e||(!!r||(r=!0,n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const n=gA(t);this._events=this._events.filter((t=>t.tag!==n||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var _A=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const BA=new Mp(lA),RA=["call","estimateGas"];function UA(t,e){if(null==t)return null;if("string"==typeof t.message&&t.message.match("reverted")){const n=Dp(t.data)?t.data:null;if(!e||n)return{message:t.message,data:n}}if("object"==typeof t){for(const n in t){const r=UA(t[n],e);if(r)return r}return null}if("string"==typeof t)try{return UA(JSON.parse(t),e)}catch(t){}return null}function QA(t,e,n){const r=n.transaction||n.signedTransaction;if("call"===t){const t=UA(e,!0);if(t)return t.data;BA.throwError("missing revert data in call exception; Transaction reverted without a reason string",Mp.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:e})}if("estimateGas"===t){let n=UA(e.body,!1);null==n&&(n=UA(e,!1)),n&&BA.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:t,transaction:r,error:e})}let i=e.message;throw e.code===Mp.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?i=e.error.message:"string"==typeof e.body?i=e.body:"string"==typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&BA.throwError("insufficient funds for intrinsic transaction cost",Mp.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),i.match(/nonce (is )?too low/i)&&BA.throwError("nonce has already been used",Mp.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&BA.throwError("replacement fee too low",Mp.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),i.match(/only replay-protected/i)&&BA.throwError("legacy pre-eip-155 transactions not supported",Mp.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:r}),RA.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&BA.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}function YA(t){return new Promise((function(e){setTimeout(e,t)}))}function WA(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function FA(t){return t?t.toLowerCase():t}const VA={};class HA extends Wg{constructor(t,e,n){if(super(),t!==VA)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ly(this,"provider",e),null==n&&(n=0),"string"==typeof n?(ly(this,"_address",this.provider.formatter.address(n)),ly(this,"_index",null)):"number"==typeof n?(ly(this,"_index",n),ly(this,"_address",null)):BA.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(t){return BA.throwError("cannot alter JSON-RPC Signer connection",Mp.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new GA(VA,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&BA.throwError("unknown account #"+this._index,Mp.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=fy(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const n=fy(t);n.from=e,t.gasLimit=this.provider.estimateGas(n)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>_A(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&BA.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),dy({tx:dy(t),sender:e}).then((({tx:e,sender:n})=>{null!=e.from?e.from.toLowerCase()!==n&&BA.throwArgumentError("from address mismatch","transaction",t):e.from=n;const r=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then((t=>t),(t=>("string"==typeof t.message&&t.message.match(/user denied/i)&&BA.throwError("user rejected transaction",Mp.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:e}),QA("sendTransaction",t,r))))}))}signTransaction(t){return BA.throwError("signing transactions is unsupported",Mp.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return _A(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(t);try{return yield tA((()=>_A(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(n);if(null!==t)return this.provider._wrapTransaction(t,n,e)}))),{oncePoll:this.provider})}catch(t){throw t.transactionHash=n,t}}))}signMessage(t){return _A(this,void 0,void 0,(function*(){const e="string"==typeof t?Sm(t):t,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Cp(e),n.toLowerCase()])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:t}),e}}))}_legacySignMessage(t){return _A(this,void 0,void 0,(function*(){const e="string"==typeof t?Sm(t):t,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),Cp(e)])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:t}),e}}))}_signTypedData(t,e,n){return _A(this,void 0,void 0,(function*(){const r=yield xg.resolveNames(t,e,n,(t=>this.provider.resolveName(t))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(xg.getPayload(r.domain,e,r.value))])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:e,value:r.value}}),t}}))}unlock(t){return _A(this,void 0,void 0,(function*(){const e=this.provider,n=yield this.getAddress();return e.send("personal_unlockAccount",[n.toLowerCase(),t,null])}))}}class GA extends HA{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const qA={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ZA extends PA{constructor(t,e){let n=e;null==n&&(n=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(n),t||(t=hy(this.constructor,"defaultUrl")()),ly(this,"connection","string"==typeof t?Object.freeze({url:t}):Object.freeze(fy(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return _A(this,void 0,void 0,(function*(){yield YA(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){const e=hy(this.constructor,"getNetwork");try{return e(Fp.from(t).toNumber())}catch(e){return BA.throwError("could not detect network",Mp.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return BA.throwError("could not detect network",Mp.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new HA(VA,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:gy(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(r&&this._cache[t])return this._cache[t];const i=$M(this.connection,JSON.stringify(n),WA).then((t=>(this.emit("debug",{action:"response",request:n,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:n,provider:this}),t}));return r&&(this._cache[t]=i,setTimeout((()=>{this._cache[t]=null}),0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[FA(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[FA(e.address),e.blockTag]];case"getCode":return["eth_getCode",[FA(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[FA(e.address),Bp(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[hy(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[hy(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=FA(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return _A(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&Fp.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((e=fy(e)).transaction=fy(t),delete e.transaction.type)}}const n=this.prepareRequest(t,e);null==n&&BA.throwError(t+" not implemented",Mp.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(n[0],n[1])}catch(n){return QA(t,n,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(n){return function r(){t.send("eth_getFilterChanges",[n]).then((function(n){if(t._pendingFilter!=e)return null;let r=Promise.resolve();return n.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",r=r.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),r.then((function(){return YA(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){r()}),0),null;t.send("eth_uninstallFilter",[n])})).catch((t=>{}))}(),n})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const n=fy(qA);if(e)for(const t in e)e[t]&&(n[t]=!0);var r,i;i=n,(r=t)&&"object"==typeof r||cy.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((t=>{i[t]||cy.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)}));const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const n=_p(Fp.from(t[e]));"gasLimit"===e&&(e="gas"),o[e]=n})),["from","to","data"].forEach((function(e){null!=t[e]&&(o[e]=Cp(t[e]))})),t.accessList&&(o.accessList=gM(t.accessList)),o}}const JA=new Mp(lA);let XA=1;function KA(t,e){const n="Web3LegacyFetcher";return function(t,r){const i={method:t,params:r,id:XA++,jsonrpc:"2.0"};return new Promise(((t,r)=>{this.emit("debug",{action:"request",fetcher:n,request:gy(i),provider:this}),e(i,((e,o)=>{if(e)return this.emit("debug",{action:"response",fetcher:n,error:e,request:i,provider:this}),r(e);if(this.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:this}),o.error){const t=new Error(o.error.message);return t.code=o.error.code,t.data=o.error.data,r(t)}t(o.result)}))}))}}class $A extends ZA{constructor(t,e){null==t&&JA.throwArgumentError("missing provider","provider",t);let n=null,r=null,i=null;"function"==typeof t?(n="unknown:",r=t):(n=t.host||t.path||"",!n&&t.isMetaMask&&(n="metamask"),i=t,t.request?(""===n&&(n="eip-1193:"),r=function(t){return function(e,n){null==n&&(n=[]);const r={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:gy(r),provider:this}),t.request(r).then((t=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:t,provider:this}),t}))}}(t)):t.sendAsync?r=KA(0,t.sendAsync.bind(t)):t.send?r=KA(0,t.send.bind(t)):JA.throwArgumentError("unsupported provider","provider",t),n||(n="unknown:")),super(n,e),ly(this,"jsonRpcFetchFunc",r),ly(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}const tI=new RegExp("^bytes([0-9]+)$"),eI=new RegExp("^(u?int)([0-9]*)$"),nI=new RegExp("^(.*)\\[([0-9]*)\\]$"),rI=new Mp("solidity/5.7.0");function iI(t,e,n){switch(t){case"address":return n?jp(e,32):Tp(e);case"string":return Sm(e);case"bytes":return Tp(e);case"bool":return e=e?"0x01":"0x00",n?jp(e,32):Tp(e)}let r=t.match(eI);if(r){let i=parseInt(r[2]||"256");return(r[2]&&String(i)!==r[2]||i%8!=0||0===i||i>256)&&rI.throwArgumentError("invalid number type","type",t),n&&(i=256),jp(e=Fp.from(e).toTwos(i),i/8)}if(r=t.match(tI),r){const i=parseInt(r[1]);return(String(i)!==r[1]||0===i||i>32)&&rI.throwArgumentError("invalid bytes type","type",t),Tp(e).byteLength!==i&&rI.throwArgumentError(`invalid value for ${t}`,"value",e),n?Tp((e+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):e}if(r=t.match(nI),r&&Array.isArray(e)){const n=r[1];parseInt(r[2]||String(e.length))!=e.length&&rI.throwArgumentError(`invalid array length for ${t}`,"value",e);const i=[];return e.forEach((function(t){i.push(iI(n,t,!0))})),Lp(i)}return rI.throwArgumentError("invalid type","type",t)}function oI(t,e){t.length!=e.length&&rI.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const n=[];return t.forEach((function(t,r){n.push(iI(t,e[r]))})),Cp(Lp(n))}const aI=new Mp("units/5.7.0"),sI=["wei","kwei","mwei","gwei","szabo","finney","ether"];function uI(t,e){if("string"==typeof e){const t=sI.indexOf(e);-1!==t&&(e=3*t)}return ny(t,null!=e?e:18)}function cI(t,e){if("string"!=typeof t&&aI.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=sI.indexOf(e);-1!==t&&(e=3*t)}return ry(t,null!=e?e:18)}let lI,hI=()=>lI||(lI="object"==typeof r?r:window,lI);const dI=()=>(void 0===hI()._Web3ClientConfiguration&&(hI()._Web3ClientConfiguration={}),hI()._Web3ClientConfiguration);function fI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class pI extends ZA{constructor(t,e,n,r){super(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(Hf.findByName(this._network).id)}requestChunk(t,e,n){try{const r=t.map((t=>t.request));return $M(e,JSON.stringify(r)).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(fI([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else fI([r,"optionalAccess",t=>t.result])?t.resolve(r.result):t.reject()}))})).catch((e=>{if(n<3&&e&&"SERVER_ERROR"==e.code){const e=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=e>=this._endpoints.length?this._endpoints[0]:this._endpoints[e],this.requestChunk(t,this._endpoint,n+1)}else t.forEach((t=>{t.reject(e)}))}))}catch(e){t.forEach((t=>{t.reject()}))}}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,this._endpoint,1))))}),dI().batchInterval||10)),i}}const yI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),mI=(t,e)=>{void 0===yI()[t]&&(yI()[t]=[]);const n=yI()[t].indexOf(e);n>-1&&yI()[t].splice(n,1),yI()[t].unshift(e)},gI=async(t,e,n=!0)=>{let r;yI()[t]=e.map(((r,i)=>new pI(r,t,e,(()=>{1===yI()[t].length?gI(t,e,n):yI()[t].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=yI()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=yI()[t][o]}mI(t,r)};var vI={getProvider:async t=>{let e=yI();if(e&&e[t])return e[t][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await gI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},getProviders:async t=>{let e=yI();if(e&&e[t])return e[t];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await gI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]},setProviderEndpoints:gI,setProvider:mI};class wI extends ql{constructor(t,e,n,r){super(t),this._provider=new ql(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}handleError(t,e,n){if(e<3&&t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new ql(this._endpoint),this.requestChunk(n,e+1)}else n.forEach((e=>{e.reject(t)}))}batchRequest(t,e){return new Promise(((e,n)=>{0===t.length&&e([]);const r=t.map((t=>this._rpcClient.request(t.methodName,t.args)));fetch(this._endpoint,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then((t=>{t.ok?t.json().then((t=>{e(t)})).catch(n):n(`${t.status} ${t.text}`)})).catch(n)}))}requestChunk(t,e){const n=t.map((t=>t.request));try{return this.batchRequest(n,e).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else r?t.resolve(r):t.reject()}))})).catch((n=>this.handleError(n,e,t)))}catch(n){return this.handleError(n,e,t)}}_rpcRequestReplacement(t,e){const n={methodName:t,args:e};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,1))))}),dI().batchInterval||10)),i}}const bI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),MI=(t,e)=>{void 0===bI()[t]&&(bI()[t]=[]);const n=bI()[t].indexOf(e);n>-1&&bI()[t].splice(n,1),bI()[t].unshift(e)},AI=async(t,e,n=!0)=>{let r;bI()[t]=e.map(((r,i)=>new wI(r,t,e,(()=>{1===bI()[t].length?AI(t,e,n):bI()[t].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=bI()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=bI()[t][o]}MI(t,r)};var II={getProvider:async t=>{let e=bI();if(e&&e[t])return e[t][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await AI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},getProviders:async t=>{let e=bI();if(e&&e[t])return e[t];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await AI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]},setProviderEndpoints:AI,setProvider:MI};let NI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];NI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],NI.solana=["solana"];let EI=()=>(null==hI()._Web3ClientCacheStore&&(hI()._Web3ClientCacheStore={}),hI()._Web3ClientCacheStore),xI=()=>(null==hI()._Web3ClientPromiseStore&&(hI()._Web3ClientPromiseStore={}),hI()._Web3ClientPromiseStore),kI=function({key:t}){xI()[t]=void 0},TI=function({call:t,key:e,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:t}){return xI()[t]}({key:e=JSON.stringify(e)});if(a)return a.then(r).catch(i);(function({key:t,promise:e}){return xI()[t]=e,e})({key:e,promise:new Promise(((a,s)=>0===n?t().then((t=>{r(t),a(t)})).catch((t=>{i(t),s(t)})):(o=function({key:t,expires:e}){let n=EI()[t];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.expiresAt])>Date.now())return n.value}({key:e,expires:n}),o?(r(o),a(o),o):void t().then((t=>{t&&function({key:t,value:e,expires:n}){EI()[t]={expiresAt:Date.now()+n,value:e}}({key:e,value:t,expires:n}),r(t),a(t)})).catch((t=>{i(t),s(t)})))))}).then((()=>{kI({key:e})})).catch((()=>{kI({key:e})}))}))};const LI=async t=>{if(NI.evm.includes(t))return await vI.getProvider(t);if(NI.solana.includes(t))return await II.getProvider(t);throw"Unknown blockchain: "+t},SI=t=>`(${t.map((t=>"tuple"===t.type?SI(t.components):t.type)).join(",")})`;var jI=({provider:t,from:e,to:n,value:r,method:i,api:o,params:a})=>{if(void 0===o)return t.estimateGas({from:e,to:n,value:r});{let s=new PM(n,o,t),u=s.interface.fragments.find((t=>t.name==i)),c=(({contract:t,method:e,params:n})=>{let r=t.interface.fragments.find((t=>t.name==e));return n instanceof Array?n:n instanceof Object?r.inputs.map((t=>n[t.name])):void 0})({contract:s,method:i,params:a});void 0===s[i]&&(i=`${i}(${u.inputs.map((t=>"tuple"===t.type?SI(t.components):t.type)).join(",")})`);let l=s.estimateGas[i];return c?l(...c,{from:e,value:r}):l({from:e,value:r})}};let DI=async function({blockchain:t,from:e,to:n,value:r,method:i,api:o,params:a,cache:s}){if(!NI.includes(t))throw"Unknown blockchain: "+t;void 0===r&&(r="0");const u=await LI(t);return await TI({expires:s||0,key:[t,e,n,r,i,a],call:async()=>jI({provider:u,from:e,to:n,value:r,method:i,api:o,params:a})})};const CI=({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=new PM(t,e,i),s=(({contract:t,method:e,params:n})=>t.interface.fragments.find((t=>t.name==e)).inputs.map(((t,e)=>Array.isArray(n)?n[e]:n[t.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((t=>t.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((t=>t.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},OI=({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a})=>n?CI({address:e,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:t,provider:e})=>e.getBalance(t))({address:e,provider:a}):"transactionCount"===r?(({address:t,provider:e})=>e.getTransactionCount(t))({address:e,provider:a}):void 0;const zI=async({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=of),await(async({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Xs(t));if(a&&a.data)return e.decode(a.data)})({address:e,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Xs(e),i).then((t=>n?t.map((t=>(t.data=n.decode(t.account.data),t))):t));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Xs(e));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:t,provider:e})=>e.getBalance(new Xs(t)))({address:e,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((t=>u.toString().match(t)))){let u=s[s.indexOf(a)+1]||s[0];return zI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const PI=async function(t,e){const{blockchain:n,address:r,method:i}=(t=>{if("object"==typeof t)return t;let e=t.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==e.groups.part2?e.groups.part1.match(/\d/)?{blockchain:e.groups.blockchain,address:e.groups.part1}:{blockchain:e.groups.blockchain,method:e.groups.part1}:{blockchain:e.groups.blockchain,address:e.groups.part1,method:e.groups.part2}})(t),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:h}=("object"==typeof t?t:e)||{};return await TI({expires:s||0,key:h||[n,r,i,a,u],call:async()=>{if(NI.evm.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||dI().strategy||"failover",a=a||dI().timeout||void 0,"fastest"===s){const s=await vI.getProviders(t);let u=[];const c=s.map((a=>new Promise((s=>{u.push(OI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await vI.getProvider(t),u=OI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(NI.solana.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||dI().strategy||"failover",a=a||dI().timeout||void 0;const u=await II.getProviders(t);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(zI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await II.getProvider(t),c=zI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})};var _I=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=128)}([function(t,e,n){(function(t,r,i){n.d(e,"a",(function(){return Xi})),n.d(e,"b",(function(){return da})),n.d(e,"c",(function(){return to})),n.d(e,"d",(function(){return Lo})),n.d(e,"e",(function(){return ot})),n.d(e,"f",(function(){return $})),n.d(e,"g",(function(){return Hi})),n.d(e,"h",(function(){return tt})),n.d(e,"i",(function(){return ao})),n.d(e,"j",(function(){return uo})),n.d(e,"k",(function(){return ro})),n.d(e,"l",(function(){return co})),n.d(e,"m",(function(){return so})),n.d(e,"n",(function(){return st})),n.d(e,"o",(function(){return rt})),n.d(e,"p",(function(){return Qi})),n.d(e,"q",(function(){return Z})),n.d(e,"r",(function(){return nt})),n.d(e,"s",(function(){return ko})),n.d(e,"t",(function(){return eo})),n.d(e,"u",(function(){return no})),n.d(e,"v",(function(){return G})),n.d(e,"w",(function(){return H})),n.d(e,"x",(function(){return Zi})),n.d(e,"y",(function(){return lt})),n.d(e,"z",(function(){return Ri})),n.d(e,"A",(function(){return Do})),n.d(e,"B",(function(){return qi})),n.d(e,"C",(function(){return Bi})),n.d(e,"D",(function(){return Ji})),n.d(e,"E",(function(){return yo})),n.d(e,"F",(function(){return po})),n.d(e,"G",(function(){return Co})),n.d(e,"H",(function(){return ct})),n.d(e,"I",(function(){return io})),n.d(e,"J",(function(){return oo})),n.d(e,"K",(function(){return F})),n.d(e,"L",(function(){return aa})),n.d(e,"M",(function(){return at})),n.d(e,"N",(function(){return Y})),n.d(e,"O",(function(){return ca})),n.d(e,"P",(function(){return Yo})),n.d(e,"Q",(function(){return W})),n.d(e,"R",(function(){return Ro})),n.d(e,"S",(function(){return Wo})),n.d(e,"T",(function(){return fo})),n.d(e,"U",(function(){return Po})),n.d(e,"V",(function(){return Oo})),n.d(e,"W",(function(){return Fo})),n.d(e,"X",(function(){return $o})),n.d(e,"Y",(function(){return na})),n.d(e,"Z",(function(){return Xo})),n.d(e,"ab",(function(){return qo})),n.d(e,"bb",(function(){return ra})),n.d(e,"cb",(function(){return oa})),n.d(e,"db",(function(){return ia})),n.d(e,"eb",(function(){return zo})),n.d(e,"fb",(function(){return Ko})),n.d(e,"gb",(function(){return Zo})),n.d(e,"hb",(function(){return Jo})),n.d(e,"ib",(function(){return ta})),n.d(e,"jb",(function(){return ua})),n.d(e,"kb",(function(){return Go})),n.d(e,"lb",(function(){return ea})),n.d(e,"mb",(function(){return _o})),n.d(e,"nb",(function(){return Qo})),n.d(e,"ob",(function(){return X})),n.d(e,"pb",(function(){return Gi})),n.d(e,"qb",(function(){return K})),n.d(e,"rb",(function(){return S})),n.d(e,"sb",(function(){return it})),n.d(e,"tb",(function(){return Eo})),n.d(e,"ub",(function(){return la})),n.d(e,"vb",(function(){return lo})),n.d(e,"wb",(function(){return ho})),n.d(e,"xb",(function(){return Ui}));var o=n(71),a=n(1),s=n(21),u=n(68),c=n(32),l=n(43),h=n(69),d=n(24),f=n(38),p=n(44),y=n(5),m=n(70);function g(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=k(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:a.FIVE_MINUTES,i=arguments.length>1?arguments[1]:void 0,o=Object(a.toMiliseconds)(r||a.FIVE_MINUTES);return{resolve:function(e){n&&t&&(clearTimeout(n),t(e))},reject:function(t){n&&e&&(clearTimeout(n),e(t))},done:function(){return new Promise((function(r,a){n=setTimeout((function(){a(new Error(i))}),o),t=r,e=a}))}}}function tt(t,e,n){var r=this;return new Promise((function(i,o){return L(r,null,A().mark((function r(){var a,s;return A().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=setTimeout((function(){return o(new Error(n))}),e),r.prev=1,r.next=4,t;case 4:s=r.sent,i(s),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),o(r.t0);case 11:clearTimeout(a);case 12:case"end":return r.stop()}}),r,null,[[1,8]])})))}))}function et(t,e){if("string"==typeof e&&e.startsWith("".concat(t,":")))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(e)}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(e)}throw new Error("Unknown expirer target type: ".concat(t))}function nt(t){return et("topic",t)}function rt(t){return et("id",t)}function it(t){var e=x(t.split(":"),2),n=e[0],r=e[1],i={id:void 0,topic:void 0};if("topic"===n&&"string"==typeof r)i.topic=r;else{if("id"!==n||!Number.isInteger(Number(r)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(n,":").concat(r));i.id=Number(r)}return i}function ot(t,e){return Object(a.fromMiliseconds)((e||Date.now())+Object(a.toMiliseconds)(t))}function at(t){return Date.now()>=Object(a.toMiliseconds)(t)}function st(t,e){return"".concat(t).concat(e?":".concat(e):"")}function ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return E(new Set([].concat(E(t),E(e))))}function ct(t){return L(this,arguments,(function(t){var e=t.id,n=t.topic,i=t.wcDeepLink;return A().mark((function t(){var o,a,s,u;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i){t.next=3;break}return t.abrupt("return");case 3:if(o="string"==typeof i?JSON.parse(i):i,"string"==typeof(a=null==o?void 0:o.href)){t.next=7;break}return t.abrupt("return");case 7:if(a.endsWith("/")&&(a=a.slice(0,-1)),s="".concat(a,"/wc?requestId=").concat(e,"&sessionTopic=").concat(n),(u=V())!==U){t.next=13;break}s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"),t.next=17;break;case 13:if(t.t0=u===B&&I(null==r?void 0:r.Linking)<"u",!t.t0){t.next=17;break}return t.next=17,r.Linking.openURL(s);case 17:t.next=22;break;case 19:t.prev=19,t.t1=t.catch(0),console.error(t.t1);case 22:case"end":return t.stop()}}),t,null,[[0,19]])}))()}))}function lt(t,e){return L(this,null,A().mark((function n(){return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getItem(e);case 3:if(n.t0=n.sent,n.t0){n.next=6;break}n.t0=F()?localStorage.getItem(e):void 0;case 6:return n.abrupt("return",n.t0);case 9:n.prev=9,n.t1=n.catch(0),console.error(n.t1);case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))}var ht=("undefined"==typeof globalThis?"undefined":I(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":I(window))<"u"?window:(void 0===r?"undefined":I(r))<"u"?r:("undefined"==typeof self?"undefined":I(self))<"u"?self:{},dt={exports:{}};!function(e){!function(){var n="input is invalid type",r="object"==("undefined"==typeof window?"undefined":I(window)),i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var o=!r&&"object"==("undefined"==typeof self?"undefined":I(self));!i.JS_SHA3_NO_NODE_JS&&"object"==(void 0===t?"undefined":I(t))&&t.versions&&t.versions.node?i=ht:o&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&e.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&("undefined"==typeof ArrayBuffer?"undefined":I(ArrayBuffer))<"u",u="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],d=[224,256,384,512],f=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),s&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==I(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var m=function(t,e,n){return function(r){return new D(t,e,t).update(r)[n]()}},g=function(t,e,n){return function(r,i){return new D(t,e,i).update(r)[n]()}},v=function(t,e,n){return function(e,r,i,o){return N["cshake"+t].update(e,r,i,o)[n]()}},w=function(t,e,n){return function(e,r,i,o){return N["kmac"+t].update(e,r,i,o)[n]()}},b=function(t,e,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function C(t,e,n){D.call(this,t,e,n)}D.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=I(t);if("string"!==r){if("object"!==r)throw new Error(n);if(null===t)throw new Error(n);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(n);e=!0}for(var i,o,a=this.blocks,u=this.byteCount,c=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=a[h],i=0;i>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},D.prototype.encodeString=function(t){var e,r=I(t);if("string"!==r){if("object"!==r)throw new Error(n);if(null===t)throw new Error(n);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(n);e=!0}var i=0,o=t.length;if(e)i=o;else for(var a=0;a=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},D.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e==0&&(O(n),o=0)}return i&&(t=n[o],s+=u[t>>4&15]+u[15&t],i>1&&(s+=u[t>>12&15]+u[t>>8&15]),i>2&&(s+=u[t>>20&15]+u[t>>16&15])),s},D.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n==0&&O(r)}return o&&(t=s<<2,e=r[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},C.prototype=new D,C.prototype.finalize=function(){return this.encode(this.outputBits,!0),D.prototype.finalize.call(this)};var O=function(t){var e,n,r,i,o,a,s,u,c,l,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S,j,D,C,O,z,P,_,B,R,U,Q,Y,W,F,V,H,G,q,Z,J,X,K,$,tt,et,nt,rt,it,ot,at,st,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(l<<1|d>>>31),n=s^(d<<1|l>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(f<<1|p>>>31),n=c^(p<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=l^(i<<1|o>>>31),n=d^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,y=t[0],m=t[1],G=t[11]<<4|t[10]>>>28,q=t[10]<<4|t[11]>>>28,L=t[20]<<3|t[21]>>>29,S=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,W=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,z=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,j=t[33]<<13|t[32]>>>19,D=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,_=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,K=t[35]<<15|t[34]>>>17,C=t[45]<<29|t[44]>>>3,O=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,R=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,A=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,T=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,Q=t[38]<<8|t[39]>>>24,Y=t[39]<<8|t[38]>>>24,I=t[48]<<14|t[49]>>>18,N=t[49]<<14|t[48]>>>18,t[0]=y^~g&w,t[1]=m^~v&b,t[10]=E^~k&L,t[11]=x^~T&S,t[20]=z^~_&R,t[21]=P^~B&U,t[30]=V^~G&Z,t[31]=H^~q&J,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~w&M,t[3]=v^~b&A,t[12]=k^~L&j,t[13]=T^~S&D,t[22]=_^~R&Q,t[23]=B^~U&Y,t[32]=G^~Z&X,t[33]=q^~J&K,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=w^~M&I,t[5]=b^~A&N,t[14]=L^~j&C,t[15]=S^~D&O,t[24]=R^~Q&W,t[25]=U^~Y&F,t[34]=Z^~X&$,t[35]=J^~K&tt,t[44]=ot^~st&ct,t[45]=at^~ut<,t[6]=M^~I&y,t[7]=A^~N&m,t[16]=j^~C&E,t[17]=D^~O&x,t[26]=Q^~W&z,t[27]=Y^~F&P,t[36]=X^~$&V,t[37]=K^~tt&H,t[46]=st^~ct&et,t[47]=ut^~lt&nt,t[8]=I^~y&g,t[9]=N^~m&v,t[18]=C^~E&k,t[19]=O^~x&T,t[28]=W^~z&_,t[29]=F^~P&B,t[38]=$^~V&G,t[39]=tt^~H&q,t[48]=ct^~et&rt,t[49]=lt^~nt&it,t[0]^=h[r],t[1]^=h[r+1]};if(a)e.exports=N;else for(x=0;xvt[n])&&console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r>4],n+=At[15&e[o]];i.push(t+"=Uint8Array(0x"+n+")")}else i.push(t+"="+JSON.stringify(e))}catch(e){i.push(t+"="+JSON.stringify(r[t].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=e,a="";switch(n){case pt.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case pt.CALL_EXCEPTION:case pt.INSUFFICIENT_FUNDS:case pt.MISSING_NEW:case pt.NONCE_EXPIRED:case pt.REPLACEMENT_UNDERPRICED:case pt.TRANSACTION_REPLACED:case pt.UNPREDICTABLE_GAS_LIMIT:a=n}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var u=new Error(e);return u.reason=o,u.code=n,Object.keys(r).forEach((function(t){u[t]=r[t]})),u}},{key:"throwError",value:function(t,e,n){throw this.makeError(t,e,n)}},{key:"throwArgumentError",value:function(e,n,r){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(t,e,n,r){t||this.throwError(e,n,r)}},{key:"assertArgument",value:function(t,e,n,r){t||this.throwArgumentError(e,n,r)}},{key:"checkNormalize",value:function(e){Mt&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Mt})}},{key:"checkSafeUint53",value:function(e,n){"number"==typeof e&&(null==n&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,n,r){r=r?": "+r:"",en&&this.throwError("too many arguments"+r,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}},{key:"checkNew",value:function(e,n){(e===Object||null==e)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return bt||(bt=new t("logger/5.7.0")),bt}},{key:"setCensorship",value:function(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),mt){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}gt=!!e,mt=!!n}},{key:"setLogLevel",value:function(e){var n=vt[e.toLowerCase()];null!=n?wt=n:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}])}();It.errors=pt,It.levels=ft;var Nt=new It("bytes/5.7.0");function Et(t){return!!t.toHexString}function xt(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return xt(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function kt(t){return"number"==typeof t&&t==t&&t%1==0}function Tt(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!kt(t.length)||t.length<0)return!1;for(var e=0;e=256)return!1}return!0}function Lt(t,e){if(e||(e={}),"number"==typeof t){Nt.checkSafeUint53(t,"invalid arrayify value");for(var n=[];t;)n.unshift(255&t),t=parseInt(String(t/256));return 0===n.length&&n.push(0),xt(new Uint8Array(n))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Et(t)&&(t=t.toHexString()),St(t)){var r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":Nt.throwArgumentError("hex data is odd-length","value",t));for(var i=[],o=0;o>4]+jt[15&o]}return r}return Nt.throwArgumentError("invalid hexlify value","value",t)}function Ct(t,e,n){return"string"!=typeof t?t=Dt(t):(!St(t)||t.length%2)&&Nt.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function Ot(t,e){for("string"!=typeof t?t=Dt(t):St(t)||Nt.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Nt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function zt(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(function(t){return St(t)&&!(t.length%2)||Tt(t)}(t)){var n=Lt(t);64===n.length?(e.v=27+(n[32]>>7),n[32]&=127,e.r=Dt(n.slice(0,32)),e.s=Dt(n.slice(32,64))):65===n.length?(e.r=Dt(n.slice(0,32)),e.s=Dt(n.slice(32,64)),e.v=n[64]):Nt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Nt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=Dt(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var r=function(t,e){(t=Lt(t)).length>e&&Nt.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(e);return n.set(t,e-t.length),xt(n)}(Lt(e._vs),32);e._vs=Dt(r);var i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&Nt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;var o=Dt(r);null==e.s?e.s=o:e.s!==o&&Nt.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Nt.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{var a=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==a&&Nt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&St(e.r)?e.r=Ot(e.r,32):Nt.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&St(e.s)?e.s=Ot(e.s,32):Nt.throwArgumentError("signature missing or invalid s","signature",t);var s=Lt(e.s);s[0]>=128&&Nt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(s[0]|=128);var u=Dt(s);e._vs&&(St(e._vs)||Nt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Ot(e._vs,32)),null==e._vs?e._vs=u:e._vs!==u&&Nt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Pt(t){return"0x"+yt.keccak_256(Lt(t))}var _t={exports:{}},Bt=function(t){var e=t.default;if("function"==typeof e){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==I(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o=("undefined"==typeof window?"undefined":I(window))<"u"&&I(window.Buffer)<"u"?window.Buffer:Bt.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==I(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},("undefined"==typeof Symbol?"undefined":I(Symbol))<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&t.negative?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;!(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,o=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var a=new i(1),s=new i(0),u=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var c=0,l=1;!(r.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;!(o.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(o.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(o)>=0?(r.isub(o),a.isub(s)):(o.isub(r),s.isub(a))}return(e=0===r.cmpn(1)?a:s).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return v[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new x(t)},r(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,ht)}(_t);var Rt=_t.exports,Ut="bignumber/5.7.0",Qt=Rt.BN,Yt=new It(Ut),Wt={},Ft=9007199254740991,Vt=!1,Ht=function(){function t(e,n){v(this,t),e!==Wt&&Yt.throwError("cannot call constructor directly; use BigNumber.from",It.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}return b(t,[{key:"fromTwos",value:function(t){return qt(Zt(this).fromTwos(t))}},{key:"toTwos",value:function(t){return qt(Zt(this).toTwos(t))}},{key:"abs",value:function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this}},{key:"add",value:function(t){return qt(Zt(this).add(Zt(t)))}},{key:"sub",value:function(t){return qt(Zt(this).sub(Zt(t)))}},{key:"div",value:function(e){return t.from(e).isZero()&&Jt("division-by-zero","div"),qt(Zt(this).div(Zt(e)))}},{key:"mul",value:function(t){return qt(Zt(this).mul(Zt(t)))}},{key:"mod",value:function(t){var e=Zt(t);return e.isNeg()&&Jt("division-by-zero","mod"),qt(Zt(this).umod(e))}},{key:"pow",value:function(t){var e=Zt(t);return e.isNeg()&&Jt("negative-power","pow"),qt(Zt(this).pow(e))}},{key:"and",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","and"),qt(Zt(this).and(e))}},{key:"or",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","or"),qt(Zt(this).or(e))}},{key:"xor",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","xor"),qt(Zt(this).xor(e))}},{key:"mask",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","mask"),qt(Zt(this).maskn(t))}},{key:"shl",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","shl"),qt(Zt(this).shln(t))}},{key:"shr",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","shr"),qt(Zt(this).shrn(t))}},{key:"eq",value:function(t){return Zt(this).eq(Zt(t))}},{key:"lt",value:function(t){return Zt(this).lt(Zt(t))}},{key:"lte",value:function(t){return Zt(this).lte(Zt(t))}},{key:"gt",value:function(t){return Zt(this).gt(Zt(t))}},{key:"gte",value:function(t){return Zt(this).gte(Zt(t))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return Zt(this).isZero()}},{key:"toNumber",value:function(){try{return Zt(this).toNumber()}catch(t){Jt("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(t){}return Yt.throwError("this platform does not support BigInt",It.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?Vt||(Vt=!0,Yt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Yt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",It.errors.UNEXPECTED_ARGUMENT,{}):Yt.throwError("BigNumber.toString does not accept parameters",It.errors.UNEXPECTED_ARGUMENT,{})),Zt(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(Wt,Gt(e)):e.match(/^-?[0-9]+$/)?new t(Wt,Gt(new Qt(e))):Yt.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&Jt("underflow","BigNumber.from",e),(e>=Ft||e<=-Ft)&&Jt("overflow","BigNumber.from",e),t.from(String(e));var n=e;if("bigint"==typeof n)return t.from(n.toString());if(Tt(n))return t.from(Dt(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"==typeof r)return t.from(r)}else{var i=n._hex;if(null==i&&"BigNumber"===n.type&&(i=n.hex),"string"==typeof i&&(St(i)||"-"===i[0]&&St(i.substring(1))))return t.from(i)}return Yt.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}])}();function Gt(t){if("string"!=typeof t)return Gt(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Yt.throwArgumentError("invalid hex","value",t),"0x00"===(t=Gt(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function qt(t){return Ht.from(Gt(t))}function Zt(t){var e=Ht.from(t).toHexString();return"-"===e[0]?new Qt("-"+e.substring(3),16):new Qt(e.substring(2),16)}function Jt(t,e,n){var r={fault:t,operation:e};return null!=n&&(r.value=n),Yt.throwError(t,It.errors.NUMERIC_FAULT,r)}var Xt=new It(Ut),Kt={},$t=Ht.from(0),te=Ht.from(-1);function ee(t,e,n,r){var i={fault:e,operation:n};return void 0!==r&&(i.value=r),Xt.throwError(t,It.errors.NUMERIC_FAULT,i)}for(var ne="0";ne.length<256;)ne+=ne;function re(t){if("number"!=typeof t)try{t=Ht.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ne.substring(0,t):Xt.throwArgumentError("invalid decimal size","decimals",t)}function ie(t,e){null==e&&(e=0);var n=re(e),r=(t=Ht.from(t)).lt($t);r&&(t=t.mul(te));for(var i=t.mod(n).toString();i.length2&&Xt.throwArgumentError("too many decimal points","value",t);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&ee("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length80&&Xt.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new t(Kt,n,r,i)}}])}(),ce=function(){function t(e,n,r,i){v(this,t),e!==Kt&&Xt.throwError("cannot use FixedNumber constructor; use FixedNumber.from",It.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}return b(t,[{key:"_checkFormat",value:function(t){this.format.name!==t.format.name&&Xt.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}},{key:"addUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var e=this.toString().split(".");1===e.length&&e.push("0");var n=t.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(le.toFormat(n.format))),n}},{key:"ceiling",value:function(){var e=this.toString().split(".");1===e.length&&e.push("0");var n=t.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(le.toFormat(n.format))),n}},{key:"round",value:function(e){null==e&&(e=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(e<0||e>80||e%1)&&Xt.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;var r=t.from("1"+ne.substring(0,e),this.format),i=he.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(t){return null==t?this._hex:(t%8&&Xt.throwArgumentError("invalid byte width","width",t),Ot(Ht.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(e){return t.fromString(this._value,e)}}],[{key:"fromValue",value:function(e,n,r){return null==r&&null!=n&&!function(t){return null!=t&&(Ht.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||St(t)||"bigint"==typeof t||Tt(t))}(n)&&(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),t.fromString(ie(e,n),ue.from(r))}},{key:"fromString",value:function(e,n){null==n&&(n="fixed");var r=ue.from(n),i=oe(e,r.decimals);!r.signed&&i.lt($t)&&ee("unsigned value cannot be negative","overflow","value",e);var o=null;o=r.signed?i.toTwos(r.width).toHexString():Ot(o=i.toHexString(),r.width/8);var a=ie(i,r.decimals);return new t(Kt,o,a,r)}},{key:"fromBytes",value:function(e,n){null==n&&(n="fixed");var r=ue.from(n);if(Lt(e).length>r.width/8)throw new Error("overflow");var i=Ht.from(e);r.signed&&(i=i.fromTwos(r.width));var o=i.toTwos((r.signed?0:1)+r.width).toHexString(),a=ie(i,r.decimals);return new t(Kt,o,a,r)}},{key:"from",value:function(e,n){if("string"==typeof e)return t.fromString(e,n);if(Tt(e))return t.fromBytes(e,n);try{return t.fromValue(e,0,n)}catch(t){if(t.code!==It.errors.INVALID_ARGUMENT)throw t}return Xt.throwArgumentError("invalid FixedNumber value","value",e)}},{key:"isFixedNumber",value:function(t){return!(!t||!t._isFixedNumber)}}])}(),le=ce.from(1),he=ce.from("0.5"),de=new It("strings/5.7.0");function fe(t,e,n,r,i){if(t===se.BAD_PREFIX||t===se.UNEXPECTED_CONTINUE){for(var o=0,a=e+1;a>6==2;a++)o++;return o}return t===se.OVERRUN?n.length-e-1:0}function pe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae.current;e!=ae.current&&(de.checkNormalize(),t=t.normalize(e));for(var n=[],r=0;r>6|192),n.push(63&i|128);else if(55296==(64512&i)){r++;var o=t.charCodeAt(r);if(r>=t.length||56320!=(64512&o))throw new Error("invalid utf-8 string");var a=65536+((1023&i)<<10)+(1023&o);n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(63&i|128)}return Lt(n)}function ye(t,e){e||(e=function(t){return[parseInt(t,16)]});var n=0,r={};return t.split(",").forEach((function(t){var i=t.split(":");n+=parseInt(i[0],16),r[n]=e(i[1])})),r}function me(t){var e=0;return t.split(",").map((function(t){var n=t.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:e+parseInt(n[0],16),h:e=parseInt(n[1],16)}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(ae||(ae={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(se||(se={})),Object.freeze({error:function(t,e,n,r,i){return de.throwArgumentError("invalid codepoint at offset ".concat(e,"; ").concat(t),"bytes",n)},ignore:fe,replace:function(t,e,n,r,i){return t===se.OVERLONG?(r.push(i),0):(r.push(65533),fe(t,e,n))}}),me("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(t){return parseInt(t,16)})),ye("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),ye("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),ye("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");for(var e=[],n=0;n0&&Array.isArray(e)?t(e,i-1):n.push(e)}))}(t,e),n}function we(t){return 1&t?~t>>1:t>>1}function be(t,e){for(var n=Array(t),r=0,i=-1;r>--c&1}for(var d=Math.pow(2,31),f=d>>>1,p=f>>1,y=d-1,m=0,g=0;g<31;g++)m=m<<1|h();for(var v=[],w=0,b=d;;){for(var M=Math.floor(((m-w+1)*i-1)/b),A=0,I=r;I-A>1;){var N=A+I>>>1;M>>1|h(),E=E<<1^f,x=(x^f)<<1|f|1;w=E,b=1+x-E}var k=r-4;return v.map((function(e){switch(e-k){case 3:return k+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return k+256+(t[u++]<<8|t[u++]);case 1:return k+t[u++];default:return e-1}}))}(t))}(function(t){t=atob(t);for(var e=[],n=0;n>=1),check:2==o}}()}(xe),new It(ge),new Uint8Array(32).fill(0),new It("rlp/5.7.0");var Te=new It("address/5.7.0");function Le(t){St(t,20)||Te.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=e[r].charCodeAt(0);for(var i=Lt(Pt(n)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(e[o]=e[o].toUpperCase()),(15&i[o>>1])>=8&&(e[o+1]=e[o+1].toUpperCase());return"0x"+e.join("")}for(var Se={},je=0;je<10;je++)Se[String(je)]=String(je);for(var De=0;De<26;De++)Se[String.fromCharCode(65+De)]=String(10+De);var Ce=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function Oe(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}new It("properties/5.7.0"),new It(ge),new Uint8Array(32).fill(0),Ht.from(-1);var ze=Ht.from(0),Pe=Ht.from(1);Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ot(Pe.toHexString(),32),Ot(ze.toHexString(),32);var _e={},Be={},Re=Ue;function Ue(t,e){if(!t)throw new Error(e||"Assertion failed")}Ue.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var Qe={exports:{}};"function"==typeof Object.create?Qe.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qe.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var Ye=Re,We=Qe.exports;function Fe(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function Ve(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function He(t){return 1===t.length?"0"+t:t}function Ge(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}Be.inherits=We,Be.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):Fe(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},Be.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},Be.rotr32=function(t,e){return t>>>e|t<<32-e},Be.rotl32=function(t,e){return t<>>32-e},Be.sum32=function(t,e){return t+e>>>0},Be.sum32_3=function(t,e,n){return t+e+n>>>0},Be.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},Be.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},Be.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},Be.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},Be.sum64_lo=function(t,e,n,r){return e+r>>>0},Be.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},Be.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},Be.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},Be.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},Be.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},Be.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},Be.shr64_hi=function(t,e,n){return t>>>n},Be.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var qe={},Ze=Be,Je=Re;function Xe(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}qe.BlockHash=Xe,Xe.prototype.update=function(t,e){if(t=Ze.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=Ze.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},$e.g1_256=function(t){return tn(t,17)^tn(t,19)^t>>>10};var on=Be,an=qe,sn=$e,un=on.rotl32,cn=on.sum32,ln=on.sum32_5,hn=sn.ft_1,dn=an.BlockHash,fn=[1518500249,1859775393,2400959708,3395469782];function pn(){if(!(this instanceof pn))return new pn;dn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}on.inherits(pn,dn);var yn=pn;pn.blockSize=512,pn.outSize=160,pn.hmacStrength=80,pn.padLength=64,pn.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),Or(t.length<=this.blockSize);for(var e=t.length;e>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}})),Qr=_r((function(t,e){var n=e;n.assert=Br,n.toArray=Ur.toArray,n.zero2=Ur.zero2,n.toHex=Ur.toHex,n.encode=Ur.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=1&u?3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u:0,n[0].push(a),s=1&c?3!=(r=e.andln(7)+o&7)&&5!==r||2!==u?c:-c:0,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new Rt(t,"hex","le")}})),Yr=Qr.getNAF,Wr=Qr.getJSF,Fr=Qr.assert;function Vr(t,e){this.type=t,this.p=new Rt(e.p,16),this.red=e.prime?Rt.red(e.prime):Rt.mont(this.p),this.zero=new Rt(0).toRed(this.red),this.one=new Rt(1).toRed(this.red),this.two=new Rt(2).toRed(this.red),this.n=e.n&&new Rt(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Hr=Vr;function Gr(t,e){this.curve=t,this.type=e,this.precomputed=null}Vr.prototype.point=function(){throw new Error("Not implemented")},Vr.prototype.validate=function(){throw new Error("Not implemented")},Vr.prototype._fixedNafMul=function(t,e){Fr(t.precomputed);var n=t._getDoubles(),r=Yr(e,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];Fr(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},Vr.prototype._wnafMulAdd=function(t,e,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var y=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(y[1]=e[f].add(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].add(e[p].neg())):(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=Wr(n[f],n[p]);for(h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h),a=0;a=0;o--){for(var A=0;o>=0;){var I=!0;for(a=0;a=0&&A++,b=b.dblp(A),o<0)break;for(a=0;a0?s=c[a][N-1>>1]:N<0&&(s=c[a][-N-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},Gr.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=e,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Jr.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},Jr.prototype.pointFromX=function(t,e){(t=new Rt(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},Jr.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Jr.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Kr.prototype.isInfinity=function(){return this.inf},Kr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},Kr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Kr.prototype.getX=function(){return this.x.fromRed()},Kr.prototype.getY=function(){return this.y.fromRed()},Kr.prototype.mul=function(t){return t=new Rt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Kr.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},Kr.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},Kr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Kr.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},Kr.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},qr($r,Hr.BasePoint),Jr.prototype.jpoint=function(t,e,n){return new $r(this,t,e,n)},$r.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},$r.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},$r.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},$r.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),h=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(h,d,f)},$r.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},$r.prototype.inspect=function(){return this.isInfinity()?"":""},$r.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ti=_r((function(t,e){var n=e;n.base=Hr,n.short=Xr,n.mont=null,n.edwards=null})),ei=_r((function(t,e){var n,r=e,i=Qr.assert;function o(t){"short"===t.type?this.curve=new ti.short(t):"edwards"===t.type?this.curve=new ti.edwards(t):this.curve=new ti.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new o(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:_e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:_e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:_e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:_e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:_e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_e.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(t){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:_e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function ni(t){if(!(this instanceof ni))return new ni(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ur.toArray(t.entropy,t.entropyEnc||"hex"),n=Ur.toArray(t.nonce,t.nonceEnc||"hex"),r=Ur.toArray(t.pers,t.persEnc||"hex");Br(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var ri=ni;ni.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},ni.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=Ur.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var si=Qr.assert;function ui(t,e){if(t instanceof ui)return t;this._importDER(t,e)||(si(t.r&&t.s,"Signature without r or s"),this.r=new Rt(t.r,16),this.s=new Rt(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var ci=ui;function li(){this.place=0}function hi(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function di(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}ui.prototype._importDER=function(t,e){t=Qr.toArray(t,e);var n=new li;if(48!==t[n.place++])return!1;var r=hi(t,n);if(!1===r||r+n.place!==t.length||2!==t[n.place++])return!1;var i=hi(t,n);if(!1===i)return!1;var o=t.slice(n.place,i+n.place);if(n.place+=i,2!==t[n.place++])return!1;var a=hi(t,n);if(!1===a||t.length!==a+n.place)return!1;var s=t.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Rt(o),this.s=new Rt(s),this.recoveryParam=null,!0},ui.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=di(e),n=di(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];fi(r,e.length),(r=r.concat(e)).push(2),fi(r,n.length);var i=r.concat(n),o=[48];return fi(o,i.length),o=o.concat(i),Qr.encode(o,t)};var pi=function(){throw new Error("unsupported")},yi=Qr.assert;function mi(t){if(!(this instanceof mi))return new mi(t);"string"==typeof t&&(yi(Object.prototype.hasOwnProperty.call(ei,t),"Unknown curve "+t),t=ei[t]),t instanceof ei.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var gi=mi;mi.prototype.keyPair=function(t){return new ai(this,t)},mi.prototype.keyFromPrivate=function(t,e){return ai.fromPrivate(this,t,e)},mi.prototype.keyFromPublic=function(t,e){return ai.fromPublic(this,t,e)},mi.prototype.genKeyPair=function(t){t||(t={});for(var e=new ri({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||pi(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new Rt(2));;){var i=new Rt(e.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},mi.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},mi.prototype.sign=function(t,e,n,r){"object"==I(n)&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new Rt(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new ri({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new Rt(1)),c=0;;c++){var l=r.k?r.k(c):new Rt(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=l.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),y^=1),new ci({r:f,s:p,recoveryParam:y})}}}}}},mi.prototype.verify=function(t,e,n,r){t=this._truncateToN(new Rt(t,16)),n=this.keyFromPublic(n,r);var i=(e=new ci(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},mi.prototype.recoverPubKey=function(t,e,n,r){yi((3&n)===n,"The recovery param is more than two bits"),e=new ci(e,r);var i=this.n,o=new Rt(t),a=e.r,s=e.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=e.r.invm(i),h=i.sub(o).mul(l).umod(i),d=s.mul(l).umod(i);return this.g.mulAdd(h,a,d)},mi.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new ci(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var vi=_r((function(t,e){var n=e;n.version="6.5.4",n.utils=Qr,n.rand=function(){throw new Error("unsupported")},n.curve=ti,n.curves=ei,n.ec=gi,n.eddsa=null})).ec,wi=new It("signing-key/5.7.0"),bi=null;function Mi(){return bi||(bi=new vi("secp256k1")),bi}var Ai,Ii=b((function t(e){v(this,t),Oe(this,"curve","secp256k1"),Oe(this,"privateKey",Dt(e)),32!==function(t){if("string"!=typeof t)t=Dt(t);else if(!St(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&wi.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=Mi().keyFromPrivate(Lt(this.privateKey));Oe(this,"publicKey","0x"+n.getPublic(!1,"hex")),Oe(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),Oe(this,"_isSigningKey",!0)}),[{key:"_addPoint",value:function(t){var e=Mi().keyFromPublic(Lt(this.publicKey)),n=Mi().keyFromPublic(Lt(t));return"0x"+e.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(t){var e=Mi().keyFromPrivate(Lt(this.privateKey)),n=Lt(t);32!==n.length&&wi.throwArgumentError("bad digest length","digest",t);var r=e.sign(n,{canonical:!0});return zt({recoveryParam:r.recoveryParam,r:Ot("0x"+r.r.toString(16),32),s:Ot("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(t){var e=Mi().keyFromPrivate(Lt(this.privateKey)),n=Mi().keyFromPublic(Lt(Ni(t)));return Ot("0x"+e.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(t){return!(!t||!t._isSigningKey)}}]);function Ni(t,e){var n=Lt(t);if(32===n.length){var r=new Ii(n);return e?"0x"+Mi().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?e?Dt(n):"0x"+Mi().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+Mi().keyFromPublic(n).getPublic(!0,"hex"):Dt(n):wi.throwArgumentError("invalid public or private key","key","[REDACTED]")}function Ei(t,e){return function(t){return function(t){var e=null;if("string"!=typeof t&&Te.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Le(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Te.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return Se[t]})).join("");e.length>=Ce;){var n=e.substring(0,Ce);e=parseInt(n,10)%97+e.substring(n.length)}for(var r=String(98-parseInt(e,10)%97);r.length<2;)r="0"+r;return r}(t)&&Te.throwArgumentError("bad icap checksum","address",t),e=function(t){return new Qt(t,36).toString(16)}(t.substring(4));e.length<40;)e="0"+e;e=Le("0x"+e)}else Te.throwArgumentError("invalid address","address",t);return e}(Ct(Pt(Ct(Ni(t),1)),12))}(function(t,e){var n=zt(e),r={r:Lt(n.r),s:Lt(n.s)};return"0x"+Mi().recoverPubKey(Lt(t),r,n.recoveryParam).encode("hex",!1)}(Lt(t),e))}function xi(t,e,n,r,i,o){return L(this,null,A().mark((function a(){return A().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=n.t,a.next="eip191"===a.t0?3:"eip1271"===a.t0?4:7;break;case 3:return a.abrupt("return",ki(t,e,n.s));case 4:return a.next=6,Ti(t,e,n.s,r,i,o);case 6:return a.abrupt("return",a.sent);case 7:throw new Error("verifySignature failed: Attempted to verify CacaoSignature with unknown type: ".concat(n.t));case 8:case"end":return a.stop()}}),a)})))}function ki(t,e,n){return Ei(ke(e),n).toLowerCase()===t.toLowerCase()}function Ti(t,e,n,r,i,o){return L(this,null,A().mark((function a(){var s,u,c,l,h,d,f;return A().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s="0x1626ba7e",u=n.substring(2),c=ke(e).substring(2),l=s+c+"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041"+u,a.next=9,fetch("".concat(o||"https://rpc.walletconnect.com/v1","/?chainId=").concat(r,"&projectId=").concat(i),{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:t,data:l},"latest"]})});case 9:return h=a.sent,a.next=12,h.json();case 12:return d=a.sent,f=d.result,a.abrupt("return",!!f&&f.slice(0,s.length).toLowerCase()===s.toLowerCase());case 17:return a.prev=17,a.t0=a.catch(0),a.abrupt("return",(console.error("isValidEip1271Signature: ",a.t0),!1));case 20:case"end":return a.stop()}}),a,null,[[0,17]])})))}new It("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(Ai||(Ai={}));var Li=Object.defineProperty,Si=Object.defineProperties,ji=Object.getOwnPropertyDescriptors,Di=Object.getOwnPropertySymbols,Ci=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,zi=function(t,e,n){return e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Pi=function(t){return null==t?void 0:t.split(":")},_i=function(t){var e=t&&Pi(t);if(e)return t.includes("did:pkh:")?e[3]:e[1]},Bi=function(t){var e=t&&Pi(t);if(e)return e[2]+":"+e[3]},Ri=function(t){var e=t&&Pi(t);if(e)return e.pop()};function Ui(t){return L(this,null,A().mark((function e(){var n,r,i,o,a,s;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cacao,r=t.projectId,i=n.s,o=n.p,a=Qi(o,o.iss),s=Ri(o.iss),e.next=3,xi(s,a,i,_i(o.iss),r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))}var Qi=function(t,e){var n="".concat(t.domain," wants you to sign in with your Ethereum account:"),r=Ri(e);if(!t.aud&&!t.uri)throw new Error("Either `aud` or `uri` is required to construct the message");var i=t.statement||void 0,o="URI: ".concat(t.aud||t.uri),a="Version: ".concat(t.version),s="Chain ID: ".concat(_i(e)),u="Nonce: ".concat(t.nonce),c="Issued At: ".concat(t.iat),l=t.resources?"Resources:".concat(t.resources.map((function(t){return"\n- ".concat(t)})).join("")):void 0,h=Ji(t.resources);return h&&(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;Yi(e);var n="I further authorize the stated URI to perform the following actions on my behalf: ";if(t.includes(n))return t;var r=[],i=0;Object.keys(e.att).forEach((function(t){var n=Object.keys(e.att[t]).map((function(t){return{ability:t.split("/")[0],action:t.split("/")[1]}}));n.sort((function(t,e){return t.action.localeCompare(e.action)}));var o={};n.forEach((function(t){o[t.ability]||(o[t.ability]=[]),o[t.ability].push(t.action)}));var a=Object.keys(o).map((function(e){return i++,"(".concat(i,") '").concat(e,"': '").concat(o[e].join("', '"),"' for '").concat(t,"'.")}));r.push(a.join(", ").replace(".,","."))}));var o=r.join(" "),a="".concat(n).concat(o);return"".concat(t?t+" ":"").concat(a)}(i,Vi(h))),[n,r,"",i,"",o,a,s,u,c,l].filter((function(t){return null!=t})).join("\n")};function Yi(t){if(!t)throw new Error("No recap provided, value is undefined");if(!t.att)throw new Error("No `att` property found");var e=Object.keys(t.att);if(null==e||!e.length)throw new Error("No resources found in `att` property");e.forEach((function(e){var n=t.att[e];if(Array.isArray(n))throw new Error("Resource must be an object: ".concat(e));if("object"!=I(n))throw new Error("Resource must be an object: ".concat(e));if(!Object.keys(n).length)throw new Error("Resource object is empty: ".concat(e));Object.keys(n).forEach((function(t){var e=n[t];if(!Array.isArray(e))throw new Error("Ability limits ".concat(t," must be an array of objects, found: ").concat(e));if(!e.length)throw new Error("Value of ".concat(t," is empty array, must be an array with objects"));e.forEach((function(e){if("object"!=I(e))throw new Error("Ability limits (".concat(t,") must be an array of objects, found: ").concat(e))}))}))}))}function Wi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(e=null==e?void 0:e.sort((function(t,e){return t.localeCompare(e)}))).map((function(e){return g({},"".concat(t,"/").concat(e),[n])}));return Object.assign.apply(Object,[{}].concat(E(r)))}function Fi(t){return Yi(t),"urn:recap:".concat(function(t){return i.from(JSON.stringify(t)).toString("base64")}(t).replace(/=/g,""))}function Vi(t){var e=function(t){return JSON.parse(i.from(t,"base64").toString("utf-8"))}(t.replace("urn:recap:",""));return Yi(e),e}function Hi(t,e,n){return Fi(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null==n||n.sort((function(t,e){return t.localeCompare(e)})),{att:g({},t,Wi(e,n,r))}}(t,e,n))}function Gi(t,e){return Fi(function(t,e){Yi(t),Yi(e);var n=Object.keys(t.att).concat(Object.keys(e.att)).sort((function(t,e){return t.localeCompare(e)})),r={att:{}};return n.forEach((function(n){var i,o;Object.keys((null==(i=t.att)?void 0:i[n])||{}).concat(Object.keys((null==(o=e.att)?void 0:o[n])||{})).sort((function(t,e){return t.localeCompare(e)})).forEach((function(i){var o,a;r.att[n]=function(t,e){return Si(t,ji(e))}(function(t,e){for(var n in e||(e={}))Ci.call(e,n)&&zi(t,n,e[n]);if(Di){var r,i=N(Di(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Oi.call(e,n)&&zi(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t}({},r.att[n]),g({},i,(null==(o=t.att[n])?void 0:o[i])||(null==(a=e.att[n])?void 0:a[i])))}))})),r}(Vi(t),Vi(e)))}function qi(t){var e,n=Vi(t);Yi(n);var r=null==(e=n.att)?void 0:e.eip155;return r?Object.keys(r).map((function(t){return t.split("/")[1]})):[]}function Zi(t){var e=Vi(t);Yi(e);var n=[];return Object.values(e.att).forEach((function(t){Object.values(t).forEach((function(t){var e;null!=(e=null==t?void 0:t[0])&&e.chains&&n.push(t[0].chains)}))})),E(new Set(n.flat()))}function Ji(t){if(t){var e=null==t?void 0:t[t.length-1];return function(t){return t&&t.includes("urn:recap:")}(e)?e:void 0}}var Xi="base16",Ki="base64pad",$i="utf8",to=1;function eo(){var t=p.generateKeyPair();return{privateKey:Object(y.toString)(t.secretKey,Xi),publicKey:Object(y.toString)(t.publicKey,Xi)}}function no(){var t=Object(d.randomBytes)(32);return Object(y.toString)(t,Xi)}function ro(t,e){var n=p.sharedKey(Object(y.fromString)(t,Xi),Object(y.fromString)(e,Xi),!0),r=new h.HKDF(f.SHA256,n).expand(32);return Object(y.toString)(r,Xi)}function io(t){var e=Object(f.hash)(Object(y.fromString)(t,Xi));return Object(y.toString)(e,Xi)}function oo(t){var e=Object(f.hash)(Object(y.fromString)(t,$i));return Object(y.toString)(e,Xi)}function ao(t){return Number(Object(y.toString)(t,"base10"))}function so(t){var e=function(t){return Object(y.fromString)("".concat(t),"base10")}(I(t.type)<"u"?t.type:0);if(ao(e)===to&&I(t.senderPublicKey)>"u")throw new Error("Missing sender public key for type 1 envelope");var n=I(t.senderPublicKey)<"u"?Object(y.fromString)(t.senderPublicKey,Xi):void 0,r=I(t.iv)<"u"?Object(y.fromString)(t.iv,Xi):Object(d.randomBytes)(12);return function(t){if(ao(t.type)===to){if(I(t.senderPublicKey)>"u")throw new Error("Missing sender public key for type 1 envelope");return Object(y.toString)(Object(y.concat)([t.type,t.senderPublicKey,t.iv,t.sealed]),Ki)}return Object(y.toString)(Object(y.concat)([t.type,t.iv,t.sealed]),Ki)}({type:e,sealed:new l.ChaCha20Poly1305(Object(y.fromString)(t.symKey,Xi)).seal(r,Object(y.fromString)(t.message,$i)),iv:r,senderPublicKey:n})}function uo(t){var e=new l.ChaCha20Poly1305(Object(y.fromString)(t.symKey,Xi)),n=co(t.encoded),r=n.sealed,i=n.iv,o=e.open(i,r);if(null===o)throw new Error("Failed to decrypt");return Object(y.toString)(o,$i)}function co(t){var e=Object(y.fromString)(t,Ki),n=e.slice(0,1);if(ao(n)===to){var r=e.slice(1,33),i=e.slice(33,45);return{type:n,sealed:e.slice(45),iv:i,senderPublicKey:r}}var o=e.slice(1,13);return{type:n,sealed:e.slice(13),iv:o}}function lo(t,e){var n=co(t);return ho({type:ao(n.type),senderPublicKey:I(n.senderPublicKey)<"u"?Object(y.toString)(n.senderPublicKey,Xi):void 0,receiverPublicKey:null==e?void 0:e.receiverPublicKey})}function ho(t){var e=(null==t?void 0:t.type)||0;if(e===to){if(I(null==t?void 0:t.senderPublicKey)>"u")throw new Error("missing sender public key");if(I(null==t?void 0:t.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:null==t?void 0:t.senderPublicKey,receiverPublicKey:null==t?void 0:t.receiverPublicKey}}function fo(t){return t.type===to&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}function po(t){return(null==t?void 0:t.relay)||{protocol:"irn"}}function yo(t){var e=m.RELAY_JSONRPC[t];if(I(e)>"u")throw new Error("Relay Protocol not supported: ".concat(t));return e}var mo=Object.defineProperty,go=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,bo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Ao=function(t,e,n){return e in t?mo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Io=function(t,e){for(var n in e||(e={}))bo.call(e,n)&&Ao(t,n,e[n]);if(wo){var r,i=N(wo(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Mo.call(e,n)&&Ao(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t};function No(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={},r="relay"+e;return Object.keys(t).forEach((function(e){if(e.startsWith(r)){var i=e.replace(r,""),o=t[e];n[i]=o}})),n}function Eo(t){var e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),n=-1!==t.indexOf("?")?t.indexOf("?"):void 0,r=t.substring(0,e),i=t.substring(e+1,n).split("@"),o=I(n)<"u"?t.substring(n):"",a=c.parse(o),s="string"==typeof a.methods?a.methods.split(","):void 0;return{protocol:r,topic:xo(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:No(a),methods:s,expiryTimestamp:a.expiryTimestamp?parseInt(a.expiryTimestamp,10):void 0}}function xo(t){return t.startsWith("//")?t.substring(2):t}function ko(t){return"".concat(t.protocol,":").concat(t.topic,"@").concat(t.version,"?")+c.stringify(Io(function(t,e){return go(t,vo(e))}(Io({symKey:t.symKey},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n="relay",r={};return Object.keys(t).forEach((function(i){var o=n+e+i;t[i]&&(r[o]=t[i])})),r}(t.relay)),{expiryTimestamp:t.expiryTimestamp}),t.methods?{methods:t.methods.join(",")}:{}))}function To(t){var e=[];return t.forEach((function(t){var n=x(t.split(":"),2),r=n[0],i=n[1];e.push("".concat(r,":").concat(i))})),e}function Lo(t,e){for(var n=function(t){var e={};return null==t||t.forEach((function(t){var n=x(t.split(":"),2),r=n[0],i=n[1];e[r]||(e[r]={accounts:[],chains:[],events:[]}),e[r].accounts.push(t),e[r].chains.push("".concat(r,":").concat(i))})),e}(e=e.map((function(t){return t.replace("did:pkh:","")}))),r=0,i=Object.entries(n);r"u"}function _o(t,e){return!(!e||!Po(t))||"string"==typeof t&&!!t.trim().length}function Bo(t,e){return!(!e||!Po(t))||"number"==typeof t&&!isNaN(t)}function Ro(t,e){var n=e.requiredNamespaces,r=Object.keys(t.namespaces),i=Object.keys(n),o=!0;return!!J(i,r)&&(r.forEach((function(e){var r=t.namespaces[e],i=r.accounts,a=r.methods,s=r.events,u=To(i),c=n[e];J(j(e,c),u)&&J(c.methods,a)&&J(c.events,s)||(o=!1)})),o)}function Uo(t){return!(!_o(t,!1)||!t.includes(":"))&&2===t.split(":").length}function Qo(t){if(_o(t,!1))try{return I(new URL(t))<"u"}catch(t){return!1}return!1}function Yo(t){var e;return null==(e=null==t?void 0:t.proposer)?void 0:e.publicKey}function Wo(t){return null==t?void 0:t.topic}function Fo(t,e){var n=null;return _o(null==t?void 0:t.publicKey,!1)||(n=Do("MISSING_OR_INVALID","".concat(e," controller public key should be a string"))),n}function Vo(t){var e=!0;return Oo(t)?t.length&&(e=t.every((function(t){return _o(t,!1)}))):e=!1,e}function Ho(t,e){var n=null;return Object.values(t).forEach((function(t){if(!n){var r=function(t,e){var n=null;return Vo(null==t?void 0:t.methods)?Vo(null==t?void 0:t.events)||(n=Co("UNSUPPORTED_EVENTS","".concat(e,", events should be an array of strings or empty array for no events"))):n=Co("UNSUPPORTED_METHODS","".concat(e,", methods should be an array of strings or empty array for no methods")),n}(t,"".concat(e,", namespace"));r&&(n=r)}})),n}function Go(t,e,n){var r=null;if(t&&zo(t)){var i=Ho(t,e);i&&(r=i);var o=function(t,e,n){var r=null;return Object.entries(t).forEach((function(t){var i=x(t,2),o=i[0],a=i[1];if(!r){var s=function(t,e,n){var r=null;return Oo(e)&&e.length?e.forEach((function(t){r||Uo(t)||(r=Co("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(t,' should be a string and conform to "namespace:chainId" format')))})):Uo(t)||(r=Co("UNSUPPORTED_CHAINS","".concat(n,', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }'))),r}(o,j(o,a),"".concat(e," ").concat(n));s&&(r=s)}})),r}(t,e,n);o&&(r=o)}else r=Do("MISSING_OR_INVALID","".concat(e,", ").concat(n," should be an object with data"));return r}function qo(t,e){var n=null;if(t&&zo(t)){var r=Ho(t,e);r&&(n=r);var i=function(t,e){var n=null;return Object.values(t).forEach((function(t){if(!n){var r=function(t,e){var n=null;return Oo(t)?t.forEach((function(t){n||function(t){if(_o(t,!1)&&t.includes(":")){var e=t.split(":");if(3===e.length){var n=e[0]+":"+e[1];return!!e[2]&&Uo(n)}}return!1}(t)||(n=Co("UNSUPPORTED_ACCOUNTS","".concat(e,", account ").concat(t,' should be a string and conform to "namespace:chainId:address" format')))})):n=Co("UNSUPPORTED_ACCOUNTS","".concat(e,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}(null==t?void 0:t.accounts,"".concat(e," namespace"));r&&(n=r)}})),n}(t,e);i&&(n=i)}else n=Do("MISSING_OR_INVALID","".concat(e,", namespaces should be an object with data"));return n}function Zo(t){return _o(t.protocol,!0)}function Jo(t,e){var n=!1;return e&&!t?n=!0:t&&Oo(t)&&t.length&&t.forEach((function(t){n=Zo(t)})),n}function Xo(t){return"number"==typeof t}function Ko(t){return I(t)<"u"&&null!==I(t)}function $o(t){return!!(t&&"object"==I(t)&&t.code&&Bo(t.code,!1)&&t.message&&_o(t.message,!1))}function ta(t){return!(Po(t)||!_o(t.method,!1))}function ea(t){return!(Po(t)||Po(t.result)&&Po(t.error)||!Bo(t.id,!1)||!_o(t.jsonrpc,!1))}function na(t){return!(Po(t)||!_o(t.name,!1))}function ra(t,e){return!(!Uo(e)||!function(t){var e=[];return Object.values(t).forEach((function(t){e.push.apply(e,E(To(t.accounts)))})),e}(t).includes(e))}function ia(t,e,n){return!!_o(n,!1)&&function(t,e){var n=[];return Object.values(t).forEach((function(t){To(t.accounts).includes(e)&&n.push.apply(n,E(t.methods))})),n}(t,e).includes(n)}function oa(t,e,n){return!!_o(n,!1)&&function(t,e){var n=[];return Object.values(t).forEach((function(t){To(t.accounts).includes(e)&&n.push.apply(n,E(t.events))})),n}(t,e).includes(n)}function aa(t,e,n){var r=null,i=function(t){var e={};return Object.keys(t).forEach((function(n){var r;n.includes(":")?e[n]=t[n]:null==(r=t[n].chains)||r.forEach((function(r){e[r]={methods:t[n].methods,events:t[n].events}}))})),e}(t),o=function(t){var e={};return Object.keys(t).forEach((function(n){if(n.includes(":"))e[n]=t[n];else{var r=To(t[n].accounts);null==r||r.forEach((function(r){e[r]={accounts:t[n].accounts.filter((function(t){return t.includes("".concat(r,":"))})),methods:t[n].methods,events:t[n].events}}))}})),e}(e),a=Object.keys(i),s=Object.keys(o),u=sa(Object.keys(t)),c=sa(Object.keys(e)),l=u.filter((function(t){return!c.includes(t)}));return l.length&&(r=Do("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n Required: ").concat(l.toString(),"\n Received: ").concat(Object.keys(e).toString()))),J(a,s)||(r=Do("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n Required: ").concat(a.toString(),"\n Approved: ").concat(s.toString()))),Object.keys(e).forEach((function(t){if(t.includes(":")&&!r){var i=To(e[t].accounts);i.includes(t)||(r=Do("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(t,"\n Required: ").concat(t,"\n Approved: ").concat(i.toString())))}})),a.forEach((function(t){r||(J(i[t].methods,o[t].methods)?J(i[t].events,o[t].events)||(r=Do("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(t))):r=Do("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(t)))})),r}function sa(t){return E(new Set(t.map((function(t){return t.includes(":")?t.split(":")[0]:t}))))}function ua(t,e){return Bo(t,!1)&&t<=e.max&&t>=e.min}function ca(){var t=V();return new Promise((function(e){switch(t){case U:e(F()&&(null==navigator?void 0:navigator.onLine));break;case B:e(function(){return L(this,null,A().mark((function t(){var e;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(W()&&(void 0===r?"undefined":I(r))<"u"&&null!=r&&r.NetInfo)){t.next=5;break}return t.next=3,null==r?void 0:r.NetInfo.fetch();case 3:return e=t.sent,t.abrupt("return",null==e?void 0:e.isConnected);case 5:return t.abrupt("return",!0);case 6:case"end":return t.stop()}}),t)})))}());break;case R:e(!0);break;default:e(!0)}}))}function la(t){switch(V()){case U:!function(t){!W()&&F()&&(window.addEventListener("online",(function(){return t(!0)})),window.addEventListener("offline",(function(){return t(!1)})))}(t);break;case B:!function(t){W()&&(void 0===r?"undefined":I(r))<"u"&&null!=r&&r.NetInfo&&(null==r||r.NetInfo.addEventListener((function(e){return t(null==e?void 0:e.isConnected)})))}(t)}}var ha={},da=b((function t(){v(this,t)}),null,[{key:"get",value:function(t){return ha[t]}},{key:"set",value:function(t,e){ha[t]=e}},{key:"delete",value:function(t){delete ha[t]}}])}).call(this,n(33),n(26),n(116).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);r.__exportStar(n(76),e),r.__exportStar(n(81),e),r.__exportStar(n(82),e),r.__exportStar(n(45),e)},function(t,e,n){n(7);var r=n(25);n.d(e,"parseConnectionError",(function(){return r.d}));var i=n(54);n.o(i,"IJsonRpcProvider")&&n.d(e,"IJsonRpcProvider",(function(){return i.IJsonRpcProvider})),n.o(i,"formatJsonRpcError")&&n.d(e,"formatJsonRpcError",(function(){return i.formatJsonRpcError})),n.o(i,"formatJsonRpcRequest")&&n.d(e,"formatJsonRpcRequest",(function(){return i.formatJsonRpcRequest})),n.o(i,"formatJsonRpcResult")&&n.d(e,"formatJsonRpcResult",(function(){return i.formatJsonRpcResult})),n.o(i,"getBigIntRpcId")&&n.d(e,"getBigIntRpcId",(function(){return i.getBigIntRpcId})),n.o(i,"isJsonRpcError")&&n.d(e,"isJsonRpcError",(function(){return i.isJsonRpcError})),n.o(i,"isJsonRpcRequest")&&n.d(e,"isJsonRpcRequest",(function(){return i.isJsonRpcRequest})),n.o(i,"isJsonRpcResponse")&&n.d(e,"isJsonRpcResponse",(function(){return i.isJsonRpcResponse})),n.o(i,"isJsonRpcResult")&&n.d(e,"isJsonRpcResult",(function(){return i.isJsonRpcResult})),n.o(i,"isLocalhostUrl")&&n.d(e,"isLocalhostUrl",(function(){return i.isLocalhostUrl})),n.o(i,"isReactNative")&&n.d(e,"isReactNative",(function(){return i.isReactNative})),n.o(i,"isWsUrl")&&n.d(e,"isWsUrl",(function(){return i.isWsUrl})),n.o(i,"payloadId")&&n.d(e,"payloadId",(function(){return i.payloadId}));var o=n(55);n.d(e,"formatJsonRpcError",(function(){return o.a})),n.d(e,"formatJsonRpcRequest",(function(){return o.b})),n.d(e,"formatJsonRpcResult",(function(){return o.c})),n.d(e,"getBigIntRpcId",(function(){return o.d})),n.d(e,"payloadId",(function(){return o.e})),n(56);var a=n(63);n.d(e,"IJsonRpcProvider",(function(){return a.a}));var s=n(57);n.d(e,"isLocalhostUrl",(function(){return s.a})),n.d(e,"isWsUrl",(function(){return s.b}));var u=n(58);n.d(e,"isJsonRpcError",(function(){return u.a})),n.d(e,"isJsonRpcRequest",(function(){return u.b})),n.d(e,"isJsonRpcResponse",(function(){return u.c})),n.d(e,"isJsonRpcResult",(function(){return u.d}))},function(t,e,n){n.d(e,"h",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return y})),n.d(e,"j",(function(){return m}));var r="EdDSA",i="JWT",o=".",a="base64url",s="utf8",u="utf8",c=":",l="did",h="key",d="base58btc",f="z",p="K36",y=32,m=32},function(t,e,n){n.d(e,"a",(function(){return C})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return j}));var r=n(15),i=n.n(r);n.d(e,"e",(function(){return i.a}));var o=n(8);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.maxSizeInBytes)throw new Error("[LinkedList] Value too big to insert into list: ".concat(t," with size ").concat(e.size));for(;this.size+e.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=e),this.tail=e):(this.head=e,this.tail=e),this.lengthInNodes++,this.sizeInBytes+=e.size}},{key:"shift",value:function(){if(this.head){var t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}}},{key:"toArray",value:function(){for(var t=[],e=this.head;null!==e;)t.push(e.value),e=e.next;return t}},{key:"length",get:function(){return this.lengthInNodes}},{key:"size",get:function(){return this.sizeInBytes}},{key:"toOrderedArray",value:function(){return Array.from(this)}},{key:Symbol.iterator,value:function(){var t=this.head;return{next:function(){if(!t)return{done:!0,value:null};var e=t.value;return t=t.next,{done:!1,value:e}}}}}]),m=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.level=null!=e?e:"error",this.levelValue=r.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=n,this.logs=new y(this.MAX_LOG_SIZE_IN_BYTES)}),[{key:"forwardToConsole",value:function(t,e){e===r.levels.values.error?console.error(t):e===r.levels.values.warn?console.warn(t):e===r.levels.values.debug?console.debug(t):e===r.levels.values.trace?console.trace(t):console.log(t)}},{key:"appendToLogs",value:function(t){this.logs.append(Object(o.b)({timestamp:(new Date).toISOString(),log:t}));var e="string"==typeof t?JSON.parse(t).level:t.level;e>=this.levelValue&&this.forwardToConsole(t,e)}},{key:"getLogs",value:function(){return this.logs}},{key:"clearLogs",value:function(){this.logs=new y(this.MAX_LOG_SIZE_IN_BYTES)}},{key:"getLogArray",value:function(){return Array.from(this.logs)}},{key:"logsToBlob",value:function(t){var e=this.getLogArray();return e.push(Object(o.b)({extraMetadata:t})),new Blob(e,{type:"application/json"})}}]),g=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.baseChunkLogger=new m(e,n)}),[{key:"write",value:function(t){this.baseChunkLogger.appendToLogs(t)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(t){return this.baseChunkLogger.logsToBlob(t)}},{key:"downloadLogsBlobInBrowser",value:function(t){var e=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=e,n.download="walletconnect-logs-".concat((new Date).toISOString(),".txt"),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(e)}}]),v=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.baseChunkLogger=new m(e,n)}),[{key:"write",value:function(t){this.baseChunkLogger.appendToLogs(t)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(t){return this.baseChunkLogger.logsToBlob(t)}}]),w=Object.defineProperty,b=Object.defineProperties,M=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,E=function(t,e,n){return e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},x=function(t,e){for(var n in e||(e={}))I.call(e,n)&&E(t,n,e[n]);if(A){var r,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(A(e));try{for(i.s();!(r=i.n()).done;)n=r.value,N.call(e,n)&&E(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},k=function(t,e){return b(t,M(e))};function T(t){return k(x({},t),{level:(null==t?void 0:t.level)||"info"})}function L(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return t[e]||""}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return t[n]=e,t}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return s(t.bindings)>"u"?L(t,e):t.bindings().context||""}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,r=j(t,n);return r.trim()?"".concat(r,"/").concat(e):e}function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,r=D(t,e,n),i=t.child({context:r});return S(i,r,n)}function O(t){return s(t.loggerOverride)<"u"&&"string"!=typeof t.loggerOverride?{logger:t.loggerOverride,chunkLoggerController:null}:("undefined"==typeof window?"undefined":s(window))<"u"?function(t){var e,n,r=new g(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:i()(k(x({},t.opts),{level:"trace",browser:k(x({},null==(n=t.opts)?void 0:n.browser),{write:function(t){return r.write(t)}})})),chunkLoggerController:r}}(t):function(t){var e,n=new v(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:i()(k(x({},t.opts),{level:"trace"}),n),chunkLoggerController:n}}(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(109),i=n(42),o=n(110),a=n(17),s=n(20),u=n(111);e.compare=r.compare,e.concat=i.concat,e.equals=o.equals,e.fromString=a.fromString,e.toString=s.toString,e.xor=u.xor},function(t,e,n){var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,o,a,s;if(c(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){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 f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){var i;return i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e,"string"),(e="symbol"==r(i)?i:i+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"a",(function(){return l}));var o="INTERNAL_ERROR",a="SERVER_ERROR",s=[-32700,-32600,-32601,-32602,-32603],u=[-32e3,-32099],c=i(i(i(i(i(i({},"PARSE_ERROR",{code:-32700,message:"Parse error"}),"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),o,{code:-32603,message:"Internal error"}),a,{code:-32e3,message:"Server error"}),l=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type ".concat(r(t)));try{return e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(e,(function(t,e){return"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e}))}catch(e){return t}var e}function o(t){return"string"==typeof t?t:(e=t,JSON.stringify(e,(function(t,e){return"bigint"==typeof e?e.toString()+"n":e}))||"");var e}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}))},function(t,e,n){(function(t){n.d(e,"a",(function(){return Ln})),n.d(e,"b",(function(){return _e})),n.d(e,"c",(function(){return Ce})),n.d(e,"d",(function(){return be})),n.d(e,"e",(function(){return Ie})),n.d(e,"f",(function(){return gn})),n.d(e,"g",(function(){return Re}));var r=n(6),i=n.n(r),o=n(64),a=n(27),s=n(4),u=n(11),c=n(8),l=n(31),h=n(0),d=n(5),f=n(1),p=n(72),y=n(2),m=n(65),g=n(66),v=n.n(g),w=n(67),b=n.n(w);function M(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||z(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e,n){return e=N(e),function(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return I(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],N(t).constructor):e.apply(t,n))}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}function x(t,e){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="executing",p="completed",y={};function m(){}function g(){}function v(){}var w={};c(w,a,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(D([])));M&&M!==n&&r.call(M,a)&&(w=M);var A=v.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==k(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=d;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=x(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function x(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function L(t,e,n){return(e=C(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function z(t,e){if(t){if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);t[e];){var l=n[t.charCodeAt(e)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,a[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=a[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var h=e[i],d=0,f=a-1;(0!==h||d>>0,c[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=a-r;p!==a&&0===c[p];)p++;for(var y=u.repeat(n);pn;)o+=e[i&s>>(a-=n)];if(a&&(o+=e[i&s<=8&&(u-=8,s[l++]=255&c>>u)}if(u>=n||255&c<<8-u)throw new SyntaxError("Unexpected end of data");return s}(t,i,r,e)}})},$=J({prefix:"\0",name:"identity",encode:function(t){return function(t){return(new TextDecoder).decode(t)}(t)},decode:function(t){return function(t){return(new TextEncoder).encode(t)}(t)}}),tt=Object.freeze({__proto__:null,identity:$}),et=K({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),nt=Object.freeze({__proto__:null,base2:et}),rt=K({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),it=Object.freeze({__proto__:null,base8:rt}),ot=X({prefix:"9",name:"base10",alphabet:"0123456789"}),at=Object.freeze({__proto__:null,base10:ot}),st=K({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ut=K({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ct=Object.freeze({__proto__:null,base16:st,base16upper:ut}),lt=K({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ht=K({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),dt=K({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ft=K({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),pt=K({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),yt=K({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),mt=K({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),gt=K({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),vt=K({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),wt=Object.freeze({__proto__:null,base32:lt,base32upper:ht,base32pad:dt,base32padupper:ft,base32hex:pt,base32hexupper:yt,base32hexpad:mt,base32hexpadupper:gt,base32z:vt}),bt=X({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Mt=X({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),At=Object.freeze({__proto__:null,base36:bt,base36upper:Mt}),It=X({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Nt=X({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Et=Object.freeze({__proto__:null,base58btc:It,base58flickr:Nt}),xt=K({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),kt=K({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Tt=K({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Lt=K({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),St=Object.freeze({__proto__:null,base64:xt,base64pad:kt,base64url:Tt,base64urlpad:Lt}),jt=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Dt=jt.reduce((function(t,e,n){return t[n]=e,t}),[]),Ct=jt.reduce((function(t,e,n){return t[e.codePointAt(0)]=n,t}),[]),Ot=J({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce((function(t,e){return t+Dt[e]}),"")},decode:function(t){var e,n=[],r=O(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=Ct[i.codePointAt(0)];if(void 0===o)throw new Error("Non-base256emoji character: ".concat(i));n.push(o)}}catch(t){r.e(t)}finally{r.f()}return new Uint8Array(n)}}),zt=Object.freeze({__proto__:null,base256emoji:Ot}),Pt=Math.pow(2,31),_t=Math.pow(2,7),Bt=Math.pow(2,14),Rt=Math.pow(2,21),Ut=Math.pow(2,28),Qt=Math.pow(2,35),Yt=Math.pow(2,42),Wt=Math.pow(2,49),Ft=Math.pow(2,56),Vt=Math.pow(2,63),Ht=function t(e,n,r){n=n||[];for(var i=r=r||0;e>=Pt;)n[r++]=255&e|128,e/=128;for(;-128&e;)n[r++]=255&e|128,e>>>=7;return n[r]=0|e,t.bytes=r-i+1,n},Gt=function(t){return t<_t?1:t2&&void 0!==arguments[2]?arguments[2]:0;return Ht(t,e,n),e},Zt=function(t){return Gt(t)},Jt=function(t,e){var n=e.byteLength,r=Zt(t),i=r+Zt(n),o=new Uint8Array(i+n);return qt(t,o,0),qt(n,o,r),o.set(e,i),new Xt(t,n,e,o)},Xt=D((function t(e,n,r,i){S(this,t),this.code=e,this.size=n,this.digest=r,this.bytes=i})),Kt=function(t){var e=t.name,n=t.code,r=t.encode;return new $t(e,n,r)},$t=D((function t(e,n,r){S(this,t),this.name=e,this.code=n,this.encode=r}),[{key:"digest",value:function(t){var e=this;if(t instanceof Uint8Array){var n=this.encode(t);return n instanceof Uint8Array?Jt(this.code,n):n.then((function(t){return Jt(e.code,t)}))}throw Error("Unknown type, must be binary type")}}]),te=function(t){return function(e){return W(void 0,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=Uint8Array,n.next=3,crypto.subtle.digest(t,e);case 3:return n.t1=n.sent,n.abrupt("return",new n.t0(n.t1));case 5:case"end":return n.stop()}}),n)})))}},ee=Kt({name:"sha2-256",code:18,encode:te("SHA-256")}),ne=Kt({name:"sha2-512",code:19,encode:te("SHA-512")}),re=Object.freeze({__proto__:null,sha256:ee,sha512:ne}),ie=F,oe={code:0,name:"identity",encode:ie,digest:function(t){return Jt(0,ie(t))}},ae=Object.freeze({__proto__:null,identity:oe});new TextEncoder,new TextDecoder;var se=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},tt),nt),it),at),ct),wt),At),Et),St),zt);function ue(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function ce(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}Y(Y({},re),ae);var le=ce("utf8","u",(function(t){return"u"+new TextDecoder("utf8").decode(t)}),(function(t){return(new TextEncoder).encode(t.substring(1))})),he=ce("ascii","a",(function(t){for(var e="a",n=0;n0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?ue(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8",n=de[e];if(!n)throw new Error('Unsupported encoding "'.concat(e,'"'));return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode("".concat(n.prefix).concat(t)):ue(globalThis.Buffer.from(t,"utf-8"))}var pe="core",ye="".concat("wc","@2:").concat(pe,":"),me={database:":memory:"},ge="client_ed25519_seed",ve=f.ONE_DAY,we=f.SIX_HOURS,be="irn",Me="wss://relay.walletconnect.com",Ae="wss://relay.walletconnect.org",Ie={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},Ne="payload",Ee="connect",xe="disconnect",ke="error",Te=f.ONE_SECOND,Le="subscription_created",Se="subscription_deleted",je=(f.THIRTY_DAYS,1e3*f.FIVE_SECONDS),De=(f.THIRTY_DAYS,{wc_pairingDelete:{req:{ttl:f.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:f.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:f.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:f.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:f.ONE_DAY,prompt:!1,tag:0},res:{ttl:f.ONE_DAY,prompt:!1,tag:0}}}),Ce={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},Oe="history_created",ze="history_updated",Pe="history_deleted",_e={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},Be=(f.ONE_DAY,"verify-api"),Re="https://verify.walletconnect.com",Ue="https://verify.walletconnect.org",Qe=[Re,Ue],Ye=D((function t(e,n){var r=this;S(this,t),this.core=e,this.logger=n,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=ye,this.init=function(){return W(r,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=5;break}return t.next=3,this.getKeyChain();case 3:k(e=t.sent)<"u"&&(this.keychain=e),this.initialized=!0;case 5:case"end":return t.stop()}}),t,this)})))},this.has=function(t){return r.isInitialized(),r.keychain.has(t)},this.set=function(t,e){return W(r,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.keychain.set(t,e),n.next=4,this.persist();case 4:case"end":return n.stop()}}),n,this)})))},this.get=function(t){r.isInitialized();var e=r.keychain.get(t);if(k(e)>"u"){var n=Object(h.A)("NO_MATCHING_KEY","".concat(r.name,": ").concat(t)).message;throw new Error(n)}return e},this.del=function(t){return W(r,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.keychain.delete(t),e.next=4,this.persist();case 4:case"end":return e.stop()}}),e,this)})))},this.core=e,this.logger=Object(s.a)(n,this.name)}),[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setKeyChain",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,Object(h.ob)(t));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getKeyChain",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return e=t.sent,t.abrupt("return",k(e)<"u"?Object(h.qb)(e):void 0);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setKeyChain(this.keychain);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}]),We=D((function t(e,n,r){var i=this;S(this,t),this.core=e,this.logger=n,this.name="crypto",this.initialized=!1,this.init=function(){return W(i,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=5;break}return t.next=4,this.keychain.init();case 4:this.initialized=!0;case 5:case"end":return t.stop()}}),t,this)})))},this.hasKeys=function(t){return i.isInitialized(),i.keychain.has(t)},this.getClientId=function(){return W(i,null,T().mark((function t(){var e,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isInitialized(),t.next=3,this.getClientSeed();case 3:return e=t.sent,n=l.generateKeyPair(e),t.abrupt("return",l.encodeIss(n.publicKey));case 6:case"end":return t.stop()}}),t,this)})))},this.generateKeyPair=function(){i.isInitialized();var t=Object(h.t)();return i.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=function(t){return W(i,null,T().mark((function e(){var n,r,i,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.getClientSeed();case 3:return n=e.sent,r=l.generateKeyPair(n),i=Object(h.u)(),o=ve,e.next=9,l.signJWT(i,t,o,r);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})))},this.generateSharedKey=function(t,e,n){i.isInitialized();var r=i.getPrivateKey(t),o=Object(h.k)(r,e);return i.setSymKey(o,n)},this.setSymKey=function(t,e){return W(i,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),r=e||Object(h.I)(t),n.next=4,this.keychain.set(r,t);case 4:return n.abrupt("return",r);case 5:case"end":return n.stop()}}),n,this)})))},this.deleteKeyPair=function(t){return W(i,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.keychain.del(t);case 3:case"end":return e.stop()}}),e,this)})))},this.deleteSymKey=function(t){return W(i,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.keychain.del(t);case 3:case"end":return e.stop()}}),e,this)})))},this.encode=function(t,e,n){return W(i,null,T().mark((function r(){var i,o,a,s,u,l,d;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.isInitialized(),i=Object(h.wb)(n),o=Object(c.b)(e),!Object(h.T)(i)){r.next=7;break}return a=i.senderPublicKey,s=i.receiverPublicKey,r.next=6,this.generateSharedKey(a,s);case 6:t=r.sent;case 7:return u=this.getSymKey(t),l=i.type,d=i.senderPublicKey,r.abrupt("return",Object(h.m)({type:l,symKey:u,message:o,senderPublicKey:d}));case 9:case"end":return r.stop()}}),r,this)})))},this.decode=function(t,e,n){return W(i,null,T().mark((function r(){var i,o,a,s,u;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.isInitialized(),i=Object(h.vb)(e,n),!Object(h.T)(i)){r.next=7;break}return o=i.receiverPublicKey,a=i.senderPublicKey,r.next=6,this.generateSharedKey(o,a);case 6:t=r.sent;case 7:return r.prev=7,s=this.getSymKey(t),u=Object(h.j)({symKey:s,encoded:e}),r.abrupt("return",Object(c.a)(u));case 12:return r.prev=12,r.t0=r.catch(7),r.t1=this.logger,r.t2="Failed to decode message from topic: '".concat(t,"', clientId: '"),r.next=18,this.getClientId();case 18:r.t3=r.sent,r.t4=r.t2.concat.call(r.t2,r.t3,"'"),r.t1.error.call(r.t1,r.t4),this.logger.error(r.t0);case 22:case"end":return r.stop()}}),r,this,[[7,12]])})))},this.getPayloadType=function(t){var e=Object(h.l)(t);return Object(h.i)(e.type)},this.getPayloadSenderPublicKey=function(t){var e=Object(h.l)(t);return e.senderPublicKey?Object(d.toString)(e.senderPublicKey,h.a):void 0},this.core=e,this.logger=Object(s.a)(n,this.name),this.keychain=r||new Ye(this.core,this.logger)}),[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"setPrivateKey",value:function(t,e){return W(this,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.keychain.set(t,e);case 2:return n.abrupt("return",t);case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getPrivateKey",value:function(t){return this.keychain.get(t)}},{key:"getClientSeed",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e="",t.prev=1,e=this.keychain.get(ge),t.next=10;break;case 5:return t.prev=5,t.t0=t.catch(1),e=Object(h.u)(),t.next=10,this.keychain.set(ge,e);case 10:return t.abrupt("return",fe(e,"base16"));case 11:case"end":return t.stop()}}),t,this,[[1,5]])})))}},{key:"getSymKey",value:function(t){return this.keychain.get(t)}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}]),Fe=function(t){function e(t,n){var r;return S(this,e),(r=A(this,e,[t,n])).logger=t,r.core=n,r.messages=new Map,r.name="messages",r.version="0.3",r.initialized=!1,r.storagePrefix=ye,r.init=function(){return W(I(r),null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=15;break}return this.logger.trace("Initialized"),t.prev=2,t.next=5,this.getRelayerMessages();case 5:k(e=t.sent)<"u"&&(this.messages=e),this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",size:this.messages.size}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(t.t0);case 12:return t.prev=12,this.initialized=!0,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[2,9,12,15]])})))},r.set=function(t,e){return W(I(r),null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),r=Object(h.J)(e),k(i=this.messages.get(t))>"u"&&(i={}),n.t0=k(i[r])<"u",n.t0){n.next=10;break}return i[r]=e,this.messages.set(t,i),n.next=10,this.persist();case 10:return n.abrupt("return",r);case 11:case"end":return n.stop()}}),n,this)})))},r.get=function(t){r.isInitialized();var e=r.messages.get(t);return k(e)>"u"&&(e={}),e},r.has=function(t,e){return r.isInitialized(),k(r.get(t)[Object(h.J)(e)])<"u"},r.del=function(t){return W(I(r),null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.messages.delete(t),e.next=4,this.persist();case 4:case"end":return e.stop()}}),e,this)})))},r.logger=Object(s.a)(t,r.name),r.core=n,r}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setRelayerMessages",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,Object(h.ob)(t));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getRelayerMessages",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return e=t.sent,t.abrupt("return",k(e)<"u"?Object(h.qb)(e):void 0);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setRelayerMessages(this.messages);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.f),Ve=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).relayer=t,i.logger=n,i.events=new r.EventEmitter,i.name="publisher",i.queue=new Map,i.publishTimeout=Object(f.toMiliseconds)(f.ONE_MINUTE),i.failedPublishTimeout=Object(f.toMiliseconds)(f.ONE_SECOND),i.needsTransportRestart=!1,i.publish=function(t,e,n){return W(I(i),null,T().mark((function r(){var i,o,a,s,u,c,l,d,f,p,m,g=this;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:n}}),o=(null==n?void 0:n.ttl)||we,a=Object(h.F)(n),s=(null==n?void 0:n.prompt)||!1,u=(null==n?void 0:n.tag)||0,c=(null==n?void 0:n.id)||Object(y.getBigIntRpcId)().toString(),l={topic:t,message:e,opts:{ttl:o,relay:a,prompt:s,tag:u,id:c}},d="Failed to publish payload, please try again. id:".concat(c," tag:").concat(u),f=Date.now(),m=1,r.prev=3;case 4:if(void 0!==p){r.next=20;break}if(!(Date.now()-f>this.publishTimeout)){r.next=7;break}throw new Error(d);case 7:return this.logger.trace({id:c,attempts:m},"publisher.publish - attempt ".concat(m)),r.next=10,Object(h.h)(this.rpcPublish(t,e,o,a,s,u,c).catch((function(t){return g.logger.warn(t)})),this.publishTimeout,d);case 10:return r.next=12,r.sent;case 12:if(p=r.sent,m++,r.t0=p,r.t0){r.next=18;break}return r.next=18,new Promise((function(t){return setTimeout(t,g.failedPublishTimeout)}));case 18:r.next=4;break;case 20:this.relayer.events.emit(Ie.publish,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:t,message:e,opts:n}}),r.next=28;break;case 23:if(r.prev=23,r.t1=r.catch(3),this.logger.debug("Failed to Publish Payload"),this.logger.error(r.t1),null==(i=null==n?void 0:n.internal)||!i.throwOnFailedPublish){r.next=27;break}throw r.t1;case 27:this.queue.set(c,l);case 28:case"end":return r.stop()}}),r,this,[[3,23]])})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.relayer=t,i.logger=Object(s.a)(n,i.name),i.registerEventListeners(),i}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"rpcPublish",value:function(t,e,n,r,i,o,a){var s,u,c,l,d={method:Object(h.E)(r.protocol).publish,params:{topic:t,message:e,ttl:n,prompt:i,tag:o},id:a};return Object(h.U)(null==(s=d.params)?void 0:s.prompt)&&(null==(u=d.params)||delete u.prompt),Object(h.U)(null==(c=d.params)?void 0:c.tag)&&(null==(l=d.params)||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}},{key:"removeRequestFromQueue",value:function(t){this.queue.delete(t)}},{key:"checkQueue",value:function(){var t=this;this.queue.forEach((function(e){return W(t,null,T().mark((function t(){var n,r,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.topic,r=e.message,i=e.opts,t.next=3,this.publish(n,r,i);case 3:case"end":return t.stop()}}),t,this)})))}))}},{key:"registerEventListeners",value:function(){var t=this;this.relayer.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){if(t.needsTransportRestart)return t.needsTransportRestart=!1,void t.relayer.events.emit(Ie.connection_stalled);t.checkQueue()})),this.relayer.on(Ie.message_ack,(function(e){t.removeRequestFromQueue(e.id.toString())}))}}])}(u.g),He=D((function t(){var e=this;S(this,t),this.map=new Map,this.set=function(t,n){var r=e.get(t);e.exists(t,n)||e.map.set(t,[].concat(M(r),[n]))},this.get=function(t){return e.map.get(t)||[]},this.exists=function(t,n){return e.get(t).includes(n)},this.delete=function(t,n){if(k(n)>"u")e.map.delete(t);else if(e.map.has(t)){var r=e.get(t);if(e.exists(t,n)){var i=r.filter((function(t){return t!==n}));i.length?e.map.set(t,i):e.map.delete(t)}}},this.clear=function(){e.map.clear()}}),[{key:"topics",get:function(){return Array.from(this.map.keys())}}]),Ge=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,$e=function(t,e,n){return e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},tn=function(t,e){for(var n in e||(e={}))Xe.call(e,n)&&$e(t,n,e[n]);if(Je){var r,i=O(Je(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Ke.call(e,n)&&$e(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},en=function(t,e){return qe(t,Ze(e))},nn=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).relayer=t,i.logger=n,i.subscriptions=new Map,i.topicMap=new He,i.events=new r.EventEmitter,i.name="subscription",i.version="0.3",i.pending=new Map,i.cached=[],i.initialized=!1,i.pendingSubscriptionWatchLabel="pending_sub_watch_label",i.pollingInterval=20,i.storagePrefix=ye,i.subscribeTimeout=Object(f.toMiliseconds)(f.ONE_MINUTE),i.restartInProgress=!1,i.batchSubscribeTopicsLimit=500,i.init=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=7;break}return this.logger.trace("Initialized"),this.registerEventListeners(),t.next=6,this.relayer.core.crypto.getClientId();case 6:this.clientId=t.sent;case 7:case"end":return t.stop()}}),t,this)})))},i.subscribe=function(t,e){return W(I(i),null,T().mark((function n(){var r,i,o;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.restartToComplete();case 2:return this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}}),n.prev=5,r=Object(h.F)(e),i={topic:t,relay:r},this.pending.set(t,i),n.next=10,this.rpcSubscribe(t,r);case 10:return o=n.sent,n.abrupt("return",("string"==typeof o&&(this.onSubscribe(o,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}})),o));case 14:throw n.prev=14,n.t0=n.catch(5),this.logger.debug("Failed to Subscribe Topic"),this.logger.error(n.t0),n.t0;case 17:case"end":return n.stop()}}),n,this,[[5,14]])})))},i.unsubscribe=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.restartToComplete();case 2:if(this.isInitialized(),!(k(null==e?void 0:e.id)<"u")){n.next=8;break}return n.next=6,this.unsubscribeById(t,e.id,e);case 6:n.next=10;break;case 8:return n.next=10,this.unsubscribeByTopic(t,e);case 10:case"end":return n.stop()}}),n,this)})))},i.isSubscribed=function(t){return W(I(i),null,T().mark((function e(){var n,r=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topics.includes(t)){e.next=2;break}return e.abrupt("return",!0);case 2:return n="".concat(this.pendingSubscriptionWatchLabel,"_").concat(t),e.next=5,new Promise((function(e,i){var o=new f.Watch;o.start(n);var a=setInterval((function(){!r.pending.has(t)&&r.topics.includes(t)&&(clearInterval(a),o.stop(n),e(!0)),o.elapsed(n)>=je&&(clearInterval(a),o.stop(n),i(new Error("Subscription resolution timeout")))}),r.pollingInterval)})).catch((function(){return!1}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.start=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onConnect();case 2:case"end":return t.stop()}}),t,this)})))},i.stop=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onDisconnect();case 2:case"end":return t.stop()}}),t,this)})))},i.restart=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.restartInProgress=!0,t.next=3,this.restore();case 3:return t.next=5,this.reset();case 5:this.restartInProgress=!1;case 6:case"end":return t.stop()}}),t,this)})))},i.relayer=t,i.logger=Object(s.a)(n,i.name),i.clientId="",i}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.subscriptions.size}},{key:"ids",get:function(){return Array.from(this.subscriptions.keys())}},{key:"values",get:function(){return Array.from(this.subscriptions.values())}},{key:"topics",get:function(){return this.topicMap.topics}},{key:"hasSubscription",value:function(t,e){var n=!1;try{n=this.getSubscription(t).topic===e}catch(t){}return n}},{key:"onEnable",value:function(){this.cached=[],this.initialized=!0}},{key:"onDisable",value:function(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}},{key:"unsubscribeByTopic",value:function(t,e){return W(this,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=this.topicMap.get(t),n.next=3,Promise.all(r.map((function(n){return W(i,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.unsubscribeById(t,n,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r,this)})))})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"unsubscribeById",value:function(t,e,n){return W(this,null,T().mark((function r(){var i,o;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:n}}),r.prev=1,i=Object(h.F)(n),r.next=5,this.rpcUnsubscribe(t,e,i);case 5:return o=Object(h.G)("USER_DISCONNECTED","".concat(this.name,", ").concat(t)),r.next=8,this.onUnsubscribe(t,e,o);case 8:this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:n}}),r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(r.t0),r.t0;case 15:case"end":return r.stop()}}),r,this,[[1,12]])})))}},{key:"rpcSubscribe",value:function(t,e){return W(this,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={method:Object(h.E)(e.protocol).subscribe,params:{topic:t}},this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),n.prev=2,n.next=5,Object(h.h)(this.relayer.request(r).catch((function(t){return i.logger.warn(t)})),this.subscribeTimeout);case 5:return n.next=7,n.sent;case 7:if(!n.sent){n.next=11;break}n.t0=Object(h.J)(t+this.clientId),n.next=12;break;case 11:n.t0=null;case 12:return n.abrupt("return",n.t0);case 15:n.prev=15,n.t1=n.catch(2),this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Ie.connection_stalled);case 18:return n.abrupt("return",null);case 19:case"end":return n.stop()}}),n,this,[[2,15]])})))}},{key:"rpcBatchSubscribe",value:function(t){return W(this,null,T().mark((function e(){var n,r,i=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return");case 2:return n=t[0].relay,r={method:Object(h.E)(n.protocol).batchSubscribe,params:{topics:t.map((function(t){return t.topic}))}},this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),e.prev=4,e.next=7,Object(h.h)(this.relayer.request(r).catch((function(t){return i.logger.warn(t)})),this.subscribeTimeout);case 7:return e.next=9,e.sent;case 9:return e.abrupt("return",e.sent);case 12:e.prev=12,e.t0=e.catch(4),this.relayer.events.emit(Ie.connection_stalled);case 15:case"end":return e.stop()}}),e,this,[[4,12]])})))}},{key:"rpcUnsubscribe",value:function(t,e,n){var r={method:Object(h.E)(n.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}},{key:"onSubscribe",value:function(t,e){this.setSubscription(t,en(tn({},e),{id:t})),this.pending.delete(e.topic)}},{key:"onBatchSubscribe",value:function(t){var e=this;t.length&&t.forEach((function(t){e.setSubscription(t.id,tn({},t)),e.pending.delete(t.topic)}))}},{key:"onUnsubscribe",value:function(t,e,n){return W(this,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,n),r.next=4,this.relayer.messages.del(t);case 4:case"end":return r.stop()}}),r,this)})))}},{key:"setRelayerSubscriptions",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.relayer.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getRelayerSubscriptions",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.relayer.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"setSubscription",value:function(t,e){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e)}},{key:"addSubscription",value:function(t,e){this.subscriptions.set(t,tn({},e)),this.topicMap.set(e.topic,t),this.events.emit(Le,e)}},{key:"getSubscription",value:function(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});var e=this.subscriptions.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw new Error(n)}return e}},{key:"deleteSubscription",value:function(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});var n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(Se,en(tn({},n),{reason:e}))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setRelayerSubscriptions(this.values);case 2:this.events.emit("subscription_sync");case 3:case"end":return t.stop()}}),t,this)})))}},{key:"reset",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cached.length){t.next=10;break}e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit),n=0;case 3:if(!(n"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.subscriptions.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),this.logger.error("".concat(this.name,": ").concat(JSON.stringify(this.values))),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored subscriptions for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",subscriptions:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore subscriptions for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"batchSubscribe",value:function(t){return W(this,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.rpcBatchSubscribe(t);case 4:n=e.sent,Object(h.V)(n)&&this.onBatchSubscribe(n.map((function(e,n){return en(tn({},t[n]),{id:e})})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"onConnect",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.restart();case 2:this.onEnable();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"onDisconnect",value:function(){this.onDisable()}},{key:"checkPending",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized&&this.relayer.connected){t.next=2;break}return t.abrupt("return");case 2:return e=[],this.pending.forEach((function(t){e.push(t)})),t.next=6,this.batchSubscribe(e);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"registerEventListeners",value:function(){var t=this;this.relayer.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){return W(t,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkPending();case 2:case"end":return t.stop()}}),t,this)})))})),this.events.on(Le,(function(e){return W(t,null,T().mark((function t(){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Le,this.logger.info("Emitting ".concat(n)),this.logger.debug({type:"event",event:n,data:e}),t.next=5,this.persist();case 5:case"end":return t.stop()}}),t,this)})))})),this.events.on(Se,(function(e){return W(t,null,T().mark((function t(){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Se,this.logger.info("Emitting ".concat(n)),this.logger.debug({type:"event",event:n,data:e}),t.next=5,this.persist();case 5:case"end":return t.stop()}}),t,this)})))}))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}},{key:"restartToComplete",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.restartInProgress,!t.t0){t.next=4;break}return t.next=4,new Promise((function(t){var n=setInterval((function(){e.restartInProgress||(clearInterval(n),t())}),e.pollingInterval)}));case 4:case"end":return t.stop()}}),t,this)})))}}])}(u.k),rn=Object.defineProperty,on=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,un=function(t,e,n){return e in t?rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},cn=function(t,e){for(var n in e||(e={}))an.call(e,n)&&un(t,n,e[n]);if(on){var r,i=O(on(e));try{for(i.s();!(r=i.n()).done;)n=r.value,sn.call(e,n)&&un(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},ln=function(t){function e(t){var n;return S(this,e),(n=A(this,e,[t])).protocol="wc",n.version=2,n.events=new r.EventEmitter,n.name="relayer",n.transportExplicitlyClosed=!1,n.initialized=!1,n.connectionAttemptInProgress=!1,n.connectionStatusPollingInterval=20,n.staleConnectionErrors=["socket hang up","socket stalled","interrupted"],n.hasExperiencedNetworkDisruption=!1,n.requestsInFlight=new Map,n.heartBeatTimeout=Object(f.toMiliseconds)(f.THIRTY_SECONDS+f.ONE_SECOND),n.request=function(t){return W(I(n),null,T().mark((function e(){var n,r,i,o,a,s=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logger.debug("Publishing Request Payload"),i=t.id||Object(y.getBigIntRpcId)().toString(),e.next=4,this.toEstablishConnection();case 4:return e.prev=4,o=this.provider.request(t),this.requestsInFlight.set(i,{promise:o,request:t}),this.logger.trace({id:i,method:t.method,topic:null==(n=t.params)?void 0:n.topic},"relayer.request - attempt to publish..."),e.next=9,new Promise((function(t,e){return W(s,null,T().mark((function n(){var r,a;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function(){e(new Error("relayer.request - publish interrupted, id: ".concat(i)))},this.provider.on(xe,r),n.next=4,o;case 4:a=n.sent,this.provider.off(xe,r),t(a);case 6:case"end":return n.stop()}}),n,this)})))}));case 9:return a=e.sent,e.abrupt("return",(this.logger.trace({id:i,method:t.method,topic:null==(r=t.params)?void 0:r.topic},"relayer.request - published"),a));case 13:throw e.prev=13,e.t0=e.catch(4),this.logger.debug("Failed to Publish Request: ".concat(i)),e.t0;case 16:return e.prev=16,this.requestsInFlight.delete(i),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[4,13,16,19]])})))},n.resetPingTimeout=function(){if(Object(h.N)())try{clearTimeout(n.pingTimeout),n.pingTimeout=setTimeout((function(){var t,e,r;null==(r=null==(e=null==(t=n.provider)?void 0:t.connection)?void 0:e.socket)||r.terminate()}),n.heartBeatTimeout)}catch(t){n.logger.warn(t)}},n.onPayloadHandler=function(t){n.onProviderPayload(t),n.resetPingTimeout()},n.onConnectHandler=function(){n.startPingTimeout(),n.events.emit(Ie.connect)},n.onDisconnectHandler=function(){n.onProviderDisconnect()},n.onProviderErrorHandler=function(t){n.logger.error(t),n.events.emit(Ie.error,t),n.logger.info("Fatal socket error received, closing transport"),n.transportClose()},n.registerProviderListeners=function(){n.provider.on(Ne,n.onPayloadHandler),n.provider.on(Ee,n.onConnectHandler),n.provider.on(xe,n.onDisconnectHandler),n.provider.on(ke,n.onProviderErrorHandler)},n.core=t.core,n.logger=k(t.logger)<"u"&&"string"!=typeof t.logger?Object(s.a)(t.logger,n.name):Object(s.e)(Object(s.c)({level:t.logger||"error"})),n.messages=new Fe(n.logger,t.core),n.subscriber=new nn(I(n),n.logger),n.publisher=new Ve(I(n),n.logger),n.relayUrl=(null==t?void 0:t.relayUrl)||Me,n.projectId=t.projectId,n.bundleId=Object(h.w)(),n.provider={},n}return E(e,t),D(e,[{key:"init",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),this.registerEventListeners(),t.next=4,this.createProvider();case 4:return t.next=6,Promise.all([this.messages.init(),this.subscriber.init()]);case 6:return t.prev=6,t.next=9,this.transportOpen();case 9:t.next=16;break;case 11:return t.prev=11,t.t0=t.catch(6),this.logger.warn("Connection via ".concat(this.relayUrl," failed, attempting to connect via failover domain ").concat(Ae,"...")),t.next=16,this.restartTransport(Ae);case 16:this.initialized=!0,setTimeout((function(){return W(e,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=0===this.subscriber.topics.length&&0===this.subscriber.pending.size,!t.t0){t.next=6;break}return this.logger.info("No topics subscribed to after init, closing transport"),t.next=5,this.transportClose();case 5:this.transportExplicitlyClosed=!1;case 6:case"end":return t.stop()}}),t,this)})))}),1e4);case 17:case"end":return t.stop()}}),t,this,[[6,11]])})))}},{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"connected",get:function(){var t,e,n;return 1===(null==(n=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:n.readyState)}},{key:"connecting",get:function(){var t,e,n;return 0===(null==(n=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:n.readyState)}},{key:"publish",value:function(t,e,n){return W(this,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.isInitialized(),r.next=3,this.publisher.publish(t,e,n);case 3:return r.next=5,this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()});case 5:case"end":return r.stop()}}),r,this)})))}},{key:"subscribe",value:function(t,e){return W(this,null,T().mark((function n(){var r,i,o,a,s=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"",a=function e(n){n.topic===t&&(s.subscriber.off(Le,e),o())},n.next=5,Promise.all([new Promise((function(t){o=t,s.subscriber.on(Le,a)})),new Promise((function(n){return W(s,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.subscriber.subscribe(t,e);case 2:if(r.t0=r.sent,r.t0){r.next=5;break}r.t0=i;case 5:i=r.t0,n();case 7:case"end":return r.stop()}}),r,this)})))}))]);case 5:return n.abrupt("return",i);case 6:case"end":return n.stop()}}),n,this)})))}},{key:"unsubscribe",value:function(t,e){return W(this,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),n.next=3,this.subscriber.unsubscribe(t,e);case 3:case"end":return n.stop()}}),n,this)})))}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}},{key:"off",value:function(t,e){this.events.off(t,e)}},{key:"removeListener",value:function(t,e){this.events.removeListener(t,e)}},{key:"transportDisconnect",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)){t.next=9;break}return t.prev=1,t.next=4,Promise.all(Array.from(this.requestsInFlight.values()).map((function(t){return t.promise})));case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),this.logger.warn(t.t0);case 9:if(!this.hasExperiencedNetworkDisruption&&!this.connected){t.next=14;break}return t.next=12,Object(h.h)(this.provider.disconnect(),2e3,"provider.disconnect()").catch((function(){return e.onProviderDisconnect()}));case 12:t.next=15;break;case 14:this.onProviderDisconnect();case 15:case"end":return t.stop()}}),t,this,[[1,6]])})))}},{key:"transportClose",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.transportExplicitlyClosed=!0,t.next=3,this.transportDisconnect();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"transportOpen",value:function(t){return W(this,null,T().mark((function e(){var n,r=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.confirmOnlineStateOrThrow();case 2:if(e.t0=t&&t!==this.relayUrl,!e.t0){e.next=9;break}return this.relayUrl=t,e.next=7,this.transportDisconnect();case 7:return e.next=9,this.createProvider();case 9:return this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1,e.prev=11,e.next=14,new Promise((function(t,e){return W(r,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function t(){i.provider.off(xe,t),e(new Error("Connection interrupted while trying to subscribe"))},this.provider.on(xe,r),n.next=4,Object(h.h)(this.provider.connect(),Object(f.toMiliseconds)(f.ONE_MINUTE),"Socket stalled when trying to connect to ".concat(this.relayUrl)).catch((function(t){e(t)}));case 4:return n.next=6,this.subscriber.start();case 6:this.hasExperiencedNetworkDisruption=!1,t();case 8:case"end":return n.stop()}}),n,this)})))}));case 14:e.next=22;break;case 16:if(e.prev=16,e.t1=e.catch(11),this.logger.error(e.t1),n=e.t1,this.isConnectionStalled(n.message)){e.next=22;break}throw e.t1;case 22:return e.prev=22,this.connectionAttemptInProgress=!1,e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[11,16,22,25]])})))}},{key:"restartTransport",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.connectionAttemptInProgress,e.t0){e.next=11;break}return this.relayUrl=t||this.relayUrl,e.next=5,this.confirmOnlineStateOrThrow();case 5:return e.next=7,this.transportClose();case 7:return e.next=9,this.createProvider();case 9:return e.next=11,this.transportOpen();case 11:case"end":return e.stop()}}),e,this)})))}},{key:"confirmOnlineStateOrThrow",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(h.O)();case 2:if(t.sent){t.next=4;break}throw new Error("No internet connection detected. Please restart your network and try again.");case 4:case"end":return t.stop()}}),t)})))}},{key:"startPingTimeout",value:function(){var t,e,n,r,i,o=this;if(Object(h.N)())try{null!=(e=null==(t=this.provider)?void 0:t.connection)&&e.socket&&(null==(i=null==(r=null==(n=this.provider)?void 0:n.connection)?void 0:r.socket)||i.once("ping",(function(){o.resetPingTimeout()}))),this.resetPingTimeout()}catch(t){this.logger.warn(t)}}},{key:"isConnectionStalled",value:function(t){return this.staleConnectionErrors.some((function(e){return t.includes(e)}))}},{key:"createProvider",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.provider.connection&&this.unregisterProviderListeners(),t.next=3,this.core.crypto.signJWT(this.relayUrl);case 3:e=t.sent,this.provider=new p.a(new m.a(Object(h.q)({sdkVersion:"2.12.2",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"recordMessageEvent",value:function(t){return W(this,null,T().mark((function e(){var n,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.message,e.next=3,this.messages.set(n,r);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"shouldIgnoreMessageEvent",value:function(t){return W(this,null,T().mark((function e(){var n,r,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.topic,(r=t.message)&&0!==r.length){e.next=3;break}return e.abrupt("return",(this.logger.debug("Ignoring invalid/empty message: ".concat(r)),!0));case 3:return e.next=5,this.subscriber.isSubscribed(n);case 5:if(e.sent){e.next=7;break}return e.abrupt("return",(this.logger.debug("Ignoring message for non-subscribed topic ".concat(n)),!0));case 7:return i=this.messages.has(n,r),e.abrupt("return",(i&&this.logger.debug("Ignoring duplicate message: ".concat(r)),i));case 9:case"end":return e.stop()}}),e,this)})))}},{key:"onProviderPayload",value:function(t){return W(this,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),!Object(y.isJsonRpcRequest)(t)){e.next=13;break}if(t.method.endsWith("_subscription")){e.next=3;break}return e.abrupt("return");case 3:return n=t.params,r=n.data,i=r.topic,o=r.message,a=r.publishedAt,s={topic:i,message:o,publishedAt:a},this.logger.debug("Emitting Relayer Payload"),this.logger.trace(cn({type:"event",event:n.id},s)),this.events.emit(n.id,s),e.next=9,this.acknowledgePayload(t);case 9:return e.next=11,this.onMessageEvent(s);case 11:e.next=14;break;case 13:Object(y.isJsonRpcResponse)(t)&&this.events.emit(Ie.message_ack,t);case 14:case"end":return e.stop()}}),e,this)})))}},{key:"onMessageEvent",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.shouldIgnoreMessageEvent(t);case 2:if(e.t0=e.sent,e.t0){e.next=7;break}return this.events.emit(Ie.message,t),e.next=7,this.recordMessageEvent(t);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"acknowledgePayload",value:function(t){return W(this,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(y.formatJsonRpcResult)(t.id,!0),e.next=3,this.provider.connection.send(n);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"unregisterProviderListeners",value:function(){this.provider.off(Ne,this.onPayloadHandler),this.provider.off(Ee,this.onConnectHandler),this.provider.off(xe,this.onDisconnectHandler),this.provider.off(ke,this.onProviderErrorHandler)}},{key:"registerEventListeners",value:function(){return W(this,null,T().mark((function t(){var e,n=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(h.O)();case 2:e=t.sent,Object(h.ub)((function(t){return W(n,null,T().mark((function n(){var r=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e!==t,!n.t0){n.next=12;break}if(e=t,!t){n.next=8;break}return n.next=6,this.restartTransport().catch((function(t){return r.logger.error(t)}));case 6:n.next=12;break;case 8:return this.hasExperiencedNetworkDisruption=!0,n.next=11,this.transportDisconnect();case 11:this.transportExplicitlyClosed=!1;case 12:case"end":return n.stop()}}),n,this)})))}));case 4:case"end":return t.stop()}}),t)})))}},{key:"onProviderDisconnect",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.subscriber.stop();case 2:this.events.emit(Ie.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&setTimeout((function(){return W(e,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.transportOpen().catch((function(t){return e.logger.error(t)}));case 2:case"end":return t.stop()}}),t,this)})))}),Object(f.toMiliseconds)(Te));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}},{key:"toEstablishConnection",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.confirmOnlineStateOrThrow();case 2:if(t.t0=!this.connected,!t.t0){t.next=10;break}if(t.t1=this.connectionAttemptInProgress,!t.t1){t.next=8;break}return t.next=8,new Promise((function(t){var n=setInterval((function(){e.connected&&(clearInterval(n),t())}),e.connectionStatusPollingInterval)}));case 8:return t.next=10,this.transportOpen();case 10:case"end":return t.stop()}}),t,this)})))}}])}(u.h),hn=Object.defineProperty,dn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,yn=function(t,e,n){return e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},mn=function(t,e){for(var n in e||(e={}))fn.call(e,n)&&yn(t,n,e[n]);if(dn){var r,i=O(dn(e));try{for(i.s();!(r=i.n()).done;)n=r.value,pn.call(e,n)&&yn(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},gn=function(t){function e(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return S(this,e),(i=A(this,e,[t,n,r,o])).core=t,i.logger=n,i.name=r,i.map=new Map,i.version="0.3",i.cached=[],i.initialized=!1,i.storagePrefix=ye,i.recentlyDeleted=[],i.recentlyDeletedLimit=200,i.init=function(){return W(I(i),null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=8;break}return this.logger.trace("Initialized"),t.next=5,this.restore();case 5:this.cached.forEach((function(t){e.getKey&&null!==t&&!Object(h.U)(t)?e.map.set(e.getKey(t),t):Object(h.P)(t)?e.map.set(t.id,t):Object(h.S)(t)&&e.map.set(t.topic,t)})),this.cached=[],this.initialized=!0;case 8:case"end":return t.stop()}}),t,this)})))},i.set=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),!this.map.has(t)){n.next=6;break}return n.next=4,this.update(t,e);case 4:n.next=11;break;case 6:return this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),n.next=11,this.persist();case 11:case"end":return n.stop()}}),n,this)})))},i.get=function(t){return i.isInitialized(),i.logger.debug("Getting value"),i.logger.trace({type:"method",method:"get",key:t}),i.getData(t)},i.getAll=function(t){return i.isInitialized(),t?i.values.filter((function(e){return Object.keys(t).every((function(n){return v()(e[n],t[n])}))})):i.values},i.update=function(t,e){return W(I(i),null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e}),r=mn(mn({},this.getData(t)),e),this.map.set(t,r),n.next=5,this.persist();case 5:case"end":return n.stop()}}),n,this)})))},i.delete=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),n.t0=this.map.has(t),!n.t0){n.next=9;break}return this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),this.addToRecentlyDeleted(t),n.next=9,this.persist();case 9:case"end":return n.stop()}}),n,this)})))},i.logger=Object(s.a)(n,i.name),i.storagePrefix=o,i.getKey=a,i}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.map.size}},{key:"keys",get:function(){return Array.from(this.map.keys())}},{key:"values",get:function(){return Array.from(this.map.values())}},{key:"addToRecentlyDeleted",value:function(t){this.recentlyDeleted.push(t),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}},{key:"setDataStore",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getDataStore",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getData",value:function(t){var e=this.map.get(t);if(!e){if(this.recentlyDeleted.includes(t)){var n=Object(h.A)("MISSING_OR_INVALID","Record was recently deleted - ".concat(this.name,": ").concat(t)).message;throw this.logger.error(n),new Error(n)}var r=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw this.logger.error(r),new Error(r)}return e}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setDataStore(this.values);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getDataStore();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.map.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored value for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",value:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore value for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.j),vn=D((function t(e,n){var r=this;S(this,t),this.core=e,this.logger=n,this.name="pairing",this.version="0.3",this.events=new i.a,this.initialized=!1,this.storagePrefix=ye,this.ignoredPayloadTypes=[h.c],this.registeredMethods=[],this.init=function(){return W(r,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=10;break}return t.next=4,this.pairings.init();case 4:return t.next=6,this.cleanup();case 6:this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized");case 10:case"end":return t.stop()}}),t,this)})))},this.register=function(t){var e=t.methods;r.isInitialized(),r.registeredMethods=M(new Set([].concat(M(r.registeredMethods),M(e))))},this.create=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),n=Object(h.u)(),e.next=4,this.core.crypto.setSymKey(n);case 4:return r=e.sent,i=Object(h.e)(f.FIVE_MINUTES),a={topic:r,expiry:i,relay:o={protocol:be},active:!1},s=Object(h.s)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:n,relay:o,expiryTimestamp:i,methods:null==t?void 0:t.methods}),e.next=11,this.pairings.set(r,a);case 11:return e.next=13,this.core.relayer.subscribe(r);case 13:return this.core.expirer.set(r,i),e.abrupt("return",{topic:r,uri:s});case 15:case"end":return e.stop()}}),e,this)})))},this.pair=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s,u,c;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitialized(),this.isValidPair(t),n=Object(h.tb)(t.uri),r=n.topic,i=n.symKey,o=n.relay,a=n.expiryTimestamp,s=n.methods,!this.pairings.keys.includes(r)||!this.pairings.get(r).active){e.next=4;break}throw new Error("Pairing already exists: ".concat(r,". Please try again with a new connection URI."));case 4:return u=a||Object(h.e)(f.FIVE_MINUTES),c={topic:r,relay:o,expiry:u,active:!1,methods:s},e.next=7,this.pairings.set(r,c);case 7:if(this.core.expirer.set(r,u),e.t0=t.activatePairing,!e.t0){e.next=12;break}return e.next=12,this.activate({topic:r});case 12:if(this.events.emit(Ce.create,c),e.t1=this.core.crypto.keychain.has(r),e.t1){e.next=17;break}return e.next=17,this.core.crypto.setSymKey(i,r);case 17:return e.next=19,this.core.relayer.subscribe(r,{relay:o});case 19:return e.abrupt("return",c);case 20:case"end":return e.stop()}}),e,this)})))},this.activate=function(t){return W(r,[t],(function(t){var e=this,n=t.topic;return T().mark((function t(){var r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),r=Object(h.e)(f.THIRTY_DAYS),t.next=4,e.pairings.update(n,{active:!0,expiry:r});case 4:e.core.expirer.set(n,r);case 5:case"end":return t.stop()}}),t)}))()}))},this.ping=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.isValidPing(t);case 3:if(n=t.topic,!this.pairings.keys.includes(n)){e.next=15;break}return e.next=7,this.sendRequest(n,"wc_pairingPing",{});case 7:return r=e.sent,i=Object(h.f)(),o=i.done,a=i.resolve,s=i.reject,this.events.once(Object(h.n)("pairing_ping",r),(function(t){var e=t.error;e?s(e):a()})),e.next=15,o();case 15:case"end":return e.stop()}}),e,this)})))},this.updateExpiry=function(t){return W(r,[t],(function(t){var e=this,n=t.topic,r=t.expiry;return T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),t.next=3,e.pairings.update(n,{expiry:r});case 3:case"end":return t.stop()}}),t)}))()}))},this.updateMetadata=function(t){return W(r,[t],(function(t){var e=this,n=t.topic,r=t.metadata;return T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),t.next=3,e.pairings.update(n,{peerMetadata:r});case 3:case"end":return t.stop()}}),t)}))()}))},this.getPairings=function(){return r.isInitialized(),r.pairings.values},this.disconnect=function(t){return W(r,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.isValidDisconnect(t);case 3:if(n=t.topic,e.t0=this.pairings.keys.includes(n),!e.t0){e.next=10;break}return e.next=8,this.sendRequest(n,"wc_pairingDelete",Object(h.G)("USER_DISCONNECTED"));case 8:return e.next=10,this.deletePairing(n);case 10:case"end":return e.stop()}}),e,this)})))},this.sendRequest=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcRequest)(e,n),r.next=3,this.core.crypto.encode(t,i);case 3:return o=r.sent,a=De[e].req,r.abrupt("return",(this.core.history.set(t,i),this.core.relayer.publish(t,o,a),i.id));case 6:case"end":return r.stop()}}),r,this)})))},this.sendResult=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a,s;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcResult)(t,n),r.next=3,this.core.crypto.encode(e,i);case 3:return o=r.sent,r.next=6,this.core.history.get(e,t);case 6:return a=r.sent,s=De[a.request.method].res,r.next=10,this.core.relayer.publish(e,o,s);case 10:return r.next=12,this.core.history.resolve(i);case 12:case"end":return r.stop()}}),r,this)})))},this.sendError=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a,s;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcError)(t,n),r.next=3,this.core.crypto.encode(e,i);case 3:return o=r.sent,r.next=6,this.core.history.get(e,t);case 6:return a=r.sent,s=De[a.request.method]?De[a.request.method].res:De.unregistered_method.res,r.next=10,this.core.relayer.publish(e,o,s);case 10:return r.next=12,this.core.history.resolve(i);case 12:case"end":return r.stop()}}),r,this)})))},this.deletePairing=function(t,e){return W(r,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.core.relayer.unsubscribe(t);case 2:return n.next=4,Promise.all([this.pairings.delete(t,Object(h.G)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)]);case 4:case"end":return n.stop()}}),n,this)})))},this.cleanup=function(){return W(r,null,T().mark((function t(){var e,n=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.pairings.getAll().filter((function(t){return Object(h.M)(t.expiry)})),t.next=3,Promise.all(e.map((function(t){return n.deletePairing(t.topic)})));case 3:case"end":return t.stop()}}),t,this)})))},this.onRelayEventRequest=function(t){var e=t.topic,n=t.payload;switch(n.method){case"wc_pairingPing":return r.onPairingPingRequest(e,n);case"wc_pairingDelete":return r.onPairingDeleteRequest(e,n);default:return r.onUnknownRpcMethodRequest(e,n)}},this.onRelayEventResponse=function(t){return W(r,null,T().mark((function e(){var n,r,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.payload,e.next=4,this.core.history.get(n,r.id);case 4:i=e.sent.request.method,e.t0=i,e.next="wc_pairingPing"===e.t0?8:9;break;case 8:return e.abrupt("return",this.onPairingPingResponse(n,r));case 9:return e.abrupt("return",this.onUnknownRpcMethodResponse(i));case 10:case"end":return e.stop()}}),e,this)})))},this.onPairingPingRequest=function(t,e){return W(r,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidPing({topic:t}),n.next=5,this.sendResult(r,t,!0);case 5:this.events.emit(Ce.ping,{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError(r,t,n.t0);case 12:this.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},this.onPairingPingResponse=function(t,e){var n=e.id;setTimeout((function(){Object(y.isJsonRpcResult)(e)?r.events.emit(Object(h.n)("pairing_ping",n),{}):Object(y.isJsonRpcError)(e)&&r.events.emit(Object(h.n)("pairing_ping",n),{error:e.error})}),500)},this.onPairingDeleteRequest=function(t,e){return W(r,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidDisconnect({topic:t}),n.next=5,this.deletePairing(t);case 5:this.events.emit(Ce.delete,{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError(r,t,n.t0);case 12:this.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},this.onUnknownRpcMethodRequest=function(t,e){return W(r,null,T().mark((function n(){var r,i,o;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,i=e.method,n.prev=1,!this.registeredMethods.includes(i)){n.next=4;break}return n.abrupt("return");case 4:return o=Object(h.G)("WC_METHOD_UNSUPPORTED",i),n.next=7,this.sendError(r,t,o);case 7:this.logger.error(o),n.next=15;break;case 10:return n.prev=10,n.t0=n.catch(1),n.next=14,this.sendError(r,t,n.t0);case 14:this.logger.error(n.t0);case 15:case"end":return n.stop()}}),n,this,[[1,10]])})))},this.onUnknownRpcMethodResponse=function(t){r.registeredMethods.includes(t)||r.logger.error(Object(h.G)("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=function(t){var e;if(!Object(h.fb)(t)){var n=Object(h.A)("MISSING_OR_INVALID","pair() params: ".concat(t)).message;throw new Error(n)}if(!Object(h.nb)(t.uri)){var r=Object(h.A)("MISSING_OR_INVALID","pair() uri: ".concat(t.uri)).message;throw new Error(r)}var i=Object(h.tb)(t.uri);if(null==(e=null==i?void 0:i.relay)||!e.protocol){var o=Object(h.A)("MISSING_OR_INVALID","pair() uri#relay-protocol").message;throw new Error(o)}if(null==i||!i.symKey){var a=Object(h.A)("MISSING_OR_INVALID","pair() uri#symKey").message;throw new Error(a)}if(null!=i&&i.expiryTimestamp&&Object(f.toMiliseconds)(null==i?void 0:i.expiryTimestamp)"u"&&(n.response=Object(y.isJsonRpcError)(t)?{error:t.error}:{result:t.result},this.records.set(n.id,n),this.persist(),this.events.emit(ze,n));case 6:case"end":return e.stop()}}),e,this)})))},i.get=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),n.next=5,this.getRecord(e);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n,this)})))},i.delete=function(t,e){i.isInitialized(),i.logger.debug("Deleting record"),i.logger.trace({type:"method",method:"delete",id:e}),i.values.forEach((function(n){if(n.topic===t){if(k(e)<"u"&&n.id!==e)return;i.records.delete(n.id),i.events.emit(Pe,n)}})),i.persist()},i.exists=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),!this.records.has(e)){n.next=9;break}return n.next=4,this.getRecord(e);case 4:n.t1=n.sent.topic,n.t2=t,n.t0=n.t1===n.t2,n.next=10;break;case 9:n.t0=!1;case 10:return n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),n,this)})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.logger=Object(s.a)(n,i.name),i}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"size",get:function(){return this.records.size}},{key:"keys",get:function(){return Array.from(this.records.keys())}},{key:"values",get:function(){return Array.from(this.records.values())}},{key:"pending",get:function(){var t=[];return this.values.forEach((function(e){if(!(k(e.response)<"u")){var n={topic:e.topic,request:Object(y.formatJsonRpcRequest)(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(n)}})),t}},{key:"setJsonRpcRecords",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getJsonRpcRecords",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getRecord",value:function(t){this.isInitialized();var e=this.records.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw new Error(n)}return e}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setJsonRpcRecords(this.values);case 2:this.events.emit("history_sync");case 3:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getJsonRpcRecords();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.records.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",records:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"registerEventListeners",value:function(){var t=this;this.events.on(Oe,(function(e){var n=Oe;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.events.on(ze,(function(e){var n=ze;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.events.on(Pe,(function(e){var n=Pe;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){t.cleanup()}))}},{key:"cleanup",value:function(){var t=this;try{this.isInitialized();var e=!1;this.records.forEach((function(n){Object(f.toMiliseconds)(n.expiry||0)-Date.now()<=0&&(t.logger.info("Deleting expired history log: ".concat(n.id)),t.records.delete(n.id),t.events.emit(Pe,n,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.e),bn=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).core=t,i.logger=n,i.expirations=new Map,i.events=new r.EventEmitter,i.name="expirer",i.version="0.3",i.cached=[],i.initialized=!1,i.storagePrefix=ye,i.init=function(){return W(I(i),null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=9;break}return this.logger.trace("Initialized"),t.next=5,this.restore();case 5:this.cached.forEach((function(t){return e.expirations.set(t.target,t)})),this.cached=[],this.registerEventListeners(),this.initialized=!0;case 9:case"end":return t.stop()}}),t,this)})))},i.has=function(t){try{var e=i.formatTarget(t);return k(i.getExpiration(e))<"u"}catch(t){return!1}},i.set=function(t,e){i.isInitialized();var n=i.formatTarget(t),r={target:n,expiry:e};i.expirations.set(n,r),i.checkExpiry(n,r),i.events.emit(_e.created,{target:n,expiration:r})},i.get=function(t){i.isInitialized();var e=i.formatTarget(t);return i.getExpiration(e)},i.del=function(t){if(i.isInitialized(),i.has(t)){var e=i.formatTarget(t),n=i.getExpiration(e);i.expirations.delete(e),i.events.emit(_e.deleted,{target:e,expiration:n})}},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.logger=Object(s.a)(n,i.name),i}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.expirations.size}},{key:"keys",get:function(){return Array.from(this.expirations.keys())}},{key:"values",get:function(){return Array.from(this.expirations.values())}},{key:"formatTarget",value:function(t){if("string"==typeof t)return Object(h.r)(t);if("number"==typeof t)return Object(h.o)(t);var e=Object(h.A)("UNKNOWN_TYPE","Target type: ".concat(k(t))).message;throw new Error(e)}},{key:"setExpirations",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getExpirations",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setExpirations(this.values);case 2:this.events.emit(_e.sync);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getExpirations();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.expirations.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored expirations for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",expirations:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore expirations for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"getExpiration",value:function(t){var e=this.expirations.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw this.logger.warn(n),new Error(n)}return e}},{key:"checkExpiry",value:function(t,e){var n=e.expiry;Object(f.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,e)}},{key:"expire",value:function(t,e){this.expirations.delete(t),this.events.emit(_e.expired,{target:t,expiration:e})}},{key:"checkExpirations",value:function(){var t=this;this.core.relayer.connected&&this.expirations.forEach((function(e,n){return t.checkExpiry(n,e)}))}},{key:"registerEventListeners",value:function(){var t=this;this.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){return t.checkExpirations()})),this.events.on(_e.created,(function(e){var n=_e.created;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()})),this.events.on(_e.expired,(function(e){var n=_e.expired;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()})),this.events.on(_e.deleted,(function(e){var n=_e.deleted;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()}))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.d),Mn=function(e){function n(e,r){var i;return S(this,n),(i=A(this,n,[e,r])).projectId=e,i.logger=r,i.name=Be,i.initialized=!1,i.queue=[],i.verifyDisabled=!1,i.init=function(t){return W(I(i),null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.verifyDisabled&&!Object(h.Q)()&&Object(h.K)()){e.next=2;break}return e.abrupt("return");case 2:return n=this.getVerifyUrl(null==t?void 0:t.verifyUrl),this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n,e.prev=4,e.next=7,this.createIframe();case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(e.t0);case 12:if(this.initialized){e.next=22;break}return this.removeIframe(),this.verifyUrl=Ue,e.prev=14,e.next=17,this.createIframe();case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(14),this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(e.t1),this.verifyDisabled=!0;case 22:case"end":return e.stop()}}),e,this,[[4,9],[14,19]])})))},i.register=function(t){return W(I(i),null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=4;break}this.sendPost(t.attestationId),e.next=7;break;case 4:return this.addToQueue(t.attestationId),e.next=7,this.init();case 7:case"end":return e.stop()}}),e,this)})))},i.resolve=function(t){return W(I(i),null,T().mark((function e(){var n,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDevEnv){e.next=2;break}return e.abrupt("return","");case 2:return n=this.getVerifyUrl(null==t?void 0:t.verifyUrl),e.prev=3,e.next=6,this.fetchAttestation(t.attestationId,n);case 6:r=e.sent,e.next=16;break;case 9:return e.prev=9,e.t0=e.catch(3),this.logger.info("failed to resolve attestation: ".concat(t.attestationId," from url: ").concat(n)),this.logger.info(e.t0),e.next=15,this.fetchAttestation(t.attestationId,Ue);case 15:r=e.sent;case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[3,9]])})))},i.fetchAttestation=function(t,e){return W(I(i),null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.logger.info("resolving attestation: ".concat(t," from url: ").concat(e)),r=this.startAbortTimer(2*f.ONE_SECOND),n.next=4,fetch("".concat(e,"/attestation/").concat(t),{signal:this.abortController.signal});case 4:if(i=n.sent,clearTimeout(r),200!==i.status){n.next=12;break}return n.next=9,i.json();case 9:n.t0=n.sent,n.next=13;break;case 12:n.t0=void 0;case 13:return n.abrupt("return",n.t0);case 14:case"end":return n.stop()}}),n,this)})))},i.addToQueue=function(t){i.queue.push(t)},i.processQueue=function(){0!==i.queue.length&&(i.queue.forEach((function(t){return i.sendPost(t)})),i.queue=[])},i.sendPost=function(t){var e;try{if(!i.iframe)return;null==(e=i.iframe.contentWindow)||e.postMessage(t,"*"),i.logger.info("postMessage sent: ".concat(t," ").concat(i.verifyUrl))}catch(t){}},i.createIframe=function(){return W(I(i),null,T().mark((function t(){var e,n,r=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=function t(n){"verify_ready"===n.data&&(r.onInit(),window.removeEventListener("message",t),e())},t.next=3,Promise.race([new Promise((function(t){var i=document.getElementById(Be);if(i)return r.iframe=i,r.onInit(),t();window.addEventListener("message",n);var o=document.createElement("iframe");o.id=Be,o.src="".concat(r.verifyUrl,"/").concat(r.projectId),o.style.display="none",document.body.append(o),r.iframe=o,e=t})),new Promise((function(t,e){return setTimeout((function(){window.removeEventListener("message",n),e("verify iframe load timeout")}),Object(f.toMiliseconds)(f.FIVE_SECONDS))}))]);case 3:case"end":return t.stop()}}),t)})))},i.onInit=function(){i.initialized=!0,i.processQueue()},i.removeIframe=function(){i.iframe&&(i.iframe.remove(),i.iframe=void 0,i.initialized=!1)},i.getVerifyUrl=function(t){var e=t||Re;return Qe.includes(e)||(i.logger.info("verify url: ".concat(e,", not included in trusted list, assigning default: ").concat(Re)),e=Re),e},i.logger=Object(s.a)(r,i.name),i.verifyUrl=Re,i.abortController=new AbortController,i.isDevEnv=Object(h.N)()&&t.env.IS_VITEST,i}return E(n,e),D(n,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"startAbortTimer",value:function(t){var e=this;return this.abortController=new AbortController,setTimeout((function(){return e.abortController.abort()}),Object(f.toMiliseconds)(t))}}])}(u.l),An=function(t){function e(t,n){var r;return S(this,e),(r=A(this,e,[t,n])).projectId=t,r.logger=n,r.context="echo",r.registerDeviceToken=function(t){return W(I(r),null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.token,i=t.notificationType,o=t.enableEncrypted,a=void 0!==o&&o,s="".concat("https://echo.walletconnect.com","/").concat(this.projectId,"/clients"),e.next=3,b()(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:n,type:i,token:r,always_raw:a})});case 3:case"end":return e.stop()}}),e,this)})))},r.logger=Object(s.a)(n,r.context),r}return E(e,t),D(e)}(u.b),In=Object.defineProperty,Nn=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,kn=function(t,e,n){return e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Tn=function(t,e){for(var n in e||(e={}))En.call(e,n)&&kn(t,n,e[n]);if(Nn){var r,i=O(Nn(e));try{for(i.s();!(r=i.n()).done;)n=r.value,xn.call(e,n)&&kn(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},Ln=function(t){function e(t){var n,i;S(this,e),(n=A(this,e,[t])).protocol="wc",n.version=2,n.name=pe,n.events=new r.EventEmitter,n.initialized=!1,n.on=function(t,e){return n.events.on(t,e)},n.once=function(t,e){return n.events.once(t,e)},n.off=function(t,e){return n.events.off(t,e)},n.removeListener=function(t,e){return n.events.removeListener(t,e)},n.projectId=null==t?void 0:t.projectId,n.relayUrl=(null==t?void 0:t.relayUrl)||Me,n.customStoragePrefix=null!=t&&t.customStoragePrefix?":".concat(t.customStoragePrefix):"";var u=Object(s.c)({level:"string"==typeof(null==t?void 0:t.logger)&&t.logger?t.logger:"error"}),c=Object(s.b)({opts:u,maxSizeInBytes:null==t?void 0:t.maxLogBlobSizeInBytes,loggerOverride:null==t?void 0:t.logger}),l=c.logger,h=c.chunkLoggerController;return n.logChunkController=h,null!=(i=n.logChunkController)&&i.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=function(){return W(n,null,T().mark((function t(){var e,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser,!t.t0){t.next=10;break}if(t.t1=null==(n=this.logChunkController),t.t1){t.next=10;break}return t.t2=n,t.next=7,this.crypto.getClientId();case 7:t.t3=t.sent,t.t4={clientId:t.t3},t.t2.downloadLogsBlobInBrowser.call(t.t2,t.t4);case 10:case"end":return t.stop()}}),t,this)})))}),n.logger=Object(s.a)(l,n.name),n.heartbeat=new a.HeartBeat,n.crypto=new We(n,n.logger,null==t?void 0:t.keychain),n.history=new wn(n,n.logger),n.expirer=new bn(n,n.logger),n.storage=null!=t&&t.storage?t.storage:new o.a(Tn(Tn({},me),null==t?void 0:t.storageOptions)),n.relayer=new ln({core:n,logger:n.logger,relayUrl:n.relayUrl,projectId:n.projectId}),n.pairing=new vn(n,n.logger),n.verify=new Mn(n.projectId||"",n.logger),n.echoClient=new An(n.projectId||"",n.logger),n}return E(e,t),D(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"start",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=4;break}return t.next=4,this.initialize();case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getLogsBlob",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(e=this.logChunkController)){t.next=4;break}t.t0=void 0,t.next=10;break;case 4:return t.t1=e,t.next=7,this.crypto.getClientId();case 7:t.t2=t.sent,t.t3={clientId:t.t2},t.t0=t.t1.logsToBlob.call(t.t1,t.t3);case 10:return t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t,this)})))}},{key:"initialize",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),t.prev=1,t.next=4,this.crypto.init();case 4:return t.next=6,this.history.init();case 6:return t.next=8,this.expirer.init();case 8:return t.next=10,this.relayer.init();case 10:return t.next=12,this.heartbeat.init();case 12:return t.next=14,this.pairing.init();case 14:this.initialized=!0,this.logger.info("Core Initialization Success"),t.next=21;break;case 18:throw t.prev=18,t.t0=t.catch(1),this.logger.warn("Core Initialization Failure at epoch ".concat(Date.now()),t.t0),this.logger.error(t.t0.message),t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,18]])})))}}],[{key:"init",value:function(t){return W(this,null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new e(t),n.next=3,r.initialize();case 3:return n.next=5,r.crypto.getClientId();case 5:return i=n.sent,n.next=8,r.storage.setItem("WALLETCONNECT_CLIENT_ID",i);case 8:return n.abrupt("return",r);case 9:case"end":return n.stop()}}),n)})))}}])}(u.a)}).call(this,n(33))},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string";if(!t[e]||r(t[e])!==n)throw new Error('Missing or invalid "'.concat(e,'" param'))}function o(t,e,n){return!!(n.length?function(t,e){return Array.isArray(t)?t.length>=e:Object.keys(t).length>=e}(t,e.length):function(t,e){return Array.isArray(t)?t.length===e:Object.keys(t).length===e}(t,e.length))&&function(t,e){var n=!0;return e.forEach((function(e){e in t||(n=!1)})),n}(t,e)}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_",r=t.split(n);return r[r.length-1].trim().toLowerCase()===e.trim().toLowerCase()}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}))},function(t,e,n){n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return A})),n.d(e,"e",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return w})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return M})),n.d(e,"l",(function(){return I}));var r=n(22),i=n(6),o=n.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;ne in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var c=n(95),l=n(18);class h{constructor(t,e,n){this.name=t,this.prefix=e,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class d{constructor(t,e,n){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=n}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return p(this,t)}}class f{constructor(t){this.decoders=t}or(t){return p(this,t)}decode(t){const e=t[0],n=this.decoders[e];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const p=(t,e)=>new f(u(u({},t.decoders||{[t.prefix]:t}),e.decoders||{[e.prefix]:e}));class y{constructor(t,e,n,r){this.name=t,this.prefix=e,this.baseEncode=n,this.baseDecode=r,this.encoder=new h(t,e,n),this.decoder=new d(t,e,r)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const m=({name:t,prefix:e,encode:n,decode:r})=>new y(t,e,n,r);e.Codec=y,e.baseX=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:i}=c(n,e);return m({prefix:t,name:e,encode:r,decode:t=>l.coerce(i(t))})},e.from=m,e.or=p,e.rfc4648=({name:t,prefix:e,bitsPerChar:n,alphabet:r})=>m({prefix:e,name:t,encode:t=>((t,e,n)=>{const r="="===e[e.length-1],i=(1<n;)a-=n,o+=e[i&s>>a];if(a&&(o+=e[i&s<((t,e,n,r)=>{const i={};for(let t=0;t=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(e,r,n,t)})},function(t,e,n){const r=n(86);t.exports=a;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},o={mapHttpRequest:p,mapHttpResponse:p,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:p,res:p,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const n in t)void 0===e[n]&&(e[n]=t[n]);return e}};function a(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const n=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const r=t.serializers||{},o=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,r);let u=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1),"function"==typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===t.enabled&&(t.level="silent");const h=t.level||"info",p=Object.create(n);p.log||(p.log=m),Object.defineProperty(p,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(p,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,s(y,p,"error","log"),s(y,p,"fatal","error"),s(y,p,"warn","error"),s(y,p,"info","log"),s(y,p,"debug","log"),s(y,p,"trace","log")}});const y={transmit:e,serialize:o,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:f(t)};return p.levels=a.levels,p.level=h,p.setMaxListeners=p.getMaxListeners=p.emit=p.addListener=p.on=p.prependListener=p.once=p.prependOnceListener=p.removeListener=p.removeAllListeners=p.listeners=p.listenerCount=p.eventNames=p.write=p.flush=m,p.serializers=r,p._serialize=o,p._stdErrSerialize=u,p.child=function(n,i){if(!n)throw new Error("missing bindings for child Pino");i=i||{},o&&n.serializers&&(i.serializers=n.serializers);const a=i.serializers;if(o&&a){var s=Object.assign({},r,a),u=!0===t.browser.serialize?Object.keys(s):o;delete n.serializers,c([n],u,s,this._stdErrSerialize)}function h(t){this._childLevel=1+(0|t._childLevel),this.error=l(t,n,"error"),this.fatal=l(t,n,"fatal"),this.warn=l(t,n,"warn"),this.info=l(t,n,"info"),this.debug=l(t,n,"debug"),this.trace=l(t,n,"trace"),s&&(this.serializers=s,this._serialize=u),e&&(this._logEvent=d([].concat(t._logEvent.bindings,n)))}return h.prototype=this,new h(this)},e&&(p._logEvent=d()),p}function s(t,e,n,r){const o=Object.getPrototypeOf(e);e[n]=e.levelVal>e.levels.values[n]?m:o[n]?o[n]:i[n]||i[r]||m,function(t,e,n){var r;(t.transmit||e[n]!==m)&&(e[n]=(r=e[n],function(){const o=t.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&r in n&&(t[i][r]=n[r](t[i][r]))}function l(t,e,n){return function(){const r=new Array(1+arguments.length);r[0]=e;for(var i=1;ia,d=l>a;if(h&&(c=e-c),d&&(l=e-l),c>a||l>a)throw new Error("splitScalar: Endomorphism failed, k="+t);return{k1neg:h,k1:c,k2neg:d,k2:l}}}},js=vr,Cs=function(t){return As(D(D({},Ss),function(t){return{hash:t,hmac:function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i32)throw new Error("Invalid public key input")}return e}return U(a,[{key:"equals",value:function(t){return this._bn.eq(t._bn)}},{key:"toBase58",value:function(){return dr.encode(this.toBytes())}},{key:"toJSON",value:function(){return this.toBase58()}},{key:"toBytes",value:function(){var t=this.toBuffer();return new Uint8Array(t.buffer,t.byteOffset,t.byteLength)}},{key:"toBuffer",value:function(){var t=this._bn.toArrayLike(Nt);if(32===t.length)return t;var e=Nt.alloc(32);return t.copy(e,32-t.length),e}},{key:e,get:function(){return"PublicKey(".concat(this.toString(),")")}},{key:"toString",value:function(){return this.toBase58()}}],[{key:"unique",value:function(){var t=new a(Js);return Js+=1,new a(t.toBuffer())}},{key:"createWithSeed",value:(i=_(O().mark((function t(e,n,r){var i,o;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=Nt.concat([e.toBuffer(),Nt.from(n),r.toBuffer()]),o=vr(i),t.abrupt("return",new a(o));case 3:case"end":return t.stop()}}),t)}))),function(t,e,n){return i.apply(this,arguments)})},{key:"createProgramAddressSync",value:function(t,e){var n=Nt.alloc(0);t.forEach((function(t){if(t.length>32)throw new TypeError("Max seed length exceeded");n=Nt.concat([n,Hs(t)])})),n=Nt.concat([n,e.toBuffer(),Nt.from("ProgramDerivedAddress")]);var r=vr(n);if(Ys(r))throw new Error("Invalid seeds, address must fall off the curve");return new a(r)}},{key:"createProgramAddress",value:(r=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.createProgramAddressSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"findProgramAddressSync",value:function(t,e){for(var n,r=255;0!=r;){try{var i=t.concat(Nt.from([r]));n=this.createProgramAddressSync(i,e)}catch(t){if(t instanceof TypeError)throw t;r--;continue}return[n,r]}throw new Error("Unable to find a viable program address nonce")}},{key:"findProgramAddress",value:(n=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.findProgramAddressSync(e,n));case 1:case"end":return t.stop()}}),t,this)}))),function(t,e){return n.apply(this,arguments)})},{key:"isOnCurve",value:function(t){return Ys(new a(t).toBytes())}}]),a}(0,Symbol.toStringTag);Ws=Xs,Xs.default=new Ws("11111111111111111111111111111111"),Zs.set(Xs,{kind:"struct",fields:[["_bn","u256"]]});var Ks=function(){function t(e){if(B(this,t),this._publicKey=void 0,this._secretKey=void 0,e){var n=Hs(e);if(64!==e.length)throw new Error("bad secret key size");this._publicKey=n.slice(32,64),this._secretKey=n.slice(0,32)}else this._secretKey=Hs(Rs()),this._publicKey=Hs(Qs(this._secretKey))}return U(t,[{key:"publicKey",get:function(){return new Xs(this._publicKey)}},{key:"secretKey",get:function(){return Nt.concat([this._secretKey,this._publicKey],64)}}]),t}(),$s=new Xs("BPFLoader1111111111111111111111111111111111"),tu=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,"Signature ".concat(t," has expired: block height exceeded."))).signature=void 0,r.signature=t,r}return U(n)}();Object.defineProperty(tu.prototype,"name",{value:"TransactionExpiredBlockheightExceededError"});var eu=function(t){Y(n,G(Error));var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,"Transaction was not confirmed in ".concat(r.toFixed(2)," seconds. It is ")+"unknown if it succeeded or failed. Check signature "+"".concat(t," using the Solana Explorer or CLI tools."))).signature=void 0,i.signature=t,i}return U(n)}();Object.defineProperty(eu.prototype,"name",{value:"TransactionExpiredTimeoutError"});var nu=function(t){Y(n,G(Error));var e=X(n);function n(t){var r;return B(this,n),(r=e.call(this,"Signature ".concat(t," has expired: the nonce is no longer valid."))).signature=void 0,r.signature=t,r}return U(n)}();Object.defineProperty(nu.prototype,"name",{value:"TransactionExpiredNonceInvalidError"});var ru=function(){function t(e,n){B(this,t),this.staticAccountKeys=void 0,this.accountKeysFromLookups=void 0,this.staticAccountKeys=e,this.accountKeysFromLookups=n}return U(t,[{key:"keySegments",value:function(){var t=[this.staticAccountKeys];return this.accountKeysFromLookups&&(t.push(this.accountKeysFromLookups.writable),t.push(this.accountKeysFromLookups.readonly)),t}},{key:"get",value:function(t){var e,n=st(this.keySegments());try{for(n.s();!(e=n.n()).done;){var r=e.value;if(t256)throw new Error("Account index overflow encountered during compilation");var e=new Map;this.keySegments().flat().forEach((function(t,n){e.set(t.toBase58(),n)}));var n=function(t){var n=e.get(t.toBase58());if(void 0===n)throw new Error("Encountered an unknown instruction account key during compilation");return n};return t.map((function(t){return{programIdIndex:n(t.programId),accountKeyIndexes:t.keys.map((function(t){return n(t.pubkey)})),data:t.data}}))}}]),t}(),iu=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"publicKey";return Hi(32,t)},ou=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"signature";return Hi(64,t)},au=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"string",e=Fi([Qi("length"),Qi("lengthPadding"),Hi(Bi(Qi(),-8),"chars")],t),n=e.decode.bind(e),r=e.encode.bind(e),i=e;return i.decode=function(t,e){return n(t,e).chars.toString()},i.encode=function(t,e,n){var i={chars:Nt.from(t,"utf8")};return r(i,e,n)},i.alloc=function(t){return Qi().span+Qi().span+Nt.from(t,"utf8").length},i};function su(t,e){var n=function t(n){if(n.span>=0)return n.span;if("function"==typeof n.alloc)return n.alloc(e[n.property]);if("count"in n&&"elementLayout"in n){var r=e[n.property];if(Array.isArray(r))return r.length*t(n.elementLayout)}else if("fields"in n)return su({layout:n},e[n.property]);return 0},r=0;return t.layout.fields.forEach((function(t){r+=n(t)})),r}function uu(t){for(var e=0,n=0;;){var r=t.shift();if(e|=(127&r)<<7*n,n+=1,0==(128&r))break}return e}function cu(t,e){for(var n=e;;){var r=127&n;if(0==(n>>=7)){t.push(r);break}r|=128,t.push(r)}}function lu(t,e){if(!t)throw new Error(e||"Assertion failed")}var hu=function(){function t(e,n){B(this,t),this.payer=void 0,this.keyMetaMap=void 0,this.payer=e,this.keyMetaMap=n}return U(t,[{key:"getMessageComponents",value:function(){var t=et(this.keyMetaMap.entries());lu(t.length<=256,"Max static account keys length exceeded");var e=t.filter((function(t){var e=tt(t,2)[1];return e.isSigner&&e.isWritable})),n=t.filter((function(t){var e=tt(t,2)[1];return e.isSigner&&!e.isWritable})),r=t.filter((function(t){var e=tt(t,2)[1];return!e.isSigner&&e.isWritable})),i=t.filter((function(t){var e=tt(t,2)[1];return!e.isSigner&&!e.isWritable})),o={numRequiredSignatures:e.length+n.length,numReadonlySignedAccounts:n.length,numReadonlyUnsignedAccounts:i.length};return lu(e.length>0,"Expected at least one writable signer key"),lu(tt(e[0],1)[0]===this.payer.toBase58(),"Expected first writable signer key to be the fee payer"),[o,[].concat(et(e.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(n.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(r.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))),et(i.map((function(t){var e=tt(t,1)[0];return new Xs(e)}))))]}},{key:"extractTableLookup",value:function(t){var e=tt(this.drainKeysFoundInLookupTable(t.state.addresses,(function(t){return!t.isSigner&&!t.isInvoked&&t.isWritable})),2),n=e[0],r=e[1],i=tt(this.drainKeysFoundInLookupTable(t.state.addresses,(function(t){return!t.isSigner&&!t.isInvoked&&!t.isWritable})),2),o=i[0],a=i[1];if(0!==n.length||0!==o.length)return[{accountKey:t.key,writableIndexes:n,readonlyIndexes:o},{writable:r,readonly:a}]}},{key:"drainKeysFoundInLookupTable",value:function(t,e){var n,r=this,i=new Array,o=new Array,a=st(this.keyMetaMap.entries());try{var s=function(){var a=tt(n.value,2),s=a[0],u=a[1];if(e(u)){var c=new Xs(s),l=t.findIndex((function(t){return t.equals(c)}));l>=0&&(lu(l<256,"Max lookup table index exceeded"),i.push(l),o.push(c),r.keyMetaMap.delete(s))}};for(a.s();!(n=a.n()).done;)s()}catch(t){a.e(t)}finally{a.f()}return[i,o]}}],[{key:"compile",value:function(e,n){var r=new Map,i=function(t){var e=t.toBase58(),n=r.get(e);return void 0===n&&(n={isSigner:!1,isWritable:!1,isInvoked:!1},r.set(e,n)),n},o=i(n);o.isSigner=!0,o.isWritable=!0;var a,s=st(e);try{for(s.s();!(a=s.n()).done;){var u=a.value;i(u.programId).isInvoked=!0;var c,l=st(u.keys);try{for(l.s();!(c=l.n()).done;){var h=c.value,d=i(h.pubkey);d.isSigner||(d.isSigner=h.isSigner),d.isWritable||(d.isWritable=h.isWritable)}}catch(t){l.e(t)}finally{l.f()}}}catch(t){s.e(t)}finally{s.f()}return new t(n,r)}}]),t}(),du=function(){function t(e){var n=this;B(this,t),this.header=void 0,this.accountKeys=void 0,this.recentBlockhash=void 0,this.instructions=void 0,this.indexToProgramIds=new Map,this.header=e.header,this.accountKeys=e.accountKeys.map((function(t){return new Xs(t)})),this.recentBlockhash=e.recentBlockhash,this.instructions=e.instructions,this.instructions.forEach((function(t){return n.indexToProgramIds.set(t.programIdIndex,n.accountKeys[t.programIdIndex])}))}return U(t,[{key:"version",get:function(){return"legacy"}},{key:"staticAccountKeys",get:function(){return this.accountKeys}},{key:"compiledInstructions",get:function(){return this.instructions.map((function(t){return{programIdIndex:t.programIdIndex,accountKeyIndexes:t.accounts,data:dr.decode(t.data)}}))}},{key:"addressTableLookups",get:function(){return[]}},{key:"getAccountKeys",value:function(){return new ru(this.staticAccountKeys)}},{key:"isAccountSigner",value:function(t){return t=this.header.numRequiredSignatures?t-e0)throw new Error("Failed to get account keys because address table lookups were not resolved");return new ru(this.staticAccountKeys,e)}},{key:"isAccountSigner",value:function(t){return t=n?t-n=this.header.numRequiredSignatures?t-e0?this.signatures[0].signature:null}},{key:"toJSON",value:function(){return{recentBlockhash:this.recentBlockhash||null,feePayer:this.feePayer?this.feePayer.toJSON():null,nonceInfo:this.nonceInfo?{nonce:this.nonceInfo.nonce,nonceInstruction:this.nonceInfo.nonceInstruction.toJSON()}:null,instructions:this.instructions.map((function(t){return t.toJSON()})),signers:this.signatures.map((function(t){return t.publicKey.toJSON()}))}}},{key:"add",value:function(){for(var t=this,e=arguments.length,n=new Array(e),r=0;r0&&this.signatures[0].publicKey))throw new Error("Transaction fee payer required");n=this.signatures[0].publicKey}for(var r=0;r-1?(a[n].isWritable=a[n].isWritable||t.isWritable,a[n].isSigner=a[n].isSigner||t.isSigner):a.push(t)})),a.sort((function(t,e){if(t.isSigner!==e.isSigner)return t.isSigner?-1:1;if(t.isWritable!==e.isWritable)return t.isWritable?-1:1;return t.pubkey.toBase58().localeCompare(e.pubkey.toBase58(),"en",{localeMatcher:"best fit",usage:"sort",sensitivity:"variant",ignorePunctuation:!1,numeric:!1,caseFirst:"lower"})}));var s=a.findIndex((function(t){return t.pubkey.equals(n)}));if(s>-1){var u=tt(a.splice(s,1),1)[0];u.isSigner=!0,u.isWritable=!0,a.unshift(u)}else a.unshift({pubkey:n,isSigner:!0,isWritable:!0});var c,l=st(this.signatures);try{var h=function(){var t=c.value,e=a.findIndex((function(e){return e.pubkey.equals(t.publicKey)}));if(!(e>-1))throw new Error("unknown signer: ".concat(t.publicKey.toString()));a[e].isSigner||(a[e].isSigner=!0,console.warn("Transaction references a signature that is unnecessary, only the fee payer and instruction signer accounts should sign a transaction. This behavior is deprecated and will throw an error in the next major version release."))};for(l.s();!(c=l.n()).done;)h()}catch(t){l.e(t)}finally{l.f()}var d=0,f=0,p=0,y=[],m=[];a.forEach((function(t){var e=t.pubkey,n=t.isSigner,r=t.isWritable;n?(y.push(e.toString()),d+=1,r||(f+=1)):(m.push(e.toString()),r||(p+=1))}));var g=y.concat(m),v=e.map((function(t){var e=t.data,n=t.programId;return{programIdIndex:g.indexOf(n.toString()),accounts:t.keys.map((function(t){return g.indexOf(t.pubkey.toString())})),data:dr.encode(e)}}));return v.forEach((function(t){lu(t.programIdIndex>=0),t.accounts.forEach((function(t){return lu(t>=0)}))})),new du({header:{numRequiredSignatures:d,numReadonlySignedAccounts:f,numReadonlyUnsignedAccounts:p},accountKeys:g,recentBlockhash:t,instructions:v})}},{key:"_compile",value:function(){var t=this.compileMessage(),e=t.accountKeys.slice(0,t.header.numRequiredSignatures);if(this.signatures.length===e.length&&this.signatures.every((function(t,n){return e[n].equals(t.publicKey)})))return t;return this.signatures=e.map((function(t){return{signature:null,publicKey:t}})),t}},{key:"serializeMessage",value:function(){return this._compile().serialize()}},{key:"getEstimatedFee",value:(e=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e.getFeeForMessage(this.compileMessage());case 2:return t.abrupt("return",t.sent.value);case 3:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})},{key:"setSigners",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n1?r-1:0),o=1;o ").concat(1232)),i}},{key:"keys",get:function(){return lu(1===this.instructions.length),this.instructions[0].keys.map((function(t){return t.pubkey}))}},{key:"programId",get:function(){return lu(1===this.instructions.length),this.instructions[0].programId}},{key:"data",get:function(){return lu(1===this.instructions.length),this.instructions[0].data}}],[{key:"from",value:function(e){for(var n=et(e),r=uu(n),i=[],o=0;o1&&void 0!==arguments[1]?arguments[1]:[],r=new t;return r.recentBlockhash=e.recentBlockhash,e.header.numRequiredSignatures>0&&(r.feePayer=e.accountKeys[0]),n.forEach((function(t,n){var i={signature:t==dr.encode(mu)?null:dr.decode(t),publicKey:e.accountKeys[n]};r.signatures.push(i)})),e.instructions.forEach((function(t){var n=t.accounts.map((function(t){var n=e.accountKeys[t];return{pubkey:n,isSigner:r.signatures.some((function(t){return t.publicKey.toString()===n.toString()}))||e.isAccountSigner(t),isWritable:e.isAccountWritable(t)}}));r.instructions.push(new gu({keys:n,programId:e.accountKeys[t.programIdIndex],data:dr.decode(t.data)}))})),r._message=e,r._json=r.toJSON(),r}}]),t}(),wu=function(){function t(e){B(this,t),this.payerKey=void 0,this.instructions=void 0,this.recentBlockhash=void 0,this.payerKey=e.payerKey,this.instructions=e.instructions,this.recentBlockhash=e.recentBlockhash}return U(t,[{key:"compileToLegacyMessage",value:function(){return du.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions})}},{key:"compileToV0Message",value:function(t){return fu.compile({payerKey:this.payerKey,recentBlockhash:this.recentBlockhash,instructions:this.instructions,addressLookupTableAccounts:t})}}],[{key:"decompile",value:function(e,n){var r=e.header,i=e.compiledInstructions,o=e.recentBlockhash,a=r.numRequiredSignatures,s=r.numReadonlySignedAccounts,u=r.numReadonlyUnsignedAccounts,c=a-s;lu(c>0,"Message header is invalid");var l=e.staticAccountKeys.length-a-u;lu(l>=0,"Message header is invalid");var h=e.getAccountKeys(n),d=h.get(0);if(void 0===d)throw new Error("Failed to decompile message because no account keys were found");var f,p=[],y=st(i);try{for(y.s();!(f=y.n()).done;){var m,g=f.value,v=[],w=st(g.accountKeyIndexes);try{for(w.s();!(m=w.n()).done;){var b=m.value,M=h.get(b);if(void 0===M)throw new Error("Failed to find key for account key index ".concat(b));var A=void 0;A=b=0,"Cannot sign with non signer key ".concat(t.publicKey.toBase58())),n.signatures[o]=Fs(r,t.secretKey)};for(o.s();!(e=o.n()).done;)a()}catch(t){o.e(t)}finally{o.f()}}},{key:"addSignature",value:function(t,e){lu(64===e.byteLength,"Signature must be 64 bytes long");var n=this.message.staticAccountKeys.slice(0,this.message.header.numRequiredSignatures).findIndex((function(e){return e.equals(t)}));lu(n>=0,"Can not add signature; `".concat(t.toBase58(),"` is not required to sign this transaction")),this.signatures[n]=e}}],[{key:"deserialize",value:function(e){for(var n=et(e),r=[],i=uu(n),o=0;o=0?t.layout.span:su(t,e),r=Nt.alloc(n),i=Object.assign({instruction:t.index},e);return t.layout.encode(i,r),r}function Ou(t,e){var n;try{n=t.layout.decode(e)}catch(t){throw new Error("invalid instruction; "+t)}if(n.instruction!==t.index)throw new Error("invalid instruction; instruction index mismatch ".concat(n.instruction," != ").concat(t.index));return n}var zu,Pu=Yi("lamportsPerSignature"),_u=Fi([Qi("version"),Qi("state"),iu("authorizedPubkey"),iu("nonce"),Fi([Pu],"feeCalculator")]),Bu=_u.span,Ru=function(){function t(e){B(this,t),this.authorizedPubkey=void 0,this.nonce=void 0,this.feeCalculator=void 0,this.authorizedPubkey=e.authorizedPubkey,this.nonce=e.nonce,this.feeCalculator=e.feeCalculator}return U(t,null,[{key:"fromAccountData",value:function(e){var n=_u.decode(Hs(e),0);return new t({authorizedPubkey:new Xs(n.authorizedPubkey),nonce:new Xs(n.nonce).toString(),feeCalculator:n.feeCalculator})}}]),t}(),Uu=(zu=8,function(t){var e=Hi(zu,t),n=function(t){return{decode:t.decode.bind(t),encode:t.encode.bind(t)}}(e),r=n.encode,i=n.decode,o=e;return o.decode=function(t,e){var n=i(t,e);return qi(Nt.from(n))},o.encode=function(t,e,n){var i=Zi(t,zu);return r(i,e,n)},o}),Qu=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(Yu);r0?s:1,space:a.length,programId:o}));case 17:if(null===c){e.next=20;break}return e.next=20,Su(n,c,[r,i],{commitment:"confirmed"});case 20:l=Fi([Qi("instruction"),Qi("offset"),Qi("bytesLength"),Qi("bytesLengthPadding"),Vi(Ri("byte"),Bi(Qi(),-8),"bytes")]),h=t.chunkSize,d=0,f=a,p=[];case 25:if(!(f.length>0)){e.next=39;break}if(y=f.slice(0,h),m=Nt.alloc(h+16),l.encode({instruction:0,offset:d,bytes:y,bytesLength:0,bytesLengthPadding:0},m),g=(new vu).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0}],programId:o,data:m}),p.push(Su(n,g,[r,i],{commitment:"confirmed"})),!n._rpcEndpoint.includes("solana.com")){e.next=35;break}return e.next=35,Cu(250);case 35:d+=h,f=f.slice(h),e.next=25;break;case 39:return e.next=41,Promise.all(p);case 41:return v=Fi([Qi("instruction")]),w=Nt.alloc(v.span),v.encode({instruction:1},w),b=(new vu).add({keys:[{pubkey:i.publicKey,isSigner:!0,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1}],programId:o,data:w}),M="processed",e.next=48,n.sendTransaction(b,[r,i],{preflightCommitment:M});case 48:return A=e.sent,e.next=51,n.confirmTransaction({signature:A,lastValidBlockHeight:b.lastValidBlockHeight,blockhash:b.recentBlockhash},M);case 51:if(I=e.sent,N=I.context,!(E=I.value).err){e.next=56;break}throw new Error("Transaction ".concat(A," failed (").concat(JSON.stringify(E),")"));case 56:return e.prev=57,e.next=60,n.getSlot({commitment:M});case 60:if(!(e.sent>N.slot)){e.next=63;break}return e.abrupt("break",71);case 63:e.next=67;break;case 65:e.prev=65,e.t0=e.catch(57);case 67:return e.next=69,new Promise((function(t){return setTimeout(t,Math.round(200))}));case 69:e.next=56;break;case 71:return e.abrupt("return",!0);case 72:case"end":return e.stop()}}),e,null,[[57,65]])}))),function(t,n,r,i,o){return e.apply(this,arguments)})}]),t}();Fu.chunkSize=932;var Vu=new Xs("BPFLoader2111111111111111111111111111111111"),Hu=function(){function t(){B(this,t)}return U(t,null,[{key:"getMinNumSignatures",value:function(t){return Fu.getMinNumSignatures(t)}},{key:"load",value:function(t,e,n,r,i){return Fu.load(t,e,n,i,r)}}]),t}();function Gu(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var qu=Object.prototype.toString,Zu=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};function Ju(t,e){var n,r,i,o,a,s,u;if(!0===t)return"true";if(!1===t)return"false";switch(z(t)){case"object":if(null===t)return null;if(t.toJSON&&"function"==typeof t.toJSON)return Ju(t.toJSON(),e);if("[object Array]"===(u=qu.call(t))){for(i="[",r=t.length-1,n=0;n-1&&(i+=Ju(t[n],!0)),i+"]"}if("[object Object]"===u){for(r=(o=Zu(t).sort()).length,i="",n=0;n1;)t/=2,e++;return e}var $u=function(){function t(e,n,r,i,o){B(this,t),this.slotsPerEpoch=void 0,this.leaderScheduleSlotOffset=void 0,this.warmup=void 0,this.firstNormalEpoch=void 0,this.firstNormalSlot=void 0,this.slotsPerEpoch=e,this.leaderScheduleSlotOffset=n,this.warmup=r,this.firstNormalEpoch=i,this.firstNormalSlot=o}return U(t,[{key:"getEpoch",value:function(t){return this.getEpochAndSlotIndex(t)[0]}},{key:"getEpochAndSlotIndex",value:function(t){if(t>1,t|=t>>2,t|=t>>4,t|=t>>8,t|=t>>16,1+(t|=t>>32))}(t+32+1))-Ku(32)-1;return[e,t-(this.getSlotsInEpoch(e)-32)]}var n=t-this.firstNormalSlot,r=Math.floor(n/this.slotsPerEpoch);return[this.firstNormalEpoch+r,n%this.slotsPerEpoch]}},{key:"getFirstSlotInEpoch",value:function(t){return t<=this.firstNormalEpoch?32*(Math.pow(2,t)-1):(t-this.firstNormalEpoch)*this.slotsPerEpoch+this.firstNormalSlot}},{key:"getLastSlotInEpoch",value:function(t){return this.getFirstSlotInEpoch(t)+this.getSlotsInEpoch(t)-1}},{key:"getSlotsInEpoch",value:function(t){return t0&&(i.until=a.signatures[a.signatures.length-1].toString()),t.next=22;break;case 15:if(t.prev=15,t.t0=t.catch(8),!(t.t0 instanceof Error&&t.t0.message.includes("skipped"))){t.next=21;break}return t.abrupt("continue",4);case 21:throw t.t0;case 22:t.next=4;break;case 24:return t.next=26,this.getSlot("finalized");case 26:s=t.sent;case 27:if("before"in i){t.next=47;break}if(!(++r>s)){t.next=31;break}return t.abrupt("break",47);case 31:return t.prev=31,t.next=34,this.getConfirmedBlockSignatures(r);case 34:(u=t.sent).signatures.length>0&&(i.before=u.signatures[u.signatures.length-1].toString()),t.next=45;break;case 38:if(t.prev=38,t.t1=t.catch(31),!(t.t1 instanceof Error&&t.t1.message.includes("skipped"))){t.next=44;break}return t.abrupt("continue",27);case 44:throw t.t1;case 45:t.next=27;break;case 47:return t.next=49,this.getConfirmedSignaturesForAddress2(e,i);case 49:return c=t.sent,t.abrupt("return",c.map((function(t){return t.signature})));case 51:case"end":return t.stop()}}),t,this,[[8,15],[31,38]])}))),function(t,e,n){return I.apply(this,arguments)})},{key:"getConfirmedSignaturesForAddress2",value:(A=_(O().mark((function t(e,n,r){var i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,n),t.next=3,this._rpcRequest("getConfirmedSignaturesForAddress2",i);case 3:if(o=t.sent,!("error"in(a=co(o,Jc)))){t.next=7;break}throw new ec(a.error,"failed to get confirmed signatures for address");case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return A.apply(this,arguments)})},{key:"getSignaturesForAddress",value:(M=_(O().mark((function t(e,n,r){var i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return i=this._buildArgsAtLeastConfirmed([e.toBase58()],r,void 0,n),t.next=3,this._rpcRequest("getSignaturesForAddress",i);case 3:if(o=t.sent,!("error"in(a=co(o,Xc)))){t.next=7;break}throw new ec(a.error,"failed to get signatures for address");case 7:return t.abrupt("return",a.result);case 8:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return M.apply(this,arguments)})},{key:"getAddressLookupTable",value:(b=_(O().mark((function t(e,n){var r,i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccountInfoAndContext(e,n);case 2:return r=t.sent,i=r.context,o=r.value,a=null,null!==o&&(a=new ic({key:e,state:ic.deserialize(o.data)})),t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return b.apply(this,arguments)})},{key:"getNonceAndContext",value:(w=_(O().mark((function t(e,n){var r,i,o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getAccountInfoAndContext(e,n);case 2:return r=t.sent,i=r.context,o=r.value,a=null,null!==o&&(a=Ru.fromAccountData(o.data)),t.abrupt("return",{context:i,value:a});case 8:case"end":return t.stop()}}),t,this)}))),function(t,e){return w.apply(this,arguments)})},{key:"getNonce",value:(v=_(O().mark((function t(e,n){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNonceAndContext(e,n).then((function(t){return t.value})).catch((function(t){throw new Error("failed to get nonce for account "+e.toBase58()+": "+t)}));case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)}))),function(t,e){return v.apply(this,arguments)})},{key:"requestAirdrop",value:(g=_(O().mark((function t(e,n){var r,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._rpcRequest("requestAirdrop",[e.toBase58(),n]);case 2:if(r=t.sent,!("error"in(i=co(r,Wl)))){t.next=6;break}throw new ec(i.error,"airdrop to ".concat(e.toBase58()," failed"));case 6:return t.abrupt("return",i.result);case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return g.apply(this,arguments)})},{key:"_blockhashWithExpiryBlockHeight",value:(m=_(O().mark((function t(e){var n,r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e){t.next=10;break}case 1:if(!this._pollingBlockhash){t.next=6;break}return t.next=4,Cu(100);case 4:t.next=1;break;case 6:if(n=Date.now()-this._blockhashInfo.lastFetch,r=n>=3e4,null===this._blockhashInfo.latestBlockhash||r){t.next=10;break}return t.abrupt("return",this._blockhashInfo.latestBlockhash);case 10:return t.next=12,this._pollNewBlockhash();case 12:return t.abrupt("return",t.sent);case 13:case"end":return t.stop()}}),t,this)}))),function(t){return m.apply(this,arguments)})},{key:"_pollNewBlockhash",value:(y=_(O().mark((function t(){var e,n,r,i,o;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:this._pollingBlockhash=!0,t.prev=1,e=Date.now(),n=this._blockhashInfo.latestBlockhash,r=n?n.blockhash:null,i=0;case 6:if(!(i<50)){t.next=18;break}return t.next=9,this.getLatestBlockhash("finalized");case 9:if(o=t.sent,r===o.blockhash){t.next=13;break}return this._blockhashInfo={latestBlockhash:o,lastFetch:Date.now(),transactionSignatures:[],simulatedSignatures:[]},t.abrupt("return",o);case 13:return t.next=15,Cu(200);case 15:i++,t.next=6;break;case 18:throw new Error("Unable to obtain a new blockhash after ".concat(Date.now()-e,"ms"));case 19:return t.prev=19,this._pollingBlockhash=!1,t.finish(19);case 22:case"end":return t.stop()}}),t,this,[[1,,19,22]])}))),function(){return y.apply(this,arguments)})},{key:"getStakeMinimumDelegation",value:(p=_(O().mark((function t(e){var n,r,i,o,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=lc(e),r=n.commitment,i=n.config,o=this._buildArgs([],r,"base64",i),t.next=4,this._rpcRequest("getStakeMinimumDelegation",o);case 4:if(a=t.sent,!("error"in(s=co(a,pc(wo()))))){t.next=8;break}throw new ec(s.error,"failed to get stake minimum delegation");case 8:return t.abrupt("return",s.result);case 9:case"end":return t.stop()}}),t,this)}))),function(t){return p.apply(this,arguments)})},{key:"simulateTransaction",value:(f=_(O().mark((function t(e,n,r){var i,o,a,s,u,c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!("message"in e)){t.next=17;break}if(i=e.serialize(),o=Nt.from(i).toString("base64"),!Array.isArray(n)&&void 0===r){t.next=6;break}throw new Error("Invalid arguments");case 6:return(a=n||{}).encoding="base64","commitment"in a||(a.commitment=this.commitment),s=[o,a],t.next=12,this._rpcRequest("simulateTransaction",s);case 12:if(u=t.sent,!("error"in(c=co(u,Tc)))){t.next=16;break}throw new Error("failed to simulate transaction: "+c.error.message);case 16:return t.abrupt("return",c.result);case 17:if(e instanceof vu?(h=e,(l=new vu).feePayer=h.feePayer,l.instructions=e.instructions,l.nonceInfo=h.nonceInfo,l.signatures=h.signatures):(l=vu.populate(e))._message=l._json=void 0,void 0===n||Array.isArray(n)){t.next=20;break}throw new Error("Invalid arguments");case 20:if(d=n,!l.nonceInfo||!d){t.next=25;break}(f=l).sign.apply(f,et(d)),t.next=45;break;case 25:p=this._disableBlockhashCaching;case 26:return t.next=28,this._blockhashWithExpiryBlockHeight(p);case 28:if(m=t.sent,l.lastValidBlockHeight=m.lastValidBlockHeight,l.recentBlockhash=m.blockhash,d){t.next=33;break}return t.abrupt("break",45);case 33:if((y=l).sign.apply(y,et(d)),l.signature){t.next=36;break}throw new Error("!signature");case 36:if(g=l.signature.toString("base64"),this._blockhashInfo.simulatedSignatures.includes(g)||this._blockhashInfo.transactionSignatures.includes(g)){t.next=42;break}return this._blockhashInfo.simulatedSignatures.push(g),t.abrupt("break",45);case 42:p=!0;case 43:t.next=26;break;case 45:return v=l._compile(),w=v.serialize(),b=l._serialize(w),M=b.toString("base64"),A={encoding:"base64",commitment:this.commitment},r&&(I=(Array.isArray(r)?r:v.nonProgramIds()).map((function(t){return t.toBase58()})),A.accounts={encoding:"base64",addresses:I}),d&&(A.sigVerify=!0),N=[M,A],t.next=55,this._rpcRequest("simulateTransaction",N);case 55:if(E=t.sent,!("error"in(x=co(E,Tc)))){t.next=60;break}throw"data"in x.error&&(k=x.error.data.logs)&&Array.isArray(k)&&(L=(T="\n ")+k.join(T),console.error(x.error.message,L)),new tc("failed to simulate transaction: "+x.error.message,k);case 60:return t.abrupt("return",x.result);case 61:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return f.apply(this,arguments)})},{key:"sendTransaction",value:(d=_(O().mark((function t(e,n,r){var i,o,a,s,u,c;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!("version"in e)){t.next=7;break}if(!n||!Array.isArray(n)){t.next=3;break}throw new Error("Invalid arguments");case 3:return i=e.serialize(),t.next=6,this.sendRawTransaction(i,n);case 6:return t.abrupt("return",t.sent);case 7:if(void 0!==n&&Array.isArray(n)){t.next=9;break}throw new Error("Invalid arguments");case 9:if(o=n,!e.nonceInfo){t.next=14;break}e.sign.apply(e,et(o)),t.next=32;break;case 14:a=this._disableBlockhashCaching;case 15:return t.next=17,this._blockhashWithExpiryBlockHeight(a);case 17:if(s=t.sent,e.lastValidBlockHeight=s.lastValidBlockHeight,e.recentBlockhash=s.blockhash,e.sign.apply(e,et(o)),e.signature){t.next=23;break}throw new Error("!signature");case 23:if(u=e.signature.toString("base64"),this._blockhashInfo.transactionSignatures.includes(u)){t.next=29;break}return this._blockhashInfo.transactionSignatures.push(u),t.abrupt("break",32);case 29:a=!0;case 30:t.next=15;break;case 32:return c=e.serialize(),t.next=35,this.sendRawTransaction(c,r);case 35:return t.abrupt("return",t.sent);case 36:case"end":return t.stop()}}),t,this)}))),function(t,e,n){return d.apply(this,arguments)})},{key:"sendRawTransaction",value:(h=_(O().mark((function t(e,n){var r,i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Hs(e).toString("base64"),t.next=3,this.sendEncodedTransaction(r,n);case 3:return i=t.sent,t.abrupt("return",i);case 5:case"end":return t.stop()}}),t,this)}))),function(t,e){return h.apply(this,arguments)})},{key:"sendEncodedTransaction",value:(l=_(O().mark((function t(e,n){var r,i,o,a,s,u,c;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r={encoding:"base64"},i=n&&n.skipPreflight,o=n&&n.preflightCommitment||this.commitment,n&&null!=n.maxRetries&&(r.maxRetries=n.maxRetries),n&&null!=n.minContextSlot&&(r.minContextSlot=n.minContextSlot),i&&(r.skipPreflight=i),o&&(r.preflightCommitment=o),a=[e,r],t.next=10,this._rpcRequest("sendTransaction",a);case 10:if(s=t.sent,!("error"in(u=co(s,Fl)))){t.next=15;break}throw"data"in u.error&&(c=u.error.data.logs),new tc("failed to send transaction: "+u.error.message,c);case 15:return t.abrupt("return",u.result);case 16:case"end":return t.stop()}}),t,this)}))),function(t,e){return l.apply(this,arguments)})},{key:"_wsOnOpen",value:function(){var t=this;this._rpcWebSocketConnected=!0,this._rpcWebSocketHeartbeat=setInterval((function(){_(O().mark((function e(){return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,t._rpcWebSocket.notify("ping");case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:case"end":return e.stop()}}),e,null,[[0,5]])})))()}),5e3),this._updateSubscriptions()}},{key:"_wsOnError",value:function(t){this._rpcWebSocketConnected=!1,console.error("ws error:",t.message)}},{key:"_wsOnClose",value:function(t){var e=this;this._rpcWebSocketConnected=!1,this._rpcWebSocketGeneration=(this._rpcWebSocketGeneration+1)%Number.MAX_SAFE_INTEGER,this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null),this._rpcWebSocketHeartbeat&&(clearInterval(this._rpcWebSocketHeartbeat),this._rpcWebSocketHeartbeat=null),1e3!==t?(this._subscriptionCallbacksByServerSubscriptionId={},Object.entries(this._subscriptionsByHash).forEach((function(t){var n=tt(t,2),r=n[0],i=n[1];e._setSubscription(r,D(D({},i),{},{state:"pending"}))}))):this._updateSubscriptions()}},{key:"_setSubscription",value:function(t,e){var n,r=null===(n=this._subscriptionsByHash[t])||void 0===n?void 0:n.state;if(this._subscriptionsByHash[t]=e,r!==e.state){var i=this._subscriptionStateChangeCallbacksByHash[t];i&&i.forEach((function(t){try{t(e.state)}catch(t){}}))}}},{key:"_onSubscriptionStateChange",value:function(t,e){var n,r=this,i=this._subscriptionHashByClientSubscriptionId[t];if(null==i)return function(){};var o=(n=this._subscriptionStateChangeCallbacksByHash)[i]||(n[i]=new Set);return o.add(e),function(){o.delete(e),0===o.size&&delete r._subscriptionStateChangeCallbacksByHash[i]}}},{key:"_updateSubscriptions",value:(c=_(O().mark((function t(){var e,n,r=this;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(0!==Object.keys(this._subscriptionsByHash).length){t.next=3;break}return this._rpcWebSocketConnected&&(this._rpcWebSocketConnected=!1,this._rpcWebSocketIdleTimeout=setTimeout((function(){r._rpcWebSocketIdleTimeout=null;try{r._rpcWebSocket.close()}catch(t){t instanceof Error&&console.log("Error when closing socket connection: ".concat(t.message))}}),500)),t.abrupt("return");case 3:if(null!==this._rpcWebSocketIdleTimeout&&(clearTimeout(this._rpcWebSocketIdleTimeout),this._rpcWebSocketIdleTimeout=null,this._rpcWebSocketConnected=!0),this._rpcWebSocketConnected){t.next=7;break}return this._rpcWebSocket.connect(),t.abrupt("return");case 7:return e=this._rpcWebSocketGeneration,n=function(){return e===r._rpcWebSocketGeneration},t.next=11,Promise.all(Object.keys(this._subscriptionsByHash).map(function(){var t=_(O().mark((function t(e){var i;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(void 0!==(i=r._subscriptionsByHash[e])){t.next=3;break}return t.abrupt("return");case 3:t.t0=i.state,t.next="pending"===t.t0||"unsubscribed"===t.t0?6:"subscribed"===t.t0?15:19;break;case 6:if(0!==i.callbacks.size){t.next=12;break}return delete r._subscriptionsByHash[e],"unsubscribed"===i.state&&delete r._subscriptionCallbacksByServerSubscriptionId[i.serverSubscriptionId],t.next=11,r._updateSubscriptions();case 11:return t.abrupt("return");case 12:return t.next=14,_(O().mark((function t(){var o,a,s;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return o=i.args,a=i.method,t.prev=1,r._setSubscription(e,D(D({},i),{},{state:"subscribing"})),t.next=5,r._rpcWebSocket.call(a,o);case 5:return s=t.sent,r._setSubscription(e,D(D({},i),{},{serverSubscriptionId:s,state:"subscribed"})),r._subscriptionCallbacksByServerSubscriptionId[s]=i.callbacks,t.next=10,r._updateSubscriptions();case 10:t.next=20;break;case 12:if(t.prev=12,t.t0=t.catch(1),t.t0 instanceof Error&&console.error("".concat(a," error for argument"),o,t.t0.message),n()){t.next=17;break}return t.abrupt("return");case 17:return r._setSubscription(e,D(D({},i),{},{state:"pending"})),t.next=20,r._updateSubscriptions();case 20:case"end":return t.stop()}}),t,null,[[1,12]])})))();case 14:return t.abrupt("break",19);case 15:if(0!==i.callbacks.size){t.next=18;break}return t.next=18,_(O().mark((function t(){var o,a;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(o=i.serverSubscriptionId,a=i.unsubscribeMethod,!r._subscriptionsAutoDisposedByRpc.has(o)){t.next=5;break}r._subscriptionsAutoDisposedByRpc.delete(o),t.next=21;break;case 5:return r._setSubscription(e,D(D({},i),{},{state:"unsubscribing"})),r._setSubscription(e,D(D({},i),{},{state:"unsubscribing"})),t.prev=7,t.next=10,r._rpcWebSocket.call(a,[o]);case 10:t.next=21;break;case 12:if(t.prev=12,t.t0=t.catch(7),t.t0 instanceof Error&&console.error("".concat(a," error:"),t.t0.message),n()){t.next=17;break}return t.abrupt("return");case 17:return r._setSubscription(e,D(D({},i),{},{state:"subscribed"})),t.next=20,r._updateSubscriptions();case 20:return t.abrupt("return");case 21:return r._setSubscription(e,D(D({},i),{},{state:"unsubscribed"})),t.next=24,r._updateSubscriptions();case 24:case"end":return t.stop()}}),t,null,[[7,12]])})))();case 18:return t.abrupt("break",19);case 19:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 11:case"end":return t.stop()}}),t,this)}))),function(){return c.apply(this,arguments)})},{key:"_handleServerNotification",value:function(t,e){var n=this._subscriptionCallbacksByServerSubscriptionId[t];void 0!==n&&n.forEach((function(t){try{t.apply(void 0,et(e))}catch(t){console.error(t)}}))}},{key:"_wsOnAccountNotification",value:function(t){var e=co(t,Kc),n=e.result,r=e.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_makeSubscription",value:function(t,e){var n=this,r=this._nextClientSubscriptionId++,i=Xu([t.method,e],!0),o=this._subscriptionsByHash[i];return void 0===o?this._subscriptionsByHash[i]=D(D({},t),{},{args:e,callbacks:new Set([t.callback]),state:"pending"}):o.callbacks.add(t.callback),this._subscriptionHashByClientSubscriptionId[r]=i,this._subscriptionDisposeFunctionsByClientSubscriptionId[r]=_(O().mark((function e(){var o;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return delete n._subscriptionDisposeFunctionsByClientSubscriptionId[r],delete n._subscriptionHashByClientSubscriptionId[r],lu(void 0!==(o=n._subscriptionsByHash[i]),"Could not find a `Subscription` when tearing down client subscription #".concat(r)),o.callbacks.delete(t.callback),e.next=7,n._updateSubscriptions();case 7:case"end":return e.stop()}}),e)}))),this._updateSubscriptions(),r}},{key:"onAccountChange",value:function(t,e,n){var r=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64");return this._makeSubscription({callback:e,method:"accountSubscribe",unsubscribeMethod:"accountUnsubscribe"},r)}},{key:"removeAccountChangeListener",value:(u=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"account change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return u.apply(this,arguments)})},{key:"_wsOnProgramAccountNotification",value:function(t){var e=co(t,tl),n=e.result,r=e.subscription;this._handleServerNotification(r,[{accountId:n.value.pubkey,accountInfo:n.value.account},n.context])}},{key:"onProgramAccountChange",value:function(t,e,n,r){var i=this._buildArgs([t.toBase58()],n||this._commitment||"finalized","base64",r?{filters:r}:void 0);return this._makeSubscription({callback:e,method:"programSubscribe",unsubscribeMethod:"programUnsubscribe"},i)}},{key:"removeProgramAccountChangeListener",value:(s=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"program account change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return s.apply(this,arguments)})},{key:"onLogs",value:function(t,e,n){var r=this._buildArgs(["object"===z(t)?{mentions:[t.toString()]}:t],n||this._commitment||"finalized");return this._makeSubscription({callback:e,method:"logsSubscribe",unsubscribeMethod:"logsUnsubscribe"},r)}},{key:"removeOnLogsListener",value:(a=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"logs");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return a.apply(this,arguments)})},{key:"_wsOnLogsNotification",value:function(t){var e=co(t,Hl),n=e.result,r=e.subscription;this._handleServerNotification(r,[n.value,n.context])}},{key:"_wsOnSlotNotification",value:function(t){var e=co(t,nl),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotChange",value:function(t){return this._makeSubscription({callback:t,method:"slotSubscribe",unsubscribeMethod:"slotUnsubscribe"},[])}},{key:"removeSlotChangeListener",value:(o=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"slot change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return o.apply(this,arguments)})},{key:"_wsOnSlotUpdatesNotification",value:function(t){var e=co(t,il),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onSlotUpdate",value:function(t){return this._makeSubscription({callback:t,method:"slotsUpdatesSubscribe",unsubscribeMethod:"slotsUpdatesUnsubscribe"},[])}},{key:"removeSlotUpdateListener",value:(i=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"slot update");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return i.apply(this,arguments)})},{key:"_unsubscribeClientSubscription",value:(r=_(O().mark((function t(e,n){var r;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(r=this._subscriptionDisposeFunctionsByClientSubscriptionId[e])){t.next=6;break}return t.next=4,r();case 4:t.next=7;break;case 6:console.warn("Ignored unsubscribe request because an active subscription with id "+"`".concat(e,"` for '").concat(n,"' events ")+"could not be found.");case 7:case"end":return t.stop()}}),t,this)}))),function(t,e){return r.apply(this,arguments)})},{key:"_buildArgs",value:function(t,e,n,r){var i=e||this._commitment;if(i||n||r){var o={};n&&(o.encoding=n),i&&(o.commitment=i),r&&(o=Object.assign(o,r)),t.push(o)}return t}},{key:"_buildArgsAtLeastConfirmed",value:function(t,e,n,r){var i=e||this._commitment;if(i&&!["confirmed","finalized"].includes(i))throw new Error("Using Connection with default commitment: `"+this._commitment+"`, but method requires at least `confirmed`");return this._buildArgs(t,e,n,r)}},{key:"_wsOnSignatureNotification",value:function(t){var e=co(t,ol),n=e.result,r=e.subscription;"receivedSignature"!==n.value&&this._subscriptionsAutoDisposedByRpc.add(r),this._handleServerNotification(r,"receivedSignature"===n.value?[{type:"received"},n.context]:[{type:"status",result:n.value},n.context])}},{key:"onSignature",value:function(t,e,n){var r=this,i=this._buildArgs([t],n||this._commitment||"finalized"),o=this._makeSubscription({callback:function(t,n){if("status"===t.type){e(t.result,n);try{r.removeSignatureListener(o)}catch(t){}}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},i);return o}},{key:"onSignatureWithOptions",value:function(t,e,n){var r=this,i=D(D({},n),{},{commitment:n&&n.commitment||this._commitment||"finalized"}),o=i.commitment,a=q(i,Bs),s=this._buildArgs([t],o,void 0,a),u=this._makeSubscription({callback:function(t,n){e(t,n);try{r.removeSignatureListener(u)}catch(t){}},method:"signatureSubscribe",unsubscribeMethod:"signatureUnsubscribe"},s);return u}},{key:"removeSignatureListener",value:(n=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"signature result");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return n.apply(this,arguments)})},{key:"_wsOnRootNotification",value:function(t){var e=co(t,al),n=e.result,r=e.subscription;this._handleServerNotification(r,[n])}},{key:"onRootChange",value:function(t){return this._makeSubscription({callback:t,method:"rootSubscribe",unsubscribeMethod:"rootUnsubscribe"},[])}},{key:"removeRootChangeListener",value:(e=_(O().mark((function t(e){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._unsubscribeClientSubscription(e,"root change");case 2:case"end":return t.stop()}}),t,this)}))),function(t){return e.apply(this,arguments)})}]),t}(),Zl=function(){function t(e){B(this,t),this._keypair=void 0,this._keypair=null!=e?e:Us()}return U(t,[{key:"publicKey",get:function(){return new Xs(this._keypair.publicKey)}},{key:"secretKey",get:function(){return new Uint8Array(this._keypair.secretKey)}}],[{key:"generate",value:function(){return new t(Us())}},{key:"fromSecretKey",value:function(e,n){if(64!==e.byteLength)throw new Error("bad secret key size");var r=e.slice(32,64);if(!n||!n.skipValidation)for(var i=e.slice(0,32),o=Qs(i),a=0;a<32;a++)if(r[a]!==o[a])throw new Error("provided secretKey is invalid");return new t({publicKey:r,secretKey:e})}},{key:"fromSeed",value:function(e){var n=Qs(e),r=new Uint8Array(64);return r.set(e),r.set(n,32),new t({publicKey:n,secretKey:r})}}]),t}(),Jl=Object.freeze({CreateLookupTable:{index:0,layout:Fi([Qi("instruction"),Uu("recentSlot"),Ri("bumpSeed")])},FreezeLookupTable:{index:1,layout:Fi([Qi("instruction")])},ExtendLookupTable:{index:2,layout:Fi([Qi("instruction"),Uu(),Vi(iu(),Bi(Qi(),-8),"addresses")])},DeactivateLookupTable:{index:3,layout:Fi([Qi("instruction")])},CloseLookupTable:{index:4,layout:Fi([Qi("instruction")])}}),Xl=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(Jl);r2?t.keys[2].pubkey:void 0,addresses:e.map((function(t){return new Xs(t)}))}}},{key:"decodeCloseLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,3),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey,recipient:t.keys[2].pubkey}}},{key:"decodeFreezeLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}},{key:"decodeDeactivateLookupTable",value:function(t){return this.checkProgramId(t.programId),this.checkKeysLength(t.keys,2),{lookupTable:t.keys[0].pubkey,authority:t.keys[1].pubkey}}},{key:"checkProgramId",value:function(t){if(!t.equals(Kl.programId))throw new Error("invalid instruction; programId is not AddressLookupTable Program")}},{key:"checkKeysLength",value:function(t,e){if(t.length3&&(i.custodianPubkey=t.keys[3].pubkey),i}},{key:"decodeAuthorizeWithSeed",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,2);var e=Ou(dh.AuthorizeWithSeed,t.data),n=e.newAuthorized,r=e.stakeAuthorizationType,i=e.authoritySeed,o=e.authorityOwner,a={stakePubkey:t.keys[0].pubkey,authorityBase:t.keys[1].pubkey,authoritySeed:i,authorityOwner:new Xs(o),newAuthorizedPubkey:new Xs(n),stakeAuthorizationType:{index:r}};return t.keys.length>3&&(a.custodianPubkey=t.keys[3].pubkey),a}},{key:"decodeSplit",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3);var e=Ou(dh.Split,t.data).lamports;return{stakePubkey:t.keys[0].pubkey,splitStakePubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[2].pubkey,lamports:e}}},{key:"decodeMerge",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ou(dh.Merge,t.data),{stakePubkey:t.keys[0].pubkey,sourceStakePubKey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey}}},{key:"decodeWithdraw",value:function(t){this.checkProgramId(t.programId),this.checkKeyLength(t.keys,5);var e=Ou(dh.Withdraw,t.data).lamports,n={stakePubkey:t.keys[0].pubkey,toPubkey:t.keys[1].pubkey,authorizedPubkey:t.keys[4].pubkey,lamports:e};return t.keys.length>5&&(n.custodianPubkey=t.keys[5].pubkey),n}},{key:"decodeDeactivate",value:function(t){return this.checkProgramId(t.programId),this.checkKeyLength(t.keys,3),Ou(dh.Deactivate,t.data),{stakePubkey:t.keys[0].pubkey,authorizedPubkey:t.keys[2].pubkey}}},{key:"checkProgramId",value:function(t){if(!t.equals(ph.programId))throw new Error("invalid instruction; programId is not StakeProgram")}},{key:"checkKeyLength",value:function(t,e){if(t.length0&&void 0!==arguments[0]?arguments[0]:"authorized";return Fi([iu("staker"),iu("withdrawer")],t)}(),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"lockup";return Fi([Wi("unixTimestamp"),Wi("epoch"),iu("custodian")],t)}()])},Authorize:{index:1,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("stakeAuthorizationType")])},Delegate:{index:2,layout:Fi([Qi("instruction")])},Split:{index:3,layout:Fi([Qi("instruction"),Wi("lamports")])},Withdraw:{index:4,layout:Fi([Qi("instruction"),Wi("lamports")])},Deactivate:{index:5,layout:Fi([Qi("instruction")])},Merge:{index:7,layout:Fi([Qi("instruction")])},AuthorizeWithSeed:{index:8,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("stakeAuthorizationType"),au("authoritySeed"),iu("authorityOwner")])}}),fh=Object.freeze({Staker:{index:0},Withdrawer:{index:1}}),ph=function(){function t(){B(this,t)}return U(t,null,[{key:"initialize",value:function(t){var e=t.stakePubkey,n=t.authorized,r=t.lockup||lh.default,i=Du(dh.Initialize,{authorized:{staker:Hs(n.staker.toBuffer()),withdrawer:Hs(n.withdrawer.toBuffer())},lockup:{unixTimestamp:r.unixTimestamp,epoch:r.epoch,custodian:Hs(r.custodian.toBuffer())}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1}],programId:this.programId,data:i};return new gu(o)}},{key:"createAccountWithSeed",value:function(t){var e=new vu;e.add(Wu.createAccountWithSeed({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,basePubkey:t.basePubkey,seed:t.seed,lamports:t.lamports,space:this.space,programId:this.programId}));var n=t.stakePubkey,r=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"createAccount",value:function(t){var e=new vu;e.add(Wu.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.stakePubkey,lamports:t.lamports,space:this.space,programId:this.programId}));var n=t.stakePubkey,r=t.authorized,i=t.lockup;return e.add(this.initialize({stakePubkey:n,authorized:r,lockup:i}))}},{key:"delegate",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.votePubkey,i=Du(dh.Delegate);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:uh,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"authorize",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.newAuthorizedPubkey,i=t.stakeAuthorizationType,o=t.custodianPubkey,a=Du(dh.Authorize,{newAuthorized:Hs(r.toBuffer()),stakeAuthorizationType:i.index}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new vu).add({keys:s,programId:this.programId,data:a})}},{key:"authorizeWithSeed",value:function(t){var e=t.stakePubkey,n=t.authorityBase,r=t.authoritySeed,i=t.authorityOwner,o=t.newAuthorizedPubkey,a=t.stakeAuthorizationType,s=t.custodianPubkey,u=Du(dh.AuthorizeWithSeed,{newAuthorized:Hs(o.toBuffer()),stakeAuthorizationType:a.index,authoritySeed:r,authorityOwner:Hs(i.toBuffer())}),c=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1}];return s&&c.push({pubkey:s,isSigner:!1,isWritable:!1}),(new vu).add({keys:c,programId:this.programId,data:u})}},{key:"splitInstruction",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.splitStakePubkey,i=t.lamports,o=Du(dh.Split,{lamports:i});return new gu({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:o})}},{key:"split",value:function(t){var e=new vu;return e.add(Wu.createAccount({fromPubkey:t.authorizedPubkey,newAccountPubkey:t.splitStakePubkey,lamports:0,space:this.space,programId:this.programId})),e.add(this.splitInstruction(t))}},{key:"splitWithSeed",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.splitStakePubkey,i=t.basePubkey,o=t.seed,a=t.lamports,s=new vu;return s.add(Wu.allocate({accountPubkey:r,basePubkey:i,seed:o,space:this.space,programId:this.programId})),s.add(this.splitInstruction({stakePubkey:e,authorizedPubkey:n,splitStakePubkey:r,lamports:a}))}},{key:"merge",value:function(t){var e=t.stakePubkey,n=t.sourceStakePubKey,r=t.authorizedPubkey,i=Du(dh.Merge);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:r,isSigner:!0,isWritable:!1}],programId:this.programId,data:i})}},{key:"withdraw",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=t.toPubkey,i=t.lamports,o=t.custodianPubkey,a=Du(dh.Withdraw,{lamports:i}),s=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:Lu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return o&&s.push({pubkey:o,isSigner:!1,isWritable:!1}),(new vu).add({keys:s,programId:this.programId,data:a})}},{key:"deactivate",value:function(t){var e=t.stakePubkey,n=t.authorizedPubkey,r=Du(dh.Deactivate);return(new vu).add({keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:r})}}]),t}();ph.programId=new Xs("Stake11111111111111111111111111111111111111"),ph.space=200;var yh=U((function t(e,n,r,i){B(this,t),this.nodePubkey=void 0,this.authorizedVoter=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.nodePubkey=e,this.authorizedVoter=n,this.authorizedWithdrawer=r,this.commission=i})),mh=function(){function t(){B(this,t)}return U(t,null,[{key:"decodeInstructionType",value:function(t){this.checkProgramId(t.programId);for(var e,n=Qi("instruction").decode(t.data),r=0,i=Object.entries(gh);r0&&void 0!==arguments[0]?arguments[0]:"voteInit";return Fi([iu("nodePubkey"),iu("authorizedVoter"),iu("authorizedWithdrawer"),Ri("commission")],t)}()])},Authorize:{index:1,layout:Fi([Qi("instruction"),iu("newAuthorized"),Qi("voteAuthorizationType")])},Withdraw:{index:3,layout:Fi([Qi("instruction"),Wi("lamports")])},AuthorizeWithSeed:{index:10,layout:Fi([Qi("instruction"),function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"voteAuthorizeWithSeedArgs";return Fi([Qi("voteAuthorizationType"),iu("currentAuthorityDerivedKeyOwnerPubkey"),au("currentAuthorityDerivedKeySeed"),iu("newAuthorized")],t)}()])}}),vh=Object.freeze({Voter:{index:0},Withdrawer:{index:1}}),wh=function(){function t(){B(this,t)}return U(t,null,[{key:"initializeAccount",value:function(t){var e=t.votePubkey,n=t.nodePubkey,r=t.voteInit,i=Du(gh.InitializeAccount,{voteInit:{nodePubkey:Hs(r.nodePubkey.toBuffer()),authorizedVoter:Hs(r.authorizedVoter.toBuffer()),authorizedWithdrawer:Hs(r.authorizedWithdrawer.toBuffer()),commission:r.commission}}),o={keys:[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Eu,isSigner:!1,isWritable:!1},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}],programId:this.programId,data:i};return new gu(o)}},{key:"createAccount",value:function(t){var e=new vu;return e.add(Wu.createAccount({fromPubkey:t.fromPubkey,newAccountPubkey:t.votePubkey,lamports:t.lamports,space:this.space,programId:this.programId})),e.add(this.initializeAccount({votePubkey:t.votePubkey,nodePubkey:t.voteInit.nodePubkey,voteInit:t.voteInit}))}},{key:"authorize",value:function(t){var e=t.votePubkey,n=t.authorizedPubkey,r=t.newAuthorizedPubkey,i=t.voteAuthorizationType,o=Du(gh.Authorize,{newAuthorized:Hs(r.toBuffer()),voteAuthorizationType:i.index}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:n,isSigner:!0,isWritable:!1}];return(new vu).add({keys:a,programId:this.programId,data:o})}},{key:"authorizeWithSeed",value:function(t){var e=t.currentAuthorityDerivedKeyBasePubkey,n=t.currentAuthorityDerivedKeyOwnerPubkey,r=t.currentAuthorityDerivedKeySeed,i=t.newAuthorizedPubkey,o=t.voteAuthorizationType,a=t.votePubkey,s=Du(gh.AuthorizeWithSeed,{voteAuthorizeWithSeedArgs:{currentAuthorityDerivedKeyOwnerPubkey:Hs(n.toBuffer()),currentAuthorityDerivedKeySeed:r,newAuthorized:Hs(i.toBuffer()),voteAuthorizationType:o.index}}),u=[{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:Mu,isSigner:!1,isWritable:!1},{pubkey:e,isSigner:!0,isWritable:!1}];return(new vu).add({keys:u,programId:this.programId,data:s})}},{key:"withdraw",value:function(t){var e=t.votePubkey,n=t.authorizedWithdrawerPubkey,r=t.lamports,i=t.toPubkey,o=Du(gh.Withdraw,{lamports:r}),a=[{pubkey:e,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:n,isSigner:!0,isWritable:!1}];return(new vu).add({keys:a,programId:this.programId,data:o})}},{key:"safeWithdraw",value:function(e,n,r){if(e.lamports>n-r)throw new Error("Withdraw will leave vote account with insuffcient funds.");return t.withdraw(e)}}]),t}();wh.programId=new Xs("Vote111111111111111111111111111111111111111"),wh.space=3731;var bh=new Xs("Va1idator1nfo111111111111111111111111111111"),Mh=No({name:Ao(),website:bo(Ao()),details:bo(Ao()),keybaseUsername:bo(Ao())}),Ah=function(){function t(e,n){B(this,t),this.key=void 0,this.info=void 0,this.key=e,this.info=n}return U(t,null,[{key:"fromConfigData",value:function(e){var n=et(e);if(2!==uu(n))return null;for(var r=[],i=0;i<2;i++){var o=new Xs(n.slice(0,32)),a=1===(n=n.slice(32)).slice(0,1)[0];n=n.slice(1),r.push({publicKey:o,isSigner:a})}if(r[0].publicKey.equals(bh)&&r[1].isSigner){var s=au().decode(Nt.from(n)),u=JSON.parse(s);return uo(u,Mh),new t(r[1].publicKey,u)}return null}}]),t}(),Ih=new Xs("Vote111111111111111111111111111111111111111"),Nh=Fi([iu("nodePubkey"),iu("authorizedWithdrawer"),Ri("commission"),Yi(),Vi(Fi([Yi("slot"),Qi("confirmationCount")]),Bi(Qi(),-8),"votes"),Ri("rootSlotValid"),Yi("rootSlot"),Yi(),Vi(Fi([Yi("epoch"),iu("authorizedVoter")]),Bi(Qi(),-8),"authorizedVoters"),Fi([Vi(Fi([iu("authorizedPubkey"),Yi("epochOfLastAuthorizedSwitch"),Yi("targetEpoch")]),32,"buf"),Yi("idx"),Ri("isEmpty")],"priorVoters"),Yi(),Vi(Fi([Yi("epoch"),Yi("credits"),Yi("prevCredits")]),Bi(Qi(),-8),"epochCredits"),Fi([Yi("slot"),Yi("timestamp")],"lastTimestamp")]),Eh=function(){function t(e){B(this,t),this.nodePubkey=void 0,this.authorizedWithdrawer=void 0,this.commission=void 0,this.rootSlot=void 0,this.votes=void 0,this.authorizedVoters=void 0,this.priorVoters=void 0,this.epochCredits=void 0,this.lastTimestamp=void 0,this.nodePubkey=e.nodePubkey,this.authorizedWithdrawer=e.authorizedWithdrawer,this.commission=e.commission,this.rootSlot=e.rootSlot,this.votes=e.votes,this.authorizedVoters=e.authorizedVoters,this.priorVoters=e.priorVoters,this.epochCredits=e.epochCredits,this.lastTimestamp=e.lastTimestamp}return U(t,null,[{key:"fromAccountData",value:function(e){var n=Nh.decode(Hs(e),4),r=n.rootSlot;return n.rootSlotValid||(r=null),new t({nodePubkey:new Xs(n.nodePubkey),authorizedWithdrawer:new Xs(n.authorizedWithdrawer),commission:n.commission,votes:n.votes,rootSlot:r,authorizedVoters:n.authorizedVoters.map(xh),priorVoters:Th(n.priorVoters),epochCredits:n.epochCredits,lastTimestamp:n.lastTimestamp})}}]),t}();function xh(t){var e=t.authorizedVoter;return{epoch:t.epoch,authorizedVoter:new Xs(e)}}function kh(t){var e=t.authorizedPubkey,n=t.epochOfLastAuthorizedSwitch,r=t.targetEpoch;return{authorizedPubkey:new Xs(e),epochOfLastAuthorizedSwitch:n,targetEpoch:r}}function Th(t){var e=t.buf,n=t.idx;return t.isEmpty?[]:[].concat(et(e.slice(n+1).map(kh)),et(e.slice(0,n).map(kh)))}var Lh={http:{devnet:"http://api.devnet.solana.com",testnet:"http://api.testnet.solana.com","mainnet-beta":"http://api.mainnet-beta.solana.com/"},https:{devnet:"https://api.devnet.solana.com",testnet:"https://api.testnet.solana.com","mainnet-beta":"https://api.mainnet-beta.solana.com/"}};function Sh(){return(Sh=_(O().mark((function t(e,n,r,i){var o,a,s,u,c,l,h;return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r&&Object.prototype.hasOwnProperty.call(r,"lastValidBlockHeight")||r&&Object.prototype.hasOwnProperty.call(r,"nonceValue")?(o=r,a=i):a=r,s=a&&{skipPreflight:a.skipPreflight,preflightCommitment:a.preflightCommitment||a.commitment,minContextSlot:a.minContextSlot},t.next=4,e.sendRawTransaction(n,s);case 4:return u=t.sent,c=a&&a.commitment,l=o?e.confirmTransaction(o,c):e.confirmTransaction(u,c),t.next=9,l;case 9:if(!(h=t.sent.value).err){t.next=12;break}throw new Error("Raw transaction ".concat(u," failed (").concat(JSON.stringify(h),")"));case 12:return t.abrupt("return",u);case 13:case"end":return t.stop()}}),t)})))).apply(this,arguments)}var jh=j(Object.freeze({__proto__:null,Account:Ks,AddressLookupTableAccount:ic,AddressLookupTableInstruction:Xl,AddressLookupTableProgram:Kl,Authorized:ch,BLOCKHASH_CACHE_TIMEOUT_MS:3e4,BPF_LOADER_DEPRECATED_PROGRAM_ID:$s,BPF_LOADER_PROGRAM_ID:Vu,BpfLoader:Hu,COMPUTE_BUDGET_INSTRUCTION_LAYOUTS:th,ComputeBudgetInstruction:$l,ComputeBudgetProgram:eh,Connection:ql,Ed25519Program:rh,Enum:qs,EpochSchedule:$u,FeeCalculatorLayout:Pu,Keypair:Zl,LAMPORTS_PER_SOL:1e9,LOOKUP_TABLE_INSTRUCTION_LAYOUTS:Jl,Loader:Fu,Lockup:lh,MAX_SEED_LENGTH:32,Message:du,MessageAccountKeys:ru,MessageV0:fu,NONCE_ACCOUNT_LENGTH:Bu,NonceAccount:Ru,PACKET_DATA_SIZE:1232,PUBLIC_KEY_LENGTH:32,PublicKey:Xs,SIGNATURE_LENGTH_IN_BYTES:64,SOLANA_SCHEMA:Zs,STAKE_CONFIG_ID:uh,STAKE_INSTRUCTION_LAYOUTS:dh,SYSTEM_INSTRUCTION_LAYOUTS:Yu,SYSVAR_CLOCK_PUBKEY:Mu,SYSVAR_EPOCH_SCHEDULE_PUBKEY:Au,SYSVAR_INSTRUCTIONS_PUBKEY:Iu,SYSVAR_RECENT_BLOCKHASHES_PUBKEY:Nu,SYSVAR_RENT_PUBKEY:Eu,SYSVAR_REWARDS_PUBKEY:xu,SYSVAR_SLOT_HASHES_PUBKEY:ku,SYSVAR_SLOT_HISTORY_PUBKEY:Tu,SYSVAR_STAKE_HISTORY_PUBKEY:Lu,Secp256k1Program:sh,SendTransactionError:tc,SolanaJSONRPCError:ec,SolanaJSONRPCErrorCode:{JSON_RPC_SERVER_ERROR_BLOCK_CLEANED_UP:-32001,JSON_RPC_SERVER_ERROR_SEND_TRANSACTION_PREFLIGHT_FAILURE:-32002,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_VERIFICATION_FAILURE:-32003,JSON_RPC_SERVER_ERROR_BLOCK_NOT_AVAILABLE:-32004,JSON_RPC_SERVER_ERROR_NODE_UNHEALTHY:-32005,JSON_RPC_SERVER_ERROR_TRANSACTION_PRECOMPILE_VERIFICATION_FAILURE:-32006,JSON_RPC_SERVER_ERROR_SLOT_SKIPPED:-32007,JSON_RPC_SERVER_ERROR_NO_SNAPSHOT:-32008,JSON_RPC_SERVER_ERROR_LONG_TERM_STORAGE_SLOT_SKIPPED:-32009,JSON_RPC_SERVER_ERROR_KEY_EXCLUDED_FROM_SECONDARY_INDEX:-32010,JSON_RPC_SERVER_ERROR_TRANSACTION_HISTORY_NOT_AVAILABLE:-32011,JSON_RPC_SCAN_ERROR:-32012,JSON_RPC_SERVER_ERROR_TRANSACTION_SIGNATURE_LEN_MISMATCH:-32013,JSON_RPC_SERVER_ERROR_BLOCK_STATUS_NOT_AVAILABLE_YET:-32014,JSON_RPC_SERVER_ERROR_UNSUPPORTED_TRANSACTION_VERSION:-32015,JSON_RPC_SERVER_ERROR_MIN_CONTEXT_SLOT_NOT_REACHED:-32016},StakeAuthorizationLayout:fh,StakeInstruction:hh,StakeProgram:ph,Struct:Gs,SystemInstruction:Qu,SystemProgram:Wu,Transaction:vu,TransactionExpiredBlockheightExceededError:tu,TransactionExpiredNonceInvalidError:nu,TransactionExpiredTimeoutError:eu,TransactionInstruction:gu,TransactionMessage:wu,TransactionStatus:yu,VALIDATOR_INFO_KEY:bh,VERSION_PREFIX_MASK:127,VOTE_PROGRAM_ID:Ih,ValidatorInfo:Ah,VersionedMessage:pu,VersionedTransaction:bu,VoteAccount:Eh,VoteAuthorizationLayout:vh,VoteInit:yh,VoteInstruction:mh,VoteProgram:wh,clusterApiUrl:function(t,e){var n=!1===e?"http":"https";if(!t)return Lh[n].devnet;var r=Lh[n][t];if(!r)throw new Error("Unknown ".concat(n," cluster: ").concat(t));return r},sendAndConfirmRawTransaction:function(t,e,n,r){return Sh.apply(this,arguments)},sendAndConfirmTransaction:Su})),Ch={};Object.defineProperty(Ch,"__esModule",{value:!0});var Dh={ERROR_ASSOCIATION_PORT_OUT_OF_RANGE:"ERROR_ASSOCIATION_PORT_OUT_OF_RANGE",ERROR_FORBIDDEN_WALLET_BASE_URL:"ERROR_FORBIDDEN_WALLET_BASE_URL",ERROR_SECURE_CONTEXT_REQUIRED:"ERROR_SECURE_CONTEXT_REQUIRED",ERROR_SESSION_CLOSED:"ERROR_SESSION_CLOSED",ERROR_SESSION_TIMEOUT:"ERROR_SESSION_TIMEOUT",ERROR_WALLET_NOT_FOUND:"ERROR_WALLET_NOT_FOUND"},Oh=function(t){Y(n,G(Error));var e=X(n);function n(){var t;B(this,n);for(var r=arguments.length,i=new Array(r),o=0;o=4294967296)throw new Error("Outbound sequence number overflow. The maximum sequence number is 32-bytes.");var e=new ArrayBuffer(4);return new DataView(e).setUint32(0,t,!1),new Uint8Array(e)}function Rh(){return Ph(this,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,crypto.subtle.generateKey({name:"ECDSA",namedCurve:"P-256"},!1,["sign"]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))}function Uh(){return Ph(this,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,crypto.subtle.generateKey({name:"ECDH",namedCurve:"P-256"},!1,["deriveKey","deriveBits"]);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t)})))}var Qh;function Yh(t,e){return Ph(this,void 0,void 0,O().mark((function n(){var r,i,o,a,s;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=JSON.stringify(t),i=Bh(t.id),o=new Uint8Array(12),crypto.getRandomValues(o),n.next=6,crypto.subtle.encrypt(Fh(i,o),e,(new TextEncoder).encode(r));case 6:return a=n.sent,(s=new Uint8Array(i.byteLength+o.byteLength+a.byteLength)).set(new Uint8Array(i),0),s.set(new Uint8Array(o),i.byteLength),s.set(new Uint8Array(a),i.byteLength+o.byteLength),n.abrupt("return",s);case 12:case"end":return n.stop()}}),n)})))}function Wh(t,e){return Ph(this,void 0,void 0,O().mark((function n(){var r,i,o,a,s,u;return O().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=t.slice(0,4),i=t.slice(4,16),o=t.slice(16),n.next=5,crypto.subtle.decrypt(Fh(r,i),e,o);case 5:if(a=n.sent,s=Vh().decode(a),u=JSON.parse(s),!Object.hasOwnProperty.call(u,"error")){n.next=10;break}throw new zh(u.id,u.error.code,u.error.message);case 10:return n.abrupt("return",u);case 11:case"end":return n.stop()}}),n)})))}function Fh(t,e){return{additionalData:t,iv:e,name:"AES-GCM",tagLength:128}}function Vh(){return void 0===Qh&&(Qh=new TextDecoder("utf-8")),Qh}function Hh(t,e,n){return Ph(this,void 0,void 0,O().mark((function r(){var i,o,a,s,u,c,l;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,Promise.all([crypto.subtle.exportKey("raw",e),crypto.subtle.importKey("raw",t,{name:"ECDH",namedCurve:"P-256"},!1,[])]);case 2:return i=r.sent,o=tt(i,2),a=o[0],s=o[1],r.next=8,crypto.subtle.deriveBits({name:"ECDH",public:s},n,256);case 8:return u=r.sent,r.next=11,crypto.subtle.importKey("raw",u,"HKDF",!1,["deriveKey"]);case 11:return c=r.sent,r.next=14,crypto.subtle.deriveKey({name:"HKDF",hash:"SHA-256",salt:new Uint8Array(a),info:new Uint8Array},c,{name:"AES-GCM",length:128},!1,["encrypt","decrypt"]);case 14:return l=r.sent,r.abrupt("return",l);case 16:case"end":return r.stop()}}),r)})))}function Gh(t){if(t<49152||t>65535)throw new Oh(Dh.ERROR_ASSOCIATION_PORT_OUT_OF_RANGE,"Association port number must be between 49152 and 65535. ".concat(t," given."),{port:t});return t}function qh(t){for(var e="",n=new Uint8Array(t),r=n.byteLength,i=0;i1?t.shift():t[0]}}(),u=1,c=0,l={__type:"disconnected"},n.abrupt("return",new Promise((function(e,n){var d,f,p,y={},m=function t(){return Ph(h,void 0,void 0,O().mark((function e(){var n,r;return O().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("connecting"===l.__type){e.next=3;break}return console.warn("Expected adapter state to be `connecting` at the moment the websocket opens. "+"Got `".concat(l.__type,"`.")),e.abrupt("return");case 3:return n=l.associationKeypair,d.removeEventListener("open",t),e.next=7,Uh();case 7:return r=e.sent,e.t0=d,e.next=11,_h(r.publicKey,n.privateKey);case 11:e.t1=e.sent,e.t0.send.call(e.t0,e.t1),l={__type:"hello_req_sent",associationPublicKey:n.publicKey,ecdhPrivateKey:r.privateKey};case 14:case"end":return e.stop()}}),e)})))},g=function(t){t.wasClean?l={__type:"disconnected"}:n(new Oh(Dh.ERROR_SESSION_CLOSED,"The wallet session dropped unexpectedly (".concat(t.code,": ").concat(t.reason,")."),{closeEvent:t})),f()},v=function(t){return Ph(h,void 0,void 0,O().mark((function t(){return O().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(f(),!(Date.now()-a>=rd)){t.next=5;break}n(new Oh(Dh.ERROR_SESSION_TIMEOUT,"Failed to connect to the wallet websocket on port ".concat(i,"."))),t.next=8;break;case 5:return t.next=7,new Promise((function(t){var e=s();p=window.setTimeout(t,e)}));case 7:b();case 8:case"end":return t.stop()}}),t)})))},w=function(r){return Ph(h,void 0,void 0,O().mark((function i(){var o,a,s,h,p,m,g,v;return O().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,r.data.arrayBuffer();case 2:o=i.sent,i.t0=l.__type,i.next="connected"===i.t0?6:"hello_req_sent"===i.t0?30:51;break;case 6:if(i.prev=6,a=o.slice(0,4),(s=new DataView(a).getUint32(0,!1))===c+1){i.next=11;break}throw new Error("Encrypted message has invalid sequence number");case 11:return c=s,i.next=14,Wh(o,l.sharedSecret);case 14:h=i.sent,p=y[h.id],delete y[h.id],p.resolve(h.result),i.next=29;break;case 20:if(i.prev=20,i.t1=i.catch(6),!(i.t1 instanceof zh)){i.next=28;break}m=y[i.t1.jsonRpcMessageId],delete y[i.t1.jsonRpcMessageId],m.reject(i.t1),i.next=29;break;case 28:throw i.t1;case 29:return i.abrupt("break",51);case 30:return i.next=32,Hh(o,l.associationPublicKey,l.ecdhPrivateKey);case 32:return g=i.sent,l={__type:"connected",sharedSecret:g},v=new Proxy({},{get:function(t,e){if(null==t[e]){var n=e.toString().replace(/[A-Z]/g,(function(t){return"_".concat(t.toLowerCase())})).toLowerCase();t[e]=function(t){return Ph(this,void 0,void 0,O().mark((function r(){var i;return O().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=u++,r.t0=d,r.next=4,Yh({id:i,jsonrpc:"2.0",method:n,params:null!=t?t:{}},g);case 4:return r.t1=r.sent,r.t0.send.call(r.t0,r.t1),r.abrupt("return",new Promise((function(t,n){y[i]={resolve:function(r){switch(e){case"authorize":case"reauthorize":var i=r.wallet_uri_base;if(null!=i)try{od(i)}catch(t){return void n(t)}}t(r)},reject:n}})));case 7:case"end":return r.stop()}}),r)})))}}return t[e]},defineProperty:function(){return!1},deleteProperty:function(){return!1}}),i.prev=35,i.t2=e,i.next=39,t(v);case 39:i.t3=i.sent,(0,i.t2)(i.t3),i.next=46;break;case 43:i.prev=43,i.t4=i.catch(35),n(i.t4);case 46:return i.prev=46,f(),d.close(),i.finish(46);case 50:return i.abrupt("break",51);case 51:case"end":return i.stop()}}),i,null,[[6,20],[35,43,46,50]])})))},b=function(){f&&f(),l={__type:"connecting",associationKeypair:r},void 0===a&&(a=Date.now()),(d=new WebSocket(o,["com.solana.mobilewalletadapter.v1"])).addEventListener("open",m),d.addEventListener("close",g),d.addEventListener("error",v),d.addEventListener("message",w),f=function(){window.clearTimeout(p),d.removeEventListener("open",m),d.removeEventListener("close",g),d.removeEventListener("error",v),d.removeEventListener("message",w)}};b()})));case 13:case"end":return n.stop()}}),n)})))};var ad=function(t){if(t.length>=255)throw new TypeError("Alphabet too long");for(var e=new Uint8Array(256),n=0;n>>0,c=new Uint8Array(o);t[n];){var l=e[t.charCodeAt(n)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,c[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,n++}for(var f=o-i;f!==o&&0===c[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=c[f++];return p}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var u=(o-i)*c+1>>>0,l=new Uint8Array(u);i!==o;){for(var h=e[i],d=0,f=u-1;(0!==h||d>>0,l[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=u-r;p!==u&&0===l[p];)p++;for(var y=s.repeat(n);pthis.span)throw new RangeError("indeterminate span");return this.span}},{key:"replicate",value:function(t){var e=Object.create(this.constructor.prototype);return Object.assign(e,this),e.property=t,e}},{key:"fromArray",value:function(t){}}]),t}();function wd(t,e){return e.property?t+"["+e.property+"]":t}gd.Layout=vd,gd.nameWithProperty=wd,gd.bindConstructorLayout=function(t,e){if("function"!=typeof t)throw new TypeError("Class must be constructor");if(t.hasOwnProperty("layout_"))throw new Error("Class is already bound to a layout");if(!(e&&e instanceof vd))throw new TypeError("layout must be a Layout");if(e.hasOwnProperty("boundConstructor_"))throw new Error("layout is already bound to a constructor");t.layout_=e,e.boundConstructor_=t,e.makeDestinationObject=function(){return new t},Object.defineProperty(t.prototype,"encode",{value:function(t,n){return e.encode(this,t,n)},writable:!0}),Object.defineProperty(t,"decode",{value:function(t,n){return e.decode(t,n)},writable:!0})};var bd=function(t){Y(n,vd);var e=X(n);function n(){return B(this,n),e.apply(this,arguments)}return U(n,[{key:"isCount",value:function(){throw new Error("ExternalLayout is abstract")}}]),n}(),Md=function(t){Y(n,bd);var e=X(n);function n(t,r){var i;if(B(this,n),void 0===t&&(t=1),!Number.isInteger(t)||0>=t)throw new TypeError("elementSpan must be a (positive) integer");return(i=e.call(this,-1,r)).elementSpan=t,i}return U(n,[{key:"isCount",value:function(){return!0}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.length-e;return Math.floor(n/this.elementSpan)}},{key:"encode",value:function(t,e,n){return 0}}]),n}(),Ad=function(t){Y(n,bd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof vd))throw new TypeError("layout must be a Layout");if(void 0===r)r=0;else if(!Number.isInteger(r))throw new TypeError("offset must be integer or undefined");return(o=e.call(this,t.span,i||t.property)).layout=t,o.offset=r,o}return U(n,[{key:"isCount",value:function(){return this.layout instanceof Id||this.layout instanceof Nd}},{key:"decode",value:function(t,e){return void 0===e&&(e=0),this.layout.decode(t,e+this.offset)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),this.layout.encode(t,e,n+this.offset)}}]),n}(),Id=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntLE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeUIntLE(t,n,this.span),this.span}}]),n}(),Nd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readUIntBE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeUIntBE(t,n,this.span),this.span}}]),n}(),Ed=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntLE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeIntLE(t,n,this.span),this.span}}]),n}(),xd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),6<(i=e.call(this,t,r)).span)throw new RangeError("span must not exceed 6 bytes");return i}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readIntBE(e,this.span)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeIntBE(t,n,this.span),this.span}}]),n}(),kd=Math.pow(2,32);function Td(t){var e=Math.floor(t/kd);return{hi32:e,lo32:t-e*kd}}function Ld(t,e){return t*kd+e}var Sd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.readUInt32LE(e);return Ld(t.readUInt32LE(e+4),n)}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32LE(r.lo32,n),e.writeUInt32LE(r.hi32,n+4),8}}]),n}(),jd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Ld(t.readUInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}]),n}(),Cd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=t.readUInt32LE(e);return Ld(t.readInt32LE(e+4),n)}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeUInt32LE(r.lo32,n),e.writeInt32LE(r.hi32,n+4),8}}]),n}(),Dd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),Ld(t.readInt32BE(e),t.readUInt32BE(e+4))}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=Td(t);return e.writeInt32BE(r.hi32,n),e.writeUInt32BE(r.lo32,n+4),8}}]),n}(),Od=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatLE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeFloatLE(t,n),4}}]),n}(),zd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,4,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readFloatBE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeFloatBE(t,n),4}}]),n}(),Pd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleLE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeDoubleLE(t,n),8}}]),n}(),_d=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,8,t)}return U(n,[{key:"decode",value:function(t,e){return void 0===e&&(e=0),t.readDoubleBE(e)}},{key:"encode",value:function(t,e,n){return void 0===n&&(n=0),e.writeDoubleBE(t,n),8}}]),n}(),Bd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof vd))throw new TypeError("elementLayout must be a Layout");if(!(r instanceof bd&&r.isCount()||Number.isInteger(r)&&0<=r))throw new TypeError("count must be non-negative integer or an unsigned integer ExternalLayout");var a=-1;return!(r instanceof bd)&&0u.span&&void 0===u.property)throw new Error("fields cannot contain unnamed variable-length layout")}}catch(t){s.e(t)}finally{s.f()}var c=-1;try{c=t.reduce((function(t,e){return t+e.getSpan()}),0)}catch(t){}return(o=e.call(this,c,r)).fields=t,o.decodePrefixes=!!i,o}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=0;try{n=this.fields.reduce((function(n,r){var i=r.getSpan(t,e);return e+=i,n+i}),0)}catch(t){throw new RangeError("indeterminate span")}return n}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n,r=this.makeDestinationObject(),i=st(this.fields);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(void 0!==o.property&&(r[o.property]=o.decode(t,e)),e+=o.getSpan(t,e),this.decodePrefixes&&t.length===e)break}}catch(t){i.e(t)}finally{i.f()}return r}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r,i=n,o=0,a=0,s=st(this.fields);try{for(s.s();!(r=s.n()).done;){var u=r.value,c=u.span;if(a=0c&&(c=u.getSpan(e,n)))}o=n,n+=c}}catch(t){s.e(t)}finally{s.f()}return o+a-i}},{key:"fromArray",value:function(t){var e,n=this.makeDestinationObject(),r=st(this.fields);try{for(r.s();!(e=r.n()).done;){var i=e.value;void 0!==i.property&&0i.span?n=-1:0<=n&&(n+=i.span)}}catch(t){r.e(t)}finally{r.f()}}}]),n}(),Ud=function(){function t(e){B(this,t),this.property=e}return U(t,[{key:"decode",value:function(){throw new Error("UnionDiscriminator is abstract")}},{key:"encode",value:function(){throw new Error("UnionDiscriminator is abstract")}}]),t}(),Qd=function(t){Y(n,Ud);var e=X(n);function n(t,r){var i;if(B(this,n),!(t instanceof bd&&t.isCount()))throw new TypeError("layout must be an unsigned integer ExternalLayout");return(i=e.call(this,r||t.property||"variant")).layout=t,i}return U(n,[{key:"decode",value:function(t,e){return this.layout.decode(t,e)}},{key:"encode",value:function(t,e,n){return this.layout.encode(t,e,n)}}]),n}(),Yd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;B(this,n);var a=t instanceof Id||t instanceof Nd;if(a)t=new Qd(new Ad(t));else if(t instanceof bd&&t.isCount())t=new Qd(t);else if(!(t instanceof Ud))throw new TypeError("discr must be a UnionDiscriminator or an unsigned integer layout");if(void 0===r&&(r=null),!(null===r||r instanceof vd))throw new TypeError("defaultLayout must be null or a Layout");if(null!==r){if(0>r.span)throw new Error("defaultLayout must have constant span");void 0===r.property&&(r=r.replicate("content"))}var s=-1;r&&0<=(s=r.span)&&a&&(s+=t.layout.span),(o=e.call(this,s,i)).discriminator=t,o.usesPrefixDiscriminator=a,o.defaultLayout=r,o.registry={};var u=o.defaultGetSourceVariant.bind(Z(o));return o.getSourceVariant=function(t){return u(t)},o.configGetSourceVariant=function(t){u=t.bind(this)},o}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=this.getVariant(t,e);if(!n)throw new Error("unable to determine span for unrecognized variant");return n.getSpan(t,e)}},{key:"defaultGetSourceVariant",value:function(t){if(t.hasOwnProperty(this.discriminator.property)){if(this.defaultLayout&&t.hasOwnProperty(this.defaultLayout.property))return;var e=this.registry[t[this.discriminator.property]];if(e&&(!e.layout||t.hasOwnProperty(e.property)))return e}else for(var n in this.registry){var r=this.registry[n];if(t.hasOwnProperty(r.property))return r}throw new Error("unable to infer src variant")}},{key:"decode",value:function(t,e){var n;void 0===e&&(e=0);var r=this.discriminator,i=r.decode(t,e),o=this.registry[i];if(void 0===o){var a=0;o=this.defaultLayout,this.usesPrefixDiscriminator&&(a=r.layout.span),(n=this.makeDestinationObject())[r.property]=i,n[o.property]=this.defaultLayout.decode(t,e+a)}else n=o.decode(t,e);return n}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=this.getSourceVariant(t);if(void 0===r){var i=this.discriminator,o=this.defaultLayout,a=0;return this.usesPrefixDiscriminator&&(a=i.layout.span),i.encode(t[i.property],e,n),a+o.encode(t[o.property],e,n+a)}return r.encode(t,e,n)}},{key:"addVariant",value:function(t,e,n){var r=new Wd(this,t,e,n);return this.registry[t]=r,r}},{key:"getVariant",value:function(t,e){var n=t;return Nt.isBuffer(t)&&(void 0===e&&(e=0),n=this.discriminator.decode(t,e)),this.registry[n]}}]),n}(),Wd=function(t){Y(n,vd);var e=X(n);function n(t,r,i,o){var a;if(B(this,n),!(t instanceof Yd))throw new TypeError("union must be a Union");if(!Number.isInteger(r)||0>r)throw new TypeError("variant must be a (non-negative) integer");if("string"==typeof i&&void 0===o&&(o=i,i=null),i){if(!(i instanceof vd))throw new TypeError("layout must be a Layout");if(null!==t.defaultLayout&&0<=i.span&&i.span>t.defaultLayout.span)throw new Error("variant span exceeds span of containing union");if("string"!=typeof o)throw new TypeError("variant must have a String property")}var s=t.span;return 0>t.span&&0<=(s=i?i.span:0)&&t.usesPrefixDiscriminator&&(s+=t.discriminator.layout.span),(a=e.call(this,s,o)).union=t,a.variant=r,a.layout=i||null,a}return U(n,[{key:"getSpan",value:function(t,e){if(0<=this.span)return this.span;void 0===e&&(e=0);var n=0;return this.union.usesPrefixDiscriminator&&(n=this.union.discriminator.layout.span),n+this.layout.getSpan(t,e+n)}},{key:"decode",value:function(t,e){var n=this.makeDestinationObject();if(void 0===e&&(e=0),this!==this.union.getVariant(t,e))throw new Error("variant mismatch");var r=0;return this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout?n[this.property]=this.layout.decode(t,e+r):this.property?n[this.property]=!0:this.union.usesPrefixDiscriminator&&(n[this.union.discriminator.property]=this.variant),n}},{key:"encode",value:function(t,e,n){void 0===n&&(n=0);var r=0;if(this.union.usesPrefixDiscriminator&&(r=this.union.discriminator.layout.span),this.layout&&!t.hasOwnProperty(this.property))throw new TypeError("variant lacks property "+this.property);this.union.discriminator.encode(this.variant,e,n);var i=r;if(this.layout&&(this.layout.encode(t[this.property],e,n+r),i+=this.layout.getSpan(e,n+r),0<=this.union.span&&i>this.union.span))throw new Error("encoded variant overruns containing union");return i}},{key:"fromArray",value:function(t){if(this.layout)return this.layout.fromArray(t)}}]),n}();function Fd(t){return 0>t&&(t+=4294967296),t}var Vd=function(t){Y(n,vd);var e=X(n);function n(t,r,i){var o;if(B(this,n),!(t instanceof Id||t instanceof Nd))throw new TypeError("word must be a UInt or UIntBE layout");if("string"==typeof r&&void 0===i&&(i=r,r=void 0),4=n)throw new TypeError("bits must be positive integer");var i=8*e.span,o=e.fields.reduce((function(t,e){return t+e.bits}),0);if(n+o>i)throw new Error("bits too long for span remainder ("+(i-o)+" of "+i+" remain)");this.container=e,this.bits=n,this.valueMask=(1<>>this.start}},{key:"encode",value:function(t){if(!Number.isInteger(t)||t!==Fd(t&this.valueMask))throw new TypeError(wd("BitField.encode",this)+" value must be integer not exceeding "+this.valueMask);var e=this.container._packedGetValue(),n=Fd(t<n&&(n=this.length.decode(t,e)),n}},{key:"decode",value:function(t,e){void 0===e&&(e=0);var n=this.span;return 0>n&&(n=this.length.decode(t,e)),t.slice(e,e+n)}},{key:"encode",value:function(t,e,n){var r=this.length;if(this.length instanceof bd&&(r=t.length),!Nt.isBuffer(t)||r!==t.length)throw new TypeError(wd("Blob.encode",this)+" requires (length "+r+") Buffer as src");if(n+r>e.length)throw new RangeError("encoding overruns Buffer");return e.write(t.toString("hex"),n,r,"hex"),this.length instanceof bd&&this.length.encode(r,e,n),r}}]),n}(),Zd=function(t){Y(n,vd);var e=X(n);function n(t){return B(this,n),e.call(this,-1,t)}return U(n,[{key:"getSpan",value:function(t,e){if(!Nt.isBuffer(t))throw new TypeError("b must be a Buffer");void 0===e&&(e=0);for(var n=e;ne.length)throw new RangeError("encoding overruns Buffer");return r.copy(e,n),e[n+i]=0,i+1}}]),n}(),Jd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;if(B(this,n),"string"==typeof t&&void 0===r&&(r=t,t=void 0),void 0===t)t=-1;else if(!Number.isInteger(t))throw new TypeError("maxSpan must be an integer");return(i=e.call(this,-1,r)).maxSpan=t,i}return U(n,[{key:"getSpan",value:function(t,e){if(!Nt.isBuffer(t))throw new TypeError("b must be a Buffer");return void 0===e&&(e=0),t.length-e}},{key:"decode",value:function(t,e,n){void 0===e&&(e=0);var r=this.getSpan(t,e);if(0<=this.maxSpan&&this.maxSpane.length)throw new RangeError("encoding overruns Buffer");return r.copy(e,n),i}}]),n}(),Xd=function(t){Y(n,vd);var e=X(n);function n(t,r){var i;return B(this,n),(i=e.call(this,0,r)).value=t,i}return U(n,[{key:"decode",value:function(t,e,n){return this.value}},{key:"encode",value:function(t,e,n){return 0}}]),n}();gd.ExternalLayout=bd,gd.GreedyCount=Md,gd.OffsetLayout=Ad,gd.UInt=Id,gd.UIntBE=Nd,gd.Int=Ed,gd.IntBE=xd,gd.Float=Od,gd.FloatBE=zd,gd.Double=Pd,gd.DoubleBE=_d,gd.Sequence=Bd,gd.Structure=Rd,gd.UnionDiscriminator=Ud,gd.UnionLayoutDiscriminator=Qd,gd.Union=Yd,gd.VariantLayout=Wd,gd.BitStructure=Vd,gd.BitField=Hd,gd.Boolean=Gd,gd.Blob=qd,gd.CString=Zd,gd.UTF8=Jd,gd.Constant=Xd,gd.greedy=function(t,e){return new Md(t,e)},gd.offset=function(t,e,n){return new Ad(t,e,n)},gd.u8=function(t){return new Id(1,t)},gd.u16=function(t){return new Id(2,t)},gd.u24=function(t){return new Id(3,t)},gd.u32=function(t){return new Id(4,t)},gd.u40=function(t){return new Id(5,t)},gd.u48=function(t){return new Id(6,t)},gd.nu64=function(t){return new Sd(t)},gd.u16be=function(t){return new Nd(2,t)},gd.u24be=function(t){return new Nd(3,t)},gd.u32be=function(t){return new Nd(4,t)},gd.u40be=function(t){return new Nd(5,t)},gd.u48be=function(t){return new Nd(6,t)},gd.nu64be=function(t){return new jd(t)},gd.s8=function(t){return new Ed(1,t)},gd.s16=function(t){return new Ed(2,t)},gd.s24=function(t){return new Ed(3,t)},gd.s32=function(t){return new Ed(4,t)},gd.s40=function(t){return new Ed(5,t)},gd.s48=function(t){return new Ed(6,t)},gd.ns64=function(t){return new Cd(t)},gd.s16be=function(t){return new xd(2,t)},gd.s24be=function(t){return new xd(3,t)},gd.s32be=function(t){return new xd(4,t)},gd.s40be=function(t){return new xd(5,t)},gd.s48be=function(t){return new xd(6,t)},gd.ns64be=function(t){return new Dd(t)},gd.f32=function(t){return new Od(t)},gd.f32be=function(t){return new zd(t)},gd.f64=function(t){return new Pd(t)},gd.f64be=function(t){return new _d(t)},gd.struct=function(t,e,n){return new Rd(t,e,n)},gd.bits=function(t,e,n){return new Vd(t,e,n)};var Kd=gd.seq=function(t,e,n){return new Bd(t,e,n)};gd.union=function(t,e,n){return new Yd(t,e,n)},gd.unionLayoutDiscriminator=function(t,e){return new Qd(t,e)},gd.blob=function(t,e){return new qd(t,e)},gd.cstr=function(t){return new Zd(t)},gd.utf8=function(t,e){return new Jd(t,e)},gd.const=function(t,e){return new Xd(t,e)};var $d={},tf={exports:{}};!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"===z(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:ur.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"===z(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(tf,L),function(t){var e=L&&L.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(t,"__esModule",{value:!0}),t.map=t.array=t.rustEnum=t.str=t.vecU8=t.tagged=t.vec=t.bool=t.option=t.publicKey=t.i128=t.u128=t.i64=t.u64=t.struct=t.f64=t.f32=t.i32=t.u32=t.i16=t.u16=t.i8=t.u8=void 0;var n=gd,r=jh,i=e(tf.exports),o=gd;Object.defineProperty(t,"u8",{enumerable:!0,get:function(){return o.u8}}),Object.defineProperty(t,"i8",{enumerable:!0,get:function(){return o.s8}}),Object.defineProperty(t,"u16",{enumerable:!0,get:function(){return o.u16}}),Object.defineProperty(t,"i16",{enumerable:!0,get:function(){return o.s16}}),Object.defineProperty(t,"u32",{enumerable:!0,get:function(){return o.u32}}),Object.defineProperty(t,"i32",{enumerable:!0,get:function(){return o.s32}}),Object.defineProperty(t,"f32",{enumerable:!0,get:function(){return o.f32}}),Object.defineProperty(t,"f64",{enumerable:!0,get:function(){return o.f64}}),Object.defineProperty(t,"struct",{enumerable:!0,get:function(){return o.struct}});var a=function(t){Y(r,t);var e=X(r);function r(t,i,o){var a;return B(this,r),(a=e.call(this,t,o)).blob=n.blob(t),a.signed=i,a}return U(r,[{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=new i.default(this.blob.decode(t,e),10,"le");return this.signed?n.fromTwos(8*this.span).clone():n}},{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return this.signed&&(t=t.toTwos(8*this.span)),this.blob.encode(t.toArrayLike(Nt,"le",this.span),e,n)}}]),r}(n.Layout);function s(t){return new a(8,!1,t)}t.u64=s,t.i64=function(t){return new a(8,!0,t)},t.u128=function(t){return new a(16,!1,t)},t.i128=function(t){return new a(16,!0,t)};var u=function(t){Y(n,t);var e=X(n);function n(t,r,i,o){var a;return B(this,n),(a=e.call(this,t.span,o)).layout=t,a.decoder=r,a.encoder=i,a}return U(n,[{key:"decode",value:function(t,e){return this.decoder(this.layout.decode(t,e))}},{key:"encode",value:function(t,e,n){return this.layout.encode(this.encoder(t),e,n)}},{key:"getSpan",value:function(t,e){return this.layout.getSpan(t,e)}}]),n}(n.Layout);t.publicKey=function(t){return new u(n.blob(32),(function(t){return new r.PublicKey(t)}),(function(t){return t.toBuffer()}),t)};var c=function(t){Y(r,t);var e=X(r);function r(t,i){var o;return B(this,r),(o=e.call(this,-1,i)).layout=t,o.discriminator=n.u8(),o}return U(r,[{key:"encode",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;return null==t?this.discriminator.encode(0,e,n):(this.discriminator.encode(1,e,n),this.layout.encode(t,e,n+1)+1)}},{key:"decode",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(t,e);if(0===n)return null;if(1===n)return this.layout.decode(t,e+1);throw new Error("Invalid option "+this.property)}},{key:"getSpan",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.discriminator.decode(t,e);if(0===n)return 1;if(1===n)return this.layout.getSpan(t,e+1)+1;throw new Error("Invalid option "+this.property)}}]),r}(n.Layout);function l(t){if(0===t)return!1;if(1===t)return!0;throw new Error("Invalid bool: "+t)}function h(t){return t?1:0}function d(t){var e=n.u32("length"),r=n.struct([e,n.blob(n.offset(e,-e.span),"data")]);return new u(r,(function(t){return t.data}),(function(t){return{data:t}}),t)}t.option=function(t,e){return new c(t,e)},t.bool=function(t){return new u(n.u8(),l,h,t)},t.vec=function(t,e){var r=n.u32("length"),i=n.struct([r,n.seq(t,n.offset(r,-r.span),"values")]);return new u(i,(function(t){return t.values}),(function(t){return{values:t}}),e)},t.tagged=function(t,e,r){var i=n.struct([s("tag"),e.replicate("data")]);return new u(i,(function(e){var n=e.tag,r=e.data;if(!n.eq(t))throw new Error("Invalid tag, expected: "+t.toString("hex")+", got: "+n.toString("hex"));return r}),(function(e){return{tag:t,data:e}}),r)},t.vecU8=d,t.str=function(t){return new u(d(),(function(t){return t.toString("utf-8")}),(function(t){return Nt.from(t,"utf-8")}),t)},t.rustEnum=function(t,e,r){var i=n.union(null!=r?r:n.u8(),e);return t.forEach((function(t,e){return i.addVariant(e,t,t.property)})),i},t.array=function(t,e,r){var i=n.struct([n.seq(t,e,"values")]);return new u(i,(function(t){return t.values}),(function(t){return{values:t}}),r)};var f=function(t){Y(n,t);var e=X(n);function n(t,r,i){var o;return B(this,n),(o=e.call(this,t.span+r.span,i)).keyLayout=t,o.valueLayout=r,o}return U(n,[{key:"decode",value:function(t,e){return e=e||0,[this.keyLayout.decode(t,e),this.valueLayout.decode(t,e+this.keyLayout.getSpan(t,e))]}},{key:"encode",value:function(t,e,n){n=n||0;var r=this.keyLayout.encode(t[0],e,n);return r+this.valueLayout.encode(t[1],e,n+r)}},{key:"getSpan",value:function(t,e){return this.keyLayout.getSpan(t,e)+this.valueLayout.getSpan(t,e)}}]),n}(n.Layout);t.map=function(t,e,r){var i=n.u32("length"),o=n.struct([i,n.seq(new f(t,e),n.offset(i,-i.span),"values")]);return new u(o,(function(t){var e=t.values;return new Map(e)}),(function(t){return{values:Array.from(t.entries())}}),r)}}($d),ut.Web3MobileWallet;var ef=ut.transact,nf=ur.Buffer,rf=br.exports,of=$d.struct([$d.publicKey("mint"),$d.publicKey("owner"),$d.u64("amount"),$d.u32("delegateOption"),$d.publicKey("delegate"),$d.u8("state"),$d.u32("isNativeOption"),$d.u64("isNative"),$d.u64("delegatedAmount"),$d.u32("closeAuthorityOption"),$d.publicKey("closeAuthority")]);$d.array;var af=$d.bool,sf=$d.i128;$d.i16;var uf=$d.i32,cf=$d.i64;$d.i8,$d.map;var lf=$d.option,hf=$d.publicKey,df=$d.rustEnum,ff=$d.str,pf=$d.struct;$d.tagged;var yf=$d.u128,mf=$d.u16,gf=$d.u32,vf=$d.u64,wf=$d.u8,bf=$d.vec;$d.vecU8;const Mf="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0yOTkuMyAyMzcuNSA1MDAgMTIybDIwMC43IDExNS41LTczLjUgNDIuNkw1MDAgMjA4LjJsLTEyNy4xIDcxLjktNzMuNi00Mi42em00MDEuNCAxNDYtNzMuNS00Mi42LTEyNy4xIDczTDM3MyAzNDAuNGwtNzMuNSA0My4xdjg1LjdsMTI3LjEgNzN2MTQ1LjRsNzMuNSA0My4xIDczLjUtNDMuMVY1NDIuMWwxMjcuMS03M3YtODUuNnptMCAyMzIuMXYtODUuN2wtNzMuNSA0Mi42djg1LjdjLS4xLS42IDczLjUtNDIuNiA3My41LTQyLjZ6bTUxLjkgMjkuMy0xMjcuMSA3M3Y4NS43TDgyNi4xIDY4OFY0NTYuNGwtNzMuNSA0My4xdjE0NS40em0tNzMuNS0zMzQuNCA3My41IDQzLjF2ODUuN2w3My41LTQzLjF2LTg1LjdsLTczLjUtNDMuMS03My41IDQzLjF6TTQyNi41IDc0OS40djg1LjdsNzMuNSA0My4xIDczLjUtNDMuMXYtODUuN2wtNzMuNSA0Mi03My41LTQyek0yOTkuMyA2MTUuNmw3My41IDQzLjF2LTg2LjJMMjk5LjMgNTMwdjg1LjZ6bTEyNy4yLTMwNS4xIDczLjUgNDMuMSA3My41LTQzLjEtNzMuNS00Mi42YzAtLjUtNzMuNSA0Mi42LTczLjUgNDIuNnptLTE3OS4xIDQzLjEgNzMuNS00My4xLTczLjUtNDMuMS03My41IDQzLjF2ODUuN2w3My41IDQzLjF2LTg1Ljd6bTAgMTQ1LjQtNzMuNS00Mi42VjY4OGwyMDAuNyAxMTUuNXYtODUuN2wtMTI3LjEtNzNjLS4xLjEtLjEtMTQ1LjgtLjEtMTQ1Ljh6IiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",Af="https://app.uniswap.org/static/media/bnb-logo.797868eb94521320b78e3967134febbe.svg";var If={name:"bsc",id:"0x38",networkId:"56",namespace:"eip155",platform:"evm",label:"BNB Smart Chain",fullName:"BNB Smart Chain Mainnet",logo:Mf,logoBackgroundColor:"#000000",logoWhiteBackground:Mf,currency:{name:"BNB",symbol:"BNB",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Af},wrapped:{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png"},stables:{usd:["0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d","0x55d398326f99059fF775485246999027B3197955"]},explorer:"https://bscscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://bscscan.com/tx/${t.id||t}`:e?`https://bscscan.com/token/${e}`:n?`https://bscscan.com/address/${n}`:void 0,endpoints:["https://bsc-dataseed.binance.org","https://bsc-dataseed1.ninicoin.io","https://bsc-dataseed3.defibit.io"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"BNB",name:"Binance Coin",decimals:18,logo:Af,type:"NATIVE"},{address:"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c",symbol:"WBNB",name:"Wrapped BNB",decimals:18,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/smartchain/assets/0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c/logo.png",type:"20"},{address:"0x55d398326f99059fF775485246999027B3197955",symbol:"USDT",name:"Tether USD",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x55d398326f99059fF775485246999027B3197955/logo.png",type:"20"},{address:"0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d",symbol:"USDC",name:"USD Coin",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x8AC76a51cc950d9822D68b83fE1Ad97B32Cd580d/logo.png",type:"20"},{address:"0x2170Ed0880ac9A755fd29B2688956BD959F933F8",symbol:"ETH",name:"Ethereum Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x2170Ed0880ac9A755fd29B2688956BD959F933F8/logo.png",type:"20"},{address:"0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82",symbol:"Cake",name:"PancakeSwap Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x0E09FaBB73Bd3Ade0a17ECC321fD13a19e81cE82/logo.png",type:"20"},{address:"0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c",symbol:"BTCB",name:"BTCB Token",decimals:18,logo:"https://assets.trustwalletapp.com/blockchains/smartchain/assets/0x7130d2A12B9BCbFAe4f2634d864A1Ee1Ce3Ead9c/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Nf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAADxdJREFUeJztXVtzFMcVplwuP8VVeYmf7HJ+RKqSl/AQP6X8H+yqXUEIjhMnQY5jO9oVCIzA5mowdzAYG4xAGAyWLC5G3IyDL8gOASUYKrarYGZWC7qi23b6692VV6uZ7e6ZnT3di07VV6JUaLfnnG+6z+lz+vScOXUoL6SzP52/2PtlQ9p7piHlLU2k3P2JJqcjkXLO8589/OdN/tPjvx8VEP8Wv+sp/J8O/A3+Fp+Bz8JnUj/XrPjIwjT7ybxm57fJlLsy2eR2cwPe4QZksYB/Nr4D34XvxHdTP/8DJ+k0e4S/lb9Jpr2WZJNzgRtjPDaDS4DvFmPgY8GYMDZq/dStNKQzv0qmnA1c6RkqgysQIoMxYqzU+qoLWZDO/jyZdl7lir1ObdwQZLiOseMZqPVonSTS7i+4AtsTTW6O2pDR4ebEs/Bnotar8d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Q6tF6+7oi9gnEZpE9O4bmwc1Bh2RxfjUkv21sT+7AIHg1396NS5CksC2LSAnoqmaJnVqJSCWLeoLZJSEYophjeewpXUpBtYpN5WW1AnQSWyWPaQKGc7Y32lRtHJvhhQ7cxrp+64NElJw3OW3URqB76522qpVu2yw4vWLTMbTohne7I5/YqUfBIUZbTiWHMjx/ttAHNR8kwVn2fJOKeogYxGZOu/b5/FnJt6vJ9yyyI8tYZvhejF25LcusVBa0N0OPO5ObWWJsGKO0FdushBckRdDqFP1u0fSYsss5vluMgY8FY7IuYVMPgrbn6H2PCxBEJBHn9Tf8s4UHz78L3zmj5fqsmCG4DAk3YiWbvGfFvYgpdz888EJL/J7Chdkerk8XEP8Wv+vJzyo8EsHf8L/FZ+Czpi5YqjP5P2ey0rAsl+yGAAAAAElFTkSuQmCC",Ef="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png";var xf={name:"ethereum",id:"0x1",networkId:"1",namespace:"eip155",platform:"evm",label:"Ethereum",fullName:"Ethereum Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbC1vcGFjaXR5Oi42MDJ9LnN0MCwuc3Qxe2ZpbGw6I2ZmZn08L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01MTEuNCA3My4zdjMxNS41TDc3OCA1MDggNTExLjQgNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJNNTExLjQgNzMuMyAyNDQuNyA1MDhsMjY2LjYtMTE5LjJWNzMuM3oiLz48cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTExLjQgNzEyLjN2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NDk5LjggOTIyLjVWNzEwLjNMMjQwLjUgNTU2LjdsMjU5LjMgMzY1Ljh6Ii8+PHBhdGggZD0ibTQ5OS44IDY2MSAyNTkuNy0xNTMuNS0yNTkuNy0xMTcuOFY2NjF6IiBmaWxsPSIjMTQxNDE0Ii8+PHBhdGggZD0iTTI0MC41IDUwNy41IDQ5OS44IDY2MVYzODkuN0wyNDAuNSA1MDcuNXoiIGZpbGw9IiMzOTM5MzkiLz48L3N2Zz4K",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Nf},wrapped:{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",logo:Ef,logoBackgroundColor:"#FFFFFF"},stables:{usd:["0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48","0xdAC17F958D2ee523a2206206994597C13D831ec7"]},explorer:"https://etherscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://etherscan.io/tx/${t.id||t}`:e?`https://etherscan.io/token/${e}`:n?`https://etherscan.io/address/${n}`:void 0,endpoints:["https://rpc.ankr.com/eth","https://eth.llamarpc.com","https://ethereum.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:Nf,type:"NATIVE"},{address:"0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:Ef,type:"20"},{address:"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/ethereum/assets/0x1aBaEA1f7C830bD89Acc67eC4af516284b1bC33c/logo.png",type:"20"},{address:"0xdAC17F958D2ee523a2206206994597C13D831ec7",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x6B175474E89094C44Da98b954EedeAC495271d0F",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x853d955aCEf822Db058eb8505911ED77F175b99e",symbol:"FRAX",name:"Frax",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x853d955aCEf822Db058eb8505911ED77F175b99e/logo.png",type:"20"},{address:"0x956F47F50A910163D8BF957Cf5846D573E7f87CA",symbol:"FEI",name:"Fei USD",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x956F47F50A910163D8BF957Cf5846D573E7f87CA/logo.png",type:"20"},{address:"0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xa0bEd124a09ac2Bd941b10349d8d224fe3c955eb",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const kf="https://assets.spooky.fi/tokens/wFTM.png";var Tf={name:"fantom",id:"0xfa",networkId:"250",namespace:"eip155",label:"Fantom",fullName:"Fantom Opera",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0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UuOCAxLjYgMS4xYzIuNiAxLjYgNC44IDMuMiA2LjkgNC4yIDIyLjIgMTQuOCAzMC4xIDMxLjIgMzAuMSA2NXYxLjFoLTIyLjdjMC0xNC44LTEuNi0yNC44LTUuMy0zMS43LTIuNi01LjgtNi45LTEwLTE0LjgtMTUuM2wtLjUtLjVjLTEuNi0xLjEtMy43LTIuMS01LjgtMy43bC0yLjYtMS42LTguNS00LjggMTIuNi0xOS42eiIgZmlsbD0iI2ZmZiIvPjwvc3ZnPg==",currency:{name:"Fantom",symbol:"FTM",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:"https://assets.spooky.fi/tokens/FTM.png"},wrapped:{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",logo:kf},stables:{usd:["0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf","0x1B6382DBDEa11d97f24495C9A90b7c88469134a4"]},explorer:"https://ftmscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://ftmscan.com/tx/${t.id||t}`:e?`https://ftmscan.com/token/${e}`:n?`https://ftmscan.com/address/${n}`:void 0,endpoints:["https://rpc.ftm.tools","https://fantom.publicnode.com","https://rpc2.fantom.network"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"FTM",name:"Fantom",decimals:18,logo:"https://assets.spooky.fi/tokens/FTM.png",type:"NATIVE"},{address:"0x21be370D5312f44cB42ce377BC9b8a0cEF1A4C83",symbol:"WFTM",name:"Wrapped Fantom",decimals:18,logo:kf,type:"20"},{address:"0x28a92dde19D9989F39A49905d7C9C2FAc7799bDf",symbol:"lzUSDC",name:"LayerZero USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"},{address:"0x1B6382DBDEa11d97f24495C9A90b7c88469134a4",symbol:"axlUSDC",name:"Axelar Wrapped USDC",decimals:6,logo:"https://assets.spooky.fi/tokens/USDC.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Lf="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/info/logo.png",Sf="https://raw.githubusercontent.com/Uniswap/assets/master/blockchains/polygon/assets/0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270/logo.png";var jf={name:"polygon",id:"0x89",networkId:"137",namespace:"eip155",label:"Polygon (POS)",fullName:"Polygon (POS) Mainnet",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik0xMzEuNSA0NTkuM2MtMTQuNCA5LjYtMjQgMjQtMjQgNDMuMnYxOTQuNGMwIDE5LjIgOS42IDM2IDI0IDQzLjJsMTY1LjYgOTZjMTQuNCA5LjYgMzMuNiA5LjYgNDggMGwxNjUuNi05NmMxNC40LTkuNiAyNC0yNCAyNC00My4ydi02OS42bC03Ni44LTQzLjJ2NjQuOGMwIDE5LjItOS42IDM2LTI0IDQzLjJsLTg2LjQgNTIuOGMtMTQuNCA5LjYtMzMuNiA5LjYtNDggMGwtODYuNC01MC40Yy0xNC40LTkuNi0yNC0yNC0yNC00My4yVjU1MC41YzAtMTkuMiA5LjYtMzYgMjQtNDMuMmw4OC44LTUwLjRjMTQuNC05LjYgMzMuNi05LjYgNDggMGwxMTIuOCA2NC44IDc2LjggNDUuNiAxMTIuOCA2NC44YzE0LjQgOS42IDMzLjYgOS42IDQ4IDBsMTY4LTk2YzE0LjQtOS42IDI0LTI0IDI0LTQzLjJ2LTE5MmMwLTE0LjQtOS42LTMxLjItMjQtNDAuOGwtMTY4LTk2Yy0xNC40LTkuNi0zMy42LTkuNi00OCAwbC0xNjUuNiA5NmMtMTQuNCA5LjYtMjQgMjQtMjQgNDMuMnY2OS42bDc2LjggNDUuNnYtNjkuNm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yNS44LTQ2LjlWMjgzLjJjMC0xNi40LTkuNC0zMi44LTI1LjgtNDIuMkw3MTIuMSAxMzcuOWMtMTYuNC05LjQtMzUuMi05LjQtNTEuNiAwTDQ4NC43IDI0MWMtMTYuNCA5LjQtMjUuOCAyNS44LTI1LjggNDYuOXY3NWw4MiA0OS4ydi03Mi43YzAtMjEuMSA5LjQtMzcuNSAyNS44LTQ2LjlsOTMuOC01Ni4zYzE2LjQtOS40IDM1LjItOS40IDUxLjYgMGw5My44IDUzLjljMTQuMSA5LjQgMjUuOCAyNS44IDI1LjggNDYuOXYxMDhjMCAyMS4xLTExLjcgMzcuNS0yNS44IDQ2LjlsLTkzLjggNTYuM2MtMTQuMSA5LjQtMzUuMiA5LjQtNTEuNiAwTDU0MSA0NzUuNGwtODItNDYuOS0xMjQuMi03Mi43Yy0xNC4xLTkuNC0zNS4yLTkuNC01MS42IDAtLjEuMS0xNzEuMiAxMDMuMi0xNzMuNSAxMDMuMnoiIGZpbGw9IiM4MjQ3ZTUiLz48L3N2Zz4=",currency:{name:"Polygon",symbol:"MATIC",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Lf},wrapped:{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",logo:Sf},stables:{usd:["0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359","0xc2132D05D31c914a87C6611C10748AEb04B58e8F"]},explorer:"https://polygonscan.com",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://polygonscan.com/tx/${t.id||t}`:e?`https://polygonscan.com/token/${e}`:n?`https://polygonscan.com/address/${n}`:void 0,endpoints:["https://polygon-rpc.com","https://polygon.meowrpc.com","https://polygon-bor.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"MATIC",name:"Polygon",decimals:18,logo:Lf,type:"NATIVE"},{address:"0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270",symbol:"WMATIC",name:"Wrapped Matic",decimals:18,logo:Sf,type:"20"},{address:"0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0xc2132D05D31c914a87C6611C10748AEb04B58e8F",symbol:"USDT",name:"Tether USD",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0x8f3Cf7ad23Cd3CaDbD9735AFf958023239c6A063",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x7ceB23fD6bC0adD59E62ac25578270cFf1b9f619",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2/logo.png",type:"20"},{address:"0x1BFD67037B42Cf73acF2047067bd4F2C47D9BfD6",symbol:"WBTC",name:"Wrapped BTC",decimals:8,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x2260FAC5E5542a773Aa44fBCfeDf7C193bc2C599/logo.png",type:"20"},{address:"0xf6261529C6C2fBEB313aB25cDEcD243613b40EB5",symbol:"DEPAY",name:"DePay",decimals:18,logo:"https://depay.com/favicon.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Cf="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld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NC45IDQuOSAxMi4yIDcuMyAxNy4xIDcuM2g2MTkuN2MxMi4yIDAgMTcuMS0xNC43IDkuOC0yMkw3NjIuMSA0MzAuMXoiIGZpbGw9InVybCgjU1ZHSURfMDAwMDAwMDc0MDk4NzczNjMxMDQ5ODE2MzAwMDAwMTUxMzM3MDU1NzA2ODAwOTc3MDlfKSIvPjwvc3ZnPgo=",Df="https://img.raydium.io/icon/So11111111111111111111111111111111111111112.png";var Of={name:"solana",networkId:"solana",namespace:"solana",label:"Solana",fullName:"Solana Mainnet Beta",logo:Cf,logoBackgroundColor:"#000000",logoWhiteBackground:Cf,currency:{name:"Solana",symbol:"SOL",decimals:9,address:"11111111111111111111111111111111",logo:Df},wrapped:{address:"So11111111111111111111111111111111111111112",logo:Df},stables:{usd:["EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v","Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"]},explorer:"https://solscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://solscan.io/tx/${t.id||t}`:e?`https://solscan.io/token/${e}`:n?`https://solscan.io/address/${n}`:void 0,endpoints:["https://swr.xnftdata.com/rpc-proxy","https://solana-rpc.publicnode.com","https://mainnet-beta.solflare.network","https://endpoints.omniatech.io/v1/sol/mainnet/public"],sockets:["wss://solana.drpc.org","wss://mainnet-beta.solflare.network","wss://solana.a.exodus.io"],tokens:[{address:"11111111111111111111111111111111",symbol:"SOL",name:"Solana",decimals:9,logo:Df,type:"NATIVE"},{address:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://img.raydium.io/icon/EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v.png",type:"SPL"},{address:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",symbol:"USDT",name:"USDT",decimals:6,logo:"https://img.raydium.io/icon/Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB.png",type:"SPL"},{address:"7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj",symbol:"stSOL",name:"Lido Staked SOL",decimals:9,logo:"https://img.raydium.io/icon/7dHbWXmci3dT8UFYWYZweBLXgycu7Y3iL6trKn1Y7ARj.png",type:"SPL"},{address:"DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263",symbol:"BONK",name:"BONK",decimals:5,logo:"https://img.raydium.io/icon/DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263.png",type:"SPL"},{address:"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU",symbol:"SAMO",name:"Samoyed Coin",decimals:9,logo:"https://img.raydium.io/icon/7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU.png",type:"SPL"},{address:"DePay1miDBPWXs6PVQrdC5Vch2jemgEPaiyXLNLLa2NF",symbol:"DEPAY",name:"DePay",decimals:9,logo:"https://depay.com/favicon.png",type:"SPL"}],zero:"0",maxInt:"340282366920938463463374607431768211455"};const zf="data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDF7ZmlsbDojMjEzMTQ3fTwvc3R5bGU+PHBhdGggZD0iTTkyIDkyaDgxNnY4MTZIOTJWOTJ6IiBmaWxsPSJub25lIi8+PHBhdGggY2xhc3M9InN0MSIgZD0iTTE2NS44IDM0MC4xVjY2MGMwIDIwLjYgMTAuOCAzOS4yIDI4LjcgNDkuNmwyNzcuMSAxNTkuOWMxNy42IDEwLjEgMzkuNSAxMC4xIDU3LjEgMGwyNzcuMS0xNTkuOWMxNy42LTEwLjEgMjguNy0yOSAyO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tNTMuNWwtMjk5LjktMTczYy05LjUtNS41LTIwLjItOC4yLTMxLTguMmguM3oiIGZpbGw9IiM5ZGNjZWQiLz48cGF0aCBjbGFzcz0ic3QxIiBkPSJtMzAxLjUgODAzLjIgMjcuOC03NS43IDU1LjUgNDYtNTEuOSA0Ny43LTMxLjQtMTh6Ii8+PHBhdGggZD0iTTQ3NC41IDMwMi4yaC03Ni4xYy01LjUgMC0xMC44IDMuNi0xMi43IDguOEwyMjIuOSA3NTcuNWw3OC42IDQ1LjRMNDgxLjEgMzExYzEuNi00LjYtMS42LTkuMS02LjItOS4xbC0uNC4zem0xMzMuMiAwaC03Ni4xYy01LjUgMC0xMC44IDMuNi0xMi43IDguOGwtMTg2IDUwOS44IDc4LjYgNDUuNEw2MTMuOSAzMTFjMS42LTQuNi0xLjYtOS4xLTYuMi05LjF2LjN6IiBmaWxsPSIjZmZmIi8+PC9zdmc+Cg==";var Pf={name:"arbitrum",id:"0xa4b1",networkId:"42161",namespace:"eip155",platform:"evm",label:"Arbitrum",fullName:"Arbitrum One",logo:zf,logoBackgroundColor:"#2b354d",logoWhiteBackground:zf,currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",logo:xf.wrapped.logo},stables:{usd:["0xaf88d065e77c8cC2239327C5EDb3A432268e5831","0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9"]},explorer:"https://arbiscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://arbiscan.io/tx/${t.id||t}`:e?`https://arbiscan.io/token/${e}`:n?`https://arbiscan.io/address/${n}`:void 0,endpoints:["https://arbitrum.blockpi.network/v1/rpc/public","https://arbitrum-one.publicnode.com","https://endpoints.omniatech.io/v1/arbitrum/one/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x82aF49447D8a07e3bd95BD0d56f35241523fBab1",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0xaf88d065e77c8cC2239327C5EDb3A432268e5831",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFF970A61A04b1cA14834A43f5dE4533eBDDB5CC8/logo.png",type:"20"},{address:"0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1/logo.png",type:"20"},{address:"0x912CE59144191C1204E64559FE8253a0e49E6548",symbol:"ARB",name:"Arbitrum",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/arbitrum/assets/0x912CE59144191C1204E64559FE8253a0e49E6548/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const _f="https://traderjoexyz.com/static/media/avalanche.7c81486190237e87e238c029fd746008.svg",Bf="https://raw.githubusercontent.com/traderjoe-xyz/joe-tokenlists/main/logos/0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7/logo.png";var Rf={name:"avalanche",id:"0xa86a",networkId:"43114",namespace:"eip155",platform:"evm",label:"Avalanche",fullName:"Avalanche C-Chain",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZ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uNCA2LjcgMy45IDEyLjkgOS42IDE2LjYgNSAzLjMgMTMuOCAzLjMgMzEuNCAzLjN6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2U4NDE0MiIvPjwvc3ZnPg==",currency:{name:"Avalanche",symbol:"AVAX",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:_f},wrapped:{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",logo:Bf},stables:{usd:["0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7","0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E"]},explorer:"https://snowtrace.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://snowtrace.io/tx/${t.id||t}`:e?`https://snowtrace.io/token/${e}`:n?`https://snowtrace.io/address/${n}`:void 0,endpoints:["https://avalanche.public-rpc.com","https://avalanche.blockpi.network/v1/rpc/public","https://avax.meowrpc.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"AVAX",name:"Avalanche",decimals:18,logo:_f,type:"NATIVE"},{address:"0xB31f66AA3C1e785363F0875A1B74E27b85FD66c7",symbol:"WAVAX",name:"Wrapped AVAX",decimals:18,logo:Bf,type:"20"},{address:"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7/logo.png",type:"20"},{address:"0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xB97EF9Ef8734C71904D8002F8b6Bc66Dd9c48a6E/logo.png",type:"20"},{address:"0xd586E7F844cEa2F87f50152665BCbc2C279D8d70",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xd586E7F844cEa2F87f50152665BCbc2C279D8d70/logo.png",type:"20"},{address:"0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD",symbol:"EUROC",name:"EURO Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/avalanchec/assets/0xC891EB4cbdEFf6e073e859e987815Ed1505c2ACD/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Uf="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAALsAAAC7CAMAAAAKTh9YAAAAYFBMVEVHcEz////////////////////////////////////j++ma6qVj5nsl5lAK4zpA6mXO79aD8Zyr87uCvq0J2TkItEkOhl4EeVsKzSwLrxMNtQpjsZG42dEeuxyF2oU6wzjPwJjeAAAACnRSTlMAEUB9r9j/YO+Kf6/iMwAABD1JREFUeAHU1EESQjEMAlBIAq33v7ArV7+OLss7AZOB4IDVI/kW0nQRf+Ca7QvNwg/s7VtpGJP8oPFNybdT4aidoPHEcYZn6ymnEEOjH8KPk0zeTI+DLacpfMhpxKTGnFtDB9o8/Jisw8uxh1/OtGIrYw9Ah9pEOVWhnaoxTvWCnErR2Z3rzX59JMYOAkEYXr1gRJfIzP1PalbOpZm2aEf+tcKnCCz7bS37si/7si/7si/7si/7srvRHAE5kJHdbV4wkn076Q9RMMLu04fYnceT/An9JnhMkr19Ezwvvvee73ieOL1dfdN15yQlwas2S7vbgTn4iLfaDO0emIPPeLtgZt+AOfhcQHJGdieYg88VLG9k98AUfG7gBRu7YAo+9wpeNLEnYAY+915wkIndQ4Xn9IajgoV9hwbP6b3iqGRhF5zH537VHi3swGl87tft3tB+Ap/7Z9lFhef0z3hndmjwnP4Z32qEAs/po4//Rwao8JzeC3hiMyeACs/ppnMCUlThOf3wxjurObAKz+k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qOog81n7s1faPP6k/0xNyIEokigJX4Yx+/Up0GnqbkceSiT1GS5UFvUwZYEx/5n36ixzW/8SgjPyiqeicrHC+sgGAmtGRvx1dMtph4NW+AiZycfiu2QTRAAAAAElFTkSuQmCC";var Yf={name:"gnosis",id:"0x64",networkId:"100",namespace:"eip155",label:"Gnosis",fullName:"Gnosis Chain",logo:"data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeD0iMCIgeT0iMCIgdmlld0JveD0iMCAwIDEwMDAgMTAwMCIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+PHN0eWxlPi5zdDB7ZmlsbDojZmZmfTwvc3R5bGU+PHBhdGggY2xhc3M9InN0MCIgZD0iTTMzMS45IDU1Ni41YzIzLjUgMCA0Ni40LTcuOCA2NS0yMi4yTDI0OCAzODUuNGMtMzUuOSA0Ni40LTI3LjQgMTEyLjkgMTguOSAxNDguOCAxOC42IDE0IDQxLjUgMjEuOSA2NSAyMS45di40em00NDIuMy0xMDYuMWMwLTIzLjUtNy44LTQ2LjQtMjIuMi02NUw2MDMuMiA1MzQuMmM0Ni40IDM1LjkgMTEyLjkgMjcuNCAxNDguOC0xOC45IDE0LjMtMTguNiAyMi4yLTQxLjQgMjIuMi02NC45eiIvPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Im04NDkuMiAyODguNS02NS45IDY1LjljNTIuOSA2My42IDQ0LjcgMTU4LTE4LjkgMjExLjItNTUuNiA0Ni43LTEzNi42IDQ2LjctMTkyLjIgMEw1MDAgNjM3LjdsLTcyLjEtNzIuMWMtNjMuNiA1Mi45LTE1OCA0NC43LTIxMS4yLTE4LjktNDYuNy01NS42LTQ2LjctMTM2LjYgMC0xOTIuMmwtMzMuNi0zMy42LTMyLTMyLjNDMTEyLjMgMzUyLjIgOTIgNDI1LjMgOTIgNTAwYzAgMjI1LjIgMTgyLjggNDA4IDQwOCA0MDhz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IDY2LjYgNDYuOCAxNjUuMi0xOS44IDIyMC44LTU4LjQgNDguOC0xNDIuNyA0OC44LTIwMSAwTDUwMCA2NDRsLTc1LjQtNzUuNGMtNjYuNiA1NS4zLTE2NS4yIDQ2LjgtMjIwLjgtMTkuOC00OC44LTU4LjQtNDguOC0xNDIuNyAwLTIwMWwtMzUuMi0zNS4yLTMzLjQtMzMuOGMtNDAuNiA2Ni42LTYxLjggMTQzLTYxLjggMjIxLjIgMCAyMzUuNSAxOTEuMSA0MjYuNiA0MjYuNiA0MjYuNlM5MjYuNiA3MzUuNSA5MjYuNiA1MDBjLjQtNzcuOC0yMS41LTE1NC42LTYxLjQtMjIxLjJ6Ii8+PHBhdGggY2xhc3M9InN0MCIgZD0iTTgwOC42IDIwNS41QzY0Ni4xIDM1LjEgMzc2LjEgMjguNyAyMDUuOCAxOTEuMWMtNS4xIDQuOC05LjkgOS42LTE0LjMgMTQuMy0xMC42IDExLjMtMjAuNSAyMi45LTMwIDM0LjhMNTAwIDU3OC44bDMzOC42LTMzOC42Yy05LjItMTIuMi0xOS41LTIzLjgtMzAtMzQuN3pNNTAwIDEyOWM5OS43IDAgMTkyLjUgMzguNiAyNjIuNSAxMDguNUw1MDAgNTAwIDIzNy41IDIzNy41QzMwNy4yIDE2Ny4yIDQwMC4zIDEyOSA1MDAgMTI5eiIvPjwvc3ZnPgo=",currency:{name:"xDAI",symbol:"xDAI",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:Uf},wrapped:{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",logo:Qf},stables:{usd:["0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE","0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83"]},explorer:"https://gnosisscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://gnosisscan.io/tx/${t.id||t}`:e?`https://gnosisscan.io/token/${e}`:n?`https://gnosisscan.io/address/${n}`:void 0,endpoints:["https://rpc.gnosis.gateway.fm","https://rpc.gnosischain.com","https://gnosis.blockpi.network/v1/rpc/public"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"xDAI",name:"xDAI",decimals:18,logo:Uf,type:"NATIVE"},{address:"0xe91D153E0b41518A2Ce8Dd3D7944Fa863463a97d",symbol:"WXDAI",name:"Wrapped XDAI",decimals:18,logo:Qf,type:"20"},{address:"0x4ECaBa5870353805a9F068101A40E0f32ed605C6",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xdAC17F958D2ee523a2206206994597C13D831ec7/logo.png",type:"20"},{address:"0xDDAfbb505ad214D7b80b1f830fcCc89B60fb7A83",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48/logo.png",type:"20"},{address:"0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb",symbol:"GNO",name:"Gnosis",decimals:18,logo:"https://cdn.sushi.com/image/upload/f_auto,c_limit,w_16,q_auto/tokens/100/0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb.jpg",type:"20"},{address:"0xD057604A14982FE8D88c5fC25Aac3267eA142a08",symbol:"HOPR",name:"HOPR",decimals:18,logo:"https://hoprnet.org/assets/icons/hopr_icon.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var Wf={name:"optimism",id:"0xa",networkId:"10",namespace:"eip155",label:"Optimism",fullName:"Optimism",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00ODcuMS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AuNy01MS4yIDIuNC0xMS43IDIuMy0yMS44LS4zLTMwLjQtMi42LTguOC03LjItMTYuMi0xMy45LTIyLTYuNi01LjgtMTUtMTAuMS0yNS0xMy05LjgtMi44LTIwLjktNC4yLTMzLjItNC4yaC04MC4yYy0yIDAtMy45LjctNS43IDIuMS0xLjggMS40LTIuOSAzLjItMy4zIDUuNEw1MDkgNjAzLjVjLS40IDIuMiAwIDQgMS4yIDUuNXptMTExLjItMTEzLjFoLTM0LjdsMTEuOC01NGgzNi4yYzcuMiAwIDEyLjYgMS4yIDE2IDMuNiAzLjYgMi40IDUuNyA1LjYgNi4zIDkuNi42IDQgLjQgOC42LS42IDEzLjktMiA5LTYuMyAxNS44LTEzIDIwLjItNi40IDQuNS0xMy44IDYuNy0yMiA2Ljd6IiBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI2ZmMDQyMCIvPjwvc3ZnPg==",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:xf.wrapped.logo},stables:{usd:["0x94b008aA00579c1307B0EF2c499aD98a8ce58e58","0x7F5c764cBc14f9669B88837ca1490cCa17c31607"]},explorer:"https://optimistic.etherscan.io",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://optimistic.etherscan.io/tx/${t.id||t}`:e?`https://optimistic.etherscan.io/token/${e}`:n?`https://optimistic.etherscan.io/address/${n}`:void 0,endpoints:["https://optimism.blockpi.network/v1/rpc/public","https://optimism.meowrpc.com","https://optimism.publicnode.com"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0x94b008aA00579c1307B0EF2c499aD98a8ce58e58",symbol:"USDT",name:"Tether",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x94b008aA00579c1307B0EF2c499aD98a8ce58e58/logo.png",type:"20"},{address:"0x7F5c764cBc14f9669B88837ca1490cCa17c31607",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/optimism/assets/0x7F5c764cBc14f9669B88837ca1490cCa17c31607/logo.png",type:"20"},{address:"0xDA10009cBd5D07dd0CeCc66161FC93D7c9000da1",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"},{address:"0x4200000000000000000000000000000000000042",symbol:"OP",name:"Optimism",decimals:18,logo:"https://user-images.githubusercontent.com/1300064/219575413-d7990d69-1d21-44ef-a2b1-e9c682c79802.svg",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};var Ff={name:"base",id:"0x2105",networkId:"8453",namespace:"eip155",label:"Base",fullName:"Base",logo:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguNiA4NDJDNjg4IDg0MiA4NDIgNjg4LjkgODQyIDQ5OS41UzY4OCAxNTcgNDk4LjYgMTU3QzMxOSAxNTcgMTcxLjIgMjk1LjEgMTU3IDQ3MC4zaDQ1My4xdjU3LjVIMTU3QzE3MiA3MDMuOSAzMTkgODQyIDQ5OC42IDg0MnoiIGZpbGw9IiNmZmYiLz48L3N2Zz4=",logoBackgroundColor:"#0052FF",logoWhiteBackground:"data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMDAwIDEwMDAiIHhtbDpzcGFjZT0icHJlc2VydmUiPjxwYXRoIGQ9Ik00OTguOSA4NDVDNjkwLjEgODQ1IDg0NSA2OTAuMyA4NDUgNDk5LjVTNjkwLjEgMTU0IDQ5OC45IDE1NEMzMTcuNiAxNTQgMTY4LjggMjkzLjMgMTU0IDQ3MC41aDQ1Ny40djU4LjFIMTU0QzE2OC44IDcwNS44IDMxNy42IDg0NSA0OTguOSA4NDV6IiBmaWxsPSIjMDA1MmZmIi8+PC9zdmc+",currency:{name:"Ether",symbol:"ETH",decimals:18,address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",logo:xf.currency.logo},wrapped:{address:"0x4200000000000000000000000000000000000006",logo:xf.wrapped.logo},stables:{usd:["0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA"]},explorer:"https://basescan.org",explorerUrlFor:({transaction:t,token:e,address:n})=>t?`https://basescan.org/tx/${t.id||t}`:e?`https://basescan.org/token/${e}`:n?`https://basescan.org/address/${n}`:void 0,endpoints:["https://base.blockpi.network/v1/rpc/public","https://base.meowrpc.com","https://mainnet.base.org"],tokens:[{address:"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE",symbol:"ETH",name:"Ether",decimals:18,logo:xf.currency.logo,type:"NATIVE"},{address:"0x4200000000000000000000000000000000000006",symbol:"WETH",name:"Wrapped Ether",decimals:18,logo:xf.wrapped.logo,type:"20"},{address:"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",symbol:"USDC",name:"USD Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6CA",symbol:"USDbC",name:"USD Base Coin",decimals:6,logo:"https://ethereum-optimism.github.io/data/USDC/logo.png",type:"20"},{address:"0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb",symbol:"DAI",name:"Dai Stablecoin",decimals:18,logo:"https://raw.githubusercontent.com/trustwallet/assets/master/blockchains/ethereum/assets/0x6B175474E89094C44Da98b954EedeAC495271d0F/logo.png",type:"20"}],zero:"0x0000000000000000000000000000000000000000",maxInt:"115792089237316195423570985008687907853269984665640564039457584007913129639935"};const Vf=[xf,If,jf,Of,Tf,Pf,Rf,Yf,Wf,Ff];var Hf={ethereum:xf,bsc:If,polygon:jf,solana:Of,fantom:Tf,arbitrum:Pf,avalanche:Rf,gnosis:Yf,optimism:Wf,base:Ff,all:Vf,findById:function(t){let e=t;return e.match("0x0")&&(e=e.replace(/0x0+/,"0x")),Vf.find((t=>t.id&&t.id.toLowerCase()==e.toLowerCase()))},findByNetworkId:function(t){return t=t.toString(),Vf.find((e=>e.networkId==t))},findByName:function(t){return Vf.find((e=>e.name==t))}},Gf="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function qf(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Zf(t){var e={exports:{}};return t(e,e.exports),e.exports}for(var Jf=function(t){var e=op(t),n=e[0],r=e[1];return 3*(n+r)/4-r},Xf=function(t){var e,n,r=op(t),i=r[0],o=r[1],a=new ep(function(t,e,n){return 3*(e+n)/4-n}(0,i,o)),s=0,u=o>0?i-4:i;for(n=0;n>16&255,a[s++]=e>>8&255,a[s++]=255&e;2===o&&(e=tp[t.charCodeAt(n)]<<2|tp[t.charCodeAt(n+1)]>>4,a[s++]=255&e);1===o&&(e=tp[t.charCodeAt(n)]<<10|tp[t.charCodeAt(n+1)]<<4|tp[t.charCodeAt(n+2)]>>2,a[s++]=e>>8&255,a[s++]=255&e);return a},Kf=function(t){for(var e,n=t.length,r=n%3,i=[],o=16383,a=0,s=n-r;as?s:a+o));1===r?(e=t[n-1],i.push($f[e>>2]+$f[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push($f[e>>10]+$f[e>>4&63]+$f[e<<2&63]+"="));return i.join("")},$f=[],tp=[],ep="undefined"!=typeof Uint8Array?Uint8Array:Array,np="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",rp=0,ip=np.length;rp0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function ap(t,e,n){for(var r,i,o=[],a=e;a>18&63]+$f[i>>12&63]+$f[i>>6&63]+$f[63&i]);return o.join("")}tp["-".charCodeAt(0)]=62,tp["_".charCodeAt(0)]=63;var sp={byteLength:Jf,toByteArray:Xf,fromByteArray:Kf},up=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},cp=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y},lp=Zf((function(t,e){const n="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=o,e.SlowBuffer=function(t){+t!=t&&(t=0);return o.alloc(+t)},e.INSPECT_MAX_BYTES=50;const r=2147483647;function i(t){if(t>r)throw new RangeError('The value "'+t+'" is invalid for option "size"');const e=new Uint8Array(t);return Object.setPrototypeOf(e,o.prototype),e}function o(t,e,n){if("number"==typeof t){if("string"==typeof e)throw new TypeError('The "string" argument must be of type string. Received type number');return u(t)}return a(t,e,n)}function a(t,e,n){if("string"==typeof t)return function(t,e){"string"==typeof e&&""!==e||(e="utf8");if(!o.isEncoding(e))throw new TypeError("Unknown encoding: "+e);const n=0|d(t,e);let r=i(n);const a=r.write(t,e);a!==n&&(r=r.slice(0,a));return r}(t,e);if(ArrayBuffer.isView(t))return function(t){if(H(t,Uint8Array)){const e=new Uint8Array(t);return l(e.buffer,e.byteOffset,e.byteLength)}return c(t)}(t);if(null==t)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(H(t,ArrayBuffer)||t&&H(t.buffer,ArrayBuffer))return l(t,e,n);if("undefined"!=typeof SharedArrayBuffer&&(H(t,SharedArrayBuffer)||t&&H(t.buffer,SharedArrayBuffer)))return l(t,e,n);if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type number');const r=t.valueOf&&t.valueOf();if(null!=r&&r!==t)return o.from(r,e,n);const a=function(t){if(o.isBuffer(t)){const e=0|h(t.length),n=i(e);return 0===n.length||t.copy(n,0,0,e),n}if(void 0!==t.length)return"number"!=typeof t.length||G(t.length)?i(0):c(t);if("Buffer"===t.type&&Array.isArray(t.data))return c(t.data)}(t);if(a)return a;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return o.from(t[Symbol.toPrimitive]("string"),e,n);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function s(t){if("number"!=typeof t)throw new TypeError('"size" argument must be of type number');if(t<0)throw new RangeError('The value "'+t+'" is invalid for option "size"')}function u(t){return s(t),i(t<0?0:0|h(t))}function c(t){const e=t.length<0?0:0|h(t.length),n=i(e);for(let r=0;r=r)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r.toString(16)+" bytes");return 0|t}function d(t,e){if(o.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||H(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);const n=t.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return F(t).length;default:if(i)return r?-1:W(t).length;e=(""+e).toLowerCase(),i=!0}}function f(t,e,n){let r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return k(this,e,n);case"utf8":case"utf-8":return I(this,e,n);case"ascii":return E(this,e,n);case"latin1":case"binary":return x(this,e,n);case"base64":return A(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return T(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function p(t,e,n){const r=t[e];t[e]=t[n],t[n]=r}function y(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),G(n=+n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:m(t,e,n,r,i);if("number"==typeof e)return e&=255,"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):m(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function m(t,e,n,r,i){let o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){let r=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){let n=!0;for(let r=0;ri&&(r=i):r=i;const o=e.length;let a;for(r>o/2&&(r=o/2),a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function A(t,e,n){return 0===e&&n===t.length?sp.fromByteArray(t):sp.fromByteArray(t.slice(e,n))}function I(t,e,n){n=Math.min(t.length,n);const r=[];let i=e;for(;i239?4:e>223?3:e>191?2:1;if(i+a<=n){let n,r,s,u;switch(a){case 1:e<128&&(o=e);break;case 2:n=t[i+1],128==(192&n)&&(u=(31&e)<<6|63&n,u>127&&(o=u));break;case 3:n=t[i+1],r=t[i+2],128==(192&n)&&128==(192&r)&&(u=(15&e)<<12|(63&n)<<6|63&r,u>2047&&(u<55296||u>57343)&&(o=u));break;case 4:n=t[i+1],r=t[i+2],s=t[i+3],128==(192&n)&&128==(192&r)&&128==(192&s)&&(u=(15&e)<<18|(63&n)<<12|(63&r)<<6|63&s,u>65535&&u<1114112&&(o=u))}}null===o?(o=65533,a=1):o>65535&&(o-=65536,r.push(o>>>10&1023|55296),o=56320|1023&o),r.push(o),i+=a}return function(t){const e=t.length;if(e<=N)return String.fromCharCode.apply(String,t);let n="",r=0;for(;rr.length?(o.isBuffer(e)||(e=o.from(e)),e.copy(r,i)):Uint8Array.prototype.set.call(r,e,i);else{if(!o.isBuffer(e))throw new TypeError('"list" argument must be an Array of Buffers');e.copy(r,i)}i+=e.length}return r},o.byteLength=d,o.prototype._isBuffer=!0,o.prototype.swap16=function(){const t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;en&&(t+=" ... "),""},n&&(o.prototype[n]=o.prototype.inspect),o.prototype.compare=function(t,e,n,r,i){if(H(t,Uint8Array)&&(t=o.from(t,t.offset,t.byteLength)),!o.isBuffer(t))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;let a=(i>>>=0)-(r>>>=0),s=(n>>>=0)-(e>>>=0);const u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n);for(let t=0;t>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}const i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");let o=!1;for(;;)switch(r){case"hex":return g(this,t,e,n);case"utf8":case"utf-8":return v(this,t,e,n);case"ascii":case"latin1":case"binary":return w(this,t,e,n);case"base64":return b(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};const N=4096;function E(t,e,n){let r="";n=Math.min(t.length,n);for(let i=e;ir)&&(n=r);let i="";for(let r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function S(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function j(t,e,n,r,i){R(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o,o>>=8,t[n++]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,a>>=8,t[n++]=a,n}function C(t,e,n,r,i){R(e,r,i,t,n,7);let o=Number(e&BigInt(4294967295));t[n+7]=o,o>>=8,t[n+6]=o,o>>=8,t[n+5]=o,o>>=8,t[n+4]=o;let a=Number(e>>BigInt(32)&BigInt(4294967295));return t[n+3]=a,a>>=8,t[n+2]=a,a>>=8,t[n+1]=a,a>>=8,t[n]=a,n+8}function D(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function O(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,4),cp(t,e,n,r,23,4),n+4}function z(t,e,n,r,i){return e=+e,n>>>=0,i||D(t,0,n,8),cp(t,e,n,r,52,8),n+8}o.prototype.slice=function(t,e){const n=this.length;(t=~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),(e=void 0===e?n:~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),e>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t+--e],i=1;for(;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUint8=o.prototype.readUInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),this[t]},o.prototype.readUint16LE=o.prototype.readUInt16LE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUint16BE=o.prototype.readUInt16BE=function(t,e){return t>>>=0,e||L(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUint32LE=o.prototype.readUInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUint32BE=o.prototype.readUInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readBigUInt64LE=Z((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e+256*this[++t]+65536*this[++t]+this[++t]*2**24,i=this[++t]+256*this[++t]+65536*this[++t]+n*2**24;return BigInt(r)+(BigInt(i)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=e*2**24+65536*this[++t]+256*this[++t]+this[++t],i=this[++t]*2**24+65536*this[++t]+256*this[++t]+n;return(BigInt(r)<>>=0,e>>>=0,n||L(t,e,this.length);let r=this[t],i=1,o=0;for(;++o=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t>>>=0,e>>>=0,n||L(t,e,this.length);let r=e,i=1,o=this[t+--r];for(;r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return t>>>=0,e||L(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){t>>>=0,e||L(t,2,this.length);const n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return t>>>=0,e||L(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readBigInt64LE=Z((function(t){U(t>>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=this[t+4]+256*this[t+5]+65536*this[t+6]+(n<<24);return(BigInt(r)<>>=0,"offset");const e=this[t],n=this[t+7];void 0!==e&&void 0!==n||Q(t,this.length-8);const r=(e<<24)+65536*this[++t]+256*this[++t]+this[++t];return(BigInt(r)<>>=0,e||L(t,4,this.length),up(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return t>>>=0,e||L(t,4,this.length),up(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return t>>>=0,e||L(t,8,this.length),up(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return t>>>=0,e||L(t,8,this.length),up(this,t,!1,52,8)},o.prototype.writeUintLE=o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e>>>=0,n>>>=0,!r){S(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=1,o=0;for(this[e]=255&t;++o>>=0,n>>>=0,!r){S(this,t,e,n,Math.pow(2,8*n)-1,0)}let i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUint8=o.prototype.writeUInt8=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,1,255,0),this[e]=255&t,e+1},o.prototype.writeUint16LE=o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeUint16BE=o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeUint32LE=o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,4294967295,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},o.prototype.writeUint32BE=o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,4294967295,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigUInt64LE=Z((function(t,e=0){return j(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeBigUInt64BE=Z((function(t,e=0){return C(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))})),o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,t,e,n,r-1,-r)}let i=0,o=1,a=0;for(this[e]=255&t;++i>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e>>>=0,!r){const r=Math.pow(2,8*n-1);S(this,t,e,n,r-1,-r)}let i=n-1,o=1,a=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===a&&0!==this[e+i+1]&&(a=1),this[e+i]=(t/o>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,2147483647,-2147483648),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e>>>=0,n||S(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},o.prototype.writeBigInt64LE=Z((function(t,e=0){return j(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeBigInt64BE=Z((function(t,e=0){return C(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))})),o.prototype.writeFloatLE=function(t,e,n){return O(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return O(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return z(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return z(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(!o.isBuffer(t))throw new TypeError("argument should be a Buffer");if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(i=e;i=r+4;n-=3)e=`_${t.slice(n-3,n)}${e}`;return`${t.slice(0,n)}${e}`}function R(t,e,n,r,i,o){if(t>n||t3?0===e||e===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(o+1)}${r}`:`>= -(2${r} ** ${8*(o+1)-1}${r}) and < 2 ** ${8*(o+1)-1}${r}`:`>= ${e}${r} and <= ${n}${r}`,new P.ERR_OUT_OF_RANGE("value",i,t)}!function(t,e,n){U(e,"offset"),void 0!==t[e]&&void 0!==t[e+n]||Q(e,t.length-(n+1))}(r,i,o)}function U(t,e){if("number"!=typeof t)throw new P.ERR_INVALID_ARG_TYPE(e,"number",t)}function Q(t,e,n){if(Math.floor(t)!==t)throw U(t,n),new P.ERR_OUT_OF_RANGE(n||"offset","an integer",t);if(e<0)throw new P.ERR_BUFFER_OUT_OF_BOUNDS;throw new P.ERR_OUT_OF_RANGE(n||"offset",`>= ${n?1:0} and <= ${e}`,t)}_("ERR_BUFFER_OUT_OF_BOUNDS",(function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"}),RangeError),_("ERR_INVALID_ARG_TYPE",(function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`}),TypeError),_("ERR_OUT_OF_RANGE",(function(t,e,n){let r=`The value of "${t}" is out of range.`,i=n;return Number.isInteger(n)&&Math.abs(n)>2**32?i=B(String(n)):"bigint"==typeof n&&(i=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(i=B(i)),i+="n"),r+=` It must be ${e}. Received ${i}`,r}),RangeError);const Y=/[^+/0-9A-Za-z-_]/g;function W(t,e){let n;e=e||1/0;const r=t.length;let i=null;const o=[];for(let a=0;a55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function F(t){return sp.toByteArray(function(t){if((t=(t=t.split("=")[0]).trim().replace(Y,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function V(t,e,n,r){let i;for(i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function H(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}function G(t){return t!=t}const q=function(){const t="0123456789abcdef",e=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let i=0;i<16;++i)e[r+i]=t[n]+t[i]}return e}();function Z(t){return"undefined"==typeof BigInt?J:t}function J(){throw new Error("BigInt not supported")}})),hp=Zf((function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:lp.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gf)})); +/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */let dp=!1,fp=!1;const pp={debug:1,default:2,info:2,warning:3,error:4,off:5};let yp=pp.default,mp=null;const gp=function(){try{const t=[];if(["NFD","NFC","NFKD","NFKC"].forEach((e=>{try{if("test"!=="test".normalize(e))throw new Error("bad normalize")}catch(n){t.push(e)}})),t.length)throw new Error("missing "+t.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();var vp,wp;!function(t){t.DEBUG="DEBUG",t.INFO="INFO",t.WARNING="WARNING",t.ERROR="ERROR",t.OFF="OFF"}(vp||(vp={})),function(t){t.UNKNOWN_ERROR="UNKNOWN_ERROR",t.NOT_IMPLEMENTED="NOT_IMPLEMENTED",t.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",t.NETWORK_ERROR="NETWORK_ERROR",t.SERVER_ERROR="SERVER_ERROR",t.TIMEOUT="TIMEOUT",t.BUFFER_OVERRUN="BUFFER_OVERRUN",t.NUMERIC_FAULT="NUMERIC_FAULT",t.MISSING_NEW="MISSING_NEW",t.INVALID_ARGUMENT="INVALID_ARGUMENT",t.MISSING_ARGUMENT="MISSING_ARGUMENT",t.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",t.CALL_EXCEPTION="CALL_EXCEPTION",t.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",t.NONCE_EXPIRED="NONCE_EXPIRED",t.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",t.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",t.TRANSACTION_REPLACED="TRANSACTION_REPLACED",t.ACTION_REJECTED="ACTION_REJECTED"}(wp||(wp={}));const bp="0123456789abcdef";class Mp{constructor(t){Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}_log(t,e){const n=t.toLowerCase();null==pp[n]&&this.throwArgumentError("invalid log level name","logLevel",t),yp>pp[n]||console.log.apply(console,e)}debug(...t){this._log(Mp.levels.DEBUG,t)}info(...t){this._log(Mp.levels.INFO,t)}warn(...t){this._log(Mp.levels.WARNING,t)}makeError(t,e,n){if(fp)return this.makeError("censored error",e,{});e||(e=Mp.errors.UNKNOWN_ERROR),n||(n={});const r=[];Object.keys(n).forEach((t=>{const e=n[t];try{if(e instanceof Uint8Array){let n="";for(let t=0;t>4],n+=bp[15&e[t]];r.push(t+"=Uint8Array(0x"+n+")")}else r.push(t+"="+JSON.stringify(e))}catch(e){r.push(t+"="+JSON.stringify(n[t].toString()))}})),r.push(`code=${e}`),r.push(`version=${this.version}`);const i=t;let o="";switch(e){case wp.NUMERIC_FAULT:{o="NUMERIC_FAULT";const e=t;switch(e){case"overflow":case"underflow":case"division-by-zero":o+="-"+e;break;case"negative-power":case"negative-width":o+="-unsupported";break;case"unbound-bitwise-result":o+="-unbound-result"}break}case wp.CALL_EXCEPTION:case wp.INSUFFICIENT_FUNDS:case wp.MISSING_NEW:case wp.NONCE_EXPIRED:case wp.REPLACEMENT_UNDERPRICED:case wp.TRANSACTION_REPLACED:case wp.UNPREDICTABLE_GAS_LIMIT:o=e}o&&(t+=" [ See: https://links.ethers.org/v5-errors-"+o+" ]"),r.length&&(t+=" ("+r.join(", ")+")");const a=new Error(t);return a.reason=i,a.code=e,Object.keys(n).forEach((function(t){a[t]=n[t]})),a}throwError(t,e,n){throw this.makeError(t,e,n)}throwArgumentError(t,e,n){return this.throwError(t,Mp.errors.INVALID_ARGUMENT,{argument:e,value:n})}assert(t,e,n,r){t||this.throwError(e,n,r)}assertArgument(t,e,n,r){t||this.throwArgumentError(e,n,r)}checkNormalize(t){gp&&this.throwError("platform missing String.prototype.normalize",Mp.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:gp})}checkSafeUint53(t,e){"number"==typeof t&&(null==e&&(e="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(e,Mp.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(e,Mp.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}checkArgumentCount(t,e,n){n=n?": "+n:"",te&&this.throwError("too many arguments"+n,Mp.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:e})}checkNew(t,e){t!==Object&&null!=t||this.throwError("missing new",Mp.errors.MISSING_NEW,{name:e.name})}checkAbstract(t,e){t===e?this.throwError("cannot instantiate abstract class "+JSON.stringify(e.name)+" directly; use a sub-class",Mp.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",Mp.errors.MISSING_NEW,{name:e.name})}static globalLogger(){return mp||(mp=new Mp("logger/5.7.0")),mp}static setCensorship(t,e){if(!t&&e&&this.globalLogger().throwError("cannot permanently disable censorship",Mp.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),dp){if(!t)return;this.globalLogger().throwError("error censorship permanent",Mp.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}fp=!!t,dp=!!e}static setLogLevel(t){const e=pp[t.toLowerCase()];null!=e?yp=e:Mp.globalLogger().warn("invalid log level - "+t)}static from(t){return new Mp(t)}}Mp.errors=wp,Mp.levels=vp;const Ap=new Mp("bytes/5.7.0");function Ip(t){return!!t.toHexString}function Np(t){return t.slice||(t.slice=function(){const e=Array.prototype.slice.call(arguments);return Np(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function Ep(t){return Cp(t)&&!(t.length%2)||kp(t)}function xp(t){return"number"==typeof t&&t==t&&t%1==0}function kp(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t)return!1;if(!xp(t.length)||t.length<0)return!1;for(let e=0;e=256)return!1}return!0}function Tp(t,e){if(e||(e={}),"number"==typeof t){Ap.checkSafeUint53(t,"invalid arrayify value");const e=[];for(;t;)e.unshift(255&t),t=parseInt(String(t/256));return 0===e.length&&e.push(0),Np(new Uint8Array(e))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ip(t)&&(t=t.toHexString()),Cp(t)){let n=t.substring(2);n.length%2&&("left"===e.hexPad?n="0"+n:"right"===e.hexPad?n+="0":Ap.throwArgumentError("hex data is odd-length","value",t));const r=[];for(let t=0;tTp(t))),n=e.reduce(((t,e)=>t+e.length),0),r=new Uint8Array(n);return e.reduce(((t,e)=>(r.set(e,t),t+e.length)),0),Np(r)}function Sp(t){let e=Tp(t);if(0===e.length)return e;let n=0;for(;ne&&Ap.throwArgumentError("value out of range","value",arguments[0]);const n=new Uint8Array(e);return n.set(t,e-t.length),Np(n)}function Cp(t,e){return!("string"!=typeof t||!t.match(/^0x[0-9A-Fa-f]*$/))&&(!e||t.length===2+2*e)}function Dp(t,e){if(e||(e={}),"number"==typeof t){Ap.checkSafeUint53(t,"invalid hexlify value");let e="";for(;t;)e="0123456789abcdef"[15&t]+e,t=Math.floor(t/16);return e.length?(e.length%2&&(e="0"+e),"0x"+e):"0x00"}if("bigint"==typeof t)return(t=t.toString(16)).length%2?"0x0"+t:"0x"+t;if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Ip(t))return t.toHexString();if(Cp(t))return t.length%2&&("left"===e.hexPad?t="0x0"+t.substring(2):"right"===e.hexPad?t+="0":Ap.throwArgumentError("hex data is odd-length","value",t)),t.toLowerCase();if(kp(t)){let e="0x";for(let n=0;n>4]+"0123456789abcdef"[15&r]}return e}return Ap.throwArgumentError("invalid hexlify value","value",t)}function Op(t){if("string"!=typeof t)t=Dp(t);else if(!Cp(t)||t.length%2)return null;return(t.length-2)/2}function zp(t,e,n){return"string"!=typeof t?t=Dp(t):(!Cp(t)||t.length%2)&&Ap.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function Pp(t){let e="0x";return t.forEach((t=>{e+=Dp(t).substring(2)})),e}function _p(t){const e=function(t){"string"!=typeof t&&(t=Dp(t));Cp(t)||Ap.throwArgumentError("invalid hex string","value",t);t=t.substring(2);let e=0;for(;e2*e+2&&Ap.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function Rp(t){const e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(Ep(t)){let n=Tp(t);64===n.length?(e.v=27+(n[32]>>7),n[32]&=127,e.r=Dp(n.slice(0,32)),e.s=Dp(n.slice(32,64))):65===n.length?(e.r=Dp(n.slice(0,32)),e.s=Dp(n.slice(32,64)),e.v=n[64]):Ap.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Ap.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=Dp(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){const n=jp(Tp(e._vs),32);e._vs=Dp(n);const r=n[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=r:e.recoveryParam!==r&&Ap.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),n[0]&=127;const i=Dp(n);null==e.s?e.s=i:e.s!==i&&Ap.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Ap.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{const n=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==n&&Ap.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&Cp(e.r)?e.r=Bp(e.r,32):Ap.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&Cp(e.s)?e.s=Bp(e.s,32):Ap.throwArgumentError("signature missing or invalid s","signature",t);const n=Tp(e.s);n[0]>=128&&Ap.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(n[0]|=128);const r=Dp(n);e._vs&&(Cp(e._vs)||Ap.throwArgumentError("signature invalid _vs","signature",t),e._vs=Bp(e._vs,32)),null==e._vs?e._vs=r:e._vs!==r&&Ap.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}var Up=hp.BN;const Qp=new Mp("bignumber/5.7.0"),Yp={};let Wp=!1;class Fp{constructor(t,e){t!==Yp&&Qp.throwError("cannot call constructor directly; use BigNumber.from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=e,this._isBigNumber=!0,Object.freeze(this)}fromTwos(t){return Hp(Gp(this).fromTwos(t))}toTwos(t){return Hp(Gp(this).toTwos(t))}abs(){return"-"===this._hex[0]?Fp.from(this._hex.substring(1)):this}add(t){return Hp(Gp(this).add(Gp(t)))}sub(t){return Hp(Gp(this).sub(Gp(t)))}div(t){return Fp.from(t).isZero()&&qp("division-by-zero","div"),Hp(Gp(this).div(Gp(t)))}mul(t){return Hp(Gp(this).mul(Gp(t)))}mod(t){const e=Gp(t);return e.isNeg()&&qp("division-by-zero","mod"),Hp(Gp(this).umod(e))}pow(t){const e=Gp(t);return e.isNeg()&&qp("negative-power","pow"),Hp(Gp(this).pow(e))}and(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","and"),Hp(Gp(this).and(e))}or(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","or"),Hp(Gp(this).or(e))}xor(t){const e=Gp(t);return(this.isNegative()||e.isNeg())&&qp("unbound-bitwise-result","xor"),Hp(Gp(this).xor(e))}mask(t){return(this.isNegative()||t<0)&&qp("negative-width","mask"),Hp(Gp(this).maskn(t))}shl(t){return(this.isNegative()||t<0)&&qp("negative-width","shl"),Hp(Gp(this).shln(t))}shr(t){return(this.isNegative()||t<0)&&qp("negative-width","shr"),Hp(Gp(this).shrn(t))}eq(t){return Gp(this).eq(Gp(t))}lt(t){return Gp(this).lt(Gp(t))}lte(t){return Gp(this).lte(Gp(t))}gt(t){return Gp(this).gt(Gp(t))}gte(t){return Gp(this).gte(Gp(t))}isNegative(){return"-"===this._hex[0]}isZero(){return Gp(this).isZero()}toNumber(){try{return Gp(this).toNumber()}catch(t){qp("overflow","toNumber",this.toString())}return null}toBigInt(){try{return BigInt(this.toString())}catch(t){}return Qp.throwError("this platform does not support BigInt",Mp.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}toString(){return arguments.length>0&&(10===arguments[0]?Wp||(Wp=!0,Qp.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Qp.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",Mp.errors.UNEXPECTED_ARGUMENT,{}):Qp.throwError("BigNumber.toString does not accept parameters",Mp.errors.UNEXPECTED_ARGUMENT,{})),Gp(this).toString(10)}toHexString(){return this._hex}toJSON(t){return{type:"BigNumber",hex:this.toHexString()}}static from(t){if(t instanceof Fp)return t;if("string"==typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new Fp(Yp,Vp(t)):t.match(/^-?[0-9]+$/)?new Fp(Yp,Vp(new Up(t))):Qp.throwArgumentError("invalid BigNumber string","value",t);if("number"==typeof t)return t%1&&qp("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&qp("overflow","BigNumber.from",t),Fp.from(String(t));const e=t;if("bigint"==typeof e)return Fp.from(e.toString());if(kp(e))return Fp.from(Dp(e));if(e)if(e.toHexString){const t=e.toHexString();if("string"==typeof t)return Fp.from(t)}else{let t=e._hex;if(null==t&&"BigNumber"===e.type&&(t=e.hex),"string"==typeof t&&(Cp(t)||"-"===t[0]&&Cp(t.substring(1))))return Fp.from(t)}return Qp.throwArgumentError("invalid BigNumber value","value",t)}static isBigNumber(t){return!(!t||!t._isBigNumber)}}function Vp(t){if("string"!=typeof t)return Vp(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Qp.throwArgumentError("invalid hex","value",t),"0x00"===(t=Vp(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function Hp(t){return Fp.from(Vp(t))}function Gp(t){const e=Fp.from(t).toHexString();return"-"===e[0]?new Up("-"+e.substring(3),16):new Up(e.substring(2),16)}function qp(t,e,n){const r={fault:t,operation:e};return null!=n&&(r.value=n),Qp.throwError(t,Mp.errors.NUMERIC_FAULT,r)}const Zp=new Mp("bignumber/5.7.0"),Jp={},Xp=Fp.from(0),Kp=Fp.from(-1);function $p(t,e,n,r){const i={fault:e,operation:n};return void 0!==r&&(i.value=r),Zp.throwError(t,Mp.errors.NUMERIC_FAULT,i)}let ty="0";for(;ty.length<256;)ty+=ty;function ey(t){if("number"!=typeof t)try{t=Fp.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ty.substring(0,t):Zp.throwArgumentError("invalid decimal size","decimals",t)}function ny(t,e){null==e&&(e=0);const n=ey(e),r=(t=Fp.from(t)).lt(Xp);r&&(t=t.mul(Kp));let i=t.mod(n).toString();for(;i.length2&&Zp.throwArgumentError("too many decimal points","value",t);let o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&$p("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.lengthnull==t[e]?r:(typeof t[e]!==n&&Zp.throwArgumentError("invalid fixed format ("+e+" not "+n+")","format."+e,t[e]),t[e]);e=i("signed","boolean",e),n=i("width","number",n),r=i("decimals","number",r)}return n%8&&Zp.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),r>80&&Zp.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",r),new iy(Jp,e,n,r)}}class oy{constructor(t,e,n,r){t!==Jp&&Zp.throwError("cannot use FixedNumber constructor; use FixedNumber.from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=r,this._hex=e,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}_checkFormat(t){this.format.name!==t.format.name&&Zp.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}addUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.add(n),this.format.decimals,this.format)}subUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.sub(n),this.format.decimals,this.format)}mulUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}divUnsafe(t){this._checkFormat(t);const e=ry(this._value,this.format.decimals),n=ry(t._value,t.format.decimals);return oy.fromValue(e.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}floor(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=oy.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(e=e.subUnsafe(ay.toFormat(e.format))),e}ceiling(){const t=this.toString().split(".");1===t.length&&t.push("0");let e=oy.from(t[0],this.format);const n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(e=e.addUnsafe(ay.toFormat(e.format))),e}round(t){null==t&&(t=0);const e=this.toString().split(".");if(1===e.length&&e.push("0"),(t<0||t>80||t%1)&&Zp.throwArgumentError("invalid decimal count","decimals",t),e[1].length<=t)return this;const n=oy.from("1"+ty.substring(0,t),this.format),r=sy.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(r).floor().divUnsafe(n)}isZero(){return"0.0"===this._value||"0"===this._value}isNegative(){return"-"===this._value[0]}toString(){return this._value}toHexString(t){if(null==t)return this._hex;t%8&&Zp.throwArgumentError("invalid byte width","width",t);return Bp(Fp.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8)}toUnsafeFloat(){return parseFloat(this.toString())}toFormat(t){return oy.fromString(this._value,t)}static fromValue(t,e,n){return null!=n||null==e||function(t){return null!=t&&(Fp.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||Cp(t)||"bigint"==typeof t||kp(t))}(e)||(n=e,e=null),null==e&&(e=0),null==n&&(n="fixed"),oy.fromString(ny(t,e),iy.from(n))}static fromString(t,e){null==e&&(e="fixed");const n=iy.from(e),r=ry(t,n.decimals);!n.signed&&r.lt(Xp)&&$p("unsigned value cannot be negative","overflow","value",t);let i=null;n.signed?i=r.toTwos(n.width).toHexString():(i=r.toHexString(),i=Bp(i,n.width/8));const o=ny(r,n.decimals);return new oy(Jp,i,o,n)}static fromBytes(t,e){null==e&&(e="fixed");const n=iy.from(e);if(Tp(t).length>n.width/8)throw new Error("overflow");let r=Fp.from(t);n.signed&&(r=r.fromTwos(n.width));const i=r.toTwos((n.signed?0:1)+n.width).toHexString(),o=ny(r,n.decimals);return new oy(Jp,i,o,n)}static from(t,e){if("string"==typeof t)return oy.fromString(t,e);if(kp(t))return oy.fromBytes(t,e);try{return oy.fromValue(t,0,e)}catch(t){if(t.code!==Mp.errors.INVALID_ARGUMENT)throw t}return Zp.throwArgumentError("invalid FixedNumber value","value",t)}static isFixedNumber(t){return!(!t||!t._isFixedNumber)}}const ay=oy.from(1),sy=oy.from("0.5");var uy=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const cy=new Mp("properties/5.7.0");function ly(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}function hy(t,e){for(let n=0;n<32;n++){if(t[e])return t[e];if(!t.prototype||"object"!=typeof t.prototype)break;t=Object.getPrototypeOf(t.prototype).constructor}return null}function dy(t){return uy(this,void 0,void 0,(function*(){const e=Object.keys(t).map((e=>{const n=t[e];return Promise.resolve(n).then((t=>({key:e,value:t})))}));return(yield Promise.all(e)).reduce(((t,e)=>(t[e.key]=e.value,t)),{})}))}function fy(t){const e={};for(const n in t)e[n]=t[n];return e}const py={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function yy(t){if(null==t||py[typeof t])return!0;if(Array.isArray(t)||"object"==typeof t){if(!Object.isFrozen(t))return!1;const e=Object.keys(t);for(let n=0;ngy(t))));if("object"==typeof t){const e={};for(const n in t){const r=t[n];void 0!==r&&ly(e,n,gy(r))}return e}return cy.throwArgumentError("Cannot deepCopy "+typeof t,"object",t)}function gy(t){return my(t)}class vy{constructor(t){for(const e in t)this[e]=gy(t[e])}}const wy=new Mp("abi/5.7.0"),by={};let My={calldata:!0,memory:!0,storage:!0},Ay={calldata:!0,memory:!0};function Iy(t,e){if("bytes"===t||"string"===t){if(My[e])return!0}else if("address"===t){if("payable"===e)return!0}else if((t.indexOf("[")>=0||"tuple"===t)&&Ay[e])return!0;return(My[e]||"payable"===e)&&wy.throwArgumentError("invalid modifier","name",e),!1}function Ny(t,e){for(let n in e)ly(t,n,e[n])}const Ey=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),xy=new RegExp(/^(.*)\[([0-9]*)\]$/);class ky{constructor(t,e){t!==by&&wy.throwError("use fromString",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),Ny(this,e);let n=this.type.match(xy);Ny(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:ky.fromObject({type:n[1],components:this.components}),baseType:"array"}:{arrayLength:null,arrayChildren:null,baseType:null!=this.components?"tuple":this.type}),this._isParamType=!0,Object.freeze(this)}format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json){let e={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"==typeof this.indexed&&(e.indexed=this.indexed),this.components&&(e.components=this.components.map((e=>JSON.parse(e.format(t))))),JSON.stringify(e)}let e="";return"array"===this.baseType?(e+=this.arrayChildren.format(t),e+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(t!==Ey.sighash&&(e+=this.type),e+="("+this.components.map((e=>e.format(t))).join(t===Ey.full?", ":",")+")"):e+=this.type,t!==Ey.sighash&&(!0===this.indexed&&(e+=" indexed"),t===Ey.full&&this.name&&(e+=" "+this.name)),e}static from(t,e){return"string"==typeof t?ky.fromString(t,e):ky.fromObject(t)}static fromObject(t){return ky.isParamType(t)?t:new ky(by,{name:t.name||null,type:By(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(ky.fromObject):null})}static fromString(t,e){return n=function(t,e){let n=t;function r(e){wy.throwArgumentError(`unexpected character at position ${e}`,"param",t)}function i(t){let n={type:"",name:"",parent:t,state:{allowType:!0}};return e&&(n.indexed=!1),n}t=t.replace(/\s/g," ");let o={type:"",name:"",state:{allowType:!0}},a=o;for(let n=0;nky.fromString(t,e)))}class Ly{constructor(t,e){t!==by&&wy.throwError("use a static from method",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),Ny(this,e),this._isFragment=!0,Object.freeze(this)}static from(t){return Ly.isFragment(t)?t:"string"==typeof t?Ly.fromString(t):Ly.fromObject(t)}static fromObject(t){if(Ly.isFragment(t))return t;switch(t.type){case"function":return zy.fromObject(t);case"event":return Sy.fromObject(t);case"constructor":return Oy.fromObject(t);case"error":return _y.fromObject(t);case"fallback":case"receive":return null}return wy.throwArgumentError("invalid fragment object","value",t)}static fromString(t){return"event"===(t=(t=(t=t.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?Sy.fromString(t.substring(5).trim()):"function"===t.split(" ")[0]?zy.fromString(t.substring(8).trim()):"constructor"===t.split("(")[0].trim()?Oy.fromString(t.trim()):"error"===t.split(" ")[0]?_y.fromString(t.substring(5).trim()):wy.throwArgumentError("unsupported fragment","value",t)}static isFragment(t){return!(!t||!t._isFragment)}}class Sy extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="event "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",t!==Ey.sighash&&this.anonymous&&(e+="anonymous "),e.trim()}static from(t){return"string"==typeof t?Sy.fromString(t):Sy.fromObject(t)}static fromObject(t){if(Sy.isEventFragment(t))return t;"event"!==t.type&&wy.throwArgumentError("invalid event object","value",t);const e={name:Uy(t.name),anonymous:t.anonymous,inputs:t.inputs?t.inputs.map(ky.fromObject):[],type:"event"};return new Sy(by,e)}static fromString(t){let e=t.match(Qy);e||wy.throwArgumentError("invalid event string","value",t);let n=!1;return e[3].split(" ").forEach((t=>{switch(t.trim()){case"anonymous":n=!0;break;case"":break;default:wy.warn("unknown modifier: "+t)}})),Sy.fromObject({name:e[1].trim(),anonymous:n,inputs:Ty(e[2],!0),type:"event"})}static isEventFragment(t){return t&&t._isFragment&&"event"===t.type}}function jy(t,e){e.gas=null;let n=t.split("@");return 1!==n.length?(n.length>2&&wy.throwArgumentError("invalid human-readable ABI signature","value",t),n[1].match(/^[0-9]+$/)||wy.throwArgumentError("invalid human-readable ABI signature gas","value",t),e.gas=Fp.from(n[1]),n[0]):t}function Cy(t,e){e.constant=!1,e.payable=!1,e.stateMutability="nonpayable",t.split(" ").forEach((t=>{switch(t.trim()){case"constant":e.constant=!0;break;case"payable":e.payable=!0,e.stateMutability="payable";break;case"nonpayable":e.payable=!1,e.stateMutability="nonpayable";break;case"pure":e.constant=!0,e.stateMutability="pure";break;case"view":e.constant=!0,e.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+t)}}))}function Dy(t){let e={constant:!1,payable:!0,stateMutability:"payable"};return null!=t.stateMutability?(e.stateMutability=t.stateMutability,e.constant="view"===e.stateMutability||"pure"===e.stateMutability,null!=t.constant&&!!t.constant!==e.constant&&wy.throwArgumentError("cannot have constant function with mutability "+e.stateMutability,"value",t),e.payable="payable"===e.stateMutability,null!=t.payable&&!!t.payable!==e.payable&&wy.throwArgumentError("cannot have payable function with mutability "+e.stateMutability,"value",t)):null!=t.payable?(e.payable=!!t.payable,null!=t.constant||e.payable||"constructor"===t.type||wy.throwArgumentError("unable to determine stateMutability","value",t),e.constant=!!t.constant,e.constant?e.stateMutability="view":e.stateMutability=e.payable?"payable":"nonpayable",e.payable&&e.constant&&wy.throwArgumentError("cannot have constant payable function","value",t)):null!=t.constant?(e.constant=!!t.constant,e.payable=!e.constant,e.stateMutability=e.constant?"view":"payable"):"constructor"!==t.type&&wy.throwArgumentError("unable to determine stateMutability","value",t),e}class Oy extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});t===Ey.sighash&&wy.throwError("cannot format a constructor for sighash",Mp.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});let e="constructor("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "),e.trim()}static from(t){return"string"==typeof t?Oy.fromString(t):Oy.fromObject(t)}static fromObject(t){if(Oy.isConstructorFragment(t))return t;"constructor"!==t.type&&wy.throwArgumentError("invalid constructor object","value",t);let e=Dy(t);e.constant&&wy.throwArgumentError("constructor cannot be constant","value",t);const n={name:null,type:t.type,inputs:t.inputs?t.inputs.map(ky.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Fp.from(t.gas):null};return new Oy(by,n)}static fromString(t){let e={type:"constructor"},n=(t=jy(t,e)).match(Qy);return n&&"constructor"===n[1].trim()||wy.throwArgumentError("invalid constructor string","value",t),e.inputs=Ty(n[2].trim(),!1),Cy(n[3].trim(),e),Oy.fromObject(e)}static isConstructorFragment(t){return t&&t._isFragment&&"constructor"===t.type}}class zy extends Oy{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((e=>JSON.parse(e.format(t)))),outputs:this.outputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="function "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",t!==Ey.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(e+=this.stateMutability+" "):this.constant&&(e+="view "),this.outputs&&this.outputs.length&&(e+="returns ("+this.outputs.map((e=>e.format(t))).join(", ")+") "),null!=this.gas&&(e+="@"+this.gas.toString()+" ")),e.trim()}static from(t){return"string"==typeof t?zy.fromString(t):zy.fromObject(t)}static fromObject(t){if(zy.isFunctionFragment(t))return t;"function"!==t.type&&wy.throwArgumentError("invalid function object","value",t);let e=Dy(t);const n={type:t.type,name:Uy(t.name),constant:e.constant,inputs:t.inputs?t.inputs.map(ky.fromObject):[],outputs:t.outputs?t.outputs.map(ky.fromObject):[],payable:e.payable,stateMutability:e.stateMutability,gas:t.gas?Fp.from(t.gas):null};return new zy(by,n)}static fromString(t){let e={type:"function"},n=(t=jy(t,e)).split(" returns ");n.length>2&&wy.throwArgumentError("invalid function string","value",t);let r=n[0].match(Qy);if(r||wy.throwArgumentError("invalid function signature","value",t),e.name=r[1].trim(),e.name&&Uy(e.name),e.inputs=Ty(r[2],!1),Cy(r[3].trim(),e),n.length>1){let r=n[1].match(Qy);""==r[1].trim()&&""==r[3].trim()||wy.throwArgumentError("unexpected tokens","value",t),e.outputs=Ty(r[2],!1)}else e.outputs=[];return zy.fromObject(e)}static isFunctionFragment(t){return t&&t._isFragment&&"function"===t.type}}function Py(t){const e=t.format();return"Error(string)"!==e&&"Panic(uint256)"!==e||wy.throwArgumentError(`cannot specify user defined ${e} error`,"fragment",t),t}class _y extends Ly{format(t){if(t||(t=Ey.sighash),Ey[t]||wy.throwArgumentError("invalid format type","format",t),t===Ey.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((e=>JSON.parse(e.format(t))))});let e="";return t!==Ey.sighash&&(e+="error "),e+=this.name+"("+this.inputs.map((e=>e.format(t))).join(t===Ey.full?", ":",")+") ",e.trim()}static from(t){return"string"==typeof t?_y.fromString(t):_y.fromObject(t)}static fromObject(t){if(_y.isErrorFragment(t))return t;"error"!==t.type&&wy.throwArgumentError("invalid error object","value",t);const e={type:t.type,name:Uy(t.name),inputs:t.inputs?t.inputs.map(ky.fromObject):[]};return Py(new _y(by,e))}static fromString(t){let e={type:"error"},n=t.match(Qy);return n||wy.throwArgumentError("invalid error signature","value",t),e.name=n[1].trim(),e.name&&Uy(e.name),e.inputs=Ty(n[2],!1),Py(_y.fromObject(e))}static isErrorFragment(t){return t&&t._isFragment&&"error"===t.type}}function By(t){return t.match(/^uint($|[^1-9])/)?t="uint256"+t.substring(4):t.match(/^int($|[^1-9])/)&&(t="int256"+t.substring(3)),t}const Ry=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Uy(t){return t&&t.match(Ry)||wy.throwArgumentError(`invalid identifier "${t}"`,"value",t),t}const Qy=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");const Yy=new Mp("abi/5.7.0");class Wy{constructor(t,e,n,r){this.name=t,this.type=e,this.localName=n,this.dynamic=r}_throwError(t,e){Yy.throwArgumentError(t,this.localName,e)}}class Fy{constructor(t){ly(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}get data(){return Pp(this._data)}get length(){return this._dataLength}_writeData(t){return this._data.push(t),this._dataLength+=t.length,t.length}appendWriter(t){return this._writeData(Lp(t._data))}writeBytes(t){let e=Tp(t);const n=e.length%this.wordSize;return n&&(e=Lp([e,this._padding.slice(n)])),this._writeData(e)}_getValue(t){let e=Tp(Fp.from(t));return e.length>this.wordSize&&Yy.throwError("value out-of-bounds",Mp.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:e.length}),e.length%this.wordSize&&(e=Lp([this._padding.slice(e.length%this.wordSize),e])),e}writeValue(t){return this._writeData(this._getValue(t))}writeUpdatableValue(){const t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,e=>{this._data[t]=this._getValue(e)}}}class Vy{constructor(t,e,n,r){ly(this,"_data",Tp(t)),ly(this,"wordSize",e||32),ly(this,"_coerceFunc",n),ly(this,"allowLoose",r),this._offset=0}get data(){return Dp(this._data)}get consumed(){return this._offset}static coerce(t,e){let n=t.match("^u?int([0-9]+)$");return n&&parseInt(n[1])<=48&&(e=e.toNumber()),e}coerce(t,e){return this._coerceFunc?this._coerceFunc(t,e):Vy.coerce(t,e)}_peekBytes(t,e,n){let r=Math.ceil(e/this.wordSize)*this.wordSize;return this._offset+r>this._data.length&&(this.allowLoose&&n&&this._offset+e<=this._data.length?r=e:Yy.throwError("data out-of-bounds",Mp.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+r})),this._data.slice(this._offset,this._offset+r)}subReader(t){return new Vy(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}readBytes(t,e){let n=this._peekBytes(0,t,!!e);return this._offset+=n.length,n.slice(0,t)}readValue(){return Fp.from(this.readBytes(this.wordSize))}}var Hy=Zf((function(t){!function(){var e="input is invalid type",n="object"==typeof window,r=n?window:{};r.JS_SHA3_NO_WINDOW&&(n=!1);var i=!n&&"object"==typeof self;!r.JS_SHA3_NO_NODE_JS&&"object"==typeof k&&k.versions&&k.versions.node?r=Gf:i&&(r=self);var o=!r.JS_SHA3_NO_COMMON_JS&&t.exports,a=!r.JS_SHA3_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,s="0123456789abcdef".split(""),u=[4,1024,262144,67108864],c=[0,8,16,24],l=[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],h=[224,256,384,512],d=[128,256],f=["hex","buffer","arrayBuffer","array","digest"],p={128:168,256:136};!r.JS_SHA3_NO_NODE_JS&&Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),!a||!r.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(t){return"object"==typeof t&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var y=function(t,e,n){return function(r){return new j(t,e,t).update(r)[n]()}},m=function(t,e,n){return function(r,i){return new j(t,e,i).update(r)[n]()}},g=function(t,e,n){return function(e,r,i,o){return A["cshake"+t].update(e,r,i,o)[n]()}},v=function(t,e,n){return function(e,r,i,o){return A["kmac"+t].update(e,r,i,o)[n]()}},w=function(t,e,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function C(t,e,n){j.call(this,t,e,n)}j.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}for(var i,o,s=this.blocks,u=this.byteCount,l=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(s[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=s[h],i=0;i>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},j.prototype.encodeString=function(t){var n,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(e);if(null===t)throw new Error(e);if(a&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||a&&ArrayBuffer.isView(t)))throw new Error(e);n=!0}var i=0,o=t.length;if(n)i=o;else for(var s=0;s=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++s)),i+=4)}return i+=this.encode(8*i),this.update(t),i},j.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+s[15&t]+s[t>>12&15]+s[t>>8&15]+s[t>>20&15]+s[t>>16&15]+s[t>>28&15]+s[t>>24&15];a%e==0&&(D(n),o=0)}return i&&(t=n[o],u+=s[t>>4&15]+s[15&t],i>1&&(u+=s[t>>12&15]+s[t>>8&15]),i>2&&(u+=s[t>>20&15]+s[t>>16&15])),u},j.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n==0&&D(r)}return o&&(t=s<<2,e=r[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},C.prototype=new j,C.prototype.finalize=function(){return this.encode(this.outputBits,!0),j.prototype.finalize.call(this)};var D=function(t){var e,n,r,i,o,a,s,u,c,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S,j,C,D,O,z,P,_,B,R,U,Q,Y,W,F,V,H,G,q,Z,J,X,K,$,tt,et,nt,rt,it,ot,at,st,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],h=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(h<<1|d>>>31),n=s^(d<<1|h>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(f<<1|p>>>31),n=c^(p<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=h^(i<<1|o>>>31),n=d^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,y=t[0],m=t[1],G=t[11]<<4|t[10]>>>28,q=t[10]<<4|t[11]>>>28,L=t[20]<<3|t[21]>>>29,S=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,W=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,z=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,j=t[33]<<13|t[32]>>>19,C=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,_=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,K=t[35]<<15|t[34]>>>17,D=t[45]<<29|t[44]>>>3,O=t[44]<<29|t[45]>>>3,E=t[6]<<28|t[7]>>>4,x=t[7]<<28|t[6]>>>4,rt=t[17]<<23|t[16]>>>9,it=t[16]<<23|t[17]>>>9,R=t[26]<<25|t[27]>>>7,U=t[27]<<25|t[26]>>>7,M=t[36]<<21|t[37]>>>11,A=t[37]<<21|t[36]>>>11,$=t[47]<<24|t[46]>>>8,tt=t[46]<<24|t[47]>>>8,V=t[8]<<27|t[9]>>>5,H=t[9]<<27|t[8]>>>5,k=t[18]<<20|t[19]>>>12,T=t[19]<<20|t[18]>>>12,ot=t[29]<<7|t[28]>>>25,at=t[28]<<7|t[29]>>>25,Q=t[38]<<8|t[39]>>>24,Y=t[39]<<8|t[38]>>>24,I=t[48]<<14|t[49]>>>18,N=t[49]<<14|t[48]>>>18,t[0]=y^~g&w,t[1]=m^~v&b,t[10]=E^~k&L,t[11]=x^~T&S,t[20]=z^~_&R,t[21]=P^~B&U,t[30]=V^~G&Z,t[31]=H^~q&J,t[40]=et^~rt&ot,t[41]=nt^~it&at,t[2]=g^~w&M,t[3]=v^~b&A,t[12]=k^~L&j,t[13]=T^~S&C,t[22]=_^~R&Q,t[23]=B^~U&Y,t[32]=G^~Z&X,t[33]=q^~J&K,t[42]=rt^~ot&st,t[43]=it^~at&ut,t[4]=w^~M&I,t[5]=b^~A&N,t[14]=L^~j&D,t[15]=S^~C&O,t[24]=R^~Q&W,t[25]=U^~Y&F,t[34]=Z^~X&$,t[35]=J^~K&tt,t[44]=ot^~st&ct,t[45]=at^~ut<,t[6]=M^~I&y,t[7]=A^~N&m,t[16]=j^~D&E,t[17]=C^~O&x,t[26]=Q^~W&z,t[27]=Y^~F&P,t[36]=X^~$&V,t[37]=K^~tt&H,t[46]=st^~ct&et,t[47]=ut^~lt&nt,t[8]=I^~y&g,t[9]=N^~m&v,t[18]=D^~E&k,t[19]=O^~x&T,t[28]=W^~z&_,t[29]=F^~P&B,t[38]=$^~V&G,t[39]=tt^~H&q,t[48]=ct^~et&rt,t[49]=lt^~nt&it,t[0]^=l[r],t[1]^=l[r+1]};if(o)t.exports=A;else for(N=0;N>=8;return e}function Jy(t,e,n){let r=0;for(let i=0;ie+1+r&&qy.throwError("child data too short",Mp.errors.BUFFER_OVERRUN,{})}return{consumed:1+r,result:i}}function tm(t,e){if(0===t.length&&qy.throwError("data too short",Mp.errors.BUFFER_OVERRUN,{}),t[e]>=248){const n=t[e]-247;e+1+n>t.length&&qy.throwError("data short segment too short",Mp.errors.BUFFER_OVERRUN,{});const r=Jy(t,e+1,n);return e+1+n+r>t.length&&qy.throwError("data long segment too short",Mp.errors.BUFFER_OVERRUN,{}),$y(t,e,e+1+n,n+r)}if(t[e]>=192){const n=t[e]-192;return e+1+n>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{}),$y(t,e,e+1,n)}if(t[e]>=184){const n=t[e]-183;e+1+n>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{});const r=Jy(t,e+1,n);e+1+n+r>t.length&&qy.throwError("data array too short",Mp.errors.BUFFER_OVERRUN,{});return{consumed:1+n+r,result:Dp(t.slice(e+1+n,e+1+n+r))}}if(t[e]>=128){const n=t[e]-128;e+1+n>t.length&&qy.throwError("data too short",Mp.errors.BUFFER_OVERRUN,{});return{consumed:1+n,result:Dp(t.slice(e+1,e+1+n))}}return{consumed:1,result:Dp(t[e])}}function em(t){const e=Tp(t),n=tm(e,0);return n.consumed!==e.length&&qy.throwArgumentError("invalid rlp data","data",t),n.result}const nm=new Mp("address/5.7.0");function rm(t){Cp(t,20)||nm.throwArgumentError("invalid address","address",t);const e=(t=t.toLowerCase()).substring(2).split(""),n=new Uint8Array(40);for(let t=0;t<40;t++)n[t]=e[t].charCodeAt(0);const r=Tp(Gy(n));for(let t=0;t<40;t+=2)r[t>>1]>>4>=8&&(e[t]=e[t].toUpperCase()),(15&r[t>>1])>=8&&(e[t+1]=e[t+1].toUpperCase());return"0x"+e.join("")}const im={};for(let t=0;t<10;t++)im[String(t)]=String(t);for(let t=0;t<26;t++)im[String.fromCharCode(65+t)]=String(10+t);const om=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function am(t){let e=null;if("string"!=typeof t&&nm.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=rm(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&nm.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){let e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((t=>im[t])).join("");for(;e.length>=om;){let t=e.substring(0,om);e=parseInt(t,10)%97+e.substring(t.length)}let n=String(98-parseInt(e,10)%97);for(;n.length<2;)n="0"+n;return n}(t)&&nm.throwArgumentError("bad icap checksum","address",t),n=t.substring(4),e=new Up(n,36).toString(16);e.length<40;)e="0"+e;e=rm("0x"+e)}else nm.throwArgumentError("invalid address","address",t);var n;return e}function sm(t){let e=null;try{e=am(t.from)}catch(e){nm.throwArgumentError("missing from address","transaction",t)}return am(zp(Gy(Ky([e,Sp(Tp(Fp.from(t.nonce).toHexString()))])),12))}class um extends Wy{constructor(t){super("address","address",t,!1)}defaultValue(){return"0x0000000000000000000000000000000000000000"}encode(t,e){try{e=am(e)}catch(t){this._throwError(t.message,e)}return t.writeValue(e)}decode(t){return am(Bp(t.readValue().toHexString(),20))}}class cm extends Wy{constructor(t){super(t.name,t.type,void 0,t.dynamic),this.coder=t}defaultValue(){return this.coder.defaultValue()}encode(t,e){return this.coder.encode(t,e)}decode(t){return this.coder.decode(t)}}const lm=new Mp("abi/5.7.0");function hm(t,e,n){let r=null;if(Array.isArray(n))r=n;else if(n&&"object"==typeof n){let t={};r=e.map((e=>{const r=e.localName;return r||lm.throwError("cannot encode object for signature with missing names",Mp.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]&&lm.throwError("cannot encode object for signature with duplicate names",Mp.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:n}),t[r]=!0,n[r]}))}else lm.throwArgumentError("invalid tuple value","tuple",n);e.length!==r.length&&lm.throwArgumentError("types/value length mismatch","tuple",n);let i=new Fy(t.wordSize),o=new Fy(t.wordSize),a=[];e.forEach(((t,e)=>{let n=r[e];if(t.dynamic){let e=o.length;t.encode(o,n);let r=i.writeUpdatableValue();a.push((t=>{r(t+e)}))}else t.encode(i,n)})),a.forEach((t=>{t(i.length)}));let s=t.appendWriter(i);return s+=t.appendWriter(o),s}function dm(t,e){let n=[],r=t.subReader(0);e.forEach((e=>{let i=null;if(e.dynamic){let n=t.readValue(),o=r.subReader(n.toNumber());try{i=e.decode(o)}catch(t){if(t.code===Mp.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}}else try{i=e.decode(t)}catch(t){if(t.code===Mp.errors.BUFFER_OVERRUN)throw t;i=t,i.baseType=e.name,i.name=e.localName,i.type=e.type}null!=i&&n.push(i)}));const i=e.reduce(((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t}),{});e.forEach(((t,e)=>{let r=t.localName;if(!r||1!==i[r])return;if("length"===r&&(r="_length"),null!=n[r])return;const o=n[e];o instanceof Error?Object.defineProperty(n,r,{enumerable:!0,get:()=>{throw o}}):n[r]=o}));for(let t=0;t{throw e}})}return Object.freeze(n)}class fm extends Wy{constructor(t,e,n){super("array",t.type+"["+(e>=0?e:"")+"]",n,-1===e||t.dynamic),this.coder=t,this.length=e}defaultValue(){const t=this.coder.defaultValue(),e=[];for(let n=0;nt._data.length&&lm.throwError("insufficient data length",Mp.errors.BUFFER_OVERRUN,{length:t._data.length,count:e}));let n=[];for(let t=0;t>6==2;r++)t++;return t}return t===xm.OVERRUN?n.length-e-1:0}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(Em||(Em={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(xm||(xm={}));const Tm=Object.freeze({error:function(t,e,n,r,i){return Nm.throwArgumentError(`invalid codepoint at offset ${e}; ${t}`,"bytes",n)},ignore:km,replace:function(t,e,n,r,i){return t===xm.OVERLONG?(r.push(i),0):(r.push(65533),km(t,e,n))}});function Lm(t,e){null==e&&(e=Tm.error),t=Tp(t);const n=[];let r=0;for(;r>7==0){n.push(i);continue}let o=null,a=null;if(192==(224&i))o=1,a=127;else if(224==(240&i))o=2,a=2047;else{if(240!=(248&i)){r+=e(128==(192&i)?xm.UNEXPECTED_CONTINUE:xm.BAD_PREFIX,r-1,t,n);continue}o=3,a=65535}if(r-1+o>=t.length){r+=e(xm.OVERRUN,r-1,t,n);continue}let s=i&(1<<8-o-1)-1;for(let i=0;i1114111?r+=e(xm.OUT_OF_RANGE,r-1-o,t,n,s):s>=55296&&s<=57343?r+=e(xm.UTF16_SURROGATE,r-1-o,t,n,s):s<=a?r+=e(xm.OVERLONG,r-1-o,t,n,s):n.push(s))}return n}function Sm(t,e=Em.current){e!=Em.current&&(Nm.checkNormalize(),t=t.normalize(e));let n=[];for(let e=0;e>6|192),n.push(63&r|128);else if(55296==(64512&r)){e++;const i=t.charCodeAt(e);if(e>=t.length||56320!=(64512&i))throw new Error("invalid utf-8 string");const o=65536+((1023&r)<<10)+(1023&i);n.push(o>>18|240),n.push(o>>12&63|128),n.push(o>>6&63|128),n.push(63&o|128)}else n.push(r>>12|224),n.push(r>>6&63|128),n.push(63&r|128)}return Tp(n)}function jm(t,e){return Lm(t,e).map((t=>t<=65535?String.fromCharCode(t):(t-=65536,String.fromCharCode(55296+(t>>10&1023),56320+(1023&t))))).join("")}class Cm extends ym{constructor(t){super("string",t)}defaultValue(){return""}encode(t,e){return super.encode(t,Sm(e))}decode(t){return jm(super.decode(t))}}class Dm extends Wy{constructor(t,e){let n=!1;const r=[];t.forEach((t=>{t.dynamic&&(n=!0),r.push(t.type)}));super("tuple","tuple("+r.join(",")+")",e,n),this.coders=t}defaultValue(){const t=[];this.coders.forEach((e=>{t.push(e.defaultValue())}));const e=this.coders.reduce(((t,e)=>{const n=e.localName;return n&&(t[n]||(t[n]=0),t[n]++),t}),{});return this.coders.forEach(((n,r)=>{let i=n.localName;i&&1===e[i]&&("length"===i&&(i="_length"),null==t[i]&&(t[i]=t[r]))})),Object.freeze(t)}encode(t,e){return hm(t,this.coders,e)}decode(t){return t.coerce(this.name,dm(t,this.coders))}}const Om=new Mp("abi/5.7.0"),zm=new RegExp(/^bytes([0-9]*)$/),Pm=new RegExp(/^(u?int)([0-9]*)$/);const _m=new class{constructor(t){ly(this,"coerceFunc",t||null)}_getCoder(t){switch(t.baseType){case"address":return new um(t.name);case"bool":return new pm(t.name);case"string":return new Cm(t.name);case"bytes":return new mm(t.name);case"array":return new fm(this._getCoder(t.arrayChildren),t.arrayLength,t.name);case"tuple":return new Dm((t.components||[]).map((t=>this._getCoder(t))),t.name);case"":return new vm(t.name)}let e=t.type.match(Pm);if(e){let n=parseInt(e[2]||"256");return(0===n||n>256||n%8!=0)&&Om.throwArgumentError("invalid "+e[1]+" bit length","param",t),new Im(n/8,"int"===e[1],t.name)}if(e=t.type.match(zm),e){let n=parseInt(e[1]);return(0===n||n>32)&&Om.throwArgumentError("invalid bytes length","param",t),new gm(n,t.name)}return Om.throwArgumentError("invalid type","type",t.type)}_getWordSize(){return 32}_getReader(t,e){return new Vy(t,this._getWordSize(),this.coerceFunc,e)}_getWriter(){return new Fy(this._getWordSize())}getDefaultValue(t){const e=t.map((t=>this._getCoder(ky.from(t))));return new Dm(e,"_").defaultValue()}encode(t,e){t.length!==e.length&&Om.throwError("types/values length mismatch",Mp.errors.INVALID_ARGUMENT,{count:{types:t.length,values:e.length},value:{types:t,values:e}});const n=t.map((t=>this._getCoder(ky.from(t)))),r=new Dm(n,"_"),i=this._getWriter();return r.encode(i,e),i.data}decode(t,e,n){const r=t.map((t=>this._getCoder(ky.from(t))));return new Dm(r,"_").decode(this._getReader(Tp(e),n))}};function Bm(t){return Gy(Sm(t))}function Rm(t){t=atob(t);const e=[];for(let n=0;n0&&Array.isArray(t)?i(t,e-1):n.push(t)}))};return i(t,e),n}function Ym(t){return function(t){let e=0;return()=>t[e++]}(function(t){let e=0;function n(){return t[e++]<<8|t[e++]}let r=n(),i=1,o=[0,1];for(let t=1;t>--u&1}const h=Math.pow(2,31),d=h>>>1,f=d>>1,p=h-1;let y=0;for(let t=0;t<31;t++)y=y<<1|l();let m=[],g=0,v=h;for(;;){let t=Math.floor(((y-g+1)*i-1)/v),e=0,n=r;for(;n-e>1;){let r=e+n>>>1;t>>1|l(),a=a<<1^d,s=(s^d)<<1|d|1;g=a,v=1+s-a}let w=r-4;return m.map((e=>{switch(e-w){case 3:return w+65792+(t[s++]<<16|t[s++]<<8|t[s++]);case 2:return w+256+(t[s++]<<8|t[s++]);case 1:return w+t[s++];default:return e-1}}))}(t))}function Wm(t){return 1&t?~t>>1:t>>1}function Fm(t,e){let n=Array(t);for(let r=0,i=-1;re[t])):n}function Gm(t,e,n){let r=Array(t).fill(void 0).map((()=>[]));for(let i=0;ir[e].push(t)));return r}function qm(t,e){let n=1+e(),r=e(),i=function(t){let e=[];for(;;){let n=t();if(0==n)break;e.push(n)}return e}(e);return Qm(Gm(i.length,1+t,e).map(((t,e)=>{const o=t[0],a=t.slice(1);return Array(i[e]).fill(void 0).map(((t,e)=>{let i=e*r;return[o+e*n,a.map((t=>t+i))]}))})))}function Zm(t,e){return Gm(1+e(),1+t,e).map((t=>[t[0],t.slice(1)]))}const Jm=Ym(Rm("AEQF2AO2DEsA2wIrAGsBRABxAN8AZwCcAEwAqgA0AGwAUgByADcATAAVAFYAIQAyACEAKAAYAFgAGwAjABQAMAAmADIAFAAfABQAKwATACoADgAbAA8AHQAYABoAGQAxADgALAAoADwAEwA9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GY23LO9zAVDly7jD+70G5TPPLdhRIl4WxcYjLnM+SNcJ26FOrkrISUtPObIz5Zb3AG612krnpy15RMW+1cQjlnWFI6538qky9axd2oJmHIHP08KyP0ubGO+TQNOYuv2uh17yCIvR8VcStw7o1g0NM60sk+8Tq7YfIBJrtp53GkvzXH7OA0p8/n/u1satf/VJhtR1l8Wa6Gmaug7haSpaCaYQax6ta0mkutlb+eAOSG1aobM81D9A4iS1RRlzBBoVX6tU1S6WE2N9ORY6DfeLRC4l9Rvr5h95XDWB2mR1d4WFudpsgVYwiTwT31ljskD8ZyDOlm5DkGh9N/UB/0AI5Xvb8ZBmai2hQ4BWMqFwYnzxwB26YHSOv9WgY3JXnvoN+2R4rqGVh/LLDMtpFP+SpMGJNWvbIl5SOodbCczW2RKleksPoUeGEzrjtKHVdtZA+kfqO+rVx/iclCqwoopepvJpSTDjT+b9GWylGRF8EDbGlw6eUzmJM95Ovoz+kwLX3c2fTjFeYEsE7vUZm3mqdGJuKh2w9/QGSaqRHs99aScGOdDqkFcACoqdbBoQqqjamhH6Q9ng39JCg3lrGJwd50Qk9ovnqBTr8MME7Ps2wiVfygUmPoUBJJfJWX5Nda0nuncbFkA==")),Xm=new Set(Hm(Jm)),Km=new Set(Hm(Jm)),$m=function(t){let e=[];for(;;){let n=t();if(0==n)break;e.push(qm(n,t))}for(;;){let n=t()-1;if(n<0)break;e.push(Zm(n,t))}return function(t){const e={};for(let n=0;nt-e));return function n(){let r=[];for(;;){let i=Hm(t,e);if(0==i.length)break;r.push({set:new Set(i),node:n()})}r.sort(((t,e)=>e.set.size-t.set.size));let i=t(),o=i%3;i=i/3|0;let a=!!(1&i);return i>>=1,{branches:r,valid:o,fe0f:a,save:1==i,check:2==i}}()}(Jm);function eg(t){return function(t,e=Em.current){return Lm(Sm(t,e))}(t)}function ng(t){return t.filter((t=>65039!=t))}function rg(t){for(let e of t.split(".")){let t=eg(e);try{for(let e=t.lastIndexOf(95)-1;e>=0;e--)if(95!==t[e])throw new Error("underscore only allowed at start");if(t.length>=4&&t.every((t=>t<128))&&45===t[2]&&45===t[3])throw new Error("invalid label extension")}catch(t){throw new Error(`Invalid label "${e}": ${t.message}`)}}return t}function ig(t){return rg(function(t,e){let n=eg(t).reverse(),r=[];for(;n.length;){let t=og(n);if(t){r.push(...e(t));continue}let i=n.pop();if(Xm.has(i)){r.push(i);continue}if(Km.has(i))continue;let o=$m[i];if(!o)throw new Error(`Disallowed codepoint: 0x${i.toString(16).toUpperCase()}`);r.push(...o)}return rg(function(t){return t.normalize("NFC")}(String.fromCodePoint(...r)))}(t,ng))}function og(t,e){var n;let r,i,o=tg,a=[],s=t.length;for(e&&(e.length=0);s;){let u=t[--s];if(o=null===(n=o.branches.find((t=>t.set.has(u))))||void 0===n?void 0:n.node,!o)break;if(o.save)i=u;else if(o.check&&u===i)break;a.push(u),o.fe0f&&(a.push(65039),s>0&&65039==t[s-1]&&s--),o.valid&&(r=a.slice(),2==o.valid&&r.splice(1,1),e&&e.push(...t.slice(s).reverse()),t.length=s)}return r}const ag=new Mp("hash/5.7.0"),sg=new Uint8Array(32);function ug(t){if(0===t.length)throw new Error("invalid ENS name; empty component");return t}function cg(t){const e=Sm(ig(t)),n=[];if(0===t.length)return n;let r=0;for(let t=0;t=e.length)throw new Error("invalid ENS name; empty component");return n.push(ug(e.slice(r))),n}function lg(t){"string"!=typeof t&&ag.throwArgumentError("invalid ENS name; not a string","name",t);let e=sg;const n=cg(t);for(;n.length;)e=Gy(Lp([e,Gy(n.pop())]));return Dp(e)}sg.fill(0);var hg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const dg=new Mp("hash/5.7.0"),fg=new Uint8Array(32);fg.fill(0);const pg=Fp.from(-1),yg=Fp.from(0),mg=Fp.from(1),gg=Fp.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");const vg=Bp(mg.toHexString(),32),wg=Bp(yg.toHexString(),32),bg={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},Mg=["name","version","chainId","verifyingContract","salt"];function Ag(t){return function(e){return"string"!=typeof e&&dg.throwArgumentError(`invalid domain value for ${JSON.stringify(t)}`,`domain.${t}`,e),e}}const Ig={name:Ag("name"),version:Ag("version"),chainId:function(t){try{return Fp.from(t).toString()}catch(t){}return dg.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",t)},verifyingContract:function(t){try{return am(t).toLowerCase()}catch(t){}return dg.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",t)},salt:function(t){try{const e=Tp(t);if(32!==e.length)throw new Error("bad length");return Dp(e)}catch(t){}return dg.throwArgumentError('invalid domain value "salt"',"domain.salt",t)}};function Ng(t){{const e=t.match(/^(u?)int(\d*)$/);if(e){const n=""===e[1],r=parseInt(e[2]||"256");(r%8!=0||r>256||e[2]&&e[2]!==String(r))&&dg.throwArgumentError("invalid numeric width","type",t);const i=gg.mask(n?r-1:r),o=n?i.add(mg).mul(pg):yg;return function(e){const n=Fp.from(e);return(n.lt(o)||n.gt(i))&&dg.throwArgumentError(`value out-of-bounds for ${t}`,"value",e),Bp(n.toTwos(256).toHexString(),32)}}}{const e=t.match(/^bytes(\d+)$/);if(e){const n=parseInt(e[1]);return(0===n||n>32||e[1]!==String(n))&&dg.throwArgumentError("invalid bytes width","type",t),function(e){return Tp(e).length!==n&&dg.throwArgumentError(`invalid length for ${t}`,"value",e),function(t){const e=Tp(t),n=e.length%32;return n?Pp([e,fg.slice(n)]):Dp(e)}(e)}}}switch(t){case"address":return function(t){return Bp(am(t),32)};case"bool":return function(t){return t?vg:wg};case"bytes":return function(t){return Gy(t)};case"string":return function(t){return Bm(t)}}return null}function Eg(t,e){return`${t}(${e.map((({name:t,type:e})=>e+" "+t)).join(",")})`}class xg{constructor(t){ly(this,"types",Object.freeze(gy(t))),ly(this,"_encoderCache",{}),ly(this,"_types",{});const e={},n={},r={};Object.keys(t).forEach((t=>{e[t]={},n[t]=[],r[t]={}}));for(const r in t){const i={};t[r].forEach((o=>{i[o.name]&&dg.throwArgumentError(`duplicate variable name ${JSON.stringify(o.name)} in ${JSON.stringify(r)}`,"types",t),i[o.name]=!0;const a=o.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===r&&dg.throwArgumentError(`circular type reference to ${JSON.stringify(a)}`,"types",t);Ng(a)||(n[a]||dg.throwArgumentError(`unknown type ${JSON.stringify(a)}`,"types",t),n[a].push(r),e[r][a]=!0)}))}const i=Object.keys(n).filter((t=>0===n[t].length));0===i.length?dg.throwArgumentError("missing primary type","types",t):i.length>1&&dg.throwArgumentError(`ambiguous primary types or unused types: ${i.map((t=>JSON.stringify(t))).join(", ")}`,"types",t),ly(this,"primaryType",i[0]),function i(o,a){a[o]&&dg.throwArgumentError(`circular type reference to ${JSON.stringify(o)}`,"types",t),a[o]=!0,Object.keys(e[o]).forEach((t=>{n[t]&&(i(t,a),Object.keys(a).forEach((e=>{r[e][t]=!0})))})),delete a[o]}(this.primaryType,{});for(const e in r){const n=Object.keys(r[e]);n.sort(),this._types[e]=Eg(e,t[e])+n.map((e=>Eg(e,t[e]))).join("")}}getEncoder(t){let e=this._encoderCache[t];return e||(e=this._encoderCache[t]=this._getEncoder(t)),e}_getEncoder(t){{const e=Ng(t);if(e)return e}const e=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(e){const t=e[1],n=this.getEncoder(t),r=parseInt(e[3]);return e=>{r>=0&&e.length!==r&&dg.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);let i=e.map(n);return this._types[t]&&(i=i.map(Gy)),Gy(Pp(i))}}const n=this.types[t];if(n){const e=Bm(this._types[t]);return t=>{const r=n.map((({name:e,type:n})=>{const r=this.getEncoder(n)(t[e]);return this._types[n]?Gy(r):r}));return r.unshift(e),Pp(r)}}return dg.throwArgumentError(`unknown type: ${t}`,"type",t)}encodeType(t){const e=this._types[t];return e||dg.throwArgumentError(`unknown type: ${JSON.stringify(t)}`,"name",t),e}encodeData(t,e){return this.getEncoder(t)(e)}hashStruct(t,e){return Gy(this.encodeData(t,e))}encode(t){return this.encodeData(this.primaryType,t)}hash(t){return this.hashStruct(this.primaryType,t)}_visit(t,e,n){if(Ng(t))return n(t,e);const r=t.match(/^(.*)(\x5b(\d*)\x5d)$/);if(r){const t=r[1],i=parseInt(r[3]);return i>=0&&e.length!==i&&dg.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e),e.map((e=>this._visit(t,e,n)))}const i=this.types[t];return i?i.reduce(((t,{name:r,type:i})=>(t[r]=this._visit(i,e[r],n),t)),{}):dg.throwArgumentError(`unknown type: ${t}`,"type",t)}visit(t,e){return this._visit(this.primaryType,t,e)}static from(t){return new xg(t)}static getPrimaryType(t){return xg.from(t).primaryType}static hashStruct(t,e,n){return xg.from(e).hashStruct(t,n)}static hashDomain(t){const e=[];for(const n in t){const r=bg[n];r||dg.throwArgumentError(`invalid typed-data domain key: ${JSON.stringify(n)}`,"domain",t),e.push({name:n,type:r})}return e.sort(((t,e)=>Mg.indexOf(t.name)-Mg.indexOf(e.name))),xg.hashStruct("EIP712Domain",{EIP712Domain:e},t)}static encode(t,e,n){return Pp(["0x1901",xg.hashDomain(t),xg.from(e).hash(n)])}static hash(t,e,n){return Gy(xg.encode(t,e,n))}static resolveNames(t,e,n,r){return hg(this,void 0,void 0,(function*(){t=fy(t);const i={};t.verifyingContract&&!Cp(t.verifyingContract,20)&&(i[t.verifyingContract]="0x");const o=xg.from(e);o.visit(n,((t,e)=>("address"!==t||Cp(e,20)||(i[e]="0x"),e)));for(const t in i)i[t]=yield r(t);return t.verifyingContract&&i[t.verifyingContract]&&(t.verifyingContract=i[t.verifyingContract]),n=o.visit(n,((t,e)=>"address"===t&&i[e]?i[e]:e)),{domain:t,value:n}}))}static getPayload(t,e,n){xg.hashDomain(t);const r={},i=[];Mg.forEach((e=>{const n=t[e];null!=n&&(r[e]=Ig[e](n),i.push({name:e,type:bg[e]}))}));const o=xg.from(e),a=fy(e);return a.EIP712Domain?dg.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",e):a.EIP712Domain=i,o.encode(n),{types:a,domain:r,primaryType:o.primaryType,message:o.visit(n,((t,e)=>{if(t.match(/^bytes(\d*)/))return Dp(Tp(e));if(t.match(/^u?int/))return Fp.from(e).toString();switch(t){case"address":return e.toLowerCase();case"bool":return!!e;case"string":return"string"!=typeof e&&dg.throwArgumentError("invalid string","value",e),e}return dg.throwArgumentError("unsupported type","type",t)}))}}}const kg=new Mp("abi/5.7.0");class Tg extends vy{}class Lg extends vy{}class Sg extends vy{}class jg extends vy{static isIndexed(t){return!(!t||!t._isIndexed)}}const Cg={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Dg(t,e){const n=new Error(`deferred error during ABI decoding triggered accessing ${t}`);return n.error=e,n}class Og{constructor(t){let e=[];e="string"==typeof t?JSON.parse(t):t,ly(this,"fragments",e.map((t=>Ly.from(t))).filter((t=>null!=t))),ly(this,"_abiCoder",hy(new.target,"getAbiCoder")()),ly(this,"functions",{}),ly(this,"errors",{}),ly(this,"events",{}),ly(this,"structs",{}),this.fragments.forEach((t=>{let e=null;switch(t.type){case"constructor":return this.deploy?void kg.warn("duplicate definition - constructor"):void ly(this,"deploy",t);case"function":e=this.functions;break;case"event":e=this.events;break;case"error":e=this.errors;break;default:return}let n=t.format();e[n]?kg.warn("duplicate definition - "+n):e[n]=t})),this.deploy||ly(this,"deploy",Oy.from({payable:!1,type:"constructor"})),ly(this,"_isInterface",!0)}format(t){t||(t=Ey.full),t===Ey.sighash&&kg.throwArgumentError("interface does not support formatting sighash","format",t);const e=this.fragments.map((e=>e.format(t)));return t===Ey.json?JSON.stringify(e.map((t=>JSON.parse(t)))):e}static getAbiCoder(){return _m}static getAddress(t){return am(t)}static getSighash(t){return zp(Bm(t.format()),0,4)}static getEventTopic(t){return Bm(t.format())}getFunction(t){if(Cp(t)){for(const e in this.functions)if(t===this.getSighash(e))return this.functions[e];kg.throwArgumentError("no matching function","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.functions).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching function","name",e):n.length>1&&kg.throwArgumentError("multiple matching functions","name",e),this.functions[n[0]]}const e=this.functions[zy.fromString(t).format()];return e||kg.throwArgumentError("no matching function","signature",t),e}getEvent(t){if(Cp(t)){const e=t.toLowerCase();for(const t in this.events)if(e===this.getEventTopic(t))return this.events[t];kg.throwArgumentError("no matching event","topichash",e)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.events).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching event","name",e):n.length>1&&kg.throwArgumentError("multiple matching events","name",e),this.events[n[0]]}const e=this.events[Sy.fromString(t).format()];return e||kg.throwArgumentError("no matching event","signature",t),e}getError(t){if(Cp(t)){const e=hy(this.constructor,"getSighash");for(const n in this.errors){if(t===e(this.errors[n]))return this.errors[n]}kg.throwArgumentError("no matching error","sighash",t)}if(-1===t.indexOf("(")){const e=t.trim(),n=Object.keys(this.errors).filter((t=>t.split("(")[0]===e));return 0===n.length?kg.throwArgumentError("no matching error","name",e):n.length>1&&kg.throwArgumentError("multiple matching errors","name",e),this.errors[n[0]]}const e=this.errors[zy.fromString(t).format()];return e||kg.throwArgumentError("no matching error","signature",t),e}getSighash(t){if("string"==typeof t)try{t=this.getFunction(t)}catch(e){try{t=this.getError(t)}catch(t){throw e}}return hy(this.constructor,"getSighash")(t)}getEventTopic(t){return"string"==typeof t&&(t=this.getEvent(t)),hy(this.constructor,"getEventTopic")(t)}_decodeParams(t,e){return this._abiCoder.decode(t,e)}_encodeParams(t,e){return this._abiCoder.encode(t,e)}encodeDeploy(t){return this._encodeParams(this.deploy.inputs,t||[])}decodeErrorResult(t,e){"string"==typeof t&&(t=this.getError(t));const n=Tp(e);return Dp(n.slice(0,4))!==this.getSighash(t)&&kg.throwArgumentError(`data signature does not match error ${t.name}.`,"data",Dp(n)),this._decodeParams(t.inputs,n.slice(4))}encodeErrorResult(t,e){return"string"==typeof t&&(t=this.getError(t)),Dp(Lp([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionData(t,e){"string"==typeof t&&(t=this.getFunction(t));const n=Tp(e);return Dp(n.slice(0,4))!==this.getSighash(t)&&kg.throwArgumentError(`data signature does not match function ${t.name}.`,"data",Dp(n)),this._decodeParams(t.inputs,n.slice(4))}encodeFunctionData(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Dp(Lp([this.getSighash(t),this._encodeParams(t.inputs,e||[])]))}decodeFunctionResult(t,e){"string"==typeof t&&(t=this.getFunction(t));let n=Tp(e),r=null,i="",o=null,a=null,s=null;switch(n.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(t.outputs,n)}catch(t){}break;case 4:{const t=Dp(n.slice(0,4)),e=Cg[t];if(e)o=this._abiCoder.decode(e.inputs,n.slice(4)),a=e.name,s=e.signature,e.reason&&(r=o[0]),"Error"===a?i=`; VM Exception while processing transaction: reverted with reason string ${JSON.stringify(o[0])}`:"Panic"===a&&(i=`; VM Exception while processing transaction: reverted with panic code ${o[0]}`);else try{const e=this.getError(t);o=this._abiCoder.decode(e.inputs,n.slice(4)),a=e.name,s=e.format()}catch(t){}break}}return kg.throwError("call revert exception"+i,Mp.errors.CALL_EXCEPTION,{method:t.format(),data:Dp(e),errorArgs:o,errorName:a,errorSignature:s,reason:r})}encodeFunctionResult(t,e){return"string"==typeof t&&(t=this.getFunction(t)),Dp(this._abiCoder.encode(t.outputs,e||[]))}encodeFilterTopics(t,e){"string"==typeof t&&(t=this.getEvent(t)),e.length>t.inputs.length&&kg.throwError("too many arguments for "+t.format(),Mp.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:e});let n=[];t.anonymous||n.push(this.getEventTopic(t));const r=(t,e)=>"string"===t.type?Bm(e):"bytes"===t.type?Gy(Dp(e)):("bool"===t.type&&"boolean"==typeof e&&(e=e?"0x01":"0x00"),t.type.match(/^u?int/)&&(e=Fp.from(e).toHexString()),"address"===t.type&&this._abiCoder.encode(["address"],[e]),Bp(Dp(e),32));for(e.forEach(((e,i)=>{let o=t.inputs[i];o.indexed?null==e?n.push(null):"array"===o.baseType||"tuple"===o.baseType?kg.throwArgumentError("filtering with tuples or arrays not supported","contract."+o.name,e):Array.isArray(e)?n.push(e.map((t=>r(o,t)))):n.push(r(o,e)):null!=e&&kg.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+o.name,e)}));n.length&&null===n[n.length-1];)n.pop();return n}encodeEventLog(t,e){"string"==typeof t&&(t=this.getEvent(t));const n=[],r=[],i=[];return t.anonymous||n.push(this.getEventTopic(t)),e.length!==t.inputs.length&&kg.throwArgumentError("event arguments/values mismatch","values",e),t.inputs.forEach(((t,o)=>{const a=e[o];if(t.indexed)if("string"===t.type)n.push(Bm(a));else if("bytes"===t.type)n.push(Gy(a));else{if("tuple"===t.baseType||"array"===t.baseType)throw new Error("not implemented");n.push(this._abiCoder.encode([t.type],[a]))}else r.push(t),i.push(a)})),{data:this._abiCoder.encode(r,i),topics:n}}decodeEventLog(t,e,n){if("string"==typeof t&&(t=this.getEvent(t)),null!=n&&!t.anonymous){let e=this.getEventTopic(t);Cp(n[0],32)&&n[0].toLowerCase()===e||kg.throwError("fragment/topic mismatch",Mp.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:e,value:n[0]}),n=n.slice(1)}let r=[],i=[],o=[];t.inputs.forEach(((t,e)=>{t.indexed?"string"===t.type||"bytes"===t.type||"tuple"===t.baseType||"array"===t.baseType?(r.push(ky.fromObject({type:"bytes32",name:t.name})),o.push(!0)):(r.push(t),o.push(!1)):(i.push(t),o.push(!1))}));let a=null!=n?this._abiCoder.decode(r,Lp(n)):null,s=this._abiCoder.decode(i,e,!0),u=[],c=0,l=0;t.inputs.forEach(((t,e)=>{if(t.indexed)if(null==a)u[e]=new jg({_isIndexed:!0,hash:null});else if(o[e])u[e]=new jg({_isIndexed:!0,hash:a[l++]});else try{u[e]=a[l++]}catch(t){u[e]=t}else try{u[e]=s[c++]}catch(t){u[e]=t}if(t.name&&null==u[t.name]){const n=u[e];n instanceof Error?Object.defineProperty(u,t.name,{enumerable:!0,get:()=>{throw Dg(`property ${JSON.stringify(t.name)}`,n)}}):u[t.name]=n}}));for(let t=0;t{throw Dg(`index ${t}`,e)}})}return Object.freeze(u)}parseTransaction(t){let e=this.getFunction(t.data.substring(0,10).toLowerCase());return e?new Lg({args:this._abiCoder.decode(e.inputs,"0x"+t.data.substring(10)),functionFragment:e,name:e.name,signature:e.format(),sighash:this.getSighash(e),value:Fp.from(t.value||"0")}):null}parseLog(t){let e=this.getEvent(t.topics[0]);return!e||e.anonymous?null:new Tg({eventFragment:e,name:e.name,signature:e.format(),topic:this.getEventTopic(e),args:this.decodeEventLog(e,t.data,t.topics)})}parseError(t){const e=Dp(t);let n=this.getError(e.substring(0,10).toLowerCase());return n?new Sg({args:this._abiCoder.decode(n.inputs,"0x"+e.substring(10)),errorFragment:n,name:n.name,signature:n.format(),sighash:this.getSighash(n)}):null}static isInterface(t){return!(!t||!t._isInterface)}}var zg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const Pg=new Mp("abstract-provider/5.7.0");class _g extends vy{static isForkEvent(t){return!(!t||!t._isForkEvent)}}class Bg{constructor(){Pg.checkAbstract(new.target,Bg),ly(this,"_isProvider",!0)}getFeeData(){return zg(this,void 0,void 0,(function*(){const{block:t,gasPrice:e}=yield dy({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((t=>null))});let n=null,r=null,i=null;return t&&t.baseFeePerGas&&(n=t.baseFeePerGas,i=Fp.from("1500000000"),r=t.baseFeePerGas.mul(2).add(i)),{lastBaseFeePerGas:n,maxFeePerGas:r,maxPriorityFeePerGas:i,gasPrice:e}}))}addListener(t,e){return this.on(t,e)}removeListener(t,e){return this.off(t,e)}static isProvider(t){return!(!t||!t._isProvider)}}var Rg=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const Ug=new Mp("abstract-signer/5.7.0"),Qg=["accessList","ccipReadEnabled","chainId","customData","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],Yg=[Mp.errors.INSUFFICIENT_FUNDS,Mp.errors.NONCE_EXPIRED,Mp.errors.REPLACEMENT_UNDERPRICED];class Wg{constructor(){Ug.checkAbstract(new.target,Wg),ly(this,"_isSigner",!0)}getBalance(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getBalance"),yield this.provider.getBalance(this.getAddress(),t)}))}getTransactionCount(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getTransactionCount"),yield this.provider.getTransactionCount(this.getAddress(),t)}))}estimateGas(t){return Rg(this,void 0,void 0,(function*(){this._checkProvider("estimateGas");const e=yield dy(this.checkTransaction(t));return yield this.provider.estimateGas(e)}))}call(t,e){return Rg(this,void 0,void 0,(function*(){this._checkProvider("call");const n=yield dy(this.checkTransaction(t));return yield this.provider.call(n,e)}))}sendTransaction(t){return Rg(this,void 0,void 0,(function*(){this._checkProvider("sendTransaction");const e=yield this.populateTransaction(t),n=yield this.signTransaction(e);return yield this.provider.sendTransaction(n)}))}getChainId(){return Rg(this,void 0,void 0,(function*(){this._checkProvider("getChainId");return(yield this.provider.getNetwork()).chainId}))}getGasPrice(){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getGasPrice"),yield this.provider.getGasPrice()}))}getFeeData(){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("getFeeData"),yield this.provider.getFeeData()}))}resolveName(t){return Rg(this,void 0,void 0,(function*(){return this._checkProvider("resolveName"),yield this.provider.resolveName(t)}))}checkTransaction(t){for(const e in t)-1===Qg.indexOf(e)&&Ug.throwArgumentError("invalid transaction key: "+e,"transaction",t);const e=fy(t);return null==e.from?e.from=this.getAddress():e.from=Promise.all([Promise.resolve(e.from),this.getAddress()]).then((e=>(e[0].toLowerCase()!==e[1].toLowerCase()&&Ug.throwArgumentError("from address mismatch","transaction",t),e[0]))),e}populateTransaction(t){return Rg(this,void 0,void 0,(function*(){const e=yield dy(this.checkTransaction(t));null!=e.to&&(e.to=Promise.resolve(e.to).then((t=>Rg(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.resolveName(t);return null==e&&Ug.throwArgumentError("provided ENS name resolves to null","tx.to",t),e})))),e.to.catch((t=>{})));const n=null!=e.maxFeePerGas||null!=e.maxPriorityFeePerGas;if(null==e.gasPrice||2!==e.type&&!n?0!==e.type&&1!==e.type||!n||Ug.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",t):Ug.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",t),2!==e.type&&null!=e.type||null==e.maxFeePerGas||null==e.maxPriorityFeePerGas)if(0===e.type||1===e.type)null==e.gasPrice&&(e.gasPrice=this.getGasPrice());else{const t=yield this.getFeeData();if(null==e.type)if(null!=t.maxFeePerGas&&null!=t.maxPriorityFeePerGas)if(e.type=2,null!=e.gasPrice){const t=e.gasPrice;delete e.gasPrice,e.maxFeePerGas=t,e.maxPriorityFeePerGas=t}else null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas);else null!=t.gasPrice?(n&&Ug.throwError("network does not support EIP-1559",Mp.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==e.gasPrice&&(e.gasPrice=t.gasPrice),e.type=0):Ug.throwError("failed to get consistent fee data",Mp.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"});else 2===e.type&&(null==e.maxFeePerGas&&(e.maxFeePerGas=t.maxFeePerGas),null==e.maxPriorityFeePerGas&&(e.maxPriorityFeePerGas=t.maxPriorityFeePerGas))}else e.type=2;return null==e.nonce&&(e.nonce=this.getTransactionCount("pending")),null==e.gasLimit&&(e.gasLimit=this.estimateGas(e).catch((t=>{if(Yg.indexOf(t.code)>=0)throw t;return Ug.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,tx:e})}))),null==e.chainId?e.chainId=this.getChainId():e.chainId=Promise.all([Promise.resolve(e.chainId),this.getChainId()]).then((e=>(0!==e[1]&&e[0]!==e[1]&&Ug.throwArgumentError("chainId address mismatch","transaction",t),e[0]))),yield dy(e)}))}_checkProvider(t){this.provider||Ug.throwError("missing provider",Mp.errors.UNSUPPORTED_OPERATION,{operation:t||"_checkProvider"})}static isSigner(t){return!(!t||!t._isSigner)}}class Fg extends Wg{constructor(t,e){super(),ly(this,"address",t),ly(this,"provider",e||null)}getAddress(){return Promise.resolve(this.address)}_fail(t,e){return Promise.resolve().then((()=>{Ug.throwError(t,Mp.errors.UNSUPPORTED_OPERATION,{operation:e})}))}signMessage(t){return this._fail("VoidSigner cannot sign messages","signMessage")}signTransaction(t){return this._fail("VoidSigner cannot sign transactions","signTransaction")}_signTypedData(t,e,n){return this._fail("VoidSigner cannot sign typed data","signTypedData")}connect(t){return new Fg(this.address,t)}}var Vg=Zf((function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==typeof t?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:lp.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==typeof t)return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&o}for(;i>26,this.words[i+r]=67108863&o;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!==(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,a=new i(1),s=new i(0),u=r.clone();e.cmpn(1)>0&&r.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(r.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(r.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(r)>=0?(e.isub(r),a.isub(s)):(r.isub(e),s.isub(a))}return(o=0===e.cmpn(1)?a:s).cmpn(0)<0&&o.iadd(t),o},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new N(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function I(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function N(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function E(t){N.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new I}return v[t]=e,e},N.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},N.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},N.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},N.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},N.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},N.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},N.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},N.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},N.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},N.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},N.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},N.prototype.isqr=function(t){return this.imul(t,t.clone())},N.prototype.sqr=function(t){return this.mul(t,t)},N.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4===++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},N.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},N.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new E(t)},r(E,N),E.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},E.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},E.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},E.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},E.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,Gf)})),Hg=Gg;function Gg(t,e){if(!t)throw new Error(e||"Assertion failed")}Gg.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var qg=[],Zg=[],Jg="undefined"!=typeof Uint8Array?Uint8Array:Array,Xg=!1;function Kg(){Xg=!0;for(var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=t.length;e>18&63]+qg[i>>12&63]+qg[i>>6&63]+qg[63&i]);return o.join("")}function tv(t){var e;Xg||Kg();for(var n=t.length,r=n%3,i="",o=[],a=16383,s=0,u=n-r;su?u:s+a));return 1===r?(e=t[n-1],i+=qg[e>>2],i+=qg[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=qg[e>>10],i+=qg[e>>4&63],i+=qg[e<<2&63],i+="="),o.push(i),o.join("")}function ev(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)}function nv(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}var rv={}.toString,iv=Array.isArray||function(t){return"[object Array]"==rv.call(t)};function ov(){return sv.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function av(t,e){if(ov()=ov())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ov().toString(16)+" bytes");return 0|t}function fv(t){return!(null==t||!t._isBuffer)}function pv(t,e){if(fv(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return Uv(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Qv(t).length;default:if(r)return Uv(t).length;e=(""+e).toLowerCase(),r=!0}}function yv(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return Lv(this,e,n);case"utf8":case"utf-8":return xv(this,e,n);case"ascii":return kv(this,e,n);case"latin1":case"binary":return Tv(this,e,n);case"base64":return Ev(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Sv(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function mv(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function gv(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=sv.from(e,r)),fv(e))return 0===e.length?-1:vv(t,e,n,r,i);if("number"==typeof e)return e&=255,sv.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):vv(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function vv(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function Ev(t,e,n){return 0===e&&n===t.length?tv(t):tv(t.slice(e,n))}function xv(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",r=0;for(;r0&&(t=this.toString("hex",0,50).match(/.{2}/g).join(" "),this.length>50&&(t+=" ... ")),""},sv.prototype.compare=function(t,e,n,r,i){if(!fv(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),u=this.slice(r,i),c=t.slice(e,n),l=0;li)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return wv(this,t,e,n);case"utf8":case"utf-8":return bv(this,t,e,n);case"ascii":return Mv(this,t,e,n);case"latin1":case"binary":return Av(this,t,e,n);case"base64":return Iv(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nv(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},sv.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function kv(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;ir)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function Cv(t,e,n,r,i,o){if(!fv(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function Dv(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function Ov(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function zv(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function Pv(t,e,n,r,i){return i||zv(t,0,n,4),nv(t,e,n,r,23,4),n+4}function _v(t,e,n,r,i){return i||zv(t,0,n,8),nv(t,e,n,r,52,8),n+8}sv.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},sv.prototype.readUInt8=function(t,e){return e||jv(t,1,this.length),this[t]},sv.prototype.readUInt16LE=function(t,e){return e||jv(t,2,this.length),this[t]|this[t+1]<<8},sv.prototype.readUInt16BE=function(t,e){return e||jv(t,2,this.length),this[t]<<8|this[t+1]},sv.prototype.readUInt32LE=function(t,e){return e||jv(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},sv.prototype.readUInt32BE=function(t,e){return e||jv(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},sv.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||jv(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},sv.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||jv(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},sv.prototype.readInt8=function(t,e){return e||jv(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},sv.prototype.readInt16LE=function(t,e){e||jv(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},sv.prototype.readInt16BE=function(t,e){e||jv(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},sv.prototype.readInt32LE=function(t,e){return e||jv(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},sv.prototype.readInt32BE=function(t,e){return e||jv(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},sv.prototype.readFloatLE=function(t,e){return e||jv(t,4,this.length),ev(this,t,!0,23,4)},sv.prototype.readFloatBE=function(t,e){return e||jv(t,4,this.length),ev(this,t,!1,23,4)},sv.prototype.readDoubleLE=function(t,e){return e||jv(t,8,this.length),ev(this,t,!0,52,8)},sv.prototype.readDoubleBE=function(t,e){return e||jv(t,8,this.length),ev(this,t,!1,52,8)},sv.prototype.writeUIntLE=function(t,e,n,r){(t=+t,e|=0,n|=0,r)||Cv(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},sv.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,1,255,0),sv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},sv.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,2,65535,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Dv(this,t,e,!0),e+2},sv.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,2,65535,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Dv(this,t,e,!1),e+2},sv.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,4,4294967295,0),sv.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):Ov(this,t,e,!0),e+4},sv.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,4,4294967295,0),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ov(this,t,e,!1),e+4},sv.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Cv(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},sv.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);Cv(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},sv.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,1,127,-128),sv.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},sv.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,2,32767,-32768),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):Dv(this,t,e,!0),e+2},sv.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,2,32767,-32768),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):Dv(this,t,e,!1),e+2},sv.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,4,2147483647,-2147483648),sv.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):Ov(this,t,e,!0),e+4},sv.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||Cv(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),sv.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):Ov(this,t,e,!1),e+4},sv.prototype.writeFloatLE=function(t,e,n){return Pv(this,t,e,!0,n)},sv.prototype.writeFloatBE=function(t,e,n){return Pv(this,t,e,!1,n)},sv.prototype.writeDoubleLE=function(t,e,n){return _v(this,t,e,!0,n)},sv.prototype.writeDoubleBE=function(t,e,n){return _v(this,t,e,!1,n)},sv.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!sv.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Qv(t){return function(t){var e,n,r,i,o,a;Xg||Kg();var s=t.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");o="="===t[s-2]?2:"="===t[s-1]?1:0,a=new Jg(3*s/4-o),r=o>0?s-4:s;var u=0;for(e=0,n=0;e>16&255,a[u++]=i>>8&255,a[u++]=255&i;return 2===o?(i=Zg[t.charCodeAt(e)]<<2|Zg[t.charCodeAt(e+1)]>>4,a[u++]=255&i):1===o&&(i=Zg[t.charCodeAt(e)]<<10|Zg[t.charCodeAt(e+1)]<<4|Zg[t.charCodeAt(e+2)]>>2,a[u++]=i>>8&255,a[u++]=255&i),a}(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(Bv,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Yv(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function Wv(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}var Fv=function(t){return t instanceof sv},Vv=Zf((function(t,e){var n=/%[sdj%]/g;e.format=function(t){if(!y(t)){for(var e=[],r=0;r=a)return t;switch(t){case"%s":return String(i[r++]);case"%d":return Number(i[r++]);case"%j":try{return JSON.stringify(i[r++])}catch(t){return"[Circular]"}default:return t}})),u=i[r];r=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),d(n)?r.showHidden=n:n&&e._extend(r,n),m(r.showHidden)&&(r.showHidden=!1),m(r.depth)&&(r.depth=2),m(r.colors)&&(r.colors=!1),m(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=a),u(r,t,r.depth)}function a(t,e){var n=o.styles[e];return n?"["+o.colors[n][0]+"m"+t+"["+o.colors[n][1]+"m":t}function s(t,e){return t}function u(t,n,r){if(t.customInspect&&n&&M(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return y(i)||(i=u(t,i,r)),i}var o=function(t,e){if(m(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}if(p(e))return t.stylize(""+e,"number");if(d(e))return t.stylize(""+e,"boolean");if(f(e))return t.stylize("null","null")}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),0===a.length){if(M(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(g(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(b(n))return c(n)}var A,I="",N=!1,E=["{","}"];(h(n)&&(N=!0,E=["[","]"]),M(n))&&(I=" [Function"+(n.name?": "+n.name:"")+"]");return g(n)&&(I=" "+RegExp.prototype.toString.call(n)),w(n)&&(I=" "+Date.prototype.toUTCString.call(n)),b(n)&&(I=" "+c(n)),0!==a.length||N&&0!=n.length?r<0?g(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),A=N?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a60)return n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1];return n[0]+e+" "+t.join(", ")+" "+n[1]}(A,I,E)):E[0]+I+E[1]}function c(t){return"["+Error.prototype.toString.call(t)+"]"}function l(t,e,n,r,i,o){var a,s,c;if((c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(s=t.stylize("[Setter]","special")),x(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(c.value)<0?(s=f(n)?u(t,c.value,null):u(t,c.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),m(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t){return Array.isArray(t)}function d(t){return"boolean"==typeof t}function f(t){return null===t}function p(t){return"number"==typeof t}function y(t){return"string"==typeof t}function m(t){return void 0===t}function g(t){return v(t)&&"[object RegExp]"===A(t)}function v(t){return"object"==typeof t&&null!==t}function w(t){return v(t)&&"[object Date]"===A(t)}function b(t){return v(t)&&("[object Error]"===A(t)||t instanceof Error)}function M(t){return"function"==typeof t}function A(t){return Object.prototype.toString.call(t)}function I(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(m(r)&&(r=k.env.NODE_DEBUG||""),t=t.toUpperCase(),!i[t])if(new RegExp("\\b"+t+"\\b","i").test(r)){var n=k.pid;i[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else i[t]=function(){};return i[t]},e.inspect=o,o.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]},o.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=d,e.isNull=f,e.isNullOrUndefined=function(t){return null==t},e.isNumber=p,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=m,e.isRegExp=g,e.isObject=v,e.isDate=w,e.isError=b,e.isFunction=M,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=Fv;var N=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[I(t.getHours()),I(t.getMinutes()),I(t.getSeconds())].join(":");return[t.getDate(),N[t.getMonth()],e].join(" ")}function x(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})},e._extend=function(t,e){if(!e||!v(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}})),Hv=Zf((function(t){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}}));function Gv(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function qv(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function Zv(t){return 1===t.length?"0"+t:t}function Jv(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}var Xv={inherits:Zf((function(t){try{var e=Vv;if("function"!=typeof e.inherits)throw"";t.exports=e.inherits}catch(e){t.exports=Hv}})),toArray:function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):Gv(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},split32:function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},rotr32:function(t,e){return t>>>e|t<<32-e},rotl32:function(t,e){return t<>>32-e},sum32:function(t,e){return t+e>>>0},sum32_3:function(t,e,n){return t+e+n>>>0},sum32_4:function(t,e,n,r){return t+e+n+r>>>0},sum32_5:function(t,e,n,r,i){return t+e+n+r+i>>>0},sum64:function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},sum64_hi:function(t,e,n,r){return(e+r>>>0>>0},sum64_lo:function(t,e,n,r){return e+r>>>0},sum64_4_hi:function(t,e,n,r,i,o,a,s){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},sum64_4_lo:function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},sum64_5_hi:function(t,e,n,r,i,o,a,s,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},sum64_5_lo:function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},rotr64_hi:function(t,e,n){return(e<<32-n|t>>>n)>>>0},rotr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0},shr64_hi:function(t,e,n){return t>>>n},shr64_lo:function(t,e,n){return(t<<32-n|e>>>n)>>>0}};function Kv(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}var $v=Kv;Kv.prototype.update=function(t,e){if(t=Xv.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=Xv.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},g1_256:function(t){return ew(t,17)^ew(t,19)^t>>>10}},aw=Xv.rotl32,sw=Xv.sum32,uw=Xv.sum32_5,cw=ow.ft_1,lw=tw.BlockHash,hw=[1518500249,1859775393,2400959708,3395469782];function dw(){if(!(this instanceof dw))return new dw;lw.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}Xv.inherits(dw,lw);var fw=dw;dw.blockSize=512,dw.outSize=160,dw.hmacStrength=80,dw.padLength=64,dw.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),Hg(t.length<=this.blockSize);for(var e=t.length;e>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}})),kb=Ib((function(t,e){var n=e;n.assert=Nb,n.toArray=xb.toArray,n.zero2=xb.zero2,n.toHex=xb.toHex,n.encode=xb.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=0==(1&u)?0:3!==(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u,n[0].push(a),s=0==(1&c)?0:3!==(r=e.andln(7)+o&7)&&5!==r||2!==u?c:-c,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new Vg(t,"hex","le")}})),Tb=kb.getNAF,Lb=kb.getJSF,Sb=kb.assert;function jb(t,e){this.type=t,this.p=new Vg(e.p,16),this.red=e.prime?Vg.red(e.prime):Vg.mont(this.p),this.zero=new Vg(0).toRed(this.red),this.one=new Vg(1).toRed(this.red),this.two=new Vg(2).toRed(this.red),this.n=e.n&&new Vg(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Cb=jb;function Db(t,e){this.curve=t,this.type=e,this.precomputed=null}jb.prototype.point=function(){throw new Error("Not implemented")},jb.prototype.validate=function(){throw new Error("Not implemented")},jb.prototype._fixedNafMul=function(t,e){Sb(t.precomputed);var n=t._getDoubles(),r=Tb(e,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];Sb(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},jb.prototype._wnafMulAdd=function(t,e,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var y=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(y[1]=e[f].add(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].add(e[p].neg())):(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=Lb(n[f],n[p]);for(h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h),a=0;a=0;o--){for(var A=0;o>=0;){var I=!0;for(a=0;a=0&&A++,b=b.dblp(A),o<0)break;for(a=0;a0?s=c[a][N-1>>1]:N<0&&(s=c[a][-N-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},Db.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=e,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Pb.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},Pb.prototype.pointFromX=function(t,e){(t=new Vg(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},Pb.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Pb.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Bb.prototype.isInfinity=function(){return this.inf},Bb.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},Bb.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Bb.prototype.getX=function(){return this.x.fromRed()},Bb.prototype.getY=function(){return this.y.fromRed()},Bb.prototype.mul=function(t){return t=new Vg(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Bb.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},Bb.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},Bb.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Bb.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},Bb.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},Ob(Rb,Cb.BasePoint),Pb.prototype.jpoint=function(t,e,n){return new Rb(this,t,e,n)},Rb.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},Rb.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},Rb.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},Rb.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),h=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(h,d,f)},Rb.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},Rb.prototype.inspect=function(){return this.isInfinity()?"":""},Rb.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var Ub=Ib((function(t,e){var n=e;n.base=Cb,n.short=_b,n.mont=null,n.edwards=null})),Qb=Ib((function(t,e){var n,r=e,i=kb.assert;function o(t){"short"===t.type?this.curve=new Ub.short(t):"edwards"===t.type?this.curve=new Ub.edwards(t):this.curve=new Ub.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new o(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:Ab.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:Ab.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:Ab.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:Ab.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:Ab.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Ab.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:Ab.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(t){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:Ab.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function Yb(t){if(!(this instanceof Yb))return new Yb(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=xb.toArray(t.entropy,t.entropyEnc||"hex"),n=xb.toArray(t.nonce,t.nonceEnc||"hex"),r=xb.toArray(t.pers,t.persEnc||"hex");Nb(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var Wb=Yb;Yb.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},Yb.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=xb.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var Gb=kb.assert;function qb(t,e){if(t instanceof qb)return t;this._importDER(t,e)||(Gb(t.r&&t.s,"Signature without r or s"),this.r=new Vg(t.r,16),this.s=new Vg(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var Zb=qb;function Jb(){this.place=0}function Xb(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function Kb(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}qb.prototype._importDER=function(t,e){t=kb.toArray(t,e);var n=new Jb;if(48!==t[n.place++])return!1;var r=Xb(t,n);if(!1===r)return!1;if(r+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var i=Xb(t,n);if(!1===i)return!1;var o=t.slice(n.place,i+n.place);if(n.place+=i,2!==t[n.place++])return!1;var a=Xb(t,n);if(!1===a)return!1;if(t.length!==a+n.place)return!1;var s=t.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Vg(o),this.s=new Vg(s),this.recoveryParam=null,!0},qb.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=Kb(e),n=Kb(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];$b(r,e.length),(r=r.concat(e)).push(2),$b(r,n.length);var i=r.concat(n),o=[48];return $b(o,i.length),o=o.concat(i),kb.encode(o,t)};var tM=function(){throw new Error("unsupported")},eM=kb.assert;function nM(t){if(!(this instanceof nM))return new nM(t);"string"==typeof t&&(eM(Object.prototype.hasOwnProperty.call(Qb,t),"Unknown curve "+t),t=Qb[t]),t instanceof Qb.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var rM=nM;nM.prototype.keyPair=function(t){return new Hb(this,t)},nM.prototype.keyFromPrivate=function(t,e){return Hb.fromPrivate(this,t,e)},nM.prototype.keyFromPublic=function(t,e){return Hb.fromPublic(this,t,e)},nM.prototype.genKeyPair=function(t){t||(t={});for(var e=new Wb({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||tM(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new Vg(2));;){var i=new Vg(e.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},nM.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},nM.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new Vg(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new Wb({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new Vg(1)),c=0;;c++){var l=r.k?r.k(c):new Vg(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=l.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),y^=1),new Zb({r:f,s:p,recoveryParam:y})}}}}}},nM.prototype.verify=function(t,e,n,r){t=this._truncateToN(new Vg(t,16)),n=this.keyFromPublic(n,r);var i=(e=new Zb(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},nM.prototype.recoverPubKey=function(t,e,n,r){eM((3&n)===n,"The recovery param is more than two bits"),e=new Zb(e,r);var i=this.n,o=new Vg(t),a=e.r,s=e.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=e.r.invm(i),h=i.sub(o).mul(l).umod(i),d=s.mul(l).umod(i);return this.g.mulAdd(h,a,d)},nM.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new Zb(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var iM=Ib((function(t,e){var n=e;n.version="6.5.4",n.utils=kb,n.rand=function(){throw new Error("unsupported")},n.curve=Ub,n.curves=Qb,n.ec=rM,n.eddsa=null})).ec;const oM=new Mp("signing-key/5.7.0");let aM=null;function sM(){return aM||(aM=new iM("secp256k1")),aM}class uM{constructor(t){ly(this,"curve","secp256k1"),ly(this,"privateKey",Dp(t)),32!==Op(this.privateKey)&&oM.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");const e=sM().keyFromPrivate(Tp(this.privateKey));ly(this,"publicKey","0x"+e.getPublic(!1,"hex")),ly(this,"compressedPublicKey","0x"+e.getPublic(!0,"hex")),ly(this,"_isSigningKey",!0)}_addPoint(t){const e=sM().keyFromPublic(Tp(this.publicKey)),n=sM().keyFromPublic(Tp(t));return"0x"+e.pub.add(n.pub).encodeCompressed("hex")}signDigest(t){const e=sM().keyFromPrivate(Tp(this.privateKey)),n=Tp(t);32!==n.length&&oM.throwArgumentError("bad digest length","digest",t);const r=e.sign(n,{canonical:!0});return Rp({recoveryParam:r.recoveryParam,r:Bp("0x"+r.r.toString(16),32),s:Bp("0x"+r.s.toString(16),32)})}computeSharedSecret(t){const e=sM().keyFromPrivate(Tp(this.privateKey)),n=sM().keyFromPublic(Tp(cM(t)));return Bp("0x"+e.derive(n.getPublic()).toString(16),32)}static isSigningKey(t){return!(!t||!t._isSigningKey)}}function cM(t,e){const n=Tp(t);if(32===n.length){const t=new uM(n);return e?"0x"+sM().keyFromPrivate(n).getPublic(!0,"hex"):t.publicKey}return 33===n.length?e?Dp(n):"0x"+sM().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+sM().keyFromPublic(n).getPublic(!0,"hex"):Dp(n):oM.throwArgumentError("invalid public or private key","key","[REDACTED]")}const lM=new Mp("transactions/5.7.0");var hM;function dM(t){return"0x"===t?null:am(t)}function fM(t){return"0x"===t?bm:Fp.from(t)}function pM(t,e){return function(t){return am(zp(Gy(zp(cM(t),1)),12))}(function(t,e){const n=Rp(e),r={r:Tp(n.r),s:Tp(n.s)};return"0x"+sM().recoverPubKey(Tp(t),r,n.recoveryParam).encode("hex",!1)}(Tp(t),e))}function yM(t,e){const n=Sp(Fp.from(t).toHexString());return n.length>32&&lM.throwArgumentError("invalid length for "+e,"transaction:"+e,t),n}function mM(t,e){return{address:am(t),storageKeys:(e||[]).map(((e,n)=>(32!==Op(e)&&lM.throwArgumentError("invalid access list storageKey",`accessList[${t}:${n}]`,e),e.toLowerCase())))}}function gM(t){if(Array.isArray(t))return t.map(((t,e)=>Array.isArray(t)?(t.length>2&&lM.throwArgumentError("access list expected to be [ address, storageKeys[] ]",`value[${e}]`,t),mM(t[0],t[1])):mM(t.address,t.storageKeys)));const e=Object.keys(t).map((e=>{const n=t[e].reduce(((t,e)=>(t[e]=!0,t)),{});return mM(e,Object.keys(n).sort())}));return e.sort(((t,e)=>t.address.localeCompare(e.address))),e}function vM(t){return gM(t).map((t=>[t.address,t.storageKeys]))}function wM(t,e){if(null!=t.gasPrice){const e=Fp.from(t.gasPrice),n=Fp.from(t.maxFeePerGas||0);e.eq(n)||lM.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:e,maxFeePerGas:n})}const n=[yM(t.chainId||0,"chainId"),yM(t.nonce||0,"nonce"),yM(t.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),yM(t.maxFeePerGas||0,"maxFeePerGas"),yM(t.gasLimit||0,"gasLimit"),null!=t.to?am(t.to):"0x",yM(t.value||0,"value"),t.data||"0x",vM(t.accessList||[])];if(e){const t=Rp(e);n.push(yM(t.recoveryParam,"recoveryParam")),n.push(Sp(t.r)),n.push(Sp(t.s))}return Pp(["0x02",Ky(n)])}function bM(t,e){const n=[yM(t.chainId||0,"chainId"),yM(t.nonce||0,"nonce"),yM(t.gasPrice||0,"gasPrice"),yM(t.gasLimit||0,"gasLimit"),null!=t.to?am(t.to):"0x",yM(t.value||0,"value"),t.data||"0x",vM(t.accessList||[])];if(e){const t=Rp(e);n.push(yM(t.recoveryParam,"recoveryParam")),n.push(Sp(t.r)),n.push(Sp(t.s))}return Pp(["0x01",Ky(n)])}function MM(t,e,n){try{const n=fM(e[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");t.v=n}catch(t){lM.throwArgumentError("invalid v for transaction type: 1","v",e[0])}t.r=Bp(e[1],32),t.s=Bp(e[2],32);try{const e=Gy(n(t));t.from=pM(e,{r:t.r,s:t.s,recoveryParam:t.v})}catch(t){}}function AM(t){const e=Tp(t);if(e[0]>127)return function(t){const e=em(t);9!==e.length&&6!==e.length&&lM.throwArgumentError("invalid raw transaction","rawTransaction",t);const n={nonce:fM(e[0]).toNumber(),gasPrice:fM(e[1]),gasLimit:fM(e[2]),to:dM(e[3]),value:fM(e[4]),data:e[5],chainId:0};if(6===e.length)return n;try{n.v=Fp.from(e[6]).toNumber()}catch(t){return n}if(n.r=Bp(e[7],32),n.s=Bp(e[8],32),Fp.from(n.r).isZero()&&Fp.from(n.s).isZero())n.chainId=n.v,n.v=0;else{n.chainId=Math.floor((n.v-35)/2),n.chainId<0&&(n.chainId=0);let r=n.v-27;const i=e.slice(0,6);0!==n.chainId&&(i.push(Dp(n.chainId)),i.push("0x"),i.push("0x"),r-=2*n.chainId+8);const o=Gy(Ky(i));try{n.from=pM(o,{r:Dp(n.r),s:Dp(n.s),recoveryParam:r})}catch(t){}n.hash=Gy(t)}return n.type=null,n}(e);switch(e[0]){case 1:return function(t){const e=em(t.slice(1));8!==e.length&&11!==e.length&&lM.throwArgumentError("invalid component count for transaction type: 1","payload",Dp(t));const n={type:1,chainId:fM(e[0]).toNumber(),nonce:fM(e[1]).toNumber(),gasPrice:fM(e[2]),gasLimit:fM(e[3]),to:dM(e[4]),value:fM(e[5]),data:e[6],accessList:gM(e[7])};return 8===e.length||(n.hash=Gy(t),MM(n,e.slice(8),bM)),n}(e);case 2:return function(t){const e=em(t.slice(1));9!==e.length&&12!==e.length&&lM.throwArgumentError("invalid component count for transaction type: 2","payload",Dp(t));const n=fM(e[2]),r=fM(e[3]),i={type:2,chainId:fM(e[0]).toNumber(),nonce:fM(e[1]).toNumber(),maxPriorityFeePerGas:n,maxFeePerGas:r,gasPrice:null,gasLimit:fM(e[4]),to:dM(e[5]),value:fM(e[6]),data:e[7],accessList:gM(e[8])};return 9===e.length||(i.hash=Gy(t),MM(i,e.slice(9),wM)),i}(e)}return lM.throwError(`unsupported transaction type: ${e[0]}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:e[0]})}!function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(hM||(hM={}));var IM=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const NM=new Mp("contracts/5.7.0");function EM(t,e){return IM(this,void 0,void 0,(function*(){const n=yield e;"string"!=typeof n&&NM.throwArgumentError("invalid address or ENS name","name",n);try{return am(n)}catch(t){}t||NM.throwError("a provider or signer is needed to resolve ENS names",Mp.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"});const r=yield t.resolveName(n);return null==r&&NM.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r}))}function xM(t,e,n){return IM(this,void 0,void 0,(function*(){return Array.isArray(n)?yield Promise.all(n.map(((n,r)=>xM(t,Array.isArray(e)?e[r]:e[n.name],n)))):"address"===n.type?yield EM(t,e):"tuple"===n.type?yield xM(t,e,n.components):"array"===n.baseType?Array.isArray(e)?yield Promise.all(e.map((e=>xM(t,e,n.arrayChildren)))):Promise.reject(NM.makeError("invalid value for array",Mp.errors.INVALID_ARGUMENT,{argument:"value",value:e})):e}))}function kM(t,e,n){return IM(this,void 0,void 0,(function*(){let r={};n.length===e.inputs.length+1&&"object"==typeof n[n.length-1]&&(r=fy(n.pop())),NM.checkArgumentCount(n.length,e.inputs.length,"passed to contract"),t.signer?r.from?r.from=dy({override:EM(t.signer,r.from),signer:t.signer.getAddress()}).then((t=>IM(this,void 0,void 0,(function*(){return am(t.signer)!==t.override&&NM.throwError("Contract with a Signer cannot override from",Mp.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.override})))):r.from=t.signer.getAddress():r.from&&(r.from=EM(t.provider,r.from));const i=yield dy({args:xM(t.signer||t.provider,n,e.inputs),address:t.resolvedAddress,overrides:dy(r)||{}}),o=t.interface.encodeFunctionData(e,i.args),a={data:o,to:i.address},s=i.overrides;if(null!=s.nonce&&(a.nonce=Fp.from(s.nonce).toNumber()),null!=s.gasLimit&&(a.gasLimit=Fp.from(s.gasLimit)),null!=s.gasPrice&&(a.gasPrice=Fp.from(s.gasPrice)),null!=s.maxFeePerGas&&(a.maxFeePerGas=Fp.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(a.maxPriorityFeePerGas=Fp.from(s.maxPriorityFeePerGas)),null!=s.from&&(a.from=s.from),null!=s.type&&(a.type=s.type),null!=s.accessList&&(a.accessList=gM(s.accessList)),null==a.gasLimit&&null!=e.gas){let t=21e3;const n=Tp(o);for(let e=0;enull!=r[t]));return u.length&&NM.throwError(`cannot override ${u.map((t=>JSON.stringify(t))).join(",")}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:u}),a}))}function TM(t,e,n){const r=t.signer||t.provider;return function(...i){return IM(this,void 0,void 0,(function*(){let o;if(i.length===e.inputs.length+1&&"object"==typeof i[i.length-1]){const t=fy(i.pop());null!=t.blockTag&&(o=yield t.blockTag),delete t.blockTag,i.push(t)}null!=t.deployTransaction&&(yield t._deployed(o));const a=yield kM(t,e,i),s=yield r.call(a,o);try{let r=t.interface.decodeFunctionResult(e,s);return n&&1===e.outputs.length&&(r=r[0]),r}catch(e){throw e.code===Mp.errors.CALL_EXCEPTION&&(e.address=t.address,e.args=i,e.transaction=a),e}}))}}function LM(t,e){return function(...n){return IM(this,void 0,void 0,(function*(){t.signer||NM.throwError("sending a transaction requires a signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null!=t.deployTransaction&&(yield t._deployed());const r=yield kM(t,e,n),i=yield t.signer.sendTransaction(r);return function(t,e){const n=e.wait.bind(e);e.wait=e=>n(e).then((e=>(e.events=e.logs.map((n=>{let r=gy(n),i=null;try{i=t.interface.parseLog(n)}catch(t){}return i&&(r.args=i.args,r.decode=(e,n)=>t.interface.decodeEventLog(i.eventFragment,e,n),r.event=i.name,r.eventSignature=i.signature),r.removeListener=()=>t.provider,r.getBlock=()=>t.provider.getBlock(e.blockHash),r.getTransaction=()=>t.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>Promise.resolve(e),r})),e)))}(t,i),i}))}}function SM(t,e,n){return e.constant?TM(t,e,n):LM(t,e)}function jM(t){return!t.address||null!=t.topics&&0!==t.topics.length?(t.address||"*")+"@"+(t.topics?t.topics.map((t=>Array.isArray(t)?t.join("|"):t)).join(":"):""):"*"}class CM{constructor(t,e){ly(this,"tag",t),ly(this,"filter",e),this._listeners=[]}addListener(t,e){this._listeners.push({listener:t,once:e})}removeListener(t){let e=!1;this._listeners=this._listeners.filter((n=>!(!e&&n.listener===t)||(e=!0,!1)))}removeAllListeners(){this._listeners=[]}listeners(){return this._listeners.map((t=>t.listener))}listenerCount(){return this._listeners.length}run(t){const e=this.listenerCount();return this._listeners=this._listeners.filter((e=>{const n=t.slice();return setTimeout((()=>{e.listener.apply(this,n)}),0),!e.once})),e}prepareEvent(t){}getEmit(t){return[t]}}class DM extends CM{constructor(){super("error",null)}}class OM extends CM{constructor(t,e,n,r){const i={address:t};let o=e.getEventTopic(n);r?(o!==r[0]&&NM.throwArgumentError("topic mismatch","topics",r),i.topics=r.slice()):i.topics=[o],super(jM(i),i),ly(this,"address",t),ly(this,"interface",e),ly(this,"fragment",n)}prepareEvent(t){super.prepareEvent(t),t.event=this.fragment.name,t.eventSignature=this.fragment.format(),t.decode=(t,e)=>this.interface.decodeEventLog(this.fragment,t,e);try{t.args=this.interface.decodeEventLog(this.fragment,t.data,t.topics)}catch(e){t.args=null,t.decodeError=e}}getEmit(t){const e=function(t){const e=[],n=function(t,r){if(Array.isArray(r))for(let i in r){const o=t.slice();o.push(i);try{n(o,r[i])}catch(t){e.push({path:o,error:t})}}};return n([],t),e}(t.args);if(e.length)throw e[0].error;const n=(t.args||[]).slice();return n.push(t),n}}class zM extends CM{constructor(t,e){super("*",{address:t}),ly(this,"address",t),ly(this,"interface",e)}prepareEvent(t){super.prepareEvent(t);try{const e=this.interface.parseLog(t);t.event=e.name,t.eventSignature=e.signature,t.decode=(t,n)=>this.interface.decodeEventLog(e.eventFragment,t,n),t.args=e.args}catch(t){}}}class PM extends class{constructor(t,e,n){ly(this,"interface",hy(new.target,"getInterface")(e)),null==n?(ly(this,"provider",null),ly(this,"signer",null)):Wg.isSigner(n)?(ly(this,"provider",n.provider||null),ly(this,"signer",n)):Bg.isProvider(n)?(ly(this,"provider",n),ly(this,"signer",null)):NM.throwArgumentError("invalid signer or provider","signerOrProvider",n),ly(this,"callStatic",{}),ly(this,"estimateGas",{}),ly(this,"functions",{}),ly(this,"populateTransaction",{}),ly(this,"filters",{});{const t={};Object.keys(this.interface.events).forEach((e=>{const n=this.interface.events[e];ly(this.filters,e,((...t)=>({address:this.address,topics:this.interface.encodeFilterTopics(n,t)}))),t[n.name]||(t[n.name]=[]),t[n.name].push(e)})),Object.keys(t).forEach((e=>{const n=t[e];1===n.length?ly(this.filters,e,this.filters[n[0]]):NM.warn(`Duplicate definition of ${e} (${n.join(", ")})`)}))}if(ly(this,"_runningEvents",{}),ly(this,"_wrappedEmits",{}),null==t&&NM.throwArgumentError("invalid contract address or ENS name","addressOrName",t),ly(this,"address",t),this.provider)ly(this,"resolvedAddress",EM(this.provider,t));else try{ly(this,"resolvedAddress",Promise.resolve(am(t)))}catch(t){NM.throwError("provider is required to use ENS name as contract address",Mp.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}this.resolvedAddress.catch((t=>{}));const r={},i={};Object.keys(this.interface.functions).forEach((t=>{const e=this.interface.functions[t];if(i[t])NM.warn(`Duplicate ABI entry for ${JSON.stringify(t)}`);else{i[t]=!0;{const n=e.name;r[`%${n}`]||(r[`%${n}`]=[]),r[`%${n}`].push(t)}null==this[t]&&ly(this,t,SM(this,e,!0)),null==this.functions[t]&&ly(this.functions,t,SM(this,e,!1)),null==this.callStatic[t]&&ly(this.callStatic,t,TM(this,e,!0)),null==this.populateTransaction[t]&&ly(this.populateTransaction,t,function(t,e){return function(...n){return kM(t,e,n)}}(this,e)),null==this.estimateGas[t]&&ly(this.estimateGas,t,function(t,e){const n=t.signer||t.provider;return function(...r){return IM(this,void 0,void 0,(function*(){n||NM.throwError("estimate require a provider or signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"});const i=yield kM(t,e,r);return yield n.estimateGas(i)}))}}(this,e))}})),Object.keys(r).forEach((t=>{const e=r[t];if(e.length>1)return;t=t.substring(1);const n=e[0];try{null==this[t]&&ly(this,t,this[n])}catch(t){}null==this.functions[t]&&ly(this.functions,t,this.functions[n]),null==this.callStatic[t]&&ly(this.callStatic,t,this.callStatic[n]),null==this.populateTransaction[t]&&ly(this.populateTransaction,t,this.populateTransaction[n]),null==this.estimateGas[t]&&ly(this.estimateGas,t,this.estimateGas[n])}))}static getContractAddress(t){return sm(t)}static getInterface(t){return Og.isInterface(t)?t:new Og(t)}deployed(){return this._deployed()}_deployed(t){return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((()=>this)):this._deployedPromise=this.provider.getCode(this.address,t).then((t=>("0x"===t&&NM.throwError("contract not deployed",Mp.errors.UNSUPPORTED_OPERATION,{contractAddress:this.address,operation:"getDeployed"}),this)))),this._deployedPromise}fallback(t){this.signer||NM.throwError("sending a transactions require a signer",Mp.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});const e=fy(t||{});return["from","to"].forEach((function(t){null!=e[t]&&NM.throwError("cannot override "+t,Mp.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.to=this.resolvedAddress,this.deployed().then((()=>this.signer.sendTransaction(e)))}connect(t){"string"==typeof t&&(t=new Fg(t,this.provider));const e=new this.constructor(this.address,this.interface,t);return this.deployTransaction&&ly(e,"deployTransaction",this.deployTransaction),e}attach(t){return new this.constructor(t,this.interface,this.signer||this.provider)}static isIndexed(t){return jg.isIndexed(t)}_normalizeRunningEvent(t){return this._runningEvents[t.tag]?this._runningEvents[t.tag]:t}_getRunningEvent(t){if("string"==typeof t){if("error"===t)return this._normalizeRunningEvent(new DM);if("event"===t)return this._normalizeRunningEvent(new CM("event",null));if("*"===t)return this._normalizeRunningEvent(new zM(this.address,this.interface));const e=this.interface.getEvent(t);return this._normalizeRunningEvent(new OM(this.address,this.interface,e))}if(t.topics&&t.topics.length>0){try{const e=t.topics[0];if("string"!=typeof e)throw new Error("invalid topic");const n=this.interface.getEvent(e);return this._normalizeRunningEvent(new OM(this.address,this.interface,n,t.topics))}catch(t){}const e={address:this.address,topics:t.topics};return this._normalizeRunningEvent(new CM(jM(e),e))}return this._normalizeRunningEvent(new zM(this.address,this.interface))}_checkRunningEvents(t){if(0===t.listenerCount()){delete this._runningEvents[t.tag];const e=this._wrappedEmits[t.tag];e&&t.filter&&(this.provider.off(t.filter,e),delete this._wrappedEmits[t.tag])}}_wrapEvent(t,e,n){const r=gy(e);return r.removeListener=()=>{n&&(t.removeListener(n),this._checkRunningEvents(t))},r.getBlock=()=>this.provider.getBlock(e.blockHash),r.getTransaction=()=>this.provider.getTransaction(e.transactionHash),r.getTransactionReceipt=()=>this.provider.getTransactionReceipt(e.transactionHash),t.prepareEvent(r),r}_addEventListener(t,e,n){if(this.provider||NM.throwError("events require a provider or a signer with a provider",Mp.errors.UNSUPPORTED_OPERATION,{operation:"once"}),t.addListener(e,n),this._runningEvents[t.tag]=t,!this._wrappedEmits[t.tag]){const n=n=>{let r=this._wrapEvent(t,n,e);if(null==r.decodeError)try{const e=t.getEmit(r);this.emit(t.filter,...e)}catch(t){r.decodeError=t.error}null!=t.filter&&this.emit("event",r),null!=r.decodeError&&this.emit("error",r.decodeError,r)};this._wrappedEmits[t.tag]=n,null!=t.filter&&this.provider.on(t.filter,n)}}queryFilter(t,e,n){const r=this._getRunningEvent(t),i=fy(r.filter);return"string"==typeof e&&Cp(e,32)?(null!=n&&NM.throwArgumentError("cannot specify toBlock with blockhash","toBlock",n),i.blockHash=e):(i.fromBlock=null!=e?e:0,i.toBlock=null!=n?n:"latest"),this.provider.getLogs(i).then((t=>t.map((t=>this._wrapEvent(r,t,null)))))}on(t,e){return this._addEventListener(this._getRunningEvent(t),e,!1),this}once(t,e){return this._addEventListener(this._getRunningEvent(t),e,!0),this}emit(t,...e){if(!this.provider)return!1;const n=this._getRunningEvent(t),r=n.run(e)>0;return this._checkRunningEvents(n),r}listenerCount(t){return this.provider?null==t?Object.keys(this._runningEvents).reduce(((t,e)=>t+this._runningEvents[e].listenerCount()),0):this._getRunningEvent(t).listenerCount():0}listeners(t){if(!this.provider)return[];if(null==t){const t=[];for(let e in this._runningEvents)this._runningEvents[e].listeners().forEach((e=>{t.push(e)}));return t}return this._getRunningEvent(t).listeners()}removeAllListeners(t){if(!this.provider)return this;if(null==t){for(const t in this._runningEvents){const e=this._runningEvents[t];e.removeAllListeners(),this._checkRunningEvents(e)}return this}const e=this._getRunningEvent(t);return e.removeAllListeners(),this._checkRunningEvents(e),this}off(t,e){if(!this.provider)return this;const n=this._getRunningEvent(t);return n.removeListener(e),this._checkRunningEvents(n),this}removeListener(t,e){return this.off(t,e)}}{}class _M{constructor(t){ly(this,"alphabet",t),ly(this,"base",t.length),ly(this,"_alphabetMap",{}),ly(this,"_leader",t.charAt(0));for(let e=0;e0;)n.push(r%this.base),r=r/this.base|0}let r="";for(let t=0;0===e[t]&&t=0;--t)r+=this.alphabet[n[t]];return r}decode(t){if("string"!=typeof t)throw new TypeError("Expected String");let e=[];if(0===t.length)return new Uint8Array(e);e.push(0);for(let n=0;n>=8;for(;i>0;)e.push(255&i),i>>=8}for(let n=0;t[n]===this._leader&&n{o[e.toLowerCase()]=t})):r.headers.keys().forEach((t=>{o[t.toLowerCase()]=r.headers.get(t)})),{headers:o,statusCode:r.status,statusMessage:r.statusText,body:Tp(new Uint8Array(i))}}))}var ZM=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const JM=new Mp("web/5.7.1");function XM(t){return new Promise((e=>{setTimeout(e,t)}))}function KM(t,e){if(null==t)return null;if("string"==typeof t)return t;if(Ep(t)){if(e&&("text"===e.split("/")[0]||"application/json"===e.split(";")[0].trim()))try{return jm(t)}catch(t){}return Dp(t)}return t}function $M(t,e,n){let r=null;if(null!=e){r=Sm(e);const n="string"==typeof t?{url:t}:fy(t);if(n.headers){0!==Object.keys(n.headers).filter((t=>"content-type"===t.toLowerCase())).length||(n.headers=fy(n.headers),n.headers["content-type"]="application/json")}else n.headers={"content-type":"application/json"};t=n}return function(t,e,n){const r="object"==typeof t&&null!=t.throttleLimit?t.throttleLimit:12;JM.assertArgument(r>0&&r%1==0,"invalid connection throttle limit","connection.throttleLimit",r);const i="object"==typeof t?t.throttleCallback:null,o="object"==typeof t&&"number"==typeof t.throttleSlotInterval?t.throttleSlotInterval:100;JM.assertArgument(o>0&&o%1==0,"invalid connection throttle slot interval","connection.throttleSlotInterval",o);const a="object"==typeof t&&!!t.errorPassThrough,s={};let u=null;const c={method:"GET"};let l=!1,h=12e4;if("string"==typeof t)u=t;else if("object"==typeof t){if(null!=t&&null!=t.url||JM.throwArgumentError("missing URL","connection.url",t),u=t.url,"number"==typeof t.timeout&&t.timeout>0&&(h=t.timeout),t.headers)for(const e in t.headers)s[e.toLowerCase()]={key:e,value:String(t.headers[e])},["if-none-match","if-modified-since"].indexOf(e.toLowerCase())>=0&&(l=!0);if(c.allowGzip=!!t.allowGzip,null!=t.user&&null!=t.password){"https:"!==u.substring(0,6)&&!0!==t.allowInsecureAuthentication&&JM.throwError("basic authentication requires a secure https url",Mp.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:t.user,password:"[REDACTED]"});const e=t.user+":"+t.password;s.authorization={key:"Authorization",value:"Basic "+Um(Sm(e))}}null!=t.skipFetchSetup&&(c.skipFetchSetup=!!t.skipFetchSetup),null!=t.fetchOptions&&(c.fetchOptions=fy(t.fetchOptions))}const d=new RegExp("^data:([^;:]*)?(;base64)?,(.*)$","i"),f=u?u.match(d):null;if(f)try{const t={statusCode:200,statusMessage:"OK",headers:{"content-type":f[1]||"text/plain"},body:f[2]?Rm(f[3]):(p=f[3],Sm(p.replace(/%([0-9a-f][0-9a-f])/gi,((t,e)=>String.fromCharCode(parseInt(e,16))))))};let e=t.body;return n&&(e=n(t.body,t)),Promise.resolve(e)}catch(t){JM.throwError("processing response error",Mp.errors.SERVER_ERROR,{body:KM(f[1],f[2]),error:t,requestBody:null,requestMethod:"GET",url:u})}var p;e&&(c.method="POST",c.body=e,null==s["content-type"]&&(s["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==s["content-length"]&&(s["content-length"]={key:"Content-Length",value:String(e.length)}));const y={};Object.keys(s).forEach((t=>{const e=s[t];y[e.key]=e.value})),c.headers=y;const m=function(){let t=null;return{promise:new Promise((function(e,n){h&&(t=setTimeout((()=>{null!=t&&(t=null,n(JM.makeError("timeout",Mp.errors.TIMEOUT,{requestBody:KM(c.body,y["content-type"]),requestMethod:c.method,timeout:h,url:u})))}),h))})),cancel:function(){null!=t&&(clearTimeout(t),t=null)}}}(),g=function(){return ZM(this,void 0,void 0,(function*(){for(let t=0;t=300)&&(m.cancel(),JM.throwError("bad response",Mp.errors.SERVER_ERROR,{status:e.statusCode,headers:e.headers,body:KM(s,e.headers?e.headers["content-type"]:null),requestBody:KM(c.body,y["content-type"]),requestMethod:c.method,url:u})),n)try{const t=yield n(s,e);return m.cancel(),t}catch(n){if(n.throttleRetry&&t{let r=null;if(null!=t)try{r=JSON.parse(jm(t))}catch(e){JM.throwError("invalid JSON",Mp.errors.SERVER_ERROR,{body:t,error:e})}return n&&(r=n(r,e)),r}))}function tA(t,e){return e||(e={}),null==(e=fy(e)).floor&&(e.floor=0),null==e.ceiling&&(e.ceiling=1e4),null==e.interval&&(e.interval=250),new Promise((function(n,r){let i=null,o=!1;const a=()=>!o&&(o=!0,i&&clearTimeout(i),!0);e.timeout&&(i=setTimeout((()=>{a()&&r(new Error("timeout"))}),e.timeout));const s=e.retryLimit;let u=0;!function i(){return t().then((function(t){if(void 0!==t)a()&&n(t);else if(e.oncePoll)e.oncePoll.once("poll",i);else if(e.onceBlock)e.onceBlock.once("block",i);else if(!o){if(u++,u>s)return void(a()&&r(new Error("retry limit reached")));let t=e.interval*parseInt(String(Math.random()*Math.pow(2,u)));te.ceiling&&(t=e.ceiling),setTimeout(i,t)}return null}),(function(t){a()&&r(t)}))}()}))}for(var eA="qpzry9x8gf2tvdw0s3jn54khce6mua7l",nA={},rA=0;rA>25;return(33554431&t)<<5^996825010&-(e>>0&1)^642813549&-(e>>1&1)^513874426&-(e>>2&1)^1027748829&-(e>>3&1)^705979059&-(e>>4&1)}function aA(t){for(var e=1,n=0;n126)return"Invalid prefix ("+t+")";e=oA(e)^r>>5}for(e=oA(e),n=0;ne)return"Exceeds length limit";var n=t.toLowerCase(),r=t.toUpperCase();if(t!==n&&t!==r)return"Mixed-case string "+t;var i=(t=n).lastIndexOf("1");if(-1===i)return"No separator character for "+t;if(0===i)return"Missing prefix for "+t;var o=t.slice(0,i),a=t.slice(i+1);if(a.length<6)return"Data too short";var s=aA(o);if("string"==typeof s)return s;for(var u=[],c=0;c=a.length||u.push(h)}return 1!==s?"Invalid checksum for "+t:{prefix:o,words:u}}function uA(t,e,n,r){for(var i=0,o=0,a=(1<=n;)o-=n,s.push(i>>o&a);if(r)o>0&&s.push(i<=e)return"Excess padding";if(i<n)throw new TypeError("Exceeds length limit");var r=aA(t=t.toLowerCase());if("string"==typeof r)throw new Error(r);for(var i=t+"1",o=0;o>5!=0)throw new Error("Non 5-bit word");r=oA(r)^a,i+=eA.charAt(a)}for(o=0;o<6;++o)r=oA(r);for(r^=1,o=0;o<6;++o){i+=eA.charAt(r>>5*(5-o)&31)}return i},toWordsUnsafe:function(t){var e=uA(t,8,5,!0);if(Array.isArray(e))return e},toWords:function(t){var e=uA(t,8,5,!0);if(Array.isArray(e))return e;throw new Error(e)},fromWordsUnsafe:function(t){var e=uA(t,5,8,!1);if(Array.isArray(e))return e},fromWords:function(t){var e=uA(t,5,8,!1);if(Array.isArray(e))return e;throw new Error(e)}};const lA="providers/5.7.2",hA=new Mp(lA);class dA{constructor(){this.formats=this.getDefaultFormats()}getDefaultFormats(){const t={},e=this.address.bind(this),n=this.bigNumber.bind(this),r=this.blockTag.bind(this),i=this.data.bind(this),o=this.hash.bind(this),a=this.hex.bind(this),s=this.number.bind(this),u=this.type.bind(this);return t.transaction={hash:o,type:u,accessList:dA.allowNull(this.accessList.bind(this),null),blockHash:dA.allowNull(o,null),blockNumber:dA.allowNull(s,null),transactionIndex:dA.allowNull(s,null),confirmations:dA.allowNull(s,null),from:e,gasPrice:dA.allowNull(n),maxPriorityFeePerGas:dA.allowNull(n),maxFeePerGas:dA.allowNull(n),gasLimit:n,to:dA.allowNull(e,null),value:n,nonce:s,data:i,r:dA.allowNull(this.uint256),s:dA.allowNull(this.uint256),v:dA.allowNull(s),creates:dA.allowNull(e,null),raw:dA.allowNull(i)},t.transactionRequest={from:dA.allowNull(e),nonce:dA.allowNull(s),gasLimit:dA.allowNull(n),gasPrice:dA.allowNull(n),maxPriorityFeePerGas:dA.allowNull(n),maxFeePerGas:dA.allowNull(n),to:dA.allowNull(e),value:dA.allowNull(n),data:dA.allowNull((t=>this.data(t,!0))),type:dA.allowNull(s),accessList:dA.allowNull(this.accessList.bind(this),null)},t.receiptLog={transactionIndex:s,blockNumber:s,transactionHash:o,address:e,topics:dA.arrayOf(o),data:i,logIndex:s,blockHash:o},t.receipt={to:dA.allowNull(this.address,null),from:dA.allowNull(this.address,null),contractAddress:dA.allowNull(e,null),transactionIndex:s,root:dA.allowNull(a),gasUsed:n,logsBloom:dA.allowNull(i),blockHash:o,transactionHash:o,logs:dA.arrayOf(this.receiptLog.bind(this)),blockNumber:s,confirmations:dA.allowNull(s,null),cumulativeGasUsed:n,effectiveGasPrice:dA.allowNull(n),status:dA.allowNull(s),type:u},t.block={hash:dA.allowNull(o),parentHash:o,number:s,timestamp:s,nonce:dA.allowNull(a),difficulty:this.difficulty.bind(this),gasLimit:n,gasUsed:n,miner:dA.allowNull(e),extraData:i,transactions:dA.allowNull(dA.arrayOf(o)),baseFeePerGas:dA.allowNull(n)},t.blockWithTransactions=fy(t.block),t.blockWithTransactions.transactions=dA.allowNull(dA.arrayOf(this.transactionResponse.bind(this))),t.filter={fromBlock:dA.allowNull(r,void 0),toBlock:dA.allowNull(r,void 0),blockHash:dA.allowNull(o,void 0),address:dA.allowNull(e,void 0),topics:dA.allowNull(this.topics.bind(this),void 0)},t.filterLog={blockNumber:dA.allowNull(s),blockHash:dA.allowNull(o),transactionIndex:s,removed:dA.allowNull(this.boolean.bind(this)),address:e,data:dA.allowFalsish(i,"0x"),topics:dA.arrayOf(o),transactionHash:o,logIndex:s},t}accessList(t){return gM(t||[])}number(t){return"0x"===t?0:Fp.from(t).toNumber()}type(t){return"0x"===t||null==t?0:Fp.from(t).toNumber()}bigNumber(t){return Fp.from(t)}boolean(t){if("boolean"==typeof t)return t;if("string"==typeof t){if("true"===(t=t.toLowerCase()))return!0;if("false"===t)return!1}throw new Error("invalid boolean - "+t)}hex(t,e){return"string"==typeof t&&(e||"0x"===t.substring(0,2)||(t="0x"+t),Cp(t))?t.toLowerCase():hA.throwArgumentError("invalid hash","value",t)}data(t,e){const n=this.hex(t,e);if(n.length%2!=0)throw new Error("invalid data; odd-length - "+t);return n}address(t){return am(t)}callAddress(t){if(!Cp(t,32))return null;const e=am(zp(t,12));return"0x0000000000000000000000000000000000000000"===e?null:e}contractAddress(t){return sm(t)}blockTag(t){if(null==t)return"latest";if("earliest"===t)return"0x0";switch(t){case"earliest":return"0x0";case"latest":case"pending":case"safe":case"finalized":return t}if("number"==typeof t||Cp(t))return _p(t);throw new Error("invalid blockTag")}hash(t,e){const n=this.hex(t,e);return 32!==Op(n)?hA.throwArgumentError("invalid hash","value",t):n}difficulty(t){if(null==t)return null;const e=Fp.from(t);try{return e.toNumber()}catch(t){}return null}uint256(t){if(!Cp(t))throw new Error("invalid uint256");return Bp(t,32)}_block(t,e){null!=t.author&&null==t.miner&&(t.miner=t.author);const n=null!=t._difficulty?t._difficulty:t.difficulty,r=dA.check(e,t);return r._difficulty=null==n?null:Fp.from(n),r}block(t){return this._block(t,this.formats.block)}blockWithTransactions(t){return this._block(t,this.formats.blockWithTransactions)}transactionRequest(t){return dA.check(this.formats.transactionRequest,t)}transactionResponse(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&Fp.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);const e=dA.check(this.formats.transaction,t);if(null!=t.chainId){let n=t.chainId;Cp(n)&&(n=Fp.from(n).toNumber()),e.chainId=n}else{let n=t.networkId;null==n&&null==e.v&&(n=t.chainId),Cp(n)&&(n=Fp.from(n).toNumber()),"number"!=typeof n&&null!=e.v&&(n=(e.v-35)/2,n<0&&(n=0),n=parseInt(n)),"number"!=typeof n&&(n=0),e.chainId=n}return e.blockHash&&"x"===e.blockHash.replace(/0/g,"")&&(e.blockHash=null),e}transaction(t){return AM(t)}receiptLog(t){return dA.check(this.formats.receiptLog,t)}receipt(t){const e=dA.check(this.formats.receipt,t);if(null!=e.root)if(e.root.length<=4){const t=Fp.from(e.root).toNumber();0===t||1===t?(null!=e.status&&e.status!==t&&hA.throwArgumentError("alt-root-status/status mismatch","value",{root:e.root,status:e.status}),e.status=t,delete e.root):hA.throwArgumentError("invalid alt-root-status","value.root",e.root)}else 66!==e.root.length&&hA.throwArgumentError("invalid root hash","value.root",e.root);return null!=e.status&&(e.byzantium=!0),e}topics(t){return Array.isArray(t)?t.map((t=>this.topics(t))):null!=t?this.hash(t,!0):null}filter(t){return dA.check(this.formats.filter,t)}filterLog(t){return dA.check(this.formats.filterLog,t)}static check(t,e){const n={};for(const r in t)try{const i=t[r](e[r]);void 0!==i&&(n[r]=i)}catch(t){throw t.checkKey=r,t.checkValue=e[r],t}return n}static allowNull(t,e){return function(n){return null==n?e:t(n)}}static allowFalsish(t,e){return function(n){return n?t(n):e}}static arrayOf(t){return function(e){if(!Array.isArray(e))throw new Error("not an array");const n=[];return e.forEach((function(e){n.push(t(e))})),n}}}var fA=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const pA=new Mp(lA);function yA(t){return null==t?"null":(32!==Op(t)&&pA.throwArgumentError("invalid topic","topic",t),t.toLowerCase())}function mA(t){for(t=t.slice();t.length>0&&null==t[t.length-1];)t.pop();return t.map((t=>{if(Array.isArray(t)){const e={};t.forEach((t=>{e[yA(t)]=!0}));const n=Object.keys(e);return n.sort(),n.join("|")}return yA(t)})).join("&")}function gA(t){if("string"==typeof t){if(32===Op(t=t.toLowerCase()))return"tx:"+t;if(-1===t.indexOf(":"))return t}else{if(Array.isArray(t))return"filter:*:"+mA(t);if(_g.isForkEvent(t))throw pA.warn("not implemented"),new Error("not implemented");if(t&&"object"==typeof t)return"filter:"+(t.address||"*")+":"+mA(t.topics||[])}throw new Error("invalid event - "+t)}function vA(){return(new Date).getTime()}function wA(t){return new Promise((e=>{setTimeout(e,t)}))}const bA=["block","network","pending","poll"];class MA{constructor(t,e,n){ly(this,"tag",t),ly(this,"listener",e),ly(this,"once",n),this._lastBlockNumber=-2,this._inflight=!1}get event(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}get type(){return this.tag.split(":")[0]}get hash(){const t=this.tag.split(":");return"tx"!==t[0]?null:t[1]}get filter(){const t=this.tag.split(":");if("filter"!==t[0])return null;const e=t[1],n=""===(r=t[2])?[]:r.split(/&/g).map((t=>{if(""===t)return[];const e=t.split("|").map((t=>"null"===t?null:t));return 1===e.length?e[0]:e}));var r;const i={};return n.length>0&&(i.topics=n),e&&"*"!==e&&(i.address=e),i}pollable(){return this.tag.indexOf(":")>=0||bA.indexOf(this.tag)>=0}}const AA={0:{symbol:"btc",p2pkh:0,p2sh:5,prefix:"bc"},2:{symbol:"ltc",p2pkh:48,p2sh:50,prefix:"ltc"},3:{symbol:"doge",p2pkh:30,p2sh:22},60:{symbol:"eth",ilk:"eth"},61:{symbol:"etc",ilk:"eth"},700:{symbol:"xdai",ilk:"eth"}};function IA(t){return Bp(Fp.from(t).toHexString(),32)}function NA(t){return BM.encode(Lp([t,zp(RM(RM(t)),0,4)]))}const EA=new RegExp("^(ipfs)://(.*)$","i"),xA=[new RegExp("^(https)://(.*)$","i"),new RegExp("^(data):(.*)$","i"),EA,new RegExp("^eip155:[0-9]+/(erc[0-9]+):(.*)$","i")];function kA(t,e){try{return jm(TA(t,e))}catch(t){}return null}function TA(t,e){if("0x"===t)return null;const n=Fp.from(zp(t,e,e+32)).toNumber(),r=Fp.from(zp(t,n,n+32)).toNumber();return zp(t,n+32,n+32+r)}function LA(t){return t.match(/^ipfs:\/\/ipfs\//i)?t=t.substring(12):t.match(/^ipfs:\/\//i)?t=t.substring(7):pA.throwArgumentError("unsupported IPFS format","link",t),`https://gateway.ipfs.io/ipfs/${t}`}function SA(t){const e=Tp(t);if(e.length>32)throw new Error("internal; should not happen");const n=new Uint8Array(32);return n.set(e,32-e.length),n}function jA(t){if(t.length%32==0)return t;const e=new Uint8Array(32*Math.ceil(t.length/32));return e.set(t),e}function CA(t){const e=[];let n=0;for(let r=0;rFp.from(t).eq(1))).catch((t=>{if(t.code===Mp.errors.CALL_EXCEPTION)return!1;throw this._supportsEip2544=null,t}))),this._supportsEip2544}_fetch(t,e){return fA(this,void 0,void 0,(function*(){const n={to:this.address,ccipReadEnabled:!0,data:Pp([t,lg(this.name),e||"0x"])};let r=!1;var i;(yield this.supportsWildcard())&&(r=!0,n.data=Pp(["0x9061b923",CA([(i=this.name,Dp(Lp(cg(i).map((t=>{if(t.length>63)throw new Error("invalid DNS encoded entry; length exceeds 63 bytes");const e=new Uint8Array(t.length+1);return e.set(t,1),e[0]=e.length-1,e}))))+"00"),n.data])]));try{let t=yield this.provider.call(n);return Tp(t).length%32==4&&pA.throwError("resolver threw error",Mp.errors.CALL_EXCEPTION,{transaction:n,data:t}),r&&(t=TA(t,0)),t}catch(t){if(t.code===Mp.errors.CALL_EXCEPTION)return null;throw t}}))}_fetchBytes(t,e){return fA(this,void 0,void 0,(function*(){const n=yield this._fetch(t,e);return null!=n?TA(n,0):null}))}_getAddress(t,e){const n=AA[String(t)];if(null==n&&pA.throwError(`unsupported coin type: ${t}`,Mp.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`}),"eth"===n.ilk)return this.provider.formatter.address(e);const r=Tp(e);if(null!=n.p2pkh){const t=e.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return NA(Lp([[n.p2pkh],"0x"+t[2]]))}}if(null!=n.p2sh){const t=e.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(t){const e=parseInt(t[1],16);if(t[2].length===2*e&&e>=1&&e<=75)return NA(Lp([[n.p2sh],"0x"+t[2]]))}}if(null!=n.prefix){const t=r[1];let e=r[0];if(0===e?20!==t&&32!==t&&(e=-1):e=-1,e>=0&&r.length===2+t&&t>=1&&t<=75){const t=cA.toWords(r.slice(2));return t.unshift(e),cA.encode(n.prefix,t)}}return null}getAddress(t){return fA(this,void 0,void 0,(function*(){if(null==t&&(t=60),60===t)try{const t=yield this._fetch("0x3b3b57de");return"0x"===t||"0x0000000000000000000000000000000000000000000000000000000000000000"===t?null:this.provider.formatter.callAddress(t)}catch(t){if(t.code===Mp.errors.CALL_EXCEPTION)return null;throw t}const e=yield this._fetchBytes("0xf1cb7e06",IA(t));if(null==e||"0x"===e)return null;const n=this._getAddress(t,e);return null==n&&pA.throwError("invalid or unsupported coin data",Mp.errors.UNSUPPORTED_OPERATION,{operation:`getAddress(${t})`,coinType:t,data:e}),n}))}getAvatar(){return fA(this,void 0,void 0,(function*(){const t=[{type:"name",content:this.name}];try{const e=yield this.getText("avatar");if(null==e)return null;for(let n=0;nt[e]))}return pA.throwError("invalid or unsupported content hash data",Mp.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t})}))}getText(t){return fA(this,void 0,void 0,(function*(){let e=Sm(t);e=Lp([IA(64),IA(e.length),e]),e.length%32!=0&&(e=Lp([e,Bp("0x",32-t.length%32)]));const n=yield this._fetchBytes("0x59d1d43c",Dp(e));return null==n||"0x"===n?null:jm(n)}))}}let OA=null,zA=1;class PA extends Bg{constructor(t){if(super(),this._events=[],this._emitted={block:-2},this.disableCcipRead=!1,this.formatter=new.target.getFormatter(),ly(this,"anyNetwork","any"===t),this.anyNetwork&&(t=this.detectNetwork()),t instanceof Promise)this._networkPromise=t,t.catch((t=>{})),this._ready().catch((t=>{}));else{const e=hy(new.target,"getNetwork")(t);e?(ly(this,"_network",e),this.emit("network",e,null)):pA.throwArgumentError("invalid network","network",t)}this._maxInternalBlockNumber=-1024,this._lastBlockNumber=-2,this._maxFilterBlockRange=10,this._pollingInterval=4e3,this._fastQueryDate=0}_ready(){return fA(this,void 0,void 0,(function*(){if(null==this._network){let t=null;if(this._networkPromise)try{t=yield this._networkPromise}catch(t){}null==t&&(t=yield this.detectNetwork()),t||pA.throwError("no network detected",Mp.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:ly(this,"_network",t),this.emit("network",t,null))}return this._network}))}get ready(){return tA((()=>this._ready().then((t=>t),(t=>{if(t.code!==Mp.errors.NETWORK_ERROR||"noNetwork"!==t.event)throw t}))))}static getFormatter(){return null==OA&&(OA=new dA),OA}static getNetwork(t){return function(t){if(null==t)return null;if("number"==typeof t){for(const e in HM){const n=HM[e];if(n.chainId===t)return{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress||null,_defaultProvider:n._defaultProvider||null}}return{chainId:t,name:"unknown"}}if("string"==typeof t){const e=HM[t];return null==e?null:{name:e.name,chainId:e.chainId,ensAddress:e.ensAddress,_defaultProvider:e._defaultProvider||null}}const e=HM[t.name];if(!e)return"number"!=typeof t.chainId&&UM.throwArgumentError("invalid network chainId","network",t),t;0!==t.chainId&&t.chainId!==e.chainId&&UM.throwArgumentError("network chainId mismatch","network",t);let n=t._defaultProvider||null;var r;return null==n&&e._defaultProvider&&(n=(r=e._defaultProvider)&&"function"==typeof r.renetwork?e._defaultProvider.renetwork(t):e._defaultProvider),{name:t.name,chainId:e.chainId,ensAddress:t.ensAddress||e.ensAddress||null,_defaultProvider:n}}(null==t?"homestead":t)}ccipReadFetch(t,e,n){return fA(this,void 0,void 0,(function*(){if(this.disableCcipRead||0===n.length)return null;const r=t.to.toLowerCase(),i=e.toLowerCase(),o=[];for(let t=0;t=0?null:JSON.stringify({data:i,sender:r}),u=yield $M({url:a,errorPassThrough:!0},s,((t,e)=>(t.status=e.statusCode,t)));if(u.data)return u.data;const c=u.message||"unknown error";if(u.status>=400&&u.status<500)return pA.throwError(`response not found during CCIP fetch: ${c}`,Mp.errors.SERVER_ERROR,{url:e,errorMessage:c});o.push(c)}return pA.throwError(`error encountered during CCIP fetch: ${o.map((t=>JSON.stringify(t))).join(", ")}`,Mp.errors.SERVER_ERROR,{urls:n,errorMessages:o})}))}_getInternalBlockNumber(t){return fA(this,void 0,void 0,(function*(){if(yield this._ready(),t>0)for(;this._internalBlockNumber;){const e=this._internalBlockNumber;try{const n=yield e;if(vA()-n.respTime<=t)return n.blockNumber;break}catch(t){if(this._internalBlockNumber===e)break}}const e=vA(),n=dy({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((t=>null),(t=>t))}).then((({blockNumber:t,networkError:r})=>{if(r)throw this._internalBlockNumber===n&&(this._internalBlockNumber=null),r;const i=vA();return(t=Fp.from(t).toNumber()){this._internalBlockNumber===n&&(this._internalBlockNumber=null)})),(yield n).blockNumber}))}poll(){return fA(this,void 0,void 0,(function*(){const t=zA++,e=[];let n=null;try{n=yield this._getInternalBlockNumber(100+this.pollingInterval/2)}catch(t){return void this.emit("error",t)}if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)pA.warn(`network block skew detected; skipping block events (emitted=${this._emitted.block} blockNumber${n})`),this.emit("error",pA.makeError("network block skew detected",Mp.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(let t=this._emitted.block+1;t<=n;t++)this.emit("block",t);this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((t=>{if("block"===t)return;const e=this._emitted[t];"pending"!==e&&n-e>12&&delete this._emitted[t]}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((t=>{switch(t.type){case"tx":{const n=t.hash;let r=this.getTransactionReceipt(n).then((t=>t&&null!=t.blockNumber?(this._emitted["t:"+n]=t.blockNumber,this.emit(n,t),null):null)).catch((t=>{this.emit("error",t)}));e.push(r);break}case"filter":if(!t._inflight){t._inflight=!0,-2===t._lastBlockNumber&&(t._lastBlockNumber=n-1);const r=t.filter;r.fromBlock=t._lastBlockNumber+1,r.toBlock=n;const i=r.toBlock-this._maxFilterBlockRange;i>r.fromBlock&&(r.fromBlock=i),r.fromBlock<0&&(r.fromBlock=0);const o=this.getLogs(r).then((e=>{t._inflight=!1,0!==e.length&&e.forEach((e=>{e.blockNumber>t._lastBlockNumber&&(t._lastBlockNumber=e.blockNumber),this._emitted["b:"+e.blockHash]=e.blockNumber,this._emitted["t:"+e.transactionHash]=e.blockNumber,this.emit(r,e)}))})).catch((e=>{this.emit("error",e),t._inflight=!1}));e.push(o)}}})),this._lastBlockNumber=n,Promise.all(e).then((()=>{this.emit("didPoll",t)})).catch((t=>{this.emit("error",t)}))}else this.emit("didPoll",t)}))}resetEventsBlock(t){this._lastBlockNumber=t-1,this.polling&&this.poll()}get network(){return this._network}detectNetwork(){return fA(this,void 0,void 0,(function*(){return pA.throwError("provider does not support network detection",Mp.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"})}))}getNetwork(){return fA(this,void 0,void 0,(function*(){const t=yield this._ready(),e=yield this.detectNetwork();if(t.chainId!==e.chainId){if(this.anyNetwork)return this._network=e,this._lastBlockNumber=-2,this._fastBlockNumber=null,this._fastBlockNumberPromise=null,this._fastQueryDate=0,this._emitted.block=-2,this._maxInternalBlockNumber=-1024,this._internalBlockNumber=null,this.emit("network",e,t),yield wA(0),this._network;const n=pA.makeError("underlying network changed",Mp.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:e});throw this.emit("error",n),n}return t}))}get blockNumber(){return this._getInternalBlockNumber(100+this.pollingInterval/2).then((t=>{this._setFastBlockNumber(t)}),(t=>{})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}get polling(){return null!=this._poller}set polling(t){t&&!this._poller?(this._poller=setInterval((()=>{this.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((()=>{this.poll(),this._bootstrapPoll=setTimeout((()=>{this._poller||this.poll(),this._bootstrapPoll=null}),this.pollingInterval)}),0))):!t&&this._poller&&(clearInterval(this._poller),this._poller=null)}get pollingInterval(){return this._pollingInterval}set pollingInterval(t){if("number"!=typeof t||t<=0||parseInt(String(t))!=t)throw new Error("invalid polling interval");this._pollingInterval=t,this._poller&&(clearInterval(this._poller),this._poller=setInterval((()=>{this.poll()}),this._pollingInterval))}_getFastBlockNumber(){const t=vA();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((t=>((null==this._fastBlockNumber||t>this._fastBlockNumber)&&(this._fastBlockNumber=t),this._fastBlockNumber)))),this._fastBlockNumberPromise}_setFastBlockNumber(t){null!=this._fastBlockNumber&&tthis._fastBlockNumber)&&(this._fastBlockNumber=t,this._fastBlockNumberPromise=Promise.resolve(t)))}waitForTransaction(t,e,n){return fA(this,void 0,void 0,(function*(){return this._waitForTransaction(t,null==e?1:e,n||0,null)}))}_waitForTransaction(t,e,n,r){return fA(this,void 0,void 0,(function*(){const i=yield this.getTransactionReceipt(t);return(i?i.confirmations:0)>=e?i:new Promise(((i,o)=>{const a=[];let s=!1;const u=function(){return!!s||(s=!0,a.forEach((t=>{t()})),!1)},c=t=>{t.confirmations{this.removeListener(t,c)})),r){let n=r.startBlock,i=null;const c=a=>fA(this,void 0,void 0,(function*(){s||(yield wA(1e3),this.getTransactionCount(r.from).then((l=>fA(this,void 0,void 0,(function*(){if(!s){if(l<=r.nonce)n=a;else{{const e=yield this.getTransaction(t);if(e&&null!=e.blockNumber)return}for(null==i&&(i=n-3,i{s||this.once("block",c)})))}));if(s)return;this.once("block",c),a.push((()=>{this.removeListener("block",c)}))}if("number"==typeof n&&n>0){const t=setTimeout((()=>{u()||o(pA.makeError("timeout exceeded",Mp.errors.TIMEOUT,{timeout:n}))}),n);t.unref&&t.unref(),a.push((()=>{clearTimeout(t)}))}}))}))}getBlockNumber(){return fA(this,void 0,void 0,(function*(){return this._getInternalBlockNumber(0)}))}getGasPrice(){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const t=yield this.perform("getGasPrice",{});try{return Fp.from(t)}catch(e){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e})}}))}getBalance(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getBalance",n);try{return Fp.from(r)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getBalance",params:n,result:r,error:t})}}))}getTransactionCount(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getTransactionCount",n);try{return Fp.from(r).toNumber()}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:r,error:t})}}))}getCode(t,e){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const n=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(e)}),r=yield this.perform("getCode",n);try{return Dp(r)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getCode",params:n,result:r,error:t})}}))}getStorageAt(t,e,n){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const r=yield dy({address:this._getAddress(t),blockTag:this._getBlockTag(n),position:Promise.resolve(e).then((t=>_p(t)))}),i=yield this.perform("getStorageAt",r);try{return Dp(i)}catch(t){return pA.throwError("bad result from backend",Mp.errors.SERVER_ERROR,{method:"getStorageAt",params:r,result:i,error:t})}}))}_wrapTransaction(t,e,n){if(null!=e&&32!==Op(e))throw new Error("invalid response - sendTransaction");const r=t;return null!=e&&t.hash!==e&&pA.throwError("Transaction hash mismatch from Provider.sendTransaction.",Mp.errors.UNKNOWN_ERROR,{expectedHash:t.hash,returnedHash:e}),r.wait=(e,r)=>fA(this,void 0,void 0,(function*(){let i;null==e&&(e=1),null==r&&(r=0),0!==e&&null!=n&&(i={data:t.data,from:t.from,nonce:t.nonce,to:t.to,value:t.value,startBlock:n});const o=yield this._waitForTransaction(t.hash,e,r,i);return null==o&&0===e?null:(this._emitted["t:"+t.hash]=o.blockNumber,0===o.status&&pA.throwError("transaction failed",Mp.errors.CALL_EXCEPTION,{transactionHash:t.hash,transaction:t,receipt:o}),o)})),r}sendTransaction(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield Promise.resolve(t).then((t=>Dp(t))),n=this.formatter.transaction(t);null==n.confirmations&&(n.confirmations=0);const r=yield this._getInternalBlockNumber(100+2*this.pollingInterval);try{const t=yield this.perform("sendTransaction",{signedTransaction:e});return this._wrapTransaction(n,t,r)}catch(t){throw t.transaction=n,t.transactionHash=n.hash,t}}))}_getTransactionRequest(t){return fA(this,void 0,void 0,(function*(){const e=yield t,n={};return["from","to"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?this._getAddress(t):null)))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?Fp.from(t):null)))})),["type"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>null!=t?t:null)))})),e.accessList&&(n.accessList=this.formatter.accessList(e.accessList)),["data"].forEach((t=>{null!=e[t]&&(n[t]=Promise.resolve(e[t]).then((t=>t?Dp(t):null)))})),this.formatter.transactionRequest(yield dy(n))}))}_getFilter(t){return fA(this,void 0,void 0,(function*(){t=yield t;const e={};return null!=t.address&&(e.address=this._getAddress(t.address)),["blockHash","topics"].forEach((n=>{null!=t[n]&&(e[n]=t[n])})),["fromBlock","toBlock"].forEach((n=>{null!=t[n]&&(e[n]=this._getBlockTag(t[n]))})),this.formatter.filter(yield dy(e))}))}_call(t,e,n){return fA(this,void 0,void 0,(function*(){n>=10&&pA.throwError("CCIP read exceeded maximum redirections",Mp.errors.SERVER_ERROR,{redirects:n,transaction:t});const r=t.to,i=yield this.perform("call",{transaction:t,blockTag:e});if(n>=0&&"latest"===e&&null!=r&&"0x556f1830"===i.substring(0,10)&&Op(i)%32==4)try{const o=zp(i,4),a=zp(o,0,32);Fp.from(a).eq(r)||pA.throwError("CCIP Read sender did not match",Mp.errors.CALL_EXCEPTION,{name:"OffchainLookup",signature:"OffchainLookup(address,string[],bytes,bytes4,bytes)",transaction:t,data:i});const s=[],u=Fp.from(zp(o,32,64)).toNumber(),c=Fp.from(zp(o,u,u+32)).toNumber(),l=zp(o,u+32);for(let e=0;efA(this,void 0,void 0,(function*(){const t=yield this.perform("getBlock",r);if(null==t)return null!=r.blockHash&&null==this._emitted["b:"+r.blockHash]||null!=r.blockTag&&n>this._emitted.block?null:void 0;if(e){let e=null;for(let n=0;nthis._wrapTransaction(t))),n}return this.formatter.block(t)}))),{oncePoll:this})}))}getBlock(t){return this._getBlock(t,!1)}getBlockWithTransactions(t){return this._getBlock(t,!0)}getTransaction(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return tA((()=>fA(this,void 0,void 0,(function*(){const n=yield this.perform("getTransaction",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;const r=this.formatter.transactionResponse(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t}return this._wrapTransaction(r)}))),{oncePoll:this})}))}getTransactionReceipt(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork(),t=yield t;const e={transactionHash:this.formatter.hash(t,!0)};return tA((()=>fA(this,void 0,void 0,(function*(){const n=yield this.perform("getTransactionReceipt",e);if(null==n)return null==this._emitted["t:"+t]?null:void 0;if(null==n.blockHash)return;const r=this.formatter.receipt(n);if(null==r.blockNumber)r.confirmations=0;else if(null==r.confirmations){let t=(yield this._getInternalBlockNumber(100+2*this.pollingInterval))-r.blockNumber+1;t<=0&&(t=1),r.confirmations=t}return r}))),{oncePoll:this})}))}getLogs(t){return fA(this,void 0,void 0,(function*(){yield this.getNetwork();const e=yield dy({filter:this._getFilter(t)}),n=yield this.perform("getLogs",e);return n.forEach((t=>{null==t.removed&&(t.removed=!1)})),dA.arrayOf(this.formatter.filterLog.bind(this.formatter))(n)}))}getEtherPrice(){return fA(this,void 0,void 0,(function*(){return yield this.getNetwork(),this.perform("getEtherPrice",{})}))}_getBlockTag(t){return fA(this,void 0,void 0,(function*(){if("number"==typeof(t=yield t)&&t<0){t%1&&pA.throwArgumentError("invalid BlockTag","blockTag",t);let e=yield this._getInternalBlockNumber(100+2*this.pollingInterval);return e+=t,e<0&&(e=0),this.formatter.blockTag(e)}return this.formatter.blockTag(t)}))}getResolver(t){return fA(this,void 0,void 0,(function*(){let e=t;for(;;){if(""===e||"."===e)return null;if("eth"!==t&&"eth"===e)return null;const n=yield this._getResolver(e,"getResolver");if(null!=n){const r=new DA(this,n,t);return e===t||(yield r.supportsWildcard())?r:null}e=e.split(".").slice(1).join(".")}}))}_getResolver(t,e){return fA(this,void 0,void 0,(function*(){null==e&&(e="ENS");const n=yield this.getNetwork();n.ensAddress||pA.throwError("network does not support ENS",Mp.errors.UNSUPPORTED_OPERATION,{operation:e,network:n.name});try{const e=yield this.call({to:n.ensAddress,data:"0x0178b8bf"+lg(t).substring(2)});return this.formatter.callAddress(e)}catch(t){}return null}))}resolveName(t){return fA(this,void 0,void 0,(function*(){t=yield t;try{return Promise.resolve(this.formatter.address(t))}catch(e){if(Cp(t))throw e}"string"!=typeof t&&pA.throwArgumentError("invalid ENS name","name",t);const e=yield this.getResolver(t);return e?yield e.getAddress():null}))}lookupAddress(t){return fA(this,void 0,void 0,(function*(){t=yield t;const e=(t=this.formatter.address(t)).substring(2).toLowerCase()+".addr.reverse",n=yield this._getResolver(e,"lookupAddress");if(null==n)return null;const r=kA(yield this.call({to:n,data:"0x691f3431"+lg(e).substring(2)}),0);return(yield this.resolveName(r))!=t?null:r}))}getAvatar(t){return fA(this,void 0,void 0,(function*(){let e=null;if(Cp(t)){const n=this.formatter.address(t).substring(2).toLowerCase()+".addr.reverse",r=yield this._getResolver(n,"getAvatar");if(!r)return null;e=new DA(this,r,n);try{const t=yield e.getAvatar();if(t)return t.url}catch(t){if(t.code!==Mp.errors.CALL_EXCEPTION)throw t}try{const t=kA(yield this.call({to:r,data:"0x691f3431"+lg(n).substring(2)}),0);e=yield this.getResolver(t)}catch(t){if(t.code!==Mp.errors.CALL_EXCEPTION)throw t;return null}}else if(e=yield this.getResolver(t),!e)return null;const n=yield e.getAvatar();return null==n?null:n.url}))}perform(t,e){return pA.throwError(t+" not implemented",Mp.errors.NOT_IMPLEMENTED,{operation:t})}_startEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_stopEvent(t){this.polling=this._events.filter((t=>t.pollable())).length>0}_addEventListener(t,e,n){const r=new MA(gA(t),e,n);return this._events.push(r),this._startEvent(r),this}on(t,e){return this._addEventListener(t,e,!1)}once(t,e){return this._addEventListener(t,e,!0)}emit(t,...e){let n=!1,r=[],i=gA(t);return this._events=this._events.filter((t=>t.tag!==i||(setTimeout((()=>{t.listener.apply(this,e)}),0),n=!0,!t.once||(r.push(t),!1)))),r.forEach((t=>{this._stopEvent(t)})),n}listenerCount(t){if(!t)return this._events.length;let e=gA(t);return this._events.filter((t=>t.tag===e)).length}listeners(t){if(null==t)return this._events.map((t=>t.listener));let e=gA(t);return this._events.filter((t=>t.tag===e)).map((t=>t.listener))}off(t,e){if(null==e)return this.removeAllListeners(t);const n=[];let r=!1,i=gA(t);return this._events=this._events.filter((t=>t.tag!==i||t.listener!=e||(!!r||(r=!0,n.push(t),!1)))),n.forEach((t=>{this._stopEvent(t)})),this}removeAllListeners(t){let e=[];if(null==t)e=this._events,this._events=[];else{const n=gA(t);this._events=this._events.filter((t=>t.tag!==n||(e.push(t),!1)))}return e.forEach((t=>{this._stopEvent(t)})),this}}var _A=function(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))};const BA=new Mp(lA),RA=["call","estimateGas"];function UA(t,e){if(null==t)return null;if("string"==typeof t.message&&t.message.match("reverted")){const n=Cp(t.data)?t.data:null;if(!e||n)return{message:t.message,data:n}}if("object"==typeof t){for(const n in t){const r=UA(t[n],e);if(r)return r}return null}if("string"==typeof t)try{return UA(JSON.parse(t),e)}catch(t){}return null}function QA(t,e,n){const r=n.transaction||n.signedTransaction;if("call"===t){const t=UA(e,!0);if(t)return t.data;BA.throwError("missing revert data in call exception; Transaction reverted without a reason string",Mp.errors.CALL_EXCEPTION,{data:"0x",transaction:r,error:e})}if("estimateGas"===t){let n=UA(e.body,!1);null==n&&(n=UA(e,!1)),n&&BA.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{reason:n.message,method:t,transaction:r,error:e})}let i=e.message;throw e.code===Mp.errors.SERVER_ERROR&&e.error&&"string"==typeof e.error.message?i=e.error.message:"string"==typeof e.body?i=e.body:"string"==typeof e.responseText&&(i=e.responseText),i=(i||"").toLowerCase(),i.match(/insufficient funds|base fee exceeds gas limit|InsufficientFunds/i)&&BA.throwError("insufficient funds for intrinsic transaction cost",Mp.errors.INSUFFICIENT_FUNDS,{error:e,method:t,transaction:r}),i.match(/nonce (is )?too low/i)&&BA.throwError("nonce has already been used",Mp.errors.NONCE_EXPIRED,{error:e,method:t,transaction:r}),i.match(/replacement transaction underpriced|transaction gas price.*too low/i)&&BA.throwError("replacement fee too low",Mp.errors.REPLACEMENT_UNDERPRICED,{error:e,method:t,transaction:r}),i.match(/only replay-protected/i)&&BA.throwError("legacy pre-eip-155 transactions not supported",Mp.errors.UNSUPPORTED_OPERATION,{error:e,method:t,transaction:r}),RA.indexOf(t)>=0&&i.match(/gas required exceeds allowance|always failing transaction|execution reverted|revert/)&&BA.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",Mp.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,method:t,transaction:r}),e}function YA(t){return new Promise((function(e){setTimeout(e,t)}))}function WA(t){if(t.error){const e=new Error(t.error.message);throw e.code=t.error.code,e.data=t.error.data,e}return t.result}function FA(t){return t?t.toLowerCase():t}const VA={};class HA extends Wg{constructor(t,e,n){if(super(),t!==VA)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");ly(this,"provider",e),null==n&&(n=0),"string"==typeof n?(ly(this,"_address",this.provider.formatter.address(n)),ly(this,"_index",null)):"number"==typeof n?(ly(this,"_index",n),ly(this,"_address",null)):BA.throwArgumentError("invalid address or index","addressOrIndex",n)}connect(t){return BA.throwError("cannot alter JSON-RPC Signer connection",Mp.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}connectUnchecked(){return new GA(VA,this.provider,this._address||this._index)}getAddress(){return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((t=>(t.length<=this._index&&BA.throwError("unknown account #"+this._index,Mp.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),this.provider.formatter.address(t[this._index]))))}sendUncheckedTransaction(t){t=fy(t);const e=this.getAddress().then((t=>(t&&(t=t.toLowerCase()),t)));if(null==t.gasLimit){const n=fy(t);n.from=e,t.gasLimit=this.provider.estimateGas(n)}return null!=t.to&&(t.to=Promise.resolve(t.to).then((t=>_A(this,void 0,void 0,(function*(){if(null==t)return null;const e=yield this.provider.resolveName(t);return null==e&&BA.throwArgumentError("provided ENS name resolves to null","tx.to",t),e}))))),dy({tx:dy(t),sender:e}).then((({tx:e,sender:n})=>{null!=e.from?e.from.toLowerCase()!==n&&BA.throwArgumentError("from address mismatch","transaction",t):e.from=n;const r=this.provider.constructor.hexlifyTransaction(e,{from:!0});return this.provider.send("eth_sendTransaction",[r]).then((t=>t),(t=>("string"==typeof t.message&&t.message.match(/user denied/i)&&BA.throwError("user rejected transaction",Mp.errors.ACTION_REJECTED,{action:"sendTransaction",transaction:e}),QA("sendTransaction",t,r))))}))}signTransaction(t){return BA.throwError("signing transactions is unsupported",Mp.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}sendTransaction(t){return _A(this,void 0,void 0,(function*(){const e=yield this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval),n=yield this.sendUncheckedTransaction(t);try{return yield tA((()=>_A(this,void 0,void 0,(function*(){const t=yield this.provider.getTransaction(n);if(null!==t)return this.provider._wrapTransaction(t,n,e)}))),{oncePoll:this.provider})}catch(t){throw t.transactionHash=n,t}}))}signMessage(t){return _A(this,void 0,void 0,(function*(){const e="string"==typeof t?Sm(t):t,n=yield this.getAddress();try{return yield this.provider.send("personal_sign",[Dp(e),n.toLowerCase()])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"signMessage",from:n,messageData:t}),e}}))}_legacySignMessage(t){return _A(this,void 0,void 0,(function*(){const e="string"==typeof t?Sm(t):t,n=yield this.getAddress();try{return yield this.provider.send("eth_sign",[n.toLowerCase(),Dp(e)])}catch(e){throw"string"==typeof e.message&&e.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"_legacySignMessage",from:n,messageData:t}),e}}))}_signTypedData(t,e,n){return _A(this,void 0,void 0,(function*(){const r=yield xg.resolveNames(t,e,n,(t=>this.provider.resolveName(t))),i=yield this.getAddress();try{return yield this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(xg.getPayload(r.domain,e,r.value))])}catch(t){throw"string"==typeof t.message&&t.message.match(/user denied/i)&&BA.throwError("user rejected signing",Mp.errors.ACTION_REJECTED,{action:"_signTypedData",from:i,messageData:{domain:r.domain,types:e,value:r.value}}),t}}))}unlock(t){return _A(this,void 0,void 0,(function*(){const e=this.provider,n=yield this.getAddress();return e.send("personal_unlockAccount",[n.toLowerCase(),t,null])}))}}class GA extends HA{sendTransaction(t){return this.sendUncheckedTransaction(t).then((t=>({hash:t,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:e=>this.provider.waitForTransaction(t,e)})))}}const qA={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};class ZA extends PA{constructor(t,e){let n=e;null==n&&(n=new Promise(((t,e)=>{setTimeout((()=>{this.detectNetwork().then((e=>{t(e)}),(t=>{e(t)}))}),0)}))),super(n),t||(t=hy(this.constructor,"defaultUrl")()),ly(this,"connection","string"==typeof t?Object.freeze({url:t}):Object.freeze(fy(t))),this._nextId=42}get _cache(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}static defaultUrl(){return"http://localhost:8545"}detectNetwork(){return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((()=>{this._cache.detectNetwork=null}),0)),this._cache.detectNetwork}_uncachedDetectNetwork(){return _A(this,void 0,void 0,(function*(){yield YA(0);let t=null;try{t=yield this.send("eth_chainId",[])}catch(e){try{t=yield this.send("net_version",[])}catch(t){}}if(null!=t){const e=hy(this.constructor,"getNetwork");try{return e(Fp.from(t).toNumber())}catch(e){return BA.throwError("could not detect network",Mp.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e})}}return BA.throwError("could not detect network",Mp.errors.NETWORK_ERROR,{event:"noNetwork"})}))}getSigner(t){return new HA(VA,this,t)}getUncheckedSigner(t){return this.getSigner(t).connectUnchecked()}listAccounts(){return this.send("eth_accounts",[]).then((t=>t.map((t=>this.formatter.address(t)))))}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:gy(n),provider:this});const r=["eth_chainId","eth_blockNumber"].indexOf(t)>=0;if(r&&this._cache[t])return this._cache[t];const i=$M(this.connection,JSON.stringify(n),WA).then((t=>(this.emit("debug",{action:"response",request:n,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",error:t,request:n,provider:this}),t}));return r&&(this._cache[t]=i,setTimeout((()=>{this._cache[t]=null}),0)),i}prepareRequest(t,e){switch(t){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[FA(e.address),e.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[FA(e.address),e.blockTag]];case"getCode":return["eth_getCode",[FA(e.address),e.blockTag]];case"getStorageAt":return["eth_getStorageAt",[FA(e.address),Bp(e.position,32),e.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[e.signedTransaction]];case"getBlock":return e.blockTag?["eth_getBlockByNumber",[e.blockTag,!!e.includeTransactions]]:e.blockHash?["eth_getBlockByHash",[e.blockHash,!!e.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[e.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[e.transactionHash]];case"call":return["eth_call",[hy(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0}),e.blockTag]];case"estimateGas":return["eth_estimateGas",[hy(this.constructor,"hexlifyTransaction")(e.transaction,{from:!0})]];case"getLogs":return e.filter&&null!=e.filter.address&&(e.filter.address=FA(e.filter.address)),["eth_getLogs",[e.filter]]}return null}perform(t,e){return _A(this,void 0,void 0,(function*(){if("call"===t||"estimateGas"===t){const t=e.transaction;if(t&&null!=t.type&&Fp.from(t.type).isZero()&&null==t.maxFeePerGas&&null==t.maxPriorityFeePerGas){const n=yield this.getFeeData();null==n.maxFeePerGas&&null==n.maxPriorityFeePerGas&&((e=fy(e)).transaction=fy(t),delete e.transaction.type)}}const n=this.prepareRequest(t,e);null==n&&BA.throwError(t+" not implemented",Mp.errors.NOT_IMPLEMENTED,{operation:t});try{return yield this.send(n[0],n[1])}catch(n){return QA(t,n,e)}}))}_startEvent(t){"pending"===t.tag&&this._startPending(),super._startEvent(t)}_startPending(){if(null!=this._pendingFilter)return;const t=this,e=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=e,e.then((function(n){return function r(){t.send("eth_getFilterChanges",[n]).then((function(n){if(t._pendingFilter!=e)return null;let r=Promise.resolve();return n.forEach((function(e){t._emitted["t:"+e.toLowerCase()]="pending",r=r.then((function(){return t.getTransaction(e).then((function(e){return t.emit("pending",e),null}))}))})),r.then((function(){return YA(1e3)}))})).then((function(){if(t._pendingFilter==e)return setTimeout((function(){r()}),0),null;t.send("eth_uninstallFilter",[n])})).catch((t=>{}))}(),n})).catch((t=>{}))}_stopEvent(t){"pending"===t.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),super._stopEvent(t)}static hexlifyTransaction(t,e){const n=fy(qA);if(e)for(const t in e)e[t]&&(n[t]=!0);var r,i;i=n,(r=t)&&"object"==typeof r||cy.throwArgumentError("invalid object","object",r),Object.keys(r).forEach((t=>{i[t]||cy.throwArgumentError("invalid object key - "+t,"transaction:"+t,r)}));const o={};return["chainId","gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(e){if(null==t[e])return;const n=_p(Fp.from(t[e]));"gasLimit"===e&&(e="gas"),o[e]=n})),["from","to","data"].forEach((function(e){null!=t[e]&&(o[e]=Dp(t[e]))})),t.accessList&&(o.accessList=gM(t.accessList)),o}}const JA=new Mp(lA);let XA=1;function KA(t,e){const n="Web3LegacyFetcher";return function(t,r){const i={method:t,params:r,id:XA++,jsonrpc:"2.0"};return new Promise(((t,r)=>{this.emit("debug",{action:"request",fetcher:n,request:gy(i),provider:this}),e(i,((e,o)=>{if(e)return this.emit("debug",{action:"response",fetcher:n,error:e,request:i,provider:this}),r(e);if(this.emit("debug",{action:"response",fetcher:n,request:i,response:o,provider:this}),o.error){const t=new Error(o.error.message);return t.code=o.error.code,t.data=o.error.data,r(t)}t(o.result)}))}))}}class $A extends ZA{constructor(t,e){null==t&&JA.throwArgumentError("missing provider","provider",t);let n=null,r=null,i=null;"function"==typeof t?(n="unknown:",r=t):(n=t.host||t.path||"",!n&&t.isMetaMask&&(n="metamask"),i=t,t.request?(""===n&&(n="eip-1193:"),r=function(t){return function(e,n){null==n&&(n=[]);const r={method:e,params:n};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:gy(r),provider:this}),t.request(r).then((t=>(this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,response:t,provider:this}),t)),(t=>{throw this.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:r,error:t,provider:this}),t}))}}(t)):t.sendAsync?r=KA(0,t.sendAsync.bind(t)):t.send?r=KA(0,t.send.bind(t)):JA.throwArgumentError("unsupported provider","provider",t),n||(n="unknown:")),super(n,e),ly(this,"jsonRpcFetchFunc",r),ly(this,"provider",i)}send(t,e){return this.jsonRpcFetchFunc(t,e)}}const tI=new RegExp("^bytes([0-9]+)$"),eI=new RegExp("^(u?int)([0-9]*)$"),nI=new RegExp("^(.*)\\[([0-9]*)\\]$"),rI=new Mp("solidity/5.7.0");function iI(t,e,n){switch(t){case"address":return n?jp(e,32):Tp(e);case"string":return Sm(e);case"bytes":return Tp(e);case"bool":return e=e?"0x01":"0x00",n?jp(e,32):Tp(e)}let r=t.match(eI);if(r){let i=parseInt(r[2]||"256");return(r[2]&&String(i)!==r[2]||i%8!=0||0===i||i>256)&&rI.throwArgumentError("invalid number type","type",t),n&&(i=256),jp(e=Fp.from(e).toTwos(i),i/8)}if(r=t.match(tI),r){const i=parseInt(r[1]);return(String(i)!==r[1]||0===i||i>32)&&rI.throwArgumentError("invalid bytes type","type",t),Tp(e).byteLength!==i&&rI.throwArgumentError(`invalid value for ${t}`,"value",e),n?Tp((e+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):e}if(r=t.match(nI),r&&Array.isArray(e)){const n=r[1];parseInt(r[2]||String(e.length))!=e.length&&rI.throwArgumentError(`invalid array length for ${t}`,"value",e);const i=[];return e.forEach((function(t){i.push(iI(n,t,!0))})),Lp(i)}return rI.throwArgumentError("invalid type","type",t)}function oI(t,e){t.length!=e.length&&rI.throwArgumentError("wrong number of values; expected ${ types.length }","values",e);const n=[];return t.forEach((function(t,r){n.push(iI(t,e[r]))})),Dp(Lp(n))}const aI=new Mp("units/5.7.0"),sI=["wei","kwei","mwei","gwei","szabo","finney","ether"];function uI(t,e){if("string"==typeof e){const t=sI.indexOf(e);-1!==t&&(e=3*t)}return ny(t,null!=e?e:18)}function cI(t,e){if("string"!=typeof t&&aI.throwArgumentError("value must be a string","value",t),"string"==typeof e){const t=sI.indexOf(e);-1!==t&&(e=3*t)}return ry(t,null!=e?e:18)}let lI,hI=()=>lI||(lI="object"==typeof r?r:window,lI);const dI=()=>(void 0===hI()._Web3ClientConfiguration&&(hI()._Web3ClientConfiguration={}),hI()._Web3ClientConfiguration);function fI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class pI extends ZA{constructor(t,e,n,r){super(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(Hf.findByName(this._network).id)}requestChunk(t,e,n){try{const r=t.map((t=>t.request));return $M(e,JSON.stringify(r)).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(fI([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else fI([r,"optionalAccess",t=>t.result])?t.resolve(r.result):t.reject()}))})).catch((e=>{if(n<5&&e&&"SERVER_ERROR"==e.code){const e=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=e>=this._endpoints.length?this._endpoints[0]:this._endpoints[e],this.requestChunk(t,this._endpoint,n+1)}else t.forEach((t=>{t.reject(e)}))}))}catch(e){t.forEach((t=>{t.reject()}))}}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,this._endpoint,1))))}),dI().batchInterval||10)),i}}const yI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),mI=(t,e)=>{void 0===yI()[t]&&(yI()[t]=[]);const n=yI()[t].indexOf(e);n>-1&&yI()[t].splice(n,1),yI()[t].unshift(e)},gI=async(t,e,n=!0)=>{let r;yI()[t]=e.map(((r,i)=>new pI(r,t,e,(()=>{1===yI()[t].length?gI(t,e,n):yI()[t].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=yI()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n,r=(new Date).getTime();setTimeout((()=>e(900)),900);try{n=await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})}catch(t){}if(!function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.ok]))return e(999);let i=(new Date).getTime();e(i-r)})))));const i=Math.min(...n),o=n.indexOf(i);r=yI()[t][o]}mI(t,r)};var vI={getProvider:async t=>{let e=yI();if(e&&e[t])return e[t][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await gI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},getProviders:async t=>{let e=yI();if(e&&e[t])return e[t];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await gI(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]},setProviderEndpoints:gI,setProvider:mI};function wI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class bI extends ql{constructor(t,e,n,r){super(t),this._provider=new ql(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}handleError(t,e,n){if(e<10){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new ql(this._endpoint),this.requestChunk(n,e+1)}else n.forEach((e=>{e.reject(t)}))}batchRequest(t,e){return new Promise(((n,r)=>{0===t.length&&n([]);const i=t.map((t=>this._rpcClient.request(t.methodName,t.args)));fetch(this._endpoint,{method:"POST",body:JSON.stringify(i),headers:{"Content-Type":"application/json"}}).then((t=>{t.ok?t.json().then((t=>{t.find((t=>wI([t,"optionalAccess",t=>t.error])))&&e<10?r("Error in batch found!"):n(t)})).catch(r):r(`${t.status} ${t.text}`)})).catch(r)}))}requestChunk(t,e){const n=t.map((t=>t.request));try{return this.batchRequest(n,e).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(wI([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else r?t.resolve(r):t.reject()}))})).catch((n=>this.handleError(n,e,t)))}catch(n){return this.handleError(n,e,t)}}_rpcRequestReplacement(t,e){const n={methodName:t,args:e};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,1))))}),dI().batchInterval||10)),i}}const MI=()=>(null==hI()._Web3ClientProviders&&(hI()._Web3ClientProviders={}),hI()._Web3ClientProviders),AI=(t,e)=>{void 0===MI()[t]&&(MI()[t]=[]);const n=MI()[t].indexOf(e);n>-1&&MI()[t].splice(n,1),MI()[t].unshift(e)},II=async(t,e,n=!0)=>{let r;MI()[t]=e.map(((r,i)=>new bI(r,t,e,(()=>{1===MI()[t].length?II(t,e,n):MI()[t].splice(i,1)}))));let i=hI();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=MI()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n,r=(new Date).getTime();setTimeout((()=>e(900)),900);try{n=await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})}catch(t){}if(!function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.ok]))return e(999);let i=(new Date).getTime();e(i-r)})))));const i=Math.min(...n),o=n.indexOf(i);r=MI()[t][o]}AI(t,r)};var NI={getProvider:async t=>{let e=MI();if(e&&e[t])return e[t][0];let n=hI();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await II(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},getProviders:async t=>{let e=MI();if(e&&e[t])return e[t];let n=hI();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await II(t,Hf[t].endpoints),e(hI()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]},setProviderEndpoints:II,setProvider:AI};let EI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];EI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],EI.solana=["solana"];let xI=()=>(null==hI()._Web3ClientCacheStore&&(hI()._Web3ClientCacheStore={}),hI()._Web3ClientCacheStore),kI=()=>(null==hI()._Web3ClientPromiseStore&&(hI()._Web3ClientPromiseStore={}),hI()._Web3ClientPromiseStore),TI=function({key:t}){kI()[t]=void 0},LI=function({call:t,key:e,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:t}){return kI()[t]}({key:e=JSON.stringify(e)});if(a)return a.then(r).catch(i);(function({key:t,promise:e}){return kI()[t]=e,e})({key:e,promise:new Promise(((a,s)=>0===n?t().then((t=>{r(t),a(t)})).catch((t=>{i(t),s(t)})):(o=function({key:t,expires:e}){let n=xI()[t];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.expiresAt])>Date.now())return n.value}({key:e,expires:n}),o?(r(o),a(o),o):void t().then((t=>{t&&function({key:t,value:e,expires:n}){xI()[t]={expiresAt:Date.now()+n,value:e}}({key:e,value:t,expires:n}),r(t),a(t)})).catch((t=>{i(t),s(t)})))))}).then((()=>{TI({key:e})})).catch((()=>{TI({key:e})}))}))};const SI=async t=>{if(EI.evm.includes(t))return await vI.getProvider(t);if(EI.solana.includes(t))return await NI.getProvider(t);throw"Unknown blockchain: "+t},jI=t=>`(${t.map((t=>"tuple"===t.type?jI(t.components):t.type)).join(",")})`;var CI=({provider:t,from:e,to:n,value:r,method:i,api:o,params:a})=>{if(void 0===o)return t.estimateGas({from:e,to:n,value:r});{let s=new PM(n,o,t),u=s.interface.fragments.find((t=>t.name==i)),c=(({contract:t,method:e,params:n})=>{let r=t.interface.fragments.find((t=>t.name==e));return n instanceof Array?n:n instanceof Object?r.inputs.map((t=>n[t.name])):void 0})({contract:s,method:i,params:a});void 0===s[i]&&(i=`${i}(${u.inputs.map((t=>"tuple"===t.type?jI(t.components):t.type)).join(",")})`);let l=s.estimateGas[i];return c?l(...c,{from:e,value:r}):l({from:e,value:r})}};let DI=async function({blockchain:t,from:e,to:n,value:r,method:i,api:o,params:a,cache:s}){if(!EI.includes(t))throw"Unknown blockchain: "+t;void 0===r&&(r="0");const u=await SI(t);return await LI({expires:s||0,key:[t,e,n,r,i,a],call:async()=>CI({provider:u,from:e,to:n,value:r,method:i,api:o,params:a})})};const OI=({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=new PM(t,e,i),s=(({contract:t,method:e,params:n})=>t.interface.fragments.find((t=>t.name==e)).inputs.map(((t,e)=>Array.isArray(n)?n[e]:n[t.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((t=>t.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((t=>t.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},zI=({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a})=>n?OI({address:e,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:t,provider:e})=>e.getBalance(t))({address:e,provider:a}):"transactionCount"===r?(({address:t,provider:e})=>e.getTransactionCount(t))({address:e,provider:a}):void 0;const PI=async({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=of),await(async({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Xs(t));if(a&&a.data)return e.decode(a.data)})({address:e,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Xs(e),i).then((t=>n?t.map((t=>(t.data=n.decode(t.account.data),t))):t));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Xs(e));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:t,provider:e})=>e.getBalance(new Xs(t)))({address:e,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((t=>u.toString().match(t)))){let u=s[s.indexOf(a)+1]||s[0];return PI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const _I=async function(t,e){const{blockchain:n,address:r,method:i}=(t=>{if("object"==typeof t)return t;let e=t.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==e.groups.part2?e.groups.part1.match(/\d/)?{blockchain:e.groups.blockchain,address:e.groups.part1}:{blockchain:e.groups.blockchain,method:e.groups.part1}:{blockchain:e.groups.blockchain,address:e.groups.part1,method:e.groups.part2}})(t),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:h}=("object"==typeof t?t:e)||{};return await LI({expires:s||0,key:h||[n,r,i,a,u],call:async()=>{if(EI.evm.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||dI().strategy||"failover",a=a||dI().timeout||void 0,"fastest"===s){const s=await vI.getProviders(t);let u=[];const c=s.map((a=>new Promise((s=>{u.push(zI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await vI.getProvider(t),u=zI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(EI.solana.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||dI().strategy||"failover",a=a||dI().timeout||void 0;const u=await NI.getProviders(t);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(PI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await NI.getProvider(t),c=PI({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})};var BI=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=128)}([function(t,e,n){(function(t,r,i){n.d(e,"a",(function(){return Xi})),n.d(e,"b",(function(){return da})),n.d(e,"c",(function(){return to})),n.d(e,"d",(function(){return Lo})),n.d(e,"e",(function(){return ot})),n.d(e,"f",(function(){return $})),n.d(e,"g",(function(){return Hi})),n.d(e,"h",(function(){return tt})),n.d(e,"i",(function(){return ao})),n.d(e,"j",(function(){return uo})),n.d(e,"k",(function(){return ro})),n.d(e,"l",(function(){return co})),n.d(e,"m",(function(){return so})),n.d(e,"n",(function(){return st})),n.d(e,"o",(function(){return rt})),n.d(e,"p",(function(){return Qi})),n.d(e,"q",(function(){return Z})),n.d(e,"r",(function(){return nt})),n.d(e,"s",(function(){return ko})),n.d(e,"t",(function(){return eo})),n.d(e,"u",(function(){return no})),n.d(e,"v",(function(){return G})),n.d(e,"w",(function(){return H})),n.d(e,"x",(function(){return Zi})),n.d(e,"y",(function(){return lt})),n.d(e,"z",(function(){return Ri})),n.d(e,"A",(function(){return Co})),n.d(e,"B",(function(){return qi})),n.d(e,"C",(function(){return Bi})),n.d(e,"D",(function(){return Ji})),n.d(e,"E",(function(){return yo})),n.d(e,"F",(function(){return po})),n.d(e,"G",(function(){return Do})),n.d(e,"H",(function(){return ct})),n.d(e,"I",(function(){return io})),n.d(e,"J",(function(){return oo})),n.d(e,"K",(function(){return F})),n.d(e,"L",(function(){return aa})),n.d(e,"M",(function(){return at})),n.d(e,"N",(function(){return Y})),n.d(e,"O",(function(){return ca})),n.d(e,"P",(function(){return Yo})),n.d(e,"Q",(function(){return W})),n.d(e,"R",(function(){return Ro})),n.d(e,"S",(function(){return Wo})),n.d(e,"T",(function(){return fo})),n.d(e,"U",(function(){return Po})),n.d(e,"V",(function(){return Oo})),n.d(e,"W",(function(){return Fo})),n.d(e,"X",(function(){return $o})),n.d(e,"Y",(function(){return na})),n.d(e,"Z",(function(){return Xo})),n.d(e,"ab",(function(){return qo})),n.d(e,"bb",(function(){return ra})),n.d(e,"cb",(function(){return oa})),n.d(e,"db",(function(){return ia})),n.d(e,"eb",(function(){return zo})),n.d(e,"fb",(function(){return Ko})),n.d(e,"gb",(function(){return Zo})),n.d(e,"hb",(function(){return Jo})),n.d(e,"ib",(function(){return ta})),n.d(e,"jb",(function(){return ua})),n.d(e,"kb",(function(){return Go})),n.d(e,"lb",(function(){return ea})),n.d(e,"mb",(function(){return _o})),n.d(e,"nb",(function(){return Qo})),n.d(e,"ob",(function(){return X})),n.d(e,"pb",(function(){return Gi})),n.d(e,"qb",(function(){return K})),n.d(e,"rb",(function(){return S})),n.d(e,"sb",(function(){return it})),n.d(e,"tb",(function(){return Eo})),n.d(e,"ub",(function(){return la})),n.d(e,"vb",(function(){return lo})),n.d(e,"wb",(function(){return ho})),n.d(e,"xb",(function(){return Ui}));var o=n(71),a=n(1),s=n(21),u=n(68),c=n(32),l=n(43),h=n(69),d=n(24),f=n(38),p=n(44),y=n(5),m=n(70);function g(t,e,n){return(e=M(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function w(t,e){for(var n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function I(t){return(I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function N(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=k(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function E(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||k(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function x(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||k(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function k(t,e){if(t){if("string"==typeof t)return T(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:a.FIVE_MINUTES,i=arguments.length>1?arguments[1]:void 0,o=Object(a.toMiliseconds)(r||a.FIVE_MINUTES);return{resolve:function(e){n&&t&&(clearTimeout(n),t(e))},reject:function(t){n&&e&&(clearTimeout(n),e(t))},done:function(){return new Promise((function(r,a){n=setTimeout((function(){a(new Error(i))}),o),t=r,e=a}))}}}function tt(t,e,n){var r=this;return new Promise((function(i,o){return L(r,null,A().mark((function r(){var a,s;return A().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return a=setTimeout((function(){return o(new Error(n))}),e),r.prev=1,r.next=4,t;case 4:s=r.sent,i(s),r.next=11;break;case 8:r.prev=8,r.t0=r.catch(1),o(r.t0);case 11:clearTimeout(a);case 12:case"end":return r.stop()}}),r,null,[[1,8]])})))}))}function et(t,e){if("string"==typeof e&&e.startsWith("".concat(t,":")))return e;if("topic"===t.toLowerCase()){if("string"!=typeof e)throw new Error('Value must be "string" for expirer target type: topic');return"topic:".concat(e)}if("id"===t.toLowerCase()){if("number"!=typeof e)throw new Error('Value must be "number" for expirer target type: id');return"id:".concat(e)}throw new Error("Unknown expirer target type: ".concat(t))}function nt(t){return et("topic",t)}function rt(t){return et("id",t)}function it(t){var e=x(t.split(":"),2),n=e[0],r=e[1],i={id:void 0,topic:void 0};if("topic"===n&&"string"==typeof r)i.topic=r;else{if("id"!==n||!Number.isInteger(Number(r)))throw new Error("Invalid target, expected id:number or topic:string, got ".concat(n,":").concat(r));i.id=Number(r)}return i}function ot(t,e){return Object(a.fromMiliseconds)((e||Date.now())+Object(a.toMiliseconds)(t))}function at(t){return Date.now()>=Object(a.toMiliseconds)(t)}function st(t,e){return"".concat(t).concat(e?":".concat(e):"")}function ut(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return E(new Set([].concat(E(t),E(e))))}function ct(t){return L(this,arguments,(function(t){var e=t.id,n=t.topic,i=t.wcDeepLink;return A().mark((function t(){var o,a,s,u;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.prev=0,i){t.next=3;break}return t.abrupt("return");case 3:if(o="string"==typeof i?JSON.parse(i):i,"string"==typeof(a=null==o?void 0:o.href)){t.next=7;break}return t.abrupt("return");case 7:if(a.endsWith("/")&&(a=a.slice(0,-1)),s="".concat(a,"/wc?requestId=").concat(e,"&sessionTopic=").concat(n),(u=V())!==U){t.next=13;break}s.startsWith("https://")||s.startsWith("http://")?window.open(s,"_blank","noreferrer noopener"):window.open(s,"_self","noreferrer noopener"),t.next=17;break;case 13:if(t.t0=u===B&&I(null==r?void 0:r.Linking)<"u",!t.t0){t.next=17;break}return t.next=17,r.Linking.openURL(s);case 17:t.next=22;break;case 19:t.prev=19,t.t1=t.catch(0),console.error(t.t1);case 22:case"end":return t.stop()}}),t,null,[[0,19]])}))()}))}function lt(t,e){return L(this,null,A().mark((function n(){return A().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.prev=0,n.next=3,t.getItem(e);case 3:if(n.t0=n.sent,n.t0){n.next=6;break}n.t0=F()?localStorage.getItem(e):void 0;case 6:return n.abrupt("return",n.t0);case 9:n.prev=9,n.t1=n.catch(0),console.error(n.t1);case 12:case"end":return n.stop()}}),n,null,[[0,9]])})))}var ht=("undefined"==typeof globalThis?"undefined":I(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":I(window))<"u"?window:(void 0===r?"undefined":I(r))<"u"?r:("undefined"==typeof self?"undefined":I(self))<"u"?self:{},dt={exports:{}};!function(e){!function(){var n="input is invalid type",r="object"==("undefined"==typeof window?"undefined":I(window)),i=r?window:{};i.JS_SHA3_NO_WINDOW&&(r=!1);var o=!r&&"object"==("undefined"==typeof self?"undefined":I(self));!i.JS_SHA3_NO_NODE_JS&&"object"==(void 0===t?"undefined":I(t))&&t.versions&&t.versions.node?i=ht:o&&(i=self);var a=!i.JS_SHA3_NO_COMMON_JS&&e.exports,s=!i.JS_SHA3_NO_ARRAY_BUFFER&&("undefined"==typeof ArrayBuffer?"undefined":I(ArrayBuffer))<"u",u="0123456789abcdef".split(""),c=[4,1024,262144,67108864],l=[0,8,16,24],h=[1,0,32898,0,32906,2147483648,2147516416,2147483648,32907,0,2147483649,0,2147516545,2147483648,32777,2147483648,138,0,136,0,2147516425,0,2147483658,0,2147516555,0,139,2147483648,32905,2147483648,32771,2147483648,32770,2147483648,128,2147483648,32778,0,2147483658,2147483648,2147516545,2147483648,32896,2147483648,2147483649,0,2147516424,2147483648],d=[224,256,384,512],f=[128,256],p=["hex","buffer","arrayBuffer","array","digest"],y={128:168,256:136};(i.JS_SHA3_NO_NODE_JS||!Array.isArray)&&(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),s&&(i.JS_SHA3_NO_ARRAY_BUFFER_IS_VIEW||!ArrayBuffer.isView)&&(ArrayBuffer.isView=function(t){return"object"==I(t)&&t.buffer&&t.buffer.constructor===ArrayBuffer});for(var m=function(t,e,n){return function(r){return new C(t,e,t).update(r)[n]()}},g=function(t,e,n){return function(r,i){return new C(t,e,i).update(r)[n]()}},v=function(t,e,n){return function(e,r,i,o){return N["cshake"+t].update(e,r,i,o)[n]()}},w=function(t,e,n){return function(e,r,i,o){return N["kmac"+t].update(e,r,i,o)[n]()}},b=function(t,e,n,r){for(var i=0;i>5,this.byteCount=this.blockCount<<2,this.outputBlocks=n>>5,this.extraBytes=(31&n)>>3;for(var r=0;r<50;++r)this.s[r]=0}function D(t,e,n){C.call(this,t,e,n)}C.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var e,r=I(t);if("string"!==r){if("object"!==r)throw new Error(n);if(null===t)throw new Error(n);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(n);e=!0}for(var i,o,a=this.blocks,u=this.byteCount,c=t.length,h=this.blockCount,d=0,f=this.s;d>2]|=t[d]<>2]|=o<>2]|=(192|o>>6)<>2]|=(128|63&o)<=57344?(a[i>>2]|=(224|o>>12)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<>2]|=(240|o>>18)<>2]|=(128|o>>12&63)<>2]|=(128|o>>6&63)<>2]|=(128|63&o)<=u){for(this.start=i-u,this.block=a[h],i=0;i>=8);n>0;)i.unshift(n),n=255&(t>>=8),++r;return e?i.push(r):i.unshift(r),this.update(i),i.length},C.prototype.encodeString=function(t){var e,r=I(t);if("string"!==r){if("object"!==r)throw new Error(n);if(null===t)throw new Error(n);if(s&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||s&&ArrayBuffer.isView(t)))throw new Error(n);e=!0}var i=0,o=t.length;if(e)i=o;else for(var a=0;a=57344?i+=3:(u=65536+((1023&u)<<10|1023&t.charCodeAt(++a)),i+=4)}return i+=this.encode(8*i),this.update(t),i},C.prototype.bytepad=function(t,e){for(var n=this.encode(e),r=0;r>2]|=this.padding[3&e],this.lastByteIndex===this.byteCount)for(t[0]=t[n],e=1;e>4&15]+u[15&t]+u[t>>12&15]+u[t>>8&15]+u[t>>20&15]+u[t>>16&15]+u[t>>28&15]+u[t>>24&15];a%e==0&&(O(n),o=0)}return i&&(t=n[o],s+=u[t>>4&15]+u[15&t],i>1&&(s+=u[t>>12&15]+u[t>>8&15]),i>2&&(s+=u[t>>20&15]+u[t>>16&15])),s},C.prototype.arrayBuffer=function(){this.finalize();var t,e=this.blockCount,n=this.s,r=this.outputBlocks,i=this.extraBytes,o=0,a=0,s=this.outputBits>>3;t=i?new ArrayBuffer(r+1<<2):new ArrayBuffer(s);for(var u=new Uint32Array(t);a>8&255,u[t+2]=e>>16&255,u[t+3]=e>>24&255;s%n==0&&O(r)}return o&&(t=s<<2,e=r[a],u[t]=255&e,o>1&&(u[t+1]=e>>8&255),o>2&&(u[t+2]=e>>16&255)),u},D.prototype=new C,D.prototype.finalize=function(){return this.encode(this.outputBits,!0),C.prototype.finalize.call(this)};var O=function(t){var e,n,r,i,o,a,s,u,c,l,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L,S,j,C,D,O,z,P,_,B,R,U,Q,Y,W,F,V,H,G,q,Z,J,X,K,$,tt,et,nt,rt,it,ot,at,st,ut,ct,lt;for(r=0;r<48;r+=2)i=t[0]^t[10]^t[20]^t[30]^t[40],o=t[1]^t[11]^t[21]^t[31]^t[41],a=t[2]^t[12]^t[22]^t[32]^t[42],s=t[3]^t[13]^t[23]^t[33]^t[43],u=t[4]^t[14]^t[24]^t[34]^t[44],c=t[5]^t[15]^t[25]^t[35]^t[45],l=t[6]^t[16]^t[26]^t[36]^t[46],d=t[7]^t[17]^t[27]^t[37]^t[47],e=(f=t[8]^t[18]^t[28]^t[38]^t[48])^(a<<1|s>>>31),n=(p=t[9]^t[19]^t[29]^t[39]^t[49])^(s<<1|a>>>31),t[0]^=e,t[1]^=n,t[10]^=e,t[11]^=n,t[20]^=e,t[21]^=n,t[30]^=e,t[31]^=n,t[40]^=e,t[41]^=n,e=i^(u<<1|c>>>31),n=o^(c<<1|u>>>31),t[2]^=e,t[3]^=n,t[12]^=e,t[13]^=n,t[22]^=e,t[23]^=n,t[32]^=e,t[33]^=n,t[42]^=e,t[43]^=n,e=a^(l<<1|d>>>31),n=s^(d<<1|l>>>31),t[4]^=e,t[5]^=n,t[14]^=e,t[15]^=n,t[24]^=e,t[25]^=n,t[34]^=e,t[35]^=n,t[44]^=e,t[45]^=n,e=u^(f<<1|p>>>31),n=c^(p<<1|f>>>31),t[6]^=e,t[7]^=n,t[16]^=e,t[17]^=n,t[26]^=e,t[27]^=n,t[36]^=e,t[37]^=n,t[46]^=e,t[47]^=n,e=l^(i<<1|o>>>31),n=d^(o<<1|i>>>31),t[8]^=e,t[9]^=n,t[18]^=e,t[19]^=n,t[28]^=e,t[29]^=n,t[38]^=e,t[39]^=n,t[48]^=e,t[49]^=n,y=t[0],m=t[1],G=t[11]<<4|t[10]>>>28,q=t[10]<<4|t[11]>>>28,L=t[20]<<3|t[21]>>>29,S=t[21]<<3|t[20]>>>29,st=t[31]<<9|t[30]>>>23,ut=t[30]<<9|t[31]>>>23,W=t[40]<<18|t[41]>>>14,F=t[41]<<18|t[40]>>>14,z=t[2]<<1|t[3]>>>31,P=t[3]<<1|t[2]>>>31,g=t[13]<<12|t[12]>>>20,v=t[12]<<12|t[13]>>>20,Z=t[22]<<10|t[23]>>>22,J=t[23]<<10|t[22]>>>22,j=t[33]<<13|t[32]>>>19,C=t[32]<<13|t[33]>>>19,ct=t[42]<<2|t[43]>>>30,lt=t[43]<<2|t[42]>>>30,et=t[5]<<30|t[4]>>>2,nt=t[4]<<30|t[5]>>>2,_=t[14]<<6|t[15]>>>26,B=t[15]<<6|t[14]>>>26,w=t[25]<<11|t[24]>>>21,b=t[24]<<11|t[25]>>>21,X=t[34]<<15|t[35]>>>17,K=t[35]<<15|t[34]>>>17,D=t[45]<<29|t[44]>>>3,O=t[44]<<29|t[45]>>>3,E=t[6]<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r+1]};if(a)e.exports=N;else for(x=0;xvt[n])&&console.log.apply(console,e)}},{key:"debug",value:function(){for(var e=arguments.length,n=new Array(e),r=0;r>4],n+=At[15&e[o]];i.push(t+"=Uint8Array(0x"+n+")")}else i.push(t+"="+JSON.stringify(e))}catch(e){i.push(t+"="+JSON.stringify(r[t].toString()))}})),i.push("code=".concat(n)),i.push("version=".concat(this.version));var o=e,a="";switch(n){case pt.NUMERIC_FAULT:a="NUMERIC_FAULT";var s=e;switch(s){case"overflow":case"underflow":case"division-by-zero":a+="-"+s;break;case"negative-power":case"negative-width":a+="-unsupported";break;case"unbound-bitwise-result":a+="-unbound-result"}break;case pt.CALL_EXCEPTION:case pt.INSUFFICIENT_FUNDS:case pt.MISSING_NEW:case pt.NONCE_EXPIRED:case pt.REPLACEMENT_UNDERPRICED:case pt.TRANSACTION_REPLACED:case pt.UNPREDICTABLE_GAS_LIMIT:a=n}a&&(e+=" [ See: https://links.ethers.org/v5-errors-"+a+" ]"),i.length&&(e+=" ("+i.join(", ")+")");var u=new Error(e);return u.reason=o,u.code=n,Object.keys(r).forEach((function(t){u[t]=r[t]})),u}},{key:"throwError",value:function(t,e,n){throw this.makeError(t,e,n)}},{key:"throwArgumentError",value:function(e,n,r){return this.throwError(e,t.errors.INVALID_ARGUMENT,{argument:n,value:r})}},{key:"assert",value:function(t,e,n,r){t||this.throwError(e,n,r)}},{key:"assertArgument",value:function(t,e,n,r){t||this.throwArgumentError(e,n,r)}},{key:"checkNormalize",value:function(e){Mt&&this.throwError("platform missing String.prototype.normalize",t.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:Mt})}},{key:"checkSafeUint53",value:function(e,n){"number"==typeof e&&(null==n&&(n="value not safe"),(e<0||e>=9007199254740991)&&this.throwError(n,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:e}),e%1&&this.throwError(n,t.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:e}))}},{key:"checkArgumentCount",value:function(e,n,r){r=r?": "+r:"",en&&this.throwError("too many arguments"+r,t.errors.UNEXPECTED_ARGUMENT,{count:e,expectedCount:n})}},{key:"checkNew",value:function(e,n){(e===Object||null==e)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:n.name})}},{key:"checkAbstract",value:function(e,n){e===n?this.throwError("cannot instantiate abstract class "+JSON.stringify(n.name)+" directly; use a sub-class",t.errors.UNSUPPORTED_OPERATION,{name:e.name,operation:"new"}):(e===Object||null==e)&&this.throwError("missing new",t.errors.MISSING_NEW,{name:n.name})}}],[{key:"globalLogger",value:function(){return bt||(bt=new t("logger/5.7.0")),bt}},{key:"setCensorship",value:function(e,n){if(!e&&n&&this.globalLogger().throwError("cannot permanently disable censorship",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),mt){if(!e)return;this.globalLogger().throwError("error censorship permanent",t.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}gt=!!e,mt=!!n}},{key:"setLogLevel",value:function(e){var n=vt[e.toLowerCase()];null!=n?wt=n:t.globalLogger().warn("invalid log level - "+e)}},{key:"from",value:function(e){return new t(e)}}])}();It.errors=pt,It.levels=ft;var Nt=new It("bytes/5.7.0");function Et(t){return!!t.toHexString}function xt(t){return t.slice||(t.slice=function(){var e=Array.prototype.slice.call(arguments);return xt(new Uint8Array(Array.prototype.slice.apply(t,e)))}),t}function kt(t){return"number"==typeof t&&t==t&&t%1==0}function Tt(t){if(null==t)return!1;if(t.constructor===Uint8Array)return!0;if("string"==typeof t||!kt(t.length)||t.length<0)return!1;for(var e=0;e=256)return!1}return!0}function Lt(t,e){if(e||(e={}),"number"==typeof t){Nt.checkSafeUint53(t,"invalid arrayify value");for(var n=[];t;)n.unshift(255&t),t=parseInt(String(t/256));return 0===n.length&&n.push(0),xt(new Uint8Array(n))}if(e.allowMissingPrefix&&"string"==typeof t&&"0x"!==t.substring(0,2)&&(t="0x"+t),Et(t)&&(t=t.toHexString()),St(t)){var r=t.substring(2);r.length%2&&("left"===e.hexPad?r="0"+r:"right"===e.hexPad?r+="0":Nt.throwArgumentError("hex data is odd-length","value",t));for(var i=[],o=0;o>4]+jt[15&o]}return r}return Nt.throwArgumentError("invalid hexlify value","value",t)}function Dt(t,e,n){return"string"!=typeof t?t=Ct(t):(!St(t)||t.length%2)&&Nt.throwArgumentError("invalid hexData","value",t),e=2+2*e,null!=n?"0x"+t.substring(e,2+2*n):"0x"+t.substring(e)}function Ot(t,e){for("string"!=typeof t?t=Ct(t):St(t)||Nt.throwArgumentError("invalid hex string","value",t),t.length>2*e+2&&Nt.throwArgumentError("value out of range","value",arguments[1]);t.length<2*e+2;)t="0x0"+t.substring(2);return t}function zt(t){var e={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0,yParityAndS:"0x",compact:"0x"};if(function(t){return St(t)&&!(t.length%2)||Tt(t)}(t)){var n=Lt(t);64===n.length?(e.v=27+(n[32]>>7),n[32]&=127,e.r=Ct(n.slice(0,32)),e.s=Ct(n.slice(32,64))):65===n.length?(e.r=Ct(n.slice(0,32)),e.s=Ct(n.slice(32,64)),e.v=n[64]):Nt.throwArgumentError("invalid signature string","signature",t),e.v<27&&(0===e.v||1===e.v?e.v+=27:Nt.throwArgumentError("signature invalid v byte","signature",t)),e.recoveryParam=1-e.v%2,e.recoveryParam&&(n[32]|=128),e._vs=Ct(n.slice(32,64))}else{if(e.r=t.r,e.s=t.s,e.v=t.v,e.recoveryParam=t.recoveryParam,e._vs=t._vs,null!=e._vs){var r=function(t,e){(t=Lt(t)).length>e&&Nt.throwArgumentError("value out of range","value",arguments[0]);var n=new Uint8Array(e);return n.set(t,e-t.length),xt(n)}(Lt(e._vs),32);e._vs=Ct(r);var i=r[0]>=128?1:0;null==e.recoveryParam?e.recoveryParam=i:e.recoveryParam!==i&&Nt.throwArgumentError("signature recoveryParam mismatch _vs","signature",t),r[0]&=127;var o=Ct(r);null==e.s?e.s=o:e.s!==o&&Nt.throwArgumentError("signature v mismatch _vs","signature",t)}if(null==e.recoveryParam)null==e.v?Nt.throwArgumentError("signature missing v and recoveryParam","signature",t):0===e.v||1===e.v?e.recoveryParam=e.v:e.recoveryParam=1-e.v%2;else if(null==e.v)e.v=27+e.recoveryParam;else{var a=0===e.v||1===e.v?e.v:1-e.v%2;e.recoveryParam!==a&&Nt.throwArgumentError("signature recoveryParam mismatch v","signature",t)}null!=e.r&&St(e.r)?e.r=Ot(e.r,32):Nt.throwArgumentError("signature missing or invalid r","signature",t),null!=e.s&&St(e.s)?e.s=Ot(e.s,32):Nt.throwArgumentError("signature missing or invalid s","signature",t);var s=Lt(e.s);s[0]>=128&&Nt.throwArgumentError("signature s out of range","signature",t),e.recoveryParam&&(s[0]|=128);var u=Ct(s);e._vs&&(St(e._vs)||Nt.throwArgumentError("signature invalid _vs","signature",t),e._vs=Ot(e._vs,32)),null==e._vs?e._vs=u:e._vs!==u&&Nt.throwArgumentError("signature _vs mismatch v and s","signature",t)}return e.yParityAndS=e._vs,e.compact=e.r+e.yParityAndS.substring(2),e}function Pt(t){return"0x"+yt.keccak_256(Lt(t))}var _t={exports:{}},Bt=function(t){var e=t.default;if("function"==typeof e){var n=function(){return e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach((function(e){var r=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(n,e,r.get?r:{enumerable:!0,get:function(){return t[e]}})})),n}(Object.freeze({__proto__:null,default:{}}));!function(t){!function(t,e){function n(t,e){if(!t)throw new Error(e||"Assertion failed")}function r(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function i(t,e,n){if(i.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&(("le"===e||"be"===e)&&(n=e,e=10),this._init(t||0,e||10,n||"be"))}var o;"object"==I(t)?t.exports=i:e.BN=i,i.BN=i,i.wordSize=26;try{o=("undefined"==typeof window?"undefined":I(window))<"u"&&I(window.Buffer)<"u"?window.Buffer:Bt.Buffer}catch(t){}function a(t,e){var r=t.charCodeAt(e);return r>=48&&r<=57?r-48:r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:void n(!1,"Invalid character in "+t)}function s(t,e,n){var r=a(t,n);return n-1>=e&&(r|=a(t,n-1)<<4),r}function u(t,e,r,i){for(var o=0,a=0,s=Math.min(t.length,r),u=e;u=49?c-49+10:c>=17?c-17+10:c,n(c>=0&&a0?t:e},i.min=function(t,e){return t.cmp(e)<0?t:e},i.prototype._init=function(t,e,r){if("number"==typeof t)return this._initNumber(t,e,r);if("object"==I(t))return this._initArray(t,e,r);"hex"===e&&(e=16),n(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===r)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},i.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=s(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},i.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,c=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},i.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},("undefined"==typeof Symbol?"undefined":I(Symbol))<"u"&&"function"==typeof Symbol.for)try{i.prototype[Symbol.for("nodejs.util.inspect.custom")]=l}catch(t){i.prototype.inspect=l}else i.prototype.inspect=l;function l(){return(this.red?""}var h=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],d=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],f=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}i.prototype.toString=function(t,e){var r;if(e=0|e||1,16===(t=t||10)||"hex"===t){r="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),r=0!==o||a!==this.length-1?h[6-u.length]+u+r:u+r}for(0!==o&&(r=o.toString(16)+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(t===(0|t)&&t>=2&&t<=36){var c=d[t],l=f[t];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var y=p.modrn(l).toString(t);r=(p=p.idivn(l)).isZero()?y+r:h[c-y.length]+y+r}for(this.isZero()&&(r="0"+r);r.length%e!=0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}n(!1,"Base should be between 2 and 36")},i.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},i.prototype.toJSON=function(){return this.toString(16,2)},o&&(i.prototype.toBuffer=function(t,e){return this.toArrayLike(o,t,e)}),i.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},i.prototype.toArrayLike=function(t,e,r){this._strip();var i=this.byteLength(),o=r||Math.max(1,i);n(i<=o,"byte array longer than desired length"),n(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},i.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?i.prototype._countBits=function(t){return 32-Math.clz32(t)}:i.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},i.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 8191&e||(n+=13,e>>>=13),127&e||(n+=7,e>>>=7),15&e||(n+=4,e>>>=4),3&e||(n+=2,e>>>=2),1&e||n++,n},i.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},i.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},i.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},i.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},i.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},i.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},i.prototype.inotn=function(t){n("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),r=t%26;this._expand(e),r>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-r),this._strip()},i.prototype.notn=function(t){return this.clone().inotn(t)},i.prototype.setn=function(t,e){n("number"==typeof t&&t>=0);var r=t/26|0,i=t%26;return this._expand(r+1),this.words[r]=e?this.words[r]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},i.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function m(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function g(t,e,n){return m(t,e,n)}Math.imul||(y=p),i.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?y(this,t,e):n<63?p(this,t,e):n<1024?m(this,t,e):g(this,t,e)},i.prototype.mul=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},i.prototype.mulf=function(t){var e=new i(null);return e.words=new Array(this.length+t.length),g(this,t,e)},i.prototype.imul=function(t){return this.clone().mulTo(t,this)},i.prototype.imuln=function(t){var e=t<0;e&&(t=-t),n("number"==typeof t),n(t<67108864);for(var r=0,i=0;i>=26,r+=o/67108864|0,r+=a>>>26,this.words[i]=67108863&a}return 0!==r&&(this.words[i]=r,this.length++),e?this.ineg():this},i.prototype.muln=function(t){return this.clone().imuln(t)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new i(1);for(var n=this,r=0;r=0);var e,r=t%26,i=(t-r)/26,o=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(e=0;e>>26-r}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},i.prototype.ishrn=function(t,e,r){return n(0===this.negative),this.iushrn(t,e,r)},i.prototype.shln=function(t){return this.clone().ishln(t)},i.prototype.ushln=function(t){return this.clone().iushln(t)},i.prototype.shrn=function(t){return this.clone().ishrn(t)},i.prototype.ushrn=function(t){return this.clone().iushrn(t)},i.prototype.testn=function(t){n("number"==typeof t&&t>=0);var e=t%26,r=(t-e)/26,i=1<=0);var e=t%26,r=(t-e)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==e&&r++,this.length=Math.min(r,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},i.prototype.isubn=function(t){if(n("number"==typeof t),n(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+r]=67108863&a}for(;i>26,this.words[i+r]=67108863&a;if(0===s)return this._strip();for(n(-1===s),s=0,i=0;i>26,this.words[i]=67108863&a;return this.negative=1,this._strip()},i.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),o=t,a=0|o.words[o.length-1];0!=(n=26-this._countBits(a))&&(o=o.ushln(n),r.iushln(n),a=0|o.words[o.length-1]);var s,u=r.length-o.length;if("mod"!==e){(s=new i(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[o.length+h])+(0|r.words[o.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(o,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(o,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},i.prototype.divmod=function(t,e,r){return n(!t.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(o=s.div.neg()),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.iadd(t)),{div:o,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(o=s.div.neg()),{div:o,mod:s.mod}):this.negative&t.negative?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),r&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new i(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new i(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new i(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,a,s},i.prototype.div=function(t){return this.divmod(t,"div",!1).div},i.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},i.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},i.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},i.prototype.modrn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(r*i+(0|this.words[o]))%t;return e?-i:i},i.prototype.modn=function(t){return this.modrn(t)},i.prototype.idivn=function(t){var e=t<0;e&&(t=-t),n(t<=67108863);for(var r=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*r;this.words[i]=o/t|0,r=o%t}return this._strip(),e?this.ineg():this},i.prototype.divn=function(t){return this.clone().idivn(t)},i.prototype.egcd=function(t){n(0===t.negative),n(!t.isZero());var e=this,r=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new i(1),a=new i(0),s=new i(0),u=new i(1),c=0;e.isEven()&&r.isEven();)e.iushrn(1),r.iushrn(1),++c;for(var l=r.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;!(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(l),a.isub(h)),o.iushrn(1),a.iushrn(1);for(var p=0,y=1;!(r.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(r)>=0?(e.isub(r),o.isub(s),a.isub(u)):(r.isub(e),s.isub(o),u.isub(a))}return{a:s,b:u,gcd:r.iushln(c)}},i.prototype._invmp=function(t){n(0===t.negative),n(!t.isZero());var e,r=this,o=t.clone();r=0!==r.negative?r.umod(t):r.clone();for(var a=new i(1),s=new i(0),u=o.clone();r.cmpn(1)>0&&o.cmpn(1)>0;){for(var c=0,l=1;!(r.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(r.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;!(o.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(o.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);r.cmp(o)>=0?(r.isub(o),a.isub(s)):(o.isub(r),s.isub(a))}return(e=0===r.cmpn(1)?a:s).cmpn(0)<0&&e.iadd(t),e},i.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},i.prototype.invm=function(t){return this.egcd(t).a.umod(t)},i.prototype.isEven=function(){return 0==(1&this.words[0])},i.prototype.isOdd=function(){return 1==(1&this.words[0])},i.prototype.andln=function(t){return this.words[0]&t},i.prototype.bincn=function(t){n("number"==typeof t);var e=t%26,r=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(t){var e,r=t<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this._strip(),this.length>1)e=1;else{r&&(t=-t),n(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},i.prototype.gtn=function(t){return 1===this.cmpn(t)},i.prototype.gt=function(t){return 1===this.cmp(t)},i.prototype.gten=function(t){return this.cmpn(t)>=0},i.prototype.gte=function(t){return this.cmp(t)>=0},i.prototype.ltn=function(t){return-1===this.cmpn(t)},i.prototype.lt=function(t){return-1===this.cmp(t)},i.prototype.lten=function(t){return this.cmpn(t)<=0},i.prototype.lte=function(t){return this.cmp(t)<=0},i.prototype.eqn=function(t){return 0===this.cmpn(t)},i.prototype.eq=function(t){return 0===this.cmp(t)},i.red=function(t){return new E(t)},i.prototype.toRed=function(t){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(t){return this.red=t,this},i.prototype.forceRed=function(t){return n(!this.red,"Already a number in reduction context"),this._forceRed(t)},i.prototype.redAdd=function(t){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},i.prototype.redIAdd=function(t){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},i.prototype.redSub=function(t){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},i.prototype.redISub=function(t){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},i.prototype.redShl=function(t){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},i.prototype.redMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},i.prototype.redIMul=function(t){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},i.prototype.redSqr=function(){return n(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},i.prototype.redISqr=function(){return n(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},i.prototype.redSqrt=function(){return n(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},i.prototype.redInvm=function(){return n(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},i.prototype.redNeg=function(){return n(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},i.prototype.redPow=function(t){return n(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var v={k256:null,p224:null,p192:null,p25519:null};function w(t,e){this.name=t,this.p=new i(e,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function b(){w.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function M(){w.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function A(){w.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){w.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=i._prime(t);this.m=e.p,this.prime=e}else n(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new i(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}w.prototype._tmp=function(){var t=new i(null);return t.words=new Array(Math.ceil(this.n/13)),t},w.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},w.prototype.split=function(t,e){t.iushrn(this.n,0,e)},w.prototype.imulK=function(t){return t.imul(this.k)},r(b,w),b.prototype.split=function(t,e){for(var n=4194303,r=Math.min(t.length,9),i=0;i>>22,o=a}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},b.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},i._prime=function(t){if(v[t])return v[t];var e;if("k256"===t)e=new b;else if("p224"===t)e=new M;else if("p192"===t)e=new A;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return v[t]=e,e},E.prototype._verify1=function(t){n(0===t.negative,"red works only with positives"),n(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){n(0==(t.negative|e.negative),"red works only with positives"),n(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(c(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(n(e%2==1),3===e){var r=this.m.add(new i(1)).iushrn(2);return this.pow(t,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var s=new i(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new i(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,o),d=this.pow(t,o.addn(1).iushrn(1)),f=this.pow(t,o),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();n(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(o=this.mul(o,n[a]),s=0,a=0)):s=0}u=26}return o},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},i.mont=function(t){return new x(t)},r(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new i(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(r).iushrn(this.shift),a=o;return o.cmp(this.m)>=0?a=o.isub(this.m):o.cmpn(0)<0&&(a=o.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,ht)}(_t);var Rt=_t.exports,Ut="bignumber/5.7.0",Qt=Rt.BN,Yt=new It(Ut),Wt={},Ft=9007199254740991,Vt=!1,Ht=function(){function t(e,n){v(this,t),e!==Wt&&Yt.throwError("cannot call constructor directly; use BigNumber.from",It.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=n,this._isBigNumber=!0,Object.freeze(this)}return b(t,[{key:"fromTwos",value:function(t){return qt(Zt(this).fromTwos(t))}},{key:"toTwos",value:function(t){return qt(Zt(this).toTwos(t))}},{key:"abs",value:function(){return"-"===this._hex[0]?t.from(this._hex.substring(1)):this}},{key:"add",value:function(t){return qt(Zt(this).add(Zt(t)))}},{key:"sub",value:function(t){return qt(Zt(this).sub(Zt(t)))}},{key:"div",value:function(e){return t.from(e).isZero()&&Jt("division-by-zero","div"),qt(Zt(this).div(Zt(e)))}},{key:"mul",value:function(t){return qt(Zt(this).mul(Zt(t)))}},{key:"mod",value:function(t){var e=Zt(t);return e.isNeg()&&Jt("division-by-zero","mod"),qt(Zt(this).umod(e))}},{key:"pow",value:function(t){var e=Zt(t);return e.isNeg()&&Jt("negative-power","pow"),qt(Zt(this).pow(e))}},{key:"and",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","and"),qt(Zt(this).and(e))}},{key:"or",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","or"),qt(Zt(this).or(e))}},{key:"xor",value:function(t){var e=Zt(t);return(this.isNegative()||e.isNeg())&&Jt("unbound-bitwise-result","xor"),qt(Zt(this).xor(e))}},{key:"mask",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","mask"),qt(Zt(this).maskn(t))}},{key:"shl",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","shl"),qt(Zt(this).shln(t))}},{key:"shr",value:function(t){return(this.isNegative()||t<0)&&Jt("negative-width","shr"),qt(Zt(this).shrn(t))}},{key:"eq",value:function(t){return Zt(this).eq(Zt(t))}},{key:"lt",value:function(t){return Zt(this).lt(Zt(t))}},{key:"lte",value:function(t){return Zt(this).lte(Zt(t))}},{key:"gt",value:function(t){return Zt(this).gt(Zt(t))}},{key:"gte",value:function(t){return Zt(this).gte(Zt(t))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return Zt(this).isZero()}},{key:"toNumber",value:function(){try{return Zt(this).toNumber()}catch(t){Jt("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(t){}return Yt.throwError("this platform does not support BigInt",It.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?Vt||(Vt=!0,Yt.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?Yt.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",It.errors.UNEXPECTED_ARGUMENT,{}):Yt.throwError("BigNumber.toString does not accept parameters",It.errors.UNEXPECTED_ARGUMENT,{})),Zt(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(t){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(e){if(e instanceof t)return e;if("string"==typeof e)return e.match(/^-?0x[0-9a-f]+$/i)?new t(Wt,Gt(e)):e.match(/^-?[0-9]+$/)?new t(Wt,Gt(new Qt(e))):Yt.throwArgumentError("invalid BigNumber string","value",e);if("number"==typeof e)return e%1&&Jt("underflow","BigNumber.from",e),(e>=Ft||e<=-Ft)&&Jt("overflow","BigNumber.from",e),t.from(String(e));var n=e;if("bigint"==typeof n)return t.from(n.toString());if(Tt(n))return t.from(Ct(n));if(n)if(n.toHexString){var r=n.toHexString();if("string"==typeof r)return t.from(r)}else{var i=n._hex;if(null==i&&"BigNumber"===n.type&&(i=n.hex),"string"==typeof i&&(St(i)||"-"===i[0]&&St(i.substring(1))))return t.from(i)}return Yt.throwArgumentError("invalid BigNumber value","value",e)}},{key:"isBigNumber",value:function(t){return!(!t||!t._isBigNumber)}}])}();function Gt(t){if("string"!=typeof t)return Gt(t.toString(16));if("-"===t[0])return"-"===(t=t.substring(1))[0]&&Yt.throwArgumentError("invalid hex","value",t),"0x00"===(t=Gt(t))?t:"-"+t;if("0x"!==t.substring(0,2)&&(t="0x"+t),"0x"===t)return"0x00";for(t.length%2&&(t="0x0"+t.substring(2));t.length>4&&"0x00"===t.substring(0,4);)t="0x"+t.substring(4);return t}function qt(t){return Ht.from(Gt(t))}function Zt(t){var e=Ht.from(t).toHexString();return"-"===e[0]?new Qt("-"+e.substring(3),16):new Qt(e.substring(2),16)}function Jt(t,e,n){var r={fault:t,operation:e};return null!=n&&(r.value=n),Yt.throwError(t,It.errors.NUMERIC_FAULT,r)}var Xt=new It(Ut),Kt={},$t=Ht.from(0),te=Ht.from(-1);function ee(t,e,n,r){var i={fault:e,operation:n};return void 0!==r&&(i.value=r),Xt.throwError(t,It.errors.NUMERIC_FAULT,i)}for(var ne="0";ne.length<256;)ne+=ne;function re(t){if("number"!=typeof t)try{t=Ht.from(t).toNumber()}catch(t){}return"number"==typeof t&&t>=0&&t<=256&&!(t%1)?"1"+ne.substring(0,t):Xt.throwArgumentError("invalid decimal size","decimals",t)}function ie(t,e){null==e&&(e=0);var n=re(e),r=(t=Ht.from(t)).lt($t);r&&(t=t.mul(te));for(var i=t.mod(n).toString();i.length2&&Xt.throwArgumentError("too many decimal points","value",t);var o=i[0],a=i[1];for(o||(o="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>n.length-1&&ee("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length80&&Xt.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",i),new t(Kt,n,r,i)}}])}(),ce=function(){function t(e,n,r,i){v(this,t),e!==Kt&&Xt.throwError("cannot use FixedNumber constructor; use FixedNumber.from",It.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=i,this._hex=n,this._value=r,this._isFixedNumber=!0,Object.freeze(this)}return b(t,[{key:"_checkFormat",value:function(t){this.format.name!==t.format.name&&Xt.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",t)}},{key:"addUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.add(r),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.sub(r),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.mul(r).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(e){this._checkFormat(e);var n=oe(this._value,this.format.decimals),r=oe(e._value,e.format.decimals);return t.fromValue(n.mul(this.format._multiplier).div(r),this.format.decimals,this.format)}},{key:"floor",value:function(){var e=this.toString().split(".");1===e.length&&e.push("0");var n=t.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return this.isNegative()&&r&&(n=n.subUnsafe(le.toFormat(n.format))),n}},{key:"ceiling",value:function(){var e=this.toString().split(".");1===e.length&&e.push("0");var n=t.from(e[0],this.format),r=!e[1].match(/^(0*)$/);return!this.isNegative()&&r&&(n=n.addUnsafe(le.toFormat(n.format))),n}},{key:"round",value:function(e){null==e&&(e=0);var n=this.toString().split(".");if(1===n.length&&n.push("0"),(e<0||e>80||e%1)&&Xt.throwArgumentError("invalid decimal count","decimals",e),n[1].length<=e)return this;var r=t.from("1"+ne.substring(0,e),this.format),i=he.toFormat(this.format);return this.mulUnsafe(r).addUnsafe(i).floor().divUnsafe(r)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(t){return null==t?this._hex:(t%8&&Xt.throwArgumentError("invalid byte width","width",t),Ot(Ht.from(this._hex).fromTwos(this.format.width).toTwos(t).toHexString(),t/8))}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(e){return t.fromString(this._value,e)}}],[{key:"fromValue",value:function(e,n,r){return null==r&&null!=n&&!function(t){return null!=t&&(Ht.isBigNumber(t)||"number"==typeof t&&t%1==0||"string"==typeof t&&!!t.match(/^-?[0-9]+$/)||St(t)||"bigint"==typeof t||Tt(t))}(n)&&(r=n,n=null),null==n&&(n=0),null==r&&(r="fixed"),t.fromString(ie(e,n),ue.from(r))}},{key:"fromString",value:function(e,n){null==n&&(n="fixed");var r=ue.from(n),i=oe(e,r.decimals);!r.signed&&i.lt($t)&&ee("unsigned value cannot be negative","overflow","value",e);var o=null;o=r.signed?i.toTwos(r.width).toHexString():Ot(o=i.toHexString(),r.width/8);var a=ie(i,r.decimals);return new t(Kt,o,a,r)}},{key:"fromBytes",value:function(e,n){null==n&&(n="fixed");var r=ue.from(n);if(Lt(e).length>r.width/8)throw new Error("overflow");var i=Ht.from(e);r.signed&&(i=i.fromTwos(r.width));var o=i.toTwos((r.signed?0:1)+r.width).toHexString(),a=ie(i,r.decimals);return new t(Kt,o,a,r)}},{key:"from",value:function(e,n){if("string"==typeof e)return t.fromString(e,n);if(Tt(e))return t.fromBytes(e,n);try{return t.fromValue(e,0,n)}catch(t){if(t.code!==It.errors.INVALID_ARGUMENT)throw t}return Xt.throwArgumentError("invalid FixedNumber value","value",e)}},{key:"isFixedNumber",value:function(t){return!(!t||!t._isFixedNumber)}}])}(),le=ce.from(1),he=ce.from("0.5"),de=new It("strings/5.7.0");function fe(t,e,n,r,i){if(t===se.BAD_PREFIX||t===se.UNEXPECTED_CONTINUE){for(var o=0,a=e+1;a>6==2;a++)o++;return o}return t===se.OVERRUN?n.length-e-1:0}function pe(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ae.current;e!=ae.current&&(de.checkNormalize(),t=t.normalize(e));for(var n=[],r=0;r>6|192),n.push(63&i|128);else if(55296==(64512&i)){r++;var o=t.charCodeAt(r);if(r>=t.length||56320!=(64512&o))throw new Error("invalid utf-8 string");var a=65536+((1023&i)<<10)+(1023&o);n.push(a>>18|240),n.push(a>>12&63|128),n.push(a>>6&63|128),n.push(63&a|128)}else n.push(i>>12|224),n.push(i>>6&63|128),n.push(63&i|128)}return Lt(n)}function ye(t,e){e||(e=function(t){return[parseInt(t,16)]});var n=0,r={};return t.split(",").forEach((function(t){var i=t.split(":");n+=parseInt(i[0],16),r[n]=e(i[1])})),r}function me(t){var e=0;return t.split(",").map((function(t){var n=t.split("-");return 1===n.length?n[1]="0":""===n[1]&&(n[1]="1"),{l:e+parseInt(n[0],16),h:e=parseInt(n[1],16)}}))}!function(t){t.current="",t.NFC="NFC",t.NFD="NFD",t.NFKC="NFKC",t.NFKD="NFKD"}(ae||(ae={})),function(t){t.UNEXPECTED_CONTINUE="unexpected continuation byte",t.BAD_PREFIX="bad codepoint prefix",t.OVERRUN="string overrun",t.MISSING_CONTINUE="missing continuation byte",t.OUT_OF_RANGE="out of UTF-8 range",t.UTF16_SURROGATE="UTF-16 surrogate",t.OVERLONG="overlong representation"}(se||(se={})),Object.freeze({error:function(t,e,n,r,i){return de.throwArgumentError("invalid codepoint at offset ".concat(e,"; ").concat(t),"bytes",n)},ignore:fe,replace:function(t,e,n,r,i){return t===se.OVERLONG?(r.push(i),0):(r.push(65533),fe(t,e,n))}}),me("221,13-1b,5f-,40-10,51-f,11-3,3-3,2-2,2-4,8,2,15,2d,28-8,88,48,27-,3-5,11-20,27-,8,28,3-5,12,18,b-a,1c-4,6-16,2-d,2-2,2,1b-4,17-9,8f-,10,f,1f-2,1c-34,33-14e,4,36-,13-,6-2,1a-f,4,9-,3-,17,8,2-2,5-,2,8-,3-,4-8,2-3,3,6-,16-6,2-,7-3,3-,17,8,3,3,3-,2,6-3,3-,4-a,5,2-6,10-b,4,8,2,4,17,8,3,6-,b,4,4-,2-e,2-4,b-10,4,9-,3-,17,8,3-,5-,9-2,3-,4-7,3-3,3,4-3,c-10,3,7-2,4,5-2,3,2,3-2,3-2,4-2,9,4-3,6-2,4,5-8,2-e,d-d,4,9,4,18,b,6-3,8,4,5-6,3-8,3-3,b-11,3,9,4,18,b,6-3,8,4,5-6,3-6,2,3-3,b-11,3,9,4,18,11-3,7-,4,5-8,2-7,3-3,b-11,3,13-2,19,a,2-,8-2,2-3,7,2,9-11,4-b,3b-3,1e-24,3,2-,3,2-,2-5,5,8,4,2,2-,3,e,4-,6,2,7-,b-,3-21,49,23-5,1c-3,9,25,10-,2-2f,23,6,3,8-2,5-5,1b-45,27-9,2a-,2-3,5b-4,45-4,53-5,8,40,2,5-,8,2,5-,28,2,5-,20,2,5-,8,2,5-,8,8,18,20,2,5-,8,28,14-5,1d-22,56-b,277-8,1e-2,52-e,e,8-a,18-8,15-b,e,4,3-b,5e-2,b-15,10,b-5,59-7,2b-555,9d-3,5b-5,17-,7-,27-,7-,9,2,2,2,20-,36,10,f-,7,14-,4,a,54-3,2-6,6-5,9-,1c-10,13-1d,1c-14,3c-,10-6,32-b,240-30,28-18,c-14,a0,115-,3,66-,b-76,5,5-,1d,24,2,5-2,2,8-,35-2,19,f-10,1d-3,311-37f,1b,5a-b,d7-19,d-3,41,57-,68-4,29-3,5f,29-37,2e-2,25-c,2c-2,4e-3,30,78-3,64-,20,19b7-49,51a7-59,48e-2,38-738,2ba5-5b,222f-,3c-94,8-b,6-4,1b,6,2,3,3,6d-20,16e-f,41-,37-7,2e-2,11-f,5-b,18-,b,14,5-3,6,88-,2,bf-2,7-,7-,7-,4-2,8,8-9,8-2ff,20,5-b,1c-b4,27-,27-cbb1,f7-9,28-2,b5-221,56,48,3-,2-,3-,5,d,2,5,3,42,5-,9,8,1d,5,6,2-2,8,153-3,123-3,33-27fd,a6da-5128,21f-5df,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3-fffd,3,2-1d,61-ff7d"),"ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(t){return parseInt(t,16)})),ye("b5:3bc,c3:ff,7:73,2:253,5:254,3:256,1:257,5:259,1:25b,3:260,1:263,2:269,1:268,5:26f,1:272,2:275,7:280,3:283,5:288,3:28a,1:28b,5:292,3f:195,1:1bf,29:19e,125:3b9,8b:3b2,1:3b8,1:3c5,3:3c6,1:3c0,1a:3ba,1:3c1,1:3c3,2:3b8,1:3b5,1bc9:3b9,1c:1f76,1:1f77,f:1f7a,1:1f7b,d:1f78,1:1f79,1:1f7c,1:1f7d,107:63,5:25b,4:68,1:68,1:68,3:69,1:69,1:6c,3:6e,4:70,1:71,1:72,1:72,1:72,7:7a,2:3c9,2:7a,2:6b,1:e5,1:62,1:63,3:65,1:66,2:6d,b:3b3,1:3c0,6:64,1b574:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3,20:3b8,1a:3c3"),ye("179:1,2:1,2:1,5:1,2:1,a:4f,a:1,8:1,2:1,2:1,3:1,5:1,3:1,4:1,2:1,3:1,4:1,8:2,1:1,2:2,1:1,2:2,27:2,195:26,2:25,1:25,1:25,2:40,2:3f,1:3f,33:1,11:-6,1:-9,1ac7:-3a,6d:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,b:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,c:-8,2:-8,2:-8,2:-8,9:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,1:-8,49:-8,1:-8,1:-4a,1:-4a,d:-56,1:-56,1:-56,1:-56,d:-8,1:-8,f:-8,1:-8,3:-7"),ye("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(t){if(t.length%4!=0)throw new Error("bad data");for(var e=[],n=0;n0&&Array.isArray(e)?t(e,i-1):n.push(e)}))}(t,e),n}function we(t){return 1&t?~t>>1:t>>1}function be(t,e){for(var n=Array(t),r=0,i=-1;r>--c&1}for(var d=Math.pow(2,31),f=d>>>1,p=f>>1,y=d-1,m=0,g=0;g<31;g++)m=m<<1|h();for(var v=[],w=0,b=d;;){for(var M=Math.floor(((m-w+1)*i-1)/b),A=0,I=r;I-A>1;){var N=A+I>>>1;M>>1|h(),E=E<<1^f,x=(x^f)<<1|f|1;w=E,b=1+x-E}var k=r-4;return v.map((function(e){switch(e-k){case 3:return k+65792+(t[u++]<<16|t[u++]<<8|t[u++]);case 2:return k+256+(t[u++]<<8|t[u++]);case 1:return k+t[u++];default:return e-1}}))}(t))}(function(t){t=atob(t);for(var e=[],n=0;n>=1),check:2==o}}()}(xe),new It(ge),new Uint8Array(32).fill(0),new It("rlp/5.7.0");var Te=new It("address/5.7.0");function Le(t){St(t,20)||Te.throwArgumentError("invalid address","address",t);for(var e=(t=t.toLowerCase()).substring(2).split(""),n=new Uint8Array(40),r=0;r<40;r++)n[r]=e[r].charCodeAt(0);for(var i=Lt(Pt(n)),o=0;o<40;o+=2)i[o>>1]>>4>=8&&(e[o]=e[o].toUpperCase()),(15&i[o>>1])>=8&&(e[o+1]=e[o+1].toUpperCase());return"0x"+e.join("")}for(var Se={},je=0;je<10;je++)Se[String(je)]=String(je);for(var Ce=0;Ce<26;Ce++)Se[String.fromCharCode(65+Ce)]=String(10+Ce);var De=Math.floor(function(t){return Math.log10?Math.log10(t):Math.log(t)/Math.LN10}(9007199254740991));function Oe(t,e,n){Object.defineProperty(t,e,{enumerable:!0,value:n,writable:!1})}new It("properties/5.7.0"),new It(ge),new Uint8Array(32).fill(0),Ht.from(-1);var ze=Ht.from(0),Pe=Ht.from(1);Ht.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),Ot(Pe.toHexString(),32),Ot(ze.toHexString(),32);var _e={},Be={},Re=Ue;function Ue(t,e){if(!t)throw new Error(e||"Assertion failed")}Ue.equal=function(t,e,n){if(t!=e)throw new Error(n||"Assertion failed: "+t+" != "+e)};var Qe={exports:{}};"function"==typeof Object.create?Qe.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:Qe.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}};var Ye=Re,We=Qe.exports;function Fe(t,e){return!(55296!=(64512&t.charCodeAt(e))||e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1))}function Ve(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function He(t){return 1===t.length?"0"+t:t}function Ge(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}Be.inherits=We,Be.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),i=0;i>6|192,n[r++]=63&o|128):Fe(t,i)?(o=65536+((1023&o)<<10)+(1023&t.charCodeAt(++i)),n[r++]=o>>18|240,n[r++]=o>>12&63|128,n[r++]=o>>6&63|128,n[r++]=63&o|128):(n[r++]=o>>12|224,n[r++]=o>>6&63|128,n[r++]=63&o|128)}else for(i=0;i>>0}return o},Be.split32=function(t,e){for(var n=new Array(4*t.length),r=0,i=0;r>>24,n[i+1]=o>>>16&255,n[i+2]=o>>>8&255,n[i+3]=255&o):(n[i+3]=o>>>24,n[i+2]=o>>>16&255,n[i+1]=o>>>8&255,n[i]=255&o)}return n},Be.rotr32=function(t,e){return t>>>e|t<<32-e},Be.rotl32=function(t,e){return t<>>32-e},Be.sum32=function(t,e){return t+e>>>0},Be.sum32_3=function(t,e,n){return t+e+n>>>0},Be.sum32_4=function(t,e,n,r){return t+e+n+r>>>0},Be.sum32_5=function(t,e,n,r,i){return t+e+n+r+i>>>0},Be.sum64=function(t,e,n,r){var i=t[e],o=r+t[e+1]>>>0,a=(o>>0,t[e+1]=o},Be.sum64_hi=function(t,e,n,r){return(e+r>>>0>>0},Be.sum64_lo=function(t,e,n,r){return e+r>>>0},Be.sum64_4_hi=function(t,e,n,r,i,o,a,s){var u=0,c=e;return u+=(c=c+r>>>0)>>0)>>0)>>0},Be.sum64_4_lo=function(t,e,n,r,i,o,a,s){return e+r+o+s>>>0},Be.sum64_5_hi=function(t,e,n,r,i,o,a,s,u,c){var l=0,h=e;return l+=(h=h+r>>>0)>>0)>>0)>>0)>>0},Be.sum64_5_lo=function(t,e,n,r,i,o,a,s,u,c){return e+r+o+s+c>>>0},Be.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},Be.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},Be.shr64_hi=function(t,e,n){return t>>>n},Be.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0};var qe={},Ze=Be,Je=Re;function Xe(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}qe.BlockHash=Xe,Xe.prototype.update=function(t,e){if(t=Ze.toArray(t,e),this.pending?this.pending=this.pending.concat(t):this.pending=t,this.pendingTotal+=t.length,this.pending.length>=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=Ze.join32(t,0,t.length-n,this.endian);for(var r=0;r>>24&255,r[i++]=t>>>16&255,r[i++]=t>>>8&255,r[i++]=255&t}else for(r[i++]=255&t,r[i++]=t>>>8&255,r[i++]=t>>>16&255,r[i++]=t>>>24&255,r[i++]=0,r[i++]=0,r[i++]=0,r[i++]=0,o=8;o>>3},$e.g1_256=function(t){return tn(t,17)^tn(t,19)^t>>>10};var on=Be,an=qe,sn=$e,un=on.rotl32,cn=on.sum32,ln=on.sum32_5,hn=sn.ft_1,dn=an.BlockHash,fn=[1518500249,1859775393,2400959708,3395469782];function pn(){if(!(this instanceof pn))return new pn;dn.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}on.inherits(pn,dn);var yn=pn;pn.blockSize=512,pn.outSize=160,pn.hmacStrength=80,pn.padLength=64,pn.prototype._update=function(t,e){for(var n=this.W,r=0;r<16;r++)n[r]=t[e+r];for(;rthis.blockSize&&(t=(new this.Hash).update(t).digest()),Or(t.length<=this.blockSize);for(var e=t.length;e>8,a=255&i;o?n.push(o,a):n.push(a)}return n},n.zero2=r,n.toHex=i,n.encode=function(t,e){return"hex"===e?i(t):t}})),Qr=_r((function(t,e){var n=e;n.assert=Br,n.toArray=Ur.toArray,n.zero2=Ur.zero2,n.toHex=Ur.toHex,n.encode=Ur.encode,n.getNAF=function(t,e,n){var r=new Array(Math.max(t.bitLength(),n)+1);r.fill(0);for(var i=1<(i>>1)-1?(i>>1)-u:u,o.isubn(s)):s=0,r[a]=s,o.iushrn(1)}return r},n.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var r,i=0,o=0;t.cmpn(-i)>0||e.cmpn(-o)>0;){var a,s,u=t.andln(3)+i&3,c=e.andln(3)+o&3;3===u&&(u=-1),3===c&&(c=-1),a=1&u?3!=(r=t.andln(7)+i&7)&&5!==r||2!==c?u:-u:0,n[0].push(a),s=1&c?3!=(r=e.andln(7)+o&7)&&5!==r||2!==u?c:-c:0,n[1].push(s),2*i===a+1&&(i=1-i),2*o===s+1&&(o=1-o),t.iushrn(1),e.iushrn(1)}return n},n.cachedProperty=function(t,e,n){var r="_"+e;t.prototype[e]=function(){return void 0!==this[r]?this[r]:this[r]=n.call(this)}},n.parseBytes=function(t){return"string"==typeof t?n.toArray(t,"hex"):t},n.intFromLE=function(t){return new Rt(t,"hex","le")}})),Yr=Qr.getNAF,Wr=Qr.getJSF,Fr=Qr.assert;function Vr(t,e){this.type=t,this.p=new Rt(e.p,16),this.red=e.prime?Rt.red(e.prime):Rt.mont(this.p),this.zero=new Rt(0).toRed(this.red),this.one=new Rt(1).toRed(this.red),this.two=new Rt(2).toRed(this.red),this.n=e.n&&new Rt(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var Hr=Vr;function Gr(t,e){this.curve=t,this.type=e,this.precomputed=null}Vr.prototype.point=function(){throw new Error("Not implemented")},Vr.prototype.validate=function(){throw new Error("Not implemented")},Vr.prototype._fixedNafMul=function(t,e){Fr(t.precomputed);var n=t._getDoubles(),r=Yr(e,1,this._bitLength),i=(1<=o;u--)a=(a<<1)+r[u];s.push(a)}for(var c=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=i;h>0;h--){for(o=0;o=0;s--){for(var u=0;s>=0&&0===o[s];s--)u++;if(s>=0&&u++,a=a.dblp(u),s<0)break;var c=o[s];Fr(0!==c),a="affine"===t.type?c>0?a.mixedAdd(i[c-1>>1]):a.mixedAdd(i[-c-1>>1].neg()):c>0?a.add(i[c-1>>1]):a.add(i[-c-1>>1].neg())}return"affine"===t.type?a.toP():a},Vr.prototype._wnafMulAdd=function(t,e,n,r,i){var o,a,s,u=this._wnafT1,c=this._wnafT2,l=this._wnafT3,h=0;for(o=0;o=1;o-=2){var f=o-1,p=o;if(1===u[f]&&1===u[p]){var y=[e[f],null,null,e[p]];0===e[f].y.cmp(e[p].y)?(y[1]=e[f].add(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg())):0===e[f].y.cmp(e[p].y.redNeg())?(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].add(e[p].neg())):(y[1]=e[f].toJ().mixedAdd(e[p]),y[2]=e[f].toJ().mixedAdd(e[p].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],g=Wr(n[f],n[p]);for(h=Math.max(g[0].length,h),l[f]=new Array(h),l[p]=new Array(h),a=0;a=0;o--){for(var A=0;o>=0;){var I=!0;for(a=0;a=0&&A++,b=b.dblp(A),o<0)break;for(a=0;a0?s=c[a][N-1>>1]:N<0&&(s=c[a][-N-1>>1].neg()),b="affine"===s.type?b.mixedAdd(s):b.add(s))}}for(o=0;o=Math.ceil((t.bitLength()+1)/e.step)},Gr.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],r=this,i=0;i=0&&(o=e,a=n),r.negative&&(r=r.neg(),i=i.neg()),o.negative&&(o=o.neg(),a=a.neg()),[{a:r,b:i},{a:o,b:a}]},Jr.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],r=e[1],i=r.b.mul(t).divRound(this.n),o=n.b.neg().mul(t).divRound(this.n),a=i.mul(n.a),s=o.mul(r.a),u=i.mul(n.b),c=o.mul(r.b);return{k1:t.sub(a).sub(s),k2:u.add(c).neg()}},Jr.prototype.pointFromX=function(t,e){(t=new Rt(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),r=n.redSqrt();if(0!==r.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var i=r.fromRed().isOdd();return(e&&!i||!e&&i)&&(r=r.redNeg()),this.point(t,r)},Jr.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,r=this.a.redMul(e),i=e.redSqr().redMul(e).redIAdd(r).redIAdd(this.b);return 0===n.redSqr().redISub(i).cmpn(0)},Jr.prototype._endoWnafMulAdd=function(t,e,n){for(var r=this._endoWnafT1,i=this._endoWnafT2,o=0;o":""},Kr.prototype.isInfinity=function(){return this.inf},Kr.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),r=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,r)},Kr.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),r=t.redInvm(),i=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(r),o=i.redSqr().redISub(this.x.redAdd(this.x)),a=i.redMul(this.x.redSub(o)).redISub(this.y);return this.curve.point(o,a)},Kr.prototype.getX=function(){return this.x.fromRed()},Kr.prototype.getY=function(){return this.y.fromRed()},Kr.prototype.mul=function(t){return t=new Rt(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},Kr.prototype.mulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i):this.curve._wnafMulAdd(1,r,i,2)},Kr.prototype.jmulAdd=function(t,e,n){var r=[this,e],i=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(r,i,!0):this.curve._wnafMulAdd(1,r,i,2,!0)},Kr.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},Kr.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,r=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(r)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(r)}}}return e},Kr.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},qr($r,Hr.BasePoint),Jr.prototype.jpoint=function(t,e,n){return new $r(this,t,e,n)},$r.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),r=this.y.redMul(e).redMul(t);return this.curve.point(n,r)},$r.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},$r.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),r=this.x.redMul(e),i=t.x.redMul(n),o=this.y.redMul(e.redMul(t.z)),a=t.y.redMul(n.redMul(this.z)),s=r.redSub(i),u=o.redSub(a);if(0===s.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),h=r.redMul(c),d=u.redSqr().redIAdd(l).redISub(h).redISub(h),f=u.redMul(h.redISub(d)).redISub(o.redMul(l)),p=this.z.redMul(t.z).redMul(s);return this.curve.jpoint(d,f,p)},$r.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,r=t.x.redMul(e),i=this.y,o=t.y.redMul(e).redMul(this.z),a=n.redSub(r),s=i.redSub(o);if(0===a.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var u=a.redSqr(),c=u.redMul(a),l=n.redMul(u),h=s.redSqr().redIAdd(c).redISub(l).redISub(l),d=s.redMul(l.redISub(h)).redISub(i.redMul(c)),f=this.z.redMul(a);return this.curve.jpoint(h,d,f)},$r.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(i),0===this.x.cmp(n))return!0}},$r.prototype.inspect=function(){return this.isInfinity()?"":""},$r.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var ti=_r((function(t,e){var n=e;n.base=Hr,n.short=Xr,n.mont=null,n.edwards=null})),ei=_r((function(t,e){var n,r=e,i=Qr.assert;function o(t){"short"===t.type?this.curve=new ti.short(t):"edwards"===t.type?this.curve=new ti.edwards(t):this.curve=new ti.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,i(this.g.validate(),"Invalid curve"),i(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function a(t,e){Object.defineProperty(r,t,{configurable:!0,enumerable:!0,get:function(){var n=new o(e);return Object.defineProperty(r,t,{configurable:!0,enumerable:!0,value:n}),n}})}r.PresetCurve=o,a("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:_e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),a("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:_e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),a("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:_e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),a("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:_e.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),a("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:_e.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),a("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_e.sha256,gRed:!1,g:["9"]}),a("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:_e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=null.crash()}catch(t){n=void 0}a("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:_e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})}));function ni(t){if(!(this instanceof ni))return new ni(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=Ur.toArray(t.entropy,t.entropyEnc||"hex"),n=Ur.toArray(t.nonce,t.nonceEnc||"hex"),r=Ur.toArray(t.pers,t.persEnc||"hex");Br(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,r)}var ri=ni;ni.prototype._init=function(t,e,n){var r=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var i=0;i=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},ni.prototype.generate=function(t,e,n,r){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(r=n,n=e,e=null),n&&(n=Ur.toArray(n,r||"hex"),this._update(n));for(var i=[];i.length"};var si=Qr.assert;function ui(t,e){if(t instanceof ui)return t;this._importDER(t,e)||(si(t.r&&t.s,"Signature without r or s"),this.r=new Rt(t.r,16),this.s=new Rt(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}var ci=ui;function li(){this.place=0}function hi(t,e){var n=t[e.place++];if(!(128&n))return n;var r=15&n;if(0===r||r>4)return!1;for(var i=0,o=0,a=e.place;o>>=0;return!(i<=127)&&(e.place=a,i)}function di(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}ui.prototype._importDER=function(t,e){t=Qr.toArray(t,e);var n=new li;if(48!==t[n.place++])return!1;var r=hi(t,n);if(!1===r||r+n.place!==t.length||2!==t[n.place++])return!1;var i=hi(t,n);if(!1===i)return!1;var o=t.slice(n.place,i+n.place);if(n.place+=i,2!==t[n.place++])return!1;var a=hi(t,n);if(!1===a||t.length!==a+n.place)return!1;var s=t.slice(n.place,a+n.place);if(0===o[0]){if(!(128&o[1]))return!1;o=o.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new Rt(o),this.s=new Rt(s),this.recoveryParam=null,!0},ui.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=di(e),n=di(n);!(n[0]||128&n[1]);)n=n.slice(1);var r=[2];fi(r,e.length),(r=r.concat(e)).push(2),fi(r,n.length);var i=r.concat(n),o=[48];return fi(o,i.length),o=o.concat(i),Qr.encode(o,t)};var pi=function(){throw new Error("unsupported")},yi=Qr.assert;function mi(t){if(!(this instanceof mi))return new mi(t);"string"==typeof t&&(yi(Object.prototype.hasOwnProperty.call(ei,t),"Unknown curve "+t),t=ei[t]),t instanceof ei.PresetCurve&&(t={curve:t}),this.curve=t.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=t.curve.g,this.g.precompute(t.curve.n.bitLength()+1),this.hash=t.hash||t.curve.hash}var gi=mi;mi.prototype.keyPair=function(t){return new ai(this,t)},mi.prototype.keyFromPrivate=function(t,e){return ai.fromPrivate(this,t,e)},mi.prototype.keyFromPublic=function(t,e){return ai.fromPublic(this,t,e)},mi.prototype.genKeyPair=function(t){t||(t={});for(var e=new ri({hash:this.hash,pers:t.pers,persEnc:t.persEnc||"utf8",entropy:t.entropy||pi(this.hash.hmacStrength),entropyEnc:t.entropy&&t.entropyEnc||"utf8",nonce:this.n.toArray()}),n=this.n.byteLength(),r=this.n.sub(new Rt(2));;){var i=new Rt(e.generate(n));if(!(i.cmp(r)>0))return i.iaddn(1),this.keyFromPrivate(i)}},mi.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},mi.prototype.sign=function(t,e,n,r){"object"==I(n)&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new Rt(t,16));for(var i=this.n.byteLength(),o=e.getPrivate().toArray("be",i),a=t.toArray("be",i),s=new ri({hash:this.hash,entropy:o,nonce:a,pers:r.pers,persEnc:r.persEnc||"utf8"}),u=this.n.sub(new Rt(1)),c=0;;c++){var l=r.k?r.k(c):new Rt(s.generate(this.n.byteLength()));if(!((l=this._truncateToN(l,!0)).cmpn(1)<=0||l.cmp(u)>=0)){var h=this.g.mul(l);if(!h.isInfinity()){var d=h.getX(),f=d.umod(this.n);if(0!==f.cmpn(0)){var p=l.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(p=p.umod(this.n)).cmpn(0)){var y=(h.getY().isOdd()?1:0)|(0!==d.cmp(f)?2:0);return r.canonical&&p.cmp(this.nh)>0&&(p=this.n.sub(p),y^=1),new ci({r:f,s:p,recoveryParam:y})}}}}}},mi.prototype.verify=function(t,e,n,r){t=this._truncateToN(new Rt(t,16)),n=this.keyFromPublic(n,r);var i=(e=new ci(e,"hex")).r,o=e.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0||o.cmpn(1)<0||o.cmp(this.n)>=0)return!1;var a,s=o.invm(this.n),u=s.mul(t).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(u,n.getPublic(),c)).isInfinity()&&a.eqXToP(i):!(a=this.g.mulAdd(u,n.getPublic(),c)).isInfinity()&&0===a.getX().umod(this.n).cmp(i)},mi.prototype.recoverPubKey=function(t,e,n,r){yi((3&n)===n,"The recovery param is more than two bits"),e=new ci(e,r);var i=this.n,o=new Rt(t),a=e.r,s=e.s,u=1&n,c=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");a=c?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var l=e.r.invm(i),h=i.sub(o).mul(l).umod(i),d=s.mul(l).umod(i);return this.g.mulAdd(h,a,d)},mi.prototype.getKeyRecoveryParam=function(t,e,n,r){if(null!==(e=new ci(e,r)).recoveryParam)return e.recoveryParam;for(var i=0;i<4;i++){var o;try{o=this.recoverPubKey(t,e,i)}catch(t){continue}if(o.eq(n))return i}throw new Error("Unable to find valid recovery factor")};var vi=_r((function(t,e){var n=e;n.version="6.5.4",n.utils=Qr,n.rand=function(){throw new Error("unsupported")},n.curve=ti,n.curves=ei,n.ec=gi,n.eddsa=null})).ec,wi=new It("signing-key/5.7.0"),bi=null;function Mi(){return bi||(bi=new vi("secp256k1")),bi}var Ai,Ii=b((function t(e){v(this,t),Oe(this,"curve","secp256k1"),Oe(this,"privateKey",Ct(e)),32!==function(t){if("string"!=typeof t)t=Ct(t);else if(!St(t)||t.length%2)return null;return(t.length-2)/2}(this.privateKey)&&wi.throwArgumentError("invalid private key","privateKey","[[ REDACTED ]]");var n=Mi().keyFromPrivate(Lt(this.privateKey));Oe(this,"publicKey","0x"+n.getPublic(!1,"hex")),Oe(this,"compressedPublicKey","0x"+n.getPublic(!0,"hex")),Oe(this,"_isSigningKey",!0)}),[{key:"_addPoint",value:function(t){var e=Mi().keyFromPublic(Lt(this.publicKey)),n=Mi().keyFromPublic(Lt(t));return"0x"+e.pub.add(n.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(t){var e=Mi().keyFromPrivate(Lt(this.privateKey)),n=Lt(t);32!==n.length&&wi.throwArgumentError("bad digest length","digest",t);var r=e.sign(n,{canonical:!0});return zt({recoveryParam:r.recoveryParam,r:Ot("0x"+r.r.toString(16),32),s:Ot("0x"+r.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(t){var e=Mi().keyFromPrivate(Lt(this.privateKey)),n=Mi().keyFromPublic(Lt(Ni(t)));return Ot("0x"+e.derive(n.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(t){return!(!t||!t._isSigningKey)}}]);function Ni(t,e){var n=Lt(t);if(32===n.length){var r=new Ii(n);return e?"0x"+Mi().keyFromPrivate(n).getPublic(!0,"hex"):r.publicKey}return 33===n.length?e?Ct(n):"0x"+Mi().keyFromPublic(n).getPublic(!1,"hex"):65===n.length?e?"0x"+Mi().keyFromPublic(n).getPublic(!0,"hex"):Ct(n):wi.throwArgumentError("invalid public or private key","key","[REDACTED]")}function Ei(t,e){return function(t){return function(t){var e=null;if("string"!=typeof t&&Te.throwArgumentError("invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==t.substring(0,2)&&(t="0x"+t),e=Le(t),t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&e!==t&&Te.throwArgumentError("bad address checksum","address",t);else if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(t.substring(2,4)!==function(t){for(var e=(t=(t=t.toUpperCase()).substring(4)+t.substring(0,2)+"00").split("").map((function(t){return Se[t]})).join("");e.length>=De;){var n=e.substring(0,De);e=parseInt(n,10)%97+e.substring(n.length)}for(var r=String(98-parseInt(e,10)%97);r.length<2;)r="0"+r;return r}(t)&&Te.throwArgumentError("bad icap checksum","address",t),e=function(t){return new Qt(t,36).toString(16)}(t.substring(4));e.length<40;)e="0"+e;e=Le("0x"+e)}else Te.throwArgumentError("invalid address","address",t);return e}(Dt(Pt(Dt(Ni(t),1)),12))}(function(t,e){var n=zt(e),r={r:Lt(n.r),s:Lt(n.s)};return"0x"+Mi().recoverPubKey(Lt(t),r,n.recoveryParam).encode("hex",!1)}(Lt(t),e))}function xi(t,e,n,r,i,o){return L(this,null,A().mark((function a(){return A().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:a.t0=n.t,a.next="eip191"===a.t0?3:"eip1271"===a.t0?4:7;break;case 3:return a.abrupt("return",ki(t,e,n.s));case 4:return a.next=6,Ti(t,e,n.s,r,i,o);case 6:return a.abrupt("return",a.sent);case 7:throw new Error("verifySignature failed: Attempted to verify CacaoSignature with unknown type: ".concat(n.t));case 8:case"end":return a.stop()}}),a)})))}function ki(t,e,n){return Ei(ke(e),n).toLowerCase()===t.toLowerCase()}function Ti(t,e,n,r,i,o){return L(this,null,A().mark((function a(){var s,u,c,l,h,d,f;return A().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.prev=0,s="0x1626ba7e",u=n.substring(2),c=ke(e).substring(2),l=s+c+"00000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000041"+u,a.next=9,fetch("".concat(o||"https://rpc.walletconnect.com/v1","/?chainId=").concat(r,"&projectId=").concat(i),{method:"POST",body:JSON.stringify({id:Date.now()+Math.floor(1e3*Math.random()),jsonrpc:"2.0",method:"eth_call",params:[{to:t,data:l},"latest"]})});case 9:return h=a.sent,a.next=12,h.json();case 12:return d=a.sent,f=d.result,a.abrupt("return",!!f&&f.slice(0,s.length).toLowerCase()===s.toLowerCase());case 17:return a.prev=17,a.t0=a.catch(0),a.abrupt("return",(console.error("isValidEip1271Signature: ",a.t0),!1));case 20:case"end":return a.stop()}}),a,null,[[0,17]])})))}new It("transactions/5.7.0"),function(t){t[t.legacy=0]="legacy",t[t.eip2930=1]="eip2930",t[t.eip1559=2]="eip1559"}(Ai||(Ai={}));var Li=Object.defineProperty,Si=Object.defineProperties,ji=Object.getOwnPropertyDescriptors,Ci=Object.getOwnPropertySymbols,Di=Object.prototype.hasOwnProperty,Oi=Object.prototype.propertyIsEnumerable,zi=function(t,e,n){return e in t?Li(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Pi=function(t){return null==t?void 0:t.split(":")},_i=function(t){var e=t&&Pi(t);if(e)return t.includes("did:pkh:")?e[3]:e[1]},Bi=function(t){var e=t&&Pi(t);if(e)return e[2]+":"+e[3]},Ri=function(t){var e=t&&Pi(t);if(e)return e.pop()};function Ui(t){return L(this,null,A().mark((function e(){var n,r,i,o,a,s;return A().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.cacao,r=t.projectId,i=n.s,o=n.p,a=Qi(o,o.iss),s=Ri(o.iss),e.next=3,xi(s,a,i,_i(o.iss),r);case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e)})))}var Qi=function(t,e){var n="".concat(t.domain," wants you to sign in with your Ethereum account:"),r=Ri(e);if(!t.aud&&!t.uri)throw new Error("Either `aud` or `uri` is required to construct the message");var i=t.statement||void 0,o="URI: ".concat(t.aud||t.uri),a="Version: ".concat(t.version),s="Chain ID: ".concat(_i(e)),u="Nonce: ".concat(t.nonce),c="Issued At: ".concat(t.iat),l=t.resources?"Resources:".concat(t.resources.map((function(t){return"\n- ".concat(t)})).join("")):void 0,h=Ji(t.resources);return h&&(i=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1?arguments[1]:void 0;Yi(e);var n="I further authorize the stated URI to perform the following actions on my behalf: ";if(t.includes(n))return t;var r=[],i=0;Object.keys(e.att).forEach((function(t){var n=Object.keys(e.att[t]).map((function(t){return{ability:t.split("/")[0],action:t.split("/")[1]}}));n.sort((function(t,e){return t.action.localeCompare(e.action)}));var o={};n.forEach((function(t){o[t.ability]||(o[t.ability]=[]),o[t.ability].push(t.action)}));var a=Object.keys(o).map((function(e){return i++,"(".concat(i,") '").concat(e,"': '").concat(o[e].join("', '"),"' for '").concat(t,"'.")}));r.push(a.join(", ").replace(".,","."))}));var o=r.join(" "),a="".concat(n).concat(o);return"".concat(t?t+" ":"").concat(a)}(i,Vi(h))),[n,r,"",i,"",o,a,s,u,c,l].filter((function(t){return null!=t})).join("\n")};function Yi(t){if(!t)throw new Error("No recap provided, value is undefined");if(!t.att)throw new Error("No `att` property found");var e=Object.keys(t.att);if(null==e||!e.length)throw new Error("No resources found in `att` property");e.forEach((function(e){var n=t.att[e];if(Array.isArray(n))throw new Error("Resource must be an object: ".concat(e));if("object"!=I(n))throw new Error("Resource must be an object: ".concat(e));if(!Object.keys(n).length)throw new Error("Resource object is empty: ".concat(e));Object.keys(n).forEach((function(t){var e=n[t];if(!Array.isArray(e))throw new Error("Ability limits ".concat(t," must be an array of objects, found: ").concat(e));if(!e.length)throw new Error("Value of ".concat(t," is empty array, must be an array with objects"));e.forEach((function(e){if("object"!=I(e))throw new Error("Ability limits (".concat(t,") must be an array of objects, found: ").concat(e))}))}))}))}function Wi(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=(e=null==e?void 0:e.sort((function(t,e){return t.localeCompare(e)}))).map((function(e){return g({},"".concat(t,"/").concat(e),[n])}));return Object.assign.apply(Object,[{}].concat(E(r)))}function Fi(t){return Yi(t),"urn:recap:".concat(function(t){return i.from(JSON.stringify(t)).toString("base64")}(t).replace(/=/g,""))}function Vi(t){var e=function(t){return JSON.parse(i.from(t,"base64").toString("utf-8"))}(t.replace("urn:recap:",""));return Yi(e),e}function Hi(t,e,n){return Fi(function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return null==n||n.sort((function(t,e){return t.localeCompare(e)})),{att:g({},t,Wi(e,n,r))}}(t,e,n))}function Gi(t,e){return Fi(function(t,e){Yi(t),Yi(e);var n=Object.keys(t.att).concat(Object.keys(e.att)).sort((function(t,e){return t.localeCompare(e)})),r={att:{}};return n.forEach((function(n){var i,o;Object.keys((null==(i=t.att)?void 0:i[n])||{}).concat(Object.keys((null==(o=e.att)?void 0:o[n])||{})).sort((function(t,e){return t.localeCompare(e)})).forEach((function(i){var o,a;r.att[n]=function(t,e){return Si(t,ji(e))}(function(t,e){for(var n in e||(e={}))Di.call(e,n)&&zi(t,n,e[n]);if(Ci){var r,i=N(Ci(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Oi.call(e,n)&&zi(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t}({},r.att[n]),g({},i,(null==(o=t.att[n])?void 0:o[i])||(null==(a=e.att[n])?void 0:a[i])))}))})),r}(Vi(t),Vi(e)))}function qi(t){var e,n=Vi(t);Yi(n);var r=null==(e=n.att)?void 0:e.eip155;return r?Object.keys(r).map((function(t){return t.split("/")[1]})):[]}function Zi(t){var e=Vi(t);Yi(e);var n=[];return Object.values(e.att).forEach((function(t){Object.values(t).forEach((function(t){var e;null!=(e=null==t?void 0:t[0])&&e.chains&&n.push(t[0].chains)}))})),E(new Set(n.flat()))}function Ji(t){if(t){var e=null==t?void 0:t[t.length-1];return function(t){return t&&t.includes("urn:recap:")}(e)?e:void 0}}var Xi="base16",Ki="base64pad",$i="utf8",to=1;function eo(){var t=p.generateKeyPair();return{privateKey:Object(y.toString)(t.secretKey,Xi),publicKey:Object(y.toString)(t.publicKey,Xi)}}function no(){var t=Object(d.randomBytes)(32);return Object(y.toString)(t,Xi)}function ro(t,e){var n=p.sharedKey(Object(y.fromString)(t,Xi),Object(y.fromString)(e,Xi),!0),r=new h.HKDF(f.SHA256,n).expand(32);return Object(y.toString)(r,Xi)}function io(t){var e=Object(f.hash)(Object(y.fromString)(t,Xi));return Object(y.toString)(e,Xi)}function oo(t){var e=Object(f.hash)(Object(y.fromString)(t,$i));return Object(y.toString)(e,Xi)}function ao(t){return Number(Object(y.toString)(t,"base10"))}function so(t){var e=function(t){return Object(y.fromString)("".concat(t),"base10")}(I(t.type)<"u"?t.type:0);if(ao(e)===to&&I(t.senderPublicKey)>"u")throw new Error("Missing sender public key for type 1 envelope");var n=I(t.senderPublicKey)<"u"?Object(y.fromString)(t.senderPublicKey,Xi):void 0,r=I(t.iv)<"u"?Object(y.fromString)(t.iv,Xi):Object(d.randomBytes)(12);return function(t){if(ao(t.type)===to){if(I(t.senderPublicKey)>"u")throw new Error("Missing sender public key for type 1 envelope");return Object(y.toString)(Object(y.concat)([t.type,t.senderPublicKey,t.iv,t.sealed]),Ki)}return Object(y.toString)(Object(y.concat)([t.type,t.iv,t.sealed]),Ki)}({type:e,sealed:new l.ChaCha20Poly1305(Object(y.fromString)(t.symKey,Xi)).seal(r,Object(y.fromString)(t.message,$i)),iv:r,senderPublicKey:n})}function uo(t){var e=new l.ChaCha20Poly1305(Object(y.fromString)(t.symKey,Xi)),n=co(t.encoded),r=n.sealed,i=n.iv,o=e.open(i,r);if(null===o)throw new Error("Failed to decrypt");return Object(y.toString)(o,$i)}function co(t){var e=Object(y.fromString)(t,Ki),n=e.slice(0,1);if(ao(n)===to){var r=e.slice(1,33),i=e.slice(33,45);return{type:n,sealed:e.slice(45),iv:i,senderPublicKey:r}}var o=e.slice(1,13);return{type:n,sealed:e.slice(13),iv:o}}function lo(t,e){var n=co(t);return ho({type:ao(n.type),senderPublicKey:I(n.senderPublicKey)<"u"?Object(y.toString)(n.senderPublicKey,Xi):void 0,receiverPublicKey:null==e?void 0:e.receiverPublicKey})}function ho(t){var e=(null==t?void 0:t.type)||0;if(e===to){if(I(null==t?void 0:t.senderPublicKey)>"u")throw new Error("missing sender public key");if(I(null==t?void 0:t.receiverPublicKey)>"u")throw new Error("missing receiver public key")}return{type:e,senderPublicKey:null==t?void 0:t.senderPublicKey,receiverPublicKey:null==t?void 0:t.receiverPublicKey}}function fo(t){return t.type===to&&"string"==typeof t.senderPublicKey&&"string"==typeof t.receiverPublicKey}function po(t){return(null==t?void 0:t.relay)||{protocol:"irn"}}function yo(t){var e=m.RELAY_JSONRPC[t];if(I(e)>"u")throw new Error("Relay Protocol not supported: ".concat(t));return e}var mo=Object.defineProperty,go=Object.defineProperties,vo=Object.getOwnPropertyDescriptors,wo=Object.getOwnPropertySymbols,bo=Object.prototype.hasOwnProperty,Mo=Object.prototype.propertyIsEnumerable,Ao=function(t,e,n){return e in t?mo(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Io=function(t,e){for(var n in e||(e={}))bo.call(e,n)&&Ao(t,n,e[n]);if(wo){var r,i=N(wo(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Mo.call(e,n)&&Ao(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t};function No(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n={},r="relay"+e;return Object.keys(t).forEach((function(e){if(e.startsWith(r)){var i=e.replace(r,""),o=t[e];n[i]=o}})),n}function Eo(t){var e=(t=(t=t.includes("wc://")?t.replace("wc://",""):t).includes("wc:")?t.replace("wc:",""):t).indexOf(":"),n=-1!==t.indexOf("?")?t.indexOf("?"):void 0,r=t.substring(0,e),i=t.substring(e+1,n).split("@"),o=I(n)<"u"?t.substring(n):"",a=c.parse(o),s="string"==typeof a.methods?a.methods.split(","):void 0;return{protocol:r,topic:xo(i[0]),version:parseInt(i[1],10),symKey:a.symKey,relay:No(a),methods:s,expiryTimestamp:a.expiryTimestamp?parseInt(a.expiryTimestamp,10):void 0}}function xo(t){return t.startsWith("//")?t.substring(2):t}function ko(t){return"".concat(t.protocol,":").concat(t.topic,"@").concat(t.version,"?")+c.stringify(Io(function(t,e){return go(t,vo(e))}(Io({symKey:t.symKey},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"-",n="relay",r={};return Object.keys(t).forEach((function(i){var o=n+e+i;t[i]&&(r[o]=t[i])})),r}(t.relay)),{expiryTimestamp:t.expiryTimestamp}),t.methods?{methods:t.methods.join(",")}:{}))}function To(t){var e=[];return t.forEach((function(t){var n=x(t.split(":"),2),r=n[0],i=n[1];e.push("".concat(r,":").concat(i))})),e}function Lo(t,e){for(var n=function(t){var e={};return null==t||t.forEach((function(t){var n=x(t.split(":"),2),r=n[0],i=n[1];e[r]||(e[r]={accounts:[],chains:[],events:[]}),e[r].accounts.push(t),e[r].chains.push("".concat(r,":").concat(i))})),e}(e=e.map((function(t){return t.replace("did:pkh:","")}))),r=0,i=Object.entries(n);r"u"}function _o(t,e){return!(!e||!Po(t))||"string"==typeof t&&!!t.trim().length}function Bo(t,e){return!(!e||!Po(t))||"number"==typeof t&&!isNaN(t)}function Ro(t,e){var n=e.requiredNamespaces,r=Object.keys(t.namespaces),i=Object.keys(n),o=!0;return!!J(i,r)&&(r.forEach((function(e){var r=t.namespaces[e],i=r.accounts,a=r.methods,s=r.events,u=To(i),c=n[e];J(j(e,c),u)&&J(c.methods,a)&&J(c.events,s)||(o=!1)})),o)}function Uo(t){return!(!_o(t,!1)||!t.includes(":"))&&2===t.split(":").length}function Qo(t){if(_o(t,!1))try{return I(new URL(t))<"u"}catch(t){return!1}return!1}function Yo(t){var e;return null==(e=null==t?void 0:t.proposer)?void 0:e.publicKey}function Wo(t){return null==t?void 0:t.topic}function Fo(t,e){var n=null;return _o(null==t?void 0:t.publicKey,!1)||(n=Co("MISSING_OR_INVALID","".concat(e," controller public key should be a string"))),n}function Vo(t){var e=!0;return Oo(t)?t.length&&(e=t.every((function(t){return _o(t,!1)}))):e=!1,e}function Ho(t,e){var n=null;return Object.values(t).forEach((function(t){if(!n){var r=function(t,e){var n=null;return Vo(null==t?void 0:t.methods)?Vo(null==t?void 0:t.events)||(n=Do("UNSUPPORTED_EVENTS","".concat(e,", events should be an array of strings or empty array for no events"))):n=Do("UNSUPPORTED_METHODS","".concat(e,", methods should be an array of strings or empty array for no methods")),n}(t,"".concat(e,", namespace"));r&&(n=r)}})),n}function Go(t,e,n){var r=null;if(t&&zo(t)){var i=Ho(t,e);i&&(r=i);var o=function(t,e,n){var r=null;return Object.entries(t).forEach((function(t){var i=x(t,2),o=i[0],a=i[1];if(!r){var s=function(t,e,n){var r=null;return Oo(e)&&e.length?e.forEach((function(t){r||Uo(t)||(r=Do("UNSUPPORTED_CHAINS","".concat(n,", chain ").concat(t,' should be a string and conform to "namespace:chainId" format')))})):Uo(t)||(r=Do("UNSUPPORTED_CHAINS","".concat(n,', chains must be defined as "namespace:chainId" e.g. "eip155:1": {...} in the namespace key OR as an array of CAIP-2 chainIds e.g. eip155: { chains: ["eip155:1", "eip155:5"] }'))),r}(o,j(o,a),"".concat(e," ").concat(n));s&&(r=s)}})),r}(t,e,n);o&&(r=o)}else r=Co("MISSING_OR_INVALID","".concat(e,", ").concat(n," should be an object with data"));return r}function qo(t,e){var n=null;if(t&&zo(t)){var r=Ho(t,e);r&&(n=r);var i=function(t,e){var n=null;return Object.values(t).forEach((function(t){if(!n){var r=function(t,e){var n=null;return Oo(t)?t.forEach((function(t){n||function(t){if(_o(t,!1)&&t.includes(":")){var e=t.split(":");if(3===e.length){var n=e[0]+":"+e[1];return!!e[2]&&Uo(n)}}return!1}(t)||(n=Do("UNSUPPORTED_ACCOUNTS","".concat(e,", account ").concat(t,' should be a string and conform to "namespace:chainId:address" format')))})):n=Do("UNSUPPORTED_ACCOUNTS","".concat(e,', accounts should be an array of strings conforming to "namespace:chainId:address" format')),n}(null==t?void 0:t.accounts,"".concat(e," namespace"));r&&(n=r)}})),n}(t,e);i&&(n=i)}else n=Co("MISSING_OR_INVALID","".concat(e,", namespaces should be an object with data"));return n}function Zo(t){return _o(t.protocol,!0)}function Jo(t,e){var n=!1;return e&&!t?n=!0:t&&Oo(t)&&t.length&&t.forEach((function(t){n=Zo(t)})),n}function Xo(t){return"number"==typeof t}function Ko(t){return I(t)<"u"&&null!==I(t)}function $o(t){return!!(t&&"object"==I(t)&&t.code&&Bo(t.code,!1)&&t.message&&_o(t.message,!1))}function ta(t){return!(Po(t)||!_o(t.method,!1))}function ea(t){return!(Po(t)||Po(t.result)&&Po(t.error)||!Bo(t.id,!1)||!_o(t.jsonrpc,!1))}function na(t){return!(Po(t)||!_o(t.name,!1))}function ra(t,e){return!(!Uo(e)||!function(t){var e=[];return Object.values(t).forEach((function(t){e.push.apply(e,E(To(t.accounts)))})),e}(t).includes(e))}function ia(t,e,n){return!!_o(n,!1)&&function(t,e){var n=[];return Object.values(t).forEach((function(t){To(t.accounts).includes(e)&&n.push.apply(n,E(t.methods))})),n}(t,e).includes(n)}function oa(t,e,n){return!!_o(n,!1)&&function(t,e){var n=[];return Object.values(t).forEach((function(t){To(t.accounts).includes(e)&&n.push.apply(n,E(t.events))})),n}(t,e).includes(n)}function aa(t,e,n){var r=null,i=function(t){var e={};return Object.keys(t).forEach((function(n){var r;n.includes(":")?e[n]=t[n]:null==(r=t[n].chains)||r.forEach((function(r){e[r]={methods:t[n].methods,events:t[n].events}}))})),e}(t),o=function(t){var e={};return Object.keys(t).forEach((function(n){if(n.includes(":"))e[n]=t[n];else{var r=To(t[n].accounts);null==r||r.forEach((function(r){e[r]={accounts:t[n].accounts.filter((function(t){return t.includes("".concat(r,":"))})),methods:t[n].methods,events:t[n].events}}))}})),e}(e),a=Object.keys(i),s=Object.keys(o),u=sa(Object.keys(t)),c=sa(Object.keys(e)),l=u.filter((function(t){return!c.includes(t)}));return l.length&&(r=Co("NON_CONFORMING_NAMESPACES","".concat(n," namespaces keys don't satisfy requiredNamespaces.\n Required: ").concat(l.toString(),"\n Received: ").concat(Object.keys(e).toString()))),J(a,s)||(r=Co("NON_CONFORMING_NAMESPACES","".concat(n," namespaces chains don't satisfy required namespaces.\n Required: ").concat(a.toString(),"\n Approved: ").concat(s.toString()))),Object.keys(e).forEach((function(t){if(t.includes(":")&&!r){var i=To(e[t].accounts);i.includes(t)||(r=Co("NON_CONFORMING_NAMESPACES","".concat(n," namespaces accounts don't satisfy namespace accounts for ").concat(t,"\n Required: ").concat(t,"\n Approved: ").concat(i.toString())))}})),a.forEach((function(t){r||(J(i[t].methods,o[t].methods)?J(i[t].events,o[t].events)||(r=Co("NON_CONFORMING_NAMESPACES","".concat(n," namespaces events don't satisfy namespace events for ").concat(t))):r=Co("NON_CONFORMING_NAMESPACES","".concat(n," namespaces methods don't satisfy namespace methods for ").concat(t)))})),r}function sa(t){return E(new Set(t.map((function(t){return t.includes(":")?t.split(":")[0]:t}))))}function ua(t,e){return Bo(t,!1)&&t<=e.max&&t>=e.min}function ca(){var t=V();return new Promise((function(e){switch(t){case U:e(F()&&(null==navigator?void 0:navigator.onLine));break;case B:e(function(){return L(this,null,A().mark((function t(){var e;return A().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(W()&&(void 0===r?"undefined":I(r))<"u"&&null!=r&&r.NetInfo)){t.next=5;break}return t.next=3,null==r?void 0:r.NetInfo.fetch();case 3:return e=t.sent,t.abrupt("return",null==e?void 0:e.isConnected);case 5:return t.abrupt("return",!0);case 6:case"end":return t.stop()}}),t)})))}());break;case R:e(!0);break;default:e(!0)}}))}function la(t){switch(V()){case U:!function(t){!W()&&F()&&(window.addEventListener("online",(function(){return t(!0)})),window.addEventListener("offline",(function(){return t(!1)})))}(t);break;case B:!function(t){W()&&(void 0===r?"undefined":I(r))<"u"&&null!=r&&r.NetInfo&&(null==r||r.NetInfo.addEventListener((function(e){return t(null==e?void 0:e.isConnected)})))}(t)}}var ha={},da=b((function t(){v(this,t)}),null,[{key:"get",value:function(t){return ha[t]}},{key:"set",value:function(t,e){ha[t]=e}},{key:"delete",value:function(t){delete ha[t]}}])}).call(this,n(33),n(26),n(116).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);r.__exportStar(n(76),e),r.__exportStar(n(81),e),r.__exportStar(n(82),e),r.__exportStar(n(45),e)},function(t,e,n){n(7);var r=n(25);n.d(e,"parseConnectionError",(function(){return r.d}));var i=n(54);n.o(i,"IJsonRpcProvider")&&n.d(e,"IJsonRpcProvider",(function(){return i.IJsonRpcProvider})),n.o(i,"formatJsonRpcError")&&n.d(e,"formatJsonRpcError",(function(){return i.formatJsonRpcError})),n.o(i,"formatJsonRpcRequest")&&n.d(e,"formatJsonRpcRequest",(function(){return i.formatJsonRpcRequest})),n.o(i,"formatJsonRpcResult")&&n.d(e,"formatJsonRpcResult",(function(){return i.formatJsonRpcResult})),n.o(i,"getBigIntRpcId")&&n.d(e,"getBigIntRpcId",(function(){return i.getBigIntRpcId})),n.o(i,"isJsonRpcError")&&n.d(e,"isJsonRpcError",(function(){return i.isJsonRpcError})),n.o(i,"isJsonRpcRequest")&&n.d(e,"isJsonRpcRequest",(function(){return i.isJsonRpcRequest})),n.o(i,"isJsonRpcResponse")&&n.d(e,"isJsonRpcResponse",(function(){return i.isJsonRpcResponse})),n.o(i,"isJsonRpcResult")&&n.d(e,"isJsonRpcResult",(function(){return i.isJsonRpcResult})),n.o(i,"isLocalhostUrl")&&n.d(e,"isLocalhostUrl",(function(){return i.isLocalhostUrl})),n.o(i,"isReactNative")&&n.d(e,"isReactNative",(function(){return i.isReactNative})),n.o(i,"isWsUrl")&&n.d(e,"isWsUrl",(function(){return i.isWsUrl})),n.o(i,"payloadId")&&n.d(e,"payloadId",(function(){return i.payloadId}));var o=n(55);n.d(e,"formatJsonRpcError",(function(){return o.a})),n.d(e,"formatJsonRpcRequest",(function(){return o.b})),n.d(e,"formatJsonRpcResult",(function(){return o.c})),n.d(e,"getBigIntRpcId",(function(){return o.d})),n.d(e,"payloadId",(function(){return o.e})),n(56);var a=n(63);n.d(e,"IJsonRpcProvider",(function(){return a.a}));var s=n(57);n.d(e,"isLocalhostUrl",(function(){return s.a})),n.d(e,"isWsUrl",(function(){return s.b}));var u=n(58);n.d(e,"isJsonRpcError",(function(){return u.a})),n.d(e,"isJsonRpcRequest",(function(){return u.b})),n.d(e,"isJsonRpcResponse",(function(){return u.c})),n.d(e,"isJsonRpcResult",(function(){return u.d}))},function(t,e,n){n.d(e,"h",(function(){return r})),n.d(e,"i",(function(){return i})),n.d(e,"f",(function(){return o})),n.d(e,"g",(function(){return a})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return u})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"c",(function(){return h})),n.d(e,"l",(function(){return d})),n.d(e,"k",(function(){return f})),n.d(e,"m",(function(){return p})),n.d(e,"n",(function(){return y})),n.d(e,"j",(function(){return m}));var r="EdDSA",i="JWT",o=".",a="base64url",s="utf8",u="utf8",c=":",l="did",h="key",d="base58btc",f="z",p="K36",y=32,m=32},function(t,e,n){n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return O})),n.d(e,"c",(function(){return T})),n.d(e,"d",(function(){return j}));var r=n(15),i=n.n(r);n.d(e,"e",(function(){return i.a}));var o=n(8);function a(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);nthis.maxSizeInBytes)throw new Error("[LinkedList] Value too big to insert into list: ".concat(t," with size ").concat(e.size));for(;this.size+e.size>this.maxSizeInBytes;)this.shift();this.head?(this.tail&&(this.tail.next=e),this.tail=e):(this.head=e,this.tail=e),this.lengthInNodes++,this.sizeInBytes+=e.size}},{key:"shift",value:function(){if(this.head){var t=this.head;this.head=this.head.next,this.head||(this.tail=null),this.lengthInNodes--,this.sizeInBytes-=t.size}}},{key:"toArray",value:function(){for(var t=[],e=this.head;null!==e;)t.push(e.value),e=e.next;return t}},{key:"length",get:function(){return this.lengthInNodes}},{key:"size",get:function(){return this.sizeInBytes}},{key:"toOrderedArray",value:function(){return Array.from(this)}},{key:Symbol.iterator,value:function(){var t=this.head;return{next:function(){if(!t)return{done:!0,value:null};var e=t.value;return t=t.next,{done:!1,value:e}}}}}]),m=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.level=null!=e?e:"error",this.levelValue=r.levels.values[this.level],this.MAX_LOG_SIZE_IN_BYTES=n,this.logs=new y(this.MAX_LOG_SIZE_IN_BYTES)}),[{key:"forwardToConsole",value:function(t,e){e===r.levels.values.error?console.error(t):e===r.levels.values.warn?console.warn(t):e===r.levels.values.debug?console.debug(t):e===r.levels.values.trace?console.trace(t):console.log(t)}},{key:"appendToLogs",value:function(t){this.logs.append(Object(o.b)({timestamp:(new Date).toISOString(),log:t}));var e="string"==typeof t?JSON.parse(t).level:t.level;e>=this.levelValue&&this.forwardToConsole(t,e)}},{key:"getLogs",value:function(){return this.logs}},{key:"clearLogs",value:function(){this.logs=new y(this.MAX_LOG_SIZE_IN_BYTES)}},{key:"getLogArray",value:function(){return Array.from(this.logs)}},{key:"logsToBlob",value:function(t){var e=this.getLogArray();return e.push(Object(o.b)({extraMetadata:t})),new Blob(e,{type:"application/json"})}}]),g=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.baseChunkLogger=new m(e,n)}),[{key:"write",value:function(t){this.baseChunkLogger.appendToLogs(t)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(t){return this.baseChunkLogger.logsToBlob(t)}},{key:"downloadLogsBlobInBrowser",value:function(t){var e=URL.createObjectURL(this.logsToBlob(t)),n=document.createElement("a");n.href=e,n.download="walletconnect-logs-".concat((new Date).toISOString(),".txt"),document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(e)}}]),v=l((function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:f;u(this,t),this.baseChunkLogger=new m(e,n)}),[{key:"write",value:function(t){this.baseChunkLogger.appendToLogs(t)}},{key:"getLogs",value:function(){return this.baseChunkLogger.getLogs()}},{key:"clearLogs",value:function(){this.baseChunkLogger.clearLogs()}},{key:"getLogArray",value:function(){return this.baseChunkLogger.getLogArray()}},{key:"logsToBlob",value:function(t){return this.baseChunkLogger.logsToBlob(t)}}]),w=Object.defineProperty,b=Object.defineProperties,M=Object.getOwnPropertyDescriptors,A=Object.getOwnPropertySymbols,I=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,E=function(t,e,n){return e in t?w(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},x=function(t,e){for(var n in e||(e={}))I.call(e,n)&&E(t,n,e[n]);if(A){var r,i=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return a(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,u=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return s=t.done,t},e:function(t){u=!0,o=t},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw o}}}}(A(e));try{for(i.s();!(r=i.n()).done;)n=r.value,N.call(e,n)&&E(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},k=function(t,e){return b(t,M(e))};function T(t){return k(x({},t),{level:(null==t?void 0:t.level)||"info"})}function L(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return t[e]||""}function S(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;return t[n]=e,t}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:d;return s(t.bindings)>"u"?L(t,e):t.bindings().context||""}function C(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,r=j(t,n);return r.trim()?"".concat(r,"/").concat(e):e}function D(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d,r=C(t,e,n),i=t.child({context:r});return S(i,r,n)}function O(t){return s(t.loggerOverride)<"u"&&"string"!=typeof t.loggerOverride?{logger:t.loggerOverride,chunkLoggerController:null}:("undefined"==typeof window?"undefined":s(window))<"u"?function(t){var e,n,r=new g(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:i()(k(x({},t.opts),{level:"trace",browser:k(x({},null==(n=t.opts)?void 0:n.browser),{write:function(t){return r.write(t)}})})),chunkLoggerController:r}}(t):function(t){var e,n=new v(null==(e=t.opts)?void 0:e.level,t.maxSizeInBytes);return{logger:i()(k(x({},t.opts),{level:"trace"}),n),chunkLoggerController:n}}(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(109),i=n(42),o=n(110),a=n(17),s=n(20),u=n(111);e.compare=r.compare,e.concat=i.concat,e.equals=o.equals,e.fromString=a.fromString,e.toString=s.toString,e.xor=u.xor},function(t,e,n){var r,i="object"==typeof Reflect?Reflect:null,o=i&&"function"==typeof i.apply?i.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};r=i&&"function"==typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var a=Number.isNaN||function(t){return t!=t};function s(){s.init.call(this)}t.exports=s,t.exports.once=function(t,e){return new Promise((function(n,r){function i(n){t.removeListener(e,o),r(n)}function o(){"function"==typeof t.removeListener&&t.removeListener("error",i),n([].slice.call(arguments))}g(t,e,o,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,{once:!0})}(t,i)}))},s.EventEmitter=s,s.prototype._events=void 0,s.prototype._eventsCount=0,s.prototype._maxListeners=void 0;var u=10;function c(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function l(t){return void 0===t._maxListeners?s.defaultMaxListeners:t._maxListeners}function h(t,e,n,r){var i,o,a,s;if(c(n),void 0===(o=t._events)?(o=t._events=Object.create(null),t._eventsCount=0):(void 0!==o.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),o=t._events),a=o[e]),void 0===a)a=o[e]=n,++t._eventsCount;else if("function"==typeof a?a=o[e]=r?[n,a]:[a,n]:r?a.unshift(n):a.push(n),(i=l(t))>0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){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 f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e,n){var i;return i=function(t,e){if("object"!=r(t)||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e);if("object"!=r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(e,"string"),(e="symbol"==r(i)?i:i+"")in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"b",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return c})),n.d(e,"a",(function(){return l}));var o="INTERNAL_ERROR",a="SERVER_ERROR",s=[-32700,-32600,-32601,-32602,-32603],u=[-32e3,-32099],c=i(i(i(i(i(i({},"PARSE_ERROR",{code:-32700,message:"Parse error"}),"INVALID_REQUEST",{code:-32600,message:"Invalid Request"}),"METHOD_NOT_FOUND",{code:-32601,message:"Method not found"}),"INVALID_PARAMS",{code:-32602,message:"Invalid params"}),o,{code:-32603,message:"Internal error"}),a,{code:-32e3,message:"Server error"}),l=a},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){if("string"!=typeof t)throw new Error("Cannot safe json parse value of type ".concat(r(t)));try{return e=t.replace(/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,'$1"$2n"$3'),JSON.parse(e,(function(t,e){return"string"==typeof e&&e.match(/^\d+n$/)?BigInt(e.substring(0,e.length-1)):e}))}catch(e){return t}var e}function o(t){return"string"==typeof t?t:(e=t,JSON.stringify(e,(function(t,e){return"bigint"==typeof e?e.toString()+"n":e}))||"");var e}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}))},function(t,e,n){(function(t){n.d(e,"a",(function(){return Ln})),n.d(e,"b",(function(){return _e})),n.d(e,"c",(function(){return De})),n.d(e,"d",(function(){return be})),n.d(e,"e",(function(){return Ie})),n.d(e,"f",(function(){return gn})),n.d(e,"g",(function(){return Re}));var r=n(6),i=n.n(r),o=n(64),a=n(27),s=n(4),u=n(11),c=n(8),l=n(31),h=n(0),d=n(5),f=n(1),p=n(72),y=n(2),m=n(65),g=n(66),v=n.n(g),w=n(67),b=n.n(w);function M(t){return function(t){if(Array.isArray(t))return P(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||z(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function A(t,e,n){return e=N(e),function(t,e){if(e&&("object"===k(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return I(t)}(t,function(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return!!t}()?Reflect.construct(e,n||[],N(t).constructor):e.apply(t,n))}function I(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function N(t){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}function x(t,e){return(x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t})(t,e)}function k(t){return(k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function T(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */T=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",u=o.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,r){var o=e&&e.prototype instanceof m?e:m,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:E(t,n,s)}),a}function h(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var d="suspendedStart",f="executing",p="completed",y={};function m(){}function g(){}function v(){}var w={};c(w,a,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(C([])));M&&M!==n&&r.call(M,a)&&(w=M);var A=v.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){c(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(i,o,a,s){var u=h(t[i],t,o);if("throw"!==u.type){var c=u.arg,l=c.value;return l&&"object"==k(l)&&r.call(l,"__await")?e.resolve(l.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(l).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function E(e,n,r){var i=d;return function(o,a){if(i===f)throw Error("Generator is already running");if(i===p){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=x(s,r);if(u){if(u===y)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===d)throw i=p,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=f;var c=h(e,n,r);if("normal"===c.type){if(i=r.done?p:"suspendedYield",c.arg===y)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=p,r.method="throw",r.arg=c.arg)}}}function x(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,x(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),y;var o=h(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,y;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,y):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[a];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),y}},e}function L(t,e,n){return(e=D(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function S(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function j(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function z(t,e){if(t){if("string"==typeof t)return P(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?P(t,e):void 0}}function P(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);t[e];){var l=n[t.charCodeAt(e)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,a[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=a[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var h=e[i],d=0,f=a-1;(0!==h||d>>0,c[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=a-r;p!==a&&0===c[p];)p++;for(var y=u.repeat(n);pn;)o+=e[i&s>>(a-=n)];if(a&&(o+=e[i&s<=8&&(u-=8,s[l++]=255&c>>u)}if(u>=n||255&c<<8-u)throw new SyntaxError("Unexpected end of data");return s}(t,i,r,e)}})},$=J({prefix:"\0",name:"identity",encode:function(t){return function(t){return(new TextDecoder).decode(t)}(t)},decode:function(t){return function(t){return(new TextEncoder).encode(t)}(t)}}),tt=Object.freeze({__proto__:null,identity:$}),et=K({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),nt=Object.freeze({__proto__:null,base2:et}),rt=K({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),it=Object.freeze({__proto__:null,base8:rt}),ot=X({prefix:"9",name:"base10",alphabet:"0123456789"}),at=Object.freeze({__proto__:null,base10:ot}),st=K({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),ut=K({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),ct=Object.freeze({__proto__:null,base16:st,base16upper:ut}),lt=K({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),ht=K({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),dt=K({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),ft=K({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),pt=K({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),yt=K({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),mt=K({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),gt=K({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),vt=K({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),wt=Object.freeze({__proto__:null,base32:lt,base32upper:ht,base32pad:dt,base32padupper:ft,base32hex:pt,base32hexupper:yt,base32hexpad:mt,base32hexpadupper:gt,base32z:vt}),bt=X({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Mt=X({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),At=Object.freeze({__proto__:null,base36:bt,base36upper:Mt}),It=X({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Nt=X({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Et=Object.freeze({__proto__:null,base58btc:It,base58flickr:Nt}),xt=K({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),kt=K({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Tt=K({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Lt=K({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),St=Object.freeze({__proto__:null,base64:xt,base64pad:kt,base64url:Tt,base64urlpad:Lt}),jt=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Ct=jt.reduce((function(t,e,n){return t[n]=e,t}),[]),Dt=jt.reduce((function(t,e,n){return t[e.codePointAt(0)]=n,t}),[]),Ot=J({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce((function(t,e){return t+Ct[e]}),"")},decode:function(t){var e,n=[],r=O(t);try{for(r.s();!(e=r.n()).done;){var i=e.value,o=Dt[i.codePointAt(0)];if(void 0===o)throw new Error("Non-base256emoji character: ".concat(i));n.push(o)}}catch(t){r.e(t)}finally{r.f()}return new Uint8Array(n)}}),zt=Object.freeze({__proto__:null,base256emoji:Ot}),Pt=Math.pow(2,31),_t=Math.pow(2,7),Bt=Math.pow(2,14),Rt=Math.pow(2,21),Ut=Math.pow(2,28),Qt=Math.pow(2,35),Yt=Math.pow(2,42),Wt=Math.pow(2,49),Ft=Math.pow(2,56),Vt=Math.pow(2,63),Ht=function t(e,n,r){n=n||[];for(var i=r=r||0;e>=Pt;)n[r++]=255&e|128,e/=128;for(;-128&e;)n[r++]=255&e|128,e>>>=7;return n[r]=0|e,t.bytes=r-i+1,n},Gt=function(t){return t<_t?1:t2&&void 0!==arguments[2]?arguments[2]:0;return Ht(t,e,n),e},Zt=function(t){return Gt(t)},Jt=function(t,e){var n=e.byteLength,r=Zt(t),i=r+Zt(n),o=new Uint8Array(i+n);return qt(t,o,0),qt(n,o,r),o.set(e,i),new Xt(t,n,e,o)},Xt=C((function t(e,n,r,i){S(this,t),this.code=e,this.size=n,this.digest=r,this.bytes=i})),Kt=function(t){var e=t.name,n=t.code,r=t.encode;return new $t(e,n,r)},$t=C((function t(e,n,r){S(this,t),this.name=e,this.code=n,this.encode=r}),[{key:"digest",value:function(t){var e=this;if(t instanceof Uint8Array){var n=this.encode(t);return n instanceof Uint8Array?Jt(this.code,n):n.then((function(t){return Jt(e.code,t)}))}throw Error("Unknown type, must be binary type")}}]),te=function(t){return function(e){return W(void 0,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=Uint8Array,n.next=3,crypto.subtle.digest(t,e);case 3:return n.t1=n.sent,n.abrupt("return",new n.t0(n.t1));case 5:case"end":return n.stop()}}),n)})))}},ee=Kt({name:"sha2-256",code:18,encode:te("SHA-256")}),ne=Kt({name:"sha2-512",code:19,encode:te("SHA-512")}),re=Object.freeze({__proto__:null,sha256:ee,sha512:ne}),ie=F,oe={code:0,name:"identity",encode:ie,digest:function(t){return Jt(0,ie(t))}},ae=Object.freeze({__proto__:null,identity:oe});new TextEncoder,new TextDecoder;var se=Y(Y(Y(Y(Y(Y(Y(Y(Y(Y({},tt),nt),it),at),ct),wt),At),Et),St),zt);function ue(t){return null!=globalThis.Buffer?new Uint8Array(t.buffer,t.byteOffset,t.byteLength):t}function ce(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}Y(Y({},re),ae);var le=ce("utf8","u",(function(t){return"u"+new TextDecoder("utf8").decode(t)}),(function(t){return(new TextEncoder).encode(t.substring(1))})),he=ce("ascii","a",(function(t){for(var e="a",n=0;n0&&void 0!==arguments[0]?arguments[0]:0;return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?ue(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}((t=t.substring(1)).length),n=0;n1&&void 0!==arguments[1]?arguments[1]:"utf8",n=de[e];if(!n)throw new Error('Unsupported encoding "'.concat(e,'"'));return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode("".concat(n.prefix).concat(t)):ue(globalThis.Buffer.from(t,"utf-8"))}var pe="core",ye="".concat("wc","@2:").concat(pe,":"),me={database:":memory:"},ge="client_ed25519_seed",ve=f.ONE_DAY,we=f.SIX_HOURS,be="irn",Me="wss://relay.walletconnect.com",Ae="wss://relay.walletconnect.org",Ie={message:"relayer_message",message_ack:"relayer_message_ack",connect:"relayer_connect",disconnect:"relayer_disconnect",error:"relayer_error",connection_stalled:"relayer_connection_stalled",transport_closed:"relayer_transport_closed",publish:"relayer_publish"},Ne="payload",Ee="connect",xe="disconnect",ke="error",Te=f.ONE_SECOND,Le="subscription_created",Se="subscription_deleted",je=(f.THIRTY_DAYS,1e3*f.FIVE_SECONDS),Ce=(f.THIRTY_DAYS,{wc_pairingDelete:{req:{ttl:f.ONE_DAY,prompt:!1,tag:1e3},res:{ttl:f.ONE_DAY,prompt:!1,tag:1001}},wc_pairingPing:{req:{ttl:f.THIRTY_SECONDS,prompt:!1,tag:1002},res:{ttl:f.THIRTY_SECONDS,prompt:!1,tag:1003}},unregistered_method:{req:{ttl:f.ONE_DAY,prompt:!1,tag:0},res:{ttl:f.ONE_DAY,prompt:!1,tag:0}}}),De={create:"pairing_create",expire:"pairing_expire",delete:"pairing_delete",ping:"pairing_ping"},Oe="history_created",ze="history_updated",Pe="history_deleted",_e={created:"expirer_created",deleted:"expirer_deleted",expired:"expirer_expired",sync:"expirer_sync"},Be=(f.ONE_DAY,"verify-api"),Re="https://verify.walletconnect.com",Ue="https://verify.walletconnect.org",Qe=[Re,Ue],Ye=C((function t(e,n){var r=this;S(this,t),this.core=e,this.logger=n,this.keychain=new Map,this.name="keychain",this.version="0.3",this.initialized=!1,this.storagePrefix=ye,this.init=function(){return W(r,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=5;break}return t.next=3,this.getKeyChain();case 3:k(e=t.sent)<"u"&&(this.keychain=e),this.initialized=!0;case 5:case"end":return t.stop()}}),t,this)})))},this.has=function(t){return r.isInitialized(),r.keychain.has(t)},this.set=function(t,e){return W(r,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.keychain.set(t,e),n.next=4,this.persist();case 4:case"end":return n.stop()}}),n,this)})))},this.get=function(t){r.isInitialized();var e=r.keychain.get(t);if(k(e)>"u"){var n=Object(h.A)("NO_MATCHING_KEY","".concat(r.name,": ").concat(t)).message;throw new Error(n)}return e},this.del=function(t){return W(r,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.keychain.delete(t),e.next=4,this.persist();case 4:case"end":return e.stop()}}),e,this)})))},this.core=e,this.logger=Object(s.a)(n,this.name)}),[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setKeyChain",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,Object(h.ob)(t));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getKeyChain",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return e=t.sent,t.abrupt("return",k(e)<"u"?Object(h.qb)(e):void 0);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setKeyChain(this.keychain);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}]),We=C((function t(e,n,r){var i=this;S(this,t),this.core=e,this.logger=n,this.name="crypto",this.initialized=!1,this.init=function(){return W(i,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=5;break}return t.next=4,this.keychain.init();case 4:this.initialized=!0;case 5:case"end":return t.stop()}}),t,this)})))},this.hasKeys=function(t){return i.isInitialized(),i.keychain.has(t)},this.getClientId=function(){return W(i,null,T().mark((function t(){var e,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.isInitialized(),t.next=3,this.getClientSeed();case 3:return e=t.sent,n=l.generateKeyPair(e),t.abrupt("return",l.encodeIss(n.publicKey));case 6:case"end":return t.stop()}}),t,this)})))},this.generateKeyPair=function(){i.isInitialized();var t=Object(h.t)();return i.setPrivateKey(t.publicKey,t.privateKey)},this.signJWT=function(t){return W(i,null,T().mark((function e(){var n,r,i,o;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.getClientSeed();case 3:return n=e.sent,r=l.generateKeyPair(n),i=Object(h.u)(),o=ve,e.next=9,l.signJWT(i,t,o,r);case 9:return e.abrupt("return",e.sent);case 10:case"end":return e.stop()}}),e,this)})))},this.generateSharedKey=function(t,e,n){i.isInitialized();var r=i.getPrivateKey(t),o=Object(h.k)(r,e);return i.setSymKey(o,n)},this.setSymKey=function(t,e){return W(i,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),r=e||Object(h.I)(t),n.next=4,this.keychain.set(r,t);case 4:return n.abrupt("return",r);case 5:case"end":return n.stop()}}),n,this)})))},this.deleteKeyPair=function(t){return W(i,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.keychain.del(t);case 3:case"end":return e.stop()}}),e,this)})))},this.deleteSymKey=function(t){return W(i,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.keychain.del(t);case 3:case"end":return e.stop()}}),e,this)})))},this.encode=function(t,e,n){return W(i,null,T().mark((function r(){var i,o,a,s,u,l,d;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.isInitialized(),i=Object(h.wb)(n),o=Object(c.b)(e),!Object(h.T)(i)){r.next=7;break}return a=i.senderPublicKey,s=i.receiverPublicKey,r.next=6,this.generateSharedKey(a,s);case 6:t=r.sent;case 7:return u=this.getSymKey(t),l=i.type,d=i.senderPublicKey,r.abrupt("return",Object(h.m)({type:l,symKey:u,message:o,senderPublicKey:d}));case 9:case"end":return r.stop()}}),r,this)})))},this.decode=function(t,e,n){return W(i,null,T().mark((function r(){var i,o,a,s,u;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.isInitialized(),i=Object(h.vb)(e,n),!Object(h.T)(i)){r.next=7;break}return o=i.receiverPublicKey,a=i.senderPublicKey,r.next=6,this.generateSharedKey(o,a);case 6:t=r.sent;case 7:return r.prev=7,s=this.getSymKey(t),u=Object(h.j)({symKey:s,encoded:e}),r.abrupt("return",Object(c.a)(u));case 12:return r.prev=12,r.t0=r.catch(7),r.t1=this.logger,r.t2="Failed to decode message from topic: '".concat(t,"', clientId: '"),r.next=18,this.getClientId();case 18:r.t3=r.sent,r.t4=r.t2.concat.call(r.t2,r.t3,"'"),r.t1.error.call(r.t1,r.t4),this.logger.error(r.t0);case 22:case"end":return r.stop()}}),r,this,[[7,12]])})))},this.getPayloadType=function(t){var e=Object(h.l)(t);return Object(h.i)(e.type)},this.getPayloadSenderPublicKey=function(t){var e=Object(h.l)(t);return e.senderPublicKey?Object(d.toString)(e.senderPublicKey,h.a):void 0},this.core=e,this.logger=Object(s.a)(n,this.name),this.keychain=r||new Ye(this.core,this.logger)}),[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"setPrivateKey",value:function(t,e){return W(this,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.keychain.set(t,e);case 2:return n.abrupt("return",t);case 3:case"end":return n.stop()}}),n,this)})))}},{key:"getPrivateKey",value:function(t){return this.keychain.get(t)}},{key:"getClientSeed",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e="",t.prev=1,e=this.keychain.get(ge),t.next=10;break;case 5:return t.prev=5,t.t0=t.catch(1),e=Object(h.u)(),t.next=10,this.keychain.set(ge,e);case 10:return t.abrupt("return",fe(e,"base16"));case 11:case"end":return t.stop()}}),t,this,[[1,5]])})))}},{key:"getSymKey",value:function(t){return this.keychain.get(t)}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}]),Fe=function(t){function e(t,n){var r;return S(this,e),(r=A(this,e,[t,n])).logger=t,r.core=n,r.messages=new Map,r.name="messages",r.version="0.3",r.initialized=!1,r.storagePrefix=ye,r.init=function(){return W(I(r),null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=15;break}return this.logger.trace("Initialized"),t.prev=2,t.next=5,this.getRelayerMessages();case 5:k(e=t.sent)<"u"&&(this.messages=e),this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",size:this.messages.size}),t.next=12;break;case 9:t.prev=9,t.t0=t.catch(2),this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(t.t0);case 12:return t.prev=12,this.initialized=!0,t.finish(12);case 15:case"end":return t.stop()}}),t,this,[[2,9,12,15]])})))},r.set=function(t,e){return W(I(r),null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),r=Object(h.J)(e),k(i=this.messages.get(t))>"u"&&(i={}),n.t0=k(i[r])<"u",n.t0){n.next=10;break}return i[r]=e,this.messages.set(t,i),n.next=10,this.persist();case 10:return n.abrupt("return",r);case 11:case"end":return n.stop()}}),n,this)})))},r.get=function(t){r.isInitialized();var e=r.messages.get(t);return k(e)>"u"&&(e={}),e},r.has=function(t,e){return r.isInitialized(),k(r.get(t)[Object(h.J)(e)])<"u"},r.del=function(t){return W(I(r),null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.messages.delete(t),e.next=4,this.persist();case 4:case"end":return e.stop()}}),e,this)})))},r.logger=Object(s.a)(t,r.name),r.core=n,r}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"setRelayerMessages",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,Object(h.ob)(t));case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getRelayerMessages",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return e=t.sent,t.abrupt("return",k(e)<"u"?Object(h.qb)(e):void 0);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setRelayerMessages(this.messages);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.f),Ve=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).relayer=t,i.logger=n,i.events=new r.EventEmitter,i.name="publisher",i.queue=new Map,i.publishTimeout=Object(f.toMiliseconds)(f.ONE_MINUTE),i.failedPublishTimeout=Object(f.toMiliseconds)(f.ONE_SECOND),i.needsTransportRestart=!1,i.publish=function(t,e,n){return W(I(i),null,T().mark((function r(){var i,o,a,s,u,c,l,d,f,p,m,g=this;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:this.logger.debug("Publishing Payload"),this.logger.trace({type:"method",method:"publish",params:{topic:t,message:e,opts:n}}),o=(null==n?void 0:n.ttl)||we,a=Object(h.F)(n),s=(null==n?void 0:n.prompt)||!1,u=(null==n?void 0:n.tag)||0,c=(null==n?void 0:n.id)||Object(y.getBigIntRpcId)().toString(),l={topic:t,message:e,opts:{ttl:o,relay:a,prompt:s,tag:u,id:c}},d="Failed to publish payload, please try again. id:".concat(c," tag:").concat(u),f=Date.now(),m=1,r.prev=3;case 4:if(void 0!==p){r.next=20;break}if(!(Date.now()-f>this.publishTimeout)){r.next=7;break}throw new Error(d);case 7:return this.logger.trace({id:c,attempts:m},"publisher.publish - attempt ".concat(m)),r.next=10,Object(h.h)(this.rpcPublish(t,e,o,a,s,u,c).catch((function(t){return g.logger.warn(t)})),this.publishTimeout,d);case 10:return r.next=12,r.sent;case 12:if(p=r.sent,m++,r.t0=p,r.t0){r.next=18;break}return r.next=18,new Promise((function(t){return setTimeout(t,g.failedPublishTimeout)}));case 18:r.next=4;break;case 20:this.relayer.events.emit(Ie.publish,l),this.logger.debug("Successfully Published Payload"),this.logger.trace({type:"method",method:"publish",params:{id:c,topic:t,message:e,opts:n}}),r.next=28;break;case 23:if(r.prev=23,r.t1=r.catch(3),this.logger.debug("Failed to Publish Payload"),this.logger.error(r.t1),null==(i=null==n?void 0:n.internal)||!i.throwOnFailedPublish){r.next=27;break}throw r.t1;case 27:this.queue.set(c,l);case 28:case"end":return r.stop()}}),r,this,[[3,23]])})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.relayer=t,i.logger=Object(s.a)(n,i.name),i.registerEventListeners(),i}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"rpcPublish",value:function(t,e,n,r,i,o,a){var s,u,c,l,d={method:Object(h.E)(r.protocol).publish,params:{topic:t,message:e,ttl:n,prompt:i,tag:o},id:a};return Object(h.U)(null==(s=d.params)?void 0:s.prompt)&&(null==(u=d.params)||delete u.prompt),Object(h.U)(null==(c=d.params)?void 0:c.tag)&&(null==(l=d.params)||delete l.tag),this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"message",direction:"outgoing",request:d}),this.relayer.request(d)}},{key:"removeRequestFromQueue",value:function(t){this.queue.delete(t)}},{key:"checkQueue",value:function(){var t=this;this.queue.forEach((function(e){return W(t,null,T().mark((function t(){var n,r,i;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.topic,r=e.message,i=e.opts,t.next=3,this.publish(n,r,i);case 3:case"end":return t.stop()}}),t,this)})))}))}},{key:"registerEventListeners",value:function(){var t=this;this.relayer.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){if(t.needsTransportRestart)return t.needsTransportRestart=!1,void t.relayer.events.emit(Ie.connection_stalled);t.checkQueue()})),this.relayer.on(Ie.message_ack,(function(e){t.removeRequestFromQueue(e.id.toString())}))}}])}(u.g),He=C((function t(){var e=this;S(this,t),this.map=new Map,this.set=function(t,n){var r=e.get(t);e.exists(t,n)||e.map.set(t,[].concat(M(r),[n]))},this.get=function(t){return e.map.get(t)||[]},this.exists=function(t,n){return e.get(t).includes(n)},this.delete=function(t,n){if(k(n)>"u")e.map.delete(t);else if(e.map.has(t)){var r=e.get(t);if(e.exists(t,n)){var i=r.filter((function(t){return t!==n}));i.length?e.map.set(t,i):e.map.delete(t)}}},this.clear=function(){e.map.clear()}}),[{key:"topics",get:function(){return Array.from(this.map.keys())}}]),Ge=Object.defineProperty,qe=Object.defineProperties,Ze=Object.getOwnPropertyDescriptors,Je=Object.getOwnPropertySymbols,Xe=Object.prototype.hasOwnProperty,Ke=Object.prototype.propertyIsEnumerable,$e=function(t,e,n){return e in t?Ge(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},tn=function(t,e){for(var n in e||(e={}))Xe.call(e,n)&&$e(t,n,e[n]);if(Je){var r,i=O(Je(e));try{for(i.s();!(r=i.n()).done;)n=r.value,Ke.call(e,n)&&$e(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},en=function(t,e){return qe(t,Ze(e))},nn=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).relayer=t,i.logger=n,i.subscriptions=new Map,i.topicMap=new He,i.events=new r.EventEmitter,i.name="subscription",i.version="0.3",i.pending=new Map,i.cached=[],i.initialized=!1,i.pendingSubscriptionWatchLabel="pending_sub_watch_label",i.pollingInterval=20,i.storagePrefix=ye,i.subscribeTimeout=Object(f.toMiliseconds)(f.ONE_MINUTE),i.restartInProgress=!1,i.batchSubscribeTopicsLimit=500,i.init=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=7;break}return this.logger.trace("Initialized"),this.registerEventListeners(),t.next=6,this.relayer.core.crypto.getClientId();case 6:this.clientId=t.sent;case 7:case"end":return t.stop()}}),t,this)})))},i.subscribe=function(t,e){return W(I(i),null,T().mark((function n(){var r,i,o;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.restartToComplete();case 2:return this.isInitialized(),this.logger.debug("Subscribing Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}}),n.prev=5,r=Object(h.F)(e),i={topic:t,relay:r},this.pending.set(t,i),n.next=10,this.rpcSubscribe(t,r);case 10:return o=n.sent,n.abrupt("return",("string"==typeof o&&(this.onSubscribe(o,i),this.logger.debug("Successfully Subscribed Topic"),this.logger.trace({type:"method",method:"subscribe",params:{topic:t,opts:e}})),o));case 14:throw n.prev=14,n.t0=n.catch(5),this.logger.debug("Failed to Subscribe Topic"),this.logger.error(n.t0),n.t0;case 17:case"end":return n.stop()}}),n,this,[[5,14]])})))},i.unsubscribe=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.restartToComplete();case 2:if(this.isInitialized(),!(k(null==e?void 0:e.id)<"u")){n.next=8;break}return n.next=6,this.unsubscribeById(t,e.id,e);case 6:n.next=10;break;case 8:return n.next=10,this.unsubscribeByTopic(t,e);case 10:case"end":return n.stop()}}),n,this)})))},i.isSubscribed=function(t){return W(I(i),null,T().mark((function e(){var n,r=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.topics.includes(t)){e.next=2;break}return e.abrupt("return",!0);case 2:return n="".concat(this.pendingSubscriptionWatchLabel,"_").concat(t),e.next=5,new Promise((function(e,i){var o=new f.Watch;o.start(n);var a=setInterval((function(){!r.pending.has(t)&&r.topics.includes(t)&&(clearInterval(a),o.stop(n),e(!0)),o.elapsed(n)>=je&&(clearInterval(a),o.stop(n),i(new Error("Subscription resolution timeout")))}),r.pollingInterval)})).catch((function(){return!1}));case 5:return e.abrupt("return",e.sent);case 6:case"end":return e.stop()}}),e,this)})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.start=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onConnect();case 2:case"end":return t.stop()}}),t,this)})))},i.stop=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.onDisconnect();case 2:case"end":return t.stop()}}),t,this)})))},i.restart=function(){return W(I(i),null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.restartInProgress=!0,t.next=3,this.restore();case 3:return t.next=5,this.reset();case 5:this.restartInProgress=!1;case 6:case"end":return t.stop()}}),t,this)})))},i.relayer=t,i.logger=Object(s.a)(n,i.name),i.clientId="",i}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.relayer.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.subscriptions.size}},{key:"ids",get:function(){return Array.from(this.subscriptions.keys())}},{key:"values",get:function(){return Array.from(this.subscriptions.values())}},{key:"topics",get:function(){return this.topicMap.topics}},{key:"hasSubscription",value:function(t,e){var n=!1;try{n=this.getSubscription(t).topic===e}catch(t){}return n}},{key:"onEnable",value:function(){this.cached=[],this.initialized=!0}},{key:"onDisable",value:function(){this.cached=this.values,this.subscriptions.clear(),this.topicMap.clear()}},{key:"unsubscribeByTopic",value:function(t,e){return W(this,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=this.topicMap.get(t),n.next=3,Promise.all(r.map((function(n){return W(i,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.unsubscribeById(t,n,e);case 2:return r.abrupt("return",r.sent);case 3:case"end":return r.stop()}}),r,this)})))})));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"unsubscribeById",value:function(t,e,n){return W(this,null,T().mark((function r(){var i,o;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.logger.debug("Unsubscribing Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:n}}),r.prev=1,i=Object(h.F)(n),r.next=5,this.rpcUnsubscribe(t,e,i);case 5:return o=Object(h.G)("USER_DISCONNECTED","".concat(this.name,", ").concat(t)),r.next=8,this.onUnsubscribe(t,e,o);case 8:this.logger.debug("Successfully Unsubscribed Topic"),this.logger.trace({type:"method",method:"unsubscribe",params:{topic:t,id:e,opts:n}}),r.next=15;break;case 12:throw r.prev=12,r.t0=r.catch(1),this.logger.debug("Failed to Unsubscribe Topic"),this.logger.error(r.t0),r.t0;case 15:case"end":return r.stop()}}),r,this,[[1,12]])})))}},{key:"rpcSubscribe",value:function(t,e){return W(this,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r={method:Object(h.E)(e.protocol).subscribe,params:{topic:t}},this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),n.prev=2,n.next=5,Object(h.h)(this.relayer.request(r).catch((function(t){return i.logger.warn(t)})),this.subscribeTimeout);case 5:return n.next=7,n.sent;case 7:if(!n.sent){n.next=11;break}n.t0=Object(h.J)(t+this.clientId),n.next=12;break;case 11:n.t0=null;case 12:return n.abrupt("return",n.t0);case 15:n.prev=15,n.t1=n.catch(2),this.logger.debug("Outgoing Relay Subscribe Payload stalled"),this.relayer.events.emit(Ie.connection_stalled);case 18:return n.abrupt("return",null);case 19:case"end":return n.stop()}}),n,this,[[2,15]])})))}},{key:"rpcBatchSubscribe",value:function(t){return W(this,null,T().mark((function e(){var n,r,i=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return");case 2:return n=t[0].relay,r={method:Object(h.E)(n.protocol).batchSubscribe,params:{topics:t.map((function(t){return t.topic}))}},this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),e.prev=4,e.next=7,Object(h.h)(this.relayer.request(r).catch((function(t){return i.logger.warn(t)})),this.subscribeTimeout);case 7:return e.next=9,e.sent;case 9:return e.abrupt("return",e.sent);case 12:e.prev=12,e.t0=e.catch(4),this.relayer.events.emit(Ie.connection_stalled);case 15:case"end":return e.stop()}}),e,this,[[4,12]])})))}},{key:"rpcUnsubscribe",value:function(t,e,n){var r={method:Object(h.E)(n.protocol).unsubscribe,params:{topic:t,id:e}};return this.logger.debug("Outgoing Relay Payload"),this.logger.trace({type:"payload",direction:"outgoing",request:r}),this.relayer.request(r)}},{key:"onSubscribe",value:function(t,e){this.setSubscription(t,en(tn({},e),{id:t})),this.pending.delete(e.topic)}},{key:"onBatchSubscribe",value:function(t){var e=this;t.length&&t.forEach((function(t){e.setSubscription(t.id,tn({},t)),e.pending.delete(t.topic)}))}},{key:"onUnsubscribe",value:function(t,e,n){return W(this,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.events.removeAllListeners(e),this.hasSubscription(e,t)&&this.deleteSubscription(e,n),r.next=4,this.relayer.messages.del(t);case 4:case"end":return r.stop()}}),r,this)})))}},{key:"setRelayerSubscriptions",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.relayer.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getRelayerSubscriptions",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.relayer.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"setSubscription",value:function(t,e){this.logger.debug("Setting subscription"),this.logger.trace({type:"method",method:"setSubscription",id:t,subscription:e}),this.addSubscription(t,e)}},{key:"addSubscription",value:function(t,e){this.subscriptions.set(t,tn({},e)),this.topicMap.set(e.topic,t),this.events.emit(Le,e)}},{key:"getSubscription",value:function(t){this.logger.debug("Getting subscription"),this.logger.trace({type:"method",method:"getSubscription",id:t});var e=this.subscriptions.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw new Error(n)}return e}},{key:"deleteSubscription",value:function(t,e){this.logger.debug("Deleting subscription"),this.logger.trace({type:"method",method:"deleteSubscription",id:t,reason:e});var n=this.getSubscription(t);this.subscriptions.delete(t),this.topicMap.delete(n.topic,t),this.events.emit(Se,en(tn({},n),{reason:e}))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setRelayerSubscriptions(this.values);case 2:this.events.emit("subscription_sync");case 3:case"end":return t.stop()}}),t,this)})))}},{key:"reset",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this.cached.length){t.next=10;break}e=Math.ceil(this.cached.length/this.batchSubscribeTopicsLimit),n=0;case 3:if(!(n"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.subscriptions.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),this.logger.error("".concat(this.name,": ").concat(JSON.stringify(this.values))),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored subscriptions for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",subscriptions:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore subscriptions for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"batchSubscribe",value:function(t){return W(this,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t.length){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,this.rpcBatchSubscribe(t);case 4:n=e.sent,Object(h.V)(n)&&this.onBatchSubscribe(n.map((function(e,n){return en(tn({},t[n]),{id:e})})));case 6:case"end":return e.stop()}}),e,this)})))}},{key:"onConnect",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.restart();case 2:this.onEnable();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"onDisconnect",value:function(){this.onDisable()}},{key:"checkPending",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized&&this.relayer.connected){t.next=2;break}return t.abrupt("return");case 2:return e=[],this.pending.forEach((function(t){e.push(t)})),t.next=6,this.batchSubscribe(e);case 6:case"end":return t.stop()}}),t,this)})))}},{key:"registerEventListeners",value:function(){var t=this;this.relayer.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){return W(t,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.checkPending();case 2:case"end":return t.stop()}}),t,this)})))})),this.events.on(Le,(function(e){return W(t,null,T().mark((function t(){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Le,this.logger.info("Emitting ".concat(n)),this.logger.debug({type:"event",event:n,data:e}),t.next=5,this.persist();case 5:case"end":return t.stop()}}),t,this)})))})),this.events.on(Se,(function(e){return W(t,null,T().mark((function t(){var n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=Se,this.logger.info("Emitting ".concat(n)),this.logger.debug({type:"event",event:n,data:e}),t.next=5,this.persist();case 5:case"end":return t.stop()}}),t,this)})))}))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}},{key:"restartToComplete",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.restartInProgress,!t.t0){t.next=4;break}return t.next=4,new Promise((function(t){var n=setInterval((function(){e.restartInProgress||(clearInterval(n),t())}),e.pollingInterval)}));case 4:case"end":return t.stop()}}),t,this)})))}}])}(u.k),rn=Object.defineProperty,on=Object.getOwnPropertySymbols,an=Object.prototype.hasOwnProperty,sn=Object.prototype.propertyIsEnumerable,un=function(t,e,n){return e in t?rn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},cn=function(t,e){for(var n in e||(e={}))an.call(e,n)&&un(t,n,e[n]);if(on){var r,i=O(on(e));try{for(i.s();!(r=i.n()).done;)n=r.value,sn.call(e,n)&&un(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},ln=function(t){function e(t){var n;return S(this,e),(n=A(this,e,[t])).protocol="wc",n.version=2,n.events=new r.EventEmitter,n.name="relayer",n.transportExplicitlyClosed=!1,n.initialized=!1,n.connectionAttemptInProgress=!1,n.connectionStatusPollingInterval=20,n.staleConnectionErrors=["socket hang up","socket stalled","interrupted"],n.hasExperiencedNetworkDisruption=!1,n.requestsInFlight=new Map,n.heartBeatTimeout=Object(f.toMiliseconds)(f.THIRTY_SECONDS+f.ONE_SECOND),n.request=function(t){return W(I(n),null,T().mark((function e(){var n,r,i,o,a,s=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.logger.debug("Publishing Request Payload"),i=t.id||Object(y.getBigIntRpcId)().toString(),e.next=4,this.toEstablishConnection();case 4:return e.prev=4,o=this.provider.request(t),this.requestsInFlight.set(i,{promise:o,request:t}),this.logger.trace({id:i,method:t.method,topic:null==(n=t.params)?void 0:n.topic},"relayer.request - attempt to publish..."),e.next=9,new Promise((function(t,e){return W(s,null,T().mark((function n(){var r,a;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function(){e(new Error("relayer.request - publish interrupted, id: ".concat(i)))},this.provider.on(xe,r),n.next=4,o;case 4:a=n.sent,this.provider.off(xe,r),t(a);case 6:case"end":return n.stop()}}),n,this)})))}));case 9:return a=e.sent,e.abrupt("return",(this.logger.trace({id:i,method:t.method,topic:null==(r=t.params)?void 0:r.topic},"relayer.request - published"),a));case 13:throw e.prev=13,e.t0=e.catch(4),this.logger.debug("Failed to Publish Request: ".concat(i)),e.t0;case 16:return e.prev=16,this.requestsInFlight.delete(i),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[4,13,16,19]])})))},n.resetPingTimeout=function(){if(Object(h.N)())try{clearTimeout(n.pingTimeout),n.pingTimeout=setTimeout((function(){var t,e,r;null==(r=null==(e=null==(t=n.provider)?void 0:t.connection)?void 0:e.socket)||r.terminate()}),n.heartBeatTimeout)}catch(t){n.logger.warn(t)}},n.onPayloadHandler=function(t){n.onProviderPayload(t),n.resetPingTimeout()},n.onConnectHandler=function(){n.startPingTimeout(),n.events.emit(Ie.connect)},n.onDisconnectHandler=function(){n.onProviderDisconnect()},n.onProviderErrorHandler=function(t){n.logger.error(t),n.events.emit(Ie.error,t),n.logger.info("Fatal socket error received, closing transport"),n.transportClose()},n.registerProviderListeners=function(){n.provider.on(Ne,n.onPayloadHandler),n.provider.on(Ee,n.onConnectHandler),n.provider.on(xe,n.onDisconnectHandler),n.provider.on(ke,n.onProviderErrorHandler)},n.core=t.core,n.logger=k(t.logger)<"u"&&"string"!=typeof t.logger?Object(s.a)(t.logger,n.name):Object(s.e)(Object(s.c)({level:t.logger||"error"})),n.messages=new Fe(n.logger,t.core),n.subscriber=new nn(I(n),n.logger),n.publisher=new Ve(I(n),n.logger),n.relayUrl=(null==t?void 0:t.relayUrl)||Me,n.projectId=t.projectId,n.bundleId=Object(h.w)(),n.provider={},n}return E(e,t),C(e,[{key:"init",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),this.registerEventListeners(),t.next=4,this.createProvider();case 4:return t.next=6,Promise.all([this.messages.init(),this.subscriber.init()]);case 6:return t.prev=6,t.next=9,this.transportOpen();case 9:t.next=16;break;case 11:return t.prev=11,t.t0=t.catch(6),this.logger.warn("Connection via ".concat(this.relayUrl," failed, attempting to connect via failover domain ").concat(Ae,"...")),t.next=16,this.restartTransport(Ae);case 16:this.initialized=!0,setTimeout((function(){return W(e,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=0===this.subscriber.topics.length&&0===this.subscriber.pending.size,!t.t0){t.next=6;break}return this.logger.info("No topics subscribed to after init, closing transport"),t.next=5,this.transportClose();case 5:this.transportExplicitlyClosed=!1;case 6:case"end":return t.stop()}}),t,this)})))}),1e4);case 17:case"end":return t.stop()}}),t,this,[[6,11]])})))}},{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"connected",get:function(){var t,e,n;return 1===(null==(n=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:n.readyState)}},{key:"connecting",get:function(){var t,e,n;return 0===(null==(n=null==(e=null==(t=this.provider)?void 0:t.connection)?void 0:e.socket)?void 0:n.readyState)}},{key:"publish",value:function(t,e,n){return W(this,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this.isInitialized(),r.next=3,this.publisher.publish(t,e,n);case 3:return r.next=5,this.recordMessageEvent({topic:t,message:e,publishedAt:Date.now()});case 5:case"end":return r.stop()}}),r,this)})))}},{key:"subscribe",value:function(t,e){return W(this,null,T().mark((function n(){var r,i,o,a,s=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),i=(null==(r=this.subscriber.topicMap.get(t))?void 0:r[0])||"",a=function e(n){n.topic===t&&(s.subscriber.off(Le,e),o())},n.next=5,Promise.all([new Promise((function(t){o=t,s.subscriber.on(Le,a)})),new Promise((function(n){return W(s,null,T().mark((function r(){return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.subscriber.subscribe(t,e);case 2:if(r.t0=r.sent,r.t0){r.next=5;break}r.t0=i;case 5:i=r.t0,n();case 7:case"end":return r.stop()}}),r,this)})))}))]);case 5:return n.abrupt("return",i);case 6:case"end":return n.stop()}}),n,this)})))}},{key:"unsubscribe",value:function(t,e){return W(this,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),n.next=3,this.subscriber.unsubscribe(t,e);case 3:case"end":return n.stop()}}),n,this)})))}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}},{key:"off",value:function(t,e){this.events.off(t,e)}},{key:"removeListener",value:function(t,e){this.events.removeListener(t,e)}},{key:"transportDisconnect",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!(!this.hasExperiencedNetworkDisruption&&this.connected&&this.requestsInFlight.size>0)){t.next=9;break}return t.prev=1,t.next=4,Promise.all(Array.from(this.requestsInFlight.values()).map((function(t){return t.promise})));case 4:t.next=9;break;case 6:t.prev=6,t.t0=t.catch(1),this.logger.warn(t.t0);case 9:if(!this.hasExperiencedNetworkDisruption&&!this.connected){t.next=14;break}return t.next=12,Object(h.h)(this.provider.disconnect(),2e3,"provider.disconnect()").catch((function(){return e.onProviderDisconnect()}));case 12:t.next=15;break;case 14:this.onProviderDisconnect();case 15:case"end":return t.stop()}}),t,this,[[1,6]])})))}},{key:"transportClose",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.transportExplicitlyClosed=!0,t.next=3,this.transportDisconnect();case 3:case"end":return t.stop()}}),t,this)})))}},{key:"transportOpen",value:function(t){return W(this,null,T().mark((function e(){var n,r=this;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.confirmOnlineStateOrThrow();case 2:if(e.t0=t&&t!==this.relayUrl,!e.t0){e.next=9;break}return this.relayUrl=t,e.next=7,this.transportDisconnect();case 7:return e.next=9,this.createProvider();case 9:return this.connectionAttemptInProgress=!0,this.transportExplicitlyClosed=!1,e.prev=11,e.next=14,new Promise((function(t,e){return W(r,null,T().mark((function n(){var r,i=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=function t(){i.provider.off(xe,t),e(new Error("Connection interrupted while trying to subscribe"))},this.provider.on(xe,r),n.next=4,Object(h.h)(this.provider.connect(),Object(f.toMiliseconds)(f.ONE_MINUTE),"Socket stalled when trying to connect to ".concat(this.relayUrl)).catch((function(t){e(t)}));case 4:return n.next=6,this.subscriber.start();case 6:this.hasExperiencedNetworkDisruption=!1,t();case 8:case"end":return n.stop()}}),n,this)})))}));case 14:e.next=22;break;case 16:if(e.prev=16,e.t1=e.catch(11),this.logger.error(e.t1),n=e.t1,this.isConnectionStalled(n.message)){e.next=22;break}throw e.t1;case 22:return e.prev=22,this.connectionAttemptInProgress=!1,e.finish(22);case 25:case"end":return e.stop()}}),e,this,[[11,16,22,25]])})))}},{key:"restartTransport",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this.connectionAttemptInProgress,e.t0){e.next=11;break}return this.relayUrl=t||this.relayUrl,e.next=5,this.confirmOnlineStateOrThrow();case 5:return e.next=7,this.transportClose();case 7:return e.next=9,this.createProvider();case 9:return e.next=11,this.transportOpen();case 11:case"end":return e.stop()}}),e,this)})))}},{key:"confirmOnlineStateOrThrow",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(h.O)();case 2:if(t.sent){t.next=4;break}throw new Error("No internet connection detected. Please restart your network and try again.");case 4:case"end":return t.stop()}}),t)})))}},{key:"startPingTimeout",value:function(){var t,e,n,r,i,o=this;if(Object(h.N)())try{null!=(e=null==(t=this.provider)?void 0:t.connection)&&e.socket&&(null==(i=null==(r=null==(n=this.provider)?void 0:n.connection)?void 0:r.socket)||i.once("ping",(function(){o.resetPingTimeout()}))),this.resetPingTimeout()}catch(t){this.logger.warn(t)}}},{key:"isConnectionStalled",value:function(t){return this.staleConnectionErrors.some((function(e){return t.includes(e)}))}},{key:"createProvider",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.provider.connection&&this.unregisterProviderListeners(),t.next=3,this.core.crypto.signJWT(this.relayUrl);case 3:e=t.sent,this.provider=new p.a(new m.a(Object(h.q)({sdkVersion:"2.12.2",protocol:this.protocol,version:this.version,relayUrl:this.relayUrl,projectId:this.projectId,auth:e,useOnCloseEvent:!0,bundleId:this.bundleId}))),this.registerProviderListeners();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"recordMessageEvent",value:function(t){return W(this,null,T().mark((function e(){var n,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.message,e.next=3,this.messages.set(n,r);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"shouldIgnoreMessageEvent",value:function(t){return W(this,null,T().mark((function e(){var n,r,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=t.topic,(r=t.message)&&0!==r.length){e.next=3;break}return e.abrupt("return",(this.logger.debug("Ignoring invalid/empty message: ".concat(r)),!0));case 3:return e.next=5,this.subscriber.isSubscribed(n);case 5:if(e.sent){e.next=7;break}return e.abrupt("return",(this.logger.debug("Ignoring message for non-subscribed topic ".concat(n)),!0));case 7:return i=this.messages.has(n,r),e.abrupt("return",(i&&this.logger.debug("Ignoring duplicate message: ".concat(r)),i));case 9:case"end":return e.stop()}}),e,this)})))}},{key:"onProviderPayload",value:function(t){return W(this,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.logger.debug("Incoming Relay Payload"),this.logger.trace({type:"payload",direction:"incoming",payload:t}),!Object(y.isJsonRpcRequest)(t)){e.next=13;break}if(t.method.endsWith("_subscription")){e.next=3;break}return e.abrupt("return");case 3:return n=t.params,r=n.data,i=r.topic,o=r.message,a=r.publishedAt,s={topic:i,message:o,publishedAt:a},this.logger.debug("Emitting Relayer Payload"),this.logger.trace(cn({type:"event",event:n.id},s)),this.events.emit(n.id,s),e.next=9,this.acknowledgePayload(t);case 9:return e.next=11,this.onMessageEvent(s);case 11:e.next=14;break;case 13:Object(y.isJsonRpcResponse)(t)&&this.events.emit(Ie.message_ack,t);case 14:case"end":return e.stop()}}),e,this)})))}},{key:"onMessageEvent",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.shouldIgnoreMessageEvent(t);case 2:if(e.t0=e.sent,e.t0){e.next=7;break}return this.events.emit(Ie.message,t),e.next=7,this.recordMessageEvent(t);case 7:case"end":return e.stop()}}),e,this)})))}},{key:"acknowledgePayload",value:function(t){return W(this,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Object(y.formatJsonRpcResult)(t.id,!0),e.next=3,this.provider.connection.send(n);case 3:case"end":return e.stop()}}),e,this)})))}},{key:"unregisterProviderListeners",value:function(){this.provider.off(Ne,this.onPayloadHandler),this.provider.off(Ee,this.onConnectHandler),this.provider.off(xe,this.onDisconnectHandler),this.provider.off(ke,this.onProviderErrorHandler)}},{key:"registerEventListeners",value:function(){return W(this,null,T().mark((function t(){var e,n=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Object(h.O)();case 2:e=t.sent,Object(h.ub)((function(t){return W(n,null,T().mark((function n(){var r=this;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=e!==t,!n.t0){n.next=12;break}if(e=t,!t){n.next=8;break}return n.next=6,this.restartTransport().catch((function(t){return r.logger.error(t)}));case 6:n.next=12;break;case 8:return this.hasExperiencedNetworkDisruption=!0,n.next=11,this.transportDisconnect();case 11:this.transportExplicitlyClosed=!1;case 12:case"end":return n.stop()}}),n,this)})))}));case 4:case"end":return t.stop()}}),t)})))}},{key:"onProviderDisconnect",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.subscriber.stop();case 2:this.events.emit(Ie.disconnect),this.connectionAttemptInProgress=!1,!this.transportExplicitlyClosed&&setTimeout((function(){return W(e,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.transportOpen().catch((function(t){return e.logger.error(t)}));case 2:case"end":return t.stop()}}),t,this)})))}),Object(f.toMiliseconds)(Te));case 5:case"end":return t.stop()}}),t,this)})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}},{key:"toEstablishConnection",value:function(){return W(this,null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.confirmOnlineStateOrThrow();case 2:if(t.t0=!this.connected,!t.t0){t.next=10;break}if(t.t1=this.connectionAttemptInProgress,!t.t1){t.next=8;break}return t.next=8,new Promise((function(t){var n=setInterval((function(){e.connected&&(clearInterval(n),t())}),e.connectionStatusPollingInterval)}));case 8:return t.next=10,this.transportOpen();case 10:case"end":return t.stop()}}),t,this)})))}}])}(u.h),hn=Object.defineProperty,dn=Object.getOwnPropertySymbols,fn=Object.prototype.hasOwnProperty,pn=Object.prototype.propertyIsEnumerable,yn=function(t,e,n){return e in t?hn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},mn=function(t,e){for(var n in e||(e={}))fn.call(e,n)&&yn(t,n,e[n]);if(dn){var r,i=O(dn(e));try{for(i.s();!(r=i.n()).done;)n=r.value,pn.call(e,n)&&yn(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},gn=function(t){function e(t,n,r){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ye,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:void 0;return S(this,e),(i=A(this,e,[t,n,r,o])).core=t,i.logger=n,i.name=r,i.map=new Map,i.version="0.3",i.cached=[],i.initialized=!1,i.storagePrefix=ye,i.recentlyDeleted=[],i.recentlyDeletedLimit=200,i.init=function(){return W(I(i),null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=8;break}return this.logger.trace("Initialized"),t.next=5,this.restore();case 5:this.cached.forEach((function(t){e.getKey&&null!==t&&!Object(h.U)(t)?e.map.set(e.getKey(t),t):Object(h.P)(t)?e.map.set(t.id,t):Object(h.S)(t)&&e.map.set(t.topic,t)})),this.cached=[],this.initialized=!0;case 8:case"end":return t.stop()}}),t,this)})))},i.set=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),!this.map.has(t)){n.next=6;break}return n.next=4,this.update(t,e);case 4:n.next=11;break;case 6:return this.logger.debug("Setting value"),this.logger.trace({type:"method",method:"set",key:t,value:e}),this.map.set(t,e),n.next=11,this.persist();case 11:case"end":return n.stop()}}),n,this)})))},i.get=function(t){return i.isInitialized(),i.logger.debug("Getting value"),i.logger.trace({type:"method",method:"get",key:t}),i.getData(t)},i.getAll=function(t){return i.isInitialized(),t?i.values.filter((function(e){return Object.keys(t).every((function(n){return v()(e[n],t[n])}))})):i.values},i.update=function(t,e){return W(I(i),null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.logger.debug("Updating value"),this.logger.trace({type:"method",method:"update",key:t,update:e}),r=mn(mn({},this.getData(t)),e),this.map.set(t,r),n.next=5,this.persist();case 5:case"end":return n.stop()}}),n,this)})))},i.delete=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),n.t0=this.map.has(t),!n.t0){n.next=9;break}return this.logger.debug("Deleting value"),this.logger.trace({type:"method",method:"delete",key:t,reason:e}),this.map.delete(t),this.addToRecentlyDeleted(t),n.next=9,this.persist();case 9:case"end":return n.stop()}}),n,this)})))},i.logger=Object(s.a)(n,i.name),i.storagePrefix=o,i.getKey=a,i}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.map.size}},{key:"keys",get:function(){return Array.from(this.map.keys())}},{key:"values",get:function(){return Array.from(this.map.values())}},{key:"addToRecentlyDeleted",value:function(t){this.recentlyDeleted.push(t),this.recentlyDeleted.length>=this.recentlyDeletedLimit&&this.recentlyDeleted.splice(0,this.recentlyDeletedLimit/2)}},{key:"setDataStore",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getDataStore",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getData",value:function(t){var e=this.map.get(t);if(!e){if(this.recentlyDeleted.includes(t)){var n=Object(h.A)("MISSING_OR_INVALID","Record was recently deleted - ".concat(this.name,": ").concat(t)).message;throw this.logger.error(n),new Error(n)}var r=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw this.logger.error(r),new Error(r)}return e}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setDataStore(this.values);case 2:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getDataStore();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.map.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored value for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",value:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore value for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.j),vn=C((function t(e,n){var r=this;S(this,t),this.core=e,this.logger=n,this.name="pairing",this.version="0.3",this.events=new i.a,this.initialized=!1,this.storagePrefix=ye,this.ignoredPayloadTypes=[h.c],this.registeredMethods=[],this.init=function(){return W(r,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=10;break}return t.next=4,this.pairings.init();case 4:return t.next=6,this.cleanup();case 6:this.registerRelayerEvents(),this.registerExpirerEvents(),this.initialized=!0,this.logger.trace("Initialized");case 10:case"end":return t.stop()}}),t,this)})))},this.register=function(t){var e=t.methods;r.isInitialized(),r.registeredMethods=M(new Set([].concat(M(r.registeredMethods),M(e))))},this.create=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),n=Object(h.u)(),e.next=4,this.core.crypto.setSymKey(n);case 4:return r=e.sent,i=Object(h.e)(f.FIVE_MINUTES),a={topic:r,expiry:i,relay:o={protocol:be},active:!1},s=Object(h.s)({protocol:this.core.protocol,version:this.core.version,topic:r,symKey:n,relay:o,expiryTimestamp:i,methods:null==t?void 0:t.methods}),e.next=11,this.pairings.set(r,a);case 11:return e.next=13,this.core.relayer.subscribe(r);case 13:return this.core.expirer.set(r,i),e.abrupt("return",{topic:r,uri:s});case 15:case"end":return e.stop()}}),e,this)})))},this.pair=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s,u,c;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitialized(),this.isValidPair(t),n=Object(h.tb)(t.uri),r=n.topic,i=n.symKey,o=n.relay,a=n.expiryTimestamp,s=n.methods,!this.pairings.keys.includes(r)||!this.pairings.get(r).active){e.next=4;break}throw new Error("Pairing already exists: ".concat(r,". Please try again with a new connection URI."));case 4:return u=a||Object(h.e)(f.FIVE_MINUTES),c={topic:r,relay:o,expiry:u,active:!1,methods:s},e.next=7,this.pairings.set(r,c);case 7:if(this.core.expirer.set(r,u),e.t0=t.activatePairing,!e.t0){e.next=12;break}return e.next=12,this.activate({topic:r});case 12:if(this.events.emit(De.create,c),e.t1=this.core.crypto.keychain.has(r),e.t1){e.next=17;break}return e.next=17,this.core.crypto.setSymKey(i,r);case 17:return e.next=19,this.core.relayer.subscribe(r,{relay:o});case 19:return e.abrupt("return",c);case 20:case"end":return e.stop()}}),e,this)})))},this.activate=function(t){return W(r,[t],(function(t){var e=this,n=t.topic;return T().mark((function t(){var r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),r=Object(h.e)(f.THIRTY_DAYS),t.next=4,e.pairings.update(n,{active:!0,expiry:r});case 4:e.core.expirer.set(n,r);case 5:case"end":return t.stop()}}),t)}))()}))},this.ping=function(t){return W(r,null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.isValidPing(t);case 3:if(n=t.topic,!this.pairings.keys.includes(n)){e.next=15;break}return e.next=7,this.sendRequest(n,"wc_pairingPing",{});case 7:return r=e.sent,i=Object(h.f)(),o=i.done,a=i.resolve,s=i.reject,this.events.once(Object(h.n)("pairing_ping",r),(function(t){var e=t.error;e?s(e):a()})),e.next=15,o();case 15:case"end":return e.stop()}}),e,this)})))},this.updateExpiry=function(t){return W(r,[t],(function(t){var e=this,n=t.topic,r=t.expiry;return T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),t.next=3,e.pairings.update(n,{expiry:r});case 3:case"end":return t.stop()}}),t)}))()}))},this.updateMetadata=function(t){return W(r,[t],(function(t){var e=this,n=t.topic,r=t.metadata;return T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.isInitialized(),t.next=3,e.pairings.update(n,{peerMetadata:r});case 3:case"end":return t.stop()}}),t)}))()}))},this.getPairings=function(){return r.isInitialized(),r.pairings.values},this.disconnect=function(t){return W(r,null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),e.next=3,this.isValidDisconnect(t);case 3:if(n=t.topic,e.t0=this.pairings.keys.includes(n),!e.t0){e.next=10;break}return e.next=8,this.sendRequest(n,"wc_pairingDelete",Object(h.G)("USER_DISCONNECTED"));case 8:return e.next=10,this.deletePairing(n);case 10:case"end":return e.stop()}}),e,this)})))},this.sendRequest=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcRequest)(e,n),r.next=3,this.core.crypto.encode(t,i);case 3:return o=r.sent,a=Ce[e].req,r.abrupt("return",(this.core.history.set(t,i),this.core.relayer.publish(t,o,a),i.id));case 6:case"end":return r.stop()}}),r,this)})))},this.sendResult=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a,s;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcResult)(t,n),r.next=3,this.core.crypto.encode(e,i);case 3:return o=r.sent,r.next=6,this.core.history.get(e,t);case 6:return a=r.sent,s=Ce[a.request.method].res,r.next=10,this.core.relayer.publish(e,o,s);case 10:return r.next=12,this.core.history.resolve(i);case 12:case"end":return r.stop()}}),r,this)})))},this.sendError=function(t,e,n){return W(r,null,T().mark((function r(){var i,o,a,s;return T().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i=Object(y.formatJsonRpcError)(t,n),r.next=3,this.core.crypto.encode(e,i);case 3:return o=r.sent,r.next=6,this.core.history.get(e,t);case 6:return a=r.sent,s=Ce[a.request.method]?Ce[a.request.method].res:Ce.unregistered_method.res,r.next=10,this.core.relayer.publish(e,o,s);case 10:return r.next=12,this.core.history.resolve(i);case 12:case"end":return r.stop()}}),r,this)})))},this.deletePairing=function(t,e){return W(r,null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.core.relayer.unsubscribe(t);case 2:return n.next=4,Promise.all([this.pairings.delete(t,Object(h.G)("USER_DISCONNECTED")),this.core.crypto.deleteSymKey(t),e?Promise.resolve():this.core.expirer.del(t)]);case 4:case"end":return n.stop()}}),n,this)})))},this.cleanup=function(){return W(r,null,T().mark((function t(){var e,n=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=this.pairings.getAll().filter((function(t){return Object(h.M)(t.expiry)})),t.next=3,Promise.all(e.map((function(t){return n.deletePairing(t.topic)})));case 3:case"end":return t.stop()}}),t,this)})))},this.onRelayEventRequest=function(t){var e=t.topic,n=t.payload;switch(n.method){case"wc_pairingPing":return r.onPairingPingRequest(e,n);case"wc_pairingDelete":return r.onPairingDeleteRequest(e,n);default:return r.onUnknownRpcMethodRequest(e,n)}},this.onRelayEventResponse=function(t){return W(r,null,T().mark((function e(){var n,r,i;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.payload,e.next=4,this.core.history.get(n,r.id);case 4:i=e.sent.request.method,e.t0=i,e.next="wc_pairingPing"===e.t0?8:9;break;case 8:return e.abrupt("return",this.onPairingPingResponse(n,r));case 9:return e.abrupt("return",this.onUnknownRpcMethodResponse(i));case 10:case"end":return e.stop()}}),e,this)})))},this.onPairingPingRequest=function(t,e){return W(r,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidPing({topic:t}),n.next=5,this.sendResult(r,t,!0);case 5:this.events.emit(De.ping,{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError(r,t,n.t0);case 12:this.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},this.onPairingPingResponse=function(t,e){var n=e.id;setTimeout((function(){Object(y.isJsonRpcResult)(e)?r.events.emit(Object(h.n)("pairing_ping",n),{}):Object(y.isJsonRpcError)(e)&&r.events.emit(Object(h.n)("pairing_ping",n),{error:e.error})}),500)},this.onPairingDeleteRequest=function(t,e){return W(r,null,T().mark((function n(){var r;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidDisconnect({topic:t}),n.next=5,this.deletePairing(t);case 5:this.events.emit(De.delete,{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError(r,t,n.t0);case 12:this.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},this.onUnknownRpcMethodRequest=function(t,e){return W(r,null,T().mark((function n(){var r,i,o;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,i=e.method,n.prev=1,!this.registeredMethods.includes(i)){n.next=4;break}return n.abrupt("return");case 4:return o=Object(h.G)("WC_METHOD_UNSUPPORTED",i),n.next=7,this.sendError(r,t,o);case 7:this.logger.error(o),n.next=15;break;case 10:return n.prev=10,n.t0=n.catch(1),n.next=14,this.sendError(r,t,n.t0);case 14:this.logger.error(n.t0);case 15:case"end":return n.stop()}}),n,this,[[1,10]])})))},this.onUnknownRpcMethodResponse=function(t){r.registeredMethods.includes(t)||r.logger.error(Object(h.G)("WC_METHOD_UNSUPPORTED",t))},this.isValidPair=function(t){var e;if(!Object(h.fb)(t)){var n=Object(h.A)("MISSING_OR_INVALID","pair() params: ".concat(t)).message;throw new Error(n)}if(!Object(h.nb)(t.uri)){var r=Object(h.A)("MISSING_OR_INVALID","pair() uri: ".concat(t.uri)).message;throw new Error(r)}var i=Object(h.tb)(t.uri);if(null==(e=null==i?void 0:i.relay)||!e.protocol){var o=Object(h.A)("MISSING_OR_INVALID","pair() uri#relay-protocol").message;throw new Error(o)}if(null==i||!i.symKey){var a=Object(h.A)("MISSING_OR_INVALID","pair() uri#symKey").message;throw new Error(a)}if(null!=i&&i.expiryTimestamp&&Object(f.toMiliseconds)(null==i?void 0:i.expiryTimestamp)"u"&&(n.response=Object(y.isJsonRpcError)(t)?{error:t.error}:{result:t.result},this.records.set(n.id,n),this.persist(),this.events.emit(ze,n));case 6:case"end":return e.stop()}}),e,this)})))},i.get=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.isInitialized(),this.logger.debug("Getting record"),this.logger.trace({type:"method",method:"get",topic:t,id:e}),n.next=5,this.getRecord(e);case 5:return n.abrupt("return",n.sent);case 6:case"end":return n.stop()}}),n,this)})))},i.delete=function(t,e){i.isInitialized(),i.logger.debug("Deleting record"),i.logger.trace({type:"method",method:"delete",id:e}),i.values.forEach((function(n){if(n.topic===t){if(k(e)<"u"&&n.id!==e)return;i.records.delete(n.id),i.events.emit(Pe,n)}})),i.persist()},i.exists=function(t,e){return W(I(i),null,T().mark((function n(){return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(this.isInitialized(),!this.records.has(e)){n.next=9;break}return n.next=4,this.getRecord(e);case 4:n.t1=n.sent.topic,n.t2=t,n.t0=n.t1===n.t2,n.next=10;break;case 9:n.t0=!1;case 10:return n.abrupt("return",n.t0);case 11:case"end":return n.stop()}}),n,this)})))},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.logger=Object(s.a)(n,i.name),i}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"size",get:function(){return this.records.size}},{key:"keys",get:function(){return Array.from(this.records.keys())}},{key:"values",get:function(){return Array.from(this.records.values())}},{key:"pending",get:function(){var t=[];return this.values.forEach((function(e){if(!(k(e.response)<"u")){var n={topic:e.topic,request:Object(y.formatJsonRpcRequest)(e.request.method,e.request.params,e.id),chainId:e.chainId};return t.push(n)}})),t}},{key:"setJsonRpcRecords",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getJsonRpcRecords",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getRecord",value:function(t){this.isInitialized();var e=this.records.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw new Error(n)}return e}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setJsonRpcRecords(this.values);case 2:this.events.emit("history_sync");case 3:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getJsonRpcRecords();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.records.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored records for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",records:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore records for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"registerEventListeners",value:function(){var t=this;this.events.on(Oe,(function(e){var n=Oe;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.events.on(ze,(function(e){var n=ze;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.events.on(Pe,(function(e){var n=Pe;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,record:e})})),this.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){t.cleanup()}))}},{key:"cleanup",value:function(){var t=this;try{this.isInitialized();var e=!1;this.records.forEach((function(n){Object(f.toMiliseconds)(n.expiry||0)-Date.now()<=0&&(t.logger.info("Deleting expired history log: ".concat(n.id)),t.records.delete(n.id),t.events.emit(Pe,n,!1),e=!0)})),e&&this.persist()}catch(e){this.logger.warn(e)}}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.e),bn=function(t){function e(t,n){var i;return S(this,e),(i=A(this,e,[t,n])).core=t,i.logger=n,i.expirations=new Map,i.events=new r.EventEmitter,i.name="expirer",i.version="0.3",i.cached=[],i.initialized=!1,i.storagePrefix=ye,i.init=function(){return W(I(i),null,T().mark((function t(){var e=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=9;break}return this.logger.trace("Initialized"),t.next=5,this.restore();case 5:this.cached.forEach((function(t){return e.expirations.set(t.target,t)})),this.cached=[],this.registerEventListeners(),this.initialized=!0;case 9:case"end":return t.stop()}}),t,this)})))},i.has=function(t){try{var e=i.formatTarget(t);return k(i.getExpiration(e))<"u"}catch(t){return!1}},i.set=function(t,e){i.isInitialized();var n=i.formatTarget(t),r={target:n,expiry:e};i.expirations.set(n,r),i.checkExpiry(n,r),i.events.emit(_e.created,{target:n,expiration:r})},i.get=function(t){i.isInitialized();var e=i.formatTarget(t);return i.getExpiration(e)},i.del=function(t){if(i.isInitialized(),i.has(t)){var e=i.formatTarget(t),n=i.getExpiration(e);i.expirations.delete(e),i.events.emit(_e.deleted,{target:e,expiration:n})}},i.on=function(t,e){i.events.on(t,e)},i.once=function(t,e){i.events.once(t,e)},i.off=function(t,e){i.events.off(t,e)},i.removeListener=function(t,e){i.events.removeListener(t,e)},i.logger=Object(s.a)(n,i.name),i}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"storageKey",get:function(){return this.storagePrefix+this.version+this.core.customStoragePrefix+"//"+this.name}},{key:"length",get:function(){return this.expirations.size}},{key:"keys",get:function(){return Array.from(this.expirations.keys())}},{key:"values",get:function(){return Array.from(this.expirations.values())}},{key:"formatTarget",value:function(t){if("string"==typeof t)return Object(h.r)(t);if("number"==typeof t)return Object(h.o)(t);var e=Object(h.A)("UNKNOWN_TYPE","Target type: ".concat(k(t))).message;throw new Error(e)}},{key:"setExpirations",value:function(t){return W(this,null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.core.storage.setItem(this.storageKey,t);case 2:case"end":return e.stop()}}),e,this)})))}},{key:"getExpirations",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.core.storage.getItem(this.storageKey);case 2:return t.abrupt("return",t.sent);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"persist",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.setExpirations(this.values);case 2:this.events.emit(_e.sync);case 3:case"end":return t.stop()}}),t,this)})))}},{key:"restore",value:function(){return W(this,null,T().mark((function t(){var e,n,r;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this.getExpirations();case 3:if(!(k(e=t.sent)>"u")&&e.length){t.next=6;break}return t.abrupt("return");case 6:if(!this.expirations.size){t.next=9;break}throw n=Object(h.A)("RESTORE_WILL_OVERRIDE",this.name),r=n.message,this.logger.error(r),new Error(r);case 9:this.cached=e,this.logger.debug("Successfully Restored expirations for ".concat(this.name)),this.logger.trace({type:"method",method:"restore",expirations:this.values}),t.next=15;break;case 12:t.prev=12,t.t0=t.catch(0),this.logger.debug("Failed to Restore expirations for ".concat(this.name)),this.logger.error(t.t0);case 15:case"end":return t.stop()}}),t,this,[[0,12]])})))}},{key:"getExpiration",value:function(t){var e=this.expirations.get(t);if(!e){var n=Object(h.A)("NO_MATCHING_KEY","".concat(this.name,": ").concat(t)).message;throw this.logger.warn(n),new Error(n)}return e}},{key:"checkExpiry",value:function(t,e){var n=e.expiry;Object(f.toMiliseconds)(n)-Date.now()<=0&&this.expire(t,e)}},{key:"expire",value:function(t,e){this.expirations.delete(t),this.events.emit(_e.expired,{target:t,expiration:e})}},{key:"checkExpirations",value:function(){var t=this;this.core.relayer.connected&&this.expirations.forEach((function(e,n){return t.checkExpiry(n,e)}))}},{key:"registerEventListeners",value:function(){var t=this;this.core.heartbeat.on(a.HEARTBEAT_EVENTS.pulse,(function(){return t.checkExpirations()})),this.events.on(_e.created,(function(e){var n=_e.created;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()})),this.events.on(_e.expired,(function(e){var n=_e.expired;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()})),this.events.on(_e.deleted,(function(e){var n=_e.deleted;t.logger.info("Emitting ".concat(n)),t.logger.debug({type:"event",event:n,data:e}),t.persist()}))}},{key:"isInitialized",value:function(){if(!this.initialized){var t=Object(h.A)("NOT_INITIALIZED",this.name).message;throw new Error(t)}}}])}(u.d),Mn=function(e){function n(e,r){var i;return S(this,n),(i=A(this,n,[e,r])).projectId=e,i.logger=r,i.name=Be,i.initialized=!1,i.queue=[],i.verifyDisabled=!1,i.init=function(t){return W(I(i),null,T().mark((function e(){var n;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.verifyDisabled&&!Object(h.Q)()&&Object(h.K)()){e.next=2;break}return e.abrupt("return");case 2:return n=this.getVerifyUrl(null==t?void 0:t.verifyUrl),this.verifyUrl!==n&&this.removeIframe(),this.verifyUrl=n,e.prev=4,e.next=7,this.createIframe();case 7:e.next=12;break;case 9:e.prev=9,e.t0=e.catch(4),this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(e.t0);case 12:if(this.initialized){e.next=22;break}return this.removeIframe(),this.verifyUrl=Ue,e.prev=14,e.next=17,this.createIframe();case 17:e.next=22;break;case 19:e.prev=19,e.t1=e.catch(14),this.logger.info("Verify iframe failed to load: ".concat(this.verifyUrl)),this.logger.info(e.t1),this.verifyDisabled=!0;case 22:case"end":return e.stop()}}),e,this,[[4,9],[14,19]])})))},i.register=function(t){return W(I(i),null,T().mark((function e(){return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.initialized){e.next=4;break}this.sendPost(t.attestationId),e.next=7;break;case 4:return this.addToQueue(t.attestationId),e.next=7,this.init();case 7:case"end":return e.stop()}}),e,this)})))},i.resolve=function(t){return W(I(i),null,T().mark((function e(){var n,r;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!this.isDevEnv){e.next=2;break}return e.abrupt("return","");case 2:return n=this.getVerifyUrl(null==t?void 0:t.verifyUrl),e.prev=3,e.next=6,this.fetchAttestation(t.attestationId,n);case 6:r=e.sent,e.next=16;break;case 9:return e.prev=9,e.t0=e.catch(3),this.logger.info("failed to resolve attestation: ".concat(t.attestationId," from url: ").concat(n)),this.logger.info(e.t0),e.next=15,this.fetchAttestation(t.attestationId,Ue);case 15:r=e.sent;case 16:return e.abrupt("return",r);case 17:case"end":return e.stop()}}),e,this,[[3,9]])})))},i.fetchAttestation=function(t,e){return W(I(i),null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return this.logger.info("resolving attestation: ".concat(t," from url: ").concat(e)),r=this.startAbortTimer(2*f.ONE_SECOND),n.next=4,fetch("".concat(e,"/attestation/").concat(t),{signal:this.abortController.signal});case 4:if(i=n.sent,clearTimeout(r),200!==i.status){n.next=12;break}return n.next=9,i.json();case 9:n.t0=n.sent,n.next=13;break;case 12:n.t0=void 0;case 13:return n.abrupt("return",n.t0);case 14:case"end":return n.stop()}}),n,this)})))},i.addToQueue=function(t){i.queue.push(t)},i.processQueue=function(){0!==i.queue.length&&(i.queue.forEach((function(t){return i.sendPost(t)})),i.queue=[])},i.sendPost=function(t){var e;try{if(!i.iframe)return;null==(e=i.iframe.contentWindow)||e.postMessage(t,"*"),i.logger.info("postMessage sent: ".concat(t," ").concat(i.verifyUrl))}catch(t){}},i.createIframe=function(){return W(I(i),null,T().mark((function t(){var e,n,r=this;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=function t(n){"verify_ready"===n.data&&(r.onInit(),window.removeEventListener("message",t),e())},t.next=3,Promise.race([new Promise((function(t){var i=document.getElementById(Be);if(i)return r.iframe=i,r.onInit(),t();window.addEventListener("message",n);var o=document.createElement("iframe");o.id=Be,o.src="".concat(r.verifyUrl,"/").concat(r.projectId),o.style.display="none",document.body.append(o),r.iframe=o,e=t})),new Promise((function(t,e){return setTimeout((function(){window.removeEventListener("message",n),e("verify iframe load timeout")}),Object(f.toMiliseconds)(f.FIVE_SECONDS))}))]);case 3:case"end":return t.stop()}}),t)})))},i.onInit=function(){i.initialized=!0,i.processQueue()},i.removeIframe=function(){i.iframe&&(i.iframe.remove(),i.iframe=void 0,i.initialized=!1)},i.getVerifyUrl=function(t){var e=t||Re;return Qe.includes(e)||(i.logger.info("verify url: ".concat(e,", not included in trusted list, assigning default: ").concat(Re)),e=Re),e},i.logger=Object(s.a)(r,i.name),i.verifyUrl=Re,i.abortController=new AbortController,i.isDevEnv=Object(h.N)()&&t.env.IS_VITEST,i}return E(n,e),C(n,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"startAbortTimer",value:function(t){var e=this;return this.abortController=new AbortController,setTimeout((function(){return e.abortController.abort()}),Object(f.toMiliseconds)(t))}}])}(u.l),An=function(t){function e(t,n){var r;return S(this,e),(r=A(this,e,[t,n])).projectId=t,r.logger=n,r.context="echo",r.registerDeviceToken=function(t){return W(I(r),null,T().mark((function e(){var n,r,i,o,a,s;return T().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.clientId,r=t.token,i=t.notificationType,o=t.enableEncrypted,a=void 0!==o&&o,s="".concat("https://echo.walletconnect.com","/").concat(this.projectId,"/clients"),e.next=3,b()(s,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({client_id:n,type:i,token:r,always_raw:a})});case 3:case"end":return e.stop()}}),e,this)})))},r.logger=Object(s.a)(n,r.context),r}return E(e,t),C(e)}(u.b),In=Object.defineProperty,Nn=Object.getOwnPropertySymbols,En=Object.prototype.hasOwnProperty,xn=Object.prototype.propertyIsEnumerable,kn=function(t,e,n){return e in t?In(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n},Tn=function(t,e){for(var n in e||(e={}))En.call(e,n)&&kn(t,n,e[n]);if(Nn){var r,i=O(Nn(e));try{for(i.s();!(r=i.n()).done;)n=r.value,xn.call(e,n)&&kn(t,n,e[n])}catch(t){i.e(t)}finally{i.f()}}return t},Ln=function(t){function e(t){var n,i;S(this,e),(n=A(this,e,[t])).protocol="wc",n.version=2,n.name=pe,n.events=new r.EventEmitter,n.initialized=!1,n.on=function(t,e){return n.events.on(t,e)},n.once=function(t,e){return n.events.once(t,e)},n.off=function(t,e){return n.events.off(t,e)},n.removeListener=function(t,e){return n.events.removeListener(t,e)},n.projectId=null==t?void 0:t.projectId,n.relayUrl=(null==t?void 0:t.relayUrl)||Me,n.customStoragePrefix=null!=t&&t.customStoragePrefix?":".concat(t.customStoragePrefix):"";var u=Object(s.c)({level:"string"==typeof(null==t?void 0:t.logger)&&t.logger?t.logger:"error"}),c=Object(s.b)({opts:u,maxSizeInBytes:null==t?void 0:t.maxLogBlobSizeInBytes,loggerOverride:null==t?void 0:t.logger}),l=c.logger,h=c.chunkLoggerController;return n.logChunkController=h,null!=(i=n.logChunkController)&&i.downloadLogsBlobInBrowser&&(window.downloadLogsBlobInBrowser=function(){return W(n,null,T().mark((function t(){var e,n;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=null!=(e=this.logChunkController)&&e.downloadLogsBlobInBrowser,!t.t0){t.next=10;break}if(t.t1=null==(n=this.logChunkController),t.t1){t.next=10;break}return t.t2=n,t.next=7,this.crypto.getClientId();case 7:t.t3=t.sent,t.t4={clientId:t.t3},t.t2.downloadLogsBlobInBrowser.call(t.t2,t.t4);case 10:case"end":return t.stop()}}),t,this)})))}),n.logger=Object(s.a)(l,n.name),n.heartbeat=new a.HeartBeat,n.crypto=new We(n,n.logger,null==t?void 0:t.keychain),n.history=new wn(n,n.logger),n.expirer=new bn(n,n.logger),n.storage=null!=t&&t.storage?t.storage:new o.a(Tn(Tn({},me),null==t?void 0:t.storageOptions)),n.relayer=new ln({core:n,logger:n.logger,relayUrl:n.relayUrl,projectId:n.projectId}),n.pairing=new vn(n,n.logger),n.verify=new Mn(n.projectId||"",n.logger),n.echoClient=new An(n.projectId||"",n.logger),n}return E(e,t),C(e,[{key:"context",get:function(){return Object(s.d)(this.logger)}},{key:"start",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=4;break}return t.next=4,this.initialize();case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getLogsBlob",value:function(){return W(this,null,T().mark((function t(){var e;return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=(e=this.logChunkController)){t.next=4;break}t.t0=void 0,t.next=10;break;case 4:return t.t1=e,t.next=7,this.crypto.getClientId();case 7:t.t2=t.sent,t.t3={clientId:t.t2},t.t0=t.t1.logsToBlob.call(t.t1,t.t3);case 10:return t.abrupt("return",t.t0);case 11:case"end":return t.stop()}}),t,this)})))}},{key:"initialize",value:function(){return W(this,null,T().mark((function t(){return T().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),t.prev=1,t.next=4,this.crypto.init();case 4:return t.next=6,this.history.init();case 6:return t.next=8,this.expirer.init();case 8:return t.next=10,this.relayer.init();case 10:return t.next=12,this.heartbeat.init();case 12:return t.next=14,this.pairing.init();case 14:this.initialized=!0,this.logger.info("Core Initialization Success"),t.next=21;break;case 18:throw t.prev=18,t.t0=t.catch(1),this.logger.warn("Core Initialization Failure at epoch ".concat(Date.now()),t.t0),this.logger.error(t.t0.message),t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,18]])})))}}],[{key:"init",value:function(t){return W(this,null,T().mark((function n(){var r,i;return T().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new e(t),n.next=3,r.initialize();case 3:return n.next=5,r.crypto.getClientId();case 5:return i=n.sent,n.next=8,r.storage.setItem("WALLETCONNECT_CLIENT_ID",i);case 8:return n.abrupt("return",r);case 9:case"end":return n.stop()}}),n)})))}}])}(u.a)}).call(this,n(33))},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"string";if(!t[e]||r(t[e])!==n)throw new Error('Missing or invalid "'.concat(e,'" param'))}function o(t,e,n){return!!(n.length?function(t,e){return Array.isArray(t)?t.length>=e:Object.keys(t).length>=e}(t,e.length):function(t,e){return Array.isArray(t)?t.length===e:Object.keys(t).length===e}(t,e.length))&&function(t,e){var n=!0;return e.forEach((function(e){e in t||(n=!1)})),n}(t,e)}function a(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"_",r=t.split(n);return r[r.length-1].trim().toLowerCase()===e.trim().toLowerCase()}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a}))},function(t,e,n){n.d(e,"a",(function(){return y})),n.d(e,"b",(function(){return N})),n.d(e,"c",(function(){return x})),n.d(e,"d",(function(){return A})),n.d(e,"e",(function(){return m})),n.d(e,"f",(function(){return g})),n.d(e,"g",(function(){return v})),n.d(e,"h",(function(){return w})),n.d(e,"i",(function(){return E})),n.d(e,"j",(function(){return b})),n.d(e,"k",(function(){return M})),n.d(e,"l",(function(){return I}));var r=n(22),i=n(6),o=n.n(i);function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function s(t,e){for(var n=0;ne in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var c=n(95),l=n(18);class h{constructor(t,e,n){this.name=t,this.prefix=e,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class d{constructor(t,e,n){if(this.name=t,this.prefix=e,void 0===e.codePointAt(0))throw new Error("Invalid prefix character");this.prefixCodePoint=e.codePointAt(0),this.baseDecode=n}decode(t){if("string"==typeof t){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}throw Error("Can only multibase decode strings")}or(t){return p(this,t)}}class f{constructor(t){this.decoders=t}or(t){return p(this,t)}decode(t){const e=t[0],n=this.decoders[e];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const p=(t,e)=>new f(u(u({},t.decoders||{[t.prefix]:t}),e.decoders||{[e.prefix]:e}));class y{constructor(t,e,n,r){this.name=t,this.prefix=e,this.baseEncode=n,this.baseDecode=r,this.encoder=new h(t,e,n),this.decoder=new d(t,e,r)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const m=({name:t,prefix:e,encode:n,decode:r})=>new y(t,e,n,r);e.Codec=y,e.baseX=({prefix:t,name:e,alphabet:n})=>{const{encode:r,decode:i}=c(n,e);return m({prefix:t,name:e,encode:r,decode:t=>l.coerce(i(t))})},e.from=m,e.or=p,e.rfc4648=({name:t,prefix:e,bitsPerChar:n,alphabet:r})=>m({prefix:e,name:t,encode:t=>((t,e,n)=>{const r="="===e[e.length-1],i=(1<n;)a-=n,o+=e[i&s>>a];if(a&&(o+=e[i&s<((t,e,n,r)=>{const i={};for(let t=0;t=8&&(s-=8,a[c++]=255&u>>s)}if(s>=n||255&u<<8-s)throw new SyntaxError("Unexpected end of data");return a})(e,r,n,t)})},function(t,e,n){const r=n(86);t.exports=a;const i=function(){function t(t){return void 0!==t&&t}try{return"undefined"!=typeof globalThis||Object.defineProperty(Object.prototype,"globalThis",{get:function(){return delete Object.prototype.globalThis,this.globalThis=this},configurable:!0}),globalThis}catch(e){return t(self)||t(window)||t(this)||{}}}().console||{},o={mapHttpRequest:p,mapHttpResponse:p,wrapRequestSerializer:y,wrapResponseSerializer:y,wrapErrorSerializer:y,req:p,res:p,err:function(t){const e={type:t.constructor.name,msg:t.message,stack:t.stack};for(const n in t)void 0===e[n]&&(e[n]=t[n]);return e}};function a(t){(t=t||{}).browser=t.browser||{};const e=t.browser.transmit;if(e&&"function"!=typeof e.send)throw Error("pino: transmit option must have a send function");const n=t.browser.write||i;t.browser.write&&(t.browser.asObject=!0);const r=t.serializers||{},o=function(t,e){return Array.isArray(t)?t.filter((function(t){return"!stdSerializers.err"!==t})):!0===t&&Object.keys(e)}(t.browser.serialize,r);let u=t.browser.serialize;Array.isArray(t.browser.serialize)&&t.browser.serialize.indexOf("!stdSerializers.err")>-1&&(u=!1),"function"==typeof n&&(n.error=n.fatal=n.warn=n.info=n.debug=n.trace=n),!1===t.enabled&&(t.level="silent");const h=t.level||"info",p=Object.create(n);p.log||(p.log=m),Object.defineProperty(p,"levelVal",{get:function(){return"silent"===this.level?1/0:this.levels.values[this.level]}}),Object.defineProperty(p,"level",{get:function(){return this._level},set:function(t){if("silent"!==t&&!this.levels.values[t])throw Error("unknown level "+t);this._level=t,s(y,p,"error","log"),s(y,p,"fatal","error"),s(y,p,"warn","error"),s(y,p,"info","log"),s(y,p,"debug","log"),s(y,p,"trace","log")}});const y={transmit:e,serialize:o,asObject:t.browser.asObject,levels:["error","fatal","warn","info","debug","trace"],timestamp:f(t)};return p.levels=a.levels,p.level=h,p.setMaxListeners=p.getMaxListeners=p.emit=p.addListener=p.on=p.prependListener=p.once=p.prependOnceListener=p.removeListener=p.removeAllListeners=p.listeners=p.listenerCount=p.eventNames=p.write=p.flush=m,p.serializers=r,p._serialize=o,p._stdErrSerialize=u,p.child=function(n,i){if(!n)throw new Error("missing bindings for child Pino");i=i||{},o&&n.serializers&&(i.serializers=n.serializers);const a=i.serializers;if(o&&a){var s=Object.assign({},r,a),u=!0===t.browser.serialize?Object.keys(s):o;delete n.serializers,c([n],u,s,this._stdErrSerialize)}function h(t){this._childLevel=1+(0|t._childLevel),this.error=l(t,n,"error"),this.fatal=l(t,n,"fatal"),this.warn=l(t,n,"warn"),this.info=l(t,n,"info"),this.debug=l(t,n,"debug"),this.trace=l(t,n,"trace"),s&&(this.serializers=s,this._serialize=u),e&&(this._logEvent=d([].concat(t._logEvent.bindings,n)))}return h.prototype=this,new h(this)},e&&(p._logEvent=d()),p}function s(t,e,n,r){const o=Object.getPrototypeOf(e);e[n]=e.levelVal>e.levels.values[n]?m:o[n]?o[n]:i[n]||i[r]||m,function(t,e,n){var r;(t.transmit||e[n]!==m)&&(e[n]=(r=e[n],function(){const o=t.timestamp(),s=new Array(arguments.length),l=Object.getPrototypeOf&&Object.getPrototypeOf(this)===i?i:this;for(var d=0;d-1&&r in n&&(t[i][r]=n[r](t[i][r]))}function l(t,e,n){return function(){const r=new Array(1+arguments.length);r[0]=e;for(var i=1;i=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:v(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function N(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),i=n(34);e.fromString=function(t,e="utf8"){const n=r[e];if(!n)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${t}`):i.asUint8Array(globalThis.Buffer.from(t,"utf-8"))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=new Uint8Array(0);e.coerce=t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},e.empty=r,e.equals=(t,e)=>{if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let n=0;n{const e=t.match(/../g);return e?new Uint8Array(e.map((t=>parseInt(t,16)))):r},e.fromString=t=>(new TextEncoder).encode(t),e.isBinary=t=>t instanceof ArrayBuffer||ArrayBuffer.isView(t),e.toHex=t=>t.reduce(((t,e)=>t+e.toString(16).padStart(2,"0")),""),e.toString=t=>(new TextDecoder).decode(t)},function(t,e,n){n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return m}));var r=n(42),i=n(20),o=n(17),a=n(8),s=n(3);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:a();return e("readonly",(function(e){return r(e.get(t))}))}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a();return n("readwrite",(function(n){return n.put(e,t),r(n.transaction)}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a();return e("readwrite",(function(e){return e.delete(t),r(e.transaction)}))}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a();return t("readwrite",(function(t){return t.clear(),r(t.transaction)}))}function h(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},r(t.transaction)}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a();return t("readonly",(function(t){if(t.getAllKeys)return r(t.getAllKeys());var e=[];return h(t,(function(t){return e.push(t.key)})).then((function(){return e}))}))}n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return u}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const r=n(87),i=n(28),o=n(12);function a(t,n=e.defaultRandomSource){return n.randomBytes(t)}e.defaultRandomSource=new r.SystemRandomSource,e.randomBytes=a,e.randomUint32=function(t=e.defaultRandomSource){const n=a(4,t),r=(0,i.readUint32LE)(n);return(0,o.wipe)(n),r};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(t,n=s,r=e.defaultRandomSource){if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const u=n.length,c=256-256%u;for(;t>0;){const e=a(Math.ceil(256*t/c),r);for(let r=0;r0;r++){const o=e[r];o>>8,e[n+1]=t>>>0,e}function o(t,e,n){return void 0===e&&(e=new Uint8Array(2)),void 0===n&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e}function a(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function s(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function u(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function c(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function l(t,e,n){return void 0===e&&(e=new Uint8Array(4)),void 0===n&&(n=0),e[n+0]=t>>>24,e[n+1]=t>>>16,e[n+2]=t>>>8,e[n+3]=t>>>0,e}function h(t,e,n){return void 0===e&&(e=new Uint8Array(4)),void 0===n&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24,e}function d(t,e,n){return void 0===e&&(e=new Uint8Array(8)),void 0===n&&(n=0),l(t/4294967296>>>0,e,n),l(t>>>0,e,n+4),e}function f(t,e,n){return void 0===e&&(e=new Uint8Array(8)),void 0===n&&(n=0),h(t>>>0,e,n),h(t/4294967296>>>0,e,n+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=o,e.writeInt16LE=o,e.readInt32BE=a,e.readUint32BE=s,e.readInt32LE=u,e.readUint32LE=c,e.writeUint32BE=l,e.writeInt32BE=l,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var n=a(t,e),r=a(t,e+4);return 4294967296*n+r-4294967296*(r>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*s(t,e)+s(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var n=u(t,e);return 4294967296*u(t,e+4)+n-4294967296*(n>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var n=c(t,e);return 4294967296*c(t,e+4)+n},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=f,e.writeInt64LE=f,e.readUintBE=function(t,e,n){if(void 0===n&&(n=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=t/8+n-1;o>=n;o--)r+=e[o]*i,i*=256;return r},e.readUintLE=function(t,e,n){if(void 0===n&&(n=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o=i;a--)n[a]=e/o&255,o*=256;return n},e.writeUintLE=function(t,e,n,i){if(void 0===n&&(n=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{const n=e.byteLength,r=i.encodingLength(t),a=r+i.encodingLength(n),s=new Uint8Array(a+n);return i.encodeTo(t,s,0),i.encodeTo(n,s,r),s.set(e,a),new o(t,n,e,s)},e.decode=t=>{const e=r.coerce(t),[n,a]=i.decode(e),[s,u]=i.decode(e.subarray(a)),c=e.subarray(a+u);if(c.byteLength!==s)throw new Error("Incorrect length");return new o(n,s,c,e)},e.equals=(t,e)=>t===e||t.code===e.code&&t.size===e.size&&r.equals(t.bytes,e.bytes)},function(t,e,n){const{destr:r,safeDestr:i}=n(74);r.destr=r,r.safeDestr=i,t.exports=r},function(t,e,n){var r=n(48);n.d(e,"generateKeyPair",(function(){return r.a})),n.d(e,"signJWT",(function(){return r.b})),n(3);var i=n(53);n.o(i,"encodeIss")&&n.d(e,"encodeIss",(function(){return i.encodeIss}));var o=n(19);n.d(e,"encodeIss",(function(){return o.d}))},function(t,e,n){const r=n(120),i=n(121),o=n(122),a=n(123),s=Symbol("encodeFragmentIdentifier");function u(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function l(t,e){return e.decode?i(t):t}function h(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function d(t){const e=(t=h(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function p(t,e){u((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"colon-list-separator":return(t,n,r)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":case"separator":return(e,n,r)=>{const i="string"==typeof n&&n.includes(t.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,t).includes(t.arrayFormatSeparator);n=o?l(n,t):n;const a=i||o?n.split(t.arrayFormatSeparator).map((e=>l(e,t))):null===n?n:l(n,t);r[e]=a};case"bracket-separator":return(e,n,r)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(r[e]=n?l(n,t):n);const o=null===n?[]:n.split(t.arrayFormatSeparator).map((e=>l(e,t)));void 0!==r[e]?r[e]=[].concat(r[e],o):r[e]=o};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const i of t.split("&")){if(""===i)continue;let[t,a]=o(e.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:l(a,e),n(l(t,e),a,r)}for(const t of Object.keys(r)){const n=r[t];if("object"==typeof n&&null!==n)for(const t of Object.keys(n))n[t]=f(n[t],e);else r[t]=f(n,e)}return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce(((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort(((t,e)=>Number(t)-Number(e))).map((t=>e[t])):e}(n):t[e]=n,t}),Object.create(null))}e.extract=d,e.parse=p,e.stringify=(t,e)=>{if(!t)return"";u((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const n=n=>e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n],r=function(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),"[",i,"]"].join("")]:[...n,[c(e,t),"[",c(i,t),"]=",c(r,t)].join("")]};case"bracket":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),"[]"].join("")]:[...n,[c(e,t),"[]=",c(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),":list="].join("")]:[...n,[c(e,t),":list=",c(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,t),e,c(i,t)].join("")]:[[r,c(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,c(e,t)]:[...n,[c(e,t),"=",c(r,t)].join("")]}}(e),i={};for(const e of Object.keys(t))n(e)||(i[e]=t[e]);const o=Object.keys(i);return!1!==e.sort&&o.sort(e.sort),o.map((n=>{const i=t[n];return void 0===i?"":null===i?c(n,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?c(n,e)+"[]":i.reduce(r(n),[]).join("&"):c(n,e)+"="+c(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[n,r]=o(t,"#");return Object.assign({url:n.split("?")[0]||"",query:p(d(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,e)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),a=Object.assign(o,t.query);let u=e.stringify(a,n);u&&(u="?"+u);let l=function(t){let e="";const n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(l="#"+(n[s]?c(t.fragmentIdentifier,n):t.fragmentIdentifier)),`${r}${u}${l}`},e.pick=(t,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:u}=e.parseUrl(t,r);return e.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:u},r)},e.exclude=(t,n,r)=>{const i=Array.isArray(n)?t=>!n.includes(t):(t,e)=>!n(t,e);return e.pick(t,i,r)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,h=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&f())}function f(){if(!l){var t=s(d);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h1)for(var n=1;n[r.decode(t,e),r.decode.bytes],e.encodeTo=(t,e,n=0)=>(r.encode(t,e,n),e),e.encodingLength=t=>r.encodingLength(t)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);r.__exportStar(n(112),e),r.__exportStar(n(113),e)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.convertSecretKeyToX25519=e.convertPublicKeyToX25519=e.verify=e.sign=e.extractPublicKeyFromSecretKey=e.generateKeyPair=e.generateKeyPairFromSeed=e.SEED_LENGTH=e.SECRET_KEY_LENGTH=e.PUBLIC_KEY_LENGTH=e.SIGNATURE_LENGTH=void 0;const r=n(24),i=n(92),o=n(12);function a(t){const e=new Float64Array(16);if(t)for(let n=0;n>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const t=n[15]>>16&1;n[14]&=65535,m(r,n,1-t)}for(let e=0;e<16;e++)t[2*e]=255&r[e],t[2*e+1]=r[e]>>8}function v(t,e){let n=0;for(let r=0;r<32;r++)n|=t[r]^e[r];return(1&n-1>>>8)-1}function w(t,e){const n=new Uint8Array(32),r=new Uint8Array(32);return g(n,t),g(r,e),v(n,r)}function b(t){const e=new Uint8Array(32);return g(e,t),1&e[0]}function M(t,e,n){for(let r=0;r<16;r++)t[r]=e[r]+n[r]}function A(t,e,n){for(let r=0;r<16;r++)t[r]=e[r]-n[r]}function I(t,e,n){let r,i,o=0,a=0,s=0,u=0,c=0,l=0,h=0,d=0,f=0,p=0,y=0,m=0,g=0,v=0,w=0,b=0,M=0,A=0,I=0,N=0,E=0,x=0,k=0,T=0,L=0,S=0,j=0,D=0,C=0,O=0,z=0,P=n[0],_=n[1],B=n[2],R=n[3],U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38*x,h+=38*k,d+=38*T,f+=38*L,p+=38*S,y+=38*j,m+=38*D,g+=38*C,v+=38*O,w+=38*z,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=y,t[11]=m,t[12]=g,t[13]=v,t[14]=w,t[15]=b}function N(t,e){I(t,e,e)}function E(t,e){const n=a();let r;for(r=0;r<16;r++)n[r]=e[r];for(r=253;r>=0;r--)N(n,n),2!==r&&4!==r&&I(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}function x(t,e){const n=a(),r=a(),i=a(),o=a(),s=a(),u=a(),c=a(),h=a(),d=a();A(n,t[1],t[0]),A(d,e[1],e[0]),I(n,n,d),M(r,t[0],t[1]),M(d,e[0],e[1]),I(r,r,d),I(i,t[3],e[3]),I(i,i,l),I(o,t[2],e[2]),M(o,o,o),A(s,r,n),A(u,o,i),M(c,o,i),M(h,r,n),I(t[0],s,u),I(t[1],h,c),I(t[2],c,u),I(t[3],s,h)}function k(t,e,n){for(let r=0;r<4;r++)m(t[r],e[r],n)}function T(t,e){const n=a(),r=a(),i=a();E(i,e[2]),I(n,e[0],i),I(r,e[1],i),g(t,r),t[31]^=b(n)<<7}function L(t,e,n){p(t[0],s),p(t[1],u),p(t[2],u),p(t[3],s);for(let r=255;r>=0;--r){const i=n[r/8|0]>>(7&r)&1;k(t,e,i),x(e,t),x(t,t),k(t,e,i)}}function S(t,e){const n=[a(),a(),a(),a()];p(n[0],h),p(n[1],d),p(n[2],u),I(n[3],h,d),L(t,n,e)}function j(t){if(t.length!==e.SEED_LENGTH)throw new Error(`ed25519: seed must be ${e.SEED_LENGTH} bytes`);const n=(0,i.hash)(t);n[0]&=248,n[31]&=127,n[31]|=64;const r=new Uint8Array(32),o=[a(),a(),a(),a()];S(o,n),T(r,o);const s=new Uint8Array(64);return s.set(t),s.set(r,32),{publicKey:r,secretKey:s}}e.generateKeyPairFromSeed=j,e.generateKeyPair=function(t){const e=(0,r.randomBytes)(32,t),n=j(e);return(0,o.wipe)(e),n},e.extractPublicKeyFromSecretKey=function(t){if(t.length!==e.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${e.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(t.subarray(32))};const D=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function C(t,e){let n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*D[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*D[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function O(t){const e=new Float64Array(64);for(let n=0;n<64;n++)e[n]=t[n];for(let e=0;e<64;e++)t[e]=0;C(t,e)}function z(t,e){const n=a(),r=a(),i=a(),o=a(),l=a(),h=a(),d=a();return p(t[2],u),function(t,e){for(let n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}(t[1],e),N(i,t[1]),I(o,i,c),A(i,i,t[2]),M(o,t[2],o),N(l,o),N(h,l),I(d,h,l),I(n,d,i),I(n,n,o),function(t,e){const n=a();let r;for(r=0;r<16;r++)n[r]=e[r];for(r=250;r>=0;r--)N(n,n),1!==r&&I(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}(n,n),I(n,n,i),I(n,n,o),I(n,n,o),I(t[0],n,o),N(r,t[0]),I(r,r,o),w(r,i)&&I(t[0],t[0],f),N(r,t[0]),I(r,r,o),w(r,i)?-1:(b(t[0])===e[31]>>7&&A(t[0],s,t[0]),I(t[3],t[0],t[1]),0)}e.sign=function(t,e){const n=new Float64Array(64),r=[a(),a(),a(),a()],o=(0,i.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const u=new i.SHA512;u.update(s.subarray(32)),u.update(e);const c=u.digest();u.clean(),O(c),S(r,c),T(s,r),u.reset(),u.update(s.subarray(0,32)),u.update(t.subarray(32)),u.update(e);const l=u.digest();O(l);for(let t=0;t<32;t++)n[t]=c[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)n[t+e]+=l[t]*o[e];return C(s.subarray(32),n),s},e.verify=function(t,n,r){const o=new Uint8Array(32),s=[a(),a(),a(),a()],u=[a(),a(),a(),a()];if(r.length!==e.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${e.SIGNATURE_LENGTH} bytes`);if(z(u,t))return!1;const c=new i.SHA512;c.update(r.subarray(0,32)),c.update(t),c.update(n);const l=c.digest();return O(l),L(s,u,l),S(u,r.subarray(32)),x(s,u),T(o,s),!v(r,o)},e.convertPublicKeyToX25519=function(t){let e=[a(),a(),a(),a()];if(z(e,t))throw new Error("Ed25519: invalid public key");let n=a(),r=a(),i=e[1];M(n,u,i),A(r,u,i),E(r,r),I(n,n,r);let o=new Uint8Array(32);return g(o,n),o},e.convertSecretKeyToX25519=function(t){const e=(0,i.hash)(t.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;const n=new Uint8Array(e.subarray(0,32));return(0,o.wipe)(e),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),i=n(12);e.DIGEST_LENGTH=32,e.BLOCK_SIZE=64;var o=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],e--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(n=s(this._temp,this._state,t,n,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[n++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,i=e/536870912|0,o=e<<3,a=e%64<56?64:128;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA256=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(t,e,n,i,o){for(;o>=64;){for(var s=e[0],u=e[1],c=e[2],l=e[3],h=e[4],d=e[5],f=e[6],p=e[7],y=0;y<16;y++){var m=i+4*y;t[y]=r.readUint32BE(n,m)}for(y=16;y<64;y++){var g=t[y-2],v=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,w=((g=t[y-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;t[y]=(v+t[y-7]|0)+(w+t[y-16]|0)}for(y=0;y<64;y++)v=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)|0)+(p+(a[y]+t[y]|0)|0)|0,w=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0,p=f,f=d,d=h,h=l+v|0,l=c,c=u,u=s,s=v+w|0;e[0]+=s,e[1]+=u,e[2]+=c,e[3]+=l,e[4]+=h,e[5]+=d,e[6]+=f,e[7]+=p,i+=64,o-=64}return i}e.hash=function(t){var e=new o;e.update(t);var n=e.digest();return e.clean(),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(34);e.alloc=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(t)):new Uint8Array(t)},e.allocUnsafe=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);class i{constructor(t,e,n){this.name=t,this.code=e,this.encode=n}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?r.create(this.code,e):e.then((t=>r.create(this.code,t)))}throw Error("Unknown type, must be binary type")}}e.Hasher=i,e.from=({name:t,code:e,encode:n})=>new i(t,e,n)},function(t,e,n){function r(t,e){if(t.length!==e.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,n){return~(t-1)&e|t-1&n},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(34);e.concat=function(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const n=r.allocUnsafe(e);let o=0;for(const e of t)n.set(e,o),o+=e.length;return i.asUint8Array(n)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(124),i=n(125),o=n(12),a=n(28),s=n(41);e.KEY_LENGTH=32,e.NONCE_LENGTH=12,e.TAG_LENGTH=16;var u=new Uint8Array(16),c=function(){function t(t){if(this.nonceLength=e.NONCE_LENGTH,this.tagLength=e.TAG_LENGTH,t.length!==e.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(t,a.length-t.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var u,c=e.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(c);return r.streamXOR(this._key,a,e,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),o.wipe(a),u},t.prototype.open=function(t,e,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&s.update(u.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(u.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var l=s.digest(),h=0;h=0;--t){const e=n[t>>>3]>>>(7&t)&1;c(i,a,e),c(p,y,e),l(m,i,p),h(i,i,p),l(p,a,y),h(a,a,y),f(y,m),f(g,i),d(i,p,i),d(p,a,m),l(m,i,p),h(i,i,p),f(a,i),h(p,y,g),d(i,p,s),l(i,i,y),d(p,p,i),d(i,y,g),d(y,a,r),f(a,m),c(i,a,e),c(p,y,e)}for(let t=0;t<16;t++)r[t+16]=i[t],r[t+32]=p[t],r[t+48]=a[t],r[t+64]=y[t];const v=r.subarray(32),w=r.subarray(16);!function(t,e){const n=o();for(let t=0;t<16;t++)n[t]=e[t];for(let t=253;t>=0;t--)f(n,n),2!==t&&4!==t&&d(n,n,e);for(let e=0;e<16;e++)t[e]=n[e]}(v,v),d(w,w,v);const b=new Uint8Array(32);return function(t,e){const n=o(),r=o();for(let t=0;t<16;t++)r[t]=e[t];u(r),u(r),u(r);for(let t=0;t<2;t++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const t=n[15]>>16&1;n[14]&=65535,c(r,n,1-t)}for(let e=0;e<16;e++)t[2*e]=255&r[e],t[2*e+1]=r[e]>>8}(b,w),b}function y(t){return p(t,a)}function m(t){if(t.length!==e.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${e.SECRET_KEY_LENGTH} bytes`);const n=new Uint8Array(t);return{publicKey:y(n),secretKey:n}}e.scalarMult=p,e.scalarMultBase=y,e.generateKeyPairFromSeed=m,e.generateKeyPair=function(t){const e=(0,r.randomBytes)(32,t),n=m(e);return(0,i.wipe)(e),n},e.sharedKey=function(t,n,r=!1){if(t.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(n.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=p(t,n);if(r){let t=0;for(let e=0;e=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}var l=function(t,e,n){return new Promise((function(r,i){var o=function(t){try{s(n.next(t))}catch(t){i(t)}},a=function(t){try{s(n.throw(t))}catch(t){i(t)}},s=function(t){return t.done?r(t.value):Promise.resolve(t.value).then(o,a)};s((n=n.apply(t,e)).next())}))};function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(i.randomBytes)(a.j);return r.generateKeyPairFromSeed(t)}function d(t,e,n,i){return l(this,arguments,(function(t,e,n,i){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object(o.fromMiliseconds)(Date.now());return c().mark((function o(){var l,h,d,f,p;return c().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l={alg:a.h,typ:a.i},h=Object(s.d)(i.publicKey),d={iss:h,sub:t,aud:e,iat:u,exp:u+n},f=Object(s.c)({header:l,payload:d}),p=r.sign(i.secretKey,f),o.abrupt("return",Object(s.e)({header:l,payload:d,signature:p}));case 7:case"end":return o.stop()}}),o)}))()}))}},function(t,e,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=n(93),c=n(39);function l(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const h=l("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),d=l("ascii","a",(t=>{let e="a";for(let n=0;n{t=t.substring(1);const e=c.allocUnsafe(t.length);for(let n=0;n{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t})({utf8:h,"utf-8":h,hex:u.bases.base16,latin1:d,ascii:d,binary:d},u.bases);t.exports=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);const i=r.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=r.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=r.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=r.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=r.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=r.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=r.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),h=r.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),d=r.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});e.base32=i,e.base32hex=u,e.base32hexpad=l,e.base32hexpadupper=h,e.base32hexupper=c,e.base32pad=a,e.base32padupper=s,e.base32upper=o,e.base32z=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});e.base58btc=i,e.base58flickr=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(35),i=n(29),o=n(51),a=n(50),s=n(18);class u{constructor(t,e,n,r){this.code=e,this.version=t,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:m,version:m,multihash:m,bytes:m,_baseCache:g,asCID:g})}toV0(){switch(this.version){case 0:return this;default:{const{code:t,multihash:e}=this;if(t!==d)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==f)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(e)}}}toV1(){switch(this.version){case 0:{const{code:t,digest:e}=this.multihash,n=i.create(t,e);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&i.equals(this.multihash,t.multihash)}toString(t){const{bytes:e,version:n,_baseCache:r}=this;switch(n){case 0:return l(e,r,t||o.base58btc.encoder);default:return h(e,r,t||a.base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return v(/^0\.0/,w),!(!t||!t[y]&&t.asCID!==t)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof u)return t;if(null!=t&&t.asCID===t){const{version:e,code:n,multihash:r,bytes:i}=t;return new u(e,n,r,i||p(e,n,r.bytes))}if(null!=t&&!0===t[y]){const{version:e,multihash:n,code:r}=t,o=i.decode(n);return u.create(e,r,o)}return null}static create(t,e,n){if("number"!=typeof e)throw new Error("String codecs are no longer supported");switch(t){case 0:if(e!==d)throw new Error(`Version 0 CID must use dag-pb (code: ${d}) block encoding`);return new u(t,e,n,n.bytes);case 1:{const r=p(t,e,n.bytes);return new u(t,e,n,r)}default:throw new Error("Invalid version")}}static createV0(t){return u.create(0,d,t)}static createV1(t,e){return u.create(1,t,e)}static decode(t){const[e,n]=u.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return e}static decodeFirst(t){const e=u.inspectBytes(t),n=e.size-e.multihashSize,r=s.coerce(t.subarray(n,n+e.multihashSize));if(r.byteLength!==e.multihashSize)throw new Error("Incorrect length");const o=r.subarray(e.multihashSize-e.digestSize),a=new i.Digest(e.multihashCode,e.digestSize,o,r);return[0===e.version?u.createV0(a):u.createV1(e.codec,a),t.subarray(e.size)]}static inspectBytes(t){let e=0;const n=()=>{const[n,i]=r.decode(t.subarray(e));return e+=i,n};let i=n(),o=d;if(18===i?(i=0,e=0):1===i&&(o=n()),0!==i&&1!==i)throw new RangeError("Invalid CID version "+i);const a=e,s=n(),u=n(),c=e+u;return{version:i,codec:o,multihashCode:s,digestSize:u,multihashSize:c-a,size:c}}static parse(t,e){const[n,r]=c(t,e),i=u.decode(r);return i._baseCache.set(n,t),i}}const c=(t,e)=>{switch(t[0]){case"Q":{const n=e||o.base58btc;return[o.base58btc.prefix,n.decode(`${o.base58btc.prefix}${t}`)]}case o.base58btc.prefix:{const n=e||o.base58btc;return[o.base58btc.prefix,n.decode(t)]}case a.base32.prefix:{const n=e||a.base32;return[a.base32.prefix,n.decode(t)]}default:if(null==e)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[t[0],e.decode(t)]}},l=(t,e,n)=>{const{prefix:r}=n;if(r!==o.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=e.get(r);if(null==i){const i=n.encode(t).slice(1);return e.set(r,i),i}return i},h=(t,e,n)=>{const{prefix:r}=n,i=e.get(r);if(null==i){const i=n.encode(t);return e.set(r,i),i}return i},d=112,f=18,p=(t,e,n)=>{const i=r.encodingLength(t),o=i+r.encodingLength(e),a=new Uint8Array(o+n.byteLength);return r.encodeTo(t,a,0),r.encodeTo(e,a,i),a.set(n,o),a},y=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},v=(t,e)=>{if(!t.test("0.0.0-dev"))throw new Error(e);console.warn(e)},w="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";e.CID=u},function(t,e){},function(t,e,n){var r=n(36);n.o(r,"IJsonRpcProvider")&&n.d(e,"IJsonRpcProvider",(function(){return r.IJsonRpcProvider})),n.o(r,"formatJsonRpcError")&&n.d(e,"formatJsonRpcError",(function(){return r.formatJsonRpcError})),n.o(r,"formatJsonRpcRequest")&&n.d(e,"formatJsonRpcRequest",(function(){return r.formatJsonRpcRequest})),n.o(r,"formatJsonRpcResult")&&n.d(e,"formatJsonRpcResult",(function(){return r.formatJsonRpcResult})),n.o(r,"getBigIntRpcId")&&n.d(e,"getBigIntRpcId",(function(){return r.getBigIntRpcId})),n.o(r,"isJsonRpcError")&&n.d(e,"isJsonRpcError",(function(){return r.isJsonRpcError})),n.o(r,"isJsonRpcRequest")&&n.d(e,"isJsonRpcRequest",(function(){return r.isJsonRpcRequest})),n.o(r,"isJsonRpcResponse")&&n.d(e,"isJsonRpcResponse",(function(){return r.isJsonRpcResponse})),n.o(r,"isJsonRpcResult")&&n.d(e,"isJsonRpcResult",(function(){return r.isJsonRpcResult})),n.o(r,"isLocalhostUrl")&&n.d(e,"isLocalhostUrl",(function(){return r.isLocalhostUrl})),n.o(r,"isReactNative")&&n.d(e,"isReactNative",(function(){return r.isReactNative})),n.o(r,"isWsUrl")&&n.d(e,"isWsUrl",(function(){return r.isWsUrl})),n.o(r,"payloadId")&&n.d(e,"payloadId",(function(){return r.payloadId})),r.isNode},function(t,e,n){n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return c}));var r=n(25),i=n(7);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,e=Date.now()*Math.pow(10,t),n=Math.floor(Math.random()*Math.pow(10,t));return e+n}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return BigInt(o(t))}function s(t,e,n){return{id:n||o(),jsonrpc:"2.0",method:t,params:e}}function u(t,e){return{id:t,jsonrpc:"2.0",result:e}}function c(t,e,n){return{id:t,jsonrpc:"2.0",error:l(e,n)}}function l(t,e){return void 0===t?Object(r.a)(i.b):("string"==typeof t&&(t=Object.assign(Object.assign({},Object(r.a)(i.d)),{message:t})),void 0!==e&&(t.data=e),Object(r.c)(t.code)&&(t=Object(r.b)(t.code)),t)}},function(t,e,n){},function(t,e,n){function r(t){return function(t,e){var n=function(t){var e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==n&&new RegExp(e).test(n)}(t,"^wss?:")}function i(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return"object"===r(t)&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function o(t){return i(t)&&"method"in t}function a(t){return i(t)&&(s(t)||u(t))}function s(t){return"result"in t}function u(t){return"error"in t}n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return u}))},function(t,e,n){n.r(e),e.default=function(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),a.push([e,n]),s[e]=s[e]?s[e]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(c,e.headers[c]);i.send(e.body||null)}))}},function(t,e){},function(t,e,n){n(10),n(13)},function(t,e,n){n.d(e,"a",(function(){return r}));var r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var d=function(t,e,n){return new Promise((function(r,i){var o=function(t){try{s(n.next(t))}catch(t){i(t)}},a=function(t){try{s(n.throw(t))}catch(t){i(t)}},s=function(t){return t.done?r(t.value):Promise.resolve(t.value).then(o,a)};s((n=n.apply(t,e)).next())}))},f="idb-keyval",p=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.base&&e.base.length>0?"".concat(e.base,":"):"",r=function(t){return n+t};return e.dbName&&e.storeName&&(t=Object(i.b)(e.dbName,e.storeName)),{name:f,options:e,hasItem:function(e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=h,n.next=3,Object(i.d)(r(e),t);case 3:return n.t1=n.sent,n.t2=(0,n.t0)(n.t1),n.abrupt("return",!(n.t2>"u"));case 6:case"end":return n.stop()}}),n)})))},getItem:function(e){return d(this,null,l().mark((function n(){var o;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(i.d)(r(e),t);case 2:if(n.t0=o=n.sent,null==n.t0){n.next=7;break}n.t1=o,n.next=8;break;case 7:n.t1=null;case 8:return n.abrupt("return",n.t1);case 9:case"end":return n.stop()}}),n)})))},setItem:function(e,n){return Object(i.f)(r(e),n,t)},removeItem:function(e){return Object(i.c)(r(e),t)},getKeys:function(){return Object(i.e)(t)},clear:function(){return Object(i.a)(t)}}},y=u((function t(){a(this,t),this.indexedDb=Object(r.a)({driver:p({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.indexedDb.getKeys());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this.indexedDb,t.next=3,this.indexedDb.getKeys();case 3:return t.t1=t.sent,t.next=6,t.t0.getItems.call(t.t0,t.t1);case 6:return t.abrupt("return",t.sent.map((function(t){return[t.key,t.value]})));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.indexedDb.getItem(t);case 2:if(null===(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.indexedDb.setItem(t,Object(o.b)(e));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.indexedDb.removeItem(t);case 2:case"end":return e.stop()}}),e,this)})))}}]),m=("undefined"==typeof globalThis?"undefined":h(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":h(window))<"u"?window:(void 0===t?"undefined":h(t))<"u"?t:("undefined"==typeof self?"undefined":h(self))<"u"?self:{},g={exports:{}};function v(t){var e;return[t[0],Object(o.a)(null!=(e=t[1])?e:"")]}!function(){var t;function e(){}(t=e).prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){var t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),h(m)<"u"&&m.localStorage?g.exports=m.localStorage:("undefined"==typeof window?"undefined":h(window))<"u"&&window.localStorage?g.exports=window.localStorage:g.exports=new e}();var w=u((function t(){a(this,t),this.localStorage=g.exports}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object.keys(this.localStorage));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object.entries(this.localStorage).map(v));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=this.localStorage.getItem(t))){e.next=3;break}return e.abrupt("return",Object(o.a)(n));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.localStorage.setItem(t,Object(o.b)(e));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.localStorage.removeItem(t);case 1:case"end":return e.stop()}}),e,this)})))}}]),b=function(t,e){return d(void 0,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.length&&e.forEach((function(e){return d(void 0,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.removeItem(e);case 2:case"end":return n.stop()}}),n)})))}));case 1:case"end":return n.stop()}}),n)})))},M=u((function t(){var e=this;a(this,t),this.initialized=!1,this.setInitialized=function(t){e.storage=t,e.initialized=!0};var n=new w;this.storage=n;try{!function(t,e,n){d(void 0,null,l().mark((function r(){var i,o,a,s,u,c,h;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i="wc_storage_version",r.next=3,e.getItem(i);case 3:if(!((o=r.sent)&&o>=1)){r.next=7;break}return n(e),r.abrupt("return");case 7:return r.next=9,t.getKeys();case 9:if((a=r.sent).length){r.next=13;break}return n(e),r.abrupt("return");case 13:s=[];case 14:if(!a.length){r.next=28;break}if(u=a.shift()){r.next=18;break}return r.abrupt("continue",26);case 18:if(!((c=u.toLowerCase()).includes("wc@")||c.includes("walletconnect")||c.includes("wc_")||c.includes("wallet_connect"))){r.next=26;break}return r.next=22,t.getItem(u);case 22:return h=r.sent,r.next=25,e.setItem(u,h);case 25:s.push(u);case 26:r.next=14;break;case 28:return r.next=30,e.setItem(i,1);case 30:n(e),b(t,s);case 32:case"end":return r.stop()}}),r)})))}(n,new y,this.setInitialized)}catch(t){this.initialized=!0}}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initialize();case 2:return t.abrupt("return",this.storage.getKeys());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initialize();case 2:return t.abrupt("return",this.storage.getEntries());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:return e.abrupt("return",this.storage.getItem(t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.initialize();case 2:return n.abrupt("return",this.storage.setItem(t,e));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:return e.abrupt("return",this.storage.removeItem(t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"initialize",value:function(){return d(this,null,l().mark((function t(){var e=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=4;break}return t.next=4,new Promise((function(t){var n=setInterval((function(){e.initialized&&(clearInterval(n),t())}),20)}));case 4:case"end":return t.stop()}}),t,this)})))}}])}).call(this,n(26))},function(t,e,n){(function(t){n.d(e,"a",(function(){return p}));var r=n(6),i=n(8),o=n(2);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:k(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",y="executing",m="completed",g={};function v(){}function w(){}function b(){}var M={};h(M,s,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(D([])));I&&I!==n&&r.call(I,s)&&(M=I);var N=b.prototype=v.prototype=Object.create(M);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==c(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var i=p;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?m:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.url;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.register(e);case 2:case"end":return n.stop()}}),n)}))()}))}},{key:"close",value:function(){return l(this,null,a().mark((function t(){var e=this;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){c(e.socket)>"u"?n(new Error("Connection already closed")):(e.socket.onclose=function(n){e.onClose(n),t()},e.socket.close())})));case 1:case"end":return t.stop()}}),t)})))}},{key:"send",value:function(t){return l(this,null,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=c(this.socket)>"u",!e.t0){e.next=5;break}return e.next=4,this.register();case 4:this.socket=e.sent;case 5:try{this.socket.send(Object(i.b)(t))}catch(e){this.onError(t.id,e)}case 6:case"end":return e.stop()}}),e,this)})))}},{key:"register",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: ".concat(e));if(this.registering){var n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((function(e,n){t.events.once("register_error",(function(e){t.resetMaxListeners(),n(e)})),t.events.once("open",(function(){if(t.resetMaxListeners(),c(t.socket)>"u")return n(new Error("WebSocket connection is missing or invalid"));e(t.socket)}))}))}return this.url=e,this.registering=!0,new Promise((function(n,r){var i=new URLSearchParams(e).get("origin"),a=Object(o.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:!Object(o.isLocalhostUrl)(e)},s=new f(e,[],a);h()?s.onerror=function(e){var n=e;r(t.emitError(n.error))}:s.on("error",(function(e){r(t.emitError(e))})),s.onopen=function(){t.onOpen(s),n(s)}}))}},{key:"onOpen",value:function(t){var e=this;t.onmessage=function(t){return e.onPayload(t)},t.onclose=function(t){return e.onClose(t)},this.socket=t,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}},{key:"onPayload",value:function(t){if(!(c(t.data)>"u")){var e="string"==typeof t.data?Object(i.a)(t.data):t.data;this.events.emit("payload",e)}}},{key:"onError",value:function(t,e){var n=this.parseError(e),r=n.message||n.toString(),i=Object(o.formatJsonRpcError)(t,r);this.events.emit("payload",i)}},{key:"parseError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return Object(o.parseConnectionError)(t,d(e),"WS")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}},{key:"emitError",value:function(t){var e=this.parseError(new Error((null==t?void 0:t.message)||"WebSocket connection failed for host: ".concat(d(this.url))));return this.events.emit("register_error",e),e}}])&&s(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}).call(this,n(26))},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,d=l||h||Function("return this")(),f=e&&!e.nodeType&&e,p=f&&"object"==typeof n&&n&&!n.nodeType&&n,y=p&&p.exports===f,m=y&&l.process,g=function(){try{return m&&m.binding&&m.binding("util")}catch(t){}}(),v=g&&g.isTypedArray;function w(t,e){for(var n=-1,r=null==t?0:t.length;++ns))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,d=2&n?new ot:void 0;for(o.set(t,e),o.set(e,t);++l-1},rt.prototype.set=function(t,e){var n=this.__data__,r=st(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new nt,map:new(F||rt),string:new nt}},it.prototype.delete=function(t){var e=ft(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return ft(this,t).get(t)},it.prototype.has=function(t){return ft(this,t).has(t)},it.prototype.set=function(t,e){var n=ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ot.prototype.add=ot.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ot.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new rt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof rt){var r=n.__data__;if(!F||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new it(r)}return n.set(t,e),this.size=n.size,this};var yt=U?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function xt(t){return null!=t&&"object"==typeof t}var kt=v?function(t){return function(e){return t(e)}}(v):function(t){return xt(t)&&Nt(t.length)&&!!c[ut(t)]};function Tt(t){return null!=(e=t)&&Nt(e.length)&&!It(e)?function(t,e){var n=Mt(t),r=!n&&bt(t),i=!n&&!r&&At(t),o=!n&&!r&&!i&&kt(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n-1){var s=o.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var u=e.protocol+"//"+e.host;if(0===s.indexOf("/"))u+=s;else{var c=e.pathname.split("/");c.pop(),u+=c.join("/")+"/"+s}r.push(u)}else if(0===s.indexOf("//")){var l=e.protocol+s;r.push(l)}else r.push(s)}}return r}(),name:o}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(126),i=n(12),o=function(){function t(t,e,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=r.hmac(this._hash,n,e);this._hmac=new r.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.connection;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.open(e);case 2:case"end":return n.stop()}}),n)}))()}))}},{key:"disconnect",value:function(){return d(this,null,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}},{key:"off",value:function(t,e){this.events.off(t,e)}},{key:"removeListener",value:function(t,e){this.events.removeListener(t,e)}},{key:"request",value:function(t,e){return d(this,null,a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.requestStrict(Object(i.formatJsonRpcRequest)(t.method,t.params||[],t.id||Object(i.getBigIntRpcId)().toString()),e));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"requestStrict",value:function(t,e){return d(this,null,a().mark((function n(){var r=this;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,o){return d(r,null,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.connection.connected){r.next=9;break}return r.prev=1,r.next=4,this.open();case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),o(r.t0);case 9:return this.events.on("".concat(t.id),(function(t){Object(i.isJsonRpcError)(t)?o(t.error):n(t.result)})),r.prev=10,r.next=13,this.connection.send(t,e);case 13:r.next=18;break;case 15:r.prev=15,r.t1=r.catch(10),o(r.t1);case 18:case"end":return r.stop()}}),r,this,[[1,6],[10,15]])})))})));case 1:case"end":return n.stop()}}),n)})))}},{key:"setConnection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;return t}},{key:"onPayload",value:function(t){this.events.emit("payload",t),Object(i.isJsonRpcResponse)(t)?this.events.emit("".concat(t.id),t):this.events.emit("message",{type:t.method,data:t.params})}},{key:"onClose",value:function(t){t&&3e3===t.code&&this.events.emit("error",new Error("WebSocket connection closed abnormally with code: ".concat(t.code," ").concat(t.reason?"(".concat(t.reason,")"):""))),this.events.emit("disconnect")}},{key:"open",value:function(){return d(this,arguments,(function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.connection!==e||!t.connection.connected){n.next=2;break}return n.abrupt("return");case 2:if(t.connection.connected&&t.close(),"string"!=typeof e){n.next=7;break}return n.next=6,t.connection.open(e);case 6:e=t.connection;case 7:return t.connection=t.setConnection(e),n.next=10,t.connection.open();case 10:t.registerEventListeners(),t.events.emit("connect");case 12:case"end":return n.stop()}}),n)}))()}))}},{key:"close",value:function(){return d(this,null,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.close();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"registerEventListeners",value:function(){var t=this;this.hasRegisteredEventListeners||(this.connection.on("payload",(function(e){return t.onPayload(e)})),this.connection.on("close",(function(e){return t.onClose(e)})),this.connection.on("error",(function(e){return t.events.emit("error",e)})),this.connection.on("register_error",(function(e){return t.onClose()})),this.hasRegisteredEventListeners=!0)}}])&&s(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.IJsonRpcProvider)},function(t,e,n){n.d(e,"a",(function(){return x}));var r=n(30);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return t&&"function"==typeof t.then?t:Promise.resolve(t)}function a(t){try{for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function b(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function M(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){b(o,r,i,a,s,"next",t)}function s(t){b(o,r,i,a,s,"throw",t)}a(void 0)}))}}function A(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=I(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e={mounts:{"":t.driver||E()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=function(t){var n,r=A(e.mountpoints);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t.startsWith(i))return{base:i,relativeKey:t.slice(i.length),driver:e.mounts[i]}}}catch(t){r.e(t)}finally{r.f()}return{base:"",relativeKey:t,driver:e.mounts[""]}},i=function(t,n){return e.mountpoints.filter((function(e){return e.startsWith(t)||n&&t.startsWith(e)})).map((function(n){return{relativeBase:t.length>n.length?t.slice(n.length):void 0,mountpoint:n,driver:e.mounts[n]}}))},o=function(t,n){if(e.watching){n=h(n);var r,i=A(e.watchListeners);try{for(i.s();!(r=i.n()).done;)(0,r.value)(t,n)}catch(t){i.e(t)}finally{i.f()}}},u=function(){var t=M(w().mark((function t(){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.watching){t.next=2;break}return t.abrupt("return");case 2:e.watching=!0,t.t0=w().keys(e.mounts);case 4:if((t.t1=t.t0()).done){t.next=11;break}return n=t.t1.value,t.next=8,k(e.mounts[n],o,n);case 8:e.unwatch[n]=t.sent,t.next=4;break;case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),y=function(){var t=M(w().mark((function t(){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.watching){t.next=2;break}return t.abrupt("return");case 2:t.t0=w().keys(e.unwatch);case 3:if((t.t1=t.t0()).done){t.next=9;break}return n=t.t1.value,t.next=7,e.unwatch[n]();case 7:t.next=3;break;case 9:e.unwatch={},e.watching=!1;case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),g=function(t,e,r){var i,o=new Map,a=function(t){var e=o.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},o.set(t.base,e)),e},s=A(t);try{for(s.s();!(i=s.n()).done;){var u=i.value,c="string"==typeof u,l=h(c?u:u.key),d=c?void 0:u.value,f=c||!u.options?e:m(m({},e),u.options),p=n(l);a(p).items.push({key:l,value:d,relativeKey:p.relativeKey,options:f})}}catch(t){s.e(t)}finally{s.f()}return Promise.all(v(o.values()).map((function(t){return r(t)}))).then((function(t){return t.flat()}))},b={hasItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var r=n(t),i=r.relativeKey,o=r.driver;return a(o.hasItem,i,e)},getItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var i=n(t),o=i.relativeKey,s=i.driver;return a(s.getItem,o,e).then((function(t){return r(t)}))},getItems:function(t,e){return g(t,e,(function(t){return t.driver.getItems?a(t.driver.getItems,t.items.map((function(t){return{key:t.relativeKey,options:t.options}})),e).then((function(e){return e.map((function(e){return{key:d(t.base,e.key),value:r(e.value)}}))})):Promise.all(t.items.map((function(e){return a(t.driver.getItem,e.relativeKey,e.options).then((function(t){return{key:e.key,value:r(t)}}))})))}))},getItemRaw:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var r=n(t),i=r.relativeKey,o=r.driver;return o.getItemRaw?a(o.getItemRaw,i,e):a(o.getItem,i,e).then((function(t){return l(t)}))},setItem:function(t,e){var r=arguments;return M(w().mark((function i(){var u,c,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(u=r.length>2&&void 0!==r[2]?r[2]:{},void 0!==e){i.next=3;break}return i.abrupt("return",b.removeItem(t));case 3:if(t=h(t),c=n(t),l=c.relativeKey,(d=c.driver).setItem){i.next=7;break}return i.abrupt("return");case 7:return i.next=9,a(d.setItem,l,s(e),u);case 9:d.watch||o("update",t);case 10:case"end":return i.stop()}}),i)})))()},setItems:function(t,e){return M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,g(t,e,function(){var t=M(w().mark((function t(n){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.driver.setItems){t.next=2;break}return t.abrupt("return",a(n.driver.setItems,n.items.map((function(t){return{key:t.relativeKey,value:s(t.value),options:t.options}})),e));case 2:if(n.driver.setItem){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,Promise.all(n.items.map((function(t){return a(n.driver.setItem,t.relativeKey,s(t.value),t.options)})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},setItemRaw:function(t,e){var r=arguments;return M(w().mark((function i(){var s,u,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(s=r.length>2&&void 0!==r[2]?r[2]:{},void 0!==e){i.next=3;break}return i.abrupt("return",b.removeItem(t,s));case 3:if(t=h(t),u=n(t),l=u.relativeKey,!(d=u.driver).setItemRaw){i.next=10;break}return i.next=8,a(d.setItemRaw,l,e,s);case 8:i.next=16;break;case 10:if(!d.setItem){i.next=15;break}return i.next=13,a(d.setItem,l,c(e),s);case 13:i.next=16;break;case 15:return i.abrupt("return");case 16:d.watch||o("update",t);case 17:case"end":return i.stop()}}),i)})))()},removeItem:function(t){var e=arguments;return M(w().mark((function r(){var i,s,u,c;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("boolean"==typeof(i=e.length>1&&void 0!==e[1]?e[1]:{})&&(i={removeMeta:i}),t=h(t),s=n(t),u=s.relativeKey,(c=s.driver).removeItem){r.next=6;break}return r.abrupt("return");case 6:return r.next=8,a(c.removeItem,u,i);case 8:if(!i.removeMeta&&!i.removeMata){r.next=11;break}return r.next=11,a(c.removeItem,u+"$",i);case 11:c.watch||o("remove",t);case 12:case"end":return r.stop()}}),r)})))()},getMeta:function(t){var e=arguments;return M(w().mark((function i(){var o,s,u,c,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("boolean"==typeof(o=e.length>1&&void 0!==e[1]?e[1]:{})&&(o={nativeOnly:o}),t=h(t),s=n(t),u=s.relativeKey,c=s.driver,l=Object.create(null),!c.getMeta){i.next=12;break}return i.t0=Object,i.t1=l,i.next=10,a(c.getMeta,u,o);case 10:i.t2=i.sent,i.t0.assign.call(i.t0,i.t1,i.t2);case 12:if(o.nativeOnly){i.next=17;break}return i.next=15,a(c.getItem,u+"$",o).then((function(t){return r(t)}));case 15:(d=i.sent)&&"object"===p(d)&&("string"==typeof d.atime&&(d.atime=new Date(d.atime)),"string"==typeof d.mtime&&(d.mtime=new Date(d.mtime)),Object.assign(l,d));case 17:return i.abrupt("return",l);case 18:case"end":return i.stop()}}),i)})))()},setMeta:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setItem(t+"$",e,n)},removeMeta:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removeItem(t+"$",e)},getKeys:function(t){var e=arguments;return M(w().mark((function n(){var r,o,s,u,c,l,d;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.length>1&&void 0!==e[1]?e[1]:{},t=f(t),o=i(t,!0),s=[],u=[],c=A(o),n.prev=6,d=w().mark((function t(){var e,n,i;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=l.value,t.next=3,a(e.driver.getKeys,e.relativeBase,r);case 3:n=t.sent,i=n.map((function(t){return e.mountpoint+h(t)})).filter((function(t){return!s.some((function(e){return t.startsWith(e)}))})),u.push.apply(u,v(i)),s=[e.mountpoint].concat(v(s.filter((function(t){return!t.startsWith(e.mountpoint)}))));case 7:case"end":return t.stop()}}),t)})),c.s();case 9:if((l=c.n()).done){n.next=13;break}return n.delegateYield(d(),"t0",11);case 11:n.next=9;break;case 13:n.next=18;break;case 15:n.prev=15,n.t1=n.catch(6),c.e(n.t1);case 18:return n.prev=18,c.f(),n.finish(18);case 21:return n.abrupt("return",t?u.filter((function(e){return e.startsWith(t)&&!e.endsWith("$")})):u.filter((function(t){return!t.endsWith("$")})));case 22:case"end":return n.stop()}}),n,null,[[6,15,18,21]])})))()},clear:function(t){var e=arguments;return M(w().mark((function n(){var r;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:{},t=f(t),n.next=4,Promise.all(i(t,!1).map(function(){var t=M(w().mark((function t(e){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.driver.clear){t.next=2;break}return t.abrupt("return",a(e.driver.clear,e.relativeBase,r));case 2:if(!e.driver.removeItem){t.next=7;break}return t.next=5,e.driver.getKeys(e.relativeBase||"",r);case 5:return n=t.sent,t.abrupt("return",Promise.all(n.map((function(t){return e.driver.removeItem(t,r)}))));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return n.stop()}}),n)})))()},dispose:function(){return M(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(Object.values(e.mounts).map((function(t){return T(t)})));case 2:case"end":return t.stop()}}),t)})))()},watch:function(t){return M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u();case 2:return e.watchListeners.push(t),n.abrupt("return",M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.watchListeners=e.watchListeners.filter((function(e){return e!==t})),0!==e.watchListeners.length){n.next=4;break}return n.next=4,y();case 4:case"end":return n.stop()}}),n)}))));case 4:case"end":return n.stop()}}),n)})))()},unwatch:function(){return M(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.watchListeners=[],t.next=3,y();case 3:case"end":return t.stop()}}),t)})))()},mount:function(t,n){if((t=f(t))&&e.mounts[t])throw new Error("already mounted at ".concat(t));return t&&(e.mountpoints.push(t),e.mountpoints.sort((function(t,e){return e.length-t.length}))),e.mounts[t]=n,e.watching&&Promise.resolve(k(n,o,t)).then((function(n){e.unwatch[t]=n})).catch(console.error),b},unmount:function(t){var n=arguments;return M(w().mark((function r(){var i;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=!(n.length>1&&void 0!==n[1])||n[1],(t=f(t))&&e.mounts[t]){r.next=4;break}return r.abrupt("return");case 4:if(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),!i){r.next=8;break}return r.next=8,T(e.mounts[t]);case 8:e.mountpoints=e.mountpoints.filter((function(e){return e!==t})),delete e.mounts[t];case 10:case"end":return r.stop()}}),r)})))()},getMount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=h(t)+":";var e=n(t);return{driver:e.driver,base:e.base}},getMounts:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var n=i(t,e.parents);return n.map((function(t){return{driver:t.driver,base:t.mountpoint}}))}};return b}function k(t,e,n){return t.watch?t.watch((function(t,r){return e(t,n+r)})):function(){}}function T(t){return L.apply(this,arguments)}function L(){return(L=M(w().mark((function t(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.dispose){t.next=3;break}return t.next=3,a(e.dispose);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(t,e){if(!("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e))return e;!function(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}(t)}function s(t,e={}){if("string"!=typeof t)return t;const n=t.trim();if('"'===t[0]&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const t=n.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!o.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(r.test(t)||i.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,a)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}e.default=s,e.destr=s,e.safeDestr=function(t,e={}){return s(t,{...e,strict:!0})}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new j(r||[]);return a(o,"_invoke",{value:k(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",y="executing",m="completed",g={};function v(){}function w(){}function b(){}var M={};h(M,u,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(D([])));I&&I!==n&&o.call(I,u)&&(M=I);var N=b.prototype=v.prototype=Object.create(M);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var i=p;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?m:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function D(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var n=0;n-1?h:0,t.charCodeAt(f+1)){case 100:case 102:if(l>=u)break;if(null==e[l])break;h=u)break;if(null==e[l])break;h=u)break;if(void 0===e[l])break;h",h=f+2,f++;break}c+=i(e[l]),h=f+2,f++;break;case 115:if(l>=u)break;h>>16&65535)*r+n*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),i=n(12);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var o=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,n){if(void 0===n&&(n=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],n--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=t[r++],n--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,i=e/536870912|0,o=e<<3,a=e%128<112?128:256;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(t,e,n,i,o,s,u){for(var c,l,h,d,f,p,y,m,g=n[0],v=n[1],w=n[2],b=n[3],M=n[4],A=n[5],I=n[6],N=n[7],E=i[0],x=i[1],k=i[2],T=i[3],L=i[4],S=i[5],j=i[6],D=i[7];u>=128;){for(var C=0;C<16;C++){var O=8*C+s;t[C]=r.readUint32BE(o,O),e[C]=r.readUint32BE(o,O+4)}for(C=0;C<80;C++){var z,P,_=g,B=v,R=w,U=b,Q=M,Y=A,W=I,F=E,V=x,H=k,G=T,q=L,Z=S,J=j;if(f=65535&(l=D),p=l>>>16,y=65535&(c=N),m=c>>>16,f+=65535&(l=(L>>>14|M<<18)^(L>>>18|M<<14)^(M>>>9|L<<23)),p+=l>>>16,y+=65535&(c=(M>>>14|L<<18)^(M>>>18|L<<14)^(L>>>9|M<<23)),m+=c>>>16,f+=65535&(l=L&S^~L&j),p+=l>>>16,y+=65535&(c=M&A^~M&I),m+=c>>>16,c=a[2*C],f+=65535&(l=a[2*C+1]),p+=l>>>16,y+=65535&c,m+=c>>>16,c=t[C%16],p+=(l=e[C%16])>>>16,y+=65535&c,m+=c>>>16,y+=(p+=(f+=65535&l)>>>16)>>>16,f=65535&(l=d=65535&f|p<<16),p=l>>>16,y=65535&(c=h=65535&y|(m+=y>>>16)<<16),m=c>>>16,f+=65535&(l=(E>>>28|g<<4)^(g>>>2|E<<30)^(g>>>7|E<<25)),p+=l>>>16,y+=65535&(c=(g>>>28|E<<4)^(E>>>2|g<<30)^(E>>>7|g<<25)),m+=c>>>16,p+=(l=E&x^E&k^x&k)>>>16,y+=65535&(c=g&v^g&w^v&w),m+=c>>>16,z=65535&(y+=(p+=(f+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,P=65535&f|p<<16,f=65535&(l=G),p=l>>>16,y=65535&(c=U),m=c>>>16,p+=(l=d)>>>16,y+=65535&(c=h),m+=c>>>16,v=_,w=B,b=R,M=U=65535&(y+=(p+=(f+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,A=Q,I=Y,N=W,g=z,x=F,k=V,T=H,L=G=65535&f|p<<16,S=q,j=Z,D=J,E=P,C%16==15)for(O=0;O<16;O++)c=t[O],f=65535&(l=e[O]),p=l>>>16,y=65535&c,m=c>>>16,c=t[(O+9)%16],f+=65535&(l=e[(O+9)%16]),p+=l>>>16,y+=65535&c,m+=c>>>16,h=t[(O+1)%16],f+=65535&(l=((d=e[(O+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),p+=l>>>16,y+=65535&(c=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),m+=c>>>16,h=t[(O+14)%16],p+=(l=((d=e[(O+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,y+=65535&(c=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,t[O]=65535&y|m<<16,e[O]=65535&f|p<<16}f=65535&(l=E),p=l>>>16,y=65535&(c=g),m=c>>>16,c=n[0],p+=(l=i[0])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[0]=g=65535&y|m<<16,i[0]=E=65535&f|p<<16,f=65535&(l=x),p=l>>>16,y=65535&(c=v),m=c>>>16,c=n[1],p+=(l=i[1])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[1]=v=65535&y|m<<16,i[1]=x=65535&f|p<<16,f=65535&(l=k),p=l>>>16,y=65535&(c=w),m=c>>>16,c=n[2],p+=(l=i[2])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[2]=w=65535&y|m<<16,i[2]=k=65535&f|p<<16,f=65535&(l=T),p=l>>>16,y=65535&(c=b),m=c>>>16,c=n[3],p+=(l=i[3])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[3]=b=65535&y|m<<16,i[3]=T=65535&f|p<<16,f=65535&(l=L),p=l>>>16,y=65535&(c=M),m=c>>>16,c=n[4],p+=(l=i[4])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[4]=M=65535&y|m<<16,i[4]=L=65535&f|p<<16,f=65535&(l=S),p=l>>>16,y=65535&(c=A),m=c>>>16,c=n[5],p+=(l=i[5])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[5]=A=65535&y|m<<16,i[5]=S=65535&f|p<<16,f=65535&(l=j),p=l>>>16,y=65535&(c=I),m=c>>>16,c=n[6],p+=(l=i[6])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[6]=I=65535&y|m<<16,i[6]=j=65535&f|p<<16,f=65535&(l=D),p=l>>>16,y=65535&(c=N),m=c>>>16,c=n[7],p+=(l=i[7])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[7]=N=65535&y|m<<16,i[7]=D=65535&f|p<<16,s+=128,u-=128}return s}e.hash=function(t){var e=new o;e.update(t);var n=e.digest();return e.clean(),n}},function(t,e,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var c=n(94),l=n(96),h=n(97),d=n(98),f=n(99),p=n(50),y=n(100),m=n(51),g=n(101),v=n(102),w=n(103),b=n(105),M=n(106),A=n(107);n(108);var I=n(52),N=n(40),E=n(29),x=n(35),k=n(18);const T=u(u(u(u(u(u(u(u(u(u({},c),l),h),d),f),p),y),m),g),v),L=u(u({},w),b),S={raw:M,json:A};e.CID=I.CID,e.hasher=N,e.digest=E,e.varint=x,e.bytes=k,e.bases=T,e.codecs=S,e.hashes=L},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(18);const o=r.from({prefix:"\0",name:"identity",encode:t=>i.toString(t),decode:t=>i.fromString(t)});e.identity=o},function(t,e,n){t.exports=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);t[e];){var l=n[t.charCodeAt(e)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,a[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=a[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var h=e[i],d=0,f=a-1;(0!==h||d>>0,c[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=a-r;p!==a&&0===c[p];)p++;for(var y=u.repeat(n);p(t[n]=e,t)),[]),a=i.reduce(((t,e,n)=>(t[e.codePointAt(0)]=n,t)),[]),s=r.from({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+o[e]),"")},decode:function(t){const e=[];for(const n of t){const t=a[n.codePointAt(0)];if(void 0===t)throw new Error("Non-base256emoji character: "+n);e.push(t)}return new Uint8Array(e)}});e.base256emoji=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(40);const i=t=>e=>{return n=this,null,r=function*(){return new Uint8Array(yield crypto.subtle.digest(t,e))},new Promise(((t,e)=>{var i=t=>{try{a(r.next(t))}catch(t){e(t)}},o=t=>{try{a(r.throw(t))}catch(t){e(t)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(n,null)).next())}));var n,r},o=r.from({name:"sha2-256",code:18,encode:i("SHA-256")}),a=r.from({name:"sha2-512",code:19,encode:i("SHA-512")});e.sha256=o,e.sha512=a},function(t,e,n){var r=Math.pow(2,31),i=Math.pow(2,7),o=Math.pow(2,14),a=Math.pow(2,21),s=Math.pow(2,28),u=Math.pow(2,35),c=Math.pow(2,42),l=Math.pow(2,49),h=Math.pow(2,56),d=Math.pow(2,63),f={encode:function t(e,n,i){n=n||[];for(var o=i=i||0;e>=r;)n[i++]=255&e|128,e/=128;for(;-128&e;)n[i++]=255&e|128,e>>>=7;return n[i]=0|e,t.bytes=i-o+1,n},decode:function t(e,n){var r,i=0,o=0,a=n=n||0,s=e.length;do{if(a>=s)throw t.bytes=0,new RangeError("Could not decode varint");r=e[a++],i+=o<28?(127&r)<=128);return t.bytes=a-n,i},encodingLength:function(t){return ti.create(0,o(t))};e.identity=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(18);e.code=85,e.decode=t=>r.coerce(t),e.encode=t=>r.coerce(t),e.name="raw"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=new TextEncoder,i=new TextDecoder;e.code=512,e.decode=t=>JSON.parse(i.decode(t)),e.encode=t=>r.encode(JSON.stringify(t)),e.name="json"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(52),i=n(35),o=n(18),a=n(40),s=n(29);e.CID=r.CID,e.varint=i,e.bytes=o,e.hasher=a,e.digest=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.compare=function(t,e){for(let n=0;ne[n])return 1}return t.byteLength>e.byteLength?1:t.byteLength=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a}function u(t,e){return function(n,r){e(n,r,t)}}function c(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function l(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function h(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;a;)try{if(n=1,r&&(i=2&o[0]?r.return:o[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,o[1])).done)return i;switch(r=0,i&&(o=[2&o[0],i.value]),o[0]){case 0:case 1:i=o;break;case 4:return a.label++,{value:o[1],done:!1};case 5:a.label++,r=o[1],o=[0];continue;case 7:o=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==o[0]&&2!==o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function y(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function m(){for(var t=[],e=0;e1||s(t,e)}))})}function s(t,e){try{(n=i[t](e)).value instanceof v?Promise.resolve(n.value.v).then(u,c):l(o[0][2],n)}catch(t){l(o[0][3],t)}var n}function u(t){s("next",t)}function c(t){s("throw",t)}function l(t,e){t(e),o.shift(),o.length&&s(o[0][0],o[0][1])}}function b(t){var e,n;return e={},r("next"),r("throw",(function(t){throw t})),r("return"),e[Symbol.iterator]=function(){return this},e;function r(r,i){e[r]=t[r]?function(e){return(n=!n)?{value:v(t[r](e)),done:"return"===r}:i?i(e):e}:i}}function M(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=p(t),e={},r("next"),r("throw"),r("return"),e[Symbol.asyncIterator]=function(){return this},e);function r(n){e[n]=t[n]&&function(e){return new Promise((function(r,i){!function(t,e,n,r){Promise.resolve(r).then((function(e){t({value:e,done:n})}),e)}(r,i,(e=t[n](e)).done,e.value)}))}}}function A(t,e){return Object.defineProperty?Object.defineProperty(t,"raw",{value:e}):t.raw=e,t}function I(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function N(t){return t&&t.__esModule?t:{default:t}}function E(t,e){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return e.get(t)}function x(t,e,n){if(!e.has(t))throw new TypeError("attempted to set private field on non-instance");return e.set(t,n),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(49),i=n(34);e.fromString=function(t,e="utf8"){const n=r[e];if(!n)throw new Error(`Unsupported encoding "${e}"`);return"utf8"!==e&&"utf-8"!==e||null==globalThis.Buffer||null==globalThis.Buffer.from?n.decoder.decode(`${n.prefix}${t}`):i.asUint8Array(globalThis.Buffer.from(t,"utf-8"))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=new Uint8Array(0);e.coerce=t=>{if(t instanceof Uint8Array&&"Uint8Array"===t.constructor.name)return t;if(t instanceof ArrayBuffer)return new Uint8Array(t);if(ArrayBuffer.isView(t))return new Uint8Array(t.buffer,t.byteOffset,t.byteLength);throw new Error("Unknown type, must be binary type")},e.empty=r,e.equals=(t,e)=>{if(t===e)return!0;if(t.byteLength!==e.byteLength)return!1;for(let n=0;n{const e=t.match(/../g);return e?new Uint8Array(e.map((t=>parseInt(t,16)))):r},e.fromString=t=>(new TextEncoder).encode(t),e.isBinary=t=>t instanceof ArrayBuffer||ArrayBuffer.isView(t),e.toHex=t=>t.reduce(((t,e)=>t+e.toString(16).padStart(2,"0")),""),e.toString=t=>(new TextDecoder).decode(t)},function(t,e,n){n.d(e,"d",(function(){return d})),n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return y})),n.d(e,"b",(function(){return m}));var r=n(42),i=n(20),o=n(17),a=n(8),s=n(3);function u(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==e);u=!0);}catch(t){c=!0,i=t}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,e)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function c(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:a();return e("readonly",(function(e){return r(e.get(t))}))}function u(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:a();return n("readwrite",(function(n){return n.put(e,t),r(n.transaction)}))}function c(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a();return e("readwrite",(function(e){return e.delete(t),r(e.transaction)}))}function l(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a();return t("readwrite",(function(t){return t.clear(),r(t.transaction)}))}function h(t,e){return t.openCursor().onsuccess=function(){this.result&&(e(this.result),this.result.continue())},r(t.transaction)}function d(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a();return t("readonly",(function(t){if(t.getAllKeys)return r(t.getAllKeys());var e=[];return h(t,(function(t){return e.push(t.key)})).then((function(){return e}))}))}n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return s})),n.d(e,"e",(function(){return d})),n.d(e,"f",(function(){return u}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.randomStringForEntropy=e.randomString=e.randomUint32=e.randomBytes=e.defaultRandomSource=void 0;const r=n(87),i=n(28),o=n(12);function a(t,n=e.defaultRandomSource){return n.randomBytes(t)}e.defaultRandomSource=new r.SystemRandomSource,e.randomBytes=a,e.randomUint32=function(t=e.defaultRandomSource){const n=a(4,t),r=(0,i.readUint32LE)(n);return(0,o.wipe)(n),r};const s="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";function u(t,n=s,r=e.defaultRandomSource){if(n.length<2)throw new Error("randomString charset is too short");if(n.length>256)throw new Error("randomString charset is too long");let i="";const u=n.length,c=256-256%u;for(;t>0;){const e=a(Math.ceil(256*t/c),r);for(let r=0;r0;r++){const o=e[r];o>>8,e[n+1]=t>>>0,e}function o(t,e,n){return void 0===e&&(e=new Uint8Array(2)),void 0===n&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e}function a(t,e){return void 0===e&&(e=0),t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3]}function s(t,e){return void 0===e&&(e=0),(t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3])>>>0}function u(t,e){return void 0===e&&(e=0),t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e]}function c(t,e){return void 0===e&&(e=0),(t[e+3]<<24|t[e+2]<<16|t[e+1]<<8|t[e])>>>0}function l(t,e,n){return void 0===e&&(e=new Uint8Array(4)),void 0===n&&(n=0),e[n+0]=t>>>24,e[n+1]=t>>>16,e[n+2]=t>>>8,e[n+3]=t>>>0,e}function h(t,e,n){return void 0===e&&(e=new Uint8Array(4)),void 0===n&&(n=0),e[n+0]=t>>>0,e[n+1]=t>>>8,e[n+2]=t>>>16,e[n+3]=t>>>24,e}function d(t,e,n){return void 0===e&&(e=new Uint8Array(8)),void 0===n&&(n=0),l(t/4294967296>>>0,e,n),l(t>>>0,e,n+4),e}function f(t,e,n){return void 0===e&&(e=new Uint8Array(8)),void 0===n&&(n=0),h(t>>>0,e,n),h(t/4294967296>>>0,e,n+4),e}e.readInt16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])<<16>>16},e.readUint16BE=function(t,e){return void 0===e&&(e=0),(t[e+0]<<8|t[e+1])>>>0},e.readInt16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])<<16>>16},e.readUint16LE=function(t,e){return void 0===e&&(e=0),(t[e+1]<<8|t[e])>>>0},e.writeUint16BE=i,e.writeInt16BE=i,e.writeUint16LE=o,e.writeInt16LE=o,e.readInt32BE=a,e.readUint32BE=s,e.readInt32LE=u,e.readUint32LE=c,e.writeUint32BE=l,e.writeInt32BE=l,e.writeUint32LE=h,e.writeInt32LE=h,e.readInt64BE=function(t,e){void 0===e&&(e=0);var n=a(t,e),r=a(t,e+4);return 4294967296*n+r-4294967296*(r>>31)},e.readUint64BE=function(t,e){return void 0===e&&(e=0),4294967296*s(t,e)+s(t,e+4)},e.readInt64LE=function(t,e){void 0===e&&(e=0);var n=u(t,e);return 4294967296*u(t,e+4)+n-4294967296*(n>>31)},e.readUint64LE=function(t,e){void 0===e&&(e=0);var n=c(t,e);return 4294967296*c(t,e+4)+n},e.writeUint64BE=d,e.writeInt64BE=d,e.writeUint64LE=f,e.writeInt64LE=f,e.readUintBE=function(t,e,n){if(void 0===n&&(n=0),t%8!=0)throw new Error("readUintBE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintBE: array is too short for the given bitLength");for(var r=0,i=1,o=t/8+n-1;o>=n;o--)r+=e[o]*i,i*=256;return r},e.readUintLE=function(t,e,n){if(void 0===n&&(n=0),t%8!=0)throw new Error("readUintLE supports only bitLengths divisible by 8");if(t/8>e.length-n)throw new Error("readUintLE: array is too short for the given bitLength");for(var r=0,i=1,o=n;o=i;a--)n[a]=e/o&255,o*=256;return n},e.writeUintLE=function(t,e,n,i){if(void 0===n&&(n=new Uint8Array(t/8)),void 0===i&&(i=0),t%8!=0)throw new Error("writeUintLE supports only bitLengths divisible by 8");if(!r.isSafeInteger(e))throw new Error("writeUintLE value must be an integer");for(var o=1,a=i;a{const n=e.byteLength,r=i.encodingLength(t),a=r+i.encodingLength(n),s=new Uint8Array(a+n);return i.encodeTo(t,s,0),i.encodeTo(n,s,r),s.set(e,a),new o(t,n,e,s)},e.decode=t=>{const e=r.coerce(t),[n,a]=i.decode(e),[s,u]=i.decode(e.subarray(a)),c=e.subarray(a+u);if(c.byteLength!==s)throw new Error("Incorrect length");return new o(n,s,c,e)},e.equals=(t,e)=>t===e||t.code===e.code&&t.size===e.size&&r.equals(t.bytes,e.bytes)},function(t,e,n){const{destr:r,safeDestr:i}=n(74);r.destr=r,r.safeDestr=i,t.exports=r},function(t,e,n){var r=n(48);n.d(e,"generateKeyPair",(function(){return r.a})),n.d(e,"signJWT",(function(){return r.b})),n(3);var i=n(53);n.o(i,"encodeIss")&&n.d(e,"encodeIss",(function(){return i.encodeIss}));var o=n(19);n.d(e,"encodeIss",(function(){return o.d}))},function(t,e,n){const r=n(120),i=n(121),o=n(122),a=n(123),s=Symbol("encodeFragmentIdentifier");function u(t){if("string"!=typeof t||1!==t.length)throw new TypeError("arrayFormatSeparator must be single character string")}function c(t,e){return e.encode?e.strict?r(t):encodeURIComponent(t):t}function l(t,e){return e.decode?i(t):t}function h(t){const e=t.indexOf("#");return-1!==e&&(t=t.slice(0,e)),t}function d(t){const e=(t=h(t)).indexOf("?");return-1===e?"":t.slice(e+1)}function f(t,e){return e.parseNumbers&&!Number.isNaN(Number(t))&&"string"==typeof t&&""!==t.trim()?t=Number(t):!e.parseBooleans||null===t||"true"!==t.toLowerCase()&&"false"!==t.toLowerCase()||(t="true"===t.toLowerCase()),t}function p(t,e){u((e=Object.assign({decode:!0,sort:!0,arrayFormat:"none",arrayFormatSeparator:",",parseNumbers:!1,parseBooleans:!1},e)).arrayFormatSeparator);const n=function(t){let e;switch(t.arrayFormat){case"index":return(t,n,r)=>{e=/\[(\d*)\]$/.exec(t),t=t.replace(/\[\d*\]$/,""),e?(void 0===r[t]&&(r[t]={}),r[t][e[1]]=n):r[t]=n};case"bracket":return(t,n,r)=>{e=/(\[\])$/.exec(t),t=t.replace(/\[\]$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"colon-list-separator":return(t,n,r)=>{e=/(:list)$/.exec(t),t=t.replace(/:list$/,""),e?void 0!==r[t]?r[t]=[].concat(r[t],n):r[t]=[n]:r[t]=n};case"comma":case"separator":return(e,n,r)=>{const i="string"==typeof n&&n.includes(t.arrayFormatSeparator),o="string"==typeof n&&!i&&l(n,t).includes(t.arrayFormatSeparator);n=o?l(n,t):n;const a=i||o?n.split(t.arrayFormatSeparator).map((e=>l(e,t))):null===n?n:l(n,t);r[e]=a};case"bracket-separator":return(e,n,r)=>{const i=/(\[\])$/.test(e);if(e=e.replace(/\[\]$/,""),!i)return void(r[e]=n?l(n,t):n);const o=null===n?[]:n.split(t.arrayFormatSeparator).map((e=>l(e,t)));void 0!==r[e]?r[e]=[].concat(r[e],o):r[e]=o};default:return(t,e,n)=>{void 0!==n[t]?n[t]=[].concat(n[t],e):n[t]=e}}}(e),r=Object.create(null);if("string"!=typeof t)return r;if(!(t=t.trim().replace(/^[?#&]/,"")))return r;for(const i of t.split("&")){if(""===i)continue;let[t,a]=o(e.decode?i.replace(/\+/g," "):i,"=");a=void 0===a?null:["comma","separator","bracket-separator"].includes(e.arrayFormat)?a:l(a,e),n(l(t,e),a,r)}for(const t of Object.keys(r)){const n=r[t];if("object"==typeof n&&null!==n)for(const t of Object.keys(n))n[t]=f(n[t],e);else r[t]=f(n,e)}return!1===e.sort?r:(!0===e.sort?Object.keys(r).sort():Object.keys(r).sort(e.sort)).reduce(((t,e)=>{const n=r[e];return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)?t[e]=function t(e){return Array.isArray(e)?e.sort():"object"==typeof e?t(Object.keys(e)).sort(((t,e)=>Number(t)-Number(e))).map((t=>e[t])):e}(n):t[e]=n,t}),Object.create(null))}e.extract=d,e.parse=p,e.stringify=(t,e)=>{if(!t)return"";u((e=Object.assign({encode:!0,strict:!0,arrayFormat:"none",arrayFormatSeparator:","},e)).arrayFormatSeparator);const n=n=>e.skipNull&&null==t[n]||e.skipEmptyString&&""===t[n],r=function(t){switch(t.arrayFormat){case"index":return e=>(n,r)=>{const i=n.length;return void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),"[",i,"]"].join("")]:[...n,[c(e,t),"[",c(i,t),"]=",c(r,t)].join("")]};case"bracket":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),"[]"].join("")]:[...n,[c(e,t),"[]=",c(r,t)].join("")];case"colon-list-separator":return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,[c(e,t),":list="].join("")]:[...n,[c(e,t),":list=",c(r,t)].join("")];case"comma":case"separator":case"bracket-separator":{const e="bracket-separator"===t.arrayFormat?"[]=":"=";return n=>(r,i)=>void 0===i||t.skipNull&&null===i||t.skipEmptyString&&""===i?r:(i=null===i?"":i,0===r.length?[[c(n,t),e,c(i,t)].join("")]:[[r,c(i,t)].join(t.arrayFormatSeparator)])}default:return e=>(n,r)=>void 0===r||t.skipNull&&null===r||t.skipEmptyString&&""===r?n:null===r?[...n,c(e,t)]:[...n,[c(e,t),"=",c(r,t)].join("")]}}(e),i={};for(const e of Object.keys(t))n(e)||(i[e]=t[e]);const o=Object.keys(i);return!1!==e.sort&&o.sort(e.sort),o.map((n=>{const i=t[n];return void 0===i?"":null===i?c(n,e):Array.isArray(i)?0===i.length&&"bracket-separator"===e.arrayFormat?c(n,e)+"[]":i.reduce(r(n),[]).join("&"):c(n,e)+"="+c(i,e)})).filter((t=>t.length>0)).join("&")},e.parseUrl=(t,e)=>{e=Object.assign({decode:!0},e);const[n,r]=o(t,"#");return Object.assign({url:n.split("?")[0]||"",query:p(d(t),e)},e&&e.parseFragmentIdentifier&&r?{fragmentIdentifier:l(r,e)}:{})},e.stringifyUrl=(t,n)=>{n=Object.assign({encode:!0,strict:!0,[s]:!0},n);const r=h(t.url).split("?")[0]||"",i=e.extract(t.url),o=e.parse(i,{sort:!1}),a=Object.assign(o,t.query);let u=e.stringify(a,n);u&&(u="?"+u);let l=function(t){let e="";const n=t.indexOf("#");return-1!==n&&(e=t.slice(n)),e}(t.url);return t.fragmentIdentifier&&(l="#"+(n[s]?c(t.fragmentIdentifier,n):t.fragmentIdentifier)),`${r}${u}${l}`},e.pick=(t,n,r)=>{r=Object.assign({parseFragmentIdentifier:!0,[s]:!1},r);const{url:i,query:o,fragmentIdentifier:u}=e.parseUrl(t,r);return e.stringifyUrl({url:i,query:a(o,n),fragmentIdentifier:u},r)},e.exclude=(t,n,r)=>{const i=Array.isArray(n)?t=>!n.includes(t):(t,e)=>!n(t,e);return e.pick(t,i,r)}},function(t,e){var n,r,i=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(t){r=a}}();var u,c=[],l=!1,h=-1;function d(){l&&u&&(l=!1,u.length?c=u.concat(c):h=-1,c.length&&f())}function f(){if(!l){var t=s(d);l=!0;for(var e=c.length;e;){for(u=c,c=[];++h1)for(var n=1;n[r.decode(t,e),r.decode.bytes],e.encodeTo=(t,e,n=0)=>(r.encode(t,e,n),e),e.encodingLength=t=>r.encodingLength(t)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(16);r.__exportStar(n(112),e),r.__exportStar(n(113),e)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.convertSecretKeyToX25519=e.convertPublicKeyToX25519=e.verify=e.sign=e.extractPublicKeyFromSecretKey=e.generateKeyPair=e.generateKeyPairFromSeed=e.SEED_LENGTH=e.SECRET_KEY_LENGTH=e.PUBLIC_KEY_LENGTH=e.SIGNATURE_LENGTH=void 0;const r=n(24),i=n(92),o=n(12);function a(t){const e=new Float64Array(16);if(t)for(let n=0;n>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const t=n[15]>>16&1;n[14]&=65535,m(r,n,1-t)}for(let e=0;e<16;e++)t[2*e]=255&r[e],t[2*e+1]=r[e]>>8}function v(t,e){let n=0;for(let r=0;r<32;r++)n|=t[r]^e[r];return(1&n-1>>>8)-1}function w(t,e){const n=new Uint8Array(32),r=new Uint8Array(32);return g(n,t),g(r,e),v(n,r)}function b(t){const e=new Uint8Array(32);return g(e,t),1&e[0]}function M(t,e,n){for(let r=0;r<16;r++)t[r]=e[r]+n[r]}function A(t,e,n){for(let r=0;r<16;r++)t[r]=e[r]-n[r]}function I(t,e,n){let r,i,o=0,a=0,s=0,u=0,c=0,l=0,h=0,d=0,f=0,p=0,y=0,m=0,g=0,v=0,w=0,b=0,M=0,A=0,I=0,N=0,E=0,x=0,k=0,T=0,L=0,S=0,j=0,C=0,D=0,O=0,z=0,P=n[0],_=n[1],B=n[2],R=n[3],U=n[4],Q=n[5],Y=n[6],W=n[7],F=n[8],V=n[9],H=n[10],G=n[11],q=n[12],Z=n[13],J=n[14],X=n[15];r=e[0],o+=r*P,a+=r*_,s+=r*B,u+=r*R,c+=r*U,l+=r*Q,h+=r*Y,d+=r*W,f+=r*F,p+=r*V,y+=r*H,m+=r*G,g+=r*q,v+=r*Z,w+=r*J,b+=r*X,r=e[1],a+=r*P,s+=r*_,u+=r*B,c+=r*R,l+=r*U,h+=r*Q,d+=r*Y,f+=r*W,p+=r*F,y+=r*V,m+=r*H,g+=r*G,v+=r*q,w+=r*Z,b+=r*J,M+=r*X,r=e[2],s+=r*P,u+=r*_,c+=r*B,l+=r*R,h+=r*U,d+=r*Q,f+=r*Y,p+=r*W,y+=r*F,m+=r*V,g+=r*H,v+=r*G,w+=r*q,b+=r*Z,M+=r*J,A+=r*X,r=e[3],u+=r*P,c+=r*_,l+=r*B,h+=r*R,d+=r*U,f+=r*Q,p+=r*Y,y+=r*W,m+=r*F,g+=r*V,v+=r*H,w+=r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*B,b+=r*R,M+=r*U,A+=r*Q,I+=r*Y,N+=r*W,E+=r*F,x+=r*V,k+=r*H,T+=r*G,L+=r*q,S+=r*Z,j+=r*J,C+=r*X,r=e[13],v+=r*P,w+=r*_,b+=r*B,M+=r*R,A+=r*U,I+=r*Q,N+=r*Y,E+=r*W,x+=r*F,k+=r*V,T+=r*H,L+=r*G,S+=r*q,j+=r*Z,C+=r*J,D+=r*X,r=e[14],w+=r*P,b+=r*_,M+=r*B,A+=r*R,I+=r*U,N+=r*Q,E+=r*Y,x+=r*W,k+=r*F,T+=r*V,L+=r*H,S+=r*G,j+=r*q,C+=r*Z,D+=r*J,O+=r*X,r=e[15],b+=r*P,M+=r*_,A+=r*B,I+=r*R,N+=r*U,E+=r*Q,x+=r*Y,k+=r*W,T+=r*F,L+=r*V,S+=r*H,j+=r*G,C+=r*q,D+=r*Z,O+=r*J,z+=r*X,o+=38*M,a+=38*A,s+=38*I,u+=38*N,c+=38*E,l+=38*x,h+=38*k,d+=38*T,f+=38*L,p+=38*S,y+=38*j,m+=38*C,g+=38*D,v+=38*O,w+=38*z,i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,o+=i-1+37*(i-1),i=1,r=o+i+65535,i=Math.floor(r/65536),o=r-65536*i,r=a+i+65535,i=Math.floor(r/65536),a=r-65536*i,r=s+i+65535,i=Math.floor(r/65536),s=r-65536*i,r=u+i+65535,i=Math.floor(r/65536),u=r-65536*i,r=c+i+65535,i=Math.floor(r/65536),c=r-65536*i,r=l+i+65535,i=Math.floor(r/65536),l=r-65536*i,r=h+i+65535,i=Math.floor(r/65536),h=r-65536*i,r=d+i+65535,i=Math.floor(r/65536),d=r-65536*i,r=f+i+65535,i=Math.floor(r/65536),f=r-65536*i,r=p+i+65535,i=Math.floor(r/65536),p=r-65536*i,r=y+i+65535,i=Math.floor(r/65536),y=r-65536*i,r=m+i+65535,i=Math.floor(r/65536),m=r-65536*i,r=g+i+65535,i=Math.floor(r/65536),g=r-65536*i,r=v+i+65535,i=Math.floor(r/65536),v=r-65536*i,r=w+i+65535,i=Math.floor(r/65536),w=r-65536*i,r=b+i+65535,i=Math.floor(r/65536),b=r-65536*i,o+=i-1+37*(i-1),t[0]=o,t[1]=a,t[2]=s,t[3]=u,t[4]=c,t[5]=l,t[6]=h,t[7]=d,t[8]=f,t[9]=p,t[10]=y,t[11]=m,t[12]=g,t[13]=v,t[14]=w,t[15]=b}function N(t,e){I(t,e,e)}function E(t,e){const n=a();let r;for(r=0;r<16;r++)n[r]=e[r];for(r=253;r>=0;r--)N(n,n),2!==r&&4!==r&&I(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}function x(t,e){const n=a(),r=a(),i=a(),o=a(),s=a(),u=a(),c=a(),h=a(),d=a();A(n,t[1],t[0]),A(d,e[1],e[0]),I(n,n,d),M(r,t[0],t[1]),M(d,e[0],e[1]),I(r,r,d),I(i,t[3],e[3]),I(i,i,l),I(o,t[2],e[2]),M(o,o,o),A(s,r,n),A(u,o,i),M(c,o,i),M(h,r,n),I(t[0],s,u),I(t[1],h,c),I(t[2],c,u),I(t[3],s,h)}function k(t,e,n){for(let r=0;r<4;r++)m(t[r],e[r],n)}function T(t,e){const n=a(),r=a(),i=a();E(i,e[2]),I(n,e[0],i),I(r,e[1],i),g(t,r),t[31]^=b(n)<<7}function L(t,e,n){p(t[0],s),p(t[1],u),p(t[2],u),p(t[3],s);for(let r=255;r>=0;--r){const i=n[r/8|0]>>(7&r)&1;k(t,e,i),x(e,t),x(t,t),k(t,e,i)}}function S(t,e){const n=[a(),a(),a(),a()];p(n[0],h),p(n[1],d),p(n[2],u),I(n[3],h,d),L(t,n,e)}function j(t){if(t.length!==e.SEED_LENGTH)throw new Error(`ed25519: seed must be ${e.SEED_LENGTH} bytes`);const n=(0,i.hash)(t);n[0]&=248,n[31]&=127,n[31]|=64;const r=new Uint8Array(32),o=[a(),a(),a(),a()];S(o,n),T(r,o);const s=new Uint8Array(64);return s.set(t),s.set(r,32),{publicKey:r,secretKey:s}}e.generateKeyPairFromSeed=j,e.generateKeyPair=function(t){const e=(0,r.randomBytes)(32,t),n=j(e);return(0,o.wipe)(e),n},e.extractPublicKeyFromSecretKey=function(t){if(t.length!==e.SECRET_KEY_LENGTH)throw new Error(`ed25519: secret key must be ${e.SECRET_KEY_LENGTH} bytes`);return new Uint8Array(t.subarray(32))};const C=new Float64Array([237,211,245,92,26,99,18,88,214,156,247,162,222,249,222,20,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16]);function D(t,e){let n,r,i,o;for(r=63;r>=32;--r){for(n=0,i=r-32,o=r-12;i>4)*C[i],n=e[i]>>8,e[i]&=255;for(i=0;i<32;i++)e[i]-=n*C[i];for(r=0;r<32;r++)e[r+1]+=e[r]>>8,t[r]=255&e[r]}function O(t){const e=new Float64Array(64);for(let n=0;n<64;n++)e[n]=t[n];for(let e=0;e<64;e++)t[e]=0;D(t,e)}function z(t,e){const n=a(),r=a(),i=a(),o=a(),l=a(),h=a(),d=a();return p(t[2],u),function(t,e){for(let n=0;n<16;n++)t[n]=e[2*n]+(e[2*n+1]<<8);t[15]&=32767}(t[1],e),N(i,t[1]),I(o,i,c),A(i,i,t[2]),M(o,t[2],o),N(l,o),N(h,l),I(d,h,l),I(n,d,i),I(n,n,o),function(t,e){const n=a();let r;for(r=0;r<16;r++)n[r]=e[r];for(r=250;r>=0;r--)N(n,n),1!==r&&I(n,n,e);for(r=0;r<16;r++)t[r]=n[r]}(n,n),I(n,n,i),I(n,n,o),I(n,n,o),I(t[0],n,o),N(r,t[0]),I(r,r,o),w(r,i)&&I(t[0],t[0],f),N(r,t[0]),I(r,r,o),w(r,i)?-1:(b(t[0])===e[31]>>7&&A(t[0],s,t[0]),I(t[3],t[0],t[1]),0)}e.sign=function(t,e){const n=new Float64Array(64),r=[a(),a(),a(),a()],o=(0,i.hash)(t.subarray(0,32));o[0]&=248,o[31]&=127,o[31]|=64;const s=new Uint8Array(64);s.set(o.subarray(32),32);const u=new i.SHA512;u.update(s.subarray(32)),u.update(e);const c=u.digest();u.clean(),O(c),S(r,c),T(s,r),u.reset(),u.update(s.subarray(0,32)),u.update(t.subarray(32)),u.update(e);const l=u.digest();O(l);for(let t=0;t<32;t++)n[t]=c[t];for(let t=0;t<32;t++)for(let e=0;e<32;e++)n[t+e]+=l[t]*o[e];return D(s.subarray(32),n),s},e.verify=function(t,n,r){const o=new Uint8Array(32),s=[a(),a(),a(),a()],u=[a(),a(),a(),a()];if(r.length!==e.SIGNATURE_LENGTH)throw new Error(`ed25519: signature must be ${e.SIGNATURE_LENGTH} bytes`);if(z(u,t))return!1;const c=new i.SHA512;c.update(r.subarray(0,32)),c.update(t),c.update(n);const l=c.digest();return O(l),L(s,u,l),S(u,r.subarray(32)),x(s,u),T(o,s),!v(r,o)},e.convertPublicKeyToX25519=function(t){let e=[a(),a(),a(),a()];if(z(e,t))throw new Error("Ed25519: invalid public key");let n=a(),r=a(),i=e[1];M(n,u,i),A(r,u,i),E(r,r),I(n,n,r);let o=new Uint8Array(32);return g(o,n),o},e.convertSecretKeyToX25519=function(t){const e=(0,i.hash)(t.subarray(0,32));e[0]&=248,e[31]&=127,e[31]|=64;const n=new Uint8Array(e.subarray(0,32));return(0,o.wipe)(e),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),i=n(12);e.DIGEST_LENGTH=32,e.BLOCK_SIZE=64;var o=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._state=new Int32Array(8),this._temp=new Int32Array(64),this._buffer=new Uint8Array(128),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._state[0]=1779033703,this._state[1]=3144134277,this._state[2]=1013904242,this._state[3]=2773480762,this._state[4]=1359893119,this._state[5]=2600822924,this._state[6]=528734635,this._state[7]=1541459225},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._temp),this.reset()},t.prototype.update=function(t,e){if(void 0===e&&(e=t.length),this._finished)throw new Error("SHA256: can't update because hash was finished.");var n=0;if(this._bytesHashed+=e,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[n++],e--;this._bufferLength===this.blockSize&&(s(this._temp,this._state,this._buffer,0,this.blockSize),this._bufferLength=0)}for(e>=this.blockSize&&(n=s(this._temp,this._state,t,n,e),e%=this.blockSize);e>0;)this._buffer[this._bufferLength++]=t[n++],e--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,i=e/536870912|0,o=e<<3,a=e%64<56?64:128;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._state.set(t.state),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.state),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA256=o;var a=new Int32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]);function s(t,e,n,i,o){for(;o>=64;){for(var s=e[0],u=e[1],c=e[2],l=e[3],h=e[4],d=e[5],f=e[6],p=e[7],y=0;y<16;y++){var m=i+4*y;t[y]=r.readUint32BE(n,m)}for(y=16;y<64;y++){var g=t[y-2],v=(g>>>17|g<<15)^(g>>>19|g<<13)^g>>>10,w=((g=t[y-15])>>>7|g<<25)^(g>>>18|g<<14)^g>>>3;t[y]=(v+t[y-7]|0)+(w+t[y-16]|0)}for(y=0;y<64;y++)v=(((h>>>6|h<<26)^(h>>>11|h<<21)^(h>>>25|h<<7))+(h&d^~h&f)|0)+(p+(a[y]+t[y]|0)|0)|0,w=((s>>>2|s<<30)^(s>>>13|s<<19)^(s>>>22|s<<10))+(s&u^s&c^u&c)|0,p=f,f=d,d=h,h=l+v|0,l=c,c=u,u=s,s=v+w|0;e[0]+=s,e[1]+=u,e[2]+=c,e[3]+=l,e[4]+=h,e[5]+=d,e[6]+=f,e[7]+=p,i+=64,o-=64}return i}e.hash=function(t){var e=new o;e.update(t);var n=e.digest();return e.clean(),n}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(34);e.alloc=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.alloc?r.asUint8Array(globalThis.Buffer.alloc(t)):new Uint8Array(t)},e.allocUnsafe=function(t=0){return null!=globalThis.Buffer&&null!=globalThis.Buffer.allocUnsafe?r.asUint8Array(globalThis.Buffer.allocUnsafe(t)):new Uint8Array(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(29);class i{constructor(t,e,n){this.name=t,this.code=e,this.encode=n}digest(t){if(t instanceof Uint8Array){const e=this.encode(t);return e instanceof Uint8Array?r.create(this.code,e):e.then((t=>r.create(this.code,t)))}throw Error("Unknown type, must be binary type")}}e.Hasher=i,e.from=({name:t,code:e,encode:n})=>new i(t,e,n)},function(t,e,n){function r(t,e){if(t.length!==e.length)return 0;for(var n=0,r=0;r>>8}Object.defineProperty(e,"__esModule",{value:!0}),e.select=function(t,e,n){return~(t-1)&e|t-1&n},e.lessOrEqual=function(t,e){return(0|t)-(0|e)-1>>>31&1},e.compare=r,e.equal=function(t,e){return 0!==t.length&&0!==e.length&&0!==r(t,e)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(39),i=n(34);e.concat=function(t,e){e||(e=t.reduce(((t,e)=>t+e.length),0));const n=r.allocUnsafe(e);let o=0;for(const e of t)n.set(e,o),o+=e.length;return i.asUint8Array(n)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(124),i=n(125),o=n(12),a=n(28),s=n(41);e.KEY_LENGTH=32,e.NONCE_LENGTH=12,e.TAG_LENGTH=16;var u=new Uint8Array(16),c=function(){function t(t){if(this.nonceLength=e.NONCE_LENGTH,this.tagLength=e.TAG_LENGTH,t.length!==e.KEY_LENGTH)throw new Error("ChaCha20Poly1305 needs 32-byte key");this._key=new Uint8Array(t)}return t.prototype.seal=function(t,e,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");var a=new Uint8Array(16);a.set(t,a.length-t.length);var s=new Uint8Array(32);r.stream(this._key,a,s,4);var u,c=e.length+this.tagLength;if(i){if(i.length!==c)throw new Error("ChaCha20Poly1305: incorrect destination length");u=i}else u=new Uint8Array(c);return r.streamXOR(this._key,a,e,u,4),this._authenticate(u.subarray(u.length-this.tagLength,u.length),s,u.subarray(0,u.length-this.tagLength),n),o.wipe(a),u},t.prototype.open=function(t,e,n,i){if(t.length>16)throw new Error("ChaCha20Poly1305: incorrect nonce length");if(e.length0&&s.update(u.subarray(r.length%16))),s.update(n),n.length%16>0&&s.update(u.subarray(n.length%16));var c=new Uint8Array(8);r&&a.writeUint64LE(r.length,c),s.update(c),a.writeUint64LE(n.length,c),s.update(c);for(var l=s.digest(),h=0;h=0;--t){const e=n[t>>>3]>>>(7&t)&1;c(i,a,e),c(p,y,e),l(m,i,p),h(i,i,p),l(p,a,y),h(a,a,y),f(y,m),f(g,i),d(i,p,i),d(p,a,m),l(m,i,p),h(i,i,p),f(a,i),h(p,y,g),d(i,p,s),l(i,i,y),d(p,p,i),d(i,y,g),d(y,a,r),f(a,m),c(i,a,e),c(p,y,e)}for(let t=0;t<16;t++)r[t+16]=i[t],r[t+32]=p[t],r[t+48]=a[t],r[t+64]=y[t];const v=r.subarray(32),w=r.subarray(16);!function(t,e){const n=o();for(let t=0;t<16;t++)n[t]=e[t];for(let t=253;t>=0;t--)f(n,n),2!==t&&4!==t&&d(n,n,e);for(let e=0;e<16;e++)t[e]=n[e]}(v,v),d(w,w,v);const b=new Uint8Array(32);return function(t,e){const n=o(),r=o();for(let t=0;t<16;t++)r[t]=e[t];u(r),u(r),u(r);for(let t=0;t<2;t++){n[0]=r[0]-65517;for(let t=1;t<15;t++)n[t]=r[t]-65535-(n[t-1]>>16&1),n[t-1]&=65535;n[15]=r[15]-32767-(n[14]>>16&1);const t=n[15]>>16&1;n[14]&=65535,c(r,n,1-t)}for(let e=0;e<16;e++)t[2*e]=255&r[e],t[2*e+1]=r[e]>>8}(b,w),b}function y(t){return p(t,a)}function m(t){if(t.length!==e.SECRET_KEY_LENGTH)throw new Error(`x25519: seed must be ${e.SECRET_KEY_LENGTH} bytes`);const n=new Uint8Array(t);return{publicKey:y(n),secretKey:n}}e.scalarMult=p,e.scalarMultBase=y,e.generateKeyPairFromSeed=m,e.generateKeyPair=function(t){const e=(0,r.randomBytes)(32,t),n=m(e);return(0,i.wipe)(e),n},e.sharedKey=function(t,n,r=!1){if(t.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect secret key length");if(n.length!==e.PUBLIC_KEY_LENGTH)throw new Error("X25519: incorrect public key length");const i=p(t,n);if(r){let t=0;for(let e=0;e=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}var l=function(t,e,n){return new Promise((function(r,i){var o=function(t){try{s(n.next(t))}catch(t){i(t)}},a=function(t){try{s(n.throw(t))}catch(t){i(t)}},s=function(t){return t.done?r(t.value):Promise.resolve(t.value).then(o,a)};s((n=n.apply(t,e)).next())}))};function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Object(i.randomBytes)(a.j);return r.generateKeyPairFromSeed(t)}function d(t,e,n,i){return l(this,arguments,(function(t,e,n,i){var u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:Object(o.fromMiliseconds)(Date.now());return c().mark((function o(){var l,h,d,f,p;return c().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return l={alg:a.h,typ:a.i},h=Object(s.d)(i.publicKey),d={iss:h,sub:t,aud:e,iat:u,exp:u+n},f=Object(s.c)({header:l,payload:d}),p=r.sign(i.secretKey,f),o.abrupt("return",Object(s.e)({header:l,payload:d,signature:p}));case 7:case"end":return o.stop()}}),o)}))()}))}},function(t,e,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=n(93),c=n(39);function l(t,e,n,r){return{name:t,prefix:e,encoder:{name:t,prefix:e,encode:n},decoder:{decode:r}}}const h=l("utf8","u",(t=>"u"+new TextDecoder("utf8").decode(t)),(t=>(new TextEncoder).encode(t.substring(1)))),d=l("ascii","a",(t=>{let e="a";for(let n=0;n{t=t.substring(1);const e=c.allocUnsafe(t.length);for(let n=0;n{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t})({utf8:h,"utf-8":h,hex:u.bases.base16,latin1:d,ascii:d,binary:d},u.bases);t.exports=f},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);const i=r.rfc4648({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),o=r.rfc4648({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),a=r.rfc4648({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),s=r.rfc4648({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),u=r.rfc4648({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),c=r.rfc4648({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),l=r.rfc4648({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),h=r.rfc4648({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),d=r.rfc4648({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});e.base32=i,e.base32hex=u,e.base32hexpad=l,e.base32hexpadupper=h,e.base32hexupper=c,e.base32pad=a,e.base32padupper=s,e.base32upper=o,e.base32z=d},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14);const i=r.baseX({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),o=r.baseX({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});e.base58btc=i,e.base58flickr=o},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(35),i=n(29),o=n(51),a=n(50),s=n(18);class u{constructor(t,e,n,r){this.code=e,this.version=t,this.multihash=n,this.bytes=r,this.byteOffset=r.byteOffset,this.byteLength=r.byteLength,this.asCID=this,this._baseCache=new Map,Object.defineProperties(this,{byteOffset:g,byteLength:g,code:m,version:m,multihash:m,bytes:m,_baseCache:g,asCID:g})}toV0(){switch(this.version){case 0:return this;default:{const{code:t,multihash:e}=this;if(t!==d)throw new Error("Cannot convert a non dag-pb CID to CIDv0");if(e.code!==f)throw new Error("Cannot convert non sha2-256 multihash CID to CIDv0");return u.createV0(e)}}}toV1(){switch(this.version){case 0:{const{code:t,digest:e}=this.multihash,n=i.create(t,e);return u.createV1(this.code,n)}case 1:return this;default:throw Error(`Can not convert CID version ${this.version} to version 0. This is a bug please report`)}}equals(t){return t&&this.code===t.code&&this.version===t.version&&i.equals(this.multihash,t.multihash)}toString(t){const{bytes:e,version:n,_baseCache:r}=this;switch(n){case 0:return l(e,r,t||o.base58btc.encoder);default:return h(e,r,t||a.base32.encoder)}}toJSON(){return{code:this.code,version:this.version,hash:this.multihash.bytes}}get[Symbol.toStringTag](){return"CID"}[Symbol.for("nodejs.util.inspect.custom")](){return"CID("+this.toString()+")"}static isCID(t){return v(/^0\.0/,w),!(!t||!t[y]&&t.asCID!==t)}get toBaseEncodedString(){throw new Error("Deprecated, use .toString()")}get codec(){throw new Error('"codec" property is deprecated, use integer "code" property instead')}get buffer(){throw new Error("Deprecated .buffer property, use .bytes to get Uint8Array instead")}get multibaseName(){throw new Error('"multibaseName" property is deprecated')}get prefix(){throw new Error('"prefix" property is deprecated')}static asCID(t){if(t instanceof u)return t;if(null!=t&&t.asCID===t){const{version:e,code:n,multihash:r,bytes:i}=t;return new u(e,n,r,i||p(e,n,r.bytes))}if(null!=t&&!0===t[y]){const{version:e,multihash:n,code:r}=t,o=i.decode(n);return u.create(e,r,o)}return null}static create(t,e,n){if("number"!=typeof e)throw new Error("String codecs are no longer supported");switch(t){case 0:if(e!==d)throw new Error(`Version 0 CID must use dag-pb (code: ${d}) block encoding`);return new u(t,e,n,n.bytes);case 1:{const r=p(t,e,n.bytes);return new u(t,e,n,r)}default:throw new Error("Invalid version")}}static createV0(t){return u.create(0,d,t)}static createV1(t,e){return u.create(1,t,e)}static decode(t){const[e,n]=u.decodeFirst(t);if(n.length)throw new Error("Incorrect length");return e}static decodeFirst(t){const e=u.inspectBytes(t),n=e.size-e.multihashSize,r=s.coerce(t.subarray(n,n+e.multihashSize));if(r.byteLength!==e.multihashSize)throw new Error("Incorrect length");const o=r.subarray(e.multihashSize-e.digestSize),a=new i.Digest(e.multihashCode,e.digestSize,o,r);return[0===e.version?u.createV0(a):u.createV1(e.codec,a),t.subarray(e.size)]}static inspectBytes(t){let e=0;const n=()=>{const[n,i]=r.decode(t.subarray(e));return e+=i,n};let i=n(),o=d;if(18===i?(i=0,e=0):1===i&&(o=n()),0!==i&&1!==i)throw new RangeError("Invalid CID version "+i);const a=e,s=n(),u=n(),c=e+u;return{version:i,codec:o,multihashCode:s,digestSize:u,multihashSize:c-a,size:c}}static parse(t,e){const[n,r]=c(t,e),i=u.decode(r);return i._baseCache.set(n,t),i}}const c=(t,e)=>{switch(t[0]){case"Q":{const n=e||o.base58btc;return[o.base58btc.prefix,n.decode(`${o.base58btc.prefix}${t}`)]}case o.base58btc.prefix:{const n=e||o.base58btc;return[o.base58btc.prefix,n.decode(t)]}case a.base32.prefix:{const n=e||a.base32;return[a.base32.prefix,n.decode(t)]}default:if(null==e)throw Error("To parse non base32 or base58btc encoded CID multibase decoder must be provided");return[t[0],e.decode(t)]}},l=(t,e,n)=>{const{prefix:r}=n;if(r!==o.base58btc.prefix)throw Error(`Cannot string encode V0 in ${n.name} encoding`);const i=e.get(r);if(null==i){const i=n.encode(t).slice(1);return e.set(r,i),i}return i},h=(t,e,n)=>{const{prefix:r}=n,i=e.get(r);if(null==i){const i=n.encode(t);return e.set(r,i),i}return i},d=112,f=18,p=(t,e,n)=>{const i=r.encodingLength(t),o=i+r.encodingLength(e),a=new Uint8Array(o+n.byteLength);return r.encodeTo(t,a,0),r.encodeTo(e,a,i),a.set(n,o),a},y=Symbol.for("@ipld/js-cid/CID"),m={writable:!1,configurable:!1,enumerable:!0},g={writable:!1,enumerable:!1,configurable:!1},v=(t,e)=>{if(!t.test("0.0.0-dev"))throw new Error(e);console.warn(e)},w="CID.isCID(v) is deprecated and will be removed in the next major release.\nFollowing code pattern:\n\nif (CID.isCID(value)) {\n doSomethingWithCID(value)\n}\n\nIs replaced with:\n\nconst cid = CID.asCID(value)\nif (cid) {\n // Make sure to use cid instead of value\n doSomethingWithCID(cid)\n}\n";e.CID=u},function(t,e){},function(t,e,n){var r=n(36);n.o(r,"IJsonRpcProvider")&&n.d(e,"IJsonRpcProvider",(function(){return r.IJsonRpcProvider})),n.o(r,"formatJsonRpcError")&&n.d(e,"formatJsonRpcError",(function(){return r.formatJsonRpcError})),n.o(r,"formatJsonRpcRequest")&&n.d(e,"formatJsonRpcRequest",(function(){return r.formatJsonRpcRequest})),n.o(r,"formatJsonRpcResult")&&n.d(e,"formatJsonRpcResult",(function(){return r.formatJsonRpcResult})),n.o(r,"getBigIntRpcId")&&n.d(e,"getBigIntRpcId",(function(){return r.getBigIntRpcId})),n.o(r,"isJsonRpcError")&&n.d(e,"isJsonRpcError",(function(){return r.isJsonRpcError})),n.o(r,"isJsonRpcRequest")&&n.d(e,"isJsonRpcRequest",(function(){return r.isJsonRpcRequest})),n.o(r,"isJsonRpcResponse")&&n.d(e,"isJsonRpcResponse",(function(){return r.isJsonRpcResponse})),n.o(r,"isJsonRpcResult")&&n.d(e,"isJsonRpcResult",(function(){return r.isJsonRpcResult})),n.o(r,"isLocalhostUrl")&&n.d(e,"isLocalhostUrl",(function(){return r.isLocalhostUrl})),n.o(r,"isReactNative")&&n.d(e,"isReactNative",(function(){return r.isReactNative})),n.o(r,"isWsUrl")&&n.d(e,"isWsUrl",(function(){return r.isWsUrl})),n.o(r,"payloadId")&&n.d(e,"payloadId",(function(){return r.payloadId})),r.isNode},function(t,e,n){n.d(e,"e",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return u})),n.d(e,"a",(function(){return c}));var r=n(25),i=n(7);function o(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:3,e=Date.now()*Math.pow(10,t),n=Math.floor(Math.random()*Math.pow(10,t));return e+n}function a(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:6;return BigInt(o(t))}function s(t,e,n){return{id:n||o(),jsonrpc:"2.0",method:t,params:e}}function u(t,e){return{id:t,jsonrpc:"2.0",result:e}}function c(t,e,n){return{id:t,jsonrpc:"2.0",error:l(e,n)}}function l(t,e){return void 0===t?Object(r.a)(i.b):("string"==typeof t&&(t=Object.assign(Object.assign({},Object(r.a)(i.d)),{message:t})),void 0!==e&&(t.data=e),Object(r.c)(t.code)&&(t=Object(r.b)(t.code)),t)}},function(t,e,n){},function(t,e,n){function r(t){return function(t,e){var n=function(t){var e=t.match(new RegExp(/^\w+:/,"gi"));if(e&&e.length)return e[0]}(t);return void 0!==n&&new RegExp(e).test(n)}(t,"^wss?:")}function i(t){return new RegExp("wss?://localhost(:d{2,5})?").test(t)}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return"object"===r(t)&&"id"in t&&"jsonrpc"in t&&"2.0"===t.jsonrpc}function o(t){return i(t)&&"method"in t}function a(t){return i(t)&&(s(t)||u(t))}function s(t){return"result"in t}function u(t){return"error"in t}n.d(e,"b",(function(){return o})),n.d(e,"c",(function(){return a})),n.d(e,"d",(function(){return s})),n.d(e,"a",(function(){return u}))},function(t,e,n){n.r(e),e.default=function(t,e){return e=e||{},new Promise((function(n,r){var i=new XMLHttpRequest,o=[],a=[],s={},u=function(){return{ok:2==(i.status/100|0),statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(i.responseText).then(JSON.parse)},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:u,headers:{keys:function(){return o},entries:function(){return a},get:function(t){return s[t.toLowerCase()]},has:function(t){return t.toLowerCase()in s}}}};for(var c in i.open(e.method||"get",t,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,(function(t,e,n){o.push(e=e.toLowerCase()),a.push([e,n]),s[e]=s[e]?s[e]+","+n:n})),n(u())},i.onerror=r,i.withCredentials="include"==e.credentials,e.headers)i.setRequestHeader(c,e.headers[c]);i.send(e.body||null)}))}},function(t,e){},function(t,e,n){n(10),n(13)},function(t,e,n){n.d(e,"a",(function(){return r}));var r={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe"}}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){for(var n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function h(t){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var d=function(t,e,n){return new Promise((function(r,i){var o=function(t){try{s(n.next(t))}catch(t){i(t)}},a=function(t){try{s(n.throw(t))}catch(t){i(t)}},s=function(t){return t.done?r(t.value):Promise.resolve(t.value).then(o,a)};s((n=n.apply(t,e)).next())}))},f="idb-keyval",p=function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.base&&e.base.length>0?"".concat(e.base,":"):"",r=function(t){return n+t};return e.dbName&&e.storeName&&(t=Object(i.b)(e.dbName,e.storeName)),{name:f,options:e,hasItem:function(e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=h,n.next=3,Object(i.d)(r(e),t);case 3:return n.t1=n.sent,n.t2=(0,n.t0)(n.t1),n.abrupt("return",!(n.t2>"u"));case 6:case"end":return n.stop()}}),n)})))},getItem:function(e){return d(this,null,l().mark((function n(){var o;return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Object(i.d)(r(e),t);case 2:if(n.t0=o=n.sent,null==n.t0){n.next=7;break}n.t1=o,n.next=8;break;case 7:n.t1=null;case 8:return n.abrupt("return",n.t1);case 9:case"end":return n.stop()}}),n)})))},setItem:function(e,n){return Object(i.f)(r(e),n,t)},removeItem:function(e){return Object(i.c)(r(e),t)},getKeys:function(){return Object(i.e)(t)},clear:function(){return Object(i.a)(t)}}},y=u((function t(){a(this,t),this.indexedDb=Object(r.a)({driver:p({dbName:"WALLET_CONNECT_V2_INDEXED_DB",storeName:"keyvaluestorage"})})}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",this.indexedDb.getKeys());case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.t0=this.indexedDb,t.next=3,this.indexedDb.getKeys();case 3:return t.t1=t.sent,t.next=6,t.t0.getItems.call(t.t0,t.t1);case 6:return t.abrupt("return",t.sent.map((function(t){return[t.key,t.value]})));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.indexedDb.getItem(t);case 2:if(null===(n=e.sent)){e.next=5;break}return e.abrupt("return",n);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.indexedDb.setItem(t,Object(o.b)(e));case 2:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.indexedDb.removeItem(t);case 2:case"end":return e.stop()}}),e,this)})))}}]),m=("undefined"==typeof globalThis?"undefined":h(globalThis))<"u"?globalThis:("undefined"==typeof window?"undefined":h(window))<"u"?window:(void 0===t?"undefined":h(t))<"u"?t:("undefined"==typeof self?"undefined":h(self))<"u"?self:{},g={exports:{}};function v(t){var e;return[t[0],Object(o.a)(null!=(e=t[1])?e:"")]}!function(){var t;function e(){}(t=e).prototype.getItem=function(t){return this.hasOwnProperty(t)?String(this[t]):null},t.prototype.setItem=function(t,e){this[t]=String(e)},t.prototype.removeItem=function(t){delete this[t]},t.prototype.clear=function(){var t=this;Object.keys(t).forEach((function(e){t[e]=void 0,delete t[e]}))},t.prototype.key=function(t){return t=t||0,Object.keys(this)[t]},t.prototype.__defineGetter__("length",(function(){return Object.keys(this).length})),h(m)<"u"&&m.localStorage?g.exports=m.localStorage:("undefined"==typeof window?"undefined":h(window))<"u"&&window.localStorage?g.exports=window.localStorage:g.exports=new e}();var w=u((function t(){a(this,t),this.localStorage=g.exports}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object.keys(this.localStorage));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object.entries(this.localStorage).map(v));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null===(n=this.localStorage.getItem(t))){e.next=3;break}return e.abrupt("return",Object(o.a)(n));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:this.localStorage.setItem(t,Object(o.b)(e));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:this.localStorage.removeItem(t);case 1:case"end":return e.stop()}}),e,this)})))}}]),b=function(t,e){return d(void 0,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.length&&e.forEach((function(e){return d(void 0,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.removeItem(e);case 2:case"end":return n.stop()}}),n)})))}));case 1:case"end":return n.stop()}}),n)})))},M=u((function t(){var e=this;a(this,t),this.initialized=!1,this.setInitialized=function(t){e.storage=t,e.initialized=!0};var n=new w;this.storage=n;try{!function(t,e,n){d(void 0,null,l().mark((function r(){var i,o,a,s,u,c,h;return l().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return i="wc_storage_version",r.next=3,e.getItem(i);case 3:if(!((o=r.sent)&&o>=1)){r.next=7;break}return n(e),r.abrupt("return");case 7:return r.next=9,t.getKeys();case 9:if((a=r.sent).length){r.next=13;break}return n(e),r.abrupt("return");case 13:s=[];case 14:if(!a.length){r.next=28;break}if(u=a.shift()){r.next=18;break}return r.abrupt("continue",26);case 18:if(!((c=u.toLowerCase()).includes("wc@")||c.includes("walletconnect")||c.includes("wc_")||c.includes("wallet_connect"))){r.next=26;break}return r.next=22,t.getItem(u);case 22:return h=r.sent,r.next=25,e.setItem(u,h);case 25:s.push(u);case 26:r.next=14;break;case 28:return r.next=30,e.setItem(i,1);case 30:n(e),b(t,s);case 32:case"end":return r.stop()}}),r)})))}(n,new y,this.setInitialized)}catch(t){this.initialized=!0}}),[{key:"getKeys",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initialize();case 2:return t.abrupt("return",this.storage.getKeys());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getEntries",value:function(){return d(this,null,l().mark((function t(){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.initialize();case 2:return t.abrupt("return",this.storage.getEntries());case 3:case"end":return t.stop()}}),t,this)})))}},{key:"getItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:return e.abrupt("return",this.storage.getItem(t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"setItem",value:function(t,e){return d(this,null,l().mark((function n(){return l().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.initialize();case 2:return n.abrupt("return",this.storage.setItem(t,e));case 3:case"end":return n.stop()}}),n,this)})))}},{key:"removeItem",value:function(t){return d(this,null,l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.initialize();case 2:return e.abrupt("return",this.storage.removeItem(t));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"initialize",value:function(){return d(this,null,l().mark((function t(){var e=this;return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this.initialized,t.t0){t.next=4;break}return t.next=4,new Promise((function(t){var n=setInterval((function(){e.initialized&&(clearInterval(n),t())}),20)}));case 4:case"end":return t.stop()}}),t,this)})))}}])}).call(this,n(26))},function(t,e,n){(function(t){n.d(e,"a",(function(){return p}));var r=n(6),i=n(8),o=n(2);function a(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */a=function(){return e};var t,e={},n=Object.prototype,r=n.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",l=o.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var o=e&&e.prototype instanceof v?e:v,a=Object.create(o.prototype),s=new j(r||[]);return i(a,"_invoke",{value:k(t,n,s)}),a}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",y="executing",m="completed",g={};function v(){}function w(){}function b(){}var M={};h(M,s,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(C([])));I&&I!==n&&r.call(I,s)&&(M=I);var N=b.prototype=v.prototype=Object.create(M);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,o,a,s){var u=f(t[i],t,o);if("throw"!==u.type){var l=u.arg,h=l.value;return h&&"object"==c(h)&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){l.value=t,a(l)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var o;i(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,i){n(t,r,e,i)}))}return o=o?o.then(i,i):i()}})}function k(e,n,r){var i=p;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?m:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[s];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,o=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.url;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.register(e);case 2:case"end":return n.stop()}}),n)}))()}))}},{key:"close",value:function(){return l(this,null,a().mark((function t(){var e=this;return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise((function(t,n){c(e.socket)>"u"?n(new Error("Connection already closed")):(e.socket.onclose=function(n){e.onClose(n),t()},e.socket.close())})));case 1:case"end":return t.stop()}}),t)})))}},{key:"send",value:function(t){return l(this,null,a().mark((function e(){return a().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=c(this.socket)>"u",!e.t0){e.next=5;break}return e.next=4,this.register();case 4:this.socket=e.sent;case 5:try{this.socket.send(Object(i.b)(t))}catch(e){this.onError(t.id,e)}case 6:case"end":return e.stop()}}),e,this)})))}},{key:"register",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.url;if(!Object(o.isWsUrl)(e))throw new Error("Provided URL is not compatible with WebSocket connection: ".concat(e));if(this.registering){var n=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=n||this.events.listenerCount("open")>=n)&&this.events.setMaxListeners(n+1),new Promise((function(e,n){t.events.once("register_error",(function(e){t.resetMaxListeners(),n(e)})),t.events.once("open",(function(){if(t.resetMaxListeners(),c(t.socket)>"u")return n(new Error("WebSocket connection is missing or invalid"));e(t.socket)}))}))}return this.url=e,this.registering=!0,new Promise((function(n,r){var i=new URLSearchParams(e).get("origin"),a=Object(o.isReactNative)()?{headers:{origin:i}}:{rejectUnauthorized:!Object(o.isLocalhostUrl)(e)},s=new f(e,[],a);h()?s.onerror=function(e){var n=e;r(t.emitError(n.error))}:s.on("error",(function(e){r(t.emitError(e))})),s.onopen=function(){t.onOpen(s),n(s)}}))}},{key:"onOpen",value:function(t){var e=this;t.onmessage=function(t){return e.onPayload(t)},t.onclose=function(t){return e.onClose(t)},this.socket=t,this.registering=!1,this.events.emit("open")}},{key:"onClose",value:function(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}},{key:"onPayload",value:function(t){if(!(c(t.data)>"u")){var e="string"==typeof t.data?Object(i.a)(t.data):t.data;this.events.emit("payload",e)}}},{key:"onError",value:function(t,e){var n=this.parseError(e),r=n.message||n.toString(),i=Object(o.formatJsonRpcError)(t,r);this.events.emit("payload",i)}},{key:"parseError",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.url;return Object(o.parseConnectionError)(t,d(e),"WS")}},{key:"resetMaxListeners",value:function(){this.events.getMaxListeners()>10&&this.events.setMaxListeners(10)}},{key:"emitError",value:function(t){var e=this.parseError(new Error((null==t?void 0:t.message)||"WebSocket connection failed for host: ".concat(d(this.url))));return this.events.emit("register_error",e),e}}])&&s(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}()}).call(this,n(26))},function(t,e,n){(function(t,n){var r="[object Arguments]",i="[object Map]",o="[object Object]",a="[object Set]",s=/^\[object .+?Constructor\]$/,u=/^(?:0|[1-9]\d*)$/,c={};c["[object Float32Array]"]=c["[object Float64Array]"]=c["[object Int8Array]"]=c["[object Int16Array]"]=c["[object Int32Array]"]=c["[object Uint8Array]"]=c["[object Uint8ClampedArray]"]=c["[object Uint16Array]"]=c["[object Uint32Array]"]=!0,c[r]=c["[object Array]"]=c["[object ArrayBuffer]"]=c["[object Boolean]"]=c["[object DataView]"]=c["[object Date]"]=c["[object Error]"]=c["[object Function]"]=c[i]=c["[object Number]"]=c[o]=c["[object RegExp]"]=c[a]=c["[object String]"]=c["[object WeakMap]"]=!1;var l="object"==typeof t&&t&&t.Object===Object&&t,h="object"==typeof self&&self&&self.Object===Object&&self,d=l||h||Function("return this")(),f=e&&!e.nodeType&&e,p=f&&"object"==typeof n&&n&&!n.nodeType&&n,y=p&&p.exports===f,m=y&&l.process,g=function(){try{return m&&m.binding&&m.binding("util")}catch(t){}}(),v=g&&g.isTypedArray;function w(t,e){for(var n=-1,r=null==t?0:t.length;++ns))return!1;var c=o.get(t);if(c&&o.get(e))return c==e;var l=-1,h=!0,d=2&n?new ot:void 0;for(o.set(t,e),o.set(e,t);++l-1},rt.prototype.set=function(t,e){var n=this.__data__,r=st(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this},it.prototype.clear=function(){this.size=0,this.__data__={hash:new nt,map:new(F||rt),string:new nt}},it.prototype.delete=function(t){var e=ft(this,t).delete(t);return this.size-=e?1:0,e},it.prototype.get=function(t){return ft(this,t).get(t)},it.prototype.has=function(t){return ft(this,t).has(t)},it.prototype.set=function(t,e){var n=ft(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this},ot.prototype.add=ot.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},ot.prototype.has=function(t){return this.__data__.has(t)},at.prototype.clear=function(){this.__data__=new rt,this.size=0},at.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},at.prototype.get=function(t){return this.__data__.get(t)},at.prototype.has=function(t){return this.__data__.has(t)},at.prototype.set=function(t,e){var n=this.__data__;if(n instanceof rt){var r=n.__data__;if(!F||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new it(r)}return n.set(t,e),this.size=n.size,this};var yt=U?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,r=null==t?0:t.length,i=0,o=[];++n-1&&t%1==0&&t-1&&t%1==0&&t<=9007199254740991}function Et(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}function xt(t){return null!=t&&"object"==typeof t}var kt=v?function(t){return function(e){return t(e)}}(v):function(t){return xt(t)&&Nt(t.length)&&!!c[ut(t)]};function Tt(t){return null!=(e=t)&&Nt(e.length)&&!It(e)?function(t,e){var n=Mt(t),r=!n&&bt(t),i=!n&&!r&&At(t),o=!n&&!r&&!i&&kt(t),a=n||r||i||o,s=a?function(t,e){for(var n=-1,r=Array(t);++n-1){var s=o.getAttribute("href");if(s)if(-1===s.toLowerCase().indexOf("https:")&&-1===s.toLowerCase().indexOf("http:")&&0!==s.indexOf("//")){var u=e.protocol+"//"+e.host;if(0===s.indexOf("/"))u+=s;else{var c=e.pathname.split("/");c.pop(),u+=c.join("/")+"/"+s}r.push(u)}else if(0===s.indexOf("//")){var l=e.protocol+s;r.push(l)}else r.push(s)}}return r}(),name:o}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(126),i=n(12),o=function(){function t(t,e,n,i){void 0===n&&(n=new Uint8Array(0)),this._counter=new Uint8Array(1),this._hash=t,this._info=i;var o=r.hmac(this._hash,n,e);this._hmac=new r.HMAC(t,o),this._buffer=new Uint8Array(this._hmac.digestLength),this._bufpos=this._buffer.length}return t.prototype._fillBuffer=function(){this._counter[0]++;var t=this._counter[0];if(0===t)throw new Error("hkdf: cannot expand more");this._hmac.reset(),t>1&&this._hmac.update(this._buffer),this._info&&this._hmac.update(this._info),this._hmac.update(this._counter),this._hmac.finish(this._buffer),this._bufpos=0},t.prototype.expand=function(t){for(var e=new Uint8Array(t),n=0;n=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function s(t,e){for(var n=0;n0&&void 0!==arguments[0]?arguments[0]:this.connection;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,t.open(e);case 2:case"end":return n.stop()}}),n)}))()}))}},{key:"disconnect",value:function(){return d(this,null,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.close();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"on",value:function(t,e){this.events.on(t,e)}},{key:"once",value:function(t,e){this.events.once(t,e)}},{key:"off",value:function(t,e){this.events.off(t,e)}},{key:"removeListener",value:function(t,e){this.events.removeListener(t,e)}},{key:"request",value:function(t,e){return d(this,null,a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this.requestStrict(Object(i.formatJsonRpcRequest)(t.method,t.params||[],t.id||Object(i.getBigIntRpcId)().toString()),e));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"requestStrict",value:function(t,e){return d(this,null,a().mark((function n(){var r=this;return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",new Promise((function(n,o){return d(r,null,a().mark((function r(){return a().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(this.connection.connected){r.next=9;break}return r.prev=1,r.next=4,this.open();case 4:r.next=9;break;case 6:r.prev=6,r.t0=r.catch(1),o(r.t0);case 9:return this.events.on("".concat(t.id),(function(t){Object(i.isJsonRpcError)(t)?o(t.error):n(t.result)})),r.prev=10,r.next=13,this.connection.send(t,e);case 13:r.next=18;break;case 15:r.prev=15,r.t1=r.catch(10),o(r.t1);case 18:case"end":return r.stop()}}),r,this,[[1,6],[10,15]])})))})));case 1:case"end":return n.stop()}}),n)})))}},{key:"setConnection",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;return t}},{key:"onPayload",value:function(t){this.events.emit("payload",t),Object(i.isJsonRpcResponse)(t)?this.events.emit("".concat(t.id),t):this.events.emit("message",{type:t.method,data:t.params})}},{key:"onClose",value:function(t){t&&3e3===t.code&&this.events.emit("error",new Error("WebSocket connection closed abnormally with code: ".concat(t.code," ").concat(t.reason?"(".concat(t.reason,")"):""))),this.events.emit("disconnect")}},{key:"open",value:function(){return d(this,arguments,(function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.connection;return a().mark((function n(){return a().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(t.connection!==e||!t.connection.connected){n.next=2;break}return n.abrupt("return");case 2:if(t.connection.connected&&t.close(),"string"!=typeof e){n.next=7;break}return n.next=6,t.connection.open(e);case 6:e=t.connection;case 7:return t.connection=t.setConnection(e),n.next=10,t.connection.open();case 10:t.registerEventListeners(),t.events.emit("connect");case 12:case"end":return n.stop()}}),n)}))()}))}},{key:"close",value:function(){return d(this,null,a().mark((function t(){return a().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.connection.close();case 2:case"end":return t.stop()}}),t,this)})))}},{key:"registerEventListeners",value:function(){var t=this;this.hasRegisteredEventListeners||(this.connection.on("payload",(function(e){return t.onPayload(e)})),this.connection.on("close",(function(e){return t.onClose(e)})),this.connection.on("error",(function(e){return t.events.emit("error",e)})),this.connection.on("register_error",(function(e){return t.onClose()})),this.hasRegisteredEventListeners=!0)}}])&&s(n.prototype,o),Object.defineProperty(n,"prototype",{writable:!1}),n;var n,o}(i.IJsonRpcProvider)},function(t,e,n){n.d(e,"a",(function(){return x}));var r=n(30);function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function o(t){return t&&"function"==typeof t.then?t:Promise.resolve(t)}function a(t){try{for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),m}},e}function b(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function M(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){b(o,r,i,a,s,"next",t)}function s(t){b(o,r,i,a,s,"throw",t)}a(void 0)}))}}function A(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=I(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,i=function(){};return{s:i,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function I(t,e){if(t){if("string"==typeof t)return N(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?N(t,e):void 0}}function N(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n0&&void 0!==arguments[0]?arguments[0]:{},e={mounts:{"":t.driver||E()},mountpoints:[""],watching:!1,watchListeners:[],unwatch:{}},n=function(t){var n,r=A(e.mountpoints);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t.startsWith(i))return{base:i,relativeKey:t.slice(i.length),driver:e.mounts[i]}}}catch(t){r.e(t)}finally{r.f()}return{base:"",relativeKey:t,driver:e.mounts[""]}},i=function(t,n){return e.mountpoints.filter((function(e){return e.startsWith(t)||n&&t.startsWith(e)})).map((function(n){return{relativeBase:t.length>n.length?t.slice(n.length):void 0,mountpoint:n,driver:e.mounts[n]}}))},o=function(t,n){if(e.watching){n=h(n);var r,i=A(e.watchListeners);try{for(i.s();!(r=i.n()).done;)(0,r.value)(t,n)}catch(t){i.e(t)}finally{i.f()}}},u=function(){var t=M(w().mark((function t(){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.watching){t.next=2;break}return t.abrupt("return");case 2:e.watching=!0,t.t0=w().keys(e.mounts);case 4:if((t.t1=t.t0()).done){t.next=11;break}return n=t.t1.value,t.next=8,k(e.mounts[n],o,n);case 8:e.unwatch[n]=t.sent,t.next=4;break;case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),y=function(){var t=M(w().mark((function t(){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.watching){t.next=2;break}return t.abrupt("return");case 2:t.t0=w().keys(e.unwatch);case 3:if((t.t1=t.t0()).done){t.next=9;break}return n=t.t1.value,t.next=7,e.unwatch[n]();case 7:t.next=3;break;case 9:e.unwatch={},e.watching=!1;case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),g=function(t,e,r){var i,o=new Map,a=function(t){var e=o.get(t.base);return e||(e={driver:t.driver,base:t.base,items:[]},o.set(t.base,e)),e},s=A(t);try{for(s.s();!(i=s.n()).done;){var u=i.value,c="string"==typeof u,l=h(c?u:u.key),d=c?void 0:u.value,f=c||!u.options?e:m(m({},e),u.options),p=n(l);a(p).items.push({key:l,value:d,relativeKey:p.relativeKey,options:f})}}catch(t){s.e(t)}finally{s.f()}return Promise.all(v(o.values()).map((function(t){return r(t)}))).then((function(t){return t.flat()}))},b={hasItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var r=n(t),i=r.relativeKey,o=r.driver;return a(o.hasItem,i,e)},getItem:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var i=n(t),o=i.relativeKey,s=i.driver;return a(s.getItem,o,e).then((function(t){return r(t)}))},getItems:function(t,e){return g(t,e,(function(t){return t.driver.getItems?a(t.driver.getItems,t.items.map((function(t){return{key:t.relativeKey,options:t.options}})),e).then((function(e){return e.map((function(e){return{key:d(t.base,e.key),value:r(e.value)}}))})):Promise.all(t.items.map((function(e){return a(t.driver.getItem,e.relativeKey,e.options).then((function(t){return{key:e.key,value:r(t)}}))})))}))},getItemRaw:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var r=n(t),i=r.relativeKey,o=r.driver;return o.getItemRaw?a(o.getItemRaw,i,e):a(o.getItem,i,e).then((function(t){return l(t)}))},setItem:function(t,e){var r=arguments;return M(w().mark((function i(){var u,c,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(u=r.length>2&&void 0!==r[2]?r[2]:{},void 0!==e){i.next=3;break}return i.abrupt("return",b.removeItem(t));case 3:if(t=h(t),c=n(t),l=c.relativeKey,(d=c.driver).setItem){i.next=7;break}return i.abrupt("return");case 7:return i.next=9,a(d.setItem,l,s(e),u);case 9:d.watch||o("update",t);case 10:case"end":return i.stop()}}),i)})))()},setItems:function(t,e){return M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,g(t,e,function(){var t=M(w().mark((function t(n){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n.driver.setItems){t.next=2;break}return t.abrupt("return",a(n.driver.setItems,n.items.map((function(t){return{key:t.relativeKey,value:s(t.value),options:t.options}})),e));case 2:if(n.driver.setItem){t.next=4;break}return t.abrupt("return");case 4:return t.next=6,Promise.all(n.items.map((function(t){return a(n.driver.setItem,t.relativeKey,s(t.value),t.options)})));case 6:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 2:case"end":return n.stop()}}),n)})))()},setItemRaw:function(t,e){var r=arguments;return M(w().mark((function i(){var s,u,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(s=r.length>2&&void 0!==r[2]?r[2]:{},void 0!==e){i.next=3;break}return i.abrupt("return",b.removeItem(t,s));case 3:if(t=h(t),u=n(t),l=u.relativeKey,!(d=u.driver).setItemRaw){i.next=10;break}return i.next=8,a(d.setItemRaw,l,e,s);case 8:i.next=16;break;case 10:if(!d.setItem){i.next=15;break}return i.next=13,a(d.setItem,l,c(e),s);case 13:i.next=16;break;case 15:return i.abrupt("return");case 16:d.watch||o("update",t);case 17:case"end":return i.stop()}}),i)})))()},removeItem:function(t){var e=arguments;return M(w().mark((function r(){var i,s,u,c;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("boolean"==typeof(i=e.length>1&&void 0!==e[1]?e[1]:{})&&(i={removeMeta:i}),t=h(t),s=n(t),u=s.relativeKey,(c=s.driver).removeItem){r.next=6;break}return r.abrupt("return");case 6:return r.next=8,a(c.removeItem,u,i);case 8:if(!i.removeMeta&&!i.removeMata){r.next=11;break}return r.next=11,a(c.removeItem,u+"$",i);case 11:c.watch||o("remove",t);case 12:case"end":return r.stop()}}),r)})))()},getMeta:function(t){var e=arguments;return M(w().mark((function i(){var o,s,u,c,l,d;return w().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if("boolean"==typeof(o=e.length>1&&void 0!==e[1]?e[1]:{})&&(o={nativeOnly:o}),t=h(t),s=n(t),u=s.relativeKey,c=s.driver,l=Object.create(null),!c.getMeta){i.next=12;break}return i.t0=Object,i.t1=l,i.next=10,a(c.getMeta,u,o);case 10:i.t2=i.sent,i.t0.assign.call(i.t0,i.t1,i.t2);case 12:if(o.nativeOnly){i.next=17;break}return i.next=15,a(c.getItem,u+"$",o).then((function(t){return r(t)}));case 15:(d=i.sent)&&"object"===p(d)&&("string"==typeof d.atime&&(d.atime=new Date(d.atime)),"string"==typeof d.mtime&&(d.mtime=new Date(d.mtime)),Object.assign(l,d));case 17:return i.abrupt("return",l);case 18:case"end":return i.stop()}}),i)})))()},setMeta:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.setItem(t+"$",e,n)},removeMeta:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.removeItem(t+"$",e)},getKeys:function(t){var e=arguments;return M(w().mark((function n(){var r,o,s,u,c,l,d;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:r=e.length>1&&void 0!==e[1]?e[1]:{},t=f(t),o=i(t,!0),s=[],u=[],c=A(o),n.prev=6,d=w().mark((function t(){var e,n,i;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=l.value,t.next=3,a(e.driver.getKeys,e.relativeBase,r);case 3:n=t.sent,i=n.map((function(t){return e.mountpoint+h(t)})).filter((function(t){return!s.some((function(e){return t.startsWith(e)}))})),u.push.apply(u,v(i)),s=[e.mountpoint].concat(v(s.filter((function(t){return!t.startsWith(e.mountpoint)}))));case 7:case"end":return t.stop()}}),t)})),c.s();case 9:if((l=c.n()).done){n.next=13;break}return n.delegateYield(d(),"t0",11);case 11:n.next=9;break;case 13:n.next=18;break;case 15:n.prev=15,n.t1=n.catch(6),c.e(n.t1);case 18:return n.prev=18,c.f(),n.finish(18);case 21:return n.abrupt("return",t?u.filter((function(e){return e.startsWith(t)&&!e.endsWith("$")})):u.filter((function(t){return!t.endsWith("$")})));case 22:case"end":return n.stop()}}),n,null,[[6,15,18,21]])})))()},clear:function(t){var e=arguments;return M(w().mark((function n(){var r;return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.length>1&&void 0!==e[1]?e[1]:{},t=f(t),n.next=4,Promise.all(i(t,!1).map(function(){var t=M(w().mark((function t(e){var n;return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!e.driver.clear){t.next=2;break}return t.abrupt("return",a(e.driver.clear,e.relativeBase,r));case 2:if(!e.driver.removeItem){t.next=7;break}return t.next=5,e.driver.getKeys(e.relativeBase||"",r);case 5:return n=t.sent,t.abrupt("return",Promise.all(n.map((function(t){return e.driver.removeItem(t,r)}))));case 7:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()));case 4:case"end":return n.stop()}}),n)})))()},dispose:function(){return M(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,Promise.all(Object.values(e.mounts).map((function(t){return T(t)})));case 2:case"end":return t.stop()}}),t)})))()},watch:function(t){return M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,u();case 2:return e.watchListeners.push(t),n.abrupt("return",M(w().mark((function n(){return w().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(e.watchListeners=e.watchListeners.filter((function(e){return e!==t})),0!==e.watchListeners.length){n.next=4;break}return n.next=4,y();case 4:case"end":return n.stop()}}),n)}))));case 4:case"end":return n.stop()}}),n)})))()},unwatch:function(){return M(w().mark((function t(){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e.watchListeners=[],t.next=3,y();case 3:case"end":return t.stop()}}),t)})))()},mount:function(t,n){if((t=f(t))&&e.mounts[t])throw new Error("already mounted at ".concat(t));return t&&(e.mountpoints.push(t),e.mountpoints.sort((function(t,e){return e.length-t.length}))),e.mounts[t]=n,e.watching&&Promise.resolve(k(n,o,t)).then((function(n){e.unwatch[t]=n})).catch(console.error),b},unmount:function(t){var n=arguments;return M(w().mark((function r(){var i;return w().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(i=!(n.length>1&&void 0!==n[1])||n[1],(t=f(t))&&e.mounts[t]){r.next=4;break}return r.abrupt("return");case 4:if(e.watching&&t in e.unwatch&&(e.unwatch[t](),delete e.unwatch[t]),!i){r.next=8;break}return r.next=8,T(e.mounts[t]);case 8:e.mountpoints=e.mountpoints.filter((function(e){return e!==t})),delete e.mounts[t];case 10:case"end":return r.stop()}}),r)})))()},getMount:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";t=h(t)+":";var e=n(t);return{driver:e.driver,base:e.base}},getMounts:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t=h(t);var n=i(t,e.parents);return n.map((function(t){return{driver:t.driver,base:t.mountpoint}}))}};return b}function k(t,e,n){return t.watch?t.watch((function(t,r){return e(t,n+r)})):function(){}}function T(t){return L.apply(this,arguments)}function L(){return(L=M(w().mark((function t(e){return w().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("function"!=typeof e.dispose){t.next=3;break}return t.next=3,a(e.dispose);case 3:case"end":return t.stop()}}),t)})))).apply(this,arguments)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,i=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,o=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function a(t,e){if(!("__proto__"===t||"constructor"===t&&e&&"object"==typeof e&&"prototype"in e))return e;!function(t){console.warn(`[destr] Dropping "${t}" key to prevent prototype pollution.`)}(t)}function s(t,e={}){if("string"!=typeof t)return t;const n=t.trim();if('"'===t[0]&&t.endsWith('"')&&!t.includes("\\"))return n.slice(1,-1);if(n.length<=9){const t=n.toLowerCase();if("true"===t)return!0;if("false"===t)return!1;if("undefined"===t)return;if("null"===t)return null;if("nan"===t)return Number.NaN;if("infinity"===t)return Number.POSITIVE_INFINITY;if("-infinity"===t)return Number.NEGATIVE_INFINITY}if(!o.test(t)){if(e.strict)throw new SyntaxError("[destr] Invalid JSON");return t}try{if(r.test(t)||i.test(t)){if(e.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(t,a)}return JSON.parse(t)}catch(n){if(e.strict)throw n;return t}}e.default=s,e.destr=s,e.safeDestr=function(t,e={}){return s(t,{...e,strict:!0})}},function(t,e,n){function r(t){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */i=function(){return e};var t,e={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(t){h=function(t,e,n){return t[e]=n}}function d(t,e,n,r){var i=e&&e.prototype instanceof v?e:v,o=Object.create(i.prototype),s=new j(r||[]);return a(o,"_invoke",{value:k(t,n,s)}),o}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}e.wrap=d;var p="suspendedStart",y="executing",m="completed",g={};function v(){}function w(){}function b(){}var M={};h(M,u,(function(){return this}));var A=Object.getPrototypeOf,I=A&&A(A(C([])));I&&I!==n&&o.call(I,u)&&(M=I);var N=b.prototype=v.prototype=Object.create(M);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function x(t,e){function n(i,a,s,u){var c=f(t[i],t,a);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==r(h)&&o.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,s,u)}),(function(t){n("throw",t,s,u)})):e.resolve(h).then((function(t){l.value=t,s(l)}),(function(t){return n("throw",t,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}})}function k(e,n,r){var i=p;return function(o,a){if(i===y)throw Error("Generator is already running");if(i===m){if("throw"===o)throw a;return{value:t,done:!0}}for(r.method=o,r.arg=a;;){var s=r.delegate;if(s){var u=T(s,r);if(u){if(u===g)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(i===p)throw i=m,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);i=y;var c=f(e,n,r);if("normal"===c.type){if(i=r.done?m:"suspendedYield",c.arg===g)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(i=m,r.method="throw",r.arg=c.arg)}}}function T(e,n){var r=n.method,i=e.iterator[r];if(i===t)return n.delegate=null,"throw"===r&&e.iterator.return&&(n.method="return",n.arg=t,T(e,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),g;var o=f(i,e.iterator,n.arg);if("throw"===o.type)return n.method="throw",n.arg=o.arg,n.delegate=null,g;var a=o.arg;return a?a.done?(n[e.resultName]=a.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,g):a:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function S(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function j(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function C(e){if(e||""===e){var n=e[u];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var u=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function o(t,e){for(var n=0;n-1?h:0,t.charCodeAt(f+1)){case 100:case 102:if(l>=u)break;if(null==e[l])break;h=u)break;if(null==e[l])break;h=u)break;if(void 0===e[l])break;h",h=f+2,f++;break}c+=i(e[l]),h=f+2,f++;break;case 115:if(l>=u)break;h>>16&65535)*r+n*(e>>>16&65535)<<16>>>0)|0},e.add=function(t,e){return t+e|0},e.sub=function(t,e){return t-e|0},e.rotl=function(t,e){return t<>>32-e},e.rotr=function(t,e){return t<<32-e|t>>>e},e.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},e.MAX_SAFE_INTEGER=9007199254740991,e.isSafeInteger=function(t){return e.isInteger(t)&&t>=-e.MAX_SAFE_INTEGER&&t<=e.MAX_SAFE_INTEGER}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(28),i=n(12);e.DIGEST_LENGTH=64,e.BLOCK_SIZE=128;var o=function(){function t(){this.digestLength=e.DIGEST_LENGTH,this.blockSize=e.BLOCK_SIZE,this._stateHi=new Int32Array(8),this._stateLo=new Int32Array(8),this._tempHi=new Int32Array(16),this._tempLo=new Int32Array(16),this._buffer=new Uint8Array(256),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this.reset()}return t.prototype._initState=function(){this._stateHi[0]=1779033703,this._stateHi[1]=3144134277,this._stateHi[2]=1013904242,this._stateHi[3]=2773480762,this._stateHi[4]=1359893119,this._stateHi[5]=2600822924,this._stateHi[6]=528734635,this._stateHi[7]=1541459225,this._stateLo[0]=4089235720,this._stateLo[1]=2227873595,this._stateLo[2]=4271175723,this._stateLo[3]=1595750129,this._stateLo[4]=2917565137,this._stateLo[5]=725511199,this._stateLo[6]=4215389547,this._stateLo[7]=327033209},t.prototype.reset=function(){return this._initState(),this._bufferLength=0,this._bytesHashed=0,this._finished=!1,this},t.prototype.clean=function(){i.wipe(this._buffer),i.wipe(this._tempHi),i.wipe(this._tempLo),this.reset()},t.prototype.update=function(t,n){if(void 0===n&&(n=t.length),this._finished)throw new Error("SHA512: can't update because hash was finished.");var r=0;if(this._bytesHashed+=n,this._bufferLength>0){for(;this._bufferLength0;)this._buffer[this._bufferLength++]=t[r++],n--;this._bufferLength===this.blockSize&&(s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,this._buffer,0,this.blockSize),this._bufferLength=0)}for(n>=this.blockSize&&(r=s(this._tempHi,this._tempLo,this._stateHi,this._stateLo,t,r,n),n%=this.blockSize);n>0;)this._buffer[this._bufferLength++]=t[r++],n--;return this},t.prototype.finish=function(t){if(!this._finished){var e=this._bytesHashed,n=this._bufferLength,i=e/536870912|0,o=e<<3,a=e%128<112?128:256;this._buffer[n]=128;for(var u=n+1;u0?new Uint8Array(this._buffer):void 0,bufferLength:this._bufferLength,bytesHashed:this._bytesHashed}},t.prototype.restoreState=function(t){return this._stateHi.set(t.stateHi),this._stateLo.set(t.stateLo),this._bufferLength=t.bufferLength,t.buffer&&this._buffer.set(t.buffer),this._bytesHashed=t.bytesHashed,this._finished=!1,this},t.prototype.cleanSavedState=function(t){i.wipe(t.stateHi),i.wipe(t.stateLo),t.buffer&&i.wipe(t.buffer),t.bufferLength=0,t.bytesHashed=0},t}();e.SHA512=o;var a=new Int32Array([1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591]);function s(t,e,n,i,o,s,u){for(var c,l,h,d,f,p,y,m,g=n[0],v=n[1],w=n[2],b=n[3],M=n[4],A=n[5],I=n[6],N=n[7],E=i[0],x=i[1],k=i[2],T=i[3],L=i[4],S=i[5],j=i[6],C=i[7];u>=128;){for(var D=0;D<16;D++){var O=8*D+s;t[D]=r.readUint32BE(o,O),e[D]=r.readUint32BE(o,O+4)}for(D=0;D<80;D++){var z,P,_=g,B=v,R=w,U=b,Q=M,Y=A,W=I,F=E,V=x,H=k,G=T,q=L,Z=S,J=j;if(f=65535&(l=C),p=l>>>16,y=65535&(c=N),m=c>>>16,f+=65535&(l=(L>>>14|M<<18)^(L>>>18|M<<14)^(M>>>9|L<<23)),p+=l>>>16,y+=65535&(c=(M>>>14|L<<18)^(M>>>18|L<<14)^(L>>>9|M<<23)),m+=c>>>16,f+=65535&(l=L&S^~L&j),p+=l>>>16,y+=65535&(c=M&A^~M&I),m+=c>>>16,c=a[2*D],f+=65535&(l=a[2*D+1]),p+=l>>>16,y+=65535&c,m+=c>>>16,c=t[D%16],p+=(l=e[D%16])>>>16,y+=65535&c,m+=c>>>16,y+=(p+=(f+=65535&l)>>>16)>>>16,f=65535&(l=d=65535&f|p<<16),p=l>>>16,y=65535&(c=h=65535&y|(m+=y>>>16)<<16),m=c>>>16,f+=65535&(l=(E>>>28|g<<4)^(g>>>2|E<<30)^(g>>>7|E<<25)),p+=l>>>16,y+=65535&(c=(g>>>28|E<<4)^(E>>>2|g<<30)^(E>>>7|g<<25)),m+=c>>>16,p+=(l=E&x^E&k^x&k)>>>16,y+=65535&(c=g&v^g&w^v&w),m+=c>>>16,z=65535&(y+=(p+=(f+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,P=65535&f|p<<16,f=65535&(l=G),p=l>>>16,y=65535&(c=U),m=c>>>16,p+=(l=d)>>>16,y+=65535&(c=h),m+=c>>>16,v=_,w=B,b=R,M=U=65535&(y+=(p+=(f+=65535&l)>>>16)>>>16)|(m+=y>>>16)<<16,A=Q,I=Y,N=W,g=z,x=F,k=V,T=H,L=G=65535&f|p<<16,S=q,j=Z,C=J,E=P,D%16==15)for(O=0;O<16;O++)c=t[O],f=65535&(l=e[O]),p=l>>>16,y=65535&c,m=c>>>16,c=t[(O+9)%16],f+=65535&(l=e[(O+9)%16]),p+=l>>>16,y+=65535&c,m+=c>>>16,h=t[(O+1)%16],f+=65535&(l=((d=e[(O+1)%16])>>>1|h<<31)^(d>>>8|h<<24)^(d>>>7|h<<25)),p+=l>>>16,y+=65535&(c=(h>>>1|d<<31)^(h>>>8|d<<24)^h>>>7),m+=c>>>16,h=t[(O+14)%16],p+=(l=((d=e[(O+14)%16])>>>19|h<<13)^(h>>>29|d<<3)^(d>>>6|h<<26))>>>16,y+=65535&(c=(h>>>19|d<<13)^(d>>>29|h<<3)^h>>>6),m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,t[O]=65535&y|m<<16,e[O]=65535&f|p<<16}f=65535&(l=E),p=l>>>16,y=65535&(c=g),m=c>>>16,c=n[0],p+=(l=i[0])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[0]=g=65535&y|m<<16,i[0]=E=65535&f|p<<16,f=65535&(l=x),p=l>>>16,y=65535&(c=v),m=c>>>16,c=n[1],p+=(l=i[1])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[1]=v=65535&y|m<<16,i[1]=x=65535&f|p<<16,f=65535&(l=k),p=l>>>16,y=65535&(c=w),m=c>>>16,c=n[2],p+=(l=i[2])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[2]=w=65535&y|m<<16,i[2]=k=65535&f|p<<16,f=65535&(l=T),p=l>>>16,y=65535&(c=b),m=c>>>16,c=n[3],p+=(l=i[3])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[3]=b=65535&y|m<<16,i[3]=T=65535&f|p<<16,f=65535&(l=L),p=l>>>16,y=65535&(c=M),m=c>>>16,c=n[4],p+=(l=i[4])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[4]=M=65535&y|m<<16,i[4]=L=65535&f|p<<16,f=65535&(l=S),p=l>>>16,y=65535&(c=A),m=c>>>16,c=n[5],p+=(l=i[5])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[5]=A=65535&y|m<<16,i[5]=S=65535&f|p<<16,f=65535&(l=j),p=l>>>16,y=65535&(c=I),m=c>>>16,c=n[6],p+=(l=i[6])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[6]=I=65535&y|m<<16,i[6]=j=65535&f|p<<16,f=65535&(l=C),p=l>>>16,y=65535&(c=N),m=c>>>16,c=n[7],p+=(l=i[7])>>>16,y+=65535&c,m+=c>>>16,m+=(y+=(p+=(f+=65535&l)>>>16)>>>16)>>>16,n[7]=N=65535&y|m<<16,i[7]=C=65535&f|p<<16,s+=128,u-=128}return s}e.hash=function(t){var e=new o;e.update(t);var n=e.digest();return e.clean(),n}},function(t,e,n){var r=Object.defineProperty,i=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable,s=(t,e,n)=>e in t?r(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,u=(t,e)=>{for(var n in e||(e={}))o.call(e,n)&&s(t,n,e[n]);if(i)for(var n of i(e))a.call(e,n)&&s(t,n,e[n]);return t};Object.defineProperty(e,"__esModule",{value:!0});var c=n(94),l=n(96),h=n(97),d=n(98),f=n(99),p=n(50),y=n(100),m=n(51),g=n(101),v=n(102),w=n(103),b=n(105),M=n(106),A=n(107);n(108);var I=n(52),N=n(40),E=n(29),x=n(35),k=n(18);const T=u(u(u(u(u(u(u(u(u(u({},c),l),h),d),f),p),y),m),g),v),L=u(u({},w),b),S={raw:M,json:A};e.CID=I.CID,e.hasher=N,e.digest=E,e.varint=x,e.bytes=k,e.bases=T,e.codecs=S,e.hashes=L},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(14),i=n(18);const o=r.from({prefix:"\0",name:"identity",encode:t=>i.toString(t),decode:t=>i.fromString(t)});e.identity=o},function(t,e,n){t.exports=function(t,e){if(t.length>=255)throw new TypeError("Alphabet too long");for(var n=new Uint8Array(256),r=0;r>>0,a=new Uint8Array(o);t[e];){var l=n[t.charCodeAt(e)];if(255===l)return;for(var h=0,d=o-1;(0!==l||h>>0,a[d]=l%256>>>0,l=l/256>>>0;if(0!==l)throw new Error("Non-zero carry");i=h,e++}if(" "!==t[e]){for(var f=o-i;f!==o&&0===a[f];)f++;for(var p=new Uint8Array(r+(o-f)),y=r;f!==o;)p[y++]=a[f++];return p}}}return{encode:function(e){if(e instanceof Uint8Array||(ArrayBuffer.isView(e)?e=new Uint8Array(e.buffer,e.byteOffset,e.byteLength):Array.isArray(e)&&(e=Uint8Array.from(e))),!(e instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===e.length)return"";for(var n=0,r=0,i=0,o=e.length;i!==o&&0===e[i];)i++,n++;for(var a=(o-i)*l+1>>>0,c=new Uint8Array(a);i!==o;){for(var h=e[i],d=0,f=a-1;(0!==h||d>>0,c[f]=h%s>>>0,h=h/s>>>0;if(0!==h)throw new Error("Non-zero carry");r=d,i++}for(var p=a-r;p!==a&&0===c[p];)p++;for(var y=u.repeat(n);p(t[n]=e,t)),[]),a=i.reduce(((t,e,n)=>(t[e.codePointAt(0)]=n,t)),[]),s=r.from({prefix:"🚀",name:"base256emoji",encode:function(t){return t.reduce(((t,e)=>t+o[e]),"")},decode:function(t){const e=[];for(const n of t){const t=a[n.codePointAt(0)];if(void 0===t)throw new Error("Non-base256emoji character: "+n);e.push(t)}return new Uint8Array(e)}});e.base256emoji=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(40);const i=t=>e=>{return n=this,null,r=function*(){return new Uint8Array(yield crypto.subtle.digest(t,e))},new Promise(((t,e)=>{var i=t=>{try{a(r.next(t))}catch(t){e(t)}},o=t=>{try{a(r.throw(t))}catch(t){e(t)}},a=e=>e.done?t(e.value):Promise.resolve(e.value).then(i,o);a((r=r.apply(n,null)).next())}));var n,r},o=r.from({name:"sha2-256",code:18,encode:i("SHA-256")}),a=r.from({name:"sha2-512",code:19,encode:i("SHA-512")});e.sha256=o,e.sha512=a},function(t,e,n){var r=Math.pow(2,31),i=Math.pow(2,7),o=Math.pow(2,14),a=Math.pow(2,21),s=Math.pow(2,28),u=Math.pow(2,35),c=Math.pow(2,42),l=Math.pow(2,49),h=Math.pow(2,56),d=Math.pow(2,63),f={encode:function t(e,n,i){n=n||[];for(var o=i=i||0;e>=r;)n[i++]=255&e|128,e/=128;for(;-128&e;)n[i++]=255&e|128,e>>>=7;return n[i]=0|e,t.bytes=i-o+1,n},decode:function t(e,n){var r,i=0,o=0,a=n=n||0,s=e.length;do{if(a>=s)throw t.bytes=0,new RangeError("Could not decode varint");r=e[a++],i+=o<28?(127&r)<=128);return t.bytes=a-n,i},encodingLength:function(t){return ti.create(0,o(t))};e.identity=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(18);e.code=85,e.decode=t=>r.coerce(t),e.encode=t=>r.coerce(t),e.name="raw"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=new TextEncoder,i=new TextDecoder;e.code=512,e.decode=t=>JSON.parse(i.decode(t)),e.encode=t=>r.encode(JSON.stringify(t)),e.name="json"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(52),i=n(35),o=n(18),a=n(40),s=n(29);e.CID=r.CID,e.varint=i,e.bytes=o,e.hasher=a,e.digest=s},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.compare=function(t,e){for(let n=0;ne[n])return 1}return t.byteLength>e.byteLength?1:t.byteLength * @license MIT */ -var r=n(117),i=n(118),o=n(119);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function C(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function z(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return o||z(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function _(t,e,n,r,o){return o||z(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(26))},function(t,e,n){e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ +var r=n(117),i=n(118),o=n(119);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function z(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return o||z(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function _(t,e,n,r,o){return o||z(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||C(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);C(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);C(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(26))},function(t,e,n){e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()))},function(t,e,n){var r=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function a(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(r)||[],n=1;n{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}},function(t,e,n){t.exports=function(t,e){for(var n={},r=Object.keys(t),i=Array.isArray(e),o=0;o>>16|D<<16)|0)>>>20|N<<12,E=(E^=L=L+(C=(C^=M=M+E|0)>>>16|C<<16)|0)>>>20|E<<12,x=(x^=S=S+(O=(O^=A=A+x|0)>>>16|O<<16)|0)>>>20|x<<12,k=(k^=j=j+(z=(z^=I=I+k|0)>>>16|z<<16)|0)>>>20|k<<12,x=(x^=S=S+(O=(O^=A=A+x|0)>>>24|O<<8)|0)>>>25|x<<7,k=(k^=j=j+(z=(z^=I=I+k|0)>>>24|z<<8)|0)>>>25|k<<7,E=(E^=L=L+(C=(C^=M=M+E|0)>>>24|C<<8)|0)>>>25|E<<7,N=(N^=T=T+(D=(D^=b=b+N|0)>>>24|D<<8)|0)>>>25|N<<7,E=(E^=S=S+(z=(z^=b=b+E|0)>>>16|z<<16)|0)>>>20|E<<12,x=(x^=j=j+(D=(D^=M=M+x|0)>>>16|D<<16)|0)>>>20|x<<12,k=(k^=T=T+(C=(C^=A=A+k|0)>>>16|C<<16)|0)>>>20|k<<12,N=(N^=L=L+(O=(O^=I=I+N|0)>>>16|O<<16)|0)>>>20|N<<12,k=(k^=T=T+(C=(C^=A=A+k|0)>>>24|C<<8)|0)>>>25|k<<7,N=(N^=L=L+(O=(O^=I=I+N|0)>>>24|O<<8)|0)>>>25|N<<7,x=(x^=j=j+(D=(D^=M=M+x|0)>>>24|D<<8)|0)>>>25|x<<7,E=(E^=S=S+(z=(z^=b=b+E|0)>>>24|z<<8)|0)>>>25|E<<7;r.writeUint32LE(b+i|0,t,0),r.writeUint32LE(M+o|0,t,4),r.writeUint32LE(A+a|0,t,8),r.writeUint32LE(I+s|0,t,12),r.writeUint32LE(N+u|0,t,16),r.writeUint32LE(E+c|0,t,20),r.writeUint32LE(x+l|0,t,24),r.writeUint32LE(k+h|0,t,28),r.writeUint32LE(T+d|0,t,32),r.writeUint32LE(L+f|0,t,36),r.writeUint32LE(S+p|0,t,40),r.writeUint32LE(j+y|0,t,44),r.writeUint32LE(D+m|0,t,48),r.writeUint32LE(C+g|0,t,52),r.writeUint32LE(O+v|0,t,56),r.writeUint32LE(z+w|0,t,60)}function a(t,e,n,r,a){if(void 0===a&&(a=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,e++;if(r>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=a,e.stream=function(t,e,n,r){return void 0===r&&(r=0),i.wipe(n),a(t,e,n,n,r)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(41),i=n(12);e.DIGEST_LENGTH=16;var o=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=t[0]|t[1]<<8;this._r[0]=8191&n;var r=t[2]|t[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=t[8]|t[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=t[10]|t[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var u=t[12]|t[13]<<8;this._r[7]=8065&(s>>>11|u<<5);var c=t[14]|t[15]<<8;this._r[8]=8191&(u>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],h=this._h[7],d=this._h[8],f=this._h[9],p=this._r[0],y=this._r[1],m=this._r[2],g=this._r[3],v=this._r[4],w=this._r[5],b=this._r[6],M=this._r[7],A=this._r[8],I=this._r[9];n>=16;){var N=t[e+0]|t[e+1]<<8;i+=8191&N;var E=t[e+2]|t[e+3]<<8;o+=8191&(N>>>13|E<<3);var x=t[e+4]|t[e+5]<<8;a+=8191&(E>>>10|x<<6);var k=t[e+6]|t[e+7]<<8;s+=8191&(x>>>7|k<<9);var T=t[e+8]|t[e+9]<<8;u+=8191&(k>>>4|T<<12),c+=T>>>1&8191;var L=t[e+10]|t[e+11]<<8;l+=8191&(T>>>14|L<<2);var S=t[e+12]|t[e+13]<<8;h+=8191&(L>>>11|S<<5);var j=t[e+14]|t[e+15]<<8,D=0,C=D;C+=i*p,C+=o*(5*I),C+=a*(5*A),C+=s*(5*M),D=(C+=u*(5*b))>>>13,C&=8191,C+=c*(5*w),C+=l*(5*v),C+=h*(5*g),C+=(d+=8191&(S>>>8|j<<8))*(5*m);var O=D+=(C+=(f+=j>>>5|r)*(5*y))>>>13;O+=i*y,O+=o*p,O+=a*(5*I),O+=s*(5*A),D=(O+=u*(5*M))>>>13,O&=8191,O+=c*(5*b),O+=l*(5*w),O+=h*(5*v),O+=d*(5*g),D+=(O+=f*(5*m))>>>13,O&=8191;var z=D;z+=i*m,z+=o*y,z+=a*p,z+=s*(5*I),D=(z+=u*(5*A))>>>13,z&=8191,z+=c*(5*M),z+=l*(5*b),z+=h*(5*w),z+=d*(5*v);var P=D+=(z+=f*(5*g))>>>13;P+=i*g,P+=o*m,P+=a*y,P+=s*p,D=(P+=u*(5*I))>>>13,P&=8191,P+=c*(5*A),P+=l*(5*M),P+=h*(5*b),P+=d*(5*w);var _=D+=(P+=f*(5*v))>>>13;_+=i*v,_+=o*g,_+=a*m,_+=s*y,D=(_+=u*p)>>>13,_&=8191,_+=c*(5*I),_+=l*(5*A),_+=h*(5*M),_+=d*(5*b);var B=D+=(_+=f*(5*w))>>>13;B+=i*w,B+=o*v,B+=a*g,B+=s*m,D=(B+=u*y)>>>13,B&=8191,B+=c*p,B+=l*(5*I),B+=h*(5*A),B+=d*(5*M);var R=D+=(B+=f*(5*b))>>>13;R+=i*b,R+=o*w,R+=a*v,R+=s*g,D=(R+=u*m)>>>13,R&=8191,R+=c*y,R+=l*p,R+=h*(5*I),R+=d*(5*A);var U=D+=(R+=f*(5*M))>>>13;U+=i*M,U+=o*b,U+=a*w,U+=s*v,D=(U+=u*g)>>>13,U&=8191,U+=c*m,U+=l*y,U+=h*p,U+=d*(5*I);var Q=D+=(U+=f*(5*A))>>>13;Q+=i*A,Q+=o*M,Q+=a*b,Q+=s*w,D=(Q+=u*v)>>>13,Q&=8191,Q+=c*g,Q+=l*m,Q+=h*y,Q+=d*p;var Y=D+=(Q+=f*(5*I))>>>13;Y+=i*I,Y+=o*A,Y+=a*M,Y+=s*b,D=(Y+=u*w)>>>13,Y&=8191,Y+=c*v,Y+=l*g,Y+=h*m,Y+=d*y,i=C=8191&(D=(D=((D+=(Y+=f*p)>>>13)<<2)+D|0)+(C&=8191)|0),o=O+=D>>>=13,a=z&=8191,s=P&=8191,u=_&=8191,c=B&=8191,l=R&=8191,h=U&=8191,d=Q&=8191,f=Y&=8191,e+=16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=h,this._h[8]=d,this._h[9]=f},t.prototype.finish=function(t,e){void 0===e&&(e=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,n=0,r=t.length;if(this._leftover){(e=16-this._leftover)>r&&(e=r);for(var i=0;i=16&&(e=r-r%16,this._blocks(t,n,e),n+=e,r-=e),r){for(i=0;ithis.blockSize?this._inner.update(e).finish(n).clean():n.set(e);for(var i=0;i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:D(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n pairing.get(".concat(h,") failed")),e.t0;case 14:if(h&&p){e.next=21;break}return e.next=17,this.client.core.pairing.create();case 17:y=e.sent,m=y.topic,g=y.uri,h=m,d=g;case 21:if(h){e.next=24;break}throw v=Object(a.A)("NO_MATCHING_KEY","connect() pairing topic: ".concat(h)),w=v.message,new Error(w);case 24:return e.next=26,this.client.core.crypto.generateKeyPair();case 26:return b=e.sent,M=j.wc_sessionPropose.req.ttl||c.FIVE_MINUTES,A=Object(a.e)(M),I=V({requiredNamespaces:o,optionalNamespaces:s,relays:null!=l?l:[{protocol:r.d}],proposer:{publicKey:b,metadata:this.client.metadata},expiryTimestamp:A},u&&{sessionProperties:u}),N=Object(a.f)(M,"Proposal expired"),E=N.reject,k=N.resolve,T=N.done,this.events.once(Object(a.n)("session_connect"),(function(t){return x(S,[t],(function(t){var e=this,n=t.error,r=t.session;return f().mark((function t(){var i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}E(n),t.next=16;break;case 4:if(!r){t.next=16;break}return r.self.publicKey=b,i=H(V({},r),{requiredNamespaces:I.requiredNamespaces,optionalNamespaces:I.optionalNamespaces}),t.next=9,e.client.session.set(r.topic,i);case 9:return t.next=11,e.setExpiry(r.topic,r.expiry);case 11:if(t.t0=h,!t.t0){t.next=15;break}return t.next=15,e.client.core.pairing.updateMetadata({topic:h,metadata:r.peer.metadata});case 15:k(i);case 16:case"end":return t.stop()}}),t)}))()}))})),e.next=37,this.sendRequest({topic:h,method:"wc_sessionPropose",params:I,throwOnFailedPublish:!0});case 37:return L=e.sent,e.next=40,this.setProposal(L,V({id:L},I));case 40:return e.abrupt("return",{uri:d,approval:T});case 41:case"end":return e.stop()}}),e,this,[[7,11]])})))},n.pair=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.client.core.pairing.pair(t);case 5:return e.abrupt("return",e.sent);case 8:throw e.prev=8,e.t0=e.catch(2),this.client.logger.error("pair() failed"),e.t0;case 11:case"end":return e.stop()}}),e,this,[[2,8]])})))},n.approve=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m,g,v,w,b=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidApprove(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("approve() -> isValidApprove() failed"),e.t0;case 10:n=t.id,r=t.relayProtocol,i=t.namespaces,o=t.sessionProperties,s=t.sessionConfig,e.prev=11,u=this.client.proposal.get(n),e.next=18;break;case 15:throw e.prev=15,e.t1=e.catch(11),this.client.logger.error("approve() -> proposal.get(".concat(n,") failed")),e.t1;case 18:return l=(c=u).pairingTopic,h=c.proposer,d=c.requiredNamespaces,p=c.optionalNamespaces,l=l||"",e.next=22,this.client.core.crypto.generateKeyPair();case 22:return y=e.sent,m=h.publicKey,e.next=26,this.client.core.crypto.generateSharedKey(y,m);case 26:return g=e.sent,v=V(V({relay:{protocol:null!=r?r:"irn"},namespaces:i,pairingTopic:l,controller:{publicKey:y,metadata:this.client.metadata},expiry:Object(a.e)(S)},o&&{sessionProperties:o}),s&&{sessionConfig:s}),e.next=30,this.client.core.relayer.subscribe(g);case 30:return w=H(V({},v),{topic:g,requiredNamespaces:d,optionalNamespaces:p,pairingTopic:l,acknowledged:!1,self:v.controller,peer:{publicKey:h.publicKey,metadata:h.metadata},controller:y}),e.next=33,this.client.session.set(g,w);case 33:return e.prev=33,e.next=36,this.sendResult({id:n,topic:l,result:{relay:{protocol:null!=r?r:"irn"},responderPublicKey:y},throwOnFailedPublish:!0});case 36:return e.next=38,this.sendRequest({topic:g,method:"wc_sessionSettle",params:v,throwOnFailedPublish:!0});case 38:e.next=47;break;case 40:return e.prev=40,e.t2=e.catch(33),this.client.logger.error(e.t2),this.client.session.delete(g,Object(a.G)("USER_DISCONNECTED")),e.next=46,this.client.core.relayer.unsubscribe(g);case 46:throw e.t2;case 47:return e.next=49,this.client.core.pairing.updateMetadata({topic:l,metadata:h.metadata});case 49:return e.next=51,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 51:return e.next=53,this.client.core.pairing.activate({topic:l});case 53:return e.next=55,this.setExpiry(g,Object(a.e)(S));case 55:return e.abrupt("return",{topic:g,acknowledged:function(){return new Promise((function(t){return setTimeout((function(){return t(b.client.session.get(g))}),500)}))}});case 56:case"end":return e.stop()}}),e,this,[[2,7],[11,15],[33,40]])})))},n.reject=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidReject(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("reject() -> isValidReject() failed"),e.t0;case 10:n=t.id,r=t.reason,e.prev=11,i=this.client.proposal.get(n).pairingTopic,e.next=18;break;case 15:throw e.prev=15,e.t1=e.catch(11),this.client.logger.error("reject() -> proposal.get(".concat(n,") failed")),e.t1;case 18:if(e.t2=i,!e.t2){e.next=24;break}return e.next=22,this.sendError({id:n,topic:i,error:r});case 22:return e.next=24,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 24:case"end":return e.stop()}}),e,this,[[2,7],[11,15]])})))},n.update=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidUpdate(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("update() -> isValidUpdate() failed"),e.t0;case 10:return n=t.topic,r=t.namespaces,i=Object(a.f)(),o=i.done,s=i.resolve,u=i.reject,c=Object(l.payloadId)(),h=Object(l.getBigIntRpcId)().toString(),d=this.client.session.get(n).namespaces,this.events.once(Object(a.n)("session_update",c),(function(t){var e=t.error;e?u(e):s()})),e.next=14,this.client.session.update(n,{namespaces:r});case 14:return this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:c,relayRpcId:h}).catch((function(t){p.client.logger.error(t),p.client.session.update(n,{namespaces:d}),u(t)})),e.abrupt("return",{acknowledged:o});case 16:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.extend=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidExtend(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("extend() -> isValidExtend() failed"),e.t0;case 10:return n=t.topic,r=Object(l.payloadId)(),i=Object(a.f)(),o=i.done,s=i.resolve,u=i.reject,this.events.once(Object(a.n)("session_extend",r),(function(t){var e=t.error;e?u(e):s()})),e.next=14,this.setExpiry(n,Object(a.e)(S));case 14:return this.sendRequest({topic:n,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch((function(t){u(t)})),e.abrupt("return",{acknowledged:o});case 16:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.request=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p,y,m,g=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidRequest(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("request() -> isValidRequest() failed"),e.t0;case 10:return n=t.chainId,r=t.request,i=t.topic,o=t.expiry,s=void 0===o?j.wc_sessionRequest.req.ttl:o,u=this.client.session.get(i),c=Object(l.payloadId)(),h=Object(l.getBigIntRpcId)().toString(),d=Object(a.f)(s,"Request expired. Please try again."),p=d.done,y=d.resolve,m=d.reject,this.events.once(Object(a.n)("session_request",c),(function(t){var e=t.error,n=t.result;e?m(e):y(n)})),e.next=14,Promise.all([new Promise((function(t){return x(g,null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({clientRpcId:c,relayRpcId:h,topic:i,method:"wc_sessionRequest",params:{request:H(V({},r),{expiryTimestamp:Object(a.e)(s)}),chainId:n},expiry:s,throwOnFailedPublish:!0}).catch((function(t){return m(t)}));case 2:this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:n,id:c}),t();case 4:case"end":return e.stop()}}),e,this)})))})),new Promise((function(t){return x(g,null,f().mark((function e(){var n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=u.sessionConfig)&&n.disableDeepLink){e.next=5;break}return e.next=3,Object(a.y)(this.client.core.storage,L);case 3:r=e.sent,Object(a.H)({id:c,topic:i,wcDeepLink:r});case 5:t();case 6:case"end":return e.stop()}}),e,this)})))})),p()]).then((function(t){return t[2]}));case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.respond=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidRespond(t);case 4:if(n=t.topic,r=t.response,i=r.id,!Object(l.isJsonRpcResult)(r)){e.next=10;break}return e.next=8,this.sendResult({id:i,topic:n,result:r.result,throwOnFailedPublish:!0});case 8:e.next=14;break;case 10:if(e.t0=Object(l.isJsonRpcError)(r),!e.t0){e.next=14;break}return e.next=14,this.sendError({id:i,topic:n,error:r.error});case 14:this.cleanupAfterResponse(t);case 15:case"end":return e.stop()}}),e,this)})))},n.ping=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidPing(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("ping() -> isValidPing() failed"),e.t0;case 10:if(n=t.topic,!this.client.session.keys.includes(n)){e.next=18;break}return r=Object(l.payloadId)(),i=Object(l.getBigIntRpcId)().toString(),o=Object(a.f)(),s=o.done,u=o.resolve,c=o.reject,this.events.once(Object(a.n)("session_ping",r),(function(t){var e=t.error;e?c(e):u()})),e.next=16,Promise.all([this.sendRequest({topic:n,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:r,relayRpcId:i}),s()]);case 16:e.next=22;break;case 18:if(e.t1=this.client.core.pairing.pairings.keys.includes(n),!e.t1){e.next=22;break}return e.next=22,this.client.core.pairing.ping({topic:n});case 22:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.emit=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidEmit(t);case 4:return n=t.topic,r=t.event,i=t.chainId,o=Object(l.getBigIntRpcId)().toString(),e.next=7,this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:o});case 7:case"end":return e.stop()}}),e,this)})))},n.disconnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidDisconnect(t);case 4:if(n=t.topic,!this.client.session.keys.includes(n)){e.next=12;break}return e.next=8,this.sendRequest({topic:n,method:"wc_sessionDelete",params:Object(a.G)("USER_DISCONNECTED"),throwOnFailedPublish:!0});case 8:return e.next=10,this.deleteSession({topic:n,emitEvent:!1});case 10:e.next=19;break;case 12:if(!this.client.core.pairing.pairings.keys.includes(n)){e.next=17;break}return e.next=15,this.client.core.pairing.disconnect({topic:n});case 15:e.next=19;break;case 17:throw r=Object(a.A)("MISMATCHED_TOPIC","Session or pairing topic not found: ".concat(n)),i=r.message,new Error(i);case 19:case"end":return e.stop()}}),e,this)})))},n.find=function(t){return n.isInitialized(),n.client.session.getAll().filter((function(e){return Object(a.R)(e,t)}))},n.getPendingSessionRequests=function(){return n.client.pendingRequest.getAll()},n.authenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,p,y,m,g,v,w,b,M,A,N,E,k,T,L,D,C,O,z,P,B,R,U,Q,Y,W=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.isValidAuthenticate(t),n=t.chains,r=t.statement,i=void 0===r?"":r,o=t.uri,s=t.domain,u=t.nonce,c=t.type,h=t.exp,p=t.nbf,y=t.methods,m=void 0===y?[]:y,g=d(t.resources||[]),e.next=15,this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});case 15:return v=e.sent,w=v.topic,b=v.uri,this.client.logger.info({message:"Generated new pairing",pairing:{topic:w,uri:b}}),e.next=21,this.client.core.crypto.generateKeyPair();case 21:return M=e.sent,A=Object(a.I)(M),e.next=25,Promise.all([this.client.auth.authKeys.set(_,{responseTopic:A,publicKey:M}),this.client.auth.pairingTopics.set(A,{topic:A,pairingTopic:w})]);case 25:return e.next=27,this.client.core.relayer.subscribe(A);case 27:if(this.client.logger.info("sending request to new pairing topic: ".concat(w)),!(m.length>0)){e.next=32;break}N=Object(a.rb)(n[0]),E=N.namespace,k=Object(a.g)(E,"request",m),Object(a.D)(g)&&(k=Object(a.pb)(k,g.pop())),g.push(k);case 32:return T=Object(a.e)(j.wc_sessionPropose.req.ttl),L={authPayload:{type:null!=c?c:"caip122",chains:n,statement:i,aud:o,domain:s,version:"1",nonce:u,iat:(new Date).toISOString(),exp:h,nbf:p,resources:g},requester:{publicKey:M,metadata:this.client.metadata},expiryTimestamp:T},D={eip155:{chains:n,methods:d(new Set(["personal_sign"].concat(d(m)))),events:["chainChanged","accountsChanged"]}},C={requiredNamespaces:{},optionalNamespaces:D,relays:[{protocol:"irn"}],proposer:{publicKey:M,metadata:this.client.metadata},expiryTimestamp:T},O=Object(a.f)(j.wc_sessionAuthenticate.req.ttl,"Request expired"),z=O.done,P=O.resolve,B=O.reject,R=function(t){return x(W,[t],(function(t){var e=this,n=t.error,r=t.session;return f().mark((function t(){var i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.events.off(Object(a.n)("session_request",Q),U),!n){t.next=4;break}B(n),t.next=16;break;case 4:if(!r){t.next=16;break}return r.self.publicKey=M,t.next=8,e.client.session.set(r.topic,r);case 8:return t.next=10,e.setExpiry(r.topic,r.expiry);case 10:if(t.t0=w,!t.t0){t.next=14;break}return t.next=14,e.client.core.pairing.updateMetadata({topic:w,metadata:r.peer.metadata});case 14:i=e.client.session.get(r.topic),P({session:i});case 16:case"end":return t.stop()}}),t)}))()}))},U=function(t){return x(W,null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,p,y,m,g,v,b,A,N,E,x,k;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=3;break}return n=Object(a.G)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate"),e.abrupt("return",t.error.code===n.code?void 0:(this.events.off(Object(a.n)("session_connect"),R),B(t.error.message)));case 3:this.events.off(Object(a.n)("session_connect"),R),r=t.result,i=r.cacaos,o=r.responder,s=[],u=[],c=I(i),e.prev=6,c.s();case 8:if((l=c.n()).done){e.next=20;break}return h=l.value,e.next=12,Object(a.xb)({cacao:h,projectId:this.client.core.projectId});case 12:if(e.t0=e.sent,e.t0){e.next=15;break}this.client.logger.error(h,"Signature verification failed"),B(Object(a.G)("SESSION_SETTLEMENT_FAILED","Signature verification failed"));case 15:for(p=h.p,y=Object(a.D)(p.resources),m=[Object(a.C)(p.iss)],g=Object(a.z)(p.iss),y&&(v=Object(a.B)(y),b=Object(a.x)(y),s.push.apply(s,d(v)),m.push.apply(m,d(b))),A=0,N=m;A0,!e.t2){e.next=39;break}return k={topic:x,acknowledged:!0,self:{publicKey:M,metadata:this.client.metadata},peer:o,controller:o.publicKey,expiry:Object(a.e)(S),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:w,namespaces:Object(a.d)(d(new Set(s)),d(new Set(u)))},e.next=36,this.client.core.relayer.subscribe(x);case 36:return e.next=38,this.client.session.set(x,k);case 38:k=this.client.session.get(x);case 39:P({auths:i,session:k});case 40:case"end":return e.stop()}}),e,this,[[6,22,25,28]])})))},Q=Object(l.payloadId)(),Y=Object(l.payloadId)(),this.events.once(Object(a.n)("session_connect"),R),this.events.once(Object(a.n)("session_request",Q),U),e.prev=34,e.next=37,Promise.all([this.sendRequest({topic:w,method:"wc_sessionAuthenticate",params:L,expiry:t.expiry,throwOnFailedPublish:!0,clientRpcId:Q}),this.sendRequest({topic:w,method:"wc_sessionPropose",params:C,expiry:j.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:Y})]);case 37:e.next=42;break;case 39:throw e.prev=39,e.t0=e.catch(34),this.events.off(Object(a.n)("session_connect"),R),this.events.off(Object(a.n)("session_request",Q),U),e.t0;case 42:return e.next=44,this.setProposal(Y,V({id:Y},C));case 44:return e.next=46,this.client.auth.requests.set(Q,{authPayload:L.authPayload,requester:L.requester,expiryTimestamp:T,id:Q,pairingTopic:w,verifyContext:{}});case 46:return e.abrupt("return",{uri:b,response:z});case 47:case"end":return e.stop()}}),e,this,[[34,39]])})))},n.approveSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,p,y,m,g,v,w,b,M,A,N,E,x,k,T,L;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitialized(),n=t.id,r=t.auths,i=this.getPendingAuthRequest(n)){e.next=4;break}throw new Error("Could not find pending auth request with id ".concat(n));case 4:return o=i.requester.publicKey,e.next=7,this.client.core.crypto.generateKeyPair();case 7:s=e.sent,u=Object(a.I)(o),c={type:a.c,receiverPublicKey:o,senderPublicKey:s},l=[],h=[],p=I(r),e.prev=13,p.s();case 15:if((y=p.n()).done){e.next=29;break}return m=y.value,e.next=19,Object(a.xb)({cacao:m,projectId:this.client.core.projectId});case 19:if(e.sent){e.next=24;break}return g=Object(a.G)("SESSION_SETTLEMENT_FAILED","Signature verification failed"),e.next=23,this.sendError({id:n,topic:u,error:g,encodeOpts:c});case 23:throw new Error(g.message);case 24:for(v=m.p,w=Object(a.D)(v.resources),b=[Object(a.C)(v.iss)],M=Object(a.z)(v.iss),w&&(A=Object(a.B)(w),N=Object(a.x)(w),l.push.apply(l,d(A)),b.push.apply(b,d(N))),E=0,x=b;E0,!e.t1){e.next=47;break}return L={topic:T,acknowledged:!0,self:{publicKey:s,metadata:this.client.metadata},peer:{publicKey:o,metadata:i.requester.metadata},controller:o,expiry:Object(a.e)(S),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:Object(a.d)(d(new Set(l)),d(new Set(h)))},e.next=45,this.client.core.relayer.subscribe(T);case 45:return e.next=47,this.client.session.set(T,L);case 47:return e.next=49,this.sendResult({topic:u,id:n,result:{cacaos:r,responder:{publicKey:s,metadata:this.client.metadata}},encodeOpts:c,throwOnFailedPublish:!0});case 49:return e.next=51,this.client.auth.requests.delete(n,{message:"fullfilled",code:0});case 51:return e.next=53,this.client.core.pairing.activate({topic:i.pairingTopic});case 53:return e.abrupt("return",{session:L});case 54:case"end":return e.stop()}}),e,this,[[13,31,34,37]])})))},n.rejectSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:if(n=t.id,r=t.reason,i=this.getPendingAuthRequest(n)){e.next=5;break}throw new Error("Could not find pending auth request with id ".concat(n));case 5:return o=i.requester.publicKey,e.next=8,this.client.core.crypto.generateKeyPair();case 8:return s=e.sent,u=Object(a.I)(o),c={type:a.c,receiverPublicKey:o,senderPublicKey:s},e.next=13,this.sendError({id:n,topic:u,error:r,encodeOpts:c});case 13:return e.next=15,this.client.auth.requests.delete(n,{message:"rejected",code:0});case 15:return e.next=17,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 17:case"end":return e.stop()}}),e,this)})))},n.formatAuthMessage=function(t){n.isInitialized();var e=t.request,r=t.iss;return Object(a.p)(e,r)},n.cleanupDuplicatePairings=function(t){return x(w(n),null,f().mark((function e(){var n,r,i=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.pairingTopic){e.next=14;break}if(e.prev=1,n=this.client.core.pairing.pairings.get(t.pairingTopic),0!==(r=this.client.core.pairing.pairings.getAll().filter((function(e){var r,i;return(null==(r=e.peerMetadata)?void 0:r.url)&&(null==(i=e.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&e.topic&&e.topic!==n.topic}))).length){e.next=5;break}return e.abrupt("return");case 5:return this.client.logger.info("Cleaning up ".concat(r.length," duplicate pairing(s)")),e.next=8,Promise.all(r.map((function(t){return i.client.core.pairing.disconnect({topic:t.topic})})));case 8:this.client.logger.info("Duplicate pairings clean up finished"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),this.client.logger.error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})))},n.deleteSession=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.expirerHasDeleted,i=void 0!==r&&r,o=t.emitEvent,s=void 0===o||o,u=t.id,c=void 0===u?0:u,l=this.client.session.get(n),h=l.self,e.next=3,this.client.core.relayer.unsubscribe(n);case 3:return e.next=5,this.client.session.delete(n,Object(a.G)("USER_DISCONNECTED"));case 5:if(this.addToRecentlyDeleted(n,"session"),e.t0=this.client.core.crypto.keychain.has(h.publicKey),!e.t0){e.next=10;break}return e.next=10,this.client.core.crypto.deleteKeyPair(h.publicKey);case 10:if(e.t1=this.client.core.crypto.keychain.has(n),!e.t1){e.next=14;break}return e.next=14,this.client.core.crypto.deleteSymKey(n);case 14:i||this.client.core.expirer.del(n),this.client.core.storage.removeItem(L).catch((function(t){return d.client.logger.warn(t)})),this.getPendingSessionRequests().forEach((function(t){t.topic===n&&d.deletePendingSessionRequest(t.id,Object(a.G)("USER_DISCONNECTED"))})),s&&this.client.events.emit("session_delete",{id:c,topic:n});case 18:case"end":return e.stop()}}),e,this)})))},n.deleteProposal=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([this.client.proposal.delete(t,Object(a.G)("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)]);case 2:this.addToRecentlyDeleted(t,"proposal");case 3:case"end":return n.stop()}}),n,this)})))},n.deletePendingSessionRequest=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]);case 2:this.addToRecentlyDeleted(t,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((function(e){return e.id!==t})),r&&(this.sessionRequestQueue.state=C,this.client.events.emit("session_request_expire",{id:t}));case 5:case"end":return n.stop()}}),n,this)})))},n.setExpiry=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=this.client.session.keys.includes(t),!n.t0){n.next=4;break}return n.next=4,this.client.session.update(t,{expiry:e});case 4:this.client.core.expirer.set(t,e);case 5:case"end":return n.stop()}}),n,this)})))},n.setProposal=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.client.proposal.set(t,e);case 2:this.client.core.expirer.set(t,Object(a.e)(j.wc_sessionPropose.req.ttl));case 3:case"end":return n.stop()}}),n,this)})))},n.setPendingSessionRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.params,o=t.verifyContext,s=i.request.expiryTimestamp||Object(a.e)(j.wc_sessionRequest.req.ttl),e.next=3,this.client.pendingRequest.set(n,{id:n,topic:r,params:i,verifyContext:o});case 3:s&&this.client.core.expirer.set(n,s);case 4:case"end":return e.stop()}}),e,this)})))},n.sendRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p,y,m=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.method,i=t.params,o=t.expiry,s=t.relayRpcId,u=t.clientRpcId,c=t.throwOnFailedPublish,h=Object(l.formatJsonRpcRequest)(r,i,u),Object(a.K)()&&z.includes(r)&&(d=Object(a.J)(JSON.stringify(h)),this.client.core.verify.register({attestationId:d})),e.prev=2,e.next=5,this.client.core.crypto.encode(n,h);case 5:p=e.sent,e.next=14;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,this.cleanup();case 12:throw this.client.logger.error("sendRequest() -> core.crypto.encode() for topic ".concat(n," failed")),e.t0;case 14:if(y=j[r].req,o&&(y.ttl=o),s&&(y.id=s),this.client.core.history.set(n,h),!c){e.next=24;break}return y.internal=H(V({},y.internal),{throwOnFailedPublish:!0}),e.next=22,this.client.core.relayer.publish(n,p,y);case 22:e.next=25;break;case 24:this.client.core.relayer.publish(n,p,y).catch((function(t){return m.client.logger.error(t)}));case 25:return e.abrupt("return",h.id);case 26:case"end":return e.stop()}}),e,this,[[2,8]])})))},n.sendResult=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,a,s,u,c,h,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.result,o=t.throwOnFailedPublish,a=t.encodeOpts,s=Object(l.formatJsonRpcResult)(n,i),e.prev=1,e.next=4,this.client.core.crypto.encode(r,s,a);case 4:u=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this.cleanup();case 11:throw this.client.logger.error("sendResult() -> core.crypto.encode() for topic ".concat(r," failed")),e.t0;case 13:return e.prev=13,e.next=16,this.client.core.history.get(r,n);case 16:c=e.sent,e.next=22;break;case 19:throw e.prev=19,e.t1=e.catch(13),this.client.logger.error("sendResult() -> history.get(".concat(r,", ").concat(n,") failed")),e.t1;case 22:if(h=j[c.request.method].res,!o){e.next=29;break}return h.internal=H(V({},h.internal),{throwOnFailedPublish:!0}),e.next=27,this.client.core.relayer.publish(r,u,h);case 27:e.next=30;break;case 29:this.client.core.relayer.publish(r,u,h).catch((function(t){return d.client.logger.error(t)}));case 30:return e.next=32,this.client.core.history.resolve(s);case 32:case"end":return e.stop()}}),e,this,[[1,7],[13,19]])})))},n.sendError=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,a,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.error,o=t.encodeOpts,a=Object(l.formatJsonRpcError)(n,i),e.prev=1,e.next=4,this.client.core.crypto.encode(r,a,o);case 4:s=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this.cleanup();case 11:throw this.client.logger.error("sendError() -> core.crypto.encode() for topic ".concat(r," failed")),e.t0;case 13:return e.prev=13,e.next=16,this.client.core.history.get(r,n);case 16:u=e.sent,e.next=22;break;case 19:throw e.prev=19,e.t1=e.catch(13),this.client.logger.error("sendError() -> history.get(".concat(r,", ").concat(n,") failed")),e.t1;case 22:return c=j[u.request.method].res,this.client.core.relayer.publish(r,s,c),e.next=26,this.client.core.history.resolve(a);case 26:case"end":return e.stop()}}),e,this,[[1,7],[13,19]])})))},n.cleanup=function(){return x(w(n),null,f().mark((function t(){var e,n,r=this;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=[],this.client.session.getAll().forEach((function(t){var n=!1;Object(a.M)(t.expiry)&&(n=!0),r.client.core.crypto.keychain.has(t.topic)||(n=!0),n&&e.push(t.topic)})),this.client.proposal.getAll().forEach((function(t){Object(a.M)(t.expiryTimestamp)&&n.push(t.id)})),t.next=5,Promise.all([].concat(d(e.map((function(t){return r.deleteSession({topic:t})}))),d(n.map((function(t){return r.deleteProposal(t)})))));case 5:case"end":return t.stop()}}),t,this)})))},n.onRelayEventRequest=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.requestQueue.queue.push(t),e.next=3,this.processRequestsQueue();case 3:case"end":return e.stop()}}),e,this)})))},n.processRequestsQueue=function(){return x(w(n),null,f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.requestQueue.state!==O){t.next=3;break}return this.client.logger.info("Request queue already active, skipping..."),t.abrupt("return");case 3:this.client.logger.info("Request queue starting with ".concat(this.requestQueue.queue.length," requests"));case 4:if(!(this.requestQueue.queue.length>0)){t.next=19;break}if(this.requestQueue.state=O,!(e=this.requestQueue.queue.shift())){t.next=17;break}return t.prev=8,this.processRequest(e),t.next=12,new Promise((function(t){return setTimeout(t,300)}));case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(8),this.client.logger.warn(t.t0);case 17:t.next=4;break;case 19:this.requestQueue.state=C;case 20:case"end":return t.stop()}}),t,this,[[8,14]])})))},n.processRequest=function(t){var e=t.topic,r=t.payload,i=r.method;if(!n.shouldIgnorePairingRequest({topic:e,requestMethod:i}))switch(i){case"wc_sessionPropose":return n.onSessionProposeRequest(e,r);case"wc_sessionSettle":return n.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return n.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return n.onSessionExtendRequest(e,r);case"wc_sessionPing":return n.onSessionPingRequest(e,r);case"wc_sessionDelete":return n.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return n.onSessionRequest(e,r);case"wc_sessionEvent":return n.onSessionEventRequest(e,r);case"wc_sessionAuthenticate":return n.onSessionAuthenticateRequest(e,r);default:return n.client.logger.info("Unsupported request method ".concat(i))}},n.onRelayEventResponse=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.payload,e.next=4,this.client.core.history.get(n,r.id);case 4:i=e.sent.request.method,e.t0=i,e.next="wc_sessionPropose"===e.t0?8:"wc_sessionSettle"===e.t0?9:"wc_sessionUpdate"===e.t0?10:"wc_sessionExtend"===e.t0?11:"wc_sessionPing"===e.t0?12:"wc_sessionRequest"===e.t0?13:"wc_sessionAuthenticate"===e.t0?14:15;break;case 8:return e.abrupt("return",this.onSessionProposeResponse(n,r));case 9:return e.abrupt("return",this.onSessionSettleResponse(n,r));case 10:return e.abrupt("return",this.onSessionUpdateResponse(n,r));case 11:return e.abrupt("return",this.onSessionExtendResponse(n,r));case 12:return e.abrupt("return",this.onSessionPingResponse(n,r));case 13:return e.abrupt("return",this.onSessionRequestResponse(n,r));case 14:return e.abrupt("return",this.onSessionAuthenticateResponse(n,r));case 15:return e.abrupt("return",this.client.logger.info("Unsupported response method ".concat(i)));case 16:case"end":return e.stop()}}),e,this)})))},n.onRelayEventUnknownPayload=function(t){var e=t.topic,n=Object(a.A)("MISSING_OR_INVALID","Decoded payload on topic ".concat(e," is not identifiable as a JSON-RPC request or a response.")).message;throw new Error(n)},n.shouldIgnorePairingRequest=function(t){var e=t.topic,r=t.requestMethod,i=n.expectedPairingMethodMap.get(e);return!(!i||i.includes(r)||!(i.includes("wc_sessionAuthenticate")&&n.client.events.listenerCount("session_authenticate")>0))},n.onSessionProposeRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.params,i=e.id,n.prev=1,this.isValidConnect(V({},e.params)),o=r.expiryTimestamp||Object(a.e)(j.wc_sessionPropose.req.ttl),s=V({id:i,pairingTopic:t,expiryTimestamp:o},r),n.next=6,this.setProposal(i,s);case 6:return u=Object(a.J)(JSON.stringify(e)),n.next=9,this.getVerifyContext(u,s.proposer.metadata);case 9:c=n.sent,this.client.events.emit("session_proposal",{id:i,params:s,verifyContext:c}),n.next=18;break;case 13:return n.prev=13,n.t0=n.catch(1),n.next=17,this.sendError({id:i,topic:t,error:n.t0});case 17:this.client.logger.error(n.t0);case 18:case"end":return n.stop()}}),n,this,[[1,13]])})))},n.onSessionProposeResponse=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,h,d;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,!Object(l.isJsonRpcResult)(e)){n.next=22;break}return i=e.result,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i}),o=this.client.proposal.get(r),this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:o}),s=o.proposer.publicKey,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s}),u=i.responderPublicKey,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u}),n.next=12,this.client.core.crypto.generateSharedKey(s,u);case 12:return c=n.sent,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:c}),n.next=16,this.client.core.relayer.subscribe(c);case 16:return h=n.sent,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:h}),n.next=20,this.client.core.pairing.activate({topic:t});case 20:n.next=29;break;case 22:if(!Object(l.isJsonRpcError)(e)){n.next=29;break}return n.next=25,this.client.proposal.delete(r,Object(a.G)("USER_DISCONNECTED"));case 25:if(d=Object(a.n)("session_connect"),0!==this.events.listenerCount(d)){n.next=28;break}throw new Error("emitting ".concat(d," without any listeners, 954"));case 28:this.events.emit(Object(a.n)("session_connect"),{error:e.error});case 29:case"end":return n.stop()}}),n,this)})))},n.onSessionSettleRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,l,h,d,p,y,m;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,i=e.params,n.prev=1,this.isValidSessionSettleRequest(i),o=e.params,s=o.relay,u=o.controller,c=o.expiry,l=o.namespaces,h=o.sessionProperties,d=o.pairingTopic,p=o.sessionConfig,y=V(V({topic:t,relay:s,expiry:c,namespaces:l,acknowledged:!0,pairingTopic:d,requiredNamespaces:{},optionalNamespaces:{},controller:u.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:u.publicKey,metadata:u.metadata}},h&&{sessionProperties:h}),p&&{sessionConfig:p}),n.next=6,this.sendResult({id:e.id,topic:t,result:!0,throwOnFailedPublish:!0});case 6:if(m=Object(a.n)("session_connect"),0!==this.events.listenerCount(m)){n.next=9;break}throw new Error("emitting ".concat(m," without any listeners 997"));case 9:this.events.emit(Object(a.n)("session_connect"),{session:y}),this.cleanupDuplicatePairings(y),n.next=17;break;case 12:return n.prev=12,n.t0=n.catch(1),n.next=16,this.sendError({id:r,topic:t,error:n.t0});case 16:this.client.logger.error(n.t0);case 17:case"end":return n.stop()}}),n,this,[[1,12]])})))},n.onSessionSettleResponse=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,!Object(l.isJsonRpcResult)(e)){n.next=7;break}return n.next=4,this.client.session.update(t,{acknowledged:!0});case 4:this.events.emit(Object(a.n)("session_approve",r),{}),n.next=12;break;case 7:if(n.t0=Object(l.isJsonRpcError)(e),!n.t0){n.next=12;break}return n.next=11,this.client.session.delete(t,Object(a.G)("USER_DISCONNECTED"));case 11:this.events.emit(Object(a.n)("session_approve",r),{error:e.error});case 12:case"end":return n.stop()}}),n,this)})))},n.onSessionUpdateRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.params,i=e.id,n.prev=1,o="".concat(t,"_session_update"),!(s=a.b.get(o))||!this.isRequestOutOfSync(s,i)){n.next=6;break}return this.client.logger.info("Discarding out of sync request - ".concat(i)),this.sendError({id:i,topic:t,error:Object(a.G)("INVALID_UPDATE_REQUEST")}),n.abrupt("return");case 6:return this.isValidUpdate(V({topic:t},r)),n.prev=7,a.b.set(o,i),n.next=11,this.client.session.update(t,{namespaces:r.namespaces});case 11:return n.next=13,this.sendResult({id:i,topic:t,result:!0,throwOnFailedPublish:!0});case 13:n.next=18;break;case 15:throw n.prev=15,n.t0=n.catch(7),a.b.delete(o),n.t0;case 18:this.client.events.emit("session_update",{id:i,topic:t,params:r}),n.next=26;break;case 21:return n.prev=21,n.t1=n.catch(1),n.next=25,this.sendError({id:i,topic:t,error:n.t1});case 25:this.client.logger.error(n.t1);case 26:case"end":return n.stop()}}),n,this,[[1,21],[7,15]])})))},n.isRequestOutOfSync=function(t,e){return parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3))},n.onSessionUpdateResponse=function(t,e){var r=e.id,i=Object(a.n)("session_update",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_update",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_update",r),{error:e.error})},n.onSessionExtendRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidExtend({topic:t}),n.next=5,this.setExpiry(t,Object(a.e)(S));case 5:return n.next=7,this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0});case 7:this.client.events.emit("session_extend",{id:r,topic:t}),n.next=15;break;case 10:return n.prev=10,n.t0=n.catch(1),n.next=14,this.sendError({id:r,topic:t,error:n.t0});case 14:this.client.logger.error(n.t0);case 15:case"end":return n.stop()}}),n,this,[[1,10]])})))},n.onSessionExtendResponse=function(t,e){var r=e.id,i=Object(a.n)("session_extend",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_extend",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_extend",r),{error:e.error})},n.onSessionPingRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidPing({topic:t}),n.next=5,this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0});case 5:this.client.events.emit("session_ping",{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError({id:r,topic:t,error:n.t0});case 12:this.client.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},n.onSessionPingResponse=function(t,e){var r=e.id,i=Object(a.n)("session_ping",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));setTimeout((function(){Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_ping",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_ping",r),{error:e.error})}),500)},n.onSessionDeleteRequest=function(t,e){return x(w(n),null,f().mark((function n(){var i,o=this;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.id,n.prev=1,this.isValidDisconnect({topic:t,reason:e.params}),n.next=5,Promise.all([new Promise((function(e){o.client.core.relayer.once(r.e.publish,(function(){return x(o,null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=e,n.next=3,this.deleteSession({topic:t,id:i});case 3:n.t1=n.sent,(0,n.t0)(n.t1);case 5:case"end":return n.stop()}}),n,this)})))}))})),this.sendResult({id:i,topic:t,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:t,error:Object(a.G)("USER_DISCONNECTED")})]);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),this.client.logger.error(n.t0);case 10:case"end":return n.stop()}}),n,this,[[1,7]])})))},n.onSessionRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,i=e.params,n.prev=1,n.next=4,this.isValidRequest(V({topic:t},i));case 4:return o=Object(a.J)(JSON.stringify(Object(l.formatJsonRpcRequest)("wc_sessionRequest",i,r))),s=this.client.session.get(t),n.next=8,this.getVerifyContext(o,s.peer.metadata);case 8:return u=n.sent,c={id:r,topic:t,params:i,verifyContext:u},n.next=12,this.setPendingSessionRequest(c);case 12:this.addSessionRequestToSessionRequestQueue(c),this.processSessionRequestQueue(),n.next=21;break;case 16:return n.prev=16,n.t0=n.catch(1),n.next=20,this.sendError({id:r,topic:t,error:n.t0});case 20:this.client.logger.error(n.t0);case 21:case"end":return n.stop()}}),n,this,[[1,16]])})))},n.onSessionRequestResponse=function(t,e){var r=e.id,i=Object(a.n)("session_request",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_request",r),{result:e.result}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_request",r),{error:e.error})},n.onSessionEventRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,i=e.params,n.prev=1,o="".concat(t,"_session_event_").concat(i.event.name),!(s=a.b.get(o))||!this.isRequestOutOfSync(s,r)){n.next=6;break}return this.client.logger.info("Discarding out of sync request - ".concat(r)),n.abrupt("return");case 6:this.isValidEmit(V({topic:t},i)),this.client.events.emit("session_event",{id:r,topic:t,params:i}),a.b.set(o,r),n.next=14;break;case 9:return n.prev=9,n.t0=n.catch(1),n.next=13,this.sendError({id:r,topic:t,error:n.t0});case 13:this.client.logger.error(n.t0);case 14:case"end":return n.stop()}}),n,this,[[1,9]])})))},n.onSessionAuthenticateResponse=function(t,e){var r=e.id;n.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:t,payload:e}),Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_request",r),{result:e.result}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_request",r),{error:e.error})},n.onSessionAuthenticateRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,l;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.params,i=r.requester,o=r.authPayload,s=r.expiryTimestamp,u=Object(a.J)(JSON.stringify(e)),n.next=7,this.getVerifyContext(u,this.client.metadata);case 7:return c=n.sent,l={requester:i,pairingTopic:t,id:e.id,authPayload:o,verifyContext:c,expiryTimestamp:s},n.next=11,this.client.auth.requests.set(e.id,l);case 11:this.client.events.emit("session_authenticate",{topic:t,params:e.params,id:e.id});case 12:case"end":return n.stop()}}),n,this)})))},n.addSessionRequestToSessionRequestQueue=function(t){n.sessionRequestQueue.queue.push(t)},n.cleanupAfterResponse=function(t){n.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((function(){n.sessionRequestQueue.state=C,n.processSessionRequestQueue()}),Object(c.toMiliseconds)(n.requestQueueDelay))},n.cleanupPendingSentRequestsForTopic=function(t){var e=t.topic,r=t.error,i=n.client.core.history.pending;i.length>0&&i.filter((function(t){return t.topic===e&&"wc_sessionRequest"===t.request.method})).forEach((function(t){var e=t.request.id,i=Object(a.n)("session_request",e);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));n.events.emit(Object(a.n)("session_request",t.request.id),{error:r})}))},n.processSessionRequestQueue=function(){if(n.sessionRequestQueue.state!==O){var t=n.sessionRequestQueue.queue[0];if(t)try{n.sessionRequestQueue.state=O,n.client.events.emit("session_request",t)}catch(t){n.client.logger.error(t)}else n.client.logger.info("session request queue is empty.")}else n.client.logger.info("session request queue is already active.")},n.onPairingCreated=function(t){if(t.methods&&n.expectedPairingMethodMap.set(t.topic,t.methods),!t.active){var e=n.client.proposal.getAll().find((function(e){return e.pairingTopic===t.topic}));e&&n.onSessionProposeRequest(t.topic,Object(l.formatJsonRpcRequest)("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))}},n.isValidConnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","connect() params: ".concat(JSON.stringify(t))),r=n.message,new Error(r);case 3:if(i=t.pairingTopic,o=t.requiredNamespaces,s=t.optionalNamespaces,u=t.sessionProperties,c=t.relays,e.t0=Object(a.U)(i),e.t0){e.next=8;break}return e.next=8,this.isValidPairingTopic(i);case 8:if(Object(a.hb)(c,!0)){e.next=11;break}throw l=Object(a.A)("MISSING_OR_INVALID","connect() relays: ".concat(c)),h=l.message,new Error(h);case 11:!Object(a.U)(o)&&0!==Object(a.eb)(o)&&this.validateNamespaces(o,"requiredNamespaces"),!Object(a.U)(s)&&0!==Object(a.eb)(s)&&this.validateNamespaces(s,"optionalNamespaces"),Object(a.U)(u)||this.validateSessionProps(u,"sessionProperties");case 12:case"end":return e.stop()}}),e,this)})))},n.validateNamespaces=function(t,e){var n=Object(a.kb)(t,"connect()",e);if(n)throw new Error(n.message)},n.isValidApprove=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=2;break}throw new Error(Object(a.A)("MISSING_OR_INVALID","approve() params: ".concat(t)).message);case 2:return n=t.id,r=t.namespaces,i=t.relayProtocol,o=t.sessionProperties,this.checkRecentlyDeleted(n),e.next=6,this.isValidProposalId(n);case 6:if(s=this.client.proposal.get(n),!(u=Object(a.ab)(r,"approve()"))){e.next=9;break}throw new Error(u.message);case 9:if(!(c=Object(a.L)(s.requiredNamespaces,r,"approve()"))){e.next=12;break}throw new Error(c.message);case 12:if(Object(a.mb)(i,!0)){e.next=15;break}throw l=Object(a.A)("MISSING_OR_INVALID","approve() relayProtocol: ".concat(i)),h=l.message,new Error(h);case 15:Object(a.U)(o)||this.validateSessionProps(o,"sessionProperties");case 16:case"end":return e.stop()}}),e,this)})))},n.isValidReject=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","reject() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.id,o=t.reason,this.checkRecentlyDeleted(i),e.next=7,this.isValidProposalId(i);case 7:if(Object(a.X)(o)){e.next=10;break}throw s=Object(a.A)("MISSING_OR_INVALID","reject() reason: ".concat(JSON.stringify(o))),u=s.message,new Error(u);case 10:case"end":return e.stop()}}),e,this)})))},n.isValidSessionSettleRequest=function(t){if(!Object(a.fb)(t)){var e=Object(a.A)("MISSING_OR_INVALID","onSessionSettleRequest() params: ".concat(t)).message;throw new Error(e)}var n=t.relay,r=t.controller,i=t.namespaces,o=t.expiry;if(!Object(a.gb)(n)){var s=Object(a.A)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string").message;throw new Error(s)}var u=Object(a.W)(r,"onSessionSettleRequest()");if(u)throw new Error(u.message);var c=Object(a.ab)(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(Object(a.M)(o)){var l=Object(a.A)("EXPIRED","onSessionSettleRequest()").message;throw new Error(l)}},n.isValidUpdate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","update() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.namespaces,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:if(s=this.client.session.get(i),!(u=Object(a.ab)(o,"update()"))){e.next=10;break}throw new Error(u.message);case 10:if(!(c=Object(a.L)(s.requiredNamespaces,o,"update()"))){e.next=13;break}throw new Error(c.message);case 13:case"end":return e.stop()}}),e,this)})))},n.isValidExtend=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","extend() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:case"end":return e.stop()}}),e,this)})))},n.isValidRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m,g,v,w;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","request() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.request,s=t.chainId,u=t.expiry,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:if(c=this.client.session.get(i),l=c.namespaces,Object(a.bb)(l,s)){e.next=11;break}throw h=Object(a.A)("MISSING_OR_INVALID","request() chainId: ".concat(s)),d=h.message,new Error(d);case 11:if(Object(a.ib)(o)){e.next=14;break}throw p=Object(a.A)("MISSING_OR_INVALID","request() ".concat(JSON.stringify(o))),y=p.message,new Error(y);case 14:if(Object(a.db)(l,s,o.method)){e.next=17;break}throw m=Object(a.A)("MISSING_OR_INVALID","request() method: ".concat(o.method)),g=m.message,new Error(g);case 17:if(!u||Object(a.jb)(u,D)){e.next=20;break}throw v=Object(a.A)("MISSING_OR_INVALID","request() expiry: ".concat(u,". Expiry must be a number (in seconds) between ").concat(D.min," and ").concat(D.max)),w=v.message,new Error(w);case 20:case"end":return e.stop()}}),e,this)})))},n.isValidRespond=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw r=Object(a.A)("MISSING_OR_INVALID","respond() params: ".concat(t)),i=r.message,new Error(i);case 3:return o=t.topic,s=t.response,e.prev=4,e.next=7,this.isValidSessionTopic(o);case 7:e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(4),null!=(n=null==t?void 0:t.response)&&n.id&&this.cleanupAfterResponse(t),e.t0;case 12:if(Object(a.lb)(s)){e.next=15;break}throw u=Object(a.A)("MISSING_OR_INVALID","respond() response: ".concat(JSON.stringify(s))),c=u.message,new Error(c);case 15:case"end":return e.stop()}}),e,this,[[4,9]])})))},n.isValidPing=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","ping() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,e.next=6,this.isValidSessionOrPairingTopic(i);case 6:case"end":return e.stop()}}),e,this)})))},n.isValidEmit=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","emit() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.event,s=t.chainId,e.next=6,this.isValidSessionTopic(i);case 6:if(u=this.client.session.get(i),c=u.namespaces,Object(a.bb)(c,s)){e.next=10;break}throw l=Object(a.A)("MISSING_OR_INVALID","emit() chainId: ".concat(s)),h=l.message,new Error(h);case 10:if(Object(a.Y)(o)){e.next=13;break}throw d=Object(a.A)("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(o))),p=d.message,new Error(p);case 13:if(Object(a.cb)(c,s,o.name)){e.next=16;break}throw y=Object(a.A)("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(o))),m=y.message,new Error(m);case 16:case"end":return e.stop()}}),e,this)})))},n.isValidDisconnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","disconnect() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,e.next=6,this.isValidSessionOrPairingTopic(i);case 6:case"end":return e.stop()}}),e,this)})))},n.isValidAuthenticate=function(t){var e=t.chains,n=t.uri,r=t.domain,i=t.nonce;if(!Array.isArray(e)||0===e.length)throw new Error("chains is required and must be a non-empty array");if(!Object(a.mb)(n,!1))throw new Error("uri is required parameter");if(!Object(a.mb)(r,!1))throw new Error("domain is required parameter");if(!Object(a.mb)(i,!1))throw new Error("nonce is required parameter");if(d(new Set(e.map((function(t){return Object(a.rb)(t).namespace})))).length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");if("eip155"!==Object(a.rb)(e[0]).namespace)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},n.getVerifyContext=function(t,e){return x(w(n),null,f().mark((function n(){var i,o;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={verified:{verifyUrl:e.verifyUrl||r.g,validation:"UNKNOWN",origin:e.url||""}},n.prev=1,n.next=4,this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});case 4:(o=n.sent)&&(i.verified.origin=o.origin,i.verified.isScam=o.isScam,i.verified.validation=o.origin===new URL(e.url).origin?"VALID":"INVALID"),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),this.client.logger.info(n.t0);case 11:return n.abrupt("return",(this.client.logger.info("Verify context: ".concat(JSON.stringify(i))),i));case 12:case"end":return n.stop()}}),n,this,[[1,8]])})))},n.validateSessionProps=function(t,e){Object.values(t).forEach((function(t){if(!Object(a.mb)(t,!1)){var n=Object(a.A)("MISSING_OR_INVALID","".concat(e," must be in Record format. Received: ").concat(JSON.stringify(t))).message;throw new Error(n)}}))},n.getPendingAuthRequest=function(t){var e=n.client.auth.requests.get(t);return"object"==h(e)?e:void 0},n.addToRecentlyDeleted=function(t,e){if(n.recentlyDeletedMap.set(t,e),n.recentlyDeletedMap.size>=n.recentlyDeletedLimit){var r,i=0,o=n.recentlyDeletedLimit/2,a=I(n.recentlyDeletedMap.keys());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i++>=o)break;n.recentlyDeletedMap.delete(s)}}catch(t){a.e(t)}finally{a.f()}}},n.checkRecentlyDeleted=function(t){var e=n.recentlyDeletedMap.get(t);if(e){var r=Object(a.A)("MISSING_OR_INVALID","Record was recently deleted - ".concat(e,": ").concat(t)).message;throw new Error(r)}},n}return M(e,t),m(e,[{key:"isInitialized",value:function(){return x(this,null,f().mark((function t(){var e,n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=3;break}throw e=Object(a.A)("NOT_INITIALIZED",this.name),n=e.message,new Error(n);case 3:return t.next=5,this.client.core.relayer.confirmOnlineStateOrThrow();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"registerRelayerEvents",value:function(){var t=this;this.client.core.relayer.on(r.e.message,(function(e){return x(t,null,f().mark((function t(){var n,r,i,o,a;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.topic,r=e.message,i=this.client.auth.authKeys.keys.includes(_)?this.client.auth.authKeys.get(_):{responseTopic:void 0,publicKey:void 0},o=i.publicKey,t.next=6,this.client.core.crypto.decode(n,r,{receiverPublicKey:o});case 6:if(a=t.sent,t.prev=7,!Object(l.isJsonRpcRequest)(a)){t.next=12;break}this.client.core.history.set(n,a),this.onRelayEventRequest({topic:n,payload:a}),t.next=21;break;case 12:if(!Object(l.isJsonRpcResponse)(a)){t.next=20;break}return t.next=15,this.client.core.history.resolve(a);case 15:return t.next=17,this.onRelayEventResponse({topic:n,payload:a});case 17:this.client.core.history.delete(n,a.id),t.next=21;break;case 20:this.onRelayEventUnknownPayload({topic:n,payload:a});case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(7),this.client.logger.error(t.t0);case 26:case"end":return t.stop()}}),t,this,[[7,23]])})))}))}},{key:"registerExpirerEvents",value:function(){var t=this;this.client.core.expirer.on(r.b.expired,(function(e){return x(t,null,f().mark((function t(){var n,r,i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object(a.sb)(e.target),r=n.topic,!(i=n.id)||!this.client.pendingRequest.keys.includes(i)){t.next=5;break}return t.next=4,this.deletePendingSessionRequest(i,Object(a.A)("EXPIRED"),!0);case 4:return t.abrupt("return",t.sent);case 5:if(!r){t.next=13;break}if(t.t0=this.client.session.keys.includes(r),!t.t0){t.next=11;break}return t.next=10,this.deleteSession({topic:r,expirerHasDeleted:!0});case 10:this.client.events.emit("session_expire",{topic:r});case 11:t.next=18;break;case 13:if(t.t1=i,!t.t1){t.next=18;break}return t.next=17,this.deleteProposal(i,!0);case 17:this.client.events.emit("proposal_expire",{id:i});case 18:case"end":return t.stop()}}),t,this)})))}))}},{key:"registerPairingEvents",value:function(){var t=this;this.client.core.pairing.events.on(r.c.create,(function(e){return t.onPairingCreated(e)})),this.client.core.pairing.events.on(r.c.delete,(function(e){t.addToRecentlyDeleted(e.topic,"pairing")}))}},{key:"isValidPairingTopic",value:function(t){if(!Object(a.mb)(t,!1)){var e=Object(a.A)("MISSING_OR_INVALID","pairing topic should be a string: ".concat(t)).message;throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){var n=Object(a.A)("NO_MATCHING_KEY","pairing topic doesn't exist: ".concat(t)).message;throw new Error(n)}if(Object(a.M)(this.client.core.pairing.pairings.get(t).expiry)){var r=Object(a.A)("EXPIRED","pairing topic: ".concat(t)).message;throw new Error(r)}}},{key:"isValidSessionTopic",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o,s,u,c,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.mb)(t,!1)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","session topic should be a string: ".concat(t)),r=n.message,new Error(r);case 3:if(this.checkRecentlyDeleted(t),this.client.session.keys.includes(t)){e.next=6;break}throw i=Object(a.A)("NO_MATCHING_KEY","session topic doesn't exist: ".concat(t)),o=i.message,new Error(o);case 6:if(!Object(a.M)(this.client.session.get(t).expiry)){e.next=11;break}return e.next=9,this.deleteSession({topic:t});case 9:throw s=Object(a.A)("EXPIRED","session topic: ".concat(t)),u=s.message,new Error(u);case 11:if(this.client.core.crypto.keychain.has(t)){e.next=16;break}return c=Object(a.A)("MISSING_OR_INVALID","session topic does not exist in keychain: ".concat(t)),l=c.message,e.next=15,this.deleteSession({topic:t});case 15:throw new Error(l);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"isValidSessionOrPairingTopic",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.checkRecentlyDeleted(t),!this.client.session.keys.includes(t)){e.next=5;break}return e.next=3,this.isValidSessionTopic(t);case 3:e.next=16;break;case 5:if(!this.client.core.pairing.pairings.keys.includes(t)){e.next=9;break}this.isValidPairingTopic(t),e.next=16;break;case 9:if(!Object(a.mb)(t,!1)){e.next=14;break}throw n=Object(a.A)("NO_MATCHING_KEY","session or pairing topic doesn't exist: ".concat(t)),r=n.message,new Error(r);case 14:throw i=Object(a.A)("MISSING_OR_INVALID","session or pairing topic should be a string: ".concat(t)),o=i.message,new Error(o);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"isValidProposalId",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.Z)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","proposal id should be a number: ".concat(t)),r=n.message,new Error(r);case 3:if(this.client.proposal.keys.includes(t)){e.next=6;break}throw i=Object(a.A)("NO_MATCHING_KEY","proposal id doesn't exist: ".concat(t)),o=i.message,new Error(o);case 6:if(!Object(a.M)(this.client.proposal.get(t).expiryTimestamp)){e.next=11;break}return e.next=9,this.deleteProposal(t);case 9:throw s=Object(a.A)("EXPIRED","proposal id: ".concat(t)),u=s.message,new Error(u);case 11:case"end":return e.stop()}}),e,this)})))}}])}(o.c),q=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"proposal",k])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),Z=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"session",k])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),J=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"request",k,function(t){return t.id}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),X=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"authKeys",P,function(){return _}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),K=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"pairingTopics",P])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),$=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"requests",P,function(t){return t.id}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),tt=m((function t(e,n){p(this,t),this.core=e,this.logger=n,this.authKeys=new X(this.core,this.logger),this.pairingTopics=new K(this.core,this.logger),this.requests=new $(this.core,this.logger)}),[{key:"init",value:function(){return x(this,null,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.authKeys.init();case 2:return t.next=4,this.pairingTopics.init();case 4:return t.next=6,this.requests.init();case 6:case"end":return t.stop()}}),t,this)})))}}]),et=function(t){function e(t){var n;p(this,e),(n=v(this,e,[t])).protocol="wc",n.version=2,n.name=T,n.events=new s.EventEmitter,n.on=function(t,e){return n.events.on(t,e)},n.once=function(t,e){return n.events.once(t,e)},n.off=function(t,e){return n.events.off(t,e)},n.removeListener=function(t,e){return n.events.removeListener(t,e)},n.removeAllListeners=function(t){return n.events.removeAllListeners(t)},n.connect=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.connect(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.pair=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.pair(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.approve=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.approve(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.reject=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.reject(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.update=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.update(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.extend=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.extend(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.request=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.request(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.respond=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.respond(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.ping=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.ping(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.emit=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.emit(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.disconnect=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.disconnect(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.find=function(t){try{return n.engine.find(t)}catch(t){throw n.logger.error(t.message),t}},n.getPendingSessionRequests=function(){try{return n.engine.getPendingSessionRequests()}catch(t){throw n.logger.error(t.message),t}},n.authenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.authenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.formatAuthMessage=function(t){try{return n.engine.formatAuthMessage(t)}catch(t){throw n.logger.error(t.message),t}},n.approveSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.approveSessionAuthenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.rejectSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.rejectSessionAuthenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.name=(null==t?void 0:t.name)||T,n.metadata=(null==t?void 0:t.metadata)||Object(a.v)();var o=h(null==t?void 0:t.logger)<"u"&&"string"!=typeof(null==t?void 0:t.logger)?t.logger:Object(i.e)(Object(i.c)({level:(null==t?void 0:t.logger)||"error"}));return n.core=(null==t?void 0:t.core)||new r.a(t),n.logger=Object(i.a)(o,n.name),n.session=new Z(n.core,n.logger),n.proposal=new q(n.core,n.logger),n.pendingRequest=new J(n.core,n.logger),n.engine=new G(n),n.auth=new tt(n.core,n.logger),n}return M(e,t),m(e,[{key:"context",get:function(){return Object(i.d)(this.logger)}},{key:"pairing",get:function(){return this.core.pairing.pairings}},{key:"initialize",value:function(){return x(this,null,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),t.prev=1,t.next=4,this.core.start();case 4:return t.next=6,this.session.init();case 6:return t.next=8,this.proposal.init();case 8:return t.next=10,this.pendingRequest.init();case 10:return t.next=12,this.engine.init();case 12:return t.next=14,this.auth.init();case 14:this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success"),t.next=21;break;case 18:throw t.prev=18,t.t0=t.catch(1),this.logger.info("SignClient Initialization Failure"),this.logger.error(t.t0.message),t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,18]])})))}}],[{key:"init",value:function(t){return x(this,null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new e(t),n.next=3,r.initialize();case 3:return n.abrupt("return",r);case 4:case"end":return n.stop()}}),n)})))}}])}(o.i)}]);void 0===_I&&console.error("esm-webpack-plugin: nothing exported!"),_I.Core;const BI=_I.SignClient;var RI=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=125)}([function(t,e,n){n.d(e,"a",(function(){return i})); +e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){t.exports=t=>encodeURIComponent(t).replace(/[!'()*]/g,(t=>"%"+t.charCodeAt(0).toString(16).toUpperCase()))},function(t,e,n){var r=new RegExp("(%[a-f0-9]{2})|([^%]+?)","gi"),i=new RegExp("(%[a-f0-9]{2})+","gi");function o(t,e){try{return[decodeURIComponent(t.join(""))]}catch(t){}if(1===t.length)return t;e=e||1;var n=t.slice(0,e),r=t.slice(e);return Array.prototype.concat.call([],o(n),o(r))}function a(t){try{return decodeURIComponent(t)}catch(i){for(var e=t.match(r)||[],n=1;n{if("string"!=typeof t||"string"!=typeof e)throw new TypeError("Expected the arguments to be of type `string`");if(""===e)return[t];const n=t.indexOf(e);return-1===n?[t]:[t.slice(0,n),t.slice(n+e.length)]}},function(t,e,n){t.exports=function(t,e){for(var n={},r=Object.keys(t),i=Array.isArray(e),o=0;o>>16|C<<16)|0)>>>20|N<<12,E=(E^=L=L+(D=(D^=M=M+E|0)>>>16|D<<16)|0)>>>20|E<<12,x=(x^=S=S+(O=(O^=A=A+x|0)>>>16|O<<16)|0)>>>20|x<<12,k=(k^=j=j+(z=(z^=I=I+k|0)>>>16|z<<16)|0)>>>20|k<<12,x=(x^=S=S+(O=(O^=A=A+x|0)>>>24|O<<8)|0)>>>25|x<<7,k=(k^=j=j+(z=(z^=I=I+k|0)>>>24|z<<8)|0)>>>25|k<<7,E=(E^=L=L+(D=(D^=M=M+E|0)>>>24|D<<8)|0)>>>25|E<<7,N=(N^=T=T+(C=(C^=b=b+N|0)>>>24|C<<8)|0)>>>25|N<<7,E=(E^=S=S+(z=(z^=b=b+E|0)>>>16|z<<16)|0)>>>20|E<<12,x=(x^=j=j+(C=(C^=M=M+x|0)>>>16|C<<16)|0)>>>20|x<<12,k=(k^=T=T+(D=(D^=A=A+k|0)>>>16|D<<16)|0)>>>20|k<<12,N=(N^=L=L+(O=(O^=I=I+N|0)>>>16|O<<16)|0)>>>20|N<<12,k=(k^=T=T+(D=(D^=A=A+k|0)>>>24|D<<8)|0)>>>25|k<<7,N=(N^=L=L+(O=(O^=I=I+N|0)>>>24|O<<8)|0)>>>25|N<<7,x=(x^=j=j+(C=(C^=M=M+x|0)>>>24|C<<8)|0)>>>25|x<<7,E=(E^=S=S+(z=(z^=b=b+E|0)>>>24|z<<8)|0)>>>25|E<<7;r.writeUint32LE(b+i|0,t,0),r.writeUint32LE(M+o|0,t,4),r.writeUint32LE(A+a|0,t,8),r.writeUint32LE(I+s|0,t,12),r.writeUint32LE(N+u|0,t,16),r.writeUint32LE(E+c|0,t,20),r.writeUint32LE(x+l|0,t,24),r.writeUint32LE(k+h|0,t,28),r.writeUint32LE(T+d|0,t,32),r.writeUint32LE(L+f|0,t,36),r.writeUint32LE(S+p|0,t,40),r.writeUint32LE(j+y|0,t,44),r.writeUint32LE(C+m|0,t,48),r.writeUint32LE(D+g|0,t,52),r.writeUint32LE(O+v|0,t,56),r.writeUint32LE(z+w|0,t,60)}function a(t,e,n,r,a){if(void 0===a&&(a=0),32!==t.length)throw new Error("ChaCha: key size must be 32 bytes");if(r.length>>=8,e++;if(r>0)throw new Error("ChaCha: counter overflow")}e.streamXOR=a,e.stream=function(t,e,n,r){return void 0===r&&(r=0),i.wipe(n),a(t,e,n,n,r)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});var r=n(41),i=n(12);e.DIGEST_LENGTH=16;var o=function(){function t(t){this.digestLength=e.DIGEST_LENGTH,this._buffer=new Uint8Array(16),this._r=new Uint16Array(10),this._h=new Uint16Array(10),this._pad=new Uint16Array(8),this._leftover=0,this._fin=0,this._finished=!1;var n=t[0]|t[1]<<8;this._r[0]=8191&n;var r=t[2]|t[3]<<8;this._r[1]=8191&(n>>>13|r<<3);var i=t[4]|t[5]<<8;this._r[2]=7939&(r>>>10|i<<6);var o=t[6]|t[7]<<8;this._r[3]=8191&(i>>>7|o<<9);var a=t[8]|t[9]<<8;this._r[4]=255&(o>>>4|a<<12),this._r[5]=a>>>1&8190;var s=t[10]|t[11]<<8;this._r[6]=8191&(a>>>14|s<<2);var u=t[12]|t[13]<<8;this._r[7]=8065&(s>>>11|u<<5);var c=t[14]|t[15]<<8;this._r[8]=8191&(u>>>8|c<<8),this._r[9]=c>>>5&127,this._pad[0]=t[16]|t[17]<<8,this._pad[1]=t[18]|t[19]<<8,this._pad[2]=t[20]|t[21]<<8,this._pad[3]=t[22]|t[23]<<8,this._pad[4]=t[24]|t[25]<<8,this._pad[5]=t[26]|t[27]<<8,this._pad[6]=t[28]|t[29]<<8,this._pad[7]=t[30]|t[31]<<8}return t.prototype._blocks=function(t,e,n){for(var r=this._fin?0:2048,i=this._h[0],o=this._h[1],a=this._h[2],s=this._h[3],u=this._h[4],c=this._h[5],l=this._h[6],h=this._h[7],d=this._h[8],f=this._h[9],p=this._r[0],y=this._r[1],m=this._r[2],g=this._r[3],v=this._r[4],w=this._r[5],b=this._r[6],M=this._r[7],A=this._r[8],I=this._r[9];n>=16;){var N=t[e+0]|t[e+1]<<8;i+=8191&N;var E=t[e+2]|t[e+3]<<8;o+=8191&(N>>>13|E<<3);var x=t[e+4]|t[e+5]<<8;a+=8191&(E>>>10|x<<6);var k=t[e+6]|t[e+7]<<8;s+=8191&(x>>>7|k<<9);var T=t[e+8]|t[e+9]<<8;u+=8191&(k>>>4|T<<12),c+=T>>>1&8191;var L=t[e+10]|t[e+11]<<8;l+=8191&(T>>>14|L<<2);var S=t[e+12]|t[e+13]<<8;h+=8191&(L>>>11|S<<5);var j=t[e+14]|t[e+15]<<8,C=0,D=C;D+=i*p,D+=o*(5*I),D+=a*(5*A),D+=s*(5*M),C=(D+=u*(5*b))>>>13,D&=8191,D+=c*(5*w),D+=l*(5*v),D+=h*(5*g),D+=(d+=8191&(S>>>8|j<<8))*(5*m);var O=C+=(D+=(f+=j>>>5|r)*(5*y))>>>13;O+=i*y,O+=o*p,O+=a*(5*I),O+=s*(5*A),C=(O+=u*(5*M))>>>13,O&=8191,O+=c*(5*b),O+=l*(5*w),O+=h*(5*v),O+=d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16,n-=16}this._h[0]=i,this._h[1]=o,this._h[2]=a,this._h[3]=s,this._h[4]=u,this._h[5]=c,this._h[6]=l,this._h[7]=h,this._h[8]=d,this._h[9]=f},t.prototype.finish=function(t,e){void 0===e&&(e=0);var n,r,i,o,a=new Uint16Array(10);if(this._leftover){for(o=this._leftover,this._buffer[o++]=1;o<16;o++)this._buffer[o]=0;this._fin=1,this._blocks(this._buffer,0,16)}for(n=this._h[1]>>>13,this._h[1]&=8191,o=2;o<10;o++)this._h[o]+=n,n=this._h[o]>>>13,this._h[o]&=8191;for(this._h[0]+=5*n,n=this._h[0]>>>13,this._h[0]&=8191,this._h[1]+=n,n=this._h[1]>>>13,this._h[1]&=8191,this._h[2]+=n,a[0]=this._h[0]+5,n=a[0]>>>13,a[0]&=8191,o=1;o<10;o++)a[o]=this._h[o]+n,n=a[o]>>>13,a[o]&=8191;for(a[9]-=8192,r=(1^n)-1,o=0;o<10;o++)a[o]&=r;for(r=~r,o=0;o<10;o++)this._h[o]=this._h[o]&r|a[o];for(this._h[0]=65535&(this._h[0]|this._h[1]<<13),this._h[1]=65535&(this._h[1]>>>3|this._h[2]<<10),this._h[2]=65535&(this._h[2]>>>6|this._h[3]<<7),this._h[3]=65535&(this._h[3]>>>9|this._h[4]<<4),this._h[4]=65535&(this._h[4]>>>12|this._h[5]<<1|this._h[6]<<14),this._h[5]=65535&(this._h[6]>>>2|this._h[7]<<11),this._h[6]=65535&(this._h[7]>>>5|this._h[8]<<8),this._h[7]=65535&(this._h[8]>>>8|this._h[9]<<5),i=this._h[0]+this._pad[0],this._h[0]=65535&i,o=1;o<8;o++)i=(this._h[o]+this._pad[o]|0)+(i>>>16)|0,this._h[o]=65535&i;return t[e+0]=this._h[0]>>>0,t[e+1]=this._h[0]>>>8,t[e+2]=this._h[1]>>>0,t[e+3]=this._h[1]>>>8,t[e+4]=this._h[2]>>>0,t[e+5]=this._h[2]>>>8,t[e+6]=this._h[3]>>>0,t[e+7]=this._h[3]>>>8,t[e+8]=this._h[4]>>>0,t[e+9]=this._h[4]>>>8,t[e+10]=this._h[5]>>>0,t[e+11]=this._h[5]>>>8,t[e+12]=this._h[6]>>>0,t[e+13]=this._h[6]>>>8,t[e+14]=this._h[7]>>>0,t[e+15]=this._h[7]>>>8,this._finished=!0,this},t.prototype.update=function(t){var e,n=0,r=t.length;if(this._leftover){(e=16-this._leftover)>r&&(e=r);for(var i=0;i=16&&(e=r-r%16,this._blocks(t,n,e),n+=e,r-=e),r){for(i=0;ithis.blockSize?this._inner.update(e).finish(n).clean():n.set(e);for(var i=0;i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),S(n),g}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:C(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),g}},e}function p(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function y(t,e){for(var n=0;n=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,o=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function N(t,e){if(t){if("string"==typeof t)return E(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?E(t,e):void 0}}function E(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n pairing.get(".concat(h,") failed")),e.t0;case 14:if(h&&p){e.next=21;break}return e.next=17,this.client.core.pairing.create();case 17:y=e.sent,m=y.topic,g=y.uri,h=m,d=g;case 21:if(h){e.next=24;break}throw v=Object(a.A)("NO_MATCHING_KEY","connect() pairing topic: ".concat(h)),w=v.message,new Error(w);case 24:return e.next=26,this.client.core.crypto.generateKeyPair();case 26:return b=e.sent,M=j.wc_sessionPropose.req.ttl||c.FIVE_MINUTES,A=Object(a.e)(M),I=V({requiredNamespaces:o,optionalNamespaces:s,relays:null!=l?l:[{protocol:r.d}],proposer:{publicKey:b,metadata:this.client.metadata},expiryTimestamp:A},u&&{sessionProperties:u}),N=Object(a.f)(M,"Proposal expired"),E=N.reject,k=N.resolve,T=N.done,this.events.once(Object(a.n)("session_connect"),(function(t){return x(S,[t],(function(t){var e=this,n=t.error,r=t.session;return f().mark((function t(){var i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!n){t.next=4;break}E(n),t.next=16;break;case 4:if(!r){t.next=16;break}return r.self.publicKey=b,i=H(V({},r),{requiredNamespaces:I.requiredNamespaces,optionalNamespaces:I.optionalNamespaces}),t.next=9,e.client.session.set(r.topic,i);case 9:return t.next=11,e.setExpiry(r.topic,r.expiry);case 11:if(t.t0=h,!t.t0){t.next=15;break}return t.next=15,e.client.core.pairing.updateMetadata({topic:h,metadata:r.peer.metadata});case 15:k(i);case 16:case"end":return t.stop()}}),t)}))()}))})),e.next=37,this.sendRequest({topic:h,method:"wc_sessionPropose",params:I,throwOnFailedPublish:!0});case 37:return L=e.sent,e.next=40,this.setProposal(L,V({id:L},I));case 40:return e.abrupt("return",{uri:d,approval:T});case 41:case"end":return e.stop()}}),e,this,[[7,11]])})))},n.pair=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.client.core.pairing.pair(t);case 5:return e.abrupt("return",e.sent);case 8:throw e.prev=8,e.t0=e.catch(2),this.client.logger.error("pair() failed"),e.t0;case 11:case"end":return e.stop()}}),e,this,[[2,8]])})))},n.approve=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m,g,v,w,b=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidApprove(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("approve() -> isValidApprove() failed"),e.t0;case 10:n=t.id,r=t.relayProtocol,i=t.namespaces,o=t.sessionProperties,s=t.sessionConfig,e.prev=11,u=this.client.proposal.get(n),e.next=18;break;case 15:throw e.prev=15,e.t1=e.catch(11),this.client.logger.error("approve() -> proposal.get(".concat(n,") failed")),e.t1;case 18:return l=(c=u).pairingTopic,h=c.proposer,d=c.requiredNamespaces,p=c.optionalNamespaces,l=l||"",e.next=22,this.client.core.crypto.generateKeyPair();case 22:return y=e.sent,m=h.publicKey,e.next=26,this.client.core.crypto.generateSharedKey(y,m);case 26:return g=e.sent,v=V(V({relay:{protocol:null!=r?r:"irn"},namespaces:i,pairingTopic:l,controller:{publicKey:y,metadata:this.client.metadata},expiry:Object(a.e)(S)},o&&{sessionProperties:o}),s&&{sessionConfig:s}),e.next=30,this.client.core.relayer.subscribe(g);case 30:return w=H(V({},v),{topic:g,requiredNamespaces:d,optionalNamespaces:p,pairingTopic:l,acknowledged:!1,self:v.controller,peer:{publicKey:h.publicKey,metadata:h.metadata},controller:y}),e.next=33,this.client.session.set(g,w);case 33:return e.prev=33,e.next=36,this.sendResult({id:n,topic:l,result:{relay:{protocol:null!=r?r:"irn"},responderPublicKey:y},throwOnFailedPublish:!0});case 36:return e.next=38,this.sendRequest({topic:g,method:"wc_sessionSettle",params:v,throwOnFailedPublish:!0});case 38:e.next=47;break;case 40:return e.prev=40,e.t2=e.catch(33),this.client.logger.error(e.t2),this.client.session.delete(g,Object(a.G)("USER_DISCONNECTED")),e.next=46,this.client.core.relayer.unsubscribe(g);case 46:throw e.t2;case 47:return e.next=49,this.client.core.pairing.updateMetadata({topic:l,metadata:h.metadata});case 49:return e.next=51,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 51:return e.next=53,this.client.core.pairing.activate({topic:l});case 53:return e.next=55,this.setExpiry(g,Object(a.e)(S));case 55:return e.abrupt("return",{topic:g,acknowledged:function(){return new Promise((function(t){return setTimeout((function(){return t(b.client.session.get(g))}),500)}))}});case 56:case"end":return e.stop()}}),e,this,[[2,7],[11,15],[33,40]])})))},n.reject=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidReject(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("reject() -> isValidReject() failed"),e.t0;case 10:n=t.id,r=t.reason,e.prev=11,i=this.client.proposal.get(n).pairingTopic,e.next=18;break;case 15:throw e.prev=15,e.t1=e.catch(11),this.client.logger.error("reject() -> proposal.get(".concat(n,") failed")),e.t1;case 18:if(e.t2=i,!e.t2){e.next=24;break}return e.next=22,this.sendError({id:n,topic:i,error:r});case 22:return e.next=24,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 24:case"end":return e.stop()}}),e,this,[[2,7],[11,15]])})))},n.update=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidUpdate(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("update() -> isValidUpdate() failed"),e.t0;case 10:return n=t.topic,r=t.namespaces,i=Object(a.f)(),o=i.done,s=i.resolve,u=i.reject,c=Object(l.payloadId)(),h=Object(l.getBigIntRpcId)().toString(),d=this.client.session.get(n).namespaces,this.events.once(Object(a.n)("session_update",c),(function(t){var e=t.error;e?u(e):s()})),e.next=14,this.client.session.update(n,{namespaces:r});case 14:return this.sendRequest({topic:n,method:"wc_sessionUpdate",params:{namespaces:r},throwOnFailedPublish:!0,clientRpcId:c,relayRpcId:h}).catch((function(t){p.client.logger.error(t),p.client.session.update(n,{namespaces:d}),u(t)})),e.abrupt("return",{acknowledged:o});case 16:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.extend=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidExtend(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("extend() -> isValidExtend() failed"),e.t0;case 10:return n=t.topic,r=Object(l.payloadId)(),i=Object(a.f)(),o=i.done,s=i.resolve,u=i.reject,this.events.once(Object(a.n)("session_extend",r),(function(t){var e=t.error;e?u(e):s()})),e.next=14,this.setExpiry(n,Object(a.e)(S));case 14:return this.sendRequest({topic:n,method:"wc_sessionExtend",params:{},clientRpcId:r,throwOnFailedPublish:!0}).catch((function(t){u(t)})),e.abrupt("return",{acknowledged:o});case 16:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.request=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p,y,m,g=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidRequest(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("request() -> isValidRequest() failed"),e.t0;case 10:return n=t.chainId,r=t.request,i=t.topic,o=t.expiry,s=void 0===o?j.wc_sessionRequest.req.ttl:o,u=this.client.session.get(i),c=Object(l.payloadId)(),h=Object(l.getBigIntRpcId)().toString(),d=Object(a.f)(s,"Request expired. Please try again."),p=d.done,y=d.resolve,m=d.reject,this.events.once(Object(a.n)("session_request",c),(function(t){var e=t.error,n=t.result;e?m(e):y(n)})),e.next=14,Promise.all([new Promise((function(t){return x(g,null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.sendRequest({clientRpcId:c,relayRpcId:h,topic:i,method:"wc_sessionRequest",params:{request:H(V({},r),{expiryTimestamp:Object(a.e)(s)}),chainId:n},expiry:s,throwOnFailedPublish:!0}).catch((function(t){return m(t)}));case 2:this.client.events.emit("session_request_sent",{topic:i,request:r,chainId:n,id:c}),t();case 4:case"end":return e.stop()}}),e,this)})))})),new Promise((function(t){return x(g,null,f().mark((function e(){var n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(n=u.sessionConfig)&&n.disableDeepLink){e.next=5;break}return e.next=3,Object(a.y)(this.client.core.storage,L);case 3:r=e.sent,Object(a.H)({id:c,topic:i,wcDeepLink:r});case 5:t();case 6:case"end":return e.stop()}}),e,this)})))})),p()]).then((function(t){return t[2]}));case 14:return e.abrupt("return",e.sent);case 15:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.respond=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidRespond(t);case 4:if(n=t.topic,r=t.response,i=r.id,!Object(l.isJsonRpcResult)(r)){e.next=10;break}return e.next=8,this.sendResult({id:i,topic:n,result:r.result,throwOnFailedPublish:!0});case 8:e.next=14;break;case 10:if(e.t0=Object(l.isJsonRpcError)(r),!e.t0){e.next=14;break}return e.next=14,this.sendError({id:i,topic:n,error:r.error});case 14:this.cleanupAfterResponse(t);case 15:case"end":return e.stop()}}),e,this)})))},n.ping=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.prev=2,e.next=5,this.isValidPing(t);case 5:e.next=10;break;case 7:throw e.prev=7,e.t0=e.catch(2),this.client.logger.error("ping() -> isValidPing() failed"),e.t0;case 10:if(n=t.topic,!this.client.session.keys.includes(n)){e.next=18;break}return r=Object(l.payloadId)(),i=Object(l.getBigIntRpcId)().toString(),o=Object(a.f)(),s=o.done,u=o.resolve,c=o.reject,this.events.once(Object(a.n)("session_ping",r),(function(t){var e=t.error;e?c(e):u()})),e.next=16,Promise.all([this.sendRequest({topic:n,method:"wc_sessionPing",params:{},throwOnFailedPublish:!0,clientRpcId:r,relayRpcId:i}),s()]);case 16:e.next=22;break;case 18:if(e.t1=this.client.core.pairing.pairings.keys.includes(n),!e.t1){e.next=22;break}return e.next=22,this.client.core.pairing.ping({topic:n});case 22:case"end":return e.stop()}}),e,this,[[2,7]])})))},n.emit=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidEmit(t);case 4:return n=t.topic,r=t.event,i=t.chainId,o=Object(l.getBigIntRpcId)().toString(),e.next=7,this.sendRequest({topic:n,method:"wc_sessionEvent",params:{event:r,chainId:i},throwOnFailedPublish:!0,relayRpcId:o});case 7:case"end":return e.stop()}}),e,this)})))},n.disconnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:return e.next=4,this.isValidDisconnect(t);case 4:if(n=t.topic,!this.client.session.keys.includes(n)){e.next=12;break}return e.next=8,this.sendRequest({topic:n,method:"wc_sessionDelete",params:Object(a.G)("USER_DISCONNECTED"),throwOnFailedPublish:!0});case 8:return e.next=10,this.deleteSession({topic:n,emitEvent:!1});case 10:e.next=19;break;case 12:if(!this.client.core.pairing.pairings.keys.includes(n)){e.next=17;break}return e.next=15,this.client.core.pairing.disconnect({topic:n});case 15:e.next=19;break;case 17:throw r=Object(a.A)("MISMATCHED_TOPIC","Session or pairing topic not found: ".concat(n)),i=r.message,new Error(i);case 19:case"end":return e.stop()}}),e,this)})))},n.find=function(t){return n.isInitialized(),n.client.session.getAll().filter((function(e){return Object(a.R)(e,t)}))},n.getPendingSessionRequests=function(){return n.client.pendingRequest.getAll()},n.authenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,p,y,m,g,v,w,b,M,A,N,E,k,T,L,C,D,O,z,P,B,R,U,Q,Y,W=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.isInitialized(),this.isValidAuthenticate(t),n=t.chains,r=t.statement,i=void 0===r?"":r,o=t.uri,s=t.domain,u=t.nonce,c=t.type,h=t.exp,p=t.nbf,y=t.methods,m=void 0===y?[]:y,g=d(t.resources||[]),e.next=15,this.client.core.pairing.create({methods:["wc_sessionAuthenticate"]});case 15:return v=e.sent,w=v.topic,b=v.uri,this.client.logger.info({message:"Generated new pairing",pairing:{topic:w,uri:b}}),e.next=21,this.client.core.crypto.generateKeyPair();case 21:return M=e.sent,A=Object(a.I)(M),e.next=25,Promise.all([this.client.auth.authKeys.set(_,{responseTopic:A,publicKey:M}),this.client.auth.pairingTopics.set(A,{topic:A,pairingTopic:w})]);case 25:return e.next=27,this.client.core.relayer.subscribe(A);case 27:if(this.client.logger.info("sending request to new pairing topic: ".concat(w)),!(m.length>0)){e.next=32;break}N=Object(a.rb)(n[0]),E=N.namespace,k=Object(a.g)(E,"request",m),Object(a.D)(g)&&(k=Object(a.pb)(k,g.pop())),g.push(k);case 32:return T=Object(a.e)(j.wc_sessionPropose.req.ttl),L={authPayload:{type:null!=c?c:"caip122",chains:n,statement:i,aud:o,domain:s,version:"1",nonce:u,iat:(new Date).toISOString(),exp:h,nbf:p,resources:g},requester:{publicKey:M,metadata:this.client.metadata},expiryTimestamp:T},C={eip155:{chains:n,methods:d(new Set(["personal_sign"].concat(d(m)))),events:["chainChanged","accountsChanged"]}},D={requiredNamespaces:{},optionalNamespaces:C,relays:[{protocol:"irn"}],proposer:{publicKey:M,metadata:this.client.metadata},expiryTimestamp:T},O=Object(a.f)(j.wc_sessionAuthenticate.req.ttl,"Request expired"),z=O.done,P=O.resolve,B=O.reject,R=function(t){return x(W,[t],(function(t){var e=this,n=t.error,r=t.session;return f().mark((function t(){var i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e.events.off(Object(a.n)("session_request",Q),U),!n){t.next=4;break}B(n),t.next=16;break;case 4:if(!r){t.next=16;break}return r.self.publicKey=M,t.next=8,e.client.session.set(r.topic,r);case 8:return t.next=10,e.setExpiry(r.topic,r.expiry);case 10:if(t.t0=w,!t.t0){t.next=14;break}return t.next=14,e.client.core.pairing.updateMetadata({topic:w,metadata:r.peer.metadata});case 14:i=e.client.session.get(r.topic),P({session:i});case 16:case"end":return t.stop()}}),t)}))()}))},U=function(t){return x(W,null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,p,y,m,g,v,b,A,N,E,x,k;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.error){e.next=3;break}return n=Object(a.G)("WC_METHOD_UNSUPPORTED","wc_sessionAuthenticate"),e.abrupt("return",t.error.code===n.code?void 0:(this.events.off(Object(a.n)("session_connect"),R),B(t.error.message)));case 3:this.events.off(Object(a.n)("session_connect"),R),r=t.result,i=r.cacaos,o=r.responder,s=[],u=[],c=I(i),e.prev=6,c.s();case 8:if((l=c.n()).done){e.next=20;break}return h=l.value,e.next=12,Object(a.xb)({cacao:h,projectId:this.client.core.projectId});case 12:if(e.t0=e.sent,e.t0){e.next=15;break}this.client.logger.error(h,"Signature verification failed"),B(Object(a.G)("SESSION_SETTLEMENT_FAILED","Signature verification failed"));case 15:for(p=h.p,y=Object(a.D)(p.resources),m=[Object(a.C)(p.iss)],g=Object(a.z)(p.iss),y&&(v=Object(a.B)(y),b=Object(a.x)(y),s.push.apply(s,d(v)),m.push.apply(m,d(b))),A=0,N=m;A0,!e.t2){e.next=39;break}return k={topic:x,acknowledged:!0,self:{publicKey:M,metadata:this.client.metadata},peer:o,controller:o.publicKey,expiry:Object(a.e)(S),requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:w,namespaces:Object(a.d)(d(new Set(s)),d(new Set(u)))},e.next=36,this.client.core.relayer.subscribe(x);case 36:return e.next=38,this.client.session.set(x,k);case 38:k=this.client.session.get(x);case 39:P({auths:i,session:k});case 40:case"end":return e.stop()}}),e,this,[[6,22,25,28]])})))},Q=Object(l.payloadId)(),Y=Object(l.payloadId)(),this.events.once(Object(a.n)("session_connect"),R),this.events.once(Object(a.n)("session_request",Q),U),e.prev=34,e.next=37,Promise.all([this.sendRequest({topic:w,method:"wc_sessionAuthenticate",params:L,expiry:t.expiry,throwOnFailedPublish:!0,clientRpcId:Q}),this.sendRequest({topic:w,method:"wc_sessionPropose",params:D,expiry:j.wc_sessionPropose.req.ttl,throwOnFailedPublish:!0,clientRpcId:Y})]);case 37:e.next=42;break;case 39:throw e.prev=39,e.t0=e.catch(34),this.events.off(Object(a.n)("session_connect"),R),this.events.off(Object(a.n)("session_request",Q),U),e.t0;case 42:return e.next=44,this.setProposal(Y,V({id:Y},D));case 44:return e.next=46,this.client.auth.requests.set(Q,{authPayload:L.authPayload,requester:L.requester,expiryTimestamp:T,id:Q,pairingTopic:w,verifyContext:{}});case 46:return e.abrupt("return",{uri:b,response:z});case 47:case"end":return e.stop()}}),e,this,[[34,39]])})))},n.approveSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,p,y,m,g,v,w,b,M,A,N,E,x,k,T,L;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.isInitialized(),n=t.id,r=t.auths,i=this.getPendingAuthRequest(n)){e.next=4;break}throw new Error("Could not find pending auth request with id ".concat(n));case 4:return o=i.requester.publicKey,e.next=7,this.client.core.crypto.generateKeyPair();case 7:s=e.sent,u=Object(a.I)(o),c={type:a.c,receiverPublicKey:o,senderPublicKey:s},l=[],h=[],p=I(r),e.prev=13,p.s();case 15:if((y=p.n()).done){e.next=29;break}return m=y.value,e.next=19,Object(a.xb)({cacao:m,projectId:this.client.core.projectId});case 19:if(e.sent){e.next=24;break}return g=Object(a.G)("SESSION_SETTLEMENT_FAILED","Signature verification failed"),e.next=23,this.sendError({id:n,topic:u,error:g,encodeOpts:c});case 23:throw new Error(g.message);case 24:for(v=m.p,w=Object(a.D)(v.resources),b=[Object(a.C)(v.iss)],M=Object(a.z)(v.iss),w&&(A=Object(a.B)(w),N=Object(a.x)(w),l.push.apply(l,d(A)),b.push.apply(b,d(N))),E=0,x=b;E0,!e.t1){e.next=47;break}return L={topic:T,acknowledged:!0,self:{publicKey:s,metadata:this.client.metadata},peer:{publicKey:o,metadata:i.requester.metadata},controller:o,expiry:Object(a.e)(S),authentication:r,requiredNamespaces:{},optionalNamespaces:{},relay:{protocol:"irn"},pairingTopic:"",namespaces:Object(a.d)(d(new Set(l)),d(new Set(h)))},e.next=45,this.client.core.relayer.subscribe(T);case 45:return e.next=47,this.client.session.set(T,L);case 47:return e.next=49,this.sendResult({topic:u,id:n,result:{cacaos:r,responder:{publicKey:s,metadata:this.client.metadata}},encodeOpts:c,throwOnFailedPublish:!0});case 49:return e.next=51,this.client.auth.requests.delete(n,{message:"fullfilled",code:0});case 51:return e.next=53,this.client.core.pairing.activate({topic:i.pairingTopic});case 53:return e.abrupt("return",{session:L});case 54:case"end":return e.stop()}}),e,this,[[13,31,34,37]])})))},n.rejectSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.isInitialized();case 2:if(n=t.id,r=t.reason,i=this.getPendingAuthRequest(n)){e.next=5;break}throw new Error("Could not find pending auth request with id ".concat(n));case 5:return o=i.requester.publicKey,e.next=8,this.client.core.crypto.generateKeyPair();case 8:return s=e.sent,u=Object(a.I)(o),c={type:a.c,receiverPublicKey:o,senderPublicKey:s},e.next=13,this.sendError({id:n,topic:u,error:r,encodeOpts:c});case 13:return e.next=15,this.client.auth.requests.delete(n,{message:"rejected",code:0});case 15:return e.next=17,this.client.proposal.delete(n,Object(a.G)("USER_DISCONNECTED"));case 17:case"end":return e.stop()}}),e,this)})))},n.formatAuthMessage=function(t){n.isInitialized();var e=t.request,r=t.iss;return Object(a.p)(e,r)},n.cleanupDuplicatePairings=function(t){return x(w(n),null,f().mark((function e(){var n,r,i=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t.pairingTopic){e.next=14;break}if(e.prev=1,n=this.client.core.pairing.pairings.get(t.pairingTopic),0!==(r=this.client.core.pairing.pairings.getAll().filter((function(e){var r,i;return(null==(r=e.peerMetadata)?void 0:r.url)&&(null==(i=e.peerMetadata)?void 0:i.url)===t.peer.metadata.url&&e.topic&&e.topic!==n.topic}))).length){e.next=5;break}return e.abrupt("return");case 5:return this.client.logger.info("Cleaning up ".concat(r.length," duplicate pairing(s)")),e.next=8,Promise.all(r.map((function(t){return i.client.core.pairing.disconnect({topic:t.topic})})));case 8:this.client.logger.info("Duplicate pairings clean up finished"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),this.client.logger.error(e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])})))},n.deleteSession=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.expirerHasDeleted,i=void 0!==r&&r,o=t.emitEvent,s=void 0===o||o,u=t.id,c=void 0===u?0:u,l=this.client.session.get(n),h=l.self,e.next=3,this.client.core.relayer.unsubscribe(n);case 3:return e.next=5,this.client.session.delete(n,Object(a.G)("USER_DISCONNECTED"));case 5:if(this.addToRecentlyDeleted(n,"session"),e.t0=this.client.core.crypto.keychain.has(h.publicKey),!e.t0){e.next=10;break}return e.next=10,this.client.core.crypto.deleteKeyPair(h.publicKey);case 10:if(e.t1=this.client.core.crypto.keychain.has(n),!e.t1){e.next=14;break}return e.next=14,this.client.core.crypto.deleteSymKey(n);case 14:i||this.client.core.expirer.del(n),this.client.core.storage.removeItem(L).catch((function(t){return d.client.logger.warn(t)})),this.getPendingSessionRequests().forEach((function(t){t.topic===n&&d.deletePendingSessionRequest(t.id,Object(a.G)("USER_DISCONNECTED"))})),s&&this.client.events.emit("session_delete",{id:c,topic:n});case 18:case"end":return e.stop()}}),e,this)})))},n.deleteProposal=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([this.client.proposal.delete(t,Object(a.G)("USER_DISCONNECTED")),e?Promise.resolve():this.client.core.expirer.del(t)]);case 2:this.addToRecentlyDeleted(t,"proposal");case 3:case"end":return n.stop()}}),n,this)})))},n.deletePendingSessionRequest=function(t,e){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Promise.all([this.client.pendingRequest.delete(t,e),r?Promise.resolve():this.client.core.expirer.del(t)]);case 2:this.addToRecentlyDeleted(t,"request"),this.sessionRequestQueue.queue=this.sessionRequestQueue.queue.filter((function(e){return e.id!==t})),r&&(this.sessionRequestQueue.state=D,this.client.events.emit("session_request_expire",{id:t}));case 5:case"end":return n.stop()}}),n,this)})))},n.setExpiry=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(n.t0=this.client.session.keys.includes(t),!n.t0){n.next=4;break}return n.next=4,this.client.session.update(t,{expiry:e});case 4:this.client.core.expirer.set(t,e);case 5:case"end":return n.stop()}}),n,this)})))},n.setProposal=function(t,e){return x(w(n),null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.client.proposal.set(t,e);case 2:this.client.core.expirer.set(t,Object(a.e)(j.wc_sessionPropose.req.ttl));case 3:case"end":return n.stop()}}),n,this)})))},n.setPendingSessionRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.params,o=t.verifyContext,s=i.request.expiryTimestamp||Object(a.e)(j.wc_sessionRequest.req.ttl),e.next=3,this.client.pendingRequest.set(n,{id:n,topic:r,params:i,verifyContext:o});case 3:s&&this.client.core.expirer.set(n,s);case 4:case"end":return e.stop()}}),e,this)})))},n.sendRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,h,d,p,y,m=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.method,i=t.params,o=t.expiry,s=t.relayRpcId,u=t.clientRpcId,c=t.throwOnFailedPublish,h=Object(l.formatJsonRpcRequest)(r,i,u),Object(a.K)()&&z.includes(r)&&(d=Object(a.J)(JSON.stringify(h)),this.client.core.verify.register({attestationId:d})),e.prev=2,e.next=5,this.client.core.crypto.encode(n,h);case 5:p=e.sent,e.next=14;break;case 8:return e.prev=8,e.t0=e.catch(2),e.next=12,this.cleanup();case 12:throw this.client.logger.error("sendRequest() -> core.crypto.encode() for topic ".concat(n," failed")),e.t0;case 14:if(y=j[r].req,o&&(y.ttl=o),s&&(y.id=s),this.client.core.history.set(n,h),!c){e.next=24;break}return y.internal=H(V({},y.internal),{throwOnFailedPublish:!0}),e.next=22,this.client.core.relayer.publish(n,p,y);case 22:e.next=25;break;case 24:this.client.core.relayer.publish(n,p,y).catch((function(t){return m.client.logger.error(t)}));case 25:return e.abrupt("return",h.id);case 26:case"end":return e.stop()}}),e,this,[[2,8]])})))},n.sendResult=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,a,s,u,c,h,d=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.result,o=t.throwOnFailedPublish,a=t.encodeOpts,s=Object(l.formatJsonRpcResult)(n,i),e.prev=1,e.next=4,this.client.core.crypto.encode(r,s,a);case 4:u=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this.cleanup();case 11:throw this.client.logger.error("sendResult() -> core.crypto.encode() for topic ".concat(r," failed")),e.t0;case 13:return e.prev=13,e.next=16,this.client.core.history.get(r,n);case 16:c=e.sent,e.next=22;break;case 19:throw e.prev=19,e.t1=e.catch(13),this.client.logger.error("sendResult() -> history.get(".concat(r,", ").concat(n,") failed")),e.t1;case 22:if(h=j[c.request.method].res,!o){e.next=29;break}return h.internal=H(V({},h.internal),{throwOnFailedPublish:!0}),e.next=27,this.client.core.relayer.publish(r,u,h);case 27:e.next=30;break;case 29:this.client.core.relayer.publish(r,u,h).catch((function(t){return d.client.logger.error(t)}));case 30:return e.next=32,this.client.core.history.resolve(s);case 32:case"end":return e.stop()}}),e,this,[[1,7],[13,19]])})))},n.sendError=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,a,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.id,r=t.topic,i=t.error,o=t.encodeOpts,a=Object(l.formatJsonRpcError)(n,i),e.prev=1,e.next=4,this.client.core.crypto.encode(r,a,o);case 4:s=e.sent,e.next=13;break;case 7:return e.prev=7,e.t0=e.catch(1),e.next=11,this.cleanup();case 11:throw this.client.logger.error("sendError() -> core.crypto.encode() for topic ".concat(r," failed")),e.t0;case 13:return e.prev=13,e.next=16,this.client.core.history.get(r,n);case 16:u=e.sent,e.next=22;break;case 19:throw e.prev=19,e.t1=e.catch(13),this.client.logger.error("sendError() -> history.get(".concat(r,", ").concat(n,") failed")),e.t1;case 22:return c=j[u.request.method].res,this.client.core.relayer.publish(r,s,c),e.next=26,this.client.core.history.resolve(a);case 26:case"end":return e.stop()}}),e,this,[[1,7],[13,19]])})))},n.cleanup=function(){return x(w(n),null,f().mark((function t(){var e,n,r=this;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=[],n=[],this.client.session.getAll().forEach((function(t){var n=!1;Object(a.M)(t.expiry)&&(n=!0),r.client.core.crypto.keychain.has(t.topic)||(n=!0),n&&e.push(t.topic)})),this.client.proposal.getAll().forEach((function(t){Object(a.M)(t.expiryTimestamp)&&n.push(t.id)})),t.next=5,Promise.all([].concat(d(e.map((function(t){return r.deleteSession({topic:t})}))),d(n.map((function(t){return r.deleteProposal(t)})))));case 5:case"end":return t.stop()}}),t,this)})))},n.onRelayEventRequest=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this.requestQueue.queue.push(t),e.next=3,this.processRequestsQueue();case 3:case"end":return e.stop()}}),e,this)})))},n.processRequestsQueue=function(){return x(w(n),null,f().mark((function t(){var e;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.requestQueue.state!==O){t.next=3;break}return this.client.logger.info("Request queue already active, skipping..."),t.abrupt("return");case 3:this.client.logger.info("Request queue starting with ".concat(this.requestQueue.queue.length," requests"));case 4:if(!(this.requestQueue.queue.length>0)){t.next=19;break}if(this.requestQueue.state=O,!(e=this.requestQueue.queue.shift())){t.next=17;break}return t.prev=8,this.processRequest(e),t.next=12,new Promise((function(t){return setTimeout(t,300)}));case 12:t.next=17;break;case 14:t.prev=14,t.t0=t.catch(8),this.client.logger.warn(t.t0);case 17:t.next=4;break;case 19:this.requestQueue.state=D;case 20:case"end":return t.stop()}}),t,this,[[8,14]])})))},n.processRequest=function(t){var e=t.topic,r=t.payload,i=r.method;if(!n.shouldIgnorePairingRequest({topic:e,requestMethod:i}))switch(i){case"wc_sessionPropose":return n.onSessionProposeRequest(e,r);case"wc_sessionSettle":return n.onSessionSettleRequest(e,r);case"wc_sessionUpdate":return n.onSessionUpdateRequest(e,r);case"wc_sessionExtend":return n.onSessionExtendRequest(e,r);case"wc_sessionPing":return n.onSessionPingRequest(e,r);case"wc_sessionDelete":return n.onSessionDeleteRequest(e,r);case"wc_sessionRequest":return n.onSessionRequest(e,r);case"wc_sessionEvent":return n.onSessionEventRequest(e,r);case"wc_sessionAuthenticate":return n.onSessionAuthenticateRequest(e,r);default:return n.client.logger.info("Unsupported request method ".concat(i))}},n.onRelayEventResponse=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.topic,r=t.payload,e.next=4,this.client.core.history.get(n,r.id);case 4:i=e.sent.request.method,e.t0=i,e.next="wc_sessionPropose"===e.t0?8:"wc_sessionSettle"===e.t0?9:"wc_sessionUpdate"===e.t0?10:"wc_sessionExtend"===e.t0?11:"wc_sessionPing"===e.t0?12:"wc_sessionRequest"===e.t0?13:"wc_sessionAuthenticate"===e.t0?14:15;break;case 8:return e.abrupt("return",this.onSessionProposeResponse(n,r));case 9:return e.abrupt("return",this.onSessionSettleResponse(n,r));case 10:return e.abrupt("return",this.onSessionUpdateResponse(n,r));case 11:return e.abrupt("return",this.onSessionExtendResponse(n,r));case 12:return e.abrupt("return",this.onSessionPingResponse(n,r));case 13:return e.abrupt("return",this.onSessionRequestResponse(n,r));case 14:return e.abrupt("return",this.onSessionAuthenticateResponse(n,r));case 15:return e.abrupt("return",this.client.logger.info("Unsupported response method ".concat(i)));case 16:case"end":return e.stop()}}),e,this)})))},n.onRelayEventUnknownPayload=function(t){var e=t.topic,n=Object(a.A)("MISSING_OR_INVALID","Decoded payload on topic ".concat(e," is not identifiable as a JSON-RPC request or a response.")).message;throw new Error(n)},n.shouldIgnorePairingRequest=function(t){var e=t.topic,r=t.requestMethod,i=n.expectedPairingMethodMap.get(e);return!(!i||i.includes(r)||!(i.includes("wc_sessionAuthenticate")&&n.client.events.listenerCount("session_authenticate")>0))},n.onSessionProposeRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.params,i=e.id,n.prev=1,this.isValidConnect(V({},e.params)),o=r.expiryTimestamp||Object(a.e)(j.wc_sessionPropose.req.ttl),s=V({id:i,pairingTopic:t,expiryTimestamp:o},r),n.next=6,this.setProposal(i,s);case 6:return u=Object(a.J)(JSON.stringify(e)),n.next=9,this.getVerifyContext(u,s.proposer.metadata);case 9:c=n.sent,this.client.events.emit("session_proposal",{id:i,params:s,verifyContext:c}),n.next=18;break;case 13:return n.prev=13,n.t0=n.catch(1),n.next=17,this.sendError({id:i,topic:t,error:n.t0});case 17:this.client.logger.error(n.t0);case 18:case"end":return n.stop()}}),n,this,[[1,13]])})))},n.onSessionProposeResponse=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,h,d;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,!Object(l.isJsonRpcResult)(e)){n.next=22;break}return i=e.result,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",result:i}),o=this.client.proposal.get(r),this.client.logger.trace({type:"method",method:"onSessionProposeResponse",proposal:o}),s=o.proposer.publicKey,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",selfPublicKey:s}),u=i.responderPublicKey,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",peerPublicKey:u}),n.next=12,this.client.core.crypto.generateSharedKey(s,u);case 12:return c=n.sent,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",sessionTopic:c}),n.next=16,this.client.core.relayer.subscribe(c);case 16:return h=n.sent,this.client.logger.trace({type:"method",method:"onSessionProposeResponse",subscriptionId:h}),n.next=20,this.client.core.pairing.activate({topic:t});case 20:n.next=29;break;case 22:if(!Object(l.isJsonRpcError)(e)){n.next=29;break}return n.next=25,this.client.proposal.delete(r,Object(a.G)("USER_DISCONNECTED"));case 25:if(d=Object(a.n)("session_connect"),0!==this.events.listenerCount(d)){n.next=28;break}throw new Error("emitting ".concat(d," without any listeners, 954"));case 28:this.events.emit(Object(a.n)("session_connect"),{error:e.error});case 29:case"end":return n.stop()}}),n,this)})))},n.onSessionSettleRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,l,h,d,p,y,m;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,i=e.params,n.prev=1,this.isValidSessionSettleRequest(i),o=e.params,s=o.relay,u=o.controller,c=o.expiry,l=o.namespaces,h=o.sessionProperties,d=o.pairingTopic,p=o.sessionConfig,y=V(V({topic:t,relay:s,expiry:c,namespaces:l,acknowledged:!0,pairingTopic:d,requiredNamespaces:{},optionalNamespaces:{},controller:u.publicKey,self:{publicKey:"",metadata:this.client.metadata},peer:{publicKey:u.publicKey,metadata:u.metadata}},h&&{sessionProperties:h}),p&&{sessionConfig:p}),n.next=6,this.sendResult({id:e.id,topic:t,result:!0,throwOnFailedPublish:!0});case 6:if(m=Object(a.n)("session_connect"),0!==this.events.listenerCount(m)){n.next=9;break}throw new Error("emitting ".concat(m," without any listeners 997"));case 9:this.events.emit(Object(a.n)("session_connect"),{session:y}),this.cleanupDuplicatePairings(y),n.next=17;break;case 12:return n.prev=12,n.t0=n.catch(1),n.next=16,this.sendError({id:r,topic:t,error:n.t0});case 16:this.client.logger.error(n.t0);case 17:case"end":return n.stop()}}),n,this,[[1,12]])})))},n.onSessionSettleResponse=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,!Object(l.isJsonRpcResult)(e)){n.next=7;break}return n.next=4,this.client.session.update(t,{acknowledged:!0});case 4:this.events.emit(Object(a.n)("session_approve",r),{}),n.next=12;break;case 7:if(n.t0=Object(l.isJsonRpcError)(e),!n.t0){n.next=12;break}return n.next=11,this.client.session.delete(t,Object(a.G)("USER_DISCONNECTED"));case 11:this.events.emit(Object(a.n)("session_approve",r),{error:e.error});case 12:case"end":return n.stop()}}),n,this)})))},n.onSessionUpdateRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.params,i=e.id,n.prev=1,o="".concat(t,"_session_update"),!(s=a.b.get(o))||!this.isRequestOutOfSync(s,i)){n.next=6;break}return this.client.logger.info("Discarding out of sync request - ".concat(i)),this.sendError({id:i,topic:t,error:Object(a.G)("INVALID_UPDATE_REQUEST")}),n.abrupt("return");case 6:return this.isValidUpdate(V({topic:t},r)),n.prev=7,a.b.set(o,i),n.next=11,this.client.session.update(t,{namespaces:r.namespaces});case 11:return n.next=13,this.sendResult({id:i,topic:t,result:!0,throwOnFailedPublish:!0});case 13:n.next=18;break;case 15:throw n.prev=15,n.t0=n.catch(7),a.b.delete(o),n.t0;case 18:this.client.events.emit("session_update",{id:i,topic:t,params:r}),n.next=26;break;case 21:return n.prev=21,n.t1=n.catch(1),n.next=25,this.sendError({id:i,topic:t,error:n.t1});case 25:this.client.logger.error(n.t1);case 26:case"end":return n.stop()}}),n,this,[[1,21],[7,15]])})))},n.isRequestOutOfSync=function(t,e){return parseInt(e.toString().slice(0,-3))<=parseInt(t.toString().slice(0,-3))},n.onSessionUpdateResponse=function(t,e){var r=e.id,i=Object(a.n)("session_update",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_update",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_update",r),{error:e.error})},n.onSessionExtendRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidExtend({topic:t}),n.next=5,this.setExpiry(t,Object(a.e)(S));case 5:return n.next=7,this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0});case 7:this.client.events.emit("session_extend",{id:r,topic:t}),n.next=15;break;case 10:return n.prev=10,n.t0=n.catch(1),n.next=14,this.sendError({id:r,topic:t,error:n.t0});case 14:this.client.logger.error(n.t0);case 15:case"end":return n.stop()}}),n,this,[[1,10]])})))},n.onSessionExtendResponse=function(t,e){var r=e.id,i=Object(a.n)("session_extend",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_extend",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_extend",r),{error:e.error})},n.onSessionPingRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,n.prev=1,this.isValidPing({topic:t}),n.next=5,this.sendResult({id:r,topic:t,result:!0,throwOnFailedPublish:!0});case 5:this.client.events.emit("session_ping",{id:r,topic:t}),n.next=13;break;case 8:return n.prev=8,n.t0=n.catch(1),n.next=12,this.sendError({id:r,topic:t,error:n.t0});case 12:this.client.logger.error(n.t0);case 13:case"end":return n.stop()}}),n,this,[[1,8]])})))},n.onSessionPingResponse=function(t,e){var r=e.id,i=Object(a.n)("session_ping",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));setTimeout((function(){Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_ping",r),{}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_ping",r),{error:e.error})}),500)},n.onSessionDeleteRequest=function(t,e){return x(w(n),null,f().mark((function n(){var i,o=this;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i=e.id,n.prev=1,this.isValidDisconnect({topic:t,reason:e.params}),n.next=5,Promise.all([new Promise((function(e){o.client.core.relayer.once(r.e.publish,(function(){return x(o,null,f().mark((function n(){return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.t0=e,n.next=3,this.deleteSession({topic:t,id:i});case 3:n.t1=n.sent,(0,n.t0)(n.t1);case 5:case"end":return n.stop()}}),n,this)})))}))})),this.sendResult({id:i,topic:t,result:!0,throwOnFailedPublish:!0}),this.cleanupPendingSentRequestsForTopic({topic:t,error:Object(a.G)("USER_DISCONNECTED")})]);case 5:n.next=10;break;case 7:n.prev=7,n.t0=n.catch(1),this.client.logger.error(n.t0);case 10:case"end":return n.stop()}}),n,this,[[1,7]])})))},n.onSessionRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.id,i=e.params,n.prev=1,n.next=4,this.isValidRequest(V({topic:t},i));case 4:return o=Object(a.J)(JSON.stringify(Object(l.formatJsonRpcRequest)("wc_sessionRequest",i,r))),s=this.client.session.get(t),n.next=8,this.getVerifyContext(o,s.peer.metadata);case 8:return u=n.sent,c={id:r,topic:t,params:i,verifyContext:u},n.next=12,this.setPendingSessionRequest(c);case 12:this.addSessionRequestToSessionRequestQueue(c),this.processSessionRequestQueue(),n.next=21;break;case 16:return n.prev=16,n.t0=n.catch(1),n.next=20,this.sendError({id:r,topic:t,error:n.t0});case 20:this.client.logger.error(n.t0);case 21:case"end":return n.stop()}}),n,this,[[1,16]])})))},n.onSessionRequestResponse=function(t,e){var r=e.id,i=Object(a.n)("session_request",r);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_request",r),{result:e.result}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_request",r),{error:e.error})},n.onSessionEventRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(r=e.id,i=e.params,n.prev=1,o="".concat(t,"_session_event_").concat(i.event.name),!(s=a.b.get(o))||!this.isRequestOutOfSync(s,r)){n.next=6;break}return this.client.logger.info("Discarding out of sync request - ".concat(r)),n.abrupt("return");case 6:this.isValidEmit(V({topic:t},i)),this.client.events.emit("session_event",{id:r,topic:t,params:i}),a.b.set(o,r),n.next=14;break;case 9:return n.prev=9,n.t0=n.catch(1),n.next=13,this.sendError({id:r,topic:t,error:n.t0});case 13:this.client.logger.error(n.t0);case 14:case"end":return n.stop()}}),n,this,[[1,9]])})))},n.onSessionAuthenticateResponse=function(t,e){var r=e.id;n.client.logger.trace({type:"method",method:"onSessionAuthenticateResponse",topic:t,payload:e}),Object(l.isJsonRpcResult)(e)?n.events.emit(Object(a.n)("session_request",r),{result:e.result}):Object(l.isJsonRpcError)(e)&&n.events.emit(Object(a.n)("session_request",r),{error:e.error})},n.onSessionAuthenticateRequest=function(t,e){return x(w(n),null,f().mark((function n(){var r,i,o,s,u,c,l;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=e.params,i=r.requester,o=r.authPayload,s=r.expiryTimestamp,u=Object(a.J)(JSON.stringify(e)),n.next=7,this.getVerifyContext(u,this.client.metadata);case 7:return c=n.sent,l={requester:i,pairingTopic:t,id:e.id,authPayload:o,verifyContext:c,expiryTimestamp:s},n.next=11,this.client.auth.requests.set(e.id,l);case 11:this.client.events.emit("session_authenticate",{topic:t,params:e.params,id:e.id});case 12:case"end":return n.stop()}}),n,this)})))},n.addSessionRequestToSessionRequestQueue=function(t){n.sessionRequestQueue.queue.push(t)},n.cleanupAfterResponse=function(t){n.deletePendingSessionRequest(t.response.id,{message:"fulfilled",code:0}),setTimeout((function(){n.sessionRequestQueue.state=D,n.processSessionRequestQueue()}),Object(c.toMiliseconds)(n.requestQueueDelay))},n.cleanupPendingSentRequestsForTopic=function(t){var e=t.topic,r=t.error,i=n.client.core.history.pending;i.length>0&&i.filter((function(t){return t.topic===e&&"wc_sessionRequest"===t.request.method})).forEach((function(t){var e=t.request.id,i=Object(a.n)("session_request",e);if(0===n.events.listenerCount(i))throw new Error("emitting ".concat(i," without any listeners"));n.events.emit(Object(a.n)("session_request",t.request.id),{error:r})}))},n.processSessionRequestQueue=function(){if(n.sessionRequestQueue.state!==O){var t=n.sessionRequestQueue.queue[0];if(t)try{n.sessionRequestQueue.state=O,n.client.events.emit("session_request",t)}catch(t){n.client.logger.error(t)}else n.client.logger.info("session request queue is empty.")}else n.client.logger.info("session request queue is already active.")},n.onPairingCreated=function(t){if(t.methods&&n.expectedPairingMethodMap.set(t.topic,t.methods),!t.active){var e=n.client.proposal.getAll().find((function(e){return e.pairingTopic===t.topic}));e&&n.onSessionProposeRequest(t.topic,Object(l.formatJsonRpcRequest)("wc_sessionPropose",{requiredNamespaces:e.requiredNamespaces,optionalNamespaces:e.optionalNamespaces,relays:e.relays,proposer:e.proposer,sessionProperties:e.sessionProperties},e.id))}},n.isValidConnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","connect() params: ".concat(JSON.stringify(t))),r=n.message,new Error(r);case 3:if(i=t.pairingTopic,o=t.requiredNamespaces,s=t.optionalNamespaces,u=t.sessionProperties,c=t.relays,e.t0=Object(a.U)(i),e.t0){e.next=8;break}return e.next=8,this.isValidPairingTopic(i);case 8:if(Object(a.hb)(c,!0)){e.next=11;break}throw l=Object(a.A)("MISSING_OR_INVALID","connect() relays: ".concat(c)),h=l.message,new Error(h);case 11:!Object(a.U)(o)&&0!==Object(a.eb)(o)&&this.validateNamespaces(o,"requiredNamespaces"),!Object(a.U)(s)&&0!==Object(a.eb)(s)&&this.validateNamespaces(s,"optionalNamespaces"),Object(a.U)(u)||this.validateSessionProps(u,"sessionProperties");case 12:case"end":return e.stop()}}),e,this)})))},n.validateNamespaces=function(t,e){var n=Object(a.kb)(t,"connect()",e);if(n)throw new Error(n.message)},n.isValidApprove=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=2;break}throw new Error(Object(a.A)("MISSING_OR_INVALID","approve() params: ".concat(t)).message);case 2:return n=t.id,r=t.namespaces,i=t.relayProtocol,o=t.sessionProperties,this.checkRecentlyDeleted(n),e.next=6,this.isValidProposalId(n);case 6:if(s=this.client.proposal.get(n),!(u=Object(a.ab)(r,"approve()"))){e.next=9;break}throw new Error(u.message);case 9:if(!(c=Object(a.L)(s.requiredNamespaces,r,"approve()"))){e.next=12;break}throw new Error(c.message);case 12:if(Object(a.mb)(i,!0)){e.next=15;break}throw l=Object(a.A)("MISSING_OR_INVALID","approve() relayProtocol: ".concat(i)),h=l.message,new Error(h);case 15:Object(a.U)(o)||this.validateSessionProps(o,"sessionProperties");case 16:case"end":return e.stop()}}),e,this)})))},n.isValidReject=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","reject() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.id,o=t.reason,this.checkRecentlyDeleted(i),e.next=7,this.isValidProposalId(i);case 7:if(Object(a.X)(o)){e.next=10;break}throw s=Object(a.A)("MISSING_OR_INVALID","reject() reason: ".concat(JSON.stringify(o))),u=s.message,new Error(u);case 10:case"end":return e.stop()}}),e,this)})))},n.isValidSessionSettleRequest=function(t){if(!Object(a.fb)(t)){var e=Object(a.A)("MISSING_OR_INVALID","onSessionSettleRequest() params: ".concat(t)).message;throw new Error(e)}var n=t.relay,r=t.controller,i=t.namespaces,o=t.expiry;if(!Object(a.gb)(n)){var s=Object(a.A)("MISSING_OR_INVALID","onSessionSettleRequest() relay protocol should be a string").message;throw new Error(s)}var u=Object(a.W)(r,"onSessionSettleRequest()");if(u)throw new Error(u.message);var c=Object(a.ab)(i,"onSessionSettleRequest()");if(c)throw new Error(c.message);if(Object(a.M)(o)){var l=Object(a.A)("EXPIRED","onSessionSettleRequest()").message;throw new Error(l)}},n.isValidUpdate=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","update() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.namespaces,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:if(s=this.client.session.get(i),!(u=Object(a.ab)(o,"update()"))){e.next=10;break}throw new Error(u.message);case 10:if(!(c=Object(a.L)(s.requiredNamespaces,o,"update()"))){e.next=13;break}throw new Error(c.message);case 13:case"end":return e.stop()}}),e,this)})))},n.isValidExtend=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","extend() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:case"end":return e.stop()}}),e,this)})))},n.isValidRequest=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m,g,v,w;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","request() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.request,s=t.chainId,u=t.expiry,this.checkRecentlyDeleted(i),e.next=7,this.isValidSessionTopic(i);case 7:if(c=this.client.session.get(i),l=c.namespaces,Object(a.bb)(l,s)){e.next=11;break}throw h=Object(a.A)("MISSING_OR_INVALID","request() chainId: ".concat(s)),d=h.message,new Error(d);case 11:if(Object(a.ib)(o)){e.next=14;break}throw p=Object(a.A)("MISSING_OR_INVALID","request() ".concat(JSON.stringify(o))),y=p.message,new Error(y);case 14:if(Object(a.db)(l,s,o.method)){e.next=17;break}throw m=Object(a.A)("MISSING_OR_INVALID","request() method: ".concat(o.method)),g=m.message,new Error(g);case 17:if(!u||Object(a.jb)(u,C)){e.next=20;break}throw v=Object(a.A)("MISSING_OR_INVALID","request() expiry: ".concat(u,". Expiry must be a number (in seconds) between ").concat(C.min," and ").concat(C.max)),w=v.message,new Error(w);case 20:case"end":return e.stop()}}),e,this)})))},n.isValidRespond=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw r=Object(a.A)("MISSING_OR_INVALID","respond() params: ".concat(t)),i=r.message,new Error(i);case 3:return o=t.topic,s=t.response,e.prev=4,e.next=7,this.isValidSessionTopic(o);case 7:e.next=12;break;case 9:throw e.prev=9,e.t0=e.catch(4),null!=(n=null==t?void 0:t.response)&&n.id&&this.cleanupAfterResponse(t),e.t0;case 12:if(Object(a.lb)(s)){e.next=15;break}throw u=Object(a.A)("MISSING_OR_INVALID","respond() response: ".concat(JSON.stringify(s))),c=u.message,new Error(c);case 15:case"end":return e.stop()}}),e,this,[[4,9]])})))},n.isValidPing=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","ping() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,e.next=6,this.isValidSessionOrPairingTopic(i);case 6:case"end":return e.stop()}}),e,this)})))},n.isValidEmit=function(t){return x(w(n),null,f().mark((function e(){var n,r,i,o,s,u,c,l,h,d,p,y,m;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","emit() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,o=t.event,s=t.chainId,e.next=6,this.isValidSessionTopic(i);case 6:if(u=this.client.session.get(i),c=u.namespaces,Object(a.bb)(c,s)){e.next=10;break}throw l=Object(a.A)("MISSING_OR_INVALID","emit() chainId: ".concat(s)),h=l.message,new Error(h);case 10:if(Object(a.Y)(o)){e.next=13;break}throw d=Object(a.A)("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(o))),p=d.message,new Error(p);case 13:if(Object(a.cb)(c,s,o.name)){e.next=16;break}throw y=Object(a.A)("MISSING_OR_INVALID","emit() event: ".concat(JSON.stringify(o))),m=y.message,new Error(m);case 16:case"end":return e.stop()}}),e,this)})))},n.isValidDisconnect=function(t){return x(w(n),null,f().mark((function e(){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.fb)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","disconnect() params: ".concat(t)),r=n.message,new Error(r);case 3:return i=t.topic,e.next=6,this.isValidSessionOrPairingTopic(i);case 6:case"end":return e.stop()}}),e,this)})))},n.isValidAuthenticate=function(t){var e=t.chains,n=t.uri,r=t.domain,i=t.nonce;if(!Array.isArray(e)||0===e.length)throw new Error("chains is required and must be a non-empty array");if(!Object(a.mb)(n,!1))throw new Error("uri is required parameter");if(!Object(a.mb)(r,!1))throw new Error("domain is required parameter");if(!Object(a.mb)(i,!1))throw new Error("nonce is required parameter");if(d(new Set(e.map((function(t){return Object(a.rb)(t).namespace})))).length>1)throw new Error("Multi-namespace requests are not supported. Please request single namespace only.");if("eip155"!==Object(a.rb)(e[0]).namespace)throw new Error("Only eip155 namespace is supported for authenticated sessions. Please use .connect() for non-eip155 chains.")},n.getVerifyContext=function(t,e){return x(w(n),null,f().mark((function n(){var i,o;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return i={verified:{verifyUrl:e.verifyUrl||r.g,validation:"UNKNOWN",origin:e.url||""}},n.prev=1,n.next=4,this.client.core.verify.resolve({attestationId:t,verifyUrl:e.verifyUrl});case 4:(o=n.sent)&&(i.verified.origin=o.origin,i.verified.isScam=o.isScam,i.verified.validation=o.origin===new URL(e.url).origin?"VALID":"INVALID"),n.next=11;break;case 8:n.prev=8,n.t0=n.catch(1),this.client.logger.info(n.t0);case 11:return n.abrupt("return",(this.client.logger.info("Verify context: ".concat(JSON.stringify(i))),i));case 12:case"end":return n.stop()}}),n,this,[[1,8]])})))},n.validateSessionProps=function(t,e){Object.values(t).forEach((function(t){if(!Object(a.mb)(t,!1)){var n=Object(a.A)("MISSING_OR_INVALID","".concat(e," must be in Record format. Received: ").concat(JSON.stringify(t))).message;throw new Error(n)}}))},n.getPendingAuthRequest=function(t){var e=n.client.auth.requests.get(t);return"object"==h(e)?e:void 0},n.addToRecentlyDeleted=function(t,e){if(n.recentlyDeletedMap.set(t,e),n.recentlyDeletedMap.size>=n.recentlyDeletedLimit){var r,i=0,o=n.recentlyDeletedLimit/2,a=I(n.recentlyDeletedMap.keys());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i++>=o)break;n.recentlyDeletedMap.delete(s)}}catch(t){a.e(t)}finally{a.f()}}},n.checkRecentlyDeleted=function(t){var e=n.recentlyDeletedMap.get(t);if(e){var r=Object(a.A)("MISSING_OR_INVALID","Record was recently deleted - ".concat(e,": ").concat(t)).message;throw new Error(r)}},n}return M(e,t),m(e,[{key:"isInitialized",value:function(){return x(this,null,f().mark((function t(){var e,n;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(this.initialized){t.next=3;break}throw e=Object(a.A)("NOT_INITIALIZED",this.name),n=e.message,new Error(n);case 3:return t.next=5,this.client.core.relayer.confirmOnlineStateOrThrow();case 5:case"end":return t.stop()}}),t,this)})))}},{key:"registerRelayerEvents",value:function(){var t=this;this.client.core.relayer.on(r.e.message,(function(e){return x(t,null,f().mark((function t(){var n,r,i,o,a;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=e.topic,r=e.message,i=this.client.auth.authKeys.keys.includes(_)?this.client.auth.authKeys.get(_):{responseTopic:void 0,publicKey:void 0},o=i.publicKey,t.next=6,this.client.core.crypto.decode(n,r,{receiverPublicKey:o});case 6:if(a=t.sent,t.prev=7,!Object(l.isJsonRpcRequest)(a)){t.next=12;break}this.client.core.history.set(n,a),this.onRelayEventRequest({topic:n,payload:a}),t.next=21;break;case 12:if(!Object(l.isJsonRpcResponse)(a)){t.next=20;break}return t.next=15,this.client.core.history.resolve(a);case 15:return t.next=17,this.onRelayEventResponse({topic:n,payload:a});case 17:this.client.core.history.delete(n,a.id),t.next=21;break;case 20:this.onRelayEventUnknownPayload({topic:n,payload:a});case 21:t.next=26;break;case 23:t.prev=23,t.t0=t.catch(7),this.client.logger.error(t.t0);case 26:case"end":return t.stop()}}),t,this,[[7,23]])})))}))}},{key:"registerExpirerEvents",value:function(){var t=this;this.client.core.expirer.on(r.b.expired,(function(e){return x(t,null,f().mark((function t(){var n,r,i;return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(n=Object(a.sb)(e.target),r=n.topic,!(i=n.id)||!this.client.pendingRequest.keys.includes(i)){t.next=5;break}return t.next=4,this.deletePendingSessionRequest(i,Object(a.A)("EXPIRED"),!0);case 4:return t.abrupt("return",t.sent);case 5:if(!r){t.next=13;break}if(t.t0=this.client.session.keys.includes(r),!t.t0){t.next=11;break}return t.next=10,this.deleteSession({topic:r,expirerHasDeleted:!0});case 10:this.client.events.emit("session_expire",{topic:r});case 11:t.next=18;break;case 13:if(t.t1=i,!t.t1){t.next=18;break}return t.next=17,this.deleteProposal(i,!0);case 17:this.client.events.emit("proposal_expire",{id:i});case 18:case"end":return t.stop()}}),t,this)})))}))}},{key:"registerPairingEvents",value:function(){var t=this;this.client.core.pairing.events.on(r.c.create,(function(e){return t.onPairingCreated(e)})),this.client.core.pairing.events.on(r.c.delete,(function(e){t.addToRecentlyDeleted(e.topic,"pairing")}))}},{key:"isValidPairingTopic",value:function(t){if(!Object(a.mb)(t,!1)){var e=Object(a.A)("MISSING_OR_INVALID","pairing topic should be a string: ".concat(t)).message;throw new Error(e)}if(!this.client.core.pairing.pairings.keys.includes(t)){var n=Object(a.A)("NO_MATCHING_KEY","pairing topic doesn't exist: ".concat(t)).message;throw new Error(n)}if(Object(a.M)(this.client.core.pairing.pairings.get(t).expiry)){var r=Object(a.A)("EXPIRED","pairing topic: ".concat(t)).message;throw new Error(r)}}},{key:"isValidSessionTopic",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o,s,u,c,l;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.mb)(t,!1)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","session topic should be a string: ".concat(t)),r=n.message,new Error(r);case 3:if(this.checkRecentlyDeleted(t),this.client.session.keys.includes(t)){e.next=6;break}throw i=Object(a.A)("NO_MATCHING_KEY","session topic doesn't exist: ".concat(t)),o=i.message,new Error(o);case 6:if(!Object(a.M)(this.client.session.get(t).expiry)){e.next=11;break}return e.next=9,this.deleteSession({topic:t});case 9:throw s=Object(a.A)("EXPIRED","session topic: ".concat(t)),u=s.message,new Error(u);case 11:if(this.client.core.crypto.keychain.has(t)){e.next=16;break}return c=Object(a.A)("MISSING_OR_INVALID","session topic does not exist in keychain: ".concat(t)),l=c.message,e.next=15,this.deleteSession({topic:t});case 15:throw new Error(l);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"isValidSessionOrPairingTopic",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this.checkRecentlyDeleted(t),!this.client.session.keys.includes(t)){e.next=5;break}return e.next=3,this.isValidSessionTopic(t);case 3:e.next=16;break;case 5:if(!this.client.core.pairing.pairings.keys.includes(t)){e.next=9;break}this.isValidPairingTopic(t),e.next=16;break;case 9:if(!Object(a.mb)(t,!1)){e.next=14;break}throw n=Object(a.A)("NO_MATCHING_KEY","session or pairing topic doesn't exist: ".concat(t)),r=n.message,new Error(r);case 14:throw i=Object(a.A)("MISSING_OR_INVALID","session or pairing topic should be a string: ".concat(t)),o=i.message,new Error(o);case 16:case"end":return e.stop()}}),e,this)})))}},{key:"isValidProposalId",value:function(t){return x(this,null,f().mark((function e(){var n,r,i,o,s,u;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Object(a.Z)(t)){e.next=3;break}throw n=Object(a.A)("MISSING_OR_INVALID","proposal id should be a number: ".concat(t)),r=n.message,new Error(r);case 3:if(this.client.proposal.keys.includes(t)){e.next=6;break}throw i=Object(a.A)("NO_MATCHING_KEY","proposal id doesn't exist: ".concat(t)),o=i.message,new Error(o);case 6:if(!Object(a.M)(this.client.proposal.get(t).expiryTimestamp)){e.next=11;break}return e.next=9,this.deleteProposal(t);case 9:throw s=Object(a.A)("EXPIRED","proposal id: ".concat(t)),u=s.message,new Error(u);case 11:case"end":return e.stop()}}),e,this)})))}}])}(o.c),q=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"proposal",k])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),Z=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"session",k])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),J=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"request",k,function(t){return t.id}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),X=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"authKeys",P,function(){return _}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),K=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"pairingTopics",P])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),$=function(t){function e(t,n){var r;return p(this,e),(r=v(this,e,[t,n,"requests",P,function(t){return t.id}])).core=t,r.logger=n,r}return M(e,t),m(e)}(r.f),tt=m((function t(e,n){p(this,t),this.core=e,this.logger=n,this.authKeys=new X(this.core,this.logger),this.pairingTopics=new K(this.core,this.logger),this.requests=new $(this.core,this.logger)}),[{key:"init",value:function(){return x(this,null,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.authKeys.init();case 2:return t.next=4,this.pairingTopics.init();case 4:return t.next=6,this.requests.init();case 6:case"end":return t.stop()}}),t,this)})))}}]),et=function(t){function e(t){var n;p(this,e),(n=v(this,e,[t])).protocol="wc",n.version=2,n.name=T,n.events=new s.EventEmitter,n.on=function(t,e){return n.events.on(t,e)},n.once=function(t,e){return n.events.once(t,e)},n.off=function(t,e){return n.events.off(t,e)},n.removeListener=function(t,e){return n.events.removeListener(t,e)},n.removeAllListeners=function(t){return n.events.removeAllListeners(t)},n.connect=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.connect(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.pair=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.pair(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.approve=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.approve(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.reject=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.reject(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.update=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.update(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.extend=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.extend(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.request=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.request(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.respond=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.respond(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.ping=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.ping(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.emit=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.emit(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.disconnect=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.disconnect(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.find=function(t){try{return n.engine.find(t)}catch(t){throw n.logger.error(t.message),t}},n.getPendingSessionRequests=function(){try{return n.engine.getPendingSessionRequests()}catch(t){throw n.logger.error(t.message),t}},n.authenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.authenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.formatAuthMessage=function(t){try{return n.engine.formatAuthMessage(t)}catch(t){throw n.logger.error(t.message),t}},n.approveSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.approveSessionAuthenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.rejectSessionAuthenticate=function(t){return x(w(n),null,f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.engine.rejectSessionAuthenticate(t);case 3:return e.abrupt("return",e.sent);case 6:throw e.prev=6,e.t0=e.catch(0),this.logger.error(e.t0.message),e.t0;case 9:case"end":return e.stop()}}),e,this,[[0,6]])})))},n.name=(null==t?void 0:t.name)||T,n.metadata=(null==t?void 0:t.metadata)||Object(a.v)();var o=h(null==t?void 0:t.logger)<"u"&&"string"!=typeof(null==t?void 0:t.logger)?t.logger:Object(i.e)(Object(i.c)({level:(null==t?void 0:t.logger)||"error"}));return n.core=(null==t?void 0:t.core)||new r.a(t),n.logger=Object(i.a)(o,n.name),n.session=new Z(n.core,n.logger),n.proposal=new q(n.core,n.logger),n.pendingRequest=new J(n.core,n.logger),n.engine=new G(n),n.auth=new tt(n.core,n.logger),n}return M(e,t),m(e,[{key:"context",get:function(){return Object(i.d)(this.logger)}},{key:"pairing",get:function(){return this.core.pairing.pairings}},{key:"initialize",value:function(){return x(this,null,f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this.logger.trace("Initialized"),t.prev=1,t.next=4,this.core.start();case 4:return t.next=6,this.session.init();case 6:return t.next=8,this.proposal.init();case 8:return t.next=10,this.pendingRequest.init();case 10:return t.next=12,this.engine.init();case 12:return t.next=14,this.auth.init();case 14:this.core.verify.init({verifyUrl:this.metadata.verifyUrl}),this.logger.info("SignClient Initialization Success"),t.next=21;break;case 18:throw t.prev=18,t.t0=t.catch(1),this.logger.info("SignClient Initialization Failure"),this.logger.error(t.t0.message),t.t0;case 21:case"end":return t.stop()}}),t,this,[[1,18]])})))}}],[{key:"init",value:function(t){return x(this,null,f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=new e(t),n.next=3,r.initialize();case 3:return n.abrupt("return",r);case 4:case"end":return n.stop()}}),n)})))}}])}(o.i)}]);void 0===BI&&console.error("esm-webpack-plugin: nothing exported!"),BI.Core;const RI=BI.SignClient;var UI=function(t){var e={};function n(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(r,i,function(e){return t[e]}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=125)}([function(t,e,n){n.d(e,"a",(function(){return i})); /*! ***************************************************************************** Copyright (c) Microsoft Corporation. @@ -47,18 +47,18 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */ -var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}},function(t,e,n){n.d(e,"a",(function(){return l}));var r=n(0),i=n(26),o=n(58),a=n(4),s=n(43),u=n(14),c=n(36),l=function(t){function e(n,r,i){var a=t.call(this)||this;switch(a.syncErrorValue=null,a.syncErrorThrown=!1,a.syncErrorThrowable=!1,a.isStopped=!1,arguments.length){case 0:a.destination=o.a;break;case 1:if(!n){a.destination=o.a;break}if("object"==typeof n){n instanceof e?(a.syncErrorThrowable=n.syncErrorThrowable,a.destination=n,n.add(a)):(a.syncErrorThrowable=!0,a.destination=new h(a,n));break}default:a.syncErrorThrowable=!0,a.destination=new h(a,n,r,i)}return a}return r.a(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this},e}(a.a),h=function(t){function e(e,n,r,a){var s,u=t.call(this)||this;u._parentSubscriber=e;var c=u;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(c=Object.create(n),Object(i.a)(c.unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(u))),u._context=c,u._next=s,u._error=r,u._complete=a,u}return r.a(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=u.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(c.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(c.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};u.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),u.a.useDeprecatedSynchronousErrorHandling)throw t;Object(c.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!u.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return u.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(c.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(l)},function(t,e,n){n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"c",(function(){return c}));var r=n(0),i=n(1),o=n(3),a=n(35),s=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,n}return r.a(e,t),e.prototype._next=function(t){this.parent.notifyNext(t)},e.prototype._error=function(t){this.parent.notifyError(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(),this.unsubscribe()},e}(i.a),u=(i.a,function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.notifyNext=function(t){this.destination.next(t)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(){this.destination.complete()},e}(i.a));function c(t,e){if(!e.closed){if(t instanceof o.a)return t.subscribe(e);var n;try{n=Object(a.a)(t)(e)}catch(t){e.error(t)}return n}}i.a},function(t,e,n){n.d(e,"a",(function(){return l}));var r=n(56),i=n(1),o=n(43),a=n(58),s=n(22),u=n(41),c=n(14),l=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,s=function(t,e,n){if(t){if(t instanceof i.a)return t;if(t[o.a])return t[o.a]()}return t||e||n?new i.a(t,e,n):new i.a(a.a)}(t,e,n);if(r?s.add(r.call(s,this.source)):s.add(this.source||c.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),c.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){c.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),Object(r.a)(t)?t.error(e):console.warn(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=h(e))((function(e,r){var i;i=n.subscribe((function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}}),r,e)}))},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[s.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return w(t,s,i,o,null)}function w(t,e,n,r,a){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function b(){return{current:null}}function M(t){return t.children}function A(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&s.sort(l));x.__r=0}function k(t,e,n,r,i,o,a,s,u,c,l){var h,p,m,g,v,b,A,N,E,x=0,k=r&&r.__k||f,L=k.length,D=L,C=e.length;for(n.__k=[],h=0;h0?w(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(N=j(g,k,A=h+x,D))?m=d:(m=k[N]||d,k[N]=void 0,D--),P(t,g,m,i,o,a,s,u,c,l),v=g.__e,(p=g.ref)&&m.ref!=p&&(m.ref&&R(m.ref,null,g),l.push(p,g.__c||v,g)),null!=v&&(null==b&&(b=v),(E=m===d||null===m.__v)?-1==N&&x--:N!==A&&(N===A+1?x++:N>A?D>C-A?x+=N-A:x--:x=N(null!=u?1:0))for(;a>=0||s=0){if((u=e[a])&&i==u.key&&o===u.type)return a;a--}if(s2&&(u.children=arguments.length>3?r.call(arguments,2):n),w(t.type,u,i||t.key,o||t.ref,null)}function V(t,e){var n={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,E(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},o=0,a=function(t){return null!=t&&void 0===t.constructor},A.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),E(this))},A.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},A.prototype.render=M,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},x.__r=0,h=0},function(t,e,n){n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(3),o=n(1),a=n(4),s=n(23),u=n(80),c=n(43),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[c.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i2&&(s.children=arguments.length>3?r.call(arguments,2):n),"function"==typeof t&&null!=t.defaultProps)for(a in t.defaultProps)void 0===s[a]&&(s[a]=t.defaultProps[a]);return w(t,s,i,o,null)}function w(t,e,n,r,a){var s={type:t,props:e,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==a?++o:a};return null==a&&null!=i.vnode&&i.vnode(s),s}function b(){return{current:null}}function M(t){return t.children}function A(t,e){this.props=t,this.context=e}function I(t,e){if(null==e)return t.__?I(t.__,t.__.__k.indexOf(t)+1):null;for(var n;ee&&s.sort(l));x.__r=0}function k(t,e,n,r,i,o,a,s,u,c,l){var h,p,m,g,v,b,A,N,E,x=0,k=r&&r.__k||f,L=k.length,C=L,D=e.length;for(n.__k=[],h=0;h0?w(g.type,g.props,g.key,g.ref?g.ref:null,g.__v):g)?(g.__=n,g.__b=n.__b+1,-1===(N=j(g,k,A=h+x,C))?m=d:(m=k[N]||d,k[N]=void 0,C--),P(t,g,m,i,o,a,s,u,c,l),v=g.__e,(p=g.ref)&&m.ref!=p&&(m.ref&&R(m.ref,null,g),l.push(p,g.__c||v,g)),null!=v&&(null==b&&(b=v),(E=m===d||null===m.__v)?-1==N&&x--:N!==A&&(N===A+1?x++:N>A?C>D-A?x+=N-A:x--:x=N(null!=u?1:0))for(;a>=0||s=0){if((u=e[a])&&i==u.key&&o===u.type)return a;a--}if(s2&&(u.children=arguments.length>3?r.call(arguments,2):n),w(t.type,u,i||t.key,o||t.ref,null)}function V(t,e){var n={__c:e="__cC"+h++,__:t,Consumer:function(t,e){return t.children(e)},Provider:function(t){var n,r;return this.getChildContext||(n=[],(r={})[e]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(t){this.props.value!==t.value&&n.some((function(t){t.__e=!0,E(t)}))},this.sub=function(t){n.push(t);var e=t.componentWillUnmount;t.componentWillUnmount=function(){n.splice(n.indexOf(t),1),e&&e.call(t)}}),t.children}};return n.Provider.__=n.Consumer.contextType=n}r=f.slice,i={__e:function(t,e,n,r){for(var i,o,a;e=e.__;)if((i=e.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(t)),a=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(t,r||{}),a=i.__d),a)return i.__E=i}catch(e){t=e}throw t}},o=0,a=function(t){return null!=t&&void 0===t.constructor},A.prototype.setState=function(t,e){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=m({},this.state),"function"==typeof t&&(t=t(m({},n),this.props)),t&&m(n,t),null!=t&&this.__v&&(e&&this._sb.push(e),E(this))},A.prototype.forceUpdate=function(t){this.__v&&(this.__e=!0,t&&this.__h.push(t),E(this))},A.prototype.render=M,s=[],c="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,l=function(t,e){return t.__v.__b-e.__v.__b},x.__r=0,h=0},function(t,e,n){n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(3),o=n(1),a=n(4),s=n(23),u=n(80),c=n(43),l=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.a(e,t),e}(o.a),h=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.a(e,t),e.prototype[c.a]=function(){return new l(this)},e.prototype.lift=function(t){var e=new d(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new s.a;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i * @license MIT */ -var r=n(128),i=n(129),o=n(130);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function C(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function z(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return o||z(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function _(t,e,n,r,o){return o||z(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||D(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):C(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):C(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(63))},function(t,e,n){n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(t,e,n){function r(){}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(9),o=n(12),a=n(2);function s(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(s((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new u(t,n))})}var u=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(a.b),l=s},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(3),i=n(81),o=n(57);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(0),i=n(62),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(0),i=n(6),o=n(4),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return this},e}(n(4).a))},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(8);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(39),i=n(75);function o(){for(var t=[],e=0;e=a())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a().toString(16)+" bytes");return 0|t}function p(t,e){if(u.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return U(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return U(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return x(this,e,n);case"ascii":return k(this,e,n);case"latin1":case"binary":return T(this,e,n);case"base64":return E(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function m(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=u.from(e,r)),u.isBuffer(e))return 0===e.length?-1:v(t,e,n,r,i);if("number"==typeof e)return e&=255,u.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):v(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function v(t,e,n,r,i){var o,a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}function c(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}if(i){var l=-1;for(o=n;os&&(n=s-u),o=n;o>=0;o--){for(var h=!0,d=0;di&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a>8,i=n%256,o.push(i),o.push(r);return o}(e,t.length-n),t,n,r)}function E(t,e,n){return 0===e&&n===t.length?r.fromByteArray(t):r.fromByteArray(t.slice(e,n))}function x(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(l=c);break;case 2:128==(192&(o=t[i+1]))&&(u=(31&c)<<6|63&o)>127&&(l=u);break;case 3:o=t[i+1],a=t[i+2],128==(192&o)&&128==(192&a)&&(u=(15&c)<<12|(63&o)<<6|63&a)>2047&&(u<55296||u>57343)&&(l=u);break;case 4:o=t[i+1],a=t[i+2],s=t[i+3],128==(192&o)&&128==(192&a)&&128==(192&s)&&(u=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s)>65535&&u<1114112&&(l=u)}null===l?(l=65533,h=1):l>65535&&(l-=65536,r.push(l>>>10&1023|55296),l=56320|1023&l),r.push(l),i+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);for(var n="",r=0;rr)&&(n=r);for(var i="",o=e;on)throw new RangeError("Trying to access beyond buffer length")}function C(t,e,n,r,i,o){if(!u.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||et.length)throw new RangeError("Index out of range")}function D(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i>>8*(r?i:1-i)}function O(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i>>8*(r?i:3-i)&255}function z(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function P(t,e,n,r,o){return o||z(t,0,n,4),i.write(t,e,n,r,23,4),n+4}function _(t,e,n,r,o){return o||z(t,0,n,8),i.write(t,e,n,r,52,8),n+8}e.Buffer=u,e.SlowBuffer=function(t){return+t!=t&&(t=0),u.alloc(+t)},e.INSPECT_MAX_BYTES=50,u.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=a(),u.poolSize=8192,u._augment=function(t){return t.__proto__=u.prototype,t},u.from=function(t,e,n){return c(null,t,e,n)},u.TYPED_ARRAY_SUPPORT&&(u.prototype.__proto__=Uint8Array.prototype,u.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&u[Symbol.species]===u&&Object.defineProperty(u,Symbol.species,{value:null,configurable:!0})),u.alloc=function(t,e,n){return function(t,e,n,r){return l(e),e<=0?s(t,e):void 0!==n?"string"==typeof r?s(t,e).fill(n,r):s(t,e).fill(n):s(t,e)}(null,t,e,n)},u.allocUnsafe=function(t){return h(null,t)},u.allocUnsafeSlow=function(t){return h(null,t)},u.isBuffer=function(t){return!(null==t||!t._isBuffer)},u.compare=function(t,e){if(!u.isBuffer(t)||!u.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),c=this.slice(r,i),l=t.slice(e,n),h=0;hi)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return b(this,t,e,n);case"ascii":return M(this,t,e,n);case"latin1":case"binary":return A(this,t,e,n);case"base64":return I(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},u.prototype.slice=function(t,e){var n,r=this.length;if((t=~~t)<0?(t+=r)<0&&(t=0):t>r&&(t=r),(e=void 0===e?r:~~e)<0?(e+=r)<0&&(e=0):e>r&&(e=r),e0&&(i*=256);)r+=this[t+--e]*i;return r},u.prototype.readUInt8=function(t,e){return e||j(t,1,this.length),this[t]},u.prototype.readUInt16LE=function(t,e){return e||j(t,2,this.length),this[t]|this[t+1]<<8},u.prototype.readUInt16BE=function(t,e){return e||j(t,2,this.length),this[t]<<8|this[t+1]},u.prototype.readUInt32LE=function(t,e){return e||j(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},u.prototype.readUInt32BE=function(t,e){return e||j(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},u.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=this[t],i=1,o=0;++o=(i*=128)&&(r-=Math.pow(2,8*e)),r},u.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||j(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},u.prototype.readInt8=function(t,e){return e||j(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},u.prototype.readInt16LE=function(t,e){e||j(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt16BE=function(t,e){e||j(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},u.prototype.readInt32LE=function(t,e){return e||j(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},u.prototype.readInt32BE=function(t,e){return e||j(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},u.prototype.readFloatLE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!0,23,4)},u.prototype.readFloatBE=function(t,e){return e||j(t,4,this.length),i.read(this,t,!1,23,4)},u.prototype.readDoubleLE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!0,52,8)},u.prototype.readDoubleBE=function(t,e){return e||j(t,8,this.length),i.read(this,t,!1,52,8)},u.prototype.writeUIntLE=function(t,e,n,r){t=+t,e|=0,n|=0,r||C(this,t,e,n,Math.pow(2,8*n)-1,0);var i=1,o=0;for(this[e]=255&t;++o=0&&(o*=256);)this[e+i]=t/o&255;return e+n},u.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,1,255,0),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},u.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,65535,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):O(this,t,e,!0),e+4},u.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,4294967295,0),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);C(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o>0)-s&255;return e+n},u.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);C(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},u.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,1,127,-128),u.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},u.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):D(this,t,e,!0),e+2},u.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,2,32767,-32768),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):D(this,t,e,!1),e+2},u.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,2147483647,-2147483648),u.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):O(this,t,e,!0),e+4},u.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||C(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),u.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):O(this,t,e,!1),e+4},u.prototype.writeFloatLE=function(t,e,n){return P(this,t,e,!0,n)},u.prototype.writeFloatBE=function(t,e,n){return P(this,t,e,!1,n)},u.prototype.writeDoubleLE=function(t,e,n){return _(this,t,e,!0,n)},u.prototype.writeDoubleBE=function(t,e,n){return _(this,t,e,!1,n)},u.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e=0;--i)t[i+e]=this[i+n];else if(o<1e3||!u.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(o=e;o55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(t){return r.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(B,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function Y(t,e,n,r){for(var i=0;i=e.length||i>=t.length);++i)e[i+n]=t[i];return i}}).call(this,n(63))},function(t,e,n){n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"},function(t,e,n){function r(){}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return r}));var r="function"==typeof Symbol&&Symbol.observable||"@@observable"},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){function r(t){return"function"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return l}));var r=n(0),i=n(9),o=n(12),a=n(2);function s(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"function"==typeof e?function(r){return r.pipe(s((function(n,r){return Object(o.a)(t(n,r)).pipe(Object(i.a)((function(t,i){return e(n,t,r,i)})))}),n))}:("number"==typeof e&&(n=e),function(e){return e.lift(new u(t,n))})}var u=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.project,this.concurrent))},t}(),c=function(t){function e(e,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var i=t.call(this,e)||this;return i.project=n,i.concurrent=r,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return r.a(e,t),e.prototype._next=function(t){this.active0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(a.b),l=s},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(3),i=n(81),o=n(57);function a(t,e){return e?Object(o.a)(t,e):new r.a(Object(i.a)(t))}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(0),i=n(62),o=function(t){function e(n,r){void 0===r&&(r=i.a.now);var o=t.call(this,n,(function(){return e.delegate&&e.delegate!==o?e.delegate.now():r()}))||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.a(e,t),e.prototype.schedule=function(n,r,i){return void 0===r&&(r=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,r,i):t.prototype.schedule.call(this,n,r,i)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(0),i=n(6),o=n(4),a=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.value=null,e.hasNext=!1,e.hasCompleted=!1,e}return r.a(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.a.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.a.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.a(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r.a(e,t),e.prototype.schedule=function(t,e){return this},e}(n(4).a))},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(8);function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(39),i=n(75);function o(){for(var t=[],e=0;e */ -var r=n(19),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){(function(t){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;const i=r(n(66)),o=n(139),a=n(67),s=/^[0-9]*$/,u=/^[a-f0-9]*$/;function c(t){return[...t].map((t=>t.toString(16).padStart(2,"0"))).join("")}function l(t){return t.startsWith("0x")||t.startsWith("0X")}function h(t){return l(t)?t.slice(2):t}function d(t){return l(t)?"0x"+t.slice(2):"0x"+t}function f(t){if("string"!=typeof t)return!1;const e=h(t).toLowerCase();return u.test(e)}function p(t,e=!1){if("string"==typeof t){const n=h(t).toLowerCase();if(u.test(n))return(0,a.HexString)(e?"0x"+n:n)}throw new Error(`"${String(t)}" is not a hexadecimal string`)}function y(t,e=!1){let n=p(t,!1);return n.length%2==1&&(n=(0,a.HexString)("0"+n)),e?(0,a.HexString)("0x"+n):n}function m(t){if("number"==typeof t&&Number.isInteger(t))return(0,a.IntNumber)(t);if("string"==typeof t){if(s.test(t))return(0,a.IntNumber)(Number(t));if(f(t))return(0,a.IntNumber)(new i.default(y(t,!1),16).toNumber())}throw new Error("Not an integer: "+String(t))}function g(t){if(null==t||"function"!=typeof t.constructor)return!1;const{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return c(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=c,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map((t=>parseInt(t,16))))},e.hexStringFromBuffer=function(t,e=!1){const n=t.toString("hex");return(0,a.HexString)(e?"0x"+n:n)},e.bigIntStringFromBN=function(t){return(0,a.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,a.IntNumber)(new i.default(y(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,a.HexString)("0x"+new i.default(t).toString(16))},e.has0xPrefix=l,e.strip0x=h,e.prepend0x=d,e.isHexString=f,e.ensureHexString=p,e.ensureEvenLengthHexString=y,e.ensureAddressString=function(t){if("string"==typeof t){const e=h(t).toLowerCase();if(f(e)&&40===e.length)return(0,a.AddressString)(d(e))}throw new Error("Invalid Ethereum address: "+String(t))},e.ensureBuffer=function(e){if(t.isBuffer(e))return e;if("string"==typeof e){if(f(e)){const n=y(e,!1);return t.from(n,"hex")}return t.from(e,"utf8")}throw new Error("Not binary data: "+String(e))},e.ensureIntNumber=m,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,a.RegExpString)(t.toString());throw new Error("Not a RegExp: "+String(t))},e.ensureBN=function(t){if(null!==t&&(i.default.isBN(t)||g(t)))return new i.default(t.toString(10),10);if("number"==typeof t)return new i.default(m(t));if("string"==typeof t){if(s.test(t))return new i.default(t,10);if(f(t))return new i.default(y(t,!1),16)}throw new Error("Not an integer: "+String(t))},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw new Error("Not a JSON string or an object: "+String(t))},e.isBigNumber=g,e.range=function(t,e){return Array.from({length:e-t},((e,n)=>t+n))},e.getFavicon=function(){const t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:n}=document.location,r=t?t.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?e+r:`${e}//${n}${r}`},e.createQrUrl=function(t,e,n,r,i,a){const s=r?"parent-id":"id";return`${n}/#/link?${(0,o.stringify)({[s]:t,secret:e,server:n,v:i,chainId:a})}`},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}}).call(this,n(19).Buffer)},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(10),i=n(29),o=n(57);function a(){for(var t=[],e=0;e1)for(var n=1;n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=function(t){var e=i++;return a[e]=!0,o.then((function(){return s(e)&&t()})),e}(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(function(t){s(t)}(n),e.scheduled=void 0)},e}(n(32).a),c=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++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 r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){var r={};function i(t,e,n){n||(n=Error);var i=function(t){var n,r;function i(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function o(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i,a;if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))a="The ".concat(t," ").concat(r," ").concat(o(e,"type"));else{var s=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+".".length>t.length)&&-1!==t.indexOf(".",n)}(t)?"property":"argument";a='The "'.concat(t,'" ').concat(s," ").concat(r," ").concat(o(e,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n(111),o=n(115);n(24)(c,i);for(var a=r(o.prototype),s=0;s1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return l}));var r=n(0),i=n(6),o=n(61),a=n(4),s=n(73),u=n(23),c=n(80),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new c.a(this,t)),i&&t.add(t=new s.a(t,i)),n)for(var l=0;le&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),h=function(t,e){this.time=t,this.value=e}},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(3);function i(t,e){return e?new r.a((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.a((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(10),o=n(8),a=n(16),s=n(13),u=n(29),c={};function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[s.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(u.c)(this.observable,new u.a(this))},e}(u.b)},function(t,e,n){function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(3),i=n(4);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(14),i=n(36),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e){function n(t){return t.sort(((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e)))}function r(t){return null==t?t:Number.parseInt(t,16)}function i(t){if(null==t)return t;let e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function o(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...t){return n(t)[0]},maxBlockRef:function(...t){const e=n(t);return e[e.length-1]},sortBlockRefs:n,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){return null==t?t:i(r(t)+1)},intToHex:i,unsafeRandomBytes:function(t){let e="0x";for(let n=0;n=n.__.length&&n.__.push({__V:l}),n.__[t]}function g(t){return u=1,v(z,t)}function v(t,e,n){var o=m(r++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):z(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){var a=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var i=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&o.__c.props===t)&&(!s||s.call(this,t,e,n))};i.u=!0;var s=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var r=s;s=void 0,a(t,e,n),s=r}u&&u.call(this,t,e,n)},i.shouldComponentUpdate=a}return o.__N||o.__}function w(t,e){var n=m(r++,3);!s.options.__s&&O(n.__H,e)&&(n.__=t,n.i=e,i.__H.__h.push(n))}function b(t,e){var n=m(r++,4);!s.options.__s&&O(n.__H,e)&&(n.__=t,n.i=e,i.__h.push(n))}function M(t){return u=5,I((function(){return{current:t}}),[])}function A(t,e,n){u=6,b((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function I(t,e){var n=m(r++,7);return O(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function N(t,e){return u=8,I((function(){return t}),e)}function E(t){var e=i.context[t.__c],n=m(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function x(t,e){s.options.useDebugValue&&s.options.useDebugValue(e?e(t):t)}function k(t){var e=m(r++,10),n=g();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function T(){var t=m(r++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function L(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(D),t.__H.__h.forEach(C),t.__H.__h=[]}catch(e){t.__H.__h=[],s.options.__e(e,t.__v)}}s.options.__b=function(t){i=null,h&&h(t)},s.options.__r=function(t){d&&d(t),r=0;var e=(i=t.__c).__H;e&&(o===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=l,t.__N=t.i=void 0}))):(e.__h.forEach(D),e.__h.forEach(C),e.__h=[],r=0)),o=i},s.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&a===s.options.requestAnimationFrame||((a=s.options.requestAnimationFrame)||j)(L)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==l&&(t.__=t.__V),t.i=void 0,t.__V=l}))),o=i=null},s.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(D),t.__h=t.__h.filter((function(t){return!t.__||C(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.options.__e(n,t.__v)}})),p&&p(t,e)},s.options.unmount=function(t){y&&y(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{D(t)}catch(t){e=t}})),n.__H=void 0,e&&s.options.__e(e,n.__v))};var S="function"==typeof requestAnimationFrame;function j(t){var e,n=function(){clearTimeout(r),S&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);S&&(e=requestAnimationFrame(n))}function D(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function C(t){var e=i;t.__c=t.__(),i=e}function O(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function z(t,e){return"function"==typeof e?e(t):e}},function(t,e,n){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(32).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(30).a))(i),a=o},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=n(65);function i(t,e,n){try{Reflect.apply(t,e,n)}catch(t){setTimeout((()=>{throw t}))}}class o extends r.EventEmitter{emit(t,...e){let n="error"===t;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let t;if(e.length>0&&([t]=e),t instanceof Error)throw t;const n=new Error("Unhandled error."+(t?` (${t.message})`:""));throw n.context=t,n}const o=r[t];if(void 0===o)return!1;if("function"==typeof o)i(o,this,e);else{const t=o.length,n=function(t){const e=t.length,n=new Array(e);for(let r=0;r0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){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 f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(132).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function c(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=p[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var y=h.modrn(l).toString(t);n=(h=h.idivn(l)).isZero()?y+n:d[c-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],D=8191&j,C=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(D,Q),i=(i=Math.imul(D,Y))+Math.imul(C,Q)|0,o=Math.imul(C,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(D,F)|0,i=(i=i+Math.imul(D,V)|0)+Math.imul(C,F)|0,o=o+Math.imul(C,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(D,G)|0,i=(i=i+Math.imul(D,q)|0)+Math.imul(C,G)|0,o=o+Math.imul(C,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(D,J)|0,i=(i=i+Math.imul(D,X)|0)+Math.imul(C,J)|0,o=o+Math.imul(C,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(D,$)|0,i=(i=i+Math.imul(D,tt)|0)+Math.imul(C,$)|0,o=o+Math.imul(C,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(D,nt)|0,i=(i=i+Math.imul(D,rt)|0)+Math.imul(C,nt)|0,o=o+Math.imul(C,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(D,ot)|0,i=(i=i+Math.imul(D,at)|0)+Math.imul(C,ot)|0,o=o+Math.imul(C,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(D,ut)|0,i=(i=i+Math.imul(D,ct)|0)+Math.imul(C,ut)|0,o=o+Math.imul(C,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(D,ht)|0,i=(i=i+Math.imul(D,dt)|0)+Math.imul(C,ht)|0,o=o+Math.imul(C,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Dt=(c+(r=r+Math.imul(D,pt)|0)|0)+((8191&(i=(i=i+Math.imul(D,yt)|0)+Math.imul(C,pt)|0))<<13)|0;c=((o=o+Math.imul(C,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Ct=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Dt,u[17]=Ct,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(t,e,n){return g(t,e,n)}Math.imul||(m=y),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?y(this,t,e):n<1024?g(this,t,e):v(this,t,e)},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(n.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(M,b),M.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new A;else if("p192"===t)e=new I;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return w[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(131)(t))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=function(){return t=>t},e.HexString=t=>t,e.AddressString=t=>t,e.BigIntString=t=>t,e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=t=>t,function(t){t.CoinbaseWallet="CoinbaseWallet",t.MetaMask="MetaMask",t.Unselected=""}(e.ProviderType||(e.ProviderType={}))},function(t,e,n){n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return d}));var r=n(0),i=n(1),o=n(4),a=n(3),s=n(6);function u(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}}var c=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(e,i);var o=new d(e,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(a.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),h=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),d=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new f(n)),e.add(r.subscribe(t)),e},e}(a.a),f=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(y.a),g=n(30),v=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++re.index?1:-1:t.delay>e.delay?1:-1},e}(y.a),A=n(62),I=n(4),N=n(1),E=n(18),x=n(41),k=n(21),T=n(15);function L(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var S=n(25),j=n(27),D=n(23),C=n(44),O=n(74),z=n(9),P=n(56),_=n(8),B=n(10);function R(t,e,n){if(e){if(!Object(B.a)(e))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function nt(t,e,n){return n?nt(t,e).pipe(Object(z.a)((function(t){return Object(_.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function At(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var It=n(50),Nt=n(78);function Et(t,e){return new r.a((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(X.a)(i):Z.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var xt=n(54),kt=n(79),Tt=n(14)},function(t,e,n){n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l}));var r=n(0),i=n(6),o=n(3),a=n(1),s=n(4),u=n(48),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return Object(u.a)()(this)},e}(o.a),l=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(0),i=n(6),o=n(23),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n(0),i=n(1),o=n(18);function a(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}(),u=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),c=function(t,e){this.notification=t,this.destination=e}},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(52);function i(){return Object(r.a)(1)}},function(t,e,n){n.d(e,"a",(function(){return s}));var r=n(3),i=n(10),o=n(52),a=n(29);function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},function(t,e,n){n.d(e,"a",(function(){return u}));var r=n(0),i=n(8),o=n(29),a=n(16),s=n(13);function u(){for(var t=[],e=0;e(0,l.ensureAddressString)(t))),this.emit("accountsChanged",t))}this._subscriptionManager.events.on("notification",(t=>{this.emit("message",{type:t.method,data:t.params})})),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",(t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("defaultChainChanged"===t.data.data.action||"dappChainSwitched"===t.data.data.action){const n=t.data.data.chainId,r=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(r,Number(n))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,l.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 t;return null!==(t=this._storage.getItem("DefaultJsonRpcUrl"))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem("DefaultJsonRpcUrl",t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;const n=this.getChainId();this._storage.setItem("DefaultChainId",e.toString(10)),(0,l.ensureIntNumber)(e)===n&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,n,r,i,o){const a=await this.initializeRelay();return!!(await a.watchAsset(t,e,n,r,i,null==o?void 0:o.toString()).promise).result}async addEthereumChain(t,e,n,r,i,o){var a,s;if((0,l.ensureIntNumber)(t)===this.getChainId())return!1;const u=await this.initializeRelay(),c=u.inlineAddEthereumChain(t.toString());this._isAuthorized()||c||await u.requestEthereumAccounts().promise;const h=await u.addEthereumChain(t.toString(),e,i,n,r,o).promise;return!0===(null===(a=h.result)||void 0===a?void 0:a.isApproved)&&this.updateProviderInfo(e[0],t),!0===(null===(s=h.result)||void 0===s?void 0:s.isApproved)}async switchEthereumChain(t){const e=await this.initializeRelay(),n=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw a.ethErrors.provider.custom({code:n.errorCode});const r=n.result;r.isApproved&&r.rpcUrl.length>0&&this.updateProviderInfo(r.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then((n=>n.setAppInfo(t,e)))}async enable(){var t;return null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(f.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(t,e){if("string"==typeof t){const n={jsonrpc:"2.0",id:0,method:t,params:Array.isArray(e)?e:void 0!==e?[e]:[]};return this._sendRequestAsync(n).then((t=>t.result))}if("function"==typeof e){const n=t,r=e;return this._sendAsync(n,r)}if(Array.isArray(t))return t.map((t=>this._sendRequest(t)));const n=t;return this._sendRequest(n)}async sendAsync(t,e){if("function"!=typeof e)throw new Error("callback is required");if(Array.isArray(t)){const n=e;return void this._sendMultipleRequestsAsync(t).then((t=>n(null,t))).catch((t=>n(t,null)))}const n=e;return this._sendRequestAsync(t).then((t=>n(null,t))).catch((t=>n(t,null)))}async request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if("string"!=typeof e||0===e.length)throw a.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});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:t});const r=void 0===n?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:e,params:r,jsonrpc:"2.0",id:i})).result}async scanQRCode(t){const e=await this.initializeRelay(),n=await e.scanQRCode((0,l.ensureRegExpString)(t)).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}async genericRequest(t,e){const n=await this.initializeRelay(),r=await n.genericRequest(t,e).promise;if("string"!=typeof r.result)throw new Error("result was not a string");return r.result}async selectProvider(t){const e=await this.initializeRelay(),n=await e.selectProvider(t).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const e={jsonrpc:"2.0",id:t.id},{method:n}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw new Error("addresses is not an array");const n=t.map((t=>(0,l.ensureAddressString)(t)));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!e||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(c.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(t){return new Promise(((e,n)=>{try{const r=this._handleSynchronousMethods(t);if(void 0!==r)return e({jsonrpc:"2.0",id:t.id,result:r});const i=this._handleAsynchronousFilterMethods(t);if(void 0!==i)return void i.then((n=>e(Object.assign(Object.assign({},n),{id:t.id})))).catch((t=>n(t)));const o=this._handleSubscriptionMethods(t);if(void 0!==o)return void o.then((n=>e({jsonrpc:"2.0",id:t.id,result:n.result}))).catch((t=>n(t)))}catch(t){return n(t)}this._handleAsynchronousMethods(t).then((n=>n&&e(Object.assign(Object.assign({},n),{id:t.id})))).catch((t=>n(t)))}))}_sendMultipleRequestsAsync(t){return Promise.all(t.map((t=>this._sendRequestAsync(t))))}_handleSynchronousMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_accounts:return this._eth_accounts();case f.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case f.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case f.JSONRPCMethod.net_version:return this._net_version();case f.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case f.JSONRPCMethod.eth_sign:return this._eth_sign(n);case f.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case f.JSONRPCMethod.personal_sign:return this._personal_sign(n);case f.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case f.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case f.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case f.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case f.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case f.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case f.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case f.JSONRPCMethod.eth_signTypedData_v4:case f.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case f.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case f.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case f.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case f.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case f.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case f.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case f.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case f.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case f.JSONRPCMethod.eth_subscribe:case f.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const e=(0,l.ensureAddressString)(t);return this._addresses.map((t=>(0,l.ensureAddressString)(t))).includes(e)}catch(t){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const n=e.from?(0,l.ensureAddressString)(e.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:e.to?(0,l.ensureAddressString)(e.to):null,weiValue:null!=e.value?(0,l.ensureBN)(e.value):new o.default(0),data:e.data?(0,l.ensureBuffer)(e.data):t.alloc(0),nonce:null!=e.nonce?(0,l.ensureIntNumber)(e.nonce):null,gasPriceInWei:null!=e.gasPrice?(0,l.ensureBN)(e.gasPrice):null,maxFeePerGas:null!=e.maxFeePerGas?(0,l.ensureBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,l.ensureBN)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,l.ensureBN)(e.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(t,e,n,r){this._ensureKnownAddress(e);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(t,e,n,r).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw t}}async _ethereumAddressFromSignedMessage(t,e,n){const r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.ethereumAddressFromSignedMessage(t,e,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,l.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem("DefaultChainId");if(!t)return(0,l.ensureIntNumber)(this._chainIdFromOpts);const e=parseInt(t,10);return(0,l.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;if(null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let e;try{const t=await this.initializeRelay();e=await t.requestEthereumAccounts().promise}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw t}if(!e.result)throw new Error("accounts received is empty");return this._setAddresses(e.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._signEthereumMessage(n,e,!1)}_eth_ecRecover(t){const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!1)}_personal_sign(t){this._requireAuthorization();const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureAddressString)(t[1]);return this._signEthereumMessage(e,n,!0)}_personal_ecRecover(t){const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_sendRawTransaction(t){const e=(0,l.ensureBuffer)(t[0]),n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.submitEthereumTransaction(e,this.getChainId()).promise).result}}async _eth_sendTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signAndSubmitEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_signTypedData_v1(t){this._requireAuthorization();const e=(0,l.ensureParsedJSONObject)(t[0]),n=(0,l.ensureAddressString)(t[1]);this._ensureKnownAddress(n);const r=h.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const r=h.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const r=h.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,e,!1,i)}async _cbwallet_arbitrary(t){const e=t[0],n=t[1];if("string"!=typeof n)throw new Error("parameter must be a string");if("object"!=typeof e||null===e)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(e,n)}}async _wallet_addEthereumChain(t){var e,n,r,i;const o=t[0];if(0===(null===(e=o.rpcUrls)||void 0===e?void 0:e.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!o.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});const s=parseInt(o.chainId,16);return await this.addEthereumChain(s,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(r=o.blockExplorerUrls)&&void 0!==r?r:[],o.chainName,null!==(i=o.iconUrls)&&void 0!==i?i:[],o.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(t){const e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const e=Array.isArray(t)?t[0]:t;if(!e.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if("ERC20"!==(null==e?void 0:e.type))throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${e.type}' is not supported`});if(!(null==e?void 0:e.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==e?void 0:e.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});const n=this.getChainId(),{address:r,symbol:i,image:o,decimals:s}=e.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(e.type,r,i,s,o,n)}}_eth_uninstallFilter(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){const e=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(e)}}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(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((t=>(t.setAccountsCallback(((t,e)=>this._setAddresses(t,e))),t.setChainCallback(((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))})),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t)))}}e.CoinbaseWalletProvider=y}).call(this,n(19).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=n(88);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(104);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(133);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(89);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;const r=n(103);class i extends Error{constructor(t,e,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==n&&(this.data=n)}serialize(){const t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return r.default(this.serialize(),o,2)}}function o(t,e){if("[Circular]"!==e)return e}e.EthereumRpcError=i,e.EthereumProviderError=class extends i{constructor(t,e,n){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.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}},e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;const r=n(134),i=n(38);class o{constructor(t,e,n,o){this._storage=t,this._id=e||(0,i.randomBytesHex)(16),this._secret=n||(0,i.randomBytesHex)(32),this._key=(new r.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(t){const e=t.getItem("session:id"),n=t.getItem("session:linked"),r=t.getItem("session:secret");return e&&r?new o(t,e,r,"1"===n):null}static hash(t){return(new r.sha256).update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,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")}}e.Session=o},function(t,e,n){var r=SyntaxError,i=Function,o=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new o},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=n(142)(),h=n(144)(),d=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),f={},p="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%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%":i,"%GeneratorFunction%":f,"%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,"%IteratorPrototype%":l&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&d?d((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&&l&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":o,"%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(d)try{null.error}catch(t){var m=d(d(t));y["%Error.prototype%"]=m}var g={"%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),w=n(146),b=v.call(Function.call,Array.prototype.concat),M=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),I=v.call(Function.call,String.prototype.slice),N=v.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,k=function(t){var e=I(t,0,1),n=I(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return A(t,E,(function(t,e,n,r){i[i.length]=n?A(r,x,"$1"):e||t})),i},T=function(t,e){var n,i=t;if(w(g,i)&&(i="%"+(n=g[i])[0]+"%"),w(y,i)){var s=y[i];if(s===f&&(s=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return y[e]=n,n}(i)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=k(t),i=n.length>0?n[0]:"",a=T("%"+i+"%",e),u=a.name,c=a.value,l=!1,h=a.alias;h&&(i=h[0],M(n,b([0,1],h)));for(var d=1,f=!0;d=n.length){var v=s(c,p);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[p]}else f=w(c,p),c=c[p];f&&!l&&(y[u]=c)}}return c}},function(t,e,n){var r=n(145);t.exports=Function.prototype.bind||r},function(t,e,n){var r=String.prototype.replace,i=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},function(t,e,n){var r=n(46).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.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}},e.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(t,e,n){const r=n(64).default;t.exports=class extends r{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach((t=>this.emit("update",t)))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}}},function(t,e){function n(t){return null==t?t:Number.parseInt(t,16)}function r(t){return null==t?t:"0x"+t.toString(16)}function i(t,e){return new Promise(((n,r)=>{t.sendAsync(e,((t,e)=>{t?r(t):e.error?r(e.error):e.result?n(e.result):r(new Error("Result was empty"))}))}))}t.exports=async function({provider:t,fromBlock:e,toBlock:o}){e||(e=o);const a=n(e),s=n(o),u=Array(s-a+1).fill().map(((t,e)=>a+e)).map(r);return await Promise.all(u.map((e=>async function(t,e,n){for(let e=0;e<3;e++)try{return await i(t,{id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:n})}catch(t){console.error("provider.sendAsync failed: "+(t.stack||t.message||t))}throw new Error("Block not found for params: "+JSON.stringify(n))}(t,0,[e,!1]))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,function(t){t.SESSION_ID_REQUEST="SESSION_ID_REQUEST",t.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",t.LINKED="LINKED",t.UNLINKED="UNLINKED",t.WEB3_REQUEST="WEB3_REQUEST",t.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",t.WEB3_RESPONSE="WEB3_RESPONSE"}(e.RelayMessageType||(e.RelayMessageType={}))},function(t,e,n){n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return l})),n.d(e,"buffer",(function(){return h})),n.d(e,"bufferCount",(function(){return y})),n.d(e,"bufferTime",(function(){return b})),n.d(e,"bufferToggle",(function(){return S})),n.d(e,"bufferWhen",(function(){return C})),n.d(e,"catchError",(function(){return P})),n.d(e,"combineAll",(function(){return U})),n.d(e,"combineLatest",(function(){return W})),n.d(e,"concat",(function(){return V})),n.d(e,"concatAll",(function(){return H.a})),n.d(e,"concatMap",(function(){return q})),n.d(e,"concatMapTo",(function(){return Z})),n.d(e,"count",(function(){return J})),n.d(e,"debounce",(function(){return $})),n.d(e,"debounceTime",(function(){return nt})),n.d(e,"defaultIfEmpty",(function(){return at})),n.d(e,"delay",(function(){return ht})),n.d(e,"delayWhen",(function(){return mt})),n.d(e,"dematerialize",(function(){return Mt})),n.d(e,"distinct",(function(){return Nt})),n.d(e,"distinctUntilChanged",(function(){return kt})),n.d(e,"distinctUntilKeyChanged",(function(){return St})),n.d(e,"elementAt",(function(){return Yt})),n.d(e,"endWith",(function(){return Ft})),n.d(e,"every",(function(){return Vt})),n.d(e,"exhaust",(function(){return qt})),n.d(e,"exhaustMap",(function(){return Kt})),n.d(e,"expand",(function(){return ee})),n.d(e,"filter",(function(){return Dt.a})),n.d(e,"finalize",(function(){return ie})),n.d(e,"find",(function(){return se})),n.d(e,"findIndex",(function(){return le})),n.d(e,"first",(function(){return de})),n.d(e,"groupBy",(function(){return fe.b})),n.d(e,"ignoreElements",(function(){return pe})),n.d(e,"isEmpty",(function(){return ge})),n.d(e,"last",(function(){return Ie})),n.d(e,"map",(function(){return Xt.a})),n.d(e,"mapTo",(function(){return Ne})),n.d(e,"materialize",(function(){return ke})),n.d(e,"max",(function(){return ze})),n.d(e,"merge",(function(){return _e})),n.d(e,"mergeAll",(function(){return Be.a})),n.d(e,"mergeMap",(function(){return G.b})),n.d(e,"flatMap",(function(){return G.a})),n.d(e,"mergeMapTo",(function(){return Re})),n.d(e,"mergeScan",(function(){return Ue})),n.d(e,"min",(function(){return We})),n.d(e,"multicast",(function(){return Ve})),n.d(e,"observeOn",(function(){return Ge.b})),n.d(e,"onErrorResumeNext",(function(){return qe})),n.d(e,"pairwise",(function(){return Xe})),n.d(e,"partition",(function(){return en})),n.d(e,"pluck",(function(){return nn})),n.d(e,"publish",(function(){return an})),n.d(e,"publishBehavior",(function(){return un})),n.d(e,"publishLast",(function(){return ln})),n.d(e,"publishReplay",(function(){return dn})),n.d(e,"race",(function(){return pn})),n.d(e,"reduce",(function(){return Oe})),n.d(e,"repeat",(function(){return yn})),n.d(e,"repeatWhen",(function(){return vn})),n.d(e,"retry",(function(){return Mn})),n.d(e,"retryWhen",(function(){return Nn})),n.d(e,"refCount",(function(){return kn.a})),n.d(e,"sample",(function(){return Tn})),n.d(e,"sampleTime",(function(){return jn})),n.d(e,"scan",(function(){return Se})),n.d(e,"sequenceEqual",(function(){return zn})),n.d(e,"share",(function(){return Un})),n.d(e,"shareReplay",(function(){return Qn})),n.d(e,"single",(function(){return Yn})),n.d(e,"skip",(function(){return Vn})),n.d(e,"skipLast",(function(){return qn})),n.d(e,"skipUntil",(function(){return Xn})),n.d(e,"skipWhile",(function(){return tr})),n.d(e,"startWith",(function(){return rr})),n.d(e,"subscribeOn",(function(){return sr})),n.d(e,"switchAll",(function(){return dr})),n.d(e,"switchMap",(function(){return cr})),n.d(e,"switchMapTo",(function(){return fr})),n.d(e,"take",(function(){return Rt})),n.d(e,"takeLast",(function(){return be})),n.d(e,"takeUntil",(function(){return pr})),n.d(e,"takeWhile",(function(){return gr})),n.d(e,"tap",(function(){return Ar})),n.d(e,"throttle",(function(){return xr})),n.d(e,"throttleTime",(function(){return Lr})),n.d(e,"throwIfEmpty",(function(){return Ot})),n.d(e,"timeInterval",(function(){return Or})),n.d(e,"timeout",(function(){return Qr})),n.d(e,"timeoutWith",(function(){return _r})),n.d(e,"timestamp",(function(){return Yr})),n.d(e,"toArray",(function(){return Vr})),n.d(e,"window",(function(){return Hr})),n.d(e,"windowCount",(function(){return Zr})),n.d(e,"windowTime",(function(){return Kr})),n.d(e,"windowToggle",(function(){return oi})),n.d(e,"windowWhen",(function(){return ui})),n.d(e,"withLatestFrom",(function(){return hi})),n.d(e,"zip",(function(){return yi})),n.d(e,"zipAll",(function(){return mi}));var r=n(0),i=n(2);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),u=n(7),c=n(78);function l(t,e){return void 0===e&&(e=u.a),o((function(){return Object(c.a)(t,e)}))}function h(t){return function(e){return e.lift(new d(t))}}var d=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.closingNotifier))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),p=n(1);function y(t,e){return void 0===e&&(e=null),function(n){return n.lift(new m(t,e))}}var m=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?v:g}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),g=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.a),v=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(t),a.length===e&&(r.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(p.a),w=n(10);function b(t){var e=arguments.length,n=u.a;Object(w.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new M(t,r,i,n))}}var M=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),A=function(){this.buffer=[]},I=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(N,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(x,n,c)),a.add(o.schedule(E,r,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(N,n,r))}},e.prototype.openContext=function(){var t=new A;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.a);function N(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function E(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(x,n,{subscriber:r,context:o})),this.schedule(t,e))}function x(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var k=n(4),T=n(13),L=n(16);function S(t,e){return function(n){return n.lift(new j(t,e))}}var j=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new D(t,this.openings,this.closingSelector))},t}(),D=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(T.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new k.a,r={buffer:[],subscription:n};e.push(r);var i=Object(T.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(L.a);function C(t){return function(e){return e.lift(new O(t))}}var O=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new z(t,this.closingSelector))},t}(),z=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new k.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function P(t){return function(e){var n=new _(t),r=e.lift(n);return n.caught=r}}var _=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.selector,this.caught))},t}(),B=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),R=n(51);function U(t){return function(e){return e.lift(new R.a(t))}}var Q=n(8),Y=n(12);function W(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new pt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(lt.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(lt.a.createComplete()),this.unsubscribe()},e}(p.a),pt=function(t,e){this.time=t,this.notification=e},yt=n(3);function mt(t,e){return e?function(n){return new wt(n,e).lift(new gt(t))}:function(e){return e.lift(new gt(t))}}var gt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.delayDurationSelector))},t}(),vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(T.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(L.a),wt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new bt(t,this.source))},e}(yt.a),bt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.a);function Mt(){return function(t){return t.lift(new At)}}var At=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new It(t))},t}(),It=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.a);function Nt(t,e){return function(n){return n.lift(new Et(t,e))}}var Et=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new xt(t,this.keySelector,this.flushes))},t}(),xt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.b);function kt(t,e){return function(n){return n.lift(new Tt(t,e))}}var Tt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.compare,this.keySelector))},t}(),Lt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(p.a);function St(t,e){return kt((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var jt=n(25),Dt=n(17),Ct=n(27);function Ot(t){return void 0===t&&(t=_t),function(e){return e.lift(new zt(t))}}var zt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Pt(t,this.errorFactory))},t}(),Pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.a);function _t(){return new Ct.a}var Bt=n(11);function Rt(t){return function(e){return 0===t?Object(Bt.b)():e.lift(new Ut(t))}}var Ut=function(){function t(t){if(this.total=t,this.total<0)throw new jt.a}return t.prototype.call=function(t,e){return e.subscribe(new Qt(t,this.total))},t}(),Qt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.a);function Yt(t,e){if(t<0)throw new jt.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Dt.a)((function(e,n){return n===t})),Rt(1),n?at(e):Ot((function(){return new jt.a})))}}var Wt=n(39);function Ft(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.callback))},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new k.a(n)),r}return r.a(e,t),e}(p.a);function se(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ue(t,n,!1,e))}}var ue=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ce=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.a);function le(t,e){return function(n){return n.lift(new ue(t,n,!0,e))}}var he=n(15);function de(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Dt.a)((function(e,n){return t(e,n,r)})):he.a,Rt(1),n?at(e):Ot((function(){return new Ct.a})))}}var fe=n(68);function pe(){return function(t){return t.lift(new ye)}}var ye=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new me(t))},t}(),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(p.a);function ge(){return function(t){return t.lift(new ve)}}var ve=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new we(t))},t}(),we=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.a);function be(t){return function(e){return 0===t?Object(Bt.b)():e.lift(new Me(t))}}var Me=function(){function t(t){if(this.total=t,this.total<0)throw new jt.a}return t.prototype.call=function(t,e){return e.subscribe(new Ae(t,this.total))},t}(),Ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?Object(Dt.a)((function(e,n){return t(e,n,r)})):he.a,be(1),n?at(e):Ot((function(){return new Ct.a})))}}function Ne(t){return function(e){return e.lift(new Ee(t))}}var Ee=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.value))},t}(),xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.a);function ke(){return function(t){return t.lift(new Te)}}var Te=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Le(t))},t}(),Le=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(lt.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(lt.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(lt.a.createComplete()),t.complete()},e}(p.a);function Se(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new je(t,e,n))}}var je=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new De(t,this.accumulator,this.seed,this.hasSeed))},t}(),De=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(p.a),Ce=n(41);function Oe(t,e){return arguments.length>=2?function(n){return Object(Ce.a)(Se(t,e),be(1),at(e))(n)}:function(e){return Object(Ce.a)(Se((function(e,n,r){return t(e,n,r+1)})),be(1))(e)}}function ze(t){return Oe("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Pe=n(76);function _e(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function We(t){return Oe("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function vn(t){return function(e){return e.lift(new wn(t))}}var wn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new bn(t,this.notifier,e))},t}(),bn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new on.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function Mn(t){return void 0===t&&(t=-1),function(e){return e.lift(new An(t,e))}}var An=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new In(t,this.count,this.source))},t}(),In=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function Nn(t){return function(e){return e.lift(new En(t,e))}}var En=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.notifier,this.source))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),kn=n(48);function Tn(t){return function(e){return e.lift(new Ln(t))}}var Ln=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Sn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function jn(t,e){return void 0===e&&(e=u.a),function(n){return n.lift(new Dn(t,e))}}var Dn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Cn(t,this.period,this.scheduler))},t}(),Cn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(On,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.a);function On(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function zn(t,e){return function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new _n(t,this.compareTo,this.comparator))},t}(),_n=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.a),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.a);function Rn(){return new on.a}function Un(){return function(t){return Object(kn.a)()(Ve(Rn)(t))}}function Qn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,u=t.scheduler,c=0,l=!1,h=!1;return function(t){var r;c++,!e||l?(l=!1,e=new hn.a(i,a,u),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add((function(){c--,r.unsubscribe(),r=void 0,n&&!h&&s&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Yn(t){return function(e){return e.lift(new Wn(t,e))}}var Wn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Fn(t,this.predicate,this.source))},t}(),Fn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Ct.a)},e}(p.a);function Vn(t){return function(e){return e.lift(new Hn(t))}}var Hn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Gn(t,this.total))},t}(),Gn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.a);function qn(t){return function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new jt.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.a(t)):e.subscribe(new Jn(t,this._skipCount))},t}(),Jn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new on.a;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.a);function Kr(t){var e=u.a,n=null,r=Number.POSITIVE_INFINITY;return Object(w.a)(arguments[3])&&(e=arguments[3]),Object(w.a)(arguments[2])?e=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(w.a)(arguments[1])?e=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new $r(t,n,r,e))}}var $r=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(on.a),ei=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.destination=e,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ii,n,u)),a.add(o.schedule(ri,r,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(ni,n,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ti;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.a);function ni(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ri(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=r.schedule(ii,e,s),this.add(a.subscription),this.schedule(t,i)}function ii(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function oi(t,e){return function(n){return n.lift(new ai(t,e))}}var ai=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new si(t,this.openings,this.closingSelector))},t}(),si=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(T.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(L.a),pi=n(54);function yi(){for(var t=[],e=0;enew a.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(n=t.overrideIsCoinbaseBrowser)&&void 0!==n&&n,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(r=t.reloadOnDisconnect)||void 0===r||r;const f=new URL(o),p=`${f.protocol}//${f.host}`;this._storage=new i.ScopedLocalStorage("-walletlink:"+p),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new u.WalletSDKRelayEventManager,this._relay=new s.WalletSDKRelay({linkAPIUrl:o,version:h,darkMode:!!t.darkMode,uiConstructor:c,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode||this._relay.attachUI())}makeWeb3Provider(t="",e=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;const r=this.coinbaseBrowser;if(r)return r;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,e){var n;this._appName=t||"DApp",this._appLogoUrl=e||(0,c.getFavicon)();const r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,r.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{const n=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!n)return;return"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch(t){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=h}).call(this,n(40))},function(t,e){t.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(t,e,o,s){var u;void 0===s&&(s=i()),function t(e,n,r,i,o,s,u){var c;if(s+=1,"object"==typeof e&&null!==e){for(c=0;cu.depthLimit)return void a("[...]",e,n,o);if(void 0!==u.edgesLimit&&r+1>u.edgesLimit)return void a("[...]",e,n,o);if(i.push(e),Array.isArray(e))for(c=0;ce?1:0}function u(t,e,o,u){void 0===u&&(u=i());var l,h=function t(e,r,i,o,u,c,l){var h;if(c+=1,"object"==typeof e&&null!==e){for(h=0;hl.depthLimit)return void a("[...]",e,r,u);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void a("[...]",e,r,u);if(o.push(e),Array.isArray(e))for(h=0;h0)for(var i=0;i=-32099&&t<=-32e3}function l(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=s,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=a,shouldIncludeStack:n=!1}={}){var r,o;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const c={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&u(t.code)){const e=t;c.code=e.code,e.message&&"string"==typeof e.message?(c.message=e.message,h(e,"data")&&(c.data=e.data)):(c.message=s(c.code),c.data={originalError:l(t)})}else{c.code=e.code;const n=null===(r=t)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:e.message,c.data={originalError:l(t)}}const d=null===(o=t)||void 0===o?void 0:o.stack;return n&&t&&d&&"string"==typeof d&&(c.stack=d),c}},function(t,e,n){var r=n(24),i=n(45),o=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],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(u,i),u.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},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var v=0;v<64;++v){var w=m+d(u)+c(u,p,y)+a[v]+n[v]|0,b=h(r)+l(r,i,o)|0;m=y,y=p,p=u,u=s+w|0,s=o,o=i,i=r,r=w+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(24),i=n(45),o=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,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}r(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,w=0|this._hh,b=0|this._al,M=0|this._bl,A=0|this._cl,I=0|this._dl,N=0|this._el,E=0|this._fl,x=0|this._gl,k=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var L=e[T-30],S=e[T-30+1],j=f(L,S),D=p(S,L),C=y(L=e[T-4],S=e[T-4+1]),O=m(S,L),z=e[T-14],P=e[T-14+1],_=e[T-32],B=e[T-32+1],R=D+P|0,U=j+z+g(R,D)|0;U=(U=U+C+g(R=R+O|0,O)|0)+_+g(R=R+B|0,B)|0,e[T]=U,e[T+1]=R}for(var Q=0;Q<160;Q+=2){U=e[Q],R=e[Q+1];var Y=l(n,r,i),W=l(b,M,A),F=h(n,b),V=h(b,n),H=d(s,N),G=d(N,s),q=a[Q],Z=a[Q+1],J=c(s,u,v),X=c(N,E,x),K=k+G|0,$=w+H+g(K,k)|0;$=($=($=$+J+g(K=K+X|0,X)|0)+q+g(K=K+Z|0,Z)|0)+U+g(K=K+R|0,R)|0;var tt=V+W|0,et=F+Y+g(tt,V)|0;w=v,k=x,v=u,x=E,u=s,E=N,s=o+$+g(N=I+K|0,I)|0,o=i,I=A,i=r,A=M,r=n,M=b,n=$+et+g(b=K+tt|0,K)|0}this._al=this._al+b|0,this._bl=this._bl+M|0,this._cl=this._cl+A|0,this._dl=this._dl+I|0,this._el=this._el+N|0,this._fl=this._fl+E|0,this._gl=this._gl+x|0,this._hl=this._hl+k|0,this._ah=this._ah+n+g(this._al,b)|0,this._bh=this._bh+r+g(this._bl,M)|0,this._ch=this._ch+i+g(this._cl,A)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,N)|0,this._fh=this._fh+u+g(this._fl,E)|0,this._gh=this._gh+v+g(this._gl,x)|0,this._hh=this._hh+w+g(this._hl,k)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){var r=n(94),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;rt.json())).then((t=>{if(!t)throw r.ethErrors.rpc.parse({});const e=t,{error:n}=e;if(n)throw(0,r.serializeError)(n);return e}))}}},function(t,e,n){(function(e){const r=n(153),i=n(66);function o(t){return e.allocUnsafe(t).fill(0)}function a(t,e,n){const r=o(e);return t=s(t),n?t.length0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r)s.endEmitted?A(t,new M):k(t,s,e,!0);else if(s.ended)A(t,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?k(t,s,e,!1):j(t,s)):k(t,s,e,!1)}else r||(s.reading=!1,j(t,s));return!s.ended&&(s.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(S,t))}function S(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,P(t)}function j(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(D,t,e))}function D(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function O(t){o("readable nexttick read 0"),t.read(0)}function z(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function _(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function B(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(R,e,t))}function R(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function U(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):L(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t0?_(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(t){A(this,new b("_read()"))},E.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,e);var s=e&&!1===e.end||t===r.stdout||t===r.stderr?y:u;function u(){o("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",(function e(r,a){o("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",e),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),l=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,P(t))}}(n);t.on("drain",c);var l=!1;function h(e){o("ondata");var r=t.write(e);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==U(i.pipes,t))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(e){o("onerror",e),y(),t.removeListener("error",d),0===a(t,"error")&&A(t,e)}function f(){t.removeListener("finish",p),y()}function p(){o("onfinish"),t.removeListener("close",f),y()}function y(){o("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?L(this):i.reading||r.nextTick(O,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(C,this),n},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(C,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(z,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,n){n(new y("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,j(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,n(63),n(40))},function(t,e,n){var r=n(37).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){t.exports=l;var r=n(46).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(47);function c(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthfunction(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push((function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&n(o)?r(a,e):a}return i}},function(t,e,n){const r=n(173),i=n(174)();function o(t){this.currentProvider=t}function a(t){return function(){const e=this;var n=[].slice.call(arguments),r=n.pop();e.sendAsync({method:t,params:n},r)}}function s(t,e){return function(){const n=this;var r=[].slice.call(arguments),i=r.pop();r.length{try{const[i,o,s]=await a._runAllMiddleware(t,e,this._middleware);return o?(await a._runReturnHandlers(s),r(i)):n((async t=>{try{await a._runReturnHandlers(s)}catch(e){return t(e)}return t()}))}catch(t){return r(t)}}}async _handleBatch(t,e){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return e?e(null,n):n}catch(t){if(e)return e(t);throw t}}_promiseHandle(t){return new Promise((e=>{this._handle(t,((t,n)=>{e(n)}))}))}async _handle(t,e){if(!t||Array.isArray(t)||"object"!=typeof t){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof t,{request:t});return e(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof t.method){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof t.method,{request:t});return e(n,{id:t.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},t),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(t){i=t}return i&&(delete r.result,r.error||(r.error=o.serializeError(i))),e(i,r)}async _processRequest(t,e){const[n,r,i]=await a._runAllMiddleware(t,e,this._middleware);if(a._checkForCompletion(t,e,r),await a._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(t,e,n){const r=[];let i=null,o=!1;for(const s of n)if([i,o]=await a._runMiddleware(t,e,s,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(t,e,n,r){return new Promise((i=>{const a=t=>{const n=t||e.error;n&&(e.error=o.serializeError(n)),i([n,!0])},u=n=>{e.error?a(e.error):(n&&("function"!=typeof n&&a(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${s(t)}`,{request:t})),r.push(n)),i([null,!1]))};try{n(t,e,u,a)}catch(t){a(t)}}))}static async _runReturnHandlers(t){for(const e of t)await new Promise(((t,n)=>{e((e=>e?n(e):t()))}))}static _checkForCompletion(t,e,n){if(!("result"in e)&&!("error"in e))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+s(t),{request:t});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+s(t),{request:t})}}function s(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=n(97),i=n(96),o=r.errorCodes.rpc.internal,a={code:o,message:s(o)};function s(t,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){const n=t.toString();if(h(r.errorValues,n))return r.errorValues[n].message;if(c(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function u(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!r.errorValues[e]||!!c(t)}function c(t){return t>=-32099&&t<=-32e3}function l(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=s,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=a,shouldIncludeStack:n=!1}={}){var r,o;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const c={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&u(t.code)){const e=t;c.code=e.code,e.message&&"string"==typeof e.message?(c.message=e.message,h(e,"data")&&(c.data=e.data)):(c.message=s(c.code),c.data={originalError:l(t)})}else{c.code=e.code;const n=null===(r=t)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:e.message,c.data={originalError:l(t)}}const d=null===(o=t)||void 0===o?void 0:o.stack;return n&&t&&d&&"string"==typeof d&&(c.stack=d),c}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,function(t){t.requestEthereumAccounts="requestEthereumAccounts",t.signEthereumMessage="signEthereumMessage",t.signEthereumTransaction="signEthereumTransaction",t.submitEthereumTransaction="submitEthereumTransaction",t.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",t.scanQRCode="scanQRCode",t.generic="generic",t.childRequestEthereumAccounts="childRequestEthereumAccounts",t.addEthereumChain="addEthereumChain",t.switchEthereumChain="switchEthereumChain",t.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",t.watchAsset="watchAsset",t.selectProvider="selectProvider"}(e.Web3Method||(e.Web3Method={}))},function(t,e,n){n.r(e);var r=n(85);n.d(e,"CoinbaseWalletProvider",(function(){return r.CoinbaseWalletProvider})),n.d(e,"CoinbaseWalletSDK",(function(){return r.CoinbaseWalletSDK}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0,e.walletLogo=(t,e)=>{let n;switch(t){case"standard":return n=e,`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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`;default:return n=e,`data:image/svg+xml,%3Csvg width='${e}' 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 `}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0,e.ScopedLocalStorage=class{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),e=[];for(let n=0;nlocalStorage.removeItem(t)))}scopedKey(t){return`${this.scope}:${t}`}}},function(t,e,n){e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ +var r=n(19),i=r.Buffer;function o(t,e){for(var n in t)e[n]=t[n]}function a(t,e,n){return i(t,e,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?t.exports=r:(o(r,e),e.Buffer=a),a.prototype=Object.create(i.prototype),o(i,a),a.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return i(t,e,n)},a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=i(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},a.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i(t)},a.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return r.SlowBuffer(t)}},function(t,e,n){(function(t){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.isInIFrame=e.createQrUrl=e.getFavicon=e.range=e.isBigNumber=e.ensureParsedJSONObject=e.ensureBN=e.ensureRegExpString=e.ensureIntNumber=e.ensureBuffer=e.ensureAddressString=e.ensureEvenLengthHexString=e.ensureHexString=e.isHexString=e.prepend0x=e.strip0x=e.has0xPrefix=e.hexStringFromIntNumber=e.intNumberFromHexString=e.bigIntStringFromBN=e.hexStringFromBuffer=e.hexStringToUint8Array=e.uint8ArrayToHex=e.randomBytesHex=void 0;const i=r(n(66)),o=n(139),a=n(67),s=/^[0-9]*$/,u=/^[a-f0-9]*$/;function c(t){return[...t].map((t=>t.toString(16).padStart(2,"0"))).join("")}function l(t){return t.startsWith("0x")||t.startsWith("0X")}function h(t){return l(t)?t.slice(2):t}function d(t){return l(t)?"0x"+t.slice(2):"0x"+t}function f(t){if("string"!=typeof t)return!1;const e=h(t).toLowerCase();return u.test(e)}function p(t,e=!1){if("string"==typeof t){const n=h(t).toLowerCase();if(u.test(n))return(0,a.HexString)(e?"0x"+n:n)}throw new Error(`"${String(t)}" is not a hexadecimal string`)}function y(t,e=!1){let n=p(t,!1);return n.length%2==1&&(n=(0,a.HexString)("0"+n)),e?(0,a.HexString)("0x"+n):n}function m(t){if("number"==typeof t&&Number.isInteger(t))return(0,a.IntNumber)(t);if("string"==typeof t){if(s.test(t))return(0,a.IntNumber)(Number(t));if(f(t))return(0,a.IntNumber)(new i.default(y(t,!1),16).toNumber())}throw new Error("Not an integer: "+String(t))}function g(t){if(null==t||"function"!=typeof t.constructor)return!1;const{constructor:e}=t;return"function"==typeof e.config&&"number"==typeof e.EUCLID}e.randomBytesHex=function(t){return c(crypto.getRandomValues(new Uint8Array(t)))},e.uint8ArrayToHex=c,e.hexStringToUint8Array=function(t){return new Uint8Array(t.match(/.{1,2}/g).map((t=>parseInt(t,16))))},e.hexStringFromBuffer=function(t,e=!1){const n=t.toString("hex");return(0,a.HexString)(e?"0x"+n:n)},e.bigIntStringFromBN=function(t){return(0,a.BigIntString)(t.toString(10))},e.intNumberFromHexString=function(t){return(0,a.IntNumber)(new i.default(y(t,!1),16).toNumber())},e.hexStringFromIntNumber=function(t){return(0,a.HexString)("0x"+new i.default(t).toString(16))},e.has0xPrefix=l,e.strip0x=h,e.prepend0x=d,e.isHexString=f,e.ensureHexString=p,e.ensureEvenLengthHexString=y,e.ensureAddressString=function(t){if("string"==typeof t){const e=h(t).toLowerCase();if(f(e)&&40===e.length)return(0,a.AddressString)(d(e))}throw new Error("Invalid Ethereum address: "+String(t))},e.ensureBuffer=function(e){if(t.isBuffer(e))return e;if("string"==typeof e){if(f(e)){const n=y(e,!1);return t.from(n,"hex")}return t.from(e,"utf8")}throw new Error("Not binary data: "+String(e))},e.ensureIntNumber=m,e.ensureRegExpString=function(t){if(t instanceof RegExp)return(0,a.RegExpString)(t.toString());throw new Error("Not a RegExp: "+String(t))},e.ensureBN=function(t){if(null!==t&&(i.default.isBN(t)||g(t)))return new i.default(t.toString(10),10);if("number"==typeof t)return new i.default(m(t));if("string"==typeof t){if(s.test(t))return new i.default(t,10);if(f(t))return new i.default(y(t,!1),16)}throw new Error("Not an integer: "+String(t))},e.ensureParsedJSONObject=function(t){if("string"==typeof t)return JSON.parse(t);if("object"==typeof t)return t;throw new Error("Not a JSON string or an object: "+String(t))},e.isBigNumber=g,e.range=function(t,e){return Array.from({length:e-t},((e,n)=>t+n))},e.getFavicon=function(){const t=document.querySelector('link[sizes="192x192"]')||document.querySelector('link[sizes="180x180"]')||document.querySelector('link[rel="icon"]')||document.querySelector('link[rel="shortcut icon"]'),{protocol:e,host:n}=document.location,r=t?t.getAttribute("href"):null;return!r||r.startsWith("javascript:")?null:r.startsWith("http://")||r.startsWith("https://")||r.startsWith("data:")?r:r.startsWith("//")?e+r:`${e}//${n}${r}`},e.createQrUrl=function(t,e,n,r,i,a){const s=r?"parent-id":"id";return`${n}/#/link?${(0,o.stringify)({[s]:t,secret:e,server:n,v:i,chainId:a})}`},e.isInIFrame=function(){try{return null!==window.frameElement}catch(t){return!1}}}).call(this,n(19).Buffer)},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(10),i=n(29),o=n(57);function a(){for(var t=[],e=0;e1)for(var n=1;n0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=function(t){var e=i++;return a[e]=!0,o.then((function(){return s(e)&&t()})),e}(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(function(t){s(t)}(n),e.scheduled=void 0)},e}(n(32).a),c=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++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 r=(4294967295&n)>>>0,i=(n-r)/4294967296;this._block.writeUInt32BE(i,this._blockSize-8),this._block.writeUInt32BE(r,this._blockSize-4)}this._update(this._block);var o=this._hash();return t?o.toString(t):o},i.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=i},function(t,e,n){var r={};function i(t,e,n){n||(n=Error);var i=function(t){var n,r;function i(n,r,i){return t.call(this,function(t,n,r){return"string"==typeof e?e:e(t,n,r)}(n,r,i))||this}return r=t,(n=i).prototype=Object.create(r.prototype),n.prototype.constructor=n,n.__proto__=r,i}(n);i.prototype.name=n.name,i.prototype.code=t,r[t]=i}function o(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}i("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),i("ERR_INVALID_ARG_TYPE",(function(t,e,n){var r,i,a;if("string"==typeof e&&(i="not ",e.substr(0,i.length)===i)?(r="must not be",e=e.replace(/^not /,"")):r="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))a="The ".concat(t," ").concat(r," ").concat(o(e,"type"));else{var s=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+".".length>t.length)&&-1!==t.indexOf(".",n)}(t)?"property":"argument";a='The "'.concat(t,'" ').concat(s," ").concat(r," ").concat(o(e,"type"))}return a+". Received type ".concat(typeof n)}),TypeError),i("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),i("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),i("ERR_STREAM_PREMATURE_CLOSE","Premature close"),i("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),i("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),i("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),i("ERR_STREAM_WRITE_AFTER_END","write after end"),i("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),i("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),i("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=r},function(t,e,n){(function(e){var r=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=c;var i=n(111),o=n(115);n(24)(c,i);for(var a=r(o.prototype),s=0;s1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(i.a)},function(t,e,n){n.d(e,"a",(function(){return l}));var r=n(0),i=n(6),o=n(61),a=n(4),s=n(73),u=n(23),c=n(80),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.a(e,t),e.prototype.nextInfiniteTimeWindow=function(e){if(!this.isStopped){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift()}t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this.isStopped||(this._events.push(new h(this._getNow(),e)),this._trimBufferThenGetEvents()),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new u.a;if(this.isStopped||this.hasError?e=a.a.EMPTY:(this.observers.push(t),e=new c.a(this,t)),i&&t.add(t=new s.a(t,i)),n)for(var l=0;le&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.a),h=function(t,e){this.time=t,this.value=e}},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(3);function i(t,e){return e?new r.a((function(n){return e.schedule(o,0,{error:t,subscriber:n})})):new r.a((function(e){return e.error(t)}))}function o(t){var e=t.error;t.subscriber.error(e)}},function(t,e,n){n.d(e,"b",(function(){return l})),n.d(e,"a",(function(){return h}));var r=n(0),i=n(10),o=n(8),a=n(16),s=n(13),u=n(29),c={};function l(){for(var t=[],e=0;ethis.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),p=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.parent=n,i.observable=r,i.stillUnsubscribed=!0,i.buffer=[],i.isComplete=!1,i}return r.a(e,t),e.prototype[s.a]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t){this.buffer.push(t),this.parent.checkIterators()},e.prototype.subscribe=function(){return Object(u.c)(this.observable,new u.a(this))},e}(u.b)},function(t,e,n){function r(t){return null!==t&&"object"==typeof t}n.d(e,"a",(function(){return r}))},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(1);function i(t){for(;t;){var e=t,n=e.closed,i=e.destination,o=e.isStopped;if(n||o)return!1;t=i&&i instanceof r.a?i:null}return!0}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(3),i=n(4);function o(t,e){return new r.a((function(n){var r=new i.a,o=0;return r.add(e.schedule((function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}},function(t,e,n){n.d(e,"a",(function(){return o}));var r=n(14),i=n(36),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},function(t,e){function n(t){return t.sort(((t,e)=>"latest"===t||"earliest"===e?1:"latest"===e||"earliest"===t?-1:r(t)-r(e)))}function r(t){return null==t?t:Number.parseInt(t,16)}function i(t){if(null==t)return t;let e=t.toString(16);return e.length%2&&(e="0"+e),"0x"+e}function o(){return Math.floor(16*Math.random()).toString(16)}t.exports={minBlockRef:function(...t){return n(t)[0]},maxBlockRef:function(...t){const e=n(t);return e[e.length-1]},sortBlockRefs:n,bnToHex:function(t){return"0x"+t.toString(16)},blockRefIsNumber:function(t){return t&&!["earliest","latest","pending"].includes(t)},hexToInt:r,incrementHexInt:function(t){return null==t?t:i(r(t)+1)},intToHex:i,unsafeRandomBytes:function(t){let e="0x";for(let n=0;n=n.__.length&&n.__.push({__V:l}),n.__[t]}function g(t){return u=1,v(z,t)}function v(t,e,n){var o=m(r++,2);if(o.t=t,!o.__c&&(o.__=[n?n(e):z(void 0,e),function(t){var e=o.__N?o.__N[0]:o.__[0],n=o.t(e,t);e!==n&&(o.__N=[n,o.__[1]],o.__c.setState({}))}],o.__c=i,!i.u)){var a=function(t,e,n){if(!o.__c.__H)return!0;var r=o.__c.__H.__.filter((function(t){return t.__c}));if(r.every((function(t){return!t.__N})))return!s||s.call(this,t,e,n);var i=!1;return r.forEach((function(t){if(t.__N){var e=t.__[0];t.__=t.__N,t.__N=void 0,e!==t.__[0]&&(i=!0)}})),!(!i&&o.__c.props===t)&&(!s||s.call(this,t,e,n))};i.u=!0;var s=i.shouldComponentUpdate,u=i.componentWillUpdate;i.componentWillUpdate=function(t,e,n){if(this.__e){var r=s;s=void 0,a(t,e,n),s=r}u&&u.call(this,t,e,n)},i.shouldComponentUpdate=a}return o.__N||o.__}function w(t,e){var n=m(r++,3);!s.options.__s&&O(n.__H,e)&&(n.__=t,n.i=e,i.__H.__h.push(n))}function b(t,e){var n=m(r++,4);!s.options.__s&&O(n.__H,e)&&(n.__=t,n.i=e,i.__h.push(n))}function M(t){return u=5,I((function(){return{current:t}}),[])}function A(t,e,n){u=6,b((function(){return"function"==typeof t?(t(e()),function(){return t(null)}):t?(t.current=e(),function(){return t.current=null}):void 0}),null==n?n:n.concat(t))}function I(t,e){var n=m(r++,7);return O(n.__H,e)?(n.__V=t(),n.i=e,n.__h=t,n.__V):n.__}function N(t,e){return u=8,I((function(){return t}),e)}function E(t){var e=i.context[t.__c],n=m(r++,9);return n.c=t,e?(null==n.__&&(n.__=!0,e.sub(i)),e.props.value):t.__}function x(t,e){s.options.useDebugValue&&s.options.useDebugValue(e?e(t):t)}function k(t){var e=m(r++,10),n=g();return e.__=t,i.componentDidCatch||(i.componentDidCatch=function(t,r){e.__&&e.__(t,r),n[1](t)}),[n[0],function(){n[1](void 0)}]}function T(){var t=m(r++,11);if(!t.__){for(var e=i.__v;null!==e&&!e.__m&&null!==e.__;)e=e.__;var n=e.__m||(e.__m=[0,0]);t.__="P"+n[0]+"-"+n[1]++}return t.__}function L(){for(var t;t=c.shift();)if(t.__P&&t.__H)try{t.__H.__h.forEach(C),t.__H.__h.forEach(D),t.__H.__h=[]}catch(e){t.__H.__h=[],s.options.__e(e,t.__v)}}s.options.__b=function(t){i=null,h&&h(t)},s.options.__r=function(t){d&&d(t),r=0;var e=(i=t.__c).__H;e&&(o===i?(e.__h=[],i.__h=[],e.__.forEach((function(t){t.__N&&(t.__=t.__N),t.__V=l,t.__N=t.i=void 0}))):(e.__h.forEach(C),e.__h.forEach(D),e.__h=[],r=0)),o=i},s.options.diffed=function(t){f&&f(t);var e=t.__c;e&&e.__H&&(e.__H.__h.length&&(1!==c.push(e)&&a===s.options.requestAnimationFrame||((a=s.options.requestAnimationFrame)||j)(L)),e.__H.__.forEach((function(t){t.i&&(t.__H=t.i),t.__V!==l&&(t.__=t.__V),t.i=void 0,t.__V=l}))),o=i=null},s.options.__c=function(t,e){e.some((function(t){try{t.__h.forEach(C),t.__h=t.__h.filter((function(t){return!t.__||D(t)}))}catch(n){e.some((function(t){t.__h&&(t.__h=[])})),e=[],s.options.__e(n,t.__v)}})),p&&p(t,e)},s.options.unmount=function(t){y&&y(t);var e,n=t.__c;n&&n.__H&&(n.__H.__.forEach((function(t){try{C(t)}catch(t){e=t}})),n.__H=void 0,e&&s.options.__e(e,n.__v))};var S="function"==typeof requestAnimationFrame;function j(t){var e,n=function(){clearTimeout(r),S&&cancelAnimationFrame(e),setTimeout(t)},r=setTimeout(n,100);S&&(e=requestAnimationFrame(n))}function C(t){var e=i,n=t.__c;"function"==typeof n&&(t.__c=void 0,n()),i=e}function D(t){var e=i;t.__c=t.__(),i=e}function O(t,e){return!t||t.length!==e.length||e.some((function(e,n){return e!==t[n]}))}function z(t,e){return"function"==typeof e?e(t):e}},function(t,e,n){n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return a}));var r=n(0),i=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.a(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(n(32).a),o=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e}(n(30).a))(i),a=o},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}()},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0});const r=n(65);function i(t,e,n){try{Reflect.apply(t,e,n)}catch(t){setTimeout((()=>{throw t}))}}class o extends r.EventEmitter{emit(t,...e){let n="error"===t;const r=this._events;if(void 0!==r)n=n&&void 0===r.error;else if(!n)return!1;if(n){let t;if(e.length>0&&([t]=e),t instanceof Error)throw t;const n=new Error("Unhandled error."+(t?` (${t.message})`:""));throw n.context=t,n}const o=r[t];if(void 0===o)return!1;if("function"==typeof o)i(o,this,e);else{const t=o.length,n=function(t){const e=t.length,n=new Array(e);for(let r=0;r0&&a.length>i&&!a.warned){a.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=t,u.type=e,u.count=a.length,s=u,console&&console.warn&&console.warn(s)}return t}function d(){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 f(t,e,n){var r={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function p(t,e,n){var r=t._events;if(void 0===r)return[];var i=r[e];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(a=e[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var u=i[t];if(void 0===u)return!1;if("function"==typeof u)o(u,this,e);else{var c=u.length,l=m(u,c);for(n=0;n=0;o--)if(n[o]===e||n[o].listener===e){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(t,e){for(;e+1=0;r--)this.removeListener(t,e[r]);return this},s.prototype.listeners=function(t){return p(this,t,!0)},s.prototype.rawListeners=function(t){return p(this,t,!1)},s.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):y.call(t,e)},s.prototype.listenerCount=y,s.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},function(t,e,n){(function(t){!function(t,e){function r(t,e){if(!t)throw new Error(e||"Assertion failed")}function i(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function o(t,e,n){if(o.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var a;"object"==typeof t?t.exports=o:e.BN=o,o.BN=o,o.wordSize=26;try{a="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(132).Buffer}catch(t){}function s(t,e){var n=t.charCodeAt(e);return n>=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void r(!1,"Invalid character in "+t)}function u(t,e,n){var r=s(t,n);return n-1>=e&&(r|=s(t,n-1)<<4),r}function c(t,e,n,i){for(var o=0,a=0,s=Math.min(t.length,n),u=e;u=49?c-49+10:c>=17?c-17+10:c,r(c>=0&&a0?t:e},o.min=function(t,e){return t.cmp(e)<0?t:e},o.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),r(e===(0|e)&&e>=2&&e<=36);var i=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(i++,this.negative=1),i=0;i-=3)a=t[i]|t[i-1]<<8|t[i-2]<<16,this.words[o]|=a<>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);else if("le"===n)for(i=0,o=0;i>>26-s&67108863,(s+=24)>=26&&(s-=26,o++);return this._strip()},o.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var r=0;r=e;r-=2)i=u(t,e,r)<=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;else for(r=(t.length-e)%2==0?e+1:e;r=18?(o-=18,a+=1,this.words[a]|=i>>>26):o+=8;this._strip()},o.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var r=0,i=1;i<=67108863;i*=e)r++;r--,i=i/e|0;for(var o=t.length-n,a=o%r,s=Math.min(o,o-a)+n,u=0,l=n;l1&&0===this.words[this.length-1];)this.length--;return this._normSign()},o.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{o.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){o.prototype.inspect=h}else o.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],f=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],p=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function y(t,e,n){n.negative=e.negative^t.negative;var r=t.length+e.length|0;n.length=r,r=r-1|0;var i=0|t.words[0],o=0|e.words[0],a=i*o,s=67108863&a,u=a/67108864|0;n.words[0]=s;for(var c=1;c>>26,h=67108863&u,d=Math.min(c,e.length-1),f=Math.max(0,c-t.length+1);f<=d;f++){var p=c-f|0;l+=(a=(i=0|t.words[p])*(o=0|e.words[f])+h)/67108864|0,h=67108863&a}n.words[c]=0|h,u=0|l}return 0!==u?n.words[c]=0|u:n.length--,n._strip()}o.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var i=0,o=0,a=0;a>>24-i&16777215,(i+=2)>=26&&(i-=26,a--),n=0!==o||a!==this.length-1?d[6-u.length]+u+n:u+n}for(0!==o&&(n=o.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var c=f[t],l=p[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var y=h.modrn(l).toString(t);n=(h=h.idivn(l)).isZero()?y+n:d[c-y.length]+y+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}r(!1,"Base should be between 2 and 36")},o.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&r(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},o.prototype.toJSON=function(){return this.toString(16,2)},a&&(o.prototype.toBuffer=function(t,e){return this.toArrayLike(a,t,e)}),o.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},o.prototype.toArrayLike=function(t,e,n){this._strip();var i=this.byteLength(),o=n||Math.max(1,i);r(i<=o,"byte array longer than desired length"),r(o>0,"Requested array length <= 0");var a=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,o);return this["_toArrayLike"+("le"===e?"LE":"BE")](a,i),a},o.prototype._toArrayLikeLE=function(t,e){for(var n=0,r=0,i=0,o=0;i>8&255),n>16&255),6===o?(n>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n=0&&(t[n--]=a>>8&255),n>=0&&(t[n--]=a>>16&255),6===o?(n>=0&&(t[n--]=a>>24&255),r=0,o=0):(r=a>>>24,o+=2)}if(n>=0)for(t[n--]=r;n>=0;)t[n--]=0},Math.clz32?o.prototype._countBits=function(t){return 32-Math.clz32(t)}:o.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},o.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},o.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},o.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},o.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},o.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},o.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},o.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var r=0;rt.length?this.clone().ixor(t):t.clone().ixor(this)},o.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},o.prototype.inotn=function(t){r("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var i=0;i0&&(this.words[i]=~this.words[i]&67108863>>26-n),this._strip()},o.prototype.notn=function(t){return this.clone().inotn(t)},o.prototype.setn=function(t,e){r("number"==typeof t&&t>=0);var n=t/26|0,i=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,r=t):(n=t,r=this);for(var i=0,o=0;o>>26;for(;0!==i&&o>>26;if(this.length=n.length,0!==i)this.words[this.length]=i,this.length++;else if(n!==this)for(;ot.length?this.clone().iadd(t):t.clone().iadd(this)},o.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,r,i=this.cmp(t);if(0===i)return this.negative=0,this.length=1,this.words[0]=0,this;i>0?(n=this,r=t):(n=t,r=this);for(var o=0,a=0;a>26,this.words[a]=67108863&e;for(;0!==o&&a>26,this.words[a]=67108863&e;if(0===o&&a>>13,f=0|a[1],p=8191&f,y=f>>>13,m=0|a[2],g=8191&m,v=m>>>13,w=0|a[3],b=8191&w,M=w>>>13,A=0|a[4],I=8191&A,N=A>>>13,E=0|a[5],x=8191&E,k=E>>>13,T=0|a[6],L=8191&T,S=T>>>13,j=0|a[7],C=8191&j,D=j>>>13,O=0|a[8],z=8191&O,P=O>>>13,_=0|a[9],B=8191&_,R=_>>>13,U=0|s[0],Q=8191&U,Y=U>>>13,W=0|s[1],F=8191&W,V=W>>>13,H=0|s[2],G=8191&H,q=H>>>13,Z=0|s[3],J=8191&Z,X=Z>>>13,K=0|s[4],$=8191&K,tt=K>>>13,et=0|s[5],nt=8191&et,rt=et>>>13,it=0|s[6],ot=8191&it,at=it>>>13,st=0|s[7],ut=8191&st,ct=st>>>13,lt=0|s[8],ht=8191<,dt=lt>>>13,ft=0|s[9],pt=8191&ft,yt=ft>>>13;n.negative=t.negative^e.negative,n.length=19;var mt=(c+(r=Math.imul(h,Q))|0)+((8191&(i=(i=Math.imul(h,Y))+Math.imul(d,Q)|0))<<13)|0;c=((o=Math.imul(d,Y))+(i>>>13)|0)+(mt>>>26)|0,mt&=67108863,r=Math.imul(p,Q),i=(i=Math.imul(p,Y))+Math.imul(y,Q)|0,o=Math.imul(y,Y);var gt=(c+(r=r+Math.imul(h,F)|0)|0)+((8191&(i=(i=i+Math.imul(h,V)|0)+Math.imul(d,F)|0))<<13)|0;c=((o=o+Math.imul(d,V)|0)+(i>>>13)|0)+(gt>>>26)|0,gt&=67108863,r=Math.imul(g,Q),i=(i=Math.imul(g,Y))+Math.imul(v,Q)|0,o=Math.imul(v,Y),r=r+Math.imul(p,F)|0,i=(i=i+Math.imul(p,V)|0)+Math.imul(y,F)|0,o=o+Math.imul(y,V)|0;var vt=(c+(r=r+Math.imul(h,G)|0)|0)+((8191&(i=(i=i+Math.imul(h,q)|0)+Math.imul(d,G)|0))<<13)|0;c=((o=o+Math.imul(d,q)|0)+(i>>>13)|0)+(vt>>>26)|0,vt&=67108863,r=Math.imul(b,Q),i=(i=Math.imul(b,Y))+Math.imul(M,Q)|0,o=Math.imul(M,Y),r=r+Math.imul(g,F)|0,i=(i=i+Math.imul(g,V)|0)+Math.imul(v,F)|0,o=o+Math.imul(v,V)|0,r=r+Math.imul(p,G)|0,i=(i=i+Math.imul(p,q)|0)+Math.imul(y,G)|0,o=o+Math.imul(y,q)|0;var wt=(c+(r=r+Math.imul(h,J)|0)|0)+((8191&(i=(i=i+Math.imul(h,X)|0)+Math.imul(d,J)|0))<<13)|0;c=((o=o+Math.imul(d,X)|0)+(i>>>13)|0)+(wt>>>26)|0,wt&=67108863,r=Math.imul(I,Q),i=(i=Math.imul(I,Y))+Math.imul(N,Q)|0,o=Math.imul(N,Y),r=r+Math.imul(b,F)|0,i=(i=i+Math.imul(b,V)|0)+Math.imul(M,F)|0,o=o+Math.imul(M,V)|0,r=r+Math.imul(g,G)|0,i=(i=i+Math.imul(g,q)|0)+Math.imul(v,G)|0,o=o+Math.imul(v,q)|0,r=r+Math.imul(p,J)|0,i=(i=i+Math.imul(p,X)|0)+Math.imul(y,J)|0,o=o+Math.imul(y,X)|0;var bt=(c+(r=r+Math.imul(h,$)|0)|0)+((8191&(i=(i=i+Math.imul(h,tt)|0)+Math.imul(d,$)|0))<<13)|0;c=((o=o+Math.imul(d,tt)|0)+(i>>>13)|0)+(bt>>>26)|0,bt&=67108863,r=Math.imul(x,Q),i=(i=Math.imul(x,Y))+Math.imul(k,Q)|0,o=Math.imul(k,Y),r=r+Math.imul(I,F)|0,i=(i=i+Math.imul(I,V)|0)+Math.imul(N,F)|0,o=o+Math.imul(N,V)|0,r=r+Math.imul(b,G)|0,i=(i=i+Math.imul(b,q)|0)+Math.imul(M,G)|0,o=o+Math.imul(M,q)|0,r=r+Math.imul(g,J)|0,i=(i=i+Math.imul(g,X)|0)+Math.imul(v,J)|0,o=o+Math.imul(v,X)|0,r=r+Math.imul(p,$)|0,i=(i=i+Math.imul(p,tt)|0)+Math.imul(y,$)|0,o=o+Math.imul(y,tt)|0;var Mt=(c+(r=r+Math.imul(h,nt)|0)|0)+((8191&(i=(i=i+Math.imul(h,rt)|0)+Math.imul(d,nt)|0))<<13)|0;c=((o=o+Math.imul(d,rt)|0)+(i>>>13)|0)+(Mt>>>26)|0,Mt&=67108863,r=Math.imul(L,Q),i=(i=Math.imul(L,Y))+Math.imul(S,Q)|0,o=Math.imul(S,Y),r=r+Math.imul(x,F)|0,i=(i=i+Math.imul(x,V)|0)+Math.imul(k,F)|0,o=o+Math.imul(k,V)|0,r=r+Math.imul(I,G)|0,i=(i=i+Math.imul(I,q)|0)+Math.imul(N,G)|0,o=o+Math.imul(N,q)|0,r=r+Math.imul(b,J)|0,i=(i=i+Math.imul(b,X)|0)+Math.imul(M,J)|0,o=o+Math.imul(M,X)|0,r=r+Math.imul(g,$)|0,i=(i=i+Math.imul(g,tt)|0)+Math.imul(v,$)|0,o=o+Math.imul(v,tt)|0,r=r+Math.imul(p,nt)|0,i=(i=i+Math.imul(p,rt)|0)+Math.imul(y,nt)|0,o=o+Math.imul(y,rt)|0;var At=(c+(r=r+Math.imul(h,ot)|0)|0)+((8191&(i=(i=i+Math.imul(h,at)|0)+Math.imul(d,ot)|0))<<13)|0;c=((o=o+Math.imul(d,at)|0)+(i>>>13)|0)+(At>>>26)|0,At&=67108863,r=Math.imul(C,Q),i=(i=Math.imul(C,Y))+Math.imul(D,Q)|0,o=Math.imul(D,Y),r=r+Math.imul(L,F)|0,i=(i=i+Math.imul(L,V)|0)+Math.imul(S,F)|0,o=o+Math.imul(S,V)|0,r=r+Math.imul(x,G)|0,i=(i=i+Math.imul(x,q)|0)+Math.imul(k,G)|0,o=o+Math.imul(k,q)|0,r=r+Math.imul(I,J)|0,i=(i=i+Math.imul(I,X)|0)+Math.imul(N,J)|0,o=o+Math.imul(N,X)|0,r=r+Math.imul(b,$)|0,i=(i=i+Math.imul(b,tt)|0)+Math.imul(M,$)|0,o=o+Math.imul(M,tt)|0,r=r+Math.imul(g,nt)|0,i=(i=i+Math.imul(g,rt)|0)+Math.imul(v,nt)|0,o=o+Math.imul(v,rt)|0,r=r+Math.imul(p,ot)|0,i=(i=i+Math.imul(p,at)|0)+Math.imul(y,ot)|0,o=o+Math.imul(y,at)|0;var It=(c+(r=r+Math.imul(h,ut)|0)|0)+((8191&(i=(i=i+Math.imul(h,ct)|0)+Math.imul(d,ut)|0))<<13)|0;c=((o=o+Math.imul(d,ct)|0)+(i>>>13)|0)+(It>>>26)|0,It&=67108863,r=Math.imul(z,Q),i=(i=Math.imul(z,Y))+Math.imul(P,Q)|0,o=Math.imul(P,Y),r=r+Math.imul(C,F)|0,i=(i=i+Math.imul(C,V)|0)+Math.imul(D,F)|0,o=o+Math.imul(D,V)|0,r=r+Math.imul(L,G)|0,i=(i=i+Math.imul(L,q)|0)+Math.imul(S,G)|0,o=o+Math.imul(S,q)|0,r=r+Math.imul(x,J)|0,i=(i=i+Math.imul(x,X)|0)+Math.imul(k,J)|0,o=o+Math.imul(k,X)|0,r=r+Math.imul(I,$)|0,i=(i=i+Math.imul(I,tt)|0)+Math.imul(N,$)|0,o=o+Math.imul(N,tt)|0,r=r+Math.imul(b,nt)|0,i=(i=i+Math.imul(b,rt)|0)+Math.imul(M,nt)|0,o=o+Math.imul(M,rt)|0,r=r+Math.imul(g,ot)|0,i=(i=i+Math.imul(g,at)|0)+Math.imul(v,ot)|0,o=o+Math.imul(v,at)|0,r=r+Math.imul(p,ut)|0,i=(i=i+Math.imul(p,ct)|0)+Math.imul(y,ut)|0,o=o+Math.imul(y,ct)|0;var Nt=(c+(r=r+Math.imul(h,ht)|0)|0)+((8191&(i=(i=i+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;c=((o=o+Math.imul(d,dt)|0)+(i>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,r=Math.imul(B,Q),i=(i=Math.imul(B,Y))+Math.imul(R,Q)|0,o=Math.imul(R,Y),r=r+Math.imul(z,F)|0,i=(i=i+Math.imul(z,V)|0)+Math.imul(P,F)|0,o=o+Math.imul(P,V)|0,r=r+Math.imul(C,G)|0,i=(i=i+Math.imul(C,q)|0)+Math.imul(D,G)|0,o=o+Math.imul(D,q)|0,r=r+Math.imul(L,J)|0,i=(i=i+Math.imul(L,X)|0)+Math.imul(S,J)|0,o=o+Math.imul(S,X)|0,r=r+Math.imul(x,$)|0,i=(i=i+Math.imul(x,tt)|0)+Math.imul(k,$)|0,o=o+Math.imul(k,tt)|0,r=r+Math.imul(I,nt)|0,i=(i=i+Math.imul(I,rt)|0)+Math.imul(N,nt)|0,o=o+Math.imul(N,rt)|0,r=r+Math.imul(b,ot)|0,i=(i=i+Math.imul(b,at)|0)+Math.imul(M,ot)|0,o=o+Math.imul(M,at)|0,r=r+Math.imul(g,ut)|0,i=(i=i+Math.imul(g,ct)|0)+Math.imul(v,ut)|0,o=o+Math.imul(v,ct)|0,r=r+Math.imul(p,ht)|0,i=(i=i+Math.imul(p,dt)|0)+Math.imul(y,ht)|0,o=o+Math.imul(y,dt)|0;var Et=(c+(r=r+Math.imul(h,pt)|0)|0)+((8191&(i=(i=i+Math.imul(h,yt)|0)+Math.imul(d,pt)|0))<<13)|0;c=((o=o+Math.imul(d,yt)|0)+(i>>>13)|0)+(Et>>>26)|0,Et&=67108863,r=Math.imul(B,F),i=(i=Math.imul(B,V))+Math.imul(R,F)|0,o=Math.imul(R,V),r=r+Math.imul(z,G)|0,i=(i=i+Math.imul(z,q)|0)+Math.imul(P,G)|0,o=o+Math.imul(P,q)|0,r=r+Math.imul(C,J)|0,i=(i=i+Math.imul(C,X)|0)+Math.imul(D,J)|0,o=o+Math.imul(D,X)|0,r=r+Math.imul(L,$)|0,i=(i=i+Math.imul(L,tt)|0)+Math.imul(S,$)|0,o=o+Math.imul(S,tt)|0,r=r+Math.imul(x,nt)|0,i=(i=i+Math.imul(x,rt)|0)+Math.imul(k,nt)|0,o=o+Math.imul(k,rt)|0,r=r+Math.imul(I,ot)|0,i=(i=i+Math.imul(I,at)|0)+Math.imul(N,ot)|0,o=o+Math.imul(N,at)|0,r=r+Math.imul(b,ut)|0,i=(i=i+Math.imul(b,ct)|0)+Math.imul(M,ut)|0,o=o+Math.imul(M,ct)|0,r=r+Math.imul(g,ht)|0,i=(i=i+Math.imul(g,dt)|0)+Math.imul(v,ht)|0,o=o+Math.imul(v,dt)|0;var xt=(c+(r=r+Math.imul(p,pt)|0)|0)+((8191&(i=(i=i+Math.imul(p,yt)|0)+Math.imul(y,pt)|0))<<13)|0;c=((o=o+Math.imul(y,yt)|0)+(i>>>13)|0)+(xt>>>26)|0,xt&=67108863,r=Math.imul(B,G),i=(i=Math.imul(B,q))+Math.imul(R,G)|0,o=Math.imul(R,q),r=r+Math.imul(z,J)|0,i=(i=i+Math.imul(z,X)|0)+Math.imul(P,J)|0,o=o+Math.imul(P,X)|0,r=r+Math.imul(C,$)|0,i=(i=i+Math.imul(C,tt)|0)+Math.imul(D,$)|0,o=o+Math.imul(D,tt)|0,r=r+Math.imul(L,nt)|0,i=(i=i+Math.imul(L,rt)|0)+Math.imul(S,nt)|0,o=o+Math.imul(S,rt)|0,r=r+Math.imul(x,ot)|0,i=(i=i+Math.imul(x,at)|0)+Math.imul(k,ot)|0,o=o+Math.imul(k,at)|0,r=r+Math.imul(I,ut)|0,i=(i=i+Math.imul(I,ct)|0)+Math.imul(N,ut)|0,o=o+Math.imul(N,ct)|0,r=r+Math.imul(b,ht)|0,i=(i=i+Math.imul(b,dt)|0)+Math.imul(M,ht)|0,o=o+Math.imul(M,dt)|0;var kt=(c+(r=r+Math.imul(g,pt)|0)|0)+((8191&(i=(i=i+Math.imul(g,yt)|0)+Math.imul(v,pt)|0))<<13)|0;c=((o=o+Math.imul(v,yt)|0)+(i>>>13)|0)+(kt>>>26)|0,kt&=67108863,r=Math.imul(B,J),i=(i=Math.imul(B,X))+Math.imul(R,J)|0,o=Math.imul(R,X),r=r+Math.imul(z,$)|0,i=(i=i+Math.imul(z,tt)|0)+Math.imul(P,$)|0,o=o+Math.imul(P,tt)|0,r=r+Math.imul(C,nt)|0,i=(i=i+Math.imul(C,rt)|0)+Math.imul(D,nt)|0,o=o+Math.imul(D,rt)|0,r=r+Math.imul(L,ot)|0,i=(i=i+Math.imul(L,at)|0)+Math.imul(S,ot)|0,o=o+Math.imul(S,at)|0,r=r+Math.imul(x,ut)|0,i=(i=i+Math.imul(x,ct)|0)+Math.imul(k,ut)|0,o=o+Math.imul(k,ct)|0,r=r+Math.imul(I,ht)|0,i=(i=i+Math.imul(I,dt)|0)+Math.imul(N,ht)|0,o=o+Math.imul(N,dt)|0;var Tt=(c+(r=r+Math.imul(b,pt)|0)|0)+((8191&(i=(i=i+Math.imul(b,yt)|0)+Math.imul(M,pt)|0))<<13)|0;c=((o=o+Math.imul(M,yt)|0)+(i>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,r=Math.imul(B,$),i=(i=Math.imul(B,tt))+Math.imul(R,$)|0,o=Math.imul(R,tt),r=r+Math.imul(z,nt)|0,i=(i=i+Math.imul(z,rt)|0)+Math.imul(P,nt)|0,o=o+Math.imul(P,rt)|0,r=r+Math.imul(C,ot)|0,i=(i=i+Math.imul(C,at)|0)+Math.imul(D,ot)|0,o=o+Math.imul(D,at)|0,r=r+Math.imul(L,ut)|0,i=(i=i+Math.imul(L,ct)|0)+Math.imul(S,ut)|0,o=o+Math.imul(S,ct)|0,r=r+Math.imul(x,ht)|0,i=(i=i+Math.imul(x,dt)|0)+Math.imul(k,ht)|0,o=o+Math.imul(k,dt)|0;var Lt=(c+(r=r+Math.imul(I,pt)|0)|0)+((8191&(i=(i=i+Math.imul(I,yt)|0)+Math.imul(N,pt)|0))<<13)|0;c=((o=o+Math.imul(N,yt)|0)+(i>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,r=Math.imul(B,nt),i=(i=Math.imul(B,rt))+Math.imul(R,nt)|0,o=Math.imul(R,rt),r=r+Math.imul(z,ot)|0,i=(i=i+Math.imul(z,at)|0)+Math.imul(P,ot)|0,o=o+Math.imul(P,at)|0,r=r+Math.imul(C,ut)|0,i=(i=i+Math.imul(C,ct)|0)+Math.imul(D,ut)|0,o=o+Math.imul(D,ct)|0,r=r+Math.imul(L,ht)|0,i=(i=i+Math.imul(L,dt)|0)+Math.imul(S,ht)|0,o=o+Math.imul(S,dt)|0;var St=(c+(r=r+Math.imul(x,pt)|0)|0)+((8191&(i=(i=i+Math.imul(x,yt)|0)+Math.imul(k,pt)|0))<<13)|0;c=((o=o+Math.imul(k,yt)|0)+(i>>>13)|0)+(St>>>26)|0,St&=67108863,r=Math.imul(B,ot),i=(i=Math.imul(B,at))+Math.imul(R,ot)|0,o=Math.imul(R,at),r=r+Math.imul(z,ut)|0,i=(i=i+Math.imul(z,ct)|0)+Math.imul(P,ut)|0,o=o+Math.imul(P,ct)|0,r=r+Math.imul(C,ht)|0,i=(i=i+Math.imul(C,dt)|0)+Math.imul(D,ht)|0,o=o+Math.imul(D,dt)|0;var jt=(c+(r=r+Math.imul(L,pt)|0)|0)+((8191&(i=(i=i+Math.imul(L,yt)|0)+Math.imul(S,pt)|0))<<13)|0;c=((o=o+Math.imul(S,yt)|0)+(i>>>13)|0)+(jt>>>26)|0,jt&=67108863,r=Math.imul(B,ut),i=(i=Math.imul(B,ct))+Math.imul(R,ut)|0,o=Math.imul(R,ct),r=r+Math.imul(z,ht)|0,i=(i=i+Math.imul(z,dt)|0)+Math.imul(P,ht)|0,o=o+Math.imul(P,dt)|0;var Ct=(c+(r=r+Math.imul(C,pt)|0)|0)+((8191&(i=(i=i+Math.imul(C,yt)|0)+Math.imul(D,pt)|0))<<13)|0;c=((o=o+Math.imul(D,yt)|0)+(i>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,r=Math.imul(B,ht),i=(i=Math.imul(B,dt))+Math.imul(R,ht)|0,o=Math.imul(R,dt);var Dt=(c+(r=r+Math.imul(z,pt)|0)|0)+((8191&(i=(i=i+Math.imul(z,yt)|0)+Math.imul(P,pt)|0))<<13)|0;c=((o=o+Math.imul(P,yt)|0)+(i>>>13)|0)+(Dt>>>26)|0,Dt&=67108863;var Ot=(c+(r=Math.imul(B,pt))|0)+((8191&(i=(i=Math.imul(B,yt))+Math.imul(R,pt)|0))<<13)|0;return c=((o=Math.imul(R,yt))+(i>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,u[0]=mt,u[1]=gt,u[2]=vt,u[3]=wt,u[4]=bt,u[5]=Mt,u[6]=At,u[7]=It,u[8]=Nt,u[9]=Et,u[10]=xt,u[11]=kt,u[12]=Tt,u[13]=Lt,u[14]=St,u[15]=jt,u[16]=Ct,u[17]=Dt,u[18]=Ot,0!==c&&(u[19]=c,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var r=0,i=0,o=0;o>>26)|0)>>>26,a&=67108863}n.words[o]=s,r=a,a=i}return 0!==r?n.words[o]=r:n.length--,n._strip()}function v(t,e,n){return g(t,e,n)}Math.imul||(m=y),o.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?m(this,t,e):n<63?y(this,t,e):n<1024?g(this,t,e):v(this,t,e)},o.prototype.mul=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),this.mulTo(t,e)},o.prototype.mulf=function(t){var e=new o(null);return e.words=new Array(this.length+t.length),v(this,t,e)},o.prototype.imul=function(t){return this.clone().mulTo(t,this)},o.prototype.imuln=function(t){var e=t<0;e&&(t=-t),r("number"==typeof t),r(t<67108864);for(var n=0,i=0;i>=26,n+=o/67108864|0,n+=a>>>26,this.words[i]=67108863&a}return 0!==n&&(this.words[i]=n,this.length++),e?this.ineg():this},o.prototype.muln=function(t){return this.clone().imuln(t)},o.prototype.sqr=function(){return this.mul(this)},o.prototype.isqr=function(){return this.imul(this.clone())},o.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>i&1}return e}(t);if(0===e.length)return new o(1);for(var n=this,r=0;r=0);var e,n=t%26,i=(t-n)/26,o=67108863>>>26-n<<26-n;if(0!==n){var a=0;for(e=0;e>>26-n}a&&(this.words[e]=a,this.length++)}if(0!==i){for(e=this.length-1;e>=0;e--)this.words[e+i]=this.words[e];for(e=0;e=0),i=e?(e-e%26)/26:0;var o=t%26,a=Math.min((t-o)/26,this.length),s=67108863^67108863>>>o<a)for(this.length-=a,c=0;c=0&&(0!==l||c>=i);c--){var h=0|this.words[c];this.words[c]=l<<26-o|h>>>o,l=h&s}return u&&0!==l&&(u.words[u.length++]=l),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},o.prototype.ishrn=function(t,e,n){return r(0===this.negative),this.iushrn(t,e,n)},o.prototype.shln=function(t){return this.clone().ishln(t)},o.prototype.ushln=function(t){return this.clone().iushln(t)},o.prototype.shrn=function(t){return this.clone().ishrn(t)},o.prototype.ushrn=function(t){return this.clone().iushrn(t)},o.prototype.testn=function(t){r("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,i=1<=0);var e=t%26,n=(t-e)/26;if(r(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var i=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},o.prototype.isubn=function(t){if(r("number"==typeof t),r(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(u/67108864|0),this.words[i+n]=67108863&o}for(;i>26,this.words[i+n]=67108863&o;if(0===s)return this._strip();for(r(-1===s),s=0,i=0;i>26,this.words[i]=67108863&o;return this.negative=1,this._strip()},o.prototype._wordDiv=function(t,e){var n=(this.length,t.length),r=this.clone(),i=t,a=0|i.words[i.length-1];0!=(n=26-this._countBits(a))&&(i=i.ushln(n),r.iushln(n),a=0|i.words[i.length-1]);var s,u=r.length-i.length;if("mod"!==e){(s=new o(null)).length=u+1,s.words=new Array(s.length);for(var c=0;c=0;h--){var d=67108864*(0|r.words[i.length+h])+(0|r.words[i.length+h-1]);for(d=Math.min(d/a|0,67108863),r._ishlnsubmul(i,d,h);0!==r.negative;)d--,r.negative=0,r._ishlnsubmul(i,1,h),r.isZero()||(r.negative^=1);s&&(s.words[h]=d)}return s&&s._strip(),r._strip(),"div"!==e&&0!==n&&r.iushrn(n),{div:s||null,mod:r}},o.prototype.divmod=function(t,e,n){return r(!t.isZero()),this.isZero()?{div:new o(0),mod:new o(0)}:0!==this.negative&&0===t.negative?(s=this.neg().divmod(t,e),"mod"!==e&&(i=s.div.neg()),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.iadd(t)),{div:i,mod:a}):0===this.negative&&0!==t.negative?(s=this.divmod(t.neg(),e),"mod"!==e&&(i=s.div.neg()),{div:i,mod:s.mod}):0!=(this.negative&t.negative)?(s=this.neg().divmod(t.neg(),e),"div"!==e&&(a=s.mod.neg(),n&&0!==a.negative&&a.isub(t)),{div:s.div,mod:a}):t.length>this.length||this.cmp(t)<0?{div:new o(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new o(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new o(this.modrn(t.words[0]))}:this._wordDiv(t,e);var i,a,s},o.prototype.div=function(t){return this.divmod(t,"div",!1).div},o.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},o.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},o.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,r=t.ushrn(1),i=t.andln(1),o=n.cmp(r);return o<0||1===i&&0===o?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},o.prototype.modrn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=(1<<26)%t,i=0,o=this.length-1;o>=0;o--)i=(n*i+(0|this.words[o]))%t;return e?-i:i},o.prototype.modn=function(t){return this.modrn(t)},o.prototype.idivn=function(t){var e=t<0;e&&(t=-t),r(t<=67108863);for(var n=0,i=this.length-1;i>=0;i--){var o=(0|this.words[i])+67108864*n;this.words[i]=o/t|0,n=o%t}return this._strip(),e?this.ineg():this},o.prototype.divn=function(t){return this.clone().idivn(t)},o.prototype.egcd=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i=new o(1),a=new o(0),s=new o(0),u=new o(1),c=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++c;for(var l=n.clone(),h=e.clone();!e.isZero();){for(var d=0,f=1;0==(e.words[0]&f)&&d<26;++d,f<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(i.isOdd()||a.isOdd())&&(i.iadd(l),a.isub(h)),i.iushrn(1),a.iushrn(1);for(var p=0,y=1;0==(n.words[0]&y)&&p<26;++p,y<<=1);if(p>0)for(n.iushrn(p);p-- >0;)(s.isOdd()||u.isOdd())&&(s.iadd(l),u.isub(h)),s.iushrn(1),u.iushrn(1);e.cmp(n)>=0?(e.isub(n),i.isub(s),a.isub(u)):(n.isub(e),s.isub(i),u.isub(a))}return{a:s,b:u,gcd:n.iushln(c)}},o.prototype._invmp=function(t){r(0===t.negative),r(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var i,a=new o(1),s=new o(0),u=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var c=0,l=1;0==(e.words[0]&l)&&c<26;++c,l<<=1);if(c>0)for(e.iushrn(c);c-- >0;)a.isOdd()&&a.iadd(u),a.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)s.isOdd()&&s.iadd(u),s.iushrn(1);e.cmp(n)>=0?(e.isub(n),a.isub(s)):(n.isub(e),s.isub(a))}return(i=0===e.cmpn(1)?a:s).cmpn(0)<0&&i.iadd(t),i},o.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var r=0;e.isEven()&&n.isEven();r++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var i=e.cmp(n);if(i<0){var o=e;e=n,n=o}else if(0===i||0===n.cmpn(1))break;e.isub(n)}return n.iushln(r)},o.prototype.invm=function(t){return this.egcd(t).a.umod(t)},o.prototype.isEven=function(){return 0==(1&this.words[0])},o.prototype.isOdd=function(){return 1==(1&this.words[0])},o.prototype.andln=function(t){return this.words[0]&t},o.prototype.bincn=function(t){r("number"==typeof t);var e=t%26,n=(t-e)/26,i=1<>>26,s&=67108863,this.words[a]=s}return 0!==o&&(this.words[a]=o,this.length++),this},o.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},o.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),r(t<=67108863,"Number is too big");var i=0|this.words[0];e=i===t?0:it.length)return 1;if(this.length=0;n--){var r=0|this.words[n],i=0|t.words[n];if(r!==i){ri&&(e=1);break}}return e},o.prototype.gtn=function(t){return 1===this.cmpn(t)},o.prototype.gt=function(t){return 1===this.cmp(t)},o.prototype.gten=function(t){return this.cmpn(t)>=0},o.prototype.gte=function(t){return this.cmp(t)>=0},o.prototype.ltn=function(t){return-1===this.cmpn(t)},o.prototype.lt=function(t){return-1===this.cmp(t)},o.prototype.lten=function(t){return this.cmpn(t)<=0},o.prototype.lte=function(t){return this.cmp(t)<=0},o.prototype.eqn=function(t){return 0===this.cmpn(t)},o.prototype.eq=function(t){return 0===this.cmp(t)},o.red=function(t){return new E(t)},o.prototype.toRed=function(t){return r(!this.red,"Already a number in reduction context"),r(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},o.prototype.fromRed=function(){return r(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},o.prototype._forceRed=function(t){return this.red=t,this},o.prototype.forceRed=function(t){return r(!this.red,"Already a number in reduction context"),this._forceRed(t)},o.prototype.redAdd=function(t){return r(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},o.prototype.redIAdd=function(t){return r(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},o.prototype.redSub=function(t){return r(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},o.prototype.redISub=function(t){return r(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},o.prototype.redShl=function(t){return r(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},o.prototype.redMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},o.prototype.redIMul=function(t){return r(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},o.prototype.redSqr=function(){return r(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},o.prototype.redISqr=function(){return r(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},o.prototype.redSqrt=function(){return r(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},o.prototype.redInvm=function(){return r(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},o.prototype.redNeg=function(){return r(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},o.prototype.redPow=function(t){return r(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var w={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new o(e,16),this.n=this.p.bitLength(),this.k=new o(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function M(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function A(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function I(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(t){if("string"==typeof t){var e=o._prime(t);this.m=e.p,this.prime=e}else r(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function x(t){E.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new o(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new o(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var r=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},i(M,b),M.prototype.split=function(t,e){for(var n=Math.min(t.length,9),r=0;r>>22,i=o}i>>>=22,t.words[r-10]=i,0===i&&t.length>10?t.length-=10:t.length-=9},M.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=i,e=r}return 0!==e&&(t.words[t.length++]=e),t},o._prime=function(t){if(w[t])return w[t];var e;if("k256"===t)e=new M;else if("p224"===t)e=new A;else if("p192"===t)e=new I;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return w[t]=e,e},E.prototype._verify1=function(t){r(0===t.negative,"red works only with positives"),r(t.red,"red works only with red numbers")},E.prototype._verify2=function(t,e){r(0==(t.negative|e.negative),"red works only with positives"),r(t.red&&t.red===e.red,"red works only with red numbers")},E.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(l(t,t.umod(this.m)._forceRed(this)),t)},E.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},E.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},E.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},E.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},E.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},E.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},E.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},E.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},E.prototype.isqr=function(t){return this.imul(t,t.clone())},E.prototype.sqr=function(t){return this.mul(t,t)},E.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(r(e%2==1),3===e){var n=this.m.add(new o(1)).iushrn(2);return this.pow(t,n)}for(var i=this.m.subn(1),a=0;!i.isZero()&&0===i.andln(1);)a++,i.iushrn(1);r(!i.isZero());var s=new o(1).toRed(this),u=s.redNeg(),c=this.m.subn(1).iushrn(1),l=this.m.bitLength();for(l=new o(2*l*l).toRed(this);0!==this.pow(l,c).cmp(u);)l.redIAdd(u);for(var h=this.pow(l,i),d=this.pow(t,i.addn(1).iushrn(1)),f=this.pow(t,i),p=a;0!==f.cmp(s);){for(var y=f,m=0;0!==y.cmp(s);m++)y=y.redSqr();r(m=0;r--){for(var c=e.words[r],l=u-1;l>=0;l--){var h=c>>l&1;i!==n[0]&&(i=this.sqr(i)),0!==h||0!==a?(a<<=1,a|=h,(4==++s||0===r&&0===l)&&(i=this.mul(i,n[a]),s=0,a=0)):s=0}u=26}return i},E.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},E.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},o.mont=function(t){return new x(t)},i(x,E),x.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},x.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},x.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),o=i;return i.cmp(this.m)>=0?o=i.isub(this.m):i.cmpn(0)<0&&(o=i.iadd(this.m)),o._forceRed(this)},x.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new o(0)._forceRed(this);var n=t.mul(e),r=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),i=n.isub(r).iushrn(this.shift),a=i;return i.cmp(this.m)>=0?a=i.isub(this.m):i.cmpn(0)<0&&(a=i.iadd(this.m)),a._forceRed(this)},x.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(131)(t))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ProviderType=e.RegExpString=e.IntNumber=e.BigIntString=e.AddressString=e.HexString=e.OpaqueType=void 0,e.OpaqueType=function(){return t=>t},e.HexString=t=>t,e.AddressString=t=>t,e.BigIntString=t=>t,e.IntNumber=function(t){return Math.floor(t)},e.RegExpString=t=>t,function(t){t.CoinbaseWallet="CoinbaseWallet",t.MetaMask="MetaMask",t.Unselected=""}(e.ProviderType||(e.ProviderType={}))},function(t,e,n){n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return d}));var r=n(0),i=n(1),o=n(4),a=n(3),s=n(6);function u(t,e,n,r){return function(i){return i.lift(new c(t,e,n,r))}}var c=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),l=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.keySelector=n,a.elementSelector=r,a.durationSelector=i,a.subjectSelector=o,a.groups=null,a.attemptedToUnsubscribe=!1,a.count=0,a}return r.a(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups=new Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new s.a,n.set(e,i);var o=new d(e,i,this);if(this.destination.next(o),this.durationSelector){var a=void 0;try{a=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(a.subscribe(new h(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach((function(e,n){e.error(t)})),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach((function(t,e){t.complete()})),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(i.a),h=function(t){function e(e,n,r){var i=t.call(this,n)||this;return i.key=e,i.group=n,i.parent=r,i}return r.a(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this.parent,e=this.key;this.key=this.parent=null,t&&t.removeGroup(e)},e}(i.a),d=function(t){function e(e,n,r){var i=t.call(this)||this;return i.key=e,i.groupSubject=n,i.refCountSubscription=r,i}return r.a(e,t),e.prototype._subscribe=function(t){var e=new o.a,n=this.refCountSubscription,r=this.groupSubject;return n&&!n.closed&&e.add(new f(n)),e.add(r.subscribe(t)),e},e}(a.a),f=function(t){function e(e){var n=t.call(this)||this;return n.parent=e,e.count++,n}return r.a(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(o.a)},function(t,e,n){function r(t){var e,n,i="";if("string"==typeof t||"number"==typeof t)i+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame((function(){return e.flush(null)}))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(cancelAnimationFrame(n),e.scheduled=void 0)},e}(y.a),g=n(30),v=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return p.a(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++re.index?1:-1:t.delay>e.delay?1:-1},e}(y.a),A=n(62),I=n(4),N=n(1),E=n(18),x=n(41),k=n(21),T=n(15);function L(t){return!!t&&(t instanceof r.a||"function"==typeof t.lift&&"function"==typeof t.subscribe)}var S=n(25),j=n(27),C=n(23),D=n(44),O=n(74),z=n(9),P=n(56),_=n(8),B=n(10);function R(t,e,n){if(e){if(!Object(B.a)(e))return function(){for(var r=[],i=0;i1?r.next(Array.prototype.slice.call(arguments)):r.next(t)}),r,n)}))}function nt(t,e,n){return n?nt(t,e).pipe(Object(z.a)((function(t){return Object(_.a)(t)?n.apply(void 0,t):n(t)}))):new r.a((function(n){var r,i=function(){for(var t=[],e=0;e=e){r.complete();break}if(r.next(o++),r.closed)break}}))}function At(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;n>=r?i.complete():(i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t)))}var It=n(50),Nt=n(78);function Et(t,e){return new r.a((function(n){var r,i;try{r=t()}catch(t){return void n.error(t)}try{i=e(r)}catch(t){return void n.error(t)}var o=(i?Object(X.a)(i):Z.a).subscribe(n);return function(){o.unsubscribe(),r&&r.unsubscribe()}}))}var xt=n(54),kt=n(79),Tt=n(14)},function(t,e,n){n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l}));var r=n(0),i=n(6),o=n(3),a=n(1),s=n(4),u=n(48),c=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.a(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new s.a).add(this.source.subscribe(new h(this.getSubject(),this))),t.closed&&(this._connection=null,t=s.a.EMPTY)),t},e.prototype.refCount=function(){return Object(u.a)()(this)},e}(o.a),l=function(){var t=c.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),h=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.a(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.b);a.a},function(t,e,n){n.d(e,"a",(function(){return a}));var r=n(0),i=n(6),o=n(23),a=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r.a(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.a;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.a)},function(t,e,n){n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return u}));var r=n(0),i=n(1),o=n(18);function a(t,e){return void 0===e&&(e=0),function(n){return n.lift(new s(t,e))}}var s=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}(),u=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.a(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.destination.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(o.a.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(o.a.createError(t)),this.unsubscribe()},e.prototype._complete=function(){this.scheduleMessage(o.a.createComplete()),this.unsubscribe()},e}(i.a),c=function(t,e){this.notification=t,this.destination=e}},function(t,e,n){n.d(e,"a",(function(){return r}));var r=function(){function t(){return Error.call(this),this.message="Timeout has occurred",this.name="TimeoutError",this}return t.prototype=Object.create(Error.prototype),t}()},function(t,e,n){n.d(e,"a",(function(){return i}));var r=n(52);function i(){return Object(r.a)(1)}},function(t,e,n){n.d(e,"a",(function(){return s}));var r=n(3),i=n(10),o=n(52),a=n(29);function s(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===s&&1===t.length&&t[0]instanceof r.a?t[0]:Object(o.a)(n)(Object(a.a)(t,s))}},function(t,e,n){n.d(e,"a",(function(){return u}));var r=n(0),i=n(8),o=n(29),a=n(16),s=n(13);function u(){for(var t=[],e=0;e(0,l.ensureAddressString)(t))),this.emit("accountsChanged",t))}this._subscriptionManager.events.on("notification",(t=>{this.emit("message",{type:t.method,data:t.params})})),this._addresses.length>0&&this.initializeRelay(),window.addEventListener("message",(t=>{var e;if(t.origin===location.origin&&t.source===window&&"walletLinkMessage"===t.data.type){if("defaultChainChanged"===t.data.data.action||"dappChainSwitched"===t.data.data.action){const n=t.data.data.chainId,r=null!==(e=t.data.data.jsonRpcUrl)&&void 0!==e?e:this.jsonRpcUrl;this.updateProviderInfo(r,Number(n))}"addressChanged"===t.data.data.action&&this._setAddresses([t.data.data.address])}}))}get selectedAddress(){return this._addresses[0]||void 0}get networkVersion(){return this.getChainId().toString(10)}get chainId(){return(0,l.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 t;return null!==(t=this._storage.getItem("DefaultJsonRpcUrl"))&&void 0!==t?t:this._jsonRpcUrlFromOpts}set jsonRpcUrl(t){this._storage.setItem("DefaultJsonRpcUrl",t)}disableReloadOnDisconnect(){this.reloadOnDisconnect=!1}setProviderInfo(t,e){this.isLedger||this.isCoinbaseBrowser||(this._chainIdFromOpts=e,this._jsonRpcUrlFromOpts=t),this.updateProviderInfo(this.jsonRpcUrl,this.getChainId())}updateProviderInfo(t,e){this.jsonRpcUrl=t;const n=this.getChainId();this._storage.setItem("DefaultChainId",e.toString(10)),(0,l.ensureIntNumber)(e)===n&&this.hasMadeFirstChainChangedEmission||(this.emit("chainChanged",this.getChainId()),this.hasMadeFirstChainChangedEmission=!0)}async watchAsset(t,e,n,r,i,o){const a=await this.initializeRelay();return!!(await a.watchAsset(t,e,n,r,i,null==o?void 0:o.toString()).promise).result}async addEthereumChain(t,e,n,r,i,o){var a,s;if((0,l.ensureIntNumber)(t)===this.getChainId())return!1;const u=await this.initializeRelay(),c=u.inlineAddEthereumChain(t.toString());this._isAuthorized()||c||await u.requestEthereumAccounts().promise;const h=await u.addEthereumChain(t.toString(),e,i,n,r,o).promise;return!0===(null===(a=h.result)||void 0===a?void 0:a.isApproved)&&this.updateProviderInfo(e[0],t),!0===(null===(s=h.result)||void 0===s?void 0:s.isApproved)}async switchEthereumChain(t){const e=await this.initializeRelay(),n=await e.switchEthereumChain(t.toString(10),this.selectedAddress||void 0).promise;if(n.errorCode)throw a.ethErrors.provider.custom({code:n.errorCode});const r=n.result;r.isApproved&&r.rpcUrl.length>0&&this.updateProviderInfo(r.rpcUrl,t)}setAppInfo(t,e){this.initializeRelay().then((n=>n.setAppInfo(t,e)))}async enable(){var t;return null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::enable",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0?[...this._addresses]:await this._send(f.JSONRPCMethod.eth_requestAccounts)}async close(){(await this.initializeRelay()).resetAndReload()}send(t,e){if("string"==typeof t){const n={jsonrpc:"2.0",id:0,method:t,params:Array.isArray(e)?e:void 0!==e?[e]:[]};return this._sendRequestAsync(n).then((t=>t.result))}if("function"==typeof e){const n=t,r=e;return this._sendAsync(n,r)}if(Array.isArray(t))return t.map((t=>this._sendRequest(t)));const n=t;return this._sendRequest(n)}async sendAsync(t,e){if("function"!=typeof e)throw new Error("callback is required");if(Array.isArray(t)){const n=e;return void this._sendMultipleRequestsAsync(t).then((t=>n(null,t))).catch((t=>n(t,null)))}const n=e;return this._sendRequestAsync(t).then((t=>n(null,t))).catch((t=>n(t,null)))}async request(t){if(!t||"object"!=typeof t||Array.isArray(t))throw a.ethErrors.rpc.invalidRequest({message:"Expected a single, non-array, object argument.",data:t});const{method:e,params:n}=t;if("string"!=typeof e||0===e.length)throw a.ethErrors.rpc.invalidRequest({message:"'args.method' must be a non-empty string.",data:t});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:t});const r=void 0===n?[]:n,i=this._relayEventManager.makeRequestId();return(await this._sendRequestAsync({method:e,params:r,jsonrpc:"2.0",id:i})).result}async scanQRCode(t){const e=await this.initializeRelay(),n=await e.scanQRCode((0,l.ensureRegExpString)(t)).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}async genericRequest(t,e){const n=await this.initializeRelay(),r=await n.genericRequest(t,e).promise;if("string"!=typeof r.result)throw new Error("result was not a string");return r.result}async selectProvider(t){const e=await this.initializeRelay(),n=await e.selectProvider(t).promise;if("string"!=typeof n.result)throw new Error("result was not a string");return n.result}supportsSubscriptions(){return!1}subscribe(){throw new Error("Subscriptions are not supported")}unsubscribe(){throw new Error("Subscriptions are not supported")}disconnect(){return!0}_sendRequest(t){const e={jsonrpc:"2.0",id:t.id},{method:n}=t;if(e.result=this._handleSynchronousMethods(t),void 0===e.result)throw new Error(`Coinbase Wallet does not support calling ${n} synchronously without a callback. Please provide a callback parameter to call ${n} asynchronously.`);return e}_setAddresses(t,e){if(!Array.isArray(t))throw new Error("addresses is not an array");const n=t.map((t=>(0,l.ensureAddressString)(t)));JSON.stringify(n)!==JSON.stringify(this._addresses)&&(this._addresses.length>0&&!1===this.supportsAddressSwitching&&!e||(this._addresses=n,this.emit("accountsChanged",this._addresses),this._storage.setItem(c.LOCAL_STORAGE_ADDRESSES_KEY,n.join(" "))))}_sendRequestAsync(t){return new Promise(((e,n)=>{try{const r=this._handleSynchronousMethods(t);if(void 0!==r)return e({jsonrpc:"2.0",id:t.id,result:r});const i=this._handleAsynchronousFilterMethods(t);if(void 0!==i)return void i.then((n=>e(Object.assign(Object.assign({},n),{id:t.id})))).catch((t=>n(t)));const o=this._handleSubscriptionMethods(t);if(void 0!==o)return void o.then((n=>e({jsonrpc:"2.0",id:t.id,result:n.result}))).catch((t=>n(t)))}catch(t){return n(t)}this._handleAsynchronousMethods(t).then((n=>n&&e(Object.assign(Object.assign({},n),{id:t.id})))).catch((t=>n(t)))}))}_sendMultipleRequestsAsync(t){return Promise.all(t.map((t=>this._sendRequestAsync(t))))}_handleSynchronousMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_accounts:return this._eth_accounts();case f.JSONRPCMethod.eth_coinbase:return this._eth_coinbase();case f.JSONRPCMethod.eth_uninstallFilter:return this._eth_uninstallFilter(n);case f.JSONRPCMethod.net_version:return this._net_version();case f.JSONRPCMethod.eth_chainId:return this._eth_chainId();default:return}}async _handleAsynchronousMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_requestAccounts:return this._eth_requestAccounts();case f.JSONRPCMethod.eth_sign:return this._eth_sign(n);case f.JSONRPCMethod.eth_ecRecover:return this._eth_ecRecover(n);case f.JSONRPCMethod.personal_sign:return this._personal_sign(n);case f.JSONRPCMethod.personal_ecRecover:return this._personal_ecRecover(n);case f.JSONRPCMethod.eth_signTransaction:return this._eth_signTransaction(n);case f.JSONRPCMethod.eth_sendRawTransaction:return this._eth_sendRawTransaction(n);case f.JSONRPCMethod.eth_sendTransaction:return this._eth_sendTransaction(n);case f.JSONRPCMethod.eth_signTypedData_v1:return this._eth_signTypedData_v1(n);case f.JSONRPCMethod.eth_signTypedData_v2:return this._throwUnsupportedMethodError();case f.JSONRPCMethod.eth_signTypedData_v3:return this._eth_signTypedData_v3(n);case f.JSONRPCMethod.eth_signTypedData_v4:case f.JSONRPCMethod.eth_signTypedData:return this._eth_signTypedData_v4(n);case f.JSONRPCMethod.cbWallet_arbitrary:return this._cbwallet_arbitrary(n);case f.JSONRPCMethod.wallet_addEthereumChain:return this._wallet_addEthereumChain(n);case f.JSONRPCMethod.wallet_switchEthereumChain:return this._wallet_switchEthereumChain(n);case f.JSONRPCMethod.wallet_watchAsset:return this._wallet_watchAsset(n)}return(await this.initializeRelay()).makeEthereumJSONRPCRequest(t,this.jsonRpcUrl)}_handleAsynchronousFilterMethods(t){const{method:e}=t,n=t.params||[];switch(e){case f.JSONRPCMethod.eth_newFilter:return this._eth_newFilter(n);case f.JSONRPCMethod.eth_newBlockFilter:return this._eth_newBlockFilter();case f.JSONRPCMethod.eth_newPendingTransactionFilter:return this._eth_newPendingTransactionFilter();case f.JSONRPCMethod.eth_getFilterChanges:return this._eth_getFilterChanges(n);case f.JSONRPCMethod.eth_getFilterLogs:return this._eth_getFilterLogs(n)}}_handleSubscriptionMethods(t){switch(t.method){case f.JSONRPCMethod.eth_subscribe:case f.JSONRPCMethod.eth_unsubscribe:return this._subscriptionManager.handleRequest(t)}}_isKnownAddress(t){try{const e=(0,l.ensureAddressString)(t);return this._addresses.map((t=>(0,l.ensureAddressString)(t))).includes(e)}catch(t){}return!1}_ensureKnownAddress(t){var e;if(!this._isKnownAddress(t))throw null===(e=this.diagnostic)||void 0===e||e.log(s.EVENTS.UNKNOWN_ADDRESS_ENCOUNTERED),new Error("Unknown Ethereum address")}_prepareTransactionParams(e){const n=e.from?(0,l.ensureAddressString)(e.from):this.selectedAddress;if(!n)throw new Error("Ethereum address is unavailable");return this._ensureKnownAddress(n),{fromAddress:n,toAddress:e.to?(0,l.ensureAddressString)(e.to):null,weiValue:null!=e.value?(0,l.ensureBN)(e.value):new o.default(0),data:e.data?(0,l.ensureBuffer)(e.data):t.alloc(0),nonce:null!=e.nonce?(0,l.ensureIntNumber)(e.nonce):null,gasPriceInWei:null!=e.gasPrice?(0,l.ensureBN)(e.gasPrice):null,maxFeePerGas:null!=e.maxFeePerGas?(0,l.ensureBN)(e.maxFeePerGas):null,maxPriorityFeePerGas:null!=e.maxPriorityFeePerGas?(0,l.ensureBN)(e.maxPriorityFeePerGas):null,gasLimit:null!=e.gas?(0,l.ensureBN)(e.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(t,e,n,r){this._ensureKnownAddress(e);try{const i=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await i.signEthereumMessage(t,e,n,r).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied message signature");throw t}}async _ethereumAddressFromSignedMessage(t,e,n){const r=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await r.ethereumAddressFromSignedMessage(t,e,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,l.hexStringFromIntNumber)(this.getChainId())}getChainId(){const t=this._storage.getItem("DefaultChainId");if(!t)return(0,l.ensureIntNumber)(this._chainIdFromOpts);const e=parseInt(t,10);return(0,l.ensureIntNumber)(e)}async _eth_requestAccounts(){var t;if(null===(t=this.diagnostic)||void 0===t||t.log(s.EVENTS.ETH_ACCOUNTS_STATE,{method:"provider::_eth_requestAccounts",addresses_length:this._addresses.length,sessionIdHash:this._relay?u.Session.hash(this._relay.session.id):void 0}),this._addresses.length>0)return Promise.resolve({jsonrpc:"2.0",id:0,result:this._addresses});let e;try{const t=await this.initializeRelay();e=await t.requestEthereumAccounts().promise}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied account authorization");throw t}if(!e.result)throw new Error("accounts received is empty");return this._setAddresses(e.result),this.isLedger||this.isCoinbaseBrowser||await this.switchEthereumChain(this.getChainId()),{jsonrpc:"2.0",id:0,result:this._addresses}}_eth_sign(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._signEthereumMessage(n,e,!1)}_eth_ecRecover(t){const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!1)}_personal_sign(t){this._requireAuthorization();const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureAddressString)(t[1]);return this._signEthereumMessage(e,n,!0)}_personal_ecRecover(t){const e=(0,l.ensureBuffer)(t[0]),n=(0,l.ensureBuffer)(t[1]);return this._ethereumAddressFromSignedMessage(e,n,!0)}async _eth_signTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_sendRawTransaction(t){const e=(0,l.ensureBuffer)(t[0]),n=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await n.submitEthereumTransaction(e,this.getChainId()).promise).result}}async _eth_sendTransaction(t){this._requireAuthorization();const e=this._prepareTransactionParams(t[0]||{});try{const t=await this.initializeRelay();return{jsonrpc:"2.0",id:0,result:(await t.signAndSubmitEthereumTransaction(e).promise).result}}catch(t){if("string"==typeof t.message&&t.message.match(/(denied|rejected)/i))throw a.ethErrors.provider.userRejectedRequest("User denied transaction signature");throw t}}async _eth_signTypedData_v1(t){this._requireAuthorization();const e=(0,l.ensureParsedJSONObject)(t[0]),n=(0,l.ensureAddressString)(t[1]);this._ensureKnownAddress(n);const r=h.default.hashForSignTypedDataLegacy({data:e}),i=JSON.stringify(e,null,2);return this._signEthereumMessage(r,n,!1,i)}async _eth_signTypedData_v3(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const r=h.default.hashForSignTypedData_v3({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,e,!1,i)}async _eth_signTypedData_v4(t){this._requireAuthorization();const e=(0,l.ensureAddressString)(t[0]),n=(0,l.ensureParsedJSONObject)(t[1]);this._ensureKnownAddress(e);const r=h.default.hashForSignTypedData_v4({data:n}),i=JSON.stringify(n,null,2);return this._signEthereumMessage(r,e,!1,i)}async _cbwallet_arbitrary(t){const e=t[0],n=t[1];if("string"!=typeof n)throw new Error("parameter must be a string");if("object"!=typeof e||null===e)throw new Error("parameter must be an object");return{jsonrpc:"2.0",id:0,result:await this.genericRequest(e,n)}}async _wallet_addEthereumChain(t){var e,n,r,i;const o=t[0];if(0===(null===(e=o.rpcUrls)||void 0===e?void 0:e.length))return{jsonrpc:"2.0",id:0,error:{code:2,message:"please pass in at least 1 rpcUrl"}};if(!o.chainName||""===o.chainName.trim())throw a.ethErrors.provider.custom({code:0,message:"chainName is a required field"});if(!o.nativeCurrency)throw a.ethErrors.provider.custom({code:0,message:"nativeCurrency is a required field"});const s=parseInt(o.chainId,16);return await this.addEthereumChain(s,null!==(n=o.rpcUrls)&&void 0!==n?n:[],null!==(r=o.blockExplorerUrls)&&void 0!==r?r:[],o.chainName,null!==(i=o.iconUrls)&&void 0!==i?i:[],o.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(t){const e=t[0];return await this.switchEthereumChain(parseInt(e.chainId,16)),{jsonrpc:"2.0",id:0,result:null}}async _wallet_watchAsset(t){const e=Array.isArray(t)?t[0]:t;if(!e.type)throw a.ethErrors.rpc.invalidParams({message:"Type is required"});if("ERC20"!==(null==e?void 0:e.type))throw a.ethErrors.rpc.invalidParams({message:`Asset of type '${e.type}' is not supported`});if(!(null==e?void 0:e.options))throw a.ethErrors.rpc.invalidParams({message:"Options are required"});if(!(null==e?void 0:e.options.address))throw a.ethErrors.rpc.invalidParams({message:"Address is required"});const n=this.getChainId(),{address:r,symbol:i,image:o,decimals:s}=e.options;return{jsonrpc:"2.0",id:0,result:await this.watchAsset(e.type,r,i,s,o,n)}}_eth_uninstallFilter(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.uninstallFilter(e)}async _eth_newFilter(t){const e=t[0];return{jsonrpc:"2.0",id:0,result:await this._filterPolyfill.newFilter(e)}}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(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.getFilterChanges(e)}_eth_getFilterLogs(t){const e=(0,l.ensureHexString)(t[0]);return this._filterPolyfill.getFilterLogs(e)}initializeRelay(){return this._relay?Promise.resolve(this._relay):this._relayProvider().then((t=>(t.setAccountsCallback(((t,e)=>this._setAddresses(t,e))),t.setChainCallback(((t,e)=>{this.updateProviderInfo(e,parseInt(t,10))})),t.setDappDefaultChainCallback(this._chainIdFromOpts),this._relay=t,t)))}}e.CoinbaseWalletProvider=y}).call(this,n(19).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=n(88);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(104);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(133);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(89);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumProviderError=e.EthereumRpcError=void 0;const r=n(103);class i extends Error{constructor(t,e,n){if(!Number.isInteger(t))throw new Error('"code" must be an integer.');if(!e||"string"!=typeof e)throw new Error('"message" must be a nonempty string.');super(e),this.code=t,void 0!==n&&(this.data=n)}serialize(){const t={code:this.code,message:this.message};return void 0!==this.data&&(t.data=this.data),this.stack&&(t.stack=this.stack),t}toString(){return r.default(this.serialize(),o,2)}}function o(t,e){if("[Circular]"!==e)return e}e.EthereumRpcError=i,e.EthereumProviderError=class extends i{constructor(t,e,n){if(!function(t){return Number.isInteger(t)&&t>=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.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}},e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EVENTS=void 0,e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Session=void 0;const r=n(134),i=n(38);class o{constructor(t,e,n,o){this._storage=t,this._id=e||(0,i.randomBytesHex)(16),this._secret=n||(0,i.randomBytesHex)(32),this._key=(new r.sha256).update(`${this._id}, ${this._secret} WalletLink`).digest("hex"),this._linked=!!o}static load(t){const e=t.getItem("session:id"),n=t.getItem("session:linked"),r=t.getItem("session:secret");return e&&r?new o(t,e,r,"1"===n):null}static hash(t){return(new r.sha256).update(t).digest("hex")}get id(){return this._id}get secret(){return this._secret}get key(){return this._key}get linked(){return this._linked}set linked(t){this._linked=t,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")}}e.Session=o},function(t,e,n){var r=SyntaxError,i=Function,o=TypeError,a=function(t){try{return i('"use strict"; return ('+t+").constructor;")()}catch(t){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(t){s=null}var u=function(){throw new o},c=s?function(){try{return u}catch(t){try{return s(arguments,"callee").get}catch(t){return u}}}():u,l=n(142)(),h=n(144)(),d=Object.getPrototypeOf||(h?function(t){return t.__proto__}:null),f={},p="undefined"!=typeof Uint8Array&&d?d(Uint8Array):void 0,y={"%AggregateError%":"undefined"==typeof AggregateError?void 0:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?void 0:ArrayBuffer,"%ArrayIteratorPrototype%":l&&d?d([][Symbol.iterator]()):void 0,"%AsyncFromSyncIteratorPrototype%":void 0,"%AsyncFunction%":f,"%AsyncGenerator%":f,"%AsyncGeneratorFunction%":f,"%AsyncIteratorPrototype%":f,"%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%":i,"%GeneratorFunction%":f,"%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,"%IteratorPrototype%":l&&d?d(d([][Symbol.iterator]())):void 0,"%JSON%":"object"==typeof JSON?JSON:void 0,"%Map%":"undefined"==typeof Map?void 0:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&l&&d?d((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&&l&&d?d((new Set)[Symbol.iterator]()):void 0,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?void 0:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":l&&d?d(""[Symbol.iterator]()):void 0,"%Symbol%":l?Symbol:void 0,"%SyntaxError%":r,"%ThrowTypeError%":c,"%TypedArray%":p,"%TypeError%":o,"%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(d)try{null.error}catch(t){var m=d(d(t));y["%Error.prototype%"]=m}var g={"%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),w=n(146),b=v.call(Function.call,Array.prototype.concat),M=v.call(Function.apply,Array.prototype.splice),A=v.call(Function.call,String.prototype.replace),I=v.call(Function.call,String.prototype.slice),N=v.call(Function.call,RegExp.prototype.exec),E=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,k=function(t){var e=I(t,0,1),n=I(t,-1);if("%"===e&&"%"!==n)throw new r("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==e)throw new r("invalid intrinsic syntax, expected opening `%`");var i=[];return A(t,E,(function(t,e,n,r){i[i.length]=n?A(r,x,"$1"):e||t})),i},T=function(t,e){var n,i=t;if(w(g,i)&&(i="%"+(n=g[i])[0]+"%"),w(y,i)){var s=y[i];if(s===f&&(s=function t(e){var n;if("%AsyncFunction%"===e)n=a("async function () {}");else if("%GeneratorFunction%"===e)n=a("function* () {}");else if("%AsyncGeneratorFunction%"===e)n=a("async function* () {}");else if("%AsyncGenerator%"===e){var r=t("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===e){var i=t("%AsyncGenerator%");i&&d&&(n=d(i.prototype))}return y[e]=n,n}(i)),void 0===s&&!e)throw new o("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:i,value:s}}throw new r("intrinsic "+t+" does not exist!")};t.exports=function(t,e){if("string"!=typeof t||0===t.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof e)throw new o('"allowMissing" argument must be a boolean');if(null===N(/^%?[^%]*%?$/,t))throw new r("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=k(t),i=n.length>0?n[0]:"",a=T("%"+i+"%",e),u=a.name,c=a.value,l=!1,h=a.alias;h&&(i=h[0],M(n,b([0,1],h)));for(var d=1,f=!0;d=n.length){var v=s(c,p);c=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:c[p]}else f=w(c,p),c=c[p];f&&!l&&(y[u]=c)}}return c}},function(t,e,n){var r=n(145);t.exports=Function.prototype.bind||r},function(t,e,n){var r=String.prototype.replace,i=/%20/g,o="RFC3986";t.exports={default:o,formatters:{RFC1738:function(t){return r.call(t,i,"+")},RFC3986:function(t){return String(t)}},RFC1738:"RFC1738",RFC3986:o}},function(t,e,n){var r=n(46).codes.ERR_STREAM_PREMATURE_CLOSE;function i(){}t.exports=function t(e,n,o){if("function"==typeof n)return t(e,null,n);n||(n={}),o=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,r=new Array(n),i=0;i=1e3&&t<=4999}(t))throw new Error('"code" must be an integer such that: 1000 <= code <= 4999');super(t,e,n)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.errorValues=e.errorCodes=void 0,e.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}},e.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(t,e,n){const r=n(64).default;t.exports=class extends r{constructor(){super(),this.updates=[]}async initialize(){}async update(){throw new Error("BaseFilter - no update method specified")}addResults(t){this.updates=this.updates.concat(t),t.forEach((t=>this.emit("update",t)))}addInitialResults(t){}getChangesAndClear(){const t=this.updates;return this.updates=[],t}}},function(t,e){function n(t){return null==t?t:Number.parseInt(t,16)}function r(t){return null==t?t:"0x"+t.toString(16)}function i(t,e){return new Promise(((n,r)=>{t.sendAsync(e,((t,e)=>{t?r(t):e.error?r(e.error):e.result?n(e.result):r(new Error("Result was empty"))}))}))}t.exports=async function({provider:t,fromBlock:e,toBlock:o}){e||(e=o);const a=n(e),s=n(o),u=Array(s-a+1).fill().map(((t,e)=>a+e)).map(r);return await Promise.all(u.map((e=>async function(t,e,n){for(let e=0;e<3;e++)try{return await i(t,{id:1,jsonrpc:"2.0",method:"eth_getBlockByNumber",params:n})}catch(t){console.error("provider.sendAsync failed: "+(t.stack||t.message||t))}throw new Error("Block not found for params: "+JSON.stringify(n))}(t,0,[e,!1]))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.RelayMessageType=void 0,function(t){t.SESSION_ID_REQUEST="SESSION_ID_REQUEST",t.SESSION_ID_RESPONSE="SESSION_ID_RESPONSE",t.LINKED="LINKED",t.UNLINKED="UNLINKED",t.WEB3_REQUEST="WEB3_REQUEST",t.WEB3_REQUEST_CANCELED="WEB3_REQUEST_CANCELED",t.WEB3_RESPONSE="WEB3_RESPONSE"}(e.RelayMessageType||(e.RelayMessageType={}))},function(t,e,n){n.r(e),n.d(e,"audit",(function(){return o})),n.d(e,"auditTime",(function(){return l})),n.d(e,"buffer",(function(){return h})),n.d(e,"bufferCount",(function(){return y})),n.d(e,"bufferTime",(function(){return b})),n.d(e,"bufferToggle",(function(){return S})),n.d(e,"bufferWhen",(function(){return D})),n.d(e,"catchError",(function(){return P})),n.d(e,"combineAll",(function(){return U})),n.d(e,"combineLatest",(function(){return W})),n.d(e,"concat",(function(){return V})),n.d(e,"concatAll",(function(){return H.a})),n.d(e,"concatMap",(function(){return q})),n.d(e,"concatMapTo",(function(){return Z})),n.d(e,"count",(function(){return J})),n.d(e,"debounce",(function(){return $})),n.d(e,"debounceTime",(function(){return nt})),n.d(e,"defaultIfEmpty",(function(){return at})),n.d(e,"delay",(function(){return ht})),n.d(e,"delayWhen",(function(){return mt})),n.d(e,"dematerialize",(function(){return Mt})),n.d(e,"distinct",(function(){return Nt})),n.d(e,"distinctUntilChanged",(function(){return kt})),n.d(e,"distinctUntilKeyChanged",(function(){return St})),n.d(e,"elementAt",(function(){return Yt})),n.d(e,"endWith",(function(){return Ft})),n.d(e,"every",(function(){return Vt})),n.d(e,"exhaust",(function(){return qt})),n.d(e,"exhaustMap",(function(){return Kt})),n.d(e,"expand",(function(){return ee})),n.d(e,"filter",(function(){return Ct.a})),n.d(e,"finalize",(function(){return ie})),n.d(e,"find",(function(){return se})),n.d(e,"findIndex",(function(){return le})),n.d(e,"first",(function(){return de})),n.d(e,"groupBy",(function(){return fe.b})),n.d(e,"ignoreElements",(function(){return pe})),n.d(e,"isEmpty",(function(){return ge})),n.d(e,"last",(function(){return Ie})),n.d(e,"map",(function(){return Xt.a})),n.d(e,"mapTo",(function(){return Ne})),n.d(e,"materialize",(function(){return ke})),n.d(e,"max",(function(){return ze})),n.d(e,"merge",(function(){return _e})),n.d(e,"mergeAll",(function(){return Be.a})),n.d(e,"mergeMap",(function(){return G.b})),n.d(e,"flatMap",(function(){return G.a})),n.d(e,"mergeMapTo",(function(){return Re})),n.d(e,"mergeScan",(function(){return Ue})),n.d(e,"min",(function(){return We})),n.d(e,"multicast",(function(){return Ve})),n.d(e,"observeOn",(function(){return Ge.b})),n.d(e,"onErrorResumeNext",(function(){return qe})),n.d(e,"pairwise",(function(){return Xe})),n.d(e,"partition",(function(){return en})),n.d(e,"pluck",(function(){return nn})),n.d(e,"publish",(function(){return an})),n.d(e,"publishBehavior",(function(){return un})),n.d(e,"publishLast",(function(){return ln})),n.d(e,"publishReplay",(function(){return dn})),n.d(e,"race",(function(){return pn})),n.d(e,"reduce",(function(){return Oe})),n.d(e,"repeat",(function(){return yn})),n.d(e,"repeatWhen",(function(){return vn})),n.d(e,"retry",(function(){return Mn})),n.d(e,"retryWhen",(function(){return Nn})),n.d(e,"refCount",(function(){return kn.a})),n.d(e,"sample",(function(){return Tn})),n.d(e,"sampleTime",(function(){return jn})),n.d(e,"scan",(function(){return Se})),n.d(e,"sequenceEqual",(function(){return zn})),n.d(e,"share",(function(){return Un})),n.d(e,"shareReplay",(function(){return Qn})),n.d(e,"single",(function(){return Yn})),n.d(e,"skip",(function(){return Vn})),n.d(e,"skipLast",(function(){return qn})),n.d(e,"skipUntil",(function(){return Xn})),n.d(e,"skipWhile",(function(){return tr})),n.d(e,"startWith",(function(){return rr})),n.d(e,"subscribeOn",(function(){return sr})),n.d(e,"switchAll",(function(){return dr})),n.d(e,"switchMap",(function(){return cr})),n.d(e,"switchMapTo",(function(){return fr})),n.d(e,"take",(function(){return Rt})),n.d(e,"takeLast",(function(){return be})),n.d(e,"takeUntil",(function(){return pr})),n.d(e,"takeWhile",(function(){return gr})),n.d(e,"tap",(function(){return Ar})),n.d(e,"throttle",(function(){return xr})),n.d(e,"throttleTime",(function(){return Lr})),n.d(e,"throwIfEmpty",(function(){return Ot})),n.d(e,"timeInterval",(function(){return Or})),n.d(e,"timeout",(function(){return Qr})),n.d(e,"timeoutWith",(function(){return _r})),n.d(e,"timestamp",(function(){return Yr})),n.d(e,"toArray",(function(){return Vr})),n.d(e,"window",(function(){return Hr})),n.d(e,"windowCount",(function(){return Zr})),n.d(e,"windowTime",(function(){return Kr})),n.d(e,"windowToggle",(function(){return oi})),n.d(e,"windowWhen",(function(){return ui})),n.d(e,"withLatestFrom",(function(){return hi})),n.d(e,"zip",(function(){return yi})),n.d(e,"zipAll",(function(){return mi}));var r=n(0),i=n(2);function o(t){return function(e){return e.lift(new a(t))}}var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new s(t,this.durationSelector))},t}(),s=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=void 0;try{e=(0,this.durationSelector)(t)}catch(t){return this.destination.error(t)}var n=Object(i.c)(e,new i.a(this));!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(i.b),u=n(7),c=n(78);function l(t,e){return void 0===e&&(e=u.a),o((function(){return Object(c.a)(t,e)}))}function h(t){return function(e){return e.lift(new d(t))}}var d=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.closingNotifier))},t}(),f=function(t){function e(e,n){var r=t.call(this,e)||this;return r.buffer=[],r.add(Object(i.c)(n,new i.a(r))),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(){var t=this.buffer;this.buffer=[],this.destination.next(t)},e}(i.b),p=n(1);function y(t,e){return void 0===e&&(e=null),function(n){return n.lift(new m(t,e))}}var m=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?v:g}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),g=function(t){function e(e,n){var r=t.call(this,e)||this;return r.bufferSize=n,r.buffer=[],r}return r.a(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(p.a),v=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.bufferSize=n,i.startBufferEvery=r,i.buffers=[],i.count=0,i}return r.a(e,t),e.prototype._next=function(t){var e=this.bufferSize,n=this.startBufferEvery,r=this.buffers,i=this.count;this.count++,i%n==0&&r.push([]);for(var o=r.length;o--;){var a=r[o];a.push(t),a.length===e&&(r.splice(o,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this.buffers,n=this.destination;e.length>0;){var r=e.shift();r.length>0&&n.next(r)}t.prototype._complete.call(this)},e}(p.a),w=n(10);function b(t){var e=arguments.length,n=u.a;Object(w.a)(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new M(t,r,i,n))}}var M=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new I(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),A=function(){this.buffer=[]},I=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.bufferTimeSpan=n,a.bufferCreationInterval=r,a.maxBufferSize=i,a.scheduler=o,a.contexts=[];var s=a.openContext();if(a.timespanOnly=null==r||r<0,a.timespanOnly){var u={subscriber:a,context:s,bufferTimeSpan:n};a.add(s.closeAction=o.schedule(N,n,u))}else{var c={subscriber:a,context:s},l={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:a,scheduler:o};a.add(s.closeAction=o.schedule(x,n,c)),a.add(o.schedule(E,r,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i0;){var r=e.shift();n.next(r.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(N,n,r))}},e.prototype.openContext=function(){var t=new A;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(p.a);function N(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function E(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext();r.closed||(r.add(o.closeAction=i.schedule(x,n,{subscriber:r,context:o})),this.schedule(t,e))}function x(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var k=n(4),T=n(13),L=n(16);function S(t,e){return function(n){return n.lift(new j(t,e))}}var j=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new C(t,this.openings,this.closingSelector))},t}(),C=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.closingSelector=r,i.contexts=[],i.add(Object(T.a)(i,n)),i}return r.a(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector.call(this,t);e&&this.trySubscribe(e)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=new k.a,r={buffer:[],subscription:n};e.push(r);var i=Object(T.a)(this,t,r);!i||i.closed?this.closeBuffer(r):(i.context=r,this.add(i),n.add(i))},e}(L.a);function D(t){return function(e){return e.lift(new O(t))}}var O=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new z(t,this.closingSelector))},t}(),z=function(t){function e(e,n){var r=t.call(this,e)||this;return r.closingSelector=n,r.subscribing=!1,r.openBuffer(),r}return r.a(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=void 0,this.subscribing=!1},e.prototype.notifyNext=function(){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e,n=this.buffer;this.buffer&&this.destination.next(n),this.buffer=[];try{e=(0,this.closingSelector)()}catch(t){return this.error(t)}t=new k.a,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(Object(i.c)(e,new i.a(this))),this.subscribing=!1},e}(i.b);function P(t){return function(e){var n=new _(t),r=e.lift(n);return n.caught=r}}var _=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new B(t,this.selector,this.caught))},t}(),B=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new i.a(this);this.add(r);var o=Object(i.c)(n,r);o!==r&&this.add(o)}},e}(i.b),R=n(51);function U(t){return function(e){return e.lift(new R.a(t))}}var Q=n(8),Y=n(12);function W(){for(var t=[],e=0;e0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new pt(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(lt.a.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(lt.a.createComplete()),this.unsubscribe()},e}(p.a),pt=function(t,e){this.time=t,this.notification=e},yt=n(3);function mt(t,e){return e?function(n){return new wt(n,e).lift(new gt(t))}:function(e){return e.lift(new gt(t))}}var gt=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vt(t,this.delayDurationSelector))},t}(),vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.delayDurationSelector=n,r.completed=!1,r.delayNotifierSubscriptions=[],r.index=0,r}return r.a(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){var e=this.index++;try{var n=this.delayDurationSelector(t,e);n&&this.tryDelay(n,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete(),this.unsubscribe()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t);return-1!==e&&this.delayNotifierSubscriptions.splice(e,1),t.outerValue},e.prototype.tryDelay=function(t,e){var n=Object(T.a)(this,t,e);n&&!n.closed&&(this.destination.add(n),this.delayNotifierSubscriptions.push(n))},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(L.a),wt=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subscriptionDelay=n,r}return r.a(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new bt(t,this.source))},e}(yt.a),bt=function(t){function e(e,n){var r=t.call(this)||this;return r.parent=e,r.source=n,r.sourceSubscribed=!1,r}return r.a(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.unsubscribe(),this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(p.a);function Mt(){return function(t){return t.lift(new At)}}var At=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new It(t))},t}(),It=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(p.a);function Nt(t,e){return function(n){return n.lift(new Et(t,e))}}var Et=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new xt(t,this.keySelector,this.flushes))},t}(),xt=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.keySelector=n,o.values=new Set,r&&o.add(Object(i.c)(r,new i.a(o))),o}return r.a(e,t),e.prototype.notifyNext=function(){this.values.clear()},e.prototype.notifyError=function(t){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(i.b);function kt(t,e){return function(n){return n.lift(new Tt(t,e))}}var Tt=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Lt(t,this.compare,this.keySelector))},t}(),Lt=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.a(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e;try{var n=this.keySelector;e=n?n(t):t}catch(t){return this.destination.error(t)}var r=!1;if(this.hasKey)try{r=(0,this.compare)(this.key,e)}catch(t){return this.destination.error(t)}else this.hasKey=!0;r||(this.key=e,this.destination.next(t))},e}(p.a);function St(t,e){return kt((function(n,r){return e?e(n[t],r[t]):n[t]===r[t]}))}var jt=n(25),Ct=n(17),Dt=n(27);function Ot(t){return void 0===t&&(t=_t),function(e){return e.lift(new zt(t))}}var zt=function(){function t(t){this.errorFactory=t}return t.prototype.call=function(t,e){return e.subscribe(new Pt(t,this.errorFactory))},t}(),Pt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.errorFactory=n,r.hasValue=!1,r}return r.a(e,t),e.prototype._next=function(t){this.hasValue=!0,this.destination.next(t)},e.prototype._complete=function(){if(this.hasValue)return this.destination.complete();var t=void 0;try{t=this.errorFactory()}catch(e){t=e}this.destination.error(t)},e}(p.a);function _t(){return new Dt.a}var Bt=n(11);function Rt(t){return function(e){return 0===t?Object(Bt.b)():e.lift(new Ut(t))}}var Ut=function(){function t(t){if(this.total=t,this.total<0)throw new jt.a}return t.prototype.call=function(t,e){return e.subscribe(new Qt(t,this.total))},t}(),Qt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(p.a);function Yt(t,e){if(t<0)throw new jt.a;var n=arguments.length>=2;return function(r){return r.pipe(Object(Ct.a)((function(e,n){return n===t})),Rt(1),n?at(e):Ot((function(){return new jt.a})))}}var Wt=n(39);function Ft(){for(var t=[],e=0;e0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(i.b);function ie(t){return function(e){return e.lift(new oe(t))}}var oe=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new ae(t,this.callback))},t}(),ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new k.a(n)),r}return r.a(e,t),e}(p.a);function se(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new ue(t,n,!1,e))}}var ue=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new ce(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}(),ce=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;return a.predicate=n,a.source=r,a.yieldIndex=i,a.thisArg=o,a.index=0,a}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete(),this.unsubscribe()},e.prototype._next=function(t){var e=this.predicate,n=this.thisArg,r=this.index++;try{e.call(n||this,t,r,this.source)&&this.notifyComplete(this.yieldIndex?r:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(p.a);function le(t,e){return function(n){return n.lift(new ue(t,n,!0,e))}}var he=n(15);function de(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Object(Ct.a)((function(e,n){return t(e,n,r)})):he.a,Rt(1),n?at(e):Ot((function(){return new Dt.a})))}}var fe=n(68);function pe(){return function(t){return t.lift(new ye)}}var ye=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new me(t))},t}(),me=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.a(e,t),e.prototype._next=function(t){},e}(p.a);function ge(){return function(t){return t.lift(new ve)}}var ve=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new we(t))},t}(),we=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(p.a);function be(t){return function(e){return 0===t?Object(Bt.b)():e.lift(new Me(t))}}var Me=function(){function t(t){if(this.total=t,this.total<0)throw new jt.a}return t.prototype.call=function(t,e){return e.subscribe(new Ae(t,this.total))},t}(),Ae=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?Object(Ct.a)((function(e,n){return t(e,n,r)})):he.a,be(1),n?at(e):Ot((function(){return new Dt.a})))}}function Ne(t){return function(e){return e.lift(new Ee(t))}}var Ee=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new xe(t,this.value))},t}(),xe=function(t){function e(e,n){var r=t.call(this,e)||this;return r.value=n,r}return r.a(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(p.a);function ke(){return function(t){return t.lift(new Te)}}var Te=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new Le(t))},t}(),Le=function(t){function e(e){return t.call(this,e)||this}return r.a(e,t),e.prototype._next=function(t){this.destination.next(lt.a.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(lt.a.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(lt.a.createComplete()),t.complete()},e}(p.a);function Se(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new je(t,e,n))}}var je=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Ce(t,this.accumulator,this.seed,this.hasSeed))},t}(),Ce=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.a(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(p.a),De=n(41);function Oe(t,e){return arguments.length>=2?function(n){return Object(De.a)(Se(t,e),be(1),at(e))(n)}:function(e){return Object(De.a)(Se((function(e,n,r){return t(e,n,r+1)})),be(1))(e)}}function ze(t){return Oe("function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e})}var Pe=n(76);function _e(){for(var t=[],e=0;e0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(i.b);function We(t){return Oe("function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t-1&&(this.count=n-1),e.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function vn(t){return function(e){return e.lift(new wn(t))}}var wn=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new bn(t,this.notifier,e))},t}(),bn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i.sourceIsBeingSubscribedTo=!0,i}return r.a(e,t),e.prototype.notifyNext=function(){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return t.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next(void 0)}},e.prototype._unsubscribe=function(){var t=this.notifications,e=this.retriesSubscription;t&&(t.unsubscribe(),this.notifications=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype._unsubscribeAndRecycle=function(){var e=this._unsubscribe;return this._unsubscribe=null,t.prototype._unsubscribeAndRecycle.call(this),this._unsubscribe=e,this},e.prototype.subscribeToRetries=function(){var e;this.notifications=new on.a;try{e=(0,this.notifier)(this.notifications)}catch(e){return t.prototype.complete.call(this)}this.retries=e,this.retriesSubscription=Object(i.c)(e,new i.a(this))},e}(i.b);function Mn(t){return void 0===t&&(t=-1),function(e){return e.lift(new An(t,e))}}var An=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new In(t,this.count,this.source))},t}(),In=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.count=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.source,r=this.count;if(0===r)return t.prototype.error.call(this,e);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(p.a);function Nn(t){return function(e){return e.lift(new En(t,e))}}var En=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new xn(t,this.notifier,this.source))},t}(),xn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.notifier=n,i.source=r,i}return r.a(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,o=this.retriesSubscription;if(r)this.errors=void 0,this.retriesSubscription=void 0;else{n=new on.a;try{r=(0,this.notifier)(n)}catch(e){return t.prototype.error.call(this,e)}o=Object(i.c)(r,new i.a(this))}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=o,n.next(e)}},e.prototype._unsubscribe=function(){var t=this.errors,e=this.retriesSubscription;t&&(t.unsubscribe(),this.errors=void 0),e&&(e.unsubscribe(),this.retriesSubscription=void 0),this.retries=void 0},e.prototype.notifyNext=function(){var t=this._unsubscribe;this._unsubscribe=null,this._unsubscribeAndRecycle(),this._unsubscribe=t,this.source.subscribe(this)},e}(i.b),kn=n(48);function Tn(t){return function(e){return e.lift(new Ln(t))}}var Ln=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new Sn(t),r=e.subscribe(n);return r.add(Object(i.c)(this.notifier,new i.a(n))),r},t}(),Sn=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.hasValue=!1,e}return r.a(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(i.b);function jn(t,e){return void 0===e&&(e=u.a),function(n){return n.lift(new Cn(t,e))}}var Cn=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new Dn(t,this.period,this.scheduler))},t}(),Dn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.period=n,i.scheduler=r,i.hasValue=!1,i.add(r.schedule(On,n,{subscriber:i,period:n})),i}return r.a(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(p.a);function On(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}function zn(t,e){return function(n){return n.lift(new Pn(t,e))}}var Pn=function(){function t(t,e){this.compareTo=t,this.comparator=e}return t.prototype.call=function(t,e){return e.subscribe(new _n(t,this.compareTo,this.comparator))},t}(),_n=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.compareTo=n,i.comparator=r,i._a=[],i._b=[],i._oneComplete=!1,i.destination.add(n.subscribe(new Bn(e,i))),i}return r.a(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0,this.unsubscribe()},e.prototype.checkValues=function(){for(var t=this._a,e=this._b,n=this.comparator;t.length>0&&e.length>0;){var r=t.shift(),i=e.shift(),o=!1;try{o=n?n(r,i):r===i}catch(t){this.destination.error(t)}o||this.emit(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e.prototype.completeB=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e}(p.a),Bn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.parent=n,r}return r.a(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t),this.unsubscribe()},e.prototype._complete=function(){this.parent.completeB(),this.unsubscribe()},e}(p.a);function Rn(){return new on.a}function Un(){return function(t){return Object(kn.a)()(Ve(Rn)(t))}}function Qn(t,e,n){var r;return r=t&&"object"==typeof t?t:{bufferSize:t,windowTime:e,refCount:!1,scheduler:n},function(t){return t.lift(function(t){var e,n,r=t.bufferSize,i=void 0===r?Number.POSITIVE_INFINITY:r,o=t.windowTime,a=void 0===o?Number.POSITIVE_INFINITY:o,s=t.refCount,u=t.scheduler,c=0,l=!1,h=!1;return function(t){var r;c++,!e||l?(l=!1,e=new hn.a(i,a,u),r=e.subscribe(this),n=t.subscribe({next:function(t){e.next(t)},error:function(t){l=!0,e.error(t)},complete:function(){h=!0,n=void 0,e.complete()}}),h&&(n=void 0)):r=e.subscribe(this),this.add((function(){c--,r.unsubscribe(),r=void 0,n&&!h&&s&&0===c&&(n.unsubscribe(),n=void 0,e=void 0)}))}}(r))}}function Yn(t){return function(e){return e.lift(new Wn(t,e))}}var Wn=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new Fn(t,this.predicate,this.source))},t}(),Fn=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.predicate=n,i.source=r,i.seenValue=!1,i.index=0,i}return r.a(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new Dt.a)},e}(p.a);function Vn(t){return function(e){return e.lift(new Hn(t))}}var Hn=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new Gn(t,this.total))},t}(),Gn=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.a(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(p.a);function qn(t){return function(e){return e.lift(new Zn(t))}}var Zn=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new jt.a}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new p.a(t)):e.subscribe(new Jn(t,this._skipCount))},t}(),Jn=function(t){function e(e,n){var r=t.call(this,e)||this;return r._skipCount=n,r._count=0,r._ring=new Array(n),r}return r.a(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a=0&&s%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var u=new on.a;i.push(u),n.next(u)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(p.a);function Kr(t){var e=u.a,n=null,r=Number.POSITIVE_INFINITY;return Object(w.a)(arguments[3])&&(e=arguments[3]),Object(w.a)(arguments[2])?e=arguments[2]:Object(or.a)(arguments[2])&&(r=Number(arguments[2])),Object(w.a)(arguments[1])?e=arguments[1]:Object(or.a)(arguments[1])&&(n=Number(arguments[1])),function(i){return i.lift(new $r(t,n,r,e))}}var $r=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new ei(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),ti=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._numberOfNextedValues=0,e}return r.a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(on.a),ei=function(t){function e(e,n,r,i,o){var a=t.call(this,e)||this;a.destination=e,a.windowTimeSpan=n,a.windowCreationInterval=r,a.maxWindowSize=i,a.scheduler=o,a.windows=[];var s=a.openWindow();if(null!==r&&r>=0){var u={subscriber:a,window:s,context:null},c={windowTimeSpan:n,windowCreationInterval:r,subscriber:a,scheduler:o};a.add(o.schedule(ii,n,u)),a.add(o.schedule(ri,r,c))}else{var l={subscriber:a,window:s,windowTimeSpan:n};a.add(o.schedule(ni,n,l))}return a}return r.a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new ti;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(p.a);function ni(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function ri(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),a={action:this,subscription:null},s={subscriber:n,window:o,context:a};a.subscription=r.schedule(ii,e,s),this.add(a.subscription),this.schedule(t,i)}function ii(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}function oi(t,e){return function(n){return n.lift(new ai(t,e))}}var ai=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new si(t,this.openings,this.closingSelector))},t}(),si=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.openings=n,i.closingSelector=r,i.contexts=[],i.add(i.openSubscription=Object(T.a)(i,n,n)),i}return r.a(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r0){var i=r.indexOf(n);-1!==i&&r.splice(i,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(L.a),pi=n(54);function yi(){for(var t=[],e=0;enew a.WalletSDKUI(t),void 0===t.overrideIsMetaMask?this._overrideIsMetaMask=!1:this._overrideIsMetaMask=t.overrideIsMetaMask,this._overrideIsCoinbaseWallet=null===(e=t.overrideIsCoinbaseWallet)||void 0===e||e,this._overrideIsCoinbaseBrowser=null!==(n=t.overrideIsCoinbaseBrowser)&&void 0!==n&&n,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this._diagnosticLogger={log:t.eventListener.onEvent}:this._diagnosticLogger=t.diagnosticLogger,this._reloadOnDisconnect=null===(r=t.reloadOnDisconnect)||void 0===r||r;const f=new URL(o),p=`${f.protocol}//${f.host}`;this._storage=new i.ScopedLocalStorage("-walletlink:"+p),this._storage.setItem("version",d.VERSION),this.walletExtension||this.coinbaseBrowser||(this._relayEventManager=new u.WalletSDKRelayEventManager,this._relay=new s.WalletSDKRelay({linkAPIUrl:o,version:h,darkMode:!!t.darkMode,uiConstructor:c,storage:this._storage,relayEventManager:this._relayEventManager,diagnosticLogger:this._diagnosticLogger,reloadOnDisconnect:this._reloadOnDisconnect}),this.setAppInfo(t.appName,t.appLogoUrl),t.headlessMode||this._relay.attachUI())}makeWeb3Provider(t="",e=1){const n=this.walletExtension;if(n)return this.isCipherProvider(n)||n.setProviderInfo(t,e),!1===this._reloadOnDisconnect&&"function"==typeof n.disableReloadOnDisconnect&&n.disableReloadOnDisconnect(),n;const r=this.coinbaseBrowser;if(r)return r;const i=this._relay;if(!i||!this._relayEventManager||!this._storage)throw new Error("Relay not initialized, should never happen");return t||i.setConnectDisabled(!0),new o.CoinbaseWalletProvider({relayProvider:()=>Promise.resolve(i),relayEventManager:this._relayEventManager,storage:this._storage,jsonRpcUrl:t,chainId:e,qrUrl:this.getQrUrl(),diagnosticLogger:this._diagnosticLogger,overrideIsMetaMask:this._overrideIsMetaMask,overrideIsCoinbaseWallet:this._overrideIsCoinbaseWallet,overrideIsCoinbaseBrowser:this._overrideIsCoinbaseBrowser})}setAppInfo(t,e){var n;this._appName=t||"DApp",this._appLogoUrl=e||(0,c.getFavicon)();const r=this.walletExtension;r?this.isCipherProvider(r)||r.setAppInfo(this._appName,this._appLogoUrl):null===(n=this._relay)||void 0===n||n.setAppInfo(this._appName,this._appLogoUrl)}disconnect(){var t;const e=this.walletExtension;e?e.close():null===(t=this._relay)||void 0===t||t.resetAndReload()}getQrUrl(){var t,e;return null!==(e=null===(t=this._relay)||void 0===t?void 0:t.getQRCodeUrl())&&void 0!==e?e:null}getCoinbaseWalletLogo(t,e=240){return(0,r.walletLogo)(t,e)}get walletExtension(){var t;return null!==(t=window.coinbaseWalletExtension)&&void 0!==t?t:window.walletLinkExtension}get coinbaseBrowser(){var t,e;try{const n=null!==(t=window.ethereum)&&void 0!==t?t:null===(e=window.top)||void 0===e?void 0:e.ethereum;if(!n)return;return"isCoinbaseBrowser"in n&&n.isCoinbaseBrowser?n:void 0}catch(t){return}}isCipherProvider(t){return"boolean"==typeof t.isCipher&&t.isCipher}}e.CoinbaseWalletSDK=d,d.VERSION=h}).call(this,n(40))},function(t,e){t.exports=o,o.default=o,o.stable=u,o.stableStringify=u;var n=[],r=[];function i(){return{depthLimit:Number.MAX_SAFE_INTEGER,edgesLimit:Number.MAX_SAFE_INTEGER}}function o(t,e,o,s){var u;void 0===s&&(s=i()),function t(e,n,r,i,o,s,u){var c;if(s+=1,"object"==typeof e&&null!==e){for(c=0;cu.depthLimit)return void a("[...]",e,n,o);if(void 0!==u.edgesLimit&&r+1>u.edgesLimit)return void a("[...]",e,n,o);if(i.push(e),Array.isArray(e))for(c=0;ce?1:0}function u(t,e,o,u){void 0===u&&(u=i());var l,h=function t(e,r,i,o,u,c,l){var h;if(c+=1,"object"==typeof e&&null!==e){for(h=0;hl.depthLimit)return void a("[...]",e,r,u);if(void 0!==l.edgesLimit&&i+1>l.edgesLimit)return void a("[...]",e,r,u);if(o.push(e),Array.isArray(e))for(h=0;h0)for(var i=0;i=-32099&&t<=-32e3}function l(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=s,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=a,shouldIncludeStack:n=!1}={}){var r,o;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const c={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&u(t.code)){const e=t;c.code=e.code,e.message&&"string"==typeof e.message?(c.message=e.message,h(e,"data")&&(c.data=e.data)):(c.message=s(c.code),c.data={originalError:l(t)})}else{c.code=e.code;const n=null===(r=t)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:e.message,c.data={originalError:l(t)}}const d=null===(o=t)||void 0===o?void 0:o.stack;return n&&t&&d&&"string"==typeof d&&(c.stack=d),c}},function(t,e,n){var r=n(24),i=n(45),o=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],s=new Array(64);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t){return(t>>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function f(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}r(u,i),u.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},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,p=0|this._f,y=0|this._g,m=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+f(n[g-15])+n[g-16];for(var v=0;v<64;++v){var w=m+d(u)+c(u,p,y)+a[v]+n[v]|0,b=h(r)+l(r,i,o)|0;m=y,y=p,p=u,u=s+w|0,s=o,o=i,i=r,r=w+b|0}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0,this._f=p+this._f|0,this._g=y+this._g|0,this._h=m+this._h|0},u.prototype._hash=function(){var t=o.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=u},function(t,e,n){var r=n(24),i=n(45),o=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,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],s=new Array(160);function u(){this.init(),this._w=s,i.call(this,128,112)}function c(t,e,n){return n^t&(e^n)}function l(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function f(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function y(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}r(u,i),u.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},u.prototype._update=function(t){for(var e=this._w,n=0|this._ah,r=0|this._bh,i=0|this._ch,o=0|this._dh,s=0|this._eh,u=0|this._fh,v=0|this._gh,w=0|this._hh,b=0|this._al,M=0|this._bl,A=0|this._cl,I=0|this._dl,N=0|this._el,E=0|this._fl,x=0|this._gl,k=0|this._hl,T=0;T<32;T+=2)e[T]=t.readInt32BE(4*T),e[T+1]=t.readInt32BE(4*T+4);for(;T<160;T+=2){var L=e[T-30],S=e[T-30+1],j=f(L,S),C=p(S,L),D=y(L=e[T-4],S=e[T-4+1]),O=m(S,L),z=e[T-14],P=e[T-14+1],_=e[T-32],B=e[T-32+1],R=C+P|0,U=j+z+g(R,C)|0;U=(U=U+D+g(R=R+O|0,O)|0)+_+g(R=R+B|0,B)|0,e[T]=U,e[T+1]=R}for(var Q=0;Q<160;Q+=2){U=e[Q],R=e[Q+1];var Y=l(n,r,i),W=l(b,M,A),F=h(n,b),V=h(b,n),H=d(s,N),G=d(N,s),q=a[Q],Z=a[Q+1],J=c(s,u,v),X=c(N,E,x),K=k+G|0,$=w+H+g(K,k)|0;$=($=($=$+J+g(K=K+X|0,X)|0)+q+g(K=K+Z|0,Z)|0)+U+g(K=K+R|0,R)|0;var tt=V+W|0,et=F+Y+g(tt,V)|0;w=v,k=x,v=u,x=E,u=s,E=N,s=o+$+g(N=I+K|0,I)|0,o=i,I=A,i=r,A=M,r=n,M=b,n=$+et+g(b=K+tt|0,K)|0}this._al=this._al+b|0,this._bl=this._bl+M|0,this._cl=this._cl+A|0,this._dl=this._dl+I|0,this._el=this._el+N|0,this._fl=this._fl+E|0,this._gl=this._gl+x|0,this._hl=this._hl+k|0,this._ah=this._ah+n+g(this._al,b)|0,this._bh=this._bh+r+g(this._bl,M)|0,this._ch=this._ch+i+g(this._cl,A)|0,this._dh=this._dh+o+g(this._dl,I)|0,this._eh=this._eh+s+g(this._el,N)|0,this._fh=this._fh+u+g(this._fl,E)|0,this._gh=this._gh+v+g(this._gl,x)|0,this._hh=this._hh+w+g(this._hl,k)|0},u.prototype._hash=function(){var t=o.allocUnsafe(64);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=u},function(t,e,n){var r=n(94),i=Object.prototype.hasOwnProperty,o=Array.isArray,a=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),s=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},r=0;r1;){var e=t.pop(),n=e.obj[e.prop];if(o(n)){for(var r=[],i=0;i=48&&l<=57||l>=65&&l<=90||l>=97&&l<=122||o===r.RFC1738&&(40===l||41===l)?u+=s.charAt(c):l<128?u+=a[l]:l<2048?u+=a[192|l>>6]+a[128|63&l]:l<55296||l>=57344?u+=a[224|l>>12]+a[128|l>>6&63]+a[128|63&l]:(c+=1,l=65536+((1023&l)<<10|1023&s.charCodeAt(c)),u+=a[240|l>>18]+a[128|l>>12&63]+a[128|l>>6&63]+a[128|63&l])}return u},isBuffer:function(t){return!(!t||"object"!=typeof t||!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t)))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},maybeMap:function(t,e){if(o(t)){for(var n=[],r=0;rt.json())).then((t=>{if(!t)throw r.ethErrors.rpc.parse({});const e=t,{error:n}=e;if(n)throw(0,r.serializeError)(n);return e}))}}},function(t,e,n){(function(e){const r=n(153),i=n(66);function o(t){return e.allocUnsafe(t).fill(0)}function a(t,e,n){const r=o(e);return t=s(t),n?t.length0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===u.prototype||(e=function(t){return u.from(t)}(e)),r)s.endEmitted?A(t,new M):k(t,s,e,!0);else if(s.ended)A(t,new w);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?k(t,s,e,!1):j(t,s)):k(t,s,e,!1)}else r||(s.reading=!1,j(t,s));return!s.ended&&(s.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function L(t){var e=t._readableState;o("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(o("emitReadable",e.flowing),e.emittedReadable=!0,r.nextTick(S,t))}function S(t){var e=t._readableState;o("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,P(t)}function j(t,e){e.readingMore||(e.readingMore=!0,r.nextTick(C,t,e))}function C(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function O(t){o("readable nexttick read 0"),t.read(0)}function z(t,e){o("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),P(t),e.flowing&&!e.reading&&t.read(0)}function P(t){var e=t._readableState;for(o("flow",e.flowing);e.flowing&&null!==t.read(););}function _(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function B(t){var e=t._readableState;o("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,r.nextTick(R,e,t))}function R(t,e){if(o("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function U(t,e){for(var n=0,r=t.length;n=e.highWaterMark:e.length>0)||e.ended))return o("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?B(this):L(this),null;if(0===(t=T(t,e))&&e.ended)return 0===e.length&&B(this),null;var r,i=e.needReadable;return o("need readable",i),(0===e.length||e.length-t0?_(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&B(this)),null!==r&&this.emit("data",r),r},E.prototype._read=function(t){A(this,new b("_read()"))},E.prototype.pipe=function(t,e){var n=this,i=this._readableState;switch(i.pipesCount){case 0:i.pipes=t;break;case 1:i.pipes=[i.pipes,t];break;default:i.pipes.push(t)}i.pipesCount+=1,o("pipe count=%d opts=%j",i.pipesCount,e);var s=e&&!1===e.end||t===r.stdout||t===r.stderr?y:u;function u(){o("onend"),t.end()}i.endEmitted?r.nextTick(s):n.once("end",s),t.on("unpipe",(function e(r,a){o("onunpipe"),r===n&&a&&!1===a.hasUnpiped&&(a.hasUnpiped=!0,o("cleanup"),t.removeListener("close",f),t.removeListener("finish",p),t.removeListener("drain",c),t.removeListener("error",d),t.removeListener("unpipe",e),n.removeListener("end",u),n.removeListener("end",y),n.removeListener("data",h),l=!0,!i.awaitDrain||t._writableState&&!t._writableState.needDrain||c())}));var c=function(t){return function(){var e=t._readableState;o("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,P(t))}}(n);t.on("drain",c);var l=!1;function h(e){o("ondata");var r=t.write(e);o("dest.write",r),!1===r&&((1===i.pipesCount&&i.pipes===t||i.pipesCount>1&&-1!==U(i.pipes,t))&&!l&&(o("false write response, pause",i.awaitDrain),i.awaitDrain++),n.pause())}function d(e){o("onerror",e),y(),t.removeListener("error",d),0===a(t,"error")&&A(t,e)}function f(){t.removeListener("finish",p),y()}function p(){o("onfinish"),t.removeListener("close",f),y()}function y(){o("unpipe"),n.unpipe(t)}return n.on("data",h),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",d),t.once("close",f),t.once("finish",p),t.emit("pipe",n),i.flowing||(o("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o0,!1!==i.flowing&&this.resume()):"readable"===t&&(i.endEmitted||i.readableListening||(i.readableListening=i.needReadable=!0,i.flowing=!1,i.emittedReadable=!1,o("on readable",i.length,i.reading),i.length?L(this):i.reading||r.nextTick(O,this))),n},E.prototype.addListener=E.prototype.on,E.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&r.nextTick(D,this),n},E.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||r.nextTick(D,this),e},E.prototype.resume=function(){var t=this._readableState;return t.flowing||(o("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,r.nextTick(z,t,e))}(this,t)),t.paused=!1,this},E.prototype.pause=function(){return o("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(o("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},E.prototype.wrap=function(t){var e=this,n=this._readableState,r=!1;for(var i in t.on("end",(function(){if(o("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(i){o("wrapped data"),n.decoder&&(i=n.decoder.write(i)),n.objectMode&&null==i||(n.objectMode||i&&i.length)&&(e.push(i)||(r=!0,t.pause()))})),t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var a=0;a-1))throw new M(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(E.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(E.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),E.prototype._write=function(t,e,n){n(new y("_write()"))},E.prototype._writev=null,E.prototype.end=function(t,e,n){var i=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||function(t,e,n){e.ending=!0,j(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n)),e.ended=!0,t.writable=!1}(this,i,n),this},Object.defineProperty(E.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(E.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),E.prototype.destroy=h.destroy,E.prototype._undestroy=h.undestroy,E.prototype._destroy=function(t,e){e(t)}}).call(this,n(63),n(40))},function(t,e,n){var r=n(37).Buffer,i=r.isEncoding||function(t){switch((t=""+t)&&t.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 o(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){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 t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(r.isEncoding===i||!i(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=u,this.end=c,e=4;break;case"utf8":this.fillLast=s,e=4;break;case"base64":this.text=l,this.end=h,e=3;break;default:return this.write=d,void(this.end=f)}this.lastNeed=0,this.lastTotal=0,this.lastChar=r.allocUnsafe(e)}function a(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function s(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function u(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function c(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function l(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function f(t){return t&&t.length?this.write(t):""}e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0?(i>0&&(t.lastNeed=i-1),i):--r=0?(i>0&&(t.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)},o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){t.exports=l;var r=n(46).codes,i=r.ERR_METHOD_NOT_IMPLEMENTED,o=r.ERR_MULTIPLE_CALLBACK,a=r.ERR_TRANSFORM_ALREADY_TRANSFORMING,s=r.ERR_TRANSFORM_WITH_LENGTH_0,u=n(47);function c(t,e){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(null===r)return this.emit("error",new o);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),r(t);var i=this._readableState;i.reading=!1,(i.needReadable||i.lengthfunction(){const n=e.promiseModule,r=new Array(arguments.length);for(let t=0;t{e.errorFirst?r.push((function(t,r){if(e.multiArgs){const e=new Array(arguments.length-1);for(let t=1;t{e=Object.assign({exclude:[/.+(Sync|Stream)$/],errorFirst:!0,promiseModule:Promise},e);const n=t=>{const n=e=>"string"==typeof e?t===e:e.test(t);return e.include?e.include.some(n):!e.exclude.some(n)};let i;i="function"==typeof t?function(){return e.excludeMain?t.apply(this,arguments):r(t,e).apply(this,arguments)}:Object.create(Object.getPrototypeOf(t));for(const o in t){const a=t[o];i[o]="function"==typeof a&&n(o)?r(a,e):a}return i}},function(t,e,n){const r=n(173),i=n(174)();function o(t){this.currentProvider=t}function a(t){return function(){const e=this;var n=[].slice.call(arguments),r=n.pop();e.sendAsync({method:t,params:n},r)}}function s(t,e){return function(){const n=this;var r=[].slice.call(arguments),i=r.pop();r.length{try{const[i,o,s]=await a._runAllMiddleware(t,e,this._middleware);return o?(await a._runReturnHandlers(s),r(i)):n((async t=>{try{await a._runReturnHandlers(s)}catch(e){return t(e)}return t()}))}catch(t){return r(t)}}}async _handleBatch(t,e){try{const n=await Promise.all(t.map(this._promiseHandle.bind(this)));return e?e(null,n):n}catch(t){if(e)return e(t);throw t}}_promiseHandle(t){return new Promise((e=>{this._handle(t,((t,n)=>{e(n)}))}))}async _handle(t,e){if(!t||Array.isArray(t)||"object"!=typeof t){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Requests must be plain objects. Received: "+typeof t,{request:t});return e(n,{id:void 0,jsonrpc:"2.0",error:n})}if("string"!=typeof t.method){const n=new o.EthereumRpcError(o.errorCodes.rpc.invalidRequest,"Must specify a string method. Received: "+typeof t.method,{request:t});return e(n,{id:t.id,jsonrpc:"2.0",error:n})}const n=Object.assign({},t),r={id:n.id,jsonrpc:n.jsonrpc};let i=null;try{await this._processRequest(n,r)}catch(t){i=t}return i&&(delete r.result,r.error||(r.error=o.serializeError(i))),e(i,r)}async _processRequest(t,e){const[n,r,i]=await a._runAllMiddleware(t,e,this._middleware);if(a._checkForCompletion(t,e,r),await a._runReturnHandlers(i),n)throw n}static async _runAllMiddleware(t,e,n){const r=[];let i=null,o=!1;for(const s of n)if([i,o]=await a._runMiddleware(t,e,s,r),o)break;return[i,o,r.reverse()]}static _runMiddleware(t,e,n,r){return new Promise((i=>{const a=t=>{const n=t||e.error;n&&(e.error=o.serializeError(n)),i([n,!0])},u=n=>{e.error?a(e.error):(n&&("function"!=typeof n&&a(new o.EthereumRpcError(o.errorCodes.rpc.internal,`JsonRpcEngine: "next" return handlers must be functions. Received "${typeof n}" for request:\n${s(t)}`,{request:t})),r.push(n)),i([null,!1]))};try{n(t,e,u,a)}catch(t){a(t)}}))}static async _runReturnHandlers(t){for(const e of t)await new Promise(((t,n)=>{e((e=>e?n(e):t()))}))}static _checkForCompletion(t,e,n){if(!("result"in e)&&!("error"in e))throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Response has no error or result for request:\n"+s(t),{request:t});if(!n)throw new o.EthereumRpcError(o.errorCodes.rpc.internal,"JsonRpcEngine: Nothing ended request:\n"+s(t),{request:t})}}function s(t){return JSON.stringify(t,null,2)}e.JsonRpcEngine=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.serializeError=e.isValidCode=e.getMessageFromCode=e.JSON_RPC_SERVER_ERROR_MESSAGE=void 0;const r=n(97),i=n(96),o=r.errorCodes.rpc.internal,a={code:o,message:s(o)};function s(t,n="Unspecified error message. This is a bug, please report it."){if(Number.isInteger(t)){const n=t.toString();if(h(r.errorValues,n))return r.errorValues[n].message;if(c(t))return e.JSON_RPC_SERVER_ERROR_MESSAGE}return n}function u(t){if(!Number.isInteger(t))return!1;const e=t.toString();return!!r.errorValues[e]||!!c(t)}function c(t){return t>=-32099&&t<=-32e3}function l(t){return t&&"object"==typeof t&&!Array.isArray(t)?Object.assign({},t):t}function h(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.JSON_RPC_SERVER_ERROR_MESSAGE="Unspecified server error.",e.getMessageFromCode=s,e.isValidCode=u,e.serializeError=function(t,{fallbackError:e=a,shouldIncludeStack:n=!1}={}){var r,o;if(!e||!Number.isInteger(e.code)||"string"!=typeof e.message)throw new Error("Must provide fallback error with integer number code and string message.");if(t instanceof i.EthereumRpcError)return t.serialize();const c={};if(t&&"object"==typeof t&&!Array.isArray(t)&&h(t,"code")&&u(t.code)){const e=t;c.code=e.code,e.message&&"string"==typeof e.message?(c.message=e.message,h(e,"data")&&(c.data=e.data)):(c.message=s(c.code),c.data={originalError:l(t)})}else{c.code=e.code;const n=null===(r=t)||void 0===r?void 0:r.message;c.message=n&&"string"==typeof n?n:e.message,c.data={originalError:l(t)}}const d=null===(o=t)||void 0===o?void 0:o.stack;return n&&t&&d&&"string"==typeof d&&(c.stack=d),c}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3Method=void 0,function(t){t.requestEthereumAccounts="requestEthereumAccounts",t.signEthereumMessage="signEthereumMessage",t.signEthereumTransaction="signEthereumTransaction",t.submitEthereumTransaction="submitEthereumTransaction",t.ethereumAddressFromSignedMessage="ethereumAddressFromSignedMessage",t.scanQRCode="scanQRCode",t.generic="generic",t.childRequestEthereumAccounts="childRequestEthereumAccounts",t.addEthereumChain="addEthereumChain",t.switchEthereumChain="switchEthereumChain",t.makeEthereumJSONRPCRequest="makeEthereumJSONRPCRequest",t.watchAsset="watchAsset",t.selectProvider="selectProvider"}(e.Web3Method||(e.Web3Method={}))},function(t,e,n){n.r(e);var r=n(85);n.d(e,"CoinbaseWalletProvider",(function(){return r.CoinbaseWalletProvider})),n.d(e,"CoinbaseWalletSDK",(function(){return r.CoinbaseWalletSDK}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.walletLogo=void 0,e.walletLogo=(t,e)=>{let n;switch(t){case"standard":return n=e,`data:image/svg+xml,%3Csvg width='${e}' 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=e,`data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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.3V33.12C299.3,22.46,291.53,15,281.09,15Zm-9.87,15.26c1.37-5.18,5.26-7.7,9.72-7.7,4.9,0,8.64,2.8,9.51,7.7ZM19.3,23a9.84,9.84,0,0,1,9.5,7h9.14c-1.65-8.93-9-15-18.57-15A19,19,0,0,0,0,34.34c0,11.09,8.28,19.3,19.37,19.3,9.36,0,16.85-6,18.5-15H28.8a9.75,9.75,0,0,1-9.43,7.06c-6.27,0-10.66-4.83-10.66-11.31S13,23,19.3,23Zm41.11-8A19,19,0,0,0,41,34.34c0,11.09,8.28,19.3,19.37,19.3A19,19,0,0,0,79.92,34.27C79.92,23.33,71.64,15,60.41,15Zm.07,30.67c-6.19,0-10.73-4.83-10.73-11.31S54.22,23,60.41,23s10.8,4.89,10.8,11.37S66.67,45.65,60.48,45.65ZM123.41,15c-5.62,0-9.29,2.3-11.45,5.54V15.7h-8.57V52.92H112V32.69C112,27,115.63,23,121,23c5,0,8.06,3.53,8.06,8.64V52.92h8.64V31C137.66,21.6,132.84,15,123.41,15ZM92,.36a5.36,5.36,0,0,0-5.55,5.47,5.55,5.55,0,0,0,11.09,0A5.35,5.35,0,0,0,92,.36Zm-9.72,23h5.4V52.92h8.64V15.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogo":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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.7h-14Zm298.17-7.7L366.2,52.92H372L375.29,44H392l3.33,8.88h6L386.87,15.7ZM377,39.23l6.45-17.56h.1l6.56,17.56ZM362.66,15.7l-7.88,29h-.11l-8.14-29H341l-8,28.93h-.1l-8-28.87H319L329.82,53h5.45l8.19-29.24h.11L352,53h5.66L368.1,15.7Zm135.25,0v4.86h12.32V52.92h5.6V20.56h12.32V15.7ZM467.82,52.92h25.54V48.06H473.43v-12h18.35V31.35H473.43V20.56h19.93V15.7H467.82ZM443,15.7h-5.6V52.92h24.32V48.06H443Zm-30.45,0h-5.61V52.92h24.32V48.06H412.52Z'/%3E%3C/svg%3E`;case"textWithLogoLight":return n=(.25*e).toFixed(2),`data:image/svg+xml,%3Csvg width='${e}' 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`;default:return n=e,`data:image/svg+xml,%3Csvg width='${e}' 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 `}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ScopedLocalStorage=void 0,e.ScopedLocalStorage=class{constructor(t){this.scope=t}setItem(t,e){localStorage.setItem(this.scopedKey(t),e)}getItem(t){return localStorage.getItem(this.scopedKey(t))}removeItem(t){localStorage.removeItem(this.scopedKey(t))}clear(){const t=this.scopedKey(""),e=[];for(let n=0;nlocalStorage.removeItem(t)))}scopedKey(t){return`${this.scope}:${t}`}}},function(t,e,n){e.byteLength=function(t){var e=c(t),n=e[0],r=e[1];return 3*(n+r)/4-r},e.toByteArray=function(t){var e,n,r=c(t),a=r[0],s=r[1],u=new o(function(t,e,n){return 3*(e+n)/4-n}(0,a,s)),l=0,h=s>0?a-4:a;for(n=0;n>16&255,u[l++]=e>>8&255,u[l++]=255&e;return 2===s&&(e=i[t.charCodeAt(n)]<<2|i[t.charCodeAt(n+1)]>>4,u[l++]=255&e),1===s&&(e=i[t.charCodeAt(n)]<<10|i[t.charCodeAt(n+1)]<<4|i[t.charCodeAt(n+2)]>>2,u[l++]=e>>8&255,u[l++]=255&e),u},e.fromByteArray=function(t){for(var e,n=t.length,i=n%3,o=[],a=0,s=n-i;as?s:a+16383));return 1===i?(e=t[n-1],o.push(r[e>>2]+r[e<<4&63]+"==")):2===i&&(e=(t[n-2]<<8)+t[n-1],o.push(r[e>>10]+r[e>>4&63]+r[e<<2&63]+"=")),o.join("")};for(var r=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=a.length;s0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function l(t,e,n){for(var i,o,a=[],s=e;s>18&63]+r[o>>12&63]+r[o>>6&63]+r[63&o]);return a.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ -e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const r=n(88),i=n(104),o=n(89);function a(t,e){const[n,o]=u(e);return new r.EthereumRpcError(t,n||i.getMessageFromCode(t),o)}function s(t,e){const[n,o]=u(e);return new r.EthereumProviderError(t,n||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:t=>a(o.errorCodes.rpc.parse,t),invalidRequest:t=>a(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>a(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>a(o.errorCodes.rpc.methodNotFound,t),internal:t=>a(o.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(e,t)},invalidInput:t=>a(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>a(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>a(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>a(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>a(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>a(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>s(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>s(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>s(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>s(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>s(o.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:i}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(e,n,i)}}}},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(135),e.sha1=n(136),e.sha224=n(137),e.sha256=n(105),e.sha384=n(138),e.sha512=n(106)},function(t,e,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function l(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=r)<<5|e>>>27)+l(f,i,o,s)+u+n[d]+a[f];u=s,s=o,o=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),y=c(r)+h(p,i,o,s)+u+n[f]+a[p]|0;u=s,s=o,o=l(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(24),i=n(105),o=n(45),a=n(37).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.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},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},function(t,e,n){var r=n(24),i=n(106),o=n(45),a=n(37).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.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},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},function(t,e,n){var r=n(140),i=n(151),o=n(94);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){var r=n(141),i=n(107),o=n(94),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},h=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},y=function t(e,n,o,a,s,c,h,d,y,m,g,v,w,b,M,A){for(var I,N=e,E=A,x=0,k=!1;void 0!==(E=E.get(p))&&!k;){var T=E.get(e);if(x+=1,void 0!==T){if(T===x)throw new RangeError("Cyclic object value");k=!0}void 0===E.get(p)&&(x=0)}if("function"==typeof d?N=d(n,N):N instanceof Date?N=g(N):"comma"===o&&u(N)&&(N=i.maybeMap(N,(function(t){return t instanceof Date?g(t):t}))),null===N){if(s)return h&&!b?h(n,f.encoder,M,"key",v):n;N=""}if("string"==typeof(I=N)||"number"==typeof I||"boolean"==typeof I||"symbol"==typeof I||"bigint"==typeof I||i.isBuffer(N))return h?[w(b?n:h(n,f.encoder,M,"key",v))+"="+w(h(N,f.encoder,M,"value",v))]:[w(n)+"="+w(String(N))];var L,S=[];if(void 0===N)return S;if("comma"===o&&u(N))b&&h&&(N=i.maybeMap(N,h)),L=[{value:N.length>0?N.join(",")||null:void 0}];else if(u(d))L=d;else{var j=Object.keys(N);L=y?j.sort(y):j}for(var D=a&&u(N)&&1===N.length?n+"[]":n,C=0;C0?M+b:""}},function(t,e,n){var r=n(92),i=n(147),o=n(149),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(u){if(e)return p(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),l(t,r,i)):u?(e||(e=new u),f(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},function(t,e,n){var r="undefined"!=typeof Symbol&&Symbol,i=n(143);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(t,e,n){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},function(t,e,n){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError(r+e);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=e.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(i.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],l=0;l-1?i(n):n}},function(t,e,n){var r=n(93),i=n(92),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var h=function(){return s(r,o,arguments)};c?c(t.exports,"apply",{value:h}):t.exports.apply=h},function(t,e,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,b=String.prototype.toUpperCase,M=String.prototype.toLowerCase,A=RegExp.prototype.test,I=Array.prototype.concat,N=Array.prototype.join,E=Array.prototype.slice,x=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,D=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function O(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-x(-t):x(t);if(r!==t){var i=String(r),o=v.call(e,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var z=n(150),P=z.custom,_=Y(P)?P:null;function B(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function R(t){return w.call(String(t),/"/g,""")}function U(t){return!("[object Array]"!==V(t)||j&&"object"==typeof t&&j in t)}function Q(t){return!("[object RegExp]"!==V(t)||j&&"object"==typeof t&&j in t)}function Y(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!L)return!1;try{return L.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,i){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return t(v.call(e,0,n.maxStringLength),n)+i}return B(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var b=String(e);return y?O(e,b):b}if("bigint"==typeof e){var A=String(e)+"n";return y?O(e,A):A}var x=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=x&&x>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var T=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=N.call(Array(t.indent+1)," ")}return{base:n,prev:N.call(Array(e+1),n)}}(s,r);if(void 0===i)i=[];else if(H(i,e)>=0)return"[Circular]";function P(e,n,o){if(n&&(i=E.call(i)).push(n),o){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,i)}return t(e,s,r+1,i)}if("function"==typeof e&&!Q(e)){var W=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),$=K(e,P);return"[Function"+(W?": "+W:" (anonymous)")+"]"+($.length>0?" { "+N.call($,", ")+" }":"")}if(Y(e)){var tt=S?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(e);return"object"!=typeof e||S?tt:q(tt)}if(function(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}(e)){for(var et="<"+M.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt"}if(U(e)){if(0===e.length)return"[]";var it=K(e,P);return T&&!function(t){for(var e=0;e=0)return!1;return!0}(it)?"["+X(it,T)+"]":"[ "+N.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==V(t)||j&&"object"==typeof t&&j in t)}(e)){var ot=K(e,P);return"cause"in Error.prototype||!("cause"in e)||D.call(e,"cause")?0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+N.call(ot,", ")+" }":"{ ["+String(e)+"] "+N.call(I.call("[cause]: "+P(e.cause),ot),", ")+" }"}if("object"==typeof e&&u){if(_&&"function"==typeof e[_]&&z)return z(e,{depth:x-r});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var at=[];return a&&a.call(e,(function(t,n){at.push(P(n,e,!0)+" => "+P(t,e))})),J("Map",o.call(e),at,T)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return l&&l.call(e,(function(t){st.push(P(t,e))})),J("Set",c.call(e),st,T)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Z("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Z("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Z("WeakRef");if(function(t){return!("[object Number]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(P(Number(e)));if(function(t){if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}(e))return q(P(k.call(e)));if(function(t){return!("[object Boolean]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(p.call(e));if(function(t){return!("[object String]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(P(String(e)));if(!function(t){return!("[object Date]"!==V(t)||j&&"object"==typeof t&&j in t)}(e)&&!Q(e)){var ut=K(e,P),ct=C?C(e)===Object.prototype:e instanceof Object||e.constructor===Object,lt=e instanceof Object?"":"null prototype",ht=!ct&&j&&Object(e)===e&&j in e?v.call(V(e),8,-1):lt?"Object":"",dt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||lt?"["+N.call(I.call([],ht||[],lt||[]),": ")+"] ":"");return 0===ut.length?dt+"{}":T?dt+"{"+X(ut,T)+"}":dt+"{ "+N.call(ut,", ")+" }"}return String(e)};var W=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return W.call(t,e)}function V(t){return y.call(t)}function H(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n-1?t.split(","):t},c=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var h=0;n.depth>0&&null!==(s=a.exec(o))&&h=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,c={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,y)?c[y]=r.combine(c[y],m):c[y]=m}return c}(t,n):t,h=n.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f{if(void 0!==o[n])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":r.keccak(this.encodeData(n,s,o,a))];if(void 0===s)throw new Error(`missing value for field ${t} of type ${n}`);if("bytes"===n)return["bytes32",r.keccak(s)];if("string"===n)return"string"==typeof s&&(s=e.from(s,"utf8")),["bytes32",r.keccak(s)];if(n.lastIndexOf("]")===n.length-1){const e=n.slice(0,n.lastIndexOf("[")),o=s.map((n=>c(t,e,n)));return["bytes32",r.keccak(i.rawEncode(o.map((([t])=>t)),o.map((([,t])=>t))))]}return[n,s]};for(const e of o[t]){const[t,r]=c(e.name,e.type,n[e.name]);s.push(t),u.push(r)}}else for(const i of o[t]){let t=n[i.name];if(void 0!==t)if("bytes"===i.type)s.push("bytes32"),t=r.keccak(t),u.push(t);else if("string"===i.type)s.push("bytes32"),"string"==typeof t&&(t=e.from(t,"utf8")),t=r.keccak(t),u.push(t);else if(void 0!==o[i.type])s.push("bytes32"),t=r.keccak(this.encodeData(i.type,t,o,a)),u.push(t);else{if(i.type.lastIndexOf("]")===i.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(i.type),u.push(t)}}return i.rawEncode(s,u)},encodeType(t,e){let n="",r=this.findTypeDependencies(t,e).filter((e=>e!==t));r=[t].concat(r.sort());for(const t of r){if(!e[t])throw new Error("No type definition specified: "+t);n+=t+"("+e[t].map((({name:t,type:e})=>e+" "+t)).join(",")+")"}return n},findTypeDependencies(t,e,n=[]){if(t=t.match(/^\w*/)[0],n.includes(t)||void 0===e[t])return n;n.push(t);for(const r of e[t])for(const t of this.findTypeDependencies(r.type,e,n))!n.includes(t)&&n.push(t);return n},hashStruct(t,e,n,i=!0){return r.keccak(this.encodeData(t,e,n,i))},hashType(t,e){return r.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const n in o.properties)t[n]&&(e[n]=t[n]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,n=!0){const i=this.sanitizeData(t),o=[e.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",i.domain,i.types,n)),"EIP712Domain"!==i.primaryType&&o.push(this.hashStruct(i.primaryType,i.message,i.types,n)),r.keccak(e.concat(o))}};t.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(t){return function(t){const e=new Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;const n=t.map((function(t){return"bytes"===t.type?r.toBuffer(t.value):t.value})),o=t.map((function(t){return t.type})),a=t.map((function(t){if(!t.name)throw e;return t.type+" "+t.name}));return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(new Array(t.length).fill("string"),a),i.soliditySHA3(o,n)])}(t.data)},hashForSignTypedData_v3:function(t){return a.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return a.hash(t.data)}}}).call(this,n(19).Buffer)},function(t,e,n){t.exports=n(154)(n(165))},function(t,e,n){const r=n(155),i=n(164);t.exports=function(t){const e=r(t),n=i(t);return function(t,r){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,r);case"keccak256":return new e(1088,512,null,256,r);case"keccak384":return new e(832,768,null,384,r);case"keccak512":return new e(576,1024,null,512,r);case"sha3-224":return new e(1152,448,6,224,r);case"sha3-256":return new e(1088,512,6,256,r);case"sha3-384":return new e(832,768,6,384,r);case"sha3-512":return new e(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+t)}}}},function(t,e,n){(function(e){const{Transform:r}=n(110);t.exports=t=>class n extends r{constructor(e,n,r,i,o){super(o),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(t){r=t}n(r)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n(19).Buffer)},function(t,e){},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,n,r,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,n=i,r=a,s.prototype.copy.call(e,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:c,value:function(t,e){return u(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&function(t,e){for(var n=0;n0,(function(t){r||(r=t),t&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return e.reduce(l)}},function(t,e,n){(function(e){const{Transform:r}=n(110);t.exports=t=>class n extends r{constructor(e,n,r,i){super(i),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(t){r=t}n(r)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(t);return void 0!==e&&(n=n.toString(e)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n(19).Buffer)},function(t,e,n){(function(e){const r=n(166);function i(){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}i.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,n(19).Buffer)},function(t,e){const 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];e.p1600=function(t){for(let e=0;e<24;++e){const r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(o<<1|a>>>31),p=d^(a<<1|o>>>31);const y=t[0]^f,m=t[1]^p,g=t[10]^f,v=t[11]^p,w=t[20]^f,b=t[21]^p,M=t[30]^f,A=t[31]^p,I=t[40]^f,N=t[41]^p;f=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);const E=t[2]^f,x=t[3]^p,k=t[12]^f,T=t[13]^p,L=t[22]^f,S=t[23]^p,j=t[32]^f,D=t[33]^p,C=t[42]^f,O=t[43]^p;f=o^(c<<1|l>>>31),p=a^(l<<1|c>>>31);const z=t[4]^f,P=t[5]^p,_=t[14]^f,B=t[15]^p,R=t[24]^f,U=t[25]^p,Q=t[34]^f,Y=t[35]^p,W=t[44]^f,F=t[45]^p;f=s^(h<<1|d>>>31),p=u^(d<<1|h>>>31);const V=t[6]^f,H=t[7]^p,G=t[16]^f,q=t[17]^p,Z=t[26]^f,J=t[27]^p,X=t[36]^f,K=t[37]^p,$=t[46]^f,tt=t[47]^p;f=c^(r<<1|i>>>31),p=l^(i<<1|r>>>31);const et=t[8]^f,nt=t[9]^p,rt=t[18]^f,it=t[19]^p,ot=t[28]^f,at=t[29]^p,st=t[38]^f,ut=t[39]^p,ct=t[48]^f,lt=t[49]^p,ht=y,dt=m,ft=v<<4|g>>>28,pt=g<<4|v>>>28,yt=w<<3|b>>>29,mt=b<<3|w>>>29,gt=A<<9|M>>>23,vt=M<<9|A>>>23,wt=I<<18|N>>>14,bt=N<<18|I>>>14,Mt=E<<1|x>>>31,At=x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,t[44]=ee^~gt&Lt,t[45]=ne^~vt&St,t[6]=Gt^~oe&ht,t[7]=qt^~ae&dt,t[16]=kt^~Rt&Qt,t[17]=Tt^~Ut&Yt,t[26]=re^~wt&Mt,t[27]=ie^~bt&At,t[36]=_t^~Zt&Xt,t[37]=Bt^~Jt&Kt,t[46]=gt^~Lt&jt,t[47]=vt^~St&Dt,t[8]=oe^~ht&It,t[9]=ae^~dt&Nt,t[18]=Rt^~Qt&$t,t[19]=Ut^~Yt&te,t[28]=wt^~Mt&Ct,t[29]=bt^~At&Ot,t[38]=Zt^~Xt&ft,t[39]=Jt^~Kt&pt,t[48]=Lt^~jt&Wt,t[49]=St^~Dt&Ft,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},function(t,e,n){(function(e){const r=n(109),i=n(66);function o(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function a(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function s(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function u(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function c(t){var e=typeof t;if("string"===e)return r.isHexString(t)?new i(r.stripHexPrefix(t),16):new i(t,10);if("number"===e)return new i(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function l(t,n){var o,h,d,f;if("address"===t)return l("uint160",c(n));if("bool"===t)return l("uint8",n?1:0);if("string"===t)return l("bytes",new e(n,"utf8"));if(function(t){return t.lastIndexOf("]")===t.length-1}(t)){if(void 0===n.length)throw new Error("Not an array?");if("dynamic"!==(o=u(t))&&0!==o&&n.length>o)throw new Error("Elements exceed array size: "+o);for(f in d=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)d.push(l(t,n[f]));if("dynamic"===o){var p=l("uint256",n.length);d.unshift(p)}return e.concat(d)}if("bytes"===t)return n=new e(n),d=e.concat([l("uint256",n.length),n]),n.length%32!=0&&(d=e.concat([d,r.zeros(32-n.length%32)])),d;if(t.startsWith("bytes")){if((o=a(t))<1||o>32)throw new Error("Invalid bytes width: "+o);return r.setLengthRight(n,32)}if(t.startsWith("uint")){if((o=a(t))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((h=c(n)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+h.bitLength());if(h<0)throw new Error("Supplied uint is negative");return h.toArrayLike(e,"be",32)}if(t.startsWith("int")){if((o=a(t))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((h=c(n)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+h.bitLength());return h.toTwos(256).toArrayLike(e,"be",32)}if(t.startsWith("ufixed")){if(o=s(t),(h=c(n))<0)throw new Error("Supplied ufixed is negative");return l("uint256",h.mul(new i(2).pow(new i(o[1]))))}if(t.startsWith("fixed"))return o=s(t),l("int256",c(n).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+t)}function h(t){return"string"===t||"bytes"===t||"dynamic"===u(t)}function d(t,n){if(t.length!==n.length)throw new Error("Number of types are not matching the values");for(var i,s,u=[],l=0;l32)throw new Error("Invalid bytes width: "+i);u.push(r.setLengthRight(d,i))}else if(h.startsWith("uint")){if((i=a(h))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=c(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());u.push(s.toArrayLike(e,"be",i/8))}else{if(!h.startsWith("int"))throw new Error("Unsupported or invalid type: "+h);if((i=a(h))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=c(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());u.push(s.toTwos(i).toArrayLike(e,"be",i/8))}}return e.concat(u)}t.exports={rawEncode:function(t,n){var r=[],i=[],a=32*t.length;for(var s in t){var u=o(t[s]),c=l(u,n[s]);h(u)?(r.push(l("uint256",a)),i.push(c),a+=c.length):r.push(c)}return e.concat(r.concat(i))},solidityPack:d,soliditySHA3:function(t,e){return r.keccak(d(t,e))}}}).call(this,n(19).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;const r=n(67),i=n(38),o={jsonrpc:"2.0",id:0};function a(t){return{fromBlock:u(t.fromBlock),toBlock:u(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function s(t){const e={fromBlock:c(t.fromBlock),toBlock:c(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function u(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,r.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw new Error("Invalid block option: "+String(t))}function c(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function l(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},o),{result:[]})}e.FilterPolyfill=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,r.IntNumber)(1),this.provider=t}async newFilter(t){const e=a(t),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,e.fromBlock);return console.log(`Installing new log filter(${n}):`,e,"initial cursor position:",r),this.logFilters.set(n,e),this.setFilterTimeout(n),(0,i.hexStringFromIntNumber)(n)}async newBlockFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){const e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){const e=(0,i.intNumberFromHexString)(t);return this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e)?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(l())}async getFilterLogs(t){const e=(0,i.intNumberFromHexString)(t),n=this.logFilters.get(e);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(n)]})):l()}makeFilterId(){return(0,r.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise(((e,n)=>{this.provider.sendAsync(t,((t,r)=>t?n(t):Array.isArray(r)||null==r?n(new Error("unexpected response received: "+JSON.stringify(r))):void e(r)))}))}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const e=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!e)return l();const a=await this.getCurrentBlockHeight(),u="latest"===e.toBlock?a:e.toBlock;if(n>a)return h();if(n>e.toBlock)return h();console.log(`Fetching logs from ${n} to ${u} for filter ${t}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(Object.assign(Object.assign({},e),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){const e=c.result.map((t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0"))),o=Math.max(...e);if(o&&o>n){const e=(0,r.IntNumber)(o+1);console.log(`Moving cursor position for filter (${t}) from ${n} to ${e}`),this.cursors.set(t,e)}}return c}async getBlockFilterChanges(t){const e=this.cursors.get(t);if(!e)return l();const n=await this.getCurrentBlockHeight();if(e>n)return h();console.log(`Fetching blocks from ${e} to ${n} for filter (${t})`);const a=(await Promise.all((0,i.range)(e,n+1).map((t=>this.getBlockHashByNumber((0,r.IntNumber)(t)))))).filter((t=>!!t)),s=(0,r.IntNumber)(e+a.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(t){return Promise.resolve(h())}async setInitialCursorPosition(t,e){const n=await this.getCurrentBlockHeight(),r="number"==typeof e&&e>n?e:n;return this.cursors.set(t,r),r}setFilterTimeout(t){const e=this.timeouts.get(t);e&&window.clearTimeout(e);const n=window.setTimeout((()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)}),3e5);this.timeouts.set(t,n)}async getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){const e=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}},e.filterFromParam=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,function(t){t.eth_accounts="eth_accounts",t.eth_coinbase="eth_coinbase",t.net_version="net_version",t.eth_chainId="eth_chainId",t.eth_uninstallFilter="eth_uninstallFilter",t.eth_requestAccounts="eth_requestAccounts",t.eth_sign="eth_sign",t.eth_ecRecover="eth_ecRecover",t.personal_sign="personal_sign",t.personal_ecRecover="personal_ecRecover",t.eth_signTransaction="eth_signTransaction",t.eth_sendRawTransaction="eth_sendRawTransaction",t.eth_sendTransaction="eth_sendTransaction",t.eth_signTypedData_v1="eth_signTypedData_v1",t.eth_signTypedData_v2="eth_signTypedData_v2",t.eth_signTypedData_v3="eth_signTypedData_v3",t.eth_signTypedData_v4="eth_signTypedData_v4",t.eth_signTypedData="eth_signTypedData",t.cbWallet_arbitrary="walletlink_arbitrary",t.wallet_addEthereumChain="wallet_addEthereumChain",t.wallet_switchEthereumChain="wallet_switchEthereumChain",t.wallet_watchAsset="wallet_watchAsset",t.eth_subscribe="eth_subscribe",t.eth_unsubscribe="eth_unsubscribe",t.eth_newFilter="eth_newFilter",t.eth_newBlockFilter="eth_newBlockFilter",t.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",t.eth_getFilterChanges="eth_getFilterChanges",t.eth_getFilterLogs="eth_getFilterLogs"}(e.JSONRPCMethod||(e.JSONRPCMethod={}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;const r=n(171),i=n(179),o=()=>{};e.SubscriptionManager=class{constructor(t){const e=new r({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=i({blockTracker:e,provider:t});this.events=n,this.subscriptionMiddleware=o}async handleRequest(t){const e={};return await this.subscriptionMiddleware(t,e,o,o),e}destroy(){this.subscriptionMiddleware.destroy()}}},function(t,e,n){const r=n(118),i=n(172);function o(t,e){return new Promise((n=>{const r=setTimeout(n,t);r.unref&&e&&r.unref()}))}t.exports=class extends i{constructor(t={}){if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");const e=t.pollingInterval||2e4,n=t.retryTimeout||e/10,r=void 0===t.keepEventLoopActive||t.keepEventLoopActive,i=t.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:e},t)),this._provider=t.provider,this._pollingInterval=e,this._retryTimeout=n,this._keepEventLoopActive=r,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch((t=>this.emit("error",t)))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(t){const e=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+t.stack);try{this.emit("error",e)}catch(t){console.error(e)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0);const e=await r((e=>this._provider.sendAsync(t,e)))();if(e.error)throw new Error("PollingBlockTracker - encountered error fetching block:\n"+e.error);return e.result}}},function(t,e,n){n(119),n(118);const r=n(175),i=(t,e)=>t+e,o=["sync","latest"];function a(t){return Number.parseInt(t,16)}t.exports=class extends r{constructor(t={}){super(),this._blockResetDuration=t.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((t=>this.once("latest",t)))}removeAllListeners(t){t?super.removeAllListeners(t):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(t,e){o.includes(t)&&this._maybeStart()}_onRemoveListener(t,e){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 o.map((t=>this.listenerCount(t))).reduce(i)}_newPotentialLatest(t){const e=this._currentBlock;e&&a(t)<=a(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){const e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_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(t,e){t.exports=function(){for(var t={},e=0;e{throw t}))}}function c(t,e){for(var n=new Array(e),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)u(s,this,e);else{var l=s.length,h=c(s,l);for(n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&I(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return g(i)||(i=l(t,i,r)),i}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(I(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return t.stylize(Date.prototype.toString.call(n),"date");if(A(n))return h(n)}var c,b="",N=!1,E=["{","}"];return f(n)&&(N=!0,E=["[","]"]),I(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(b=" "+RegExp.prototype.toString.call(n)),M(n)&&(b=" "+Date.prototype.toUTCString.call(n)),A(n)&&(b=" "+h(n)),0!==a.length||N&&0!=n.length?r<0?w(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=N?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,E)):E[0]+b+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function y(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return void 0===t}function w(t){return b(t)&&"[object RegExp]"===N(t)}function b(t){return"object"==typeof t&&null!==t}function M(t){return b(t)&&"[object Date]"===N(t)}function A(t){return b(t)&&("[object Error]"===N(t)||t instanceof Error)}function I(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(v(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=p,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=w,e.isObject=b,e.isDate=M,e.isError=A,e.isFunction=I,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(177);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),x[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(178),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o{t.removeListener("sync",r.update)},update:async({oldBlock:t,newBlock:r})=>{const i=r,o=u(t);(await c({provider:e,fromBlock:o,toBlock:i})).map(l).filter((t=>null!==t)).forEach((t=>{y(n,t)}))}};return t.on("sync",r.update),r}({subId:a});break;case"logs":const n=r.params[1];f=function({subId:t,filter:e}){return e.on("update",(e=>y(t,e))),{type:o,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:a,filter:await h.newLogFilter(n)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${o}"`)}return n[a]=f,void(i.result=a)})),eth_unsubscribe:i((async function(t,e){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const r=t.params[0],i=n[r];i?(delete n[r],await i.destroy(),e.result=!0):e.result=!1}))});return p.destroy=function(){f.removeAllListeners();for(const t in n)n[t].destroy(),delete n[t];d=!0},{events:f,middleware:p};function y(t,e){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;const r=n(121);e.createIdRemapMiddleware=function(){return(t,e,n,i)=>{const o=t.id,a=r.getUniqueId();t.id=a,e.id=a,n((n=>{t.id=o,e.id=o,n()}))}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return async(e,n,r,i)=>{let o;const a=new Promise((t=>{o=t}));let s=null,u=!1;const c=async()=>{u=!0,r((t=>{s=t,o()})),await a};try{await t(e,n,c),u?(await a,s(null)):i(null)}catch(t){s?s(t):i(t)}}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return(e,n,r,i)=>{const o=t[e.method];return void 0===o?r():"function"==typeof o?o(e,n,r,i):(n.result=o,i())}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=n(96);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(123);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(184);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(97);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const r=n(96),i=n(123),o=n(97);function a(t,e){const[n,o]=u(e);return new r.EthereumRpcError(t,n||i.getMessageFromCode(t),o)}function s(t,e){const[n,o]=u(e);return new r.EthereumProviderError(t,n||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:t=>a(o.errorCodes.rpc.parse,t),invalidRequest:t=>a(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>a(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>a(o.errorCodes.rpc.methodNotFound,t),internal:t=>a(o.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(e,t)},invalidInput:t=>a(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>a(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>a(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>a(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>a(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>a(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>s(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>s(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>s(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>s(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>s(o.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:i}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(e,n,i)}}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;const r=n(122);e.mergeMiddleware=function(t){const e=new r.JsonRpcEngine;return t.forEach((t=>e.push(t))),e.asMiddleware()}},function(t,e,n){const r=n(233).Mutex,{createAsyncMiddleware:i,createScaffoldMiddleware:o}=n(120),a=n(187),s=n(190),u=n(191),{intToHex:c,hexToInt:l}=n(59);function h(t){return d((async(...e)=>{const n=await t(...e);return c(n.id)}))}function d(t){return i((async(e,n)=>{const r=await t.apply(null,e.params);n.result=r}))}function f(t,e){const n=[];for(let e in t)n.push(t[e]);return n}t.exports=function({blockTracker:t,provider:e}){let n=0,i={};const p=new r,y=function({mutex:t}){return e=>async(n,r,i,o)=>{(await t.acquire())(),e(n,r,i,o)}}({mutex:p}),m=o({eth_newFilter:y(h(v)),eth_newBlockFilter:y(h(w)),eth_newPendingTransactionFilter:y(h(b)),eth_uninstallFilter:y(d(I)),eth_getFilterChanges:y(d(M)),eth_getFilterLogs:y(d(A))}),g=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;const n=await p.acquire();try{await Promise.all(f(i).map((async n=>{try{await n.update({oldBlock:t,newBlock:e})}catch(t){console.error(t)}})))}catch(t){console.error(t)}n()};return m.newLogFilter=v,m.newBlockFilter=w,m.newPendingTransactionFilter=b,m.uninstallFilter=I,m.getFilterChanges=M,m.getFilterLogs=A,m.destroy=()=>{!async function(){const t=f(i).length;i={},E({prevFilterCount:t,newFilterCount:0})}()},m;async function v(t){const n=new a({provider:e,params:t});return await N(n),n}async function w(){const t=new s({provider:e});return await N(t),t}async function b(){const t=new u({provider:e});return await N(t),t}async function M(t){const e=l(t),n=i[e];if(!n)throw new Error(`No filter for index "${e}"`);return n.getChangesAndClear()}async function A(t){const e=l(t),n=i[e];if(!n)throw new Error(`No filter for index "${e}"`);let r=[];return"log"===n.type&&(r=n.getAllResults()),r}async function I(t){const e=l(t),n=i[e],r=Boolean(n);return r&&await async function(t){const e=f(i).length;delete i[t];E({prevFilterCount:e,newFilterCount:f(i).length})}(e),r}async function N(e){const r=f(i).length,o=await t.getLatestBlock();return await e.initialize({currentBlock:o}),n++,i[n]=e,e.id=n,e.idHex=c(n),E({prevFilterCount:r,newFilterCount:f(i).length}),n}function E({prevFilterCount:e,newFilterCount:n}){0===e&&n>0?t.on("sync",g):e>0&&0===n&&t.removeListener("sync",g)}}},function(t,e,n){const r=n(119),i=n(188),o=n(189),{bnToHex:a,hexToInt:s,incrementHexInt:u,minBlockRef:c,blockRefIsNumber:l}=n(59);t.exports=class extends o{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new r(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((t=>t.toLowerCase())))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;const n=c(this.params.toBlock,t),r=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(r);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){const n=e;let r;r=t?u(t):e;const i=Object.assign({},this.params,{fromBlock:r,toBlock:n}),o=(await this._fetchLogs(i)).filter((t=>this.matchLog(t)));this.addResults(o)}async _fetchLogs(t){return await i((e=>this.ethQuery.getLogs(t,e)))()}matchLog(t){if(s(this.params.fromBlock)>=s(t.blockNumber))return!1;if(l(this.params.toBlock)&&s(this.params.toBlock)<=s(t.blockNumber))return!1;const e=t.address&&t.address.toLowerCase();return!(this.params.address&&e&&!this.params.address.includes(e))&&this.params.topics.every(((e,n)=>{let r=t.topics[n];if(!r)return!1;r=r.toLowerCase();let i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map((t=>t.toLowerCase())),i.includes(r))}))}}},function(t,e,n){const r=(t,e,n,r)=>function(...i){return new e.promiseModule(((o,a)=>{e.multiArgs?i.push(((...t)=>{e.errorFirst?t[0]?a(t):(t.shift(),o(t)):o(t)})):e.errorFirst?i.push(((t,e)=>{t?a(t):o(e)})):i.push(o);const s=this===n?r:this;Reflect.apply(t,s,i)}))},i=new WeakMap;t.exports=(t,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};const n=typeof t;if(null===t||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":n}\``);const o=new WeakMap,a=new Proxy(t,{apply(t,n,i){const s=o.get(t);if(s)return Reflect.apply(s,n,i);const u=e.excludeMain?t:r(t,e,a,t);return o.set(t,u),Reflect.apply(u,n,i)},get(t,n){const s=t[n];if(!((t,n)=>{let r=i.get(t);if(r||(r={},i.set(t,r)),n in r)return r[n];const o=t=>"string"==typeof t||"symbol"==typeof n?n===t:t.test(n),a=Reflect.getOwnPropertyDescriptor(t,n),s=void 0===a||a.writable||a.configurable,u=(e.include?e.include.some(o):!e.exclude.some(o))&&s;return r[n]=u,u})(t,n)||s===Function.prototype[n])return s;const u=o.get(s);if(u)return u;if("function"==typeof s){const n=r(s,e,a,t);return o.set(s,n),n}return s}});return a}},function(t,e,n){const r=n(98);t.exports=class extends r{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}},function(t,e,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);t.exports=class extends r{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){const n=e,r=o(t),a=(await i({provider:this.provider,fromBlock:r,toBlock:n})).map((t=>t.hash));this.addResults(a)}}},function(t,e,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);t.exports=class extends r{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const e=t,n=o(t),r=await i({provider:this.provider,fromBlock:n,toBlock:e}),a=[];for(const t of r)a.push(...t.transactions);this.addResults(a)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;const r=n(193),i=n(215),o=n(217);e.WalletSDKUI=class{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.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:t.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:t.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:t.onResetConnection}]},this.snackbar.presentItem(e)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;const r=n(5),i=n(70),o=n(194);e.LinkFlow=class{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((t=>{this.isConnected!==t&&(this.isConnected=t,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((t=>{this.chainId!==t&&(this.chainId=t,this.render())})))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,r.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const t=this.extensionUI$.subscribe((()=>{this.root&&(0,r.render)((0,r.h)(o.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(t)}}},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(195),u=n(209),c=r(n(214));e.ConnectDialog=t=>{const{isOpen:e,darkMode:n}=t,[r,l]=(0,a.useState)(!e),[h,d]=(0,a.useState)(!e);(0,a.useEffect)((()=>{const t=[window.setTimeout((()=>{d(!e)}),10)];return e?l(!1):t.push(window.setTimeout((()=>{l(!0)}),360)),()=>{t.forEach(window.clearTimeout)}}),[t.isOpen]);const f=n?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",r&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,o.h)(s.ConnectContent,{theme:f,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,o.h)(u.TryExtensionContent,{theme:f}))))}},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(38),u=n(196),c=n(197),l=r(n(198)),h=r(n(199)),d=n(200),f=r(n(201)),p=r(n(202)),y=n(203),m=n(204),g=n(206),v=r(n(208)),w={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:I},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:N}},b=t=>{switch(t){case"coinbase-app":return f.default;case"coinbase-wallet-app":default:return p.default}},M=t=>"light"===t?"#FFFFFF":"#0A0B0D";function A({title:t,description:e,icon:n,selected:r,theme:a,onClick:s}){return(0,o.h)("div",{onClick:s,class:(0,i.default)("-cbwsdk-connect-item",a,{selected:r})},(0,o.h)("div",null,(0,o.h)("img",{src:n,alt:t})),(0,o.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,o.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function I({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(d.QRCodeIcon,{fill:M(t)})))))}function N({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"More")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(y.StatusDotIcon,{fill:M(t)})),(0,o.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,o.h)("strong",null,"Scan")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(d.QRCodeIcon,{fill:M(t)})))))}e.ConnectContent=function(t){const{theme:e}=t,[n,r]=(0,a.useState)("coinbase-wallet-app"),l=(0,a.useCallback)((t=>{r(t)}),[]),h=(0,s.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId);if(!n)return null;const d=w[n].steps,f="coinbase-app"===n;return(0,o.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,o.h)("style",null,v.default),(0,o.h)("div",{class:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,o.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,o.h)("div",null,Object.entries(w).map((([t,r])=>(0,o.h)(A,{key:t,title:r.title,description:r.description,icon:r.icon,selected:n===t,onClick:()=>l(t),theme:e})))),f&&(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Don’t see a ",(0,o.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,o.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(m.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:b(n),width:25,height:25}}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:h})),(0,o.h)(d,{theme:e}),!t.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,o.h)(g.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))},e.ConnectItem=A,e.CoinbaseWalletSteps=I,e.CoinbaseAppSteps=N},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.6.4"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;const r=n(5);e.CloseIcon=function(t){return(0,r.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIG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E5Ni0uMTAyLjM5Mi0uMTAyLjg4MS0uMTAyaDIuOTg2Yy40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;const r=n(5);e.QRCodeIcon=function(t){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,r.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,r.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,r.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,r.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,r.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,r.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,r.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,r.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n \n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;const r=n(5);e.StatusDotIcon=function(t){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},function(t,e,n){(function(t){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;const i=n(5),o=n(60),a=r(n(205));e.QRCode=e=>{const[n,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var n,i;const o=new a.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(n=e.width)&&void 0!==n?n:256,height:null!==(i=e.height)&&void 0!==i?i:256,padding:0,image:e.image}),s=t.from(o.svg(),"utf8").toString("base64");r("data:image/svg+xml;base64,"+s)})),n?(0,i.h)("img",{src:n,alt:"QR Code"}):null}}).call(this,n(19).Buffer)},function(t,e){function n(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}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 r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e},createMovieClip:function(t,e,n){var r=t.createEmptyMovieClip(e,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!t&&1==(e>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!t&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!t&&1==(r>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var c=!1;a>>i&1)),o.getMask(e,r,s-u)&&(c=!c),this.modules[r][s-u]=c,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=c.getRSBlocks(t,e),a=new l,s=0;s8*h)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*h+")");for(a.getLengthInBits()+4<=8*h&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*h||(a.put(r.PAD0,8),a.getLengthInBits()>=8*h));)a.put(r.PAD1,8);return r.createBytes(a,i)},r.createBytes=function(t,e){for(var n=0,r=0,i=0,a=new Array(e.length),s=new Array(e.length),c=0;c=0?p.get(y):0}}var m=0;for(d=0;d=0;)e^=o.G15<=0;)e^=o.G18<>>=1;return e},getPatternPosition:function(t){return o.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case 0:return(e+n)%2==0;case 1:return e%2==0;case 2:return n%3==0;case 3:return(e+n)%3==0;case 4:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case 5:return e*n%2+e*n%3==0;case 6:return(e*n%2+e*n%3)%2==0;case 7:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new u([1],0),n=0;n5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return a.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)a.EXP_TABLE[s]=1<>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var h=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,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 d(t){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 t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(t,e){for(var n=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),r=1,i=0,o=0,a=h.length;o<=a;o++){var s=h[o];if(!s)throw new Error("Content too long: expected "+i+" but got "+n);switch(e){case"L":i=s[0];break;case"M":i=s[1];break;case"Q":i=s[2];break;case"H":i=s[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(n<=i)break;r++}if(r>h.length)throw new Error("Content too long");return r}(n,this.options.ecl),o=function(t){switch(t){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(i,o),this.qrcode.addData(n),this.qrcode.make()}d.prototype.svg=function(t){var e=this.options||{},n=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var r=void 0===e.pretty||!!e.pretty,i=r?" ":"",o=r?"\r\n":"",a=e.width,s=e.height,u=n.length,c=a/(u+2*e.padding),l=s/(u+2*e.padding),h=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,p=void 0!==e.predefined&&!!e.predefined,y=p?i+''+o:"",m=i+''+o,g="",v="",w=0;w'+o:i+''+o}h&&(g=i+'');let x="";if(void 0!==this.options.image&&this.options.image.svg){const t=a*this.options.image.width/100,e=s*this.options.image.height/100;x+=``,x+=this.options.image.svg+o,x+=""}var k="";switch(t.container){case"svg":f&&(k+=''+o),k+=''+o,k+=y+m+g,k+=x,k+="";break;case"svg-viewbox":f&&(k+=''+o),k+=''+o,k+=y+m+g,k+=x,k+="";break;case"g":k+=''+o,k+=y+m+g,k+=x,k+="";break;default:k+=(y+m+g+x).replace(/^\s+/,"")}return k},t.exports=d},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;const i=n(5),o=r(n(207));e.Spinner=t=>{var e;const n=null!==(e=t.size)&&void 0!==e?e:64,r=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(210),u=n(211),c=n(212),l=r(n(213));e.TryExtensionContent=function({theme:t}){const[e,n]=(0,a.useState)(!1),r=(0,a.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),h=(0,a.useCallback)((()=>{e?window.location.reload():(r(),n(!0))}),[r,e]);return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,o.h)("div",null,!e&&(0,o.h)(s.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(u.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(c.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;const r=n(5);e.ArrowLeftIcon=function(t){return(0,r.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;const r=n(5);e.LaptopIcon=function(t){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,r.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;const r=n(5);e.SafeIcon=function(t){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const i=r(n(69)),o=n(5),a=n(60),s=r(n(216));function u(t){switch(t){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDV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jbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xNS45OTggMjYuMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}e.Snackbar=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([t,n])=>(0,o.h)(e.SnackbarInstance,Object.assign({},n,{key:t})))))),this.root)}},e.SnackbarContainer=t=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,s.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},t.children)),e.SnackbarInstance=({autoExpand:t,message:e,menuItems:n,appSrc:r})=>{const[s,c]=(0,a.useState)(!0),[l,h]=(0,a.useState)(null!=t&&t);return(0,a.useEffect)((()=>{const t=[window.setTimeout((()=>{c(!1)}),1),window.setTimeout((()=>{h(!0)}),1e4)];return()=>{t.forEach(window.clearTimeout)}})),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",s&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!l)}},(0,o.h)("img",{src:u(r),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,o.h)("div",{class:"-gear-container"},!l&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map(((t,e)=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,o.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info))))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;const i=r(n(218));e.injectCssReset=function(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;const u=s(n(220)),c=n(87),l=n(70),h=n(101),d=n(90),f=n(221),p=n(225),y=n(67),m=n(38),g=a(n(226)),v=n(91),w=n(108),b=n(124),M=n(227),A=n(228),I=n(229),N=n(230);class E extends w.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:n,ui:r,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=r}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)})));const t=v.Session.load(this.storage)||new v.Session(this.storage).save(),e=new f.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,h.filter)((t=>"Web3Response"===t.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,h.skip)(1),(0,h.tap)((t=>{var e;this.isLinked=t;const n=this.storage.getItem(w.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,n){const r=n.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==r[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const t=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:t})}}}))).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>!!t.metadata&&"1"===t.metadata.__destroyed))).subscribe((()=>{var t;const n=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.WalletUsername))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.WalletUsername,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.AppVersion))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.AppVersion,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl))).pipe((0,h.mergeMap)((e=>(0,l.zip)(g.decrypt(e.metadata.ChainId,t.secret),g.decrypt(e.metadata.JsonRpcUrl,t.secret))))).pipe((0,h.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.EthereumAddress))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.EthereumAddress,t.secret)))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),E.accountRequestCallbackIds.size>0&&(Array.from(E.accountRequestCallbackIds.values()).forEach((e=>{const n=(0,N.Web3ResponseMessage)({id:e,response:(0,I.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},n),{id:e}))})),E.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.AppSrc))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.AppSrc,t.secret)))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:n,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,h.timeout)(1e3),(0,h.catchError)((t=>(0,l.of)(null)))).subscribe((t=>{var e,n,r;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(t){null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(d.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const o=v.Session.load(this.storage);if((null==o?void 0:o.id)===this._session.id?this.storage.clear():o&&(null===(r=this.diagnostic)||void 0===r||r.log(d.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:v.Session.hash(o.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0);const{session:a,ui:s,connection:u}=this.subscribe();this._session=a,this.connection=u,this.ui=s,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with "+t,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,n,r){return this.sendRequest({method:b.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),address:e,addPrefix:n,typedDataJson:r||null}})}ethereumAddressFromSignedMessage(t,e,n){return this.sendRequest({method:b.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),signature:(0,m.hexStringFromBuffer)(e,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,m.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:b.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:b.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:b.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null;const n=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,r),null==e||e()};return{promise:new Promise(((i,o)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,(t=>{if(null==e||e(),t.errorMessage)return o(new Error(t.errorMessage));i(t)})),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)})),cancel:r}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var n;const r=(0,A.Web3RequestMessage)({id:t,request:e}),i=v.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(d.EVENTS.WEB3_REQUEST,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",r,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r.id,response:{method:r.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){const e=(0,M.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,n){const r=this.session.secret;return new l.Observable((t=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),r).then((e=>{t.next(e),t.complete()}))})).pipe((0,h.mergeMap)((e=>this.connection.publishEvent(t,e,n))))}handleIncomingEvent(t){try{this.subscriptions.add((0,l.from)(g.decrypt(t.data,this.session.secret)).pipe((0,h.map)((t=>JSON.parse(t)))).subscribe({next:t=>{const e=(0,N.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(t){var e;const{response:n}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:"relay::"+n.method,sessionIdHash:this.getSessionIdHash()}),(0,I.isRequestEthereumAccountsResponse)(n))return E.accountRequestCallbackIds.forEach((e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e})))),void E.accountRequestCallbackIds.clear();this.invokeCallback(t)}handleErrorResponse(t,e,n,r){this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:t,response:(0,I.ErrorResponse)(e,(null!=n?n:p.WalletUIError.UserRejectedRequest).message,r)}))}invokeCallback(t){const e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:b.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,n)};return{promise:new Promise(((r,i)=>{var o;this.relayEventManager.callbacks.set(e,(t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(new Error(t.errorMessage));r(t)}));const a=(null===(o=null===window||void 0===window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){let t;try{t=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(e){t=window.location}t.href="https://www.coinbase.com/connect-dapp?uri="+encodeURIComponent(t.href)}else{if(this.ui.inlineAccountsResponse()){const t=t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:e,response:(0,I.RequestEthereumAccountsResponse)(t)}))};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:t})}else{const t=c.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(t)})}E.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)}})),cancel:n}}selectProvider(t){const e={method:b.Web3Method.selectProvider,params:{providerOptions:t}},n=(0,m.randomBytesHex)(8);return{cancel:t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,t)},promise:new Promise(((e,r)=>{this.relayEventManager.callbacks.set(n,(t=>{if(t.errorMessage)return r(new Error(t.errorMessage));e(t)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,I.SelectProviderResponse)(t)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,I.SelectProviderResponse)(y.ProviderType.Unselected)}))},providerOptions:t})}))}}watchAsset(t,e,n,r,i,o){const a={method:b.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:n,decimals:r,image:i},chainId:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,t),null==s||s()};return this.ui.inlineWatchAsset()||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{cancel:c,promise:new Promise(((c,l)=>{this.relayEventManager.callbacks.set(u,(t=>{if(null==s||s(),t.errorMessage)return l(new Error(t.errorMessage));c(t)}));this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.WatchAssetReponse)(!0)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.WatchAssetReponse)(!1)}))},type:t,address:e,symbol:n,decimals:r,image:i,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)}))}}addEthereumChain(t,e,n,r,i,o){const a={method:b.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,t),null==s||s()};return this.ui.inlineAddEthereumChain(t)||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{promise:new Promise(((e,n)=>{this.relayEventManager.callbacks.set(u,(t=>{if(null==s||s(),t.errorMessage)return n(new Error(t.errorMessage));e(t)}));this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},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(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)})),cancel:c}}switchEthereumChain(t,e){const n={method:b.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},r=(0,m.randomBytesHex)(8);return{promise:new Promise(((t,e)=>{this.relayEventManager.callbacks.set(r,(n=>n.errorMessage&&n.errorCode?e(c.ethErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):n.errorMessage?e(new Error(n.errorMessage)):void t(n))),this.ui.switchEthereumChain({onCancel:t=>{if("number"==typeof t){const e=t;this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.ErrorResponse)(b.Web3Method.switchEthereumChain,p.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,e)}))}else t instanceof p.WalletUIError?this.handleErrorResponse(r,b.Web3Method.switchEthereumChain,t,t.errorCode):this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,n)})),cancel:t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,t)}}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return v.Session.hash(this._session.id)}sendRequestStandalone(t,e){const n=n=>{this.handleErrorResponse(t,e.method,n)},r=e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case b.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:r});break;default:n()}}onSessionConfigChanged(t){}}E.accountRequestCallbackIds=new Set,o([u.default],E.prototype,"resetAndReload",null),o([u.default],E.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=E},function(t,e,n){var r;function i(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(r||(r={})),e.bind=i,e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;const r=n(70),i=n(101),o=n(91),a=n(67),s=n(222),u=n(90),c=n(223),l=n(224);e.WalletSDKConnection=class{constructor(t,e,n,s,l=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=s,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=new r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);const h=new c.RxWebSocket(n+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)((e=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:o.Session.hash(t)})})),(0,i.skip)(1),(0,i.filter)((t=>t===c.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((t=>!this.destroyed)),(0,i.flatMap)((t=>h.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((t=>(0,r.iif)((()=>t===c.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((t=>this.sendIsLinked())),(0,i.tap)((t=>this.sendGetSessionConfig())),(0,i.map)((t=>!0))),(0,r.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((t=>(0,r.of)(!1)))).subscribe((t=>this.connectedSubject.next(t)))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((t=>(0,r.iif)((()=>t===c.ConnectionState.CONNECTED),(0,r.timer)(0,1e4))))).subscribe((t=>0===t?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)((t=>"h"===t))).subscribe((t=>this.updateLastHeartbeat()))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["IsLinkedOK","Linked"].includes(t.type)))).subscribe((e=>{var n;const r=e;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.LINKED,{sessionIdHash:o.Session.hash(t),linked:r.linked,type:e.type,onlineGuests:r.onlineGuests}),this.linkedSubject.next(r.linked||r.onlineGuests>0)}))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type)))).subscribe((e=>{var n;const r=e;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(t),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 t;if(this.destroyed)throw new Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.DISCONNECTED,{sessionIdHash:o.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((t=>{if("Event"!==t.type)return!1;const e=t;return"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data})),(0,i.map)((t=>t)))}setSessionMetadata(t,e){const n=(0,s.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)((t=>this.makeRequest(n))),(0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to set session metadata")})))}publishEvent(t,e,n=!1){const r=(0,s.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:n});return this.onceLinked$.pipe((0,i.flatMap)((t=>this.makeRequest(r))),(0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to publish event");return t.eventId})))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){const n=t.id;try{this.sendData(t)}catch(t){return(0,r.throwError)(t)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,r.throwError)(new Error(`request ${n} timed out`))),(0,i.filter)((t=>t.id===n)),(0,i.take)(1))}authenticate(){const t=(0,s.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(t).pipe((0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")})))}sendIsLinked(){const t=(0,s.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){const t=(0,s.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;const r=n(70),i=n(101);var o;!function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"}(o=e.ConnectionState||(e.ConnectionState={})),e.RxWebSocket=class{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new r.BehaviorSubject(o.DISCONNECTED),this.incomingDataSubject=new r.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,r.throwError)(new Error("webSocket object is not null")):new r.Observable((t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(e){return void t.error(e)}this.connectionStateSubject.next(o.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(new Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(o.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(o.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(o.DISCONNECTED);try{t.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((t=>{let e;try{e=JSON.parse(t)}catch(t){return(0,r.empty)()}return(0,r.of)(e)})))}sendData(t){const{webSocket:e}=this;if(!e)throw new Error("websocket is not connected");e.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"==typeof t.id&&"string"==typeof t.sessionId&&"string"==typeof t.error}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletUIError=void 0;class r extends Error{constructor(t,e){super(t),this.message=t,this.errorCode=e}}e.WalletUIError=r,r.UserRejectedRequest=new r("User rejected request"),r.SwitchEthereumChainUnsupportedChainId=new r("Unsupported chainId",4902)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;const r=n(38);e.encrypt=async function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,o.encode(t)),s=a.slice(a.byteLength-16),u=a.slice(0,a.byteLength-16),c=new Uint8Array(s),l=new Uint8Array(u),h=new Uint8Array([...n,...c,...l]);return(0,r.uint8ArrayToHex)(h)},e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new Promise(((n,i)=>{!async function(){const o=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,r.hexStringToUint8Array)(t),s=a.slice(0,12),u=a.slice(12,28),c=a.slice(28),l=new Uint8Array([...c,...u]),h={name:"AES-GCM",iv:new Uint8Array(s)};try{const t=await window.crypto.subtle.decrypt(h,o,l),e=new TextDecoder;n(e.decode(t))}catch(t){i(t)}}()}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;const r=n(100);e.Web3RequestCanceledMessage=function(t){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;const r=n(100);e.Web3RequestMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.ErrorResponse=void 0;const r=n(124);e.ErrorResponse=function(t,e,n){return{method:t,errorMessage:e,errorCode:n}},e.AddEthereumChainResponse=function(t){return{method:r.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:r.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:r.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:r.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:r.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===r.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:r.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:r.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:r.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;const r=n(100);e.Web3ResponseMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===r.RelayMessageType.WEB3_RESPONSE}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;const r=n(38);e.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,e=(0,r.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}},function(t){t.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(t,e,n){function r(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}(),a=function(){function t(){this._semaphore=new o(1)}return t.prototype.acquire=function(){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();function s(t,e,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(a,s){return r(o,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return r=!1,setTimeout((function(){r=!0,s(n)}),e),[4,t.acquire()];case 1:return o=i.sent(),r?(Array.isArray(o)?o[1]:o)():a(o),[2]}}))}))}))},runExclusive:function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:e=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=r.sent(),Array.isArray(n)?(e=n[1],[4,t(n[0])]):[3,4];case 3:return[2,r.sent()];case 4:return e=n,[4,t()];case 5:return[2,r.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}}]);void 0===RI&&console.error("esm-webpack-plugin: nothing exported!"),RI.CoinbaseWalletProvider;const UI=RI.CoinbaseWalletSDK;function QI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class YI{constructor({blockchain:t,from:e,to:n,value:r,api:i,method:o,params:a,instructions:s,signers:u,alts:c,sent:l,succeeded:h,failed:d}){this.blockchain=t,this.from=e&&e.match("0x")?am(e):e,this.to=n&&n.match("0x")?am(n):n,this.value=QI([YI,"access",t=>t.bigNumberify,"call",e=>e(r,t),"optionalAccess",t=>t.toString,"call",t=>t()]),this.api=i,this.method=o,this.params=a,this.sent=l,this.succeeded=h,this.failed=d,this.instructions=s,this.signers=u,this.alts=c,this._succeeded=!1,this._failed=!1}async prepare({wallet:t}){this.from=await t.account(this.blockchain)}static bigNumberify(t,e){return"number"==typeof t?cI(t.toString(),Hf[e].currency.decimals):t&&t.toString?Fp.from(t.toString()):t}findFragment(){return this.getContract().interface.fragments.find((t=>!(t.name!=this.method||t.inputs&&this.params&&"object"==typeof this.params&&t.inputs.length!=Object.keys(this.params).length)))}getParamType(t){return QI([t,"optionalAccess",t=>t.components,"optionalAccess",t=>t.length])?`(${t.components.map((t=>this.getParamType(t))).join(",")})`:t.type}getMethodNameWithSignature(){let t=this.findFragment();return t.inputs?`${this.method}(${t.inputs.map((t=>this.getParamType(t))).join(",")})`:this.method}getContractArguments(){if(this.params instanceof Array)return this.params;if(this.params instanceof Object){return this.findFragment().inputs.map((t=>this.params[t.name]))}}getContract(){return new PM(this.to,this.api)}async getData(){let t,e=this.getContractArguments();return t=e?await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null,e):await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null),t.data}success(){return this._succeeded?Promise.resolve(this):new Promise(((t,e)=>{let n=this.succeeded;this.succeeded=e=>{n&&n(e),t(e)}}))}failure(){return this._failed?Promise.resolve(this):new Promise(((t,e)=>{let n=this.failed;this.failed=(e,r)=>{n&&n(e,r),t(e,r)}}))}}function WI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const FI=async({transaction:t,wallet:e})=>(t=new YI(t),await t.prepare({wallet:e}),await VI({transaction:t,wallet:e}).then((e=>{if(!e)throw"Submitting transaction failed!";{t.id=e,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t);let n=0;const r=setInterval((async()=>{if(n++,n>=240)return clearInterval(r);const i=await LI(t.blockchain),{value:o}=await i.getSignatureStatus(e),a=WI([o,"optionalAccess",t=>t.confirmationStatus]);if(a){if("confirmed"===a||"finalized"===a){if(o.err){t._failed=!0;const n=await i.getConfirmedTransaction(e),r=WI([n,"optionalAccess",t=>t.meta,"optionalAccess",t=>t.logMessages])?n.meta.logMessages[n.meta.logMessages.length-1]:null;t.failed&&t.failed(t,r)}else t._succeeded=!0,t.succeeded&&t.succeeded(t);return clearInterval(r)}}}),500)}})),t),VI=async({transaction:t,wallet:e})=>{let n,r=await GI({transaction:t,wallet:e});return"object"==typeof r&&r.signatures&&r.message?n=await HI(r,await e.account()):"object"==typeof r&&r.signature&&r.signature.length?n=r.signature:"string"==typeof r&&r.length&&(n=r),n},HI=async(t,e)=>{let n=await LI("solana");return await n.sendRawTransaction(t.serialize())},GI=async({transaction:t,wallet:e})=>t.instructions?ZI({transaction:t,wallet:e}):qI({transaction:t,wallet:e}),qI=async({transaction:t,wallet:e})=>{let n=new Xs(await e.account()),r=new Xs(t.to);const i=await LI(t.blockchain);let o=(await i.getLatestBlockhash()).blockhash;const a=[Wu.transfer({fromPubkey:n,toPubkey:r,lamports:parseInt(YI.bigNumberify(t.value,t.blockchain),10)})],s=new wu({payerKey:n,recentBlockhash:o,instructions:a}).compileToV0Message(),u=new bu(s);return e._sendTransaction(u)},ZI=async({transaction:t,wallet:e})=>{let n=new Xs(await e.account());const r=await LI(t.blockchain);let i=(await r.getLatestBlockhash()).blockhash;const o=new wu({payerKey:n,recentBlockhash:i,instructions:t.instructions}).compileToV0Message(t.alts?await Promise.all(t.alts.map((async t=>(await LI("solana")).getAddressLookupTable(new Xs(t)).then((t=>t.value))))):void 0),a=new bu(o);return t.signers&&t.signers.length&&a.sign(Array.from(new Set(t.signers))),e._sendTransaction(a)};let JI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function XI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}JI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],JI.solana=["solana"];class KI{static __initStatic(){this.info={name:"Solana Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9Ik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zMjYxXyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIxNDMuMDkyOSIgeTE9IjEzNi4yMjEyIiB4Mj0iMTE2LjIwODIiIHkyPSIxODcuNzE2MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgMzAuNTM1NCkiPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6IzAwRkZBMyIvPgoJPHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6I0RDMUZGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8cGF0aCBzdHlsZT0iZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDIyNTU3MTYwNTg5MTY1MTU3NTIwMDAwMDE1NDYyNjI0Mjk4Nzk4NTYzMjYxXyk7IiBkPSJNMTQ1LjYsMTg5LjFjLTAuMy0wLjMtMC43LTAuNS0xLjEtMC41CgloLTM4LjhjLTAuNywwLTEuMSwwLjktMC42LDEuNGw3LjcsNy43YzAuMywwLjMsMC43LDAuNSwxLjEsMC41aDM4LjhjMC43LDAsMS4xLTAuOSwwLjYtMS40TDE0NS42LDE4OS4xeiIvPgo8L3N2Zz4K",blockchains:JI.solana}}static __initStatic2(){this.isAvailable=async()=>XI([window,"optionalAccess",t=>t.solana])&&!(window.phantom&&!window.glow&&!window.solana.isGlow&&!["isBitKeep"].some((t=>window.solana&&window.solana[t])))&&!window.coin98&&!(XI([window,"optionalAccess",t=>t.solana])&&XI([window,"optionalAccess",t=>t.solana,"access",t=>t.isBitKeep]))&&!window.solana.isGlow&&!window.trustwallet&&!window.solana.isBraveWallet&&!XI([window,"optionalAccess",t=>t.okxwallet])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=t=>FI({wallet:this,transaction:t})}getProvider(){return window.solana}async account(){const t=this.getProvider();if(null!=t){if(t.publicKey)return t.publicKey.toString();if(1!=t.isBraveWallet){let t;try{({publicKey:t}=await window.solana.connect({onlyIfTrusted:!0}))}catch(t){}if(t)return t.toString()}}}async connect(){const t=this.getProvider();if(!t)return;let e;try{e=await t.connect()}catch(t){}return e&&e.publicKey?e.publicKey.toString():t.publicKey.toString()}on(t,e){let n;switch(t){case"account":n=t=>e(XI([t,"optionalAccess",t=>t.toString,"call",t=>t()])),this.getProvider().on("accountChanged",n)}return n}off(t,e){switch(t){case"account":this.getProvider().removeListener("accountChanged",e)}return e}async connectedTo(t){return t?"solana"==t:"solana"}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}async sign(t){const e=(new TextEncoder).encode(t),n=await this.getProvider().signMessage(e);if(n&&n.signature)return Array.from(n.signature)}_sendTransaction(t){return this.getProvider().signAndSendTransaction(t,{skipPreflight:!1})}}KI.__initStatic(),KI.__initStatic2();class $I extends KI{static __initStatic(){this.info={name:"Backpack",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2Nz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tMy43LTguMy04LjMtOC4zcy04LjMsMy43LTguMyw4LjNTNDUuNCw0NS4xLDUwLDQ1LjF6IE0yMy44LDY4LjFjMC0xLjMsMS4xLTIuMywyLjQtMi4zCgkJCWg0Ny42YzEuMywwLDIuNCwxLDIuNCwyLjNWODJjMCwyLjYtMi4xLDQuNi00LjgsNC42SDI4LjZjLTIuNiwwLTQuOC0yLjEtNC44LTQuNlY2OC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.backpack])&&window.backpack.isBackpack}getProvider(){return window.backpack}async sign(t){const e=(new TextEncoder).encode(t),n=await this.getProvider().signMessage(e);return Object.values(n)}_sendTransaction(t){return this.getProvider().sendAndConfirm(t)}}function tN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}$I.__initStatic(),$I.__initStatic2();const eN=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&tN([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{eN(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&tN([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{eN(t).then(e).catch(n)}),500):n(r)}})),nN=({transaction:t,provider:e,signer:n})=>t.method?rN({transaction:t,signer:n,provider:e}):iN({transaction:t,signer:n}),rN=async({transaction:t,signer:e,provider:n})=>{let r,i=new PM(t.to,t.api,n),o=t.getContractArguments({contract:i}),a=i.connect(e)[t.getMethodNameWithSignature()];try{r=await DI(t),r=r.add(r.div(10))}catch(t){}return o?await a(...o,{value:YI.bigNumberify(t.value,t.blockchain),gasLimit:tN([r,"optionalAccess",t=>t.toHexString,"call",t=>t()])}):await a({value:YI.bigNumberify(t.value,t.blockchain),gasLimit:tN([r,"optionalAccess",t=>t.toHexString,"call",t=>t()])})},iN=({transaction:t,signer:e})=>e.sendTransaction({to:t.to,value:YI.bigNumberify(t.value,t.blockchain)});function oN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class aN{static __initStatic(){this.info={name:"Ethereum Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NDYuNCAzNzYuOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDQ2LjQgMzc2Ljg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojODI4NDg3O30KCS5zdDF7ZmlsbDojMzQzNDM0O30KCS5zdDJ7ZmlsbDojOEM4QzhDO30KCS5zdDN7ZmlsbDojM0MzQzNCO30KCS5zdDR7ZmlsbDojMTQxNDE0O30KCS5zdDV7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTM4MS43LDExMC4yaDY0LjdWNDYuNWMwLTI1LjctMjAuOC00Ni41LTQ2LjUtNDYuNUg0Ni41QzIwLjgsMCwwLDIwLjgsMCw0Ni41djY1LjFoMzUuN2wyNi45LT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QzNDI0MDAiPgoJCTxnPgoJCQk8cG9seWdvbiBjbGFzcz0ic3QxIiBwb2ludHM9IjEyOSwxNjYuMiAxMjguNywxNjcuMyAxMjguNywyMDEuNCAxMjksMjAxLjcgMTQ0LjgsMTkyLjQgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iMTI5LDE2Ni4yIDExMy4yLDE5Mi40IDEyOSwyMDEuNyAxMjksMTg1LjIgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMTI5LDIwNC43IDEyOC44LDIwNC45IDEyOC44LDIxNyAxMjksMjE3LjYgMTQ0LjgsMTk1LjQgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iMTI5LDIxNy42IDEyOSwyMDQuNyAxMTMuMiwxOTUuNCAJCQkiLz4KCQkJPHBvbHlnb24gY2xhc3M9InN0NCIgcG9pbnRzPSIxMjksMjAxLjcgMTQ0LjgsMTkyLjQgMTI5LDE4NS4yIAkJCSIvPgoJCQk8cG9seWdvbiBjbGFzcz0ic3Q1IiBwb2ludHM9IjExMy4yLDE5Mi40IDEyOSwyMDEuNyAxMjksMTg1LjIgCQkJIi8+CgkJPC9nPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>oN([window,"optionalAccess",t=>t.ethereum])&&!(oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMetaMask])&&1==Object.keys(window.ethereum).filter((t=>t.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length)&&!oN([window,"optionalAccess",t=>t.coin98])&&!(oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrust])||oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrustWallet]))&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isDeficonnectProvider])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isHyperPay])&&!(window.phantom&&!window.glow&&!oN([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isGlow])&&!["isBitKeep"].some((t=>window.solana&&window.solana[t])))&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRabby])&&!oN([window,"optionalAccess",t=>t.backpack,"optionalAccess",t=>t.isBackpack])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTokenPocket])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBitKeep])&&!(oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isCoinbaseWallet])||oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isWalletLink]))&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("MetaMask")])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBraveWallet])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])&&!oN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRainbow])&&!oN([window,"optionalAccess",t=>t.okxwallet])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{if(t=new YI(t),0==await e.connectedTo(t.blockchain)&&await e.switchTo(t.blockchain),0==await e.connectedTo(t.blockchain))throw{code:"WRONG_NETWORK"};await t.prepare({wallet:e});let n=await PI({blockchain:t.blockchain,method:"transactionCount",address:t.from});t.nonce=n;let r=new $A(e.getProvider(),"any"),i=r.getSigner(0);return await nN({transaction:t,provider:r,signer:i}).then((e=>{if(!e)throw"Submitting transaction failed!";t.id=e.hash,t.nonce=e.nonce||n,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t),eN(e).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?(e.replacement&&e.replacement.hash&&(t.id=e.replacement.hash,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t})),e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t._failed=!0,t.failed&&t.failed(t,e))):(t._failed=!0,t.failed&&t.failed(t,e))}))})),t})({wallet:this,transaction:t})}getProvider(){return window.ethereum}async account(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_accounts"})).map((t=>am(t)))[0]}async connect(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_requestAccounts"})).map((t=>am(t)))[0]}on(t,e){let n;switch(t){case"account":n=t=>e(am(t[0])),this.getProvider().on("accountsChanged",n)}return n}off(t,e){switch(t){case"account":this.getProvider().removeListener("accountsChanged",e)}return e}async connectedTo(t){const e=Hf.findById(await this.getProvider().request({method:"eth_chainId"}));return!!e&&(t?t===e.name:e.name)}addNetwork(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.getProvider().request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(e).catch(n)}))}switchTo(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.getProvider().request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(e).catch((r=>{4902===r.code?this.addNetwork(t).then((()=>this.switchTo(t).then(e))).catch(n):n(r)}))}))}transactionCount({blockchain:t,address:e}){return PI({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=this.getProvider(),n=await this.account();if(!1===await this.connectedTo(Hf.findByNetworkId(t.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await e.request({method:"eth_signTypedData_v4",params:[n,t],from:n})}if("string"==typeof t){await this.account();let e=new $A(this.getProvider(),"any").getSigner(0);return await e.signMessage(t)}}}aN.__initStatic(),aN.__initStatic2();class sN extends aN{static __initStatic(){this.info={name:"Binance Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTIgMTkzLjY4Ij48cmVjdCB3aWR0aD0iMTkyIiBoZWlnaHQ9IjE5My42OCIgZmlsbD0iIzFlMjAyNCIvPjxwYXRoIGQ9Im01Ni45Miw0Ni41M2wzOS4wOC0yMi41NCwzOS4wOCwyMi41NC0xNC4zNSw4LjM2LTI0LjczLTE0LjE4LTI0LjczLDE0LjE4LTE0LjM1LTguMzZabTc4LjE3LDI4LjUzbC0xNC4zNS04LjM2LTI0LjczLDE0LjI3LTI0LjczLTE0LjI3LTE0LjM1LDguMzZ2MTYuNzFsMjQuNzMsMTQuMTh2MjguNDVsMTQuMzUsOC4zNiwxNC4zNS04LjM2di0yOC40NWwyNC43My0xNC4yN3YtMTYuNjNabTAsNDUuMTZ2LTE2LjcxbC0xNC4zNSw4LjM2djE2LjcxbDE0LjM1LTguMzZabTEwLjIxLDUuODJsLTI0LjczLDE0LjI3djE2LjcxbDM5LjA4LTIyLjU0di00NS4yNWwtMTQuMzUsOC4zNnYyOC40NVptLTE0LjM1LTY1LjI1bDE0LjM1LDguMzZ2MTYuNzFsMTQuMzUtOC4zNnYtMTYuNzFsLTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTQ5LjMsODUuNnYxNi43MWwxNC4zNSw4LjM2LDE0LjM1LTguMzZ2LTE2LjcxbC0xNC4zNSw4LjM2LTE0LjM1LTguMzZabS0yNC43My0yNi4xN2wxNC4zNSw4LjM2di0xNi43MWwtMTQuMzUtOC4zNnYxNi43MVptMjQuNzMtNTkuNDNsMTQuMzUsOC4zNiwxNC4zNS04LjM2LTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTM0Ljk1LDguMzZsMTQuMzUtOC4zNi0xNC4zNS04LjM2LTE0LjM1LDguMzZ2MTYuNzFsMTQuMzUsOC4zNnYtMTYuNzFabTAsMjguNDVsLTE0LjM1LTguMzZ2NDUuMTZsMzkuMDgsMjIuNTR2LTE2LjcxbC0yNC43My0xNC4yN3MwLTI4LjM2LDAtMjguMzZaIiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.BinanceChain])&&!window.coin98&&!window.trustwallet}getProvider(){return window.BinanceChain}}sN.__initStatic(),sN.__initStatic2();var uN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yOTguMjAzIDgzLjc2NDVMMTcwLjQ0OSAwVjQ2LjgzMzJMMjUyLjQwNSAxMDAuMDg5TDI0Mi43NjMgMTMwLjU5OEgxNzAuNDQ5VjE2OS40MDJIMjQyLjc2M0wyNTIuNDA1IDE5OS45MTFMMTcwLjQ0OSAyNTMuMTY3VjMwMEwyOTguMjAzIDIxNi41MDNMMjc3LjMxMyAxNTAuMTM0TDI5OC4yMDMgODMuNzY0NVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjYxXzI5NSkiLz4KPHBhdGggZD0iTTU5LjMwMDcgMTY5LjQwMkgxMzEuMzQ2VjEzMC41OThINTkuMDMyOUw0OS42NTg5IDEwMC4wODlMMTMxLjM0NiA0Ni44MzMyVjBMMy41OTI1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yLjcsMC01LDIuMi01LDV2NjQuN2MwLDIuNywyLjIsNSw1LDVoNjQuN2MyLjcsMCw1LTIuMiw1LTV2LTY0LjcKCUMyMDkuNSwxMzIuOSwyMDcuMiwxMzAuNywyMDQuNSwxMzAuN3oiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEyOS44LDU2LjFINjUuMWMtMi43LDAtNSwyLjItNSw1djY0LjdjMCwyLjcsMi4yLDUsNSw1aDY0LjdjMi44LDAsNS0yLjIsNS01VjYxCglDMTM0LjgsNTguMywxMzIuNSw1Ni4xLDEyOS44LDU2LjF6Ii8+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yNzkuMSw1Ni4xaC02NC43Yy0yLjcsMC01LDIuMi01LDV2NjQuN2MwLDIuNywyLjIsNSw1LDVoNjQuN2MyLjcsMCw1LTIuMiw1LTVWNjEKCUMyODQuMSw1OC4zLDI4MS45LDU2LjEsMjc5LjEsNTYuMXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEyOS44LDIwNS40SDY1LjFjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuOCwwLDUtMi4yLDUtNXYtNjQuNwoJQzEzNC44LDIwNy42LDEzMi41LDIwNS40LDEyOS44LDIwNS40eiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjc5LjEsMjA1LjRoLTY0LjdjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuNywwLDUtMi4yLDUtNXYtNjQuNwoJQzI4NC4xLDIwNy42LDI4MS45LDIwNS40LDI3OS4xLDIwNS40eiIvPgo8L3N2Zz4K";class mN extends aN{static __initStatic(){this.info={name:"Brave",logo:fN,blockchains:JI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBraveWallet])}getProvider(){return window.ethereum}}mN.__initStatic(),mN.__initStatic2();class gN extends KI{static __initStatic(){this.info={name:"Brave",logo:fN,blockchains:JI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isBraveWallet])}getProvider(){return window.braveSolana}}gN.__initStatic(),gN.__initStatic2();class vN extends aN{static __initStatic(){this.info={name:"Coin98",logo:lN,blockchains:JI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.coin98])}getProvider(){return window.coin98.provider}}vN.__initStatic(),vN.__initStatic2();class wN extends KI{static __initStatic(){this.info={name:"Coin98",logo:lN,blockchains:JI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.coin98,"optionalAccess",t=>t.sol])}getProvider(){return window.coin98.sol}}function bN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}wN.__initStatic(),wN.__initStatic2();class MN extends aN{static __initStatic(){this.info={name:"Coinbase",logo:hN,blockchains:JI.evm,platform:"evm"}}getProvider(){return bN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("CoinbaseWallet")])?bN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.get,"call",t=>t("CoinbaseWallet")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>bN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isCoinbaseWallet])||bN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isWalletLink])||bN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("CoinbaseWallet")])}}MN.__initStatic(),MN.__initStatic2();class AN extends KI{static __initStatic(){this.info={name:"Coinbase",logo:hN,blockchains:JI.solana,platform:"svm"}}getProvider(){return window.coinbaseSolana}static __initStatic2(){this.isAvailable=async()=>!!window.coinbaseSolana}}AN.__initStatic(),AN.__initStatic2();class IN extends aN{static __initStatic(){this.info={name:"Crypto.com | DeFi Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4OS45IDEwMi44IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA4OS45IDEwMi44IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGRkZGRkY7fQoJLnN0MXtmaWxsOiMwMzMxNkM7fQo8L3N0eWxlPgoKPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuMzc1MSAtMTEzLjYxKSI+Cgk8ZyB0cmFuc2Zvcm09Im1hdHJpeCguMzE3OTQgMCAwIC4zMTQ2NSAtMS4wNDczIDMwLjQ0NykiPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0xNjEuNiAyNjQuMy0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6bTAgMC0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0ibTIxNy41IDUyNy4xaC0yMC4xbC0yNC4xLTIyLjF2LTExLjNsMjQuOS0yMy44di0zNy43bDMyLjYtMjEuMyAzNy4xIDI4LjEtNTAuNCA4OC4xem0tODMuMy01OS42IDMuNy0zNS40LTEyLjItMzEuN2g3MmwtMTEuOSAzMS43IDMuNCAzNS40aC01NXptMTYuNCAzNy41LTI0LjEgMjIuNGgtMjAuNGwtNTAuNy04OC40IDM3LjQtMjcuOCAzMi45IDIxdjM3LjdsMjQuOSAyMy44djExLjN6bS00NC44LTE3MC4xaDExMS40bDEzLjMgNTYuN2gtMTM3LjdsMTMtNTYuN3ptNTUuOC03MC42LTE0MS40IDgxLjZ2MTYzLjNsMTQxLjQgODEuNiAxNDEuNC04MS42di0xNjMuM2wtMTQxLjQtODEuNnoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isDeficonnectProvider])}}IN.__initStatic(),IN.__initStatic2();class NN extends aN{static __initStatic(){this.info={name:"Exodus",logo:uN,blockchains:JI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isExodus])}}NN.__initStatic(),NN.__initStatic2();class EN extends KI{static __initStatic(){this.info={name:"Exodus",logo:uN,blockchains:JI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isExodus])}}EN.__initStatic(),EN.__initStatic2();class xN extends KI{static __initStatic(){this.info={name:"Glow",logo:"data:image/webp;base64,UklGRkbpAQBXRUJQVlA4TDrpAQAv38F3EBGJbRsJkgS7p0rtwm3+AXfP/IcQ0f8JWLIkdFr/iEgkyRI0SHyCgCXu4pZI4gxw6U7EeRDYruJd9wYSAXYCoeH3+5uZqVI3QbHhQMVaNVVzVj8594ZNo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un11/+qEx//6p7SmHbtSdPXfvXS6l/YH",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>window.solana&&window.solana.isGlow}}xN.__initStatic(),xN.__initStatic2();class kN extends aN{static __initStatic(){this.info={name:"HyperPay",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isHyperPay])}}kN.__initStatic(),kN.__initStatic2();class TN extends aN{static __initStatic(){this.info={name:"Magic Eden",logo:pN,blockchains:["ethereum","polygon"],platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])}}TN.__initStatic(),TN.__initStatic2();class LN extends KI{static __initStatic(){this.info={name:"Magic Eden",logo:pN,blockchains:["solana"],platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isMagicEden])}}LN.__initStatic(),LN.__initStatic2();class SN extends aN{static __initStatic(){this.info={name:"OKX",logo:yN,blockchains:JI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.okxwallet])}}SN.__initStatic(),SN.__initStatic2();class jN extends KI{static __initStatic(){this.info={name:"OKX",logo:yN,blockchains:["solana"],platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isOkxWallet])}}function DN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}jN.__initStatic(),jN.__initStatic2();class CN extends aN{static __initStatic(){this.info={name:"MetaMask",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0nTGF5ZXJfMScgZGF0YS1uYW1lPSdMYXllciAxJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA0ODUuOTMgNDUw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vPjxwb2x5Z29uIGNsYXNzPSdjbHMtOCcgcG9pbnRzPScyNzIuMDYgMjQ2LjAxIDI3OC4zNCAxMzYuMjggMzA3LjI0IDU4LjEyIDE3OC44OCA1OC4xMiAyMDcuNDEgMTM2LjI4IDIxNC4wNiAyNDYuMDEgMjE2LjM0IDI4MC42MiAyMTYuNTMgMzY1LjgyIDI2OS4yMSAzNjUuODIgMjY5LjU5IDI4MC42MiAyNzIuMDYgMjQ2LjAxJy8+PC9zdmc+",blockchains:JI.evm}}static __initStatic2(){this.isMetaMask=t=>DN([t,"optionalAccess",t=>t.isMetaMask])&&1==Object.keys(t).filter((t=>t.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length}static __initStatic3(){this.getEip6963Provider=()=>window._eip6963Providers?Object.values(window._eip6963Providers).find((t=>CN.isMetaMask(t))):void 0}static __initStatic4(){this.isAvailable=async()=>CN.getEip6963Provider()||CN.isMetaMask(DN([window,"optionalAccess",t=>t.ethereum]))}getProvider(){return CN.getEip6963Provider()||CN.isMetaMask(DN([window,"optionalAccess",t=>t.ethereum]))&&DN([window,"optionalAccess",t=>t.ethereum])}}CN.__initStatic(),CN.__initStatic2(),CN.__initStatic3(),CN.__initStatic4();class ON extends aN{static __initStatic(){this.info={name:"Opera",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA3NS42IDc1LjYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMyAwIDAgLTEuMzMzMyAwIDEwNy4yKSI+CiAgCiAgPGxpbmVhckdyYWRpZW50IGlkPSJvcGVyYUxvZ28wMDAwMDAxMjM1MTEiIHgxPSItMTA3LjM0IiB4Mj0iLTEwNi4zNCIgeTE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jQpIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSI+CiAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOUMwMDAwIiBvZmZzZXQ9IjAiLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iLjciLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHBhdGggZD0ibTE5IDY4YzIuNiAzLjEgNiA0LjkgOS42IDQuOSA4LjMgMCAxNC45LTkuNCAxNC45LTIwLjlzLTYuNy0yMC45LTE0LjktMjAuOWMtMy43IDAtNyAxLjktOS42IDQuOSA0LjEtNS4zIDEwLjEtOC42IDE2LjktOC42IDQuMiAwIDggMS4zIDExLjQgMy41IDUuOCA1LjIgOS41IDEyLjcgOS41IDIxLjFzLTMuNyAxNS45LTkuNSAyMS4xYy0zLjMgMi4yLTcuMiAzLjUtMTEuNCAzLjUtNi44IDAuMS0xMi44LTMuMy0xNi45LTguNiIgZmlsbD0idXJsKCNiKSIvPgo8L2c+Cjwvc3ZnPgo=",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isOpera])}}function zN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}ON.__initStatic(),ON.__initStatic2();class PN extends aN{static __initStatic(){this.info={name:"Phantom",logo:cN,blockchains:["ethereum","polygon"],platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&window.phantom.ethereum&&!zN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])&&!zN([window,"optionalAccess",t=>t.okxwallet])}}function _N(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}PN.__initStatic(),PN.__initStatic2();class BN extends KI{static __initStatic(){this.info={name:"Phantom",logo:cN,blockchains:JI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&!window.glow&&!_N([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isGlow])&&!_N([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isExodus])&&!_N([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])&&!_N([window,"optionalAccess",t=>t.okxwallet])&&!["isBitKeep"].some((t=>window.solana&&window.solana[t]))}}BN.__initStatic(),BN.__initStatic2();class RN extends aN{static __initStatic(){this.info={name:"Rabby",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9ImthdG1hbl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0IDE1MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjA0IDE1MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOnVybCgjU1ZHSURfMV8pO30KCS5zdDF7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMTE4MzY5MTkwNjY5MjcyNDcwNjgwMDAwMDE1NjE0NDY3MTMxNjE1Mjc5NDkxXyk7fQoJLnN0MntmaWxsLXJ1bGU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QiIHkxPSI0MjcuNjAyIiB4Mj0iMTE1LjA1OTMiIHkyPSI0ODkuNDc5MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgLTM0NikiPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6Izg4OThGRiIvPgoJPHN0b3AgIG9mZnNldD0iMC45ODM5IiBzdHlsZT0ic3RvcC1jb2xvcjojNUY0N0YxIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMDAwMDAxMjg0NzQ1MTgwNjUxMjc5MDc2OTAwMDAwMDg3OTM1NDY5MjM0OTg1OTA4NjFfKTsiIGQ9Ik0zOS43LDkzLjljMS43LDE1LjIsMTAuNSwyMS4zLDI4LjIsMjMKCWMxNy44LDEuNywyNy45LDAuNiw0MS40LDEuN2MxMS4zLDEsMjEuNCw2LjgsMjUuMSw0LjhjMy4zLTEuNywxLjQtOC4yLTMtMTIuNGMtNS45LTUuNC0xNC05LTI4LjEtMTAuNWMyLjktNy44LDIuMS0xOC43LTIuNC0yNC42CgljLTYuMy04LjYtMTguMS0xMi40LTMzLTEwLjhDNTIuMyw2Ny4xLDM3LjQsNzQuOSwzOS43LDkzLjl6Ii8+Cjwvc3ZnPgo=",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRabby])}}function UN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}RN.__initStatic(),RN.__initStatic2();class QN extends aN{static __initStatic(){this.info={name:"Uniswap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlnaHQ9IjY0MCIgdmlld0JveD0iMCAwIDY0MSA2NDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9y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AyNjUuOTgzIDI0NC41NzEgMjczLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",blockchains:JI.evm}}static __initStatic2(){this.getEip6963Provider=()=>window._eip6963Providers?Object.values(window._eip6963Providers).find((t=>UN([t,"optionalAccess",t=>t.isUniswapWallet]))):void 0}static __initStatic3(){this.isAvailable=async()=>QN.getEip6963Provider()||UN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])}getProvider(){return QN.getEip6963Provider()||UN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])&&UN([window,"optionalAccess",t=>t.ethereum])}}function YN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}QN.__initStatic(),QN.__initStatic2(),QN.__initStatic3();class WN extends aN{static __initStatic(){this.info={name:"Rainbow",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEyMCAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNjJfMzI5KSIvPgo8cGF0aCBkPSJNMjAgMzhIMjZDNTYuOTI3OSAzOCA4MiA2My4wNzIxIDgyIDk0VjEwMEg5NEM5Ny4zMTM3IDEwMCAxMDAgOTcuMzEzNyAxMDAgOTRDMTAwIDUzLjEzMDkgNjYuODY5MSAyMCAyNiAyMEMyMi42ODYzIDIwIDIwIDIyLjY4NjMgMjAgMjZWMzhaIiBmaWxsPSJ1cmwoI3BhaW50MV9y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window._eip6963Providers).find((t=>YN([t,"optionalAccess",t=>t.isRainbow]))):void 0}static __initStatic3(){this.isAvailable=async()=>WN.getEip6963Provider()||YN([window,"optionalAccess",t=>t.rainbow,"optionalAccess",t=>t.isRainbow])}getProvider(){return WN.getEip6963Provider()||YN([window,"optionalAccess",t=>t.rainbow])}}function FN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}WN.__initStatic(),WN.__initStatic2(),WN.__initStatic3();const VN="_DePayWeb3WalletsConnectedSolanaMobileWalletInstance",HN=t=>{const e=window.atob(t),n=e.length,r=new Uint8Array(n);for(let t=0;t({name:document.title,uri:window.location.origin.toString(),icon:qN()});var qN=function(){for(var t="favicon.ico",e=document.getElementsByTagName("link"),n=0;nFI({wallet:this,transaction:t})}async authorize(t){let e=await t.authorize({cluster:"mainnet-beta",identity:GN()});if(e&&e.auth_token&&e.accounts&&0!==e.accounts.length)return ZN=e.auth_token,this._account=HN(e.accounts[0].address).toString(),e}async reauthorize(t,e){let n=await t.reauthorize({auth_token:e,identity:GN()});if(n&&n.auth_token&&n.accounts&&0!==n.accounts.length)return e=n.auth_token,this._account=HN(n.accounts[0].address).toString(),n}disconnect(){}async account(){return this._account}async connect(t){return await ef((async e=>{await this.authorize(e),FN([t,"optionalAccess",t=>t.name])&&(localStorage[VN+"_name"]=this.name=t.name),FN([t,"optionalAccess",t=>t.logo])&&(localStorage[VN+"_logo"]=this.logo=t.logo)})),this._account}static __initStatic2(){this.isAvailable=async()=>ZN}async connectedTo(t){return t?"solana"==t:"solana"}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}on(t,e){}off(t,e){}async sign(t){const e=(new TextEncoder).encode(t);return await ef((async t=>{const n=await this.reauthorize(t,ZN);return(await t.signMessages({addresses:[n.accounts[0].address],payloads:[e]}))[0]}))}async _sendTransaction(t){return await ef((async e=>{await this.reauthorize(e,ZN);return(await e.signAndSendTransactions({transactions:[t]}))[0]}))}}JN.__initStatic(),JN.__initStatic2();class XN extends KI{static __initStatic(){this.info={name:"Solflare",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA1MCA1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAgNTA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDp1cmwoI1NWR0lEXzFfKTt9Cgkuc3Qxe2ZpbGw6dXJsKCNTVkdJRF8wMDAwMDA0MTI1OTU5ODg4MjM0NDgzNTI5MDAwMDAxMjg1ODg4NTIyOTkwNzM1MjI0MF8pO30KPC9zdHlsZT4KPGxpbmVhckdyYWRpZW50IGlkPSJTVkdJRF8xXyIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIHgxPSIxMC43OTg4IiB5MT0iMzkuOTEwOCIgeDI9IjMyLjM5NzYiIHkyPSIyMC4zNTc4IiBncmFkaWVudFRyYW5zZm9ybT0ibWF0cml4KDEgMCAwIC0xIDAgNTIpIj4KCTxzdG9wICBvZmZzZXQ9IjAiIHN0eWxlPSJzdG9wLWNvbG9yOiNGRkMxMEIiLz4KCTxzdG9wICBvZmZzZXQ9IjEiIHN0eWxlPSJ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LDMwLjljMy44LDAsNi44LTMsNi44LTYuNwoJYzAtMy43LTMuMS02LjctNi44LTYuN3MtNi44LDMtNi44LDYuN0MxNy44LDI3LjksMjAuOSwzMC45LDI0LjYsMzAuOXoiLz4KPC9zdmc+Cg==",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solflare])&&window.solflare.isSolflare}getProvider(){return window.solflare}_sendTransaction(t){return this.getProvider().signTransaction(t)}}XN.__initStatic(),XN.__initStatic2();class KN extends aN{static __initStatic(){this.info={name:"TP Wallet (TokenPocket)",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNDA4XzIyNSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCI+CjxyZWN0IHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIGZpbGw9IiNDNEM0QzQiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzQwOF8yMjUpIj4KPHBhdGggZD0iTTEwNDEuNTIgMEgtMjdWMTAyNEgxMDQxLjUyVjBaIiBmaWxsPSIjMjk4MEZFIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF80MDhfMjI1KSI+CjxwYXRoIGQ9Ik00MDYuNzk2IDQzOC42NDNINDA2LjkyN0M0MDYuNzk2IDQzNy44NTcgNDA2Ljc5NiA0MzYuOTQgNDA2Ljc5NiA0MzYuMTU0VjQzOC42NDNaIiBmaWxsPSIjMjlBRUZGIi8+Cj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0iNjY3Ljc1MyIgeTI9IjU1Ni44MjciIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIwLjk2NjciIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzIzMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwOF8yMjUiPgo8cmVjdCB3aWR0aD0iNzI4LjQ0OCIgaGVpZ2h0PSI0NzAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTokenPocket])}}function $N(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}KN.__initStatic(),KN.__initStatic2();class tE extends aN{static __initStatic(){this.info={name:"Trust Wallet",logo:dN,blockchains:JI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>($N([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrust])||$N([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrustWallet]))&&1==Object.keys(window.ethereum).filter((t=>t.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/))).length}}tE.__initStatic(),tE.__initStatic2();class eE extends KI{static __initStatic(){this.info={name:"Trust Wallet",logo:dN,blockchains:JI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"access",t=>t.solana,"optionalAccess",t=>t.isTrustWallet])}}eE.__initStatic(),eE.__initStatic2();const nE={ethereum:"mainnet",bsc:"bsc",polygon:"polygon",arbitrum:"arbitrum",base:"base",avalanche:"avalanche",gnosis:"gnosis-chain",optimism:"optimism"},rE={ethereum:"eth",bsc:"bnb",polygon:"matic",arbitrum:"arb1",base:"base",avalanche:"avax",gnosis:"gno",optimism:"oeth"};class iE{constructor({address:t,blockchain:e}){this.address=t,this.blockchain=e}async transactionCount(){let t,e=await fetch(`https://safe-transaction-${nE[this.blockchain]}.safe.global/api/v1/safes/${this.address}/all-transactions/`).then((t=>t.json())).catch((t=>{console.error("Error:",t)}));return t=e&&e.results&&e.results.length?e.results[0].nonce+1:parseInt((await PI({blockchain:this.blockchain,address:this.address,api:[{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],method:"nonce"})).toString(),10),t}async retrieveTransaction({blockchain:t,tx:e}){const n=await LI(t);let r=await fetch(`https://safe-transaction-${nE[t]}.safe.global/api/v1/multisig-transactions/${e}/`).then((t=>t.json())).catch((t=>{console.error("Error:",t)}));return r&&r.isExecuted&&r.transactionHash?await n.getTransaction(r.transactionHash):void 0}explorerUrlFor({transaction:t}){if(t)return`https://app.safe.global/${rE[t.blockchain]}:${t.from}/transactions/tx?id=multisig_${t.from}_${t.id}`}}const oE=async(t,e)=>{if(!await(async(t,e)=>{const n=await LI(t);return"0x"!=await n.getCode(e)})(t,e))return;const n=await(async(t,e)=>{let n;try{n=await PI({blockchain:t,address:e,api:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"}],method:"NAME"})}catch(t){}if("Default Callback Handler"==n)return"Safe"})(t,e);if("Safe"==n)return new iE({blockchain:t,address:e});if("Argent"==n)return new Argent({blockchain:t,address:e});if(smartContractWallet)throw{message:"Unrecognized smart contract wallet not supported!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"}};function aE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const sE=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&aE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{sE(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&aE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{sE(t).then(e).catch(n)}),500):n(r)}})),uE=(t,e)=>new Promise((async(n,r)=>{try{let r;const i=await LI(e);r=await i.getTransaction(t);const o=120;let a=1;for(;a<=o&&!r;)r=await i.getTransaction(t),await new Promise((t=>setTimeout(t,5e3))),a++;n(r)}catch(i){i&&aE([i,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||i&&i.toString().match("undefined")?setTimeout((()=>{uE(t,e).then(n).catch(r)}),500):r(i)}})),cE=({transaction:t,wallet:e})=>t.method?lE({transaction:t,wallet:e}):hE({transaction:t,wallet:e}),lE=async({transaction:t,wallet:e})=>{const n=await LI(t.blockchain),r=Hf[t.blockchain];let i;try{i=await DI(t),i=i.add(i.div(10))}catch(t){}const o=await n.getGasPrice();return e.signClient.request({topic:e.session.topic,chainId:`${r.namespace}:${r.networkId}`,request:{method:"eth_sendTransaction",params:[{from:t.from,to:t.to,value:t.value?Fp.from(t.value.toString()).toHexString():void 0,data:await t.getData(),gas:aE([i,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasLimit:aE([i,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasPrice:o.toHexString(),nonce:Cp(t.nonce)}]}}).catch((t=>{console.log("ERROR",t)}))},hE=async({transaction:t,wallet:e})=>{const n=await LI(t.blockchain);let r,i=Hf[t.blockchain];try{r=await DI(t),r=r.add(r.div(10))}catch(t){}const o=await n.getGasPrice();return e.signClient.request({topic:e.session.topic,chainId:`${i.namespace}:${i.networkId}`,request:{method:"eth_sendTransaction",params:[{from:t.from,to:t.to,value:t.value?Fp.from(t.value.toString()).toHexString():void 0,data:"0x0",gas:aE([r,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasLimit:aE([r,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasPrice:aE([o,"optionalAccess",t=>t.toHexString,"call",t=>t()]),nonce:Cp(t.nonce)}]}}).catch((t=>{console.log("ERROR",t)}))};function dE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const fE="depay:wallets:wc2",pE=["accountsChanged"],yE=["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],mE=async t=>{if(!localStorage[fE+":projectId"])return;if(t!==localStorage[fE+":lastSessionWalletName"])return;let e,n=await vE();try{e=n.find(gE(t))}catch(t){}const r=e?e[e.length-1]:void 0;if(r&&localStorage[fE+":lastExpiredSessionTopic"]!==r.topic&&r.expiry>Math.ceil(Date.now()/1e3)){return await Promise.race([n.ping({topic:r.topic}),new Promise((t=>setTimeout(t,1500)))])?r:void(localStorage[fE+":lastExpiredSessionTopic"]=r.topic)}},gE=t=>{const e=yE,n=pE;let r={eip155:{chains:["eip155:1"]}};r.eip155&&(r.eip155.methods=e,r.eip155.events=n);let i={};return i.eip155={chains:JI.evm.map((t=>`${Hf[t].namespace}:${Hf[t].networkId}`))},dE([i,"optionalAccess",t=>t.eip155])&&dE([i,"optionalAccess",t=>t.eip155,"optionalAccess",t=>t.chains,"optionalAccess",t=>t.length])&&(i.eip155.methods=e,i.eip155.events=n),{requiredNamespaces:r,optionalNamespaces:i}},vE=()=>(window.getSignClientPromise||(window.getSignClientPromise=new Promise((async t=>{t(await BI.init({projectId:localStorage[fE+":projectId"],metadata:{name:document.title||"dApp",description:dE([document,"access",t=>t.querySelector,"call",t=>t('meta[name="description"]'),"optionalAccess",t=>t.getAttribute,"call",t=>t("content")])||document.title||"dApp",url:location.href,icons:[dE([document,"access",t=>t.querySelector,"call",t=>t("link[rel~='icon'], link[rel~='shortcut icon']"),"optionalAccess",t=>t.href])||`${location.origin}/favicon.ico`]}}))}))),window.getSignClientPromise);class wE{static __initStatic(){this.info={name:"WalletConnect V2",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async t=>!!await mE(dE([t,"optionalAccess",t=>t.walletName]))}constructor(){this.name=localStorage[fE+":name"]&&null!=localStorage[fE+":name"]?localStorage[fE+":name"]:this.constructor.info.name,this.logo=localStorage[fE+":logo"]&&null!=localStorage[fE+":logo"]?localStorage[fE+":logo"]:this.constructor.info.logo,this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{t=new YI(t),await t.prepare({wallet:e});let n=await PI({blockchain:t.blockchain,method:"transactionCount",address:t.from});return t.nonce=n,await cE({transaction:t,wallet:e}).then((async e=>{if("string"!=typeof e)throw e;{let r=Hf[t.blockchain];t.id=e,t.url=r.explorerUrlFor({transaction:t}),t.sent&&t.sent(t);let i=await uE(t.id,t.blockchain);t.nonce=i.nonce||n,i?sE(i).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t.id=e.replacement.hash,t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t.id=e.replacement.hash,t._failed=!0,t.failed&&t.failed(t,e)):(t._failed=!0,t.failed&&t.failed(t,e))})):(t._failed=!0,t.failed&&t.failed(t,"Error retrieving transaction"))}})),t})({wallet:this,transaction:t})}async account(){if(dE([this,"access",t=>t.session,"optionalAccess",t=>t.namespaces,"optionalAccess",t=>t.eip155,"optionalAccess",t=>t.accounts,"optionalAccess",t=>t.length]))return this.session.namespaces.eip155.accounts[0].split(":")[2]}async setSessionBlockchains(){this.session&&(dE([this,"access",t=>t.session,"optionalAccess",t=>t.namespaces,"optionalAccess",t=>t.eip155])||dE([this,"access",t=>t.session,"optionalAccess",t=>t.optionalNamespaces,"optionalAccess",t=>t.eip155]))&&(this.session.namespaces.eip155.chains?this.blockchains=this.session.namespaces.eip155.chains.map((t=>dE([Hf,"access",t=>t.findByNetworkId,"call",e=>e(t.split(":")[1]),"optionalAccess",t=>t.name]))).filter(Boolean):this.session.namespaces.eip155.accounts&&(this.blockchains=this.session.namespaces.eip155.accounts.map((t=>dE([Hf,"access",t=>t.findByNetworkId,"call",e=>e(t.split(":")[1]),"optionalAccess",t=>t.name]))).filter(Boolean)))}async connect(t){let e=t&&t.connect?t.connect:({uri:t})=>{};try{this.walletName=dE([t,"optionalAccess",t=>t.name]),this.signClient=await vE(),this.signClient.on("session_delete",(t=>{dE([t,"optionalAccess",t=>t.topic])===dE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&(localStorage[fE+":name"]=void 0,localStorage[fE+":logo"]=void 0,this.signClient=void 0,this.session=void 0)})),this.signClient.on("session_update",(async t=>{dE([t,"optionalAccess",t=>t.topic])===dE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&(this.session=this.signClient.session.get(t.topic),await this.setSessionBlockchains())})),this.signClient.on("session_event",(t=>{dE([t,"optionalAccess",t=>t.topic]),dE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])}));const n=async()=>{const{uri:t,approval:n}=await this.signClient.connect(gE(this.walletName));await e({uri:t}),this.session=await n(),localStorage[fE+":lastSessionWalletName"]=this.walletName,await new Promise((t=>setTimeout(t,500)))},r=dE([this,"optionalAccess",t=>t.walletName,"optionalAccess",t=>t.length])?await mE(this.walletName):void 0;r?this.session=r:await n();let i=dE([this,"access",t=>t.session,"optionalAccess",t=>t.peer,"optionalAccess",t=>t.metadata]);return i&&i.name&&(this.name=i.name,localStorage[fE+":name"]=i.name,dE([i,"optionalAccess",t=>t.icons])&&i.icons.length&&(this.logo=i.icons[0],localStorage[fE+":logo"]=this.logo)),dE([t,"optionalAccess",t=>t.name])&&(localStorage[fE+":name"]=this.name=t.name),dE([t,"optionalAccess",t=>t.logo])&&(localStorage[fE+":logo"]=this.logo=t.logo),await this.setSessionBlockchains(),await this.account()}catch(t){console.log("WALLETCONNECT ERROR",t)}}async connectedTo(t){return t?this.blockchains.indexOf(t)>-1:this.blockchains}getValidChainId(){return`eip155:${Hf[this.blockchains[0]].networkId}`}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}on(t,e){let n;switch(t){case"account":n=async t=>{dE([t,"optionalAccess",t=>t.topic])===dE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&"accountsChanged"===t.params.event.name&&e(await this.account())},this.signClient.on("session_event",n)}return n}off(t,e){switch(t){case"account":this.signClient.off("session_event",e)}}async transactionCount({blockchain:t,address:e}){const n=await oE(t,e);return n?await n.transactionCount():await PI({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=await this.account();return await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"eth_signTypedData_v4",params:[e,JSON.stringify(t)]}})}if("string"==typeof t){const e=await this.account(),n=[Cp(Sm(t)),e];let r=await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"personal_sign",params:n}});return"object"==typeof r&&(r=Cp(r)),r}}}function bE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}wE.__initStatic(),wE.__initStatic2(),wE.getConnectedInstance=async()=>{if(await wE.isAvailable())return new wE};const ME=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&bE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{ME(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&bE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{ME(t).then(e).catch(n)}),500):n(r)}})),AE=({transaction:t,provider:e,signer:n})=>t.method?IE({transaction:t,signer:n,provider:e}):NE({transaction:t,signer:n}),IE=({transaction:t,signer:e,provider:n})=>{let r=new PM(t.to,t.api,n),i=t.getContractArguments({contract:r}),o=r.connect(e)[t.getMethodNameWithSignature()];return i?o(...i,{value:YI.bigNumberify(t.value,t.blockchain)}):o({value:YI.bigNumberify(t.value,t.blockchain)})},NE=({transaction:t,signer:e})=>e.sendTransaction({to:t.to,value:YI.bigNumberify(t.value,t.blockchain)});function EE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const xE=()=>window._connectedWalletLinkInstance,kE=t=>{window._connectedWalletLinkInstance=t};class TE{static __initStatic(){this.info={name:"Coinbase",logo:hN,blockchains:JI.evm}}static __initStatic2(){this.isAvailable=async()=>null!=xE()}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,Object.keys(localStorage).forEach((t=>{t.match("-walletlink:https://www.walletlink.org")&&delete localStorage[t]})),this.connector=TE.instance||this.newWalletLinkInstance(),this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{if(t=new YI(t),0==await e.connectedTo(t.blockchain)&&await e.switchTo(t.blockchain),0==await e.connectedTo(t.blockchain))throw{code:"WRONG_NETWORK"};await t.prepare({wallet:e});let n=new $A(e.connector,"any"),r=n.getSigner(0);return await AE({transaction:t,provider:n,signer:r}).then((e=>{if(!e)throw"Submitting transaction failed!";t.id=e.hash,t.nonce=e.nonce,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t),ME(e).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?(e.replacement&&e.replacement.hash&&(t.id=e.replacement.hash,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t})),e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t._failed=!0,t.failed&&t.failed(t,e))):(t._failed=!0,t.failed&&t.failed(t,e))}))})),t})({wallet:this,transaction:t})}newWalletLinkInstance(){return new UI({}).makeWeb3Provider()}async account(){if(null!=this.connectedAccounts)return am(this.connectedAccounts[0])}async connect(t){let e=t&&t.connect?t.connect:({uri:t})=>{};await e({uri:this.connector.qrUrl}),EE([document,"access",t=>t.querySelector,"call",t=>t(".-cbwsdk-css-reset"),"optionalAccess",t=>t.setAttribute,"call",t=>t("style","display: none;")]),EE([document,"access",t=>t.querySelector,"call",t=>t(".-cbwsdk-extension-dialog-container"),"optionalAccess",t=>t.setAttribute,"call",t=>t("style","display: none;")]),setTimeout((()=>{EE([this,"optionalAccess",t=>t.connector,"optionalAccess",t=>t._relay,"optionalAccess",t=>t.ui,"optionalAccess",t=>t.linkFlow,"optionalAccess",t=>t.isOpen])&&(this.connector._relay.ui.linkFlow.isOpen=!1)}),10),(await this.connector._relayProvider()).setConnectDisabled(!1);let n=await this.connector.enable();return n instanceof Array&&n.length&&kE(this),n=n.map((t=>am(t))),this.connectedAccounts=n,this.connectedChainId=await this.connector.getChainId(),n[0]}async connectedTo(t){let e=await this.connector.getChainId();const n=Hf.findByNetworkId(e);return!!n&&(t?t===n.name:n.name)}switchTo(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(e).catch((r=>{4902===r.code?this.addNetwork(t).then((()=>this.switchTo(t).then(e))).catch(n):n(r)}))}))}addNetwork(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.connector.request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(e).catch(n)}))}on(t,e){let n;switch(t){case"account":n=t=>e(am(t[0])),this.connector.on("accountsChanged",n)}return n}off(t,e){switch(t){case"account":this.connector.removeListener("accountsChanged",e)}return e}transactionCount({blockchain:t,address:e}){return PI({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=this.connector,n=await this.account();if(!1===await this.connectedTo(Hf.findByNetworkId(t.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await e.request({method:"eth_signTypedData_v4",params:[n,t],from:n})}if("string"==typeof t){await this.account();let e=new $A(this.connector,"any").getSigner(0);return await e.signMessage(t)}}}TE.__initStatic(),TE.__initStatic2(),TE.getConnectedInstance=xE,TE.setConnectedInstance=kE;var LE={MetaMask:CN,PhantomEVM:PN,PhantomSVM:BN,CoinbaseEVM:MN,CoinbaseSVM:AN,Binance:sN,TrustEVM:tE,TrustSVM:eE,Backpack:$I,Glow:xN,Solflare:XN,Rabby:RN,Uniswap:QN,Rainbow:WN,BraveEVM:mN,BraveSVM:gN,MagicEdenEVM:TN,MagicEdenSVM:LN,OKXEVM:SN,OKXSVM:jN,Opera:ON,Coin98EVM:vN,Coin98SVM:wN,CryptoCom:IN,HyperPay:kN,TokenPocket:KN,ExodusEVM:NN,ExodusSVM:EN,WindowEthereum:aN,WindowSolana:KI,SolanaMobileWalletAdapter:JN,WalletConnectV2:wE,WalletLink:TE};function SE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const jE=async t=>{let e=t&&"function"==typeof t.drip?t.drip:void 0;window._eip6963Providers={};const n=t=>{SE([t,"optionalAccess",t=>t.detail,"optionalAccess",t=>t.info,"optionalAccess",t=>t.uuid])&&(window._eip6963Providers[SE([t,"optionalAccess",t=>t.detail,"optionalAccess",t=>t.info,"optionalAccess",t=>t.uuid])]=t.detail.provider)};return window.addEventListener("eip6963:announceProvider",n),window.dispatchEvent(new Event("eip6963:requestProvider")),window.removeEventListener("eip6963:announceProvider",n),(await Promise.all(Object.keys(LE).map((async t=>{let n=LE[t];if(await n.isAvailable()){let t;return n.getConnectedInstance?(t=await n.getConnectedInstance(),e&&t&&e(t),t):(e&&n&&e(n),new n)}})))).filter(Boolean)};LE.MetaMask,LE.PhantomEVM,LE.PhantomSVM,LE.CoinbaseEVM,LE.CoinbaseSVM,LE.Binance,LE.TrustEVM,LE.TrustSVM,LE.Backpack,LE.Glow,LE.Solflare,LE.Rabby,LE.Uniswap,LE.Rainbow,LE.BraveEVM,LE.BraveSVM,LE.Opera,LE.Coin98EVM,LE.Coin98SVM,LE.CryptoCom,LE.HyperPay,LE.TokenPocket,LE.MagicEdenEVM,LE.MagicEdenSVM,LE.OKXEVM,LE.OKXSVM,LE.ExodusEVM,LE.ExodusSVM,LE.WalletConnectV2,LE.SolanaMobileWalletAdapter,LE.WalletLink,LE.WindowEthereum;var DE,CE,OE,zE,PE,_E,BE,RE,UE,QE,YE,WE,FE,VE,HE,GE,qE,ZE,JE,XE,KE,$E,tx,ex,nx,rx,ix,ox,ax,sx,ux,cx,lx,hx,dx,fx=["ethereum","bsc","polygon","solana","arbitrum","optimism","base","avalanche","gnosis","fantom"];fx.evm=["ethereum","bsc","polygon","arbitrum","optimism","base","avalanche","gnosis","fantom"],fx.svm=["solana"],fx.solana=["solana"];var px=[{name:"Coinbase",extensions:["CoinbaseEVM","CoinbaseSVM"],desktop:{qr:"WalletLink"},mobile:{ios:{native:"cbwallet://dapp",universal:"https://go.cb-w.com/dapp",open:function(){return"cbwallet://dapp?url=".concat(encodeURIComponent(window.location.toString()))}},android:{native:"cbwallet://dapp",universal:"https://go.cb-w.com/dapp",open:function(){return"https://go.cb-w.com/dapp?cb_url=".concat(encodeURIComponent(window.location.toString()))}}},logo:null===(DE=LE.CoinbaseEVM)||void 0===DE||null===(CE=DE.info)||void 0===CE?void 0:CE.logo,blockchains:n(fx)},{name:"MetaMask",extension:"MetaMask",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"metamask:",universal:"https://metamask.app.link",qr:"WalletConnectV2",connect:"WalletConnectV2"},android:{native:"metamask:",universal:"https://metamask.app.link",qr:"WalletConnectV2",connect:"WalletConnectV2"}},logo:null===(OE=LE.MetaMask)||void 0===OE||null===(zE=OE.info)||void 0===zE?void 0:zE.logo,blockchains:n(fx.evm)},{name:"Phantom",extensions:["PhantomSVM","PhantomEVM"],desktop:{solanaPay:!0,qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}},mobile:{ios:{native:"phantom:",open:function(){return"https://phantom.app/ul/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},solanaPay:!0},android:{native:"phantom:",connect:"SolanaMobileWalletAdapter",qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},solanaPay:!0}},logo:null===(PE=LE.PhantomSVM)||void 0===PE||null===(_E=PE.info)||void 0===_E?void 0:_E.logo,blockchains:n(fx)},{name:"Trust Wallet",extensions:["TrustEVM","TrustSVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"trust:",universal:"https://link.trustwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"trust:",universal:"https://link.trustwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(BE=LE.TrustEVM)||void 0===BE||null===(RE=BE.info)||void 0===RE?void 0:RE.logo,blockchains:n(fx)},{name:"Binance Wallet",extension:"Binance",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bnc://app.binance.com/cedefi/",universal:"https://app.binance.com/cedefi",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bnc://app.binance.com/cedefi/",universal:"https://app.binance.com/cedefi",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(UE=LE.Binance)||void 0===UE||null===(QE=UE.info)||void 0===QE?void 0:QE.logo,blockchains:n(fx.evm)},{name:"Crypto.com | DeFi Wallet",extension:"CryptoCom",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dfw://",universal:"https://wallet.crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dfw://",universal:"https://wallet.crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(YE=LE.CryptoCom)||void 0===YE||null===(WE=YE.info)||void 0===WE?void 0:WE.logo,blockchains:n(fx.evm)},{name:"Coin98",extensions:["Coin98EVM","Coin98SVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coin98:",universal:"https://coin98.services",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coin98:",universal:"https://coin98.services",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(FE=LE.Coin98EVM)||void 0===FE||null===(VE=FE.info)||void 0===VE?void 0:VE.logo,blockchains:n(fx)},{name:"Brave",extensions:["BraveEVM","BraveSVM"],logo:null===(HE=LE.BraveEVM)||void 0===HE||null===(GE=HE.info)||void 0===GE?void 0:GE.logo,blockchains:n(fx)},{name:"Magic Eden",extensions:["MagicEdenEVM","MagicEdenSVM"],logo:null===(qE=LE.MagicEdenEVM)||void 0===qE||null===(ZE=qE.info)||void 0===ZE?void 0:ZE.logo,blockchains:n(fx)},{name:"Rainbow",extension:"Rainbow",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"rainbow:",universal:"https://rnbwapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"rainbow:",universal:"https://rnbwapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rainbow.jpg",blockchains:n(fx.evm)},{name:"Uniswap",extension:"Uniswap",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"uniswap:",universal:"https://uniswap.org/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"uniswap:",universal:"https://uniswap.org/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uniswap_wallet.jpg",blockchains:n(fx.evm)},{name:"Safe",desktop:{qr:"WalletConnectV2",copyLink:"WalletConnectV2"},mobile:{ios:{native:"safe",universal:"https://app.safe.global",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safe",universal:"https://app.safe.global",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safe.jpg",blockchains:n(fx.evm)},{name:"Rabby",extension:"Rabby",desktop:{qr:"WalletConnectV2"},logo:null===(JE=LE.Rabby)||void 0===JE||null===(XE=JE.info)||void 0===XE?void 0:XE.logo,blockchains:n(fx.evm)},{name:"Kraken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"krakenwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"krakenwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kraken.jpg",blockchains:n(fx.evm)},{name:"Backpack",extension:"Backpack",desktop:{},mobile:{ios:{open:function(){return"backpack://ul/v1/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}},android:{open:function(){return"backpack://ul/v1/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}}},logo:null===(KE=LE.Backpack)||void 0===KE||null===($E=KE.info)||void 0===$E?void 0:$E.logo,blockchains:n(fx.solana)},{name:"Glow",extension:"Glow",desktop:{qr:function(){return window.location.toString()},solanaPay:!0},mobile:{ios:{qr:function(){return window.location.toString()},solanaPay:!0},android:{connect:"SolanaMobileWalletAdapter",qr:function(){return window.location.toString()},solanaPay:!0}},logo:null===(tx=LE.Glow)||void 0===tx||null===(ex=tx.info)||void 0===ex?void 0:ex.logo,blockchains:n(fx.solana)},{name:"Solflare",extension:"Solflare",desktop:{solanaPay:!0},mobile:{ios:{native:"solflare:",universal:"https://solflare.com/ul",solanaPay:!0},android:{native:"solflare:",universal:"https://solflare.com/ul",connect:"SolanaMobileWalletAdapter",solanaPay:!0}},logo:null===(nx=LE.Solflare)||void 0===nx||null===(rx=nx.info)||void 0===rx?void 0:rx.logo,blockchains:n(fx.solana)},{name:"Family",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"familywallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"familywallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/family.jpg",blockchains:n(fx.evm)},{name:"imToken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"imtokenv2:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"imtokenv2:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/imtoken.jpg",blockchains:n(fx.evm)},{name:"MEW wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"mewwallet:",universal:"https://mewwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"mewwallet:",universal:"https://mewwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mew_wallet.jpg",blockchains:n(fx.evm)},{name:"ONTO",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ontoprovider:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ontoprovider:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/onto.jpg",blockchains:n(fx.evm)},{name:"Zerion",desktop:{native:"zerion://",qr:"WalletConnectV2",connect:"WalletConnectV2"},mobile:{ios:{native:"zerion://",universal:"https://wallet.zerion.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zerion://",universal:"https://wallet.zerion.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zerion.jpg",blockchains:n(fx.evm)},{name:"Spot",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"spot://",universal:"https://spot.so",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"spot://",universal:"https://spot.so",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/spot.jpg",blockchains:n(fx.evm)},{name:"BitGet (BitKeep)",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitget://",universal:"https://bkapp.vip",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitget://",universal:"https://bkapp.vip",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitget.jpg",blockchains:n(fx.evm)},{name:"Unstoppable Domains",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://unstoppabledomains.com/mobile",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://unstoppabledomains.com/mobile",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/unstoppable_domains.jpg",blockchains:n(fx.evm)},{name:"Omni",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"omni:",universal:"https://links.omni.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"omni:",universal:"https://links.omni.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/omni.jpg",blockchains:n(fx.evm)},{name:"KEYRING PRO",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"keyring:",universal:"https://keyring.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"keyring:",universal:"https://keyring.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keyring_pro.jpg",blockchains:n(fx.evm)},{name:"TP Wallet (TokenPocket)",extension:"TokenPocket",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tpoutside:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tpoutside:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/token_pocket.jpg",blockchains:n(fx.evm)},{name:"BitPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitpay:",universal:"https://link.bitpay.com/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitpay:",universal:"https://link.bitpay.com/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitpay.jpg",blockchains:n(fx.evm)},{name:"MathWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"mathwallet:",universal:"https://www.mathwallet.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"mathwallet:",universal:"https://www.mathwallet.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/math_wallet.jpg",blockchains:n(fx.evm)},{name:"Ledger Live",desktop:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2",copyLink:"WalletConnectV2"},mobile:{ios:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ledger_live.jpg",blockchains:n(fx.evm)},{name:"1inch Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oneinch://",universal:"https://wallet.1inch.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oneinch://",universal:"https://wallet.1inch.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/1inch_wallet.jpg",blockchains:n(fx.evm)},{name:"iToken Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"huobiwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"huobiwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/i_token_wallet.jpg",blockchains:n(fx.evm)},{name:"Huddln",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"huddln:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"huddln:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/huddln.jpg",blockchains:n(fx.evm)},{name:"Eidoo",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"eidoo:",universal:"https://eidoo.io/crypto-wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"eidoo:",universal:"https://eidoo.io/crypto-wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/eidoo.jpg",blockchains:n(fx.evm)},{name:"Timeless Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"timeless-wallet:",universal:"https://timelesswallet.xyz",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"timeless-wallet:",universal:"https://timelesswallet.xyz",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/timeless.jpg",blockchains:n(fx.evm)},{name:"CoolWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coolwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coolwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cool_wallet.jpg",blockchains:n(fx.evm)},{name:"Unstoppable Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"unstoppable.money://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"unstoppable.money://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/unstoppable.jpg",blockchains:n(fx.evm)},{name:"AlphaWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"awallet:",universal:"https://aw.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"awallet:",universal:"https://aw.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/alpha_wallet.jpg",blockchains:n(fx.evm)},{name:"Pillar",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pillarwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pillarwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pillar.jpg",blockchains:n(fx.evm)},{name:"D'CENT Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dcent:",universal:"https://link.dcentwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dcent:",universal:"https://link.dcentwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/dcent.jpg",blockchains:n(fx.evm)},{name:"ZelCore",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zel:",universal:"https://link.zel.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zel:",universal:"https://link.zel.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zel_core.jpg",blockchains:n(fx.evm)},{name:"Nash",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"nash:",universal:"https://nash.io/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"nash:",universal:"https://nash.io/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nash.jpg",blockchains:n(fx.evm)},{name:"Coinomi",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://coinomi.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://coinomi.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coinomi.jpg",blockchains:n(fx.evm)},{name:"CYBAVO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cybavowallet:",universal:"https://cdn.cybavo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cybavowallet:",universal:"https://cdn.cybavo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cybavo.jpg",blockchains:n(fx.evm)},{name:"Tokenary",desktop:{native:"tokenary:",universal:"https://tokenary.io",connect:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/tokenary.jpg",blockchains:n(fx.evm)},{name:"Torus",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/torus.jpg",blockchains:n(fx.evm)},{name:"SafePal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"safepalwallet",universal:"https://link.safepal.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safepalwallet",universal:"https://link.safepal.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safepal.jpg",blockchains:n(fx.evm)},{name:"Infinity Wallet",desktop:{native:"infinity:",universal:"https://infinitywallet.io/",connect:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/infinity_wallet.jpg",blockchains:n(fx.evm)},{name:"Bridge Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bridgewallet:",universal:"https://bridge.mtpelerin.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bridgewallet:",universal:"https://bridge.mtpelerin.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mtperlin.jpg",blockchains:n(fx.evm)},{name:"SparkPoint",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"sparkpoint:",universal:"https://sparkpoint.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"sparkpoint:",universal:"https://sparkpoint.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/sparkpoint.jpg",blockchains:n(fx.evm)},{name:"PEAKDEFI Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"peakdefiwallet:",universal:"https://peakdefi.com/download",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"peakdefiwallet:",universal:"https://peakdefi.com/download",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/peakdefi.jpg",blockchains:n(fx.evm)},{name:"AT.Wallet",desktop:{native:"atwallet:",qr:"WalletConnectV2",connect:"WalletConnectV2"},mobile:{ios:{native:"atwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"atwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/atwallet.jpg",blockchains:n(fx.evm)},{name:"Ellipal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ellipal:",universal:"https://www.ellipal.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ellipal:",universal:"https://www.ellipal.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ellipal.jpg",blockchains:n(fx.evm)},{name:"Aktionariat",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"aktionariat:",universal:"https://app.aktionariat.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"aktionariat:",universal:"https://app.aktionariat.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/aktionariat.jpg",blockchains:n(fx.evm)},{name:"Talken Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"talken-wallet:",universal:"https://talken.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"talken-wallet:",universal:"https://talken.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/talken.jpg",blockchains:n(fx.evm)},{name:"KyberSwap",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kyberswap:",universal:"https://kyberswapnew.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kyberswap:",universal:"https://kyberswapnew.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kyberswap.jpg",blockchains:n(fx.evm)},{name:"Tongue Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tongue:",universal:"https://www.tongue.fi",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tongue:",universal:"https://www.tongue.fi",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tongue.jpg",blockchains:n(fx.evm)},{name:"RWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"rwallet:",universal:"https://www.rwallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"rwallet:",universal:"https://www.rwallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rwallet.jpg",blockchains:n(fx.evm)},{name:"O3Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"o3wallet:",universal:"https://o3.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"o3wallet:",universal:"https://o3.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/o3wallet.jpg",blockchains:n(fx.evm)},{name:"HashKey Me",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hashme:",universal:"https://me.hashkey.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hashme:",universal:"https://me.hashkey.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/hashkeyme.jpg",blockchains:n(fx.evm)},{name:"Guarda Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/guarda.jpg",blockchains:n(fx.evm)},{name:"Defiant",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"defiantapp:",universal:"https://defiantapp.tech",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"defiantapp:",universal:"https://defiantapp.tech",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/defiant.jpg",blockchains:n(fx.evm)},{name:"Valora",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"celo://wallet",universal:"https://valoraapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"celo://wallet",universal:"https://valoraapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/valora.jpg",blockchains:n(fx.evm)},{name:"Celo Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"celowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"celowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/celo.jpg",blockchains:n(fx.evm)},{name:"Elastos Essentials",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"essentials:",universal:"https://essentials.elastos.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"essentials:",universal:"https://essentials.elastos.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/elastos_essentials.jpg",blockchains:n(fx.evm)},{name:"Stasis",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"stasis:",universal:"https://app.stasis.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"stasis:",universal:"https://app.stasis.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/stasis.jpg",blockchains:n(fx.evm)},{name:"JulWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"julwallet:",universal:"https://justliquidity.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"julwallet:",universal:"https://justliquidity.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/julwallet.jpg",blockchains:n(fx.evm)},{name:"Bitpie",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitpie:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitpie:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitpie.jpg",blockchains:n(fx.evm)},{name:"Minerva Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"minerva:",universal:"https://minerva.digital",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"minerva:",universal:"https://minerva.digital",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/minerva.jpg",blockchains:n(fx.evm)},{name:"Tangem",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tangem:",universal:"https://app.tangem.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tangem:",universal:"https://app.tangem.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tangem.jpg",blockchains:n(fx.evm)},{name:"ioPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/io_pay.jpg",blockchains:n(fx.evm)},{name:"Coinhub",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/coinhub.jpg",blockchains:n(fx.evm)},{name:"Go Pocket",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/gopocket.jpg",blockchains:n(fx.evm)},{name:"Wallet 3",desktop:{native:"wallet3:",qr:"WalletConnectV2"},mobile:{ios:{native:"wallet3:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wallet3:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wallet3.jpg",blockchains:n(fx.evm)},{name:"yiToken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"yitoken:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"yitoken:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/yitoken.jpg",blockchains:n(fx.evm)},{name:"DID Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abt:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abt:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/didwallet.jpg",blockchains:n(fx.evm)},{name:"Shinobi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/shinobi_wallet.jpg",blockchains:n(fx.evm)},{name:"AirGap Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"airgap-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"airgap-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/air_gap_wallet.jpg",blockchains:n(fx.evm)},{name:"SecuX",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"secux://",universal:"https://wsweb.secuxtech.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"secux://",universal:"https://wsweb.secuxtech.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/secux.jpg",blockchains:n(fx.evm)},{name:"Orange",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"orangewallet:",universal:"https://link.orangewallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"orangewallet:",universal:"https://link.orangewallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/orange.jpg",blockchains:n(fx.evm)},{name:"Krystal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"krystalWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"krystalWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/krystal.jpg",blockchains:n(fx.evm)},{name:"Kriptomat",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kriptomatapp://wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kriptomatapp://wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kriptomat.jpg",blockchains:n(fx.evm)},{name:"Ambire Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ambire:",universal:"https://mobile.ambire.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ambire:",universal:"https://mobile.ambire.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ambire_wallet.jpg",blockchains:n(fx.evm)},{name:"PayBolt",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"paybolt://Wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"paybolt://Wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pay_bolt.jpg",blockchains:n(fx.evm)},{name:"OKX",extensions:["OKXEVM","OKXSVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"okex://main",connect:"WalletConnectV2",qr:"WalletConnectV2",open:function(){return"okx://wallet/dapp/url?dappUrl=".concat(encodeURIComponent(window.location.toString()))}},android:{native:"okex://main",connect:"WalletConnectV2",qr:"WalletConnectV2",open:function(){return"okx://wallet/dapp/url?dappUrl=".concat(encodeURIComponent(window.location.toString()))}}},logo:null===(ix=LE.OKXEVM)||void 0===ix||null===(ox=ix.info)||void 0===ox?void 0:ox.logo,blockchains:n(fx.evm)},{name:"Mask Network",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/mask_network.jpg",blockchains:n(fx.evm)},{name:"Uniblow",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/uniblow.jpg",blockchains:n(fx.evm)},{name:"Autonomy: Digital Art Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"autonomy-wc",universal:"https://autonomy.io/apps/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"autonomy-wc",universal:"https://autonomy.io/apps/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/autonomy.jpg",blockchains:n(fx.evm)},{name:"Lilico",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"lilico://",universal:"https://link.lilico.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"lilico://",universal:"https://link.lilico.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/lilico.jpg",blockchains:n(fx.evm)},{name:"Fireblocks",desktop:{universal:"https://console.fireblocks.io/v2",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"fireblocks-wc://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"fireblocks-wc://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/fireblocks.jpg",blockchains:n(fx.evm)},{name:"WATT ME",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"wattwallet://wallet-connect/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wattwallet://wallet-connect/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wattme.jpg",blockchains:n(fx.evm)},{name:"Coingrig",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coingrig://",universal:"https://link.coingrig.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coingrig://",universal:"https://link.coingrig.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coingrig.jpg",blockchains:n(fx.evm)},{name:"Cryptnox Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/cryptnox_wallet.jpg",blockchains:n(fx.evm)},{name:"bobablocks",desktop:{native:"bobablocks://",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"bobablocks://",universal:"https://app.bobablocks.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bobablocks://",universal:"https://app.bobablocks.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bobablocks.jpg",blockchains:n(fx.evm)},{name:"Plasma Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"plasmawallet:",universal:"https://plasma-wallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"plasmawallet:",universal:"https://plasma-wallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/plasma_wallet.jpg",blockchains:n(fx.evm)},{name:"HUMBL WALLET",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"humblwallet:",universal:"https://wallet.search3.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"humblwallet:",universal:"https://wallet.search3.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/humbl_wallet.jpg",blockchains:n(fx.evm)},{name:"Zelus",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zeluswallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zeluswallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zelus.jpg",blockchains:n(fx.evm)},{name:"Earth Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"earthwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"earthwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/earth_wallet.jpg",blockchains:n(fx.evm)},{name:"Boba Multisig",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/boba_multisig.jpg",blockchains:n(fx.evm)},{name:"EASY",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"co.theeasy.app://",universal:"https://link.easy.me",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"co.theeasy.app://",universal:"https://link.easy.me",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/easy.jpg",blockchains:n(fx.evm)},{name:"ISLAMIwallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"islamiwallet://islami.com/path/",universal:"https://islamiwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"islamiwallet://islami.com/path/",universal:"https://islamiwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/islam_iwallet.jpg",blockchains:n(fx.evm)},{name:"Card Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cardwallet://",universal:"https://wallet.cardstack.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cardwallet://",universal:"https://wallet.cardstack.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/card_wallet.jpg",blockchains:n(fx.evm)},{name:"GameStop Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/game_stop_wallet.jpg",blockchains:n(fx.evm)},{name:"RealT Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/real_t_wallet.jpg",blockchains:n(fx.evm)},{name:"PLTwallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pltwallet:",universal:"https://pltwallet.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pltwallet:",universal:"https://pltwallet.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pl_twallet.jpg",blockchains:n(fx.evm)},{name:"Avacus",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"avacus://",universal:"https://avacus.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"avacus://",universal:"https://avacus.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/avacus.jpg",blockchains:n(fx.evm)},{name:"StrikeX Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"strikex://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"strikex://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/strike_x_wallet.jpg",blockchains:n(fx.evm)},{name:"BCERTin wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/bcer_tin_wallet.jpg",blockchains:n(fx.evm)},{name:"Edge Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"edge://",universal:"https://deep.edge.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"edge://",universal:"https://deep.edge.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/edge_wallet.jpg",blockchains:n(fx.evm)},{name:"Freedom Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"freedom-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"freedom-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/freedom_wallet.jpg",blockchains:n(fx.evm)},{name:"Assure",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"assure://",universal:"https://www.assure.pro/Official",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"assure://",universal:"https://www.assure.pro/Official",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/assure.jpg",blockchains:n(fx.evm)},{name:"Cosmostation",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cosmostation://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cosmostation://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cosmostation.jpg",blockchains:n(fx.evm)},{name:"THORWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"thorwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"thorwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/thor_wallet.jpg",blockchains:n(fx.evm)},{name:"Gryfyn",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/gryfyn.jpg",blockchains:n(fx.evm)},{name:"CoinStats",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coinstats:",universal:"https://coinstats.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coinstats:",universal:"https://coinstats.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coin_stats.jpg",blockchains:n(fx.evm)},{name:"Abra Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abra:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abra:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/abra_wallet.jpg",blockchains:n(fx.evm)},{name:"Opera Crypto Browser",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cryptobrowser://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cryptobrowser://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/opera_crypto_browser.jpg",blockchains:n(fx.evm)},{name:"Keywallet Touch",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"keywalletTouch://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"keywalletTouch://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keywallet_touch.jpg",blockchains:n(fx.evm)},{name:"Enno Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ennowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ennowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/enno_wallet.jpg",blockchains:n(fx.evm)},{name:"A4 Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/a4_wallet.jpg",blockchains:n(fx.evm)},{name:"Bitcoin.com Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitcoincom://",universal:"https://wallet.bitcoin.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitcoincom://",universal:"https://wallet.bitcoin.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitcoincom.jpg",blockchains:n(fx.evm)},{name:"Defiant",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"defiantapp://",universal:"https://defiantapp.tech/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"defiantapp://",universal:"https://defiantapp.tech/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/defiant.jpg",blockchains:n(fx.evm)},{name:"Chain",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/chain.jpg",blockchains:n(fx.evm)},{name:"Verso",desktop:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/verso.jpg",blockchains:n(fx.evm)},{name:"LOBSTR Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"lobstr://",universal:"https://lobstr.co/uni/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"lobstr://",universal:"https://lobstr.co/uni/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/lobstr_wallet.jpg",blockchains:n(fx.evm)},{name:"Bifrost Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bifrostwallet:",universal:"https://app.bifrostwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bifrostwallet:",universal:"https://app.bifrostwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bifrost_wallet.jpg",blockchains:n(fx.evm)},{name:"Okse Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oksewallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oksewallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/okse_wallet.jpg",blockchains:n(fx.evm)},{name:"BRISE Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/brise_wallet.jpg",blockchains:n(fx.evm)},{name:"HyperPay",extension:"HyperPay",desktop:{qr:"WalletConnectV2"},logo:null===(ax=LE.HyperPay)||void 0===ax||null===(sx=ax.info)||void 0===sx?void 0:sx.logo,blockchains:n(fx.evm)},{name:"ATON",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/aton.jpg",blockchains:n(fx.evm)},{name:"Frontier",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"frontier://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"frontier://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/frontier.jpg",blockchains:n(fx.evm)},{name:"MDAO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ttmwalletapp://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ttmwalletapp://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mdao_wallet.jpg",blockchains:n(fx.evm)},{name:"TTM Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ttmwalletapp:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ttmwalletapp:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ttm_wallet.jpg",blockchains:n(fx.evm)},{name:"Opto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"opto://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"opto://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/opto_wallet.jpg",blockchains:n(fx.evm)},{name:"XFUN Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"xfunwallet://",universal:"https://xfun.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"xfunwallet://",universal:"https://xfun.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/xfun_wallet.jpg",blockchains:n(fx.evm)},{name:"Exodus",extensions:["ExodusEVM","ExodusSVM"],desktop:{native:"exodus://",qr:"WalletConnectV2"},mobile:{ios:{native:"exodus://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"exodus://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/exodus.jpg",blockchains:n(fx)},{name:"Uvtoken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"UvToken://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"UvToken://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uv_token.jpg",blockchains:n(fx.evm)},{name:"PREMA Wallet",desktop:{native:"premawallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"premawallet:",universal:"https://premanft.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"premawallet:",universal:"https://premanft.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/prema_wallet.jpg",blockchains:n(fx.evm)},{name:"Shinobi-Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/shinobi.jpg",blockchains:n(fx.evm)},{name:"ByteBank",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hideoutWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hideoutWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/byte_bank.jpg",blockchains:n(fx.evm)},{name:"Ancrypto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ancrypto://app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ancrypto://app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ancrypto_wallet.jpg",blockchains:n(fx.evm)},{name:"Bee Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"beewallet.app://",universal:"https://beewallet.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"beewallet.app://",universal:"https://beewallet.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bee_wallet.jpg",blockchains:n(fx.evm)},{name:"LATOKEN Multichain DeFi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dfwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dfwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/latoken_multichain_de_fi_wallet.jpg",blockchains:n(fx.evm)},{name:"TK Finance",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tk://",universal:"https://trustkeys.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tk://",universal:"https://trustkeys.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tk_finance.jpg",blockchains:n(fx.evm)},{name:"Oxalus Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oxalus://",universal:"https://deeplink.oxalus.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oxalus://",universal:"https://deeplink.oxalus.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/oxalus_wallet.jpg",blockchains:n(fx.evm)},{name:"3S Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bhcwallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bhcwallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/3_s_wallet.jpg",blockchains:n(fx.evm)},{name:"Klever Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kleverwallet:",universal:"https://klever.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kleverwallet:",universal:"https://klever.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/klever_wallet.jpg",blockchains:n(fx.evm)},{name:"OneKey",desktop:{native:"onekey-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"onekey-wallet://",universal:"https://app.onekey.so/wc/connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"onekey-wallet://",universal:"https://app.onekey.so/wc/connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/one_key.jpg",blockchains:n(fx.evm)},{name:"helix id",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"helix-id://helix-id.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"helix-id://helix-id.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/helix_id.jpg",blockchains:n(fx.evm)},{name:"ABC Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abc-wallet://abcwc",universal:"https://abcwalletconnect.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abc-wallet://abcwc",universal:"https://abcwalletconnect.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/abcwallet.jpg",blockchains:n(fx.evm)},{name:"HaHa",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"haha://",universal:"https://haha.me",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"haha://",universal:"https://haha.me",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/haha.jpg",blockchains:n(fx.evm)},{name:"Volt: DeFi",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"volt:",universal:"https://get.voltage.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"volt:",universal:"https://get.voltage.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/volt.jpg",blockchains:n(fx.evm)},{name:"Wirex Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"wirexwallet://",universal:"https://wwallet.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wirexwallet://",universal:"https://wwallet.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wirex_wallet.jpg",blockchains:n(fx.evm)},{name:"Robinhood Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"robinhood-wallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"robinhood-wallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/robinhood_wallet.jpg",blockchains:n(fx.evm)},{name:"RiceWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ricewallet",universal:"https://ricewallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ricewallet",universal:"https://ricewallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rice_wallet.jpg",blockchains:n(fx.evm)},{name:"SafeMoon",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"safemoon:",universal:"https://safemoon.net/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safemoon:",universal:"https://safemoon.net/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safemoon.jpg",blockchains:n(fx.evm)},{name:"SimpleHold",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"simplehold://",universal:"https://simplehold.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"simplehold://",universal:"https://simplehold.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/simple_hold.jpg",blockchains:n(fx.evm)},{name:"GoldBit",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"goldbit://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"goldbit://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/gold_bit.jpg",blockchains:n(fx.evm)},{name:"ioPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/iopay.jpg",blockchains:n(fx.evm)},{name:"Bitizen",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitizen://wallet",universal:"https://bitizen.org/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitizen://wallet",universal:"https://bitizen.org/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitizen.jpg",blockchains:n(fx.evm)},{name:"Slavi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"slaviwallet:",universal:"https://www.slaviwallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"slaviwallet:",universal:"https://www.slaviwallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/slavi_wallet.jpg",blockchains:n(fx.evm)},{name:"Nufinetes",desktop:{native:"vimwallet:/",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"vimwallet:/",universal:"https://apple.vimworld.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"vimwallet:/",universal:"https://apple.vimworld.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nufinetes.jpg",blockchains:n(fx.evm)},{name:"Arianee Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"com.arianee.wallet",universal:"https://arianee.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"com.arianee.wallet",universal:"https://arianee.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/arianee_wallet.jpg",blockchains:n(fx.evm)},{name:"NOW Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"walletnow://",universal:"https://walletnow.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"walletnow://",universal:"https://walletnow.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/now_wallet.jpg",blockchains:n(fx.evm)},{name:"Arculus Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"arculuswc:",universal:"https://gw.arculus.co/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"arculuswc:",universal:"https://gw.arculus.co/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/arculus_wallet.jpg",blockchains:n(fx.evm)},{name:"Linen",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"linen:",universal:"https://linen.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"linen:",universal:"https://linen.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/linen.jpg",blockchains:n(fx.evm)},{name:"Nitrogen Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://nitrogen.org/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://nitrogen.org/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nitrogen_wallet.jpg",blockchains:n(fx.evm)},{name:"ApolloX",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.apollox.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.apollox.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/apollo_x.jpg",blockchains:n(fx.evm)},{name:"ID Pocket",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/id_pocket.jpg",blockchains:n(fx.evm)},{name:"CoinCircle",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://coincircle.com/app/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://coincircle.com/app/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coin_circle.jpg",blockchains:n(fx.evm)},{name:"SahalWallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/sahal_wallet.jpg",blockchains:n(fx.evm)},{name:"UPBOND Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/upbond_wallet.jpg",blockchains:n(fx.evm)},{name:"Sequence Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://sequence.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://sequence.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/sequence_wallet.jpg",blockchains:n(fx.evm)},{name:"LocalTrade Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://ws.lab.localtrade.cc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://ws.lab.localtrade.cc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/local_trade_wallet.jpg",blockchains:n(fx.evm)},{name:"Loopring Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/loopring_wallet.jpg",blockchains:n(fx.evm)},{name:"Vision: Crypto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.vision-crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.vision-crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/vision.jpg",blockchains:n(fx.evm)},{name:"Ballet Crypto",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/ballet_crypto.jpg",blockchains:n(fx.evm)},{name:"Pitaka",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pitaka://",universal:"https://app.pitaka.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pitaka://",universal:"https://app.pitaka.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pitaka.jpg",blockchains:n(fx.evm)},{name:"AbsoluteWallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/absolute_wallet.jpg",blockchains:n(fx.evm)},{name:"The Parallel",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/the_parallel.jpg",blockchains:n(fx.evm)},{name:"CypherD Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/cypher_d_wallet.jpg",blockchains:n(fx.evm)},{name:"Keplr",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/keplr.jpg",blockchains:n(fx.evm)},{name:"MyWalliD",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/my_walli_d.jpg",blockchains:n(fx.evm)},{name:"Status",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/status.jpg",blockchains:n(fx.evm)},{name:"Monarch Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://monarchwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://monarchwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/monarch_wallet.jpg",blockchains:n(fx.evm)},{name:"Marble",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.marblewallet.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.marblewallet.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/marble.jpg",blockchains:n(fx.evm)},{name:"Flooz",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.flooz.trade/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.flooz.trade/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/flooz.jpg",blockchains:n(fx.evm)},{name:"Blockchain.com",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://login.blockchain.com/deeplink/login/wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://login.blockchain.com/deeplink/login/wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/blockchaincom.jpg",blockchains:n(fx.evm)},{name:"Dohrnii Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/dohrnii_wallet.jpg",blockchains:n(fx.evm)},{name:"UniPass",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.unipass.id",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.unipass.id",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uni_pass.jpg",blockchains:n(fx.evm)},{name:"ZenGo",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zengo://get.zengo.com/",universal:"https://get.zengo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zengo://get.zengo.com/",universal:"https://get.zengo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zengo2.png",blockchains:n(fx.evm)},{name:"Locker Token",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/locker_token.jpg",blockchains:n(fx.evm)},{name:"Keeper",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://link.keeper-wallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://link.keeper-wallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keeper.jpg",blockchains:n(fx.evm)},{name:"XDEFI Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/xdefi_wallet.jpg",blockchains:n(fx.evm)},{name:"Numio",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/numio.jpg",blockchains:n(fx.evm)},{name:"Neon Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/neon_wallet.jpg",blockchains:n(fx.evm)},{name:"Nabox",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://nabox.io/app/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://nabox.io/app/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nabox.jpg",blockchains:n(fx.evm)},{name:"Snowball",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.snowball.exchange/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.snowball.exchange/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/snowball.jpg",blockchains:n(fx.evm)},{name:"KryptoGO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://kryptogo.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://kryptogo.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/krypto_go_wallet.jpg",blockchains:n(fx.evm)},{name:"Payperless",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/payperless.jpg",blockchains:n(fx.evm)},{name:"Brave Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/brave_wallet.jpg",blockchains:n(fx.evm)},{name:"Crossmint",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/crossmint.jpg",blockchains:n(fx.evm)},{name:"Safematrix",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://safematrix.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://safematrix.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safematrix.jpg",blockchains:n(fx.evm)},{name:"pier",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://pierwallet.com/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://pierwallet.com/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pier.jpg",blockchains:n(fx.evm)},{name:"FILWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://h5.filwallet.co",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://h5.filwallet.co",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/fil_wallet.jpg",blockchains:n(fx.evm)},{name:"ParaSwap Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.paraswap.io/#/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.paraswap.io/#/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/para_swap_wallet.jpg",blockchains:n(fx.evm)},{name:"Bitski",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitski:",universal:"https://wallet.bitski.com/walletconnect/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitski:",universal:"https://wallet.bitski.com/walletconnect/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitski.jpg",blockchains:n(fx.evm)},{name:"Hippo Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hippowallet://",universal:"https://hippowallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hippowallet://",universal:"https://hippowallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/hippo_wallet.jpg",blockchains:n(fx.evm)},{name:"Core",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://core.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://core.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/core.jpg",blockchains:n(fx.evm)},{name:"Xcapit",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.xcapit.com/links",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.xcapit.com/links",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/xcapit.jpg",blockchains:n(fx.evm)},{name:"Paper",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://withpaper.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://withpaper.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/paper_wallet.jpg",blockchains:n(fx.evm)},{name:"MetaOne",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"metaone:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"metaone:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/metaone.jpg",blockchains:n(fx.evm)},{name:"Enjin Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"enjinwallet:",universal:"https://deeplink.wallet.enjin.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"enjinwallet:",universal:"https://deeplink.wallet.enjin.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/enjin.jpg",blockchains:n(fx.evm)},{name:"BC Vault",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/bc_vault.jpg",blockchains:n(fx.evm)},{name:"Ethereum Wallet",extension:"WindowEthereum",logo:null===(ux=LE.WindowEthereum)||void 0===ux||null===(cx=ux.info)||void 0===cx?void 0:cx.logo,blockchains:n(fx.evm)},{name:"Solana Pay",desktop:{solanaPay:!0},mobile:{ios:{solanaPay:!0},android:{solanaPay:!0}},logo:null===(lx=Hf.solana)||void 0===lx?void 0:lx.logo,blockchains:n(fx.solana)},{name:"Solana Wallet",extension:"WindowSolana",desktop:{solanaPay:!0},mobile:{ios:{solanaPay:!0},android:{solanaPay:!0}},logo:null===(hx=LE.WindowSolana)||void 0===hx||null===(dx=hx.info)||void 0===dx?void 0:dx.logo,blockchains:n(fx.solana)},{name:"WalletConnect",desktop:{qr:"WalletConnectV2"},logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PSc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LDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:n(fx.evm)}].filter((function(t){return t.blockchains.filter(Boolean).length>0}));function yx(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function mx(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){yx(o,r,i,a,s,"next",t)}function s(t){yx(o,r,i,a,s,"throw",t)}a(void 0)}))}}function gx(t){return(gx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var vx=Zf((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",y={};function m(){}function g(){}function v(){}var w={};u(w,o,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(L([])));M&&M!==n&&r.call(M,o)&&(w=M);var A=v.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));function wx(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()} +e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d=n?-1:1,f=t[e+h];for(h+=d,o=f&(1<<-l)-1,f>>=-l,l+=s;l>0;o=256*o+t[e+h],h+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+h],h+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(f?-1:1);a+=Math.pow(2,r),o-=c}return(f?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,p=r?1:-1,y=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),(e+=a+h>=1?d/u:d*Math.pow(2,1-h))*u>=2&&(a++,u/=2),a+h>=l?(s=0,a=l):a+h>=1?(s=(e*u-1)*Math.pow(2,i),a+=h):(s=e*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;t[n+f]=255&s,f+=p,s/=256,i-=8);for(a=a<0;t[n+f]=255&a,f+=p,a/=256,c-=8);t[n+f-p]|=128*y}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e){},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const r=n(88),i=n(104),o=n(89);function a(t,e){const[n,o]=u(e);return new r.EthereumRpcError(t,n||i.getMessageFromCode(t),o)}function s(t,e){const[n,o]=u(e);return new r.EthereumProviderError(t,n||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:t=>a(o.errorCodes.rpc.parse,t),invalidRequest:t=>a(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>a(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>a(o.errorCodes.rpc.methodNotFound,t),internal:t=>a(o.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(e,t)},invalidInput:t=>a(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>a(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>a(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>a(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>a(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>a(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>s(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>s(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>s(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>s(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>s(o.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:i}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(e,n,i)}}}},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(135),e.sha1=n(136),e.sha224=n(137),e.sha256=n(105),e.sha384=n(138),e.sha512=n(106)},function(t,e,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<30|t>>>2}function l(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var d=0;d<80;++d){var f=~~(d/20),p=0|((e=r)<<5|e>>>27)+l(f,i,o,s)+u+n[d]+a[f];u=s,s=o,o=c(i),i=r,r=p}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(24),i=n(45),o=n(37).Buffer,a=[1518500249,1859775393,-1894007588,-899497514],s=new Array(80);function u(){this.init(),this._w=s,i.call(this,64,56)}function c(t){return t<<5|t>>>27}function l(t){return t<<30|t>>>2}function h(t,e,n,r){return 0===t?e&n|~e&r:2===t?e&n|e&r|n&r:e^n^r}r(u,i),u.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},u.prototype._update=function(t){for(var e,n=this._w,r=0|this._a,i=0|this._b,o=0|this._c,s=0|this._d,u=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var f=0;f<80;++f){var p=~~(f/20),y=c(r)+h(p,i,o,s)+u+n[f]+a[p]|0;u=s,s=o,o=l(i),i=r,r=y}this._a=r+this._a|0,this._b=i+this._b|0,this._c=o+this._c|0,this._d=s+this._d|0,this._e=u+this._e|0},u.prototype._hash=function(){var t=o.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=u},function(t,e,n){var r=n(24),i=n(105),o=n(45),a=n(37).Buffer,s=new Array(64);function u(){this.init(),this._w=s,o.call(this,64,56)}r(u,i),u.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},u.prototype._hash=function(){var t=a.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=u},function(t,e,n){var r=n(24),i=n(106),o=n(45),a=n(37).Buffer,s=new Array(160);function u(){this.init(),this._w=s,o.call(this,128,112)}r(u,i),u.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},u.prototype._hash=function(){var t=a.allocUnsafe(48);function e(e,n,r){t.writeInt32BE(e,r),t.writeInt32BE(n,r+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=u},function(t,e,n){var r=n(140),i=n(151),o=n(94);t.exports={formats:o,parse:i,stringify:r}},function(t,e,n){var r=n(141),i=n(107),o=n(94),a=Object.prototype.hasOwnProperty,s={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},u=Array.isArray,c=Array.prototype.push,l=function(t,e){c.apply(t,u(e)?e:[e])},h=Date.prototype.toISOString,d=o.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,format:d,formatter:o.formatters[d],indices:!1,serializeDate:function(t){return h.call(t)},skipNulls:!1,strictNullHandling:!1},p={},y=function t(e,n,o,a,s,c,h,d,y,m,g,v,w,b,M,A){for(var I,N=e,E=A,x=0,k=!1;void 0!==(E=E.get(p))&&!k;){var T=E.get(e);if(x+=1,void 0!==T){if(T===x)throw new RangeError("Cyclic object value");k=!0}void 0===E.get(p)&&(x=0)}if("function"==typeof d?N=d(n,N):N instanceof Date?N=g(N):"comma"===o&&u(N)&&(N=i.maybeMap(N,(function(t){return t instanceof Date?g(t):t}))),null===N){if(s)return h&&!b?h(n,f.encoder,M,"key",v):n;N=""}if("string"==typeof(I=N)||"number"==typeof I||"boolean"==typeof I||"symbol"==typeof I||"bigint"==typeof I||i.isBuffer(N))return h?[w(b?n:h(n,f.encoder,M,"key",v))+"="+w(h(N,f.encoder,M,"value",v))]:[w(n)+"="+w(String(N))];var L,S=[];if(void 0===N)return S;if("comma"===o&&u(N))b&&h&&(N=i.maybeMap(N,h)),L=[{value:N.length>0?N.join(",")||null:void 0}];else if(u(d))L=d;else{var j=Object.keys(N);L=y?j.sort(y):j}for(var C=a&&u(N)&&1===N.length?n+"[]":n,D=0;D0?M+b:""}},function(t,e,n){var r=n(92),i=n(147),o=n(149),a=r("%TypeError%"),s=r("%WeakMap%",!0),u=r("%Map%",!0),c=i("WeakMap.prototype.get",!0),l=i("WeakMap.prototype.set",!0),h=i("WeakMap.prototype.has",!0),d=i("Map.prototype.get",!0),f=i("Map.prototype.set",!0),p=i("Map.prototype.has",!0),y=function(t,e){for(var n,r=t;null!==(n=r.next);r=n)if(n.key===e)return r.next=n.next,n.next=t.next,t.next=n,n};t.exports=function(){var t,e,n,r={assert:function(t){if(!r.has(t))throw new a("Side channel does not contain "+o(t))},get:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return c(t,r)}else if(u){if(e)return d(e,r)}else if(n)return function(t,e){var n=y(t,e);return n&&n.value}(n,r)},has:function(r){if(s&&r&&("object"==typeof r||"function"==typeof r)){if(t)return h(t,r)}else if(u){if(e)return p(e,r)}else if(n)return function(t,e){return!!y(t,e)}(n,r);return!1},set:function(r,i){s&&r&&("object"==typeof r||"function"==typeof r)?(t||(t=new s),l(t,r,i)):u?(e||(e=new u),f(e,r,i)):(n||(n={key:{},next:null}),function(t,e,n){var r=y(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}}(n,r,i))}};return r}},function(t,e,n){var r="undefined"!=typeof Symbol&&Symbol,i=n(143);t.exports=function(){return"function"==typeof r&&"function"==typeof Symbol&&"symbol"==typeof r("foo")&&"symbol"==typeof Symbol("bar")&&i()}},function(t,e,n){t.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var t={},e=Symbol("test"),n=Object(e);if("string"==typeof e)return!1;if("[object Symbol]"!==Object.prototype.toString.call(e))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(e in t[e]=42,t)return!1;if("function"==typeof Object.keys&&0!==Object.keys(t).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(t).length)return!1;var r=Object.getOwnPropertySymbols(t);if(1!==r.length||r[0]!==e)return!1;if(!Object.prototype.propertyIsEnumerable.call(t,e))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var i=Object.getOwnPropertyDescriptor(t,e);if(42!==i.value||!0!==i.enumerable)return!1}return!0}},function(t,e,n){var r={foo:{}},i=Object;t.exports=function(){return{__proto__:r}.foo===r.foo&&!({__proto__:null}instanceof i)}},function(t,e,n){var r="Function.prototype.bind called on incompatible ",i=Array.prototype.slice,o=Object.prototype.toString;t.exports=function(t){var e=this;if("function"!=typeof e||"[object Function]"!==o.call(e))throw new TypeError(r+e);for(var n,a=i.call(arguments,1),s=function(){if(this instanceof n){var r=e.apply(this,a.concat(i.call(arguments)));return Object(r)===r?r:this}return e.apply(t,a.concat(i.call(arguments)))},u=Math.max(0,e.length-a.length),c=[],l=0;l-1?i(n):n}},function(t,e,n){var r=n(93),i=n(92),o=i("%Function.prototype.apply%"),a=i("%Function.prototype.call%"),s=i("%Reflect.apply%",!0)||r.call(a,o),u=i("%Object.getOwnPropertyDescriptor%",!0),c=i("%Object.defineProperty%",!0),l=i("%Math.max%");if(c)try{c({},"a",{value:1})}catch(t){c=null}t.exports=function(t){var e=s(r,a,arguments);if(u&&c){var n=u(e,"length");n.configurable&&c(e,"length",{value:1+l(0,t.length-(arguments.length-1))})}return e};var h=function(){return s(r,o,arguments)};c?c(t.exports,"apply",{value:h}):t.exports.apply=h},function(t,e,n){var r="function"==typeof Map&&Map.prototype,i=Object.getOwnPropertyDescriptor&&r?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,o=r&&i&&"function"==typeof i.get?i.get:null,a=r&&Map.prototype.forEach,s="function"==typeof Set&&Set.prototype,u=Object.getOwnPropertyDescriptor&&s?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,c=s&&u&&"function"==typeof u.get?u.get:null,l=s&&Set.prototype.forEach,h="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,d="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,p=Boolean.prototype.valueOf,y=Object.prototype.toString,m=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,w=String.prototype.replace,b=String.prototype.toUpperCase,M=String.prototype.toLowerCase,A=RegExp.prototype.test,I=Array.prototype.concat,N=Array.prototype.join,E=Array.prototype.slice,x=Math.floor,k="function"==typeof BigInt?BigInt.prototype.valueOf:null,T=Object.getOwnPropertySymbols,L="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,S="function"==typeof Symbol&&"object"==typeof Symbol.iterator,j="function"==typeof Symbol&&Symbol.toStringTag&&(Symbol.toStringTag,1)?Symbol.toStringTag:null,C=Object.prototype.propertyIsEnumerable,D=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function O(t,e){if(t===1/0||t===-1/0||t!=t||t&&t>-1e3&&t<1e3||A.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof t){var r=t<0?-x(-t):x(t);if(r!==t){var i=String(r),o=v.call(e,i.length+1);return w.call(i,n,"$&_")+"."+w.call(w.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return w.call(e,n,"$&_")}var z=n(150),P=z.custom,_=Y(P)?P:null;function B(t,e,n){var r="double"===(n.quoteStyle||e)?'"':"'";return r+t+r}function R(t){return w.call(String(t),/"/g,""")}function U(t){return!("[object Array]"!==V(t)||j&&"object"==typeof t&&j in t)}function Q(t){return!("[object RegExp]"!==V(t)||j&&"object"==typeof t&&j in t)}function Y(t){if(S)return t&&"object"==typeof t&&t instanceof Symbol;if("symbol"==typeof t)return!0;if(!t||"object"!=typeof t||!L)return!1;try{return L.call(t),!0}catch(t){}return!1}t.exports=function t(e,n,r,i){var s=n||{};if(F(s,"quoteStyle")&&"single"!==s.quoteStyle&&"double"!==s.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(s,"maxStringLength")&&("number"==typeof s.maxStringLength?s.maxStringLength<0&&s.maxStringLength!==1/0:null!==s.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var u=!F(s,"customInspect")||s.customInspect;if("boolean"!=typeof u&&"symbol"!==u)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(F(s,"indent")&&null!==s.indent&&"\t"!==s.indent&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(F(s,"numericSeparator")&&"boolean"!=typeof s.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var y=s.numericSeparator;if(void 0===e)return"undefined";if(null===e)return"null";if("boolean"==typeof e)return e?"true":"false";if("string"==typeof e)return function t(e,n){if(e.length>n.maxStringLength){var r=e.length-n.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return t(v.call(e,0,n.maxStringLength),n)+i}return B(w.call(w.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,G),"single",n)}(e,s);if("number"==typeof e){if(0===e)return 1/0/e>0?"0":"-0";var b=String(e);return y?O(e,b):b}if("bigint"==typeof e){var A=String(e)+"n";return y?O(e,A):A}var x=void 0===s.depth?5:s.depth;if(void 0===r&&(r=0),r>=x&&x>0&&"object"==typeof e)return U(e)?"[Array]":"[Object]";var T=function(t,e){var n;if("\t"===t.indent)n="\t";else{if(!("number"==typeof t.indent&&t.indent>0))return null;n=N.call(Array(t.indent+1)," ")}return{base:n,prev:N.call(Array(e+1),n)}}(s,r);if(void 0===i)i=[];else if(H(i,e)>=0)return"[Circular]";function P(e,n,o){if(n&&(i=E.call(i)).push(n),o){var a={depth:s.depth};return F(s,"quoteStyle")&&(a.quoteStyle=s.quoteStyle),t(e,a,r+1,i)}return t(e,s,r+1,i)}if("function"==typeof e&&!Q(e)){var W=function(t){if(t.name)return t.name;var e=g.call(m.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}(e),$=K(e,P);return"[Function"+(W?": "+W:" (anonymous)")+"]"+($.length>0?" { "+N.call($,", ")+" }":"")}if(Y(e)){var tt=S?w.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):L.call(e);return"object"!=typeof e||S?tt:q(tt)}if(function(t){return!(!t||"object"!=typeof t)&&("undefined"!=typeof HTMLElement&&t instanceof HTMLElement||"string"==typeof t.nodeName&&"function"==typeof t.getAttribute)}(e)){for(var et="<"+M.call(String(e.nodeName)),nt=e.attributes||[],rt=0;rt"}if(U(e)){if(0===e.length)return"[]";var it=K(e,P);return T&&!function(t){for(var e=0;e=0)return!1;return!0}(it)?"["+X(it,T)+"]":"[ "+N.call(it,", ")+" ]"}if(function(t){return!("[object Error]"!==V(t)||j&&"object"==typeof t&&j in t)}(e)){var ot=K(e,P);return"cause"in Error.prototype||!("cause"in e)||C.call(e,"cause")?0===ot.length?"["+String(e)+"]":"{ ["+String(e)+"] "+N.call(ot,", ")+" }":"{ ["+String(e)+"] "+N.call(I.call("[cause]: "+P(e.cause),ot),", ")+" }"}if("object"==typeof e&&u){if(_&&"function"==typeof e[_]&&z)return z(e,{depth:x-r});if("symbol"!==u&&"function"==typeof e.inspect)return e.inspect()}if(function(t){if(!o||!t||"object"!=typeof t)return!1;try{o.call(t);try{c.call(t)}catch(t){return!0}return t instanceof Map}catch(t){}return!1}(e)){var at=[];return a&&a.call(e,(function(t,n){at.push(P(n,e,!0)+" => "+P(t,e))})),J("Map",o.call(e),at,T)}if(function(t){if(!c||!t||"object"!=typeof t)return!1;try{c.call(t);try{o.call(t)}catch(t){return!0}return t instanceof Set}catch(t){}return!1}(e)){var st=[];return l&&l.call(e,(function(t){st.push(P(t,e))})),J("Set",c.call(e),st,T)}if(function(t){if(!h||!t||"object"!=typeof t)return!1;try{h.call(t,h);try{d.call(t,d)}catch(t){return!0}return t instanceof WeakMap}catch(t){}return!1}(e))return Z("WeakMap");if(function(t){if(!d||!t||"object"!=typeof t)return!1;try{d.call(t,d);try{h.call(t,h)}catch(t){return!0}return t instanceof WeakSet}catch(t){}return!1}(e))return Z("WeakSet");if(function(t){if(!f||!t||"object"!=typeof t)return!1;try{return f.call(t),!0}catch(t){}return!1}(e))return Z("WeakRef");if(function(t){return!("[object Number]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(P(Number(e)));if(function(t){if(!t||"object"!=typeof t||!k)return!1;try{return k.call(t),!0}catch(t){}return!1}(e))return q(P(k.call(e)));if(function(t){return!("[object Boolean]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(p.call(e));if(function(t){return!("[object String]"!==V(t)||j&&"object"==typeof t&&j in t)}(e))return q(P(String(e)));if(!function(t){return!("[object Date]"!==V(t)||j&&"object"==typeof t&&j in t)}(e)&&!Q(e)){var ut=K(e,P),ct=D?D(e)===Object.prototype:e instanceof Object||e.constructor===Object,lt=e instanceof Object?"":"null prototype",ht=!ct&&j&&Object(e)===e&&j in e?v.call(V(e),8,-1):lt?"Object":"",dt=(ct||"function"!=typeof e.constructor?"":e.constructor.name?e.constructor.name+" ":"")+(ht||lt?"["+N.call(I.call([],ht||[],lt||[]),": ")+"] ":"");return 0===ut.length?dt+"{}":T?dt+"{"+X(ut,T)+"}":dt+"{ "+N.call(ut,", ")+" }"}return String(e)};var W=Object.prototype.hasOwnProperty||function(t){return t in this};function F(t,e){return W.call(t,e)}function V(t){return y.call(t)}function H(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n-1?t.split(","):t},c=function(t,e,n,r){if(t){var o=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,a=/(\[[^[\]]*])/g,s=n.depth>0&&/(\[[^[\]]*])/.exec(o),c=s?o.slice(0,s.index):o,l=[];if(c){if(!n.plainObjects&&i.call(Object.prototype,c)&&!n.allowPrototypes)return;l.push(c)}for(var h=0;n.depth>0&&null!==(s=a.exec(o))&&h=0;--o){var a,s=t[o];if("[]"===s&&n.parseArrays)a=[].concat(i);else{a=n.plainObjects?Object.create(null):{};var c="["===s.charAt(0)&&"]"===s.charAt(s.length-1)?s.slice(1,-1):s,l=parseInt(c,10);n.parseArrays||""!==c?!isNaN(l)&&s!==c&&String(l)===c&&l>=0&&n.parseArrays&&l<=n.arrayLimit?(a=[])[l]=i:"__proto__"!==c&&(a[c]=i):a={0:i}}i=a}return i}(l,e,n,r)}};t.exports=function(t,e){var n=function(t){if(!t)return a;if(null!==t.decoder&&void 0!==t.decoder&&"function"!=typeof t.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==t.charset&&"utf-8"!==t.charset&&"iso-8859-1"!==t.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var e=void 0===t.charset?a.charset:t.charset;return{allowDots:void 0===t.allowDots?a.allowDots:!!t.allowDots,allowPrototypes:"boolean"==typeof t.allowPrototypes?t.allowPrototypes:a.allowPrototypes,allowSparse:"boolean"==typeof t.allowSparse?t.allowSparse:a.allowSparse,arrayLimit:"number"==typeof t.arrayLimit?t.arrayLimit:a.arrayLimit,charset:e,charsetSentinel:"boolean"==typeof t.charsetSentinel?t.charsetSentinel:a.charsetSentinel,comma:"boolean"==typeof t.comma?t.comma:a.comma,decoder:"function"==typeof t.decoder?t.decoder:a.decoder,delimiter:"string"==typeof t.delimiter||r.isRegExp(t.delimiter)?t.delimiter:a.delimiter,depth:"number"==typeof t.depth||!1===t.depth?+t.depth:a.depth,ignoreQueryPrefix:!0===t.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof t.interpretNumericEntities?t.interpretNumericEntities:a.interpretNumericEntities,parameterLimit:"number"==typeof t.parameterLimit?t.parameterLimit:a.parameterLimit,parseArrays:!1!==t.parseArrays,plainObjects:"boolean"==typeof t.plainObjects?t.plainObjects:a.plainObjects,strictNullHandling:"boolean"==typeof t.strictNullHandling?t.strictNullHandling:a.strictNullHandling}}(e);if(""===t||null==t)return n.plainObjects?Object.create(null):{};for(var l="string"==typeof t?function(t,e){var n,c={__proto__:null},l=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,h=e.parameterLimit===1/0?void 0:e.parameterLimit,d=l.split(e.delimiter,h),f=-1,p=e.charset;if(e.charsetSentinel)for(n=0;n-1&&(m=o(m)?[m]:m),i.call(c,y)?c[y]=r.combine(c[y],m):c[y]=m}return c}(t,n):t,h=n.plainObjects?Object.create(null):{},d=Object.keys(l),f=0;f{if(void 0!==o[n])return["bytes32",null==s?"0x0000000000000000000000000000000000000000000000000000000000000000":r.keccak(this.encodeData(n,s,o,a))];if(void 0===s)throw new Error(`missing value for field ${t} of type ${n}`);if("bytes"===n)return["bytes32",r.keccak(s)];if("string"===n)return"string"==typeof s&&(s=e.from(s,"utf8")),["bytes32",r.keccak(s)];if(n.lastIndexOf("]")===n.length-1){const e=n.slice(0,n.lastIndexOf("[")),o=s.map((n=>c(t,e,n)));return["bytes32",r.keccak(i.rawEncode(o.map((([t])=>t)),o.map((([,t])=>t))))]}return[n,s]};for(const e of o[t]){const[t,r]=c(e.name,e.type,n[e.name]);s.push(t),u.push(r)}}else for(const i of o[t]){let t=n[i.name];if(void 0!==t)if("bytes"===i.type)s.push("bytes32"),t=r.keccak(t),u.push(t);else if("string"===i.type)s.push("bytes32"),"string"==typeof t&&(t=e.from(t,"utf8")),t=r.keccak(t),u.push(t);else if(void 0!==o[i.type])s.push("bytes32"),t=r.keccak(this.encodeData(i.type,t,o,a)),u.push(t);else{if(i.type.lastIndexOf("]")===i.type.length-1)throw new Error("Arrays currently unimplemented in encodeData");s.push(i.type),u.push(t)}}return i.rawEncode(s,u)},encodeType(t,e){let n="",r=this.findTypeDependencies(t,e).filter((e=>e!==t));r=[t].concat(r.sort());for(const t of r){if(!e[t])throw new Error("No type definition specified: "+t);n+=t+"("+e[t].map((({name:t,type:e})=>e+" "+t)).join(",")+")"}return n},findTypeDependencies(t,e,n=[]){if(t=t.match(/^\w*/)[0],n.includes(t)||void 0===e[t])return n;n.push(t);for(const r of e[t])for(const t of this.findTypeDependencies(r.type,e,n))!n.includes(t)&&n.push(t);return n},hashStruct(t,e,n,i=!0){return r.keccak(this.encodeData(t,e,n,i))},hashType(t,e){return r.keccak(this.encodeType(t,e))},sanitizeData(t){const e={};for(const n in o.properties)t[n]&&(e[n]=t[n]);return e.types&&(e.types=Object.assign({EIP712Domain:[]},e.types)),e},hash(t,n=!0){const i=this.sanitizeData(t),o=[e.from("1901","hex")];return o.push(this.hashStruct("EIP712Domain",i.domain,i.types,n)),"EIP712Domain"!==i.primaryType&&o.push(this.hashStruct(i.primaryType,i.message,i.types,n)),r.keccak(e.concat(o))}};t.exports={TYPED_MESSAGE_SCHEMA:o,TypedDataUtils:a,hashForSignTypedDataLegacy:function(t){return function(t){const e=new Error("Expect argument to be non-empty array");if("object"!=typeof t||!t.length)throw e;const n=t.map((function(t){return"bytes"===t.type?r.toBuffer(t.value):t.value})),o=t.map((function(t){return t.type})),a=t.map((function(t){if(!t.name)throw e;return t.type+" "+t.name}));return i.soliditySHA3(["bytes32","bytes32"],[i.soliditySHA3(new Array(t.length).fill("string"),a),i.soliditySHA3(o,n)])}(t.data)},hashForSignTypedData_v3:function(t){return a.hash(t.data,!1)},hashForSignTypedData_v4:function(t){return a.hash(t.data)}}}).call(this,n(19).Buffer)},function(t,e,n){t.exports=n(154)(n(165))},function(t,e,n){const r=n(155),i=n(164);t.exports=function(t){const e=r(t),n=i(t);return function(t,r){switch("string"==typeof t?t.toLowerCase():t){case"keccak224":return new e(1152,448,null,224,r);case"keccak256":return new e(1088,512,null,256,r);case"keccak384":return new e(832,768,null,384,r);case"keccak512":return new e(576,1024,null,512,r);case"sha3-224":return new e(1152,448,6,224,r);case"sha3-256":return new e(1088,512,6,256,r);case"sha3-384":return new e(832,768,6,384,r);case"sha3-512":return new e(576,1024,6,512,r);case"shake128":return new n(1344,256,31,r);case"shake256":return new n(1088,512,31,r);default:throw new Error("Invald algorithm: "+t)}}}},function(t,e,n){(function(e){const{Transform:r}=n(110);t.exports=t=>class n extends r{constructor(e,n,r,i,o){super(o),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._hashBitLength=i,this._options=o,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(t){r=t}n(r)}_flush(t){let e=null;try{this.push(this.digest())}catch(t){e=t}t(e)}update(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Digest already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}digest(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0,this._delimitedSuffix&&this._state.absorbLastFewBits(this._delimitedSuffix);let e=this._state.squeeze(this._hashBitLength/8);return void 0!==t&&(e=e.toString(t)),this._resetState(),e}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._hashBitLength,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n(19).Buffer)},function(t,e){},function(t,e,n){function r(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,n,r,i=s.allocUnsafe(t>>>0),o=this.head,a=0;o;)e=o.data,n=i,r=a,s.prototype.copy.call(e,n,r),a+=o.data.length,o=o.next;return i}},{key:"consume",value:function(t,e){var n;return ti.length?i.length:t;if(o===i.length?r+=i:r+=i.slice(0,t),0==(t-=o)){o===i.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=i.slice(o));break}++n}return this.length-=n,r}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,r=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var i=n.data,o=t>i.length?i.length:t;if(i.copy(e,e.length-t,0,o),0==(t-=o)){o===i.length?(++r,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=i.slice(o));break}++r}return this.length-=r,e}},{key:c,value:function(t,e){return u(this,i(i({},e),{},{depth:0,customInspect:!1}))}}])&&function(t,e){for(var n=0;n0,(function(t){r||(r=t),t&&a.forEach(c),o||(a.forEach(c),i(r))}))}));return e.reduce(l)}},function(t,e,n){(function(e){const{Transform:r}=n(110);t.exports=t=>class n extends r{constructor(e,n,r,i){super(i),this._rate=e,this._capacity=n,this._delimitedSuffix=r,this._options=i,this._state=new t,this._state.initialize(e,n),this._finalized=!1}_transform(t,e,n){let r=null;try{this.update(t,e)}catch(t){r=t}n(r)}_flush(){}_read(t){this.push(this.squeeze(t))}update(t,n){if(!e.isBuffer(t)&&"string"!=typeof t)throw new TypeError("Data must be a string or a buffer");if(this._finalized)throw new Error("Squeeze already called");return e.isBuffer(t)||(t=e.from(t,n)),this._state.absorb(t),this}squeeze(t,e){this._finalized||(this._finalized=!0,this._state.absorbLastFewBits(this._delimitedSuffix));let n=this._state.squeeze(t);return void 0!==e&&(n=n.toString(e)),n}_resetState(){return this._state.initialize(this._rate,this._capacity),this}_clone(){const t=new n(this._rate,this._capacity,this._delimitedSuffix,this._options);return this._state.copy(t._state),t._finalized=this._finalized,t}}}).call(this,n(19).Buffer)},function(t,e,n){(function(e){const r=n(166);function i(){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}i.prototype.initialize=function(t,e){for(let t=0;t<50;++t)this.state[t]=0;this.blockSize=t/8,this.count=0,this.squeezing=!1},i.prototype.absorb=function(t){for(let e=0;e>>this.count%4*8&255,this.count+=1,this.count===this.blockSize&&(r.p1600(this.state),this.count=0);return n},i.prototype.copy=function(t){for(let e=0;e<50;++e)t.state[e]=this.state[e];t.blockSize=this.blockSize,t.count=this.count,t.squeezing=this.squeezing},t.exports=i}).call(this,n(19).Buffer)},function(t,e){const 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];e.p1600=function(t){for(let e=0;e<24;++e){const r=t[0]^t[10]^t[20]^t[30]^t[40],i=t[1]^t[11]^t[21]^t[31]^t[41],o=t[2]^t[12]^t[22]^t[32]^t[42],a=t[3]^t[13]^t[23]^t[33]^t[43],s=t[4]^t[14]^t[24]^t[34]^t[44],u=t[5]^t[15]^t[25]^t[35]^t[45],c=t[6]^t[16]^t[26]^t[36]^t[46],l=t[7]^t[17]^t[27]^t[37]^t[47],h=t[8]^t[18]^t[28]^t[38]^t[48],d=t[9]^t[19]^t[29]^t[39]^t[49];let f=h^(o<<1|a>>>31),p=d^(a<<1|o>>>31);const y=t[0]^f,m=t[1]^p,g=t[10]^f,v=t[11]^p,w=t[20]^f,b=t[21]^p,M=t[30]^f,A=t[31]^p,I=t[40]^f,N=t[41]^p;f=r^(s<<1|u>>>31),p=i^(u<<1|s>>>31);const E=t[2]^f,x=t[3]^p,k=t[12]^f,T=t[13]^p,L=t[22]^f,S=t[23]^p,j=t[32]^f,C=t[33]^p,D=t[42]^f,O=t[43]^p;f=o^(c<<1|l>>>31),p=a^(l<<1|c>>>31);const z=t[4]^f,P=t[5]^p,_=t[14]^f,B=t[15]^p,R=t[24]^f,U=t[25]^p,Q=t[34]^f,Y=t[35]^p,W=t[44]^f,F=t[45]^p;f=s^(h<<1|d>>>31),p=u^(d<<1|h>>>31);const V=t[6]^f,H=t[7]^p,G=t[16]^f,q=t[17]^p,Z=t[26]^f,J=t[27]^p,X=t[36]^f,K=t[37]^p,$=t[46]^f,tt=t[47]^p;f=c^(r<<1|i>>>31),p=l^(i<<1|r>>>31);const et=t[8]^f,nt=t[9]^p,rt=t[18]^f,it=t[19]^p,ot=t[28]^f,at=t[29]^p,st=t[38]^f,ut=t[39]^p,ct=t[48]^f,lt=t[49]^p,ht=y,dt=m,ft=v<<4|g>>>28,pt=g<<4|v>>>28,yt=w<<3|b>>>29,mt=b<<3|w>>>29,gt=A<<9|M>>>23,vt=M<<9|A>>>23,wt=I<<18|N>>>14,bt=N<<18|I>>>14,Mt=E<<1|x>>>31,At=x<<1|E>>>31,It=T<<12|k>>>20,Nt=k<<12|T>>>20,Et=L<<10|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,t[7]=qt^~ae&dt,t[16]=kt^~Rt&Qt,t[17]=Tt^~Ut&Yt,t[26]=re^~wt&Mt,t[27]=ie^~bt&At,t[36]=_t^~Zt&Xt,t[37]=Bt^~Jt&Kt,t[46]=gt^~Lt&jt,t[47]=vt^~St&Ct,t[8]=oe^~ht&It,t[9]=ae^~dt&Nt,t[18]=Rt^~Qt&$t,t[19]=Ut^~Yt&te,t[28]=wt^~Mt&Dt,t[29]=bt^~At&Ot,t[38]=Zt^~Xt&ft,t[39]=Jt^~Kt&pt,t[48]=Lt^~jt&Wt,t[49]=St^~Ct&Ft,t[0]^=n[2*e],t[1]^=n[2*e+1]}}},function(t,e,n){(function(e){const r=n(109),i=n(66);function o(t){return t.startsWith("int[")?"int256"+t.slice(3):"int"===t?"int256":t.startsWith("uint[")?"uint256"+t.slice(4):"uint"===t?"uint256":t.startsWith("fixed[")?"fixed128x128"+t.slice(5):"fixed"===t?"fixed128x128":t.startsWith("ufixed[")?"ufixed128x128"+t.slice(6):"ufixed"===t?"ufixed128x128":t}function a(t){return parseInt(/^\D+(\d+)$/.exec(t)[1],10)}function s(t){var e=/^\D+(\d+)x(\d+)$/.exec(t);return[parseInt(e[1],10),parseInt(e[2],10)]}function u(t){var e=t.match(/(.*)\[(.*?)\]$/);return e?""===e[2]?"dynamic":parseInt(e[2],10):null}function c(t){var e=typeof t;if("string"===e)return r.isHexString(t)?new i(r.stripHexPrefix(t),16):new i(t,10);if("number"===e)return new i(t);if(t.toArray)return t;throw new Error("Argument is not a number")}function l(t,n){var o,h,d,f;if("address"===t)return l("uint160",c(n));if("bool"===t)return l("uint8",n?1:0);if("string"===t)return l("bytes",new e(n,"utf8"));if(function(t){return t.lastIndexOf("]")===t.length-1}(t)){if(void 0===n.length)throw new Error("Not an array?");if("dynamic"!==(o=u(t))&&0!==o&&n.length>o)throw new Error("Elements exceed array size: "+o);for(f in d=[],t=t.slice(0,t.lastIndexOf("[")),"string"==typeof n&&(n=JSON.parse(n)),n)d.push(l(t,n[f]));if("dynamic"===o){var p=l("uint256",n.length);d.unshift(p)}return e.concat(d)}if("bytes"===t)return n=new e(n),d=e.concat([l("uint256",n.length),n]),n.length%32!=0&&(d=e.concat([d,r.zeros(32-n.length%32)])),d;if(t.startsWith("bytes")){if((o=a(t))<1||o>32)throw new Error("Invalid bytes width: "+o);return r.setLengthRight(n,32)}if(t.startsWith("uint")){if((o=a(t))%8||o<8||o>256)throw new Error("Invalid uint width: "+o);if((h=c(n)).bitLength()>o)throw new Error("Supplied uint exceeds width: "+o+" vs "+h.bitLength());if(h<0)throw new Error("Supplied uint is negative");return h.toArrayLike(e,"be",32)}if(t.startsWith("int")){if((o=a(t))%8||o<8||o>256)throw new Error("Invalid int width: "+o);if((h=c(n)).bitLength()>o)throw new Error("Supplied int exceeds width: "+o+" vs "+h.bitLength());return h.toTwos(256).toArrayLike(e,"be",32)}if(t.startsWith("ufixed")){if(o=s(t),(h=c(n))<0)throw new Error("Supplied ufixed is negative");return l("uint256",h.mul(new i(2).pow(new i(o[1]))))}if(t.startsWith("fixed"))return o=s(t),l("int256",c(n).mul(new i(2).pow(new i(o[1]))));throw new Error("Unsupported or invalid type: "+t)}function h(t){return"string"===t||"bytes"===t||"dynamic"===u(t)}function d(t,n){if(t.length!==n.length)throw new Error("Number of types are not matching the values");for(var i,s,u=[],l=0;l32)throw new Error("Invalid bytes width: "+i);u.push(r.setLengthRight(d,i))}else if(h.startsWith("uint")){if((i=a(h))%8||i<8||i>256)throw new Error("Invalid uint width: "+i);if((s=c(d)).bitLength()>i)throw new Error("Supplied uint exceeds width: "+i+" vs "+s.bitLength());u.push(s.toArrayLike(e,"be",i/8))}else{if(!h.startsWith("int"))throw new Error("Unsupported or invalid type: "+h);if((i=a(h))%8||i<8||i>256)throw new Error("Invalid int width: "+i);if((s=c(d)).bitLength()>i)throw new Error("Supplied int exceeds width: "+i+" vs "+s.bitLength());u.push(s.toTwos(i).toArrayLike(e,"be",i/8))}}return e.concat(u)}t.exports={rawEncode:function(t,n){var r=[],i=[],a=32*t.length;for(var s in t){var u=o(t[s]),c=l(u,n[s]);h(u)?(r.push(l("uint256",a)),i.push(c),a+=c.length):r.push(c)}return e.concat(r.concat(i))},solidityPack:d,soliditySHA3:function(t,e){return r.keccak(d(t,e))}}}).call(this,n(19).Buffer)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.filterFromParam=e.FilterPolyfill=void 0;const r=n(67),i=n(38),o={jsonrpc:"2.0",id:0};function a(t){return{fromBlock:u(t.fromBlock),toBlock:u(t.toBlock),addresses:void 0===t.address?null:Array.isArray(t.address)?t.address:[t.address],topics:t.topics||[]}}function s(t){const e={fromBlock:c(t.fromBlock),toBlock:c(t.toBlock),topics:t.topics};return null!==t.addresses&&(e.address=t.addresses),e}function u(t){if(void 0===t||"latest"===t||"pending"===t)return"latest";if("earliest"===t)return(0,r.IntNumber)(0);if((0,i.isHexString)(t))return(0,i.intNumberFromHexString)(t);throw new Error("Invalid block option: "+String(t))}function c(t){return"latest"===t?t:(0,i.hexStringFromIntNumber)(t)}function l(){return Object.assign(Object.assign({},o),{error:{code:-32e3,message:"filter not found"}})}function h(){return Object.assign(Object.assign({},o),{result:[]})}e.FilterPolyfill=class{constructor(t){this.logFilters=new Map,this.blockFilters=new Set,this.pendingTransactionFilters=new Set,this.cursors=new Map,this.timeouts=new Map,this.nextFilterId=(0,r.IntNumber)(1),this.provider=t}async newFilter(t){const e=a(t),n=this.makeFilterId(),r=await this.setInitialCursorPosition(n,e.fromBlock);return console.log(`Installing new log filter(${n}):`,e,"initial cursor position:",r),this.logFilters.set(n,e),this.setFilterTimeout(n),(0,i.hexStringFromIntNumber)(n)}async newBlockFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.blockFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}async newPendingTransactionFilter(){const t=this.makeFilterId(),e=await this.setInitialCursorPosition(t,"latest");return console.log(`Installing new block filter (${t}) with initial cursor position:`,e),this.pendingTransactionFilters.add(t),this.setFilterTimeout(t),(0,i.hexStringFromIntNumber)(t)}uninstallFilter(t){const e=(0,i.intNumberFromHexString)(t);return console.log(`Uninstalling filter (${e})`),this.deleteFilter(e),!0}getFilterChanges(t){const e=(0,i.intNumberFromHexString)(t);return this.timeouts.has(e)&&this.setFilterTimeout(e),this.logFilters.has(e)?this.getLogFilterChanges(e):this.blockFilters.has(e)?this.getBlockFilterChanges(e):this.pendingTransactionFilters.has(e)?this.getPendingTransactionFilterChanges(e):Promise.resolve(l())}async getFilterLogs(t){const e=(0,i.intNumberFromHexString)(t),n=this.logFilters.get(e);return n?this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(n)]})):l()}makeFilterId(){return(0,r.IntNumber)(++this.nextFilterId)}sendAsyncPromise(t){return new Promise(((e,n)=>{this.provider.sendAsync(t,((t,r)=>t?n(t):Array.isArray(r)||null==r?n(new Error("unexpected response received: "+JSON.stringify(r))):void e(r)))}))}deleteFilter(t){console.log(`Deleting filter (${t})`),this.logFilters.delete(t),this.blockFilters.delete(t),this.pendingTransactionFilters.delete(t),this.cursors.delete(t),this.timeouts.delete(t)}async getLogFilterChanges(t){const e=this.logFilters.get(t),n=this.cursors.get(t);if(!n||!e)return l();const a=await this.getCurrentBlockHeight(),u="latest"===e.toBlock?a:e.toBlock;if(n>a)return h();if(n>e.toBlock)return h();console.log(`Fetching logs from ${n} to ${u} for filter ${t}`);const c=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getLogs",params:[s(Object.assign(Object.assign({},e),{fromBlock:n,toBlock:u}))]}));if(Array.isArray(c.result)){const e=c.result.map((t=>(0,i.intNumberFromHexString)(t.blockNumber||"0x0"))),o=Math.max(...e);if(o&&o>n){const e=(0,r.IntNumber)(o+1);console.log(`Moving cursor position for filter (${t}) from ${n} to ${e}`),this.cursors.set(t,e)}}return c}async getBlockFilterChanges(t){const e=this.cursors.get(t);if(!e)return l();const n=await this.getCurrentBlockHeight();if(e>n)return h();console.log(`Fetching blocks from ${e} to ${n} for filter (${t})`);const a=(await Promise.all((0,i.range)(e,n+1).map((t=>this.getBlockHashByNumber((0,r.IntNumber)(t)))))).filter((t=>!!t)),s=(0,r.IntNumber)(e+a.length);return console.log(`Moving cursor position for filter (${t}) from ${e} to ${s}`),this.cursors.set(t,s),Object.assign(Object.assign({},o),{result:a})}async getPendingTransactionFilterChanges(t){return Promise.resolve(h())}async setInitialCursorPosition(t,e){const n=await this.getCurrentBlockHeight(),r="number"==typeof e&&e>n?e:n;return this.cursors.set(t,r),r}setFilterTimeout(t){const e=this.timeouts.get(t);e&&window.clearTimeout(e);const n=window.setTimeout((()=>{console.log(`Filter (${t}) timed out`),this.deleteFilter(t)}),3e5);this.timeouts.set(t,n)}async getCurrentBlockHeight(){const{result:t}=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_blockNumber",params:[]}));return(0,i.intNumberFromHexString)((0,i.ensureHexString)(t))}async getBlockHashByNumber(t){const e=await this.sendAsyncPromise(Object.assign(Object.assign({},o),{method:"eth_getBlockByNumber",params:[(0,i.hexStringFromIntNumber)(t),!1]}));return e.result&&"string"==typeof e.result.hash?(0,i.ensureHexString)(e.result.hash):null}},e.filterFromParam=a},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.JSONRPCMethod=void 0,function(t){t.eth_accounts="eth_accounts",t.eth_coinbase="eth_coinbase",t.net_version="net_version",t.eth_chainId="eth_chainId",t.eth_uninstallFilter="eth_uninstallFilter",t.eth_requestAccounts="eth_requestAccounts",t.eth_sign="eth_sign",t.eth_ecRecover="eth_ecRecover",t.personal_sign="personal_sign",t.personal_ecRecover="personal_ecRecover",t.eth_signTransaction="eth_signTransaction",t.eth_sendRawTransaction="eth_sendRawTransaction",t.eth_sendTransaction="eth_sendTransaction",t.eth_signTypedData_v1="eth_signTypedData_v1",t.eth_signTypedData_v2="eth_signTypedData_v2",t.eth_signTypedData_v3="eth_signTypedData_v3",t.eth_signTypedData_v4="eth_signTypedData_v4",t.eth_signTypedData="eth_signTypedData",t.cbWallet_arbitrary="walletlink_arbitrary",t.wallet_addEthereumChain="wallet_addEthereumChain",t.wallet_switchEthereumChain="wallet_switchEthereumChain",t.wallet_watchAsset="wallet_watchAsset",t.eth_subscribe="eth_subscribe",t.eth_unsubscribe="eth_unsubscribe",t.eth_newFilter="eth_newFilter",t.eth_newBlockFilter="eth_newBlockFilter",t.eth_newPendingTransactionFilter="eth_newPendingTransactionFilter",t.eth_getFilterChanges="eth_getFilterChanges",t.eth_getFilterLogs="eth_getFilterLogs"}(e.JSONRPCMethod||(e.JSONRPCMethod={}))},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SubscriptionManager=void 0;const r=n(171),i=n(179),o=()=>{};e.SubscriptionManager=class{constructor(t){const e=new r({provider:t,pollingInterval:15e3,setSkipCacheFlag:!0}),{events:n,middleware:o}=i({blockTracker:e,provider:t});this.events=n,this.subscriptionMiddleware=o}async handleRequest(t){const e={};return await this.subscriptionMiddleware(t,e,o,o),e}destroy(){this.subscriptionMiddleware.destroy()}}},function(t,e,n){const r=n(118),i=n(172);function o(t,e){return new Promise((n=>{const r=setTimeout(n,t);r.unref&&e&&r.unref()}))}t.exports=class extends i{constructor(t={}){if(!t.provider)throw new Error("PollingBlockTracker - no provider specified.");const e=t.pollingInterval||2e4,n=t.retryTimeout||e/10,r=void 0===t.keepEventLoopActive||t.keepEventLoopActive,i=t.setSkipCacheFlag||!1;super(Object.assign({blockResetDuration:e},t)),this._provider=t.provider,this._pollingInterval=e,this._retryTimeout=n,this._keepEventLoopActive=r,this._setSkipCacheFlag=i}async checkForLatestBlock(){return await this._updateLatestBlock(),await this.getLatestBlock()}_start(){this._performSync().catch((t=>this.emit("error",t)))}async _performSync(){for(;this._isRunning;)try{await this._updateLatestBlock(),await o(this._pollingInterval,!this._keepEventLoopActive)}catch(t){const e=new Error("PollingBlockTracker - encountered an error while attempting to update latest block:\n"+t.stack);try{this.emit("error",e)}catch(t){console.error(e)}await o(this._retryTimeout,!this._keepEventLoopActive)}}async _updateLatestBlock(){const t=await this._fetchLatestBlock();this._newPotentialLatest(t)}async _fetchLatestBlock(){const t={jsonrpc:"2.0",id:1,method:"eth_blockNumber",params:[]};this._setSkipCacheFlag&&(t.skipCache=!0);const e=await r((e=>this._provider.sendAsync(t,e)))();if(e.error)throw new Error("PollingBlockTracker - encountered error fetching block:\n"+e.error);return e.result}}},function(t,e,n){n(119),n(118);const r=n(175),i=(t,e)=>t+e,o=["sync","latest"];function a(t){return Number.parseInt(t,16)}t.exports=class extends r{constructor(t={}){super(),this._blockResetDuration=t.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((t=>this.once("latest",t)))}removeAllListeners(t){t?super.removeAllListeners(t):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(t,e){o.includes(t)&&this._maybeStart()}_onRemoveListener(t,e){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 o.map((t=>this.listenerCount(t))).reduce(i)}_newPotentialLatest(t){const e=this._currentBlock;e&&a(t)<=a(e)||this._setCurrentBlock(t)}_setCurrentBlock(t){const e=this._currentBlock;this._currentBlock=t,this.emit("latest",t),this.emit("sync",{oldBlock:e,newBlock:t})}_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(t,e){t.exports=function(){for(var t={},e=0;e{throw t}))}}function c(t,e){for(var n=new Array(e),r=0;r0&&(o=e[0]),o instanceof Error)throw o;var a=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw a.context=o,a}var s=i[t];if(void 0===s)return!1;if("function"==typeof s)u(s,this,e);else{var l=s.length,h=c(s,l);for(n=0;n=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}})),u=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),p(n)?r.showHidden=n:n&&e._extend(r,n),v(r.showHidden)&&(r.showHidden=!1),v(r.depth)&&(r.depth=2),v(r.colors)&&(r.colors=!1),v(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=u),l(r,t,r.depth)}function u(t,e){var n=s.styles[e];return n?"["+s.colors[n][0]+"m"+t+"["+s.colors[n][1]+"m":t}function c(t,e){return t}function l(t,n,r){if(t.customInspect&&n&&I(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return g(i)||(i=l(t,i,r)),i}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(g(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return m(e)?t.stylize(""+e,"number"):p(e)?t.stylize(""+e,"boolean"):y(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),A(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return h(n);if(0===a.length){if(I(n)){var u=n.name?": "+n.name:"";return t.stylize("[Function"+u+"]","special")}if(w(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(M(n))return t.stylize(Date.prototype.toString.call(n),"date");if(A(n))return h(n)}var c,b="",N=!1,E=["{","}"];return f(n)&&(N=!0,E=["[","]"]),I(n)&&(b=" [Function"+(n.name?": "+n.name:"")+"]"),w(n)&&(b=" "+RegExp.prototype.toString.call(n)),M(n)&&(b=" "+Date.prototype.toUTCString.call(n)),A(n)&&(b=" "+h(n)),0!==a.length||N&&0!=n.length?r<0?w(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),c=N?function(t,e,n,r,i){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(c,b,E)):E[0]+b+E[1]}function h(t){return"["+Error.prototype.toString.call(t)+"]"}function d(t,e,n,r,i,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]}).get?s=u.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),T(r,i)||(a="["+i+"]"),s||(t.seen.indexOf(u.value)<0?(s=y(n)?l(t,u.value,null):l(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&i.match(/^\d+$/))return s;(a=JSON.stringify(""+i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function f(t){return Array.isArray(t)}function p(t){return"boolean"==typeof t}function y(t){return null===t}function m(t){return"number"==typeof t}function g(t){return"string"==typeof t}function v(t){return void 0===t}function w(t){return b(t)&&"[object RegExp]"===N(t)}function b(t){return"object"==typeof t&&null!==t}function M(t){return b(t)&&"[object Date]"===N(t)}function A(t){return b(t)&&("[object Error]"===N(t)||t instanceof Error)}function I(t){return"function"==typeof t}function N(t){return Object.prototype.toString.call(t)}function E(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(n){if(v(o)&&(o=t.env.NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=t.pid;a[n]=function(){var t=e.format.apply(e,arguments);console.error("%s %d: %s",n,r,t)}}else a[n]=function(){};return a[n]},e.inspect=s,s.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]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=f,e.isBoolean=p,e.isNull=y,e.isNullOrUndefined=function(t){return null==t},e.isNumber=m,e.isString=g,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=w,e.isObject=b,e.isDate=M,e.isError=A,e.isFunction=I,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(177);var x=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function k(){var t=new Date,e=[E(t.getHours()),E(t.getMinutes()),E(t.getSeconds())].join(":");return[t.getDate(),x[t.getMonth()],e].join(" ")}function T(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",k(),e.format.apply(e,arguments))},e.inherits=n(178),e._extend=function(t,e){if(!e||!b(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t};var L="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function S(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(L&&t[L]){var e;if("function"!=typeof(e=t[L]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,L,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,r=new Promise((function(t,r){e=t,n=r})),i=[],o=0;o{t.removeListener("sync",r.update)},update:async({oldBlock:t,newBlock:r})=>{const i=r,o=u(t);(await c({provider:e,fromBlock:o,toBlock:i})).map(l).filter((t=>null!==t)).forEach((t=>{y(n,t)}))}};return t.on("sync",r.update),r}({subId:a});break;case"logs":const n=r.params[1];f=function({subId:t,filter:e}){return e.on("update",(e=>y(t,e))),{type:o,destroy:async()=>await h.uninstallFilter(e.idHex)}}({subId:a,filter:await h.newLogFilter(n)});break;default:throw new Error(`SubscriptionManager - unsupported subscription type "${o}"`)}return n[a]=f,void(i.result=a)})),eth_unsubscribe:i((async function(t,e){if(d)throw new Error("SubscriptionManager - attempting to use after destroying");const r=t.params[0],i=n[r];i?(delete n[r],await i.destroy(),e.result=!0):e.result=!1}))});return p.destroy=function(){f.removeAllListeners();for(const t in n)n[t].destroy(),delete n[t];d=!0},{events:f,middleware:p};function y(t,e){f.emit("notification",{jsonrpc:"2.0",method:"eth_subscription",params:{subscription:t,result:e}})}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createIdRemapMiddleware=void 0;const r=n(121);e.createIdRemapMiddleware=function(){return(t,e,n,i)=>{const o=t.id,a=r.getUniqueId();t.id=a,e.id=a,n((n=>{t.id=o,e.id=o,n()}))}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createAsyncMiddleware=void 0,e.createAsyncMiddleware=function(t){return async(e,n,r,i)=>{let o;const a=new Promise((t=>{o=t}));let s=null,u=!1;const c=async()=>{u=!0,r((t=>{s=t,o()})),await a};try{await t(e,n,c),u?(await a,s(null)):i(null)}catch(t){s?s(t):i(t)}}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.createScaffoldMiddleware=void 0,e.createScaffoldMiddleware=function(t){return(e,n,r,i)=>{const o=t[e.method];return void 0===o?r():"function"==typeof o?o(e,n,r,i):(n.result=o,i())}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.getMessageFromCode=e.serializeError=e.EthereumProviderError=e.EthereumRpcError=e.ethErrors=e.errorCodes=void 0;const r=n(96);Object.defineProperty(e,"EthereumRpcError",{enumerable:!0,get:function(){return r.EthereumRpcError}}),Object.defineProperty(e,"EthereumProviderError",{enumerable:!0,get:function(){return r.EthereumProviderError}});const i=n(123);Object.defineProperty(e,"serializeError",{enumerable:!0,get:function(){return i.serializeError}}),Object.defineProperty(e,"getMessageFromCode",{enumerable:!0,get:function(){return i.getMessageFromCode}});const o=n(184);Object.defineProperty(e,"ethErrors",{enumerable:!0,get:function(){return o.ethErrors}});const a=n(97);Object.defineProperty(e,"errorCodes",{enumerable:!0,get:function(){return a.errorCodes}})},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ethErrors=void 0;const r=n(96),i=n(123),o=n(97);function a(t,e){const[n,o]=u(e);return new r.EthereumRpcError(t,n||i.getMessageFromCode(t),o)}function s(t,e){const[n,o]=u(e);return new r.EthereumProviderError(t,n||i.getMessageFromCode(t),o)}function u(t){if(t){if("string"==typeof t)return[t];if("object"==typeof t&&!Array.isArray(t)){const{message:e,data:n}=t;if(e&&"string"!=typeof e)throw new Error("Must specify string message.");return[e||void 0,n]}}return[]}e.ethErrors={rpc:{parse:t=>a(o.errorCodes.rpc.parse,t),invalidRequest:t=>a(o.errorCodes.rpc.invalidRequest,t),invalidParams:t=>a(o.errorCodes.rpc.invalidParams,t),methodNotFound:t=>a(o.errorCodes.rpc.methodNotFound,t),internal:t=>a(o.errorCodes.rpc.internal,t),server:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum RPC Server errors must provide single object argument.");const{code:e}=t;if(!Number.isInteger(e)||e>-32005||e<-32099)throw new Error('"code" must be an integer such that: -32099 <= code <= -32005');return a(e,t)},invalidInput:t=>a(o.errorCodes.rpc.invalidInput,t),resourceNotFound:t=>a(o.errorCodes.rpc.resourceNotFound,t),resourceUnavailable:t=>a(o.errorCodes.rpc.resourceUnavailable,t),transactionRejected:t=>a(o.errorCodes.rpc.transactionRejected,t),methodNotSupported:t=>a(o.errorCodes.rpc.methodNotSupported,t),limitExceeded:t=>a(o.errorCodes.rpc.limitExceeded,t)},provider:{userRejectedRequest:t=>s(o.errorCodes.provider.userRejectedRequest,t),unauthorized:t=>s(o.errorCodes.provider.unauthorized,t),unsupportedMethod:t=>s(o.errorCodes.provider.unsupportedMethod,t),disconnected:t=>s(o.errorCodes.provider.disconnected,t),chainDisconnected:t=>s(o.errorCodes.provider.chainDisconnected,t),custom:t=>{if(!t||"object"!=typeof t||Array.isArray(t))throw new Error("Ethereum Provider custom errors must provide single object argument.");const{code:e,message:n,data:i}=t;if(!n||"string"!=typeof n)throw new Error('"message" must be a nonempty string');return new r.EthereumProviderError(e,n,i)}}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.mergeMiddleware=void 0;const r=n(122);e.mergeMiddleware=function(t){const e=new r.JsonRpcEngine;return t.forEach((t=>e.push(t))),e.asMiddleware()}},function(t,e,n){const r=n(233).Mutex,{createAsyncMiddleware:i,createScaffoldMiddleware:o}=n(120),a=n(187),s=n(190),u=n(191),{intToHex:c,hexToInt:l}=n(59);function h(t){return d((async(...e)=>{const n=await t(...e);return c(n.id)}))}function d(t){return i((async(e,n)=>{const r=await t.apply(null,e.params);n.result=r}))}function f(t,e){const n=[];for(let e in t)n.push(t[e]);return n}t.exports=function({blockTracker:t,provider:e}){let n=0,i={};const p=new r,y=function({mutex:t}){return e=>async(n,r,i,o)=>{(await t.acquire())(),e(n,r,i,o)}}({mutex:p}),m=o({eth_newFilter:y(h(v)),eth_newBlockFilter:y(h(w)),eth_newPendingTransactionFilter:y(h(b)),eth_uninstallFilter:y(d(I)),eth_getFilterChanges:y(d(M)),eth_getFilterLogs:y(d(A))}),g=async({oldBlock:t,newBlock:e})=>{if(0===i.length)return;const n=await p.acquire();try{await Promise.all(f(i).map((async n=>{try{await n.update({oldBlock:t,newBlock:e})}catch(t){console.error(t)}})))}catch(t){console.error(t)}n()};return m.newLogFilter=v,m.newBlockFilter=w,m.newPendingTransactionFilter=b,m.uninstallFilter=I,m.getFilterChanges=M,m.getFilterLogs=A,m.destroy=()=>{!async function(){const t=f(i).length;i={},E({prevFilterCount:t,newFilterCount:0})}()},m;async function v(t){const n=new a({provider:e,params:t});return await N(n),n}async function w(){const t=new s({provider:e});return await N(t),t}async function b(){const t=new u({provider:e});return await N(t),t}async function M(t){const e=l(t),n=i[e];if(!n)throw new Error(`No filter for index "${e}"`);return n.getChangesAndClear()}async function A(t){const e=l(t),n=i[e];if(!n)throw new Error(`No filter for index "${e}"`);let r=[];return"log"===n.type&&(r=n.getAllResults()),r}async function I(t){const e=l(t),n=i[e],r=Boolean(n);return r&&await async function(t){const e=f(i).length;delete i[t];E({prevFilterCount:e,newFilterCount:f(i).length})}(e),r}async function N(e){const r=f(i).length,o=await t.getLatestBlock();return await e.initialize({currentBlock:o}),n++,i[n]=e,e.id=n,e.idHex=c(n),E({prevFilterCount:r,newFilterCount:f(i).length}),n}function E({prevFilterCount:e,newFilterCount:n}){0===e&&n>0?t.on("sync",g):e>0&&0===n&&t.removeListener("sync",g)}}},function(t,e,n){const r=n(119),i=n(188),o=n(189),{bnToHex:a,hexToInt:s,incrementHexInt:u,minBlockRef:c,blockRefIsNumber:l}=n(59);t.exports=class extends o{constructor({provider:t,params:e}){super(),this.type="log",this.ethQuery=new r(t),this.params=Object.assign({fromBlock:"latest",toBlock:"latest",address:void 0,topics:[]},e),this.params.address&&(Array.isArray(this.params.address)||(this.params.address=[this.params.address]),this.params.address=this.params.address.map((t=>t.toLowerCase())))}async initialize({currentBlock:t}){let e=this.params.fromBlock;["latest","pending"].includes(e)&&(e=t),"earliest"===e&&(e="0x0"),this.params.fromBlock=e;const n=c(this.params.toBlock,t),r=Object.assign({},this.params,{toBlock:n}),i=await this._fetchLogs(r);this.addInitialResults(i)}async update({oldBlock:t,newBlock:e}){const n=e;let r;r=t?u(t):e;const i=Object.assign({},this.params,{fromBlock:r,toBlock:n}),o=(await this._fetchLogs(i)).filter((t=>this.matchLog(t)));this.addResults(o)}async _fetchLogs(t){return await i((e=>this.ethQuery.getLogs(t,e)))()}matchLog(t){if(s(this.params.fromBlock)>=s(t.blockNumber))return!1;if(l(this.params.toBlock)&&s(this.params.toBlock)<=s(t.blockNumber))return!1;const e=t.address&&t.address.toLowerCase();return!(this.params.address&&e&&!this.params.address.includes(e))&&this.params.topics.every(((e,n)=>{let r=t.topics[n];if(!r)return!1;r=r.toLowerCase();let i=Array.isArray(e)?e:[e];return!!i.includes(null)||(i=i.map((t=>t.toLowerCase())),i.includes(r))}))}}},function(t,e,n){const r=(t,e,n,r)=>function(...i){return new e.promiseModule(((o,a)=>{e.multiArgs?i.push(((...t)=>{e.errorFirst?t[0]?a(t):(t.shift(),o(t)):o(t)})):e.errorFirst?i.push(((t,e)=>{t?a(t):o(e)})):i.push(o);const s=this===n?r:this;Reflect.apply(t,s,i)}))},i=new WeakMap;t.exports=(t,e)=>{e={exclude:[/.+(?:Sync|Stream)$/],errorFirst:!0,promiseModule:Promise,...e};const n=typeof t;if(null===t||"object"!==n&&"function"!==n)throw new TypeError(`Expected \`input\` to be a \`Function\` or \`Object\`, got \`${null===t?"null":n}\``);const o=new WeakMap,a=new Proxy(t,{apply(t,n,i){const s=o.get(t);if(s)return Reflect.apply(s,n,i);const u=e.excludeMain?t:r(t,e,a,t);return o.set(t,u),Reflect.apply(u,n,i)},get(t,n){const s=t[n];if(!((t,n)=>{let r=i.get(t);if(r||(r={},i.set(t,r)),n in r)return r[n];const o=t=>"string"==typeof t||"symbol"==typeof n?n===t:t.test(n),a=Reflect.getOwnPropertyDescriptor(t,n),s=void 0===a||a.writable||a.configurable,u=(e.include?e.include.some(o):!e.exclude.some(o))&&s;return r[n]=u,u})(t,n)||s===Function.prototype[n])return s;const u=o.get(s);if(u)return u;if("function"==typeof s){const n=r(s,e,a,t);return o.set(s,n),n}return s}});return a}},function(t,e,n){const r=n(98);t.exports=class extends r{constructor(){super(),this.allResults=[]}async update(){throw new Error("BaseFilterWithHistory - no update method specified")}addResults(t){this.allResults=this.allResults.concat(t),super.addResults(t)}addInitialResults(t){this.allResults=this.allResults.concat(t),super.addInitialResults(t)}getAllResults(){return this.allResults}}},function(t,e,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);t.exports=class extends r{constructor({provider:t,params:e}){super(),this.type="block",this.provider=t}async update({oldBlock:t,newBlock:e}){const n=e,r=o(t),a=(await i({provider:this.provider,fromBlock:r,toBlock:n})).map((t=>t.hash));this.addResults(a)}}},function(t,e,n){const r=n(98),i=n(99),{incrementHexInt:o}=n(59);t.exports=class extends r{constructor({provider:t}){super(),this.type="tx",this.provider=t}async update({oldBlock:t}){const e=t,n=o(t),r=await i({provider:this.provider,fromBlock:n,toBlock:e}),a=[];for(const t of r)a.push(...t.transactions);this.addResults(a)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKUI=void 0;const r=n(193),i=n(215),o=n(217);e.WalletSDKUI=class{constructor(t){this.standalone=null,this.attached=!1,this.appSrc=null,this.snackbar=new i.Snackbar({darkMode:t.darkMode}),this.linkFlow=new r.LinkFlow({darkMode:t.darkMode,version:t.version,sessionId:t.session.id,sessionSecret:t.session.secret,linkAPIUrl:t.linkAPIUrl,connected$:t.connected$,chainId$:t.chainId$,isParentConnection:!1})}attach(){if(this.attached)throw new Error("Coinbase Wallet SDK UI is already attached");const t=document.documentElement,e=document.createElement("div");e.className="-cbwsdk-css-reset",t.appendChild(e),this.linkFlow.attach(e),this.snackbar.attach(e),this.attached=!0,(0,o.injectCssReset)()}setConnectDisabled(t){this.linkFlow.setConnectDisabled(t)}addEthereumChain(t){}watchAsset(t){}switchEthereumChain(t){}requestEthereumAccounts(t){this.linkFlow.open({onCancel:t.onCancel})}hideRequestEthereumAccounts(){this.linkFlow.close()}signEthereumMessage(t){}signEthereumTransaction(t){}submitEthereumTransaction(t){}ethereumAddressFromSignedMessage(t){}showConnecting(t){let e;return e=t.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:t.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:t.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:t.onResetConnection}]},this.snackbar.presentItem(e)}setAppSrc(t){this.appSrc=t}reloadUI(){document.location.reload()}inlineAccountsResponse(){return!1}inlineAddEthereumChain(t){return!1}inlineWatchAsset(){return!1}inlineSwitchEthereumChain(){return!1}setStandalone(t){this.standalone=t}isStandalone(){var t;return null!==(t=this.standalone)&&void 0!==t&&t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LinkFlow=void 0;const r=n(5),i=n(70),o=n(194);e.LinkFlow=class{constructor(t){this.extensionUI$=new i.BehaviorSubject({}),this.subscriptions=new i.Subscription,this.isConnected=!1,this.chainId=1,this.isOpen=!1,this.onCancel=null,this.root=null,this.connectDisabled=!1,this.darkMode=t.darkMode,this.version=t.version,this.sessionId=t.sessionId,this.sessionSecret=t.sessionSecret,this.linkAPIUrl=t.linkAPIUrl,this.isParentConnection=t.isParentConnection,this.connected$=t.connected$,this.chainId$=t.chainId$}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-link-flow-root",t.appendChild(this.root),this.render(),this.subscriptions.add(this.connected$.subscribe((t=>{this.isConnected!==t&&(this.isConnected=t,this.render())}))),this.subscriptions.add(this.chainId$.subscribe((t=>{this.chainId!==t&&(this.chainId=t,this.render())})))}detach(){var t;this.root&&(this.subscriptions.unsubscribe(),(0,r.render)(null,this.root),null===(t=this.root.parentElement)||void 0===t||t.removeChild(this.root))}setConnectDisabled(t){this.connectDisabled=t}open(t){this.isOpen=!0,this.onCancel=t.onCancel,this.render()}close(){this.isOpen=!1,this.onCancel=null,this.render()}render(){if(!this.root)return;const t=this.extensionUI$.subscribe((()=>{this.root&&(0,r.render)((0,r.h)(o.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(t)}}},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.ConnectDialog=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(195),u=n(209),c=r(n(214));e.ConnectDialog=t=>{const{isOpen:e,darkMode:n}=t,[r,l]=(0,a.useState)(!e),[h,d]=(0,a.useState)(!e);(0,a.useEffect)((()=>{const t=[window.setTimeout((()=>{d(!e)}),10)];return e?l(!1):t.push(window.setTimeout((()=>{l(!0)}),360)),()=>{t.forEach(window.clearTimeout)}}),[t.isOpen]);const f=n?"dark":"light";return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-container",r&&"-cbwsdk-connect-dialog-container-hidden")},(0,o.h)("style",null,c.default),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-backdrop",f,h&&"-cbwsdk-connect-dialog-backdrop-hidden")}),(0,o.h)("div",{class:"-cbwsdk-connect-dialog"},(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-dialog-box",h&&"-cbwsdk-connect-dialog-box-hidden")},t.connectDisabled?null:(0,o.h)(s.ConnectContent,{theme:f,version:t.version,sessionId:t.sessionId,sessionSecret:t.sessionSecret,linkAPIUrl:t.linkAPIUrl,isConnected:t.isConnected,isParentConnection:t.isParentConnection,chainId:t.chainId,onCancel:t.onCancel}),(0,o.h)(u.TryExtensionContent,{theme:f}))))}},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.CoinbaseAppSteps=e.CoinbaseWalletSteps=e.ConnectItem=e.ConnectContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(38),u=n(196),c=n(197),l=r(n(198)),h=r(n(199)),d=n(200),f=r(n(201)),p=r(n(202)),y=n(203),m=n(204),g=n(206),v=r(n(208)),w={"coinbase-wallet-app":{title:"Coinbase Wallet app",description:"Connect with your self-custody wallet",icon:h.default,steps:I},"coinbase-app":{title:"Coinbase app",description:"Connect with your Coinbase account",icon:l.default,steps:N}},b=t=>{switch(t){case"coinbase-app":return f.default;case"coinbase-wallet-app":default:return p.default}},M=t=>"light"===t?"#FFFFFF":"#0A0B0D";function A({title:t,description:e,icon:n,selected:r,theme:a,onClick:s}){return(0,o.h)("div",{onClick:s,class:(0,i.default)("-cbwsdk-connect-item",a,{selected:r})},(0,o.h)("div",null,(0,o.h)("img",{src:n,alt:t})),(0,o.h)("div",{class:"-cbwsdk-connect-item-copy-wrapper"},(0,o.h)("h3",{class:"-cbwsdk-connect-item-title"},t),(0,o.h)("p",{class:"-cbwsdk-connect-item-description"},e)))}function I({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase Wallet app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"Scan")," "),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(d.QRCodeIcon,{fill:M(t)})))))}function N({theme:t}){return(0,o.h)("ol",{class:"-cbwsdk-wallet-steps"},(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},"Open Coinbase app")),(0,o.h)("li",{class:(0,i.default)("-cbwsdk-wallet-steps-item",t)},(0,o.h)("div",{class:"-cbwsdk-wallet-steps-item-wrapper"},(0,o.h)("span",null,"Tap ",(0,o.h)("strong",null,"More")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(y.StatusDotIcon,{fill:M(t)})),(0,o.h)("span",{class:"-cbwsdk-wallet-steps-pad-left"},"then ",(0,o.h)("strong",null,"Scan")),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-wallet-steps-pad-left","-cbwsdk-wallet-steps-icon",t)},(0,o.h)(d.QRCodeIcon,{fill:M(t)})))))}e.ConnectContent=function(t){const{theme:e}=t,[n,r]=(0,a.useState)("coinbase-wallet-app"),l=(0,a.useCallback)((t=>{r(t)}),[]),h=(0,s.createQrUrl)(t.sessionId,t.sessionSecret,t.linkAPIUrl,t.isParentConnection,t.version,t.chainId);if(!n)return null;const d=w[n].steps,f="coinbase-app"===n;return(0,o.h)("div",{"data-testid":"connect-content",class:(0,i.default)("-cbwsdk-connect-content",e)},(0,o.h)("style",null,v.default),(0,o.h)("div",{class:"-cbwsdk-connect-content-header"},(0,o.h)("h2",{class:(0,i.default)("-cbwsdk-connect-content-heading",e)},"Scan to connect with one of our mobile apps"),t.onCancel&&(0,o.h)("button",{type:"button",class:"-cbwsdk-cancel-button",onClick:t.onCancel},(0,o.h)(c.CloseIcon,{fill:"light"===e?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:"-cbwsdk-connect-content-layout"},(0,o.h)("div",{class:"-cbwsdk-connect-content-column-left"},(0,o.h)("div",null,Object.entries(w).map((([t,r])=>(0,o.h)(A,{key:t,title:r.title,description:r.description,icon:r.icon,selected:n===t,onClick:()=>l(t),theme:e})))),f&&(0,o.h)("div",{class:(0,i.default)("-cbwsdk-connect-content-update-app",e)},"Don’t see a ",(0,o.h)("strong",null,"Scan")," option? Update your Coinbase app to the latest version and try again.")),(0,o.h)("div",{class:"-cbwsdk-connect-content-column-right"},(0,o.h)("div",{class:"-cbwsdk-connect-content-qr-wrapper"},(0,o.h)(m.QRCode,{content:h,width:200,height:200,fgColor:"#000",bgColor:"transparent",image:{svg:b(n),width:25,height:25}}),(0,o.h)("input",{type:"hidden",name:"cbw-cbwsdk-version",value:u.LIB_VERSION}),(0,o.h)("input",{type:"hidden",value:h})),(0,o.h)(d,{theme:e}),!t.isConnected&&(0,o.h)("div",{"data-testid":"connecting-spinner",class:(0,i.default)("-cbwsdk-connect-content-qr-connecting",e)},(0,o.h)(g.Spinner,{size:36,color:"dark"===e?"#FFF":"#000"}),(0,o.h)("p",null,"Connecting...")))))},e.ConnectItem=A,e.CoinbaseWalletSteps=I,e.CoinbaseAppSteps=N},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LIB_VERSION=void 0,e.LIB_VERSION="3.6.4"},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.CloseIcon=void 0;const r=n(5);e.CloseIcon=function(t){return(0,r.h)("svg",Object.assign({width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M13.7677 13L12.3535 14.4142L18.3535 20.4142L12.3535 26.4142L13.7677 27.8284L19.7677 21.8284L25.7677 27.8284L27.1819 26.4142L21.1819 20.4142L27.1819 14.4142L25.7677 13L19.7677 19L13.7677 13Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgiIGhlaWdodD0iMjgiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi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y40OSAwIC42ODYgMCAuODgyLjEwMi4xNDYuMTAxLjI5My4yMDMuMzQyLjM1NS4wOTguMjAzLjA5OC40MDYuMDk4Ljg2MnYyLjk5MmMwIC40NTcgMCAuNzEtLjA5OC44NjMtLjA5OC4xNTItLjE5NS4zMDQtLjM0Mi4zNTUtLjE5Ni4xMDEtLjM5Mi4xMDEtLjg4Mi4xMDFoLTIuOTg2Yy0uNDkgMC0uNjg1IDAtLjg4LS4xMDEtLjE0OC0uMTAyLS4yOTUtLjIwMy0uMzQ0LS4zNTUtLjA5OC0uMjAzLS4wOTgtLjQwNi0uMDk4LS44NjN2LTIuOTkyWiIgZmlsbD0iIzAwNTJGRiIvPjwvc3ZnPg=="},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.QRCodeIcon=void 0;const r=n(5);e.QRCodeIcon=function(t){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M8.2271 1.77124L7.0271 1.77124V2.97124H8.2271V1.77124Z"}),(0,r.h)("path",{d:"M5.44922 0.199219L5.44922 4.54922L9.79922 4.54922V0.199219L5.44922 0.199219ZM8.89922 3.64922L6.34922 3.64922L6.34922 1.09922L8.89922 1.09922V3.64922Z"}),(0,r.h)("path",{d:"M2.97124 1.77124L1.77124 1.77124L1.77124 2.97124H2.97124V1.77124Z"}),(0,r.h)("path",{d:"M0.199219 4.54922L4.54922 4.54922L4.54922 0.199219L0.199219 0.199219L0.199219 4.54922ZM1.09922 1.09922L3.64922 1.09922L3.64922 3.64922L1.09922 3.64922L1.09922 1.09922Z"}),(0,r.h)("path",{d:"M2.97124 7.0271H1.77124L1.77124 8.2271H2.97124V7.0271Z"}),(0,r.h)("path",{d:"M0.199219 9.79922H4.54922L4.54922 5.44922L0.199219 5.44922L0.199219 9.79922ZM1.09922 6.34922L3.64922 6.34922L3.64922 8.89922H1.09922L1.09922 6.34922Z"}),(0,r.h)("path",{d:"M8.89922 7.39912H7.99922V5.40112H5.44922L5.44922 9.79912H6.34922L6.34922 6.30112H7.09922V8.29912H9.79922V5.40112H8.89922V7.39912Z"}),(0,r.h)("path",{d:"M7.99912 8.89917H7.09912V9.79917H7.99912V8.89917Z"}),(0,r.h)("path",{d:"M9.79917 8.89917H8.89917V9.79917H9.79917V8.89917Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default='\n \n \n \n \n \n \n'},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.StatusDotIcon=void 0;const r=n(5);e.StatusDotIcon=function(t){return(0,r.h)("svg",Object.assign({width:"10",height:"10",viewBox:"0 0 10 10",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.29995 4.99995C2.29995 5.57985 1.82985 6.04995 1.24995 6.04995C0.670052 6.04995 0.199951 5.57985 0.199951 4.99995C0.199951 4.42005 0.670052 3.94995 1.24995 3.94995C1.82985 3.94995 2.29995 4.42005 2.29995 4.99995ZM4.99995 6.04995C5.57985 6.04995 6.04995 5.57985 6.04995 4.99995C6.04995 4.42005 5.57985 3.94995 4.99995 3.94995C4.42005 3.94995 3.94995 4.42005 3.94995 4.99995C3.94995 5.57985 4.42005 6.04995 4.99995 6.04995ZM8.74995 6.04995C9.32985 6.04995 9.79995 5.57985 9.79995 4.99995C9.79995 4.42005 9.32985 3.94995 8.74995 3.94995C8.17005 3.94995 7.69995 4.42005 7.69995 4.99995C7.69995 5.57985 8.17005 6.04995 8.74995 6.04995Z"}))}},function(t,e,n){(function(t){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.QRCode=void 0;const i=n(5),o=n(60),a=r(n(205));e.QRCode=e=>{const[n,r]=(0,o.useState)("");return(0,o.useEffect)((()=>{var n,i;const o=new a.default({content:e.content,background:e.bgColor||"#ffffff",color:e.fgColor||"#000000",container:"svg",ecl:"M",width:null!==(n=e.width)&&void 0!==n?n:256,height:null!==(i=e.height)&&void 0!==i?i:256,padding:0,image:e.image}),s=t.from(o.svg(),"utf8").toString("base64");r("data:image/svg+xml;base64,"+s)})),n?(0,i.h)("img",{src:n,alt:"QR Code"}):null}}).call(this,n(19).Buffer)},function(t,e){function n(t){this.mode=i.MODE_8BIT_BYTE,this.data=t,this.parsedData=[];for(var e=0,n=this.data.length;e65536?(r[0]=240|(1835008&o)>>>18,r[1]=128|(258048&o)>>>12,r[2]=128|(4032&o)>>>6,r[3]=128|63&o):o>2048?(r[0]=224|(61440&o)>>>12,r[1]=128|(4032&o)>>>6,r[2]=128|63&o):o>128?(r[0]=192|(1984&o)>>>6,r[1]=128|63&o):r[0]=o,this.parsedData.push(r)}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 r(t,e){this.typeNumber=t,this.errorCorrectLevel=e,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}n.prototype={getLength:function(t){return this.parsedData.length},write:function(t){for(var e=0,n=this.parsedData.length;e=7&&this.setupTypeNumber(t),null==this.dataCache&&(this.dataCache=r.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,e)},setupPositionProbePattern:function(t,e){for(var n=-1;n<=7;n++)if(!(t+n<=-1||this.moduleCount<=t+n))for(var r=-1;r<=7;r++)e+r<=-1||this.moduleCount<=e+r||(this.modules[t+n][e+r]=0<=n&&n<=6&&(0==r||6==r)||0<=r&&r<=6&&(0==n||6==n)||2<=n&&n<=4&&2<=r&&r<=4)},getBestMaskPattern:function(){for(var t=0,e=0,n=0;n<8;n++){this.makeImpl(!0,n);var r=o.getLostPoint(this);(0==n||t>r)&&(t=r,e=n)}return e},createMovieClip:function(t,e,n){var r=t.createEmptyMovieClip(e,n);this.make();for(var i=0;i>n&1);this.modules[Math.floor(n/3)][n%3+this.moduleCount-8-3]=r}for(n=0;n<18;n++)r=!t&&1==(e>>n&1),this.modules[n%3+this.moduleCount-8-3][Math.floor(n/3)]=r},setupTypeInfo:function(t,e){for(var n=this.errorCorrectLevel<<3|e,r=o.getBCHTypeInfo(n),i=0;i<15;i++){var a=!t&&1==(r>>i&1);i<6?this.modules[i][8]=a:i<8?this.modules[i+1][8]=a:this.modules[this.moduleCount-15+i][8]=a}for(i=0;i<15;i++)a=!t&&1==(r>>i&1),i<8?this.modules[8][this.moduleCount-i-1]=a:i<9?this.modules[8][15-i-1+1]=a:this.modules[8][15-i-1]=a;this.modules[this.moduleCount-8][8]=!t},mapData:function(t,e){for(var n=-1,r=this.moduleCount-1,i=7,a=0,s=this.moduleCount-1;s>0;s-=2)for(6==s&&s--;;){for(var u=0;u<2;u++)if(null==this.modules[r][s-u]){var c=!1;a>>i&1)),o.getMask(e,r,s-u)&&(c=!c),this.modules[r][s-u]=c,-1==--i&&(a++,i=7)}if((r+=n)<0||this.moduleCount<=r){r-=n,n=-n;break}}}},r.PAD0=236,r.PAD1=17,r.createData=function(t,e,n){for(var i=c.getRSBlocks(t,e),a=new l,s=0;s8*h)throw new Error("code length overflow. ("+a.getLengthInBits()+">"+8*h+")");for(a.getLengthInBits()+4<=8*h&&a.put(0,4);a.getLengthInBits()%8!=0;)a.putBit(!1);for(;!(a.getLengthInBits()>=8*h||(a.put(r.PAD0,8),a.getLengthInBits()>=8*h));)a.put(r.PAD1,8);return r.createBytes(a,i)},r.createBytes=function(t,e){for(var n=0,r=0,i=0,a=new Array(e.length),s=new Array(e.length),c=0;c=0?p.get(y):0}}var m=0;for(d=0;d=0;)e^=o.G15<=0;)e^=o.G18<>>=1;return e},getPatternPosition:function(t){return o.PATTERN_POSITION_TABLE[t-1]},getMask:function(t,e,n){switch(t){case 0:return(e+n)%2==0;case 1:return e%2==0;case 2:return n%3==0;case 3:return(e+n)%3==0;case 4:return(Math.floor(e/2)+Math.floor(n/3))%2==0;case 5:return e*n%2+e*n%3==0;case 6:return(e*n%2+e*n%3)%2==0;case 7:return(e*n%3+(e+n)%2)%2==0;default:throw new Error("bad maskPattern:"+t)}},getErrorCorrectPolynomial:function(t){for(var e=new u([1],0),n=0;n5&&(n+=3+o-5)}for(r=0;r=256;)t-=255;return a.EXP_TABLE[t]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},s=0;s<8;s++)a.EXP_TABLE[s]=1<>>7-t%8&1)},put:function(t,e){for(var n=0;n>>e-n-1&1))},getLengthInBits:function(){return this.length},putBit:function(t){var e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),t&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var h=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,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 d(t){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 t&&(t={content:t}),t)for(var e in t)this.options[e]=t[e];if("string"!=typeof this.options.content)throw new Error("Expected 'content' as string!");if(0===this.options.content.length)throw new Error("Expected 'content' to be non-empty!");if(!(this.options.padding>=0))throw new Error("Expected 'padding' value to be non-negative!");if(!(this.options.width>0&&this.options.height>0))throw new Error("Expected 'width' or 'height' value to be higher than zero!");var n=this.options.content,i=function(t,e){for(var n=function(t){var e=encodeURI(t).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return e.length+(e.length!=t?3:0)}(t),r=1,i=0,o=0,a=h.length;o<=a;o++){var s=h[o];if(!s)throw new Error("Content too long: expected "+i+" but got "+n);switch(e){case"L":i=s[0];break;case"M":i=s[1];break;case"Q":i=s[2];break;case"H":i=s[3];break;default:throw new Error("Unknwon error correction level: "+e)}if(n<=i)break;r++}if(r>h.length)throw new Error("Content too long");return r}(n,this.options.ecl),o=function(t){switch(t){case"L":return 1;case"M":return 0;case"Q":return 3;case"H":return 2;default:throw new Error("Unknwon error correction level: "+t)}}(this.options.ecl);this.qrcode=new r(i,o),this.qrcode.addData(n),this.qrcode.make()}d.prototype.svg=function(t){var e=this.options||{},n=this.qrcode.modules;void 0===t&&(t={container:e.container||"svg"});for(var r=void 0===e.pretty||!!e.pretty,i=r?" ":"",o=r?"\r\n":"",a=e.width,s=e.height,u=n.length,c=a/(u+2*e.padding),l=s/(u+2*e.padding),h=void 0!==e.join&&!!e.join,d=void 0!==e.swap&&!!e.swap,f=void 0===e.xmlDeclaration||!!e.xmlDeclaration,p=void 0!==e.predefined&&!!e.predefined,y=p?i+''+o:"",m=i+''+o,g="",v="",w=0;w'+o:i+''+o}h&&(g=i+'');let x="";if(void 0!==this.options.image&&this.options.image.svg){const t=a*this.options.image.width/100,e=s*this.options.image.height/100;x+=``,x+=this.options.image.svg+o,x+=""}var k="";switch(t.container){case"svg":f&&(k+=''+o),k+=''+o,k+=y+m+g,k+=x,k+="";break;case"svg-viewbox":f&&(k+=''+o),k+=''+o,k+=y+m+g,k+=x,k+="";break;case"g":k+=''+o,k+=y+m+g,k+=x,k+="";break;default:k+=(y+m+g+x).replace(/^\s+/,"")}return k},t.exports=d},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;const i=n(5),o=r(n(207));e.Spinner=t=>{var e;const n=null!==(e=t.size)&&void 0!==e?e:64,r=t.color||"#000";return(0,i.h)("div",{class:"-cbwsdk-spinner"},(0,i.h)("style",null,o.default),(0,i.h)("svg",{viewBox:"0 0 100 100",xmlns:"http://www.w3.org/2000/svg",style:{width:n,height:n}},(0,i.h)("circle",{style:{cx:50,cy:50,r:45,stroke:r}})))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-content{height:430px;width:700px;border-radius:12px;padding:30px}.-cbwsdk-css-reset .-cbwsdk-connect-content.light{background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content.dark{background:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 30px}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading{font-style:normal;font-weight:500;font-size:28px;line-height:36px;margin:0}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-heading.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-layout{display:flex;flex-direction:row}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-left{margin-right:30px;display:flex;flex-direction:column;justify-content:space-between}.-cbwsdk-css-reset .-cbwsdk-connect-content-column-right{flex:25%;margin-right:34px}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-wrapper{width:220px;height:220px;border-radius:12px;display:flex;justify-content:center;align-items:center;background:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting{position:absolute;top:0;bottom:0;left:0;right:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light{background-color:rgba(255,255,255,.95)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.light>p{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark{background-color:rgba(10,11,13,.9)}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting.dark>p{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-content-qr-connecting>p{font-size:12px;font-weight:bold;margin-top:16px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app{border-radius:8px;font-size:14px;line-height:20px;padding:12px;width:339px}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.light{background:#eef0f3;color:#5b636e}.-cbwsdk-css-reset .-cbwsdk-connect-content-update-app.dark{background:#1e2025;color:#8a919e}.-cbwsdk-css-reset .-cbwsdk-cancel-button{-webkit-appearance:none;border:none;background:none;cursor:pointer;padding:0;margin:0}.-cbwsdk-css-reset .-cbwsdk-cancel-button-x{position:relative;display:block;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-wallet-steps{padding:0 0 0 16px;margin:0;width:100%;list-style:decimal}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item{list-style-type:decimal;display:list-item;font-style:normal;font-weight:400;font-size:16px;line-height:24px;margin-top:20px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-item-wrapper{display:flex;align-items:center}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-pad-left{margin-left:6px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon{display:flex;border-radius:50%;height:24px;width:24px}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon svg{margin:auto;display:block}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.light{background:#0052ff}.-cbwsdk-css-reset .-cbwsdk-wallet-steps-icon.dark{background:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item{align-items:center;display:flex;flex-direction:row;padding:16px 24px;gap:12px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-connect-item.light{color:#0a0b0d}.-cbwsdk-css-reset .-cbwsdk-connect-item.light.selected{background:#f5f8ff;color:#0052ff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark{color:#fff}.-cbwsdk-css-reset .-cbwsdk-connect-item.dark.selected{background:#001033;color:#588af5}.-cbwsdk-css-reset .-cbwsdk-connect-item.selected{border-radius:100px;font-weight:600}.-cbwsdk-css-reset .-cbwsdk-connect-item-copy-wrapper{margin:0 4px 0 8px}.-cbwsdk-css-reset .-cbwsdk-connect-item-title{margin:0 0 0;font-size:16px;line-height:24px;font-weight:500}.-cbwsdk-css-reset .-cbwsdk-connect-item-description{font-weight:400;font-size:14px;line-height:20px;margin:0}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.TryExtensionContent=void 0;const i=r(n(69)),o=n(5),a=n(60),s=n(210),u=n(211),c=n(212),l=r(n(213));e.TryExtensionContent=function({theme:t}){const[e,n]=(0,a.useState)(!1),r=(0,a.useCallback)((()=>{window.open("https://api.wallet.coinbase.com/rpc/v2/desktop/chrome","_blank")}),[]),h=(0,a.useCallback)((()=>{e?window.location.reload():(r(),n(!0))}),[r,e]);return(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension",t)},(0,o.h)("style",null,l.default),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("h3",{class:(0,i.default)("-cbwsdk-try-extension-heading",t)},"Or try the Coinbase Wallet browser extension"),(0,o.h)("div",{class:"-cbwsdk-try-extension-cta-wrapper"},(0,o.h)("button",{class:(0,i.default)("-cbwsdk-try-extension-cta",t),onClick:h},e?"Refresh":"Install"),(0,o.h)("div",null,!e&&(0,o.h)(s.ArrowLeftIcon,{class:"-cbwsdk-try-extension-cta-icon",fill:"light"===t?"#0052FF":"#588AF5"})))),(0,o.h)("div",{class:"-cbwsdk-try-extension-column-half"},(0,o.h)("ul",{class:"-cbwsdk-try-extension-list"},(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(u.LaptopIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Connect with dapps with just one click on your desktop browser")),(0,o.h)("li",{class:"-cbwsdk-try-extension-list-item"},(0,o.h)("div",{class:"-cbwsdk-try-extension-list-item-icon-wrapper"},(0,o.h)("span",{class:(0,i.default)("-cbwsdk-try-extension-list-item-icon",t)},(0,o.h)(c.SafeIcon,{fill:"light"===t?"#0A0B0D":"#FFFFFF"}))),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-try-extension-list-item-copy",t)},"Add an additional layer of security by using a supported Ledger hardware wallet")))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ArrowLeftIcon=void 0;const r=n(5);e.ArrowLeftIcon=function(t){return(0,r.h)("svg",Object.assign({width:"16",height:"16",viewBox:"0 0 16 16",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M8.60675 0.155884L7.37816 1.28209L12.7723 7.16662H0V8.83328H12.6548L6.82149 14.6666L8 15.8451L15.8201 8.02501L8.60675 0.155884Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.LaptopIcon=void 0;const r=n(5);e.LaptopIcon=function(t){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{d:"M1.8001 2.2002H12.2001V9.40019H1.8001V2.2002ZM3.4001 3.8002V7.80019H10.6001V3.8002H3.4001Z"}),(0,r.h)("path",{d:"M13.4001 10.2002H0.600098C0.600098 11.0838 1.31644 11.8002 2.2001 11.8002H11.8001C12.6838 11.8002 13.4001 11.0838 13.4001 10.2002Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.SafeIcon=void 0;const r=n(5);e.SafeIcon=function(t){return(0,r.h)("svg",Object.assign({width:"14",height:"14",viewBox:"0 0 14 14",xmlns:"http://www.w3.org/2000/svg"},t),(0,r.h)("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M0.600098 0.600098V11.8001H13.4001V0.600098H0.600098ZM7.0001 9.2001C5.3441 9.2001 4.0001 7.8561 4.0001 6.2001C4.0001 4.5441 5.3441 3.2001 7.0001 3.2001C8.6561 3.2001 10.0001 4.5441 10.0001 6.2001C10.0001 7.8561 8.6561 9.2001 7.0001 9.2001ZM0.600098 12.6001H3.8001V13.4001H0.600098V12.6001ZM10.2001 12.6001H13.4001V13.4001H10.2001V12.6001ZM8.8001 6.2001C8.8001 7.19421 7.99421 8.0001 7.0001 8.0001C6.00598 8.0001 5.2001 7.19421 5.2001 6.2001C5.2001 5.20598 6.00598 4.4001 7.0001 4.4001C7.99421 4.4001 8.8001 5.20598 8.8001 6.2001Z"}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-cbwsdk-connect-dialog{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;display:flex;align-items:center;justify-content:center}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop{z-index:2147483647;position:fixed;top:0;left:0;right:0;bottom:0;transition:opacity .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.light{background-color:rgba(0,0,0,.5)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop.dark{background-color:rgba(50,53,61,.4)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-backdrop-hidden{opacity:0}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box{display:flex;position:relative;flex-direction:column;transform:scale(1);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-box-hidden{opacity:0;transform:scale(0.85)}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container{display:block}.-cbwsdk-css-reset .-cbwsdk-connect-dialog-container-hidden{display:none}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.SnackbarInstance=e.SnackbarContainer=e.Snackbar=void 0;const i=r(n(69)),o=n(5),a=n(60),s=r(n(216));function u(t){switch(t){case"coinbase-app":return"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAiIGhlaWdodD0iMzAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTE0LjY3NCAxOC44NThjLTIuMDQ1IDAtMy42NDgtMS43MjItMy42NDgtMy44NDVzMS42NTktMy44NDUgMy42NDgtMy44NDVjMS44MjQgMCAzLjMxNyA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uMDQ5Yy01LjU0OSAwLTEwLjA0Ny00LjQ5OC0xMC4wNDctMTAuMDQ3IDAtNS41NDggNC40OTgtMTAuMDQ2IDEwLjA0Ny0xMC4wNDYgNS41NDggMCAxMC4wNDYgNC40OTggMTAuMDQ2IDEwLjA0NiAwIDUuNTQ5LTQuNDk4IDEwLjA0Ny0xMC4wNDYgMTAuMDQ3eiIgZmlsbD0iI2ZmZiIvPjxwYXRoIGQ9Ik0xMi43NjIgMTQuMjU0YzAtLjgyMi42NjctMS40ODkgMS40ODktMS40ODloMy40OTdjLjgyMiAwIDEuNDg4LjY2NiAxLjQ4OCAxLjQ4OXYzLjQ5N2MwIC44MjItLjY2NiAxLjQ4OC0xLjQ4OCAxLjQ4OGgtMy40OTdhMS40ODggMS40ODggMCAwMS0xLjQ4OS0xLjQ4OHYtMy40OTh6IiBmaWxsPSIjMTY1MkYwIi8+PC9zdmc+"}}e.Snackbar=class{constructor(t){this.items=new Map,this.nextItemKey=0,this.root=null,this.darkMode=t.darkMode}attach(t){this.root=document.createElement("div"),this.root.className="-cbwsdk-snackbar-root",t.appendChild(this.root),this.render()}presentItem(t){const e=this.nextItemKey++;return this.items.set(e,t),this.render(),()=>{this.items.delete(e),this.render()}}clear(){this.items.clear(),this.render()}render(){this.root&&(0,o.render)((0,o.h)("div",null,(0,o.h)(e.SnackbarContainer,{darkMode:this.darkMode},Array.from(this.items.entries()).map((([t,n])=>(0,o.h)(e.SnackbarInstance,Object.assign({},n,{key:t})))))),this.root)}},e.SnackbarContainer=t=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-container")},(0,o.h)("style",null,s.default),(0,o.h)("div",{class:"-cbwsdk-snackbar"},t.children)),e.SnackbarInstance=({autoExpand:t,message:e,menuItems:n,appSrc:r})=>{const[s,c]=(0,a.useState)(!0),[l,h]=(0,a.useState)(null!=t&&t);return(0,a.useEffect)((()=>{const t=[window.setTimeout((()=>{c(!1)}),1),window.setTimeout((()=>{h(!0)}),1e4)];return()=>{t.forEach(window.clearTimeout)}})),(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance",s&&"-cbwsdk-snackbar-instance-hidden",l&&"-cbwsdk-snackbar-instance-expanded")},(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header",onClick:()=>{h(!l)}},(0,o.h)("img",{src:u(r),class:"-cbwsdk-snackbar-instance-header-cblogo"}),(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-header-message"},e),(0,o.h)("div",{class:"-gear-container"},!l&&(0,o.h)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("circle",{cx:"12",cy:"12",r:"12",fill:"#F5F7F8"})),(0,o.h)("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTEyIDYuNzV2LTEuNWwtMS43Mi0uNTdjLS4wOC0uMjctLjE5LS41Mi0uMzItLjc3bC44MS0xLjYyLTEuMDYtMS4wNi0xLjYyLjgxYy0uMjQtLjEzLS41LS4yNC0uNzctLjMyTDYuNzUgMGgtMS41bC0uNTcgMS43MmMtLjI3LjA4LS41My4xOS0uNzcuMzJsLTEuNjItLjgxLTEuMDYgMS4wNi44MSAxLjYyYy0uMTMuMjQtLjI0LjUtLjMyLjc3TDAgNS4yNXYxLjVsMS43Mi41N2MuMDguMjcuMTkuNTMuMzIuNzdsLS44MSAxLjYyIDEuMDYgMS4wNiAxLjYyLS44MWMuMjQuMTMuNS4yMy43Ny4zMkw1LjI1IDEyaDEuNWwuNTctMS43MmMuMjctLjA4LjUyLS4xOS43Ny0uMzJsMS42Mi44MSAxLjA2LTEuMDYtLjgxLTEuNjJjLjEzLS4yNC4yMy0uNS4zMi0uNzdMMTIgNi43NXpNNiA4LjVhMi41IDIuNSAwIDAxMC01IDIuNSAyLjUgMCAwMTAgNXoiIGZpbGw9IiMwNTBGMTkiLz48L3N2Zz4=",class:"-gear-icon",title:"Expand"}))),n&&n.length>0&&(0,o.h)("div",{class:"-cbwsdk-snackbar-instance-menu"},n.map(((t,e)=>(0,o.h)("div",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-is-red"),onClick:t.onClick,key:e},(0,o.h)("svg",{width:t.svgWidth,height:t.svgHeight,viewBox:"0 0 10 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,o.h)("path",{"fill-rule":t.defaultFillRule,"clip-rule":t.defaultClipRule,d:t.path,fill:"#AAAAAA"})),(0,o.h)("span",{class:(0,i.default)("-cbwsdk-snackbar-instance-menu-item-info",t.isRed&&"-cbwsdk-snackbar-instance-menu-item-info-is-red")},t.info))))))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.default=".-cbwsdk-css-reset .-gear-container{margin-left:16px !important;margin-right:9px !important;display:flex;align-items:center;justify-content:center;width:24px;height:24px;transition:opacity .25s}.-cbwsdk-css-reset .-gear-container *{user-select:none}.-cbwsdk-css-reset .-gear-container svg{opacity:0;position:absolute}.-cbwsdk-css-reset .-gear-icon{height:12px;width:12px;z-index:10000}.-cbwsdk-css-reset .-cbwsdk-snackbar{align-items:flex-end;display:flex;flex-direction:column;position:fixed;right:0;top:0;z-index:2147483647}.-cbwsdk-css-reset .-cbwsdk-snackbar *{user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance{display:flex;flex-direction:column;margin:8px 16px 0 16px;overflow:visible;text-align:left;transform:translateX(0);transition:opacity .25s,transform .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header:hover .-gear-container svg{opacity:1}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header{display:flex;align-items:center;background:#fff;overflow:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-cblogo{margin:8px 8px 8px 8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-header-message{color:#000;font-size:13px;line-height:1.5;user-select:none}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu{background:#fff;transition:opacity .25s ease-in-out,transform .25s linear,visibility 0s;visibility:hidden;border:1px solid #e7ebee;box-sizing:border-box;border-radius:8px;opacity:0;flex-direction:column;padding-left:8px;padding-right:8px}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:last-child{margin-bottom:8px !important}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover{background:#f5f7f8;border-radius:6px;transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover span{color:#050f19;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item:hover svg path{fill:#000;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item{visibility:inherit;height:35px;margin-top:8px;margin-bottom:0;display:flex;flex-direction:row;align-items:center;padding:8px;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item *{visibility:inherit;cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover{background:rgba(223,95,103,.2);transition:background .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover *{cursor:pointer}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover svg path{fill:#df5f67;transition:fill .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-is-red:hover span{color:#df5f67;transition:color .25s}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-menu-item-info{color:#aaa;font-size:13px;margin:0 8px 0 32px;position:absolute}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-hidden{opacity:0;text-align:left;transform:translateX(25%);transition:opacity .5s linear}.-cbwsdk-css-reset .-cbwsdk-snackbar-instance-expanded .-cbwsdk-snackbar-instance-menu{opacity:1;display:flex;transform:translateY(8px);visibility:visible}"},function(t,e,n){var r=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.injectCssReset=void 0;const i=r(n(218));e.injectCssReset=function(){const t=document.createElement("style");t.type="text/css",t.appendChild(document.createTextNode(i.default)),document.documentElement.appendChild(t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.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(t,e,n){var r=this&&this.__createBinding||(Object.create?function(t,e,n,r){void 0===r&&(r=n),Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[n]}})}:function(t,e,n,r){void 0===r&&(r=n),t[r]=e[n]}),i=this&&this.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),o=this&&this.__decorate||function(t,e,n,r){var i,o=arguments.length,a=o<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,r);else for(var s=t.length-1;s>=0;s--)(i=t[s])&&(a=(o<3?i(a):o>3?i(e,n,a):i(e,n))||a);return o>3&&a&&Object.defineProperty(e,n,a),a},a=this&&this.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)"default"!==n&&Object.prototype.hasOwnProperty.call(t,n)&&r(e,t,n);return i(e,t),e},s=this&&this.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelay=void 0;const u=s(n(220)),c=n(87),l=n(70),h=n(101),d=n(90),f=n(221),p=n(225),y=n(67),m=n(38),g=a(n(226)),v=n(91),w=n(108),b=n(124),M=n(227),A=n(228),I=n(229),N=n(230);class E extends w.WalletSDKRelayAbstract{constructor(t){var e;super(),this.accountsCallback=null,this.chainCallback=null,this.dappDefaultChainSubject=new l.BehaviorSubject(1),this.dappDefaultChain=1,this.appName="",this.appLogoUrl=null,this.subscriptions=new l.Subscription,this.linkAPIUrl=t.linkAPIUrl,this.storage=t.storage,this.options=t;const{session:n,ui:r,connection:i}=this.subscribe();if(this._session=n,this.connection=i,this.relayEventManager=t.relayEventManager,t.diagnosticLogger&&t.eventListener)throw new Error("Can't have both eventListener and diagnosticLogger options, use only diagnosticLogger");t.eventListener?this.diagnostic={log:t.eventListener.onEvent}:this.diagnostic=t.diagnosticLogger,this._reloadOnDisconnect=null===(e=t.reloadOnDisconnect)||void 0===e||e,this.ui=r}subscribe(){this.subscriptions.add(this.dappDefaultChainSubject.subscribe((t=>{this.dappDefaultChain!==t&&(this.dappDefaultChain=t)})));const t=v.Session.load(this.storage)||new v.Session(this.storage).save(),e=new f.WalletSDKConnection(t.id,t.key,this.linkAPIUrl,this.diagnostic);this.subscriptions.add(e.sessionConfig$.subscribe({next:t=>{this.onSessionConfigChanged(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"error while invoking session config callback"})}})),this.subscriptions.add(e.incomingEvent$.pipe((0,h.filter)((t=>"Web3Response"===t.event))).subscribe({next:this.handleIncomingEvent})),this.subscriptions.add(e.linked$.pipe((0,h.skip)(1),(0,h.tap)((t=>{var e;this.isLinked=t;const n=this.storage.getItem(w.LOCAL_STORAGE_ADDRESSES_KEY);if(t&&(this.session.linked=t),this.isUnlinkedErrorState=!1,n){const r=n.split(" "),i="true"===this.storage.getItem("IsStandaloneSigning");if(""!==r[0]&&!t&&this.session.linked&&!i){this.isUnlinkedErrorState=!0;const t=this.getSessionIdHash();null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.UNLINKED_ERROR_STATE,{sessionIdHash:t})}}}))).subscribe()),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>!!t.metadata&&"1"===t.metadata.__destroyed))).subscribe((()=>{var t;const n=e.isDestroyed;return null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.METADATA_DESTROYED,{alreadyDestroyed:n,sessionIdHash:this.getSessionIdHash()}),this.resetAndReload()}))),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.WalletUsername))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.WalletUsername,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.WALLET_USER_NAME_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"username"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.AppVersion))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.AppVersion,t.secret)))).subscribe({next:t=>{this.storage.setItem(w.APP_VERSION_KEY,t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appversion"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.ChainId&&void 0!==t.metadata.JsonRpcUrl))).pipe((0,h.mergeMap)((e=>(0,l.zip)(g.decrypt(e.metadata.ChainId,t.secret),g.decrypt(e.metadata.JsonRpcUrl,t.secret))))).pipe((0,h.distinctUntilChanged)()).subscribe({next:([t,e])=>{this.chainCallback&&this.chainCallback(t,e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"chainId|jsonRpcUrl"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.EthereumAddress))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.EthereumAddress,t.secret)))).subscribe({next:t=>{this.accountsCallback&&this.accountsCallback([t]),E.accountRequestCallbackIds.size>0&&(Array.from(E.accountRequestCallbackIds.values()).forEach((e=>{const n=(0,N.Web3ResponseMessage)({id:e,response:(0,I.RequestEthereumAccountsResponse)([t])});this.invokeCallback(Object.assign(Object.assign({},n),{id:e}))})),E.accountRequestCallbackIds.clear())},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"selectedAddress"})}})),this.subscriptions.add(e.sessionConfig$.pipe((0,h.filter)((t=>t.metadata&&void 0!==t.metadata.AppSrc))).pipe((0,h.mergeMap)((e=>g.decrypt(e.metadata.AppSrc,t.secret)))).subscribe({next:t=>{this.ui.setAppSrc(t)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"appSrc"})}}));const n=this.options.uiConstructor({linkAPIUrl:this.options.linkAPIUrl,version:this.options.version,darkMode:this.options.darkMode,session:t,connected$:e.connected$,chainId$:this.dappDefaultChainSubject});return e.connect(),{session:t,ui:n,connection:e}}attachUI(){this.ui.attach()}resetAndReload(){this.connection.setSessionMetadata("__destroyed","1").pipe((0,h.timeout)(1e3),(0,h.catchError)((t=>(0,l.of)(null)))).subscribe((t=>{var e,n,r;const i=this.ui.isStandalone();try{this.subscriptions.unsubscribe()}catch(t){null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.GENERAL_ERROR,{message:"Had error unsubscribing"})}null===(n=this.diagnostic)||void 0===n||n.log(d.EVENTS.SESSION_STATE_CHANGE,{method:"relay::resetAndReload",sessionMetadataChange:"__destroyed, 1",sessionIdHash:this.getSessionIdHash()}),this.connection.destroy();const o=v.Session.load(this.storage);if((null==o?void 0:o.id)===this._session.id?this.storage.clear():o&&(null===(r=this.diagnostic)||void 0===r||r.log(d.EVENTS.SKIPPED_CLEARING_SESSION,{sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:v.Session.hash(o.id)})),this._reloadOnDisconnect)return void this.ui.reloadUI();this.accountsCallback&&this.accountsCallback([],!0);const{session:a,ui:s,connection:u}=this.subscribe();this._session=a,this.connection=u,this.ui=s,i&&this.ui.setStandalone&&this.ui.setStandalone(!0),this.attachUI()}),(t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.FAILURE,{method:"relay::resetAndReload",message:"failed to reset and reload with "+t,sessionIdHash:this.getSessionIdHash()})}))}setAppInfo(t,e){this.appName=t,this.appLogoUrl=e}getStorageItem(t){return this.storage.getItem(t)}get session(){return this._session}setStorageItem(t,e){this.storage.setItem(t,e)}signEthereumMessage(t,e,n,r){return this.sendRequest({method:b.Web3Method.signEthereumMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),address:e,addPrefix:n,typedDataJson:r||null}})}ethereumAddressFromSignedMessage(t,e,n){return this.sendRequest({method:b.Web3Method.ethereumAddressFromSignedMessage,params:{message:(0,m.hexStringFromBuffer)(t,!0),signature:(0,m.hexStringFromBuffer)(e,!0),addPrefix:n}})}signEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxPriorityFeePerGas:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!1}})}signAndSubmitEthereumTransaction(t){return this.sendRequest({method:b.Web3Method.signEthereumTransaction,params:{fromAddress:t.fromAddress,toAddress:t.toAddress,weiValue:(0,m.bigIntStringFromBN)(t.weiValue),data:(0,m.hexStringFromBuffer)(t.data,!0),nonce:t.nonce,gasPriceInWei:t.gasPriceInWei?(0,m.bigIntStringFromBN)(t.gasPriceInWei):null,maxFeePerGas:t.maxFeePerGas?(0,m.bigIntStringFromBN)(t.maxFeePerGas):null,maxPriorityFeePerGas:t.maxPriorityFeePerGas?(0,m.bigIntStringFromBN)(t.maxPriorityFeePerGas):null,gasLimit:t.gasLimit?(0,m.bigIntStringFromBN)(t.gasLimit):null,chainId:t.chainId,shouldSubmit:!0}})}submitEthereumTransaction(t,e){return this.sendRequest({method:b.Web3Method.submitEthereumTransaction,params:{signedTransaction:(0,m.hexStringFromBuffer)(t,!0),chainId:e}})}scanQRCode(t){return this.sendRequest({method:b.Web3Method.scanQRCode,params:{regExp:t}})}getQRCodeUrl(){return(0,m.createQrUrl)(this._session.id,this._session.secret,this.linkAPIUrl,!1,this.options.version,this.dappDefaultChain)}genericRequest(t,e){return this.sendRequest({method:b.Web3Method.generic,params:{action:e,data:t}})}sendGenericMessage(t){return this.sendRequest(t)}sendRequest(t){let e=null;const n=(0,m.randomBytesHex)(8),r=r=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,t.method,r),null==e||e()};return{promise:new Promise(((i,o)=>{this.ui.isStandalone()||(e=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:r,onResetConnection:this.resetAndReload})),this.relayEventManager.callbacks.set(n,(t=>{if(null==e||e(),t.errorMessage)return o(new Error(t.errorMessage));i(t)})),this.ui.isStandalone()?this.sendRequestStandalone(n,t):this.publishWeb3RequestEvent(n,t)})),cancel:r}}setConnectDisabled(t){this.ui.setConnectDisabled(t)}setAccountsCallback(t){this.accountsCallback=t}setChainCallback(t){this.chainCallback=t}setDappDefaultChainCallback(t){this.dappDefaultChainSubject.next(t)}publishWeb3RequestEvent(t,e){var n;const r=(0,A.Web3RequestMessage)({id:t,request:e}),i=v.Session.load(this.storage);null===(n=this.diagnostic)||void 0===n||n.log(d.EVENTS.WEB3_REQUEST,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()}),this.subscriptions.add(this.publishEvent("Web3Request",r,!0).subscribe({next:t=>{var e;null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.WEB3_REQUEST_PUBLISHED,{eventId:r.id,method:"relay::"+r.request.method,sessionIdHash:this.getSessionIdHash(),storedSessionIdHash:i?v.Session.hash(i.id):"",isSessionMismatched:((null==i?void 0:i.id)!==this._session.id).toString()})},error:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r.id,response:{method:r.request.method,errorMessage:t.message}}))}}))}publishWeb3RequestCanceledEvent(t){const e=(0,M.Web3RequestCanceledMessage)(t);this.subscriptions.add(this.publishEvent("Web3RequestCanceled",e,!1).subscribe())}publishEvent(t,e,n){const r=this.session.secret;return new l.Observable((t=>{g.encrypt(JSON.stringify(Object.assign(Object.assign({},e),{origin:location.origin})),r).then((e=>{t.next(e),t.complete()}))})).pipe((0,h.mergeMap)((e=>this.connection.publishEvent(t,e,n))))}handleIncomingEvent(t){try{this.subscriptions.add((0,l.from)(g.decrypt(t.data,this.session.secret)).pipe((0,h.map)((t=>JSON.parse(t)))).subscribe({next:t=>{const e=(0,N.isWeb3ResponseMessage)(t)?t:null;e&&this.handleWeb3ResponseMessage(e)},error:()=>{var t;null===(t=this.diagnostic)||void 0===t||t.log(d.EVENTS.GENERAL_ERROR,{message:"Had error decrypting",value:"incomingEvent"})}}))}catch(t){return}}handleWeb3ResponseMessage(t){var e;const{response:n}=t;if(null===(e=this.diagnostic)||void 0===e||e.log(d.EVENTS.WEB3_RESPONSE,{eventId:t.id,method:"relay::"+n.method,sessionIdHash:this.getSessionIdHash()}),(0,I.isRequestEthereumAccountsResponse)(n))return E.accountRequestCallbackIds.forEach((e=>this.invokeCallback(Object.assign(Object.assign({},t),{id:e})))),void E.accountRequestCallbackIds.clear();this.invokeCallback(t)}handleErrorResponse(t,e,n,r){this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:t,response:(0,I.ErrorResponse)(e,(null!=n?n:p.WalletUIError.UserRejectedRequest).message,r)}))}invokeCallback(t){const e=this.relayEventManager.callbacks.get(t.id);e&&(e(t.response),this.relayEventManager.callbacks.delete(t.id))}requestEthereumAccounts(){const t={method:b.Web3Method.requestEthereumAccounts,params:{appName:this.appName,appLogoUrl:this.appLogoUrl||null}},e=(0,m.randomBytesHex)(8),n=n=>{this.publishWeb3RequestCanceledEvent(e),this.handleErrorResponse(e,t.method,n)};return{promise:new Promise(((r,i)=>{var o;this.relayEventManager.callbacks.set(e,(t=>{if(this.ui.hideRequestEthereumAccounts(),t.errorMessage)return i(new Error(t.errorMessage));r(t)}));const a=(null===(o=null===window||void 0===window?void 0:window.navigator)||void 0===o?void 0:o.userAgent)||null;if(a&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(a)){let t;try{t=(0,m.isInIFrame)()&&window.top?window.top.location:window.location}catch(e){t=window.location}t.href="https://www.coinbase.com/connect-dapp?uri="+encodeURIComponent(t.href)}else{if(this.ui.inlineAccountsResponse()){const t=t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:e,response:(0,I.RequestEthereumAccountsResponse)(t)}))};this.ui.requestEthereumAccounts({onCancel:n,onAccounts:t})}else{const t=c.ethErrors.provider.userRejectedRequest("User denied account authorization");this.ui.requestEthereumAccounts({onCancel:()=>n(t)})}E.accountRequestCallbackIds.add(e),this.ui.inlineAccountsResponse()||this.ui.isStandalone()||this.publishWeb3RequestEvent(e,t)}})),cancel:n}}selectProvider(t){const e={method:b.Web3Method.selectProvider,params:{providerOptions:t}},n=(0,m.randomBytesHex)(8);return{cancel:t=>{this.publishWeb3RequestCanceledEvent(n),this.handleErrorResponse(n,e.method,t)},promise:new Promise(((e,r)=>{this.relayEventManager.callbacks.set(n,(t=>{if(t.errorMessage)return r(new Error(t.errorMessage));e(t)})),this.ui.selectProvider&&this.ui.selectProvider({onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,I.SelectProviderResponse)(t)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:n,response:(0,I.SelectProviderResponse)(y.ProviderType.Unselected)}))},providerOptions:t})}))}}watchAsset(t,e,n,r,i,o){const a={method:b.Web3Method.watchAsset,params:{type:t,options:{address:e,symbol:n,decimals:r,image:i},chainId:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,t),null==s||s()};return this.ui.inlineWatchAsset()||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{cancel:c,promise:new Promise(((c,l)=>{this.relayEventManager.callbacks.set(u,(t=>{if(null==s||s(),t.errorMessage)return l(new Error(t.errorMessage));c(t)}));this.ui.inlineWatchAsset()&&this.ui.watchAsset({onApprove:()=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.WatchAssetReponse)(!0)}))},onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.WatchAssetReponse)(!1)}))},type:t,address:e,symbol:n,decimals:r,image:i,chainId:o}),this.ui.inlineWatchAsset()||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)}))}}addEthereumChain(t,e,n,r,i,o){const a={method:b.Web3Method.addEthereumChain,params:{chainId:t,rpcUrls:e,blockExplorerUrls:r,chainName:i,iconUrls:n,nativeCurrency:o}};let s=null;const u=(0,m.randomBytesHex)(8),c=t=>{this.publishWeb3RequestCanceledEvent(u),this.handleErrorResponse(u,a.method,t),null==s||s()};return this.ui.inlineAddEthereumChain(t)||(s=this.ui.showConnecting({isUnlinkedErrorState:this.isUnlinkedErrorState,onCancel:c,onResetConnection:this.resetAndReload})),{promise:new Promise(((e,n)=>{this.relayEventManager.callbacks.set(u,(t=>{if(null==s||s(),t.errorMessage)return n(new Error(t.errorMessage));e(t)}));this.ui.inlineAddEthereumChain(t)&&this.ui.addEthereumChain({onCancel:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.AddEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:u,response:(0,I.AddEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},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(t)||this.ui.isStandalone()||this.publishWeb3RequestEvent(u,a)})),cancel:c}}switchEthereumChain(t,e){const n={method:b.Web3Method.switchEthereumChain,params:Object.assign({chainId:t},{address:e})},r=(0,m.randomBytesHex)(8);return{promise:new Promise(((t,e)=>{this.relayEventManager.callbacks.set(r,(n=>n.errorMessage&&n.errorCode?e(c.ethErrors.provider.custom({code:n.errorCode,message:"Unrecognized chain ID. Try adding the chain using addEthereumChain first."})):n.errorMessage?e(new Error(n.errorMessage)):void t(n))),this.ui.switchEthereumChain({onCancel:t=>{if("number"==typeof t){const e=t;this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.ErrorResponse)(b.Web3Method.switchEthereumChain,p.WalletUIError.SwitchEthereumChainUnsupportedChainId.message,e)}))}else t instanceof p.WalletUIError?this.handleErrorResponse(r,b.Web3Method.switchEthereumChain,t,t.errorCode):this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.SwitchEthereumChainResponse)({isApproved:!1,rpcUrl:""})}))},onApprove:t=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:r,response:(0,I.SwitchEthereumChainResponse)({isApproved:!0,rpcUrl:t})}))},chainId:n.params.chainId,address:n.params.address}),this.ui.inlineSwitchEthereumChain()||this.ui.isStandalone()||this.publishWeb3RequestEvent(r,n)})),cancel:t=>{this.publishWeb3RequestCanceledEvent(r),this.handleErrorResponse(r,n.method,t)}}}inlineAddEthereumChain(t){return this.ui.inlineAddEthereumChain(t)}getSessionIdHash(){return v.Session.hash(this._session.id)}sendRequestStandalone(t,e){const n=n=>{this.handleErrorResponse(t,e.method,n)},r=e=>{this.handleWeb3ResponseMessage((0,N.Web3ResponseMessage)({id:t,response:e}))};switch(e.method){case b.Web3Method.signEthereumMessage:this.ui.signEthereumMessage({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.signEthereumTransaction:this.ui.signEthereumTransaction({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.submitEthereumTransaction:this.ui.submitEthereumTransaction({request:e,onSuccess:r,onCancel:n});break;case b.Web3Method.ethereumAddressFromSignedMessage:this.ui.ethereumAddressFromSignedMessage({request:e,onSuccess:r});break;default:n()}}onSessionConfigChanged(t){}}E.accountRequestCallbackIds=new Set,o([u.default],E.prototype,"resetAndReload",null),o([u.default],E.prototype,"handleIncomingEvent",null),e.WalletSDKRelay=E},function(t,e,n){var r;function i(t,e,n){if(!n||typeof n.value!==r.typeOfFunction)throw new TypeError("Only methods can be decorated with @bind. <"+e+"> is not a method!");return{configurable:r.boolTrue,get:function(){var t=n.value.bind(this);return Object.defineProperty(this,e,{value:t,configurable:r.boolTrue,writable:r.boolTrue}),t}}}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t.typeOfFunction="function",t.boolTrue=!0}(r||(r={})),e.bind=i,e.default=i},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKConnection=void 0;const r=n(70),i=n(101),o=n(91),a=n(67),s=n(222),u=n(90),c=n(223),l=n(224);e.WalletSDKConnection=class{constructor(t,e,n,s,l=WebSocket){this.sessionId=t,this.sessionKey=e,this.diagnostic=s,this.subscriptions=new r.Subscription,this.destroyed=!1,this.lastHeartbeatResponse=0,this.nextReqId=(0,a.IntNumber)(1),this.connectedSubject=new r.BehaviorSubject(!1),this.linkedSubject=new r.BehaviorSubject(!1),this.sessionConfigSubject=new r.ReplaySubject(1);const h=new c.RxWebSocket(n+"/rpc",l);this.ws=h,this.subscriptions.add(h.connectionState$.pipe((0,i.tap)((e=>{var n;return null===(n=this.diagnostic)||void 0===n?void 0:n.log(u.EVENTS.CONNECTED_STATE_CHANGE,{state:e,sessionIdHash:o.Session.hash(t)})})),(0,i.skip)(1),(0,i.filter)((t=>t===c.ConnectionState.DISCONNECTED&&!this.destroyed)),(0,i.delay)(5e3),(0,i.filter)((t=>!this.destroyed)),(0,i.flatMap)((t=>h.connect())),(0,i.retry)()).subscribe()),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(2),(0,i.switchMap)((t=>(0,r.iif)((()=>t===c.ConnectionState.CONNECTED),this.authenticate().pipe((0,i.tap)((t=>this.sendIsLinked())),(0,i.tap)((t=>this.sendGetSessionConfig())),(0,i.map)((t=>!0))),(0,r.of)(!1)))),(0,i.distinctUntilChanged)(),(0,i.catchError)((t=>(0,r.of)(!1)))).subscribe((t=>this.connectedSubject.next(t)))),this.subscriptions.add(h.connectionState$.pipe((0,i.skip)(1),(0,i.switchMap)((t=>(0,r.iif)((()=>t===c.ConnectionState.CONNECTED),(0,r.timer)(0,1e4))))).subscribe((t=>0===t?this.updateLastHeartbeat():this.heartbeat()))),this.subscriptions.add(h.incomingData$.pipe((0,i.filter)((t=>"h"===t))).subscribe((t=>this.updateLastHeartbeat()))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["IsLinkedOK","Linked"].includes(t.type)))).subscribe((e=>{var n;const r=e;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.LINKED,{sessionIdHash:o.Session.hash(t),linked:r.linked,type:e.type,onlineGuests:r.onlineGuests}),this.linkedSubject.next(r.linked||r.onlineGuests>0)}))),this.subscriptions.add(h.incomingJSONData$.pipe((0,i.filter)((t=>["GetSessionConfigOK","SessionConfigUpdated"].includes(t.type)))).subscribe((e=>{var n;const r=e;null===(n=this.diagnostic)||void 0===n||n.log(u.EVENTS.SESSION_CONFIG_RECEIVED,{sessionIdHash:o.Session.hash(t),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 t;if(this.destroyed)throw new Error("instance is destroyed");null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.STARTED_CONNECTING,{sessionIdHash:o.Session.hash(this.sessionId)}),this.ws.connect().subscribe()}destroy(){var t;this.subscriptions.unsubscribe(),this.ws.disconnect(),null===(t=this.diagnostic)||void 0===t||t.log(u.EVENTS.DISCONNECTED,{sessionIdHash:o.Session.hash(this.sessionId)}),this.destroyed=!0}get isDestroyed(){return this.destroyed}get connected$(){return this.connectedSubject.asObservable()}get onceConnected$(){return this.connected$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get linked$(){return this.linkedSubject.asObservable()}get onceLinked$(){return this.linked$.pipe((0,i.filter)((t=>t)),(0,i.take)(1),(0,i.map)((()=>{})))}get sessionConfig$(){return this.sessionConfigSubject.asObservable()}get incomingEvent$(){return this.ws.incomingJSONData$.pipe((0,i.filter)((t=>{if("Event"!==t.type)return!1;const e=t;return"string"==typeof e.sessionId&&"string"==typeof e.eventId&&"string"==typeof e.event&&"string"==typeof e.data})),(0,i.map)((t=>t)))}setSessionMetadata(t,e){const n=(0,s.ClientMessageSetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,metadata:{[t]:e}});return this.onceConnected$.pipe((0,i.flatMap)((t=>this.makeRequest(n))),(0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to set session metadata")})))}publishEvent(t,e,n=!1){const r=(0,s.ClientMessagePublishEvent)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,event:t,data:e,callWebhook:n});return this.onceLinked$.pipe((0,i.flatMap)((t=>this.makeRequest(r))),(0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to publish event");return t.eventId})))}sendData(t){this.ws.sendData(JSON.stringify(t))}updateLastHeartbeat(){this.lastHeartbeatResponse=Date.now()}heartbeat(){if(Date.now()-this.lastHeartbeatResponse>2e4)this.ws.disconnect();else try{this.ws.sendData("h")}catch(t){}}makeRequest(t,e=6e4){const n=t.id;try{this.sendData(t)}catch(t){return(0,r.throwError)(t)}return this.ws.incomingJSONData$.pipe((0,i.timeoutWith)(e,(0,r.throwError)(new Error(`request ${n} timed out`))),(0,i.filter)((t=>t.id===n)),(0,i.take)(1))}authenticate(){const t=(0,s.ClientMessageHostSession)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId,sessionKey:this.sessionKey});return this.makeRequest(t).pipe((0,i.map)((t=>{if((0,l.isServerMessageFail)(t))throw new Error(t.error||"failed to authentcate")})))}sendIsLinked(){const t=(0,s.ClientMessageIsLinked)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}sendGetSessionConfig(){const t=(0,s.ClientMessageGetSessionConfig)({id:(0,a.IntNumber)(this.nextReqId++),sessionId:this.sessionId});this.sendData(t)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.ClientMessagePublishEvent=e.ClientMessageSetSessionConfig=e.ClientMessageGetSessionConfig=e.ClientMessageIsLinked=e.ClientMessageHostSession=void 0,e.ClientMessageHostSession=function(t){return Object.assign({type:"HostSession"},t)},e.ClientMessageIsLinked=function(t){return Object.assign({type:"IsLinked"},t)},e.ClientMessageGetSessionConfig=function(t){return Object.assign({type:"GetSessionConfig"},t)},e.ClientMessageSetSessionConfig=function(t){return Object.assign({type:"SetSessionConfig"},t)},e.ClientMessagePublishEvent=function(t){return Object.assign({type:"PublishEvent"},t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.RxWebSocket=e.ConnectionState=void 0;const r=n(70),i=n(101);var o;!function(t){t[t.DISCONNECTED=0]="DISCONNECTED",t[t.CONNECTING=1]="CONNECTING",t[t.CONNECTED=2]="CONNECTED"}(o=e.ConnectionState||(e.ConnectionState={})),e.RxWebSocket=class{constructor(t,e=WebSocket){this.WebSocketClass=e,this.webSocket=null,this.connectionStateSubject=new r.BehaviorSubject(o.DISCONNECTED),this.incomingDataSubject=new r.Subject,this.url=t.replace(/^http/,"ws")}connect(){return this.webSocket?(0,r.throwError)(new Error("webSocket object is not null")):new r.Observable((t=>{let e;try{this.webSocket=e=new this.WebSocketClass(this.url)}catch(e){return void t.error(e)}this.connectionStateSubject.next(o.CONNECTING),e.onclose=e=>{this.clearWebSocket(),t.error(new Error(`websocket error ${e.code}: ${e.reason}`)),this.connectionStateSubject.next(o.DISCONNECTED)},e.onopen=e=>{t.next(),t.complete(),this.connectionStateSubject.next(o.CONNECTED)},e.onmessage=t=>{this.incomingDataSubject.next(t.data)}})).pipe((0,i.take)(1))}disconnect(){const{webSocket:t}=this;if(t){this.clearWebSocket(),this.connectionStateSubject.next(o.DISCONNECTED);try{t.close()}catch(t){}}}get connectionState$(){return this.connectionStateSubject.asObservable()}get incomingData$(){return this.incomingDataSubject.asObservable()}get incomingJSONData$(){return this.incomingData$.pipe((0,i.flatMap)((t=>{let e;try{e=JSON.parse(t)}catch(t){return(0,r.empty)()}return(0,r.of)(e)})))}sendData(t){const{webSocket:e}=this;if(!e)throw new Error("websocket is not connected");e.send(t)}clearWebSocket(){const{webSocket:t}=this;t&&(this.webSocket=null,t.onclose=null,t.onerror=null,t.onmessage=null,t.onopen=null)}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isServerMessageFail=void 0,e.isServerMessageFail=function(t){return t&&"Fail"===t.type&&"number"==typeof t.id&&"string"==typeof t.sessionId&&"string"==typeof t.error}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletUIError=void 0;class r extends Error{constructor(t,e){super(t),this.message=t,this.errorCode=e}}e.WalletUIError=r,r.UserRejectedRequest=new r("User rejected request"),r.SwitchEthereumChainUnsupportedChainId=new r("Unsupported chainId",4902)},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.decrypt=e.encrypt=void 0;const r=n(38);e.encrypt=async function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");const n=crypto.getRandomValues(new Uint8Array(12)),i=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),o=new TextEncoder,a=await window.crypto.subtle.encrypt({name:"AES-GCM",iv:n},i,o.encode(t)),s=a.slice(a.byteLength-16),u=a.slice(0,a.byteLength-16),c=new Uint8Array(s),l=new Uint8Array(u),h=new Uint8Array([...n,...c,...l]);return(0,r.uint8ArrayToHex)(h)},e.decrypt=function(t,e){if(64!==e.length)throw Error("secret must be 256 bits");return new Promise(((n,i)=>{!async function(){const o=await crypto.subtle.importKey("raw",(0,r.hexStringToUint8Array)(e),{name:"aes-gcm"},!1,["encrypt","decrypt"]),a=(0,r.hexStringToUint8Array)(t),s=a.slice(0,12),u=a.slice(12,28),c=a.slice(28),l=new Uint8Array([...c,...u]),h={name:"AES-GCM",iv:new Uint8Array(s)};try{const t=await window.crypto.subtle.decrypt(h,o,l),e=new TextDecoder;n(e.decode(t))}catch(t){i(t)}}()}))}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestCanceledMessage=void 0;const r=n(100);e.Web3RequestCanceledMessage=function(t){return{type:r.RelayMessageType.WEB3_REQUEST_CANCELED,id:t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.Web3RequestMessage=void 0;const r=n(100);e.Web3RequestMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_REQUEST},t)}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.EthereumAddressFromSignedMessageResponse=e.SubmitEthereumTransactionResponse=e.SignEthereumTransactionResponse=e.SignEthereumMessageResponse=e.isRequestEthereumAccountsResponse=e.SelectProviderResponse=e.WatchAssetReponse=e.RequestEthereumAccountsResponse=e.SwitchEthereumChainResponse=e.AddEthereumChainResponse=e.ErrorResponse=void 0;const r=n(124);e.ErrorResponse=function(t,e,n){return{method:t,errorMessage:e,errorCode:n}},e.AddEthereumChainResponse=function(t){return{method:r.Web3Method.addEthereumChain,result:t}},e.SwitchEthereumChainResponse=function(t){return{method:r.Web3Method.switchEthereumChain,result:t}},e.RequestEthereumAccountsResponse=function(t){return{method:r.Web3Method.requestEthereumAccounts,result:t}},e.WatchAssetReponse=function(t){return{method:r.Web3Method.watchAsset,result:t}},e.SelectProviderResponse=function(t){return{method:r.Web3Method.selectProvider,result:t}},e.isRequestEthereumAccountsResponse=function(t){return t&&t.method===r.Web3Method.requestEthereumAccounts},e.SignEthereumMessageResponse=function(t){return{method:r.Web3Method.signEthereumMessage,result:t}},e.SignEthereumTransactionResponse=function(t){return{method:r.Web3Method.signEthereumTransaction,result:t}},e.SubmitEthereumTransactionResponse=function(t){return{method:r.Web3Method.submitEthereumTransaction,result:t}},e.EthereumAddressFromSignedMessageResponse=function(t){return{method:r.Web3Method.ethereumAddressFromSignedMessage,result:t}}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.isWeb3ResponseMessage=e.Web3ResponseMessage=void 0;const r=n(100);e.Web3ResponseMessage=function(t){return Object.assign({type:r.RelayMessageType.WEB3_RESPONSE},t)},e.isWeb3ResponseMessage=function(t){return t&&t.type===r.RelayMessageType.WEB3_RESPONSE}},function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.WalletSDKRelayEventManager=void 0;const r=n(38);e.WalletSDKRelayEventManager=class{constructor(){this._nextRequestId=0,this.callbacks=new Map}makeRequestId(){this._nextRequestId=(this._nextRequestId+1)%2147483647;const t=this._nextRequestId,e=(0,r.prepend0x)(t.toString(16));return this.callbacks.get(e)&&this.callbacks.delete(e),t}}},function(t){t.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(t,e,n){function r(t,e,n,r){return new(n||(n=Promise))((function(i,o){function a(t){try{u(r.next(t))}catch(t){o(t)}}function s(t){try{u(r.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof n?e:new n((function(t){t(e)}))).then(a,s)}u((r=r.apply(t,e||[])).next())}))}function i(t,e){var n,r,i,o,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o&&(o=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((i=(i=a.trys).length>0&&i[i.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]1)throw new Error("this method is unavailabel on semaphores with concurrency > 1; use the scoped release returned by acquire instead");if(this._currentReleaser){var t=this._currentReleaser;this._currentReleaser=void 0,t()}},t.prototype._dispatch=function(){var t=this,e=this._queue.shift();if(e){var n=!1;this._currentReleaser=function(){n||(n=!0,t._value++,t._dispatch())},e([this._value--,this._currentReleaser])}},t}(),a=function(){function t(){this._semaphore=new o(1)}return t.prototype.acquire=function(){return r(this,void 0,void 0,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this._semaphore.acquire()];case 1:return[2,t.sent()[1]]}}))}))},t.prototype.runExclusive=function(t){return this._semaphore.runExclusive((function(){return t()}))},t.prototype.isLocked=function(){return this._semaphore.isLocked()},t.prototype.release=function(){this._semaphore.release()},t}();function s(t,e,n){var o=this;return void 0===n&&(n=new Error("timeout")),{acquire:function(){return new Promise((function(a,s){return r(o,void 0,void 0,(function(){var r,o;return i(this,(function(i){switch(i.label){case 0:return r=!1,setTimeout((function(){r=!0,s(n)}),e),[4,t.acquire()];case 1:return o=i.sent(),r?(Array.isArray(o)?o[1]:o)():a(o),[2]}}))}))}))},runExclusive:function(t){return r(this,void 0,void 0,(function(){var e,n;return i(this,(function(r){switch(r.label){case 0:e=function(){},r.label=1;case 1:return r.trys.push([1,,7,8]),[4,this.acquire()];case 2:return n=r.sent(),Array.isArray(n)?(e=n[1],[4,t(n[0])]):[3,4];case 3:return[2,r.sent()];case 4:return e=n,[4,t()];case 5:return[2,r.sent()];case 6:return[3,8];case 7:return e(),[7];case 8:return[2]}}))}))},release:function(){t.release()},isLocked:function(){return t.isLocked()}}}}]);void 0===UI&&console.error("esm-webpack-plugin: nothing exported!"),UI.CoinbaseWalletProvider;const QI=UI.CoinbaseWalletSDK;function YI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class WI{constructor({blockchain:t,from:e,to:n,value:r,api:i,method:o,params:a,instructions:s,signers:u,alts:c,sent:l,succeeded:h,failed:d}){this.blockchain=t,this.from=e&&e.match("0x")?am(e):e,this.to=n&&n.match("0x")?am(n):n,this.value=YI([WI,"access",t=>t.bigNumberify,"call",e=>e(r,t),"optionalAccess",t=>t.toString,"call",t=>t()]),this.api=i,this.method=o,this.params=a,this.sent=l,this.succeeded=h,this.failed=d,this.instructions=s,this.signers=u,this.alts=c,this._succeeded=!1,this._failed=!1}async prepare({wallet:t}){this.from=await t.account(this.blockchain)}static bigNumberify(t,e){return"number"==typeof t?cI(t.toString(),Hf[e].currency.decimals):t&&t.toString?Fp.from(t.toString()):t}findFragment(){return this.getContract().interface.fragments.find((t=>!(t.name!=this.method||t.inputs&&this.params&&"object"==typeof this.params&&t.inputs.length!=Object.keys(this.params).length)))}getParamType(t){return YI([t,"optionalAccess",t=>t.components,"optionalAccess",t=>t.length])?`(${t.components.map((t=>this.getParamType(t))).join(",")})`:t.type}getMethodNameWithSignature(){let t=this.findFragment();return t.inputs?`${this.method}(${t.inputs.map((t=>this.getParamType(t))).join(",")})`:this.method}getContractArguments(){if(this.params instanceof Array)return this.params;if(this.params instanceof Object){return this.findFragment().inputs.map((t=>this.params[t.name]))}}getContract(){return new PM(this.to,this.api)}async getData(){let t,e=this.getContractArguments();return t=e?await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null,e):await this.getContract().populateTransaction[this.getMethodNameWithSignature()].apply(null),t.data}success(){return this._succeeded?Promise.resolve(this):new Promise(((t,e)=>{let n=this.succeeded;this.succeeded=e=>{n&&n(e),t(e)}}))}failure(){return this._failed?Promise.resolve(this):new Promise(((t,e)=>{let n=this.failed;this.failed=(e,r)=>{n&&n(e,r),t(e,r)}}))}}function FI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const VI=async({transaction:t,wallet:e})=>(t=new WI(t),await t.prepare({wallet:e}),await HI({transaction:t,wallet:e}).then((e=>{if(!e)throw"Submitting transaction failed!";{t.id=e,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t);let n=0;const r=setInterval((async()=>{if(n++,n>=240)return clearInterval(r);const i=await SI(t.blockchain),{value:o}=await i.getSignatureStatus(e),a=FI([o,"optionalAccess",t=>t.confirmationStatus]);if(a){if("confirmed"===a||"finalized"===a){if(o.err){t._failed=!0;const n=await i.getConfirmedTransaction(e),r=FI([n,"optionalAccess",t=>t.meta,"optionalAccess",t=>t.logMessages])?n.meta.logMessages[n.meta.logMessages.length-1]:null;t.failed&&t.failed(t,r)}else t._succeeded=!0,t.succeeded&&t.succeeded(t);return clearInterval(r)}}}),500)}})),t),HI=async({transaction:t,wallet:e})=>{let n,r=await qI({transaction:t,wallet:e});return"object"==typeof r&&r.signatures&&r.message?n=await GI(r,await e.account()):"object"==typeof r&&r.signature&&r.signature.length?n=r.signature:"string"==typeof r&&r.length&&(n=r),n},GI=async(t,e)=>{let n=await SI("solana");return await n.sendRawTransaction(t.serialize())},qI=async({transaction:t,wallet:e})=>t.instructions?JI({transaction:t,wallet:e}):ZI({transaction:t,wallet:e}),ZI=async({transaction:t,wallet:e})=>{let n=new Xs(await e.account()),r=new Xs(t.to);const i=await SI(t.blockchain);let o=(await i.getLatestBlockhash()).blockhash;const a=[Wu.transfer({fromPubkey:n,toPubkey:r,lamports:parseInt(WI.bigNumberify(t.value,t.blockchain),10)})],s=new wu({payerKey:n,recentBlockhash:o,instructions:a}).compileToV0Message(),u=new bu(s);return e._sendTransaction(u)},JI=async({transaction:t,wallet:e})=>{let n=new Xs(await e.account());const r=await SI(t.blockchain);let i=(await r.getLatestBlockhash()).blockhash;const o=new wu({payerKey:n,recentBlockhash:i,instructions:t.instructions}).compileToV0Message(t.alts?await Promise.all(t.alts.map((async t=>(await SI("solana")).getAddressLookupTable(new Xs(t)).then((t=>t.value))))):void 0),a=new bu(o);return t.signers&&t.signers.length&&a.sign(Array.from(new Set(t.signers))),e._sendTransaction(a)};let XI=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function KI(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}XI.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],XI.solana=["solana"];class $I{static __initStatic(){this.info={name:"Solana Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDA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IHgxPSIxNDMuMDkyOSIgeTE9IjEzNi4yMjEyIiB4Mj0iMTE2LjIwODIiIHkyPSIxODcuNzE2MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgMzAuNTM1NCkiPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6IzAwRkZBMyIvPgoJPHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6I0RDMUZGRiIvPgo8L2xpbmVhckdyYWRpZW50Pgo8cGF0aCBzdHlsZT0iZmlsbDp1cmwoI1NWR0lEXzAwMDAwMDIyNTU3MTYwNTg5MTY1MTU3NTIwMDAwMDE1NDYyNjI0Mjk4Nzk4NTYzMjYxXyk7IiBkPSJNMTQ1LjYsMTg5LjFjLTAuMy0wLjMtMC43LTAuNS0xLjEtMC41CgloLTM4LjhjLTAuNywwLTEuMSwwLjktMC42LDEuNGw3LjcsNy43YzAuMywwLjMsMC43LDAuNSwxLjEsMC41aDM4LjhjMC43LDAsMS4xLTAuOSwwLjYtMS40TDE0NS42LDE4OS4xeiIvPgo8L3N2Zz4K",blockchains:XI.solana}}static __initStatic2(){this.isAvailable=async()=>KI([window,"optionalAccess",t=>t.solana])&&!(window.phantom&&!window.glow&&!window.solana.isGlow&&!["isBitKeep"].some((t=>window.solana&&window.solana[t])))&&!window.coin98&&!(KI([window,"optionalAccess",t=>t.solana])&&KI([window,"optionalAccess",t=>t.solana,"access",t=>t.isBitKeep]))&&!window.solana.isGlow&&!window.trustwallet&&!window.solana.isBraveWallet&&!KI([window,"optionalAccess",t=>t.okxwallet])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=t=>VI({wallet:this,transaction:t})}getProvider(){return window.solana}async account(){const t=this.getProvider();if(null!=t){if(t.publicKey)return t.publicKey.toString();if(1!=t.isBraveWallet){let t;try{({publicKey:t}=await window.solana.connect({onlyIfTrusted:!0}))}catch(t){}if(t)return t.toString()}}}async connect(){const t=this.getProvider();if(!t)return;let e;try{e=await t.connect()}catch(t){}return e&&e.publicKey?e.publicKey.toString():t.publicKey.toString()}on(t,e){let n;switch(t){case"account":n=t=>e(KI([t,"optionalAccess",t=>t.toString,"call",t=>t()])),this.getProvider().on("accountChanged",n)}return n}off(t,e){switch(t){case"account":this.getProvider().removeListener("accountChanged",e)}return e}async connectedTo(t){return t?"solana"==t:"solana"}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}async sign(t){const e=(new TextEncoder).encode(t),n=await this.getProvider().signMessage(e);if(n&&n.signature)return Array.from(n.signature)}_sendTransaction(t){return this.getProvider().signAndSendTransaction(t,{skipPreflight:!1})}}$I.__initStatic(),$I.__initStatic2();class tN extends $I{static __initStatic(){this.info={name:"Backpack",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxMDAgMTAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxMDAgMTAwOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2NsaXAtcGF0aDp1cmwoI1NWR0lEXzAw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0NS4xLDUwLDQ1LjF6IE0yMy44LDY4LjFjMC0xLjMsMS4xLTIuMywyLjQtMi4zCgkJCWg0Ny42YzEuMywwLDIuNCwxLDIuNCwyLjNWODJjMCwyLjYtMi4xLDQuNi00LjgsNC42SDI4LjZjLTIuNiwwLTQuOC0yLjEtNC44LTQuNlY2OC4xeiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.backpack])&&window.backpack.isBackpack}getProvider(){return window.backpack}async sign(t){const e=(new TextEncoder).encode(t),n=await this.getProvider().signMessage(e);return Object.values(n)}_sendTransaction(t){return this.getProvider().sendAndConfirm(t)}}function eN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}tN.__initStatic(),tN.__initStatic2();const nN=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&eN([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{nN(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&eN([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{nN(t).then(e).catch(n)}),500):n(r)}})),rN=({transaction:t,provider:e,signer:n})=>t.method?iN({transaction:t,signer:n,provider:e}):oN({transaction:t,signer:n}),iN=async({transaction:t,signer:e,provider:n})=>{let r,i=new PM(t.to,t.api,n),o=t.getContractArguments({contract:i}),a=i.connect(e)[t.getMethodNameWithSignature()];try{r=await DI(t),r=r.add(r.div(10))}catch(t){}return o?await a(...o,{value:WI.bigNumberify(t.value,t.blockchain),gasLimit:eN([r,"optionalAccess",t=>t.toHexString,"call",t=>t()])}):await a({value:WI.bigNumberify(t.value,t.blockchain),gasLimit:eN([r,"optionalAccess",t=>t.toHexString,"call",t=>t()])})},oN=({transaction:t,signer:e})=>e.sendTransaction({to:t.to,value:WI.bigNumberify(t.value,t.blockchain)});function aN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class sN{static __initStatic(){this.info={name:"Ethereum Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NDYuNCAzNzYuOCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNDQ2LjQgMzc2Ljg7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojODI4NDg3O30KCS5zdDF7ZmlsbDojMzQzNDM0O30KCS5zdDJ7ZmlsbDojOEM4QzhDO30KCS5zdDN7ZmlsbDojM0MzQzNCO30KCS5zdDR7ZmlsbDojMTQxNDE0O30KCS5zdDV7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTM4MS43LDExMC4yaDY0LjdWNDYuNWMwLTI1LjctMjAuOC00Ni41LTQ2LjUtNDYuNUg0Ni41QzIwLjgsMCwwLDIwLjgsMCw0Ni41djY1LjFoMzUuN2wyNi45LTI2LjkKCWMxLjUtMS41LDMuNi0yLjUsNS43LTIuN2wwLDBoMC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3QxIiBwb2ludHM9IjEyOSwxNjYuMiAxMjguNywxNjcuMyAxMjguNywyMDEuNCAxMjksMjAxLjcgMTQ0LjgsMTkyLjQgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iMTI5LDE2Ni4yIDExMy4yLDE5Mi40IDEyOSwyMDEuNyAxMjksMTg1LjIgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDMiIHBvaW50cz0iMTI5LDIwNC43IDEyOC44LDIwNC45IDEyOC44LDIxNyAxMjksMjE3LjYgMTQ0LjgsMTk1LjQgCQkJIi8+CgkJCTxwb2x5Z29uIGNsYXNzPSJzdDIiIHBvaW50cz0iMTI5LDIxNy42IDEyOSwyMDQuNyAxMTMuMiwxOTUuNCAJCQkiLz4KCQkJPHBvbHlnb24gY2xhc3M9InN0NCIgcG9pbnRzPSIxMjksMjAxLjcgMTQ0LjgsMTkyLjQgMTI5LDE4NS4yIAkJCSIvPgoJCQk8cG9seWdvbiBjbGFzcz0ic3Q1IiBwb2ludHM9IjExMy4yLDE5Mi40IDEyOSwyMDEuNyAxMjksMTg1LjIgCQkJIi8+CgkJPC9nPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>aN([window,"optionalAccess",t=>t.ethereum])&&!(aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMetaMask])&&1==Object.keys(window.ethereum).filter((t=>t.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length)&&!aN([window,"optionalAccess",t=>t.coin98])&&!(aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrust])||aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrustWallet]))&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isDeficonnectProvider])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isHyperPay])&&!(window.phantom&&!window.glow&&!aN([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isGlow])&&!["isBitKeep"].some((t=>window.solana&&window.solana[t])))&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRabby])&&!aN([window,"optionalAccess",t=>t.backpack,"optionalAccess",t=>t.isBackpack])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTokenPocket])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBitKeep])&&!(aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isCoinbaseWallet])||aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isWalletLink]))&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("MetaMask")])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBraveWallet])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])&&!aN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRainbow])&&!aN([window,"optionalAccess",t=>t.okxwallet])}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{if(t=new WI(t),0==await e.connectedTo(t.blockchain)&&await e.switchTo(t.blockchain),0==await e.connectedTo(t.blockchain))throw{code:"WRONG_NETWORK"};await t.prepare({wallet:e});let n=await _I({blockchain:t.blockchain,method:"transactionCount",address:t.from});t.nonce=n;let r=new $A(e.getProvider(),"any"),i=r.getSigner(0);return await rN({transaction:t,provider:r,signer:i}).then((e=>{if(!e)throw"Submitting transaction failed!";t.id=e.hash,t.nonce=e.nonce||n,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t),nN(e).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?(e.replacement&&e.replacement.hash&&(t.id=e.replacement.hash,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t})),e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t._failed=!0,t.failed&&t.failed(t,e))):(t._failed=!0,t.failed&&t.failed(t,e))}))})),t})({wallet:this,transaction:t})}getProvider(){return window.ethereum}async account(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_accounts"})).map((t=>am(t)))[0]}async connect(){if(!this.getProvider())return;return(await this.getProvider().request({method:"eth_requestAccounts"})).map((t=>am(t)))[0]}on(t,e){let n;switch(t){case"account":n=t=>e(am(t[0])),this.getProvider().on("accountsChanged",n)}return n}off(t,e){switch(t){case"account":this.getProvider().removeListener("accountsChanged",e)}return e}async connectedTo(t){const e=Hf.findById(await this.getProvider().request({method:"eth_chainId"}));return!!e&&(t?t===e.name:e.name)}addNetwork(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.getProvider().request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(e).catch(n)}))}switchTo(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.getProvider().request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(e).catch((r=>{4902===r.code?this.addNetwork(t).then((()=>this.switchTo(t).then(e))).catch(n):n(r)}))}))}transactionCount({blockchain:t,address:e}){return _I({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=this.getProvider(),n=await this.account();if(!1===await this.connectedTo(Hf.findByNetworkId(t.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await e.request({method:"eth_signTypedData_v4",params:[n,t],from:n})}if("string"==typeof t){await this.account();let e=new $A(this.getProvider(),"any").getSigner(0);return await e.signMessage(t)}}}sN.__initStatic(),sN.__initStatic2();class uN extends sN{static __initStatic(){this.info={name:"Binance Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxOTIgMTkzLjY4Ij48cmVjdCB3aWR0aD0iMTkyIiBoZWlnaHQ9IjE5My42OCIgZmlsbD0iIzFlMjAyNCIvPjxwYXRoIGQ9Im01Ni45Miw0Ni41M2wzOS4wOC0yMi41NCwzOS4wOCwyMi41NC0xNC4zNSw4LjM2LTI0LjczLTE0LjE4LTI0LjczLDE0LjE4LTE0LjM1LTguMzZabTc4LjE3LDI4LjUzbC0xNC4zNS04LjM2LTI0LjczLDE0LjI3LTI0LjczLTE0LjI3LTE0LjM1LDguMzZ2MTYuNzFsMjQuNzMsMTQuMTh2MjguNDVsMTQuMzUsOC4zNiwxNC4zNS04LjM2di0yOC40NWwyNC43My0xNC4yN3YtMTYuNjNabTAsNDUuMTZ2LTE2LjcxbC0xNC4zNSw4LjM2djE2LjcxbDE0LjM1LTguMzZabTEwLjIxLDUuODJsLTI0LjczLDE0LjI3djE2LjcxbDM5LjA4LTIyLjU0di00NS4yNWwtMTQuMzUsOC4zNnYyOC40NVptLTE0LjM1LTY1LjI1bDE0LjM1LDguMzZ2MTYuNzFsMTQuMzUtOC4zNnYtMTYuNzFsLTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTQ5LjMsODUuNnYxNi43MWwxNC4zNSw4LjM2LDE0LjM1LTguMzZ2LTE2LjcxbC0xNC4zNSw4LjM2LTE0LjM1LTguMzZabS0yNC43My0yNi4xN2wxNC4zNSw4LjM2di0xNi43MWwtMTQuMzUtOC4zNnYxNi43MVptMjQuNzMtNTkuNDNsMTQuMzUsOC4zNiwxNC4zNS04LjM2LTE0LjM1LTguMzYtMTQuMzUsOC4zNlptLTM0Ljk1LDguMzZsMTQuMzUtOC4zNi0xNC4zNS04LjM2LTE0LjM1LDguMzZ2MTYuNzFsMTQuMzUsOC4zNnYtMTYuNzFabTAsMjguNDVsLTE0LjM1LTguMzZ2NDUuMTZsMzkuMDgsMjIuNTR2LTE2LjcxbC0yNC43My0xNC4yN3MwLTI4LjM2LDAtMjguMzZaIiBmaWxsPSIjZjBiOTBiIi8+PC9zdmc+",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.BinanceChain])&&!window.coin98&&!window.trustwallet}getProvider(){return window.BinanceChain}}uN.__initStatic(),uN.__initStatic2();var cN="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzAwIiBoZWlnaHQ9IjMwMCIgdmlld0JveD0iMCAwIDMwMCAzMDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yOTguMjAzIDgzLjc2NDVMMTcwLjQ0OSAwVjQ2LjgzMzJMMjUyLjQwNSAxMDAuMDg5TDI0Mi43NjMgMTMwLjU5OEgxNzAuNDQ5VjE2OS40MDJIMjQyLjc2M0wyNTIuNDA1IDE5OS45MTFMMTcwLjQ0OSAyNTMuMTY3VjMwMEwyOTguMjAzIDIxNi41MDNMMjc3LjMxMyAxNTAuMTM0TDI5OC4yMDMgODMuNzY0NVoiIGZpbGw9InVybCgjcGFpbnQwX2xpbmVhcl8xNjYxXzI5NSkiLz4KPHBhdGggZD0iTTU5LjMwMDcgMTY5LjQwMkgxMzEuMzQ2VjEzMC41OThINTkuMDMyOUw0OS42NTg5IDEwMC4wODlMMTMxLjM0NiA0Ni44MzMyVjBMMy41OTI1MyA4My43NjQ1TDI0LjQ4MzEgMTUwLjEzNEwzLjU5MjUzID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NjQuN2MyLjcsMCw1LTIuMiw1LTV2LTY0LjcKCUMyMDkuNSwxMzIuOSwyMDcuMiwxMzAuNywyMDQuNSwxMzAuN3oiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEyOS44LDU2LjFINjUuMWMtMi43LDAtNSwyLjItNSw1djY0LjdjMCwyLjcsMi4yLDUsNSw1aDY0LjdjMi44LDAsNS0yLjIsNS01VjYxCglDMTM0LjgsNTguMywxMzIuNSw1Ni4xLDEyOS44LDU2LjF6Ii8+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik0yNzkuMSw1Ni4xaC02NC43Yy0yLjcsMC01LDIuMi01LDV2NjQuN2MwLDIuNywyLjIsNSw1LDVoNjQuN2MyLjcsMCw1LTIuMiw1LTVWNjEKCUMyODQuMSw1OC4zLDI4MS45LDU2LjEsMjc5LjEsNTYuMXoiLz4KPHBhdGggY2xhc3M9InN0MCIgZD0iTTEyOS44LDIwNS40SDY1LjFjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuOCwwLDUtMi4yLDUtNXYtNjQuNwoJQzEzNC44LDIwNy42LDEzMi41LDIwNS40LDEyOS44LDIwNS40eiIvPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMjc5LjEsMjA1LjRoLTY0LjdjLTIuNywwLTUsMi4yLTUsNXY2NC43YzAsMi43LDIuMiw1LDUsNWg2NC43YzIuNywwLDUtMi4yLDUtNXYtNjQuNwoJQzI4NC4xLDIwNy42LDI4MS45LDIwNS40LDI3OS4xLDIwNS40eiIvPgo8L3N2Zz4K";class gN extends sN{static __initStatic(){this.info={name:"Brave",logo:pN,blockchains:XI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isBraveWallet])}getProvider(){return window.ethereum}}gN.__initStatic(),gN.__initStatic2();class vN extends $I{static __initStatic(){this.info={name:"Brave",logo:pN,blockchains:XI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isBraveWallet])}getProvider(){return window.braveSolana}}vN.__initStatic(),vN.__initStatic2();class wN extends sN{static __initStatic(){this.info={name:"Coin98",logo:hN,blockchains:XI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.coin98])}getProvider(){return window.coin98.provider}}wN.__initStatic(),wN.__initStatic2();class bN extends $I{static __initStatic(){this.info={name:"Coin98",logo:hN,blockchains:XI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.coin98,"optionalAccess",t=>t.sol])}getProvider(){return window.coin98.sol}}function MN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}bN.__initStatic(),bN.__initStatic2();class AN extends sN{static __initStatic(){this.info={name:"Coinbase",logo:dN,blockchains:XI.evm,platform:"evm"}}getProvider(){return MN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("CoinbaseWallet")])?MN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.get,"call",t=>t("CoinbaseWallet")]):window.ethereum}static __initStatic2(){this.isAvailable=async()=>MN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isCoinbaseWallet])||MN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isWalletLink])||MN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.providerMap,"optionalAccess",t=>t.has,"call",t=>t("CoinbaseWallet")])}}AN.__initStatic(),AN.__initStatic2();class IN extends $I{static __initStatic(){this.info={name:"Coinbase",logo:dN,blockchains:XI.solana,platform:"svm"}}getProvider(){return window.coinbaseSolana}static __initStatic2(){this.isAvailable=async()=>!!window.coinbaseSolana}}IN.__initStatic(),IN.__initStatic2();class NN extends sN{static __initStatic(){this.info={name:"Crypto.com | DeFi Wallet",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyBlbmFibGUtYmFja2dyb3VuZD0ibmV3IDAgMCA4OS45IDEwMi44IiB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA4OS45IDEwMi44IiB4bWw6c3BhY2U9InByZXNlcnZlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiNGRkZGRkY7fQoJLnN0MXtmaWxsOiMwMzMxNkM7fQo8L3N0eWxlPgoKPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTUuMzc1MSAtMTEzLjYxKSI+Cgk8ZyB0cmFuc2Zvcm09Im1hdHJpeCguMzE3OTQgMCAwIC4zMTQ2NSAtMS4wNDczIDMwLjQ0NykiPgoJCTxwYXRoIGNsYXNzPSJzdDAiIGQ9Im0xNjEuNiAyNjQuMy0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6bTAgMC0xNDEuNCA4MS42djE2My4zbDE0MS40IDgxLjYgMTQxLjQtODEuNnYtMTYzLjNsLTE0MS40LTgxLjZ6Ii8+CgkJPHBhdGggY2xhc3M9InN0MSIgZD0ibTIxNy41IDUyNy4xaC0yMC4xbC0yNC4xLTIyLjF2LTExLjNsMjQuOS0yMy44di0zNy43bDMyLjYtMjEuMyAzNy4xIDI4LjEtNTAuNCA4OC4xem0tODMuMy01OS42IDMuNy0zNS40LTEyLjItMzEuN2g3MmwtMTEuOSAzMS43IDMuNCAzNS40aC01NXptMTYuNCAzNy41LTI0LjEgMjIuNGgtMjAuNGwtNTAuNy04OC40IDM3LjQtMjcuOCAzMi45IDIxdjM3LjdsMjQuOSAyMy44djExLjN6bS00NC44LTE3MC4xaDExMS40bDEzLjMgNTYuN2gtMTM3LjdsMTMtNTYuN3ptNTUuOC03MC42LTE0MS40IDgxLjZ2MTYzLjNsMTQxLjQgODEuNiAxNDEuNC04MS42di0xNjMuM2wtMTQxLjQtODEuNnoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isDeficonnectProvider])}}NN.__initStatic(),NN.__initStatic2();class EN extends sN{static __initStatic(){this.info={name:"Exodus",logo:cN,blockchains:XI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isExodus])}}EN.__initStatic(),EN.__initStatic2();class xN extends $I{static __initStatic(){this.info={name:"Exodus",logo:cN,blockchains:XI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isExodus])}}xN.__initStatic(),xN.__initStatic2();class kN extends $I{static __initStatic(){this.info={name:"Glow",logo:"data:image/webp;base64,UklGRkbpAQBXRUJQVlA4TDrpAQAv38F3EBGJbRsJkgS7p0rtwm3+AXfP/IcQ0f8JWLIkdFr/iEgkyRI0SHyCgCXu4pZI4gxw6U7EeRDYruJd9wYSAXYCoeH3+5uZqVI3QbHhQMVaNVVzVj8594ZNoNaamem6zPNEERADrHo63XMthUfhSEhW7e7Wa7Kf/UKRqu3u/jC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atic2(){this.isAvailable=async()=>window.solana&&window.solana.isGlow}}kN.__initStatic(),kN.__initStatic2();class TN extends sN{static __initStatic(){this.info={name:"HyperPay",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0LjcgMjAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAyMDQuNyAyMDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHBhdGggZmlsbD0iIzFBNzJGRSIgZD0iTTEwMi41LDUuMkM1MC44LDUuMiw4LjgsNDcuMiw4LjgsOTlzNDIsOTMuNSw5My44LDkzLjVzOTMuOC00Miw5My44LTkzLjhTMTU0LjIsNS4yLDEwMi41LDUuMnogTTEyNy4yLDExOS4yCgljLTYuMiwwLTIxLjcsMC4zLTIxLjcsMC4zbC03LDI3aC0yOWw2LjgtMjYuNUgzMWw3LjItMjEuOGMwLDAsNzguOCwwLjIsODUuMiwwYzYuNS0wLjIsMTYuNS0xLjgsMTYuOC0xNC44YzAuMy0xNy44LTI3LTE2LjgtMjkuMi0xCgljLTEuNSwxMC0xLjUsMTIuNS0xLjUsMTIuNUg4My44bDUtMjMuNUg0N2w2LjMtMjJjMCwwLDYxLjIsMC4yLDcyLjgsMC4yczQyLjIsMyw0Mi4yLDMxLjJDMTY4LjIsMTEyLDEzOC41LDExOS4zLDEyNy4yLDExOS4yCglMMTI3LjIsMTE5LjJ6Ii8+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isHyperPay])}}TN.__initStatic(),TN.__initStatic2();class LN extends sN{static __initStatic(){this.info={name:"Magic Eden",logo:yN,blockchains:["ethereum","polygon"],platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])}}LN.__initStatic(),LN.__initStatic2();class SN extends $I{static __initStatic(){this.info={name:"Magic Eden",logo:yN,blockchains:["solana"],platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isMagicEden])}}SN.__initStatic(),SN.__initStatic2();class jN extends sN{static __initStatic(){this.info={name:"OKX",logo:mN,blockchains:XI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.okxwallet])}}jN.__initStatic(),jN.__initStatic2();class CN extends $I{static __initStatic(){this.info={name:"OKX",logo:mN,blockchains:["solana"],platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isOkxWallet])}}function DN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}CN.__initStatic(),CN.__initStatic2();class ON extends sN{static __initStatic(){this.info={name:"MetaMask",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0nTGF5ZXJfMScgZGF0YS1uYW1lPSdMYXllciAxJyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHZpZXdCb3g9JzAgMCA0ODUuOTMgNDUwLjU2Jz48ZGVmcz48c3R5bGU+LmNscy0xe2ZpbGw6IzgyODQ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IuMDYgMjQ2LjAxIDI3OC4zNCAxMzYuMjggMzA3LjI0IDU4LjEyIDE3OC44OCA1OC4xMiAyMDcuNDEgMTM2LjI4IDIxNC4wNiAyNDYuMDEgMjE2LjM0IDI4MC42MiAyMTYuNTMgMzY1LjgyIDI2OS4yMSAzNjUuODIgMjY5LjU5IDI4MC42MiAyNzIuMDYgMjQ2LjAxJy8+PC9zdmc+",blockchains:XI.evm}}static __initStatic2(){this.isMetaMask=t=>DN([t,"optionalAccess",t=>t.isMetaMask])&&1==Object.keys(t).filter((t=>t.match(/^is(?!Connected)(?!PocketUniverse)(?!RevokeCash)/))).length}static __initStatic3(){this.getEip6963Provider=()=>window._eip6963Providers?Object.values(window._eip6963Providers).find((t=>ON.isMetaMask(t))):void 0}static __initStatic4(){this.isAvailable=async()=>ON.getEip6963Provider()||ON.isMetaMask(DN([window,"optionalAccess",t=>t.ethereum]))}getProvider(){return ON.getEip6963Provider()||ON.isMetaMask(DN([window,"optionalAccess",t=>t.ethereum]))&&DN([window,"optionalAccess",t=>t.ethereum])}}ON.__initStatic(),ON.__initStatic2(),ON.__initStatic3(),ON.__initStatic4();class zN extends sN{static __initStatic(){this.info={name:"Opera",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIHZpZXdCb3g9IjAgMCA3NS42IDc1LjYiIHhtbDpzcGFjZT0icHJlc2VydmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxnIHRyYW5zZm9ybT0ibWF0cml4KDEuMzMzMyAwIDAgLTEuMzMzMyAwIDEwNy4yKSI+CiAgCiAgPGxpbmVhckdyYWRpZW50IGlkPSJvcGVyYUxvZ28wMDAwMDAxMjM1MTEiIHgxPSItMTA3LjM0IiB4Mj0iLTEwNi4zNCIgeTE9Ii0xMzcuODUiIHkyPSItMTM3Ljg1IiBncmFkaWVudFRyYW5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iAgICA8c3RvcCBzdG9wLWNvbG9yPSIjOUMwMDAwIiBvZmZzZXQ9IjAiLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iLjciLz4KICAgIDxzdG9wIHN0b3AtY29sb3I9IiNGRjRCNEIiIG9mZnNldD0iMSIvPgogIDwvbGluZWFyR3JhZGllbnQ+CiAgPHBhdGggZD0ibTE5IDY4YzIuNiAzLjEgNiA0LjkgOS42IDQuOSA4LjMgMCAxNC45LTkuNCAxNC45LTIwLjlzLTYuNy0yMC45LTE0LjktMjAuOWMtMy43IDAtNyAxLjktOS42IDQuOSA0LjEtNS4zIDEwLjEtOC42IDE2LjktOC42IDQuMiAwIDggMS4zIDExLjQgMy41IDUuOCA1LjIgOS41IDEyLjcgOS41IDIxLjFzLTMuNyAxNS45LTkuNSAyMS4xYy0zLjMgMi4yLTcuMiAzLjUtMTEuNCAzLjUtNi44IDAuMS0xMi44LTMuMy0xNi45LTguNiIgZmlsbD0idXJsKCNiKSIvPgo8L2c+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isOpera])}}function PN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}zN.__initStatic(),zN.__initStatic2();class _N extends sN{static __initStatic(){this.info={name:"Phantom",logo:lN,blockchains:["ethereum","polygon"],platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&window.phantom.ethereum&&!PN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])&&!PN([window,"optionalAccess",t=>t.okxwallet])}}function BN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}_N.__initStatic(),_N.__initStatic2();class RN extends $I{static __initStatic(){this.info={name:"Phantom",logo:lN,blockchains:XI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>window.phantom&&!window.glow&&!BN([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isGlow])&&!BN([window,"optionalAccess",t=>t.solana,"optionalAccess",t=>t.isExodus])&&!BN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isMagicEden])&&!BN([window,"optionalAccess",t=>t.okxwallet])&&!["isBitKeep"].some((t=>window.solana&&window.solana[t]))}}RN.__initStatic(),RN.__initStatic2();class UN extends sN{static __initStatic(){this.info={name:"Rabby",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9ImthdG1hbl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMjA0IDE1MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjA0IDE1MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOnVybCgjU1ZHSURfMV8pO30KCS5zdDF7ZmlsbC1ydWxlOmV2ZW5vZGQ7Y2xpcC1ydWxlOmV2ZW5vZGQ7ZmlsbDp1cmwoI1NWR0lEXzAwMDAwMTE4MzY5MTkwNjY5MjcyNDcwNjgwMDAwMDE1NjE0NDY3MTMxNjE1Mjc5NDkxXyk7fQoJLnN0MntmaWxsLXJ1bGU6ZXZlbm9kZDtjbGlwLXJ1bGU6ZXZlbm9kZDtmaWxsOn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0ODkuNDc5MiIgZ3JhZGllbnRUcmFuc2Zvcm09Im1hdHJpeCgxIDAgMCAxIDAgLTM0NikiPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6Izg4OThGRiIvPgoJPHN0b3AgIG9mZnNldD0iMC45ODM5IiBzdHlsZT0ic3RvcC1jb2xvcjojNUY0N0YxIi8+CjwvbGluZWFyR3JhZGllbnQ+CjxwYXRoIHN0eWxlPSJmaWxsOnVybCgjU1ZHSURfMDAwMDAxMjg0NzQ1MTgwNjUxMjc5MDc2OTAwMDAwMDg3OTM1NDY5MjM0OTg1OTA4NjFfKTsiIGQ9Ik0zOS43LDkzLjljMS43LDE1LjIsMTAuNSwyMS4zLDI4LjIsMjMKCWMxNy44LDEuNywyNy45LDAuNiw0MS40LDEuN2MxMS4zLDEsMjEuNCw2LjgsMjUuMSw0LjhjMy4zLTEuNywxLjQtOC4yLTMtMTIuNGMtNS45LTUuNC0xNC05LTI4LjEtMTAuNWMyLjktNy44LDIuMS0xOC43LTIuNC0yNC42CgljLTYuMy04LjYtMTguMS0xMi40LTMzLTEwLjhDNTIuMyw2Ny4xLDM3LjQsNzQuOSwzOS43LDkzLjl6Ii8+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isRabby])}}function QN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}UN.__initStatic(),UN.__initStatic2();class YN extends sN{static __initStatic(){this.info={name:"Uniswap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlnaHQ9IjY0MCIgdmlld0JveD0iMCAwIDY0MSA2NDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMjQuNTM0IDE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ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",blockchains:XI.evm}}static __initStatic2(){this.getEip6963Provider=()=>window._eip6963Providers?Object.values(window._eip6963Providers).find((t=>QN([t,"optionalAccess",t=>t.isUniswapWallet]))):void 0}static __initStatic3(){this.isAvailable=async()=>YN.getEip6963Provider()||QN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])}getProvider(){return YN.getEip6963Provider()||QN([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isUniswapWallet])&&QN([window,"optionalAccess",t=>t.ethereum])}}function WN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}YN.__initStatic(),YN.__initStatic2(),YN.__initStatic3();class FN extends sN{static __initStatic(){this.info={name:"Rainbow",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIwIiBoZWlnaHQ9IjEyMCIgdmlld0JveD0iMCAwIDEyMCAxMjAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxyZWN0IHdpZHRoPSIxMjAiIGhlaWdodD0iMTIwIiBmaWxsPSJ1cmwoI3BhaW50MF9saW5lYXJfNjJfMzI5KSIvPgo8cGF0aCBkPSJNMjAgMzhIMjZDNTYuOTI3OSAzOCA4MiA2My4wNzIxIDgyIDk0VjEwMEg5NEM5Ny4zMTM3IDEwMCAxMDAgOTcuMzEzNyAxMDAgOTRDMTAwIDUzLjEzMDkgNjYuODY5MSAyMCAyNiAyMEMyMi42ODYzIDIwIDIwIDIyLjY4NjMgMjAgMjZWMzhaIiBmaWxsPSJ1cmwoI3BhaW50MV9yYWRpYWxfNjJfMzI5KSIvPgo8cGF0aCBkPSJNODQgOTRIMTA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iIGN5PSIwIiByPSIxIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgZ3JhZGllbnRUcmFuc2Zvcm09InRyYW5zbGF0ZSgyNiA5NCkgcm90YXRlKC05MCkgc2NhbGUoNDIpIj4KPHN0b3Agb2Zmc2V0PSIwLjU5NTEzIiBzdG9wLWNvbG9yPSIjMDBBQUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAxREE0MCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8cmFkaWFsR3JhZGllbnQgaWQ9InBhaW50OF9yYWRpYWxfNjJfMzI5IiBjeD0iMCIgY3k9IjAiIHI9IjEiIGdyYWRpZW50VW5pdHM9InVzZXJTcGFjZU9uVXNlIiBncmFkaWVudFRyYW5zZm9ybT0idHJhbnNsYXRlKDUxIDk3KSBzY2FsZSgxNyA0NS4zMzMzKSI+CjxzdG9wIHN0b3AtY29sb3I9IiMwMEFBRkYiLz4KPHN0b3Agb2Zmc2V0PSIxIiBzdG9wLWNvbG9yPSIjMDFEQTQwIi8+CjwvcmFkaWFsR3JhZGllbnQ+CjxyYWRpYWxHcmFkaWVudCBpZD0icGFpbnQ5X3JhZGlhbF82Ml8zMjkiIGN4PSIwIiBjeT0iMCIgcj0iMSIgZ3JhZGllbnRVbml0cz0idXNlclNwYWNlT25Vc2UiIGdyYWRpZW50VHJhbnNmb3JtPSJ0cmFuc2xhdGUoMjMgNjkpIHJvdGF0ZSgtOTApIHNjYWxlKDE3IDMyMi4zNykiPgo8c3RvcCBzdG9wLWNvbG9yPSIjMDBBQUZGIi8+CjxzdG9wIG9mZnNldD0iMSIgc3RvcC1jb2xvcj0iIzAxREE0MCIvPgo8L3JhZGlhbEdyYWRpZW50Pgo8L2RlZnM+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.getEip6963Provider=()=>window._eip6963Providers?Object.values(window._eip6963Providers).find((t=>WN([t,"optionalAccess",t=>t.isRainbow]))):void 0}static __initStatic3(){this.isAvailable=async()=>FN.getEip6963Provider()||WN([window,"optionalAccess",t=>t.rainbow,"optionalAccess",t=>t.isRainbow])}getProvider(){return FN.getEip6963Provider()||WN([window,"optionalAccess",t=>t.rainbow])}}function VN(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}FN.__initStatic(),FN.__initStatic2(),FN.__initStatic3();const HN="_DePayWeb3WalletsConnectedSolanaMobileWalletInstance",GN=t=>{const e=window.atob(t),n=e.length,r=new Uint8Array(n);for(let t=0;t({name:document.title,uri:window.location.origin.toString(),icon:ZN()});var ZN=function(){for(var t="favicon.ico",e=document.getElementsByTagName("link"),n=0;nVI({wallet:this,transaction:t})}async authorize(t){let e=await t.authorize({cluster:"mainnet-beta",identity:qN()});if(e&&e.auth_token&&e.accounts&&0!==e.accounts.length)return JN=e.auth_token,this._account=GN(e.accounts[0].address).toString(),e}async reauthorize(t,e){let n=await t.reauthorize({auth_token:e,identity:qN()});if(n&&n.auth_token&&n.accounts&&0!==n.accounts.length)return e=n.auth_token,this._account=GN(n.accounts[0].address).toString(),n}disconnect(){}async account(){return this._account}async connect(t){return await ef((async e=>{await this.authorize(e),VN([t,"optionalAccess",t=>t.name])&&(localStorage[HN+"_name"]=this.name=t.name),VN([t,"optionalAccess",t=>t.logo])&&(localStorage[HN+"_logo"]=this.logo=t.logo)})),this._account}static __initStatic2(){this.isAvailable=async()=>JN}async connectedTo(t){return t?"solana"==t:"solana"}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}on(t,e){}off(t,e){}async sign(t){const e=(new TextEncoder).encode(t);return await ef((async t=>{const n=await this.reauthorize(t,JN);return(await t.signMessages({addresses:[n.accounts[0].address],payloads:[e]}))[0]}))}async _sendTransaction(t){return await ef((async e=>{await this.reauthorize(e,JN);return(await e.signAndSendTransactions({transactions:[t]}))[0]}))}}XN.__initStatic(),XN.__initStatic2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ctNi44LTYuN3MtNi44LDMtNi44LDYuN0MxNy44LDI3LjksMjAuOSwzMC45LDI0LjYsMzAuOXoiLz4KPC9zdmc+Cg==",blockchains:["solana"]}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.solflare])&&window.solflare.isSolflare}getProvider(){return window.solflare}_sendTransaction(t){return this.getProvider().signTransaction(t)}}KN.__initStatic(),KN.__initStatic2();class $N extends sN{static __initStatic(){this.info={name:"TP Wallet (TokenPocket)",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8bWFzayBpZD0ibWFzazBfNDA4XzIyNSIgc3R5bGU9Im1hc2stdHlwZTphbHBoYSIgbWFza1VuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeD0iMCIgeT0iMCIgd2lkdGg9IjEwMjQiIGhlaWdodD0iMTAyNCI+CjxyZWN0IHdpZHRoPSIxMDI0IiBoZWlnaHQ9IjEwMjQiIGZpbGw9IiNDNEM0QzQiLz4KPC9tYXNrPgo8ZyBtYXNrPSJ1cmwoI21hc2swXzQwOF8yMjUpIj4KPHBhdGggZD0iTTEwNDEuNTIgMEgtMjdWMTAyNEgxMDQxLjUyVjBaIiBmaWxsPSIjMjk4MEZFIi8+CjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMF80MDhfMjI1KSI+CjxwYXRoIGQ9Ik00MDYuNzk2IDQzOC42NDNINDA2LjkyN0M0MDYuNzk2IDQzNy44NTcgNDA2Ljc5NiA0MzYuOTQgNDA2Ljc5NiA0MzYuMTU0VjQzOC42NDNaIiBmaWxsPSIjMjlBRUZGIi8+CjxwYXRoIGQ9Ik02NjcuNjAyIDQ2My41MzNINTIzLjI0OVY3MjQ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9InVzZXJTcGFjZU9uVXNlIj4KPHN0b3Agc3RvcC1jb2xvcj0id2hpdGUiLz4KPHN0b3Agb2Zmc2V0PSIwLjk2NjciIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMzIzMyIvPgo8c3RvcCBvZmZzZXQ9IjEiIHN0b3AtY29sb3I9IndoaXRlIiBzdG9wLW9wYWNpdHk9IjAuMyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzQwOF8yMjUiPgo8cmVjdCB3aWR0aD0iNzI4LjQ0OCIgaGVpZ2h0PSI0NzAiIGZpbGw9IndoaXRlIiB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxNjggMjc3KSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTokenPocket])}}function tE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}$N.__initStatic(),$N.__initStatic2();class eE extends sN{static __initStatic(){this.info={name:"Trust Wallet",logo:fN,blockchains:XI.evm,platform:"evm"}}static __initStatic2(){this.isAvailable=async()=>(tE([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrust])||tE([window,"optionalAccess",t=>t.ethereum,"optionalAccess",t=>t.isTrustWallet]))&&1==Object.keys(window.ethereum).filter((t=>t.match(/^is(?!Connected)(?!Debug)(?!TrustWallet)(?!MetaMask)(?!PocketUniverse)(?!RevokeCash)/))).length}}eE.__initStatic(),eE.__initStatic2();class nE extends $I{static __initStatic(){this.info={name:"Trust Wallet",logo:fN,blockchains:XI.solana,platform:"svm"}}static __initStatic2(){this.isAvailable=async()=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([window,"access",t=>t.solana,"optionalAccess",t=>t.isTrustWallet])}}nE.__initStatic(),nE.__initStatic2();const rE={ethereum:"mainnet",bsc:"bsc",polygon:"polygon",arbitrum:"arbitrum",base:"base",avalanche:"avalanche",gnosis:"gnosis-chain",optimism:"optimism"},iE={ethereum:"eth",bsc:"bnb",polygon:"matic",arbitrum:"arb1",base:"base",avalanche:"avax",gnosis:"gno",optimism:"oeth"};class oE{constructor({address:t,blockchain:e}){this.address=t,this.blockchain=e}async transactionCount(){let t,e=await fetch(`https://safe-transaction-${rE[this.blockchain]}.safe.global/api/v1/safes/${this.address}/all-transactions/`).then((t=>t.json())).catch((t=>{console.error("Error:",t)}));return t=e&&e.results&&e.results.length?e.results[0].nonce+1:parseInt((await _I({blockchain:this.blockchain,address:this.address,api:[{inputs:[],name:"nonce",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],method:"nonce"})).toString(),10),t}async retrieveTransaction({blockchain:t,tx:e}){const n=await SI(t);let r=await fetch(`https://safe-transaction-${rE[t]}.safe.global/api/v1/multisig-transactions/${e}/`).then((t=>t.json())).catch((t=>{console.error("Error:",t)}));return r&&r.isExecuted&&r.transactionHash?await n.getTransaction(r.transactionHash):void 0}explorerUrlFor({transaction:t}){if(t)return`https://app.safe.global/${iE[t.blockchain]}:${t.from}/transactions/tx?id=multisig_${t.from}_${t.id}`}}const aE=async(t,e)=>{if(!await(async(t,e)=>{const n=await SI(t);return"0x"!=await n.getCode(e)})(t,e))return;const n=await(async(t,e)=>{let n;try{n=await _I({blockchain:t,address:e,api:[{constant:!0,inputs:[],name:"NAME",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"}],method:"NAME"})}catch(t){}if("Default Callback Handler"==n)return"Safe"})(t,e);if("Safe"==n)return new oE({blockchain:t,address:e});if("Argent"==n)return new Argent({blockchain:t,address:e});if(smartContractWallet)throw{message:"Unrecognized smart contract wallet not supported!",code:"SMART_CONTRACT_WALLET_NOT_SUPPORTED"}};function sE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const uE=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&sE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{uE(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&sE([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{uE(t).then(e).catch(n)}),500):n(r)}})),cE=(t,e)=>new Promise((async(n,r)=>{try{let r;const i=await SI(e);r=await i.getTransaction(t);const o=120;let a=1;for(;a<=o&&!r;)r=await i.getTransaction(t),await new Promise((t=>setTimeout(t,5e3))),a++;n(r)}catch(i){i&&sE([i,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||i&&i.toString().match("undefined")?setTimeout((()=>{cE(t,e).then(n).catch(r)}),500):r(i)}})),lE=({transaction:t,wallet:e})=>t.method?hE({transaction:t,wallet:e}):dE({transaction:t,wallet:e}),hE=async({transaction:t,wallet:e})=>{const n=await SI(t.blockchain),r=Hf[t.blockchain];let i;try{i=await DI(t),i=i.add(i.div(10))}catch(t){}const o=await n.getGasPrice();return e.signClient.request({topic:e.session.topic,chainId:`${r.namespace}:${r.networkId}`,request:{method:"eth_sendTransaction",params:[{from:t.from,to:t.to,value:t.value?Fp.from(t.value.toString()).toHexString():void 0,data:await t.getData(),gas:sE([i,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasLimit:sE([i,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasPrice:o.toHexString(),nonce:Dp(t.nonce)}]}}).catch((t=>{console.log("ERROR",t)}))},dE=async({transaction:t,wallet:e})=>{const n=await SI(t.blockchain);let r,i=Hf[t.blockchain];try{r=await DI(t),r=r.add(r.div(10))}catch(t){}const o=await n.getGasPrice();return e.signClient.request({topic:e.session.topic,chainId:`${i.namespace}:${i.networkId}`,request:{method:"eth_sendTransaction",params:[{from:t.from,to:t.to,value:t.value?Fp.from(t.value.toString()).toHexString():void 0,data:"0x0",gas:sE([r,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasLimit:sE([r,"optionalAccess",t=>t.toHexString,"call",t=>t()]),gasPrice:sE([o,"optionalAccess",t=>t.toHexString,"call",t=>t()]),nonce:Dp(t.nonce)}]}}).catch((t=>{console.log("ERROR",t)}))};function fE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const pE="depay:wallets:wc2",yE=["accountsChanged"],mE=["eth_sendTransaction","personal_sign","eth_signTypedData","eth_signTypedData_v4"],gE=async t=>{if(!localStorage[pE+":projectId"])return;if(t!==localStorage[pE+":lastSessionWalletName"])return;let e,n=await wE();try{e=n.find(vE(t))}catch(t){}const r=e?e[e.length-1]:void 0;if(r&&localStorage[pE+":lastExpiredSessionTopic"]!==r.topic&&r.expiry>Math.ceil(Date.now()/1e3)){return await Promise.race([n.ping({topic:r.topic}),new Promise((t=>setTimeout(t,1500)))])?r:void(localStorage[pE+":lastExpiredSessionTopic"]=r.topic)}},vE=t=>{const e=mE,n=yE;let r={eip155:{chains:["eip155:1"]}};r.eip155&&(r.eip155.methods=e,r.eip155.events=n);let i={};return i.eip155={chains:XI.evm.map((t=>`${Hf[t].namespace}:${Hf[t].networkId}`))},fE([i,"optionalAccess",t=>t.eip155])&&fE([i,"optionalAccess",t=>t.eip155,"optionalAccess",t=>t.chains,"optionalAccess",t=>t.length])&&(i.eip155.methods=e,i.eip155.events=n),{requiredNamespaces:r,optionalNamespaces:i}},wE=()=>(window.getSignClientPromise||(window.getSignClientPromise=new Promise((async t=>{t(await RI.init({projectId:localStorage[pE+":projectId"],metadata:{name:document.title||"dApp",description:fE([document,"access",t=>t.querySelector,"call",t=>t('meta[name="description"]'),"optionalAccess",t=>t.getAttribute,"call",t=>t("content")])||document.title||"dApp",url:location.href,icons:[fE([document,"access",t=>t.querySelector,"call",t=>t("link[rel~='icon'], link[rel~='shortcut icon']"),"optionalAccess",t=>t.href])||`${location.origin}/favicon.ico`]}}))}))),window.getSignClientPromise);class bE{static __initStatic(){this.info={name:"WalletConnect V2",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async t=>!!await gE(fE([t,"optionalAccess",t=>t.walletName]))}constructor(){this.name=localStorage[pE+":name"]&&null!=localStorage[pE+":name"]?localStorage[pE+":name"]:this.constructor.info.name,this.logo=localStorage[pE+":logo"]&&null!=localStorage[pE+":logo"]?localStorage[pE+":logo"]:this.constructor.info.logo,this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{t=new WI(t),await t.prepare({wallet:e});let n=await _I({blockchain:t.blockchain,method:"transactionCount",address:t.from});return t.nonce=n,await lE({transaction:t,wallet:e}).then((async e=>{if("string"!=typeof e)throw e;{let r=Hf[t.blockchain];t.id=e,t.url=r.explorerUrlFor({transaction:t}),t.sent&&t.sent(t);let i=await cE(t.id,t.blockchain);t.nonce=i.nonce||n,i?uE(i).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t.id=e.replacement.hash,t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t.id=e.replacement.hash,t._failed=!0,t.failed&&t.failed(t,e)):(t._failed=!0,t.failed&&t.failed(t,e))})):(t._failed=!0,t.failed&&t.failed(t,"Error retrieving transaction"))}})),t})({wallet:this,transaction:t})}async account(){if(fE([this,"access",t=>t.session,"optionalAccess",t=>t.namespaces,"optionalAccess",t=>t.eip155,"optionalAccess",t=>t.accounts,"optionalAccess",t=>t.length]))return this.session.namespaces.eip155.accounts[0].split(":")[2]}async setSessionBlockchains(){this.session&&(fE([this,"access",t=>t.session,"optionalAccess",t=>t.namespaces,"optionalAccess",t=>t.eip155])||fE([this,"access",t=>t.session,"optionalAccess",t=>t.optionalNamespaces,"optionalAccess",t=>t.eip155]))&&(this.session.namespaces.eip155.chains?this.blockchains=this.session.namespaces.eip155.chains.map((t=>fE([Hf,"access",t=>t.findByNetworkId,"call",e=>e(t.split(":")[1]),"optionalAccess",t=>t.name]))).filter(Boolean):this.session.namespaces.eip155.accounts&&(this.blockchains=this.session.namespaces.eip155.accounts.map((t=>fE([Hf,"access",t=>t.findByNetworkId,"call",e=>e(t.split(":")[1]),"optionalAccess",t=>t.name]))).filter(Boolean)))}async connect(t){let e=t&&t.connect?t.connect:({uri:t})=>{};try{this.walletName=fE([t,"optionalAccess",t=>t.name]),this.signClient=await wE(),this.signClient.on("session_delete",(t=>{fE([t,"optionalAccess",t=>t.topic])===fE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&(localStorage[pE+":name"]=void 0,localStorage[pE+":logo"]=void 0,this.signClient=void 0,this.session=void 0)})),this.signClient.on("session_update",(async t=>{fE([t,"optionalAccess",t=>t.topic])===fE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&(this.session=this.signClient.session.get(t.topic),await this.setSessionBlockchains())})),this.signClient.on("session_event",(t=>{fE([t,"optionalAccess",t=>t.topic]),fE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])}));const n=async()=>{const{uri:t,approval:n}=await this.signClient.connect(vE(this.walletName));await e({uri:t}),this.session=await n(),localStorage[pE+":lastSessionWalletName"]=this.walletName,await new Promise((t=>setTimeout(t,500)))},r=fE([this,"optionalAccess",t=>t.walletName,"optionalAccess",t=>t.length])?await gE(this.walletName):void 0;r?this.session=r:await n();let i=fE([this,"access",t=>t.session,"optionalAccess",t=>t.peer,"optionalAccess",t=>t.metadata]);return i&&i.name&&(this.name=i.name,localStorage[pE+":name"]=i.name,fE([i,"optionalAccess",t=>t.icons])&&i.icons.length&&(this.logo=i.icons[0],localStorage[pE+":logo"]=this.logo)),fE([t,"optionalAccess",t=>t.name])&&(localStorage[pE+":name"]=this.name=t.name),fE([t,"optionalAccess",t=>t.logo])&&(localStorage[pE+":logo"]=this.logo=t.logo),await this.setSessionBlockchains(),await this.account()}catch(t){console.log("WALLETCONNECT ERROR",t)}}async connectedTo(t){return t?this.blockchains.indexOf(t)>-1:this.blockchains}getValidChainId(){return`eip155:${Hf[this.blockchains[0]].networkId}`}switchTo(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}addNetwork(t){return new Promise(((t,e)=>{e({code:"NOT_SUPPORTED"})}))}on(t,e){let n;switch(t){case"account":n=async t=>{fE([t,"optionalAccess",t=>t.topic])===fE([this,"access",t=>t.session,"optionalAccess",t=>t.topic])&&"accountsChanged"===t.params.event.name&&e(await this.account())},this.signClient.on("session_event",n)}return n}off(t,e){switch(t){case"account":this.signClient.off("session_event",e)}}async transactionCount({blockchain:t,address:e}){const n=await aE(t,e);return n?await n.transactionCount():await _I({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=await this.account();return await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"eth_signTypedData_v4",params:[e,JSON.stringify(t)]}})}if("string"==typeof t){const e=await this.account(),n=[Dp(Sm(t)),e];let r=await this.signClient.request({topic:this.session.topic,chainId:this.getValidChainId(),request:{method:"personal_sign",params:n}});return"object"==typeof r&&(r=Dp(r)),r}}}function ME(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}bE.__initStatic(),bE.__initStatic2(),bE.getConnectedInstance=async()=>{if(await bE.isAvailable())return new bE};const AE=t=>new Promise(((e,n)=>{try{t.wait(1).then(e).catch((r=>{r&&ME([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{AE(t).then(e).catch(n)}),500):n(r)}))}catch(r){r&&ME([r,"optionalAccess",t=>t.stack,"optionalAccess",t=>t.match,"call",t=>t("JSON-RPC error")])||r&&r.toString().match("undefined")?setTimeout((()=>{AE(t).then(e).catch(n)}),500):n(r)}})),IE=({transaction:t,provider:e,signer:n})=>t.method?NE({transaction:t,signer:n,provider:e}):EE({transaction:t,signer:n}),NE=({transaction:t,signer:e,provider:n})=>{let r=new PM(t.to,t.api,n),i=t.getContractArguments({contract:r}),o=r.connect(e)[t.getMethodNameWithSignature()];return i?o(...i,{value:WI.bigNumberify(t.value,t.blockchain)}):o({value:WI.bigNumberify(t.value,t.blockchain)})},EE=({transaction:t,signer:e})=>e.sendTransaction({to:t.to,value:WI.bigNumberify(t.value,t.blockchain)});function xE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const kE=()=>window._connectedWalletLinkInstance,TE=t=>{window._connectedWalletLinkInstance=t};class LE{static __initStatic(){this.info={name:"Coinbase",logo:dN,blockchains:XI.evm}}static __initStatic2(){this.isAvailable=async()=>null!=kE()}constructor(){this.name=this.constructor.info.name,this.logo=this.constructor.info.logo,this.blockchains=this.constructor.info.blockchains,Object.keys(localStorage).forEach((t=>{t.match("-walletlink:https://www.walletlink.org")&&delete localStorage[t]})),this.connector=LE.instance||this.newWalletLinkInstance(),this.sendTransaction=t=>(async({transaction:t,wallet:e})=>{if(t=new WI(t),0==await e.connectedTo(t.blockchain)&&await e.switchTo(t.blockchain),0==await e.connectedTo(t.blockchain))throw{code:"WRONG_NETWORK"};await t.prepare({wallet:e});let n=new $A(e.connector,"any"),r=n.getSigner(0);return await IE({transaction:t,provider:n,signer:r}).then((e=>{if(!e)throw"Submitting transaction failed!";t.id=e.hash,t.nonce=e.nonce,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t}),t.sent&&t.sent(t),AE(e).then((()=>{t._succeeded=!0,t.succeeded&&t.succeeded(t)})).catch((e=>{e&&e.code&&"TRANSACTION_REPLACED"==e.code?(e.replacement&&e.replacement.hash&&(t.id=e.replacement.hash,t.url=Hf.findByName(t.blockchain).explorerUrlFor({transaction:t})),e.replacement&&e.replacement.hash&&e.receipt&&1==e.receipt.status?(t._succeeded=!0,t.succeeded&&t.succeeded(t)):e.replacement&&e.replacement.hash&&e.receipt&&0==e.receipt.status&&(t._failed=!0,t.failed&&t.failed(t,e))):(t._failed=!0,t.failed&&t.failed(t,e))}))})),t})({wallet:this,transaction:t})}newWalletLinkInstance(){return new QI({}).makeWeb3Provider()}async account(){if(null!=this.connectedAccounts)return am(this.connectedAccounts[0])}async connect(t){let e=t&&t.connect?t.connect:({uri:t})=>{};await e({uri:this.connector.qrUrl}),xE([document,"access",t=>t.querySelector,"call",t=>t(".-cbwsdk-css-reset"),"optionalAccess",t=>t.setAttribute,"call",t=>t("style","display: none;")]),xE([document,"access",t=>t.querySelector,"call",t=>t(".-cbwsdk-extension-dialog-container"),"optionalAccess",t=>t.setAttribute,"call",t=>t("style","display: none;")]),setTimeout((()=>{xE([this,"optionalAccess",t=>t.connector,"optionalAccess",t=>t._relay,"optionalAccess",t=>t.ui,"optionalAccess",t=>t.linkFlow,"optionalAccess",t=>t.isOpen])&&(this.connector._relay.ui.linkFlow.isOpen=!1)}),10),(await this.connector._relayProvider()).setConnectDisabled(!1);let n=await this.connector.enable();return n instanceof Array&&n.length&&TE(this),n=n.map((t=>am(t))),this.connectedAccounts=n,this.connectedChainId=await this.connector.getChainId(),n[0]}async connectedTo(t){let e=await this.connector.getChainId();const n=Hf.findByNetworkId(e);return!!n&&(t?t===n.name:n.name)}switchTo(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.connector.request({method:"wallet_switchEthereumChain",params:[{chainId:r.id}]}).then(e).catch((r=>{4902===r.code?this.addNetwork(t).then((()=>this.switchTo(t).then(e))).catch(n):n(r)}))}))}addNetwork(t){return new Promise(((e,n)=>{const r=Hf.findByName(t);this.connector.request({method:"wallet_addEthereumChain",params:[{chainId:r.id,chainName:r.fullName,nativeCurrency:{name:r.currency.name,symbol:r.currency.symbol,decimals:r.currency.decimals},rpcUrls:[r.rpc],blockExplorerUrls:[r.explorer],iconUrls:[r.logo]}]}).then(e).catch(n)}))}on(t,e){let n;switch(t){case"account":n=t=>e(am(t[0])),this.connector.on("accountsChanged",n)}return n}off(t,e){switch(t){case"account":this.connector.removeListener("accountsChanged",e)}return e}transactionCount({blockchain:t,address:e}){return _I({blockchain:t,method:"transactionCount",address:e})}async sign(t){if("object"==typeof t){let e=this.connector,n=await this.account();if(!1===await this.connectedTo(Hf.findByNetworkId(t.domain.chainId).name))throw{code:"WRONG_NETWORK"};return await e.request({method:"eth_signTypedData_v4",params:[n,t],from:n})}if("string"==typeof t){await this.account();let e=new $A(this.connector,"any").getSigner(0);return await e.signMessage(t)}}}LE.__initStatic(),LE.__initStatic2(),LE.getConnectedInstance=kE,LE.setConnectedInstance=TE;var SE={MetaMask:ON,PhantomEVM:_N,PhantomSVM:RN,CoinbaseEVM:AN,CoinbaseSVM:IN,Binance:uN,TrustEVM:eE,TrustSVM:nE,Backpack:tN,Glow:kN,Solflare:KN,Rabby:UN,Uniswap:YN,Rainbow:FN,BraveEVM:gN,BraveSVM:vN,MagicEdenEVM:LN,MagicEdenSVM:SN,OKXEVM:jN,OKXSVM:CN,Opera:zN,Coin98EVM:wN,Coin98SVM:bN,CryptoCom:NN,HyperPay:TN,TokenPocket:$N,ExodusEVM:EN,ExodusSVM:xN,WindowEthereum:sN,WindowSolana:$I,SolanaMobileWalletAdapter:XN,WalletConnectV2:bE,WalletLink:LE};function jE(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const CE=async t=>{let e=t&&"function"==typeof t.drip?t.drip:void 0;window._eip6963Providers={};const n=t=>{jE([t,"optionalAccess",t=>t.detail,"optionalAccess",t=>t.info,"optionalAccess",t=>t.uuid])&&(window._eip6963Providers[jE([t,"optionalAccess",t=>t.detail,"optionalAccess",t=>t.info,"optionalAccess",t=>t.uuid])]=t.detail.provider)};return window.addEventListener("eip6963:announceProvider",n),window.dispatchEvent(new Event("eip6963:requestProvider")),window.removeEventListener("eip6963:announceProvider",n),(await Promise.all(Object.keys(SE).map((async t=>{let n=SE[t];if(await n.isAvailable()){let t;return n.getConnectedInstance?(t=await n.getConnectedInstance(),e&&t&&e(t),t):(e&&n&&e(n),new n)}})))).filter(Boolean)};SE.MetaMask,SE.PhantomEVM,SE.PhantomSVM,SE.CoinbaseEVM,SE.CoinbaseSVM,SE.Binance,SE.TrustEVM,SE.TrustSVM,SE.Backpack,SE.Glow,SE.Solflare,SE.Rabby,SE.Uniswap,SE.Rainbow,SE.BraveEVM,SE.BraveSVM,SE.Opera,SE.Coin98EVM,SE.Coin98SVM,SE.CryptoCom,SE.HyperPay,SE.TokenPocket,SE.MagicEdenEVM,SE.MagicEdenSVM,SE.OKXEVM,SE.OKXSVM,SE.ExodusEVM,SE.ExodusSVM,SE.WalletConnectV2,SE.SolanaMobileWalletAdapter,SE.WalletLink,SE.WindowEthereum;var DE,OE,zE,PE,_E,BE,RE,UE,QE,YE,WE,FE,VE,HE,GE,qE,ZE,JE,XE,KE,$E,tx,ex,nx,rx,ix,ox,ax,sx,ux,cx,lx,hx,dx,fx,px=["ethereum","bsc","polygon","solana","arbitrum","optimism","base","avalanche","gnosis","fantom"];px.evm=["ethereum","bsc","polygon","arbitrum","optimism","base","avalanche","gnosis","fantom"],px.svm=["solana"],px.solana=["solana"];var yx=[{name:"Coinbase",extensions:["CoinbaseEVM","CoinbaseSVM"],desktop:{qr:"WalletLink"},mobile:{ios:{native:"cbwallet://dapp",universal:"https://go.cb-w.com/dapp",open:function(){return"cbwallet://dapp?url=".concat(encodeURIComponent(window.location.toString()))}},android:{native:"cbwallet://dapp",universal:"https://go.cb-w.com/dapp",open:function(){return"https://go.cb-w.com/dapp?cb_url=".concat(encodeURIComponent(window.location.toString()))}}},logo:null===(DE=SE.CoinbaseEVM)||void 0===DE||null===(OE=DE.info)||void 0===OE?void 0:OE.logo,blockchains:n(px)},{name:"MetaMask",extension:"MetaMask",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"metamask:",universal:"https://metamask.app.link",qr:"WalletConnectV2",connect:"WalletConnectV2"},android:{native:"metamask:",universal:"https://metamask.app.link",qr:"WalletConnectV2",connect:"WalletConnectV2"}},logo:null===(zE=SE.MetaMask)||void 0===zE||null===(PE=zE.info)||void 0===PE?void 0:PE.logo,blockchains:n(px.evm)},{name:"Phantom",extensions:["PhantomSVM","PhantomEVM"],desktop:{solanaPay:!0,qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}},mobile:{ios:{native:"phantom:",open:function(){return"https://phantom.app/ul/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},solanaPay:!0},android:{native:"phantom:",connect:"SolanaMobileWalletAdapter",qr:function(){return"phantom://browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))},solanaPay:!0}},logo:null===(_E=SE.PhantomSVM)||void 0===_E||null===(BE=_E.info)||void 0===BE?void 0:BE.logo,blockchains:n(px)},{name:"Trust Wallet",extensions:["TrustEVM","TrustSVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"trust:",universal:"https://link.trustwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"trust:",universal:"https://link.trustwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(RE=SE.TrustEVM)||void 0===RE||null===(UE=RE.info)||void 0===UE?void 0:UE.logo,blockchains:n(px)},{name:"Binance Wallet",extension:"Binance",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bnc://app.binance.com/cedefi/",universal:"https://app.binance.com/cedefi",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bnc://app.binance.com/cedefi/",universal:"https://app.binance.com/cedefi",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(QE=SE.Binance)||void 0===QE||null===(YE=QE.info)||void 0===YE?void 0:YE.logo,blockchains:n(px.evm)},{name:"Crypto.com | DeFi Wallet",extension:"CryptoCom",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dfw://",universal:"https://wallet.crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dfw://",universal:"https://wallet.crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(WE=SE.CryptoCom)||void 0===WE||null===(FE=WE.info)||void 0===FE?void 0:FE.logo,blockchains:n(px.evm)},{name:"Coin98",extensions:["Coin98EVM","Coin98SVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coin98:",universal:"https://coin98.services",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coin98:",universal:"https://coin98.services",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:null===(VE=SE.Coin98EVM)||void 0===VE||null===(HE=VE.info)||void 0===HE?void 0:HE.logo,blockchains:n(px)},{name:"Brave",extensions:["BraveEVM","BraveSVM"],logo:null===(GE=SE.BraveEVM)||void 0===GE||null===(qE=GE.info)||void 0===qE?void 0:qE.logo,blockchains:n(px)},{name:"Magic Eden",extensions:["MagicEdenEVM","MagicEdenSVM"],logo:null===(ZE=SE.MagicEdenEVM)||void 0===ZE||null===(JE=ZE.info)||void 0===JE?void 0:JE.logo,blockchains:n(px)},{name:"Rainbow",extension:"Rainbow",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"rainbow:",universal:"https://rnbwapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"rainbow:",universal:"https://rnbwapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rainbow.jpg",blockchains:n(px.evm)},{name:"Uniswap",extension:"Uniswap",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"uniswap:",universal:"https://uniswap.org/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"uniswap:",universal:"https://uniswap.org/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uniswap_wallet.jpg",blockchains:n(px.evm)},{name:"Safe",desktop:{qr:"WalletConnectV2",copyLink:"WalletConnectV2"},mobile:{ios:{native:"safe",universal:"https://app.safe.global",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safe",universal:"https://app.safe.global",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safe.jpg",blockchains:n(px.evm)},{name:"Rabby",extension:"Rabby",desktop:{qr:"WalletConnectV2"},logo:null===(XE=SE.Rabby)||void 0===XE||null===(KE=XE.info)||void 0===KE?void 0:KE.logo,blockchains:n(px.evm)},{name:"Kraken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"krakenwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"krakenwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kraken.jpg",blockchains:n(px.evm)},{name:"Backpack",extension:"Backpack",desktop:{},mobile:{ios:{open:function(){return"backpack://ul/v1/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}},android:{open:function(){return"backpack://ul/v1/browse/".concat(encodeURIComponent(window.location.toString()),"?ref=").concat(encodeURIComponent(window.location.origin.toString()))}}},logo:null===($E=SE.Backpack)||void 0===$E||null===(tx=$E.info)||void 0===tx?void 0:tx.logo,blockchains:n(px.solana)},{name:"Glow",extension:"Glow",desktop:{qr:function(){return window.location.toString()},solanaPay:!0},mobile:{ios:{qr:function(){return window.location.toString()},solanaPay:!0},android:{connect:"SolanaMobileWalletAdapter",qr:function(){return window.location.toString()},solanaPay:!0}},logo:null===(ex=SE.Glow)||void 0===ex||null===(nx=ex.info)||void 0===nx?void 0:nx.logo,blockchains:n(px.solana)},{name:"Solflare",extension:"Solflare",desktop:{solanaPay:!0},mobile:{ios:{native:"solflare:",universal:"https://solflare.com/ul",solanaPay:!0},android:{native:"solflare:",universal:"https://solflare.com/ul",connect:"SolanaMobileWalletAdapter",solanaPay:!0}},logo:null===(rx=SE.Solflare)||void 0===rx||null===(ix=rx.info)||void 0===ix?void 0:ix.logo,blockchains:n(px.solana)},{name:"Family",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"familywallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"familywallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/family.jpg",blockchains:n(px.evm)},{name:"imToken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"imtokenv2:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"imtokenv2:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/imtoken.jpg",blockchains:n(px.evm)},{name:"MEW wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"mewwallet:",universal:"https://mewwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"mewwallet:",universal:"https://mewwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mew_wallet.jpg",blockchains:n(px.evm)},{name:"ONTO",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ontoprovider:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ontoprovider:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/onto.jpg",blockchains:n(px.evm)},{name:"Zerion",desktop:{native:"zerion://",qr:"WalletConnectV2",connect:"WalletConnectV2"},mobile:{ios:{native:"zerion://",universal:"https://wallet.zerion.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zerion://",universal:"https://wallet.zerion.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zerion.jpg",blockchains:n(px.evm)},{name:"Spot",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"spot://",universal:"https://spot.so",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"spot://",universal:"https://spot.so",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/spot.jpg",blockchains:n(px.evm)},{name:"BitGet (BitKeep)",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitget://",universal:"https://bkapp.vip",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitget://",universal:"https://bkapp.vip",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitget.jpg",blockchains:n(px.evm)},{name:"Unstoppable Domains",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://unstoppabledomains.com/mobile",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://unstoppabledomains.com/mobile",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/unstoppable_domains.jpg",blockchains:n(px.evm)},{name:"Omni",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"omni:",universal:"https://links.omni.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"omni:",universal:"https://links.omni.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/omni.jpg",blockchains:n(px.evm)},{name:"KEYRING PRO",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"keyring:",universal:"https://keyring.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"keyring:",universal:"https://keyring.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keyring_pro.jpg",blockchains:n(px.evm)},{name:"TP Wallet (TokenPocket)",extension:"TokenPocket",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tpoutside:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tpoutside:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/token_pocket.jpg",blockchains:n(px.evm)},{name:"BitPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitpay:",universal:"https://link.bitpay.com/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitpay:",universal:"https://link.bitpay.com/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitpay.jpg",blockchains:n(px.evm)},{name:"MathWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"mathwallet:",universal:"https://www.mathwallet.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"mathwallet:",universal:"https://www.mathwallet.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/math_wallet.jpg",blockchains:n(px.evm)},{name:"Ledger Live",desktop:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2",copyLink:"WalletConnectV2"},mobile:{ios:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ledgerlive:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ledger_live.jpg",blockchains:n(px.evm)},{name:"1inch Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oneinch://",universal:"https://wallet.1inch.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oneinch://",universal:"https://wallet.1inch.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/1inch_wallet.jpg",blockchains:n(px.evm)},{name:"iToken Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"huobiwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"huobiwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/i_token_wallet.jpg",blockchains:n(px.evm)},{name:"Huddln",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"huddln:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"huddln:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/huddln.jpg",blockchains:n(px.evm)},{name:"Eidoo",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"eidoo:",universal:"https://eidoo.io/crypto-wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"eidoo:",universal:"https://eidoo.io/crypto-wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/eidoo.jpg",blockchains:n(px.evm)},{name:"Timeless Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"timeless-wallet:",universal:"https://timelesswallet.xyz",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"timeless-wallet:",universal:"https://timelesswallet.xyz",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/timeless.jpg",blockchains:n(px.evm)},{name:"CoolWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coolwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coolwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cool_wallet.jpg",blockchains:n(px.evm)},{name:"Unstoppable Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"unstoppable.money://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"unstoppable.money://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/unstoppable.jpg",blockchains:n(px.evm)},{name:"AlphaWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"awallet:",universal:"https://aw.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"awallet:",universal:"https://aw.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/alpha_wallet.jpg",blockchains:n(px.evm)},{name:"Pillar",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pillarwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pillarwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pillar.jpg",blockchains:n(px.evm)},{name:"D'CENT Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dcent:",universal:"https://link.dcentwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dcent:",universal:"https://link.dcentwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/dcent.jpg",blockchains:n(px.evm)},{name:"ZelCore",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zel:",universal:"https://link.zel.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zel:",universal:"https://link.zel.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zel_core.jpg",blockchains:n(px.evm)},{name:"Nash",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"nash:",universal:"https://nash.io/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"nash:",universal:"https://nash.io/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nash.jpg",blockchains:n(px.evm)},{name:"Coinomi",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://coinomi.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://coinomi.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coinomi.jpg",blockchains:n(px.evm)},{name:"CYBAVO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cybavowallet:",universal:"https://cdn.cybavo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cybavowallet:",universal:"https://cdn.cybavo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cybavo.jpg",blockchains:n(px.evm)},{name:"Tokenary",desktop:{native:"tokenary:",universal:"https://tokenary.io",connect:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/tokenary.jpg",blockchains:n(px.evm)},{name:"Torus",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/torus.jpg",blockchains:n(px.evm)},{name:"SafePal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"safepalwallet",universal:"https://link.safepal.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safepalwallet",universal:"https://link.safepal.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safepal.jpg",blockchains:n(px.evm)},{name:"Infinity Wallet",desktop:{native:"infinity:",universal:"https://infinitywallet.io/",connect:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/infinity_wallet.jpg",blockchains:n(px.evm)},{name:"Bridge Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bridgewallet:",universal:"https://bridge.mtpelerin.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bridgewallet:",universal:"https://bridge.mtpelerin.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mtperlin.jpg",blockchains:n(px.evm)},{name:"SparkPoint",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"sparkpoint:",universal:"https://sparkpoint.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"sparkpoint:",universal:"https://sparkpoint.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/sparkpoint.jpg",blockchains:n(px.evm)},{name:"PEAKDEFI Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"peakdefiwallet:",universal:"https://peakdefi.com/download",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"peakdefiwallet:",universal:"https://peakdefi.com/download",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/peakdefi.jpg",blockchains:n(px.evm)},{name:"AT.Wallet",desktop:{native:"atwallet:",qr:"WalletConnectV2",connect:"WalletConnectV2"},mobile:{ios:{native:"atwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"atwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/atwallet.jpg",blockchains:n(px.evm)},{name:"Ellipal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ellipal:",universal:"https://www.ellipal.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ellipal:",universal:"https://www.ellipal.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ellipal.jpg",blockchains:n(px.evm)},{name:"Aktionariat",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"aktionariat:",universal:"https://app.aktionariat.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"aktionariat:",universal:"https://app.aktionariat.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/aktionariat.jpg",blockchains:n(px.evm)},{name:"Talken Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"talken-wallet:",universal:"https://talken.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"talken-wallet:",universal:"https://talken.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/talken.jpg",blockchains:n(px.evm)},{name:"KyberSwap",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kyberswap:",universal:"https://kyberswapnew.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kyberswap:",universal:"https://kyberswapnew.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kyberswap.jpg",blockchains:n(px.evm)},{name:"Tongue Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tongue:",universal:"https://www.tongue.fi",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tongue:",universal:"https://www.tongue.fi",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tongue.jpg",blockchains:n(px.evm)},{name:"RWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"rwallet:",universal:"https://www.rwallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"rwallet:",universal:"https://www.rwallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rwallet.jpg",blockchains:n(px.evm)},{name:"O3Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"o3wallet:",universal:"https://o3.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"o3wallet:",universal:"https://o3.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/o3wallet.jpg",blockchains:n(px.evm)},{name:"HashKey Me",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hashme:",universal:"https://me.hashkey.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hashme:",universal:"https://me.hashkey.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/hashkeyme.jpg",blockchains:n(px.evm)},{name:"Guarda Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/guarda.jpg",blockchains:n(px.evm)},{name:"Defiant",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"defiantapp:",universal:"https://defiantapp.tech",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"defiantapp:",universal:"https://defiantapp.tech",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/defiant.jpg",blockchains:n(px.evm)},{name:"Valora",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"celo://wallet",universal:"https://valoraapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"celo://wallet",universal:"https://valoraapp.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/valora.jpg",blockchains:n(px.evm)},{name:"Celo Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"celowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"celowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/celo.jpg",blockchains:n(px.evm)},{name:"Elastos Essentials",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"essentials:",universal:"https://essentials.elastos.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"essentials:",universal:"https://essentials.elastos.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/elastos_essentials.jpg",blockchains:n(px.evm)},{name:"Stasis",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"stasis:",universal:"https://app.stasis.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"stasis:",universal:"https://app.stasis.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/stasis.jpg",blockchains:n(px.evm)},{name:"JulWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"julwallet:",universal:"https://justliquidity.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"julwallet:",universal:"https://justliquidity.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/julwallet.jpg",blockchains:n(px.evm)},{name:"Bitpie",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitpie:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitpie:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitpie.jpg",blockchains:n(px.evm)},{name:"Minerva Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"minerva:",universal:"https://minerva.digital",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"minerva:",universal:"https://minerva.digital",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/minerva.jpg",blockchains:n(px.evm)},{name:"Tangem",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tangem:",universal:"https://app.tangem.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tangem:",universal:"https://app.tangem.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tangem.jpg",blockchains:n(px.evm)},{name:"ioPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/io_pay.jpg",blockchains:n(px.evm)},{name:"Coinhub",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/coinhub.jpg",blockchains:n(px.evm)},{name:"Go Pocket",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/gopocket.jpg",blockchains:n(px.evm)},{name:"Wallet 3",desktop:{native:"wallet3:",qr:"WalletConnectV2"},mobile:{ios:{native:"wallet3:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wallet3:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wallet3.jpg",blockchains:n(px.evm)},{name:"yiToken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"yitoken:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"yitoken:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/yitoken.jpg",blockchains:n(px.evm)},{name:"DID Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abt:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abt:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/didwallet.jpg",blockchains:n(px.evm)},{name:"Shinobi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/shinobi_wallet.jpg",blockchains:n(px.evm)},{name:"AirGap Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"airgap-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"airgap-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/air_gap_wallet.jpg",blockchains:n(px.evm)},{name:"SecuX",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"secux://",universal:"https://wsweb.secuxtech.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"secux://",universal:"https://wsweb.secuxtech.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/secux.jpg",blockchains:n(px.evm)},{name:"Orange",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"orangewallet:",universal:"https://link.orangewallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"orangewallet:",universal:"https://link.orangewallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/orange.jpg",blockchains:n(px.evm)},{name:"Krystal",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"krystalWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"krystalWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/krystal.jpg",blockchains:n(px.evm)},{name:"Kriptomat",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kriptomatapp://wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kriptomatapp://wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/kriptomat.jpg",blockchains:n(px.evm)},{name:"Ambire Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ambire:",universal:"https://mobile.ambire.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ambire:",universal:"https://mobile.ambire.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ambire_wallet.jpg",blockchains:n(px.evm)},{name:"PayBolt",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"paybolt://Wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"paybolt://Wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pay_bolt.jpg",blockchains:n(px.evm)},{name:"OKX",extensions:["OKXEVM","OKXSVM"],desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"okex://main",connect:"WalletConnectV2",qr:"WalletConnectV2",open:function(){return"okx://wallet/dapp/url?dappUrl=".concat(encodeURIComponent(window.location.toString()))}},android:{native:"okex://main",connect:"WalletConnectV2",qr:"WalletConnectV2",open:function(){return"okx://wallet/dapp/url?dappUrl=".concat(encodeURIComponent(window.location.toString()))}}},logo:null===(ox=SE.OKXEVM)||void 0===ox||null===(ax=ox.info)||void 0===ax?void 0:ax.logo,blockchains:n(px.evm)},{name:"Mask Network",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/mask_network.jpg",blockchains:n(px.evm)},{name:"Uniblow",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/uniblow.jpg",blockchains:n(px.evm)},{name:"Autonomy: Digital Art Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"autonomy-wc",universal:"https://autonomy.io/apps/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"autonomy-wc",universal:"https://autonomy.io/apps/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/autonomy.jpg",blockchains:n(px.evm)},{name:"Lilico",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"lilico://",universal:"https://link.lilico.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"lilico://",universal:"https://link.lilico.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/lilico.jpg",blockchains:n(px.evm)},{name:"Fireblocks",desktop:{universal:"https://console.fireblocks.io/v2",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"fireblocks-wc://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"fireblocks-wc://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/fireblocks.jpg",blockchains:n(px.evm)},{name:"WATT ME",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"wattwallet://wallet-connect/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wattwallet://wallet-connect/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wattme.jpg",blockchains:n(px.evm)},{name:"Coingrig",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coingrig://",universal:"https://link.coingrig.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coingrig://",universal:"https://link.coingrig.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coingrig.jpg",blockchains:n(px.evm)},{name:"Cryptnox Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/cryptnox_wallet.jpg",blockchains:n(px.evm)},{name:"bobablocks",desktop:{native:"bobablocks://",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"bobablocks://",universal:"https://app.bobablocks.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bobablocks://",universal:"https://app.bobablocks.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bobablocks.jpg",blockchains:n(px.evm)},{name:"Plasma Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"plasmawallet:",universal:"https://plasma-wallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"plasmawallet:",universal:"https://plasma-wallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/plasma_wallet.jpg",blockchains:n(px.evm)},{name:"HUMBL WALLET",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"humblwallet:",universal:"https://wallet.search3.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"humblwallet:",universal:"https://wallet.search3.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/humbl_wallet.jpg",blockchains:n(px.evm)},{name:"Zelus",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zeluswallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zeluswallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zelus.jpg",blockchains:n(px.evm)},{name:"Earth Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"earthwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"earthwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/earth_wallet.jpg",blockchains:n(px.evm)},{name:"Boba Multisig",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/boba_multisig.jpg",blockchains:n(px.evm)},{name:"EASY",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"co.theeasy.app://",universal:"https://link.easy.me",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"co.theeasy.app://",universal:"https://link.easy.me",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/easy.jpg",blockchains:n(px.evm)},{name:"ISLAMIwallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"islamiwallet://islami.com/path/",universal:"https://islamiwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"islamiwallet://islami.com/path/",universal:"https://islamiwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/islam_iwallet.jpg",blockchains:n(px.evm)},{name:"Card Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cardwallet://",universal:"https://wallet.cardstack.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cardwallet://",universal:"https://wallet.cardstack.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/card_wallet.jpg",blockchains:n(px.evm)},{name:"GameStop Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/game_stop_wallet.jpg",blockchains:n(px.evm)},{name:"RealT Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/real_t_wallet.jpg",blockchains:n(px.evm)},{name:"PLTwallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pltwallet:",universal:"https://pltwallet.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pltwallet:",universal:"https://pltwallet.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pl_twallet.jpg",blockchains:n(px.evm)},{name:"Avacus",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"avacus://",universal:"https://avacus.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"avacus://",universal:"https://avacus.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/avacus.jpg",blockchains:n(px.evm)},{name:"StrikeX Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"strikex://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"strikex://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/strike_x_wallet.jpg",blockchains:n(px.evm)},{name:"BCERTin wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/bcer_tin_wallet.jpg",blockchains:n(px.evm)},{name:"Edge Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"edge://",universal:"https://deep.edge.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"edge://",universal:"https://deep.edge.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/edge_wallet.jpg",blockchains:n(px.evm)},{name:"Freedom Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"freedom-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"freedom-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/freedom_wallet.jpg",blockchains:n(px.evm)},{name:"Assure",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"assure://",universal:"https://www.assure.pro/Official",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"assure://",universal:"https://www.assure.pro/Official",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/assure.jpg",blockchains:n(px.evm)},{name:"Cosmostation",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cosmostation://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cosmostation://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/cosmostation.jpg",blockchains:n(px.evm)},{name:"THORWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"thorwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"thorwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/thor_wallet.jpg",blockchains:n(px.evm)},{name:"Gryfyn",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/gryfyn.jpg",blockchains:n(px.evm)},{name:"CoinStats",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"coinstats:",universal:"https://coinstats.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"coinstats:",universal:"https://coinstats.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coin_stats.jpg",blockchains:n(px.evm)},{name:"Abra Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abra:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abra:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/abra_wallet.jpg",blockchains:n(px.evm)},{name:"Opera Crypto Browser",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"cryptobrowser://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"cryptobrowser://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/opera_crypto_browser.jpg",blockchains:n(px.evm)},{name:"Keywallet Touch",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"keywalletTouch://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"keywalletTouch://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keywallet_touch.jpg",blockchains:n(px.evm)},{name:"Enno Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ennowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ennowallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/enno_wallet.jpg",blockchains:n(px.evm)},{name:"A4 Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/a4_wallet.jpg",blockchains:n(px.evm)},{name:"Bitcoin.com Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitcoincom://",universal:"https://wallet.bitcoin.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitcoincom://",universal:"https://wallet.bitcoin.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitcoincom.jpg",blockchains:n(px.evm)},{name:"Defiant",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"defiantapp://",universal:"https://defiantapp.tech/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"defiantapp://",universal:"https://defiantapp.tech/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/defiant.jpg",blockchains:n(px.evm)},{name:"Chain",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/chain.jpg",blockchains:n(px.evm)},{name:"Verso",desktop:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"verso",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/verso.jpg",blockchains:n(px.evm)},{name:"LOBSTR Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"lobstr://",universal:"https://lobstr.co/uni/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"lobstr://",universal:"https://lobstr.co/uni/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/lobstr_wallet.jpg",blockchains:n(px.evm)},{name:"Bifrost Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bifrostwallet:",universal:"https://app.bifrostwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bifrostwallet:",universal:"https://app.bifrostwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bifrost_wallet.jpg",blockchains:n(px.evm)},{name:"Okse Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oksewallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oksewallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/okse_wallet.jpg",blockchains:n(px.evm)},{name:"BRISE Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/brise_wallet.jpg",blockchains:n(px.evm)},{name:"HyperPay",extension:"HyperPay",desktop:{qr:"WalletConnectV2"},logo:null===(sx=SE.HyperPay)||void 0===sx||null===(ux=sx.info)||void 0===ux?void 0:ux.logo,blockchains:n(px.evm)},{name:"ATON",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/aton.jpg",blockchains:n(px.evm)},{name:"Frontier",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"frontier://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"frontier://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/frontier.jpg",blockchains:n(px.evm)},{name:"MDAO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ttmwalletapp://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ttmwalletapp://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/mdao_wallet.jpg",blockchains:n(px.evm)},{name:"TTM Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ttmwalletapp:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ttmwalletapp:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ttm_wallet.jpg",blockchains:n(px.evm)},{name:"Opto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"opto://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"opto://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/opto_wallet.jpg",blockchains:n(px.evm)},{name:"XFUN Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"xfunwallet://",universal:"https://xfun.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"xfunwallet://",universal:"https://xfun.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/xfun_wallet.jpg",blockchains:n(px.evm)},{name:"Exodus",extensions:["ExodusEVM","ExodusSVM"],desktop:{native:"exodus://",qr:"WalletConnectV2"},mobile:{ios:{native:"exodus://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"exodus://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/exodus.jpg",blockchains:n(px)},{name:"Uvtoken",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"UvToken://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"UvToken://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uv_token.jpg",blockchains:n(px.evm)},{name:"PREMA Wallet",desktop:{native:"premawallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"premawallet:",universal:"https://premanft.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"premawallet:",universal:"https://premanft.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/prema_wallet.jpg",blockchains:n(px.evm)},{name:"Shinobi-Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"shinobi-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/shinobi.jpg",blockchains:n(px.evm)},{name:"ByteBank",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hideoutWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hideoutWallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/byte_bank.jpg",blockchains:n(px.evm)},{name:"Ancrypto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ancrypto://app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ancrypto://app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/ancrypto_wallet.jpg",blockchains:n(px.evm)},{name:"Bee Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"beewallet.app://",universal:"https://beewallet.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"beewallet.app://",universal:"https://beewallet.app/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bee_wallet.jpg",blockchains:n(px.evm)},{name:"LATOKEN Multichain DeFi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"dfwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"dfwallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/latoken_multichain_de_fi_wallet.jpg",blockchains:n(px.evm)},{name:"TK Finance",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"tk://",universal:"https://trustkeys.network",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"tk://",universal:"https://trustkeys.network",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/tk_finance.jpg",blockchains:n(px.evm)},{name:"Oxalus Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"oxalus://",universal:"https://deeplink.oxalus.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"oxalus://",universal:"https://deeplink.oxalus.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/oxalus_wallet.jpg",blockchains:n(px.evm)},{name:"3S Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bhcwallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bhcwallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/3_s_wallet.jpg",blockchains:n(px.evm)},{name:"Klever Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"kleverwallet:",universal:"https://klever.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"kleverwallet:",universal:"https://klever.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/klever_wallet.jpg",blockchains:n(px.evm)},{name:"OneKey",desktop:{native:"onekey-wallet://",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"onekey-wallet://",universal:"https://app.onekey.so/wc/connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"onekey-wallet://",universal:"https://app.onekey.so/wc/connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/one_key.jpg",blockchains:n(px.evm)},{name:"helix id",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"helix-id://helix-id.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"helix-id://helix-id.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/helix_id.jpg",blockchains:n(px.evm)},{name:"ABC Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"abc-wallet://abcwc",universal:"https://abcwalletconnect.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"abc-wallet://abcwc",universal:"https://abcwalletconnect.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/abcwallet.jpg",blockchains:n(px.evm)},{name:"HaHa",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"haha://",universal:"https://haha.me",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"haha://",universal:"https://haha.me",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/haha.jpg",blockchains:n(px.evm)},{name:"Volt: DeFi",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"volt:",universal:"https://get.voltage.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"volt:",universal:"https://get.voltage.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/volt.jpg",blockchains:n(px.evm)},{name:"Wirex Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"wirexwallet://",universal:"https://wwallet.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"wirexwallet://",universal:"https://wwallet.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/wirex_wallet.jpg",blockchains:n(px.evm)},{name:"Robinhood Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"robinhood-wallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"robinhood-wallet:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/robinhood_wallet.jpg",blockchains:n(px.evm)},{name:"RiceWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"ricewallet",universal:"https://ricewallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"ricewallet",universal:"https://ricewallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/rice_wallet.jpg",blockchains:n(px.evm)},{name:"SafeMoon",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"safemoon:",universal:"https://safemoon.net/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"safemoon:",universal:"https://safemoon.net/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safemoon.jpg",blockchains:n(px.evm)},{name:"SimpleHold",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"simplehold://",universal:"https://simplehold.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"simplehold://",universal:"https://simplehold.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/simple_hold.jpg",blockchains:n(px.evm)},{name:"GoldBit",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"goldbit://",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"goldbit://",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/gold_bit.jpg",blockchains:n(px.evm)},{name:"ioPay",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"iopay:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/iopay.jpg",blockchains:n(px.evm)},{name:"Bitizen",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitizen://wallet",universal:"https://bitizen.org/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitizen://wallet",universal:"https://bitizen.org/wallet",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitizen.jpg",blockchains:n(px.evm)},{name:"Slavi Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"slaviwallet:",universal:"https://www.slaviwallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"slaviwallet:",universal:"https://www.slaviwallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/slavi_wallet.jpg",blockchains:n(px.evm)},{name:"Nufinetes",desktop:{native:"vimwallet:/",connect:"WalletConnectV2",qr:"WalletConnectV2"},mobile:{ios:{native:"vimwallet:/",universal:"https://apple.vimworld.org",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"vimwallet:/",universal:"https://apple.vimworld.org",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nufinetes.jpg",blockchains:n(px.evm)},{name:"Arianee Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"com.arianee.wallet",universal:"https://arianee.net",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"com.arianee.wallet",universal:"https://arianee.net",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/arianee_wallet.jpg",blockchains:n(px.evm)},{name:"NOW Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"walletnow://",universal:"https://walletnow.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"walletnow://",universal:"https://walletnow.app.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/now_wallet.jpg",blockchains:n(px.evm)},{name:"Arculus Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"arculuswc:",universal:"https://gw.arculus.co/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"arculuswc:",universal:"https://gw.arculus.co/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/arculus_wallet.jpg",blockchains:n(px.evm)},{name:"Linen",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"linen:",universal:"https://linen.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"linen:",universal:"https://linen.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/linen.jpg",blockchains:n(px.evm)},{name:"Nitrogen Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://nitrogen.org/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://nitrogen.org/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nitrogen_wallet.jpg",blockchains:n(px.evm)},{name:"ApolloX",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.apollox.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.apollox.finance",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/apollo_x.jpg",blockchains:n(px.evm)},{name:"ID Pocket",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/id_pocket.jpg",blockchains:n(px.evm)},{name:"CoinCircle",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://coincircle.com/app/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://coincircle.com/app/walletconnect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/coin_circle.jpg",blockchains:n(px.evm)},{name:"SahalWallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/sahal_wallet.jpg",blockchains:n(px.evm)},{name:"UPBOND Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/upbond_wallet.jpg",blockchains:n(px.evm)},{name:"Sequence Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://sequence.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://sequence.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/sequence_wallet.jpg",blockchains:n(px.evm)},{name:"LocalTrade Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://ws.lab.localtrade.cc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://ws.lab.localtrade.cc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/local_trade_wallet.jpg",blockchains:n(px.evm)},{name:"Loopring Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/loopring_wallet.jpg",blockchains:n(px.evm)},{name:"Vision: Crypto Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.vision-crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.vision-crypto.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/vision.jpg",blockchains:n(px.evm)},{name:"Ballet Crypto",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/ballet_crypto.jpg",blockchains:n(px.evm)},{name:"Pitaka",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"pitaka://",universal:"https://app.pitaka.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"pitaka://",universal:"https://app.pitaka.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pitaka.jpg",blockchains:n(px.evm)},{name:"AbsoluteWallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/absolute_wallet.jpg",blockchains:n(px.evm)},{name:"The Parallel",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/the_parallel.jpg",blockchains:n(px.evm)},{name:"CypherD Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/cypher_d_wallet.jpg",blockchains:n(px.evm)},{name:"Keplr",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/keplr.jpg",blockchains:n(px.evm)},{name:"MyWalliD",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/my_walli_d.jpg",blockchains:n(px.evm)},{name:"Status",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/status.jpg",blockchains:n(px.evm)},{name:"Monarch Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://monarchwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://monarchwallet.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/monarch_wallet.jpg",blockchains:n(px.evm)},{name:"Marble",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.marblewallet.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.marblewallet.com/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/marble.jpg",blockchains:n(px.evm)},{name:"Flooz",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.flooz.trade/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.flooz.trade/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/flooz.jpg",blockchains:n(px.evm)},{name:"Blockchain.com",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://login.blockchain.com/deeplink/login/wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://login.blockchain.com/deeplink/login/wallet-connect",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/blockchaincom.jpg",blockchains:n(px.evm)},{name:"Dohrnii Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/dohrnii_wallet.jpg",blockchains:n(px.evm)},{name:"UniPass",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.unipass.id",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.unipass.id",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/uni_pass.jpg",blockchains:n(px.evm)},{name:"ZenGo",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"zengo://get.zengo.com/",universal:"https://get.zengo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"zengo://get.zengo.com/",universal:"https://get.zengo.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/zengo2.png",blockchains:n(px.evm)},{name:"Locker Token",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/locker_token.jpg",blockchains:n(px.evm)},{name:"Keeper",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://link.keeper-wallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://link.keeper-wallet.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/keeper.jpg",blockchains:n(px.evm)},{name:"XDEFI Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/xdefi_wallet.jpg",blockchains:n(px.evm)},{name:"Numio",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/numio.jpg",blockchains:n(px.evm)},{name:"Neon Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/neon_wallet.jpg",blockchains:n(px.evm)},{name:"Nabox",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://nabox.io/app/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://nabox.io/app/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/nabox.jpg",blockchains:n(px.evm)},{name:"Snowball",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.snowball.exchange/app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.snowball.exchange/app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/snowball.jpg",blockchains:n(px.evm)},{name:"KryptoGO Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://kryptogo.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://kryptogo.page.link",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/krypto_go_wallet.jpg",blockchains:n(px.evm)},{name:"Payperless",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/payperless.jpg",blockchains:n(px.evm)},{name:"Brave Wallet",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/brave_wallet.jpg",blockchains:n(px.evm)},{name:"Crossmint",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/crossmint.jpg",blockchains:n(px.evm)},{name:"Safematrix",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://safematrix.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://safematrix.io/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/safematrix.jpg",blockchains:n(px.evm)},{name:"pier",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://pierwallet.com/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://pierwallet.com/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/pier.jpg",blockchains:n(px.evm)},{name:"FILWallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://h5.filwallet.co",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://h5.filwallet.co",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/fil_wallet.jpg",blockchains:n(px.evm)},{name:"ParaSwap Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://wallet.paraswap.io/#/",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://wallet.paraswap.io/#/",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/para_swap_wallet.jpg",blockchains:n(px.evm)},{name:"Bitski",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"bitski:",universal:"https://wallet.bitski.com/walletconnect/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"bitski:",universal:"https://wallet.bitski.com/walletconnect/wc",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/bitski.jpg",blockchains:n(px.evm)},{name:"Hippo Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"hippowallet://",universal:"https://hippowallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"hippowallet://",universal:"https://hippowallet.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/hippo_wallet.jpg",blockchains:n(px.evm)},{name:"Core",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://core.app",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://core.app",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/core.jpg",blockchains:n(px.evm)},{name:"Xcapit",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://app.xcapit.com/links",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://app.xcapit.com/links",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/xcapit.jpg",blockchains:n(px.evm)},{name:"Paper",desktop:{qr:"WalletConnectV2"},mobile:{ios:{universal:"https://withpaper.com",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{universal:"https://withpaper.com",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/paper_wallet.jpg",blockchains:n(px.evm)},{name:"MetaOne",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"metaone:",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"metaone:",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/metaone.jpg",blockchains:n(px.evm)},{name:"Enjin Wallet",desktop:{qr:"WalletConnectV2"},mobile:{ios:{native:"enjinwallet:",universal:"https://deeplink.wallet.enjin.io",connect:"WalletConnectV2",qr:"WalletConnectV2"},android:{native:"enjinwallet:",universal:"https://deeplink.wallet.enjin.io",connect:"WalletConnectV2",qr:"WalletConnectV2"}},logo:"https://img1.depay.com/wallets/enjin.jpg",blockchains:n(px.evm)},{name:"BC Vault",desktop:{qr:"WalletConnectV2"},logo:"https://img1.depay.com/wallets/bc_vault.jpg",blockchains:n(px.evm)},{name:"Ethereum Wallet",extension:"WindowEthereum",logo:null===(cx=SE.WindowEthereum)||void 0===cx||null===(lx=cx.info)||void 0===lx?void 0:lx.logo,blockchains:n(px.evm)},{name:"Solana Pay",desktop:{solanaPay:!0},mobile:{ios:{solanaPay:!0},android:{solanaPay:!0}},logo:null===(hx=Hf.solana)||void 0===hx?void 0:hx.logo,blockchains:n(px.solana)},{name:"Solana Wallet",extension:"WindowSolana",desktop:{solanaPay:!0},mobile:{ios:{solanaPay:!0},android:{solanaPay:!0}},logo:null===(dx=SE.WindowSolana)||void 0===dx||null===(fx=dx.info)||void 0===fx?void 0:fx.logo,blockchains:n(px.solana)},{name:"WalletConnect",desktop:{qr:"WalletConnectV2"},logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0nMS4wJyBlbmNvZGluZz0ndXRmLTgnPz48IS0tIEdlbmVyYXRvcjogQWRvYmUgSWxsdXN0cmF0b3IgMjUuNC4xLCBTVkcgRXhwb3J0IFBsdWctSW4gLiBTVkcgVmVyc2lvbjogNi4wMCBCdWlsZCAwKSAtLT48c3ZnIHZlcnNpb249JzEuMScgaWQ9J0xheWVyXzEnIHhtbG5zPSdodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZycgeG1sbnM6eGxpbms9J2h0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsnIHg9JzBweCcgeT0nMHB4JyB2aWV3Qm94PScwIDAgNTAwIDUwMCcgc3R5bGU9J2VuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNTAwIDUwMDsnIHhtbDpzcGFjZT0ncHJlc2VydmUnPjxzdHlsZSB0eXBlPSd0ZXh0L2Nzcyc+IC5zdDB7ZmlsbDojNTk5MUNEO30KPC9zdHlsZT48ZyBpZD0nUGFnZS0xJz48ZyBpZD0nd2FsbGV0Y29ubmVjdC1sb2dvLWFsdCc+PHBhdGggaWQ9J1dhbGxldENvbm5lY3QnIGNsYXNzPSdzdDAnIGQ9J00xMDIuNywxNjJjODEuNS03OS44LDIxMy42LTc5LjgsMjk1LjEsMGw5LjgsOS42YzQuMSw0LDQuMSwxMC41LDAsMTQuNEwzNzQsMjE4LjkgYy0yLDItNS4zLDItNy40LDBsLTEzLjUtMTMuMmMtNTYuOC01NS43LTE0OS01NS43LTIwNS44LDBsLTE0LjUsMTQuMWMtMiwyLTUuMywyLTcuNCwwTDkxLjksMTg3Yy00LjEtNC00LjEtMTAuNSwwLTE0LjQgTDEwMi43LDE2MnogTTQ2Ny4xLDIyOS45bDI5LjksMjkuMmM0LjEsNCw0LjEsMTAuNSwwLDE0LjRMMzYyLjMsNDA1LjRjLTQuMSw0LTEwLjcsNC0xNC44LDBjMCwwLDAsMCwwLDBMMjUyLDMxMS45IGMtMS0xLTIuNy0xLTMuNywwaDBsLTk1LjUsOTMuNWMtNC4xLDQtMTAuNyw0LTE0LjgsMGMwLDAsMCwwLDAsMEwzLjQsMjczLjZjLTQuMS00LTQuMS0xMC41LDAtMTQuNGwyOS45LTI5LjIgYzQuMS00LDEwLjctNCwxNC44LDBsOTUuNSw5My41YzEsMSwyLjcsMSwzLjcsMGMwLDAsMCwwLDAsMGw5NS41LTkzLjVjNC4xLTQsMTAuNy00LDE0LjgsMGMwLDAsMCwwLDAsMGw5NS41LDkzLjUgYzEsMSwyLjcsMSwzLjcsMGw5NS41LTkzLjVDNDU2LjQsMjI1LjksNDYzLDIyNS45LDQ2Ny4xLDIyOS45eicvPjwvZz48L2c+PC9zdmc+Cg==",blockchains:n(px.evm)}].filter((function(t){return t.blockchains.filter(Boolean).length>0}));function mx(t,e,n,r,i,o,a){try{var s=t[o](a),u=s.value}catch(t){return void n(t)}s.done?e(u):Promise.resolve(u).then(r,i)}function gx(t){return function(){var e=this,n=arguments;return new Promise((function(r,i){var o=t.apply(e,n);function a(t){mx(o,r,i,a,s,"next",t)}function s(t){mx(o,r,i,a,s,"throw",t)}a(void 0)}))}}function vx(t){return(vx="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var wx=Zf((function(t){var e=function(t){var e,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,n){return t[e]=n}}function c(t,e,n,r){var i=e&&e.prototype instanceof m?e:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=function(t,e,n){var r=h;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===p){if("throw"===i)throw o;return S()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===y)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===h)throw r=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(t,e,n);if("normal"===u.type){if(r=n.done?p:d,u.arg===y)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=p,n.method="throw",n.arg=u.arg)}}}(t,n,a),o}function l(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",y={};function m(){}function g(){}function v(){}var w={};u(w,o,(function(){return this}));var b=Object.getPrototypeOf,M=b&&b(b(L([])));M&&M!==n&&r.call(M,o)&&(w=M);var A=v.prototype=m.prototype=Object.create(w);function I(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function N(t,e){function n(i,o,a,s){var u=l(t[i],t,o);if("throw"!==u.type){var c=u.arg,h=c.value;return h&&"object"==typeof h&&r.call(h,"__await")?e.resolve(h.__await).then((function(t){n("next",t,a,s)}),(function(t){n("throw",t,a,s)})):e.resolve(h).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,s)}))}s(u.arg)}var i;this._invoke=function(t,r){function o(){return new e((function(e,i){n(t,r,e,i)}))}return i=i?i.then(o,o):o()}}function E(t,n){var r=t.iterator[n.method];if(r===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return y;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return y}var i=l(r,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,y;var o=i.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,y):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,y)}function x(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function k(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(x,this),this.reset(!0)}function L(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,a=function n(){for(;++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),k(n),y}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var i=r.arg;k(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:L(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),y}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}}));function bx(t,n){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(r=n.next()).done)&&(o.push(r.value),!e||o.length!==e);a=!0);}catch(t){s=!0,i=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,n)||e(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()} /** * @license React * react.production.min.js @@ -67,7 +67,7 @@ e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<>1,l=-7,h=n?i-1:0,d= * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var bx=Symbol.for("react.element"),Mx=Symbol.for("react.portal"),Ax=Symbol.for("react.fragment"),Ix=Symbol.for("react.strict_mode"),Nx=Symbol.for("react.profiler"),Ex=Symbol.for("react.provider"),xx=Symbol.for("react.context"),kx=Symbol.for("react.forward_ref"),Tx=Symbol.for("react.suspense"),Lx=Symbol.for("react.memo"),Sx=Symbol.for("react.lazy"),jx=Symbol.iterator;var Dx={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Cx=Object.assign,Ox={};function zx(t,e,n){this.props=t,this.context=e,this.refs=Ox,this.updater=n||Dx}function Px(){}function _x(t,e,n){this.props=t,this.context=e,this.refs=Ox,this.updater=n||Dx}zx.prototype.isReactComponent={},zx.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},zx.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},Px.prototype=zx.prototype;var Bx=_x.prototype=new Px;Bx.constructor=_x,Cx(Bx,zx.prototype),Bx.isPureReactComponent=!0;var Rx=Array.isArray,Ux=Object.prototype.hasOwnProperty,Qx={current:null},Yx={key:!0,ref:!0,__self:!0,__source:!0};function Wx(t,e,n){var r,i={},o=null,a=null;if(null!=e)for(r in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(o=""+e.key),e)Ux.call(e,r)&&!Yx.hasOwnProperty(r)&&(i[r]=e[r]);var s=arguments.length-2;if(1===s)i.children=n;else if(1>1,l=-7,h=n?i-1:0,d= * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -Zf((function(t,e){}));var $x=Zf((function(t){t.exports=Kx})),tk=$x.createContext(),ek=$x.createContext(),nk=function(t){var e=wx($x.useState(t.closable||!0),2),n=e[0],r=e[1],i=wx($x.useState(!0),2),o=i[0],a=i[1],s=$x.useContext(ek).setUpdatable;return $x.useEffect((function(){var e=function(e){if(!n||!1===t.closable){var r="Payment is still pending. Please wait!";return e.preventDefault(),e.returnValue=r,r}if("string"==typeof n){var i=n;return e.preventDefault(),e.returnValue=i,i}};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[n,t.closable]),$x.createElement(tk.Provider,{value:{closable:n,setClosable:r,close:function(){if(!1!==t.closable&&n){var e=!0;"string"==typeof n&&(e=confirm(n)),e&&(s(!1),a(!1),setTimeout(t.unmount,300))}},open:o,setOpen:a}},t.children)},rk=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],ik=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],ok=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}];const ak=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];var sk=({blockchain:t,address:e,api:n,id:r})=>r?new Promise((n=>{PI({blockchain:t,address:e,api:ak,method:"uri",params:[r]}).then((t=>{var e;t=t.match("0x{id}")?t.replace("0x{id}",r):t,(e=t,new Promise((t=>{e.match(/^ipfs/)&&(e=`https://ipfs.io/ipfs/${e.split("://")[1]}`),fetch(e).then((e=>{if(e.ok)return e.json();t()})).then((e=>{if(e){let n=e.name;n?t(n):t()}})).catch((()=>t()))}))).then(n)})).catch((t=>{console.log("error",t),n()}))})):PI({blockchain:t,address:e,api:n,method:"name",cache:864e5});const uk="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";var ck=async({token:t,owner:e})=>{const[n]=await Xs.findProgramAddress([new Xs(e).toBuffer(),new Xs(uk).toBuffer(),new Xs(t).toBuffer()],new Xs("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"));return function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.toString,"call",t=>t()])};const lk=pf([gf("mintAuthorityOption"),hf("mintAuthority"),vf("supply"),wf("decimals"),af("isInitialized"),gf("freezeAuthorityOption"),hf("freezeAuthority")]),hk=df([pf([],"uninitialized"),pf([],"editionV1"),pf([],"masterEditionV1"),pf([],"reservationListV1"),pf([],"metadataV1"),pf([],"reservationListV2"),pf([],"masterEditionV2"),pf([],"editionMarker")]),dk=pf([hf("address"),af("verified"),wf("share")]),fk=pf([ff("name"),ff("symbol"),ff("uri"),mf("sellerFeeBasisPoints"),lf(bf(dk.replicate("creators")),"creators")]),pk=pf([hk.replicate("key"),hf("updateAuthority"),hf("mint"),fk.replicate("data"),af("primarySaleHappened"),af("isMutable"),lf(wf(),"editionNonce")]),yk=pf([wf("instruction"),vf("amount")]),mk=pf([hf("mint"),hf("owner"),vf("amount"),gf("delegateOption"),hf("delegate"),wf("state"),gf("isNativeOption"),vf("isNative"),vf("delegatedAmount"),gf("closeAuthorityOption"),hf("closeAuthority")]),gk=pf([wf("instruction"),hf("owner")]),vk=pf([wf("instruction")]);var wk=Object.freeze({__proto__:null,createTransferInstruction:async({token:t,amount:e,from:n,to:r})=>{let i=await ck({token:t,owner:n}),o=await ck({token:t,owner:r});const a=[{pubkey:new Xs(i),isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0},{pubkey:new Xs(n),isSigner:!0,isWritable:!1}],s=nf.alloc(yk.span);return yk.encode({instruction:3,amount:new rf(e)},s),new gu({keys:a,programId:new Xs(uk),data:s})},createAssociatedTokenAccountInstruction:async({token:t,owner:e,payer:n})=>{let r=await ck({token:t,owner:e});const i=[{pubkey:new Xs(n),isSigner:!0,isWritable:!0},{pubkey:new Xs(r),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!1},{pubkey:new Xs(t),isSigner:!1,isWritable:!1},{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(uk),isSigner:!1,isWritable:!1}];return new gu({keys:i,programId:new Xs("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),data:nf.alloc(0)})},initializeAccountInstruction:({account:t,token:e,owner:n})=>{const r=[{pubkey:new Xs(t),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!1}],i=nf.alloc(gk.span);return gk.encode({instruction:18,owner:new Xs(n)},i),new gu({keys:r,programId:new Xs(uk),data:i})},closeAccountInstruction:({account:t,owner:e})=>{const n=[{pubkey:new Xs(t),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!0,isWritable:!1}],r=nf.alloc(vk.span);return vk.encode({instruction:9},r),new gu({keys:n,programId:new Xs(uk),data:r})}});function bk(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const Mk=new RegExp("\0","g"),Ak=async({metaDataPublicKey:t,mintPublicKey:e})=>{let n=[nf.from("metadata"),t.toBuffer(),e.toBuffer()];return(await Xs.findProgramAddress(n,t))[0]},Ik=async({blockchain:t,address:e})=>{let n=new Xs(e),r=new Xs("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),i=await Ak({metaDataPublicKey:r,mintPublicKey:n}),o=await PI({blockchain:t,address:i.toString(),api:pk,cache:864e5});return{name:bk([o,"optionalAccess",t=>t.data,"optionalAccess",t=>t.name,"optionalAccess",t=>t.replace,"call",t=>t(Mk,"")]),symbol:bk([o,"optionalAccess",t=>t.data,"optionalAccess",t=>t.symbol,"optionalAccess",t=>t.replace,"call",t=>t(Mk,"")])}};let Nk=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function Ek(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}Nk.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],Nk.solana=["solana"];class xk{constructor({blockchain:t,address:e}){this.blockchain=t,Nk.evm.includes(this.blockchain)?this.address=am(e):Nk.solana.includes(this.blockchain)&&(this.address=e)}async decimals(){if(this.address==Hf.findByName(this.blockchain).currency.address)return Hf.findByName(this.blockchain).currency.decimals;let t;try{Nk.evm.includes(this.blockchain)?t=await(({blockchain:t,address:e,api:n})=>PI({blockchain:t,address:e,api:n,method:"decimals",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:xk[this.blockchain].DEFAULT}):Nk.solana.includes(this.blockchain)&&(t=await(async({blockchain:t,address:e})=>(await PI({blockchain:t,address:e,api:lk})).decimals)({blockchain:this.blockchain,address:this.address}))}catch(t){}return t}async symbol(){return this.address==Hf.findByName(this.blockchain).currency.address?Hf.findByName(this.blockchain).currency.symbol:Nk.evm.includes(this.blockchain)?await(({blockchain:t,address:e,api:n})=>PI({blockchain:t,address:e,api:n,method:"symbol",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:xk[this.blockchain].DEFAULT}):Nk.solana.includes(this.blockchain)?await(async({blockchain:t,address:e})=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([await Ik({blockchain:t,address:e}),"optionalAccess",t=>t.symbol]))({blockchain:this.blockchain,address:this.address}):void 0}async name(t){return this.address==Hf.findByName(this.blockchain).currency.address?Hf.findByName(this.blockchain).currency.name:Nk.evm.includes(this.blockchain)?await sk({blockchain:this.blockchain,address:this.address,api:xk[this.blockchain].DEFAULT,id:Ek([t,"optionalAccess",t=>t.id])}):Nk.solana.includes(this.blockchain)?await(async({blockchain:t,address:e})=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([await Ik({blockchain:t,address:e}),"optionalAccess",t=>t.name]))({blockchain:this.blockchain,address:this.address}):void 0}async balance(t,e){return Nk.evm.includes(this.blockchain)?await(async({blockchain:t,address:e,account:n,api:r,id:i})=>e==Hf[t].currency.address?await PI({blockchain:t,address:n,method:"balance",cache:1e4}):await PI({blockchain:t,address:e,method:"balanceOf",api:r,params:i?[n,i]:[n],cache:1e4}))({blockchain:this.blockchain,account:t,address:this.address,api:e?xk[this.blockchain][1155]:xk[this.blockchain].DEFAULT,id:e}):Nk.solana.includes(this.blockchain)?await(async({blockchain:t,address:e,account:n,api:r})=>{if(e==Hf[t].currency.address)return Fp.from(await PI(`solana://${n}/balance`));{const t=await ck({token:e,owner:n}),r=await PI(`solana://${t}/getTokenAccountBalance`);return r?Fp.from(r.value.amount):Fp.from("0")}})({blockchain:this.blockchain,account:t,address:this.address,api:xk[this.blockchain].DEFAULT}):void 0}async allowance(t,e){return this.address==Hf.findByName(this.blockchain).currency.address?Fp.from(Hf.findByName(this.blockchain).maxInt):Nk.evm.includes(this.blockchain)?await(({blockchain:t,address:e,api:n,owner:r,spender:i})=>PI({blockchain:t,address:e,api:n,method:"allowance",params:[r,i],cache:5e3}))({blockchain:this.blockchain,address:this.address,api:xk[this.blockchain].DEFAULT,owner:t,spender:e}):Nk.solana.includes(this.blockchain)?Fp.from(Hf.findByName(this.blockchain).maxInt):void 0}async BigNumber(t){let e=await this.decimals();return cI(xk.safeAmount({amount:parseFloat(t),decimals:e}).toString(),e)}async readable(t){let e=await this.decimals(),n=uI(t.toString(),e);return n=n.replace(/\.0+$/,""),n}}xk.BigNumber=async({amount:t,blockchain:e,address:n})=>new xk({blockchain:e,address:n}).BigNumber(t),xk.readable=async({amount:t,blockchain:e,address:n})=>new xk({blockchain:e,address:n}).readable(t),xk.safeAmount=({amount:t,decimals:e})=>parseFloat(t.toFixed(e)),xk.ethereum={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.bsc={DEFAULT:ik,BEP20:ik,20:ik,1155:rk,WRAPPED:ok},xk.polygon={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.fantom={DEFAULT:ik,FTM20:ik,20:ik,1155:rk,WRAPPED:ok},xk.arbitrum={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.avalanche={DEFAULT:ik,ERC20:ik,ARC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.gnosis={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.optimism={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.base={DEFAULT:ik,ERC20:ik,20:ik,1155:rk,WRAPPED:ok},xk.solana={MINT_LAYOUT:lk,METADATA_LAYOUT:pk,TRANSFER_LAYOUT:yk,METADATA_ACCOUNT:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",TOKEN_PROGRAM:uk,TOKEN_LAYOUT:mk,ASSOCIATED_TOKEN_PROGRAM:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",findProgramAddress:ck,findAccount:async({token:t,owner:e})=>{const n=await ck({token:t,owner:e});return await PI({blockchain:"solana",address:n,api:mk,cache:1e3})},getMetaData:Ik,getMetaDataPDA:Ak,...wk};const kk=({assets:t,blockchain:e,options:n})=>n.only?t.filter((t=>(n.only[e]||[]).find((e=>e.toLowerCase()==t.address.toLowerCase())))):n.exclude?t.filter((t=>(n.exclude[e]||[]).find((e=>e.toLowerCase()!=t.address.toLowerCase())))):t;var Tk=async t=>(void 0===t&&(t={accounts:{}}),Promise.all(Object.keys(t.accounts).map((e=>new Promise(((n,r)=>{const i=t.accounts[e],o=new AbortController;setTimeout((()=>o.abort()),1e4),fetch(`https://public.depay.com/accounts/${e}/${i}/assets`,{signal:o.signal}).catch((()=>{n([])})).then((t=>{if(t&&t.ok)return t.json();n([])})).then((async r=>{if(r&&r.length)return await(async({address:t,options:e,assets:n,blockchain:r})=>{if(e.only&&e.only[r]&&!e.only[r].find((t=>t.toLowerCase()==Hf[r].currency.address.toLowerCase())))return n;if(e.exclude&&e.exclude[r]&&e.exclude[r].find((t=>t.toLowerCase()==Hf[r].currency.address.toLowerCase())))return n;if(!n.find((t=>t.address.toLowerCase()==Hf[r].currency.address.toLowerCase()))){let e=await PI({blockchain:r,address:t,method:"balance"},{cache:3e4});n=[{name:Hf[r].currency.name,symbol:Hf[r].currency.symbol,address:Hf[r].currency.address,type:"NATIVE",blockchain:r,balance:e.toString()},...n]}return n})({address:i,options:t,assets:kk({assets:r,blockchain:e,options:t}).map((t=>Object.assign(t,{blockchain:e}))),blockchain:e});n([])})).then(n).catch((()=>{n([])}))}))))).then((t=>t.flat())));function Lk(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const Sk=(t,e)=>Object.assign({},{address:t.address,symbol:t.symbol,name:t.name,decimals:t.decimals,type:t.type,blockchain:t.blockchain},{balance:e.toString()}),jk=({assets:t,asset:e})=>!!t.find((t=>t.blockchain==e.blockchain&&t.address.toLowerCase()==e.address.toLowerCase())),Dk=({options:t,address:e,blockchain:n})=>!(!(t&&t.only&&t.only[n])||t.only[n].find((t=>t.toLowerCase()==e.toLowerCase())))||!!(t&&t.exclude&&t.exclude[n]&&t.exclude[n].find((t=>t.toLowerCase()==e.toLowerCase()))),Ck=(t,e,n)=>{if(!t||0===t.length)return 0;let r=t.indexOf([e.blockchain,e.address.toLowerCase()].join("")),i=t.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{void 0===t&&(t={accounts:{},priority:[]});let e=[],n=[],r=[],i=Lk([t,"optionalAccess",t=>t.priority,"optionalAccess",t=>t.map,"call",t=>t((t=>[t.blockchain,t.address.toLowerCase()].join("")))]),o=0,a=[];const s=(e,r=!0)=>{if("function"!=typeof t.drip)return;const u=[e.blockchain,e.address.toLowerCase()].join("");if(!(n.indexOf(u)>-1))if(i&&i.length&&i.indexOf(u)===o){if(n.push(u),t.drip(e),o+=1,!r)return;a.forEach((t=>s(t,!1)))}else!i||0===i.length||o>=i.length?i&&0!==i.length&&-1!==i.indexOf(u)?o>=i.length&&(n.push(u),t.drip(e)):(n.push(u),t.drip(e)):a.find((t=>t.blockchain===e.blockchain&&t.address.toLowerCase()===e.address.toLowerCase()))||(a.push(e),a.sort(((t,e)=>Ck(i,t,e))))};r=r.concat((t.priority||[]).map((n=>new Promise((async(r,i)=>{try{let i=new xk(n),o=Object.assign({},n,{name:await i.name(),symbol:await i.symbol(),decimals:await i.decimals(),balance:(await i.balance(t.accounts[n.blockchain])).toString(),type:Hf[n.blockchain].currency.address.toLowerCase()===n.address.toLowerCase()?"NATIVE":"20"});if("0"!=o.balance){if(jk({assets:e,asset:n}))return r();e.push(o),s(o),r(o)}else r()}catch(t){r()}}))))),Promise.all(r).then((()=>{o=Lk([i,"optionalAccess",t=>t.length])||0,a.forEach((t=>s(t,!1)))}));let u=[];for(var c in t.accounts)Hf.findByName(c).tokens.forEach((e=>{Dk({options:t,address:e.address,blockchain:c})||Lk([t,"optionalAccess",t=>t.priority,"optionalAccess",t=>t.find,"call",t=>t((t=>t.blockchain===c&&t.address.toLowerCase()===e.address.toLowerCase()))])||u.push(Object.assign({},e,{blockchain:c}))}));if(r=r.concat(u.map((n=>new Promise(((r,i)=>{new xk(n).balance(t.accounts[n.blockchain]).then((t=>{if(jk({assets:e,asset:n}))return r();const i=Sk(n,t);"0"!=i.balance?(e.push(i),s(i),r(i)):r()})).catch((()=>{r()}))}))))),null==t.only||Object.keys(t.only).every((t=>0==t.length))){let n=await Tk(t);r=r.concat(n.map((n=>new Promise(((r,i)=>{const o=new xk(n);return o.balance(t.accounts[n.blockchain]).then((async t=>{if(jk({assets:e,asset:n}))return r();const i=Sk(n,t);"0"!=i.balance?(void 0===i.name&&(i.name=await o.name()),void 0===i.symbol&&(i.symbol=await o.symbol()),void 0===i.decimals&&(i.decimals=await o.decimals()),e.push(i),s(i),r(i)):r()})).catch((()=>{r()}))})))))}return await Promise.all(r),e.sort(((t,e)=>Ck(i,t,e))),a.forEach((t=>s(t,!1))),e},_k=9e15,Bk="0123456789abcdef",Rk="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Uk="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Qk={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-_k,maxE:_k,crypto:!1},Yk=!0,Wk="[DecimalError] Invalid argument: ",Fk="[object Decimal]",Vk=Math.floor,Hk=Math.pow,Gk=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,qk=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Zk=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Jk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Xk=1e7,Kk=Rk.length-1,$k=Uk.length-1,tT={toStringTag:Fk}; +Zf((function(t,e){}));var tk=Zf((function(t){t.exports=$x})),ek=tk.createContext(),nk=tk.createContext(),rk=function(t){var e=bx(tk.useState(t.closable||!0),2),n=e[0],r=e[1],i=bx(tk.useState(!0),2),o=i[0],a=i[1],s=tk.useContext(nk).setUpdatable;return tk.useEffect((function(){var e=function(e){if(!n||!1===t.closable){var r="Payment is still pending. Please wait!";return e.preventDefault(),e.returnValue=r,r}if("string"==typeof n){var i=n;return e.preventDefault(),e.returnValue=i,i}};return window.addEventListener("beforeunload",e),function(){window.removeEventListener("beforeunload",e)}}),[n,t.closable]),tk.createElement(ek.Provider,{value:{closable:n,setClosable:r,close:function(){if(!1!==t.closable&&n){var e=!0;"string"==typeof n&&(e=confirm(n)),e&&(s(!1),a(!1),setTimeout(t.unmount,300))}},open:o,setOpen:a}},t.children)},ik=[{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"values",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"operator",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"id",type:"uint256"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"TransferSingle",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"string",name:"value",type:"string"},{indexed:!0,internalType:"uint256",name:"id",type:"uint256"}],name:"URI",type:"event"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"address",name:"operator",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeBatchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"safeTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"operator",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"setApprovalForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}],ok=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_spender",type:"address"},{name:"_value",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_from",type:"address"},{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"}],name:"balanceOf",outputs:[{name:"balance",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"_to",type:"address"},{name:"_value",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{name:"_owner",type:"address"},{name:"_spender",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"owner",type:"address"},{indexed:!0,name:"spender",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"from",type:"address"},{indexed:!0,name:"to",type:"address"},{indexed:!1,name:"value",type:"uint256"}],name:"Transfer",type:"event"}],ak=[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}];const sk=[{inputs:[{internalType:"uint256",name:"tokenId",type:"uint256"}],name:"uri",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"}];var uk=({blockchain:t,address:e,api:n,id:r})=>r?new Promise((n=>{_I({blockchain:t,address:e,api:sk,method:"uri",params:[r]}).then((t=>{var e;t=t.match("0x{id}")?t.replace("0x{id}",r):t,(e=t,new Promise((t=>{e.match(/^ipfs/)&&(e=`https://ipfs.io/ipfs/${e.split("://")[1]}`),fetch(e).then((e=>{if(e.ok)return e.json();t()})).then((e=>{if(e){let n=e.name;n?t(n):t()}})).catch((()=>t()))}))).then(n)})).catch((t=>{console.log("error",t),n()}))})):_I({blockchain:t,address:e,api:n,method:"name",cache:864e5});const ck="TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";var lk=async({token:t,owner:e})=>{const[n]=await Xs.findProgramAddress([new Xs(e).toBuffer(),new Xs(ck).toBuffer(),new Xs(t).toBuffer()],new Xs("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"));return function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.toString,"call",t=>t()])};const hk=pf([gf("mintAuthorityOption"),hf("mintAuthority"),vf("supply"),wf("decimals"),af("isInitialized"),gf("freezeAuthorityOption"),hf("freezeAuthority")]),dk=df([pf([],"uninitialized"),pf([],"editionV1"),pf([],"masterEditionV1"),pf([],"reservationListV1"),pf([],"metadataV1"),pf([],"reservationListV2"),pf([],"masterEditionV2"),pf([],"editionMarker")]),fk=pf([hf("address"),af("verified"),wf("share")]),pk=pf([ff("name"),ff("symbol"),ff("uri"),mf("sellerFeeBasisPoints"),lf(bf(fk.replicate("creators")),"creators")]),yk=pf([dk.replicate("key"),hf("updateAuthority"),hf("mint"),pk.replicate("data"),af("primarySaleHappened"),af("isMutable"),lf(wf(),"editionNonce")]),mk=pf([wf("instruction"),vf("amount")]),gk=pf([hf("mint"),hf("owner"),vf("amount"),gf("delegateOption"),hf("delegate"),wf("state"),gf("isNativeOption"),vf("isNative"),vf("delegatedAmount"),gf("closeAuthorityOption"),hf("closeAuthority")]),vk=pf([wf("instruction"),hf("owner")]),wk=pf([wf("instruction")]);var bk=Object.freeze({__proto__:null,createTransferInstruction:async({token:t,amount:e,from:n,to:r})=>{let i=await lk({token:t,owner:n}),o=await lk({token:t,owner:r});const a=[{pubkey:new Xs(i),isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0},{pubkey:new Xs(n),isSigner:!0,isWritable:!1}],s=nf.alloc(mk.span);return mk.encode({instruction:3,amount:new rf(e)},s),new gu({keys:a,programId:new Xs(ck),data:s})},createAssociatedTokenAccountInstruction:async({token:t,owner:e,payer:n})=>{let r=await lk({token:t,owner:e});const i=[{pubkey:new Xs(n),isSigner:!0,isWritable:!0},{pubkey:new Xs(r),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!1},{pubkey:new Xs(t),isSigner:!1,isWritable:!1},{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(ck),isSigner:!1,isWritable:!1}];return new gu({keys:i,programId:new Xs("ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"),data:nf.alloc(0)})},initializeAccountInstruction:({account:t,token:e,owner:n})=>{const r=[{pubkey:new Xs(t),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!1}],i=nf.alloc(vk.span);return vk.encode({instruction:18,owner:new Xs(n)},i),new gu({keys:r,programId:new Xs(ck),data:i})},closeAccountInstruction:({account:t,owner:e})=>{const n=[{pubkey:new Xs(t),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!1,isWritable:!0},{pubkey:new Xs(e),isSigner:!0,isWritable:!1}],r=nf.alloc(wk.span);return wk.encode({instruction:9},r),new gu({keys:n,programId:new Xs(ck),data:r})}});function Mk(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const Ak=new RegExp("\0","g"),Ik=async({metaDataPublicKey:t,mintPublicKey:e})=>{let n=[nf.from("metadata"),t.toBuffer(),e.toBuffer()];return(await Xs.findProgramAddress(n,t))[0]},Nk=async({blockchain:t,address:e})=>{let n=new Xs(e),r=new Xs("metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s"),i=await Ik({metaDataPublicKey:r,mintPublicKey:n}),o=await _I({blockchain:t,address:i.toString(),api:yk,cache:864e5});return{name:Mk([o,"optionalAccess",t=>t.data,"optionalAccess",t=>t.name,"optionalAccess",t=>t.replace,"call",t=>t(Ak,"")]),symbol:Mk([o,"optionalAccess",t=>t.data,"optionalAccess",t=>t.symbol,"optionalAccess",t=>t.replace,"call",t=>t(Ak,"")])}};let Ek=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];function xk(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}Ek.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],Ek.solana=["solana"];class kk{constructor({blockchain:t,address:e}){this.blockchain=t,Ek.evm.includes(this.blockchain)?this.address=am(e):Ek.solana.includes(this.blockchain)&&(this.address=e)}async decimals(){if(this.address==Hf.findByName(this.blockchain).currency.address)return Hf.findByName(this.blockchain).currency.decimals;let t;try{Ek.evm.includes(this.blockchain)?t=await(({blockchain:t,address:e,api:n})=>_I({blockchain:t,address:e,api:n,method:"decimals",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:kk[this.blockchain].DEFAULT}):Ek.solana.includes(this.blockchain)&&(t=await(async({blockchain:t,address:e})=>(await _I({blockchain:t,address:e,api:hk})).decimals)({blockchain:this.blockchain,address:this.address}))}catch(t){}return t}async symbol(){return this.address==Hf.findByName(this.blockchain).currency.address?Hf.findByName(this.blockchain).currency.symbol:Ek.evm.includes(this.blockchain)?await(({blockchain:t,address:e,api:n})=>_I({blockchain:t,address:e,api:n,method:"symbol",cache:864e5}))({blockchain:this.blockchain,address:this.address,api:kk[this.blockchain].DEFAULT}):Ek.solana.includes(this.blockchain)?await(async({blockchain:t,address:e})=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([await Nk({blockchain:t,address:e}),"optionalAccess",t=>t.symbol]))({blockchain:this.blockchain,address:this.address}):void 0}async name(t){return this.address==Hf.findByName(this.blockchain).currency.address?Hf.findByName(this.blockchain).currency.name:Ek.evm.includes(this.blockchain)?await uk({blockchain:this.blockchain,address:this.address,api:kk[this.blockchain].DEFAULT,id:xk([t,"optionalAccess",t=>t.id])}):Ek.solana.includes(this.blockchain)?await(async({blockchain:t,address:e})=>function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([await Nk({blockchain:t,address:e}),"optionalAccess",t=>t.name]))({blockchain:this.blockchain,address:this.address}):void 0}async balance(t,e){return Ek.evm.includes(this.blockchain)?await(async({blockchain:t,address:e,account:n,api:r,id:i})=>e==Hf[t].currency.address?await _I({blockchain:t,address:n,method:"balance",cache:1e4}):await _I({blockchain:t,address:e,method:"balanceOf",api:r,params:i?[n,i]:[n],cache:1e4}))({blockchain:this.blockchain,account:t,address:this.address,api:e?kk[this.blockchain][1155]:kk[this.blockchain].DEFAULT,id:e}):Ek.solana.includes(this.blockchain)?await(async({blockchain:t,address:e,account:n,api:r})=>{if(e==Hf[t].currency.address)return Fp.from(await _I(`solana://${n}/balance`));{const t=await lk({token:e,owner:n}),r=await _I(`solana://${t}/getTokenAccountBalance`);return r?Fp.from(r.value.amount):Fp.from("0")}})({blockchain:this.blockchain,account:t,address:this.address,api:kk[this.blockchain].DEFAULT}):void 0}async allowance(t,e){return this.address==Hf.findByName(this.blockchain).currency.address?Fp.from(Hf.findByName(this.blockchain).maxInt):Ek.evm.includes(this.blockchain)?await(({blockchain:t,address:e,api:n,owner:r,spender:i})=>_I({blockchain:t,address:e,api:n,method:"allowance",params:[r,i],cache:5e3}))({blockchain:this.blockchain,address:this.address,api:kk[this.blockchain].DEFAULT,owner:t,spender:e}):Ek.solana.includes(this.blockchain)?Fp.from(Hf.findByName(this.blockchain).maxInt):void 0}async BigNumber(t){let e=await this.decimals();return cI(kk.safeAmount({amount:parseFloat(t),decimals:e}).toString(),e)}async readable(t){let e=await this.decimals(),n=uI(t.toString(),e);return n=n.replace(/\.0+$/,""),n}}kk.BigNumber=async({amount:t,blockchain:e,address:n})=>new kk({blockchain:e,address:n}).BigNumber(t),kk.readable=async({amount:t,blockchain:e,address:n})=>new kk({blockchain:e,address:n}).readable(t),kk.safeAmount=({amount:t,decimals:e})=>parseFloat(t.toFixed(e)),kk.ethereum={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.bsc={DEFAULT:ok,BEP20:ok,20:ok,1155:ik,WRAPPED:ak},kk.polygon={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.fantom={DEFAULT:ok,FTM20:ok,20:ok,1155:ik,WRAPPED:ak},kk.arbitrum={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.avalanche={DEFAULT:ok,ERC20:ok,ARC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.gnosis={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.optimism={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.base={DEFAULT:ok,ERC20:ok,20:ok,1155:ik,WRAPPED:ak},kk.solana={MINT_LAYOUT:hk,METADATA_LAYOUT:yk,TRANSFER_LAYOUT:mk,METADATA_ACCOUNT:"metaqbxxUerdq28cj1RbAWkYQm3ybzjb6a8bt518x1s",TOKEN_PROGRAM:ck,TOKEN_LAYOUT:gk,ASSOCIATED_TOKEN_PROGRAM:"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL",findProgramAddress:lk,findAccount:async({token:t,owner:e})=>{const n=await lk({token:t,owner:e});return await _I({blockchain:"solana",address:n,api:gk,cache:1e3})},getMetaData:Nk,getMetaDataPDA:Ik,...bk};const Tk=({assets:t,blockchain:e,options:n})=>n.only?t.filter((t=>(n.only[e]||[]).find((e=>e.toLowerCase()==t.address.toLowerCase())))):n.exclude?t.filter((t=>(n.exclude[e]||[]).find((e=>e.toLowerCase()!=t.address.toLowerCase())))):t;var Lk=async t=>(void 0===t&&(t={accounts:{}}),Promise.all(Object.keys(t.accounts).map((e=>new Promise(((n,r)=>{const i=t.accounts[e],o=new AbortController;setTimeout((()=>o.abort()),1e4),fetch(`https://public.depay.com/accounts/${e}/${i}/assets`,{signal:o.signal}).catch((()=>{n([])})).then((t=>{if(t&&t.ok)return t.json();n([])})).then((async r=>{if(r&&r.length)return await(async({address:t,options:e,assets:n,blockchain:r})=>{if(e.only&&e.only[r]&&!e.only[r].find((t=>t.toLowerCase()==Hf[r].currency.address.toLowerCase())))return n;if(e.exclude&&e.exclude[r]&&e.exclude[r].find((t=>t.toLowerCase()==Hf[r].currency.address.toLowerCase())))return n;if(!n.find((t=>t.address.toLowerCase()==Hf[r].currency.address.toLowerCase()))){let e=await _I({blockchain:r,address:t,method:"balance"},{cache:3e4});n=[{name:Hf[r].currency.name,symbol:Hf[r].currency.symbol,address:Hf[r].currency.address,type:"NATIVE",blockchain:r,balance:e.toString()},...n]}return n})({address:i,options:t,assets:Tk({assets:r,blockchain:e,options:t}).map((t=>Object.assign(t,{blockchain:e}))),blockchain:e});n([])})).then(n).catch((()=>{n([])}))}))))).then((t=>t.flat())));function Sk(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const jk=(t,e)=>Object.assign({},{address:t.address,symbol:t.symbol,name:t.name,decimals:t.decimals,type:t.type,blockchain:t.blockchain},{balance:e.toString()}),Ck=({assets:t,asset:e})=>!!t.find((t=>t.blockchain==e.blockchain&&t.address.toLowerCase()==e.address.toLowerCase())),Dk=({options:t,address:e,blockchain:n})=>!(!(t&&t.only&&t.only[n])||t.only[n].find((t=>t.toLowerCase()==e.toLowerCase())))||!!(t&&t.exclude&&t.exclude[n]&&t.exclude[n].find((t=>t.toLowerCase()==e.toLowerCase()))),Ok=(t,e,n)=>{if(!t||0===t.length)return 0;let r=t.indexOf([e.blockchain,e.address.toLowerCase()].join("")),i=t.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{void 0===t&&(t={accounts:{},priority:[]});let e=[],n=[],r=[],i=Sk([t,"optionalAccess",t=>t.priority,"optionalAccess",t=>t.map,"call",t=>t((t=>[t.blockchain,t.address.toLowerCase()].join("")))]),o=0,a=[];const s=(e,r=!0)=>{if("function"!=typeof t.drip)return;const u=[e.blockchain,e.address.toLowerCase()].join("");if(!(n.indexOf(u)>-1))if(i&&i.length&&i.indexOf(u)===o){if(n.push(u),t.drip(e),o+=1,!r)return;a.forEach((t=>s(t,!1)))}else!i||0===i.length||o>=i.length?i&&0!==i.length&&-1!==i.indexOf(u)?o>=i.length&&(n.push(u),t.drip(e)):(n.push(u),t.drip(e)):a.find((t=>t.blockchain===e.blockchain&&t.address.toLowerCase()===e.address.toLowerCase()))||(a.push(e),a.sort(((t,e)=>Ok(i,t,e))))};r=r.concat((t.priority||[]).map((n=>new Promise((async(r,i)=>{try{let i=new kk(n),o=Object.assign({},n,{name:await i.name(),symbol:await i.symbol(),decimals:await i.decimals(),balance:(await i.balance(t.accounts[n.blockchain])).toString(),type:Hf[n.blockchain].currency.address.toLowerCase()===n.address.toLowerCase()?"NATIVE":"20"});if("0"!=o.balance){if(Ck({assets:e,asset:n}))return r();e.push(o),s(o),r(o)}else r()}catch(t){r()}}))))),Promise.all(r).then((()=>{o=Sk([i,"optionalAccess",t=>t.length])||0,a.forEach((t=>s(t,!1)))}));let u=[];for(var c in t.accounts)Hf.findByName(c).tokens.forEach((e=>{Dk({options:t,address:e.address,blockchain:c})||Sk([t,"optionalAccess",t=>t.priority,"optionalAccess",t=>t.find,"call",t=>t((t=>t.blockchain===c&&t.address.toLowerCase()===e.address.toLowerCase()))])||u.push(Object.assign({},e,{blockchain:c}))}));if(r=r.concat(u.map((n=>new Promise(((r,i)=>{new kk(n).balance(t.accounts[n.blockchain]).then((t=>{if(Ck({assets:e,asset:n}))return r();const i=jk(n,t);"0"!=i.balance?(e.push(i),s(i),r(i)):r()})).catch((()=>{r()}))}))))),null==t.only||Object.keys(t.only).every((t=>0==t.length))){let n=await Lk(t);r=r.concat(n.map((n=>new Promise(((r,i)=>{const o=new kk(n);return o.balance(t.accounts[n.blockchain]).then((async t=>{if(Ck({assets:e,asset:n}))return r();const i=jk(n,t);"0"!=i.balance?(void 0===i.name&&(i.name=await o.name()),void 0===i.symbol&&(i.symbol=await o.symbol()),void 0===i.decimals&&(i.decimals=await o.decimals()),e.push(i),s(i),r(i)):r()})).catch((()=>{r()}))})))))}return await Promise.all(r),e.sort(((t,e)=>Ok(i,t,e))),a.forEach((t=>s(t,!1))),e},Bk=9e15,Rk="0123456789abcdef",Uk="2.3025850929940456840179914546843642076011014886287729760333279009675726096773524802359972050895982983419677840422862486334095254650828067566662873690987816894829072083255546808437998948262331985283935053089653777326288461633662222876982198867465436674744042432743651550489343149393914796194044002221051017141748003688084012647080685567743216228355220114804663715659121373450747856947683463616792101806445070648000277502684916746550586856935673420670581136429224554405758925724208241314695689016758940256776311356919292033376587141660230105703089634572075440370847469940168269282808481184289314848524948644871927809676271275775397027668605952496716674183485704422507197965004714951050492214776567636938662976979522110718264549734772662425709429322582798502585509785265383207606726317164309505995087807523710333101197857547331541421808427543863591778117054309827482385045648019095610299291824318237525357709750539565187697510374970888692180205189339507238539205144634197265287286965110862571492198849978748873771345686209167058",Qk="3.1415926535897932384626433832795028841971693993751058209749445923078164062862089986280348253421170679821480865132823066470938446095505822317253594081284811174502841027019385211055596446229489549303819644288109756659334461284756482337867831652712019091456485669234603486104543266482133936072602491412737245870066063155881748815209209628292540917153643678925903600113305305488204665213841469519415116094330572703657595919530921861173819326117931051185480744623799627495673518857527248912279381830119491298336733624406566430860213949463952247371907021798609437027705392171762931767523846748184676694051320005681271452635608277857713427577896091736371787214684409012249534301465495853710507922796892589235420199561121290219608640344181598136297747713099605187072113499999983729780499510597317328160963185950244594553469083026425223082533446850352619311881710100031378387528865875332083814206171776691473035982534904287554687311595628638823537875937519577818577805321712268066130019278766111959092164201989380952572010654858632789",Yk={precision:20,rounding:4,modulo:1,toExpNeg:-7,toExpPos:21,minE:-Bk,maxE:Bk,crypto:!1},Wk=!0,Fk="[DecimalError] Invalid argument: ",Vk="[object Decimal]",Hk=Math.floor,Gk=Math.pow,qk=/^0b([01]+(\.[01]*)?|\.[01]+)(p[+-]?\d+)?$/i,Zk=/^0x([0-9a-f]+(\.[0-9a-f]*)?|\.[0-9a-f]+)(p[+-]?\d+)?$/i,Jk=/^0o([0-7]+(\.[0-7]*)?|\.[0-7]+)(p[+-]?\d+)?$/i,Xk=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Kk=1e7,$k=Uk.length-1,tT=Qk.length-1,eT={toStringTag:Vk}; /*! * decimal.js v10.4.3 * An arbitrary-precision Decimal type for JavaScript. * https://github.com/MikeMcl/decimal.js * Copyright (c) 2022 Michael Mclaughlin * MIT Licence - */function eT(t){var e,n,r,i=t.length-1,o="",a=t[0];if(i>0){for(o+=a,e=1;en)throw Error(Wk+t)}function rT(t,e,n,r){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=Hk(10,7-e),s=t[i]%o|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(t[i+1]/o/100|0)==Hk(10,e-2)-1||(s==o/2||0==s)&&0==(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==Hk(10,e-3)-1,a}function iT(t,e,n){for(var r,i,o=[0],a=0,s=t.length;an-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}tT.absoluteValue=tT.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),aT(t)},tT.ceil=function(){return aT(new this.constructor(this),this.e+1,2)},tT.clampedTo=tT.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(Wk+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},tT.comparedTo=tT.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=s.length)?r:i;es[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},tT.cosine=tT.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;(r=e.d.length)<32?i=(1/AT(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=MT(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,IT(r,n)),r.precision=t,r.rounding=e,aT(2==zk||3==zk?n.neg():n,t,e,!0)):new r(1):new r(NaN)},tT.cubeRoot=tT.cbrt=function(){var t,e,n,r,i,o,a,s,u,c,l=this,h=l.constructor;if(!l.isFinite()||l.isZero())return new h(l);for(Yk=!1,(o=l.s*Hk(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=eT(l.d),(o=((t=l.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Hk(n,1/3),t=Vk((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=l.s),a=(t=h.precision)+3;;)if(c=(u=(s=r).times(s).times(s)).plus(l),r=oT(c.plus(l).times(s),c.plus(u),a+2,1),eT(s.d).slice(0,a)===(n=eT(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(aT(r,t+1,1),e=!r.times(r).times(r).eq(l));break}if(!i&&(aT(s,t+1,0),s.times(s).times(s).eq(l))){r=s;break}a+=4,i=1}return Yk=!0,aT(r,t,h.rounding,e)},tT.decimalPlaces=tT.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-Vk(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},tT.dividedBy=tT.div=function(t){return oT(this,new this.constructor(t))},tT.dividedToIntegerBy=tT.divToInt=function(t){var e=this.constructor;return aT(oT(this,new e(t),0,1,1),e.precision,e.rounding)},tT.equals=tT.eq=function(t){return 0===this.cmp(t)},tT.floor=function(){return aT(new this.constructor(this),this.e+1,3)},tT.greaterThan=tT.gt=function(t){return this.cmp(t)>0},tT.greaterThanOrEqualTo=tT.gte=function(t){var e=this.cmp(t);return 1==e||0===e},tT.hyperbolicCosine=tT.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/AT(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=MT(a,1,o.times(e),new a(1),!0);for(var u,c=t,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return aT(o,a.precision=n,a.rounding=r,!0)},tT.hyperbolicSine=tT.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=MT(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=MT(o,2,i=i.times(1/AT(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=n,aT(i,e,n,!0)},tT.hyperbolicTangent=tT.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,oT(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},tT.inverseCosine=tT.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?lT(n,i,o):new n(0):new n(NaN):e.isZero()?lT(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=lT(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},tT.inverseHyperbolicCosine=tT.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Yk=!1,n=n.times(n).minus(1).sqrt().plus(n),Yk=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},tT.inverseHyperbolicSine=tT.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Yk=!1,n=n.times(n).plus(1).sqrt().plus(n),Yk=!0,r.precision=t,r.rounding=e,n.ln())},tT.inverseHyperbolicTangent=tT.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?aT(new o(i),t,e,!0):(o.precision=n=r-i.e,i=oT(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},tT.inverseSine=tT.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=lT(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},tT.inverseTangent=tT.atan=function(){var t,e,n,r,i,o,a,s,u,c=this,l=c.constructor,h=l.precision,d=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&h+4<=$k)return(a=lT(l,h+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(h+4<=$k)return(a=lT(l,h+4,d).times(.5)).s=c.s,a}for(l.precision=s=h+10,l.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Yk=!1,e=Math.ceil(s/7),r=1,u=c.times(c),a=new l(c),i=c;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<this.d.length-2},tT.isNaN=function(){return!this.s},tT.isNegative=tT.isNeg=function(){return this.s<0},tT.isPositive=tT.isPos=function(){return this.s>0},tT.isZero=function(){return!!this.d&&0===this.d[0]},tT.lessThan=tT.lt=function(t){return this.cmp(t)<0},tT.lessThanOrEqualTo=tT.lte=function(t){return this.cmp(t)<1},tT.logarithm=tT.log=function(t){var e,n,r,i,o,a,s,u,c=this,l=c.constructor,h=l.precision,d=l.rounding;if(null==t)t=new l(10),e=!0;else{if(n=(t=new l(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new l(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Yk=!1,a=gT(c,s=h+5),r=e?cT(l,s+10):gT(t,s),rT((u=oT(a,r,s,1)).d,i=h,d))do{if(a=gT(c,s+=10),r=e?cT(l,s+10):gT(t,s),u=oT(a,r,s,1),!o){+eT(u.d).slice(i+1,i+15)+1==1e14&&(u=aT(u,h+1,0));break}}while(rT(u.d,i+=10,d));return Yk=!0,aT(u,h,d)},tT.minus=tT.sub=function(t){var e,n,r,i,o,a,s,u,c,l,h,d,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d?t.s=-t.s:t=new p(t.d||f.s!==t.s?f:NaN):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(c=f.d,d=t.d,s=p.precision,u=p.rounding,!c[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!c[0])return new p(3===u?-0:0);t=new p(f)}return Yk?aT(t,s,u):t}if(n=Vk(t.e/7),l=Vk(f.e/7),c=c.slice(),o=l-n){for((h=o<0)?(e=c,o=-o,a=d.length):(e=d,n=l,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=c.length)<(a=d.length))&&(a=r),r=0;r0;--r)c[a++]=0;for(r=d.length;r>o;){if(c[--r](a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=l.length)<0&&(i=a,n=l,l=c,c=n),e=0;i;)e=(c[--i]=c[i]+l[i]+e)/Xk|0,c[i]%=Xk;for(e&&(c.unshift(e),++r),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=uT(c,r),Yk?aT(t,s,u):t},tT.precision=tT.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Wk+t);return n.d?(e=hT(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},tT.round=function(){var t=this,e=t.constructor;return aT(new e(t),t.e+1,e.rounding)},tT.sine=tT.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:MT(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/AT(5,n)),e=MT(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(r,IT(r,n)),r.precision=t,r.rounding=e,aT(zk>2?n.neg():n,t,e,!0)):new r(NaN)},tT.squareRoot=tT.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Yk=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=eT(s)).length+u)%2==0&&(e+="0"),c=Math.sqrt(e),u=Vk((u+1)/2)-(u<0||u%2),r=new l(e=c==1/0?"5e"+u:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new l(c.toString()),n=(u=l.precision)+3;;)if(r=(o=r).plus(oT(a,o,n+2,1)).times(.5),eT(o.d).slice(0,n)===(e=eT(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(aT(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(aT(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Yk=!0,aT(r,u,l.rounding,t)},tT.tangent=tT.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=oT(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,aT(2==zk||4==zk?n.neg():n,t,e,!0)):new r(NaN)},tT.times=tT.mul=function(t){var e,n,r,i,o,a,s,u,c,l=this,h=l.constructor,d=l.d,f=(t=new h(t)).d;if(t.s*=l.s,!(d&&d[0]&&f&&f[0]))return new h(!t.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:d&&f?0*t.s:t.s/0);for(n=Vk(l.e/7)+Vk(t.e/7),(u=d.length)<(c=f.length)&&(o=d,d=f,f=o,a=u,u=c,c=a),o=[],r=a=u+c;r--;)o.push(0);for(r=c;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+f[r]*d[i-r-1]+e,o[i--]=s%Xk|0,e=s/Xk|0;o[i]=(o[i]+e)%Xk|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=uT(o,n),Yk?aT(t,h.precision,h.rounding):t},tT.toBinary=function(t,e){return NT(this,2,t,e)},tT.toDecimalPlaces=tT.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(nT(t,0,1e9),void 0===e?e=r.rounding:nT(e,0,8),aT(n,t+n.e+1,e))},tT.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=sT(r,!0):(nT(t,0,1e9),void 0===e?e=i.rounding:nT(e,0,8),n=sT(r=aT(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},tT.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=sT(i):(nT(t,0,1e9),void 0===e?e=o.rounding:nT(e,0,8),n=sT(r=aT(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},tT.toFraction=function(t){var e,n,r,i,o,a,s,u,c,l,h,d,f=this,p=f.d,y=f.constructor;if(!p)return new y(f);if(c=n=new y(1),r=u=new y(0),a=(o=(e=new y(r)).e=hT(p)-f.e-1)%7,e.d[0]=Hk(10,a<0?7+a:a),null==t)t=o>0?e:c;else{if(!(s=new y(t)).isInt()||s.lt(c))throw Error(Wk+s);t=s.gt(e)?o>0?e:c:s}for(Yk=!1,s=new y(eT(p)),l=y.precision,y.precision=o=7*p.length*2;h=oT(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=c,c=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=oT(t.minus(n),r,0,1,1),u=u.plus(i.times(c)),n=n.plus(i.times(r)),u.s=c.s=f.s,d=oT(c,r,o,1).minus(f).abs().cmp(oT(u,n,o,1).minus(f).abs())<1?[c,r]:[u,n],y.precision=l,Yk=!0,d},tT.toHexadecimal=tT.toHex=function(t,e){return NT(this,16,t,e)},tT.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:nT(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Yk=!1,n=oT(n,t,0,e,1).times(t),Yk=!0,aT(n)):(t.s=n.s,n=t),n},tT.toNumber=function(){return+this},tT.toOctal=function(t,e){return NT(this,8,t,e)},tT.toPower=tT.pow=function(t){var e,n,r,i,o,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(Hk(+s,c));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,t.eq(1))return aT(s,r,o);if((e=Vk(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=fT(u,s,n,r),t.s<0?new u(1).div(i):aT(i,r,o);if((a=s.s)<0){if(eu.maxE+1||e0?a/0:0):(Yk=!1,u.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=mT(t.times(gT(s,r+n)),r)).d&&rT((i=aT(i,r+5,1)).d,r,o)&&(e=r+10,+eT((i=aT(mT(t.times(gT(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=aT(i,r+1,0))),i.s=a,Yk=!0,u.rounding=o,aT(i,r,o))},tT.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=sT(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(nT(t,1,1e9),void 0===e?e=i.rounding:nT(e,0,8),n=sT(r=aT(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},tT.toSignificantDigits=tT.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(nT(t,1,1e9),void 0===e?e=n.rounding:nT(e,0,8)),aT(new n(this),t,e)},tT.toString=function(){var t=this,e=t.constructor,n=sT(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},tT.truncated=tT.trunc=function(){return aT(new this.constructor(this),this.e+1,1)},tT.valueOf=tT.toJSON=function(){var t=this,e=t.constructor,n=sT(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var oT=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;)t.shift()}return function(r,i,o,a,s,u){var c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L=r.constructor,S=r.s==i.s?1:-1,j=r.d,D=i.d;if(!(j&&j[0]&&D&&D[0]))return new L(r.s&&i.s&&(j?!D||j[0]!=D[0]:D)?j&&0==j[0]||!D?0*S:S/0:NaN);for(u?(f=1,l=r.e-i.e):(u=Xk,f=7,l=Vk(r.e/f)-Vk(i.e/f)),k=D.length,E=j.length,v=(g=new L(S)).d=[],h=0;D[h]==(j[h]||0);h++);if(D[h]>(j[h]||0)&&l--,null==o?(A=o=L.precision,a=L.rounding):A=s?o+(r.e-i.e)+1:o,A<0)v.push(1),p=!0;else{if(A=A/f+2|0,h=0,1==k){for(d=0,D=D[0],A++;(h1&&(D=t(D,d,u),j=t(j,d,u),k=D.length,E=j.length),N=k,b=(w=j.slice(0,k)).length;b=u/2&&++x;do{d=0,(c=e(D,w,k,b))<0?(M=w[0],k!=b&&(M=M*u+(w[1]||0)),(d=M/x|0)>1?(d>=u&&(d=u-1),1==(c=e(y=t(D,d,u),w,m=y.length,b=w.length))&&(d--,n(y,k=10;d/=10)h++;g.e=h+l*f-1,aT(g,s?o+g.e+1:o,a,p)}return g}}();function aT(t,e,n,r){var i,o,a,s,u,c,l,h,d,f=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=7,a=e,u=(l=h[d=0])/Hk(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=h.length)){if(!r)break t;for(;s++<=d;)h.push(0);l=u=0,i=1,a=(o%=7)-7+1}else{for(l=s=h[d],i=1;s>=10;s/=10)i++;u=(a=(o%=7)-7+i)<0?0:l/Hk(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[d+1]||(a<0?l:l%Hk(10,i-a-1)),c=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?l/Hk(10,i-a):0:h[d-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,c?(e-=t.e+1,h[0]=Hk(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=d,s=1,d--):(h.length=d+1,s=Hk(10,7-o),h[d]=a>0?(l/Hk(10,i-a)%Hk(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,h[0]==Xk&&(h[0]=1));break}if(h[d]+=s,h[d]!=Xk)break;h[d--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return Yk&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e0?o=o.charAt(0)+"."+o.slice(1)+dT(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+dT(-i-1)+o,n&&(r=n-a)>0&&(o+=dT(r))):i>=a?(o+=dT(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+dT(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=dT(r))),o}function uT(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function cT(t,e,n){if(e>Kk)throw Yk=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return aT(new t(Rk),e,1,!0)}function lT(t,e,n){if(e>$k)throw Error("[DecimalError] Precision limit exceeded");return aT(new t(Uk),e,n,!0)}function hT(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function dT(t){for(var e="";t--;)e+="0";return e}function fT(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/7+4);for(Yk=!1;;){if(n%2&&ET((o=o.times(e)).d,a)&&(i=!0),0===(n=Vk(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}ET((e=e.times(e)).d,a)}return Yk=!0,o}function pT(t){return 1&t.d[t.d.length-1]}function yT(t,e,n){for(var r,i=new t(e[0]),o=0;++o17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Yk=!1,u=p):u=e,s=new d(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=r=Math.log(Hk(2,h))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=u;;){if(o=aT(o.times(t),u,1),n=n.times(++l),eT((s=a.plus(oT(o,n,u,1))).d).slice(0,u)===eT(a.d).slice(0,u)){for(i=h;i--;)a=aT(a.times(a),u,1);if(null!=e)return d.precision=p,a;if(!(c<3&&rT(a.d,u-r,f,c)))return aT(a,d.precision=p,f,Yk=!0);d.precision=u+=10,n=o=s=new d(1),l=0,c++}a=s}}function gT(t,e){var n,r,i,o,a,s,u,c,l,h,d,f=1,p=t,y=p.d,m=p.constructor,g=m.rounding,v=m.precision;if(p.s<0||!y||!y[0]||!p.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=p.s?NaN:y?0:p);if(null==e?(Yk=!1,l=v):l=e,m.precision=l+=10,r=(n=eT(y)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=cT(m,l+2,v).times(o+""),p=gT(new m(r+"."+n.slice(1)),l-10).plus(c),m.precision=v,null==e?aT(p,v,g,Yk=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=eT((p=p.times(t)).d)).charAt(0),f++;for(o=p.e,r>1?(p=new m("0."+n),o++):p=new m(r+"."+n.slice(1)),h=p,u=a=p=oT(p.minus(1),p.plus(1),l,1),d=aT(p.times(p),l,1),i=3;;){if(a=aT(a.times(d),l,1),eT((c=u.plus(oT(a,new m(i),l,1))).d).slice(0,l)===eT(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(cT(m,l+2,v).times(o+""))),u=oT(u,new m(f),l,1),null!=e)return m.precision=v,u;if(!rT(u.d,l-10,g,s))return aT(u,m.precision=v,g,Yk=!0);m.precision=l+=10,c=a=p=oT(h.minus(1),h.plus(1),l,1),d=aT(p.times(p),l,1),i=s=1}u=c,i+=2}}function vT(t){return String(t.s*t.s/0)}function wT(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),rt.constructor.maxE?(t.d=null,t.e=NaN):t.e-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Jk.test(e))return wT(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(qk.test(e))n=16,e=e.toLowerCase();else if(Gk.test(e))n=2;else{if(!Zk.test(e))throw Error(Wk+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(s=(e=e.replace(".","")).length)-o,i=fT(r,new r(n),o,2*o)),o=l=(c=iT(e,n,Xk)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*t.s):(t.e=uT(c,l),t.d=c,Yk=!1,a&&(t=oT(t,i,4*s)),u&&(t=t.times(Math.abs(u)<54?Hk(2,u):dL.pow(2,u))),Yk=!0,t)}function MT(t,e,n,r,i){var o,a,s,u,c=t.precision,l=Math.ceil(c/7);for(Yk=!1,u=n.times(n),s=new t(r);;){if(a=oT(s.times(u),new t(e++*e++),c,1),s=i?r.plus(a):r.minus(a),r=oT(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(r)).d[l]){for(o=l;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return Yk=!0,a.d.length=l+1,a}function AT(t,e){for(var n=t;--e;)n*=t;return n}function IT(t,e){var n,r=e.s<0,i=lT(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return zk=r?4:1,e;if((n=e.divToInt(i)).isZero())zk=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return zk=pT(n)?r?2:3:r?4:1,e;zk=pT(n)?r?1:4:r?3:2}return e.minus(i).abs()}function NT(t,e,n,r){var i,o,a,s,u,c,l,h,d,f=t.constructor,p=void 0!==n;if(p?(nT(n,1,1e9),void 0===r?r=f.rounding:nT(r,0,8)):(n=f.precision,r=f.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(l=sT(t)).indexOf("."))>=0&&(l=l.replace(".",""),(d=new f(1)).e=l.length-a,d.d=iT(sT(d),10,i),d.e=d.d.length),o=u=(h=iT(l,10,i)).length;0==h[--u];)h.pop();if(h[0]){if(a<0?o--:((t=new f(t)).d=h,t.e=o,h=(t=oT(t,d,n,r,0,i)).d,o=t.e,c=Ok),a=h[n],s=i/2,c=c||void 0!==h[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(t.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,c)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(u=h.length;!h[u-1];--u);for(a=0,l="";a1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)l+="0";for(u=(h=iT(l,i,e)).length;!h[u-1];--u);for(a=1,l="1.";au)for(o-=u;o--;)l+="0";else oe)return t.length=e,!0}function xT(t){return new this(t).abs()}function kT(t){return new this(t).acos()}function TT(t){return new this(t).acosh()}function LT(t,e){return new this(t).plus(e)}function ST(t){return new this(t).asin()}function jT(t){return new this(t).asinh()}function DT(t){return new this(t).atan()}function CT(t){return new this(t).atanh()}function OT(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?lT(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=lT(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(oT(t,e,o,1)),e=lT(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(oT(t,e,o,1)):(n=lT(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function zT(t){return new this(t).cbrt()}function PT(t){return aT(t=new this(t),t.e+1,2)}function _T(t,e,n){return new this(t).clamp(e,n)}function BT(t){if(!t||"object"!=typeof t)throw Error("[DecimalError] Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-_k,0,"toExpPos",0,_k,"maxE",0,_k,"minE",-_k,0,"modulo",0,9];for(e=0;e=o[e+1]&&r<=o[e+2]))throw Error(Wk+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Qk[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Wk+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function RT(t){return new this(t).cos()}function UT(t){return new this(t).cosh()}function QT(t,e){return new this(t).div(e)}function YT(t){return new this(t).exp()}function WT(t){return aT(t=new this(t),t.e+1,3)}function FT(){var t,e,n=new this(0);for(Yk=!1,t=0;t=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(e=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function nL(t){return aT(t=new this(t),t.e+1,this.rounding)}function rL(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function iL(t){return new this(t).sin()}function oL(t){return new this(t).sinh()}function aL(t){return new this(t).sqrt()}function sL(t,e){return new this(t).sub(e)}function uL(){var t=0,e=arguments,n=new this(e[t]);for(Yk=!1;n.s&&++to.maxE?(i.e=NaN,i.d=null):t.e=10;n/=10)e++;return void(Yk?e>o.maxE?(i.e=NaN,i.d=null):en.call(e,...t))),e=void 0)}return n}Rk=new dL(Rk),Uk=new dL(Uk);class pL{constructor({blockchain:t,tokenIn:e,decimalsIn:n,tokenOut:r,decimalsOut:i,path:o,pools:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,exchange:h,approvalRequired:d,getApproval:f,getPrep:p,getTransaction:y}){this.blockchain=t,this.tokenIn=e,this.decimalsIn=n,this.tokenOut=r,this.decimalsOut=i,this.path=o,this.pools=a,this.amountIn=fL([s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountOutMin=fL([l,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountOut=fL([c,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountInMax=fL([u,"optionalAccess",t=>t.toString,"call",t=>t()]),this.exchange=h,this.getPrep=p,this.getTransaction=y}}let yL=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];yL.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],yL.solana=["solana"];const mL=async({exchange:t,blockchain:e,pools:n,exchangePath:r,amountIn:i,amountOut:o})=>{let a=i.add(i.mul(100*parseFloat("0.5")).div(1e4));if(!yL.evm.includes(t.blockchain||e))return a;const s=await PI({blockchain:t.blockchain||e,method:"latestBlockNumber"});let u=[];for(var c=0;c<=2;c++)u.push(s-c);const l=await Promise.all(u.map((async i=>{let{amountIn:a}=await t.getAmounts({exchange:t,blockchain:e,path:r,pools:n,amountOut:o,block:i});return a})));if(!l[0]||!l[1]||!l[2])return a;let h;if(l[0].gt(l[1])&&l[1].gt(l[2])){const t=l[0].sub(l[1]),e=l[1].sub(l[2]),n=t.add(e).div(2);if(h=l[0].add(n),h.gt(a))return h}else if(!l[0].eq(l[1])&&!l[1].eq(l[2])){const t=l[0].sub(l[1]).abs(),e=l[1].sub(l[2]).abs();let n,r;if(n=t.lt(e)?t:e,r=l[0].gt(l[1])&&l[0].gt(l[2])?l[0]:l[1].gt(l[2])&&l[1].gt(l[0])?l[1]:l[2],h=r.add(n),h.gt(a))return h}return a},gL=async({exchange:t,blockchain:e,pools:n,exchangePath:r,amounts:i,tokenIn:o,tokenOut:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amountInInput:h,amountOutInput:d,amountInMaxInput:f,amountOutMinInput:p})=>{if(p||d){if(yL.evm.includes(t.blockchain||e))s=u=await mL({exchange:t,blockchain:e,pools:n,exchangePath:r,amountIn:s,amountOut:p||c});else if(yL.solana.includes(t.blockchain||e)){let e=[];await Promise.all(r.map(((o,a)=>{if(0!=a){let o=mL({exchange:t,pools:n,exchangePath:[r[a-1],r[a]],amountIn:i[a-1],amountOut:i[a]});return o.then((t=>e.push(t))),o}}))),e.push(i[i.length-1]),s=u=(i=e)[0]}}else if((f||h)&&yL.solana.includes(t.blockchain||e)){let e=[];await Promise.all(r.map(((n,o)=>{if(0!==o&&on.sub(n.mul(100*parseFloat("0.5")).div(1e4)))({exchange:t,exchangePath:[r[o-1],r[o]],amountIn:i[o-1],amountOut:i[o]});return n.then((t=>(e.unshift(t),t))),n}}))),e.push(i[0]),c=l=(i=e.slice().reverse())[i.length-1]}return{amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amounts:i}},vL=t=>t.match("0x")?am(t):t;let wL=async({amount:t,blockchain:e,address:n})=>await xk.BigNumber({amount:t,blockchain:e,address:n}),bL=async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{let u={exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s};return o&&"number"==typeof o&&(u.amountOut=await wL({amount:o,blockchain:t,address:r})),s&&"number"==typeof s&&(u.amountOutMin=await wL({amount:s,blockchain:t,address:r})),i&&"number"==typeof i&&(u.amountIn=await wL({amount:i,blockchain:t,address:n})),a&&"number"==typeof a&&(u.amountInMax=await wL({amount:a,blockchain:t,address:n})),u};class ML{constructor(...t){Object.assign(this,...t)}async route({blockchain:t,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}){return e===n?Promise.resolve():(void 0===t&&(this.scope?t=this.scope:1===this.blockchains.length&&(t=this.blockchains[0])),(({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if(void 0===t&&null!=e.blockchains&&e.blockchains.length>1)throw"You need to provide a blockchain when calling route on an exchange that supports multiple blockchains!";if(void 0!==o&&void 0!==i)throw"You cannot set amountIn and amountOut at the same time, use amountInMax or amountOutMin to describe the non exact part of the swap!";if(void 0!==a&&void 0!==s)throw"You cannot set amountInMax and amountOutMin at the same time, use amountIn or amountOut to describe the part of the swap that needs to be exact!";if(void 0!==i&&void 0!==a)throw"Setting amountIn and amountInMax at the same time makes no sense. Decide if amountIn needs to be exact or not!";if(void 0!==o&&void 0!==s)throw"Setting amountOut and amountOutMin at the same time makes no sense. Decide if amountOut needs to be exact or not!"})({blockchain:t,exchange:this,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),await(({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s,findPath:u,getAmounts:c,getPrep:l,getTransaction:h,slippage:d})=>{if(n=vL(n),r=vL(r),[i,o,a,s].filter(Boolean).length>1)throw"You can only pass one: amountIn, amountOut, amountInMax or amountOutMin";if([i,o,a,s].filter(Boolean).length<1)throw"You need to pass exactly one: amountIn, amountOut, amountInMax or amountOutMin";return new Promise((async f=>{let{path:p,exchangePath:y,pools:m}=await u({blockchain:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s});if(void 0===p||0==p.length)return f();let g,[v,w,b,M]=[i,o,a,s];try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await c({exchange:e,blockchain:t,path:p,pools:m,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s}))}catch(t){return f()}if([i,a,o,s].every((t=>null==t)))return f();if(d||e.slippage)try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await gL({exchange:e,blockchain:t,pools:m,exchangePath:y,amounts:g,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amountInInput:v,amountOutInput:w,amountInMaxInput:b,amountOutMinInput:M}))}catch(t){return f()}const A=await new xk({blockchain:t,address:n}).decimals(),I=await new xk({blockchain:t,address:r}).decimals();f(new pL({blockchain:t,tokenIn:n,decimalsIn:A,tokenOut:r,decimalsOut:I,path:p,pools:m,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,exchange:e,getPrep:async({account:o})=>await l({exchange:e,blockchain:t,tokenIn:n,tokenOut:r,amountIn:i||a,account:o}),getTransaction:async({account:n,permit2:r,inputTokenPushed:u})=>await h({exchange:e,blockchain:t,pools:m,path:p,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g,amountInInput:v,amountOutInput:w,amountInMaxInput:b,amountOutMinInput:M,account:n,permit2:r,inputTokenPushed:u})}))}))})({...await bL({blockchain:t,exchange:this,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),blockchain:t,findPath:this.findPath,getAmounts:this.getAmounts,getPrep:this.getPrep,getTransaction:this.getTransaction,slippage:this.slippage}))}}function AL(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const IL=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},NL=({reserves:t,min:e,token:n,token0:r,token1:i,decimals:o})=>r.toLowerCase()==n.toLowerCase()?t[0].gte(cI(e.toString(),o)):i.toLowerCase()==n.toLowerCase()&&t[1].gte(cI(e.toString(),o)),EL=async({blockchain:t,exchange:e,path:n})=>{const r=IL({blockchain:t,exchange:e,path:n});if(!r||1===r.length)return!1;try{let i=await PI({blockchain:t,address:e[t].factory.address,method:"getPair",api:e[t].factory.api,cache:36e5,params:IL({blockchain:t,exchange:e,path:n})});if(!i||i==Hf[t].zero)return!1;let[o,a,s]=await Promise.all([PI({blockchain:t,address:i,method:"getReserves",api:e[t].pair.api,cache:36e5}),PI({blockchain:t,address:i,method:"token0",api:e[t].pair.api,cache:36e5}),PI({blockchain:t,address:i,method:"token1",api:e[t].pair.api,cache:36e5})]);if(r.includes(Hf[t].wrapped.address))return NL({min:1,token:Hf[t].wrapped.address,decimals:Hf[t].currency.decimals,reserves:o,token0:a,token1:s});if(n.find((e=>Hf[t].stables.usd.includes(e)))){let e=n.find((e=>Hf[t].stables.usd.includes(e))),r=new xk({blockchain:t,address:e}),i=await r.decimals();return NL({min:1e3,token:e,decimals:i,reserves:o,token0:a,token1:s})}return!0}catch(t){return console.log("e",t),!1}};let xL=({blockchain:t,exchange:e,path:n,amountIn:r,tokenIn:i,tokenOut:o})=>new Promise((i=>{PI({blockchain:t,address:e[t].router.address,method:"getAmountsOut",api:e[t].router.api,params:{amountIn:r,path:IL({blockchain:t,exchange:e,path:n})}}).then((t=>{i(t[t.length-1])})).catch((()=>i()))})),kL=({blockchain:t,exchange:e,path:n,amountOut:r,block:i})=>new Promise((o=>{PI({blockchain:t,address:e[t].router.address,method:"getAmountsIn",api:e[t].router.api,params:{amountOut:r,path:IL({blockchain:t,exchange:e,path:n})},block:i}).then((t=>o(t[0]))).catch((()=>o()))}));var TL={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let i;if(await EL({blockchain:t,exchange:e,path:[n,r]}))i=[n,r];else if(n!=Hf[t].wrapped.address&&await EL({blockchain:t,exchange:e,path:[n,Hf[t].wrapped.address]})&&r!=Hf[t].wrapped.address&&await EL({blockchain:t,exchange:e,path:[r,Hf[t].wrapped.address]}))i=[n,Hf[t].wrapped.address,r];else if(!Hf[t].stables.usd.includes(n)&&(await Promise.all(Hf[t].stables.usd.map((r=>EL({blockchain:t,exchange:e,path:[n,r]}))))).filter(Boolean).length&&r!=Hf[t].wrapped.address&&await EL({blockchain:t,exchange:e,path:[Hf[t].wrapped.address,r]})){let o=(await Promise.all(Hf[t].stables.usd.map((async r=>await EL({blockchain:t,exchange:e,path:[n,r]})?r:void 0)))).find(Boolean);i=[n,o,Hf[t].wrapped.address,r]}else if(n!=Hf[t].wrapped.address&&await EL({blockchain:t,exchange:e,path:[n,Hf[t].wrapped.address]})&&!Hf[t].stables.usd.includes(r)&&(await Promise.all(Hf[t].stables.usd.map((n=>EL({blockchain:t,exchange:e,path:[n,r]}))))).filter(Boolean).length){let o=(await Promise.all(Hf[t].stables.usd.map((async n=>await EL({blockchain:t,exchange:e,path:[n,r]})?n:void 0)))).find(Boolean);i=[n,Hf[t].wrapped.address,o,r]}return AL([i,"optionalAccess",t=>t.length])&&i[0]==Hf[t].currency.address?i.splice(1,0,Hf[t].wrapped.address):AL([i,"optionalAccess",t=>t.length])&&i[i.length-1]==Hf[t].currency.address&&i.splice(i.length-1,0,Hf[t].wrapped.address),{path:i,exchangePath:IL({blockchain:t,exchange:e,path:i})}},pathExists:EL,getAmounts:async({blockchain:t,exchange:e,path:n,block:r,tokenIn:i,tokenOut:o,amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c})=>{if(a){if(null==(s=await kL({blockchain:t,exchange:e,block:r,path:n,amountOut:a,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(s){if(null==(a=await xL({blockchain:t,exchange:e,path:n,amountIn:s,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}else if(c){if(null==(s=await kL({blockchain:t,exchange:e,block:r,path:n,amountOut:c,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(u){if(null==(a=await xL({blockchain:t,exchange:e,path:n,amountIn:u,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}return{amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;const o=await PI({blockchain:e,address:n,method:"allowance",api:xk[e][20],params:[i,t[e].router.address]});if(o.gte(r))return;return{transaction:{blockchain:e,from:i,to:n,api:xk[e][20],method:"approve",params:[t[e].router.address,r.sub(o)]}}},getTransaction:({exchange:t,blockchain:e,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:h})=>{let d={blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api};return n[0]===Hf[e].currency.address?s||l?(d.method="swapExactETHForTokens",d.value=r.toString(),d.params={amountOutMin:a.toString()}):(u||c)&&(d.method="swapETHForExactTokens",d.value=i.toString(),d.params={amountOut:o.toString()}):n[n.length-1]===Hf[e].currency.address?s||l?(d.method="swapExactTokensForETH",d.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(d.method="swapTokensForExactETH",d.params={amountInMax:i.toString(),amountOut:o.toString()}):s||l?(d.method="swapExactTokensForTokens",d.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(d.method="swapTokensForExactTokens",d.params={amountInMax:i.toString(),amountOut:o.toString()}),d.params=Object.assign({},d.params,{path:IL({blockchain:e,exchange:t,path:n}),to:h,deadline:Math.round(Date.now()/1e3)+86400}),d},ROUTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"amountADesired",type:"uint256"},{internalType:"uint256",name:"amountBDesired",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountTokenDesired",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountIn",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountOut",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsIn",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsOut",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"reserveA",type:"uint256"},{internalType:"uint256",name:"reserveB",type:"uint256"}],name:"quote",outputs:[{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETHSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermit",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityWithPermit",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapETHForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETHSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!1,internalType:"address",name:"pair",type:"address"},{indexed:!1,internalType:"uint256",name:"",type:"uint256"}],name:"PairCreated",type:"event"},{constant:!0,inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"allPairs",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"allPairsLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"}],name:"createPair",outputs:[{internalType:"address",name:"pair",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"feeTo",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"feeToSetter",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"getPair",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeTo",type:"address"}],name:"setFeeTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],name:"setFeeToSetter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount0Out",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1Out",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint112",name:"reserve0",type:"uint112"},{indexed:!1,internalType:"uint112",name:"reserve1",type:"uint112"}],name:"Sync",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINIMUM_LIQUIDITY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getReserves",outputs:[{internalType:"uint112",name:"_reserve0",type:"uint112"},{internalType:"uint112",name:"_reserve1",type:"uint112"},{internalType:"uint32",name:"_blockTimestampLast",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_token0",type:"address"},{internalType:"address",name:"_token1",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"mint",outputs:[{internalType:"uint256",name:"liquidity",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"price0CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"price1CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"skim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"amount0Out",type:"uint256"},{internalType:"uint256",name:"amount1Out",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"sync",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}]};const LL={name:"honeyswap",label:"Honeyswap",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABQCAYAAADBTPF9AAAACXBIWXMAAAsTAAALEwEAmpwYAAALmklEQVR4nO2de3BU1R3HP7+7eQALAcSNyq4ELDpUS0HJdrRm0aE6oPWJWqtQxUdn1KpcdQy04nssslQbdKxa7cC0iq22+BhsUQcfbBzQAL4V7VQM7OK4i4oJBJLs3l//uEHDkvfevbsb85nJHzn33PP73fu99+x5/M65Mt08jXwlVpuYCTwCjAS+BD5FeRXhaX+Vb51Tdja/khhZUsQpCGcBE4HRQCmwoqWFS8ZN8zU7ZctpJF8FjEbixSLyBnB0B4ebgZeAuzIRMhqJe0XkKuBKYFwn2c7xV/lW9NVGtjFy7UBniKKA1cnhUuA0oDYaSdyxLbLd09vyo5HEFBGJAGE6Fw+0Ux/ygrwV0D+1PKmqc4F1wGZgRwfZPCLcrKJ/i0bixT0tOxqJnyLCy3T8dqeAL9psLlH0+d577x5FuXagKwKh8teja+I/RRimKsMMQyeB/BL4BfZbuJcLRGQPcGl3ZUYj8eNBngK8aYc2AUtVeQk0CjQFQuW7nLqWbJG3v4FdYVd/PAxMSTv0G3+V70+dnxcfJSJrgcPbJStwm6reUwiCpZO3VWhXBEK+Dao6DViddui2aCQ+prPzROR37CteK8psf5XvjkIUDwpUQIBAqLxBVS8A/tsu2SciV3a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Tyiy1dFogVN6nUPZ8Iy/2C3UCf5VvHTA9VpuYCVyEPdCQwn4rU8ALqvpIIFS+I3deOs//AZb84smmUsyHAAAAAElFTkSuQmCC",protocol:"uniswap_v2",slippage:!0,blockchains:["gnosis"],gnosis:{router:{address:"0x1C232F01118CB8B424793ae03F870aa7D0ac7f77",api:TL.ROUTER},factory:{address:"0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7",api:TL.FACTORY},pair:{api:TL.PAIR}}};var SL=t=>new ML(Object.assign(LL,{scope:t,findPath:t=>TL.findPath({...t,exchange:LL}),pathExists:t=>TL.pathExists({...t,exchange:LL}),getAmounts:t=>TL.getAmounts({...t,exchange:LL}),getPrep:t=>TL.getPrep({...t,exchange:LL}),getTransaction:t=>TL.getTransaction({...t,exchange:LL})}));const jL="79226673515401279992447579055",DL=t=>-t;class CL{static priceToSqrtPriceX64(t,e,n){return r=t.mul(dL.pow(10,n-e)).sqrt(),new rf(r.mul(dL.pow(2,64)).floor().toFixed());var r}static sqrtPriceX64ToPrice(t,e,n){return(r=t,new dL(r.toString()).mul(dL.pow(2,-64))).pow(2).mul(dL.pow(10,e-n));var r}static tickIndexToSqrtPriceX64(t){return new rf(t>0?function(t){let e;e=new rf(0!=(1&t)?"79232123823359799118286999567":"79228162514264337593543950336");0!=(2&t)&&(e=OL(e.mul(new rf("79236085330515764027303304731")),96,256));0!=(4&t)&&(e=OL(e.mul(new rf("79244008939048815603706035061")),96,256));0!=(8&t)&&(e=OL(e.mul(new rf("79259858533276714757314932305")),96,256));0!=(16&t)&&(e=OL(e.mul(new rf("79291567232598584799939703904")),96,256));0!=(32&t)&&(e=OL(e.mul(new rf("79355022692464371645785046466")),96,256));0!=(64&t)&&(e=OL(e.mul(new rf("79482085999252804386437311141")),96,256));0!=(128&t)&&(e=OL(e.mul(new rf("79736823300114093921829183326")),96,256));0!=(256&t)&&(e=OL(e.mul(new rf("80248749790819932309965073892")),96,256));0!=(512&t)&&(e=OL(e.mul(new rf("81282483887344747381513967011")),96,256));0!=(1024&t)&&(e=OL(e.mul(new rf("83390072131320151908154831281")),96,256));0!=(2048&t)&&(e=OL(e.mul(new rf("87770609709833776024991924138")),96,256));0!=(4096&t)&&(e=OL(e.mul(new rf("97234110755111693312479820773")),96,256));0!=(8192&t)&&(e=OL(e.mul(new rf("119332217159966728226237229890")),96,256));0!=(16384&t)&&(e=OL(e.mul(new rf("179736315981702064433883588727")),96,256));0!=(32768&t)&&(e=OL(e.mul(new rf("407748233172238350107850275304")),96,256));0!=(65536&t)&&(e=OL(e.mul(new rf("2098478828474011932436660412517")),96,256));0!=(131072&t)&&(e=OL(e.mul(new rf("55581415166113811149459800483533")),96,256));0!=(262144&t)&&(e=OL(e.mul(new rf("38992368544603139932233054999993551")),96,256));return OL(e,32,256)}(t):function(t){let e,n=Math.abs(t);e=new rf(0!=(1&n)?"18445821805675392311":"18446744073709551616");0!=(2&n)&&(e=OL(e.mul(new rf("18444899583751176498")),64,256));0!=(4&n)&&(e=OL(e.mul(new rf("18443055278223354162")),64,256));0!=(8&n)&&(e=OL(e.mul(new rf("18439367220385604838")),64,256));0!=(16&n)&&(e=OL(e.mul(new rf("18431993317065449817")),64,256));0!=(32&n)&&(e=OL(e.mul(new rf("18417254355718160513")),64,256));0!=(64&n)&&(e=OL(e.mul(new rf("18387811781193591352")),64,256));0!=(128&n)&&(e=OL(e.mul(new rf("18329067761203520168")),64,256));0!=(256&n)&&(e=OL(e.mul(new rf("18212142134806087854")),64,256));0!=(512&n)&&(e=OL(e.mul(new rf("17980523815641551639")),64,256));0!=(1024&n)&&(e=OL(e.mul(new rf("17526086738831147013")),64,256));0!=(2048&n)&&(e=OL(e.mul(new rf("16651378430235024244")),64,256));0!=(4096&n)&&(e=OL(e.mul(new rf("15030750278693429944")),64,256));0!=(8192&n)&&(e=OL(e.mul(new rf("12247334978882834399")),64,256));0!=(16384&n)&&(e=OL(e.mul(new rf("8131365268884726200")),64,256));0!=(32768&n)&&(e=OL(e.mul(new rf("3584323654723342297")),64,256));0!=(65536&n)&&(e=OL(e.mul(new rf("696457651847595233")),64,256));0!=(131072&n)&&(e=OL(e.mul(new rf("26294789957452057")),64,256));0!=(262144&n)&&(e=OL(e.mul(new rf("37481735321082")),64,256));return e}(t))}static sqrtPriceX64ToTickIndex(t){if(t.gt(new rf(jL))||t.lt(new rf("4295048016")))throw new Error("Provided sqrtPrice is not within the supported sqrtPrice range.");const e=t.bitLength()-1,n=function(t,e,n){let r=t.toTwos(n).shln(e);return r.imaskn(n+1),r.fromTwos(n)}(new rf(e-64),32,128);let r=new rf("8000000000000000","hex"),i=0,o=new rf(0),a=e>=64?t.shrn(e-63):t.shln(63-e);for(;r.gt(new rf(0))&&i<14;){a=a.mul(a);let t=a.shrn(127);a=a.shrn(63+t.toNumber()),o=o.add(r.mul(t)),r=r.shrn(1),i+=1}const s=o.shrn(32),u=n.add(s).mul(new rf("59543866431248")),c=OL(u.sub(new rf("184467440737095516")),64,128).toNumber(),l=OL(u.add(new rf("15793534762490258745")),64,128).toNumber();if(c==l)return c;return CL.tickIndexToSqrtPriceX64(l).lte(t)?l:c}static tickIndexToPrice(t,e,n){return CL.sqrtPriceX64ToPrice(CL.tickIndexToSqrtPriceX64(t),e,n)}static priceToTickIndex(t,e,n){return CL.sqrtPriceX64ToTickIndex(CL.priceToSqrtPriceX64(t,e,n))}static priceToInitializableTickIndex(t,e,n,r){return((t,e)=>t-t%e)(CL.priceToTickIndex(t,e,n),r)}static invertPrice(t,e,n){const r=CL.priceToTickIndex(t,e,n),i=DL(r);return CL.tickIndexToPrice(i,n,e)}static invertSqrtPriceX64(t){const e=CL.sqrtPriceX64ToTickIndex(t),n=DL(e);return CL.tickIndexToSqrtPriceX64(n)}}function OL(t,e,n){let r=t.toTwos(n).shrn(e);return r.imaskn(n-e+1),r.fromTwos(n-e)}const zL=new rf(1e4),PL=new rf(1e6),_L=new rf(0),BL=new rf(1),RL=new rf(2),UL=RL.pow(new rf(64)).sub(BL);class QL extends rf{toBuffer(){const t=super.toArray().reverse(),e=buffer.Buffer.from(t);if(8===e.length)return e;assert__default.default(e.length<8,"u64 too large");const n=buffer.Buffer.alloc(8);return e.copy(n),n}static fromBuffer(t){return assert__default.default(8===t.length,`Invalid buffer length: ${t.length}`),new QL([...t].reverse().map((t=>`00${t.toString(16)}`.slice(-2))).join(""),16)}}class YL{static mul(t,e,n){const r=t.mul(e);if(this.isOverLimit(r,n))throw new Error(`Mul result higher than u${n}`);return r}static mulDiv(t,e,n,r){return this.mulDivRoundUpIf(t,e,n,!1,r)}static mulDivRoundUp(t,e,n,r){return this.mulDivRoundUpIf(t,e,n,!0,r)}static mulDivRoundUpIf(t,e,n,r,i){if(n.eq(_L))throw new Error("mulDiv denominator is zero");const o=this.mul(t,e,i),a=o.div(n);return r&&o.mod(n).gt(_L)?a.add(BL):a}static checked_mul_shift_right(t,e,n){return this.checked_mul_shift_right_round_up_if(t,e,!1,n)}static checked_mul_shift_right_round_up_if(t,e,n,r){if(t.eq(_L)||e.eq(_L))return _L;const i=this.mul(t,e,r);if(this.isOverLimit(i,r))throw new Error(`MulShiftRight overflowed u${r}.`);const o=i.div(new rf(2).pow(new rf(64)));const a=n&&o.and(UL).gt(_L);if(a&&o.eq(UL))throw new Error(`MulShiftRight overflowed u${r}.`);return a?o.add(BL):o}static isOverLimit(t,e){const n=RL.pow(new rf(e)).sub(BL);return t.gt(n)}static divRoundUp(t,e){return this.divRoundUpIf(t,e,!0)}static divRoundUpIf(t,e,n){if(e.eq(_L))throw new Error("divRoundUpIf - divide by zero");let r=t.div(e);return n&&t.mod(e).gt(_L)?r.add(BL):r}}const WL=(t,e,n)=>{const r=CL.tickIndexToSqrtPriceX64(t);return{nextTickPrice:r,nextSqrtPriceLimit:n?rf.max(e,r):rf.min(e,r)}},FL=(t,e)=>t.gt(e)?[e,t]:[t,e],VL=(t,e,n,r)=>{let[i,o]=FL(t,e),a=o.sub(i),s=n.mul(a).shln(64),u=i.mul(o),c=s.div(u),l=s.mod(u),h=r&&!l.eq(_L)?c.add(BL):c;if(h.gt(UL))throw new Error("Results larger than U64");return h},HL=(t,e,n,r)=>{let[i,o]=FL(t,e),a=o.sub(i);return YL.checked_mul_shift_right_round_up_if(n,a,r,128)},GL=(t,e,n,r,i)=>r===i?((t,e,n,r)=>{if(n.eq(_L))return t;let i=YL.mul(t,n,256),o=YL.mul(e,t,256).shln(64);if(YL.isOverLimit(o,256))throw new Error("getNextSqrtPriceFromARoundUp - numerator overflow u256");let a=e.shln(64);if(!r&&a.lte(i))throw new Error("getNextSqrtPriceFromARoundUp - Unable to divide currLiquidityX64 by product");let s=r?a.add(i):a.sub(i),u=YL.divRoundUp(o,s);if(u.lt(new rf("4295048016")))throw new Error("getNextSqrtPriceFromARoundUp - price less than min sqrt price");if(u.gt(new rf(jL)))throw new Error("getNextSqrtPriceFromARoundUp - price less than max sqrt price");return u})(t,e,n,r):((t,e,n,r)=>{let i=n.shln(64),o=YL.divRoundUpIf(i,e,!r);return r?t.add(o):t.sub(o)})(t,e,n,r),qL=(t,e,n,r,i)=>i===r?VL(t,e,n,r):HL(t,e,n,r),ZL=(t,e,n,r,i,o,a)=>{let s=qL(r,i,n,o,a),u=t;if(o){u=YL.mulDiv(t,PL.sub(new rf(e)),PL,128)}let c=u.gte(s)?i:GL(r,n,u,o,a),l=c.eq(i),h=((t,e,n,r,i)=>i===r?HL(t,e,n,!r):VL(t,e,n,!r))(r,c,n,o,a);l||(s=qL(r,c,n,o,a));let d,f=o?s:h,p=o?h:s;if(!o&&p.gt(t)&&(p=t),o&&!l)d=t.sub(f);else{const t=new rf(e);d=YL.mulDivRoundUp(f,t,PL.sub(t),128)}return{amountIn:f,amountOut:p,nextPrice:c,feeAmount:d}},JL=(t,e,n)=>n?e.sub(t):e.add(t),XL=(t,e,n,r,i)=>{let o=r,a=i,s=t;if(e>0){let t=((t,e)=>t.mul(new QL(e).div(zL)))(s,e);s=s.sub(t),o=o.add(r)}if(n.gt(_L)){const t=s.shln(64).div(n);a=a.add(t)}return{nextProtocolFee:o,nextFeeGrowthGlobalInput:a}},KL=pf([hf("mint"),hf("vault"),hf("authority"),yf("emissionsPerSecondX64"),yf("growthGlobalX64")]),$L=pf([vf("anchorDiscriminator"),hf("whirlpoolsConfig"),Kd(wf(),1,"whirlpoolBump"),mf("tickSpacing"),Kd(wf(),2,"tickSpacingSeed"),mf("feeRate"),mf("protocolFeeRate"),yf("liquidity"),yf("sqrtPrice"),uf("tickCurrentIndex"),vf("protocolFeeOwedA"),vf("protocolFeeOwedB"),hf("tokenMintA"),hf("tokenVaultA"),yf("feeGrowthGlobalA"),hf("tokenMintB"),hf("tokenVaultB"),yf("feeGrowthGlobalB"),vf("rewardLastUpdatedTimestamp"),Kd(KL,3,"rewardInfos")]),tS=pf([af("initialized"),sf("liquidityNet"),yf("liquidityGross"),yf("feeGrowthOutsideA"),yf("feeGrowthOutsideB"),Kd(yf(),3,"reward_growths_outside")]),eS=pf([vf("anchorDiscriminator"),uf("startTickIndex"),Kd(tS,88,"ticks"),hf("whirlpool")]),nS=(t,e,n)=>{const r=(Math.floor(t/e/88)+n)*e*88,i=88*e;if(r<-443636-(-443636%i+i))throw`startTickIndex is too small - - ${r}`;if(r>443636)throw`startTickIndex is too large - ${r}`;return r},rS=async({pool:t,freshWhirlpoolData:e,aToB:n})=>{const r=await(async({aToB:t,pool:e,tickSpacing:n,tickCurrentIndex:r})=>{const i=t?0:n;let o=0,a=[];for(let s=0;s<3;s++){let s;try{s=nS(r+i,n,o)}catch(t){return a}const u=(await Xs.findProgramAddress([nf.from("tick_array"),new Xs(e.toString()).toBuffer(),nf.from(s.toString())],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0];a.push(u),o=t?o-1:o+1}return a})({aToB:n,pool:t,tickSpacing:e.tickSpacing,tickCurrentIndex:e.tickCurrentIndex});return await Promise.all(r.map((async(t,e)=>{let n;try{n=await PI({blockchain:"solana",address:t.toString(),api:eS,cache:10})}catch(t){}return{address:t,data:n}})))};class iS{static fromTickIndex(t,e){const n=Math.floor(Math.floor(t/e)/88);let r=Math.floor(t%(88*e)/e);return r<0&&(r=88+r),new iS(n,r,e)}constructor(t,e,n){if(e>=88)throw new Error("Invalid offsetIndex - value has to be smaller than TICK_ARRAY_SIZE");if(e<0)throw new Error("Invalid offsetIndex - value is smaller than 0");if(n<0)throw new Error("Invalid tickSpacing - value is less than 0");this.arrayIndex=t,this.offsetIndex=e,this.tickSpacing=n}toTickIndex(){return 88*this.arrayIndex*this.tickSpacing+this.offsetIndex*this.tickSpacing}toNextInitializableTickIndex(){return iS.fromTickIndex(this.toTickIndex()+this.tickSpacing,this.tickSpacing)}toPrevInitializableTickIndex(){return iS.fromTickIndex(this.toTickIndex()-this.tickSpacing,this.tickSpacing)}}class oS{constructor(t,e,n){if(!t[0]||!t[0].data)throw new Error("TickArray index 0 must be initialized");this.sequence=[];for(const e of t){if(!e||!e.data)break;this.sequence.push({address:e.address,data:e.data})}this.tickArrays=t,this.tickSpacing=e,this.aToB=n,this.touchedArrays=[...Array(this.sequence.length).fill(!1)],this.startArrayIndex=iS.fromTickIndex(this.sequence[0].data.startTickIndex,this.tickSpacing).arrayIndex}isValidTickArray0(t){const e=this.aToB?0:this.tickSpacing,n=this.sequence[0].data;return this.checkIfIndexIsInTickArrayRange(n.startTickIndex,t+e)}getNumOfTouchedArrays(){return this.touchedArrays.filter((t=>!!t)).length}getTouchedArrays(t){let e=this.touchedArrays.reduce(((t,e,n)=>(e&&t.push(this.sequence[n].address),t)),[]);if(0===e.length)return[];const n=t-e.length;return n>0&&(e=e.concat(Array(n).fill(e[e.length-1]))),e}getTick(t){const e=iS.fromTickIndex(t,this.tickSpacing);if(!this.isArrayIndexInBounds(e,this.aToB))throw new Error("Provided tick index is out of bounds for this sequence.");const n=this.getLocalArrayIndex(e.arrayIndex,this.aToB),r=this.sequence[n].data;if(this.touchedArrays[n]=!0,!r)throw new Error(`TickArray at index ${n} is not initialized.`);if(!this.checkIfIndexIsInTickArrayRange(r.startTickIndex,t))throw new Error(`TickArray at index ${n} is unexpected for this sequence.`);return r.ticks[e.offsetIndex]}findNextInitializedTickIndex(t){const e=this.aToB?t:t+this.tickSpacing;let n=iS.fromTickIndex(e,this.tickSpacing);if(!this.isArrayIndexInBounds(n,this.aToB))throw new Error(`Swap input value traversed too many arrays. Out of bounds at attempt to traverse tick index - ${n.toTickIndex()}.`);for(;this.isArrayIndexInBounds(n,this.aToB);){const t=this.getTick(n.toTickIndex());if(t.initialized)return{nextIndex:n.toTickIndex(),nextTickData:t};n=this.aToB?n.toPrevInitializableTickIndex():n.toNextInitializableTickIndex()}return{nextIndex:Math.max(Math.min(this.aToB?n.toTickIndex()+this.tickSpacing:n.toTickIndex()-1,443636),-443636),nextTickData:null}}getLocalArrayIndex(t,e){return e?this.startArrayIndex-t:t-this.startArrayIndex}isArrayIndexInBounds(t,e){const n=this.getLocalArrayIndex(t.arrayIndex,e),r=this.sequence.length;return n>=0&&n=t&&e{try{const n=await PI({blockchain:"solana",address:t.pubkey.toString(),api:$L,cache:10}),s=n.tokenMintA.toString()===e,u=await rS({pool:t.pubkey,freshWhirlpoolData:n,aToB:s}),c=new oS(u,n.tickSpacing,s),l=new rf(s?"4295048016":jL),h=!(!r&&!i);return{price:(({tokenAmount:t,aToB:e,freshWhirlpoolData:n,tickSequence:r,sqrtPriceLimit:i,amountSpecifiedIsInput:o})=>{let a=t,s=_L,u=n.sqrtPrice,c=n.liquidity,l=n.tickCurrentIndex,h=_L;const d=n.feeRate,f=n.protocolFeeRate;let p=new QL(0),y=e?n.feeGrowthGlobalA:n.feeGrowthGlobalB;for(;a.gt(_L)&&!i.eq(u);){let{nextIndex:t}=r.findNextInitializedTickIndex(l),{nextTickPrice:n,nextSqrtPriceLimit:m}=WL(t,i,e);const g=ZL(a,d,c,u,m,o,e);h=h.add(g.feeAmount),o?(a=a.sub(g.amountIn),a=a.sub(g.feeAmount),s=s.add(g.amountOut)):(a=a.sub(g.amountOut),s=s.add(g.amountIn),s=s.add(g.feeAmount));let{nextProtocolFee:v,nextFeeGrowthGlobalInput:w}=XL(g.feeAmount,f,c,p,y);if(p=v,y=w,g.nextPrice.eq(n)){const n=r.getTick(t);n.initialized&&(c=JL(n.liquidityNet,c,e)),l=e?t-1:t}else l=CL.sqrtPriceX64ToTickIndex(g.nextPrice);u=g.nextPrice}return s})({tokenAmount:new rf((r||i||o||a).toString()),aToB:s,freshWhirlpoolData:n,tickSequence:c,sqrtPriceLimit:l,amountSpecifiedIsInput:h}).toString(),tickArrays:u,aToB:s,sqrtPriceLimit:l}}catch(t){return{price:void 0,tickArrays:void 0,aToB:void 0,sqrtPriceLimit:void 0}}};let sS=async(t,e)=>{if(e===Hf.solana.wrapped.address)return[];return await PI("solana://whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc/getProgramAccounts",{params:{filters:[{dataSize:$L.span},{memcmp:{offset:8,bytes:"2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ"}},{memcmp:{offset:101,bytes:t}},{memcmp:{offset:181,bytes:e}}]},api:$L,cache:86400,cacheKey:["whirlpool",t.toString(),e.toString()].join("-")})},uS=async({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{try{let a=await sS(t,e);return 0===a.length&&(a=await sS(e,t)),a=a.filter((t=>t.data.liquidity.gt(1))),a=(await Promise.all(a.map((async a=>{const{price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l}=await aS({account:a,tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});return void 0!==s&&{pubkey:a.pubkey,price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l,data:{tokenVaultA:a.data.tokenVaultA,tokenVaultB:a.data.tokenVaultB}}})))).filter(Boolean),a}catch(t){return[]}},cS=async({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{const a=await uS({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});if(!a||0===a.length)return;let s;return s=n||r?(t=>t.reduce(((t,e)=>Fp.from(e.price).gt(Fp.from(t.price))?e:t)))(a):(t=>t.reduce(((t,e)=>Fp.from(e.price).lt(Fp.from(t.price))?e:t)))(a),s};function lS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const hS=Hf.solana;let dS=({path:t})=>{if(!t)return;let e=t.map(((e,n)=>e===hS.currency.address&&t[n+1]!=hS.wrapped.address&&t[n-1]!=hS.wrapped.address?hS.wrapped.address:e));return e[0]==hS.currency.address&&e[1]==hS.wrapped.address?e.splice(0,1):e[e.length-1]==hS.currency.address&&e[e.length-2]==hS.wrapped.address&&e.splice(e.length-1,1),e},fS=async({path:t,amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i})=>1!=t.length&&(t=dS({path:t}),(await uS({tokenIn:t[0],tokenOut:t[1],amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i})).length>0),pS=async({path:t,amountIn:e,amountInMax:n})=>{let r=[Fp.from(e||n)];if(r.push(Fp.from((await cS({tokenIn:t[0],tokenOut:t[1],amountIn:e,amountInMax:n})).price)),3===t.length&&r.push(Fp.from((await cS({tokenIn:t[1],tokenOut:t[2],amountIn:e?r[1]:void 0,amountInMax:n?r[1]:void 0})).price)),r.length==t.length)return r},yS=async({path:t,amountOut:e,amountOutMin:n})=>{t=t.slice().reverse();let r=[Fp.from(e||n)];if(r.push(Fp.from((await cS({tokenIn:t[1],tokenOut:t[0],amountOut:e,amountOutMin:n})).price)),3===t.length&&r.push(Fp.from((await cS({tokenIn:t[2],tokenOut:t[1],amountOut:e?r[1]:void 0,amountOutMin:n?r[1]:void 0})).price)),r.length==t.length)return r.slice().reverse()};const mS=Hf.solana,gS=new rf("14449647541112719096"),vS=new rf("16635068063392030915"),wS=async({instructions:t,owner:e,token:n,account:r})=>{let i;try{i=!!await PI({blockchain:"solana",address:r.toString()})}catch(t){}i||t.push(await xk.solana.createAssociatedTokenAccountInstruction({token:n,owner:e,payer:e}))},bS=async({account:t,poolOne:e,tickArraysOne:n,tokenAccountOneA:r,tokenVaultOneA:i,tokenAccountOneB:o,tokenVaultOneB:a,poolTwo:s,tickArraysTwo:u,tokenAccountTwoA:c,tokenVaultTwoA:l,tokenAccountTwoB:h,tokenVaultTwoB:d})=>{let f=!1;const p=n.map(((t,e)=>!1!==f?n[f]:t.data?t:(f=e-1,n[e-1])));let y=!1;const m=u.map(((t,e)=>!1!==y?u[y]:t.data?t:(y=e-1,u[e-1])));return[{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Xs(t),isWritable:!1,isSigner:!0},{pubkey:new Xs(e.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(s.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(o.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(a.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(c.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(l.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(h.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(d.toString()),isWritable:!0,isSigner:!1},{pubkey:p[0].address,isWritable:!0,isSigner:!1},{pubkey:p[1].address,isWritable:!0,isSigner:!1},{pubkey:p[2].address,isWritable:!0,isSigner:!1},{pubkey:m[0].address,isWritable:!0,isSigner:!1},{pubkey:m[1].address,isWritable:!0,isSigner:!1},{pubkey:m[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(e.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(s.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},MS=({amount:t,otherAmountThreshold:e,amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a})=>{let s,u;return s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]),u=nf.alloc(s.span),s.encode({anchorDiscriminator:vS,amount:new rf(t.toString()),otherAmountThreshold:new rf(e.toString()),amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a},u),u},AS=async({account:t,pool:e,tokenAccountA:n,tokenVaultA:r,tokenAccountB:i,tokenVaultB:o,tickArrays:a})=>{let s=!1;const u=a.map(((t,e)=>!1!==s?a[s]:t.data?t:(s=e-1,a[e-1])));return[{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Xs(t),isWritable:!1,isSigner:!0},{pubkey:new Xs(e.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(n.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(o.toString()),isWritable:!0,isSigner:!1},{pubkey:u[0].address,isWritable:!0,isSigner:!1},{pubkey:u[1].address,isWritable:!0,isSigner:!1},{pubkey:u[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(e.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},IS=({amount:t,otherAmountThreshold:e,sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i})=>{let o,a;return o=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]),a=nf.alloc(o.span),o.encode({anchorDiscriminator:gS,amount:new rf(t.toString()),otherAmountThreshold:new rf(e.toString()),sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i},a),a};var NS={findPath:async({tokenIn:t,tokenOut:e,amountIn:n,amountOut:r,amountInMax:i,amountOutMin:o})=>{if([t,e].includes(hS.currency.address)&&[t,e].includes(hS.wrapped.address))return{path:void 0,exchangePath:void 0};let a,s,u,c;return await fS({path:[t,e],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?a=[t,e]:t!=hS.wrapped.address&&t!=hS.currency.address&&await fS({path:[t,hS.wrapped.address],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})&&e!=hS.wrapped.address&&e!=hS.currency.address&&await fS({path:[e,hS.wrapped.address],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?a=[t,hS.wrapped.address,e]:!hS.stables.usd.includes(t)&&(s=(await Promise.all(hS.stables.usd.map((async e=>await fS({path:[t,e],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?e:void 0)))).filter(Boolean))&&!hS.stables.usd.includes(e)&&(u=(await Promise.all(hS.stables.usd.map((async t=>await fS({path:[e,t],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?t:void 0)))).filter(Boolean))&&(c=s.filter((t=>u.includes(t)))[0])&&(a=[t,c,e]),lS([a,"optionalAccess",t=>t.length])&&a[0]==hS.currency.address?a.splice(1,0,hS.wrapped.address):lS([a,"optionalAccess",t=>t.length])&&a[a.length-1]==hS.currency.address&&a.splice(a.length-1,0,hS.wrapped.address),{path:a,exchangePath:dS({path:a})}},pathExists:fS,getAmounts:async({path:t,tokenIn:e,tokenOut:n,amountOut:r,amountIn:i,amountInMax:o,amountOutMin:a})=>{let s;if(t=dS({path:t}),r){if(s=await yS({path:t,amountOut:r,tokenIn:e,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(i){if(s=await pS({path:t,amountIn:i,tokenIn:e,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}else if(a){if(s=await yS({path:t,amountOutMin:a,tokenIn:e,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(o){if(s=await pS({path:t,amountInMax:o,tokenIn:e,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}return{amountOut:r||a,amountIn:i||o,amountInMax:o||i,amountOutMin:a||r,amounts:s}},getTransaction:async({path:t,amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i,amounts:o,amountInInput:a,amountOutInput:s,amountInMaxInput:u,amountOutMinInput:c,account:l})=>{let h={blockchain:"solana"},d=[];const f=dS({path:t});if(f.length>3)throw"Orca can only handle fixed paths with a max length of 3 (2 pools)!";const p=f[0],y=3==f.length?f[1]:void 0,m=f[f.length-1];let g;2==f.length?g=[await cS({tokenIn:p,tokenOut:m,amountIn:a||u,amountOut:s||c})]:a||u?(g=[await cS({tokenIn:p,tokenOut:y,amountIn:a||u})],g.push(await cS({tokenIn:y,tokenOut:m,amountIn:g[0].price}))):(g=[await cS({tokenIn:y,tokenOut:m,amountOut:s||c})],g.unshift(await cS({tokenIn:p,tokenOut:y,amountOut:g[0].price})));let v,w=t[0]===mS.currency.address&&f[0]===mS.wrapped.address,b=t[t.length-1]===mS.currency.address&&f[f.length-1]===mS.wrapped.address;const M=await LI("solana");if(w||b){const t=await M.getMinimumBalanceForRentExemption(xk.solana.TOKEN_LAYOUT.span),n=Zl.generate();v=n.publicKey.toString();const r=w?new rf(e.toString()).add(new rf(t)):new rf(t);let i=Wu.createAccount({fromPubkey:new Xs(l),newAccountPubkey:new Xs(v),programId:new Xs(xk.solana.TOKEN_PROGRAM),space:xk.solana.TOKEN_LAYOUT.span,lamports:r});i.signers=[n],d.push(i),d.push(xk.solana.initializeAccountInstruction({account:v,token:mS.wrapped.address,owner:l}))}if(1===g.length){let t=!(!a&&!c),o=t?e:r,s=t?i:n,u=new Xs(w?v:await xk.solana.findProgramAddress({owner:l,token:p})),h=new Xs(b?v:await xk.solana.findProgramAddress({owner:l,token:m}));b||await wS({instructions:d,owner:l,token:m,account:h}),d.push(new gu({programId:new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await AS({account:l,pool:g[0].pubkey,tokenAccountA:g[0].aToB?u:h,tokenVaultA:g[0].data.tokenVaultA,tokenAccountB:g[0].aToB?h:u,tokenVaultB:g[0].data.tokenVaultB,tickArrays:g[0].tickArrays}),data:IS({amount:o,otherAmountThreshold:s,sqrtPriceLimit:g[0].sqrtPriceLimit,amountSpecifiedIsInput:t,aToB:g[0].aToB})}))}else if(2===g.length){let t=!(!a&&!c),o=t?e:r,s=t?i:n,u=new Xs(w?v:await xk.solana.findProgramAddress({owner:l,token:p})),h=f[1],y=new Xs(await xk.solana.findProgramAddress({owner:l,token:h}));await wS({instructions:d,owner:l,token:h,account:y});let M=new Xs(b?v:await xk.solana.findProgramAddress({owner:l,token:m}));b||await wS({instructions:d,owner:l,token:m,account:M}),d.push(new gu({programId:new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await bS({account:l,poolOne:g[0].pubkey,tickArraysOne:g[0].tickArrays,tokenAccountOneA:g[0].aToB?u:y,tokenVaultOneA:g[0].data.tokenVaultA,tokenAccountOneB:g[0].aToB?y:u,tokenVaultOneB:g[0].data.tokenVaultB,poolTwo:g[1].pubkey,tickArraysTwo:g[1].tickArrays,tokenAccountTwoA:g[1].aToB?y:M,tokenVaultTwoA:g[1].data.tokenVaultA,tokenAccountTwoB:g[1].aToB?M:y,tokenVaultTwoB:g[1].data.tokenVaultB}),data:MS({amount:o,otherAmountThreshold:s,amountSpecifiedIsInput:t,aToBOne:g[0].aToB,aToBTwo:g[1].aToB,sqrtPriceLimitOne:g[0].sqrtPriceLimit,sqrtPriceLimitTwo:g[1].sqrtPriceLimit})}))}return(w||b)&&d.push(xk.solana.closeAccountInstruction({account:v,owner:l})),h.instructions=d,h},WHIRLPOOL_LAYOUT:$L};const ES={name:"orca",label:"Orca",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9ImthdG1hbl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNjAwIDQ1MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNjAwIDQ1MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8cGF0aCBmaWxsPSIjRkZEMTVDIiBkPSJNNDg4LjQsMjIyLjljMCwxMDMuOC04NC4xLDE4Ny45LTE4Ny45LDE4Ny45Yy0xMDMuOCwwLTE4Ny45LTg0LjEtMTg3LjktMTg3LjlDMTEyLjYsMTE5LjEsMTk2LjcsMzUsMzAwLjUsMzUKCUM0MDQuMiwzNSw0ODguNCwxMTkuMSw0ODguNCwyMjIuOXoiLz4KPHBhdGggZmlsbD0iI0ZGRkZGRiIgc3Ryb2tlPSIjMDAwMDAwIiBzdHJva2Utd2lkdGg9IjE3LjY3NTUiIGQ9Ik0yMDkuNSwyOTkuOGMxLjYtMS4xLDMuMS0yLjgsMy45LTUuMWMwLjgtMi42LDAuMy00LjksMC02LjJjMCw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F0aCBkPSJNMzA2LjksMjM2YzAsMCwxOC43LDE5LjEsOC45LDIyLjFjLTEyLjItNy41LTM0LTEuNy00NC43LDEuOWMtMi42LDAuOS01LjItMS40LTQuMy00LjFjMy42LTEwLDEyLjYtMjguNiwyOS45LTMxCglDMzA2LjksMjIyLjQsMzA2LjksMjM2LDMwNi45LDIzNnoiLz4KPHBhdGggZmlsbD0iI0ZGRkZGRiIgZD0iTTMxOC4zLDE0Mi41Yy0yLjEtMy02LjQtMTEsNi44LTExYzEzLjIsMCwzMy4zLDE0LjksMzcuNCwyMC40Yy0xLjMsMy40LTkuOCw0LjEtMTQsMy44Yy00LjItMC4zLTExLjUtMS0xNy0zLjgKCUMzMjYsMTQ5LjIsMzIwLjUsMTQ1LjUsMzE4LjMsMTQyLjV6Ii8+Cjwvc3ZnPgo=",protocol:"orca",slippage:!0,blockchains:["solana"],solana:{router:{address:"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",api:NS.WHIRLPOOL_LAYOUT}}};var xS=t=>new ML(Object.assign(ES,{scope:t,findPath:t=>NS.findPath({...t,exchange:ES}),pathExists:t=>NS.pathExists({...t,exchange:ES}),getAmounts:t=>NS.getAmounts({...t,exchange:ES}),getPrep:t=>{},getTransaction:t=>NS.getTransaction({...t,exchange:ES})}));const kS={name:"pancakeswap",label:"PancakeSwap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxM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yNy42MTQgMTM3LjY5NiAxMzIuNjc1IDEzMi4wMzEgMTMyLjY3NUMxMjYuMzY1IDEzMi42NzUgMTIxLjc3MyAxMjcuNjE0IDEyMS43NzMgMTE3Ljg5NkMxMjEuNzczIDEwOC4xNzggMTI2LjM2NSAxMDMuMTE3IDEzMi4wMzEgMTAzLjExN0MxMzcuNjk2IDEwMy4xMTcgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["bsc"],bsc:{router:{address:"0x10ED43C718714eb63d5aA57B78B54704E256024E",api:TL.ROUTER},factory:{address:"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",api:TL.FACTORY},pair:{api:TL.PAIR}}};var TS=t=>new ML(Object.assign(kS,{scope:t,findPath:t=>TL.findPath({...t,exchange:kS}),pathExists:t=>TL.pathExists({...t,exchange:kS}),getAmounts:t=>TL.getAmounts({...t,exchange:kS}),getPrep:t=>TL.getPrep({...t,exchange:kS}),getTransaction:t=>TL.getTransaction({...t,exchange:kS})}));function LS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const SS=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},jS=async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=SS({blockchain:t,exchange:e,path:n})).length>2)throw"PancakeSwap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(e.fees.map((r=>PI({blockchain:Hf[t].name,address:e[t].factory.address,method:"getPool",api:e[t].factory.api,cache:3600,params:[n[0],n[1],r]}).then((e=>({blockchain:t,address:e,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((e=>e.address!=Hf[t].zero)),o=(await Promise.all(o.map((async t=>{try{let n;return n=r?await(async({exchange:t,pool:e,inputAmount:n})=>(await PI({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactInput",params:{path:oI(["address","uint24","address"],[e.path[0],e.fee,e.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:e,pool:t,inputAmount:r}):await(async({exchange:t,pool:e,outputAmount:n})=>(await PI({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactOutput",params:{path:oI(["address","uint24","address"],[e.path[1],e.fee,e.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:e,pool:t,outputAmount:i}),{...t,amountIn:r||n,amountOut:i||n}}catch(t){}})))).filter(Boolean),r?o.sort(((t,e)=>e.amountOut.gt(t.amountOut)?1:-1))[0]:o.sort(((t,e)=>e.amountIn.lt(t.amountIn)?1:-1))[0]}catch(t){return}};let DS=({blockchain:t,exchange:e,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,CS=async({blockchain:t,exchange:e,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=oI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=oI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await PI({block:o,blockchain:t,address:e[t].quoter.address,api:e[t].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var OS={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await jS({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[t].wrapped.address||r==Hf[t].wrapped.address||(c=[],o||s?(c.push(await jS({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await jS({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await jS({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await jS({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,Hf[t].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await jS({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await jS({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await jS({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await jS({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return LS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[t].currency.address?u.splice(1,0,Hf[t].wrapped.address):LS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[t].currency.address&&u.splice(u.length-1,0,Hf[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:SS({blockchain:t,exchange:e,path:u})}},pathExists:async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await jS({blockchain:t,exchange:e,path:n,amountIn:r||o,amountOut:i||a})}catch(t){return!1}},getAmounts:async({blockchain:t,exchange:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await CS({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await DS({blockchain:t,exchange:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await CS({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await DS({blockchain:t,exchange:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i,tokenOut:o})=>{if(n===Hf[e].currency.address)return;let a;a=o===Hf[e].currency.address?t[e].smartRouter.address:t[e].router.address;if((await PI({blockchain:e,address:n,method:"allowance",api:xk[e][20],params:[i,a]})).lt(r)){return{transaction:{blockchain:e,from:i,to:n,api:xk[e][20],method:"approve",params:[a,Hf[e].maxInt]}}}},getTransaction:async({blockchain:t,exchange:e,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:h,account:d,inputTokenPushed:f})=>{const p={blockchain:t,from:d},y=Math.floor(Date.now()/1e3)+21600,m=SS({blockchain:t,exchange:e,path:r});if(r[r.length-1]===Hf[t].currency.address){p.to=e[t].smartRouter.address,p.api=e[t].smartRouter.api,p.method="multicall";const r=new Og(e[t].smartRouter.api);if(p.params={data:[]},2===m.length)u||h?p.params.data.push(r.encodeFunctionData("exactInputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:e[t].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}])):(c||l)&&p.params.data.push(r.encodeFunctionData("exactOutputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:e[t].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}]));else{const d=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||h?p.params.data.push(r.encodeFunctionData("exactInput",[{path:d,recipient:e[t].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}])):(c||l)&&p.params.data.push(r.encodeFunctionData("exactOutput",[{path:d,recipient:e[t].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}]))}p.params.data.push(r.encodeFunctionData("unwrapWETH9",[(s||a).toString(),d]))}else if(p.to=e[t].router.address,p.api=e[t].router.api,r[0]===Hf[t].currency.address&&(p.value=(i||o).toString()),2===m.length)u||h?(p.method="exactInputSingle",p.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:d,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}}):(c||l)&&(p.method="exactOutputSingle",p.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:d,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}});else{const t=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||h?(p.method="exactInput",p.params={params:{path:t,recipient:d,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}}):(c||l)&&(p.method="exactOutput",p.params={params:{path:t,recipient:d,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}})}return p},ROUTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct ISwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct ISwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],SMART_ROUTER:[{inputs:[{internalType:"address",name:"_factoryV2",type:"address"},{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factoryV3",type:"address"},{internalType:"address",name:"_positionManager",type:"address"},{internalType:"address",name:"_stableFactory",type:"address"},{internalType:"address",name:"_stableInfo",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"factory",type:"address"},{indexed:!0,internalType:"address",name:"info",type:"address"}],name:"SetStableSwap",type:"event"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"callPositionManager",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"paths",type:"bytes[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactInputStableSwap",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactOutputStableSwap",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factoryV2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"getApprovalType",outputs:[{internalType:"enum IApproveAndCall.ApprovalType",name:"",type:"uint8"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"}],internalType:"struct IApproveAndCall.IncreaseLiquidityParams",name:"params",type:"tuple"}],name:"increaseLiquidity",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],internalType:"struct IApproveAndCall.MintParams",name:"params",type:"tuple"}],name:"mint",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"previousBlockhash",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"positionManager",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"pull",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_info",type:"address"}],name:"setStableSwap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stableSwapFactory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"stableSwapInfo",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"wrapETH",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_poolDeployer",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"bool",name:"whitelistRequested",type:"bool"},{indexed:!1,internalType:"bool",name:"enabled",type:"bool"}],name:"FeeAmountExtraInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"lmPoolDeployer",type:"address"}],name:"SetLmPoolDeployer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"bool",name:"verified",type:"bool"}],name:"WhiteListAdded",type:"event"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacingExtraInfo",outputs:[{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPoolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],name:"setFeeAmountExtraInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPoolDeployer",type:"address"}],name:"setLmPoolDeployer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"bool",name:"verified",type:"bool"}],name:"setWhiteListAddress",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"feeProtocol0Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol0New",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1New",type:"uint32"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"addr",type:"address"}],name:"SetLmPoolEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken1",type:"uint128"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPool",outputs:[{internalType:"contract IPancakeV3LmPool",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint32",name:"feeProtocol",type:"uint32"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]};const zS={name:"pancakeswap_v3",label:"PancakeSwap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NS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jEuNzczIDEwOC4xNzggMTI2LjM2NSAxMDMuMTE3IDEzMi4wMzEgMTAzLjExN0MxMzcuNjk2IDEwMy4xMTcgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"pancakeswap_v3",slippage:!0,fees:[100,500,2500,1e4],blockchains:["bsc"],bsc:{router:{address:"0x1b81D678ffb9C0263b24A97847620C99d213eB14",api:OS.ROUTER},smartRouter:{address:"0x13f4EA83D0bd40E75C8222255bc855a974568Dd4",api:OS.SMART_ROUTER},factory:{address:"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865",api:OS.FACTORY},pair:{api:OS.POOL},quoter:{address:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",api:OS.QUOTER}}};var PS=t=>new ML(Object.assign(zS,{scope:t,findPath:t=>OS.findPath({...t,exchange:zS}),pathExists:t=>OS.pathExists({...t,exchange:zS}),getAmounts:t=>OS.getAmounts({...t,exchange:zS}),getPrep:t=>OS.getPrep({...t,exchange:zS}),getTransaction:t=>OS.getTransaction({...t,exchange:zS})}));const _S={name:"quickswap",label:"QuickSwap",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzAyLjQ1IDcwMi40NyI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMy43OCAtMjMuNzcpIj48cmVjdCB3aWR0aD0iNzUwIiBoZWlnaHQ9Ijc1MCIgZmlsbD0ibm9uZSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwLXB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0829CaCEd8fFDD4De3c43696c57F7D7A678ff",api:TL.ROUTER},factory:{address:"0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",api:TL.FACTORY},pair:{api:TL.PAIR}}};var BS=t=>new ML(Object.assign(_S,{scope:t,findPath:t=>TL.findPath({...t,exchange:_S}),pathExists:t=>TL.pathExists({...t,exchange:_S}),getAmounts:t=>TL.getAmounts({...t,exchange:_S}),getPrep:t=>TL.getPrep({...t,exchange:_S}),getTransaction:t=>TL.getTransaction({...t,exchange:_S})}));const RS={name:"spookyswap",label:"SpookySwap",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNjQxIDY0MCIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgNjQxIDY0MDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8Zz4KCTxwYXRoIGZpbGw9IiMxMjExMjIiIGQ9Ik0zNC4yLDMyMGMwLDE1OC41LDEyOC41LDI4Ni4zLDI4Ni4zLDI4Ni4zYzE1OC41LDAsMjg2LjMtMTI4LjUsMjg2LjMtMjg2LjNjMC0xNTguNS0xMjguNS0yODYuMy0yODYuMy0yODYuMwoJCUMxNjIuNywzMy43LDM0LjIsMTYyLjIsMzQuMiwzMjBMMzQuMiwzMjB6Ii8+Cgk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0YyRjRGOCIgZD0iTTEyMC45LDI0Ny42Yy0zLjMsMjIuMiwwLjcsNDUuNyw0LjYsNjcuOGMyLDM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45LDMwLjdjNi41LDcuMi0yMS41LDEwLjQtNDguOSwxNS43CgkJYy0yNy40LDQuNi0xMjAuNyw3LjItMjEwLDcuOGMtODkuMywwLjctMTkzLjctMi42LTIxNi41LTUuOUM4My4xLDM0OS4zLDU3LjcsMzQyLjgsNjIuMiwzMzUuN0w2Mi4yLDMzNS43eiIvPgoJPHBhdGggZmlsbD0iI0ZGOTlBNSIgZD0iTTQ4My41LDI1Ni4xYzAsMC01OC43LTE1LTE2Mi40LTE1Yy0xMTEuNSwwLTE2NSwxNy0xNjUsMTdzLTYuNSwxMi40LTkuMSwxOC45Yy0yLjYsNy4yLTkuMSwyNS40LTkuMSwyNS40CgkJUzIxOC44LDI4OCwzMjIuNSwyODhjNjIuNiwwLDEyNC42LDUuMiwxODYuNSwxNS43YzAsMC05LjEtMjIuMi0xNS0zMS4zQzQ5MC43LDI2Ny4yLDQ4Ny41LDI2MS4zLDQ4My41LDI1Ni4xTDQ4My41LDI1Ni4xeiIvPgoJPHBhdGggZmlsbD0iI0ZGRTYwMCIgZD0iTTEzMy4zLDEzMS41YzYuNS0wLjcsMTUuNywxOS42LDE1LjcsMTkuNnMyMC45LTUuOSwyNC44LDBjMy4zLDUuOS0xNSwxOS42LTE1LDE5LjZzMTEuMSwxOS42LDcuMiwyMy41CgkJYy0zLjMsMy45LTIyLjgtOC41LTIyLjgtOC41cy0xNSwxNy0xOS42LDE0LjNjLTUuMi0yLjYsMC43LTI0LjgsMC43LTI0LjhzLTIxLjUtOS4xLTE5LjYtMTQuM2MxLjMtNS4yLDIzLjUtNy4yLDIzLjUtNy4yCgkJUzEyNi44LDEzMi44LDEzMy4zLDEzMS41TDEzMy4zLDEzMS41eiIvPgo8L2c+Cjwvc3ZnPgo=",protocol:"uniswap_v2",slippage:!0,blockchains:["fantom"],fantom:{router:{address:"0xF491e7B69E4244ad4002BC14e878a34207E38c29",api:TL.ROUTER},factory:{address:"0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3",api:TL.FACTORY},pair:{api:TL.PAIR}}};var US=t=>new ML(Object.assign(RS,{scope:t,findPath:t=>TL.findPath({...t,exchange:RS}),pathExists:t=>TL.pathExists({...t,exchange:RS}),getAmounts:t=>TL.getAmounts({...t,exchange:RS}),getPrep:t=>TL.getPrep({...t,exchange:RS}),getTransaction:t=>TL.getTransaction({...t,exchange:RS})}));function QS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const YS=({blockchain:t,path:e})=>{if(!e)return;let n=e.map(((n,r)=>n===Hf[t].currency.address&&e[r+1]!=Hf[t].wrapped.address&&e[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:n));return n[0]==Hf[t].currency.address&&n[1]==Hf[t].wrapped.address?n.splice(0,1):n[n.length-1]==Hf[t].currency.address&&n[n.length-2]==Hf[t].wrapped.address&&n.splice(n.length-1,1),n},WS=async({exchange:t,blockchain:e,path:n,amountIn:r,amountOut:i,block:o})=>{let a;if(n=YS({blockchain:e,path:n}),a=r?await PI({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountIn",api:t[e].quoter.api,cache:5,block:o,params:{route:n,amountIn:r}}).catch((()=>{})):await PI({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountOut",api:t[e].quoter.api,cache:5,block:o,params:{route:n,amountOut:i}}).catch((()=>{})),a&&!a.virtualAmountsWithoutSlippage.some((t=>"0"===t.toString())))return a};let FS=async({exchange:t,blockchain:e,path:n,pools:r,amountIn:i})=>{let o=await PI({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountIn",api:t[e].quoter.api,cache:5,params:{route:YS({blockchain:e,path:n}),amountIn:i}}).catch((()=>{}));if(o)return o.virtualAmountsWithoutSlippage[o.virtualAmountsWithoutSlippage.length-1]},VS=async({exchange:t,blockchain:e,path:n,pools:r,amountOut:i,block:o})=>{let a=await PI({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountOut",api:t[e].quoter.api,cache:5,block:o,params:{route:YS({blockchain:e,path:n}),amountOut:i}}).catch((()=>{}));if(a)return a.virtualAmountsWithoutSlippage[0]};var HS={findPath:async({exchange:t,blockchain:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[e].currency.address)&&[n,r].includes(Hf[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await WS({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[e].wrapped.address||r==Hf[e].wrapped.address||(c=[],o||s?(c.push(await WS({exchange:t,blockchain:e,path:[Hf[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await WS({exchange:t,blockchain:e,path:[n,Hf[e].wrapped.address],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await WS({exchange:t,blockchain:e,path:[n,Hf[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await WS({exchange:t,blockchain:e,path:[Hf[e].wrapped.address,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length&&(u=[n,Hf[e].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await WS({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await WS({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await WS({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await WS({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return QS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[e].currency.address?u.splice(1,0,Hf[e].wrapped.address):QS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[e].currency.address&&u.splice(u.length-1,0,Hf[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:YS({blockchain:e,path:u})}},pathExists:async({exchange:t,blockchain:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>!!await WS({exchange:t,blockchain:e,path:n,amountIn:r||o,amountOut:i||a}),getAmounts:async({exchange:t,blockchain:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await VS({exchange:t,blockchain:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await FS({exchange:t,blockchain:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await VS({exchange:t,blockchain:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await FS({exchange:t,blockchain:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getTransaction:async({exchange:t,blockchain:e,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:h,account:d})=>{const f={blockchain:e,from:d,to:t[e].router.address,api:t[e].router.api},p=Math.round(Date.now()/1e3)+86400,y=[n.map((t=>t.binSteps[0])),n.map((t=>t.versions[0])),YS({blockchain:e,path:r})];return r[0]===Hf[e].currency.address?l?(f.method="swapNATIVEForExactTokens",f.params={amountOut:a,path:y,to:d,deadline:p},f.value=o):(f.method="swapExactNATIVEForTokens",f.params={amountOutMin:s||a,path:y,to:d,deadline:p},f.value=i):r[r.length-1]===Hf[e].currency.address?l?(f.method="swapTokensForExactNATIVE",f.params={amountNATIVEOut:a,amountInMax:o,path:y,to:d,deadline:p}):(f.method="swapExactTokensForNATIVE",f.params={amountIn:i,amountOutMinNATIVE:s||a,path:y,to:d,deadline:p}):l?(f.method="swapTokensForExactTokens",f.params={amountOut:a,amountInMax:o,path:y,to:d,deadline:p}):(f.method="swapExactTokensForTokens",f.params={amountIn:i,amountOutMin:s||a,path:y,to:d,deadline:p}),f},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;const o=await PI({blockchain:e,address:n,method:"allowance",api:xk[e][20],params:[i,t[e].router.address]});if(o.gte(r))return;return{transaction:{blockchain:e,from:i,to:n,api:xk[e][20],method:"approve",params:[t[e].router.address,r.sub(o)]}}},ROUTER:[{inputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"},{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"},{internalType:"contract ILBLegacyFactory",name:"legacyFactory",type:"address"},{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"},{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[{internalType:"uint256",name:"amountSlippage",type:"uint256"}],name:"LBRouter__AmountSlippageBPTooBig",type:"error"},{inputs:[{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],name:"LBRouter__AmountSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__BinReserveOverflows",type:"error"},{inputs:[],name:"LBRouter__BrokenSwapSafetyCheck",type:"error"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"currentTimestamp",type:"uint256"}],name:"LBRouter__DeadlineExceeded",type:"error"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBRouter__FailedToSendNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"idDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"}],name:"LBRouter__IdDesiredOverflows",type:"error"},{inputs:[{internalType:"int256",name:"id",type:"int256"}],name:"LBRouter__IdOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"uint256",name:"activeId",type:"uint256"}],name:"LBRouter__IdSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"LBRouter__InsufficientAmountOut",type:"error"},{inputs:[{internalType:"address",name:"wrongToken",type:"address"}],name:"LBRouter__InvalidTokenPath",type:"error"},{inputs:[{internalType:"uint256",name:"version",type:"uint256"}],name:"LBRouter__InvalidVersion",type:"error"},{inputs:[],name:"LBRouter__LengthsMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"LBRouter__MaxAmountInExceeded",type:"error"},{inputs:[],name:"LBRouter__NotFactoryOwner",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBRouter__PairNotCreated",type:"error"},{inputs:[],name:"LBRouter__SenderIsNotWNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__SwapOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"excess",type:"uint256"}],name:"LBRouter__TooMuchTokensIn",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"reserve",type:"uint256"}],name:"LBRouter__WrongAmounts",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"msgValue",type:"uint256"}],name:"LBRouter__WrongNativeLiquidityParameters",type:"error"},{inputs:[],name:"LBRouter__WrongTokenOrder",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"lbFactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactory",outputs:[{internalType:"contract ILBLegacyFactory",name:"legacyLBfactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouter",outputs:[{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getV1Factory",outputs:[{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWNATIVE",outputs:[{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountNATIVEMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountNATIVE",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVE",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVESupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapNATIVEForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountNATIVEOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactNATIVE",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"sweep",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBToken",name:"lbToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"sweepLBToken",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"feeRecipient",type:"address"},{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"LBFactory__AddressZero",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepHasNoPreset",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepTooLow",type:"error"},{inputs:[{internalType:"uint256",name:"fees",type:"uint256"},{internalType:"uint256",name:"maxFees",type:"uint256"}],name:"LBFactory__FlashLoanFeeAboveMax",type:"error"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"LBFactory__IdenticalAddresses",type:"error"},{inputs:[],name:"LBFactory__ImplementationNotSet",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"_binStep",type:"uint256"}],name:"LBFactory__LBPairAlreadyExists",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairDoesNotExist",type:"error"},{inputs:[],name:"LBFactory__LBPairIgnoredIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairNotCreated",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__LBPairSafetyCheckFailed",type:"error"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__PresetIsLockedForUsers",type:"error"},{inputs:[],name:"LBFactory__PresetOpenStateIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetAlreadyWhitelisted",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetNotWhitelisted",type:"error"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"LBFactory__SameFeeRecipient",type:"error"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"LBFactory__SameFlashLoanFee",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__SameImplementation",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"PendingOwnable__AddressZero",type:"error"},{inputs:[],name:"PendingOwnable__NoPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__PendingOwnerAlreadySet",type:"error"},{inputs:[],name:"SafeCast__Exceeds16Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldRecipient",type:"address"},{indexed:!1,internalType:"address",name:"newRecipient",type:"address"}],name:"FeeRecipientSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldFlashLoanFee",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newFlashLoanFee",type:"uint256"}],name:"FlashLoanFeeSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"tokenX",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"tokenY",type:"address"},{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"uint256",name:"pid",type:"uint256"}],name:"LBPairCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"bool",name:"ignored",type:"bool"}],name:"LBPairIgnoredStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldLBPairImplementation",type:"address"},{indexed:!1,internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBPairImplementationSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"PendingOwnerSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!0,internalType:"bool",name:"isOpen",type:"bool"}],name:"PresetOpenStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"}],name:"PresetRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"filterPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"decayPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"reductionFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"variableFeeControl",type:"uint256"},{indexed:!1,internalType:"uint256",name:"protocolShare",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"}],name:"PresetSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetRemoved",type:"event"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"addQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"becomeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAllBinSteps",outputs:[{internalType:"uint256[]",name:"binStepWithPreset",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"}],name:"getAllLBPairs",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation[]",name:"lbPairsAvailable",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFeeRecipient",outputs:[{internalType:"address",name:"feeRecipient",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlashLoanFee",outputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getLBPairAtIndex",outputs:[{internalType:"contract ILBPair",name:"lbPair",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLBPairImplementation",outputs:[{internalType:"address",name:"lbPairImplementation",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenA",type:"address"},{internalType:"contract IERC20",name:"tokenB",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getLBPairInformation",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation",name:"lbPairInformation",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMaxFlashLoanFee",outputs:[{internalType:"uint256",name:"maxFee",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getMinBinStep",outputs:[{internalType:"uint256",name:"minBinStep",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getNumberOfLBPairs",outputs:[{internalType:"uint256",name:"lbPairNumber",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNumberOfQuoteAssets",outputs:[{internalType:"uint256",name:"numberOfQuoteAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOpenBinSteps",outputs:[{internalType:"uint256[]",name:"openBinStep",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getPreset",outputs:[{internalType:"uint256",name:"baseFactor",type:"uint256"},{internalType:"uint256",name:"filterPeriod",type:"uint256"},{internalType:"uint256",name:"decayPeriod",type:"uint256"},{internalType:"uint256",name:"reductionFactor",type:"uint256"},{internalType:"uint256",name:"variableFeeControl",type:"uint256"},{internalType:"uint256",name:"protocolShare",type:"uint256"},{internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"},{internalType:"bool",name:"isOpen",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getQuoteAssetAtIndex",outputs:[{internalType:"contract IERC20",name:"asset",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"isQuoteAsset",outputs:[{internalType:"bool",name:"isQuote",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"}],name:"removePreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"removeQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"setFeeRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setFeesParametersOnPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"setFlashLoanFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"ignored",type:"bool"}],name:"setLBPairIgnored",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newLBPairImplementation",type:"address"}],name:"setLBPairImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner_",type:"address"}],name:"setPendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPresetOpenState",outputs:[],stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[{internalType:"contract ILBFactory",name:"factory_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"BinHelper__CompositionFactorFlawed",type:"error"},{inputs:[],name:"BinHelper__LiquidityOverflow",type:"error"},{inputs:[],name:"FeeHelper__FeeTooLarge",type:"error"},{inputs:[],name:"LBPair__AddressZero",type:"error"},{inputs:[],name:"LBPair__AlreadyInitialized",type:"error"},{inputs:[],name:"LBPair__EmptyMarketConfigs",type:"error"},{inputs:[],name:"LBPair__FlashLoanCallbackFailed",type:"error"},{inputs:[],name:"LBPair__FlashLoanInsufficientAmount",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountIn",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountOut",type:"error"},{inputs:[],name:"LBPair__InvalidInput",type:"error"},{inputs:[],name:"LBPair__InvalidStaticFeeParameters",type:"error"},{inputs:[],name:"LBPair__MaxTotalFeeExceeded",type:"error"},{inputs:[],name:"LBPair__OnlyFactory",type:"error"},{inputs:[],name:"LBPair__OnlyProtocolFeeRecipient",type:"error"},{inputs:[],name:"LBPair__OutOfLiquidity",type:"error"},{inputs:[],name:"LBPair__TokenNotSupported",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmountsOut",type:"error"},{inputs:[],name:"LBPair__ZeroBorrowAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroShares",type:"error"},{inputs:[],name:"LBToken__AddressThisOrZero",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__BurnExceedsBalance",type:"error"},{inputs:[],name:"LBToken__InvalidLength",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"LBToken__SelfApproval",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"LBToken__SpenderNotApproved",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__TransferExceedsBalance",type:"error"},{inputs:[],name:"LiquidityConfigurations__InvalidConfig",type:"error"},{inputs:[],name:"OracleHelper__InvalidOracleId",type:"error"},{inputs:[],name:"OracleHelper__LookUpTimestampTooOld",type:"error"},{inputs:[],name:"OracleHelper__NewLengthTooSmall",type:"error"},{inputs:[],name:"PackedUint128Math__AddOverflow",type:"error"},{inputs:[],name:"PackedUint128Math__MultiplierTooLarge",type:"error"},{inputs:[],name:"PackedUint128Math__SubUnderflow",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"ReentrancyGuard__ReentrantCall",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds40Bits",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[],name:"Uint128x128Math__LogUnderflow",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"feeRecipient",type:"address"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CollectedProtocolFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CompositionFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"DepositedToBins",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{indexed:!1,internalType:"uint24",name:"activeId",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amounts",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"FlashLoan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"idReference",type:"uint24"},{indexed:!1,internalType:"uint24",name:"volatilityReference",type:"uint24"}],name:"ForcedDecay",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"oracleLength",type:"uint16"}],name:"OracleLengthIncreased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"baseFactor",type:"uint16"},{indexed:!1,internalType:"uint16",name:"filterPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"decayPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"reductionFactor",type:"uint16"},{indexed:!1,internalType:"uint24",name:"variableFeeControl",type:"uint24"},{indexed:!1,internalType:"uint16",name:"protocolShare",type:"uint16"},{indexed:!1,internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"StaticFeeParametersSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amountsIn",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"amountsOut",type:"bytes32"},{indexed:!1,internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"WithdrawnFromBins",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"approveForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"batchBalances",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"batchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amountsToBurn",type:"uint256[]"}],name:"burn",outputs:[{internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectProtocolFees",outputs:[{internalType:"bytes32",name:"collectedProtocolFees",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{internalType:"bytes32",name:"amounts",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActiveId",outputs:[{internalType:"uint24",name:"activeId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getBin",outputs:[{internalType:"uint128",name:"binReserveX",type:"uint128"},{internalType:"uint128",name:"binReserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBinStep",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"id",type:"uint24"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getNextNonEmptyBin",outputs:[{internalType:"uint24",name:"nextId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOracleParameters",outputs:[{internalType:"uint8",name:"sampleLifetime",type:"uint8"},{internalType:"uint16",name:"size",type:"uint16"},{internalType:"uint16",name:"activeSize",type:"uint16"},{internalType:"uint40",name:"lastUpdated",type:"uint40"},{internalType:"uint40",name:"firstTimestamp",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint40",name:"lookupTimestamp",type:"uint40"}],name:"getOracleSampleAt",outputs:[{internalType:"uint64",name:"cumulativeId",type:"uint64"},{internalType:"uint64",name:"cumulativeVolatility",type:"uint64"},{internalType:"uint64",name:"cumulativeBinCrossed",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getProtocolFees",outputs:[{internalType:"uint128",name:"protocolFeeX",type:"uint128"},{internalType:"uint128",name:"protocolFeeY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReserves",outputs:[{internalType:"uint128",name:"reserveX",type:"uint128"},{internalType:"uint128",name:"reserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStaticFeeParameters",outputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTokenX",outputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getTokenY",outputs:[{internalType:"contract IERC20",name:"tokenY",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getVariableFeeParameters",outputs:[{internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"volatilityReference",type:"uint24"},{internalType:"uint24",name:"idReference",type:"uint24"},{internalType:"uint40",name:"timeOfLastUpdate",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"newLength",type:"uint16"}],name:"increaseOracleLength",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"activeId",type:"uint24"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32[]",name:"liquidityConfigs",type:"bytes32[]"},{internalType:"address",name:"refundTo",type:"address"}],name:"mint",outputs:[{internalType:"bytes32",name:"amountsReceived",type:"bytes32"},{internalType:"bytes32",name:"amountsLeft",type:"bytes32"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setStaticFeeParameters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"address",name:"to",type:"address"}],name:"swap",outputs:[{internalType:"bytes32",name:"amountsOut",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"factoryV1",type:"address"},{internalType:"address",name:"legacyFactoryV2",type:"address"},{internalType:"address",name:"factoryV2",type:"address"},{internalType:"address",name:"legacyRouterV2",type:"address"},{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"JoeLibrary__AddressZero",type:"error"},{inputs:[],name:"JoeLibrary__IdenticalAddresses",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[],name:"LBQuoter_InvalidLength",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountIn",type:"uint128"}],name:"findBestPathFromAmountIn",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountOut",type:"uint128"}],name:"findBestPathFromAmountOut",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV1",outputs:[{internalType:"address",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV2",outputs:[{internalType:"address",name:"factoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactoryV2",outputs:[{internalType:"address",name:"legacyFactoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouterV2",outputs:[{internalType:"address",name:"legacyRouterV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRouterV2",outputs:[{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"view",type:"function"}]};const GS={name:"trader_joe_v2_1",label:"Trader Joe v2.1",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABvCAYAAAA0YEQFAAABAGlDQ1BpY2MAABiVY2BgPMEABCwGDAy5eSVFQe5OChGRUQrsDxgYgRAMEpOLCxhwA6Cqb9cgai/r4lGHC3CmpBYnA+kPQKxSBLQcaKQIkC2SDmFrgNhJELYNiF1eUlACZAeA2EUhQc5AdgqQrZGOxE5CYicXFIH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QmP+H7UELmwn9u1LhQMDdxLTB4jonazUShFR8fN2244gAjFHRWFTqTTy+QK8qzU3BAgazUcPHn7+bbfddttLNEIv3n6sAEzavn379Oq+vq2i+YMs+BkAayGWbRiK5bjCAhERxZWGtUImm0UmGz8yXeuXC+YppdTtRHRFafNX0n4sAUzaiAh/+OnvL28a771Q/D4huYVEstZC2WiPC8fZGsSOhoqfNZHNZpDO5uCkvJdKduaNMW/wPO/QUt3DjzWAne3gwYMuyuWNjsN3MPE91srtRDRsjc1StLmOhcCsHSjtRLuKUilkslmkokfwXD7yD4QA3qe1/vpS9fs1ABdpIkIvfPvbfZxKbSPGHZbVbQTZAivLiFBkJo+Vw6QdUo4TPfbA9eClU/AyGSjPjYupX3hqa+0nXdf9D0vV19cAvEyLnRj6kUceSS3TQTFs8hqxwRom3iZMNzLzBlZ6kB2voBydUo6rteOSk/LIy+bgpqIHcVE71v1nDz/88AfvvYKdR1fSXgPwKlpUCBDuULGYb6bTA47COiu8iR21WbFew1qvIKX7tdY5N51yUpksa9edViZ8pzcwcEW10C7XXgNwaVvkldq/X50ENHp6Us1qNQMgT46TMlapdCbtmGZ1dOOuXWeW5ILX+o5/TFprnBMfLC2RP/T/B96QkmdPWpSQAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTA3LTA3VDA5OjE5OjA4KzAwOjAwC8IICQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wNy0wN1QwOToxOTowOCswMDowMHqfsLUAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjMtMDctMDdUMDk6MTk6MDgrMDA6MDAtipFqAAAAHnRFWHRpY2M6Y29weXJpZ2h0AEdvb2dsZSBJbmMuIDIwMTasCzM4AAAAFHRFWHRpY2M6ZGVzY3JpcHRpb24Ac1JHQrqQcwcAAAAASUVORK5CYII=",protocol:"trader_joe_v2_1",slippage:!0,blockchains:["avalanche"],avalanche:{router:{address:"0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",api:HS.ROUTER},factory:{address:"0x8e42f2F4101563bF679975178e880FD87d3eFd4e",api:HS.FACTORY},pair:{api:HS.PAIR},quoter:{address:"0x64b57F4249aA99a812212cee7DAEFEDC40B203cD",api:HS.QUOTER}}};var qS=t=>new ML(Object.assign(GS,{scope:t,findPath:t=>HS.findPath({...t,exchange:GS}),pathExists:t=>HS.pathExists({...t,exchange:GS}),getAmounts:t=>HS.getAmounts({...t,exchange:GS}),getPrep:t=>HS.getPrep({...t,exchange:GS}),getTransaction:t=>HS.getTransaction({...t,exchange:GS})}));const ZS={name:"uniswap_v2",label:"Uniswap v2",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlnaHQ9IjY0MCIgdmlld0JveD0iMCAwIDY0MSA2NDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMjQuNTM0IDEyMy4yMjZDMjE4LjY5MiAxMjIuMzIgMjE4LjQ0NSAxMjIuMjEzIDIyMS4xOTUgMTIxLjc5MUMyMjYuNDY0IDEyMC45OCAyMzguOTA1IDEyMi4wODUgMjQ3LjQ3OSAxMjQuMTIzQzI2Ny40OTQgMTI4Ljg4MSAyODUuNzA3IDE0MS4wNjkgMzA1LjE0OCAxNjIuNzE0TDMxMC4zMTMgMTY4LjQ2NUwzMTcuNzAxIDE2Ny4yNzdDMzQ4LjgyOCAxNjIuMjc1IDM4MC40OTMgMTY2LjI1IDQwNi45NzggMTc4LjQ4NUM0MTQuMjY0IDE4MS44NTEgNDI1Ljc1MiAxODguNTUyIDQyNy4xODcgMTkwLjI3NEM0MjcuNjQ1IDE5MC44MjIgNDI4LjQ4NSAxOTQuMzU1IDQyOS4wNTMgMTk4LjEyNEM0MzEuMDIgMjExLjE2NCA0MzAuMDM2IDIyMS4xNiA0MjYuMDQ3IDIyOC42MjVDNDIzLjg3NyAyMzIuNjg4IDQyMy43NTYgMjMzLjk3NSA0MjUuMjE1I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I3OC44MjZDMjMyLjExNiAyODMuMzYyIDIzMi44MTMgMjkxLjMxOSAyMzQuNjUzIDI5My43NzZDMjM3LjYyNSAyOTcuNzQ1IDI0MC40OTkgMjk4Ljc5MSAyNDguMjgyIDI5OC43MzZDMjYzLjUxOCAyOTguNjMgMjc2Ljc2NCAyOTIuMDk1IDI3OC4zMDQgMjgzLjkyNUMyNzkuNTY3IDI3Ny4yMjkgMjczLjc0OSAyNjcuOTQ4IDI2NS43MzYgMjYzLjg3NEMyNjEuNjAxIDI2MS43NzIgMjUyLjgwNyAyNjAuOTM4IDI0OC41NTIgMjYyLjI0NFpNMjY2LjM2NCAyNzYuMTcyQzI2OC43MTQgMjcyLjgzNCAyNjcuNjg2IDI2OS4yMjUgMjYzLjY5IDI2Ni43ODVDMjU2LjA4IDI2Mi4xMzggMjQ0LjU3MSAyNjUuOTgzIDI0NC41NzEgMjczLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["ethereum"],ethereum:{router:{address:"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",api:TL.ROUTER},factory:{address:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",api:TL.FACTORY},pair:{api:TL.PAIR}}};var JS=t=>new ML(Object.assign(ZS,{scope:t,findPath:t=>TL.findPath({...t,exchange:ZS}),pathExists:t=>TL.pathExists({...t,exchange:ZS}),getAmounts:t=>TL.getAmounts({...t,exchange:ZS}),getPrep:t=>TL.getPrep({...t,exchange:ZS}),getTransaction:t=>TL.getTransaction({...t,exchange:ZS})}));function XS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const KS="0x0000000000000000000000000000000000000001",$S="0x0000000000000000000000000000000000000002",tj=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},ej=async({exchange:t,pool:e,outputAmount:n})=>(await PI({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactOutput",params:{path:oI(["address","uint24","address"],[e.path[1],e.fee,e.path[0]]),amountOut:n},cache:5})).amountIn,nj=async({exchange:t,pool:e,inputAmount:n})=>(await PI({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactInput",params:{path:oI(["address","uint24","address"],[e.path[0],e.fee,e.path[1]]),amountIn:n},cache:5})).amountOut,rj=async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=tj({blockchain:t,exchange:e,path:n})).length>2)throw"Uniswap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(e.fees.map((r=>PI({blockchain:Hf[t].name,address:e[t].factory.address,method:"getPool",api:e[t].factory.api,cache:3600,params:[n[0],n[1],r]}).then((e=>({blockchain:t,address:e,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((e=>e.address!=Hf[t].zero)),o=(await Promise.all(o.map((async t=>{try{let n;if(r){n=await nj({exchange:e,pool:t,inputAmount:r});const i=await nj({exchange:e,pool:t,inputAmount:Fp.from(r).mul(Fp.from(10)).toString()}),o=i.div(Fp.from(10)).sub(n).abs();if(!!o.gt(n.div(Fp.from(100)).mul(Fp.from(5))))return}else{n=await ej({exchange:e,pool:t,outputAmount:i});const r=await ej({exchange:e,pool:t,outputAmount:Fp.from(i).mul(Fp.from(10)).toString()}),o=r.div(Fp.from(10)).sub(n).abs();if(!!o.gt(n.div(Fp.from(100)).mul(Fp.from(5))))return}return{...t,amountIn:r||n,amountOut:i||n}}catch(t){}})))).filter(Boolean),r?o.sort(((t,e)=>e.amountOut.gt(t.amountOut)?1:-1))[0]:o.sort(((t,e)=>e.amountIn.lt(t.amountIn)?1:-1))[0]}catch(t){return}};let ij=({blockchain:t,exchange:e,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,oj=async({blockchain:t,exchange:e,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=oI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=oI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await PI({block:o,blockchain:t,address:e[t].quoter.address,api:e[t].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var aj={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await rj({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[t].wrapped.address||r==Hf[t].wrapped.address||(c=[],o||s?(c.push(await rj({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await rj({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await rj({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await rj({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,Hf[t].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await rj({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await rj({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await rj({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await rj({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return XS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[t].currency.address?u.splice(1,0,Hf[t].wrapped.address):XS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[t].currency.address&&u.splice(u.length-1,0,Hf[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:tj({blockchain:t,exchange:e,path:u})}},pathExists:async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await rj({blockchain:t,exchange:e,path:n,amountIn:r||o,amountOut:i||a})}catch(t){return!1}},getAmounts:async({blockchain:t,exchange:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await oj({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await ij({blockchain:t,exchange:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await oj({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await ij({blockchain:t,exchange:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;if((await PI({blockchain:e,address:n,method:"allowance",api:xk[e][20],params:[i,t[e].permit.address]})).lt(r)){return{transaction:{blockchain:e,from:i,to:n,api:xk[e][20],method:"approve",params:[t[e].permit.address,Hf[e].maxInt]}}}{const o=await PI({blockchain:e,address:t[e].permit.address,method:"allowance",api:t[e].permit.api,params:[i,n,t[e].router.address]});if(o.amount.lt(r)||o.expiration-1800{let y,m=[],g=[],v="0";if(f){const t=Tp(f.signature).length;let e;65!==t&&64!==t||(e=function(t){return Cp(Lp([(t=Rp(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}(Rp(f.signature))),m.push("0a"),g.push(_m.encode(["((address token,uint160 amount,uint48 expiration,uint48 nonce) details,address spender,uint256 sigDeadline)","bytes"],[f,e]))}r[0]===Hf[t].currency.address&&(m.push("0b"),g.push(_m.encode(["address","uint256"],[$S,(i||o).toString()])),v=(i||o).toString()),1===n.length?y=oI(["address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1]]):2===n.length&&(y=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]])),h||u?(m.push("00"),g.push(_m.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===Hf[t].currency.address?$S:KS,(i||o).toString(),(a||s).toString(),y,r[0]!==Hf[t].currency.address&&!p]))):(m.push("01"),g.push(_m.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===Hf[t].currency.address?$S:KS,(a||s).toString(),(i||o).toString(),y,r[0]!==Hf[t].currency.address&&!p]))),r[r.length-1]===Hf[t].currency.address&&(m.push("0c"),g.push(_m.encode(["address","uint256"],[KS,(a||s).toString()])));return{blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api,method:"execute",params:{commands:`0x${m.join("")}`,inputs:g},value:v}},ROUTER:[{inputs:[{components:[{internalType:"address",name:"permit2",type:"address"},{internalType:"address",name:"weth9",type:"address"},{internalType:"address",name:"seaportV1_5",type:"address"},{internalType:"address",name:"seaportV1_4",type:"address"},{internalType:"address",name:"openseaConduit",type:"address"},{internalType:"address",name:"nftxZap",type:"address"},{internalType:"address",name:"x2y2",type:"address"},{internalType:"address",name:"foundation",type:"address"},{internalType:"address",name:"sudoswap",type:"address"},{internalType:"address",name:"elementMarket",type:"address"},{internalType:"address",name:"nft20Zap",type:"address"},{internalType:"address",name:"cryptopunks",type:"address"},{internalType:"address",name:"looksRareV2",type:"address"},{internalType:"address",name:"routerRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareToken",type:"address"},{internalType:"address",name:"v2Factory",type:"address"},{internalType:"address",name:"v3Factory",type:"address"},{internalType:"bytes32",name:"pairInitCodeHash",type:"bytes32"},{internalType:"bytes32",name:"poolInitCodeHash",type:"bytes32"}],internalType:"struct RouterParameters",name:"params",type:"tuple"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BalanceTooLow",type:"error"},{inputs:[],name:"BuyPunkFailed",type:"error"},{inputs:[],name:"ContractLocked",type:"error"},{inputs:[],name:"ETHNotAccepted",type:"error"},{inputs:[{internalType:"uint256",name:"commandIndex",type:"uint256"},{internalType:"bytes",name:"message",type:"bytes"}],name:"ExecutionFailed",type:"error"},{inputs:[],name:"FromAddressIsNotOwner",type:"error"},{inputs:[],name:"InsufficientETH",type:"error"},{inputs:[],name:"InsufficientToken",type:"error"},{inputs:[],name:"InvalidBips",type:"error"},{inputs:[{internalType:"uint256",name:"commandType",type:"uint256"}],name:"InvalidCommandType",type:"error"},{inputs:[],name:"InvalidOwnerERC1155",type:"error"},{inputs:[],name:"InvalidOwnerERC721",type:"error"},{inputs:[],name:"InvalidPath",type:"error"},{inputs:[],name:"InvalidReserves",type:"error"},{inputs:[],name:"InvalidSpender",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[],name:"SliceOutOfBounds",type:"error"},{inputs:[],name:"TransactionDeadlinePassed",type:"error"},{inputs:[],name:"UnableToClaim",type:"error"},{inputs:[],name:"UnsafeCast",type:"error"},{inputs:[],name:"V2InvalidPath",type:"error"},{inputs:[],name:"V2TooLittleReceived",type:"error"},{inputs:[],name:"V2TooMuchRequested",type:"error"},{inputs:[],name:"V3InvalidAmountOut",type:"error"},{inputs:[],name:"V3InvalidCaller",type:"error"},{inputs:[],name:"V3InvalidSwap",type:"error"},{inputs:[],name:"V3TooLittleReceived",type:"error"},{inputs:[],name:"V3TooMuchRequested",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RewardsSent",type:"event"},{inputs:[{internalType:"bytes",name:"looksRareClaim",type:"bytes"}],name:"collectRewards",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"parameters",outputs:[{internalType:"address",name:"factory",type:"address"},{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"feeProtocol0Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol0New",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1New",type:"uint8"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"feeProtocol0",type:"uint8"},{internalType:"uint8",name:"feeProtocol1",type:"uint8"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint8",name:"feeProtocol",type:"uint8"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"view",type:"function"}],PERMIT2:[{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"}],name:"AllowanceExpired",type:"error"},{inputs:[],name:"ExcessiveInvalidation",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InsufficientAllowance",type:"error"},{inputs:[{internalType:"uint256",name:"maxAmount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[],name:"InvalidContractSignature",type:"error"},{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidSignatureLength",type:"error"},{inputs:[],name:"InvalidSigner",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"signatureDeadline",type:"uint256"}],name:"SignatureExpired",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"spender",type:"address"}],name:"Lockdown",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint48",name:"newNonce",type:"uint48"},{indexed:!1,internalType:"uint48",name:"oldNonce",type:"uint48"}],name:"NonceInvalidation",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"},{indexed:!1,internalType:"uint48",name:"nonce",type:"uint48"}],name:"Permit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"word",type:"uint256"},{indexed:!1,internalType:"uint256",name:"mask",type:"uint256"}],name:"UnorderedNonceInvalidation",type:"event"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint48",name:"newNonce",type:"uint48"}],name:"invalidateNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"wordPos",type:"uint256"},{internalType:"uint256",name:"mask",type:"uint256"}],name:"invalidateUnorderedNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"}],internalType:"struct IAllowanceTransfer.TokenSpenderPair[]",name:"approvals",type:"tuple[]"}],name:"lockdown",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"nonceBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails[]",name:"details",type:"tuple[]"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitBatch",name:"permitBatch",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],internalType:"struct IAllowanceTransfer.AllowanceTransferDetails[]",name:"transferDetails",type:"tuple[]"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]};const sj={name:"uniswap_v3",label:"Uniswap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIGRhdGEtdGVzdGlkPSJ1bmlzd2FwLWxvZ28iIGNsYXNzPSJyZ3c2ZXo0NHAgcmd3NmV6NGVqIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjAuMzUyNiAxOS45MjQyQzIwLjI5MjggMjAuMTU0OSAyMC4xODg1IDIwLjM3MTUgMjAuMDQ1NSAyMC41NjE4QzE5Ljc3OTMgMjAuOTA4OCAxOS40MjcgMjEuMTc5NCAxOS4wMjM5IDIxLjM0NjZDMTguNjYxNCAyMS41MDM1IDE4LjI3NzQgMjEuNjA1IDE3Ljg4NDkgMjEuNjQ3NUMxNy44MDQyIDIxLjY1NzggMTcuNzIwNiAyMS42NjQxIDE3LjYzOTUgMjEuNjcwM0wxNy42MjYzIDIxLjY3MTNDMTcuMzc3NyAyMS42ODA4IDE3LjEzODcgMjEuNzcgMTYuOTQ0MiAyMS45MjU4QzE2Ljc0OTcgMjIuMDgxNyAxNi42MSAyMi4yOTYgMTYuNTQ1NSAyMi41MzczQzE2LjUxNiAyMi42NTc0IDE2LjQ5NCAyMi43NzkyIDE2LjQ3OTggMjIuOTAyMUMxNi40NTcyIDIzLjA4NzQgMTYuNDQ1NiAyMy4yNzcxIDE2LjQzMyAyMy40ODIzQzE2LjQyNCAyMy42Mjk1IDE2LjQxNDQgMjMuNzg0OCAxNi40IDIzLjk1MjFDMTYuMzE1NiAyNC42MzM3IDE2LjExOTMgMjUuMjk2NSAxNS44MTkyIDI1LjkxMzZDMTUuNz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zz4K",protocol:"uniswap_v3",slippage:!0,fees:[100,500,3e3,1e4],blockchains:["ethereum","bsc","polygon","optimism","arbitrum"],ethereum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:aj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}},bsc:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:aj.ROUTER},factory:{address:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}},polygon:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:aj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}},optimism:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:aj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}},arbitrum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:aj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}},base:{router:{address:"0x198EF79F1F515F02dFE9e3115eD9fC07183f02fC",api:aj.ROUTER},factory:{address:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",api:aj.FACTORY},pool:{api:aj.POOL},quoter:{address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",api:aj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:aj.PERMIT2}}};var uj=t=>new ML(Object.assign(sj,{scope:t,findPath:t=>aj.findPath({...t,exchange:sj}),pathExists:t=>aj.pathExists({...t,exchange:sj}),getAmounts:t=>aj.getAmounts({...t,exchange:sj}),getPrep:t=>aj.getPrep({...t,exchange:sj}),getTransaction:t=>aj.getTransaction({...t,exchange:sj})}));var cj={findPath:async({blockchain:t,tokenIn:e,tokenOut:n})=>{if(![e,n].includes(Hf[t].currency.address)||![e,n].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let r=[e,n];return{path:r,exchangePath:r}},pathExists:async({blockchain:t,path:e})=>!(!e||2!==e.length)&&(e.includes(Hf[t].currency.address)&&e.includes(Hf[t].wrapped.address)),getAmounts:async({path:t,block:e,tokenIn:n,tokenOut:r,amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s})=>(i?o=a=s=i:o?i=a=s=o:s?o=a=i=s:a&&(i=s=o=a),{amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s}),getTransaction:({exchange:t,blockchain:e,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:h})=>{let d={blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api};return n[0]===Hf[e].currency.address&&n[1]===Hf[e].wrapped.address?(d.method="deposit",d.value=r.toString(),d):n[0]===Hf[e].wrapped.address&&n[1]===Hf[e].currency.address?(d.method="withdraw",d.value=0,d.params={wad:r},d):void 0},WETH:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}]};const lj={name:"wavax",label:"Wrapped Avax",logo:Hf.avalanche.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["avalanche"],avalanche:{router:{address:Hf.avalanche.wrapped.address,api:cj.WETH}}};var hj=t=>new ML(Object.assign(lj,{scope:t,findPath:t=>cj.findPath({...t,exchange:lj}),pathExists:t=>cj.pathExists({...t,exchange:lj}),getAmounts:t=>cj.getAmounts({...t,exchange:lj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:lj})}));const dj={name:"wbnb",label:"Wrapped BNB",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCAxOTIgMTkyIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCAxOTIgMTkyOyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0YwQjkwQjt9Cjwvc3R5bGU+CjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik01NCw0MS4xbDQyLTI0LjJsNDIsMjQuMmwtMTUuNCw4LjlMOTYsMzQuOUw2OS40LDUwTDU0LDQxLjF6IE0xMzgsNzEuN2wtMTUuNC04LjlMOTYsNzhMNjkuNCw2Mi43bC0xNS40LDl2MTgKCUw4MC42LDEwNXYzMC41bDE1LjQsOWwxNS40LTlWMTA1TDEzOCw4OS43VjcxLjd6IE0xMzgsMTIwLjN2LTE4bC0xNS40LDguOXYxOEMxMjIuNiwxMjkuMSwxMzgsMTIwLjMsMTM4LDEyMC4zeiBNMTQ4LjksMTI2LjQKCWwtMjYuNiwxNS4zdjE4bDQyLTI0LjJWODdsLTE1LjQsOUMxNDguOSw5NiwxNDguOSwxMjYuNCwxNDguOSwxMjYuNHogTTEzMy41LDU2LjRsMTUuNCw5djE4bDE1LjQtOXYtMThsLTE1LjQtOUwxMzMuNSw1Ni40CglMMTMzLjUsNTYuNHogTTgwLjYsMTQ4LjN2MThsMTUuNCw5bDE1LjQtOXYtMThMOTYsMTU3LjFMODAuNiwxNDguM3ogTTU0LDEyMC4zbDE1LjQsOXYtMTguMUw1NCwxMDIuM0w1NCwxMjAuM0w1NCwxMjAuM3oKCSBNODAuNiw1Ni40bDE1LjQsOWwxNS40LTlMOTYsNDcuNUM5Niw0Ny40LDgwLjYsNTYuNCw4MC42LDU2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg==",slippage:!1,blockchains:["bsc"],bsc:{router:{address:Hf.bsc.wrapped.address,api:cj.WETH}}};var fj=t=>new ML(Object.assign(dj,{scope:t,findPath:t=>cj.findPath({...t,exchange:dj}),pathExists:t=>cj.pathExists({...t,exchange:dj}),getAmounts:t=>cj.getAmounts({...t,ex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IGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["ethereum"],ethereum:{router:{address:Hf.ethereum.wrapped.address,api:cj.WETH}}};var yj=t=>new ML(Object.assign(pj,{scope:t,findPath:t=>cj.findPath({...t,exchange:pj}),pathExists:t=>cj.pathExists({...t,exchange:pj}),getAmounts:t=>cj.getAmounts({...t,exchange:pj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:pj})}));const mj={name:"weth_arbitrum",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbW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kPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["arbitrum"],arbitrum:{router:{address:Hf.arbitrum.wrapped.address,api:cj.WETH}}};var gj=t=>new ML(Object.assign(mj,{scope:t,findPath:t=>cj.findPath({...t,exchange:mj}),pathExists:t=>cj.pathExists({...t,exchange:mj}),getAmounts:t=>cj.getAmounts({...t,exchange:mj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:mj})}));const vj={name:"weth_optimism",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["optimism"],optimism:{router:{address:Hf.optimism.wrapped.address,api:cj.WETH}}};var wj=t=>new ML(Object.assign(vj,{scope:t,findPath:t=>cj.findPath({...t,exchange:vj}),pathExists:t=>cj.pathExists({...t,exchange:vj}),getAmounts:t=>cj.getAmounts({...t,exchange:vj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:vj})}));const bj={name:"weth_base",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLT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ZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["base"],base:{router:{address:Hf.base.wrapped.address,api:cj.WETH}}};var Mj=t=>new ML(Object.assign(bj,{scope:t,findPath:t=>cj.findPath({...t,exchange:bj}),pathExists:t=>cj.pathExists({...t,exchange:bj}),getAmounts:t=>cj.getAmounts({...t,exchange:bj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:bj})}));const Aj={name:"wftm",label:"Wrapped Fantom",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTkyIDE5MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iY2lyY2xlIj4KCTxnIGlkPSJGYW50b20tY2lyY2xlIj4KCQk8Y2lyY2xlIGlkPSJPdmFsIiBmaWxsUnVsZT0iZXZlbm9kZCIgY2xpcF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sMC40LDAuMiwwLjYsMC4yVjgwLjV6IE05OC4yLDgwLjV2MjkuOGMwLjItMC4xLDAuNC0wLjEsMC42LTAuMmwyNy42LTE0LjZjMCwwLDAuMSwwLDAuMSwwbDAsMGwwLDBsLTAuMSwwTDk4LjgsODAuNwoJCQlDOTguNiw4MC42LDk4LjQsODAuNSw5OC4yLDgwLjV6IE0xMjYuNiw2NC40bC0yNC44LDEzbDI0LjgsMTNWNjQuNHogTTY1LjIsNjQuNHYyNi4xbDI0LjgtMTNMNjUuMiw2NC40eiBNOTguNyw0NS4xCgkJCWMtMS40LTAuOC00LTAuOC01LjUsMEw2NS42LDU5LjdjMCwwLTAuMSwwLTAuMSwwbDAsMGwwLDBsMC4xLDBsMjcuNiwxNC42YzEuNCwwLjgsNCwwLjgsNS41LDBsMjcuNi0xNC42YzAsMCwwLjEsMCwwLjEsMGwwLDBsMCwwCgkJCWwtMC4xLDBMOTguNyw0NS4xeiBNMTMwLjcsNDYuNWwxLjcsMS4xbDAuMywwLjJjMC41LDAuMywwLjksMC42LDEuMywwLjhjNC4yLDIuOCw1LjcsNS45LDUuNywxMi4zbDAsMC4yaC00LjNjMC0yLjgtMC4zLTQuNy0xLTYKCQkJYy0wLjUtMS4xLTEuMy0xLjktMi44LTIuOWwtMC4xLTAuMWMtMC4zLTAuMi0wLjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["fantom"],fantom:{router:{address:Hf.fantom.wrapped.address,api:cj.WETH}}};var Ij=t=>new ML(Object.assign(Aj,{scope:t,findPath:t=>cj.findPath({...t,exchange:Aj}),pathExists:t=>cj.pathExists({...t,exchange:Aj}),getAmounts:t=>cj.getAmounts({...t,exchange:Aj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:Aj})}));const Nj={name:"wmatic",label:"Wrapped MATIC",logo:"data:image/svg+xml;base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S4xLTIuOWMwLjctMC40LDEuNi0wLjQsMi4yLDBsNCwyLjNjMC43LDAuNCwxLjEsMS4xLDEuMSwydjQuNmMwLDAuOS0wLjQsMS42LTEuMSwyCglsLTMuOSwyLjNjLTAuNywwLjQtMS41LDAuNC0yLjIsMGwtNC0yLjNjLTAuNy0wLjQtMS4xLTEuMS0xLjEtMnYtMi45TDIxLDI4Ljd2My4xYzAsMC45LDAuNCwxLjYsMS4xLDJsNy41LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw3LjUtNC40YzAuNy0wLjQsMS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg==",protocol:"weth",slippage:!1,blockchains:["polygon"],polygon:{router:{address:Hf.polygon.wrapped.address,api:cj.WETH}}};var Ej=t=>new ML(Object.assign(Nj,{scope:t,findPath:t=>cj.findPath({...t,exchange:Nj}),pathExists:t=>cj.pathExists({...t,exchange:Nj}),getAmounts:t=>cj.getAmounts({...t,exchange:Nj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:Nj})}));const xj={name:"wxdai",label:"Wrapped XDAI",logo:Hf.gnosis.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["gnosis"],gnosis:{router:{address:Hf.gnosis.wrapped.address,api:cj.WETH}}};var kj=t=>new ML(Object.assign(xj,{scope:t,findPath:t=>cj.findPath({...t,exchange:xj}),pathExists:t=>cj.pathExists({...t,exchange:xj}),getAmounts:t=>cj.getAmounts({...t,exchange:xj}),getPrep:t=>{},getTransaction:t=>cj.getTransaction({...t,exchange:xj})}));const Tj=[xS(),uj(),PS(),JS(),TS(),qS(),BS(),US(),SL(),yj(),wj(),Mj(),gj(),fj(),Ej(),Ij(),hj(),kj()];Tj.forEach((t=>{Tj[t.name]=t})),Tj.ethereum=[uj("ethereum"),JS("ethereum"),yj("ethereum")],Tj.ethereum.forEach((t=>{Tj.ethereum[t.name]=t})),Tj.bsc=[PS("bsc"),uj("bsc"),TS("bsc"),fj("bsc")],Tj.bsc.forEach((t=>{Tj.bsc[t.name]=t})),Tj.polygon=[uj("polygon"),BS("polygon"),Ej("polygon")],Tj.polygon.forEach((t=>{Tj.polygon[t.name]=t})),Tj.solana=[xS("solana")],Tj.solana.forEach((t=>{Tj.solana[t.name]=t})),Tj.optimism=[uj("optimism"),wj("optimism")],Tj.optimism.forEach((t=>{Tj.optimism[t.name]=t})),Tj.base=[uj("base"),Mj("base")],Tj.base.forEach((t=>{Tj.base[t.name]=t})),Tj.arbitrum=[uj("arbitrum"),gj("arbitrum")],Tj.arbitrum.forEach((t=>{Tj.arbitrum[t.name]=t})),Tj.fantom=[US("fantom"),Ij("fantom")],Tj.fantom.forEach((t=>{Tj.fantom[t.name]=t})),Tj.avalanche=[qS("avalanche"),hj("avalanche")],Tj.avalanche.forEach((t=>{Tj.avalanche[t.name]=t})),Tj.gnosis=[SL("gnosis"),kj("gnosis")],Tj.gnosis.forEach((t=>{Tj.gnosis[t.name]=t}));Tj.route=({blockchain:t,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>Promise.all(Tj[t].map((t=>t.route({tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})))).then((t=>t.filter(Boolean).sort(((t,e)=>(r||o?BigInt(t.amountOut)BigInt(e.amountIn))?1:(r||o?BigInt(t.amountOut)>BigInt(e.amountOut):BigInt(t.amountIn)Sj||(Sj="object"==typeof r?r:window,Sj);const Dj=()=>(void 0===jj()._Web3ClientConfiguration&&(jj()._Web3ClientConfiguration={}),jj()._Web3ClientConfiguration);function Cj(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class Oj extends ZA{constructor(t,e,n,r){super(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(Hf.findByName(this._network).id)}requestChunk(t,e,n){try{const r=t.map((t=>t.request));return $M(e,JSON.stringify(r)).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(Cj([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else Cj([r,"optionalAccess",t=>t.result])?t.resolve(r.result):t.reject()}))})).catch((e=>{if(n<3&&e&&"SERVER_ERROR"==e.code){const e=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=e>=this._endpoints.length?this._endpoints[0]:this._endpoints[e],this.requestChunk(t,this._endpoint,n+1)}else t.forEach((t=>{t.reject(e)}))}))}catch(e){t.forEach((t=>{t.reject()}))}}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,this._endpoint,1))))}),Dj().batchInterval||10)),i}}const zj=()=>(null==jj()._Web3ClientProviders&&(jj()._Web3ClientProviders={}),jj()._Web3ClientProviders),Pj=(t,e)=>{void 0===zj()[t]&&(zj()[t]=[]);const n=zj()[t].indexOf(e);n>-1&&zj()[t].splice(n,1),zj()[t].unshift(e)},_j=async(t,e,n=!0)=>{let r;zj()[t]=e.map(((r,i)=>new Oj(r,t,e,(()=>{1===zj()[t].length?_j(t,e,n):zj()[t].splice(i,1)}))));let i=jj();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=zj()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=zj()[t][o]}Pj(t,r)};var Bj=async t=>{let e=zj();if(e&&e[t])return e[t][0];let n=jj();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await _j(t,Hf[t].endpoints),e(jj()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},Rj=async t=>{let e=zj();if(e&&e[t])return e[t];let n=jj();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await _j(t,Hf[t].endpoints),e(jj()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]};class Uj extends ql{constructor(t,e,n,r){super(t),this._provider=new ql(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}handleError(t,e,n){if(e<3&&t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new ql(this._endpoint),this.requestChunk(n,e+1)}else n.forEach((e=>{e.reject(t)}))}batchRequest(t,e){return new Promise(((e,n)=>{0===t.length&&e([]);const r=t.map((t=>this._rpcClient.request(t.methodName,t.args)));fetch(this._endpoint,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then((t=>{t.ok?t.json().then((t=>{e(t)})).catch(n):n(`${t.status} ${t.text}`)})).catch(n)}))}requestChunk(t,e){const n=t.map((t=>t.request));try{return this.batchRequest(n,e).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else r?t.resolve(r):t.reject()}))})).catch((n=>this.handleError(n,e,t)))}catch(n){return this.handleError(n,e,t)}}_rpcRequestReplacement(t,e){const n={methodName:t,args:e};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,1))))}),Dj().batchInterval||10)),i}}const Qj=()=>(null==jj()._Web3ClientProviders&&(jj()._Web3ClientProviders={}),jj()._Web3ClientProviders),Yj=(t,e)=>{void 0===Qj()[t]&&(Qj()[t]=[]);const n=Qj()[t].indexOf(e);n>-1&&Qj()[t].splice(n,1),Qj()[t].unshift(e)},Wj=async(t,e,n=!0)=>{let r;Qj()[t]=e.map(((r,i)=>new Uj(r,t,e,(()=>{1===Qj()[t].length?Wj(t,e,n):Qj()[t].splice(i,1)}))));let i=jj();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=Qj()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=Qj()[t][o]}Yj(t,r)};var Fj=async t=>{let e=Qj();if(e&&e[t])return e[t][0];let n=jj();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await Wj(t,Hf[t].endpoints),e(jj()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},Vj=async t=>{let e=Qj();if(e&&e[t])return e[t];let n=jj();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await Wj(t,Hf[t].endpoints),e(jj()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]};let Hj=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];Hj.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],Hj.solana=["solana"];let Gj=()=>(null==jj()._Web3ClientCacheStore&&(jj()._Web3ClientCacheStore={}),jj()._Web3ClientCacheStore),qj=()=>(null==jj()._Web3ClientPromiseStore&&(jj()._Web3ClientPromiseStore={}),jj()._Web3ClientPromiseStore),Zj=function({key:t}){qj()[t]=void 0},Jj=function({call:t,key:e,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:t}){return qj()[t]}({key:e=JSON.stringify(e)});if(a)return a.then(r).catch(i);(function({key:t,promise:e}){return qj()[t]=e,e})({key:e,promise:new Promise(((a,s)=>0===n?t().then((t=>{r(t),a(t)})).catch((t=>{i(t),s(t)})):(o=function({key:t,expires:e}){let n=Gj()[t];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.expiresAt])>Date.now())return n.value}({key:e,expires:n}),o?(r(o),a(o),o):void t().then((t=>{t&&function({key:t,value:e,expires:n}){Gj()[t]={expiresAt:Date.now()+n,value:e}}({key:e,value:t,expires:n}),r(t),a(t)})).catch((t=>{i(t),s(t)})))))}).then((()=>{Zj({key:e})})).catch((()=>{Zj({key:e})}))}))};const Xj=async t=>{if(Hj.evm.includes(t))return await Bj(t);if(Hj.solana.includes(t))return await Fj(t);throw"Unknown blockchain: "+t};const Kj=({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=new PM(t,e,i),s=(({contract:t,method:e,params:n})=>t.interface.fragments.find((t=>t.name==e)).inputs.map(((t,e)=>Array.isArray(n)?n[e]:n[t.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((t=>t.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((t=>t.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},$j=({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a})=>n?Kj({address:e,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:t,provider:e})=>e.getBalance(t))({address:e,provider:a}):"transactionCount"===r?(({address:t,provider:e})=>e.getTransactionCount(t))({address:e,provider:a}):void 0;const tD=async({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=of),await(async({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Xs(t));if(a&&a.data)return e.decode(a.data)})({address:e,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Xs(e),i).then((t=>n?t.map((t=>(t.data=n.decode(t.account.data),t))):t));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Xs(e));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:t,provider:e})=>e.getBalance(new Xs(t)))({address:e,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((t=>u.toString().match(t)))){let u=s[s.indexOf(a)+1]||s[0];return tD({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const eD=async function(t,e){const{blockchain:n,address:r,method:i}=(t=>{if("object"==typeof t)return t;let e=t.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==e.groups.part2?e.groups.part1.match(/\d/)?{blockchain:e.groups.blockchain,address:e.groups.part1}:{blockchain:e.groups.blockchain,method:e.groups.part1}:{blockchain:e.groups.blockchain,address:e.groups.part1,method:e.groups.part2}})(t),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:h}=("object"==typeof t?t:e)||{};return await Jj({expires:s||0,key:h||[n,r,i,a,u],call:async()=>{if(Hj.evm.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||Dj().strategy||"failover",a=a||Dj().timeout||void 0,"fastest"===s){const s=await Rj(t);let u=[];const c=s.map((a=>new Promise((s=>{u.push($j({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await Bj(t),u=$j({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(Hj.solana.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||Dj().strategy||"failover",a=a||Dj().timeout||void 0;const u=await Vj(t);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(tD({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await Fj(t),c=tD({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})},nD=async({wSolSenderAccountKeypair:t,paymentRoute:e})=>{if(!t)return;const n=e.fromToken.address===Hf.solana.currency.address?new rf(e.fromAmount):new rf("0"),r=await Xj("solana"),i=new rf(await r.getMinimumBalanceForRentExemption(xk.solana.TOKEN_LAYOUT.span)),o=e.fromAddress,a=n.add(i);return[Wu.createAccount({fromPubkey:new Xs(o),newAccountPubkey:t.publicKey,programId:new Xs(xk.solana.TOKEN_PROGRAM),space:xk.solana.TOKEN_LAYOUT.span,lamports:a}),xk.solana.initializeAccountInstruction({account:t.publicKey.toString(),token:Hf.solana.wrapped.address,owner:o})]},rD=async({wSolEscrowAccountKeypair:t,paymentRoute:e})=>{if(!t)return;const n=await Xj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(xk.solana.TOKEN_LAYOUT.span)),i=await mD();return[Wu.createAccount({fromPubkey:new Xs(e.fromAddress),newAccountPubkey:t.publicKey,programId:new Xs(xk.solana.TOKEN_PROGRAM),space:xk.solana.TOKEN_LAYOUT.span,lamports:r}),xk.solana.initializeAccountInstruction({account:t.publicKey.toString(),token:Hf.solana.wrapped.address,owner:i.toString()})]},iD=({paymentRoute:t})=>{let e=[...t.exchangeRoutes[0].path];return e.indexOf(Hf.solana.currency.address)>-1&&e.splice(e.indexOf(Hf.solana.currency.address),1),e.indexOf(t.fromToken.address)>-1&&e.splice(e.indexOf(t.fromToken.address),1),e.indexOf(t.toToken.address)>-1&&e.splice(e.indexOf(t.toToken.address),1),2===e.length&&e[0]===Hf.solana.wrapped.address?e[1]:e[0]},oD=async({paymentRoute:t})=>await xk.solana.findProgramAddress({token:iD({paymentRoute:t}),owner:t.fromAddress}),aD=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||bD(t.exchangeRoutes[0].path).length<=2)return;return await(async({paymentRoute:t})=>await eD({blockchain:"solana",address:await oD({paymentRoute:t}),api:xk.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:t})?void 0:xk.solana.createAssociatedTokenAccountInstruction({token:iD({paymentRoute:t}),owner:t.fromAddress,payer:t.fromAddress})},sD=async({wSolSenderAccountKeypair:t,paymentRoute:e})=>{if(t)return xk.solana.closeAccountInstruction({account:t.publicKey.toString(),owner:e.fromAddress})},uD=async({from:t})=>{let e=[nf.from("payments"),new Xs(t).toBuffer()],[n]=await Xs.findProgramAddress(e,new Xs(Lj.solana.address));return n},cD=async({from:t})=>{let e=(await uD({from:t})).toString();return await eD({blockchain:"solana",address:e,api:pf([vf("anchorDiscriminator"),vf("nonce")]),cache:1e3})},lD=async({from:t})=>{if(await cD({from:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t}),isSigner:!1,isWritable:!0}],n=nf.alloc(Lj.solana.api.createPaymentsAccount.layout.span);return Lj.solana.api.createPaymentsAccount.layout.encode({anchorDiscriminator:Lj.solana.api.createPaymentsAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Lj.solana.address),data:n})},hD=async({paymentRoute:t})=>await xk.solana.findProgramAddress({token:t.fromToken.address,owner:t.fromAddress}),dD=async({paymentRoute:t})=>await xk.solana.findProgramAddress({token:t.toToken.address,owner:t.toAddress}),fD=async({paymentRoute:t})=>{if(t.toToken.address===Hf.solana.currency.address){const e=await eD({blockchain:"solana",method:"balance",address:t.toAddress}),n=await Xj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(0)),i=new rf(t.toAmount);if(new rf(e).add(i).gt(r))return;return Wu.transfer({fromPubkey:new Xs(t.fromAddress),toPubkey:new Xs(t.toAddress),lamports:r.sub(i)})}{const e=t.toToken.address;if(await(async({paymentRoute:t})=>await xk.solana.findAccount({token:t.toToken.address,owner:t.toAddress}))({paymentRoute:t}))return;return xk.solana.createAssociatedTokenAccountInstruction({token:e,owner:t.toAddress,payer:t.fromAddress})}},pD=async({paymentRoute:t})=>await xk.solana.findProgramAddress({token:t.toToken.address,owner:t.fee.receiver}),yD=async({paymentRoute:t})=>{if(t.fee){if(t.toToken.address===Hf.solana.currency.address){const e=await eD({blockchain:"solana",method:"balance",address:t.fee.receiver}),n=await Xj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(0)),i=new rf(t.feeAmount);if(new rf(e).add(i).gt(r))return;return Wu.transfer({fromPubkey:new Xs(t.fromAddress),toPubkey:new Xs(t.fee.receiver),lamports:r.sub(i)})}{const e=t.toToken.address;if(await(async({paymentRoute:t})=>await xk.solana.findAccount({token:t.toToken.address,owner:t.fee.receiver}))({paymentRoute:t}))return;return xk.solana.createAssociatedTokenAccountInstruction({token:e,owner:t.fee.receiver,payer:t.fromAddress})}}},mD=async()=>{let t=[nf.from("escrow_sol")],[e,n]=await Xs.findProgramAddress(t,new Xs(Lj.solana.address));return e},gD=async({paymentRoute:t})=>{let e=[nf.from("escrow"),new Xs(t.toToken.address===Hf.solana.currency.address?Hf.solana.wrapped.address:t.toToken.address).toBuffer()],[n,r]=await Xs.findProgramAddress(e,new Xs(Lj.solana.address));return n},vD=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||t.toToken.address===Hf.solana.currency.address)return;if(await(async({paymentRoute:t})=>await eD({blockchain:"solana",address:(await gD({paymentRoute:t})).toString(),api:xk.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:new Xs(t.toToken.address===Hf.solana.currency.address?Hf.solana.wrapped.address:t.toToken.address),isSigner:!1,isWritable:!0},{pubkey:await gD({paymentRoute:t}),isSigner:!1,isWritable:!0}],n=nf.alloc(Lj.solana.api.createEscrowTokenAccount.layout.span);return Lj.solana.api.createEscrowTokenAccount.layout.encode({anchorDiscriminator:Lj.solana.api.createEscrowTokenAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Lj.solana.address),data:n})},wD=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||t.toToken.address!=Hf.solana.currency.address)return;if(await(async({paymentRoute:t})=>await eD({blockchain:"solana",address:(await mD()).toString(),api:pf([vf("amount"),hf("owner")]),cache:1e3}))({paymentRoute:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await mD(),isSigner:!1,isWritable:!0}],n=nf.alloc(Lj.solana.api.createEscrowSolAccount.layout.span);return Lj.solana.api.createEscrowSolAccount.layout.encode({anchorDiscriminator:Lj.solana.api.createEscrowSolAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Lj.solana.address),data:n})},bD=t=>t.filter((t=>t!==Hf.solana.currency.address)),MD=async({paymentRoute:t,wSolSenderAccountKeypair:e,wSolEscrowAccountKeypair:n,nonce:r,deadline:i})=>{switch((({paymentRoute:t})=>{if(t.fromToken.address===Hf.solana.currency.address&&t.toToken.address===Hf.solana.currency.address)return"routeSol";if(t.fromToken.address!==Hf.solana.currency.address&&t.toToken.address!==Hf.solana.currency.address&&0===t.exchangeRoutes.length)return"routeToken";if(t.exchangeRoutes.length>0&&2===bD(t.exchangeRoutes[0].path).length)return t.toToken.address===Hf.solana.currency.address?"routeOrcaSwapSolOut":"routeOrcaSwap";if(t.exchangeRoutes.length>0&&bD(t.exchangeRoutes[0].path).length>2)return t.toToken.address===Hf.solana.currency.address?"routeOrcaTwoHopSwapSolOut":"routeOrcaTwoHopSwap";throw"Payment method does not exist!"})({paymentRoute:t})){case"routeSol":return await(async({paymentRoute:t,nonce:e,deadline:n})=>{const r=new Xs(t.toAddress),i=t.fee?new Xs(t.fee.receiver):r,o=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0}],a=nf.alloc(Lj.solana.api.routeSol.layout.span);return Lj.solana.api.routeSol.layout.encode({anchorDiscriminator:Lj.solana.api.routeSol.anchorDiscriminator,nonce:e,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(n)},a),new gu({keys:o,programId:new Xs(Lj.solana.address),data:a})})({paymentRoute:t,nonce:r,deadline:i});case"routeToken":return await(async({paymentRoute:t,nonce:e,deadline:n})=>{const r=await hD({paymentRoute:t}),i=await dD({paymentRoute:t}),o=t.fee?await pD({paymentRoute:t}):i,a=[{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(r),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0}],s=nf.alloc(Lj.solana.api.routeToken.layout.span);return Lj.solana.api.routeToken.layout.encode({anchorDiscriminator:Lj.solana.api.routeToken.anchorDiscriminator,nonce:e,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(n)},s),new gu({keys:a,programId:new Xs(Lj.solana.address),data:s})})({paymentRoute:t,nonce:r,deadline:i});case"routeOrcaSwap":return await(async({paymentRoute:t,nonce:e,wSolSenderAccountKeypair:n,deadline:r})=>{const i=n?n.publicKey:await hD({paymentRoute:t}),o=await dD({paymentRoute:t}),a=t.fee?await pD({paymentRoute:t}):o,s=await gD({paymentRoute:t}),u=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Lj.solana.ammProgram)),c=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]).decode(u.data),l=[{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Lj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},u.keys[2],u.keys[4],u.keys[6],u.keys[7],u.keys[8],u.keys[9],u.keys[10],{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0},{pubkey:new Xs(a),isSigner:!1,isWritable:!0}],h=nf.alloc(Lj.solana.api.routeOrcaSwap.layout.span);return Lj.solana.api.routeOrcaSwap.layout.encode({anchorDiscriminator:Lj.solana.api.routeOrcaSwap.anchorDiscriminator,nonce:e,amountIn:c.amount,sqrtPriceLimit:c.sqrtPriceLimit,amountSpecifiedIsInput:c.amountSpecifiedIsInput,aToB:c.aToB,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},h),new gu({keys:l,programId:new Xs(Lj.solana.address),data:h})})({paymentRoute:t,nonce:r,wSolSenderAccountKeypair:e,deadline:i});case"routeOrcaSwapSolOut":return await(async({paymentRoute:t,nonce:e,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=await hD({paymentRoute:t}),o=n.publicKey,a=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Lj.solana.ammProgram)),s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]).decode(a.data),u=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Lj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},a.keys[2],a.keys[4],a.keys[6],a.keys[7],a.keys[8],a.keys[9],a.keys[10],{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:await mD(),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.fee?t.fee.receiver:t.toAddress),isSigner:!1,isWritable:!0}],c=nf.alloc(Lj.solana.api.routeOrcaSwapSolOut.layout.span);return Lj.solana.api.routeOrcaSwapSolOut.layout.encode({anchorDiscriminator:Lj.solana.api.routeOrcaSwapSolOut.anchorDiscriminator,nonce:e,amountIn:s.amount,sqrtPriceLimit:s.sqrtPriceLimit,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToB:s.aToB,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},c),new gu({keys:u,programId:new Xs(Lj.solana.address),data:c})})({paymentRoute:t,nonce:r,wSolEscrowAccountKeypair:n,deadline:i});case"routeOrcaTwoHopSwap":return await(async({paymentRoute:t,nonce:e,wSolSenderAccountKeypair:n,deadline:r})=>{const i=new Xs(await dD({paymentRoute:t})),o=t.fee?new Xs(await pD({paymentRoute:t})):i,a=await gD({paymentRoute:t}),s=new Xs(await oD({paymentRoute:t})),u=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Lj.solana.ammProgram)),c=n?n.publicKey:new Xs(await hD({paymentRoute:t})),l=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]).decode(u.data),h=[{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Lj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},u.keys[2],u.keys[3],{pubkey:c,isSigner:!1,isWritable:!0},u.keys[5],u.keys[7],{pubkey:s,isSigner:!1,isWritable:!0},u.keys[9],u.keys[11],u.keys[12],u.keys[13],u.keys[14],u.keys[15],u.keys[16],u.keys[17],u.keys[18],u.keys[19],{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0}],d=nf.alloc(Lj.solana.api.routeOrcaTwoHopSwap.layout.span);return Lj.solana.api.routeOrcaTwoHopSwap.layout.encode({anchorDiscriminator:Lj.solana.api.routeOrcaTwoHopSwap.anchorDiscriminator,nonce:e,amountIn:l.amount,amountSpecifiedIsInput:l.amountSpecifiedIsInput,aToBOne:l.aToBOne,aToBTwo:l.aToBTwo,sqrtPriceLimitOne:l.sqrtPriceLimitOne,sqrtPriceLimitTwo:l.sqrtPriceLimitTwo,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},d),new gu({keys:h,programId:new Xs(Lj.solana.address),data:d})})({paymentRoute:t,nonce:r,wSolSenderAccountKeypair:e,deadline:i});case"routeOrcaTwoHopSwapSolOut":return await(async({paymentRoute:t,nonce:e,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=new Xs(await oD({paymentRoute:t})),o=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Lj.solana.ammProgram)),a=new Xs(await hD({paymentRoute:t})),s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]).decode(o.data),u=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(xk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Lj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await uD({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},o.keys[2],o.keys[3],o.keys[5],o.keys[7],{pubkey:i,isSigner:!1,isWritable:!0},o.keys[9],o.keys[11],o.keys[12],o.keys[13],o.keys[14],o.keys[15],o.keys[16],o.keys[17],o.keys[18],o.keys[19],{pubkey:n.publicKey,isSigner:!1,isWritable:!0},{pubkey:await mD(),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.fee?t.fee.receiver:t.toAddress),isSigner:!1,isWritable:!0}],c=nf.alloc(Lj.solana.api.routeOrcaTwoHopSwapSolOut.layout.span);return Lj.solana.api.routeOrcaTwoHopSwapSolOut.layout.encode({anchorDiscriminator:Lj.solana.api.routeOrcaTwoHopSwapSolOut.anchorDiscriminator,nonce:e,amountIn:s.amount,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToBOne:s.aToBOne,aToBTwo:s.aToBTwo,sqrtPriceLimitOne:s.sqrtPriceLimitOne,sqrtPriceLimitTwo:s.sqrtPriceLimitTwo,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},c),new gu({keys:u,programId:new Xs(Lj.solana.address),data:c})})({paymentRoute:t,nonce:r,wSolEscrowAccountKeypair:n,deadline:i})}},AD=async({paymentRoute:t})=>{const e=await cD({from:t.fromAddress}),n=Math.ceil((new Date).getTime()/1e3)+1800,r=(t=>t?t.nonce:new rf("0"))(e),i=await(async({paymentRoute:t})=>{if(t.fromToken.address===Hf.solana.currency.address&&t.toToken.address!==Hf.solana.currency.address)return Zl.generate()})({paymentRoute:t}),o=await(async({paymentRoute:t})=>{if(t.fromToken.address!==Hf.solana.currency.address&&t.toToken.address===Hf.solana.currency.address)return Zl.generate()})({paymentRoute:t});let a=(await Promise.all([lD({from:t.fromAddress}),nD({paymentRoute:t,wSolSenderAccountKeypair:i}),aD({paymentRoute:t}),fD({paymentRoute:t}),yD({paymentRoute:t}),wD({paymentRoute:t}),rD({paymentRoute:t,wSolEscrowAccountKeypair:o}),vD({paymentRoute:t}),MD({paymentRoute:t,wSolSenderAccountKeypair:i,wSolEscrowAccountKeypair:o,nonce:r,deadline:n}),sD({paymentRoute:t,wSolSenderAccountKeypair:i})])).filter(Boolean).flat();const s={blockchain:t.blockchain,instructions:a,signers:[i,o].filter(Boolean),alts:[Lj.solana.alt]};return s.deadline=n,s.nonce=r.toString(),s},ID=[{inputs:[{internalType:"address",name:"_PERMIT2",type:"address"},{internalType:"address",name:"_FORWARDER",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ExchangeCallFailed",type:"error"},{inputs:[],name:"ExchangeCallMissing",type:"error"},{inputs:[],name:"ExchangeNotApproved",type:"error"},{inputs:[],name:"ForwardingPaymentFailed",type:"error"},{inputs:[],name:"InsufficientBalanceInAfterPayment",type:"error"},{inputs:[],name:"InsufficientBalanceOutAfterPayment",type:"error"},{inputs:[],name:"NativeFeePaymentFailed",type:"error"},{inputs:[],name:"NativePaymentFailed",type:"error"},{inputs:[],name:"PaymentDeadlineReached",type:"error"},{inputs:[],name:"PaymentToZeroAddressNotAllowed",type:"error"},{inputs:[],name:"WrongAmountPaidIn",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Disabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Enabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"InternalTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"FORWARDER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"exchange",type:"address"},{internalType:"bool",name:"enabled",type:"bool"}],name:"enable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"exchanges",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IPermit2.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IPermit2.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var ND={ethereum:{address:"0x6466F27B169C908Ba8174d80aEfa7173CbC3D0c7",api:ID},bsc:{address:"0x7ea09401db4692a8AEF4111b75bD32AE758f552A",api:ID},polygon:{address:"0x50CFAB577623B1359602E11514a9482B061A941e",api:ID},fantom:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:ID},avalanche:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:ID},gnosis:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:ID},arbitrum:{address:"0xA1cfbeeF344A52e18f748fd6a126f9426A40fbc7",api:ID},optimism:{address:"0x8698E529E9867eEbcC68b4792daC627cd8870736",api:ID},base:{address:"0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11",api:ID}},ED={...ND,...Lj},xD="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},kD="object"==typeof xD&&xD&&xD.Object===Object&&xD,TD="object"==typeof self&&self&&self.Object===Object&&self,LD=(kD||TD||Function("return this")()).Symbol;LD&&LD.toStringTag,LD&&LD.toStringTag;const SD=t=>{switch(t){case"solana":return 125e-6;case"gnosis":return.009;case"base":return.0095;case"optimism":return.0096;case"polygon":return.011;case"fantom":return.05;case"avalanche":return.1;case"arbitrum":return.11;case"bsc":return.2;case"ethereum":return 10;default:return 100}},jD={arbitrum:{[Hf.arbitrum.wrapped.address]:"0x7E655088214d0657251A51aDccE9109CFd23B5B5"},avalanche:{[Hf.avalanche.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},base:{[Hf.base.wrapped.address]:"0xD1711710843B125a6a01FfDF9b95fDc3064BeF7A"},bsc:{[Hf.bsc.wrapped.address]:"0xeEb80d14abfB058AA78DE38813fe705c3e3b243E"},ethereum:{[Hf.ethereum.wrapped.address]:"0x298f4980525594b3b982779cf74ba76819708D43"},fantom:{[Hf.fantom.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},gnosis:{[Hf.gnosis.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},optimism:{[Hf.optimism.wrapped.address]:"0x69594057e2C0224deb1180c7a5Df9ec9d5B611B5"},polygon:{[Hf.polygon.wrapped.address]:"0xaE59C9d3E055BdFAa583E169aA5Ebe395689476a"},solana:{}},DD=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?t.toAddress:t.toToken.address:ND[t.blockchain].address,CD=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?void 0:xk[t.blockchain].DEFAULT:ND[t.blockchain].api,OD=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?void 0:"transfer":"pay",zD=async({paymentRoute:t})=>{if(t.directTransfer&&!t.fee)return t.toToken.address==Hf[t.blockchain].currency.address?void 0:[t.toAddress,t.toAmount];{const e=Math.ceil(new Date/1e3)+3600,n=t.exchangeRoutes[0],r=(({exchangeRoute:t,blockchain:e})=>void 0===t?0:"uniswap_v3"===t.exchange.name||t.exchange[e].router.address===Hf[e].wrapped.address?2:1)({exchangeRoute:n,blockchain:t.blockchain}),i=n?await n.getTransaction({account:ND[t.blockchain].address,inputTokenPushed:2===r}):void 0,o=i?(({exchangeTransaction:t})=>{const e=new PM(t.to,t.api),n=t.method,r=t.params;let i,o,a;return o=e.interface.fragments.find((t=>!(t.name!=n||t.inputs&&r&&"object"==typeof r&&t.inputs.length!=Object.keys(r).length))),1===o.inputs.length&&"tuple"===o.inputs[0].type?(i=n,a=[r[o.inputs[0].name]]):(i=`${n}(${o.inputs.map((t=>t.type)).join(",")})`,a=o.inputs.map((t=>{if("tuple"===t.type){let e={};return t.components.forEach(((n,i)=>{e[n.name]=r[t.name][i]})),i=n,e}return r[t.name]}))),e.interface.encodeFunctionData(i,a)})({exchangeTransaction:i}):Hf[t.blockchain].zero;let a=Hf[t.blockchain].zero;return n&&(a="bsc"===t.blockchain&&"pancakeswap_v3"===n.exchange.name&&t.toToken.address===Hf[t.blockchain].currency.address?n.exchange[t.blockchain].smartRouter.address:jD[i.blockchain][n.exchange[t.blockchain].router.address]||n.exchange[t.blockchain].router.address),{payment:{amountIn:t.fromAmount,paymentAmount:t.toAmount,feeAmount:t.feeAmount||0,tokenInAddress:t.fromToken.address,exchangeAddress:a,tokenOutAddress:t.toToken.address,paymentReceiverAddress:t.toAddress,feeReceiverAddress:t.fee?t.fee.receiver:Hf[t.blockchain].zero,exchangeType:r,receiverType:0,exchangeCallData:o,receiverCallData:Hf[t.blockchain].zero,deadline:e}}}},PD=({paymentRoute:t})=>t.fromToken.address==Hf[t.blockchain].currency.address?t.directTransfer?t.toAmount.toString():t.fromAmount.toString():Fp.from("0").toString();let _D=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];_D.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],_D.solana=["solana"];const BD=({paymentRoute:t,fee:e})=>{if(_D.evm.includes(t.blockchain))return(async({paymentRoute:t})=>({blockchain:t.blockchain,to:DD({paymentRoute:t}),api:CD({paymentRoute:t}),method:OD({paymentRoute:t}),params:await zD({paymentRoute:t}),value:PD({paymentRoute:t})}))({paymentRoute:t,fee:e});if(_D.solana.includes(t.blockchain))return AD({paymentRoute:t,fee:e});throw"Blockchain not supported!"};function RD(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class UD{constructor({blockchain:t,fromAddress:e,fromToken:n,fromAmount:r,fromDecimals:i,fromBalance:o,toToken:a,toAmount:s,toDecimals:u,toAddress:c,fee:l,feeAmount:h,exchangeRoutes:d,approvalRequired:f,approvalTransaction:p,directTransfer:y}){this.blockchain=t,this.fromAddress=e,this.fromToken=n,this.fromAmount=RD([r||s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.fromDecimals=i,this.fromBalance=o,this.toToken=a,this.toAmount=RD([s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.toDecimals=u,this.toAddress=c,this.fee=l,this.feeAmount=h,this.exchangeRoutes=d||[],this.approvalRequired=f,this.approvalTransaction=p,this.directTransfer=y,this.getTransaction=async()=>await BD({paymentRoute:this})}}function QD({assets:t,blacklist:e,accept:n,from:r}){return Promise.resolve(WD({assets:t,blacklist:e})).then((t=>function({assets:t,accept:e,from:n}){return Promise.all(t.map((async t=>{let r=e.filter((e=>e.blockchain==t.blockchain)),i=new xk(t);return Promise.all(r.map((async e=>{if(e.token&&e.amount){let r=e.blockchain,o=t.decimals,a=new xk({blockchain:r,address:e.token}),s=await a.decimals(),u=(await a.BigNumber(e.amount)).toString();return new UD({blockchain:r,fromToken:i,fromDecimals:o,toToken:a,toAmount:u,toDecimals:s,fromBalance:t.balance,fromAddress:n[e.blockchain],toAddress:e.toAddress,fee:e.fee})}if(e.fromToken&&e.fromAmount&&i.address.toLowerCase()==e.fromToken.toLowerCase()){let r=e.blockchain,o=(await i.BigNumber(e.fromAmount)).toString(),a=t.decimals,s=new xk({blockchain:r,address:e.toToken}),u=await s.decimals();return new UD({blockchain:r,fromToken:i,fromDecimals:a,fromAmount:o,toToken:s,toDecimals:u,fromBalance:t.balance,fromAddress:n[e.blockchain],toAddress:e.toAddress,fee:e.fee})}})))}))).then((t=>t.flat().filter((t=>t))))}({assets:t,accept:n,from:r}))).then((t=>qD({routes:t}))).then(FD).then(VD).then(HD).then((t=>KD({routes:t}))).then(GD).then(tC).then($D).then((t=>t.map((t=>new UD(t)))))}function YD({accept:t,from:e,whitelist:n,blacklist:r,drip:i}){if(t.some((t=>t&&t.fee&&"string"==typeof t.fee.amount&&t.fee.amount.match(/\.\d\d+\%/))))throw"Only up to 1 decimal is supported for fee amounts!";return new Promise((async(o,a)=>{let s=[],u=[];if(n)for(const t in n)(n[t]||[]).forEach((e=>{u.push(t),s.push({blockchain:t,address:e})}));else t.forEach((t=>{u.push(t.blockchain),s.push({blockchain:t.blockchain,address:t.token||t.toToken})}));[...new Set(u)].forEach((t=>{s.find((e=>e.blockchain===t&&e.address===Hf[t].currency.address))||s.push({blockchain:t,address:Hf[t].currency.address})})),s.sort(((t,e)=>SD(t.blockchain)[t.blockchain,t.address.toLowerCase()].join(""))),f=()=>Math.ceil(new Date),p=f();setTimeout((()=>{l.forEach((t=>y(YD,!1)))}),3e3);const y=(t,e=!0)=>{try{const n={blockchain:t.blockchain,address:t.fromToken.address},r=[n.blockchain,n.address.toLowerCase()].join(""),o=f()-p>3e3;if(h.indexOf(r)>-1)return;if(d.indexOf(r)===c){if(h.push(r),i(t),c+=1,!e)return;l.forEach((e=>y(t,!1)))}else c>=d.length||o?(-1===d.indexOf(r)||c>=d.length||o)&&(h.push(r),i(t)):l.find((t=>t.blockchain===n.blockchain&&t.address.toLowerCase()===n.address.toLowerCase()))||(l.push(n),l.sort(((t,e)=>((t,e,n)=>{if(!t||0===t.length)return 0;let r=t.indexOf([e.blockchain,e.address.toLowerCase()].join("")),i=t.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{QD({assets:[n],blacklist:r,accept:t,from:e}).then((t=>{RD([t,"optionalAccess",t=>t.length])&&y(t[0])}))}:void 0});let g=await QD({assets:m,blacklist:r,accept:t,from:e})||[];g.assets=m,o(g)}))}let WD=({assets:t,blacklist:e})=>null==e?t:t.filter((t=>null==e[t.blockchain]||!e[t.blockchain].find((e=>e.toLowerCase()==t.address.toLowerCase())))),FD=async t=>await Promise.all(t.map((t=>t.directTransfer?[]:t.toToken&&t.toAmount?Tj.route({blockchain:t.blockchain,tokenIn:t.fromToken.address,tokenOut:t.toToken.address,amountOutMin:t.toAmount,fromAddress:t.fromAddress,toAddress:t.toAddress}):t.fromToken&&t.fromAmount?Tj.route({blockchain:t.blockchain,tokenIn:t.fromToken.address,tokenOut:t.toToken.address,amountIn:t.fromAmount,fromAddress:t.fromAddress,toAddress:t.toAddress}):void 0))).then((e=>t.map(((t,n)=>(t.exchangeRoutes=e[n],t))))),VD=t=>t.filter((t=>0!=t.exchangeRoutes.length||t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase())),HD=async t=>t.filter((t=>t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()?Fp.from(t.fromBalance).gte(Fp.from(t.toAmount)):t.fromAmount&&t.toAmount?Fp.from(t.fromBalance).gte(Fp.from(t.exchangeRoutes[0].amountInMax)):t.exchangeRoutes[0]&&t.exchangeRoutes[0].amountIn?Fp.from(t.fromBalance).gte(Fp.from(t.exchangeRoutes[0].amountIn)):void 0)),GD=t=>Promise.all(t.map((t=>"solana"===t.blockchain?Promise.resolve(Hf.solana.maxInt):t.fromToken.allowance(t.fromAddress,ED[t.blockchain].address).catch((()=>{}))))).then((e=>(t.map(((n,r)=>{void 0===e[r]||n.directTransfer||n.fromToken.address.toLowerCase()==Hf[n.blockchain].currency.address.toLowerCase()||"solana"===n.blockchain?t[r].approvalRequired=!1:(t[r].approvalRequired=Fp.from(n.fromAmount).gte(Fp.from(e[r])),t[r].approvalRequired&&(t[r].approvalTransaction={blockchain:n.blockchain,to:n.fromToken.address,api:xk[n.blockchain].DEFAULT,method:"approve",params:[ED[n.blockchain].address,Hf[n.blockchain].maxInt]}))})),t))),qD=({routes:t})=>t.map((t=>(_D.evm.includes(t.blockchain)?t.directTransfer=t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()&&null==t.fee:"solana"===t.blockchain&&(t.directTransfer=t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()),t))),ZD=({paymentRoute:t,exchangeRoute:e})=>{let n,r,i;return e?(e&&e.exchange.wrapper,n=e.amountIn.toString(),r=JD({amount:e.amountOutMin.toString(),paymentRoute:t})):(n=t.fromAmount,r=JD({amount:t.fromAmount,paymentRoute:t})),t.fee&&(i=XD({paymentRoute:t})),{fromAmount:n,toAmount:r,feeAmount:i}},JD=({amount:t,paymentRoute:e})=>{if(e.fee){let n=XD({paymentRoute:e});return Fp.from(t).sub(n).toString()}return t},XD=({paymentRoute:t})=>{if("string"==typeof t.fee.amount&&t.fee.amount.match("%"))return Fp.from(t.toAmount).mul(10*parseFloat(t.fee.amount)).div(1e3).toString();if("string"==typeof t.fee.amount)return t.fee.amount;if("number"==typeof t.fee.amount)return cI(t.fee.amount.toString(),t.toDecimals).toString();throw"Unknown fee amount type!"},KD=({routes:t})=>t.map((t=>{if(_D.evm.includes(t.blockchain))if(t.directTransfer&&!t.fee)t.fromAmount=t.toAmount;else{let{fromAmount:e,toAmount:n,feeAmount:r}=ZD({paymentRoute:t,exchangeRoute:t.exchangeRoutes[0]});t.fromAmount=e,t.toAmount=n,t.fee&&(t.feeAmount=r)}else if(_D.solana.includes(t.blockchain)){let{fromAmount:e,toAmount:n,feeAmount:r}=ZD({paymentRoute:t,exchangeRoute:t.exchangeRoutes[0]});t.fromAmount=e,t.toAmount=n,t.fee&&(t.feeAmount=r)}return t})),$D=t=>t.filter(((e,n)=>null==t.find(((t,r)=>e.fromToken.address==t.fromToken.address&&(e.fromToken.blockchain==t.fromToken.blockchain&&(!(!t.directTransfer||e.directTransfer)||(!(!Fp.from(t.fromAmount).lt(Fp.from(e.fromAmount))||e.directTransfer)||(t.fromAmount==e.fromAmount&&r{let e=-1;return t.sort(((t,n)=>SD(t.fromToken.blockchain)0){for(o+=a,e=1;en)throw Error(Fk+t)}function iT(t,e,n,r){var i,o,a,s;for(o=t[0];o>=10;o/=10)--e;return--e<0?(e+=7,i=0):(i=Math.ceil((e+1)/7),e%=7),o=Gk(10,7-e),s=t[i]%o|0,null==r?e<3?(0==e?s=s/100|0:1==e&&(s=s/10|0),a=n<4&&99999==s||n>3&&49999==s||5e4==s||0==s):a=(n<4&&s+1==o||n>3&&s+1==o/2)&&(t[i+1]/o/100|0)==Gk(10,e-2)-1||(s==o/2||0==s)&&0==(t[i+1]/o/100|0):e<4?(0==e?s=s/1e3|0:1==e?s=s/100|0:2==e&&(s=s/10|0),a=(r||n<4)&&9999==s||!r&&n>3&&4999==s):a=((r||n<4)&&s+1==o||!r&&n>3&&s+1==o/2)&&(t[i+1]/o/1e3|0)==Gk(10,e-3)-1,a}function oT(t,e,n){for(var r,i,o=[0],a=0,s=t.length;an-1&&(void 0===o[r+1]&&(o[r+1]=0),o[r+1]+=o[r]/n|0,o[r]%=n)}return o.reverse()}eT.absoluteValue=eT.abs=function(){var t=new this.constructor(this);return t.s<0&&(t.s=1),sT(t)},eT.ceil=function(){return sT(new this.constructor(this),this.e+1,2)},eT.clampedTo=eT.clamp=function(t,e){var n=this,r=n.constructor;if(t=new r(t),e=new r(e),!t.s||!e.s)return new r(NaN);if(t.gt(e))throw Error(Fk+e);return n.cmp(t)<0?t:n.cmp(e)>0?e:new r(n)},eT.comparedTo=eT.cmp=function(t){var e,n,r,i,o=this,a=o.d,s=(t=new o.constructor(t)).d,u=o.s,c=t.s;if(!a||!s)return u&&c?u!==c?u:a===s?0:!a^u<0?1:-1:NaN;if(!a[0]||!s[0])return a[0]?u:s[0]?-c:0;if(u!==c)return u;if(o.e!==t.e)return o.e>t.e^u<0?1:-1;for(e=0,n=(r=a.length)<(i=s.length)?r:i;es[e]^u<0?1:-1;return r===i?0:r>i^u<0?1:-1},eT.cosine=eT.cos=function(){var t,e,n=this,r=n.constructor;return n.d?n.d[0]?(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r,i;if(e.isZero())return e;(r=e.d.length)<32?i=(1/IT(4,n=Math.ceil(r/3))).toString():(n=16,i="2.3283064365386962890625e-10");t.precision+=n,e=AT(t,1,e.times(i),new t(1));for(var o=n;o--;){var a=e.times(e);e=a.times(a).minus(a).times(8).plus(1)}return t.precision-=n,e}(r,NT(r,n)),r.precision=t,r.rounding=e,sT(2==Pk||3==Pk?n.neg():n,t,e,!0)):new r(1):new r(NaN)},eT.cubeRoot=eT.cbrt=function(){var t,e,n,r,i,o,a,s,u,c,l=this,h=l.constructor;if(!l.isFinite()||l.isZero())return new h(l);for(Wk=!1,(o=l.s*Gk(l.s*l,1/3))&&Math.abs(o)!=1/0?r=new h(o.toString()):(n=nT(l.d),(o=((t=l.e)-n.length+1)%3)&&(n+=1==o||-2==o?"0":"00"),o=Gk(n,1/3),t=Hk((t+1)/3)-(t%3==(t<0?-1:2)),(r=new h(n=o==1/0?"5e"+t:(n=o.toExponential()).slice(0,n.indexOf("e")+1)+t)).s=l.s),a=(t=h.precision)+3;;)if(c=(u=(s=r).times(s).times(s)).plus(l),r=aT(c.plus(l).times(s),c.plus(u),a+2,1),nT(s.d).slice(0,a)===(n=nT(r.d)).slice(0,a)){if("9999"!=(n=n.slice(a-3,a+1))&&(i||"4999"!=n)){+n&&(+n.slice(1)||"5"!=n.charAt(0))||(sT(r,t+1,1),e=!r.times(r).times(r).eq(l));break}if(!i&&(sT(s,t+1,0),s.times(s).times(s).eq(l))){r=s;break}a+=4,i=1}return Wk=!0,sT(r,t,h.rounding,e)},eT.decimalPlaces=eT.dp=function(){var t,e=this.d,n=NaN;if(e){if(n=7*((t=e.length-1)-Hk(this.e/7)),t=e[t])for(;t%10==0;t/=10)n--;n<0&&(n=0)}return n},eT.dividedBy=eT.div=function(t){return aT(this,new this.constructor(t))},eT.dividedToIntegerBy=eT.divToInt=function(t){var e=this.constructor;return sT(aT(this,new e(t),0,1,1),e.precision,e.rounding)},eT.equals=eT.eq=function(t){return 0===this.cmp(t)},eT.floor=function(){return sT(new this.constructor(this),this.e+1,3)},eT.greaterThan=eT.gt=function(t){return this.cmp(t)>0},eT.greaterThanOrEqualTo=eT.gte=function(t){var e=this.cmp(t);return 1==e||0===e},eT.hyperbolicCosine=eT.cosh=function(){var t,e,n,r,i,o=this,a=o.constructor,s=new a(1);if(!o.isFinite())return new a(o.s?1/0:NaN);if(o.isZero())return s;n=a.precision,r=a.rounding,a.precision=n+Math.max(o.e,o.sd())+4,a.rounding=1,(i=o.d.length)<32?e=(1/IT(4,t=Math.ceil(i/3))).toString():(t=16,e="2.3283064365386962890625e-10"),o=AT(a,1,o.times(e),new a(1),!0);for(var u,c=t,l=new a(8);c--;)u=o.times(o),o=s.minus(u.times(l.minus(u.times(l))));return sT(o,a.precision=n,a.rounding=r,!0)},eT.hyperbolicSine=eT.sinh=function(){var t,e,n,r,i=this,o=i.constructor;if(!i.isFinite()||i.isZero())return new o(i);if(e=o.precision,n=o.rounding,o.precision=e+Math.max(i.e,i.sd())+4,o.rounding=1,(r=i.d.length)<3)i=AT(o,2,i,i,!0);else{t=(t=1.4*Math.sqrt(r))>16?16:0|t,i=AT(o,2,i=i.times(1/IT(5,t)),i,!0);for(var a,s=new o(5),u=new o(16),c=new o(20);t--;)a=i.times(i),i=i.times(s.plus(a.times(u.times(a).plus(c))))}return o.precision=e,o.rounding=n,sT(i,e,n,!0)},eT.hyperbolicTangent=eT.tanh=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+7,r.rounding=1,aT(n.sinh(),n.cosh(),r.precision=t,r.rounding=e)):new r(n.s)},eT.inverseCosine=eT.acos=function(){var t,e=this,n=e.constructor,r=e.abs().cmp(1),i=n.precision,o=n.rounding;return-1!==r?0===r?e.isNeg()?hT(n,i,o):new n(0):new n(NaN):e.isZero()?hT(n,i+4,o).times(.5):(n.precision=i+6,n.rounding=1,e=e.asin(),t=hT(n,i+4,o).times(.5),n.precision=i,n.rounding=o,t.minus(e))},eT.inverseHyperbolicCosine=eT.acosh=function(){var t,e,n=this,r=n.constructor;return n.lte(1)?new r(n.eq(1)?0:NaN):n.isFinite()?(t=r.precision,e=r.rounding,r.precision=t+Math.max(Math.abs(n.e),n.sd())+4,r.rounding=1,Wk=!1,n=n.times(n).minus(1).sqrt().plus(n),Wk=!0,r.precision=t,r.rounding=e,n.ln()):new r(n)},eT.inverseHyperbolicSine=eT.asinh=function(){var t,e,n=this,r=n.constructor;return!n.isFinite()||n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+2*Math.max(Math.abs(n.e),n.sd())+6,r.rounding=1,Wk=!1,n=n.times(n).plus(1).sqrt().plus(n),Wk=!0,r.precision=t,r.rounding=e,n.ln())},eT.inverseHyperbolicTangent=eT.atanh=function(){var t,e,n,r,i=this,o=i.constructor;return i.isFinite()?i.e>=0?new o(i.abs().eq(1)?i.s/0:i.isZero()?i:NaN):(t=o.precision,e=o.rounding,r=i.sd(),Math.max(r,t)<2*-i.e-1?sT(new o(i),t,e,!0):(o.precision=n=r-i.e,i=aT(i.plus(1),new o(1).minus(i),n+t,1),o.precision=t+4,o.rounding=1,i=i.ln(),o.precision=t,o.rounding=e,i.times(.5))):new o(NaN)},eT.inverseSine=eT.asin=function(){var t,e,n,r,i=this,o=i.constructor;return i.isZero()?new o(i):(e=i.abs().cmp(1),n=o.precision,r=o.rounding,-1!==e?0===e?((t=hT(o,n+4,r).times(.5)).s=i.s,t):new o(NaN):(o.precision=n+6,o.rounding=1,i=i.div(new o(1).minus(i.times(i)).sqrt().plus(1)).atan(),o.precision=n,o.rounding=r,i.times(2)))},eT.inverseTangent=eT.atan=function(){var t,e,n,r,i,o,a,s,u,c=this,l=c.constructor,h=l.precision,d=l.rounding;if(c.isFinite()){if(c.isZero())return new l(c);if(c.abs().eq(1)&&h+4<=tT)return(a=hT(l,h+4,d).times(.25)).s=c.s,a}else{if(!c.s)return new l(NaN);if(h+4<=tT)return(a=hT(l,h+4,d).times(.5)).s=c.s,a}for(l.precision=s=h+10,l.rounding=1,t=n=Math.min(28,s/7+2|0);t;--t)c=c.div(c.times(c).plus(1).sqrt().plus(1));for(Wk=!1,e=Math.ceil(s/7),r=1,u=c.times(c),a=new l(c),i=c;-1!==t;)if(i=i.times(u),o=a.minus(i.div(r+=2)),i=i.times(u),void 0!==(a=o.plus(i.div(r+=2))).d[e])for(t=e;a.d[t]===o.d[t]&&t--;);return n&&(a=a.times(2<this.d.length-2},eT.isNaN=function(){return!this.s},eT.isNegative=eT.isNeg=function(){return this.s<0},eT.isPositive=eT.isPos=function(){return this.s>0},eT.isZero=function(){return!!this.d&&0===this.d[0]},eT.lessThan=eT.lt=function(t){return this.cmp(t)<0},eT.lessThanOrEqualTo=eT.lte=function(t){return this.cmp(t)<1},eT.logarithm=eT.log=function(t){var e,n,r,i,o,a,s,u,c=this,l=c.constructor,h=l.precision,d=l.rounding;if(null==t)t=new l(10),e=!0;else{if(n=(t=new l(t)).d,t.s<0||!n||!n[0]||t.eq(1))return new l(NaN);e=t.eq(10)}if(n=c.d,c.s<0||!n||!n[0]||c.eq(1))return new l(n&&!n[0]?-1/0:1!=c.s?NaN:n?0:1/0);if(e)if(n.length>1)o=!0;else{for(i=n[0];i%10==0;)i/=10;o=1!==i}if(Wk=!1,a=vT(c,s=h+5),r=e?lT(l,s+10):vT(t,s),iT((u=aT(a,r,s,1)).d,i=h,d))do{if(a=vT(c,s+=10),r=e?lT(l,s+10):vT(t,s),u=aT(a,r,s,1),!o){+nT(u.d).slice(i+1,i+15)+1==1e14&&(u=sT(u,h+1,0));break}}while(iT(u.d,i+=10,d));return Wk=!0,sT(u,h,d)},eT.minus=eT.sub=function(t){var e,n,r,i,o,a,s,u,c,l,h,d,f=this,p=f.constructor;if(t=new p(t),!f.d||!t.d)return f.s&&t.s?f.d?t.s=-t.s:t=new p(t.d||f.s!==t.s?f:NaN):t=new p(NaN),t;if(f.s!=t.s)return t.s=-t.s,f.plus(t);if(c=f.d,d=t.d,s=p.precision,u=p.rounding,!c[0]||!d[0]){if(d[0])t.s=-t.s;else{if(!c[0])return new p(3===u?-0:0);t=new p(f)}return Wk?sT(t,s,u):t}if(n=Hk(t.e/7),l=Hk(f.e/7),c=c.slice(),o=l-n){for((h=o<0)?(e=c,o=-o,a=d.length):(e=d,n=l,a=c.length),o>(r=Math.max(Math.ceil(s/7),a)+2)&&(o=r,e.length=1),e.reverse(),r=o;r--;)e.push(0);e.reverse()}else{for((h=(r=c.length)<(a=d.length))&&(a=r),r=0;r0;--r)c[a++]=0;for(r=d.length;r>o;){if(c[--r](a=(o=Math.ceil(s/7))>a?o+1:a+1)&&(i=a,n.length=1),n.reverse();i--;)n.push(0);n.reverse()}for((a=c.length)-(i=l.length)<0&&(i=a,n=l,l=c,c=n),e=0;i;)e=(c[--i]=c[i]+l[i]+e)/Kk|0,c[i]%=Kk;for(e&&(c.unshift(e),++r),a=c.length;0==c[--a];)c.pop();return t.d=c,t.e=cT(c,r),Wk?sT(t,s,u):t},eT.precision=eT.sd=function(t){var e,n=this;if(void 0!==t&&t!==!!t&&1!==t&&0!==t)throw Error(Fk+t);return n.d?(e=dT(n.d),t&&n.e+1>e&&(e=n.e+1)):e=NaN,e},eT.round=function(){var t=this,e=t.constructor;return sT(new e(t),t.e+1,e.rounding)},eT.sine=eT.sin=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+Math.max(n.e,n.sd())+7,r.rounding=1,n=function(t,e){var n,r=e.d.length;if(r<3)return e.isZero()?e:AT(t,2,e,e);n=(n=1.4*Math.sqrt(r))>16?16:0|n,e=e.times(1/IT(5,n)),e=AT(t,2,e,e);for(var i,o=new t(5),a=new t(16),s=new t(20);n--;)i=e.times(e),e=e.times(o.plus(i.times(a.times(i).minus(s))));return e}(r,NT(r,n)),r.precision=t,r.rounding=e,sT(Pk>2?n.neg():n,t,e,!0)):new r(NaN)},eT.squareRoot=eT.sqrt=function(){var t,e,n,r,i,o,a=this,s=a.d,u=a.e,c=a.s,l=a.constructor;if(1!==c||!s||!s[0])return new l(!c||c<0&&(!s||s[0])?NaN:s?a:1/0);for(Wk=!1,0==(c=Math.sqrt(+a))||c==1/0?(((e=nT(s)).length+u)%2==0&&(e+="0"),c=Math.sqrt(e),u=Hk((u+1)/2)-(u<0||u%2),r=new l(e=c==1/0?"5e"+u:(e=c.toExponential()).slice(0,e.indexOf("e")+1)+u)):r=new l(c.toString()),n=(u=l.precision)+3;;)if(r=(o=r).plus(aT(a,o,n+2,1)).times(.5),nT(o.d).slice(0,n)===(e=nT(r.d)).slice(0,n)){if("9999"!=(e=e.slice(n-3,n+1))&&(i||"4999"!=e)){+e&&(+e.slice(1)||"5"!=e.charAt(0))||(sT(r,u+1,1),t=!r.times(r).eq(a));break}if(!i&&(sT(o,u+1,0),o.times(o).eq(a))){r=o;break}n+=4,i=1}return Wk=!0,sT(r,u,l.rounding,t)},eT.tangent=eT.tan=function(){var t,e,n=this,r=n.constructor;return n.isFinite()?n.isZero()?new r(n):(t=r.precision,e=r.rounding,r.precision=t+10,r.rounding=1,(n=n.sin()).s=1,n=aT(n,new r(1).minus(n.times(n)).sqrt(),t+10,0),r.precision=t,r.rounding=e,sT(2==Pk||4==Pk?n.neg():n,t,e,!0)):new r(NaN)},eT.times=eT.mul=function(t){var e,n,r,i,o,a,s,u,c,l=this,h=l.constructor,d=l.d,f=(t=new h(t)).d;if(t.s*=l.s,!(d&&d[0]&&f&&f[0]))return new h(!t.s||d&&!d[0]&&!f||f&&!f[0]&&!d?NaN:d&&f?0*t.s:t.s/0);for(n=Hk(l.e/7)+Hk(t.e/7),(u=d.length)<(c=f.length)&&(o=d,d=f,f=o,a=u,u=c,c=a),o=[],r=a=u+c;r--;)o.push(0);for(r=c;--r>=0;){for(e=0,i=u+r;i>r;)s=o[i]+f[r]*d[i-r-1]+e,o[i--]=s%Kk|0,e=s/Kk|0;o[i]=(o[i]+e)%Kk|0}for(;!o[--a];)o.pop();return e?++n:o.shift(),t.d=o,t.e=cT(o,n),Wk?sT(t,h.precision,h.rounding):t},eT.toBinary=function(t,e){return ET(this,2,t,e)},eT.toDecimalPlaces=eT.toDP=function(t,e){var n=this,r=n.constructor;return n=new r(n),void 0===t?n:(rT(t,0,1e9),void 0===e?e=r.rounding:rT(e,0,8),sT(n,t+n.e+1,e))},eT.toExponential=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=uT(r,!0):(rT(t,0,1e9),void 0===e?e=i.rounding:rT(e,0,8),n=uT(r=sT(new i(r),t+1,e),!0,t+1)),r.isNeg()&&!r.isZero()?"-"+n:n},eT.toFixed=function(t,e){var n,r,i=this,o=i.constructor;return void 0===t?n=uT(i):(rT(t,0,1e9),void 0===e?e=o.rounding:rT(e,0,8),n=uT(r=sT(new o(i),t+i.e+1,e),!1,t+r.e+1)),i.isNeg()&&!i.isZero()?"-"+n:n},eT.toFraction=function(t){var e,n,r,i,o,a,s,u,c,l,h,d,f=this,p=f.d,y=f.constructor;if(!p)return new y(f);if(c=n=new y(1),r=u=new y(0),a=(o=(e=new y(r)).e=dT(p)-f.e-1)%7,e.d[0]=Gk(10,a<0?7+a:a),null==t)t=o>0?e:c;else{if(!(s=new y(t)).isInt()||s.lt(c))throw Error(Fk+s);t=s.gt(e)?o>0?e:c:s}for(Wk=!1,s=new y(nT(p)),l=y.precision,y.precision=o=7*p.length*2;h=aT(s,e,0,1,1),1!=(i=n.plus(h.times(r))).cmp(t);)n=r,r=i,i=c,c=u.plus(h.times(i)),u=i,i=e,e=s.minus(h.times(i)),s=i;return i=aT(t.minus(n),r,0,1,1),u=u.plus(i.times(c)),n=n.plus(i.times(r)),u.s=c.s=f.s,d=aT(c,r,o,1).minus(f).abs().cmp(aT(u,n,o,1).minus(f).abs())<1?[c,r]:[u,n],y.precision=l,Wk=!0,d},eT.toHexadecimal=eT.toHex=function(t,e){return ET(this,16,t,e)},eT.toNearest=function(t,e){var n=this,r=n.constructor;if(n=new r(n),null==t){if(!n.d)return n;t=new r(1),e=r.rounding}else{if(t=new r(t),void 0===e?e=r.rounding:rT(e,0,8),!n.d)return t.s?n:t;if(!t.d)return t.s&&(t.s=n.s),t}return t.d[0]?(Wk=!1,n=aT(n,t,0,e,1).times(t),Wk=!0,sT(n)):(t.s=n.s,n=t),n},eT.toNumber=function(){return+this},eT.toOctal=function(t,e){return ET(this,8,t,e)},eT.toPower=eT.pow=function(t){var e,n,r,i,o,a,s=this,u=s.constructor,c=+(t=new u(t));if(!(s.d&&t.d&&s.d[0]&&t.d[0]))return new u(Gk(+s,c));if((s=new u(s)).eq(1))return s;if(r=u.precision,o=u.rounding,t.eq(1))return sT(s,r,o);if((e=Hk(t.e/7))>=t.d.length-1&&(n=c<0?-c:c)<=9007199254740991)return i=pT(u,s,n,r),t.s<0?new u(1).div(i):sT(i,r,o);if((a=s.s)<0){if(eu.maxE+1||e0?a/0:0):(Wk=!1,u.rounding=s.s=1,n=Math.min(12,(e+"").length),(i=gT(t.times(vT(s,r+n)),r)).d&&iT((i=sT(i,r+5,1)).d,r,o)&&(e=r+10,+nT((i=sT(gT(t.times(vT(s,e+n)),e),e+5,1)).d).slice(r+1,r+15)+1==1e14&&(i=sT(i,r+1,0))),i.s=a,Wk=!0,u.rounding=o,sT(i,r,o))},eT.toPrecision=function(t,e){var n,r=this,i=r.constructor;return void 0===t?n=uT(r,r.e<=i.toExpNeg||r.e>=i.toExpPos):(rT(t,1,1e9),void 0===e?e=i.rounding:rT(e,0,8),n=uT(r=sT(new i(r),t,e),t<=r.e||r.e<=i.toExpNeg,t)),r.isNeg()&&!r.isZero()?"-"+n:n},eT.toSignificantDigits=eT.toSD=function(t,e){var n=this.constructor;return void 0===t?(t=n.precision,e=n.rounding):(rT(t,1,1e9),void 0===e?e=n.rounding:rT(e,0,8)),sT(new n(this),t,e)},eT.toString=function(){var t=this,e=t.constructor,n=uT(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()&&!t.isZero()?"-"+n:n},eT.truncated=eT.trunc=function(){return sT(new this.constructor(this),this.e+1,1)},eT.valueOf=eT.toJSON=function(){var t=this,e=t.constructor,n=uT(t,t.e<=e.toExpNeg||t.e>=e.toExpPos);return t.isNeg()?"-"+n:n};var aT=function(){function t(t,e,n){var r,i=0,o=t.length;for(t=t.slice();o--;)r=t[o]*e+i,t[o]=r%n|0,i=r/n|0;return i&&t.unshift(i),t}function e(t,e,n,r){var i,o;if(n!=r)o=n>r?1:-1;else for(i=o=0;ie[i]?1:-1;break}return o}function n(t,e,n,r){for(var i=0;n--;)t[n]-=i,i=t[n]1;)t.shift()}return function(r,i,o,a,s,u){var c,l,h,d,f,p,y,m,g,v,w,b,M,A,I,N,E,x,k,T,L=r.constructor,S=r.s==i.s?1:-1,j=r.d,C=i.d;if(!(j&&j[0]&&C&&C[0]))return new L(r.s&&i.s&&(j?!C||j[0]!=C[0]:C)?j&&0==j[0]||!C?0*S:S/0:NaN);for(u?(f=1,l=r.e-i.e):(u=Kk,f=7,l=Hk(r.e/f)-Hk(i.e/f)),k=C.length,E=j.length,v=(g=new L(S)).d=[],h=0;C[h]==(j[h]||0);h++);if(C[h]>(j[h]||0)&&l--,null==o?(A=o=L.precision,a=L.rounding):A=s?o+(r.e-i.e)+1:o,A<0)v.push(1),p=!0;else{if(A=A/f+2|0,h=0,1==k){for(d=0,C=C[0],A++;(h1&&(C=t(C,d,u),j=t(j,d,u),k=C.length,E=j.length),N=k,b=(w=j.slice(0,k)).length;b=u/2&&++x;do{d=0,(c=e(C,w,k,b))<0?(M=w[0],k!=b&&(M=M*u+(w[1]||0)),(d=M/x|0)>1?(d>=u&&(d=u-1),1==(c=e(y=t(C,d,u),w,m=y.length,b=w.length))&&(d--,n(y,k=10;d/=10)h++;g.e=h+l*f-1,sT(g,s?o+g.e+1:o,a,p)}return g}}();function sT(t,e,n,r){var i,o,a,s,u,c,l,h,d,f=t.constructor;t:if(null!=e){if(!(h=t.d))return t;for(i=1,s=h[0];s>=10;s/=10)i++;if((o=e-i)<0)o+=7,a=e,u=(l=h[d=0])/Gk(10,i-a-1)%10|0;else if((d=Math.ceil((o+1)/7))>=(s=h.length)){if(!r)break t;for(;s++<=d;)h.push(0);l=u=0,i=1,a=(o%=7)-7+1}else{for(l=s=h[d],i=1;s>=10;s/=10)i++;u=(a=(o%=7)-7+i)<0?0:l/Gk(10,i-a-1)%10|0}if(r=r||e<0||void 0!==h[d+1]||(a<0?l:l%Gk(10,i-a-1)),c=n<4?(u||r)&&(0==n||n==(t.s<0?3:2)):u>5||5==u&&(4==n||r||6==n&&(o>0?a>0?l/Gk(10,i-a):0:h[d-1])%10&1||n==(t.s<0?8:7)),e<1||!h[0])return h.length=0,c?(e-=t.e+1,h[0]=Gk(10,(7-e%7)%7),t.e=-e||0):h[0]=t.e=0,t;if(0==o?(h.length=d,s=1,d--):(h.length=d+1,s=Gk(10,7-o),h[d]=a>0?(l/Gk(10,i-a)%Gk(10,a)|0)*s:0),c)for(;;){if(0==d){for(o=1,a=h[0];a>=10;a/=10)o++;for(a=h[0]+=s,s=1;a>=10;a/=10)s++;o!=s&&(t.e++,h[0]==Kk&&(h[0]=1));break}if(h[d]+=s,h[d]!=Kk)break;h[d--]=0,s=1}for(o=h.length;0===h[--o];)h.pop()}return Wk&&(t.e>f.maxE?(t.d=null,t.e=NaN):t.e0?o=o.charAt(0)+"."+o.slice(1)+fT(r):a>1&&(o=o.charAt(0)+"."+o.slice(1)),o=o+(t.e<0?"e":"e+")+t.e):i<0?(o="0."+fT(-i-1)+o,n&&(r=n-a)>0&&(o+=fT(r))):i>=a?(o+=fT(i+1-a),n&&(r=n-i-1)>0&&(o=o+"."+fT(r))):((r=i+1)0&&(i+1===a&&(o+="."),o+=fT(r))),o}function cT(t,e){var n=t[0];for(e*=7;n>=10;n/=10)e++;return e}function lT(t,e,n){if(e>$k)throw Wk=!0,n&&(t.precision=n),Error("[DecimalError] Precision limit exceeded");return sT(new t(Uk),e,1,!0)}function hT(t,e,n){if(e>tT)throw Error("[DecimalError] Precision limit exceeded");return sT(new t(Qk),e,n,!0)}function dT(t){var e=t.length-1,n=7*e+1;if(e=t[e]){for(;e%10==0;e/=10)n--;for(e=t[0];e>=10;e/=10)n++}return n}function fT(t){for(var e="";t--;)e+="0";return e}function pT(t,e,n,r){var i,o=new t(1),a=Math.ceil(r/7+4);for(Wk=!1;;){if(n%2&&xT((o=o.times(e)).d,a)&&(i=!0),0===(n=Hk(n/2))){n=o.d.length-1,i&&0===o.d[n]&&++o.d[n];break}xT((e=e.times(e)).d,a)}return Wk=!0,o}function yT(t){return 1&t.d[t.d.length-1]}function mT(t,e,n){for(var r,i=new t(e[0]),o=0;++o17)return new d(t.d?t.d[0]?t.s<0?0:1/0:1:t.s?t.s<0?0:t:NaN);for(null==e?(Wk=!1,u=p):u=e,s=new d(.03125);t.e>-2;)t=t.times(s),h+=5;for(u+=r=Math.log(Gk(2,h))/Math.LN10*2+5|0,n=o=a=new d(1),d.precision=u;;){if(o=sT(o.times(t),u,1),n=n.times(++l),nT((s=a.plus(aT(o,n,u,1))).d).slice(0,u)===nT(a.d).slice(0,u)){for(i=h;i--;)a=sT(a.times(a),u,1);if(null!=e)return d.precision=p,a;if(!(c<3&&iT(a.d,u-r,f,c)))return sT(a,d.precision=p,f,Wk=!0);d.precision=u+=10,n=o=s=new d(1),l=0,c++}a=s}}function vT(t,e){var n,r,i,o,a,s,u,c,l,h,d,f=1,p=t,y=p.d,m=p.constructor,g=m.rounding,v=m.precision;if(p.s<0||!y||!y[0]||!p.e&&1==y[0]&&1==y.length)return new m(y&&!y[0]?-1/0:1!=p.s?NaN:y?0:p);if(null==e?(Wk=!1,l=v):l=e,m.precision=l+=10,r=(n=nT(y)).charAt(0),!(Math.abs(o=p.e)<15e14))return c=lT(m,l+2,v).times(o+""),p=vT(new m(r+"."+n.slice(1)),l-10).plus(c),m.precision=v,null==e?sT(p,v,g,Wk=!0):p;for(;r<7&&1!=r||1==r&&n.charAt(1)>3;)r=(n=nT((p=p.times(t)).d)).charAt(0),f++;for(o=p.e,r>1?(p=new m("0."+n),o++):p=new m(r+"."+n.slice(1)),h=p,u=a=p=aT(p.minus(1),p.plus(1),l,1),d=sT(p.times(p),l,1),i=3;;){if(a=sT(a.times(d),l,1),nT((c=u.plus(aT(a,new m(i),l,1))).d).slice(0,l)===nT(u.d).slice(0,l)){if(u=u.times(2),0!==o&&(u=u.plus(lT(m,l+2,v).times(o+""))),u=aT(u,new m(f),l,1),null!=e)return m.precision=v,u;if(!iT(u.d,l-10,g,s))return sT(u,m.precision=v,g,Wk=!0);m.precision=l+=10,c=a=p=aT(h.minus(1),h.plus(1),l,1),d=sT(p.times(p),l,1),i=s=1}u=c,i+=2}}function wT(t){return String(t.s*t.s/0)}function bT(t,e){var n,r,i;for((n=e.indexOf("."))>-1&&(e=e.replace(".","")),(r=e.search(/e/i))>0?(n<0&&(n=r),n+=+e.slice(r+1),e=e.substring(0,r)):n<0&&(n=e.length),r=0;48===e.charCodeAt(r);r++);for(i=e.length;48===e.charCodeAt(i-1);--i);if(e=e.slice(r,i)){if(i-=r,t.e=n=n-r-1,t.d=[],r=(n+1)%7,n<0&&(r+=7),rt.constructor.maxE?(t.d=null,t.e=NaN):t.e-1){if(e=e.replace(/(\d)_(?=\d)/g,"$1"),Xk.test(e))return bT(t,e)}else if("Infinity"===e||"NaN"===e)return+e||(t.s=NaN),t.e=NaN,t.d=null,t;if(Zk.test(e))n=16,e=e.toLowerCase();else if(qk.test(e))n=2;else{if(!Jk.test(e))throw Error(Fk+e);n=8}for((o=e.search(/p/i))>0?(u=+e.slice(o+1),e=e.substring(2,o)):e=e.slice(2),a=(o=e.indexOf("."))>=0,r=t.constructor,a&&(o=(s=(e=e.replace(".","")).length)-o,i=pT(r,new r(n),o,2*o)),o=l=(c=oT(e,n,Kk)).length-1;0===c[o];--o)c.pop();return o<0?new r(0*t.s):(t.e=cT(c,l),t.d=c,Wk=!1,a&&(t=aT(t,i,4*s)),u&&(t=t.times(Math.abs(u)<54?Gk(2,u):fL.pow(2,u))),Wk=!0,t)}function AT(t,e,n,r,i){var o,a,s,u,c=t.precision,l=Math.ceil(c/7);for(Wk=!1,u=n.times(n),s=new t(r);;){if(a=aT(s.times(u),new t(e++*e++),c,1),s=i?r.plus(a):r.minus(a),r=aT(a.times(u),new t(e++*e++),c,1),void 0!==(a=s.plus(r)).d[l]){for(o=l;a.d[o]===s.d[o]&&o--;);if(-1==o)break}o=s,s=r,r=a,a=o}return Wk=!0,a.d.length=l+1,a}function IT(t,e){for(var n=t;--e;)n*=t;return n}function NT(t,e){var n,r=e.s<0,i=hT(t,t.precision,1),o=i.times(.5);if((e=e.abs()).lte(o))return Pk=r?4:1,e;if((n=e.divToInt(i)).isZero())Pk=r?3:2;else{if((e=e.minus(n.times(i))).lte(o))return Pk=yT(n)?r?2:3:r?4:1,e;Pk=yT(n)?r?1:4:r?3:2}return e.minus(i).abs()}function ET(t,e,n,r){var i,o,a,s,u,c,l,h,d,f=t.constructor,p=void 0!==n;if(p?(rT(n,1,1e9),void 0===r?r=f.rounding:rT(r,0,8)):(n=f.precision,r=f.rounding),t.isFinite()){for(p?(i=2,16==e?n=4*n-3:8==e&&(n=3*n-2)):i=e,(a=(l=uT(t)).indexOf("."))>=0&&(l=l.replace(".",""),(d=new f(1)).e=l.length-a,d.d=oT(uT(d),10,i),d.e=d.d.length),o=u=(h=oT(l,10,i)).length;0==h[--u];)h.pop();if(h[0]){if(a<0?o--:((t=new f(t)).d=h,t.e=o,h=(t=aT(t,d,n,r,0,i)).d,o=t.e,c=zk),a=h[n],s=i/2,c=c||void 0!==h[n+1],c=r<4?(void 0!==a||c)&&(0===r||r===(t.s<0?3:2)):a>s||a===s&&(4===r||c||6===r&&1&h[n-1]||r===(t.s<0?8:7)),h.length=n,c)for(;++h[--n]>i-1;)h[n]=0,n||(++o,h.unshift(1));for(u=h.length;!h[u-1];--u);for(a=0,l="";a1)if(16==e||8==e){for(a=16==e?4:3,--u;u%a;u++)l+="0";for(u=(h=oT(l,i,e)).length;!h[u-1];--u);for(a=1,l="1.";au)for(o-=u;o--;)l+="0";else oe)return t.length=e,!0}function kT(t){return new this(t).abs()}function TT(t){return new this(t).acos()}function LT(t){return new this(t).acosh()}function ST(t,e){return new this(t).plus(e)}function jT(t){return new this(t).asin()}function CT(t){return new this(t).asinh()}function DT(t){return new this(t).atan()}function OT(t){return new this(t).atanh()}function zT(t,e){t=new this(t),e=new this(e);var n,r=this.precision,i=this.rounding,o=r+4;return t.s&&e.s?t.d||e.d?!e.d||t.isZero()?(n=e.s<0?hT(this,r,i):new this(0)).s=t.s:!t.d||e.isZero()?(n=hT(this,o,1).times(.5)).s=t.s:e.s<0?(this.precision=o,this.rounding=1,n=this.atan(aT(t,e,o,1)),e=hT(this,o,1),this.precision=r,this.rounding=i,n=t.s<0?n.minus(e):n.plus(e)):n=this.atan(aT(t,e,o,1)):(n=hT(this,o,1).times(e.s>0?.25:.75)).s=t.s:n=new this(NaN),n}function PT(t){return new this(t).cbrt()}function _T(t){return sT(t=new this(t),t.e+1,2)}function BT(t,e,n){return new this(t).clamp(e,n)}function RT(t){if(!t||"object"!=typeof t)throw Error("[DecimalError] Object expected");var e,n,r,i=!0===t.defaults,o=["precision",1,1e9,"rounding",0,8,"toExpNeg",-Bk,0,"toExpPos",0,Bk,"maxE",0,Bk,"minE",-Bk,0,"modulo",0,9];for(e=0;e=o[e+1]&&r<=o[e+2]))throw Error(Fk+n+": "+r);this[n]=r}if(n="crypto",i&&(this[n]=Yk[n]),void 0!==(r=t[n])){if(!0!==r&&!1!==r&&0!==r&&1!==r)throw Error(Fk+n+": "+r);if(r){if("undefined"==typeof crypto||!crypto||!crypto.getRandomValues&&!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");this[n]=!0}else this[n]=!1}return this}function UT(t){return new this(t).cos()}function QT(t){return new this(t).cosh()}function YT(t,e){return new this(t).div(e)}function WT(t){return new this(t).exp()}function FT(t){return sT(t=new this(t),t.e+1,3)}function VT(){var t,e,n=new this(0);for(Wk=!1,t=0;t=429e7?e[o]=crypto.getRandomValues(new Uint32Array(1))[0]:s[o++]=i%1e7;else{if(!crypto.randomBytes)throw Error("[DecimalError] crypto unavailable");for(e=crypto.randomBytes(r*=4);o=214e7?crypto.randomBytes(4).copy(e,o):(s.push(i%1e7),o+=4);o=r/4}else for(;o=10;i/=10)r++;r<7&&(n-=7-r)}return a.e=n,a.d=s,a}function rL(t){return sT(t=new this(t),t.e+1,this.rounding)}function iL(t){return(t=new this(t)).d?t.d[0]?t.s:0*t.s:t.s||NaN}function oL(t){return new this(t).sin()}function aL(t){return new this(t).sinh()}function sL(t){return new this(t).sqrt()}function uL(t,e){return new this(t).sub(e)}function cL(){var t=0,e=arguments,n=new this(e[t]);for(Wk=!1;n.s&&++to.maxE?(i.e=NaN,i.d=null):t.e=10;n/=10)e++;return void(Wk?e>o.maxE?(i.e=NaN,i.d=null):en.call(e,...t))),e=void 0)}return n}Uk=new fL(Uk),Qk=new fL(Qk);class yL{constructor({blockchain:t,tokenIn:e,decimalsIn:n,tokenOut:r,decimalsOut:i,path:o,pools:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,exchange:h,approvalRequired:d,getApproval:f,getPrep:p,getTransaction:y}){this.blockchain=t,this.tokenIn=e,this.decimalsIn=n,this.tokenOut=r,this.decimalsOut=i,this.path=o,this.pools=a,this.amountIn=pL([s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountOutMin=pL([l,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountOut=pL([c,"optionalAccess",t=>t.toString,"call",t=>t()]),this.amountInMax=pL([u,"optionalAccess",t=>t.toString,"call",t=>t()]),this.exchange=h,this.getPrep=p,this.getTransaction=y}}let mL=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];mL.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],mL.solana=["solana"];const gL=async({exchange:t,blockchain:e,pools:n,exchangePath:r,amountIn:i,amountOut:o})=>{let a=i.add(i.mul(100*parseFloat("0.5")).div(1e4));if(!mL.evm.includes(t.blockchain||e))return a;const s=await _I({blockchain:t.blockchain||e,method:"latestBlockNumber"});let u=[];for(var c=0;c<=2;c++)u.push(s-c);const l=await Promise.all(u.map((async i=>{let{amountIn:a}=await t.getAmounts({exchange:t,blockchain:e,path:r,pools:n,amountOut:o,block:i});return a})));if(!l[0]||!l[1]||!l[2])return a;let h;if(l[0].gt(l[1])&&l[1].gt(l[2])){const t=l[0].sub(l[1]),e=l[1].sub(l[2]),n=t.add(e).div(2);if(h=l[0].add(n),h.gt(a))return h}else if(!l[0].eq(l[1])&&!l[1].eq(l[2])){const t=l[0].sub(l[1]).abs(),e=l[1].sub(l[2]).abs();let n,r;if(n=t.lt(e)?t:e,r=l[0].gt(l[1])&&l[0].gt(l[2])?l[0]:l[1].gt(l[2])&&l[1].gt(l[0])?l[1]:l[2],h=r.add(n),h.gt(a))return h}return a},vL=async({exchange:t,blockchain:e,pools:n,exchangePath:r,amounts:i,tokenIn:o,tokenOut:a,amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amountInInput:h,amountOutInput:d,amountInMaxInput:f,amountOutMinInput:p})=>{if(p||d){if(mL.evm.includes(t.blockchain||e))s=u=await gL({exchange:t,blockchain:e,pools:n,exchangePath:r,amountIn:s,amountOut:p||c});else if(mL.solana.includes(t.blockchain||e)){let e=[];await Promise.all(r.map(((o,a)=>{if(0!=a){let o=gL({exchange:t,pools:n,exchangePath:[r[a-1],r[a]],amountIn:i[a-1],amountOut:i[a]});return o.then((t=>e.push(t))),o}}))),e.push(i[i.length-1]),s=u=(i=e)[0]}}else if((f||h)&&mL.solana.includes(t.blockchain||e)){let e=[];await Promise.all(r.map(((n,o)=>{if(0!==o&&on.sub(n.mul(100*parseFloat("0.5")).div(1e4)))({exchange:t,exchangePath:[r[o-1],r[o]],amountIn:i[o-1],amountOut:i[o]});return n.then((t=>(e.unshift(t),t))),n}}))),e.push(i[0]),c=l=(i=e.slice().reverse())[i.length-1]}return{amountIn:s,amountInMax:u,amountOut:c,amountOutMin:l,amounts:i}},wL=t=>t.match("0x")?am(t):t;let bL=async({amount:t,blockchain:e,address:n})=>await kk.BigNumber({amount:t,blockchain:e,address:n}),ML=async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{let u={exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s};return o&&"number"==typeof o&&(u.amountOut=await bL({amount:o,blockchain:t,address:r})),s&&"number"==typeof s&&(u.amountOutMin=await bL({amount:s,blockchain:t,address:r})),i&&"number"==typeof i&&(u.amountIn=await bL({amount:i,blockchain:t,address:n})),a&&"number"==typeof a&&(u.amountInMax=await bL({amount:a,blockchain:t,address:n})),u};class AL{constructor(...t){Object.assign(this,...t)}async route({blockchain:t,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}){return e===n?Promise.resolve():(void 0===t&&(this.scope?t=this.scope:1===this.blockchains.length&&(t=this.blockchains[0])),(({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if(void 0===t&&null!=e.blockchains&&e.blockchains.length>1)throw"You need to provide a blockchain when calling route on an exchange that supports multiple blockchains!";if(void 0!==o&&void 0!==i)throw"You cannot set amountIn and amountOut at the same time, use amountInMax or amountOutMin to describe the non exact part of the swap!";if(void 0!==a&&void 0!==s)throw"You cannot set amountInMax and amountOutMin at the same time, use amountIn or amountOut to describe the part of the swap that needs to be exact!";if(void 0!==i&&void 0!==a)throw"Setting amountIn and amountInMax at the same time makes no sense. Decide if amountIn needs to be exact or not!";if(void 0!==o&&void 0!==s)throw"Setting amountOut and amountOutMin at the same time makes no sense. Decide if amountOut needs to be exact or not!"})({blockchain:t,exchange:this,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),await(({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s,findPath:u,getAmounts:c,getPrep:l,getTransaction:h,slippage:d})=>{if(n=wL(n),r=wL(r),[i,o,a,s].filter(Boolean).length>1)throw"You can only pass one: amountIn, amountOut, amountInMax or amountOutMin";if([i,o,a,s].filter(Boolean).length<1)throw"You need to pass exactly one: amountIn, amountOut, amountInMax or amountOutMin";return new Promise((async f=>{let{path:p,exchangePath:y,pools:m}=await u({blockchain:t,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s});if(void 0===p||0==p.length)return f();let g,[v,w,b,M]=[i,o,a,s];try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await c({exchange:e,blockchain:t,path:p,pools:m,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s}))}catch(t){return f()}if([i,a,o,s].every((t=>null==t)))return f();if(d||e.slippage)try{({amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g}=await vL({exchange:e,blockchain:t,pools:m,exchangePath:y,amounts:g,tokenIn:n,tokenOut:r,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amountInInput:v,amountOutInput:w,amountInMaxInput:b,amountOutMinInput:M}))}catch(t){return f()}const A=await new kk({blockchain:t,address:n}).decimals(),I=await new kk({blockchain:t,address:r}).decimals();f(new yL({blockchain:t,tokenIn:n,decimalsIn:A,tokenOut:r,decimalsOut:I,path:p,pools:m,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,exchange:e,getPrep:async({account:o})=>await l({exchange:e,blockchain:t,tokenIn:n,tokenOut:r,amountIn:i||a,account:o}),getTransaction:async({account:n,permit2:r,inputTokenPushed:u})=>await h({exchange:e,blockchain:t,pools:m,path:p,amountIn:i,amountInMax:a,amountOut:o,amountOutMin:s,amounts:g,amountInInput:v,amountOutInput:w,amountInMaxInput:b,amountOutMinInput:M,account:n,permit2:r,inputTokenPushed:u})}))}))})({...await ML({blockchain:t,exchange:this,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a}),blockchain:t,findPath:this.findPath,getAmounts:this.getAmounts,getPrep:this.getPrep,getTransaction:this.getTransaction,slippage:this.slippage}))}}function IL(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const NL=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},EL=({reserves:t,min:e,token:n,token0:r,token1:i,decimals:o})=>r.toLowerCase()==n.toLowerCase()?t[0].gte(cI(e.toString(),o)):i.toLowerCase()==n.toLowerCase()&&t[1].gte(cI(e.toString(),o)),xL=async({blockchain:t,exchange:e,path:n})=>{const r=NL({blockchain:t,exchange:e,path:n});if(!r||1===r.length)return!1;try{let i=await _I({blockchain:t,address:e[t].factory.address,method:"getPair",api:e[t].factory.api,cache:36e5,params:NL({blockchain:t,exchange:e,path:n})});if(!i||i==Hf[t].zero)return!1;let[o,a,s]=await Promise.all([_I({blockchain:t,address:i,method:"getReserves",api:e[t].pair.api,cache:36e5}),_I({blockchain:t,address:i,method:"token0",api:e[t].pair.api,cache:36e5}),_I({blockchain:t,address:i,method:"token1",api:e[t].pair.api,cache:36e5})]);if(r.includes(Hf[t].wrapped.address))return EL({min:1,token:Hf[t].wrapped.address,decimals:Hf[t].currency.decimals,reserves:o,token0:a,token1:s});if(n.find((e=>Hf[t].stables.usd.includes(e)))){let e=n.find((e=>Hf[t].stables.usd.includes(e))),r=new kk({blockchain:t,address:e}),i=await r.decimals();return EL({min:1e3,token:e,decimals:i,reserves:o,token0:a,token1:s})}return!0}catch(t){return console.log("e",t),!1}};let kL=({blockchain:t,exchange:e,path:n,amountIn:r,tokenIn:i,tokenOut:o})=>new Promise((i=>{_I({blockchain:t,address:e[t].router.address,method:"getAmountsOut",api:e[t].router.api,params:{amountIn:r,path:NL({blockchain:t,exchange:e,path:n})}}).then((t=>{i(t[t.length-1])})).catch((()=>i()))})),TL=({blockchain:t,exchange:e,path:n,amountOut:r,block:i})=>new Promise((o=>{_I({blockchain:t,address:e[t].router.address,method:"getAmountsIn",api:e[t].router.api,params:{amountOut:r,path:NL({blockchain:t,exchange:e,path:n})},block:i}).then((t=>o(t[0]))).catch((()=>o()))}));var LL={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let i;if(await xL({blockchain:t,exchange:e,path:[n,r]}))i=[n,r];else if(n!=Hf[t].wrapped.address&&await xL({blockchain:t,exchange:e,path:[n,Hf[t].wrapped.address]})&&r!=Hf[t].wrapped.address&&await xL({blockchain:t,exchange:e,path:[r,Hf[t].wrapped.address]}))i=[n,Hf[t].wrapped.address,r];else if(!Hf[t].stables.usd.includes(n)&&(await Promise.all(Hf[t].stables.usd.map((r=>xL({blockchain:t,exchange:e,path:[n,r]}))))).filter(Boolean).length&&r!=Hf[t].wrapped.address&&await xL({blockchain:t,exchange:e,path:[Hf[t].wrapped.address,r]})){let o=(await Promise.all(Hf[t].stables.usd.map((async r=>await xL({blockchain:t,exchange:e,path:[n,r]})?r:void 0)))).find(Boolean);i=[n,o,Hf[t].wrapped.address,r]}else if(n!=Hf[t].wrapped.address&&await xL({blockchain:t,exchange:e,path:[n,Hf[t].wrapped.address]})&&!Hf[t].stables.usd.includes(r)&&(await Promise.all(Hf[t].stables.usd.map((n=>xL({blockchain:t,exchange:e,path:[n,r]}))))).filter(Boolean).length){let o=(await Promise.all(Hf[t].stables.usd.map((async n=>await xL({blockchain:t,exchange:e,path:[n,r]})?n:void 0)))).find(Boolean);i=[n,Hf[t].wrapped.address,o,r]}return IL([i,"optionalAccess",t=>t.length])&&i[0]==Hf[t].currency.address?i.splice(1,0,Hf[t].wrapped.address):IL([i,"optionalAccess",t=>t.length])&&i[i.length-1]==Hf[t].currency.address&&i.splice(i.length-1,0,Hf[t].wrapped.address),{path:i,exchangePath:NL({blockchain:t,exchange:e,path:i})}},pathExists:xL,getAmounts:async({blockchain:t,exchange:e,path:n,block:r,tokenIn:i,tokenOut:o,amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c})=>{if(a){if(null==(s=await TL({blockchain:t,exchange:e,block:r,path:n,amountOut:a,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(s){if(null==(a=await kL({blockchain:t,exchange:e,path:n,amountIn:s,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}else if(c){if(null==(s=await TL({blockchain:t,exchange:e,block:r,path:n,amountOut:c,tokenIn:i,tokenOut:o}))||u&&s.gt(u))return{};void 0===u&&(u=s)}else if(u){if(null==(a=await kL({blockchain:t,exchange:e,path:n,amountIn:u,tokenIn:i,tokenOut:o}))||c&&a.lt(c))return{};void 0===c&&(c=a)}return{amountOut:a,amountIn:s,amountInMax:u,amountOutMin:c}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;const o=await _I({blockchain:e,address:n,method:"allowance",api:kk[e][20],params:[i,t[e].router.address]});if(o.gte(r))return;return{transaction:{blockchain:e,from:i,to:n,api:kk[e][20],method:"approve",params:[t[e].router.address,r.sub(o)]}}},getTransaction:({exchange:t,blockchain:e,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:h})=>{let d={blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api};return n[0]===Hf[e].currency.address?s||l?(d.method="swapExactETHForTokens",d.value=r.toString(),d.params={amountOutMin:a.toString()}):(u||c)&&(d.method="swapETHForExactTokens",d.value=i.toString(),d.params={amountOut:o.toString()}):n[n.length-1]===Hf[e].currency.address?s||l?(d.method="swapExactTokensForETH",d.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(d.method="swapTokensForExactETH",d.params={amountInMax:i.toString(),amountOut:o.toString()}):s||l?(d.method="swapExactTokensForTokens",d.params={amountIn:r.toString(),amountOutMin:a.toString()}):(u||c)&&(d.method="swapTokensForExactTokens",d.params={amountInMax:i.toString(),amountOut:o.toString()}),d.params=Object.assign({},d.params,{path:NL({blockchain:e,exchange:t,path:n}),to:h,deadline:Math.round(Date.now()/1e3)+86400}),d},ROUTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"amountADesired",type:"uint256"},{internalType:"uint256",name:"amountBDesired",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountTokenDesired",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"addLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"},{internalType:"uint256",name:"liquidity",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountIn",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"reserveIn",type:"uint256"},{internalType:"uint256",name:"reserveOut",type:"uint256"}],name:"getAmountOut",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsIn",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"}],name:"getAmountsOut",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"reserveA",type:"uint256"},{internalType:"uint256",name:"reserveB",type:"uint256"}],name:"quote",outputs:[{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETH",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityETHSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermit",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountETHMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityETHWithPermitSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountETH",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint256",name:"liquidity",type:"uint256"},{internalType:"uint256",name:"amountAMin",type:"uint256"},{internalType:"uint256",name:"amountBMin",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bool",name:"approveMax",type:"bool"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"removeLiquidityWithPermit",outputs:[{internalType:"uint256",name:"amountA",type:"uint256"},{internalType:"uint256",name:"amountB",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapETHForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactETHForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForETHSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactETH",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!1,internalType:"address",name:"pair",type:"address"},{indexed:!1,internalType:"uint256",name:"",type:"uint256"}],name:"PairCreated",type:"event"},{constant:!0,inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"allPairs",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"allPairsLength",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"}],name:"createPair",outputs:[{internalType:"address",name:"pair",type:"address"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"feeTo",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"feeToSetter",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"getPair",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeTo",type:"address"}],name:"setFeeTo",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_feeToSetter",type:"address"}],name:"setFeeToSetter",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[],payable:!1,stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1In",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount0Out",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1Out",type:"uint256"},{indexed:!0,internalType:"address",name:"to",type:"address"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint112",name:"reserve0",type:"uint112"},{indexed:!1,internalType:"uint112",name:"reserve1",type:"uint112"}],name:"Sync",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{constant:!0,inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"MINIMUM_LIQUIDITY",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"PERMIT_TYPEHASH",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"getReserves",outputs:[{internalType:"uint112",name:"_reserve0",type:"uint112"},{internalType:"uint112",name:"_reserve1",type:"uint112"},{internalType:"uint32",name:"_blockTimestampLast",type:"uint32"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"_token0",type:"address"},{internalType:"address",name:"_token1",type:"address"}],name:"initialize",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"kLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"mint",outputs:[{internalType:"uint256",name:"liquidity",type:"uint256"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{internalType:"address",name:"",type:"address"}],name:"nonces",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"permit",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"price0CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"price1CumulativeLast",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"}],name:"skim",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"uint256",name:"amount0Out",type:"uint256"},{internalType:"uint256",name:"amount1Out",type:"uint256"},{internalType:"address",name:"to",type:"address"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[],name:"sync",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"}]};const SL={name:"honeyswap",label:"Honeyswap",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABQCAYAAADBTPF9AAAACXBIWXMAAAsTAAALEwEAmpwYAAALmklEQVR4nO2de3BU1R3HP7+7eQALAcSNyq4ELDpUS0HJdrRm0aE6oPWJWqtQxUdn1K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wLeBXDOw79NPcLbm+gR4DniirqZ6Y2eZerTJQdAMT8BewHgCMAnwY38dpbux251AHPvDG28Da4ANXQW7RiPxw0XkduCCbh1zjzdVtcuNYtvEnIx9n4LY3yksx46B6Y699+l9YG3KKI0Y1p631tfMa+ruxF7vUtEWhVaO/bT5gAOBYdgD40lgN/Zbth1IKLqtJ46kE43ETxKRO4Fje3uug2xTZSHow73dqrktKn009j06GBgFDOK7xa2NwJcpozTusZq/6Ot9yusPf8TWxIuKi7m0NSU3AZ1+mTML7AEeVtVFgVD55y7a7TV5s9VWR5RVeC3vod4NDfW7louIB5hM9pdnr1RldiDkW1ZW4d2ZZVsZk0+Tcp0SCJXH/VW+G1Q5Fng2S2beB87xV/lOD4R8b3WbO08oCAH3Egj53vVX+c5SOBPoNE6kl2wH5qnqsf4q3wqHynSNghJwL4Eq33Nq6XHADbT77FwvSQF/UdUp/ipfuFC/Yp3Xv4FdUVbhTZaN8a795rOmJ4DBIkym5zFFr6rqRYFQ+QNlFd7MI6xySEG+ge05dKovFgj5rgKmAi92k30Tyiy1dFogVN6nUPZ8Iy/2C3UCf5VvHTA9VpuYCVyEPdCQwn4rU8ALqvpIIFS+I3deOs//AZb84smmUsyHAAAAAElFTkSuQmCC",protocol:"uniswap_v2",slippage:!0,blockchains:["gnosis"],gnosis:{router:{address:"0x1C232F01118CB8B424793ae03F870aa7D0ac7f77",api:LL.ROUTER},factory:{address:"0xA818b4F111Ccac7AA31D0BCc0806d64F2E0737D7",api:LL.FACTORY},pair:{api:LL.PAIR}}};var jL=t=>new AL(Object.assign(SL,{scope:t,findPath:t=>LL.findPath({...t,exchange:SL}),pathExists:t=>LL.pathExists({...t,exchange:SL}),getAmounts:t=>LL.getAmounts({...t,exchange:SL}),getPrep:t=>LL.getPrep({...t,exchange:SL}),getTransaction:t=>LL.getTransaction({...t,exchange:SL})}));const CL="79226673515401279992447579055",DL=t=>-t;class OL{static priceToSqrtPriceX64(t,e,n){return r=t.mul(fL.pow(10,n-e)).sqrt(),new rf(r.mul(fL.pow(2,64)).floor().toFixed());var r}static sqrtPriceX64ToPrice(t,e,n){return(r=t,new fL(r.toString()).mul(fL.pow(2,-64))).pow(2).mul(fL.pow(10,e-n));var r}static tickIndexToSqrtPriceX64(t){return new rf(t>0?function(t){let e;e=new rf(0!=(1&t)?"79232123823359799118286999567":"79228162514264337593543950336");0!=(2&t)&&(e=zL(e.mul(new rf("79236085330515764027303304731")),96,256));0!=(4&t)&&(e=zL(e.mul(new rf("79244008939048815603706035061")),96,256));0!=(8&t)&&(e=zL(e.mul(new rf("79259858533276714757314932305")),96,256));0!=(16&t)&&(e=zL(e.mul(new rf("79291567232598584799939703904")),96,256));0!=(32&t)&&(e=zL(e.mul(new rf("79355022692464371645785046466")),96,256));0!=(64&t)&&(e=zL(e.mul(new rf("79482085999252804386437311141")),96,256));0!=(128&t)&&(e=zL(e.mul(new rf("79736823300114093921829183326")),96,256));0!=(256&t)&&(e=zL(e.mul(new rf("80248749790819932309965073892")),96,256));0!=(512&t)&&(e=zL(e.mul(new rf("81282483887344747381513967011")),96,256));0!=(1024&t)&&(e=zL(e.mul(new rf("83390072131320151908154831281")),96,256));0!=(2048&t)&&(e=zL(e.mul(new rf("87770609709833776024991924138")),96,256));0!=(4096&t)&&(e=zL(e.mul(new rf("97234110755111693312479820773")),96,256));0!=(8192&t)&&(e=zL(e.mul(new rf("119332217159966728226237229890")),96,256));0!=(16384&t)&&(e=zL(e.mul(new rf("179736315981702064433883588727")),96,256));0!=(32768&t)&&(e=zL(e.mul(new rf("407748233172238350107850275304")),96,256));0!=(65536&t)&&(e=zL(e.mul(new rf("2098478828474011932436660412517")),96,256));0!=(131072&t)&&(e=zL(e.mul(new rf("55581415166113811149459800483533")),96,256));0!=(262144&t)&&(e=zL(e.mul(new rf("38992368544603139932233054999993551")),96,256));return zL(e,32,256)}(t):function(t){let e,n=Math.abs(t);e=new rf(0!=(1&n)?"18445821805675392311":"18446744073709551616");0!=(2&n)&&(e=zL(e.mul(new rf("18444899583751176498")),64,256));0!=(4&n)&&(e=zL(e.mul(new rf("18443055278223354162")),64,256));0!=(8&n)&&(e=zL(e.mul(new rf("18439367220385604838")),64,256));0!=(16&n)&&(e=zL(e.mul(new rf("18431993317065449817")),64,256));0!=(32&n)&&(e=zL(e.mul(new rf("18417254355718160513")),64,256));0!=(64&n)&&(e=zL(e.mul(new rf("18387811781193591352")),64,256));0!=(128&n)&&(e=zL(e.mul(new rf("18329067761203520168")),64,256));0!=(256&n)&&(e=zL(e.mul(new rf("18212142134806087854")),64,256));0!=(512&n)&&(e=zL(e.mul(new rf("17980523815641551639")),64,256));0!=(1024&n)&&(e=zL(e.mul(new rf("17526086738831147013")),64,256));0!=(2048&n)&&(e=zL(e.mul(new rf("16651378430235024244")),64,256));0!=(4096&n)&&(e=zL(e.mul(new rf("15030750278693429944")),64,256));0!=(8192&n)&&(e=zL(e.mul(new rf("12247334978882834399")),64,256));0!=(16384&n)&&(e=zL(e.mul(new rf("8131365268884726200")),64,256));0!=(32768&n)&&(e=zL(e.mul(new rf("3584323654723342297")),64,256));0!=(65536&n)&&(e=zL(e.mul(new rf("696457651847595233")),64,256));0!=(131072&n)&&(e=zL(e.mul(new rf("26294789957452057")),64,256));0!=(262144&n)&&(e=zL(e.mul(new rf("37481735321082")),64,256));return e}(t))}static sqrtPriceX64ToTickIndex(t){if(t.gt(new rf(CL))||t.lt(new rf("4295048016")))throw new Error("Provided sqrtPrice is not within the supported sqrtPrice range.");const e=t.bitLength()-1,n=function(t,e,n){let r=t.toTwos(n).shln(e);return r.imaskn(n+1),r.fromTwos(n)}(new rf(e-64),32,128);let r=new rf("8000000000000000","hex"),i=0,o=new rf(0),a=e>=64?t.shrn(e-63):t.shln(63-e);for(;r.gt(new rf(0))&&i<14;){a=a.mul(a);let t=a.shrn(127);a=a.shrn(63+t.toNumber()),o=o.add(r.mul(t)),r=r.shrn(1),i+=1}const s=o.shrn(32),u=n.add(s).mul(new rf("59543866431248")),c=zL(u.sub(new rf("184467440737095516")),64,128).toNumber(),l=zL(u.add(new rf("15793534762490258745")),64,128).toNumber();if(c==l)return c;return OL.tickIndexToSqrtPriceX64(l).lte(t)?l:c}static tickIndexToPrice(t,e,n){return OL.sqrtPriceX64ToPrice(OL.tickIndexToSqrtPriceX64(t),e,n)}static priceToTickIndex(t,e,n){return OL.sqrtPriceX64ToTickIndex(OL.priceToSqrtPriceX64(t,e,n))}static priceToInitializableTickIndex(t,e,n,r){return((t,e)=>t-t%e)(OL.priceToTickIndex(t,e,n),r)}static invertPrice(t,e,n){const r=OL.priceToTickIndex(t,e,n),i=DL(r);return OL.tickIndexToPrice(i,n,e)}static invertSqrtPriceX64(t){const e=OL.sqrtPriceX64ToTickIndex(t),n=DL(e);return OL.tickIndexToSqrtPriceX64(n)}}function zL(t,e,n){let r=t.toTwos(n).shrn(e);return r.imaskn(n-e+1),r.fromTwos(n-e)}const PL=new rf(1e4),_L=new rf(1e6),BL=new rf(0),RL=new rf(1),UL=new rf(2),QL=UL.pow(new rf(64)).sub(RL);class YL extends rf{toBuffer(){const t=super.toArray().reverse(),e=buffer.Buffer.from(t);if(8===e.length)return e;assert__default.default(e.length<8,"u64 too large");const n=buffer.Buffer.alloc(8);return e.copy(n),n}static fromBuffer(t){return assert__default.default(8===t.length,`Invalid buffer length: ${t.length}`),new YL([...t].reverse().map((t=>`00${t.toString(16)}`.slice(-2))).join(""),16)}}class WL{static mul(t,e,n){const r=t.mul(e);if(this.isOverLimit(r,n))throw new Error(`Mul result higher than u${n}`);return r}static mulDiv(t,e,n,r){return this.mulDivRoundUpIf(t,e,n,!1,r)}static mulDivRoundUp(t,e,n,r){return this.mulDivRoundUpIf(t,e,n,!0,r)}static mulDivRoundUpIf(t,e,n,r,i){if(n.eq(BL))throw new Error("mulDiv denominator is zero");const o=this.mul(t,e,i),a=o.div(n);return r&&o.mod(n).gt(BL)?a.add(RL):a}static checked_mul_shift_right(t,e,n){return this.checked_mul_shift_right_round_up_if(t,e,!1,n)}static checked_mul_shift_right_round_up_if(t,e,n,r){if(t.eq(BL)||e.eq(BL))return BL;const i=this.mul(t,e,r);if(this.isOverLimit(i,r))throw new Error(`MulShiftRight overflowed u${r}.`);const o=i.div(new rf(2).pow(new rf(64)));const a=n&&o.and(QL).gt(BL);if(a&&o.eq(QL))throw new Error(`MulShiftRight overflowed u${r}.`);return a?o.add(RL):o}static isOverLimit(t,e){const n=UL.pow(new rf(e)).sub(RL);return t.gt(n)}static divRoundUp(t,e){return this.divRoundUpIf(t,e,!0)}static divRoundUpIf(t,e,n){if(e.eq(BL))throw new Error("divRoundUpIf - divide by zero");let r=t.div(e);return n&&t.mod(e).gt(BL)?r.add(RL):r}}const FL=(t,e,n)=>{const r=OL.tickIndexToSqrtPriceX64(t);return{nextTickPrice:r,nextSqrtPriceLimit:n?rf.max(e,r):rf.min(e,r)}},VL=(t,e)=>t.gt(e)?[e,t]:[t,e],HL=(t,e,n,r)=>{let[i,o]=VL(t,e),a=o.sub(i),s=n.mul(a).shln(64),u=i.mul(o),c=s.div(u),l=s.mod(u),h=r&&!l.eq(BL)?c.add(RL):c;if(h.gt(QL))throw new Error("Results larger than U64");return h},GL=(t,e,n,r)=>{let[i,o]=VL(t,e),a=o.sub(i);return WL.checked_mul_shift_right_round_up_if(n,a,r,128)},qL=(t,e,n,r,i)=>r===i?((t,e,n,r)=>{if(n.eq(BL))return t;let i=WL.mul(t,n,256),o=WL.mul(e,t,256).shln(64);if(WL.isOverLimit(o,256))throw new Error("getNextSqrtPriceFromARoundUp - numerator overflow u256");let a=e.shln(64);if(!r&&a.lte(i))throw new Error("getNextSqrtPriceFromARoundUp - Unable to divide currLiquidityX64 by product");let s=r?a.add(i):a.sub(i),u=WL.divRoundUp(o,s);if(u.lt(new rf("4295048016")))throw new Error("getNextSqrtPriceFromARoundUp - price less than min sqrt price");if(u.gt(new rf(CL)))throw new Error("getNextSqrtPriceFromARoundUp - price less than max sqrt price");return u})(t,e,n,r):((t,e,n,r)=>{let i=n.shln(64),o=WL.divRoundUpIf(i,e,!r);return r?t.add(o):t.sub(o)})(t,e,n,r),ZL=(t,e,n,r,i)=>i===r?HL(t,e,n,r):GL(t,e,n,r),JL=(t,e,n,r,i,o,a)=>{let s=ZL(r,i,n,o,a),u=t;if(o){u=WL.mulDiv(t,_L.sub(new rf(e)),_L,128)}let c=u.gte(s)?i:qL(r,n,u,o,a),l=c.eq(i),h=((t,e,n,r,i)=>i===r?GL(t,e,n,!r):HL(t,e,n,!r))(r,c,n,o,a);l||(s=ZL(r,c,n,o,a));let d,f=o?s:h,p=o?h:s;if(!o&&p.gt(t)&&(p=t),o&&!l)d=t.sub(f);else{const t=new rf(e);d=WL.mulDivRoundUp(f,t,_L.sub(t),128)}return{amountIn:f,amountOut:p,nextPrice:c,feeAmount:d}},XL=(t,e,n)=>n?e.sub(t):e.add(t),KL=(t,e,n,r,i)=>{let o=r,a=i,s=t;if(e>0){let t=((t,e)=>t.mul(new YL(e).div(PL)))(s,e);s=s.sub(t),o=o.add(r)}if(n.gt(BL)){const t=s.shln(64).div(n);a=a.add(t)}return{nextProtocolFee:o,nextFeeGrowthGlobalInput:a}},$L=pf([hf("mint"),hf("vault"),hf("authority"),yf("emissionsPerSecondX64"),yf("growthGlobalX64")]),tS=pf([vf("anchorDiscriminator"),hf("whirlpoolsConfig"),Kd(wf(),1,"whirlpoolBump"),mf("tickSpacing"),Kd(wf(),2,"tickSpacingSeed"),mf("feeRate"),mf("protocolFeeRate"),yf("liquidity"),yf("sqrtPrice"),uf("tickCurrentIndex"),vf("protocolFeeOwedA"),vf("protocolFeeOwedB"),hf("tokenMintA"),hf("tokenVaultA"),yf("feeGrowthGlobalA"),hf("tokenMintB"),hf("tokenVaultB"),yf("feeGrowthGlobalB"),vf("rewardLastUpdatedTimestamp"),Kd($L,3,"rewardInfos")]),eS=pf([af("initialized"),sf("liquidityNet"),yf("liquidityGross"),yf("feeGrowthOutsideA"),yf("feeGrowthOutsideB"),Kd(yf(),3,"reward_growths_outside")]),nS=pf([vf("anchorDiscriminator"),uf("startTickIndex"),Kd(eS,88,"ticks"),hf("whirlpool")]),rS=(t,e,n)=>{const r=(Math.floor(t/e/88)+n)*e*88,i=88*e;if(r<-443636-(-443636%i+i))throw`startTickIndex is too small - - ${r}`;if(r>443636)throw`startTickIndex is too large - ${r}`;return r},iS=async({pool:t,freshWhirlpoolData:e,aToB:n})=>{const r=await(async({aToB:t,pool:e,tickSpacing:n,tickCurrentIndex:r})=>{const i=t?0:n;let o=0,a=[];for(let s=0;s<3;s++){let s;try{s=rS(r+i,n,o)}catch(t){return a}const u=(await Xs.findProgramAddress([nf.from("tick_array"),new Xs(e.toString()).toBuffer(),nf.from(s.toString())],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0];a.push(u),o=t?o-1:o+1}return a})({aToB:n,pool:t,tickSpacing:e.tickSpacing,tickCurrentIndex:e.tickCurrentIndex});return await Promise.all(r.map((async(t,e)=>{let n;try{n=await _I({blockchain:"solana",address:t.toString(),api:nS,cache:10})}catch(t){}return{address:t,data:n}})))};class oS{static fromTickIndex(t,e){const n=Math.floor(Math.floor(t/e)/88);let r=Math.floor(t%(88*e)/e);return r<0&&(r=88+r),new oS(n,r,e)}constructor(t,e,n){if(e>=88)throw new Error("Invalid offsetIndex - value has to be smaller than TICK_ARRAY_SIZE");if(e<0)throw new Error("Invalid offsetIndex - value is smaller than 0");if(n<0)throw new Error("Invalid tickSpacing - value is less than 0");this.arrayIndex=t,this.offsetIndex=e,this.tickSpacing=n}toTickIndex(){return 88*this.arrayIndex*this.tickSpacing+this.offsetIndex*this.tickSpacing}toNextInitializableTickIndex(){return oS.fromTickIndex(this.toTickIndex()+this.tickSpacing,this.tickSpacing)}toPrevInitializableTickIndex(){return oS.fromTickIndex(this.toTickIndex()-this.tickSpacing,this.tickSpacing)}}class aS{constructor(t,e,n){if(!t[0]||!t[0].data)throw new Error("TickArray index 0 must be initialized");this.sequence=[];for(const e of t){if(!e||!e.data)break;this.sequence.push({address:e.address,data:e.data})}this.tickArrays=t,this.tickSpacing=e,this.aToB=n,this.touchedArrays=[...Array(this.sequence.length).fill(!1)],this.startArrayIndex=oS.fromTickIndex(this.sequence[0].data.startTickIndex,this.tickSpacing).arrayIndex}isValidTickArray0(t){const e=this.aToB?0:this.tickSpacing,n=this.sequence[0].data;return this.checkIfIndexIsInTickArrayRange(n.startTickIndex,t+e)}getNumOfTouchedArrays(){return this.touchedArrays.filter((t=>!!t)).length}getTouchedArrays(t){let e=this.touchedArrays.reduce(((t,e,n)=>(e&&t.push(this.sequence[n].address),t)),[]);if(0===e.length)return[];const n=t-e.length;return n>0&&(e=e.concat(Array(n).fill(e[e.length-1]))),e}getTick(t){const e=oS.fromTickIndex(t,this.tickSpacing);if(!this.isArrayIndexInBounds(e,this.aToB))throw new Error("Provided tick index is out of bounds for this sequence.");const n=this.getLocalArrayIndex(e.arrayIndex,this.aToB),r=this.sequence[n].data;if(this.touchedArrays[n]=!0,!r)throw new Error(`TickArray at index ${n} is not initialized.`);if(!this.checkIfIndexIsInTickArrayRange(r.startTickIndex,t))throw new Error(`TickArray at index ${n} is unexpected for this sequence.`);return r.ticks[e.offsetIndex]}findNextInitializedTickIndex(t){const e=this.aToB?t:t+this.tickSpacing;let n=oS.fromTickIndex(e,this.tickSpacing);if(!this.isArrayIndexInBounds(n,this.aToB))throw new Error(`Swap input value traversed too many arrays. Out of bounds at attempt to traverse tick index - ${n.toTickIndex()}.`);for(;this.isArrayIndexInBounds(n,this.aToB);){const t=this.getTick(n.toTickIndex());if(t.initialized)return{nextIndex:n.toTickIndex(),nextTickData:t};n=this.aToB?n.toPrevInitializableTickIndex():n.toNextInitializableTickIndex()}return{nextIndex:Math.max(Math.min(this.aToB?n.toTickIndex()+this.tickSpacing:n.toTickIndex()-1,443636),-443636),nextTickData:null}}getLocalArrayIndex(t,e){return e?this.startArrayIndex-t:t-this.startArrayIndex}isArrayIndexInBounds(t,e){const n=this.getLocalArrayIndex(t.arrayIndex,e),r=this.sequence.length;return n>=0&&n=t&&e{try{const n=await _I({blockchain:"solana",address:t.pubkey.toString(),api:tS,cache:10}),s=n.tokenMintA.toString()===e,u=await iS({pool:t.pubkey,freshWhirlpoolData:n,aToB:s}),c=new aS(u,n.tickSpacing,s),l=new rf(s?"4295048016":CL),h=!(!r&&!i),d=(({tokenAmount:t,aToB:e,freshWhirlpoolData:n,tickSequence:r,sqrtPriceLimit:i,amountSpecifiedIsInput:o})=>{let a=t,s=BL,u=n.sqrtPrice,c=n.liquidity,l=n.tickCurrentIndex,h=BL;const d=n.feeRate,f=n.protocolFeeRate;let p=new YL(0),y=e?n.feeGrowthGlobalA:n.feeGrowthGlobalB;for(;a.gt(BL)&&!i.eq(u);){let{nextIndex:t}=r.findNextInitializedTickIndex(l),{nextTickPrice:n,nextSqrtPriceLimit:m}=FL(t,i,e);const g=JL(a,d,c,u,m,o,e);h=h.add(g.feeAmount),o?(a=a.sub(g.amountIn),a=a.sub(g.feeAmount),s=s.add(g.amountOut)):(a=a.sub(g.amountOut),s=s.add(g.amountIn),s=s.add(g.feeAmount));let{nextProtocolFee:v,nextFeeGrowthGlobalInput:w}=KL(g.feeAmount,f,c,p,y);if(p=v,y=w,g.nextPrice.eq(n)){const n=r.getTick(t);n.initialized&&(c=XL(n.liquidityNet,c,e)),l=e?t-1:t}else l=OL.sqrtPriceX64ToTickIndex(g.nextPrice);u=g.nextPrice}return s})({tokenAmount:new rf((r||i||o||a).toString()),aToB:s,freshWhirlpoolData:n,tickSequence:c,sqrtPriceLimit:l,amountSpecifiedIsInput:h});if("0"==d.toString())throw"amountCalculated cant be zero!";return{price:d.toString(),tickArrays:u,aToB:s,sqrtPriceLimit:l}}catch(t){return{price:void 0,tickArrays:void 0,aToB:void 0,sqrtPriceLimit:void 0}}};let uS=async(t,e)=>{if(e===Hf.solana.wrapped.address)return[];return await _I("solana://whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc/getProgramAccounts",{params:{filters:[{dataSize:tS.span},{memcmp:{offset:8,bytes:"2LecshUwdy9xi7meFgHtFJQNSKk4KdTrcpvaB56dP2NQ"}},{memcmp:{offset:101,bytes:t}},{memcmp:{offset:181,bytes:e}}]},api:tS,cache:86400,cacheKey:["whirlpool",t.toString(),e.toString()].join("-")})},cS=async({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{try{let a=await uS(t,e);return 0===a.length&&(a=await uS(e,t)),a=a.filter((t=>t.data.liquidity.gt(1))),a=(await Promise.all(a.map((async a=>{const{price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l}=await sS({account:a,tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});return void 0!==s&&{pubkey:a.pubkey,price:s,tickArrays:u,sqrtPriceLimit:c,aToB:l,data:{tokenVaultA:a.data.tokenVaultA,tokenVaultB:a.data.tokenVaultB}}})))).filter(Boolean),a}catch(t){return[]}},lS=async({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o})=>{const a=await cS({tokenIn:t,tokenOut:e,amountIn:n,amountInMax:r,amountOut:i,amountOutMin:o});if(!a||0===a.length)return;let s;return s=n||r?(t=>t.reduce(((t,e)=>Fp.from(e.price).gt(Fp.from(t.price))?e:t)))(a):(t=>t.reduce(((t,e)=>Fp.from(e.price).lt(Fp.from(t.price))?e:t)))(a),s};function hS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const dS=Hf.solana;let fS=({path:t})=>{if(!t)return;let e=t.map(((e,n)=>e===dS.currency.address&&t[n+1]!=dS.wrapped.address&&t[n-1]!=dS.wrapped.address?dS.wrapped.address:e));return e[0]==dS.currency.address&&e[1]==dS.wrapped.address?e.splice(0,1):e[e.length-1]==dS.currency.address&&e[e.length-2]==dS.wrapped.address&&e.splice(e.length-1,1),e},pS=async({path:t,amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i})=>1!=t.length&&(t=fS({path:t}),(await cS({tokenIn:t[0],tokenOut:t[1],amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i})).length>0),yS=async({path:t,amountIn:e,amountInMax:n})=>{let r=[Fp.from(e||n)];if(r.push(Fp.from((await lS({tokenIn:t[0],tokenOut:t[1],amountIn:e,amountInMax:n})).price)),3===t.length&&r.push(Fp.from((await lS({tokenIn:t[1],tokenOut:t[2],amountIn:e?r[1]:void 0,amountInMax:n?r[1]:void 0})).price)),r.length==t.length)return r},mS=async({path:t,amountOut:e,amountOutMin:n})=>{t=t.slice().reverse();let r=[Fp.from(e||n)];if(r.push(Fp.from((await lS({tokenIn:t[1],tokenOut:t[0],amountOut:e,amountOutMin:n})).price)),3===t.length&&r.push(Fp.from((await lS({tokenIn:t[2],tokenOut:t[1],amountOut:e?r[1]:void 0,amountOutMin:n?r[1]:void 0})).price)),r.length==t.length)return r.slice().reverse()};const gS=Hf.solana,vS=new rf("14449647541112719096"),wS=new rf("16635068063392030915"),bS=async({instructions:t,owner:e,token:n,account:r})=>{let i;try{i=!!await _I({blockchain:"solana",address:r.toString()})}catch(t){}i||t.push(await kk.solana.createAssociatedTokenAccountInstruction({token:n,owner:e,payer:e}))},MS=async({account:t,poolOne:e,tickArraysOne:n,tokenAccountOneA:r,tokenVaultOneA:i,tokenAccountOneB:o,tokenVaultOneB:a,poolTwo:s,tickArraysTwo:u,tokenAccountTwoA:c,tokenVaultTwoA:l,tokenAccountTwoB:h,tokenVaultTwoB:d})=>{let f=!1;const p=n.map(((t,e)=>!1!==f?n[f]:t.data?t:(f=e-1,n[e-1])));let y=!1;const m=u.map(((t,e)=>!1!==y?u[y]:t.data?t:(y=e-1,u[e-1])));return[{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Xs(t),isWritable:!1,isSigner:!0},{pubkey:new Xs(e.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(s.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(o.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(a.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(c.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(l.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(h.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(d.toString()),isWritable:!0,isSigner:!1},{pubkey:p[0].address,isWritable:!0,isSigner:!1},{pubkey:p[1].address,isWritable:!0,isSigner:!1},{pubkey:p[2].address,isWritable:!0,isSigner:!1},{pubkey:m[0].address,isWritable:!0,isSigner:!1},{pubkey:m[1].address,isWritable:!0,isSigner:!1},{pubkey:m[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(e.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(s.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},AS=({amount:t,otherAmountThreshold:e,amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a})=>{let s,u;return s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]),u=nf.alloc(s.span),s.encode({anchorDiscriminator:wS,amount:new rf(t.toString()),otherAmountThreshold:new rf(e.toString()),amountSpecifiedIsInput:n,aToBOne:r,aToBTwo:i,sqrtPriceLimitOne:o,sqrtPriceLimitTwo:a},u),u},IS=async({account:t,pool:e,tokenAccountA:n,tokenVaultA:r,tokenAccountB:i,tokenVaultB:o,tickArrays:a})=>{let s=!1;const u=a.map(((t,e)=>!1!==s?a[s]:t.data?t:(s=e-1,a[e-1])));return[{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isWritable:!1,isSigner:!1},{pubkey:new Xs(t),isWritable:!1,isSigner:!0},{pubkey:new Xs(e.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(n.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(r.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(i.toString()),isWritable:!0,isSigner:!1},{pubkey:new Xs(o.toString()),isWritable:!0,isSigner:!1},{pubkey:u[0].address,isWritable:!0,isSigner:!1},{pubkey:u[1].address,isWritable:!0,isSigner:!1},{pubkey:u[2].address,isWritable:!0,isSigner:!1},{pubkey:(await Xs.findProgramAddress([nf.from("oracle"),new Xs(e.toString()).toBuffer()],new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc")))[0],isWritable:!1,isSigner:!1}]},NS=({amount:t,otherAmountThreshold:e,sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i})=>{let o,a;return o=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]),a=nf.alloc(o.span),o.encode({anchorDiscriminator:vS,amount:new rf(t.toString()),otherAmountThreshold:new rf(e.toString()),sqrtPriceLimit:n,amountSpecifiedIsInput:r,aToB:i},a),a};var ES={findPath:async({tokenIn:t,tokenOut:e,amountIn:n,amountOut:r,amountInMax:i,amountOutMin:o})=>{if([t,e].includes(dS.currency.address)&&[t,e].includes(dS.wrapped.address))return{path:void 0,exchangePath:void 0};let a,s,u,c;return await pS({path:[t,e],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?a=[t,e]:t!=dS.wrapped.address&&t!=dS.currency.address&&await pS({path:[t,dS.wrapped.address],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})&&e!=dS.wrapped.address&&e!=dS.currency.address&&await pS({path:[e,dS.wrapped.address],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?a=[t,dS.wrapped.address,e]:!dS.stables.usd.includes(t)&&(s=(await Promise.all(dS.stables.usd.map((async e=>await pS({path:[t,e],amountIn:n,amountInMax:i,amountOut:r,amountOutMin:o})?e:void 0)))).filter(Boolean))&&!dS.stables.usd.includes(e)&&(u=(await Promise.all(dS.stables.usd.map((async t=>await pS({path:[e,t],amountIn:r||o,amountInMax:r||o,amountOut:n||i,amountOutMin:n||i})?t:void 0)))).filter(Boolean))&&(c=s.filter((t=>u.includes(t)))[0])&&(a=[t,c,e]),hS([a,"optionalAccess",t=>t.length])&&a[0]==dS.currency.address?a.splice(1,0,dS.wrapped.address):hS([a,"optionalAccess",t=>t.length])&&a[a.length-1]==dS.currency.address&&a.splice(a.length-1,0,dS.wrapped.address),{path:a,exchangePath:fS({path:a})}},pathExists:pS,getAmounts:async({path:t,tokenIn:e,tokenOut:n,amountOut:r,amountIn:i,amountInMax:o,amountOutMin:a})=>{let s;if(t=fS({path:t}),r){if(s=await mS({path:t,amountOut:r,tokenIn:e,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(i){if(s=await yS({path:t,amountIn:i,tokenIn:e,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}else if(a){if(s=await mS({path:t,amountOutMin:a,tokenIn:e,tokenOut:n}),null==(i=s?s[0]:void 0)||o&&i.gt(o))return{};void 0===o&&(o=i)}else if(o){if(s=await yS({path:t,amountInMax:o,tokenIn:e,tokenOut:n}),null==(r=s?s[s.length-1]:void 0)||a&&r.lt(a))return{};void 0===a&&(a=r)}return{amountOut:r||a,amountIn:i||o,amountInMax:o||i,amountOutMin:a||r,amounts:s}},getTransaction:async({path:t,amountIn:e,amountInMax:n,amountOut:r,amountOutMin:i,amounts:o,amountInInput:a,amountOutInput:s,amountInMaxInput:u,amountOutMinInput:c,account:l})=>{let h={blockchain:"solana"},d=[];const f=fS({path:t});if(f.length>3)throw"Orca can only handle fixed paths with a max length of 3 (2 pools)!";const p=f[0],y=3==f.length?f[1]:void 0,m=f[f.length-1];let g;2==f.length?g=[await lS({tokenIn:p,tokenOut:m,amountIn:a||u,amountOut:s||c})]:a||u?(g=[await lS({tokenIn:p,tokenOut:y,amountIn:a||u})],g.push(await lS({tokenIn:y,tokenOut:m,amountIn:g[0].price}))):(g=[await lS({tokenIn:y,tokenOut:m,amountOut:s||c})],g.unshift(await lS({tokenIn:p,tokenOut:y,amountOut:g[0].price})));let v,w=t[0]===gS.currency.address&&f[0]===gS.wrapped.address,b=t[t.length-1]===gS.currency.address&&f[f.length-1]===gS.wrapped.address;const M=await SI("solana");if(w||b){const t=await M.getMinimumBalanceForRentExemption(kk.solana.TOKEN_LAYOUT.span),n=Zl.generate();v=n.publicKey.toString();const r=w?new rf(e.toString()).add(new rf(t)):new rf(t);let i=Wu.createAccount({fromPubkey:new Xs(l),newAccountPubkey:new Xs(v),programId:new Xs(kk.solana.TOKEN_PROGRAM),space:kk.solana.TOKEN_LAYOUT.span,lamports:r});i.signers=[n],d.push(i),d.push(kk.solana.initializeAccountInstruction({account:v,token:gS.wrapped.address,owner:l}))}if(1===g.length){let t=!(!a&&!c),o=t?e:r,s=t?i:n,u=new Xs(w?v:await kk.solana.findProgramAddress({owner:l,token:p})),h=new Xs(b?v:await kk.solana.findProgramAddress({owner:l,token:m}));b||await bS({instructions:d,owner:l,token:m,account:h}),d.push(new gu({programId:new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await IS({account:l,pool:g[0].pubkey,tokenAccountA:g[0].aToB?u:h,tokenVaultA:g[0].data.tokenVaultA,tokenAccountB:g[0].aToB?h:u,tokenVaultB:g[0].data.tokenVaultB,tickArrays:g[0].tickArrays}),data:NS({amount:o,otherAmountThreshold:s,sqrtPriceLimit:g[0].sqrtPriceLimit,amountSpecifiedIsInput:t,aToB:g[0].aToB})}))}else if(2===g.length){let t=!(!a&&!c),o=t?e:r,s=t?i:n,u=new Xs(w?v:await kk.solana.findProgramAddress({owner:l,token:p})),h=f[1],y=new Xs(await kk.solana.findProgramAddress({owner:l,token:h}));await bS({instructions:d,owner:l,token:h,account:y});let M=new Xs(b?v:await kk.solana.findProgramAddress({owner:l,token:m}));b||await bS({instructions:d,owner:l,token:m,account:M}),d.push(new gu({programId:new Xs("whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc"),keys:await MS({account:l,poolOne:g[0].pubkey,tickArraysOne:g[0].tickArrays,tokenAccountOneA:g[0].aToB?u:y,tokenVaultOneA:g[0].data.tokenVaultA,tokenAccountOneB:g[0].aToB?y:u,tokenVaultOneB:g[0].data.tokenVaultB,poolTwo:g[1].pubkey,tickArraysTwo:g[1].tickArrays,tokenAccountTwoA:g[1].aToB?y:M,tokenVaultTwoA:g[1].data.tokenVaultA,tokenAccountTwoB:g[1].aToB?M:y,tokenVaultTwoB:g[1].data.tokenVaultB}),data:AS({amount:o,otherAmountThreshold:s,amountSpecifiedIsInput:t,aToBOne:g[0].aToB,aToBTwo:g[1].aToB,sqrtPriceLimitOne:g[0].sqrtPriceLimit,sqrtPriceLimitTwo:g[1].sqrtPriceLimit})}))}return(w||b)&&d.push(kk.solana.closeAccountInstruction({account:v,owner:l})),h.instructions=d,h},WHIRLPOOL_LAYOUT:tS};const xS={name:"orca",label:"Orca",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI3LjIuMCwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9ImthdG1hbl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOn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ana:{router:{address:"whirLbMiicVdio4qvUfM5KAg6Ct8VwpYzGff3uctyCc",api:ES.WHIRLPOOL_LAYOUT}}};var kS=t=>new AL(Object.assign(xS,{scope:t,findPath:t=>ES.findPath({...t,exchange:xS}),pathExists:t=>ES.pathExists({...t,exchange:xS}),getAmounts:t=>ES.getAmounts({...t,exchange:xS}),getPrep:t=>{},getTransaction:t=>ES.getTransaction({...t,exchange:xS})}));const TS={name:"pancakeswap",label:"PancakeSwap",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3LjkzOTkgNDYuMzUyNyAzNS45MzI1IDM3LjUxNzQgMzUuOTMyNSAzMS4wNDI5QzM1LjkzMjUgMjMuMzc5NSAzNy42MjA0IDE1LjY4MzMgNDIuMTcxNCA5LjcwMzA2QzQ2Ljk3OTcgMy4zODQ3NiA1NC4yMTgyIDAgNjIuOTI2NCAwQzY5LjczMjIgMCA3NS41MTAzIDIuNDk5MDMgODAuMDMzOSA2LjgxMDExQzg0LjM1NzkgMTAuOTMwOSA4Ny4yMzU3IDE2L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LjM2MkMxNTUuMzEzIDE4OS4zNjIgMTg2LjAxOCAxNjIuNTAzIDE4Ni4wMTggMTI2Ljg3MUMxODYuMDE4IDEyNi44MjYgMTg2LjAxOCAxMjYuNzgxIDE4Ni4wMTggMTI2LjczN0MxODUuOTQ2IDE1NS41MiAxNDAuMjMxIDE3Ny43NTUgOTguNjkzMSAxNzcuNzU1WiIgZmlsbD0iI0ZFREM5MCIvPgo8cGF0aCBkPSJNNzUuNjEzNSAxMTcuODk2Qzc1LjYxMzUgMTI3LjYxNCA3MS4wMjEgMTMyLjY3NSA2NS4zNTU4IDEzMi42NzVDNTkuNjkwNyAxMzIuNjc1IDU1LjA5ODEgMTI3LjYxNCA1NS4wOTgxIDExNy44OTZDNTUuMDk4MSAxMDguMTc4IDU5LjY5MDcgMTAzLjExNyA2NS4zNTU4IDEwMy4xMTdDNzEuMDIxIDEwMy4xMTcgNzUuNjEzNSAxMDguMTc4IDc1LjYxMzUgMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPHBhdGggZD0iTTE0Mi4yODggMTE3Ljg5NkMxNDIuMjg4IDEyNy42MTQgMTM3LjY5NiAxMzIuNjc1IDEzMi4wMzEgMTMyLjY3NUMxMjYuMzY1IDEzMi42NzUgMTIxLjc3MyAxMjcuNjE0IDEyMS43NzMgMTE3Ljg5NkMxMjEuNzczIDEwOC4xNzggMTI2LjM2NSAxMDMuMTE3IDEzMi4wMzEgMTAzLjExN0MxMzcuNjk2IDEwMy4xMTcgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["bsc"],bsc:{router:{address:"0x10ED43C718714eb63d5aA57B78B54704E256024E",api:LL.ROUTER},factory:{address:"0xcA143Ce32Fe78f1f7019d7d551a6402fC5350c73",api:LL.FACTORY},pair:{api:LL.PAIR}}};var LS=t=>new AL(Object.assign(TS,{scope:t,findPath:t=>LL.findPath({...t,exchange:TS}),pathExists:t=>LL.pathExists({...t,exchange:TS}),getAmounts:t=>LL.getAmounts({...t,exchange:TS}),getPrep:t=>LL.getPrep({...t,exchange:TS}),getTransaction:t=>LL.getTransaction({...t,exchange:TS})}));function SS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const jS=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},CS=async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=jS({blockchain:t,exchange:e,path:n})).length>2)throw"PancakeSwap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(e.fees.map((r=>_I({blockchain:Hf[t].name,address:e[t].factory.address,method:"getPool",api:e[t].factory.api,cache:3600,params:[n[0],n[1],r]}).then((e=>({blockchain:t,address:e,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((e=>e.address!=Hf[t].zero)),o=(await Promise.all(o.map((async t=>{try{let n;return n=r?await(async({exchange:t,pool:e,inputAmount:n})=>(await _I({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactInput",params:{path:oI(["address","uint24","address"],[e.path[0],e.fee,e.path[1]]),amountIn:n},cache:5})).amountOut)({exchange:e,pool:t,inputAmount:r}):await(async({exchange:t,pool:e,outputAmount:n})=>(await _I({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactOutput",params:{path:oI(["address","uint24","address"],[e.path[1],e.fee,e.path[0]]),amountOut:n},cache:5})).amountIn)({exchange:e,pool:t,outputAmount:i}),{...t,amountIn:r||n,amountOut:i||n}}catch(t){}})))).filter(Boolean),r?o.sort(((t,e)=>e.amountOut.gt(t.amountOut)?1:-1))[0]:o.sort(((t,e)=>e.amountIn.lt(t.amountIn)?1:-1))[0]}catch(t){return}};let DS=({blockchain:t,exchange:e,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,OS=async({blockchain:t,exchange:e,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=oI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=oI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await _I({block:o,blockchain:t,address:e[t].quoter.address,api:e[t].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var zS={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await CS({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[t].wrapped.address||r==Hf[t].wrapped.address||(c=[],o||s?(c.push(await CS({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await CS({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await CS({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await CS({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,Hf[t].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await CS({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await CS({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await CS({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await CS({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return SS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[t].currency.address?u.splice(1,0,Hf[t].wrapped.address):SS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[t].currency.address&&u.splice(u.length-1,0,Hf[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:jS({blockchain:t,exchange:e,path:u})}},pathExists:async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await CS({blockchain:t,exchange:e,path:n,amountIn:r||o,amountOut:i||a})}catch(t){return!1}},getAmounts:async({blockchain:t,exchange:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await OS({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await DS({blockchain:t,exchange:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await OS({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await DS({blockchain:t,exchange:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i,tokenOut:o})=>{if(n===Hf[e].currency.address)return;let a;a=o===Hf[e].currency.address?t[e].smartRouter.address:t[e].router.address;if((await _I({blockchain:e,address:n,method:"allowance",api:kk[e][20],params:[i,a]})).lt(r)){return{transaction:{blockchain:e,from:i,to:n,api:kk[e][20],method:"approve",params:[a,Hf[e].maxInt]}}}},getTransaction:async({blockchain:t,exchange:e,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:h,account:d,inputTokenPushed:f})=>{const p={blockchain:t,from:d},y=Math.floor(Date.now()/1e3)+21600,m=jS({blockchain:t,exchange:e,path:r});if(r[r.length-1]===Hf[t].currency.address){p.to=e[t].smartRouter.address,p.api=e[t].smartRouter.api,p.method="multicall";const r=new Og(e[t].smartRouter.api);if(p.params={data:[]},2===m.length)u||h?p.params.data.push(r.encodeFunctionData("exactInputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:e[t].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}])):(c||l)&&p.params.data.push(r.encodeFunctionData("exactOutputSingle",[{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:e[t].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}]));else{const d=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||h?p.params.data.push(r.encodeFunctionData("exactInput",[{path:d,recipient:e[t].smartRouter.address,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}])):(c||l)&&p.params.data.push(r.encodeFunctionData("exactOutput",[{path:d,recipient:e[t].smartRouter.address,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}]))}p.params.data.push(r.encodeFunctionData("unwrapWETH9",[(s||a).toString(),d]))}else if(p.to=e[t].router.address,p.api=e[t].router.api,r[0]===Hf[t].currency.address&&(p.value=(i||o).toString()),2===m.length)u||h?(p.method="exactInputSingle",p.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:d,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}}):(c||l)&&(p.method="exactOutputSingle",p.params={params:{tokenIn:m[0],tokenOut:m[1],fee:n[0].fee,recipient:d,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString(),sqrtPriceLimitX96:Hf[t].zero}});else{const t=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]]);u||h?(p.method="exactInput",p.params={params:{path:t,recipient:d,deadline:y,amountIn:(o||i).toString(),amountOutMinimum:(s||a).toString()}}):(c||l)&&(p.method="exactOutput",p.params={params:{path:t,recipient:d,deadline:y,amountInMaximum:(o||i).toString(),amountOut:(s||a).toString()}})}return p},ROUTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct ISwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct ISwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct ISwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],SMART_ROUTER:[{inputs:[{internalType:"address",name:"_factoryV2",type:"address"},{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factoryV3",type:"address"},{internalType:"address",name:"_positionManager",type:"address"},{internalType:"address",name:"_stableFactory",type:"address"},{internalType:"address",name:"_stableInfo",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"factory",type:"address"},{indexed:!0,internalType:"address",name:"info",type:"address"}],name:"SetStableSwap",type:"event"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMax",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"}],name:"approveZeroThenMaxMinusOne",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"data",type:"bytes"}],name:"callPositionManager",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"paths",type:"bytes[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint24",name:"maximumTickDivergence",type:"uint24"},{internalType:"uint32",name:"secondsAgo",type:"uint32"}],name:"checkOracleSlippage",outputs:[],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactInputParams",name:"params",type:"tuple"}],name:"exactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinimum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactInputSingleParams",name:"params",type:"tuple"}],name:"exactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactInputStableSwap",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"}],internalType:"struct IV3SwapRouter.ExactOutputParams",name:"params",type:"tuple"}],name:"exactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMaximum",type:"uint256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IV3SwapRouter.ExactOutputSingleParams",name:"params",type:"tuple"}],name:"exactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address[]",name:"path",type:"address[]"},{internalType:"uint256[]",name:"flag",type:"uint256[]"},{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address",name:"to",type:"address"}],name:"exactOutputStableSwap",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factoryV2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"getApprovalType",outputs:[{internalType:"enum IApproveAndCall.ApprovalType",name:"",type:"uint8"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint256",name:"tokenId",type:"uint256"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"}],internalType:"struct IApproveAndCall.IncreaseLiquidityParams",name:"params",type:"tuple"}],name:"increaseLiquidity",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint256",name:"amount0Min",type:"uint256"},{internalType:"uint256",name:"amount1Min",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],internalType:"struct IApproveAndCall.MintParams",name:"params",type:"tuple"}],name:"mint",outputs:[{internalType:"bytes",name:"result",type:"bytes"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes32",name:"previousBlockhash",type:"bytes32"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes[]",name:"data",type:"bytes[]"}],name:"multicall",outputs:[{internalType:"bytes[]",name:"results",type:"bytes[]"}],stateMutability:"payable",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"_data",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"positionManager",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"pull",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"refundETH",outputs:[],stateMutability:"payable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermit",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowed",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"expiry",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitAllowedIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"value",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint8",name:"v",type:"uint8"},{internalType:"bytes32",name:"r",type:"bytes32"},{internalType:"bytes32",name:"s",type:"bytes32"}],name:"selfPermitIfNecessary",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_info",type:"address"}],name:"setStableSwap",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stableSwapFactory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"stableSwapInfo",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"address[]",name:"path",type:"address[]"},{internalType:"address",name:"to",type:"address"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"}],name:"sweepToken",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"sweepTokenWithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"}],name:"unwrapWETH9",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountMinimum",type:"uint256"},{internalType:"uint256",name:"feeBips",type:"uint256"},{internalType:"address",name:"feeRecipient",type:"address"}],name:"unwrapWETH9WithFee",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"value",type:"uint256"}],name:"wrapETH",outputs:[],stateMutability:"payable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"_poolDeployer",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"bool",name:"whitelistRequested",type:"bool"},{indexed:!1,internalType:"bool",name:"enabled",type:"bool"}],name:"FeeAmountExtraInfoUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"lmPoolDeployer",type:"address"}],name:"SetLmPoolDeployer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"user",type:"address"},{indexed:!1,internalType:"bool",name:"verified",type:"bool"}],name:"WhiteListAdded",type:"event"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacingExtraInfo",outputs:[{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPoolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"poolDeployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"bool",name:"whitelistRequested",type:"bool"},{internalType:"bool",name:"enabled",type:"bool"}],name:"setFeeAmountExtraInfo",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pool",type:"address"},{internalType:"address",name:"lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPoolDeployer",type:"address"}],name:"setLmPoolDeployer",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"bool",name:"verified",type:"bool"}],name:"setWhiteListAddress",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint32",name:"feeProtocol0Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1Old",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol0New",type:"uint32"},{indexed:!1,internalType:"uint32",name:"feeProtocol1New",type:"uint32"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"addr",type:"address"}],name:"SetLmPoolEvent",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"protocolFeesToken1",type:"uint128"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"lmPool",outputs:[{internalType:"contract IPancakeV3LmPool",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32",name:"feeProtocol0",type:"uint32"},{internalType:"uint32",name:"feeProtocol1",type:"uint32"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"_lmPool",type:"address"}],name:"setLmPool",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint32",name:"feeProtocol",type:"uint32"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_deployer",type:"address"},{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"deployer",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"pancakeV3SwapCallback",outputs:[],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"}]};const PS={name:"pancakeswap_v3",label:"PancakeSwap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTk4IiBoZWlnaHQ9IjE5OSIgdmlld0JveD0iMCAwIDE5OCAxOTkiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNOTguNTUyIDE5OC42MDdDNjkuMDYxMyAxOTguNTg1IDQ1LjMwNiAxOTEuNTggMjguNzA3OSAxNzguOTk4QzExLjkxMDggMTY2LjI2NSAzIDE0OC4xOTUgMyAxMjcuNzQ4QzMgMTA4LjA0NyAxMS44OTEzIDkzLjg0MTEgMjEuOTUxNyA4NC4yMzg1QzI5LjgzNTkgNzYuNzEzMiAzOC41MzYzIDcxLjg5MzYgNDQuNTk0NSA2OS4xMjEzQzQzLjIyNDUgNjQuOTU5NCA0MS41MTUzIDU5LjUxMDggMzkuOTg2MSA1My44ODMyQzM3LjkzOTkgNDYuMzUyNyAzNS45MzI1IDM3LjUxNzQgMzUuOTMyNSAzMS4wNDI5QzM1LjkzMjUgMjMuMzc5NSAzNy42MjA0IDE1LjY4MzMgNDIuMTcxNCA5LjcwMzA2QzQ2Ljk3OTcgMy4zODQ3NiA1NC4yMTgyIDAgNjIuOTI2NCAwQzY5LjczMjIgMCA3NS41MTAzIDIuNDk5MDMgODAuMDMzOSA2LjgxMDExQzg0LjM1NzkgMTAuOTMwOSA4Ny4yMzU3IDE2LjQwMzQgODkuMjIyNyAyMi4xMDgyQzkyLjcxNDMgMzIuMTMyNSA5NC4wNzM4IDQ0LjcyNjQgOTQuNDU1MSA1Ny4yOTQ1SDEwMi43OTZDMTAzLjE3OCA0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ni4wMTggMTI2LjczN0MxODUuOTQ2IDE1NS41MiAxNDAuMjMxIDE3Ny43NTUgOTguNjkzMSAxNzcuNzU1WiIgZmlsbD0iI0ZFREM5MCIvPgo8cGF0aCBkPSJNNzUuNjEzNSAxMTcuODk2Qzc1LjYxMzUgMTI3LjYxNCA3MS4wMjEgMTMyLjY3NSA2NS4zNTU4IDEzMi42NzVDNTkuNjkwNyAxMzIuNjc1IDU1LjA5ODEgMTI3LjYxNCA1NS4wOTgxIDExNy44OTZDNTUuMDk4MSAxMDguMTc4IDU5LjY5MDcgMTAzLjExNyA2NS4zNTU4IDEwMy4xMTdDNzEuMDIxIDEwMy4xMTcgNzUuNjEzNSAxMDguMTc4IDc1LjYxMzUgMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPHBhdGggZD0iTTE0Mi4yODggMTE3Ljg5NkMxNDIuMjg4IDEyNy42MTQgMTM3LjY5NiAxMzIuNjc1IDEzMi4wMzEgMTMyLjY3NUMxMjYuMzY1IDEzMi42NzUgMTIxLjc3MyAxMjcuNjE0IDEyMS43NzMgMTE3Ljg5NkMxMjEuNzczIDEwOC4xNzggMTI2LjM2NSAxMDMuMTE3IDEzMi4wMzEgMTAzLjExN0MxMzcuNjk2IDEwMy4xMTcgMTQyLjI4OCAxMDguMTc4IDE0Mi4yODggMTE3Ljg5NloiIGZpbGw9IiM2MzMwMDEiLz4KPC9zdmc+Cg==",protocol:"pancakeswap_v3",slippage:!0,fees:[100,500,2500,1e4],blockchains:["bsc"],bsc:{router:{address:"0x1b81D678ffb9C0263b24A97847620C99d213eB14",api:zS.ROUTER},smartRouter:{address:"0x13f4EA83D0bd40E75C8222255bc855a974568Dd4",api:zS.SMART_ROUTER},factory:{address:"0x0BFbCF9fa4f9C56B0F40a671Ad40E0805A091865",api:zS.FACTORY},pair:{api:zS.POOL},quoter:{address:"0xB048Bbc1Ee6b733FFfCFb9e9CeF7375518e25997",api:zS.QUOTER}}};var _S=t=>new AL(Object.assign(PS,{scope:t,findPath:t=>zS.findPath({...t,exchange:PS}),pathExists:t=>zS.pathExists({...t,exchange:PS}),getAmounts:t=>zS.getAmounts({...t,exchange:PS}),getPrep:t=>zS.getPrep({...t,exchange:PS}),getTransaction:t=>zS.getTransaction({...t,exchange:PS})}));const BS={name:"quickswap",label:"QuickSwap",logo:"data:image/svg+xml;base64,PHN2ZyBpZD0iTGF5ZXJfMSIgZGF0YS1uYW1lPSJMYXllciAxIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB2aWV3Qm94PSIwIDAgNzAyLjQ1IDcwMi40NyI+PGRlZnM+PGNsaXBQYXRoIGlkPSJjbGlwLXBhdGgiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMy43OCAtMjMuNzcpIj48cmVjdCB3aWR0aD0iNzUwIiBoZWlnaHQ9Ijc1MCIgZmlsbD0ibm9uZSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwLXBhdGgpIj48cGF0aCBkPSJNMzU0Ljc0LDI0LjM3YTM1MS4yNywzNTEuMjcsMCwwLDEsMzYzLjc0LDI3NywzNTQsMzU0LDAsMCwxLDEuMjMsMTQxLjI2QTM1MS43NiwzNTEuNzYsMCwwLDEsNTEwLjEyLDY5OS4zYy03My43NywzMS0xNTguMjUsMzUuMzUtMjM0LjkxLDEyLjU0QTM1MiwzNTIsMCwwLDEsNDYuNTEsNDk5LjU2Yy0yOC03My40NS0zMC4xNi0xNTYuMzgtNi4yNC0yMzEuMjVBMzUwLjg4LDM1MC44OCwwLDAsMSwzNTQuNzQsMjQuMzciIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMy43OCAtMjMuNzcpIiBmaWxsPSIjZmZmIi8+PHBhdGggZD0iTTE1OC44MSwzNDkuNThjMS4zOSw2LjQxLDIuMjMsMTIuOTIsMy42MSwxO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i42NC4zNC0yLjYxLDIuNzItMy44LDQuMTEtNS42Myw1LjM4LTcuMDcsOS4zNS0xNC42OSwxMS0yMy40NmEyNy40MywyNy40MywwLDAsMSwxLjIxLTMuNDMsMTExLDExMSwwLDAsMSw4LDIxLjE2YzIuNjMsMTAuMzEsNC4xMSwyMC44LDMuMzMsMzEuNGExMjMuMzEsMTIzLjMxLDAsMCwxLTE2LjA2LDUyLjMyYy05LjE2LDE2LjE1LTIxLDMwLTM0LjYsNDIuMzdhMTk5Ljg5LDE5OS44OSwwLDAsMS0zOS4zNywyNy41NCwyMTkuNSwyMTkuNSwwLDAsMS01NC4yNiwyMC43MSwyMDkuMjcsMjA5LjI3LDAsMCwxLTM2LjA1LDUuMmMtNS44NS4zMy0xMS43MS44My0xNy41Mi40Ni00LjUxLS4yOS05LjE0LDAtMTMuNTYtMS4zNyIgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoLTIzLjc4IC0yMy43NykiIGZpbGw9IiMwZTFmNjYiLz48L2c+PC9zdmc+",protocol:"uniswap_v2",slippage:!0,blockchains:["polygon"],polygon:{router:{address:"0xa5E0829CaCEd8fFDD4De3c43696c57F7D7A678ff",api:LL.ROUTER},factory:{address:"0x5757371414417b8C6CAad45bAeF941aBc7d3Ab32",api:LL.FACTORY},pair:{api:LL.PAIR}}};var RS=t=>new AL(Object.assign(BS,{scope:t,findPath:t=>LL.findPath({...t,exchange:BS}),pathExists:t=>LL.pathExists({...t,exchange:BS}),getAmounts:t=>LL.getAmounts({...t,exchange:BS}),getPrep:t=>LL.getPrep({...t,exchange:BS}),getTransaction:t=>LL.getTransaction({...t,exchange:BS})}));const US={name:"spookyswap",label:"SpookySwap",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnh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Q4Ny41LDI2MS4zLDQ4My41LDI1Ni4xTDQ4My41LDI1Ni4xeiIvPgoJPHBhdGggZmlsbD0iI0ZGRTYwMCIgZD0iTTEzMy4zLDEzMS41YzYuNS0wLjcsMTUuNywxOS42LDE1LjcsMTkuNnMyMC45LTUuOSwyNC44LDBjMy4zLDUuOS0xNSwxOS42LTE1LDE5LjZzMTEuMSwxOS42LDcuMiwyMy41CgkJYy0zLjMsMy45LTIyLjgtOC41LTIyLjgtOC41cy0xNSwxNy0xOS42LDE0LjNjLTUuMi0yLjYsMC43LTI0LjgsMC43LTI0LjhzLTIxLjUtOS4xLTE5LjYtMTQuM2MxLjMtNS4yLDIzLjUtNy4yLDIzLjUtNy4yCgkJUzEyNi44LDEzMi44LDEzMy4zLDEzMS41TDEzMy4zLDEzMS41eiIvPgo8L2c+Cjwvc3ZnPgo=",protocol:"uniswap_v2",slippage:!0,blockchains:["fantom"],fantom:{router:{address:"0xF491e7B69E4244ad4002BC14e878a34207E38c29",api:LL.ROUTER},factory:{address:"0x152eE697f2E276fA89E96742e9bB9aB1F2E61bE3",api:LL.FACTORY},pair:{api:LL.PAIR}}};var QS=t=>new AL(Object.assign(US,{scope:t,findPath:t=>LL.findPath({...t,exchange:US}),pathExists:t=>LL.pathExists({...t,exchange:US}),getAmounts:t=>LL.getAmounts({...t,exchange:US}),getPrep:t=>LL.getPrep({...t,exchange:US}),getTransaction:t=>LL.getTransaction({...t,exchange:US})}));function YS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const WS=({blockchain:t,path:e})=>{if(!e)return;let n=e.map(((n,r)=>n===Hf[t].currency.address&&e[r+1]!=Hf[t].wrapped.address&&e[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:n));return n[0]==Hf[t].currency.address&&n[1]==Hf[t].wrapped.address?n.splice(0,1):n[n.length-1]==Hf[t].currency.address&&n[n.length-2]==Hf[t].wrapped.address&&n.splice(n.length-1,1),n},FS=async({exchange:t,blockchain:e,path:n,amountIn:r,amountOut:i,block:o})=>{let a;if(n=WS({blockchain:e,path:n}),a=r?await _I({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountIn",api:t[e].quoter.api,cache:5,block:o,params:{route:n,amountIn:r}}).catch((()=>{})):await _I({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountOut",api:t[e].quoter.api,cache:5,block:o,params:{route:n,amountOut:i}}).catch((()=>{})),a&&!a.virtualAmountsWithoutSlippage.some((t=>"0"===t.toString())))return a};let VS=async({exchange:t,blockchain:e,path:n,pools:r,amountIn:i})=>{let o=await _I({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountIn",api:t[e].quoter.api,cache:5,params:{route:WS({blockchain:e,path:n}),amountIn:i}}).catch((()=>{}));if(o)return o.virtualAmountsWithoutSlippage[o.virtualAmountsWithoutSlippage.length-1]},HS=async({exchange:t,blockchain:e,path:n,pools:r,amountOut:i,block:o})=>{let a=await _I({blockchain:Hf[e].name,address:t[e].quoter.address,method:"findBestPathFromAmountOut",api:t[e].quoter.api,cache:5,block:o,params:{route:WS({blockchain:e,path:n}),amountOut:i}}).catch((()=>{}));if(a)return a.virtualAmountsWithoutSlippage[0]};var GS={findPath:async({exchange:t,blockchain:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[e].currency.address)&&[n,r].includes(Hf[e].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await FS({exchange:t,blockchain:e,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[e].wrapped.address||r==Hf[e].wrapped.address||(c=[],o||s?(c.push(await FS({exchange:t,blockchain:e,path:[Hf[e].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await FS({exchange:t,blockchain:e,path:[n,Hf[e].wrapped.address],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await FS({exchange:t,blockchain:e,path:[n,Hf[e].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await FS({exchange:t,blockchain:e,path:[Hf[e].wrapped.address,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length&&(u=[n,Hf[e].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[e].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await FS({exchange:t,blockchain:e,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await FS({exchange:t,blockchain:e,path:[n,u],amountOut:c[0].virtualAmountsWithoutSlippage[0]}))):(c.push(await FS({exchange:t,blockchain:e,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await FS({exchange:t,blockchain:e,path:[u,r],amountIn:c[0].virtualAmountsWithoutSlippage[1]}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return YS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[e].currency.address?u.splice(1,0,Hf[e].wrapped.address):YS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[e].currency.address&&u.splice(u.length-1,0,Hf[e].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:WS({blockchain:e,path:u})}},pathExists:async({exchange:t,blockchain:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>!!await FS({exchange:t,blockchain:e,path:n,amountIn:r||o,amountOut:i||a}),getAmounts:async({exchange:t,blockchain:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await HS({exchange:t,blockchain:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await VS({exchange:t,blockchain:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await HS({exchange:t,blockchain:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await VS({exchange:t,blockchain:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getTransaction:async({exchange:t,blockchain:e,pools:n,path:r,amountIn:i,amountInMax:o,amountOut:a,amountOutMin:s,amountInInput:u,amountOutInput:c,amountInMaxInput:l,amountOutMinInput:h,account:d})=>{const f={blockchain:e,from:d,to:t[e].router.address,api:t[e].router.api},p=Math.round(Date.now()/1e3)+86400,y=[n.map((t=>t.binSteps[0])),n.map((t=>t.versions[0])),WS({blockchain:e,path:r})];return r[0]===Hf[e].currency.address?l?(f.method="swapNATIVEForExactTokens",f.params={amountOut:a,path:y,to:d,deadline:p},f.value=o):(f.method="swapExactNATIVEForTokens",f.params={amountOutMin:s||a,path:y,to:d,deadline:p},f.value=i):r[r.length-1]===Hf[e].currency.address?l?(f.method="swapTokensForExactNATIVE",f.params={amountNATIVEOut:a,amountInMax:o,path:y,to:d,deadline:p}):(f.method="swapExactTokensForNATIVE",f.params={amountIn:i,amountOutMinNATIVE:s||a,path:y,to:d,deadline:p}):l?(f.method="swapTokensForExactTokens",f.params={amountOut:a,amountInMax:o,path:y,to:d,deadline:p}):(f.method="swapExactTokensForTokens",f.params={amountIn:i,amountOutMin:s||a,path:y,to:d,deadline:p}),f},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;const o=await _I({blockchain:e,address:n,method:"allowance",api:kk[e][20],params:[i,t[e].router.address]});if(o.gte(r))return;return{transaction:{blockchain:e,from:i,to:n,api:kk[e][20],method:"approve",params:[t[e].router.address,r.sub(o)]}}},ROUTER:[{inputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"},{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"},{internalType:"contract ILBLegacyFactory",name:"legacyFactory",type:"address"},{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"},{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[{internalType:"uint256",name:"amountSlippage",type:"uint256"}],name:"LBRouter__AmountSlippageBPTooBig",type:"error"},{inputs:[{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],name:"LBRouter__AmountSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__BinReserveOverflows",type:"error"},{inputs:[],name:"LBRouter__BrokenSwapSafetyCheck",type:"error"},{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"},{internalType:"uint256",name:"currentTimestamp",type:"uint256"}],name:"LBRouter__DeadlineExceeded",type:"error"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBRouter__FailedToSendNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"idDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"}],name:"LBRouter__IdDesiredOverflows",type:"error"},{inputs:[{internalType:"int256",name:"id",type:"int256"}],name:"LBRouter__IdOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"uint256",name:"activeId",type:"uint256"}],name:"LBRouter__IdSlippageCaught",type:"error"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"LBRouter__InsufficientAmountOut",type:"error"},{inputs:[{internalType:"address",name:"wrongToken",type:"address"}],name:"LBRouter__InvalidTokenPath",type:"error"},{inputs:[{internalType:"uint256",name:"version",type:"uint256"}],name:"LBRouter__InvalidVersion",type:"error"},{inputs:[],name:"LBRouter__LengthsMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"amountInMax",type:"uint256"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"LBRouter__MaxAmountInExceeded",type:"error"},{inputs:[],name:"LBRouter__NotFactoryOwner",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBRouter__PairNotCreated",type:"error"},{inputs:[],name:"LBRouter__SenderIsNotWNATIVE",type:"error"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"LBRouter__SwapOverflows",type:"error"},{inputs:[{internalType:"uint256",name:"excess",type:"uint256"}],name:"LBRouter__TooMuchTokensIn",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint256",name:"reserve",type:"uint256"}],name:"LBRouter__WrongAmounts",type:"error"},{inputs:[{internalType:"address",name:"tokenX",type:"address"},{internalType:"address",name:"tokenY",type:"address"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"msgValue",type:"uint256"}],name:"LBRouter__WrongNativeLiquidityParameters",type:"error"},{inputs:[],name:"LBRouter__WrongTokenOrder",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidity",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"},{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256",name:"activeIdDesired",type:"uint256"},{internalType:"uint256",name:"idSlippage",type:"uint256"},{internalType:"int256[]",name:"deltaIds",type:"int256[]"},{internalType:"uint256[]",name:"distributionX",type:"uint256[]"},{internalType:"uint256[]",name:"distributionY",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"address",name:"refundTo",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ILBRouter.LiquidityParameters",name:"liquidityParameters",type:"tuple"}],name:"addLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountXAdded",type:"uint256"},{internalType:"uint256",name:"amountYAdded",type:"uint256"},{internalType:"uint256",name:"amountXLeft",type:"uint256"},{internalType:"uint256",name:"amountYLeft",type:"uint256"},{internalType:"uint256[]",name:"depositIds",type:"uint256[]"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"lbFactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactory",outputs:[{internalType:"contract ILBLegacyFactory",name:"legacyLBfactory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouter",outputs:[{internalType:"contract ILBLegacyRouter",name:"legacyRouter",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"},{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getV1Factory",outputs:[{internalType:"contract IJoeFactory",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getWNATIVE",outputs:[{internalType:"contract IWNATIVE",name:"wnative",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountXMin",type:"uint256"},{internalType:"uint256",name:"amountYMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidity",outputs:[{internalType:"uint256",name:"amountX",type:"uint256"},{internalType:"uint256",name:"amountY",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint256",name:"amountTokenMin",type:"uint256"},{internalType:"uint256",name:"amountNATIVEMin",type:"uint256"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"removeLiquidityNATIVE",outputs:[{internalType:"uint256",name:"amountToken",type:"uint256"},{internalType:"uint256",name:"amountNATIVE",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactNATIVEForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVE",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMinNATIVE",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForNATIVESupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint256",name:"amountOutMin",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapExactTokensForTokensSupportingFeeOnTransferTokens",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapNATIVEForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"payable",type:"function"},{inputs:[{internalType:"uint256",name:"amountNATIVEOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address payable",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactNATIVE",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint256",name:"amountInMax",type:"uint256"},{components:[{internalType:"uint256[]",name:"pairBinSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"contract IERC20[]",name:"tokenPath",type:"address[]"}],internalType:"struct ILBRouter.Path",name:"path",type:"tuple"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"swapTokensForExactTokens",outputs:[{internalType:"uint256[]",name:"amountsIn",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"sweep",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBToken",name:"lbToken",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"sweepLBToken",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[{internalType:"address",name:"feeRecipient",type:"address"},{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"LBFactory__AddressZero",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepHasNoPreset",type:"error"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__BinStepTooLow",type:"error"},{inputs:[{internalType:"uint256",name:"fees",type:"uint256"},{internalType:"uint256",name:"maxFees",type:"uint256"}],name:"LBFactory__FlashLoanFeeAboveMax",type:"error"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"LBFactory__IdenticalAddresses",type:"error"},{inputs:[],name:"LBFactory__ImplementationNotSet",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"_binStep",type:"uint256"}],name:"LBFactory__LBPairAlreadyExists",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairDoesNotExist",type:"error"},{inputs:[],name:"LBFactory__LBPairIgnoredIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__LBPairNotCreated",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__LBPairSafetyCheckFailed",type:"error"},{inputs:[{internalType:"address",name:"user",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"LBFactory__PresetIsLockedForUsers",type:"error"},{inputs:[],name:"LBFactory__PresetOpenStateIsAlreadyInTheSameState",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetAlreadyWhitelisted",type:"error"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"LBFactory__QuoteAssetNotWhitelisted",type:"error"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"LBFactory__SameFeeRecipient",type:"error"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"LBFactory__SameFlashLoanFee",type:"error"},{inputs:[{internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBFactory__SameImplementation",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"PendingOwnable__AddressZero",type:"error"},{inputs:[],name:"PendingOwnable__NoPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotOwner",type:"error"},{inputs:[],name:"PendingOwnable__NotPendingOwner",type:"error"},{inputs:[],name:"PendingOwnable__PendingOwnerAlreadySet",type:"error"},{inputs:[],name:"SafeCast__Exceeds16Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldRecipient",type:"address"},{indexed:!1,internalType:"address",name:"newRecipient",type:"address"}],name:"FeeRecipientSet",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldFlashLoanFee",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newFlashLoanFee",type:"uint256"}],name:"FlashLoanFeeSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"tokenX",type:"address"},{indexed:!0,internalType:"contract IERC20",name:"tokenY",type:"address"},{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"uint256",name:"pid",type:"uint256"}],name:"LBPairCreated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract ILBPair",name:"LBPair",type:"address"},{indexed:!1,internalType:"bool",name:"ignored",type:"bool"}],name:"LBPairIgnoredStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"oldLBPairImplementation",type:"address"},{indexed:!1,internalType:"address",name:"LBPairImplementation",type:"address"}],name:"LBPairImplementationSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"pendingOwner",type:"address"}],name:"PendingOwnerSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!0,internalType:"bool",name:"isOpen",type:"bool"}],name:"PresetOpenStateChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"}],name:"PresetRemoved",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint256",name:"binStep",type:"uint256"},{indexed:!1,internalType:"uint256",name:"baseFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"filterPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"decayPeriod",type:"uint256"},{indexed:!1,internalType:"uint256",name:"reductionFactor",type:"uint256"},{indexed:!1,internalType:"uint256",name:"variableFeeControl",type:"uint256"},{indexed:!1,internalType:"uint256",name:"protocolShare",type:"uint256"},{indexed:!1,internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"}],name:"PresetSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetAdded",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"QuoteAssetRemoved",type:"event"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"addQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"becomeOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint24",name:"activeId",type:"uint24"},{internalType:"uint16",name:"binStep",type:"uint16"}],name:"createLBPair",outputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBPair",name:"pair",type:"address"}],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getAllBinSteps",outputs:[{internalType:"uint256[]",name:"binStepWithPreset",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"}],name:"getAllLBPairs",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation[]",name:"lbPairsAvailable",type:"tuple[]"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFeeRecipient",outputs:[{internalType:"address",name:"feeRecipient",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFlashLoanFee",outputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getLBPairAtIndex",outputs:[{internalType:"contract ILBPair",name:"lbPair",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLBPairImplementation",outputs:[{internalType:"address",name:"lbPairImplementation",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenA",type:"address"},{internalType:"contract IERC20",name:"tokenB",type:"address"},{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getLBPairInformation",outputs:[{components:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"contract ILBPair",name:"LBPair",type:"address"},{internalType:"bool",name:"createdByOwner",type:"bool"},{internalType:"bool",name:"ignoredForRouting",type:"bool"}],internalType:"struct ILBFactory.LBPairInformation",name:"lbPairInformation",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getMaxFlashLoanFee",outputs:[{internalType:"uint256",name:"maxFee",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getMinBinStep",outputs:[{internalType:"uint256",name:"minBinStep",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getNumberOfLBPairs",outputs:[{internalType:"uint256",name:"lbPairNumber",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getNumberOfQuoteAssets",outputs:[{internalType:"uint256",name:"numberOfQuoteAssets",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOpenBinSteps",outputs:[{internalType:"uint256[]",name:"openBinStep",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"binStep",type:"uint256"}],name:"getPreset",outputs:[{internalType:"uint256",name:"baseFactor",type:"uint256"},{internalType:"uint256",name:"filterPeriod",type:"uint256"},{internalType:"uint256",name:"decayPeriod",type:"uint256"},{internalType:"uint256",name:"reductionFactor",type:"uint256"},{internalType:"uint256",name:"variableFeeControl",type:"uint256"},{internalType:"uint256",name:"protocolShare",type:"uint256"},{internalType:"uint256",name:"maxVolatilityAccumulator",type:"uint256"},{internalType:"bool",name:"isOpen",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"index",type:"uint256"}],name:"getQuoteAssetAtIndex",outputs:[{internalType:"contract IERC20",name:"asset",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"contract IERC20",name:"token",type:"address"}],name:"isQuoteAsset",outputs:[{internalType:"bool",name:"isQuote",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"}],name:"removePreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"quoteAsset",type:"address"}],name:"removeQuoteAsset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"revokePendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"feeRecipient",type:"address"}],name:"setFeeRecipient",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setFeesParametersOnPair",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"flashLoanFee",type:"uint256"}],name:"setFlashLoanFee",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"},{internalType:"contract IERC20",name:"tokenY",type:"address"},{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"ignored",type:"bool"}],name:"setLBPairIgnored",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newLBPairImplementation",type:"address"}],name:"setLBPairImplementation",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"pendingOwner_",type:"address"}],name:"setPendingOwner",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPreset",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"binStep",type:"uint16"},{internalType:"bool",name:"isOpen",type:"bool"}],name:"setPresetOpenState",outputs:[],stateMutability:"nonpayable",type:"function"}],PAIR:[{inputs:[{internalType:"contract ILBFactory",name:"factory_",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"AddressHelper__CallFailed",type:"error"},{inputs:[],name:"AddressHelper__NonContract",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"BinHelper__CompositionFactorFlawed",type:"error"},{inputs:[],name:"BinHelper__LiquidityOverflow",type:"error"},{inputs:[],name:"FeeHelper__FeeTooLarge",type:"error"},{inputs:[],name:"LBPair__AddressZero",type:"error"},{inputs:[],name:"LBPair__AlreadyInitialized",type:"error"},{inputs:[],name:"LBPair__EmptyMarketConfigs",type:"error"},{inputs:[],name:"LBPair__FlashLoanCallbackFailed",type:"error"},{inputs:[],name:"LBPair__FlashLoanInsufficientAmount",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountIn",type:"error"},{inputs:[],name:"LBPair__InsufficientAmountOut",type:"error"},{inputs:[],name:"LBPair__InvalidInput",type:"error"},{inputs:[],name:"LBPair__InvalidStaticFeeParameters",type:"error"},{inputs:[],name:"LBPair__MaxTotalFeeExceeded",type:"error"},{inputs:[],name:"LBPair__OnlyFactory",type:"error"},{inputs:[],name:"LBPair__OnlyProtocolFeeRecipient",type:"error"},{inputs:[],name:"LBPair__OutOfLiquidity",type:"error"},{inputs:[],name:"LBPair__TokenNotSupported",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroAmountsOut",type:"error"},{inputs:[],name:"LBPair__ZeroBorrowAmount",type:"error"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"LBPair__ZeroShares",type:"error"},{inputs:[],name:"LBToken__AddressThisOrZero",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__BurnExceedsBalance",type:"error"},{inputs:[],name:"LBToken__InvalidLength",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"LBToken__SelfApproval",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"LBToken__SpenderNotApproved",type:"error"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"uint256",name:"id",type:"uint256"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"LBToken__TransferExceedsBalance",type:"error"},{inputs:[],name:"LiquidityConfigurations__InvalidConfig",type:"error"},{inputs:[],name:"OracleHelper__InvalidOracleId",type:"error"},{inputs:[],name:"OracleHelper__LookUpTimestampTooOld",type:"error"},{inputs:[],name:"OracleHelper__NewLengthTooSmall",type:"error"},{inputs:[],name:"PackedUint128Math__AddOverflow",type:"error"},{inputs:[],name:"PackedUint128Math__MultiplierTooLarge",type:"error"},{inputs:[],name:"PackedUint128Math__SubUnderflow",type:"error"},{inputs:[],name:"PairParametersHelper__InvalidParameter",type:"error"},{inputs:[],name:"ReentrancyGuard__ReentrantCall",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds40Bits",type:"error"},{inputs:[],name:"TokenHelper__TransferFailed",type:"error"},{inputs:[],name:"Uint128x128Math__LogUnderflow",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"account",type:"address"},{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"bool",name:"approved",type:"bool"}],name:"ApprovalForAll",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"feeRecipient",type:"address"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CollectedProtocolFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"CompositionFees",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"DepositedToBins",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{indexed:!1,internalType:"uint24",name:"activeId",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amounts",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"FlashLoan",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint24",name:"idReference",type:"uint24"},{indexed:!1,internalType:"uint24",name:"volatilityReference",type:"uint24"}],name:"ForcedDecay",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"oracleLength",type:"uint16"}],name:"OracleLengthIncreased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!1,internalType:"uint16",name:"baseFactor",type:"uint16"},{indexed:!1,internalType:"uint16",name:"filterPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"decayPeriod",type:"uint16"},{indexed:!1,internalType:"uint16",name:"reductionFactor",type:"uint16"},{indexed:!1,internalType:"uint24",name:"variableFeeControl",type:"uint24"},{indexed:!1,internalType:"uint16",name:"protocolShare",type:"uint16"},{indexed:!1,internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"StaticFeeParametersSet",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint24",name:"id",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"amountsIn",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"amountsOut",type:"bytes32"},{indexed:!1,internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{indexed:!1,internalType:"bytes32",name:"totalFees",type:"bytes32"},{indexed:!1,internalType:"bytes32",name:"protocolFees",type:"bytes32"}],name:"Swap",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"TransferBatch",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256[]",name:"ids",type:"uint256[]"},{indexed:!1,internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],name:"WithdrawnFromBins",type:"event"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"bool",name:"approved",type:"bool"}],name:"approveForAll",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"uint256",name:"id",type:"uint256"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"accounts",type:"address[]"},{internalType:"uint256[]",name:"ids",type:"uint256[]"}],name:"balanceOfBatch",outputs:[{internalType:"uint256[]",name:"batchBalances",type:"uint256[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amounts",type:"uint256[]"}],name:"batchTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint256[]",name:"ids",type:"uint256[]"},{internalType:"uint256[]",name:"amountsToBurn",type:"uint256[]"}],name:"burn",outputs:[{internalType:"bytes32[]",name:"amounts",type:"bytes32[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"collectProtocolFees",outputs:[{internalType:"bytes32",name:"collectedProtocolFees",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"contract ILBFlashLoanCallback",name:"receiver",type:"address"},{internalType:"bytes32",name:"amounts",type:"bytes32"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flashLoan",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"forceDecay",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"getActiveId",outputs:[{internalType:"uint24",name:"activeId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getBin",outputs:[{internalType:"uint128",name:"binReserveX",type:"uint128"},{internalType:"uint128",name:"binReserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBinStep",outputs:[{internalType:"uint16",name:"",type:"uint16"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getFactory",outputs:[{internalType:"contract ILBFactory",name:"factory",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"price",type:"uint256"}],name:"getIdFromPrice",outputs:[{internalType:"uint24",name:"id",type:"uint24"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"uint24",name:"id",type:"uint24"}],name:"getNextNonEmptyBin",outputs:[{internalType:"uint24",name:"nextId",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"getOracleParameters",outputs:[{internalType:"uint8",name:"sampleLifetime",type:"uint8"},{internalType:"uint16",name:"size",type:"uint16"},{internalType:"uint16",name:"activeSize",type:"uint16"},{internalType:"uint40",name:"lastUpdated",type:"uint40"},{internalType:"uint40",name:"firstTimestamp",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint40",name:"lookupTimestamp",type:"uint40"}],name:"getOracleSampleAt",outputs:[{internalType:"uint64",name:"cumulativeId",type:"uint64"},{internalType:"uint64",name:"cumulativeVolatility",type:"uint64"},{internalType:"uint64",name:"cumulativeBinCrossed",type:"uint64"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint24",name:"id",type:"uint24"}],name:"getPriceFromId",outputs:[{internalType:"uint256",name:"price",type:"uint256"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getProtocolFees",outputs:[{internalType:"uint128",name:"protocolFeeX",type:"uint128"},{internalType:"uint128",name:"protocolFeeY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getReserves",outputs:[{internalType:"uint128",name:"reserveX",type:"uint128"},{internalType:"uint128",name:"reserveY",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getStaticFeeParameters",outputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapIn",outputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"uint128",name:"amountOutLeft",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint128",name:"amountIn",type:"uint128"},{internalType:"bool",name:"swapForY",type:"bool"}],name:"getSwapOut",outputs:[{internalType:"uint128",name:"amountInLeft",type:"uint128"},{internalType:"uint128",name:"amountOut",type:"uint128"},{internalType:"uint128",name:"fee",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"getTokenX",outputs:[{internalType:"contract IERC20",name:"tokenX",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getTokenY",outputs:[{internalType:"contract IERC20",name:"tokenY",type:"address"}],stateMutability:"pure",type:"function"},{inputs:[],name:"getVariableFeeParameters",outputs:[{internalType:"uint24",name:"volatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"volatilityReference",type:"uint24"},{internalType:"uint24",name:"idReference",type:"uint24"},{internalType:"uint40",name:"timeOfLastUpdate",type:"uint40"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"newLength",type:"uint16"}],name:"increaseOracleLength",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"},{internalType:"uint24",name:"activeId",type:"uint24"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"isApprovedForAll",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"to",type:"address"},{internalType:"bytes32[]",name:"liquidityConfigs",type:"bytes32[]"},{internalType:"address",name:"refundTo",type:"address"}],name:"mint",outputs:[{internalType:"bytes32",name:"amountsReceived",type:"bytes32"},{internalType:"bytes32",name:"amountsLeft",type:"bytes32"},{internalType:"uint256[]",name:"liquidityMinted",type:"uint256[]"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint16",name:"baseFactor",type:"uint16"},{internalType:"uint16",name:"filterPeriod",type:"uint16"},{internalType:"uint16",name:"decayPeriod",type:"uint16"},{internalType:"uint16",name:"reductionFactor",type:"uint16"},{internalType:"uint24",name:"variableFeeControl",type:"uint24"},{internalType:"uint16",name:"protocolShare",type:"uint16"},{internalType:"uint24",name:"maxVolatilityAccumulator",type:"uint24"}],name:"setStaticFeeParameters",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"swapForY",type:"bool"},{internalType:"address",name:"to",type:"address"}],name:"swap",outputs:[{internalType:"bytes32",name:"amountsOut",type:"bytes32"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"id",type:"uint256"}],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"factoryV1",type:"address"},{internalType:"address",name:"legacyFactoryV2",type:"address"},{internalType:"address",name:"factoryV2",type:"address"},{internalType:"address",name:"legacyRouterV2",type:"address"},{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"JoeLibrary__AddressZero",type:"error"},{inputs:[],name:"JoeLibrary__IdenticalAddresses",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientAmount",type:"error"},{inputs:[],name:"JoeLibrary__InsufficientLiquidity",type:"error"},{inputs:[],name:"LBQuoter_InvalidLength",type:"error"},{inputs:[],name:"SafeCast__Exceeds128Bits",type:"error"},{inputs:[],name:"SafeCast__Exceeds24Bits",type:"error"},{inputs:[{internalType:"uint256",name:"x",type:"uint256"},{internalType:"int256",name:"y",type:"int256"}],name:"Uint128x128Math__PowUnderflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulDivOverflow",type:"error"},{inputs:[],name:"Uint256x256Math__MulShiftOverflow",type:"error"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountIn",type:"uint128"}],name:"findBestPathFromAmountIn",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"uint128",name:"amountOut",type:"uint128"}],name:"findBestPathFromAmountOut",outputs:[{components:[{internalType:"address[]",name:"route",type:"address[]"},{internalType:"address[]",name:"pairs",type:"address[]"},{internalType:"uint256[]",name:"binSteps",type:"uint256[]"},{internalType:"enum ILBRouter.Version[]",name:"versions",type:"uint8[]"},{internalType:"uint128[]",name:"amounts",type:"uint128[]"},{internalType:"uint128[]",name:"virtualAmountsWithoutSlippage",type:"uint128[]"},{internalType:"uint128[]",name:"fees",type:"uint128[]"}],internalType:"struct LBQuoter.Quote",name:"quote",type:"tuple"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV1",outputs:[{internalType:"address",name:"factoryV1",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getFactoryV2",outputs:[{internalType:"address",name:"factoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyFactoryV2",outputs:[{internalType:"address",name:"legacyFactoryV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getLegacyRouterV2",outputs:[{internalType:"address",name:"legacyRouterV2",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"getRouterV2",outputs:[{internalType:"address",name:"routerV2",type:"address"}],stateMutability:"view",type:"function"}]};const qS={name:"trader_joe_v2_1",label:"Trader Joe v2.1",logo:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHAAAABvCAYAAAA0YEQFAAABAGlDQ1BpY2MAABiVY2BgPMEABCwGDAy5eSVFQe5OChGRUQrsDxgYgRAMEpOLCxhwA6Cqb9cgai/r4lGHC3CmpBYnA+kPQKxSBLQcaKQIkC2SDmFrgNhJELYNiF1eUlACZAeA2EUhQc5AdgqQrZGOxE5CYicXFIHU9wDZNrk5pckIdzPwpOaFBgNpDiCWYShmCGJwZ3AC+R+iJH8RA4PFVwYG5gkIsaSZDAzbWxkYJG4hxFQWMDDwtzAwbDuPEEOESUFiUSJYiAWImdLSGBg+LWdg4I1kYBC+wMDAFQ0LCBxuUwC7zZ0hHwjTGXIYUoEingx5DMkMekCWEYMBgyGDGQCm1j8/yRb+6wAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAABPXpUWHRSYXcgcHJvZmlsZSB0eXBlIGljYwAAKJGdU9mtxCAM/KeKLcH4JOUkJEiv/waeuaJslP3YHYkgOWbGHkz4yzm8Klg0QEXMCSaY2qa7HsaGgmyMCJJkkRUB7GgnxjoRNCoZGfyIRlZcNVyZd8L9V8bwZf6irGKkvX8oI4wc3IXWfS808qiY1a5xTGf8L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VE71v1nDz/88AfvvYKdR1fSXgPwKlpUCBDuULGYb6bTA47COiu8iR21WbFew1qvIKX7tdY5N51yUpksa9edViZ8pzcwcEW10C7XXgNwaVvkldq/X50ENHp6Us1qNQMgT46TMlapdCbtmGZ1dOOuXWeW5ILX+o5/TFprnBMfLC2RP/T/B96QkmdPWpSQAAAAJXRFWHRkYXRlOmNyZWF0ZQAyMDIzLTA3LTA3VDA5OjE5OjA4KzAwOjAwC8IICQAAACV0RVh0ZGF0ZTptb2RpZnkAMjAyMy0wNy0wN1QwOToxOTowOCswMDowMHqfsLUAAAAodEVYdGRhdGU6dGltZXN0YW1wADIwMjMtMDctMDdUMDk6MTk6MDgrMDA6MDAtipFqAAAAHnRFWHRpY2M6Y29weXJpZ2h0AEdvb2dsZSBJbmMuIDIwMTasCzM4AAAAFHRFWHRpY2M6ZGVzY3JpcHRpb24Ac1JHQrqQcwcAAAAASUVORK5CYII=",protocol:"trader_joe_v2_1",slippage:!0,blockchains:["avalanche"],avalanche:{router:{address:"0xb4315e873dBcf96Ffd0acd8EA43f689D8c20fB30",api:GS.ROUTER},factory:{address:"0x8e42f2F4101563bF679975178e880FD87d3eFd4e",api:GS.FACTORY},pair:{api:GS.PAIR},quoter:{address:"0x64b57F4249aA99a812212cee7DAEFEDC40B203cD",api:GS.QUOTER}}};var ZS=t=>new AL(Object.assign(qS,{scope:t,findPath:t=>GS.findPath({...t,exchange:qS}),pathExists:t=>GS.pathExists({...t,exchange:qS}),getAmounts:t=>GS.getAmounts({...t,exchange:qS}),getPrep:t=>GS.getPrep({...t,exchange:qS}),getTransaction:t=>GS.getTransaction({...t,exchange:qS})}));const JS={name:"uniswap_v2",label:"Uniswap v2",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjQxIiBoZWlnaHQ9IjY0MCIgdmlld0JveD0iMCAwIDY0MSA2NDAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYX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czLjE3M0MyNDQuNTcxIDI3Ni43NTIgMjUwLjU3MiAyODAuNjU2IDI1Ni4wNzQgMjgwLjY1NkMyNTkuNzM1IDI4MC42NTYgMjY0Ljc0NiAyNzguNDczIDI2Ni4zNjQgMjc2LjE3MloiIGZpbGw9IiNGRjAwN0EiLz4KPC9zdmc+Cg==",protocol:"uniswap_v2",slippage:!0,blockchains:["ethereum"],ethereum:{router:{address:"0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D",api:LL.ROUTER},factory:{address:"0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",api:LL.FACTORY},pair:{api:LL.PAIR}}};var XS=t=>new AL(Object.assign(JS,{scope:t,findPath:t=>LL.findPath({...t,exchange:JS}),pathExists:t=>LL.pathExists({...t,exchange:JS}),getAmounts:t=>LL.getAmounts({...t,exchange:JS}),getPrep:t=>LL.getPrep({...t,exchange:JS}),getTransaction:t=>LL.getTransaction({...t,exchange:JS})}));function KS(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}const $S="0x0000000000000000000000000000000000000001",tj="0x0000000000000000000000000000000000000002",ej=({blockchain:t,exchange:e,path:n})=>{if(!n)return;let r=n.map(((e,r)=>e===Hf[t].currency.address&&n[r+1]!=Hf[t].wrapped.address&&n[r-1]!=Hf[t].wrapped.address?Hf[t].wrapped.address:e));return r[0]==Hf[t].currency.address&&r[1]==Hf[t].wrapped.address?r.splice(0,1):r[r.length-1]==Hf[t].currency.address&&r[r.length-2]==Hf[t].wrapped.address&&r.splice(r.length-1,1),r},nj=async({exchange:t,pool:e,outputAmount:n})=>(await _I({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactOutput",params:{path:oI(["address","uint24","address"],[e.path[1],e.fee,e.path[0]]),amountOut:n},cache:5})).amountIn,rj=async({exchange:t,pool:e,inputAmount:n})=>(await _I({blockchain:e.blockchain,address:t[e.blockchain].quoter.address,api:t[e.blockchain].quoter.api,method:"quoteExactInput",params:{path:oI(["address","uint24","address"],[e.path[0],e.fee,e.path[1]]),amountIn:n},cache:5})).amountOut,ij=async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,block:o})=>{if((n=ej({blockchain:t,exchange:e,path:n})).length>2)throw"Uniswap V3 can only check paths for up to 2 tokens!";try{let o=(await Promise.all(e.fees.map((r=>_I({blockchain:Hf[t].name,address:e[t].factory.address,method:"getPool",api:e[t].factory.api,cache:3600,params:[n[0],n[1],r]}).then((e=>({blockchain:t,address:e,path:n,fee:r,token0:[...n].sort()[0],token1:[...n].sort()[1]}))).catch((()=>{})))))).filter(Boolean);return o=o.filter((e=>e.address!=Hf[t].zero)),o=(await Promise.all(o.map((async t=>{try{let n;if(r){n=await rj({exchange:e,pool:t,inputAmount:r});const i=await rj({exchange:e,pool:t,inputAmount:Fp.from(r).mul(Fp.from(10)).toString()}),o=i.div(Fp.from(10)).sub(n).abs();if(!!o.gt(n.div(Fp.from(100)).mul(Fp.from(5))))return}else{n=await nj({exchange:e,pool:t,outputAmount:i});const r=await nj({exchange:e,pool:t,outputAmount:Fp.from(i).mul(Fp.from(10)).toString()}),o=r.div(Fp.from(10)).sub(n).abs();if(!!o.gt(n.div(Fp.from(100)).mul(Fp.from(5))))return}return{...t,amountIn:r||n,amountOut:i||n}}catch(t){}})))).filter(Boolean),r?o.sort(((t,e)=>e.amountOut.gt(t.amountOut)?1:-1))[0]:o.sort(((t,e)=>e.amountIn.lt(t.amountIn)?1:-1))[0]}catch(t){return}};let oj=({blockchain:t,exchange:e,path:n,pools:r,amountIn:i})=>r[r.length-1].amountOut,aj=async({blockchain:t,exchange:e,path:n,pools:r,amountOut:i,block:o})=>{if(void 0===o)return r[0].amountIn;{let n;2==r.length?n=oI(["address","uint24","address","uint24","address"],[r[1].path[1],r[1].fee,r[0].path[1],r[0].fee,r[0].path[0]]):1==r.length&&(n=oI(["address","uint24","address"],[r[0].path[1],r[0].fee,r[0].path[0]]));return(await _I({block:o,blockchain:t,address:e[t].quoter.address,api:e[t].quoter.api,method:"quoteExactOutput",params:{path:n,amountOut:i}})).amountIn}};var sj={findPath:async({blockchain:t,exchange:e,tokenIn:n,tokenOut:r,amountIn:i,amountOut:o,amountInMax:a,amountOutMin:s})=>{if([n,r].includes(Hf[t].currency.address)&&[n,r].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let u,c=[];if(c=[await ij({exchange:e,blockchain:t,path:[n,r],amountIn:i||a,amountOut:o||s})],c.filter(Boolean).length&&(u=[n,r]),u||n==Hf[t].wrapped.address||r==Hf[t].wrapped.address||(c=[],o||s?(c.push(await ij({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await ij({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountOut:c[0].amountIn}))):(c.push(await ij({exchange:e,blockchain:t,path:[n,Hf[t].wrapped.address],amountIn:i||a})),c.filter(Boolean).length&&c.push(await ij({exchange:e,blockchain:t,path:[Hf[t].wrapped.address,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length&&(u=[n,Hf[t].wrapped.address,r])),!u){c=[];let l=(await Promise.all(Hf[t].stables.usd.map((async u=>{let c=[];if(o||s?(c.push(await ij({exchange:e,blockchain:t,path:[u,r],amountOut:o||s})),c.filter(Boolean).length&&c.unshift(await ij({exchange:e,blockchain:t,path:[n,u],amountOut:c[0].amountIn}))):(c.push(await ij({exchange:e,blockchain:t,path:[n,u],amountIn:i||a})),c.filter(Boolean).length&&c.push(await ij({exchange:e,blockchain:t,path:[u,r],amountIn:c[0].amountOut}))),2===c.filter(Boolean).length)return[u,c]})))).filter(Boolean)[0];l&&(u=[n,l[0],r],c=l[1])}return KS([u,"optionalAccess",t=>t.length])&&u[0]==Hf[t].currency.address?u.splice(1,0,Hf[t].wrapped.address):KS([u,"optionalAccess",t=>t.length])&&u[u.length-1]==Hf[t].currency.address&&u.splice(u.length-1,0,Hf[t].wrapped.address),u||(c=[]),{path:u,pools:c,exchangePath:ej({blockchain:t,exchange:e,path:u})}},pathExists:async({blockchain:t,exchange:e,path:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>{try{return!!await ij({blockchain:t,exchange:e,path:n,amountIn:r||o,amountOut:i||a})}catch(t){return!1}},getAmounts:async({blockchain:t,exchange:e,path:n,pools:r,block:i,tokenIn:o,tokenOut:a,amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l})=>{if(s){if(null==(u=await aj({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:s,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(u){if(null==(s=await oj({blockchain:t,exchange:e,path:n,pools:r,amountIn:u,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}else if(l){if(null==(u=await aj({blockchain:t,exchange:e,block:i,path:n,pools:r,amountOut:l,tokenIn:o,tokenOut:a}))||c&&u.gt(c))return{};void 0===c&&(c=u)}else if(c){if(null==(s=await oj({blockchain:t,exchange:e,path:n,pools:r,amountIn:c,tokenIn:o,tokenOut:a}))||l&&s.lt(l))return{};void 0===l&&(l=s)}return{amountOut:s,amountIn:u,amountInMax:c,amountOutMin:l}},getPrep:async({exchange:t,blockchain:e,tokenIn:n,amountIn:r,account:i})=>{if(n===Hf[e].currency.address)return;if((await _I({blockchain:e,address:n,method:"allowance",api:kk[e][20],params:[i,t[e].permit.address]})).lt(r)){return{transaction:{blockchain:e,from:i,to:n,api:kk[e][20],method:"approve",params:[t[e].permit.address,Hf[e].maxInt]}}}{const o=await _I({blockchain:e,address:t[e].permit.address,method:"allowance",api:t[e].permit.api,params:[i,n,t[e].router.address]});if(o.amount.lt(r)||o.expiration-1800{let y,m=[],g=[],v="0";if(f){const t=Tp(f.signature).length;let e;65!==t&&64!==t||(e=function(t){return Dp(Lp([(t=Rp(t)).r,t.s,t.recoveryParam?"0x1c":"0x1b"]))}(Rp(f.signature))),m.push("0a"),g.push(_m.encode(["((address token,uint160 amount,uint48 expiration,uint48 nonce) details,address spender,uint256 sigDeadline)","bytes"],[f,e]))}r[0]===Hf[t].currency.address&&(m.push("0b"),g.push(_m.encode(["address","uint256"],[tj,(i||o).toString()])),v=(i||o).toString()),1===n.length?y=oI(["address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1]]):2===n.length&&(y=oI(["address","uint24","address","uint24","address"],[n[0].path[0],n[0].fee,n[0].path[1],n[1].fee,n[1].path[1]])),h||u?(m.push("00"),g.push(_m.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===Hf[t].currency.address?tj:$S,(i||o).toString(),(a||s).toString(),y,r[0]!==Hf[t].currency.address&&!p]))):(m.push("01"),g.push(_m.encode(["address","uint256","uint256","bytes","bool"],[r[r.length-1]===Hf[t].currency.address?tj:$S,(a||s).toString(),(i||o).toString(),y,r[0]!==Hf[t].currency.address&&!p]))),r[r.length-1]===Hf[t].currency.address&&(m.push("0c"),g.push(_m.encode(["address","uint256"],[$S,(a||s).toString()])));return{blockchain:t,from:d,to:e[t].router.address,api:e[t].router.api,method:"execute",params:{commands:`0x${m.join("")}`,inputs:g},value:v}},ROUTER:[{inputs:[{components:[{internalType:"address",name:"permit2",type:"address"},{internalType:"address",name:"weth9",type:"address"},{internalType:"address",name:"seaportV1_5",type:"address"},{internalType:"address",name:"seaportV1_4",type:"address"},{internalType:"address",name:"openseaConduit",type:"address"},{internalType:"address",name:"nftxZap",type:"address"},{internalType:"address",name:"x2y2",type:"address"},{internalType:"address",name:"foundation",type:"address"},{internalType:"address",name:"sudoswap",type:"address"},{internalType:"address",name:"elementMarket",type:"address"},{internalType:"address",name:"nft20Zap",type:"address"},{internalType:"address",name:"cryptopunks",type:"address"},{internalType:"address",name:"looksRareV2",type:"address"},{internalType:"address",name:"routerRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareRewardsDistributor",type:"address"},{internalType:"address",name:"looksRareToken",type:"address"},{internalType:"address",name:"v2Factory",type:"address"},{internalType:"address",name:"v3Factory",type:"address"},{internalType:"bytes32",name:"pairInitCodeHash",type:"bytes32"},{internalType:"bytes32",name:"poolInitCodeHash",type:"bytes32"}],internalType:"struct RouterParameters",name:"params",type:"tuple"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BalanceTooLow",type:"error"},{inputs:[],name:"BuyPunkFailed",type:"error"},{inputs:[],name:"ContractLocked",type:"error"},{inputs:[],name:"ETHNotAccepted",type:"error"},{inputs:[{internalType:"uint256",name:"commandIndex",type:"uint256"},{internalType:"bytes",name:"message",type:"bytes"}],name:"ExecutionFailed",type:"error"},{inputs:[],name:"FromAddressIsNotOwner",type:"error"},{inputs:[],name:"InsufficientETH",type:"error"},{inputs:[],name:"InsufficientToken",type:"error"},{inputs:[],name:"InvalidBips",type:"error"},{inputs:[{internalType:"uint256",name:"commandType",type:"uint256"}],name:"InvalidCommandType",type:"error"},{inputs:[],name:"InvalidOwnerERC1155",type:"error"},{inputs:[],name:"InvalidOwnerERC721",type:"error"},{inputs:[],name:"InvalidPath",type:"error"},{inputs:[],name:"InvalidReserves",type:"error"},{inputs:[],name:"InvalidSpender",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[],name:"SliceOutOfBounds",type:"error"},{inputs:[],name:"TransactionDeadlinePassed",type:"error"},{inputs:[],name:"UnableToClaim",type:"error"},{inputs:[],name:"UnsafeCast",type:"error"},{inputs:[],name:"V2InvalidPath",type:"error"},{inputs:[],name:"V2TooLittleReceived",type:"error"},{inputs:[],name:"V2TooMuchRequested",type:"error"},{inputs:[],name:"V3InvalidAmountOut",type:"error"},{inputs:[],name:"V3InvalidCaller",type:"error"},{inputs:[],name:"V3InvalidSwap",type:"error"},{inputs:[],name:"V3TooLittleReceived",type:"error"},{inputs:[],name:"V3TooMuchRequested",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"RewardsSent",type:"event"},{inputs:[{internalType:"bytes",name:"looksRareClaim",type:"bytes"}],name:"collectRewards",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"bytes",name:"commands",type:"bytes"},{internalType:"bytes[]",name:"inputs",type:"bytes[]"},{internalType:"uint256",name:"deadline",type:"uint256"}],name:"execute",outputs:[],stateMutability:"payable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"uint256[]",name:"",type:"uint256[]"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155BatchReceived",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC1155Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"},{internalType:"bytes",name:"",type:"bytes"}],name:"onERC721Received",outputs:[{internalType:"bytes4",name:"",type:"bytes4"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"bytes4",name:"interfaceId",type:"bytes4"}],name:"supportsInterface",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}],FACTORY:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!0,internalType:"int24",name:"tickSpacing",type:"int24"}],name:"FeeAmountEnabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"oldOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnerChanged",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"token0",type:"address"},{indexed:!0,internalType:"address",name:"token1",type:"address"},{indexed:!0,internalType:"uint24",name:"fee",type:"uint24"},{indexed:!1,internalType:"int24",name:"tickSpacing",type:"int24"},{indexed:!1,internalType:"address",name:"pool",type:"address"}],name:"PoolCreated",type:"event"},{inputs:[{internalType:"address",name:"tokenA",type:"address"},{internalType:"address",name:"tokenB",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"}],name:"createPool",outputs:[{internalType:"address",name:"pool",type:"address"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],name:"enableFeeAmount",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint24",name:"",type:"uint24"}],name:"feeAmountTickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"uint24",name:"",type:"uint24"}],name:"getPool",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"parameters",outputs:[{internalType:"address",name:"factory",type:"address"},{internalType:"address",name:"token0",type:"address"},{internalType:"address",name:"token1",type:"address"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"int24",name:"tickSpacing",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"_owner",type:"address"}],name:"setOwner",outputs:[],stateMutability:"nonpayable",type:"function"}],POOL:[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Burn",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"recipient",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"Collect",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint128",name:"amount0",type:"uint128"},{indexed:!1,internalType:"uint128",name:"amount1",type:"uint128"}],name:"CollectProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"paid1",type:"uint256"}],name:"Flash",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint16",name:"observationCardinalityNextOld",type:"uint16"},{indexed:!1,internalType:"uint16",name:"observationCardinalityNextNew",type:"uint16"}],name:"IncreaseObservationCardinalityNext",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Initialize",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"int24",name:"tickLower",type:"int24"},{indexed:!0,internalType:"int24",name:"tickUpper",type:"int24"},{indexed:!1,internalType:"uint128",name:"amount",type:"uint128"},{indexed:!1,internalType:"uint256",name:"amount0",type:"uint256"},{indexed:!1,internalType:"uint256",name:"amount1",type:"uint256"}],name:"Mint",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint8",name:"feeProtocol0Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1Old",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol0New",type:"uint8"},{indexed:!1,internalType:"uint8",name:"feeProtocol1New",type:"uint8"}],name:"SetFeeProtocol",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"sender",type:"address"},{indexed:!0,internalType:"address",name:"recipient",type:"address"},{indexed:!1,internalType:"int256",name:"amount0",type:"int256"},{indexed:!1,internalType:"int256",name:"amount1",type:"int256"},{indexed:!1,internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{indexed:!1,internalType:"uint128",name:"liquidity",type:"uint128"},{indexed:!1,internalType:"int24",name:"tick",type:"int24"}],name:"Swap",type:"event"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"}],name:"burn",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collect",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint128",name:"amount0Requested",type:"uint128"},{internalType:"uint128",name:"amount1Requested",type:"uint128"}],name:"collectProtocol",outputs:[{internalType:"uint128",name:"amount0",type:"uint128"},{internalType:"uint128",name:"amount1",type:"uint128"}],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"fee",outputs:[{internalType:"uint24",name:"",type:"uint24"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal0X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"feeGrowthGlobal1X128",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"},{internalType:"bytes",name:"data",type:"bytes"}],name:"flash",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"}],name:"increaseObservationCardinalityNext",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"}],name:"initialize",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"liquidity",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"maxLiquidityPerTick",outputs:[{internalType:"uint128",name:"",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"},{internalType:"uint128",name:"amount",type:"uint128"},{internalType:"bytes",name:"data",type:"bytes"}],name:"mint",outputs:[{internalType:"uint256",name:"amount0",type:"uint256"},{internalType:"uint256",name:"amount1",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"",type:"uint256"}],name:"observations",outputs:[{internalType:"uint32",name:"blockTimestamp",type:"uint32"},{internalType:"int56",name:"tickCumulative",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityCumulativeX128",type:"uint160"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint32[]",name:"secondsAgos",type:"uint32[]"}],name:"observe",outputs:[{internalType:"int56[]",name:"tickCumulatives",type:"int56[]"},{internalType:"uint160[]",name:"secondsPerLiquidityCumulativeX128s",type:"uint160[]"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes32",name:"",type:"bytes32"}],name:"positions",outputs:[{internalType:"uint128",name:"liquidity",type:"uint128"},{internalType:"uint256",name:"feeGrowthInside0LastX128",type:"uint256"},{internalType:"uint256",name:"feeGrowthInside1LastX128",type:"uint256"},{internalType:"uint128",name:"tokensOwed0",type:"uint128"},{internalType:"uint128",name:"tokensOwed1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[],name:"protocolFees",outputs:[{internalType:"uint128",name:"token0",type:"uint128"},{internalType:"uint128",name:"token1",type:"uint128"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint8",name:"feeProtocol0",type:"uint8"},{internalType:"uint8",name:"feeProtocol1",type:"uint8"}],name:"setFeeProtocol",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"slot0",outputs:[{internalType:"uint160",name:"sqrtPriceX96",type:"uint160"},{internalType:"int24",name:"tick",type:"int24"},{internalType:"uint16",name:"observationIndex",type:"uint16"},{internalType:"uint16",name:"observationCardinality",type:"uint16"},{internalType:"uint16",name:"observationCardinalityNext",type:"uint16"},{internalType:"uint8",name:"feeProtocol",type:"uint8"},{internalType:"bool",name:"unlocked",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"tickLower",type:"int24"},{internalType:"int24",name:"tickUpper",type:"int24"}],name:"snapshotCumulativesInside",outputs:[{internalType:"int56",name:"tickCumulativeInside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityInsideX128",type:"uint160"},{internalType:"uint32",name:"secondsInside",type:"uint32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"bool",name:"zeroForOne",type:"bool"},{internalType:"int256",name:"amountSpecified",type:"int256"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"},{internalType:"bytes",name:"data",type:"bytes"}],name:"swap",outputs:[{internalType:"int256",name:"amount0",type:"int256"},{internalType:"int256",name:"amount1",type:"int256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int16",name:"",type:"int16"}],name:"tickBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tickSpacing",outputs:[{internalType:"int24",name:"",type:"int24"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"int24",name:"",type:"int24"}],name:"ticks",outputs:[{internalType:"uint128",name:"liquidityGross",type:"uint128"},{internalType:"int128",name:"liquidityNet",type:"int128"},{internalType:"uint256",name:"feeGrowthOutside0X128",type:"uint256"},{internalType:"uint256",name:"feeGrowthOutside1X128",type:"uint256"},{internalType:"int56",name:"tickCumulativeOutside",type:"int56"},{internalType:"uint160",name:"secondsPerLiquidityOutsideX128",type:"uint160"},{internalType:"uint32",name:"secondsOutside",type:"uint32"},{internalType:"bool",name:"initialized",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"token0",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"token1",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"}],QUOTER:[{inputs:[{internalType:"address",name:"_factory",type:"address"},{internalType:"address",name:"_WETH9",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"WETH9",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"factory",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountIn",type:"uint256"}],name:"quoteExactInput",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactInputSingleParams",name:"params",type:"tuple"}],name:"quoteExactInputSingle",outputs:[{internalType:"uint256",name:"amountOut",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bytes",name:"path",type:"bytes"},{internalType:"uint256",name:"amountOut",type:"uint256"}],name:"quoteExactOutput",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160[]",name:"sqrtPriceX96AfterList",type:"uint160[]"},{internalType:"uint32[]",name:"initializedTicksCrossedList",type:"uint32[]"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"tokenIn",type:"address"},{internalType:"address",name:"tokenOut",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"},{internalType:"uint24",name:"fee",type:"uint24"},{internalType:"uint160",name:"sqrtPriceLimitX96",type:"uint160"}],internalType:"struct IQuoterV2.QuoteExactOutputSingleParams",name:"params",type:"tuple"}],name:"quoteExactOutputSingle",outputs:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"uint160",name:"sqrtPriceX96After",type:"uint160"},{internalType:"uint32",name:"initializedTicksCrossed",type:"uint32"},{internalType:"uint256",name:"gasEstimate",type:"uint256"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"int256",name:"amount0Delta",type:"int256"},{internalType:"int256",name:"amount1Delta",type:"int256"},{internalType:"bytes",name:"path",type:"bytes"}],name:"uniswapV3SwapCallback",outputs:[],stateMutability:"view",type:"function"}],PERMIT2:[{inputs:[{internalType:"uint256",name:"deadline",type:"uint256"}],name:"AllowanceExpired",type:"error"},{inputs:[],name:"ExcessiveInvalidation",type:"error"},{inputs:[{internalType:"uint256",name:"amount",type:"uint256"}],name:"InsufficientAllowance",type:"error"},{inputs:[{internalType:"uint256",name:"maxAmount",type:"uint256"}],name:"InvalidAmount",type:"error"},{inputs:[],name:"InvalidContractSignature",type:"error"},{inputs:[],name:"InvalidNonce",type:"error"},{inputs:[],name:"InvalidSignature",type:"error"},{inputs:[],name:"InvalidSignatureLength",type:"error"},{inputs:[],name:"InvalidSigner",type:"error"},{inputs:[],name:"LengthMismatch",type:"error"},{inputs:[{internalType:"uint256",name:"signatureDeadline",type:"uint256"}],name:"SignatureExpired",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"address",name:"token",type:"address"},{indexed:!1,internalType:"address",name:"spender",type:"address"}],name:"Lockdown",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint48",name:"newNonce",type:"uint48"},{indexed:!1,internalType:"uint48",name:"oldNonce",type:"uint48"}],name:"NonceInvalidation",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"token",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint160",name:"amount",type:"uint160"},{indexed:!1,internalType:"uint48",name:"expiration",type:"uint48"},{indexed:!1,internalType:"uint48",name:"nonce",type:"uint48"}],name:"Permit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!1,internalType:"uint256",name:"word",type:"uint256"},{indexed:!1,internalType:"uint256",name:"mask",type:"uint256"}],name:"UnorderedNonceInvalidation",type:"event"},{inputs:[],name:"DOMAIN_SEPARATOR",outputs:[{internalType:"bytes32",name:"",type:"bytes32"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"},{internalType:"address",name:"",type:"address"}],name:"allowance",outputs:[{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"}],name:"approve",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint48",name:"newNonce",type:"uint48"}],name:"invalidateNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"wordPos",type:"uint256"},{internalType:"uint256",name:"mask",type:"uint256"}],name:"invalidateUnorderedNonces",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"address",name:"spender",type:"address"}],internalType:"struct IAllowanceTransfer.TokenSpenderPair[]",name:"approvals",type:"tuple[]"}],name:"lockdown",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"},{internalType:"uint256",name:"",type:"uint256"}],name:"nonceBitmap",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails[]",name:"details",type:"tuple[]"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitBatch",name:"permitBatch",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IAllowanceTransfer.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IAllowanceTransfer.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permit",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions",name:"permitted",type:"tuple"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails",name:"transferDetails",type:"tuple"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],internalType:"struct ISignatureTransfer.TokenPermissions[]",name:"permitted",type:"tuple[]"},{internalType:"uint256",name:"nonce",type:"uint256"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct ISignatureTransfer.PermitBatchTransferFrom",name:"permit",type:"tuple"},{components:[{internalType:"address",name:"to",type:"address"},{internalType:"uint256",name:"requestedAmount",type:"uint256"}],internalType:"struct ISignatureTransfer.SignatureTransferDetails[]",name:"transferDetails",type:"tuple[]"},{internalType:"address",name:"owner",type:"address"},{internalType:"bytes32",name:"witness",type:"bytes32"},{internalType:"string",name:"witnessTypeString",type:"string"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"permitWitnessTransferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{components:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],internalType:"struct IAllowanceTransfer.AllowanceTransferDetails[]",name:"transferDetails",type:"tuple[]"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"from",type:"address"},{internalType:"address",name:"to",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"address",name:"token",type:"address"}],name:"transferFrom",outputs:[],stateMutability:"nonpayable",type:"function"}]};const uj={name:"uniswap_v3",label:"Uniswap v3",logo:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIGRhdGEtdGVzdGlkPSJ1bmlzd2FwLWxvZ28iIGNsYXNzPSJyZ3c2ZXo0NHAgcmd3NmV6NGVqIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNMjAuMzUyNiAxOS45MjQyQzIwLjI5MjggMjAuMTU0OSAyMC4xODg1IDIwLjM3MTUgMjAuMDQ1NSAyMC41NjE4QzE5Ljc3OTMg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IwNDMgMzkuNDczM0MyOS4yODk4IDM5LjQ5IDI5LjM3NjEgMzkuNTAyMyAyOS40NjI5IDM5LjUxMDJMMjkuNzMxMiAzOS41MTY2QzI5LjkxNTcgMzkuNTAzNCAzMC4wOTkgMzkuNDc3IDMwLjI3OTcgMzkuNDM3NkMzMC42NTQxIDM5LjM0OTIgMzEuMDE5IDM5LjIyNDEgMzEuMzY5MSAzOS4wNjQyTDMxLjMxODcgMzkuMTA0NlpNMjEuMDgwMSAzNi45NjE5QzIxLjExMjMgMzYuOTk4OSAyMS4xNDQ5IDM3LjAzNTUgMjEuMTc3OSAzNy4wNzE4QzIxLjE2NDQgMzcuMDU2NyAyMS4xNTEgMzcuMDQxNSAyMS4xMzc1IDM3LjAyNjRMMjEuMTM3NSAzNy4wMjY0TDIxLjEzNzUgMzcuMDI2NEwyMS4xMzc1IDM3LjAyNjRDMjEuMTE4NCAzNy4wMDQ5IDIxLjA5OTMgMzYuOTgzNCAyMS4wODAxIDM2Ljk2MTlaIiBmaWxsPSJjdXJyZW50Q29sb3IiPjwvcGF0aD48L3N2Zz4K",protocol:"uniswap_v3",slippage:!0,fees:[100,500,3e3,1e4],blockchains:["ethereum","bsc","polygon","optimism","arbitrum"],ethereum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:sj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}},bsc:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:sj.ROUTER},factory:{address:"0xdB1d10011AD0Ff90774D0C6Bb92e5C5c8b4461F7",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x78D78E420Da98ad378D7799bE8f4AF69033EB077",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}},polygon:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:sj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}},optimism:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:sj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}},arbitrum:{router:{address:"0x3fc91a3afd70395cd496c647d5a6cc9d4b2b7fad",api:sj.ROUTER},factory:{address:"0x1F98431c8aD98523631AE4a59f267346ea31F984",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x61fFE014bA17989E743c5F6cB21bF9697530B21e",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}},base:{router:{address:"0x198EF79F1F515F02dFE9e3115eD9fC07183f02fC",api:sj.ROUTER},factory:{address:"0x33128a8fC17869897dcE68Ed026d694621f6FDfD",api:sj.FACTORY},pool:{api:sj.POOL},quoter:{address:"0x3d4e44Eb1374240CE5F1B871ab261CD16335B76a",api:sj.QUOTER},permit:{address:"0x000000000022d473030f116ddee9f6b43ac78ba3",api:sj.PERMIT2}}};var cj=t=>new AL(Object.assign(uj,{scope:t,findPath:t=>sj.findPath({...t,exchange:uj}),pathExists:t=>sj.pathExists({...t,exchange:uj}),getAmounts:t=>sj.getAmounts({...t,exchange:uj}),getPrep:t=>sj.getPrep({...t,exchange:uj}),getTransaction:t=>sj.getTransaction({...t,exchange:uj})}));var lj={findPath:async({blockchain:t,tokenIn:e,tokenOut:n})=>{if(![e,n].includes(Hf[t].currency.address)||![e,n].includes(Hf[t].wrapped.address))return{path:void 0,exchangePath:void 0};let r=[e,n];return{path:r,exchangePath:r}},pathExists:async({blockchain:t,path:e})=>!(!e||2!==e.length)&&(e.includes(Hf[t].currency.address)&&e.includes(Hf[t].wrapped.address)),getAmounts:async({path:t,block:e,tokenIn:n,tokenOut:r,amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s})=>(i?o=a=s=i:o?i=a=s=o:s?o=a=i=s:a&&(i=s=o=a),{amountOut:i,amountIn:o,amountInMax:a,amountOutMin:s}),getTransaction:({exchange:t,blockchain:e,path:n,amountIn:r,amountInMax:i,amountOut:o,amountOutMin:a,amountInInput:s,amountOutInput:u,amountInMaxInput:c,amountOutMinInput:l,account:h})=>{let d={blockchain:e,from:h,to:t[e].router.address,api:t[e].router.api};return n[0]===Hf[e].currency.address&&n[1]===Hf[e].wrapped.address?(d.method="deposit",d.value=r.toString(),d):n[0]===Hf[e].wrapped.address&&n[1]===Hf[e].currency.address?(d.method="withdraw",d.value=0,d.params={wad:r},d):void 0},WETH:[{constant:!0,inputs:[],name:"name",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"guy",type:"address"},{name:"wad",type:"uint256"}],name:"approve",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"totalSupply",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"src",type:"address"},{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transferFrom",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[{name:"wad",type:"uint256"}],name:"withdraw",outputs:[],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!0,inputs:[],name:"decimals",outputs:[{name:"",type:"uint8"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[{name:"",type:"address"}],name:"balanceOf",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{constant:!0,inputs:[],name:"symbol",outputs:[{name:"",type:"string"}],payable:!1,stateMutability:"view",type:"function"},{constant:!1,inputs:[{name:"dst",type:"address"},{name:"wad",type:"uint256"}],name:"transfer",outputs:[{name:"",type:"bool"}],payable:!1,stateMutability:"nonpayable",type:"function"},{constant:!1,inputs:[],name:"deposit",outputs:[],payable:!0,stateMutability:"payable",type:"function"},{constant:!0,inputs:[{name:"",type:"address"},{name:"",type:"address"}],name:"allowance",outputs:[{name:"",type:"uint256"}],payable:!1,stateMutability:"view",type:"function"},{payable:!0,stateMutability:"payable",type:"fallback"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"guy",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Transfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"dst",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Deposit",type:"event"},{anonymous:!1,inputs:[{indexed:!0,name:"src",type:"address"},{indexed:!1,name:"wad",type:"uint256"}],name:"Withdrawal",type:"event"}]};const hj={name:"wavax",label:"Wrapped Avax",logo:Hf.avalanche.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["avalanche"],avalanche:{router:{address:Hf.avalanche.wrapped.address,api:lj.WETH}}};var dj=t=>new AL(Object.assign(hj,{scope:t,findPath:t=>lj.findPath({...t,exchange:hj}),pathExists:t=>lj.pathExists({...t,exchange:hj}),getAmounts:t=>lj.getAmounts({...t,exchange:hj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:hj})}));const fj={name:"wbnb",label:"Wrapped BNB",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2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MTQ4LjN2MThsMTUuNCw5bDE1LjQtOXYtMThMOTYsMTU3LjFMODAuNiwxNDguM3ogTTU0LDEyMC4zbDE1LjQsOXYtMTguMUw1NCwxMDIuM0w1NCwxMjAuM0w1NCwxMjAuM3oKCSBNODAuNiw1Ni40bDE1LjQsOWwxNS40LTlMOTYsNDcuNUM5Niw0Ny40LDgwLjYsNTYuNCw4MC42LDU2LjRMODAuNiw1Ni40eiBNNDMuMSw2NS40bDE1LjQtOWwtMTUuNC05bC0xNS40LDl2MThsMTUuNCw5TDQzLjEsNjUuNAoJTDQzLjEsNjUuNHogTTQzLjEsOTUuOUwyNy43LDg3djQ4LjVsNDIsMjQuMnYtMThsLTI2LjYtMTUuM1Y5NS45TDQzLjEsOTUuOXoiLz4KPC9zdmc+Cg==",slippage:!1,blockchains:["bsc"],bsc:{router:{address:Hf.bsc.wrapped.address,api:lj.WETH}}};var pj=t=>new AL(Object.assign(fj,{scope:t,findPath:t=>lj.findPath({...t,exchange:fj}),pathExists:t=>lj.pathExists({...t,exchange:fj}),getAmounts:t=>lj.getAmounts({...t,exchange:fj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:fj})}));const yj={name:"weth",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJod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Zz4K",protocol:"weth",slippage:!1,blockchains:["ethereum"],ethereum:{router:{address:Hf.ethereum.wrapped.address,api:lj.WETH}}};var mj=t=>new AL(Object.assign(yj,{scope:t,findPath:t=>lj.findPath({...t,exchange:yj}),pathExists:t=>lj.pathExists({...t,exchange:yj}),getAmounts:t=>lj.getAmounts({...t,exchange:yj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:yj})}));const gj={name:"weth_arbitrum",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["arbitrum"],arbitrum:{router:{address:Hf.arbitrum.wrapped.address,api:lj.WETH}}};var vj=t=>new AL(Object.assign(gj,{scope:t,findPath:t=>lj.findPath({...t,exchange:gj}),pathExists:t=>lj.pathExists({...t,exchange:gj}),getAmounts:t=>lj.getAmounts({...t,exchange:gj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:gj})}));const wj={name:"weth_optimism",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9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9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["optimism"],optimism:{router:{address:Hf.optimism.wrapped.address,api:lj.WETH}}};var bj=t=>new AL(Object.assign(wj,{scope:t,findPath:t=>lj.findPath({...t,exchange:wj}),pathExists:t=>lj.pathExists({...t,exchange:wj}),getAmounts:t=>lj.getAmounts({...t,exchange:wj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:wj})}));const Mj={name:"weth_base",label:"Wrapped Ethereum",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIKCSBpZD0iTGF5ZXJfMSIgaW1hZ2UtcmVuZGVyaW5nPSJvcHRpbWl6ZVF1YWxpdHkiIHNoYXBlLXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIiB0ZXh0LXJlbmRlcmluZz0iZ2VvbWV0cmljUHJlY2lzaW9uIgoJIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IiB2aWV3Qm94PSIwIDAgMjgzLjUgMjgzLjUiCgkgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMjgzLjUgMjgzLjU7IiB4bWw6c3BhY2U9InByZXNlcnZlIj4KPHN0eWxlIHR5cGU9InRleHQvY3NzIj4KCS5zdDB7ZmlsbDojMzQzNDM0O30KCS5zdDF7ZmlsbDojOEM4QzhDO30KCS5zdDJ7ZmlsbDojM0MzQzNCO30KCS5zdDN7ZmlsbDojMTQxNDE0O30KCS5zdDR7ZmlsbDojMzkzOTM5O30KPC9zdHlsZT4KPGc+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMTQxLjcsMjUuOWwtMS41LDUuMnYxNTMuM2wxLjUsMS41bDcxLjItNDIuMUwxNDEuNywyNS45eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNS45TDcwLjYsMTQzLjhsNzEuMSw0Mi4xdi03NC40VjI1Ljl6Ii8+CgkJPHBhdGggY2xhc3M9InN0MiIgZD0iTTE0MS43LDE5OS40bC0wLjgsMS4xdjU0LjZsMC44LDIuNWw3MS4yLTEwMC4zTDE0MS43LDE5OS40eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDEiIGQ9Ik0xNDEuNywyNTcuNnYtNTguMmwtNzEuMS00Mi4xTDE0MS43LDI1Ny42eiIvPgoJCTxwYXRoIGNsYXNzPSJzdDMiIGQ9Ik0xNDEuNywxODUuOWw3MS4yLTQyLjFsLTcxLjItMzIuM1YxODUuOXoiLz4KCQk8cGF0aCBjbGFzcz0ic3Q0IiBkPSJNNzAuNiwxNDMuOGw3MS4xLDQyLjF2LTc0LjRMNzAuNiwxNDMuOHoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["base"],base:{router:{address:Hf.base.wrapped.address,api:lj.WETH}}};var Aj=t=>new AL(Object.assign(Mj,{scope:t,findPath:t=>lj.findPath({...t,exchange:Mj}),pathExists:t=>lj.pathExists({...t,exchange:Mj}),getAmounts:t=>lj.getAmounts({...t,exchange:Mj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:Mj})}));const Ij={name:"wftm",label:"Wrapped Fantom",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPHN2ZyB2ZXJzaW9uPSIxLjEiIGlkPSJMYXllcl8xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgMTkyIDE5MiIgc3R5bGU9ImVuYWJsZS1iYWNrZ3JvdW5kOm5ldyAwIDAgMTkyIDE5MjsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8ZyBpZD0iY2lyY2xlIj4KCTxnIGlkPSJGYW50b20tY2lyY2xlIj4KCQk8Y2lyY2xlIGlkPSJPdmFsIiBmaWxsUnVsZT0iZXZlbm9kZCIgY2xpcFJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMxOTY5RkYiIGNsYXNzPSJzdDAiIGN4PSI5NiIgY3k9Ijk2IiByPSI4MC40Ii8+CgkJPHBhdGggaWQ9IlNoYXBlIiBmaWxsPSIjRkZGRkZGIiBkPSJNOTEuMSw0MS4yYzIuNy0xLjQsNi44LTEuNCw5LjUsMGwyNy42LDE0LjZjMS42LDAuOSwyLjUsMi4xLDIuNywzLjVoMHY3My4zCgkJCWMwLDEuNC0wLjksMi45LTIuNywzLjhsLTI3LjYsMTQuNmMtMi43LDEuNC02LjgsMS40LTkuNSwwbC0yNy42LTE0LjZjLTEuOC0wLjktMi42LTIuNC0yLjctMy44YzAtMC4xLDAtMC4zLDAtMC40bDAtNzIuNAoJCQljMC0wLjEsMC0wLjIsMC0wLjNsMC0wLjJoMGMwLjEtMS4zLDEtMi42LDIuNi0zLjVMOTEuM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kJCWwtMC4xLDBMOTguNyw0NS4xeiBNMTMwLjcsNDYuNWwxLjcsMS4xbDAuMywwLjJjMC41LDAuMywwLjksMC42LDEuMywwLjhjNC4yLDIuOCw1LjcsNS45LDUuNywxMi4zbDAsMC4yaC00LjNjMC0yLjgtMC4zLTQuNy0xLTYKCQkJYy0wLjUtMS4xLTEuMy0xLjktMi44LTIuOWwtMC4xLTAuMWMtMC4zLTAuMi0wLjctMC40LTEuMS0wLjdsLTAuNS0wLjNsLTEuNi0wLjlMMTMwLjcsNDYuNXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K",protocol:"weth",slippage:!1,blockchains:["fantom"],fantom:{router:{address:Hf.fantom.wrapped.address,api:lj.WETH}}};var Nj=t=>new AL(Object.assign(Ij,{scope:t,findPath:t=>lj.findPath({...t,exchange:Ij}),pathExists:t=>lj.pathExists({...t,exchange:Ij}),getAmounts:t=>lj.getAmounts({...t,exchange:Ij}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:Ij})}));const Ej={name:"wmatic",label:"Wrapped MATIC",logo:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPCEtLSBHZW5lcmF0b3I6IEFkb2JlIElsbHVzdHJhdG9yIDI2LjAuMSwgU1ZHIEV4cG9ydCBQbHVnLUluIC4gU1ZHIFZlcnNpb246IDYuMDAgQnVpbGQgMCkgIC0tPgo8c3ZnIHZlcnNpb249IjEuMSIgaWQ9IkxheWVyXzEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIHg9IjBweCIgeT0iMHB4IgoJIHZpZXdCb3g9IjAgMCA0NS40IDQ1LjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQ1LjQgNDUuNDsiIHhtbDpzcGFjZT0icHJlc2VydmUiPgo8c3R5bGUgdHlwZT0idGV4dC9jc3MiPgoJLnN0MHtmaWxsOiM4MjQ3RTU7fQo8L3N0eWxlPgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzEuOSwxNi42Yy0wLjctMC40LTEuNi0wLjQtMi4yLDBsLTUuMywzLjFsLTMuNSwybC01LjEsMy4xYy0wLjcsMC40LTEuNiwwLjQtMi4yLDBsLTQtMi40CgljLTAuNi0wLjQtMS4xLTEuMS0xLjEtMnYtNC42YzAtMC45LDAuNS0xLjYsMS4xLTJsNC0yLjNjMC43LTAuNCwxLjUtMC40LDIuMiwwbDQsMi40YzAuNywwLjQsMS4xLDEuMSwxLjEsMnYzLjFsMy41LTIuMXYtMy4yCgljMC0wLjktMC40LTEuNi0xLjEtMmwtNy41LTQuNGMtMC43LTAuNC0xLjUtMC40LTIuMiwwTDYsMTEuN2MtMC43LDAuNC0xLjEsMS4xLTEuMSwxLjh2OC43YzAsMC45LDAuNCwxLjYsMS4xLDJsNy42LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw1LjEtMi45bDMuNS0yLjFsNS4xLTIuOWMwLjctMC40LDEuNi0wLjQsMi4yLDBsNCwyLjNjMC43LDAuNCwxLjEsMS4xLDEuMSwydjQuNmMwLDAuOS0wLjQsMS42LTEuMSwyCglsLTMuOSwyLjNjLTAuNywwLjQtMS41LDAuNC0yLjIsMGwtNC0yLjNjLTAuNy0wLjQtMS4xLTEuMS0xLjEtMnYtMi45TDIxLDI4Ljd2My4xYzAsMC45LDAuNCwxLjYsMS4xLDJsNy41LDQuNAoJYzAuNywwLjQsMS41LDAuNCwyLjIsMGw3LjUtNC40YzAuNy0wLjQsMS4xLTEuMSwxLjEtMlYyM2MwLTAuOS0wLjQtMS42LTEuMS0yQzM5LjIsMjEsMzEuOSwxNi42LDMxLjksMTYuNnoiLz4KPC9zdmc+Cg==",protocol:"weth",slippage:!1,blockchains:["polygon"],polygon:{router:{address:Hf.polygon.wrapped.address,api:lj.WETH}}};var xj=t=>new AL(Object.assign(Ej,{scope:t,findPath:t=>lj.findPath({...t,exchange:Ej}),pathExists:t=>lj.pathExists({...t,exchange:Ej}),getAmounts:t=>lj.getAmounts({...t,exchange:Ej}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:Ej})}));const kj={name:"wxdai",label:"Wrapped XDAI",logo:Hf.gnosis.wrapped.logo,protocol:"weth",slippage:!1,blockchains:["gnosis"],gnosis:{router:{address:Hf.gnosis.wrapped.address,api:lj.WETH}}};var Tj=t=>new AL(Object.assign(kj,{scope:t,findPath:t=>lj.findPath({...t,exchange:kj}),pathExists:t=>lj.pathExists({...t,exchange:kj}),getAmounts:t=>lj.getAmounts({...t,exchange:kj}),getPrep:t=>{},getTransaction:t=>lj.getTransaction({...t,exchange:kj})}));const Lj=[kS(),cj(),_S(),XS(),LS(),ZS(),RS(),QS(),jL(),mj(),bj(),Aj(),vj(),pj(),xj(),Nj(),dj(),Tj()];Lj.forEach((t=>{Lj[t.name]=t})),Lj.ethereum=[cj("ethereum"),XS("ethereum"),mj("ethereum")],Lj.ethereum.forEach((t=>{Lj.ethereum[t.name]=t})),Lj.bsc=[_S("bsc"),cj("bsc"),LS("bsc"),pj("bsc")],Lj.bsc.forEach((t=>{Lj.bsc[t.name]=t})),Lj.polygon=[cj("polygon"),RS("polygon"),xj("polygon")],Lj.polygon.forEach((t=>{Lj.polygon[t.name]=t})),Lj.solana=[kS("solana")],Lj.solana.forEach((t=>{Lj.solana[t.name]=t})),Lj.optimism=[cj("optimism"),bj("optimism")],Lj.optimism.forEach((t=>{Lj.optimism[t.name]=t})),Lj.base=[cj("base"),Aj("base")],Lj.base.forEach((t=>{Lj.base[t.name]=t})),Lj.arbitrum=[cj("arbitrum"),vj("arbitrum")],Lj.arbitrum.forEach((t=>{Lj.arbitrum[t.name]=t})),Lj.fantom=[QS("fantom"),Nj("fantom")],Lj.fantom.forEach((t=>{Lj.fantom[t.name]=t})),Lj.avalanche=[ZS("avalanche"),dj("avalanche")],Lj.avalanche.forEach((t=>{Lj.avalanche[t.name]=t})),Lj.gnosis=[jL("gnosis"),Tj("gnosis")],Lj.gnosis.forEach((t=>{Lj.gnosis[t.name]=t}));Lj.route=({blockchain:t,tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})=>Promise.all(Lj[t].map((t=>t.route({tokenIn:e,tokenOut:n,amountIn:r,amountOut:i,amountInMax:o,amountOutMin:a})))).then((t=>t.filter(Boolean).sort(((t,e)=>(r||o?BigInt(t.amountOut)BigInt(e.amountIn))?1:(r||o?BigInt(t.amountOut)>BigInt(e.amountOut):BigInt(t.amountIn)jj||(jj="object"==typeof r?r:window,jj);const Dj=()=>(void 0===Cj()._Web3ClientConfiguration&&(Cj()._Web3ClientConfiguration={}),Cj()._Web3ClientConfiguration);function Oj(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class zj extends ZA{constructor(t,e,n,r){super(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[]}detectNetwork(){return Promise.resolve(Hf.findByName(this._network).id)}requestChunk(t,e,n){try{const r=t.map((t=>t.request));return $M(e,JSON.stringify(r)).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(Oj([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else Oj([r,"optionalAccess",t=>t.result])?t.resolve(r.result):t.reject()}))})).catch((e=>{if(n<3&&e&&"SERVER_ERROR"==e.code){const e=this._endpoints.indexOf(this._endpoint)+1;this._failover(),this._endpoint=e>=this._endpoints.length?this._endpoints[0]:this._endpoints[e],this.requestChunk(t,this._endpoint,n+1)}else t.forEach((t=>{t.reject(e)}))}))}catch(e){t.forEach((t=>{t.reject()}))}}send(t,e){const n={method:t,params:e,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,this._endpoint,1))))}),Dj().batchInterval||10)),i}}const Pj=()=>(null==Cj()._Web3ClientProviders&&(Cj()._Web3ClientProviders={}),Cj()._Web3ClientProviders),_j=(t,e)=>{void 0===Pj()[t]&&(Pj()[t]=[]);const n=Pj()[t].indexOf(e);n>-1&&Pj()[t].splice(n,1),Pj()[t].unshift(e)},Bj=async(t,e,n=!0)=>{let r;Pj()[t]=e.map(((r,i)=>new zj(r,t,e,(()=>{1===Pj()[t].length?Bj(t,e,n):Pj()[t].splice(i,1)}))));let i=Cj();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=Pj()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"net_version",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=Pj()[t][o]}_j(t,r)};var Rj=async t=>{let e=Pj();if(e&&e[t])return e[t][0];let n=Cj();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await Bj(t,Hf[t].endpoints),e(Cj()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},Uj=async t=>{let e=Pj();if(e&&e[t])return e[t];let n=Cj();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await Bj(t,Hf[t].endpoints),e(Cj()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]};class Qj extends ql{constructor(t,e,n,r){super(t),this._provider=new ql(t),this._network=e,this._endpoint=t,this._endpoints=n,this._failover=r,this._pendingBatch=[],this._rpcRequest=this._rpcRequestReplacement.bind(this)}handleError(t,e,n){if(e<3&&t&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((e=>t.toString().match(e)))){const t=this._endpoints.indexOf(this._endpoint)+1;this._endpoint=t>=this._endpoints.length?this._endpoints[0]:this._endpoints[t],this._provider=new ql(this._endpoint),this.requestChunk(n,e+1)}else n.forEach((e=>{e.reject(t)}))}batchRequest(t,e){return new Promise(((e,n)=>{0===t.length&&e([]);const r=t.map((t=>this._rpcClient.request(t.methodName,t.args)));fetch(this._endpoint,{method:"POST",body:JSON.stringify(r),headers:{"Content-Type":"application/json"}}).then((t=>{t.ok?t.json().then((t=>{e(t)})).catch(n):n(`${t.status} ${t.text}`)})).catch(n)}))}requestChunk(t,e){const n=t.map((t=>t.request));try{return this.batchRequest(n,e).then((e=>{t.forEach(((t,n)=>{const r=e[n];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([r,"optionalAccess",t=>t.error])){const e=new Error(r.error.message);e.code=r.error.code,e.data=r.error.data,t.reject(e)}else r?t.resolve(r):t.reject()}))})).catch((n=>this.handleError(n,e,t)))}catch(n){return this.handleError(n,e,t)}}_rpcRequestReplacement(t,e){const n={methodName:t,args:e};null==this._pendingBatch&&(this._pendingBatch=[]);const r={request:n,resolve:null,reject:null},i=new Promise(((t,e)=>{r.resolve=t,r.reject=e}));return this._pendingBatch.push(r),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((()=>{const t=this._pendingBatch;this._pendingBatch=[],this._pendingBatchAggregator=null;const e=[];for(let n=0;n(t.map((t=>t.request)),this.requestChunk(t,1))))}),Dj().batchInterval||10)),i}}const Yj=()=>(null==Cj()._Web3ClientProviders&&(Cj()._Web3ClientProviders={}),Cj()._Web3ClientProviders),Wj=(t,e)=>{void 0===Yj()[t]&&(Yj()[t]=[]);const n=Yj()[t].indexOf(e);n>-1&&Yj()[t].splice(n,1),Yj()[t].unshift(e)},Fj=async(t,e,n=!0)=>{let r;Yj()[t]=e.map(((r,i)=>new Qj(r,t,e,(()=>{1===Yj()[t].length?Fj(t,e,n):Yj()[t].splice(i,1)}))));let i=Cj();if(null==i.fetch||void 0!==k&&k.env&&"test"==k.env.NODE_ENV||void 0!==i.cy||!1===n)r=Yj()[t][0];else{let n=await Promise.all(e.map((t=>new Promise((async e=>{let n=(new Date).getTime();setTimeout((()=>e(900)),900);if(!(await fetch(t,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},referrer:"",referrerPolicy:"no-referrer",body:JSON.stringify({method:"getIdentity",id:1,jsonrpc:"2.0"})})).ok)return e(999);let r=(new Date).getTime();e(r-n)})))));const i=Math.min(...n),o=n.indexOf(i);r=Yj()[t][o]}Wj(t,r)};var Vj=async t=>{let e=Yj();if(e&&e[t])return e[t][0];let n=Cj();return n._Web3ClientGetProviderPromise&&n._Web3ClientGetProviderPromise[t]||(n._Web3ClientGetProviderPromise||(n._Web3ClientGetProviderPromise={}),n._Web3ClientGetProviderPromise[t]=new Promise((async e=>{await Fj(t,Hf[t].endpoints),e(Cj()._Web3ClientProviders[t][0])}))),await n._Web3ClientGetProviderPromise[t]},Hj=async t=>{let e=Yj();if(e&&e[t])return e[t];let n=Cj();return n._Web3ClientGetProvidersPromise&&n._Web3ClientGetProvidersPromise[t]||(n._Web3ClientGetProvidersPromise||(n._Web3ClientGetProvidersPromise={}),n._Web3ClientGetProvidersPromise[t]=new Promise((async e=>{await Fj(t,Hf[t].endpoints),e(Cj()._Web3ClientProviders[t])}))),await n._Web3ClientGetProvidersPromise[t]};let Gj=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];Gj.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],Gj.solana=["solana"];let qj=()=>(null==Cj()._Web3ClientCacheStore&&(Cj()._Web3ClientCacheStore={}),Cj()._Web3ClientCacheStore),Zj=()=>(null==Cj()._Web3ClientPromiseStore&&(Cj()._Web3ClientPromiseStore={}),Cj()._Web3ClientPromiseStore),Jj=function({key:t}){Zj()[t]=void 0},Xj=function({call:t,key:e,expires:n=0}){return new Promise(((r,i)=>{let o,a=function({key:t}){return Zj()[t]}({key:e=JSON.stringify(e)});if(a)return a.then(r).catch(i);(function({key:t,promise:e}){return Zj()[t]=e,e})({key:e,promise:new Promise(((a,s)=>0===n?t().then((t=>{r(t),a(t)})).catch((t=>{i(t),s(t)})):(o=function({key:t,expires:e}){let n=qj()[t];if(function(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}([n,"optionalAccess",t=>t.expiresAt])>Date.now())return n.value}({key:e,expires:n}),o?(r(o),a(o),o):void t().then((t=>{t&&function({key:t,value:e,expires:n}){qj()[t]={expiresAt:Date.now()+n,value:e}}({key:e,value:t,expires:n}),r(t),a(t)})).catch((t=>{i(t),s(t)})))))}).then((()=>{Jj({key:e})})).catch((()=>{Jj({key:e})}))}))};const Kj=async t=>{if(Gj.evm.includes(t))return await Rj(t);if(Gj.solana.includes(t))return await Vj(t);throw"Unknown blockchain: "+t};const $j=({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=new PM(t,e,i),s=(({contract:t,method:e,params:n})=>t.interface.fragments.find((t=>t.name==e)).inputs.map(((t,e)=>Array.isArray(n)?n[e]:n[t.name])))({contract:a,method:n,params:r}),u=a.interface.fragments.find((t=>t.name===n));return void 0===a[n]&&(n=`${n}(${u.inputs.map((t=>t.type)).join(",")})`),u&&"nonpayable"===u.stateMutability?a.callStatic[n](...s,{blockTag:o}):a[n](...s,{blockTag:o})},tC=({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a})=>n?$j({address:e,api:n,method:r,params:i,provider:a,block:o}):"latestBlockNumber"===r?a.getBlockNumber():"balance"===r?(({address:t,provider:e})=>e.getBalance(t))({address:e,provider:a}):"transactionCount"===r?(({address:t,provider:e})=>e.getTransactionCount(t))({address:e,provider:a}):void 0;const eC=async({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a,providers:s})=>{try{if(null==r||"getAccountInfo"===r)return null==n&&(n=of),await(async({address:t,api:e,method:n,params:r,provider:i,block:o})=>{const a=await i.getAccountInfo(new Xs(t));if(a&&a.data)return e.decode(a.data)})({address:e,api:n,method:r,params:i,provider:a,block:o});if("getProgramAccounts"===r)return await a.getProgramAccounts(new Xs(e),i).then((t=>n?t.map((t=>(t.data=n.decode(t.account.data),t))):t));if("getTokenAccountBalance"===r)return await a.getTokenAccountBalance(new Xs(e));if("latestBlockNumber"===r)return await a.getSlot(i||void 0);if("balance"===r)return await(({address:t,provider:e})=>e.getBalance(new Xs(t)))({address:e,provider:a})}catch(u){if(s&&u&&["Failed to fetch","limit reached","504","503","502","500","429","426","422","413","409","408","406","405","404","403","402","401","400"].some((t=>u.toString().match(t)))){let u=s[s.indexOf(a)+1]||s[0];return eC({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:u,providers:s})}throw u}};const nC=async function(t,e){const{blockchain:n,address:r,method:i}=(t=>{if("object"==typeof t)return t;let e=t.match(/(?\w+):\/\/(?[\w\d]+)(\/(?[\w\d]+)*)?/);return null==e.groups.part2?e.groups.part1.match(/\d/)?{blockchain:e.groups.blockchain,address:e.groups.part1}:{blockchain:e.groups.blockchain,method:e.groups.part1}:{blockchain:e.groups.blockchain,address:e.groups.part1,method:e.groups.part2}})(t),{api:o,params:a,cache:s,block:u,timeout:c,strategy:l,cacheKey:h}=("object"==typeof t?t:e)||{};return await Xj({expires:s||0,key:h||[n,r,i,a,u],call:async()=>{if(Gj.evm.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{if(s=s||Dj().strategy||"failover",a=a||Dj().timeout||void 0,"fastest"===s){const s=await Uj(t);let u=[];const c=s.map((a=>new Promise((s=>{u.push(tC({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(s))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return u=Promise.all(u.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,u])}{const s=await Rj(t),u=tC({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([u,a])):u}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});if(Gj.solana.includes(n))return await(async({blockchain:t,address:e,api:n,method:r,params:i,block:o,timeout:a,strategy:s})=>{s=s||Dj().strategy||"failover",a=a||Dj().timeout||void 0;const u=await Hj(t);if("fastest"===s){let s=[];const c=u.map((a=>new Promise((u=>{s.push(eC({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:a}).then(u))})))),l=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a||1e4)));return s=Promise.all(s.map((t=>new Promise((e=>{t.catch(e)}))))).then((()=>{})),Promise.race([...c,l,s])}{const s=await Vj(t),c=eC({blockchain:t,address:e,api:n,method:r,params:i,block:o,provider:s,providers:u});return a?(a=new Promise(((t,e)=>setTimeout((()=>{e(new Error("Web3ClientTimeout"))}),a))),Promise.race([c,a])):c}})({blockchain:n,address:r,api:o,method:i,params:a,block:u,strategy:l,timeout:c});throw"Unknown blockchain: "+n}})},rC=async({wSolSenderAccountKeypair:t,paymentRoute:e})=>{if(!t)return;const n=e.fromToken.address===Hf.solana.currency.address?new rf(e.fromAmount):new rf("0"),r=await Kj("solana"),i=new rf(await r.getMinimumBalanceForRentExemption(kk.solana.TOKEN_LAYOUT.span)),o=e.fromAddress,a=n.add(i);return[Wu.createAccount({fromPubkey:new Xs(o),newAccountPubkey:t.publicKey,programId:new Xs(kk.solana.TOKEN_PROGRAM),space:kk.solana.TOKEN_LAYOUT.span,lamports:a}),kk.solana.initializeAccountInstruction({account:t.publicKey.toString(),token:Hf.solana.wrapped.address,owner:o})]},iC=async({wSolEscrowAccountKeypair:t,paymentRoute:e})=>{if(!t)return;const n=await Kj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(kk.solana.TOKEN_LAYOUT.span)),i=await gC();return[Wu.createAccount({fromPubkey:new Xs(e.fromAddress),newAccountPubkey:t.publicKey,programId:new Xs(kk.solana.TOKEN_PROGRAM),space:kk.solana.TOKEN_LAYOUT.span,lamports:r}),kk.solana.initializeAccountInstruction({account:t.publicKey.toString(),token:Hf.solana.wrapped.address,owner:i.toString()})]},oC=({paymentRoute:t})=>{let e=[...t.exchangeRoutes[0].path];return e.indexOf(Hf.solana.currency.address)>-1&&e.splice(e.indexOf(Hf.solana.currency.address),1),e.indexOf(t.fromToken.address)>-1&&e.splice(e.indexOf(t.fromToken.address),1),e.indexOf(t.toToken.address)>-1&&e.splice(e.indexOf(t.toToken.address),1),2===e.length&&e[0]===Hf.solana.wrapped.address?e[1]:e[0]},aC=async({paymentRoute:t})=>await kk.solana.findProgramAddress({token:oC({paymentRoute:t}),owner:t.fromAddress}),sC=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||MC(t.exchangeRoutes[0].path).length<=2)return;return await(async({paymentRoute:t})=>await nC({blockchain:"solana",address:await aC({paymentRoute:t}),api:kk.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:t})?void 0:kk.solana.createAssociatedTokenAccountInstruction({token:oC({paymentRoute:t}),owner:t.fromAddress,payer:t.fromAddress})},uC=async({wSolSenderAccountKeypair:t,paymentRoute:e})=>{if(t)return kk.solana.closeAccountInstruction({account:t.publicKey.toString(),owner:e.fromAddress})},cC=async({from:t})=>{let e=[nf.from("payments"),new Xs(t).toBuffer()],[n]=await Xs.findProgramAddress(e,new Xs(Sj.solana.address));return n},lC=async({from:t})=>{let e=(await cC({from:t})).toString();return await nC({blockchain:"solana",address:e,api:pf([vf("anchorDiscriminator"),vf("nonce")]),cache:1e3})},hC=async({from:t})=>{if(await lC({from:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t}),isSigner:!1,isWritable:!0}],n=nf.alloc(Sj.solana.api.createPaymentsAccount.layout.span);return Sj.solana.api.createPaymentsAccount.layout.encode({anchorDiscriminator:Sj.solana.api.createPaymentsAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Sj.solana.address),data:n})},dC=async({paymentRoute:t})=>await kk.solana.findProgramAddress({token:t.fromToken.address,owner:t.fromAddress}),fC=async({paymentRoute:t})=>await kk.solana.findProgramAddress({token:t.toToken.address,owner:t.toAddress}),pC=async({paymentRoute:t})=>{if(t.toToken.address===Hf.solana.currency.address){const e=await nC({blockchain:"solana",method:"balance",address:t.toAddress}),n=await Kj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(0)),i=new rf(t.toAmount);if(new rf(e).add(i).gt(r))return;return Wu.transfer({fromPubkey:new Xs(t.fromAddress),toPubkey:new Xs(t.toAddress),lamports:r.sub(i)})}{const e=t.toToken.address;if(await(async({paymentRoute:t})=>await kk.solana.findAccount({token:t.toToken.address,owner:t.toAddress}))({paymentRoute:t}))return;return kk.solana.createAssociatedTokenAccountInstruction({token:e,owner:t.toAddress,payer:t.fromAddress})}},yC=async({paymentRoute:t})=>await kk.solana.findProgramAddress({token:t.toToken.address,owner:t.fee.receiver}),mC=async({paymentRoute:t})=>{if(t.fee){if(t.toToken.address===Hf.solana.currency.address){const e=await nC({blockchain:"solana",method:"balance",address:t.fee.receiver}),n=await Kj("solana"),r=new rf(await n.getMinimumBalanceForRentExemption(0)),i=new rf(t.feeAmount);if(new rf(e).add(i).gt(r))return;return Wu.transfer({fromPubkey:new Xs(t.fromAddress),toPubkey:new Xs(t.fee.receiver),lamports:r.sub(i)})}{const e=t.toToken.address;if(await(async({paymentRoute:t})=>await kk.solana.findAccount({token:t.toToken.address,owner:t.fee.receiver}))({paymentRoute:t}))return;return kk.solana.createAssociatedTokenAccountInstruction({token:e,owner:t.fee.receiver,payer:t.fromAddress})}}},gC=async()=>{let t=[nf.from("escrow_sol")],[e,n]=await Xs.findProgramAddress(t,new Xs(Sj.solana.address));return e},vC=async({paymentRoute:t})=>{let e=[nf.from("escrow"),new Xs(t.toToken.address===Hf.solana.currency.address?Hf.solana.wrapped.address:t.toToken.address).toBuffer()],[n,r]=await Xs.findProgramAddress(e,new Xs(Sj.solana.address));return n},wC=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||t.toToken.address===Hf.solana.currency.address)return;if(await(async({paymentRoute:t})=>await nC({blockchain:"solana",address:(await vC({paymentRoute:t})).toString(),api:kk.solana.TOKEN_LAYOUT,cache:1e3}))({paymentRoute:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:new Xs(t.toToken.address===Hf.solana.currency.address?Hf.solana.wrapped.address:t.toToken.address),isSigner:!1,isWritable:!0},{pubkey:await vC({paymentRoute:t}),isSigner:!1,isWritable:!0}],n=nf.alloc(Sj.solana.api.createEscrowTokenAccount.layout.span);return Sj.solana.api.createEscrowTokenAccount.layout.encode({anchorDiscriminator:Sj.solana.api.createEscrowTokenAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Sj.solana.address),data:n})},bC=async({paymentRoute:t})=>{if(0===t.exchangeRoutes.length||t.toToken.address!=Hf.solana.currency.address)return;if(await(async({paymentRoute:t})=>await nC({blockchain:"solana",address:(await gC()).toString(),api:pf([vf("amount"),hf("owner")]),cache:1e3}))({paymentRoute:t}))return;const e=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await gC(),isSigner:!1,isWritable:!0}],n=nf.alloc(Sj.solana.api.createEscrowSolAccount.layout.span);return Sj.solana.api.createEscrowSolAccount.layout.encode({anchorDiscriminator:Sj.solana.api.createEscrowSolAccount.anchorDiscriminator},n),new gu({keys:e,programId:new Xs(Sj.solana.address),data:n})},MC=t=>t.filter((t=>t!==Hf.solana.currency.address)),AC=async({paymentRoute:t,wSolSenderAccountKeypair:e,wSolEscrowAccountKeypair:n,nonce:r,deadline:i})=>{switch((({paymentRoute:t})=>{if(t.fromToken.address===Hf.solana.currency.address&&t.toToken.address===Hf.solana.currency.address)return"routeSol";if(t.fromToken.address!==Hf.solana.currency.address&&t.toToken.address!==Hf.solana.currency.address&&0===t.exchangeRoutes.length)return"routeToken";if(t.exchangeRoutes.length>0&&2===MC(t.exchangeRoutes[0].path).length)return t.toToken.address===Hf.solana.currency.address?"routeOrcaSwapSolOut":"routeOrcaSwap";if(t.exchangeRoutes.length>0&&MC(t.exchangeRoutes[0].path).length>2)return t.toToken.address===Hf.solana.currency.address?"routeOrcaTwoHopSwapSolOut":"routeOrcaTwoHopSwap";throw"Payment method does not exist!"})({paymentRoute:t})){case"routeSol":return await(async({paymentRoute:t,nonce:e,deadline:n})=>{const r=new Xs(t.toAddress),i=t.fee?new Xs(t.fee.receiver):r,o=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:r,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0}],a=nf.alloc(Sj.solana.api.routeSol.layout.span);return Sj.solana.api.routeSol.layout.encode({anchorDiscriminator:Sj.solana.api.routeSol.anchorDiscriminator,nonce:e,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(n)},a),new gu({keys:o,programId:new Xs(Sj.solana.address),data:a})})({paymentRoute:t,nonce:r,deadline:i});case"routeToken":return await(async({paymentRoute:t,nonce:e,deadline:n})=>{const r=await dC({paymentRoute:t}),i=await fC({paymentRoute:t}),o=t.fee?await yC({paymentRoute:t}):i,a=[{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(r),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0}],s=nf.alloc(Sj.solana.api.routeToken.layout.span);return Sj.solana.api.routeToken.layout.encode({anchorDiscriminator:Sj.solana.api.routeToken.anchorDiscriminator,nonce:e,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(n)},s),new gu({keys:a,programId:new Xs(Sj.solana.address),data:s})})({paymentRoute:t,nonce:r,deadline:i});case"routeOrcaSwap":return await(async({paymentRoute:t,nonce:e,wSolSenderAccountKeypair:n,deadline:r})=>{const i=n?n.publicKey:await dC({paymentRoute:t}),o=await fC({paymentRoute:t}),a=t.fee?await yC({paymentRoute:t}):o,s=await vC({paymentRoute:t}),u=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Sj.solana.ammProgram)),c=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]).decode(u.data),l=[{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Sj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},u.keys[2],u.keys[4],u.keys[6],u.keys[7],u.keys[8],u.keys[9],u.keys[10],{pubkey:s,isSigner:!1,isWritable:!0},{pubkey:new Xs(o),isSigner:!1,isWritable:!0},{pubkey:new Xs(a),isSigner:!1,isWritable:!0}],h=nf.alloc(Sj.solana.api.routeOrcaSwap.layout.span);return Sj.solana.api.routeOrcaSwap.layout.encode({anchorDiscriminator:Sj.solana.api.routeOrcaSwap.anchorDiscriminator,nonce:e,amountIn:c.amount,sqrtPriceLimit:c.sqrtPriceLimit,amountSpecifiedIsInput:c.amountSpecifiedIsInput,aToB:c.aToB,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},h),new gu({keys:l,programId:new Xs(Sj.solana.address),data:h})})({paymentRoute:t,nonce:r,wSolSenderAccountKeypair:e,deadline:i});case"routeOrcaSwapSolOut":return await(async({paymentRoute:t,nonce:e,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=await dC({paymentRoute:t}),o=n.publicKey,a=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Sj.solana.ammProgram)),s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),yf("sqrtPriceLimit"),af("amountSpecifiedIsInput"),af("aToB")]).decode(a.data),u=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Sj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:new Xs(i),isSigner:!1,isWritable:!0},a.keys[2],a.keys[4],a.keys[6],a.keys[7],a.keys[8],a.keys[9],a.keys[10],{pubkey:o,isSigner:!1,isWritable:!0},{pubkey:await gC(),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.fee?t.fee.receiver:t.toAddress),isSigner:!1,isWritable:!0}],c=nf.alloc(Sj.solana.api.routeOrcaSwapSolOut.layout.span);return Sj.solana.api.routeOrcaSwapSolOut.layout.encode({anchorDiscriminator:Sj.solana.api.routeOrcaSwapSolOut.anchorDiscriminator,nonce:e,amountIn:s.amount,sqrtPriceLimit:s.sqrtPriceLimit,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToB:s.aToB,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},c),new gu({keys:u,programId:new Xs(Sj.solana.address),data:c})})({paymentRoute:t,nonce:r,wSolEscrowAccountKeypair:n,deadline:i});case"routeOrcaTwoHopSwap":return await(async({paymentRoute:t,nonce:e,wSolSenderAccountKeypair:n,deadline:r})=>{const i=new Xs(await fC({paymentRoute:t})),o=t.fee?new Xs(await yC({paymentRoute:t})):i,a=await vC({paymentRoute:t}),s=new Xs(await aC({paymentRoute:t})),u=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Sj.solana.ammProgram)),c=n?n.publicKey:new Xs(await dC({paymentRoute:t})),l=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]).decode(u.data),h=[{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Sj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},u.keys[2],u.keys[3],{pubkey:c,isSigner:!1,isWritable:!0},u.keys[5],u.keys[7],{pubkey:s,isSigner:!1,isWritable:!0},u.keys[9],u.keys[11],u.keys[12],u.keys[13],u.keys[14],u.keys[15],u.keys[16],u.keys[17],u.keys[18],u.keys[19],{pubkey:a,isSigner:!1,isWritable:!0},{pubkey:i,isSigner:!1,isWritable:!0},{pubkey:o,isSigner:!1,isWritable:!0}],d=nf.alloc(Sj.solana.api.routeOrcaTwoHopSwap.layout.span);return Sj.solana.api.routeOrcaTwoHopSwap.layout.encode({anchorDiscriminator:Sj.solana.api.routeOrcaTwoHopSwap.anchorDiscriminator,nonce:e,amountIn:l.amount,amountSpecifiedIsInput:l.amountSpecifiedIsInput,aToBOne:l.aToBOne,aToBTwo:l.aToBTwo,sqrtPriceLimitOne:l.sqrtPriceLimitOne,sqrtPriceLimitTwo:l.sqrtPriceLimitTwo,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},d),new gu({keys:h,programId:new Xs(Sj.solana.address),data:d})})({paymentRoute:t,nonce:r,wSolSenderAccountKeypair:e,deadline:i});case"routeOrcaTwoHopSwapSolOut":return await(async({paymentRoute:t,nonce:e,wSolEscrowAccountKeypair:n,deadline:r})=>{const i=new Xs(await aC({paymentRoute:t})),o=(await t.exchangeRoutes[0].getTransaction({account:t.fromAddress})).instructions.find((t=>t.programId.toString()===Sj.solana.ammProgram)),a=new Xs(await dC({paymentRoute:t})),s=pf([vf("anchorDiscriminator"),vf("amount"),vf("otherAmountThreshold"),af("amountSpecifiedIsInput"),af("aToBOne"),af("aToBTwo"),yf("sqrtPriceLimitOne"),yf("sqrtPriceLimitTwo")]).decode(o.data),u=[{pubkey:Wu.programId,isSigner:!1,isWritable:!1},{pubkey:new Xs(kk.solana.TOKEN_PROGRAM),isSigner:!1,isWritable:!1},{pubkey:new Xs(Sj.solana.ammProgram),isSigner:!1,isWritable:!1},{pubkey:new Xs(t.fromAddress),isSigner:!0,isWritable:!0},{pubkey:await cC({from:t.fromAddress}),isSigner:!1,isWritable:!0},{pubkey:a,isSigner:!1,isWritable:!0},o.keys[2],o.keys[3],o.keys[5],o.keys[7],{pubkey:i,isSigner:!1,isWritable:!0},o.keys[9],o.keys[11],o.keys[12],o.keys[13],o.keys[14],o.keys[15],o.keys[16],o.keys[17],o.keys[18],o.keys[19],{pubkey:n.publicKey,isSigner:!1,isWritable:!0},{pubkey:await gC(),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.toAddress),isSigner:!1,isWritable:!0},{pubkey:new Xs(t.fee?t.fee.receiver:t.toAddress),isSigner:!1,isWritable:!0}],c=nf.alloc(Sj.solana.api.routeOrcaTwoHopSwapSolOut.layout.span);return Sj.solana.api.routeOrcaTwoHopSwapSolOut.layout.encode({anchorDiscriminator:Sj.solana.api.routeOrcaTwoHopSwapSolOut.anchorDiscriminator,nonce:e,amountIn:s.amount,amountSpecifiedIsInput:s.amountSpecifiedIsInput,aToBOne:s.aToBOne,aToBTwo:s.aToBTwo,sqrtPriceLimitOne:s.sqrtPriceLimitOne,sqrtPriceLimitTwo:s.sqrtPriceLimitTwo,paymentAmount:new rf(t.toAmount.toString()),feeAmount:new rf((t.feeAmount||"0").toString()),deadline:new rf(r)},c),new gu({keys:u,programId:new Xs(Sj.solana.address),data:c})})({paymentRoute:t,nonce:r,wSolEscrowAccountKeypair:n,deadline:i})}},IC=async({paymentRoute:t})=>{const e=await lC({from:t.fromAddress}),n=Math.ceil((new Date).getTime()/1e3)+1800,r=(t=>t?t.nonce:new rf("0"))(e),i=await(async({paymentRoute:t})=>{if(t.fromToken.address===Hf.solana.currency.address&&t.toToken.address!==Hf.solana.currency.address)return Zl.generate()})({paymentRoute:t}),o=await(async({paymentRoute:t})=>{if(t.fromToken.address!==Hf.solana.currency.address&&t.toToken.address===Hf.solana.currency.address)return Zl.generate()})({paymentRoute:t});let a=(await Promise.all([hC({from:t.fromAddress}),rC({paymentRoute:t,wSolSenderAccountKeypair:i}),sC({paymentRoute:t}),pC({paymentRoute:t}),mC({paymentRoute:t}),bC({paymentRoute:t}),iC({paymentRoute:t,wSolEscrowAccountKeypair:o}),wC({paymentRoute:t}),AC({paymentRoute:t,wSolSenderAccountKeypair:i,wSolEscrowAccountKeypair:o,nonce:r,deadline:n}),uC({paymentRoute:t,wSolSenderAccountKeypair:i})])).filter(Boolean).flat();const s={blockchain:t.blockchain,instructions:a,signers:[i,o].filter(Boolean),alts:[Sj.solana.alt]};return s.deadline=n,s.nonce=r.toString(),s},NC=[{inputs:[{internalType:"address",name:"_PERMIT2",type:"address"},{internalType:"address",name:"_FORWARDER",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"ExchangeCallFailed",type:"error"},{inputs:[],name:"ExchangeCallMissing",type:"error"},{inputs:[],name:"ExchangeNotApproved",type:"error"},{inputs:[],name:"ForwardingPaymentFailed",type:"error"},{inputs:[],name:"InsufficientBalanceInAfterPayment",type:"error"},{inputs:[],name:"InsufficientBalanceOutAfterPayment",type:"error"},{inputs:[],name:"NativeFeePaymentFailed",type:"error"},{inputs:[],name:"NativePaymentFailed",type:"error"},{inputs:[],name:"PaymentDeadlineReached",type:"error"},{inputs:[],name:"PaymentToZeroAddressNotAllowed",type:"error"},{inputs:[],name:"WrongAmountPaidIn",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Disabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"exchange",type:"address"}],name:"Enabled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"InternalTransfer",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferStarted",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{inputs:[],name:"FORWARDER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"PERMIT2",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"acceptOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"exchange",type:"address"},{internalType:"bool",name:"enabled",type:"bool"}],name:"enable",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"exchanges",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[{components:[{internalType:"uint256",name:"amountIn",type:"uint256"},{internalType:"bool",name:"permit2",type:"bool"},{internalType:"uint256",name:"paymentAmount",type:"uint256"},{internalType:"uint256",name:"feeAmount",type:"uint256"},{internalType:"address",name:"tokenInAddress",type:"address"},{internalType:"address",name:"exchangeAddress",type:"address"},{internalType:"address",name:"tokenOutAddress",type:"address"},{internalType:"address",name:"paymentReceiverAddress",type:"address"},{internalType:"address",name:"feeReceiverAddress",type:"address"},{internalType:"uint8",name:"exchangeType",type:"uint8"},{internalType:"uint8",name:"receiverType",type:"uint8"},{internalType:"bytes",name:"exchangeCallData",type:"bytes"},{internalType:"bytes",name:"receiverCallData",type:"bytes"},{internalType:"uint256",name:"deadline",type:"uint256"}],internalType:"struct IDePayRouterV2.Payment",name:"payment",type:"tuple"},{components:[{components:[{internalType:"address",name:"token",type:"address"},{internalType:"uint160",name:"amount",type:"uint160"},{internalType:"uint48",name:"expiration",type:"uint48"},{internalType:"uint48",name:"nonce",type:"uint48"}],internalType:"struct IPermit2.PermitDetails",name:"details",type:"tuple"},{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"sigDeadline",type:"uint256"}],internalType:"struct IPermit2.PermitSingle",name:"permitSingle",type:"tuple"},{internalType:"bytes",name:"signature",type:"bytes"}],name:"pay",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"payable",type:"function"},{inputs:[],name:"pendingOwner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"token",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"withdraw",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}];var EC={ethereum:{address:"0x6466F27B169C908Ba8174d80aEfa7173CbC3D0c7",api:NC},bsc:{address:"0x7ea09401db4692a8AEF4111b75bD32AE758f552A",api:NC},polygon:{address:"0x50CFAB577623B1359602E11514a9482B061A941e",api:NC},fantom:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:NC},avalanche:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:NC},gnosis:{address:"0xFee05C41195985909DDfc9127Db1f94559c46db3",api:NC},arbitrum:{address:"0xA1cfbeeF344A52e18f748fd6a126f9426A40fbc7",api:NC},optimism:{address:"0x8698E529E9867eEbcC68b4792daC627cd8870736",api:NC},base:{address:"0x8B127D169D232D5F3ebE1C3D06CE343FD7C1AA11",api:NC}},xC={...EC,...Sj},kC="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==r?r:"undefined"!=typeof self?self:{},TC="object"==typeof kC&&kC&&kC.Object===Object&&kC,LC="object"==typeof self&&self&&self.Object===Object&&self,SC=(TC||LC||Function("return this")()).Symbol;SC&&SC.toStringTag,SC&&SC.toStringTag;const jC=t=>{switch(t){case"solana":return 125e-6;case"gnosis":return.009;case"base":return.0095;case"optimism":return.0096;case"polygon":return.011;case"fantom":return.05;case"avalanche":return.1;case"arbitrum":return.11;case"bsc":return.2;case"ethereum":return 10;default:return 100}},CC={arbitrum:{[Hf.arbitrum.wrapped.address]:"0x7E655088214d0657251A51aDccE9109CFd23B5B5"},avalanche:{[Hf.avalanche.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},base:{[Hf.base.wrapped.address]:"0xD1711710843B125a6a01FfDF9b95fDc3064BeF7A"},bsc:{[Hf.bsc.wrapped.address]:"0xeEb80d14abfB058AA78DE38813fe705c3e3b243E"},ethereum:{[Hf.ethereum.wrapped.address]:"0x298f4980525594b3b982779cf74ba76819708D43"},fantom:{[Hf.fantom.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},gnosis:{[Hf.gnosis.wrapped.address]:"0x2d0a6275eaDa0d03226919ce6D93661E589B2d59"},optimism:{[Hf.optimism.wrapped.address]:"0x69594057e2C0224deb1180c7a5Df9ec9d5B611B5"},polygon:{[Hf.polygon.wrapped.address]:"0xaE59C9d3E055BdFAa583E169aA5Ebe395689476a"},solana:{}},DC=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?t.toAddress:t.toToken.address:EC[t.blockchain].address,OC=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?void 0:kk[t.blockchain].DEFAULT:EC[t.blockchain].api,zC=({paymentRoute:t})=>t.directTransfer&&!t.fee?t.toToken.address==Hf[t.blockchain].currency.address?void 0:"transfer":"pay",PC=async({paymentRoute:t})=>{if(t.directTransfer&&!t.fee)return t.toToken.address==Hf[t.blockchain].currency.address?void 0:[t.toAddress,t.toAmount];{const e=Math.ceil(new Date/1e3)+3600,n=t.exchangeRoutes[0],r=(({exchangeRoute:t,blockchain:e})=>void 0===t?0:"uniswap_v3"===t.exchange.name||t.exchange[e].router.address===Hf[e].wrapped.address?2:1)({exchangeRoute:n,blockchain:t.blockchain}),i=n?await n.getTransaction({account:EC[t.blockchain].address,inputTokenPushed:2===r}):void 0,o=i?(({exchangeTransaction:t})=>{const e=new PM(t.to,t.api),n=t.method,r=t.params;let i,o,a;return o=e.interface.fragments.find((t=>!(t.name!=n||t.inputs&&r&&"object"==typeof r&&t.inputs.length!=Object.keys(r).length))),1===o.inputs.length&&"tuple"===o.inputs[0].type?(i=n,a=[r[o.inputs[0].name]]):(i=`${n}(${o.inputs.map((t=>t.type)).join(",")})`,a=o.inputs.map((t=>{if("tuple"===t.type){let e={};return t.components.forEach(((n,i)=>{e[n.name]=r[t.name][i]})),i=n,e}return r[t.name]}))),e.interface.encodeFunctionData(i,a)})({exchangeTransaction:i}):Hf[t.blockchain].zero;let a=Hf[t.blockchain].zero;return n&&(a="bsc"===t.blockchain&&"pancakeswap_v3"===n.exchange.name&&t.toToken.address===Hf[t.blockchain].currency.address?n.exchange[t.blockchain].smartRouter.address:CC[i.blockchain][n.exchange[t.blockchain].router.address]||n.exchange[t.blockchain].router.address),{payment:{amountIn:t.fromAmount,paymentAmount:t.toAmount,feeAmount:t.feeAmount||0,tokenInAddress:t.fromToken.address,exchangeAddress:a,tokenOutAddress:t.toToken.address,paymentReceiverAddress:t.toAddress,feeReceiverAddress:t.fee?t.fee.receiver:Hf[t.blockchain].zero,exchangeType:r,receiverType:0,exchangeCallData:o,receiverCallData:Hf[t.blockchain].zero,deadline:e}}}},_C=({paymentRoute:t})=>t.fromToken.address==Hf[t.blockchain].currency.address?t.directTransfer?t.toAmount.toString():t.fromAmount.toString():Fp.from("0").toString();let BC=["ethereum","bsc","polygon","solana","fantom","arbitrum","avalanche","gnosis","optimism","base"];BC.evm=["ethereum","bsc","polygon","fantom","arbitrum","avalanche","gnosis","optimism","base"],BC.solana=["solana"];const RC=({paymentRoute:t,fee:e})=>{if(BC.evm.includes(t.blockchain))return(async({paymentRoute:t})=>({blockchain:t.blockchain,to:DC({paymentRoute:t}),api:OC({paymentRoute:t}),method:zC({paymentRoute:t}),params:await PC({paymentRoute:t}),value:_C({paymentRoute:t})}))({paymentRoute:t,fee:e});if(BC.solana.includes(t.blockchain))return IC({paymentRoute:t,fee:e});throw"Blockchain not supported!"};function UC(t){let e,n=t[0],r=1;for(;rn.call(e,...t))),e=void 0)}return n}class QC{constructor({blockchain:t,fromAddress:e,fromToken:n,fromAmount:r,fromDecimals:i,fromBalance:o,toToken:a,toAmount:s,toDecimals:u,toAddress:c,fee:l,feeAmount:h,exchangeRoutes:d,approvalRequired:f,approvalTransaction:p,directTransfer:y}){this.blockchain=t,this.fromAddress=e,this.fromToken=n,this.fromAmount=UC([r||s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.fromDecimals=i,this.fromBalance=o,this.toToken=a,this.toAmount=UC([s,"optionalAccess",t=>t.toString,"call",t=>t()]),this.toDecimals=u,this.toAddress=c,this.fee=l,this.feeAmount=h,this.exchangeRoutes=d||[],this.approvalRequired=f,this.approvalTransaction=p,this.directTransfer=y,this.getTransaction=async()=>await RC({paymentRoute:this})}}function YC({assets:t,blacklist:e,accept:n,from:r}){return Promise.resolve(FC({assets:t,blacklist:e})).then((t=>function({assets:t,accept:e,from:n}){return Promise.all(t.map((async t=>{let r=e.filter((e=>e.blockchain==t.blockchain)),i=new kk(t);return Promise.all(r.map((async e=>{if(e.token&&e.amount){let r=e.blockchain,o=t.decimals,a=new kk({blockchain:r,address:e.token}),s=await a.decimals(),u=(await a.BigNumber(e.amount)).toString();return new QC({blockchain:r,fromToken:i,fromDecimals:o,toToken:a,toAmount:u,toDecimals:s,fromBalance:t.balance,fromAddress:n[e.blockchain],toAddress:e.toAddress,fee:e.fee})}if(e.fromToken&&e.fromAmount&&i.address.toLowerCase()==e.fromToken.toLowerCase()){let r=e.blockchain,o=(await i.BigNumber(e.fromAmount)).toString(),a=t.decimals,s=new kk({blockchain:r,address:e.toToken}),u=await s.decimals();return new QC({blockchain:r,fromToken:i,fromDecimals:a,fromAmount:o,toToken:s,toDecimals:u,fromBalance:t.balance,fromAddress:n[e.blockchain],toAddress:e.toAddress,fee:e.fee})}})))}))).then((t=>t.flat().filter((t=>t))))}({assets:t,accept:n,from:r}))).then((t=>ZC({routes:t}))).then(VC).then(HC).then(GC).then((t=>$C({routes:t}))).then(qC).then(eD).then(tD).then((t=>t.map((t=>new QC(t)))))}function WC({accept:t,from:e,whitelist:n,blacklist:r,drip:i}){if(t.some((t=>t&&t.fee&&"string"==typeof t.fee.amount&&t.fee.amount.match(/\.\d\d+\%/))))throw"Only up to 1 decimal is supported for fee amounts!";return new Promise((async(o,a)=>{let s=[],u=[];if(n)for(const t in n)(n[t]||[]).forEach((e=>{u.push(t),s.push({blockchain:t,address:e})}));else t.forEach((t=>{u.push(t.blockchain),s.push({blockchain:t.blockchain,address:t.token||t.toToken})}));[...new Set(u)].forEach((t=>{s.find((e=>e.blockchain===t&&e.address===Hf[t].currency.address))||s.push({blockchain:t,address:Hf[t].currency.address})})),s.sort(((t,e)=>jC(t.blockchain)[t.blockchain,t.address.toLowerCase()].join(""))),f=()=>Math.ceil(new Date),p=f();setTimeout((()=>{l.forEach((t=>y(WC,!1)))}),3e3);const y=(t,e=!0)=>{try{const n={blockchain:t.blockchain,address:t.fromToken.address},r=[n.blockchain,n.address.toLowerCase()].join(""),o=f()-p>3e3;if(h.indexOf(r)>-1)return;if(d.indexOf(r)===c){if(h.push(r),i(t),c+=1,!e)return;l.forEach((e=>y(t,!1)))}else c>=d.length||o?(-1===d.indexOf(r)||c>=d.length||o)&&(h.push(r),i(t)):l.find((t=>t.blockchain===n.blockchain&&t.address.toLowerCase()===n.address.toLowerCase()))||(l.push(n),l.sort(((t,e)=>((t,e,n)=>{if(!t||0===t.length)return 0;let r=t.indexOf([e.blockchain,e.address.toLowerCase()].join("")),i=t.indexOf([n.blockchain,n.address.toLowerCase()].join(""));return-1!==r&&-1===i?-1:-1!==i&&-1===r?1:r{YC({assets:[n],blacklist:r,accept:t,from:e}).then((t=>{UC([t,"optionalAccess",t=>t.length])&&y(t[0])}))}:void 0});let g=await YC({assets:m,blacklist:r,accept:t,from:e})||[];g.assets=m,o(g)}))}let FC=({assets:t,blacklist:e})=>null==e?t:t.filter((t=>null==e[t.blockchain]||!e[t.blockchain].find((e=>e.toLowerCase()==t.address.toLowerCase())))),VC=async t=>await Promise.all(t.map((t=>t.directTransfer?[]:t.toToken&&t.toAmount?Lj.route({blockchain:t.blockchain,tokenIn:t.fromToken.address,tokenOut:t.toToken.address,amountOutMin:t.toAmount,fromAddress:t.fromAddress,toAddress:t.toAddress}):t.fromToken&&t.fromAmount?Lj.route({blockchain:t.blockchain,tokenIn:t.fromToken.address,tokenOut:t.toToken.address,amountIn:t.fromAmount,fromAddress:t.fromAddress,toAddress:t.toAddress}):void 0))).then((e=>t.map(((t,n)=>(t.exchangeRoutes=e[n],t))))),HC=t=>t.filter((t=>0!=t.exchangeRoutes.length||t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase())),GC=async t=>t.filter((t=>t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()?Fp.from(t.fromBalance).gte(Fp.from(t.toAmount)):t.fromAmount&&t.toAmount?Fp.from(t.fromBalance).gte(Fp.from(t.exchangeRoutes[0].amountInMax)):t.exchangeRoutes[0]&&t.exchangeRoutes[0].amountIn?Fp.from(t.fromBalance).gte(Fp.from(t.exchangeRoutes[0].amountIn)):void 0)),qC=t=>Promise.all(t.map((t=>"solana"===t.blockchain?Promise.resolve(Hf.solana.maxInt):t.fromToken.allowance(t.fromAddress,xC[t.blockchain].address).catch((()=>{}))))).then((e=>(t.map(((n,r)=>{void 0===e[r]||n.directTransfer||n.fromToken.address.toLowerCase()==Hf[n.blockchain].currency.address.toLowerCase()||"solana"===n.blockchain?t[r].approvalRequired=!1:(t[r].approvalRequired=Fp.from(n.fromAmount).gte(Fp.from(e[r])),t[r].approvalRequired&&(t[r].approvalTransaction={blockchain:n.blockchain,to:n.fromToken.address,api:kk[n.blockchain].DEFAULT,method:"approve",params:[xC[n.blockchain].address,Hf[n.blockchain].maxInt]}))})),t))),ZC=({routes:t})=>t.map((t=>(BC.evm.includes(t.blockchain)?t.directTransfer=t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()&&null==t.fee:"solana"===t.blockchain&&(t.directTransfer=t.fromToken.address.toLowerCase()==t.toToken.address.toLowerCase()),t))),JC=({paymentRoute:t,exchangeRoute:e})=>{let n,r,i;return e?(e&&e.exchange.wrapper,n=e.amountIn.toString(),r=XC({amount:e.amountOutMin.toString(),paymentRoute:t})):(n=t.fromAmount,r=XC({amount:t.fromAmount,paymentRoute:t})),t.fee&&(i=KC({paymentRoute:t})),{fromAmount:n,toAmount:r,feeAmount:i}},XC=({amount:t,paymentRoute:e})=>{if(e.fee){let n=KC({paymentRoute:e});return Fp.from(t).sub(n).toString()}return t},KC=({paymentRoute:t})=>{if("string"==typeof t.fee.amount&&t.fee.amount.match("%"))return Fp.from(t.toAmount).mul(10*parseFloat(t.fee.amount)).div(1e3).toString();if("string"==typeof t.fee.amount)return t.fee.amount;if("number"==typeof t.fee.amount)return cI(t.fee.amount.toString(),t.toDecimals).toString();throw"Unknown fee amount type!"},$C=({routes:t})=>t.map((t=>{if(BC.evm.includes(t.blockchain))if(t.directTransfer&&!t.fee)t.fromAmount=t.toAmount;else{let{fromAmount:e,toAmount:n,feeAmount:r}=JC({paymentRoute:t,exchangeRoute:t.exchangeRoutes[0]});t.fromAmount=e,t.toAmount=n,t.fee&&(t.feeAmount=r)}else if(BC.solana.includes(t.blockchain)){let{fromAmount:e,toAmount:n,feeAmount:r}=JC({paymentRoute:t,exchangeRoute:t.exchangeRoutes[0]});t.fromAmount=e,t.toAmount=n,t.fee&&(t.feeAmount=r)}return t})),tD=t=>t.filter(((e,n)=>null==t.find(((t,r)=>e.fromToken.address==t.fromToken.address&&(e.fromToken.blockchain==t.fromToken.blockchain&&(!(!t.directTransfer||e.directTransfer)||(!(!Fp.from(t.fromAmount).lt(Fp.from(e.fromAmount))||e.directTransfer)||(t.fromAmount==e.fromAmount&&r{let e=-1;return t.sort(((t,n)=>jC(t.fromToken.blockchain)>>1,i=t[r];if(!(0>>1;ro(u,n))co(l,u)?(t[r]=l,t[c]=n,r=c):(t[r]=u,t[s]=n,r=s);else{if(!(co(l,n)))break t;t[r]=l,t[c]=n,r=c}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],l=[],h=1,d=null,f=3,p=!1,y=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var e=r(l);null!==e;){if(null===e.callback)i(l);else{if(!(e.startTime<=t))break;i(l),e.sortIndex=e.expirationTime,n(c,e)}e=r(l)}}function M(t){if(m=!1,b(t),!y)if(null!==r(c))y=!0,C(A);else{var e=r(l);null!==e&&O(M,e.startTime-t)}}function A(t,n){y=!1,m&&(m=!1,v(x),x=-1),p=!0;var o=f;try{for(b(n),d=r(c);null!==d&&(!(d.expirationTime>n)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(c)&&i(c),b(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var h=r(l);null!==h&&O(M,h.startTime-n),u=!1}return u}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var I,N=!1,E=null,x=-1,k=5,T=-1;function L(){return!(e.unstable_now()-Tt||125a?(t.sortIndex=o,n(l,t),null===r(c)&&t===r(l)&&(m?(v(x),x=-1):m=!0,O(M,o-a))):(t.sortIndex=s,n(c,t),y||p||(y=!0,C(A))),t},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}})); + */var rD=function(t){return tk.createElement("svg",{className:["ChevronLeft","Icon",t.className].filter(Boolean).join(" "),xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16"},tk.createElement("path",{strokeWidth:"1",fillRule:"evenodd",d:"M10.4,1.6c0.2,0.2,0.2,0.5,0,0.7L4.7,8l5.6,5.6c0.2,0.2,0.2,0.5,0,0.7s-0.5,0.2-0.7,0l-6-6l0,0,c-0.2-0.2-0.2-0.5,0-0.7l6-6l0,0C9.8,1.5,10.2,1.5,10.4,1.6L10.4,1.6z"}))},iD=function(){return tk.createElement("svg",{className:"CloseIcon Icon",xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},tk.createElement("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),tk.createElement("line",{x1:"6",y1:"6",x2:"18",y2:"18"}))},oD=Zf((function(t,e){function n(t,e){var n=t.length;t.push(e);t:for(;0>>1,i=t[r];if(!(0>>1;ro(u,n))co(l,u)?(t[r]=l,t[c]=n,r=c):(t[r]=u,t[s]=n,r=s);else{if(!(co(l,n)))break t;t[r]=l,t[c]=n,r=c}}}return e}function o(t,e){var n=t.sortIndex-e.sortIndex;return 0!==n?n:t.id-e.id}if("object"==typeof performance&&"function"==typeof performance.now){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,u=s.now();e.unstable_now=function(){return s.now()-u}}var c=[],l=[],h=1,d=null,f=3,p=!1,y=!1,m=!1,g="function"==typeof setTimeout?setTimeout:null,v="function"==typeof clearTimeout?clearTimeout:null,w="undefined"!=typeof setImmediate?setImmediate:null;function b(t){for(var e=r(l);null!==e;){if(null===e.callback)i(l);else{if(!(e.startTime<=t))break;i(l),e.sortIndex=e.expirationTime,n(c,e)}e=r(l)}}function M(t){if(m=!1,b(t),!y)if(null!==r(c))y=!0,D(A);else{var e=r(l);null!==e&&O(M,e.startTime-t)}}function A(t,n){y=!1,m&&(m=!1,v(x),x=-1),p=!0;var o=f;try{for(b(n),d=r(c);null!==d&&(!(d.expirationTime>n)||t&&!L());){var a=d.callback;if("function"==typeof a){d.callback=null,f=d.priorityLevel;var s=a(d.expirationTime<=n);n=e.unstable_now(),"function"==typeof s?d.callback=s:d===r(c)&&i(c),b(n)}else i(c);d=r(c)}if(null!==d)var u=!0;else{var h=r(l);null!==h&&O(M,h.startTime-n),u=!1}return u}finally{d=null,f=o,p=!1}}"undefined"!=typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);var I,N=!1,E=null,x=-1,k=5,T=-1;function L(){return!(e.unstable_now()-Tt||125a?(t.sortIndex=o,n(l,t),null===r(c)&&t===r(l)&&(m?(v(x),x=-1):m=!0,O(M,o-a))):(t.sortIndex=s,n(c,t),y||p||(y=!0,D(A))),t},e.unstable_shouldYield=L,e.unstable_wrapCallback=function(t){var e=f;return function(){var n=f;f=e;try{return t.apply(this,arguments)}finally{f=n}}}})); /** * @license React * scheduler.development.js @@ -105,7 +105,7 @@ Zf((function(t,e){}));var $x=Zf((function(t){t.exports=Kx})),tk=$x.createContext * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ -Zf((function(t,e){}));var oC=Zf((function(t){t.exports=iC})); +Zf((function(t,e){}));var aD=Zf((function(t){t.exports=oD})); /** * @license React * react-dom.production.min.js @@ -114,7 +114,7 @@ Zf((function(t,e){}));var oC=Zf((function(t){t.exports=iC})); * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function aC(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n