text: (this.webpackJsonpcreap=this.webpackJsonpcreap||[]).push([[2],[function(e,t,r){"use strict";var n=r(1);r.d(t,"k",(function(){return u})),r.d(t,"j",(function(){return s})),r.d(t,"a",(function(){return l})),r.d(t,"b",(function(){return c})),r.d(t,"o",(function(){return f})),r.d(t,"p",(function(){return h})),r.d(t,"l",(function(){return d})),r.d(t,"i",(function(){return p})),r.d(t,"d",(function(){return v})),r.d(t,"e",(function(){return m})),r.d(t,"c",(function(){return g})),r.d(t,"g",(function(){return b})),r.d(t,"f",(function(){return y})),r.d(t,"h",(function(){return k})),r.d(t,"n",(function(){return w})),r.d(t,"m",(function(){return T}));var o=new n.b("bytes/5.4.0");function i(e){return!!e.toHexString}function a(e){return e.slice||(e.slice=function(){var t=Array.prototype.slice.call(arguments);return a(new Uint8Array(Array.prototype.slice.apply(e,t)))}),e}function u(e){return d(e)&&!(e.length%2)||s(e)}function s(e){if(null==e)return!1;if(e.constructor===Uint8Array)return!0;if("string"===typeof e)return!1;if(null==e.length)return!1;for(var t=0;t<e.length;t++){var r=e[t];if("number"!==typeof r||r<0||r>=256||r%1)return!1}return!0}function l(e,t){if(t||(t={}),"number"===typeof e){o.checkSafeUint53(e,"invalid arrayify value");for(var r=[];e;)r.unshift(255&e),e=parseInt(String(e/256));return 0===r.length&&r.push(0),a(new Uint8Array(r))}if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e)&&(e=e.toHexString()),d(e)){var n=e.substring(2);n.length%2&&("left"===t.hexPad?n="0x0"+n.substring(2):"right"===t.hexPad?n+="0":o.throwArgumentError("hex data is odd-length","value",e));for(var u=[],l=0;l<n.length;l+=2)u.push(parseInt(n.substring(l,l+2),16));return a(new Uint8Array(u))}return s(e)?a(new Uint8Array(e)):o.throwArgumentError("invalid arrayify value","value",e)}function c(e){var t=e.map((function(e){return l(e)})),r=t.reduce((function(e,t){return e+t.length}),0),n=new Uint8Array(r);return t.reduce((function(e,t){return n.set(t,e),e+t.length}),0),a(n)}function f(e){var t=l(e);if(0===t.length)return t;for(var r=0;r<t.length&&0===t[r];)r++;return r&&(t=t.slice(r)),t}function h(e,t){(e=l(e)).length>t&&o.throwArgumentError("value out of range","value",arguments[0]);var r=new Uint8Array(t);return r.set(e,t-e.length),a(r)}function d(e,t){return!("string"!==typeof e||!e.match(/^0x[0-9A-Fa-f]*$/))&&(!t||e.length===2+2*t)}function p(e,t){if(t||(t={}),"number"===typeof e){o.checkSafeUint53(e,"invalid hexlify value");for(var r="";e;)r="0123456789abcdef"[15&e]+r,e=Math.floor(e/16);return r.length?(r.length%2&&(r="0"+r),"0x"+r):"0x00"}if("bigint"===typeof e)return(e=e.toString(16)).length%2?"0x0"+e:"0x"+e;if(t.allowMissingPrefix&&"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),i(e))return e.toHexString();if(d(e))return e.length%2&&("left"===t.hexPad?e="0x0"+e.substring(2):"right"===t.hexPad?e+="0":o.throwArgumentError("hex data is odd-length","value",e)),e.toLowerCase();if(s(e)){for(var n="0x",a=0;a<e.length;a++){var u=e[a];n+="0123456789abcdef"[(240&u)>>4]+"0123456789abcdef"[15&u]}return n}return o.throwArgumentError("invalid hexlify value","value",e)}function v(e){if("string"!==typeof e)e=p(e);else if(!d(e)||e.length%2)return null;return(e.length-2)/2}function m(e,t,r){return"string"!==typeof e?e=p(e):(!d(e)||e.length%2)&&o.throwArgumentError("invalid hexData","value",e),t=2+2*t,null!=r?"0x"+e.substring(t,2+2*r):"0x"+e.substring(t)}function g(e){var t="0x";return e.forEach((function(e){t+=p(e).substring(2)})),t}function b(e){var t=y(p(e,{hexPad:"left"}));return"0x"===t?"0x0":t}function y(e){"string"!==typeof e&&(e=p(e)),d(e)||o.throwArgumentError("invalid hex string","value",e),e=e.substring(2);for(var t=0;t<e.length&&"0"===e[t];)t++;return"0x"+e.substring(t)}function k(e,t){for("string"!==typeof e?e=p(e):d(e)||o.throwArgumentError("invalid hex string","value",e),e.length>2*t+2&&o.throwArgumentError("value out of range","value",arguments[1]);e.length<2*t+2;)e="0x0"+e.substring(2);return e}function w(e){var t={r:"0x",s:"0x",_vs:"0x",recoveryParam:0,v:0};if(u(e)){var r=l(e);65!==r.length&&o.throwArgumentError("invalid signature string; must be 65 bytes","signature",e),t.r=p(r.slice(0,32)),t.s=p(r.slice(32,64)),t.v=r[64],t.v<27&&(0===t.v||1===t.v?t.v+=27:o.throwArgumentError("signature invalid v byte","signature",e)),t.recoveryParam=1-t.v%2,t.recoveryParam&&(r[32]|=128),t._vs=p(r.slice(32,64))}else{if(t.r=e.r,t.s=e.s,t.v=e.v,t.recoveryParam=e.recoveryParam,t._vs=e._vs,null!=t._vs){var n=h(l(t._vs),32);t._vs=p(n);var i=n[0]>=128?1:0;null==t.recoveryParam?t.recoveryParam=i:t.recoveryParam!==i&&o.throwArgumentError("signature recoveryParam mismatch _vs","signature",e),n[0]&=127;var a=p(n);null==t.s?t.s=a:t.s!==a&&o.throwArgumentError("signature v mismatch _vs","signature",e)}null==t.recoveryParam?null==t.v?o.throwArgumentError("signature missing v and recoveryParam","signature",e):0===t.v||1===t.v?t.recoveryParam=t.v:t.recoveryParam=1-t.v%2:null==t.v?t.v=27+t.recoveryParam:t.recoveryParam!==1-t.v%2&&o.throwArgumentError("signature recoveryParam mismatch v","signature",e),null!=t.r&&d(t.r)?t.r=k(t.r,32):o.throwArgumentError("signature missing or invalid r","signature",e),null!=t.s&&d(t.s)?t.s=k(t.s,32):o.throwArgumentError("signature missing or invalid s","signature",e);var s=l(t.s);s[0]>=128&&o.throwArgumentError("signature s out of range","signature",e),t.recoveryParam&&(s[0]|=128);var c=p(s);t._vs&&(d(t._vs)||o.throwArgumentError("signature invalid _vs","signature",e),t._vs=k(t._vs,32)),null==t._vs?t._vs=c:t._vs!==c&&o.throwArgumentError("signature _vs mismatch v and s","signature",e)}return t}function T(e){return p(c([(e=w(e)).r,e.s,e.recoveryParam?"0x1c":"0x1b"]))}},function(e,t,r){"use strict";var n=r(3),o=r(4);r.d(t,"a",(function(){return f})),r.d(t,"b",(function(){return p}));var i=!1,a=!1,u={debug:1,default:2,info:2,warning:3,error:4,off:5},s=u.default,l=null;var c,f,h=function(){try{var e=[];if(["NFD","NFC","NFKD","NFKC"].forEach((function(t){try{if("test"!=="test".normalize(t))throw new Error("bad normalize")}catch(r){e.push(t)}})),e.length)throw new Error("missing "+e.join(", "));if(String.fromCharCode(233).normalize("NFD")!==String.fromCharCode(101,769))throw new Error("broken implementation")}catch(t){return t.message}return null}();!function(e){e.DEBUG="DEBUG",e.INFO="INFO",e.WARNING="WARNING",e.ERROR="ERROR",e.OFF="OFF"}(c||(c={})),function(e){e.UNKNOWN_ERROR="UNKNOWN_ERROR",e.NOT_IMPLEMENTED="NOT_IMPLEMENTED",e.UNSUPPORTED_OPERATION="UNSUPPORTED_OPERATION",e.NETWORK_ERROR="NETWORK_ERROR",e.SERVER_ERROR="SERVER_ERROR",e.TIMEOUT="TIMEOUT",e.BUFFER_OVERRUN="BUFFER_OVERRUN",e.NUMERIC_FAULT="NUMERIC_FAULT",e.MISSING_NEW="MISSING_NEW",e.INVALID_ARGUMENT="INVALID_ARGUMENT",e.MISSING_ARGUMENT="MISSING_ARGUMENT",e.UNEXPECTED_ARGUMENT="UNEXPECTED_ARGUMENT",e.CALL_EXCEPTION="CALL_EXCEPTION",e.INSUFFICIENT_FUNDS="INSUFFICIENT_FUNDS",e.NONCE_EXPIRED="NONCE_EXPIRED",e.REPLACEMENT_UNDERPRICED="REPLACEMENT_UNDERPRICED",e.UNPREDICTABLE_GAS_LIMIT="UNPREDICTABLE_GAS_LIMIT",e.TRANSACTION_REPLACED="TRANSACTION_REPLACED"}(f||(f={}));var d="0123456789abcdef",p=function(){function e(t){Object(n.a)(this,e),Object.defineProperty(this,"version",{enumerable:!0,value:t,writable:!1})}return Object(o.a)(e,[{key:"_log",value:function(e,t){var r=e.toLowerCase();null==u[r]&&this.throwArgumentError("invalid log level name","logLevel",e),s>u[r]||console.log.apply(console,t)}},{key:"debug",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.DEBUG,r)}},{key:"info",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.INFO,r)}},{key:"warn",value:function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];this._log(e.levels.WARNING,r)}},{key:"makeError",value:function(t,r,n){if(a)return this.makeError("censored error",r,{});r||(r=e.errors.UNKNOWN_ERROR),n||(n={});var o=[];Object.keys(n).forEach((function(e){var t=n[e];try{if(t instanceof Uint8Array){for(var r="",i=0;i<t.length;i++)r+=d[t[i]>>4],r+=d[15&t[i]];o.push(e+"=Uint8Array(0x"+r+")")}else o.push(e+"="+JSON.stringify(t))}catch(u){o.push(e+"="+JSON.stringify(n[e].toString()))}})),o.push("code=".concat(r)),o.push("version=".concat(this.version));var i=t;o.length&&(t+=" ("+o.join(", ")+")");var u=new Error(t);return u.reason=i,u.code=r,Object.keys(n).forEach((function(e){u[e]=n[e]})),u}},{key:"throwError",value:function(e,t,r){throw this.makeError(e,t,r)}},{key:"throwArgumentError",value:function(t,r,n){return this.throwError(t,e.errors.INVALID_ARGUMENT,{argument:r,value:n})}},{key:"assert",value:function(e,t,r,n){e||this.throwError(t,r,n)}},{key:"assertArgument",value:function(e,t,r,n){e||this.throwArgumentError(t,r,n)}},{key:"checkNormalize",value:function(t){null==t&&(t="platform missing String.prototype.normalize"),h&&this.throwError("platform missing String.prototype.normalize",e.errors.UNSUPPORTED_OPERATION,{operation:"String.prototype.normalize",form:h})}},{key:"checkSafeUint53",value:function(t,r){"number"===typeof t&&(null==r&&(r="value not safe"),(t<0||t>=9007199254740991)&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"out-of-safe-range",value:t}),t%1&&this.throwError(r,e.errors.NUMERIC_FAULT,{operation:"checkSafeInteger",fault:"non-integer",value:t}))}},{key:"checkArgumentCount",value:function(t,r,n){n=n?": "+n:"",t<r&&this.throwError("missing argument"+n,e.errors.MISSING_ARGUMENT,{count:t,expectedCount:r}),t>r&&this.throwError("too many arguments"+n,e.errors.UNEXPECTED_ARGUMENT,{count:t,expectedCount:r})}},{key:"checkNew",value:function(t,r){t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}},{key:"checkAbstract",value:function(t,r){t===r?this.throwError("cannot instantiate abstract class "+JSON.stringify(r.name)+" directly; use a sub-class",e.errors.UNSUPPORTED_OPERATION,{name:t.name,operation:"new"}):t!==Object&&null!=t||this.throwError("missing new",e.errors.MISSING_NEW,{name:r.name})}}],[{key:"globalLogger",value:function(){return l||(l=new e("logger/5.4.1")),l}},{key:"setCensorship",value:function(t,r){if(!t&&r&&this.globalLogger().throwError("cannot permanently disable censorship",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"}),i){if(!t)return;this.globalLogger().throwError("error censorship permanent",e.errors.UNSUPPORTED_OPERATION,{operation:"setCensorship"})}a=!!t,i=!!r}},{key:"setLogLevel",value:function(t){var r=u[t.toLowerCase()];null!=r?s=r:e.globalLogger().warn("invalid log level - "+t)}},{key:"from",value:function(t){return new e(t)}}]),e}();p.errors=f,p.levels=c},function(e,t,r){e.exports=r(45)},function(e,t,r){"use strict";function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function o(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}r.d(t,"a",(function(){return o}))},function(e,t,r){(function(e){!function(e,t){"use strict";function n(e,t){if(!e)throw new Error(t||"Assertion failed")}function o(e,t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}function i(e,t,r){if(i.isBN(e))return e;this.negative=0,this.words=null,this.length=0,this.red=null,null!==e&&("le"!==t&&"be"!==t||(r=t,t=10),this._init(e||0,t||10,r||"be"))}var a;"object"===typeof e?e.exports=i:t.BN=i,i.BN=i,i.wordSize=26;try{a="undefined"!==typeof window&&"undefined"!==typeof window.Buffer?window.Buffer:r(51).Buffer}catch(A){}function u(e,t){var r=e.charCodeAt(t);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function s(e,t,r){var n=u(e,r);return r-1>=t&&(n|=u(e,r-1)<<4),n}function l(e,t,r,n){for(var o=0,i=Math.min(e.length,r),a=t;a<i;a++){var u=e.charCodeAt(a)-48;o*=n,o+=u>=49?u-49+10:u>=17?u-17+10:u}return o}i.isBN=function(e){return e instanceof i||null!==e&&"object"===typeof e&&e.constructor.wordSize===i.wordSize&&Array.isArray(e.words)},i.max=function(e,t){return e.cmp(t)>0?e:t},i.min=function(e,t){return e.cmp(t)<0?e:t},i.prototype._init=function(e,t,r){if("number"===typeof e)return this._initNumber(e,t,r);if("object"===typeof e)return this._initArray(e,t,r);"hex"===t&&(t=16),n(t===(0|t)&&t>=2&&t<=36);var o=0;"-"===(e=e.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o<e.length&&(16===t?this._parseHex(e,o,r):(this._parseBase(e,t,o),"le"===r&&this._initArray(this.toArray(),t,r)))},i.prototype._initNumber=function(e,t,r){e<0&&(this.negative=1,e=-e),e<67108864?(this.words=[67108863&e],this.length=1):e<4503599627370496?(this.words=[67108863&e,e/67108864&67108863],this.length=2):(n(e<9007199254740992),this.words=[67108863&e,e/67108864&67108863,1],this.length=3),"le"===r&&this._initArray(this.toArray(),t,r)},i.prototype._initArray=function(e,t,r){if(n("number"===typeof e.length),e.length<=0)return this.words=[0],this.length=1,this;this.length=Math.ceil(e.length/3),this.words=new Array(this.length);for(var o=0;o<this.length;o++)this.words[o]=0;var i,a,u=0;if("be"===r)for(o=e.length-1,i=0;o>=0;o-=3)a=e[o]|e[o-1]<<8|e[o-2]<<16,this.words[i]|=a<<u&67108863,this.words[i+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);else if("le"===r)for(o=0,i=0;o<e.length;o+=3)a=e[o]|e[o+1]<<8|e[o+2]<<16,this.words[i]|=a<<u&67108863,this.words[i+1]=a>>>26-u&67108863,(u+=24)>=26&&(u-=26,i++);return this.strip()},i.prototype._parseHex=function(e,t,r){this.length=Math.ceil((e.length-t)/6),this.words=new Array(this.length);for(var n=0;n<this.length;n++)this.words[n]=0;var o,i=0,a=0;if("be"===r)for(n=e.length-1;n>=t;n-=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;else for(n=(e.length-t)%2===0?t+1:t;n<e.length;n+=2)o=s(e,t,n)<<i,this.words[a]|=67108863&o,i>=18?(i-=18,a+=1,this.words[a]|=o>>>26):i+=8;this.strip()},i.prototype._parseBase=function(e,t,r){this.words=[0],this.length=1;for(var n=0,o=1;o<=67108863;o*=t)n++;n--,o=o/t|0;for(var i=e.length-r,a=i%n,u=Math.min(i,i-a)+r,s=0,c=r;c<u;c+=n)s=l(e,c,c+n,t),this.imuln(o),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s);if(0!==a){var f=1;for(s=l(e,c,e.length,t),c=0;c<a;c++)f*=t;this.imuln(f),this.words[0]+s<67108864?this.words[0]+=s:this._iaddn(s)}this.strip()},i.prototype.copy=function(e){e.words=new Array(this.length);for(var t=0;t<this.length;t++)e.words[t]=this.words[t];e.length=this.length,e.negative=this.negative,e.red=this.red},i.prototype.clone=function(){var e=new i(null);return this.copy(e),e},i.prototype._expand=function(e){for(;this.length<e;)this.words[this.length++]=0;return this},i.prototype.strip=function(){for(;this.length>1&&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},i.prototype.inspect=function(){return(this.red?"<BN-R: ":"<BN: ")+this.toString(16)+">"};var c=["","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],h=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function d(e,t,r){r.negative=t.negative^e.negative;var n=e.length+t.length|0;r.length=n,n=n-1|0;var o=0|e.words[0],i=0|t.words[0],a=o*i,u=67108863&a,s=a/67108864|0;r.words[0]=u;for(var l=1;l<n;l++){for(var c=s>>>26,f=67108863&s,h=Math.min(l,t.length-1),d=Math.max(0,l-e.length+1);d<=h;d++){var p=l-d|0;c+=(a=(o=0|e.words[p])*(i=0|t.words[d])+f)/67108864|0,f=67108863&a}r.words[l]=0|f,s=0|c}return 0!==s?r.words[l]=0|s:r.length--,r.strip()}i.prototype.toString=function(e,t){var r;if(t=0|t||1,16===(e=e||10)||"hex"===e){r="";for(var o=0,i=0,a=0;a<this.length;a++){var u=this.words[a],s=(16777215&(u<<o|i)).toString(16);r=0!==(i=u>>>24-o&16777215)||a!==this.length-1?c[6-s.length]+s+r:s+r,(o+=2)>=26&&(o-=26,a--)}for(0!==i&&(r=i.toString(16)+r);r.length%t!==0;)r="0"+r;return 0!==this.negative&&(r="-"+r),r}if(e===(0|e)&&e>=2&&e<=36){var l=f[e],d=h[e];r="";var p=this.clone();for(p.negative=0;!p.isZero();){var v=p.modn(d).toString(e);r=(p=p.idivn(d)).isZero()?v+r:c[l-v.length]+v+r}for(this.isZero()&&(r="0"+r);r.length%t!==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 e=this.words[0];return 2===this.length?e+=67108864*this.words[1]:3===this.length&&1===this.words[2]?e+=4503599627370496+67108864*this.words[1]:this.length>2&&n(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-e:e},i.prototype.toJSON=function(){return this.toString(16)},i.prototype.toBuffer=function(e,t){return n("undefined"!==typeof a),this.toArrayLike(a,e,t)},i.prototype.toArray=function(e,t){return this.toArrayLike(Array,e,t)},i.prototype.toArrayLike=function(e,t,r){var o=this.byteLength(),i=r||Math.max(1,o);n(o<=i,"byte array longer than desired length"),n(i>0,"Requested array length <= 0"),this.strip();var a,u,s="le"===t,l=new e(i),c=this.clone();if(s){for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),l[u]=a;for(;u<i;u++)l[u]=0}else{for(u=0;u<i-o;u++)l[u]=0;for(u=0;!c.isZero();u++)a=c.andln(255),c.iushrn(8),l[i-u-1]=a}return l},Math.clz32?i.prototype._countBits=function(e){return 32-Math.clz32(e)}:i.prototype._countBits=function(e){var t=e,r=0;return t>=4096&&(r+=13,t>>>=13),t>=64&&(r+=7,t>>>=7),t>=8&&(r+=4,t>>>=4),t>=2&&(r+=2,t>>>=2),r+t},i.prototype._zeroBits=function(e){if(0===e)return 26;var t=e,r=0;return 0===(8191&t)&&(r+=13,t>>>=13),0===(127&t)&&(r+=7,t>>>=7),0===(15&t)&&(r+=4,t>>>=4),0===(3&t)&&(r+=2,t>>>=2),0===(1&t)&&r++,r},i.prototype.bitLength=function(){var e=this.words[this.length-1],t=this._countBits(e);return 26*(this.length-1)+t},i.prototype.zeroBits=function(){if(this.isZero())return 0;for(var e=0,t=0;t<this.length;t++){var r=this._zeroBits(this.words[t]);if(e+=r,26!==r)break}return e},i.prototype.byteLength=function(){return Math.ceil(this.bitLength()/8)},i.prototype.toTwos=function(e){return 0!==this.negative?this.abs().inotn(e).iaddn(1):this.clone()},i.prototype.fromTwos=function(e){return this.testn(e-1)?this.notn(e).iaddn(1).ineg():this.clone()},i.prototype.isNeg=function(){return 0!==this.negative},i.prototype.neg=function(){return this.clone().ineg()},i.prototype.ineg=function(){return this.isZero()||(this.negative^=1),this},i.prototype.iuor=function(e){for(;this.length<e.length;)this.words[this.length++]=0;for(var t=0;t<e.length;t++)this.words[t]=this.words[t]|e.words[t];return this.strip()},i.prototype.ior=function(e){return n(0===(this.negative|e.negative)),this.iuor(e)},i.prototype.or=function(e){return this.length>e.length?this.clone().ior(e):e.clone().ior(this)},i.prototype.uor=function(e){return this.length>e.length?this.clone().iuor(e):e.clone().iuor(this)},i.prototype.iuand=function(e){var t;t=this.length>e.length?e:this;for(var r=0;r<t.length;r++)this.words[r]=this.words[r]&e.words[r];return this.length=t.length,this.strip()},i.prototype.iand=function(e){return n(0===(this.negative|e.negative)),this.iuand(e)},i.prototype.and=function(e){return this.length>e.length?this.clone().iand(e):e.clone().iand(this)},i.prototype.uand=function(e){return this.length>e.length?this.clone().iuand(e):e.clone().iuand(this)},i.prototype.iuxor=function(e){var t,r;this.length>e.length?(t=this,r=e):(t=e,r=this);for(var n=0;n<r.length;n++)this.words[n]=t.words[n]^r.words[n];if(this!==t)for(;n<t.length;n++)this.words[n]=t.words[n];return this.length=t.length,this.strip()},i.prototype.ixor=function(e){return n(0===(this.negative|e.negative)),this.iuxor(e)},i.prototype.xor=function(e){return this.length>e.length?this.clone().ixor(e):e.clone().ixor(this)},i.prototype.uxor=function(e){return this.length>e.length?this.clone().iuxor(e):e.clone().iuxor(this)},i.prototype.inotn=function(e){n("number"===typeof e&&e>=0);var t=0|Math.ceil(e/26),r=e%26;this._expand(t),r>0&&t--;for(var o=0;o<t;o++)this.words[o]=67108863&~this.words[o];return r>0&&(this.words[o]=~this.words[o]&67108863>>26-r),this.strip()},i.prototype.notn=function(e){return this.clone().inotn(e)},i.prototype.setn=function(e,t){n("number"===typeof e&&e>=0);var r=e/26|0,o=e%26;return this._expand(r+1),this.words[r]=t?this.words[r]|1<<o:this.words[r]&~(1<<o),this.strip()},i.prototype.iadd=function(e){var t,r,n;if(0!==this.negative&&0===e.negative)return this.negative=0,t=this.isub(e),this.negative^=1,this._normSign();if(0===this.negative&&0!==e.negative)return e.negative=0,t=this.isub(e),e.negative=1,t._normSign();this.length>e.length?(r=this,n=e):(r=e,n=this);for(var o=0,i=0;i<n.length;i++)t=(0|r.words[i])+(0|n.words[i])+o,this.words[i]=67108863&t,o=t>>>26;for(;0!==o&&i<r.length;i++)t=(0|r.words[i])+o,this.words[i]=67108863&t,o=t>>>26;if(this.length=r.length,0!==o)this.words[this.length]=o,this.length++;else if(r!==this)for(;i<r.length;i++)this.words[i]=r.words[i];return this},i.prototype.add=function(e){var t;return 0!==e.negative&&0===this.negative?(e.negative=0,t=this.sub(e),e.negative^=1,t):0===e.negative&&0!==this.negative?(this.negative=0,t=e.sub(this),this.negative=1,t):this.length>e.length?this.clone().iadd(e):e.clone().iadd(this)},i.prototype.isub=function(e){if(0!==e.negative){e.negative=0;var t=this.iadd(e);return e.negative=1,t._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(e),this.negative=1,this._normSign();var r,n,o=this.cmp(e);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(r=this,n=e):(r=e,n=this);for(var i=0,a=0;a<n.length;a++)i=(t=(0|r.words[a])-(0|n.words[a])+i)>>26,this.words[a]=67108863&t;for(;0!==i&&a<r.length;a++)i=(t=(0|r.words[a])+i)>>26,this.words[a]=67108863&t;if(0===i&&a<r.length&&r!==this)for(;a<r.length;a++)this.words[a]=r.words[a];return this.length=Math.max(this.length,a),r!==this&&(this.negative=1),this.strip()},i.prototype.sub=function(e){return this.clone().isub(e)};var p=function(e,t,r){var n,o,i,a=e.words,u=t.words,s=r.words,l=0,c=0|a[0],f=8191&c,h=c>>>13,d=0|a[1],p=8191&d,v=d>>>13,m=0|a[2],g=8191&m,b=m>>>13,y=0|a[3],k=8191&y,w=y>>>13,T=0|a[4],E=8191&T,S=T>>>13,A=0|a[5],M=8191&A,P=A>>>13,C=0|a[6],O=8191&C,x=C>>>13,F=0|a[7],L=8191&F,B=F>>>13,N=0|a[8],R=8191&N,J=N>>>13,_=0|a[9],D=8191&_,I=_>>>13,j=0|u[0],X=8191&j,U=j>>>13,H=0|u[1],G=8191&H,z=H>>>13,V=0|u[2],Z=8191&V,K=V>>>13,Q=0|u[3],q=8191&Q,W=Q>>>13,Y=0|u[4],$=8191&Y,ee=Y>>>13,te=0|u[5],re=8191&te,ne=te>>>13,oe=0|u[6],ie=8191&oe,ae=oe>>>13,ue=0|u[7],se=8191&ue,le=ue>>>13,ce=0|u[8],fe=8191&ce,he=ce>>>13,de=0|u[9],pe=8191&de,ve=de>>>13;r.negative=e.negative^t.negative,r.length=19;var me=(l+(n=Math.imul(f,X))|0)+((8191&(o=(o=Math.imul(f,U))+Math.imul(h,X)|0))<<13)|0;l=((i=Math.imul(h,U))+(o>>>13)|0)+(me>>>26)|0,me&=67108863,n=Math.imul(p,X),o=(o=Math.imul(p,U))+Math.imul(v,X)|0,i=Math.imul(v,U);var ge=(l+(n=n+Math.imul(f,G)|0)|0)+((8191&(o=(o=o+Math.imul(f,z)|0)+Math.imul(h,G)|0))<<13)|0;l=((i=i+Math.imul(h,z)|0)+(o>>>13)|0)+(ge>>>26)|0,ge&=67108863,n=Math.imul(g,X),o=(o=Math.imul(g,U))+Math.imul(b,X)|0,i=Math.imul(b,U),n=n+Math.imul(p,G)|0,o=(o=o+Math.imul(p,z)|0)+Math.imul(v,G)|0,i=i+Math.imul(v,z)|0;var be=(l+(n=n+Math.imul(f,Z)|0)|0)+((8191&(o=(o=o+Math.imul(f,K)|0)+Math.imul(h,Z)|0))<<13)|0;l=((i=i+Math.imul(h,K)|0)+(o>>>13)|0)+(be>>>26)|0,be&=67108863,n=Math.imul(k,X),o=(o=Math.imul(k,U))+Math.imul(w,X)|0,i=Math.imul(w,U),n=n+Math.imul(g,G)|0,o=(o=o+Math.imul(g,z)|0)+Math.imul(b,G)|0,i=i+Math.imul(b,z)|0,n=n+Math.imul(p,Z)|0,o=(o=o+Math.imul(p,K)|0)+Math.imul(v,Z)|0,i=i+Math.imul(v,K)|0;var ye=(l+(n=n+Math.imul(f,q)|0)|0)+((8191&(o=(o=o+Math.imul(f,W)|0)+Math.imul(h,q)|0))<<13)|0;l=((i=i+Math.imul(h,W)|0)+(o>>>13)|0)+(ye>>>26)|0,ye&=67108863,n=Math.imul(E,X),o=(o=Math.imul(E,U))+Math.imul(S,X)|0,i=Math.imul(S,U),n=n+Math.imul(k,G)|0,o=(o=o+Math.imul(k,z)|0)+Math.imul(w,G)|0,i=i+Math.imul(w,z)|0,n=n+Math.imul(g,Z)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul(b,Z)|0,i=i+Math.imul(b,K)|0,n=n+Math.imul(p,q)|0,o=(o=o+Math.imul(p,W)|0)+Math.imul(v,q)|0,i=i+Math.imul(v,W)|0;var ke=(l+(n=n+Math.imul(f,$)|0)|0)+((8191&(o=(o=o+Math.imul(f,ee)|0)+Math.imul(h,$)|0))<<13)|0;l=((i=i+Math.imul(h,ee)|0)+(o>>>13)|0)+(ke>>>26)|0,ke&=67108863,n=Math.imul(M,X),o=(o=Math.imul(M,U))+Math.imul(P,X)|0,i=Math.imul(P,U),n=n+Math.imul(E,G)|0,o=(o=o+Math.imul(E,z)|0)+Math.imul(S,G)|0,i=i+Math.imul(S,z)|0,n=n+Math.imul(k,Z)|0,o=(o=o+Math.imul(k,K)|0)+Math.imul(w,Z)|0,i=i+Math.imul(w,K)|0,n=n+Math.imul(g,q)|0,o=(o=o+Math.imul(g,W)|0)+Math.imul(b,q)|0,i=i+Math.imul(b,W)|0,n=n+Math.imul(p,$)|0,o=(o=o+Math.imul(p,ee)|0)+Math.imul(v,$)|0,i=i+Math.imul(v,ee)|0;var we=(l+(n=n+Math.imul(f,re)|0)|0)+((8191&(o=(o=o+Math.imul(f,ne)|0)+Math.imul(h,re)|0))<<13)|0;l=((i=i+Math.imul(h,ne)|0)+(o>>>13)|0)+(we>>>26)|0,we&=67108863,n=Math.imul(O,X),o=(o=Math.imul(O,U))+Math.imul(x,X)|0,i=Math.imul(x,U),n=n+Math.imul(M,G)|0,o=(o=o+Math.imul(M,z)|0)+Math.imul(P,G)|0,i=i+Math.imul(P,z)|0,n=n+Math.imul(E,Z)|0,o=(o=o+Math.imul(E,K)|0)+Math.imul(S,Z)|0,i=i+Math.imul(S,K)|0,n=n+Math.imul(k,q)|0,o=(o=o+Math.imul(k,W)|0)+Math.imul(w,q)|0,i=i+Math.imul(w,W)|0,n=n+Math.imul(g,$)|0,o=(o=o+Math.imul(g,ee)|0)+Math.imul(b,$)|0,i=i+Math.imul(b,ee)|0,n=n+Math.imul(p,re)|0,o=(o=o+Math.imul(p,ne)|0)+Math.imul(v,re)|0,i=i+Math.imul(v,ne)|0;var Te=(l+(n=n+Math.imul(f,ie)|0)|0)+((8191&(o=(o=o+Math.imul(f,ae)|0)+Math.imul(h,ie)|0))<<13)|0;l=((i=i+Math.imul(h,ae)|0)+(o>>>13)|0)+(Te>>>26)|0,Te&=67108863,n=Math.imul(L,X),o=(o=Math.imul(L,U))+Math.imul(B,X)|0,i=Math.imul(B,U),n=n+Math.imul(O,G)|0,o=(o=o+Math.imul(O,z)|0)+Math.imul(x,G)|0,i=i+Math.imul(x,z)|0,n=n+Math.imul(M,Z)|0,o=(o=o+Math.imul(M,K)|0)+Math.imul(P,Z)|0,i=i+Math.imul(P,K)|0,n=n+Math.imul(E,q)|0,o=(o=o+Math.imul(E,W)|0)+Math.imul(S,q)|0,i=i+Math.imul(S,W)|0,n=n+Math.imul(k,$)|0,o=(o=o+Math.imul(k,ee)|0)+Math.imul(w,$)|0,i=i+Math.imul(w,ee)|0,n=n+Math.imul(g,re)|0,o=(o=o+Math.imul(g,ne)|0)+Math.imul(b,re)|0,i=i+Math.imul(b,ne)|0,n=n+Math.imul(p,ie)|0,o=(o=o+Math.imul(p,ae)|0)+Math.imul(v,ie)|0,i=i+Math.imul(v,ae)|0;var Ee=(l+(n=n+Math.imul(f,se)|0)|0)+((8191&(o=(o=o+Math.imul(f,le)|0)+Math.imul(h,se)|0))<<13)|0;l=((i=i+Math.imul(h,le)|0)+(o>>>13)|0)+(Ee>>>26)|0,Ee&=67108863,n=Math.imul(R,X),o=(o=Math.imul(R,U))+Math.imul(J,X)|0,i=Math.imul(J,U),n=n+Math.imul(L,G)|0,o=(o=o+Math.imul(L,z)|0)+Math.imul(B,G)|0,i=i+Math.imul(B,z)|0,n=n+Math.imul(O,Z)|0,o=(o=o+Math.imul(O,K)|0)+Math.imul(x,Z)|0,i=i+Math.imul(x,K)|0,n=n+Math.imul(M,q)|0,o=(o=o+Math.imul(M,W)|0)+Math.imul(P,q)|0,i=i+Math.imul(P,W)|0,n=n+Math.imul(E,$)|0,o=(o=o+Math.imul(E,ee)|0)+Math.imul(S,$)|0,i=i+Math.imul(S,ee)|0,n=n+Math.imul(k,re)|0,o=(o=o+Math.imul(k,ne)|0)+Math.imul(w,re)|0,i=i+Math.imul(w,ne)|0,n=n+Math.imul(g,ie)|0,o=(o=o+Math.imul(g,ae)|0)+Math.imul(b,ie)|0,i=i+Math.imul(b,ae)|0,n=n+Math.imul(p,se)|0,o=(o=o+Math.imul(p,le)|0)+Math.imul(v,se)|0,i=i+Math.imul(v,le)|0;var Se=(l+(n=n+Math.imul(f,fe)|0)|0)+((8191&(o=(o=o+Math.imul(f,he)|0)+Math.imul(h,fe)|0))<<13)|0;l=((i=i+Math.imul(h,he)|0)+(o>>>13)|0)+(Se>>>26)|0,Se&=67108863,n=Math.imul(D,X),o=(o=Math.imul(D,U))+Math.imul(I,X)|0,i=Math.imul(I,U),n=n+Math.imul(R,G)|0,o=(o=o+Math.imul(R,z)|0)+Math.imul(J,G)|0,i=i+Math.imul(J,z)|0,n=n+Math.imul(L,Z)|0,o=(o=o+Math.imul(L,K)|0)+Math.imul(B,Z)|0,i=i+Math.imul(B,K)|0,n=n+Math.imul(O,q)|0,o=(o=o+Math.imul(O,W)|0)+Math.imul(x,q)|0,i=i+Math.imul(x,W)|0,n=n+Math.imul(M,$)|0,o=(o=o+Math.imul(M,ee)|0)+Math.imul(P,$)|0,i=i+Math.imul(P,ee)|0,n=n+Math.imul(E,re)|0,o=(o=o+Math.imul(E,ne)|0)+Math.imul(S,re)|0,i=i+Math.imul(S,ne)|0,n=n+Math.imul(k,ie)|0,o=(o=o+Math.imul(k,ae)|0)+Math.imul(w,ie)|0,i=i+Math.imul(w,ae)|0,n=n+Math.imul(g,se)|0,o=(o=o+Math.imul(g,le)|0)+Math.imul(b,se)|0,i=i+Math.imul(b,le)|0,n=n+Math.imul(p,fe)|0,o=(o=o+Math.imul(p,he)|0)+Math.imul(v,fe)|0,i=i+Math.imul(v,he)|0;var Ae=(l+(n=n+Math.imul(f,pe)|0)|0)+((8191&(o=(o=o+Math.imul(f,ve)|0)+Math.imul(h,pe)|0))<<13)|0;l=((i=i+Math.imul(h,ve)|0)+(o>>>13)|0)+(Ae>>>26)|0,Ae&=67108863,n=Math.imul(D,G),o=(o=Math.imul(D,z))+Math.imul(I,G)|0,i=Math.imul(I,z),n=n+Math.imul(R,Z)|0,o=(o=o+Math.imul(R,K)|0)+Math.imul(J,Z)|0,i=i+Math.imul(J,K)|0,n=n+Math.imul(L,q)|0,o=(o=o+Math.imul(L,W)|0)+Math.imul(B,q)|0,i=i+Math.imul(B,W)|0,n=n+Math.imul(O,$)|0,o=(o=o+Math.imul(O,ee)|0)+Math.imul(x,$)|0,i=i+Math.imul(x,ee)|0,n=n+Math.imul(M,re)|0,o=(o=o+Math.imul(M,ne)|0)+Math.imul(P,re)|0,i=i+Math.imul(P,ne)|0,n=n+Math.imul(E,ie)|0,o=(o=o+Math.imul(E,ae)|0)+Math.imul(S,ie)|0,i=i+Math.imul(S,ae)|0,n=n+Math.imul(k,se)|0,o=(o=o+Math.imul(k,le)|0)+Math.imul(w,se)|0,i=i+Math.imul(w,le)|0,n=n+Math.imul(g,fe)|0,o=(o=o+Math.imul(g,he)|0)+Math.imul(b,fe)|0,i=i+Math.imul(b,he)|0;var Me=(l+(n=n+Math.imul(p,pe)|0)|0)+((8191&(o=(o=o+Math.imul(p,ve)|0)+Math.imul(v,pe)|0))<<13)|0;l=((i=i+Math.imul(v,ve)|0)+(o>>>13)|0)+(Me>>>26)|0,Me&=67108863,n=Math.imul(D,Z),o=(o=Math.imul(D,K))+Math.imul(I,Z)|0,i=Math.imul(I,K),n=n+Math.imul(R,q)|0,o=(o=o+Math.imul(R,W)|0)+Math.imul(J,q)|0,i=i+Math.imul(J,W)|0,n=n+Math.imul(L,$)|0,o=(o=o+Math.imul(L,ee)|0)+Math.imul(B,$)|0,i=i+Math.imul(B,ee)|0,n=n+Math.imul(O,re)|0,o=(o=o+Math.imul(O,ne)|0)+Math.imul(x,re)|0,i=i+Math.imul(x,ne)|0,n=n+Math.imul(M,ie)|0,o=(o=o+Math.imul(M,ae)|0)+Math.imul(P,ie)|0,i=i+Math.imul(P,ae)|0,n=n+Math.imul(E,se)|0,o=(o=o+Math.imul(E,le)|0)+Math.imul(S,se)|0,i=i+Math.imul(S,le)|0,n=n+Math.imul(k,fe)|0,o=(o=o+Math.imul(k,he)|0)+Math.imul(w,fe)|0,i=i+Math.imul(w,he)|0;var Pe=(l+(n=n+Math.imul(g,pe)|0)|0)+((8191&(o=(o=o+Math.imul(g,ve)|0)+Math.imul(b,pe)|0))<<13)|0;l=((i=i+Math.imul(b,ve)|0)+(o>>>13)|0)+(Pe>>>26)|0,Pe&=67108863,n=Math.imul(D,q),o=(o=Math.imul(D,W))+Math.imul(I,q)|0,i=Math.imul(I,W),n=n+Math.imul(R,$)|0,o=(o=o+Math.imul(R,ee)|0)+Math.imul(J,$)|0,i=i+Math.imul(J,ee)|0,n=n+Math.imul(L,re)|0,o=(o=o+Math.imul(L,ne)|0)+Math.imul(B,re)|0,i=i+Math.imul(B,ne)|0,n=n+Math.imul(O,ie)|0,o=(o=o+Math.imul(O,ae)|0)+Math.imul(x,ie)|0,i=i+Math.imul(x,ae)|0,n=n+Math.imul(M,se)|0,o=(o=o+Math.imul(M,le)|0)+Math.imul(P,se)|0,i=i+Math.imul(P,le)|0,n=n+Math.imul(E,fe)|0,o=(o=o+Math.imul(E,he)|0)+Math.imul(S,fe)|0,i=i+Math.imul(S,he)|0;var Ce=(l+(n=n+Math.imul(k,pe)|0)|0)+((8191&(o=(o=o+Math.imul(k,ve)|0)+Math.imul(w,pe)|0))<<13)|0;l=((i=i+Math.imul(w,ve)|0)+(o>>>13)|0)+(Ce>>>26)|0,Ce&=67108863,n=Math.imul(D,$),o=(o=Math.imul(D,ee))+Math.imul(I,$)|0,i=Math.imul(I,ee),n=n+Math.imul(R,re)|0,o=(o=o+Math.imul(R,ne)|0)+Math.imul(J,re)|0,i=i+Math.imul(J,ne)|0,n=n+Math.imul(L,ie)|0,o=(o=o+Math.imul(L,ae)|0)+Math.imul(B,ie)|0,i=i+Math.imul(B,ae)|0,n=n+Math.imul(O,se)|0,o=(o=o+Math.imul(O,le)|0)+Math.imul(x,se)|0,i=i+Math.imul(x,le)|0,n=n+Math.imul(M,fe)|0,o=(o=o+Math.imul(M,he)|0)+Math.imul(P,fe)|0,i=i+Math.imul(P,he)|0;var Oe=(l+(n=n+Math.imul(E,pe)|0)|0)+((8191&(o=(o=o+Math.imul(E,ve)|0)+Math.imul(S,pe)|0))<<13)|0;l=((i=i+Math.imul(S,ve)|0)+(o>>>13)|0)+(Oe>>>26)|0,Oe&=67108863,n=Math.imul(D,re),o=(o=Math.imul(D,ne))+Math.imul(I,re)|0,i=Math.imul(I,ne),n=n+Math.imul(R,ie)|0,o=(o=o+Math.imul(R,ae)|0)+Math.imul(J,ie)|0,i=i+Math.imul(J,ae)|0,n=n+Math.imul(L,se)|0,o=(o=o+Math.imul(L,le)|0)+Math.imul(B,se)|0,i=i+Math.imul(B,le)|0,n=n+Math.imul(O,fe)|0,o=(o=o+Math.imul(O,he)|0)+Math.imul(x,fe)|0,i=i+Math.imul(x,he)|0;var xe=(l+(n=n+Math.imul(M,pe)|0)|0)+((8191&(o=(o=o+Math.imul(M,ve)|0)+Math.imul(P,pe)|0))<<13)|0;l=((i=i+Math.imul(P,ve)|0)+(o>>>13)|0)+(xe>>>26)|0,xe&=67108863,n=Math.imul(D,ie),o=(o=Math.imul(D,ae))+Math.imul(I,ie)|0,i=Math.imul(I,ae),n=n+Math.imul(R,se)|0,o=(o=o+Math.imul(R,le)|0)+Math.imul(J,se)|0,i=i+Math.imul(J,le)|0,n=n+Math.imul(L,fe)|0,o=(o=o+Math.imul(L,he)|0)+Math.imul(B,fe)|0,i=i+Math.imul(B,he)|0;var Fe=(l+(n=n+Math.imul(O,pe)|0)|0)+((8191&(o=(o=o+Math.imul(O,ve)|0)+Math.imul(x,pe)|0))<<13)|0;l=((i=i+Math.imul(x,ve)|0)+(o>>>13)|0)+(Fe>>>26)|0,Fe&=67108863,n=Math.imul(D,se),o=(o=Math.imul(D,le))+Math.imul(I,se)|0,i=Math.imul(I,le),n=n+Math.imul(R,fe)|0,o=(o=o+Math.imul(R,he)|0)+Math.imul(J,fe)|0,i=i+Math.imul(J,he)|0;var Le=(l+(n=n+Math.imul(L,pe)|0)|0)+((8191&(o=(o=o+Math.imul(L,ve)|0)+Math.imul(B,pe)|0))<<13)|0;l=((i=i+Math.imul(B,ve)|0)+(o>>>13)|0)+(Le>>>26)|0,Le&=67108863,n=Math.imul(D,fe),o=(o=Math.imul(D,he))+Math.imul(I,fe)|0,i=Math.imul(I,he);var Be=(l+(n=n+Math.imul(R,pe)|0)|0)+((8191&(o=(o=o+Math.imul(R,ve)|0)+Math.imul(J,pe)|0))<<13)|0;l=((i=i+Math.imul(J,ve)|0)+(o>>>13)|0)+(Be>>>26)|0,Be&=67108863;var Ne=(l+(n=Math.imul(D,pe))|0)+((8191&(o=(o=Math.imul(D,ve))+Math.imul(I,pe)|0))<<13)|0;return l=((i=Math.imul(I,ve))+(o>>>13)|0)+(Ne>>>26)|0,Ne&=67108863,s[0]=me,s[1]=ge,s[2]=be,s[3]=ye,s[4]=ke,s[5]=we,s[6]=Te,s[7]=Ee,s[8]=Se,s[9]=Ae,s[10]=Me,s[11]=Pe,s[12]=Ce,s[13]=Oe,s[14]=xe,s[15]=Fe,s[16]=Le,s[17]=Be,s[18]=Ne,0!==l&&(s[19]=l,r.length++),r};function v(e,t,r){return(new m).mulp(e,t,r)}function m(e,t){this.x=e,this.y=t}Math.imul||(p=d),i.prototype.mulTo=function(e,t){var r=this.length+e.length;return 10===this.length&&10===e.length?p(this,e,t):r<63?d(this,e,t):r<1024?function(e,t,r){r.negative=t.negative^e.negative,r.length=e.length+t.length;for(var n=0,o=0,i=0;i<r.length-1;i++){var a=o;o=0;for(var u=67108863&n,s=Math.min(i,t.length-1),l=Math.max(0,i-e.length+1);l<=s;l++){var c=i-l,f=(0|e.words[c])*(0|t.words[l]),h=67108863&f;u=67108863&(h=h+u|0),o+=(a=(a=a+(f/67108864|0)|0)+(h>>>26)|0)>>>26,a&=67108863}r.words[i]=u,n=a,a=o}return 0!==n?r.words[i]=n:r.length--,r.strip()}(this,e,t):v(this,e,t)},m.prototype.makeRBT=function(e){for(var t=new Array(e),r=i.prototype._countBits(e)-1,n=0;n<e;n++)t[n]=this.revBin(n,r,e);return t},m.prototype.revBin=function(e,t,r){if(0===e||e===r-1)return e;for(var n=0,o=0;o<t;o++)n|=(1&e)<<t-o-1,e>>=1;return n},m.prototype.permute=function(e,t,r,n,o,i){for(var a=0;a<i;a++)n[a]=t[e[a]],o[a]=r[e[a]]},m.prototype.transform=function(e,t,r,n,o,i){this.permute(i,e,t,r,n,o);for(var a=1;a<o;a<<=1)for(var u=a<<1,s=Math.cos(2*Math.PI/u),l=Math.sin(2*Math.PI/u),c=0;c<o;c+=u)for(var f=s,h=l,d=0;d<a;d++){var p=r[c+d],v=n[c+d],m=r[c+d+a],g=n[c+d+a],b=f*m-h*g;g=f*g+h*m,m=b,r[c+d]=p+m,n[c+d]=v+g,r[c+d+a]=p-m,n[c+d+a]=v-g,d!==u&&(b=s*f-l*h,h=s*h+l*f,f=b)}},m.prototype.guessLen13b=function(e,t){var r=1|Math.max(t,e),n=1&r,o=0;for(r=r/2|0;r;r>>>=1)o++;return 1<<o+1+n},m.prototype.conjugate=function(e,t,r){if(!(r<=1))for(var n=0;n<r/2;n++){var o=e[n];e[n]=e[r-n-1],e[r-n-1]=o,o=t[n],t[n]=-t[r-n-1],t[r-n-1]=-o}},m.prototype.normalize13b=function(e,t){for(var r=0,n=0;n<t/2;n++){var o=8192*Math.round(e[2*n+1]/t)+Math.round(e[2*n]/t)+r;e[n]=67108863&o,r=o<67108864?0:o/67108864|0}return e},m.prototype.convert13b=function(e,t,r,o){for(var i=0,a=0;a<t;a++)i+=0|e[a],r[2*a]=8191&i,i>>>=13,r[2*a+1]=8191&i,i>>>=13;for(a=2*t;a<o;++a)r[a]=0;n(0===i),n(0===(-8192&i))},m.prototype.stub=function(e){for(var t=new Array(e),r=0;r<e;r++)t[r]=0;return t},m.prototype.mulp=function(e,t,r){var n=2*this.guessLen13b(e.length,t.length),o=this.makeRBT(n),i=this.stub(n),a=new Array(n),u=new Array(n),s=new Array(n),l=new Array(n),c=new Array(n),f=new Array(n),h=r.words;h.length=n,this.convert13b(e.words,e.length,a,n),this.convert13b(t.words,t.length,l,n),this.transform(a,i,u,s,n,o),this.transform(l,i,c,f,n,o);for(var d=0;d<n;d++){var p=u[d]*c[d]-s[d]*f[d];s[d]=u[d]*f[d]+s[d]*c[d],u[d]=p}return this.conjugate(u,s,n),this.transform(u,s,h,i,n,o),this.conjugate(h,i,n),this.normalize13b(h,n),r.negative=e.negative^t.negative,r.length=e.length+t.length,r.strip()},i.prototype.mul=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),this.mulTo(e,t)},i.prototype.mulf=function(e){var t=new i(null);return t.words=new Array(this.length+e.length),v(this,e,t)},i.prototype.imul=function(e){return this.clone().mulTo(e,this)},i.prototype.imuln=function(e){n("number"===typeof e),n(e<67108864);for(var t=0,r=0;r<this.length;r++){var o=(0|this.words[r])*e,i=(67108863&o)+(67108863&t);t>>=26,t+=o/67108864|0,t+=i>>>26,this.words[r]=67108863&i}return 0!==t&&(this.words[r]=t,this.length++),this},i.prototype.muln=function(e){return this.clone().imuln(e)},i.prototype.sqr=function(){return this.mul(this)},i.prototype.isqr=function(){return this.imul(this.clone())},i.prototype.pow=function(e){var t=function(e){for(var t=new Array(e.bitLength()),r=0;r<t.length;r++){var n=r/26|0,o=r%26;t[r]=(e.words[n]&1<<o)>>>o}return t}(e);if(0===t.length)return new i(1);for(var r=this,n=0;n<t.length&&0===t[n];n++,r=r.sqr());if(++n<t.length)for(var o=r.sqr();n<t.length;n++,o=o.sqr())0!==t[n]&&(r=r.mul(o));return r},i.prototype.iushln=function(e){n("number"===typeof e&&e>=0);var t,r=e%26,o=(e-r)/26,i=67108863>>>26-r<<26-r;if(0!==r){var a=0;for(t=0;t<this.length;t++){var u=this.words[t]&i,s=(0|this.words[t])-u<<r;this.words[t]=s|a,a=u>>>26-r}a&&(this.words[t]=a,this.length++)}if(0!==o){for(t=this.length-1;t>=0;t--)this.words[t+o]=this.words[t];for(t=0;t<o;t++)this.words[t]=0;this.length+=o}return this.strip()},i.prototype.ishln=function(e){return n(0===this.negative),this.iushln(e)},i.prototype.iushrn=function(e,t,r){var o;n("number"===typeof e&&e>=0),o=t?(t-t%26)/26:0;var i=e%26,a=Math.min((e-i)/26,this.length),u=67108863^67108863>>>i<<i,s=r;if(o-=a,o=Math.max(0,o),s){for(var l=0;l<a;l++)s.words[l]=this.words[l];s.length=a}if(0===a);else if(this.length>a)for(this.length-=a,l=0;l<this.length;l++)this.words[l]=this.words[l+a];else this.words[0]=0,this.length=1;var c=0;for(l=this.length-1;l>=0&&(0!==c||l>=o);l--){var f=0|this.words[l];this.words[l]=c<<26-i|f>>>i,c=f&u}return s&&0!==c&&(s.words[s.length++]=c),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},i.prototype.ishrn=function(e,t,r){return n(0===this.negative),this.iushrn(e,t,r)},i.prototype.shln=function(e){return this.clone().ishln(e)},i.prototype.ushln=function(e){return this.clone().iushln(e)},i.prototype.shrn=function(e){return this.clone().ishrn(e)},i.prototype.ushrn=function(e){return this.clone().iushrn(e)},i.prototype.testn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26,o=1<<t;return!(this.length<=r)&&!!(this.words[r]&o)},i.prototype.imaskn=function(e){n("number"===typeof e&&e>=0);var t=e%26,r=(e-t)/26;if(n(0===this.negative,"imaskn works only with positive numbers"),this.length<=r)return this;if(0!==t&&r++,this.length=Math.min(r,this.length),0!==t){var o=67108863^67108863>>>t<<t;this.words[this.length-1]&=o}return this.strip()},i.prototype.maskn=function(e){return this.clone().imaskn(e)},i.prototype.iaddn=function(e){return n("number"===typeof e),n(e<67108864),e<0?this.isubn(-e):0!==this.negative?1===this.length&&(0|this.words[0])<e?(this.words[0]=e-(0|this.words[0]),this.negative=0,this):(this.negative=0,this.isubn(e),this.negative=1,this):this._iaddn(e)},i.prototype._iaddn=function(e){this.words[0]+=e;for(var t=0;t<this.length&&this.words[t]>=67108864;t++)this.words[t]-=67108864,t===this.length-1?this.words[t+1]=1:this.words[t+1]++;return this.length=Math.max(this.length,t+1),this},i.prototype.isubn=function(e){if(n("number"===typeof e),n(e<67108864),e<0)return this.iaddn(-e);if(0!==this.negative)return this.negative=0,this.iaddn(e),this.negative=1,this;if(this.words[0]-=e,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var t=0;t<this.length&&this.words[t]<0;t++)this.words[t]+=67108864,this.words[t+1]-=1;return this.strip()},i.prototype.addn=function(e){return this.clone().iaddn(e)},i.prototype.subn=function(e){return this.clone().isubn(e)},i.prototype.iabs=function(){return this.negative=0,this},i.prototype.abs=function(){return this.clone().iabs()},i.prototype._ishlnsubmul=function(e,t,r){var o,i,a=e.length+r;this._expand(a);var u=0;for(o=0;o<e.length;o++){i=(0|this.words[o+r])+u;var s=(0|e.words[o])*t;u=((i-=67108863&s)>>26)-(s/67108864|0),this.words[o+r]=67108863&i}for(;o<this.length-r;o++)u=(i=(0|this.words[o+r])+u)>>26,this.words[o+r]=67108863&i;if(0===u)return this.strip();for(n(-1===u),u=0,o=0;o<this.length;o++)u=(i=-(0|this.words[o])+u)>>26,this.words[o]=67108863&i;return this.negative=1,this.strip()},i.prototype._wordDiv=function(e,t){var r=(this.length,e.length),n=this.clone(),o=e,a=0|o.words[o.length-1];0!==(r=26-this._countBits(a))&&(o=o.ushln(r),n.iushln(r),a=0|o.words[o.length-1]);var u,s=n.length-o.length;if("mod"!==t){(u=new i(null)).length=s+1,u.words=new Array(u.length);for(var l=0;l<u.length;l++)u.words[l]=0}var c=n.clone()._ishlnsubmul(o,1,s);0===c.negative&&(n=c,u&&(u.words[s]=1));for(var f=s-1;f>=0;f--){var h=67108864*(0|n.words[o.length+f])+(0|n.words[o.length+f-1]);for(h=Math.min(h/a|0,67108863),n._ishlnsubmul(o,h,f);0!==n.negative;)h--,n.negative=0,n._ishlnsubmul(o,1,f),n.isZero()||(n.negative^=1);u&&(u.words[f]=h)}return u&&u.strip(),n.strip(),"div"!==t&&0!==r&&n.iushrn(r),{div:u||null,mod:n}},i.prototype.divmod=function(e,t,r){return n(!e.isZero()),this.isZero()?{div:new i(0),mod:new i(0)}:0!==this.negative&&0===e.negative?(u=this.neg().divmod(e,t),"mod"!==t&&(o=u.div.neg()),"div"!==t&&(a=u.mod.neg(),r&&0!==a.negative&&a.iadd(e)),{div:o,mod:a}):0===this.negative&&0!==e.negative?(u=this.divmod(e.neg(),t),"mod"!==t&&(o=u.div.neg()),{div:o,mod:u.mod}):0!==(this.negative&e.negative)?(u=this.neg().divmod(e.neg(),t),"div"!==t&&(a=u.mod.neg(),r&&0!==a.negative&&a.isub(e)),{div:u.div,mod:a}):e.length>this.length||this.cmp(e)<0?{div:new i(0),mod:this}:1===e.length?"div"===t?{div:this.divn(e.words[0]),mod:null}:"mod"===t?{div:null,mod:new i(this.modn(e.words[0]))}:{div:this.divn(e.words[0]),mod:new i(this.modn(e.words[0]))}:this._wordDiv(e,t);var o,a,u},i.prototype.div=function(e){return this.divmod(e,"div",!1).div},i.prototype.mod=function(e){return this.divmod(e,"mod",!1).mod},i.prototype.umod=function(e){return this.divmod(e,"mod",!0).mod},i.prototype.divRound=function(e){var t=this.divmod(e);if(t.mod.isZero())return t.div;var r=0!==t.div.negative?t.mod.isub(e):t.mod,n=e.ushrn(1),o=e.andln(1),i=r.cmp(n);return i<0||1===o&&0===i?t.div:0!==t.div.negative?t.div.isubn(1):t.div.iaddn(1)},i.prototype.modn=function(e){n(e<=67108863);for(var t=(1<<26)%e,r=0,o=this.length-1;o>=0;o--)r=(t*r+(0|this.words[o]))%e;return r},i.prototype.idivn=function(e){n(e<=67108863);for(var t=0,r=this.length-1;r>=0;r--){var o=(0|this.words[r])+67108864*t;this.words[r]=o/e|0,t=o%e}return this.strip()},i.prototype.divn=function(e){return this.clone().idivn(e)},i.prototype.egcd=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o=new i(1),a=new i(0),u=new i(0),s=new i(1),l=0;t.isEven()&&r.isEven();)t.iushrn(1),r.iushrn(1),++l;for(var c=r.clone(),f=t.clone();!t.isZero();){for(var h=0,d=1;0===(t.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(t.iushrn(h);h-- >0;)(o.isOdd()||a.isOdd())&&(o.iadd(c),a.isub(f)),o.iushrn(1),a.iushrn(1);for(var p=0,v=1;0===(r.words[0]&v)&&p<26;++p,v<<=1);if(p>0)for(r.iushrn(p);p-- >0;)(u.isOdd()||s.isOdd())&&(u.iadd(c),s.isub(f)),u.iushrn(1),s.iushrn(1);t.cmp(r)>=0?(t.isub(r),o.isub(u),a.isub(s)):(r.isub(t),u.isub(o),s.isub(a))}return{a:u,b:s,gcd:r.iushln(l)}},i.prototype._invmp=function(e){n(0===e.negative),n(!e.isZero());var t=this,r=e.clone();t=0!==t.negative?t.umod(e):t.clone();for(var o,a=new i(1),u=new i(0),s=r.clone();t.cmpn(1)>0&&r.cmpn(1)>0;){for(var l=0,c=1;0===(t.words[0]&c)&&l<26;++l,c<<=1);if(l>0)for(t.iushrn(l);l-- >0;)a.isOdd()&&a.iadd(s),a.iushrn(1);for(var f=0,h=1;0===(r.words[0]&h)&&f<26;++f,h<<=1);if(f>0)for(r.iushrn(f);f-- >0;)u.isOdd()&&u.iadd(s),u.iushrn(1);t.cmp(r)>=0?(t.isub(r),a.isub(u)):(r.isub(t),u.isub(a))}return(o=0===t.cmpn(1)?a:u).cmpn(0)<0&&o.iadd(e),o},i.prototype.gcd=function(e){if(this.isZero())return e.abs();if(e.isZero())return this.abs();var t=this.clone(),r=e.clone();t.negative=0,r.negative=0;for(var n=0;t.isEven()&&r.isEven();n++)t.iushrn(1),r.iushrn(1);for(;;){for(;t.isEven();)t.iushrn(1);for(;r.isEven();)r.iushrn(1);var o=t.cmp(r);if(o<0){var i=t;t=r,r=i}else if(0===o||0===r.cmpn(1))break;t.isub(r)}return r.iushln(n)},i.prototype.invm=function(e){return this.egcd(e).a.umod(e)},i.prototype.isEven=function(){return 0===(1&this.words[0])},i.prototype.isOdd=function(){return 1===(1&this.words[0])},i.prototype.andln=function(e){return this.words[0]&e},i.prototype.bincn=function(e){n("number"===typeof e);var t=e%26,r=(e-t)/26,o=1<<t;if(this.length<=r)return this._expand(r+1),this.words[r]|=o,this;for(var i=o,a=r;0!==i&&a<this.length;a++){var u=0|this.words[a];i=(u+=i)>>>26,u&=67108863,this.words[a]=u}return 0!==i&&(this.words[a]=i,this.length++),this},i.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},i.prototype.cmpn=function(e){var t,r=e<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)t=1;else{r&&(e=-e),n(e<=67108863,"Number is too big");var o=0|this.words[0];t=o===e?0:o<e?-1:1}return 0!==this.negative?0|-t:t},i.prototype.cmp=function(e){if(0!==this.negative&&0===e.negative)return-1;if(0===this.negative&&0!==e.negative)return 1;var t=this.ucmp(e);return 0!==this.negative?0|-t:t},i.prototype.ucmp=function(e){if(this.length>e.length)return 1;if(this.length<e.length)return-1;for(var t=0,r=this.length-1;r>=0;r--){var n=0|this.words[r],o=0|e.words[r];if(n!==o){n<o?t=-1:n>o&&(t=1);break}}return t},i.prototype.gtn=function(e){return 1===this.cmpn(e)},i.prototype.gt=function(e){return 1===this.cmp(e)},i.prototype.gten=function(e){return this.cmpn(e)>=0},i.prototype.gte=function(e){return this.cmp(e)>=0},i.prototype.ltn=function(e){return-1===this.cmpn(e)},i.prototype.lt=function(e){return-1===this.cmp(e)},i.prototype.lten=function(e){return this.cmpn(e)<=0},i.prototype.lte=function(e){return this.cmp(e)<=0},i.prototype.eqn=function(e){return 0===this.cmpn(e)},i.prototype.eq=function(e){return 0===this.cmp(e)},i.red=function(e){return new E(e)},i.prototype.toRed=function(e){return n(!this.red,"Already a number in reduction context"),n(0===this.negative,"red works only with positives"),e.convertTo(this)._forceRed(e)},i.prototype.fromRed=function(){return n(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},i.prototype._forceRed=function(e){return this.red=e,this},i.prototype.forceRed=function(e){return n(!this.red,"Already a number in reduction context"),this._forceRed(e)},i.prototype.redAdd=function(e){return n(this.red,"redAdd works only with red numbers"),this.red.add(this,e)},i.prototype.redIAdd=function(e){return n(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,e)},i.prototype.redSub=function(e){return n(this.red,"redSub works only with red numbers"),this.red.sub(this,e)},i.prototype.redISub=function(e){return n(this.red,"redISub works only with red numbers"),this.red.isub(this,e)},i.prototype.redShl=function(e){return n(this.red,"redShl works only with red numbers"),this.red.shl(this,e)},i.prototype.redMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.mul(this,e)},i.prototype.redIMul=function(e){return n(this.red,"redMul works only with red numbers"),this.red._verify2(this,e),this.red.imul(this,e)},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(e){return n(this.red&&!e.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,e)};var g={k256:null,p224:null,p192:null,p25519:null};function b(e,t){this.name=e,this.p=new i(t,16),this.n=this.p.bitLength(),this.k=new i(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function y(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function k(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function w(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function T(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function E(e){if("string"===typeof e){var t=i._prime(e);this.m=t.p,this.prime=t}else n(e.gtn(1),"modulus must be greater than 1"),this.m=e,this.prime=null}function S(e){E.call(this,e),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)}b.prototype._tmp=function(){var e=new i(null);return e.words=new Array(Math.ceil(this.n/13)),e},b.prototype.ireduce=function(e){var t,r=e;do{this.split(r,this.tmp),t=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(t>this.n);var n=t<this.n?-1:r.ucmp(this.p);return 0===n?(r.words[0]=0,r.length=1):n>0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},b.prototype.split=function(e,t){e.iushrn(this.n,0,t)},b.prototype.imulK=function(e){return e.imul(this.k)},o(y,b),y.prototype.split=function(e,t){for(var r=Math.min(e.length,9),n=0;n<r;n++)t.words[n]=e.words[n];if(t.length=r,e.length<=9)return e.words[0]=0,void(e.length=1);var o=e.words[9];for(t.words[t.length++]=4194303&o,n=10;n<e.length;n++){var i=0|e.words[n];e.words[n-10]=(4194303&i)<<4|o>>>22,o=i}o>>>=22,e.words[n-10]=o,0===o&&e.length>10?e.length-=10:e.length-=9},y.prototype.imulK=function(e){e.words[e.length]=0,e.words[e.length+1]=0,e.length+=2;for(var t=0,r=0;r<e.length;r++){var n=0|e.words[r];t+=977*n,e.words[r]=67108863&t,t=64*n+(t/67108864|0)}return 0===e.words[e.length-1]&&(e.length--,0===e.words[e.length-1]&&e.length--),e},o(k,b),o(w,b),o(T,b),T.prototype.imulK=function(e){for(var t=0,r=0;r<e.length;r++){var n=19*(0|e.words[r])+t,o=67108863&n;n>>>=26,e.words[r]=o,t=n}return 0!==t&&(e.words[e.length++]=t),e},i._prime=function(e){if(g[e])return g[e];var t;if("k256"===e)t=new y;else if("p224"===e)t=new k;else if("p192"===e)t=new w;else{if("p25519"!==e)throw new Error("Unknown prime "+e);t=new T}return g[e]=t,t},E.prototype._verify1=function(e){n(0===e.negative,"red works only with positives"),n(e.red,"red works only with red numbers")},E.prototype._verify2=function(e,t){n(0===(e.negative|t.negative),"red works only with positives"),n(e.red&&e.red===t.red,"red works only with red numbers")},E.prototype.imod=function(e){return this.prime?this.prime.ireduce(e)._forceRed(this):e.umod(this.m)._forceRed(this)},E.prototype.neg=function(e){return e.isZero()?e.clone():this.m.sub(e)._forceRed(this)},E.prototype.add=function(e,t){this._verify2(e,t);var r=e.add(t);return r.cmp(this.m)>=0&&r.isub(this.m),r._forceRed(this)},E.prototype.iadd=function(e,t){this._verify2(e,t);var r=e.iadd(t);return r.cmp(this.m)>=0&&r.isub(this.m),r},E.prototype.sub=function(e,t){this._verify2(e,t);var r=e.sub(t);return r.cmpn(0)<0&&r.iadd(this.m),r._forceRed(this)},E.prototype.isub=function(e,t){this._verify2(e,t);var r=e.isub(t);return r.cmpn(0)<0&&r.iadd(this.m),r},E.prototype.shl=function(e,t){return this._verify1(e),this.imod(e.ushln(t))},E.prototype.imul=function(e,t){return this._verify2(e,t),this.imod(e.imul(t))},E.prototype.mul=function(e,t){return this._verify2(e,t),this.imod(e.mul(t))},E.prototype.isqr=function(e){return this.imul(e,e.clone())},E.prototype.sqr=function(e){return this.mul(e,e)},E.prototype.sqrt=function(e){if(e.isZero())return e.clone();var t=this.m.andln(3);if(n(t%2===1),3===t){var r=this.m.add(new i(1)).iushrn(2);return this.pow(e,r)}for(var o=this.m.subn(1),a=0;!o.isZero()&&0===o.andln(1);)a++,o.iushrn(1);n(!o.isZero());var u=new i(1).toRed(this),s=u.redNeg(),l=this.m.subn(1).iushrn(1),c=this.m.bitLength();for(c=new i(2*c*c).toRed(this);0!==this.pow(c,l).cmp(s);)c.redIAdd(s);for(var f=this.pow(c,o),h=this.pow(e,o.addn(1).iushrn(1)),d=this.pow(e,o),p=a;0!==d.cmp(u);){for(var v=d,m=0;0!==v.cmp(u);m++)v=v.redSqr();n(m<p);var g=this.pow(f,new i(1).iushln(p-m-1));h=h.redMul(g),f=g.redSqr(),d=d.redMul(f),p=m}return h},E.prototype.invm=function(e){var t=e._invmp(this.m);return 0!==t.negative?(t.negative=0,this.imod(t).redNeg()):this.imod(t)},E.prototype.pow=function(e,t){if(t.isZero())return new i(1).toRed(this);if(0===t.cmpn(1))return e.clone();var r=new Array(16);r[0]=new i(1).toRed(this),r[1]=e;for(var n=2;n<r.length;n++)r[n]=this.mul(r[n-1],e);var o=r[0],a=0,u=0,s=t.bitLength()%26;for(0===s&&(s=26),n=t.length-1;n>=0;n--){for(var l=t.words[n],c=s-1;c>=0;c--){var f=l>>c&1;o!==r[0]&&(o=this.sqr(o)),0!==f||0!==a?(a<<=1,a|=f,(4===++u||0===n&&0===c)&&(o=this.mul(o,r[a]),u=0,a=0)):u=0}s=26}return o},E.prototype.convertTo=function(e){var t=e.umod(this.m);return t===e?t.clone():t},E.prototype.convertFrom=function(e){var t=e.clone();return t.red=null,t},i.mont=function(e){return new S(e)},o(S,E),S.prototype.convertTo=function(e){return this.imod(e.ushln(this.shift))},S.prototype.convertFrom=function(e){var t=this.imod(e.mul(this.rinv));return t.red=null,t},S.prototype.imul=function(e,t){if(e.isZero()||t.isZero())return e.words[0]=0,e.length=1,e;var r=e.imul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).iushrn(this.shift),i=o;return o.cmp(this.m)>=0?i=o.isub(this.m):o.cmpn(0)<0&&(i=o.iadd(this.m)),i._forceRed(this)},S.prototype.mul=function(e,t){if(e.isZero()||t.isZero())return new i(0)._forceRed(this);var r=e.mul(t),n=r.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=r.isub(n).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)},S.prototype.invm=function(e){return this.imod(e._invmp(this.m).mul(this.r2))._forceRed(this)}}(e,this)}).call(this,r(50)(e))},function(e,t,r){"use strict";e.exports=r(40)},,,function(e,t,r){var n=t;n.utils=r(11),n.common=r(18),n.sha=r(53),n.ripemd=r(57),n.hmac=r(58),n.sha1=n.sha.sha1,n.sha256=n.sha.sha256,n.sha224=n.sha.sha224,n.sha384=n.sha.sha384,n.sha512=n.sha.sha512,n.ripemd160=n.ripemd.ripemd160},function(e,t,r){"use strict";!function(t){function r(e){return parseInt(e)===e}function n(e){if(!r(e.length))return!1;for(var t=0;t<e.length;t++)if(!r(e[t])||e[t]<0||e[t]>255)return!1;return!0}function o(e,t){if(e.buffer&&ArrayBuffer.isView(e)&&"Uint8Array"===e.name)return t&&(e=e.slice?e.slice():Array.prototype.slice.call(e)),e;if(Array.isArray(e)){if(!n(e))throw new Error("Array contains invalid value: "+e);return new Uint8Array(e)}if(r(e.length)&&n(e))return new Uint8Array(e);throw new Error("unsupported array-like object")}function i(e){return new Uint8Array(e)}function a(e,t,r,n,o){null==n&&null==o||(e=e.slice?e.slice(n,o):Array.prototype.slice.call(e,n,o)),t.set(e,r)}var u={toBytes:function(e){var t=[],r=0;for(e=encodeURI(e);r<e.length;){var n=e.charCodeAt(r++);37===n?(t.push(parseInt(e.substr(r,2),16)),r+=2):t.push(n)}return o(t)},fromBytes:function(e){for(var t=[],r=0;r<e.length;){var n=e[r];n<128?(t.push(String.fromCharCode(n)),r++):n>191&&n<224?(t.push(String.fromCharCode((31&n)<<6|63&e[r+1])),r+=2):(t.push(String.fromCharCode((15&n)<<12|(63&e[r+1])<<6|63&e[r+2])),r+=3)}return t.join("")}},s=function(){var e="0123456789abcdef";return{toBytes:function(e){for(var t=[],r=0;r<e.length;r+=2)t.push(parseInt(e.substr(r,2),16));return t},fromBytes:function(t){for(var r=[],n=0;n<t.length;n++){var o=t[n];r.push(e[(240&o)>>4]+e[15&o])}return r.join("")}}}(),l={16:10,24:12,32:14},c=[1,2,4,8,16,32,64,128,27,54,108,216,171,77,154,47,94,188,99,198,151,53,106,212,179,125,250,239,197,145],f=[99,124,119,123,242,107,111,197,48,1,103,43,254,215,171,118,202,130,201,125,250,89,71,240,173,212,162,175,156,164,114,192,183,253,147,38,54,63,247,204,52,165,229,241,113,216,49,21,4,199,35,195,24,150,5,154,7,18,128,226,235,39,178,117,9,131,44,26,27,110,90,160,82,59,214,179,41,227,47,132,83,209,0,237,32,252,177,91,106,203,190,57,74,76,88,207,208,239,170,251,67,77,51,133,69,249,2,127,80,60,159,168,81,163,64,143,146,157,56,245,188,182,218,33,16,255,243,210,205,12,19,236,95,151,68,23,196,167,126,61,100,93,25,115,96,129,79,220,34,42,144,136,70,238,184,20,222,94,11,219,224,50,58,10,73,6,36,92,194,211,172,98,145,149,228,121,231,200,55,109,141,213,78,169,108,86,244,234,101,122,174,8,186,120,37,46,28,166,180,198,232,221,116,31,75,189,139,138,112,62,181,102,72,3,246,14,97,53,87,185,134,193,29,158,225,248,152,17,105,217,142,148,155,30,135,233,206,85,40,223,140,161,137,13,191,230,66,104,65,153,45,15,176,84,187,22],h=[82,9,106,213,48,54,165,56,191,64,163,158,129,243,215,251,124,227,57,130,155,47,255,135,52,142,67,68,196,222,233,203,84,123,148,50,166,194,35,61,238,76,149,11,66,250,195,78,8,46,161,102,40,217,36,178,118,91,162,73,109,139,209,37,114,248,246,100,134,104,152,22,212,164,92,204,93,101,182,146,108,112,72,80,253,237,185,218,94,21,70,87,167,141,157,132,144,216,171,0,140,188,211,10,247,228,88,5,184,179,69,6,208,44,30,143,202,63,15,2,193,175,189,3,1,19,138,107,58,145,17,65,79,103,220,234,151,242,207,206,240,180,230,115,150,172,116,34,231,173,53,133,226,249,55,232,28,117,223,110,71,241,26,113,29,41,197,137,111,183,98,14,170,24,190,27,252,86,62,75,198,210,121,32,154,219,192,254,120,205,90,244,31,221,168,51,136,7,199,49,177,18,16,89,39,128,236,95,96,81,127,169,25,181,74,13,45,229,122,159,147,201,156,239,160,224,59,77,174,42,245,176,200,235,187,60,131,83,153,97,23,43,4,126,186,119,214,38,225,105,20,99,85,33,12,125],d=[3328402341,4168907908,4000806809,4135287693,4294111757,3597364157,3731845041,2445657428,1613770832,33620227,3462883241,1445669757,3892248089,3050821474,1303096294,3967186586,2412431941,528646813,2311702848,4202528135,4026202645,2992200171,2387036105,4226871307,1101901292,3017069671,1604494077,1169141738,597466303,1403299063,3832705686,2613100635,1974974402,3791519004,1033081774,1277568618,1815492186,2118074177,4126668546,2211236943,1748251740,1369810420,3521504564,4193382664,3799085459,2883115123,1647391059,706024767,134480908,2512897874,1176707941,2646852446,806885416,932615841,168101135,798661301,235341577,605164086,461406363,3756188221,3454790438,1311188841,2142417613,3933566367,302582043,495158174,1479289972,874125870,907746093,3698224818,3025820398,1537253627,2756858614,1983593293,3084310113,2108928974,1378429307,3722699582,1580150641,327451799,2790478837,3117535592,0,3253595436,1075847264,3825007647,2041688520,3059440621,3563743934,2378943302,1740553945,1916352843,2487896798,2555137236,2958579944,2244988746,3151024235,3320835882,1336584933,3992714006,2252555205,2588757463,1714631509,293963156,2319795663,3925473552,67240454,4269768577,2689618160,2017213508,631218106,1269344483,2723238387,1571005438,2151694528,93294474,1066570413,563977660,1882732616,4059428100,1673313503,2008463041,2950355573,1109467491,537923632,3858759450,4260623118,3218264685,2177748300,403442708,638784309,3287084079,3193921505,899127202,2286175436,773265209,2479146071,1437050866,4236148354,2050833735,3362022572,3126681063,840505643,3866325909,3227541664,427917720,2655997905,2749160575,1143087718,1412049534,999329963,193497219,2353415882,3354324521,1807268051,672404540,2816401017,3160301282,369822493,2916866934,3688947771,1681011286,1949973070,336202270,2454276571,201721354,1210328172,3093060836,2680341085,3184776046,1135389935,3294782118,965841320,831886756,3554993207,4068047243,3588745010,2345191491,1849112409,3664604599,26054028,2983581028,2622377682,1235855840,3630984372,2891339514,4092916743,3488279077,3395642799,4101667470,1202630377,268961816,1874508501,4034427016,1243948399,1546530418,941366308,1470539505,1941222599,2546386513,3421038627,2715671932,3899946140,1042226977,2521517021,1639824860,227249030,260737669,3765465232,2084453954,1907733956,3429263018,2420656344,100860677,4160157185,470683154,3261161891,1781871967,2924959737,1773779408,394692241,2579611992,974986535,664706745,3655459128,3958962195,731420851,571543859,3530123707,2849626480,126783113,865375399,765172662,1008606754,361203602,3387549984,2278477385,2857719295,1344809080,2782912378,59542671,1503764984,160008576,437062935,1707065306,3622233649,2218934982,3496503480,2185314755,697932208,1512910199,504303377,2075177163,2824099068,1841019862,739644986],p=[2781242211,2230877308,2582542199,2381740923,234877682,3184946027,2984144751,1418839493,1348481072,50462977,2848876391,2102799147,434634494,1656084439,3863849899,2599188086,1167051466,2636087938,1082771913,2281340285,368048890,3954334041,3381544775,201060592,3963727277,1739838676,4250903202,3930435503,3206782108,4149453988,2531553906,1536934080,3262494647,484572669,2923271059,1783375398,1517041206,1098792767,49674231,1334037708,1550332980,4098991525,886171109,150598129,2481090929,1940642008,1398944049,1059722517,201851908,1385547719,1699095331,1587397571,674240536,2704774806,252314885,3039795866,151914247,908333586,2602270848,1038082786,651029483,1766729511,3447698098,2682942837,454166793,2652734339,1951935532,775166490,758520603,3000790638,4004797018,4217086112,4137964114,1299594043,1639438038,3464344499,2068982057,1054729187,1901997871,2534638724,4121318227,1757008337,0,750906861,1614815264,535035132,3363418545,3988151131,3201591914,1183697867,3647454910,1265776953,3734260298,3566750796,3903871064,1250283471,1807470800,717615087,3847203498,384695291,3313910595,3617213773,1432761139,2484176261,3481945413,283769337,100925954,2180939647,4037038160,1148730428,3123027871,3813386408,4087501137,4267549603,3229630528,2315620239,2906624658,3156319645,1215313976,82966005,3747855548,3245848246,1974459098,1665278241,807407632,451280895,251524083,1841287890,1283575245,337120268,891687699,801369324,3787349855,2721421207,3431482436,959321879,1469301956,4065699751,2197585534,1199193405,2898814052,3887750493,724703513,2514908019,2696962144,2551808385,3516813135,2141445340,1715741218,2119445034,2872807568,2198571144,3398190662,700968686,3547052216,1009259540,2041044702,3803995742,487983883,1991105499,1004265696,1449407026,1316239930,504629770,3683797321,168560134,1816667172,3837287516,1570751170,1857934291,4014189740,2797888098,2822345105,2754712981,936633572,2347923833,852879335,1133234376,1500395319,3084545389,2348912013,1689376213,3533459022,3762923945,3034082412,4205598294,133428468,634383082,2949277029,2398386810,3913789102,403703816,3580869306,2297460856,1867130149,1918643758,607656988,4049053350,3346248884,1368901318,600565992,2090982877,2632479860,557719327,3717614411,3697393085,2249034635,2232388234,2430627952,1115438654,3295786421,2865522278,3633334344,84280067,33027830,303828494,2747425121,1600795957,4188952407,3496589753,2434238086,1486471617,658119965,3106381470,953803233,334231800,3005978776,857870609,3151128937,1890179545,2298973838,2805175444,3056442267,574365214,2450884487,550103529,1233637070,4289353045,2018519080,2057691103,2399374476,4166623649,2148108681,387583245,3664101311,836232934,3330556482,3100665960,3280093505,2955516313,2002398509,287182607,3413881008,4238890068,3597515707,975967766],v=[1671808611,2089089148,2006576759,2072901243,4061003762,1807603307,1873927791,3310653893,810573872,16974337,1739181671,729634347,4263110654,3613570519,2883997099,1989864566,3393556426,2191335298,3376449993,2106063485,4195741690,1508618841,1204391495,4027317232,2917941677,3563566036,2734514082,2951366063,2629772188,2767672228,1922491506,3227229120,3082974647,4246528509,2477669779,644500518,911895606,1061256767,4144166391,3427763148,878471220,2784252325,3845444069,4043897329,1905517169,3631459288,827548209,356461077,67897348,3344078279,593839651,3277757891,405286936,2527147926,84871685,2595565466,118033927,305538066,2157648768,3795705826,3945188843,661212711,2999812018,1973414517,152769033,2208177539,745822252,439235610,455947803,1857215598,1525593178,2700827552,1391895634,994932283,3596728278,3016654259,695947817,3812548067,795958831,2224493444,1408607827,3513301457,0,3979133421,543178784,4229948412,2982705585,1542305371,1790891114,3410398667,3201918910,961245753,1256100938,1289001036,1491644504,3477767631,3496721360,4012557807,2867154858,4212583931,1137018435,1305975373,861234739,2241073541,1171229253,4178635257,33948674,2139225727,1357946960,1011120188,2679776671,2833468328,1374921297,2751356323,1086357568,2408187279,2460827538,2646352285,944271416,4110742005,3168756668,3066132406,3665145818,560153121,271589392,4279952895,4077846003,3530407890,3444343245,202643468,322250259,3962553324,1608629855,2543990167,1154254916,389623319,3294073796,2817676711,2122513534,1028094525,1689045092,1575467613,422261273,1939203699,1621147744,2174228865,1339137615,3699352540,577127458,712922154,2427141008,2290289544,1187679302,3995715566,3100863416,339486740,3732514782,1591917662,186455563,3681988059,3762019296,844522546,978220090,169743370,1239126601,101321734,611076132,1558493276,3260915650,3547250131,2901361580,1655096418,2443721105,2510565781,3828863972,2039214713,3878868455,3359869896,928607799,1840765549,2374762893,3580146133,1322425422,2850048425,1823791212,1459268694,4094161908,3928346602,1706019429,2056189050,2934523822,135794696,3134549946,2022240376,628050469,779246638,472135708,2800834470,3032970164,3327236038,3894660072,3715932637,1956440180,522272287,1272813131,3185336765,2340818315,2323976074,1888542832,1044544574,3049550261,1722469478,1222152264,50660867,4127324150,236067854,1638122081,895445557,1475980887,3117443513,2257655686,3243809217,489110045,2662934430,3778599393,4162055160,2561878936,288563729,1773916777,3648039385,2391345038,2493985684,2612407707,505560094,2274497927,3911240169,3460925390,1442818645,678973480,3749357023,2358182796,2717407649,2306869641,219617805,3218761151,3862026214,1120306242,1756942440,1103331905,2578459033,762796589,252780047,2966125488,1425844308,3151392187,372911126],m=[1667474886,2088535288,2004326894,2071694838,4075949567,1802223062,1869591006,3318043793,808472672,16843522,1734846926,724270422,4278065639,3621216949,2880169549,1987484396,3402253711,2189597983,3385409673,2105378810,4210693615,1499065266,1195886990,4042263547,2913856577,3570689971,2728590687,2947541573,2627518243,2762274643,1920112356,3233831835,3082273397,4261223649,2475929149,640051788,909531756,1061110142,4160160501,3435941763,875846760,2779116625,3857003729,4059105529,1903268834,3638064043,825316194,353713962,67374088,3351728789,589522246,3284360861,404236336,2526454071,84217610,2593830191,117901582,303183396,2155911963,3806477791,3958056653,656894286,2998062463,1970642922,151591698,2206440989,741110872,437923380,454765878,1852748508,1515908788,2694904667,1381168804,993742198,3604373943,3014905469,690584402,3823320797,791638366,2223281939,1398011302,3520161977,0,3991743681,538992704,4244381667,2981218425,1532751286,1785380564,3419096717,3200178535,960056178,1246420628,1280103576,1482221744,3486468741,3503319995,4025428677,2863326543,4227536621,1128514950,1296947098,859002214,2240123921,1162203018,4193849577,33687044,2139062782,1347481760,1010582648,2678045221,2829640523,1364325282,2745433693,1077985408,2408548869,2459086143,2644360225,943212656,4126475505,3166494563,3065430391,3671750063,555836226,269496352,4294908645,4092792573,3537006015,3452783745,202118168,320025894,3974901699,1600119230,2543297077,1145359496,387397934,3301201811,2812801621,2122220284,1027426170,1684319432,1566435258,421079858,1936954854,1616945344,2172753945,1330631070,3705438115,572679748,707427924,2425400123,2290647819,1179044492,4008585671,3099120491,336870440,3739122087,1583276732,185277718,3688593069,3772791771,842159716,976899700,168435220,1229577106,101059084,606366792,1549591736,3267517855,3553849021,2897014595,1650632388,2442242105,2509612081,3840161747,2038008818,3890688725,3368567691,926374254,1835907034,2374863873,3587531953,1313788572,2846482505,1819063512,1448540844,4109633523,3941213647,1701162954,2054852340,2930698567,134748176,3132806511,2021165296,623210314,774795868,471606328,2795958615,3031746419,3334885783,3907527627,3722280097,1953799400,522133822,1263263126,3183336545,2341176845,2324333839,1886425312,1044267644,3048588401,1718004428,1212733584,50529542,4143317495,235803164,1633788866,892690282,1465383342,3115962473,2256965911,3250673817,488449850,2661202215,3789633753,4177007595,2560144171,286339874,1768537042,3654906025,2391705863,2492770099,2610673197,505291324,2273808917,3924369609,3469625735,1431699370,673740880,3755965093,2358021891,2711746649,2307489801,218961690,3217021541,3873845719,1111672452,1751693520,1094828930,2576986153,757954394,252645662,2964376443,1414855848,3149649517,370555436],g=[1374988112,2118214995,437757123,975658646,1001089995,530400753,2902087851,1273168787,540080725,2910219766,2295101073,4110568485,1340463100,3307916247,641025152,3043140495,3736164937,632953703,1172967064,1576976609,3274667266,2169303058,2370213795,1809054150,59727847,361929877,3211623147,2505202138,3569255213,1484005843,1239443753,2395588676,1975683434,4102977912,2572697195,666464733,3202437046,4035489047,3374361702,2110667444,1675577880,3843699074,2538681184,1649639237,2976151520,3144396420,4269907996,4178062228,1883793496,2403728665,2497604743,1383856311,2876494627,1917518562,3810496343,1716890410,3001755655,800440835,2261089178,3543599269,807962610,599762354,33778362,3977675356,2328828971,2809771154,4077384432,1315562145,1708848333,101039829,3509871135,3299278474,875451293,2733856160,92987698,2767645557,193195065,1080094634,1584504582,3178106961,1042385657,2531067453,3711829422,1306967366,2438237621,1908694277,67556463,1615861247,429456164,3602770327,2302690252,1742315127,2968011453,126454664,3877198648,2043211483,2709260871,2084704233,4169408201,0,159417987,841739592,504459436,1817866830,4245618683,260388950,1034867998,908933415,168810852,1750902305,2606453969,607530554,202008497,2472011535,3035535058,463180190,2160117071,1641816226,1517767529,470948374,3801332234,3231722213,1008918595,303765277,235474187,4069246893,766945465,337553864,1475418501,2943682380,4003061179,2743034109,4144047775,1551037884,1147550661,1543208500,2336434550,3408119516,3069049960,3102011747,3610369226,1113818384,328671808,2227573024,2236228733,3535486456,2935566865,3341394285,496906059,3702665459,226906860,2009195472,733156972,2842737049,294930682,1206477858,2835123396,2700099354,1451044056,573804783,2269728455,3644379585,2362090238,2564033334,2801107407,2776292904,3669462566,1068351396,742039012,1350078989,1784663195,1417561698,4136440770,2430122216,775550814,2193862645,2673705150,1775276924,1876241833,3475313331,3366754619,270040487,3902563182,3678124923,3441850377,1851332852,3969562369,2203032232,3868552805,2868897406,566021896,4011190502,3135740889,1248802510,3936291284,699432150,832877231,708780849,3332740144,899835584,1951317047,4236429990,3767586992,866637845,4043610186,1106041591,2144161806,395441711,1984812685,1139781709,3433712980,3835036895,2664543715,1282050075,3240894392,1181045119,2640243204,25965917,4203181171,4211818798,3009879386,2463879762,3910161971,1842759443,2597806476,933301370,1509430414,3943906441,3467192302,3076639029,3776767469,2051518780,2631065433,1441952575,404016761,1942435775,1408749034,1610459739,3745345300,2017778566,3400528769,3110650942,941896748,3265478751,371049330,3168937228,675039627,4279080257,967311729,135050206,3635733660,1683407248,2076935265,3576870512,1215061108,3501741890],b=[1347548327,1400783205,3273267108,2520393566,3409685355,4045380933,2880240216,2471224067,1428173050,4138563181,2441661558,636813900,4233094615,3620022987,2149987652,2411029155,1239331162,1730525723,2554718734,3781033664,46346101,310463728,2743944855,3328955385,3875770207,2501218972,3955191162,3667219033,768917123,3545789473,692707433,1150208456,1786102409,2029293177,1805211710,3710368113,3065962831,401639597,1724457132,3028143674,409198410,2196052529,1620529459,1164071807,3769721975,2226875310,486441376,2499348523,1483753576,428819965,2274680428,3075636216,598438867,3799141122,1474502543,711349675,129166120,53458370,2592523643,2782082824,4063242375,2988687269,3120694122,1559041666,730517276,2460449204,4042459122,2706270690,3446004468,3573941694,533804130,2328143614,2637442643,2695033685,839224033,1973745387,957055980,2856345839,106852767,1371368976,4181598602,1033297158,2933734917,1179510461,3046200461,91341917,1862534868,4284502037,605657339,2547432937,3431546947,2003294622,3182487618,2282195339,954669403,3682191598,1201765386,3917234703,3388507166,0,2198438022,1211247597,2887651696,1315723890,4227665663,1443857720,507358933,657861945,1678381017,560487590,3516619604,975451694,2970356327,261314535,3535072918,2652609425,1333838021,2724322336,1767536459,370938394,182621114,3854606378,1128014560,487725847,185469197,2918353863,3106780840,3356761769,2237133081,1286567175,3152976349,4255350624,2683765030,3160175349,3309594171,878443390,1988838185,3704300486,1756818940,1673061617,3403100636,272786309,1075025698,545572369,2105887268,4174560061,296679730,1841768865,1260232239,4091327024,3960309330,3497509347,1814803222,2578018489,4195456072,575138148,3299409036,446754879,3629546796,4011996048,3347532110,3252238545,4270639778,915985419,3483825537,681933534,651868046,2755636671,3828103837,223377554,2607439820,1649704518,3270937875,3901806776,1580087799,4118987695,3198115200,2087309459,2842678573,3016697106,1003007129,2802849917,1860738147,2077965243,164439672,4100872472,32283319,2827177882,1709610350,2125135846,136428751,3874428392,3652904859,3460984630,3572145929,3593056380,2939266226,824852259,818324884,3224740454,930369212,2801566410,2967507152,355706840,1257309336,4148292826,243256656,790073846,2373340630,1296297904,1422699085,3756299780,3818836405,457992840,3099667487,2135319889,77422314,1560382517,1945798516,788204353,1521706781,1385356242,870912086,325965383,2358957921,2050466060,2388260884,2313884476,4006521127,901210569,3990953189,1014646705,1503449823,1062597235,2031621326,3212035895,3931371469,1533017514,350174575,2256028891,2177544179,1052338372,741876788,1606591296,1914052035,213705253,2334669897,1107234197,1899603969,3725069491,2631447780,2422494913,1635502980,1893020342,1950903388,1120974935],y=[2807058932,1699970625,2764249623,1586903591,1808481195,1173430173,1487645946,59984867,4199882800,1844882806,1989249228,1277555970,3623636965,3419915562,1149249077,2744104290,1514790577,459744698,244860394,3235995134,1963115311,4027744588,2544078150,4190530515,1608975247,2627016082,2062270317,1507497298,2200818878,567498868,1764313568,3359936201,2305455554,2037970062,1047239e3,1910319033,1337376481,2904027272,2892417312,984907214,1243112415,830661914,861968209,2135253587,2011214180,2927934315,2686254721,731183368,1750626376,4246310725,1820824798,4172763771,3542330227,48394827,2404901663,2871682645,671593195,3254988725,2073724613,145085239,2280796200,2779915199,1790575107,2187128086,472615631,3029510009,4075877127,3802222185,4107101658,3201631749,1646252340,4270507174,1402811438,1436590835,3778151818,3950355702,3963161475,4020912224,2667994737,273792366,2331590177,104699613,95345982,3175501286,2377486676,1560637892,3564045318,369057872,4213447064,3919042237,1137477952,2658625497,1119727848,2340947849,1530455833,4007360968,172466556,266959938,516552836,0,2256734592,3980931627,1890328081,1917742170,4294704398,945164165,3575528878,958871085,3647212047,2787207260,1423022939,775562294,1739656202,3876557655,2530391278,2443058075,3310321856,547512796,1265195639,437656594,3121275539,719700128,3762502690,387781147,218828297,3350065803,2830708150,2848461854,428169201,122466165,3720081049,1627235199,648017665,4122762354,1002783846,2117360635,695634755,3336358691,4234721005,4049844452,3704280881,2232435299,574624663,287343814,612205898,1039717051,840019705,2708326185,793451934,821288114,1391201670,3822090177,376187827,3113855344,1224348052,1679968233,2361698556,1058709744,752375421,2431590963,1321699145,3519142200,2734591178,188127444,2177869557,3727205754,2384911031,3215212461,2648976442,2450346104,3432737375,1180849278,331544205,3102249176,4150144569,2952102595,2159976285,2474404304,766078933,313773861,2570832044,2108100632,1668212892,3145456443,2013908262,418672217,3070356634,2594734927,1852171925,3867060991,3473416636,3907448597,2614737639,919489135,164948639,2094410160,2997825956,590424639,2486224549,1723872674,3157750862,3399941250,3501252752,3625268135,2555048196,3673637356,1343127501,4130281361,3599595085,2957853679,1297403050,81781910,3051593425,2283490410,532201772,1367295589,3926170974,895287692,1953757831,1093597963,492483431,3528626907,1446242576,1192455638,1636604631,209336225,344873464,1015671571,669961897,3375740769,3857572124,2973530695,3747192018,1933530610,3464042516,935293895,3454686199,2858115069,1863638845,3683022916,4085369519,3292445032,875313188,1080017571,3279033885,621591778,1233856572,2504130317,24197544,3017672716,3835484340,3247465558,2220981195,3060847922,1551124588,1463996600],k=[4104605777,1097159550,396673818,660510266,2875968315,2638606623,4200115116,3808662347,821712160,1986918061,3430322568,38544885,3856137295,718002117,893681702,1654886325,2975484382,3122358053,3926825029,4274053469,796197571,1290801793,1184342925,3556361835,2405426947,2459735317,1836772287,1381620373,3196267988,1948373848,3764988233,3385345166,3263785589,2390325492,1480485785,3111247143,3780097726,2293045232,548169417,3459953789,3746175075,439452389,1362321559,1400849762,1685577905,1806599355,2174754046,137073913,1214797936,1174215055,3731654548,2079897426,1943217067,1258480242,529487843,1437280870,3945269170,3049390895,3313212038,923313619,679998e3,3215307299,57326082,377642221,3474729866,2041877159,133361907,1776460110,3673476453,96392454,878845905,2801699524,777231668,4082475170,2330014213,4142626212,2213296395,1626319424,1906247262,1846563261,562755902,3708173718,1040559837,3871163981,1418573201,3294430577,114585348,1343618912,2566595609,3186202582,1078185097,3651041127,3896688048,2307622919,425408743,3371096953,2081048481,1108339068,2216610296,0,2156299017,736970802,292596766,1517440620,251657213,2235061775,2933202493,758720310,265905162,1554391400,1532285339,908999204,174567692,1474760595,4002861748,2610011675,3234156416,3693126241,2001430874,303699484,2478443234,2687165888,585122620,454499602,151849742,2345119218,3064510765,514443284,4044981591,1963412655,2581445614,2137062819,19308535,1928707164,1715193156,4219352155,1126790795,600235211,3992742070,3841024952,836553431,1669664834,2535604243,3323011204,1243905413,3141400786,4180808110,698445255,2653899549,2989552604,2253581325,3252932727,3004591147,1891211689,2487810577,3915653703,4237083816,4030667424,2100090966,865136418,1229899655,953270745,3399679628,3557504664,4118925222,2061379749,3079546586,2915017791,983426092,2022837584,1607244650,2118541908,2366882550,3635996816,972512814,3283088770,1568718495,3499326569,3576539503,621982671,2895723464,410887952,2623762152,1002142683,645401037,1494807662,2595684844,1335535747,2507040230,4293295786,3167684641,367585007,3885750714,1865862730,2668221674,2960971305,2763173681,1059270954,2777952454,2724642869,1320957812,2194319100,2429595872,2815956275,77089521,3973773121,3444575871,2448830231,1305906550,4021308739,2857194700,2516901860,3518358430,1787304780,740276417,1699839814,1592394909,2352307457,2272556026,188821243,1729977011,3687994002,274084841,3594982253,3613494426,2701949495,4162096729,322734571,2837966542,1640576439,484830689,1202797690,3537852828,4067639125,349075736,3342319475,4157467219,4255800159,1030690015,1155237496,2951971274,1757691577,607398968,2738905026,499347990,3794078908,1011452712,227885567,2818666809,213114376,3034881240,1455525988,3414450555,850817237,1817998408,3092726480],w=[0,235474187,470948374,303765277,941896748,908933415,607530554,708780849,1883793496,2118214995,1817866830,1649639237,1215061108,1181045119,1417561698,1517767529,3767586992,4003061179,4236429990,4069246893,3635733660,3602770327,3299278474,3400528769,2430122216,2664543715,2362090238,2193862645,2835123396,2801107407,3035535058,3135740889,3678124923,3576870512,3341394285,3374361702,3810496343,3977675356,4279080257,4043610186,2876494627,2776292904,3076639029,3110650942,2472011535,2640243204,2403728665,2169303058,1001089995,899835584,666464733,699432150,59727847,226906860,530400753,294930682,1273168787,1172967064,1475418501,1509430414,1942435775,2110667444,1876241833,1641816226,2910219766,2743034109,2976151520,3211623147,2505202138,2606453969,2302690252,2269728455,3711829422,3543599269,3240894392,3475313331,3843699074,3943906441,4178062228,4144047775,1306967366,1139781709,1374988112,1610459739,1975683434,2076935265,1775276924,1742315127,1034867998,866637845,566021896,800440835,92987698,193195065,429456164,395441711,1984812685,2017778566,1784663195,1683407248,1315562145,1080094634,1383856311,1551037884,101039829,135050206,437757123,337553864,1042385657,807962610,573804783,742039012,2531067453,2564033334,2328828971,2227573024,2935566865,2700099354,3001755655,3168937228,3868552805,3902563182,4203181171,4102977912,3736164937,3501741890,3265478751,3433712980,1106041591,1340463100,1576976609,1408749034,2043211483,2009195472,1708848333,1809054150,832877231,1068351396,766945465,599762354,159417987,126454664,361929877,463180190,2709260871,2943682380,3178106961,3009879386,2572697195,2538681184,2236228733,2336434550,3509871135,3745345300,3441850377,3274667266,3910161971,3877198648,4110568485,4211818798,2597806476,2497604743,2261089178,2295101073,2733856160,2902087851,3202437046,2968011453,3936291284,3835036895,4136440770,4169408201,3535486456,3702665459,3467192302,3231722213,2051518780,1951317047,1716890410,1750902305,1113818384,1282050075,1584504582,1350078989,168810852,67556463,371049330,404016761,841739592,1008918595,775550814,540080725,3969562369,3801332234,4035489047,4269907996,3569255213,3669462566,3366754619,3332740144,2631065433,2463879762,2160117071,2395588676,2767645557,2868897406,3102011747,3069049960,202008497,33778362,270040487,504459436,875451293,975658646,675039627,641025152,2084704233,1917518562,1615861247,1851332852,1147550661,1248802510,1484005843,1451044056,933301370,967311729,733156972,632953703,260388950,25965917,328671808,496906059,1206477858,1239443753,1543208500,1441952575,2144161806,1908694277,1675577880,1842759443,3610369226,3644379585,3408119516,3307916247,4011190502,3776767469,4077384432,4245618683,2809771154,2842737049,3144396420,3043140495,2673705150,2438237621,2203032232,2370213795],T=[0,185469197,370938394,487725847,741876788,657861945,975451694,824852259,1483753576,1400783205,1315723890,1164071807,1950903388,2135319889,1649704518,1767536459,2967507152,3152976349,2801566410,2918353863,2631447780,2547432937,2328143614,2177544179,3901806776,3818836405,4270639778,4118987695,3299409036,3483825537,3535072918,3652904859,2077965243,1893020342,1841768865,1724457132,1474502543,1559041666,1107234197,1257309336,598438867,681933534,901210569,1052338372,261314535,77422314,428819965,310463728,3409685355,3224740454,3710368113,3593056380,3875770207,3960309330,4045380933,4195456072,2471224067,2554718734,2237133081,2388260884,3212035895,3028143674,2842678573,2724322336,4138563181,4255350624,3769721975,3955191162,3667219033,3516619604,3431546947,3347532110,2933734917,2782082824,3099667487,3016697106,2196052529,2313884476,2499348523,2683765030,1179510461,1296297904,1347548327,1533017514,1786102409,1635502980,2087309459,2003294622,507358933,355706840,136428751,53458370,839224033,957055980,605657339,790073846,2373340630,2256028891,2607439820,2422494913,2706270690,2856345839,3075636216,3160175349,3573941694,3725069491,3273267108,3356761769,4181598602,4063242375,4011996048,3828103837,1033297158,915985419,730517276,545572369,296679730,446754879,129166120,213705253,1709610350,1860738147,1945798516,2029293177,1239331162,1120974935,1606591296,1422699085,4148292826,4233094615,3781033664,3931371469,3682191598,3497509347,3446004468,3328955385,2939266226,2755636671,3106780840,2988687269,2198438022,2282195339,2501218972,2652609425,1201765386,1286567175,1371368976,1521706781,1805211710,1620529459,2105887268,1988838185,533804130,350174575,164439672,46346101,870912086,954669403,636813900,788204353,2358957921,2274680428,2592523643,2441661558,2695033685,2880240216,3065962831,3182487618,3572145929,3756299780,3270937875,3388507166,4174560061,4091327024,4006521127,3854606378,1014646705,930369212,711349675,560487590,272786309,457992840,106852767,223377554,1678381017,1862534868,1914052035,2031621326,1211247597,1128014560,1580087799,1428173050,32283319,182621114,401639597,486441376,768917123,651868046,1003007129,818324884,1503449823,1385356242,1333838021,1150208456,1973745387,2125135846,1673061617,1756818940,2970356327,3120694122,2802849917,2887651696,2637442643,2520393566,2334669897,2149987652,3917234703,3799141122,4284502037,4100872472,3309594171,3460984630,3545789473,3629546796,2050466060,1899603969,1814803222,1730525723,1443857720,1560382517,1075025698,1260232239,575138148,692707433,878443390,1062597235,243256656,91341917,409198410,325965383,3403100636,3252238545,3704300486,3620022987,3874428392,3990953189,4042459122,4227665663,2460449204,2578018489,2226875310,2411029155,3198115200,3046200461,2827177882,2743944855],E=[0,218828297,437656594,387781147,875313188,958871085,775562294,590424639,1750626376,1699970625,1917742170,2135253587,1551124588,1367295589,1180849278,1265195639,3501252752,3720081049,3399941250,3350065803,3835484340,3919042237,4270507174,4085369519,3102249176,3051593425,2734591178,2952102595,2361698556,2177869557,2530391278,2614737639,3145456443,3060847922,2708326185,2892417312,2404901663,2187128086,2504130317,2555048196,3542330227,3727205754,3375740769,3292445032,3876557655,3926170974,4246310725,4027744588,1808481195,1723872674,1910319033,2094410160,1608975247,1391201670,1173430173,1224348052,59984867,244860394,428169201,344873464,935293895,984907214,766078933,547512796,1844882806,1627235199,2011214180,2062270317,1507497298,1423022939,1137477952,1321699145,95345982,145085239,532201772,313773861,830661914,1015671571,731183368,648017665,3175501286,2957853679,2807058932,2858115069,2305455554,2220981195,2474404304,2658625497,3575528878,3625268135,3473416636,3254988725,3778151818,3963161475,4213447064,4130281361,3599595085,3683022916,3432737375,3247465558,3802222185,4020912224,4172763771,4122762354,3201631749,3017672716,2764249623,2848461854,2331590177,2280796200,2431590963,2648976442,104699613,188127444,472615631,287343814,840019705,1058709744,671593195,621591778,1852171925,1668212892,1953757831,2037970062,1514790577,1463996600,1080017571,1297403050,3673637356,3623636965,3235995134,3454686199,4007360968,3822090177,4107101658,4190530515,2997825956,3215212461,2830708150,2779915199,2256734592,2340947849,2627016082,2443058075,172466556,122466165,273792366,492483431,1047239e3,861968209,612205898,695634755,1646252340,1863638845,2013908262,1963115311,1446242576,1530455833,1277555970,1093597963,1636604631,1820824798,2073724613,1989249228,1436590835,1487645946,1337376481,1119727848,164948639,81781910,331544205,516552836,1039717051,821288114,669961897,719700128,2973530695,3157750862,2871682645,2787207260,2232435299,2283490410,2667994737,2450346104,3647212047,3564045318,3279033885,3464042516,3980931627,3762502690,4150144569,4199882800,3070356634,3121275539,2904027272,2686254721,2200818878,2384911031,2570832044,2486224549,3747192018,3528626907,3310321856,3359936201,3950355702,3867060991,4049844452,4234721005,1739656202,1790575107,2108100632,1890328081,1402811438,1586903591,1233856572,1149249077,266959938,48394827,369057872,418672217,1002783846,919489135,567498868,752375421,209336225,24197544,376187827,459744698,945164165,895287692,574624663,793451934,1679968233,1764313568,2117360635,1933530610,1343127501,1560637892,1243112415,1192455638,3704280881,3519142200,3336358691,3419915562,3907448597,3857572124,4075877127,4294704398,3029510009,3113855344,2927934315,2744104290,2159976285,2377486676,2594734927,2544078150],S=[0,151849742,303699484,454499602,607398968,758720310,908999204,1059270954,1214797936,1097159550,1517440620,1400849762,1817998408,1699839814,2118541908,2001430874,2429595872,2581445614,2194319100,2345119218,3034881240,3186202582,2801699524,2951971274,3635996816,3518358430,3399679628,3283088770,4237083816,4118925222,4002861748,3885750714,1002142683,850817237,698445255,548169417,529487843,377642221,227885567,77089521,1943217067,2061379749,1640576439,1757691577,1474760595,1592394909,1174215055,1290801793,2875968315,2724642869,3111247143,2960971305,2405426947,2253581325,2638606623,2487810577,3808662347,3926825029,4044981591,4162096729,3342319475,3459953789,3576539503,3693126241,1986918061,2137062819,1685577905,1836772287,1381620373,1532285339,1078185097,1229899655,1040559837,923313619,740276417,621982671,439452389,322734571,137073913,19308535,3871163981,4021308739,4104605777,4255800159,3263785589,3414450555,3499326569,3651041127,2933202493,2815956275,3167684641,3049390895,2330014213,2213296395,2566595609,2448830231,1305906550,1155237496,1607244650,1455525988,1776460110,1626319424,2079897426,1928707164,96392454,213114376,396673818,514443284,562755902,679998e3,865136418,983426092,3708173718,3557504664,3474729866,3323011204,4180808110,4030667424,3945269170,3794078908,2507040230,2623762152,2272556026,2390325492,2975484382,3092726480,2738905026,2857194700,3973773121,3856137295,4274053469,4157467219,3371096953,3252932727,3673476453,3556361835,2763173681,2915017791,3064510765,3215307299,2156299017,2307622919,2459735317,2610011675,2081048481,1963412655,1846563261,1729977011,1480485785,1362321559,1243905413,1126790795,878845905,1030690015,645401037,796197571,274084841,425408743,38544885,188821243,3613494426,3731654548,3313212038,3430322568,4082475170,4200115116,3780097726,3896688048,2668221674,2516901860,2366882550,2216610296,3141400786,2989552604,2837966542,2687165888,1202797690,1320957812,1437280870,1554391400,1669664834,1787304780,1906247262,2022837584,265905162,114585348,499347990,349075736,736970802,585122620,972512814,821712160,2595684844,2478443234,2293045232,2174754046,3196267988,3079546586,2895723464,2777952454,3537852828,3687994002,3234156416,3385345166,4142626212,4293295786,3841024952,3992742070,174567692,57326082,410887952,292596766,777231668,660510266,1011452712,893681702,1108339068,1258480242,1343618912,1494807662,1715193156,1865862730,1948373848,2100090966,2701949495,2818666809,3004591147,3122358053,2235061775,2352307457,2535604243,2653899549,3915653703,3764988233,4219352155,4067639125,3444575871,3294430577,3746175075,3594982253,836553431,953270745,600235211,718002117,367585007,484830689,133361907,251657213,2041877159,1891211689,1806599355,1654886325,1568718495,1418573201,1335535747,1184342925];function A(e){for(var t=[],r=0;r<e.length;r+=4)t.push(e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]);return t}var M=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");Object.defineProperty(this,"key",{value:o(t,!0)}),this._prepare()};M.prototype._prepare=function(){var e=l[this.key.length];if(null==e)throw new Error("invalid key size (must be 16, 24 or 32 bytes)");this._Ke=[],this._Kd=[];for(var t=0;t<=e;t++)this._Ke.push([0,0,0,0]),this._Kd.push([0,0,0,0]);var r,n=4*(e+1),o=this.key.length/4,i=A(this.key);for(t=0;t<o;t++)r=t>>2,this._Ke[r][t%4]=i[t],this._Kd[e-r][t%4]=i[t];for(var a,u=0,s=o;s<n;){if(a=i[o-1],i[0]^=f[a>>16&255]<<24^f[a>>8&255]<<16^f[255&a]<<8^f[a>>24&255]^c[u]<<24,u+=1,8!=o)for(t=1;t<o;t++)i[t]^=i[t-1];else{for(t=1;t<o/2;t++)i[t]^=i[t-1];a=i[o/2-1],i[o/2]^=f[255&a]^f[a>>8&255]<<8^f[a>>16&255]<<16^f[a>>24&255]<<24;for(t=o/2+1;t<o;t++)i[t]^=i[t-1]}for(t=0;t<o&&s<n;)h=s>>2,d=s%4,this._Ke[h][d]=i[t],this._Kd[e-h][d]=i[t++],s++}for(var h=1;h<e;h++)for(var d=0;d<4;d++)a=this._Kd[h][d],this._Kd[h][d]=w[a>>24&255]^T[a>>16&255]^E[a>>8&255]^S[255&a]},M.prototype.encrypt=function(e){if(16!=e.length)throw new Error("invalid plaintext size (must be 16 bytes)");for(var t=this._Ke.length-1,r=[0,0,0,0],n=A(e),o=0;o<4;o++)n[o]^=this._Ke[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)r[o]=d[n[o]>>24&255]^p[n[(o+1)%4]>>16&255]^v[n[(o+2)%4]>>8&255]^m[255&n[(o+3)%4]]^this._Ke[a][o];n=r.slice()}var u,s=i(16);for(o=0;o<4;o++)u=this._Ke[t][o],s[4*o]=255&(f[n[o]>>24&255]^u>>24),s[4*o+1]=255&(f[n[(o+1)%4]>>16&255]^u>>16),s[4*o+2]=255&(f[n[(o+2)%4]>>8&255]^u>>8),s[4*o+3]=255&(f[255&n[(o+3)%4]]^u);return s},M.prototype.decrypt=function(e){if(16!=e.length)throw new Error("invalid ciphertext size (must be 16 bytes)");for(var t=this._Kd.length-1,r=[0,0,0,0],n=A(e),o=0;o<4;o++)n[o]^=this._Kd[0][o];for(var a=1;a<t;a++){for(o=0;o<4;o++)r[o]=g[n[o]>>24&255]^b[n[(o+3)%4]>>16&255]^y[n[(o+2)%4]>>8&255]^k[255&n[(o+1)%4]]^this._Kd[a][o];n=r.slice()}var u,s=i(16);for(o=0;o<4;o++)u=this._Kd[t][o],s[4*o]=255&(h[n[o]>>24&255]^u>>24),s[4*o+1]=255&(h[n[(o+3)%4]>>16&255]^u>>16),s[4*o+2]=255&(h[n[(o+2)%4]>>8&255]^u>>8),s[4*o+3]=255&(h[255&n[(o+1)%4]]^u);return s};var P=function e(t){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Electronic Code Block",this.name="ecb",this._aes=new M(t)};P.prototype.encrypt=function(e){if((e=o(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.encrypt(r),t,n);return t},P.prototype.decrypt=function(e){if((e=o(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16)a(e,r,0,n,n+16),a(r=this._aes.decrypt(r),t,n);return t};var C=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Block Chaining",this.name="cbc",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else r=i(16);this._lastCipherblock=o(r,!0),this._aes=new M(t)};C.prototype.encrypt=function(e){if((e=o(e)).length%16!==0)throw new Error("invalid plaintext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16);for(var u=0;u<16;u++)r[u]^=this._lastCipherblock[u];this._lastCipherblock=this._aes.encrypt(r),a(this._lastCipherblock,t,n)}return t},C.prototype.decrypt=function(e){if((e=o(e)).length%16!==0)throw new Error("invalid ciphertext size (must be multiple of 16 bytes)");for(var t=i(e.length),r=i(16),n=0;n<e.length;n+=16){a(e,r,0,n,n+16),r=this._aes.decrypt(r);for(var u=0;u<16;u++)t[n+u]=r[u]^this._lastCipherblock[u];a(e,this._lastCipherblock,0,n,n+16)}return t};var O=function e(t,r,n){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Cipher Feedback",this.name="cfb",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 size)")}else r=i(16);n||(n=1),this.segmentSize=n,this._shiftRegister=o(r,!0),this._aes=new M(t)};O.prototype.encrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid plaintext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(r,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r},O.prototype.decrypt=function(e){if(e.length%this.segmentSize!=0)throw new Error("invalid ciphertext size (must be segmentSize bytes)");for(var t,r=o(e,!0),n=0;n<r.length;n+=this.segmentSize){t=this._aes.encrypt(this._shiftRegister);for(var i=0;i<this.segmentSize;i++)r[n+i]^=t[i];a(this._shiftRegister,this._shiftRegister,0,this.segmentSize),a(e,this._shiftRegister,16-this.segmentSize,n,n+this.segmentSize)}return r};var x=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");if(this.description="Output Feedback",this.name="ofb",r){if(16!=r.length)throw new Error("invalid initialation vector size (must be 16 bytes)")}else r=i(16);this._lastPrecipher=o(r,!0),this._lastPrecipherIndex=16,this._aes=new M(t)};x.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._lastPrecipherIndex&&(this._lastPrecipher=this._aes.encrypt(this._lastPrecipher),this._lastPrecipherIndex=0),t[r]^=this._lastPrecipher[this._lastPrecipherIndex++];return t},x.prototype.decrypt=x.prototype.encrypt;var F=function e(t){if(!(this instanceof e))throw Error("Counter must be instanitated with `new`");0===t||t||(t=1),"number"===typeof t?(this._counter=i(16),this.setValue(t)):this.setBytes(t)};F.prototype.setValue=function(e){if("number"!==typeof e||parseInt(e)!=e)throw new Error("invalid counter value (must be an integer)");for(var t=15;t>=0;--t)this._counter[t]=e%256,e>>=8},F.prototype.setBytes=function(e){if(16!=(e=o(e,!0)).length)throw new Error("invalid counter bytes size (must be 16 bytes)");this._counter=e},F.prototype.increment=function(){for(var e=15;e>=0;e--){if(255!==this._counter[e]){this._counter[e]++;break}this._counter[e]=0}};var L=function e(t,r){if(!(this instanceof e))throw Error("AES must be instanitated with `new`");this.description="Counter",this.name="ctr",r instanceof F||(r=new F(r)),this._counter=r,this._remainingCounter=null,this._remainingCounterIndex=16,this._aes=new M(t)};L.prototype.encrypt=function(e){for(var t=o(e,!0),r=0;r<t.length;r++)16===this._remainingCounterIndex&&(this._remainingCounter=this._aes.encrypt(this._counter._counter),this._remainingCounterIndex=0,this._counter.increment()),t[r]^=this._remainingCounter[this._remainingCounterIndex++];return t},L.prototype.decrypt=L.prototype.encrypt;var B={AES:M,Counter:F,ModeOfOperation:{ecb:P,cbc:C,cfb:O,ofb:x,ctr:L},utils:{hex:s,utf8:u},padding:{pkcs7:{pad:function(e){var t=16-(e=o(e,!0)).length%16,r=i(e.length+t);a(e,r);for(var n=e.length;n<r.length;n++)r[n]=t;return r},strip:function(e){if((e=o(e,!0)).length<16)throw new Error("PKCS#7 invalid length");var t=e[e.length-1];if(t>16)throw new Error("PKCS#7 padding byte out of range");for(var r=e.length-t,n=0;n<t;n++)if(e[r+n]!==t)throw new Error("PKCS#7 invalid padding byte");var u=i(r);return a(e,u,0,0,r),u}}},_arrayTest:{coerceArray:o,createArray:i,copyArray:a}};e.exports=B}()},function(e,t,r){"use strict";var n=r(17),o=r(52);function i(e,t){return 55296===(64512&e.charCodeAt(t))&&(!(t<0||t+1>=e.length)&&56320===(64512&e.charCodeAt(t+1)))}function a(e){return(e>>>24|e>>>8&65280|e<<8&16711680|(255&e)<<24)>>>0}function u(e){return 1===e.length?"0"+e:e}function s(e){return 7===e.length?"0"+e:6===e.length?"00"+e:5===e.length?"000"+e:4===e.length?"0000"+e:3===e.length?"00000"+e:2===e.length?"000000"+e:1===e.length?"0000000"+e:e}t.inherits=o,t.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"===typeof e)if(t){if("hex"===t)for((e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e),o=0;o<e.length;o+=2)r.push(parseInt(e[o]+e[o+1],16))}else for(var n=0,o=0;o<e.length;o++){var a=e.charCodeAt(o);a<128?r[n++]=a:a<2048?(r[n++]=a>>6|192,r[n++]=63&a|128):i(e,o)?(a=65536+((1023&a)<<10)+(1023&e.charCodeAt(++o)),r[n++]=a>>18|240,r[n++]=a>>12&63|128,r[n++]=a>>6&63|128,r[n++]=63&a|128):(r[n++]=a>>12|224,r[n++]=a>>6&63|128,r[n++]=63&a|128)}else for(o=0;o<e.length;o++)r[o]=0|e[o];return r},t.toHex=function(e){for(var t="",r=0;r<e.length;r++)t+=u(e[r].toString(16));return t},t.htonl=a,t.toHex32=function(e,t){for(var r="",n=0;n<e.length;n++){var o=e[n];"little"===t&&(o=a(o)),r+=s(o.toString(16))}return r},t.zero2=u,t.zero8=s,t.join32=function(e,t,r,o){var i=r-t;n(i%4===0);for(var a=new Array(i/4),u=0,s=t;u<a.length;u++,s+=4){var l;l="big"===o?e[s]<<24|e[s+1]<<16|e[s+2]<<8|e[s+3]:e[s+3]<<24|e[s+2]<<16|e[s+1]<<8|e[s],a[u]=l>>>0}return a},t.split32=function(e,t){for(var r=new Array(4*e.length),n=0,o=0;n<e.length;n++,o+=4){var i=e[n];"big"===t?(r[o]=i>>>24,r[o+1]=i>>>16&255,r[o+2]=i>>>8&255,r[o+3]=255&i):(r[o+3]=i>>>24,r[o+2]=i>>>16&255,r[o+1]=i>>>8&255,r[o]=255&i)}return r},t.rotr32=function(e,t){return e>>>t|e<<32-t},t.rotl32=function(e,t){return e<<t|e>>>32-t},t.sum32=function(e,t){return e+t>>>0},t.sum32_3=function(e,t,r){return e+t+r>>>0},t.sum32_4=function(e,t,r,n){return e+t+r+n>>>0},t.sum32_5=function(e,t,r,n,o){return e+t+r+n+o>>>0},t.sum64=function(e,t,r,n){var o=e[t],i=n+e[t+1]>>>0,a=(i<n?1:0)+r+o;e[t]=a>>>0,e[t+1]=i},t.sum64_hi=function(e,t,r,n){return(t+n>>>0<t?1:0)+e+r>>>0},t.sum64_lo=function(e,t,r,n){return t+n>>>0},t.sum64_4_hi=function(e,t,r,n,o,i,a,u){var s=0,l=t;return s+=(l=l+n>>>0)<t?1:0,s+=(l=l+i>>>0)<i?1:0,e+r+o+a+(s+=(l=l+u>>>0)<u?1:0)>>>0},t.sum64_4_lo=function(e,t,r,n,o,i,a,u){return t+n+i+u>>>0},t.sum64_5_hi=function(e,t,r,n,o,i,a,u,s,l){var c=0,f=t;return c+=(f=f+n>>>0)<t?1:0,c+=(f=f+i>>>0)<i?1:0,c+=(f=f+u>>>0)<u?1:0,e+r+o+a+s+(c+=(f=f+l>>>0)<l?1:0)>>>0},t.sum64_5_lo=function(e,t,r,n,o,i,a,u,s,l){return t+n+i+u+l>>>0},t.rotr64_hi=function(e,t,r){return(t<<32-r|e>>>r)>>>0},t.rotr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0},t.shr64_hi=function(e,t,r){return e>>>r},t.shr64_lo=function(e,t,r){return(e<<32-r|t>>>r)>>>0}},function(e,t,r){"use strict";var n={};r.r(n),r.d(n,"encode",(function(){return oe})),r.d(n,"decode",(function(){return ue}));var o={};r.r(o),r.d(o,"AddressZero",(function(){return ei})),r.d(o,"NegativeOne",(function(){return ze})),r.d(o,"Zero",(function(){return Ve})),r.d(o,"One",(function(){return Ze})),r.d(o,"Two",(function(){return Ke})),r.d(o,"WeiPerEther",(function(){return Qe})),r.d(o,"MaxUint256",(function(){return qe})),r.d(o,"MinInt256",(function(){return We})),r.d(o,"MaxInt256",(function(){return Ye})),r.d(o,"HashZero",(function(){return ti})),r.d(o,"EtherSymbol",(function(){return ri}));var i={};r.r(i),r.d(i,"Provider",(function(){return Xt})),r.d(i,"BaseProvider",(function(){return ua})),r.d(i,"Resolver",(function(){return oa})),r.d(i,"UrlJsonRpcProvider",(function(){return Oa})),r.d(i,"FallbackProvider",(function(){return au})),r.d(i,"AlchemyProvider",(function(){return Ba})),r.d(i,"AlchemyWebSocketProvider",(function(){return La})),r.d(i,"CloudflareProvider",(function(){return Ja})),r.d(i,"EtherscanProvider",(function(){return Ga})),r.d(i,"InfuraProvider",(function(){return fu})),r.d(i,"InfuraWebSocketProvider",(function(){return cu})),r.d(i,"JsonRpcProvider",(function(){return ya})),r.d(i,"JsonRpcBatchProvider",(function(){return hu})),r.d(i,"NodesmithProvider",(function(){return pu})),r.d(i,"PocketProvider",(function(){return gu})),r.d(i,"StaticJsonRpcProvider",(function(){return Ca})),r.d(i,"Web3Provider",(function(){return wu})),r.d(i,"WebSocketProvider",(function(){return Aa})),r.d(i,"IpcProvider",(function(){return uu})),r.d(i,"JsonRpcSigner",(function(){return ma})),r.d(i,"getDefaultProvider",(function(){return Eu})),r.d(i,"getNetwork",(function(){return ci})),r.d(i,"isCommunityResource",(function(){return Hi})),r.d(i,"isCommunityResourcable",(function(){return Ui})),r.d(i,"showThrottleMessage",(function(){return zi})),r.d(i,"Formatter",(function(){return Xi}));var a={};r.r(a),r.d(a,"decode",(function(){return Pi})),r.d(a,"encode",(function(){return Ci}));var u={};r.r(u),r.d(u,"AbiCoder",(function(){return Ct})),r.d(u,"defaultAbiCoder",(function(){return Ot})),r.d(u,"Fragment",(function(){return ht})),r.d(u,"ConstructorFragment",(function(){return gt})),r.d(u,"ErrorFragment",(function(){return kt})),r.d(u,"EventFragment",(function(){return dt})),r.d(u,"FunctionFragment",(function(){return bt})),r.d(u,"ParamType",(function(){return ct})),r.d(u,"FormatTypes",(function(){return st})),r.d(u,"checkResultErrors",(function(){return K})),r.d(u,"Logger",(function(){return M.b})),r.d(u,"RLP",(function(){return n})),r.d(u,"_fetchData",(function(){return Ri})),r.d(u,"fetchJson",(function(){return Ji})),r.d(u,"poll",(function(){return _i})),r.d(u,"checkProperties",(function(){return X})),r.d(u,"deepCopy",(function(){return z})),r.d(u,"defineReadOnly",(function(){return D})),r.d(u,"getStatic",(function(){return I})),r.d(u,"resolveProperties",(function(){return j})),r.d(u,"shallowCopy",(function(){return U})),r.d(u,"arrayify",(function(){return E.a})),r.d(u,"concat",(function(){return E.b})),r.d(u,"stripZeros",(function(){return E.o})),r.d(u,"zeroPad",(function(){return E.p})),r.d(u,"isBytes",(function(){return E.j})),r.d(u,"isBytesLike",(function(){return E.k})),r.d(u,"defaultPath",(function(){return mo})),r.d(u,"HDNode",(function(){return go})),r.d(u,"SigningKey",(function(){return Yt})),r.d(u,"Interface",(function(){return _t})),r.d(u,"LogDescription",(function(){return Ft})),r.d(u,"TransactionDescription",(function(){return Lt})),r.d(u,"base58",(function(){return dn})),r.d(u,"base64",(function(){return a})),r.d(u,"hexlify",(function(){return E.i})),r.d(u,"isHexString",(function(){return E.l})),r.d(u,"hexConcat",(function(){return E.c})),r.d(u,"hexStripZeros",(function(){return E.f})),r.d(u,"hexValue",(function(){return E.g})),r.d(u,"hexZeroPad",(function(){return E.h})),r.d(u,"hexDataLength",(function(){return E.d})),r.d(u,"hexDataSlice",(function(){return E.e})),r.d(u,"nameprep",(function(){return wi})),r.d(u,"_toEscapedUtf8String",(function(){return Oe})),r.d(u,"toUtf8Bytes",(function(){return Pe})),r.d(u,"toUtf8CodePoints",(function(){return Le})),r.d(u,"toUtf8String",(function(){return Fe})),r.d(u,"Utf8ErrorFuncs",(function(){return Ae})),r.d(u,"formatBytes32String",(function(){return xu})),r.d(u,"parseBytes32String",(function(){return Fu})),r.d(u,"hashMessage",(function(){return Zr})),r.d(u,"namehash",(function(){return Mi})),r.d(u,"isValidName",(function(){return Ai})),r.d(u,"id",(function(){return Be})),r.d(u,"_TypedDataEncoder",(function(){return fn})),r.d(u,"getAddress",(function(){return me})),r.d(u,"getIcapAddress",(function(){return be})),r.d(u,"getContractAddress",(function(){return ye})),r.d(u,"getCreate2Address",(function(){return ke})),r.d(u,"isAddress",(function(){return ge})),r.d(u,"formatEther",(function(){return _u})),r.d(u,"parseEther",(function(){return Du})),r.d(u,"formatUnits",(function(){return Ru})),r.d(u,"parseUnits",(function(){return Ju})),r.d(u,"commify",(function(){return Nu})),r.d(u,"computeHmac",(function(){return kn})),r.d(u,"keccak256",(function(){return ee})),r.d(u,"ripemd160",(function(){return gn})),r.d(u,"sha256",(function(){return bn})),r.d(u,"sha512",(function(){return yn})),r.d(u,"randomBytes",(function(){return Eo.a})),r.d(u,"shuffled",(function(){return za})),r.d(u,"solidityPack",(function(){return Pu})),r.d(u,"solidityKeccak256",(function(){return Cu})),r.d(u,"soliditySha256",(function(){return Ou})),r.d(u,"splitSignature",(function(){return E.n})),r.d(u,"joinSignature",(function(){return E.m})),r.d(u,"accessListify",(function(){return fr})),r.d(u,"parseTransaction",(function(){return gr})),r.d(u,"serializeTransaction",(function(){return vr})),r.d(u,"TransactionTypes",(function(){return tr})),r.d(u,"getJsonWalletAddress",(function(){return Vo})),r.d(u,"computeAddress",(function(){return ur})),r.d(u,"recoverAddress",(function(){return sr})),r.d(u,"computePublicKey",(function(){return er})),r.d(u,"recoverPublicKey",(function(){return $t})),r.d(u,"verifyMessage",(function(){return Yo})),r.d(u,"verifyTypedData",(function(){return $o})),r.d(u,"getAccountPath",(function(){return To})),r.d(u,"mnemonicToEntropy",(function(){return yo})),r.d(u,"entropyToMnemonic",(function(){return ko})),r.d(u,"isValidMnemonic",(function(){return wo})),r.d(u,"mnemonicToSeed",(function(){return bo})),r.d(u,"SupportedAlgorithm",(function(){return cn})),r.d(u,"UnicodeNormalizationForm",(function(){return we})),r.d(u,"Utf8ErrorReason",(function(){return Te})),r.d(u,"Indexed",(function(){return Nt}));var s={};r.r(s),r.d(s,"Signer",(function(){return Vt})),r.d(s,"Wallet",(function(){return Wo})),r.d(s,"VoidSigner",(function(){return Zt})),r.d(s,"getDefaultProvider",(function(){return Eu})),r.d(s,"providers",(function(){return i})),r.d(s,"BaseContract",(function(){return Fr})),r.d(s,"Contract",(function(){return Lr})),r.d(s,"ContractFactory",(function(){return Br})),r.d(s,"BigNumber",(function(){return F})),r.d(s,"FixedNumber",(function(){return Gr})),r.d(s,"constants",(function(){return o})),r.d(s,"errors",(function(){return M.a})),r.d(s,"logger",(function(){return ju})),r.d(s,"utils",(function(){return u})),r.d(s,"wordlists",(function(){return ao})),r.d(s,"version",(function(){return Iu})),r.d(s,"Wordlist",(function(){return En}));var l=r(20);function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function h(e,t,r){return(h="undefined"!==typeof Reflect&&Reflect.get?Reflect.get:function(e,t,r){var n=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=f(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(r):o.value}})(e,t,r||e)}function d(e,t){return(d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function p(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&d(e,t)}function v(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function m(e){return(m="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function g(e,t){return!t||"object"!==m(t)&&"function"!==typeof t?c(e):t}function b(e){return function(){var t,r=f(e);if(v()){var n=f(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return g(this,t)}}var y=r(3),k=r(4),w=r(2),T=r.n(w),E=r(0),S=r(5),A=r.n(S),M=r(1),P=A.a.BN,C=new M.b("bignumber/5.4.2"),O={};var x=!1,F=function(){function e(t,r){Object(y.a)(this,e),C.checkNew(this instanceof e?this.constructor:void 0,e),t!==O&&C.throwError("cannot call constructor directly; use BigNumber.from",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new (BigNumber)"}),this._hex=r,this._isBigNumber=!0,Object.freeze(this)}return Object(k.a)(e,[{key:"fromTwos",value:function(e){return B(N(this).fromTwos(e))}},{key:"toTwos",value:function(e){return B(N(this).toTwos(e))}},{key:"abs",value:function(){return"-"===this._hex[0]?e.from(this._hex.substring(1)):this}},{key:"add",value:function(e){return B(N(this).add(N(e)))}},{key:"sub",value:function(e){return B(N(this).sub(N(e)))}},{key:"div",value:function(t){return e.from(t).isZero()&&R("division by zero","div"),B(N(this).div(N(t)))}},{key:"mul",value:function(e){return B(N(this).mul(N(e)))}},{key:"mod",value:function(e){var t=N(e);return t.isNeg()&&R("cannot modulo negative values","mod"),B(N(this).umod(t))}},{key:"pow",value:function(e){var t=N(e);return t.isNeg()&&R("cannot raise to negative values","pow"),B(N(this).pow(t))}},{key:"and",value:function(e){var t=N(e);return(this.isNegative()||t.isNeg())&&R("cannot 'and' negative values","and"),B(N(this).and(t))}},{key:"or",value:function(e){var t=N(e);return(this.isNegative()||t.isNeg())&&R("cannot 'or' negative values","or"),B(N(this).or(t))}},{key:"xor",value:function(e){var t=N(e);return(this.isNegative()||t.isNeg())&&R("cannot 'xor' negative values","xor"),B(N(this).xor(t))}},{key:"mask",value:function(e){return(this.isNegative()||e<0)&&R("cannot mask negative values","mask"),B(N(this).maskn(e))}},{key:"shl",value:function(e){return(this.isNegative()||e<0)&&R("cannot shift negative values","shl"),B(N(this).shln(e))}},{key:"shr",value:function(e){return(this.isNegative()||e<0)&&R("cannot shift negative values","shr"),B(N(this).shrn(e))}},{key:"eq",value:function(e){return N(this).eq(N(e))}},{key:"lt",value:function(e){return N(this).lt(N(e))}},{key:"lte",value:function(e){return N(this).lte(N(e))}},{key:"gt",value:function(e){return N(this).gt(N(e))}},{key:"gte",value:function(e){return N(this).gte(N(e))}},{key:"isNegative",value:function(){return"-"===this._hex[0]}},{key:"isZero",value:function(){return N(this).isZero()}},{key:"toNumber",value:function(){try{return N(this).toNumber()}catch(e){R("overflow","toNumber",this.toString())}return null}},{key:"toBigInt",value:function(){try{return BigInt(this.toString())}catch(e){}return C.throwError("this platform does not support BigInt",M.b.errors.UNSUPPORTED_OPERATION,{value:this.toString()})}},{key:"toString",value:function(){return arguments.length>0&&(10===arguments[0]?x||(x=!0,C.warn("BigNumber.toString does not accept any parameters; base-10 is assumed")):16===arguments[0]?C.throwError("BigNumber.toString does not accept any parameters; use bigNumber.toHexString()",M.b.errors.UNEXPECTED_ARGUMENT,{}):C.throwError("BigNumber.toString does not accept parameters",M.b.errors.UNEXPECTED_ARGUMENT,{})),N(this).toString(10)}},{key:"toHexString",value:function(){return this._hex}},{key:"toJSON",value:function(e){return{type:"BigNumber",hex:this.toHexString()}}}],[{key:"from",value:function(t){if(t instanceof e)return t;if("string"===typeof t)return t.match(/^-?0x[0-9a-f]+$/i)?new e(O,L(t)):t.match(/^-?[0-9]+$/)?new e(O,L(new P(t))):C.throwArgumentError("invalid BigNumber string","value",t);if("number"===typeof t)return t%1&&R("underflow","BigNumber.from",t),(t>=9007199254740991||t<=-9007199254740991)&&R("overflow","BigNumber.from",t),e.from(String(t));var r=t;if("bigint"===typeof r)return e.from(r.toString());if(Object(E.j)(r))return e.from(Object(E.i)(r));if(r)if(r.toHexString){var n=r.toHexString();if("string"===typeof n)return e.from(n)}else{var o=r._hex;if(null==o&&"BigNumber"===r.type&&(o=r.hex),"string"===typeof o&&(Object(E.l)(o)||"-"===o[0]&&Object(E.l)(o.substring(1))))return e.from(o)}return C.throwArgumentError("invalid BigNumber value","value",t)}},{key:"isBigNumber",value:function(e){return!(!e||!e._isBigNumber)}}]),e}();function L(e){if("string"!==typeof e)return L(e.toString(16));if("-"===e[0])return"-"===(e=e.substring(1))[0]&&C.throwArgumentError("invalid hex","value",e),"0x00"===(e=L(e))?e:"-"+e;if("0x"!==e.substring(0,2)&&(e="0x"+e),"0x"===e)return"0x00";for(e.length%2&&(e="0x0"+e.substring(2));e.length>4&&"0x00"===e.substring(0,4);)e="0x"+e.substring(4);return e}function B(e){return F.from(L(e))}function N(e){var t=F.from(e).toHexString();return"-"===t[0]?new P("-"+t.substring(3),16):new P(t.substring(2),16)}function R(e,t,r){var n={fault:e,operation:t};return null!=r&&(n.value=r),C.throwError(e,M.b.errors.NUMERIC_FAULT,n)}var J=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},_=new M.b("properties/5.4.1");function D(e,t,r){Object.defineProperty(e,t,{enumerable:!0,value:r,writable:!1})}function I(e,t){for(var r=0;r<32;r++){if(e[t])return e[t];if(!e.prototype||"object"!==typeof e.prototype)break;e=Object.getPrototypeOf(e.prototype).constructor}return null}function j(e){return J(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Object.keys(e).map((function(t){var r=e[t];return Promise.resolve(r).then((function(e){return{key:t,value:e}}))})),t.next=3,Promise.all(r);case 3:return n=t.sent,t.abrupt("return",n.reduce((function(e,t){return e[t.key]=t.value,e}),{}));case 5:case"end":return t.stop()}}),t)})))}function X(e,t){e&&"object"===typeof e||_.throwArgumentError("invalid object","object",e),Object.keys(e).forEach((function(r){t[r]||_.throwArgumentError("invalid object key - "+r,"transaction:"+r,e)}))}function U(e){var t={};for(var r in e)t[r]=e[r];return t}var H={bigint:!0,boolean:!0,function:!0,number:!0,string:!0};function G(e){if(function e(t){if(void 0===t||null===t||H[typeof t])return!0;if(Array.isArray(t)||"object"===typeof t){if(!Object.isFrozen(t))return!1;for(var r=Object.keys(t),n=0;n<r.length;n++){var o=null;try{o=t[r[n]]}catch(i){continue}if(!e(o))return!1}return!0}return _.throwArgumentError("Cannot deepCopy ".concat(typeof t),"object",t)}(e))return e;if(Array.isArray(e))return Object.freeze(e.map((function(e){return z(e)})));if("object"===typeof e){var t={};for(var r in e){var n=e[r];void 0!==n&&D(t,r,z(n))}return t}return _.throwArgumentError("Cannot deepCopy ".concat(typeof e),"object",e)}function z(e){return G(e)}var V=function e(t){for(var r in Object(y.a)(this,e),t)this[r]=z(t[r])},Z=new M.b("abi/5.4.1");function K(e){var t=[];return function e(r,n){if(Array.isArray(n))for(var o in n){var i=r.slice();i.push(o);try{e(i,n[o])}catch(a){t.push({path:i,error:a})}}}([],e),t}var Q=function(){function e(t,r,n,o){Object(y.a)(this,e),this.name=t,this.type=r,this.localName=n,this.dynamic=o}return Object(k.a)(e,[{key:"_throwError",value:function(e,t){Z.throwArgumentError(e,this.localName,t)}}]),e}(),q=function(){function e(t){Object(y.a)(this,e),D(this,"wordSize",t||32),this._data=[],this._dataLength=0,this._padding=new Uint8Array(t)}return Object(k.a)(e,[{key:"data",get:function(){return Object(E.c)(this._data)}},{key:"length",get:function(){return this._dataLength}},{key:"_writeData",value:function(e){return this._data.push(e),this._dataLength+=e.length,e.length}},{key:"appendWriter",value:function(e){return this._writeData(Object(E.b)(e._data))}},{key:"writeBytes",value:function(e){var t=Object(E.a)(e),r=t.length%this.wordSize;return r&&(t=Object(E.b)([t,this._padding.slice(r)])),this._writeData(t)}},{key:"_getValue",value:function(e){var t=Object(E.a)(F.from(e));return t.length>this.wordSize&&Z.throwError("value out-of-bounds",M.b.errors.BUFFER_OVERRUN,{length:this.wordSize,offset:t.length}),t.length%this.wordSize&&(t=Object(E.b)([this._padding.slice(t.length%this.wordSize),t])),t}},{key:"writeValue",value:function(e){return this._writeData(this._getValue(e))}},{key:"writeUpdatableValue",value:function(){var e=this,t=this._data.length;return this._data.push(this._padding),this._dataLength+=this.wordSize,function(r){e._data[t]=e._getValue(r)}}}]),e}(),W=function(){function e(t,r,n,o){Object(y.a)(this,e),D(this,"_data",Object(E.a)(t)),D(this,"wordSize",r||32),D(this,"_coerceFunc",n),D(this,"allowLoose",o),this._offset=0}return Object(k.a)(e,[{key:"data",get:function(){return Object(E.i)(this._data)}},{key:"consumed",get:function(){return this._offset}},{key:"coerce",value:function(t,r){return this._coerceFunc?this._coerceFunc(t,r):e.coerce(t,r)}},{key:"_peekBytes",value:function(e,t,r){var n=Math.ceil(t/this.wordSize)*this.wordSize;return this._offset+n>this._data.length&&(this.allowLoose&&r&&this._offset+t<=this._data.length?n=t:Z.throwError("data out-of-bounds",M.b.errors.BUFFER_OVERRUN,{length:this._data.length,offset:this._offset+n})),this._data.slice(this._offset,this._offset+n)}},{key:"subReader",value:function(t){return new e(this._data.slice(this._offset+t),this.wordSize,this._coerceFunc,this.allowLoose)}},{key:"readBytes",value:function(e,t){var r=this._peekBytes(0,e,!!t);return this._offset+=r.length,r.slice(0,e)}},{key:"readValue",value:function(){return F.from(this.readBytes(this.wordSize))}}],[{key:"coerce",value:function(e,t){var r=e.match("^u?int([0-9]+)$");return r&&parseInt(r[1])<=48&&(t=t.toNumber()),t}}]),e}(),Y=r(35),$=r.n(Y);function ee(e){return"0x"+$.a.keccak_256(Object(E.a)(e))}var te=new M.b("rlp/5.4.0");function re(e){for(var t=[];e;)t.unshift(255&e),e>>=8;return t}function ne(e,t,r){for(var n=0,o=0;o<r;o++)n=256*n+e[t+o];return n}function oe(e){return Object(E.i)(function e(t){if(Array.isArray(t)){var r=[];if(t.forEach((function(t){r=r.concat(e(t))})),r.length<=55)return r.unshift(192+r.length),r;var n=re(r.length);return n.unshift(247+n.length),n.concat(r)}Object(E.k)(t)||te.throwArgumentError("RLP object must be BytesLike","object",t);var o=Array.prototype.slice.call(Object(E.a)(t));if(1===o.length&&o[0]<=127)return o;if(o.length<=55)return o.unshift(128+o.length),o;var i=re(o.length);return i.unshift(183+i.length),i.concat(o)}(e))}function ie(e,t,r,n){for(var o=[];r<t+1+n;){var i=ae(e,r);o.push(i.result),(r+=i.consumed)>t+1+n&&te.throwError("child data too short",M.b.errors.BUFFER_OVERRUN,{})}return{consumed:1+n,result:o}}function ae(e,t){if(0===e.length&&te.throwError("data too short",M.b.errors.BUFFER_OVERRUN,{}),e[t]>=248){var r=e[t]-247;t+1+r>e.length&&te.throwError("data short segment too short",M.b.errors.BUFFER_OVERRUN,{});var n=ne(e,t+1,r);return t+1+r+n>e.length&&te.throwError("data long segment too short",M.b.errors.BUFFER_OVERRUN,{}),ie(e,t,t+1+r,r+n)}if(e[t]>=192){var o=e[t]-192;return t+1+o>e.length&&te.throwError("data array too short",M.b.errors.BUFFER_OVERRUN,{}),ie(e,t,t+1,o)}if(e[t]>=184){var i=e[t]-183;t+1+i>e.length&&te.throwError("data array too short",M.b.errors.BUFFER_OVERRUN,{});var a=ne(e,t+1,i);return t+1+i+a>e.length&&te.throwError("data array too short",M.b.errors.BUFFER_OVERRUN,{}),{consumed:1+i+a,result:Object(E.i)(e.slice(t+1+i,t+1+i+a))}}if(e[t]>=128){var u=e[t]-128;return t+1+u>e.length&&te.throwError("data too short",M.b.errors.BUFFER_OVERRUN,{}),{consumed:1+u,result:Object(E.i)(e.slice(t+1,t+1+u))}}return{consumed:1,result:Object(E.i)(e[t])}}function ue(e){var t=Object(E.a)(e),r=ae(t,0);return r.consumed!==t.length&&te.throwArgumentError("invalid rlp data","data",e),r.result}var se=new M.b("address/5.4.0");function le(e){Object(E.l)(e,20)||se.throwArgumentError("invalid address","address",e);for(var t=(e=e.toLowerCase()).substring(2).split(""),r=new Uint8Array(40),n=0;n<40;n++)r[n]=t[n].charCodeAt(0);for(var o=Object(E.a)(ee(r)),i=0;i<40;i+=2)o[i>>1]>>4>=8&&(t[i]=t[i].toUpperCase()),(15&o[i>>1])>=8&&(t[i+1]=t[i+1].toUpperCase());return"0x"+t.join("")}for(var ce={},fe=0;fe<10;fe++)ce[String(fe)]=String(fe);for(var he=0;he<26;he++)ce[String.fromCharCode(65+he)]=String(10+he);var de,pe=Math.floor((de=9007199254740991,Math.log10?Math.log10(de):Math.log(de)/Math.LN10));function ve(e){for(var t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map((function(e){return ce[e]})).join("");t.length>=pe;){var r=t.substring(0,pe);t=parseInt(r,10)%97+t.substring(r.length)}for(var n=String(98-parseInt(t,10)%97);n.length<2;)n="0"+n;return n}function me(e){var t,r=null;if("string"!==typeof e&&se.throwArgumentError("invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/))"0x"!==e.substring(0,2)&&(e="0x"+e),r=le(e),e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)&&r!==e&&se.throwArgumentError("bad address checksum","address",e);else if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){for(e.substring(2,4)!==ve(e)&&se.throwArgumentError("bad icap checksum","address",e),t=e.substring(4),r=new P(t,36).toString(16);r.length<40;)r="0"+r;r=le("0x"+r)}else se.throwArgumentError("invalid address","address",e);return r}function ge(e){try{return me(e),!0}catch(t){}return!1}function be(e){for(var t,r=(t=me(e).substring(2),new P(t,16).toString(36)).toUpperCase();r.length<30;)r="0"+r;return"XE"+ve("XE00"+r)+r}function ye(e){var t=null;try{t=me(e.from)}catch(n){se.throwArgumentError("missing from address","transaction",e)}var r=Object(E.o)(Object(E.a)(F.from(e.nonce).toHexString()));return me(Object(E.e)(ee(oe([t,r])),12))}function ke(e,t,r){return 32!==Object(E.d)(t)&&se.throwArgumentError("salt must be 32 bytes","salt",t),32!==Object(E.d)(r)&&se.throwArgumentError("initCodeHash must be 32 bytes","initCodeHash",r),me(Object(E.e)(ee(Object(E.b)(["0xff",me(e),t,r])),12))}var we,Te,Ee=new M.b("strings/5.4.0");function Se(e,t,r,n,o){if(e===Te.BAD_PREFIX||e===Te.UNEXPECTED_CONTINUE){for(var i=0,a=t+1;a<r.length&&r[a]>>6===2;a++)i++;return i}return e===Te.OVERRUN?r.length-t-1:0}!function(e){e.current="",e.NFC="NFC",e.NFD="NFD",e.NFKC="NFKC",e.NFKD="NFKD"}(we||(we={})),function(e){e.UNEXPECTED_CONTINUE="unexpected continuation byte",e.BAD_PREFIX="bad codepoint prefix",e.OVERRUN="string overrun",e.MISSING_CONTINUE="missing continuation byte",e.OUT_OF_RANGE="out of UTF-8 range",e.UTF16_SURROGATE="UTF-16 surrogate",e.OVERLONG="overlong representation"}(Te||(Te={}));var Ae=Object.freeze({error:function(e,t,r,n,o){return Ee.throwArgumentError("invalid codepoint at offset ".concat(t,"; ").concat(e),"bytes",r)},ignore:Se,replace:function(e,t,r,n,o){return e===Te.OVERLONG?(n.push(o),0):(n.push(65533),Se(e,t,r))}});function Me(e,t){null==t&&(t=Ae.error),e=Object(E.a)(e);for(var r=[],n=0;n<e.length;){var o=e[n++];if(o>>7!==0){var i=null,a=null;if(192===(224&o))i=1,a=127;else if(224===(240&o))i=2,a=2047;else{if(240!==(248&o)){n+=t(128===(192&o)?Te.UNEXPECTED_CONTINUE:Te.BAD_PREFIX,n-1,e,r);continue}i=3,a=65535}if(n-1+i>=e.length)n+=t(Te.OVERRUN,n-1,e,r);else{for(var u=o&(1<<8-i-1)-1,s=0;s<i;s++){var l=e[n];if(128!=(192&l)){n+=t(Te.MISSING_CONTINUE,n,e,r),u=null;break}u=u<<6|63&l,n++}null!==u&&(u>1114111?n+=t(Te.OUT_OF_RANGE,n-1-i,e,r,u):u>=55296&&u<=57343?n+=t(Te.UTF16_SURROGATE,n-1-i,e,r,u):u<=a?n+=t(Te.OVERLONG,n-1-i,e,r,u):r.push(u))}}else r.push(o)}return r}function Pe(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we.current;t!=we.current&&(Ee.checkNormalize(),e=e.normalize(t));for(var r=[],n=0;n<e.length;n++){var o=e.charCodeAt(n);if(o<128)r.push(o);else if(o<2048)r.push(o>>6|192),r.push(63&o|128);else if(55296==(64512&o)){n++;var i=e.charCodeAt(n);if(n>=e.length||56320!==(64512&i))throw new Error("invalid utf-8 string");var a=65536+((1023&o)<<10)+(1023&i);r.push(a>>18|240),r.push(a>>12&63|128),r.push(a>>6&63|128),r.push(63&a|128)}else r.push(o>>12|224),r.push(o>>6&63|128),r.push(63&o|128)}return Object(E.a)(r)}function Ce(e){var t="0000"+e.toString(16);return"\\u"+t.substring(t.length-4)}function Oe(e,t){return'"'+Me(e,t).map((function(e){if(e<256){switch(e){case 8:return"\\b";case 9:return"\\t";case 10:return"\\n";case 13:return"\\r";case 34:return'\\"';case 92:return"\\\\"}if(e>=32&&e<127)return String.fromCharCode(e)}return e<=65535?Ce(e):Ce(55296+((e-=65536)>>10&1023))+Ce(56320+(1023&e))})).join("")+'"'}function xe(e){return e.map((function(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode(55296+(e>>10&1023),56320+(1023&e)))})).join("")}function Fe(e,t){return xe(Me(e,t))}function Le(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:we.current;return Me(Pe(e,t))}function Be(e){return ee(Pe(e))}var Ne=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"address","address",e,!1)}return Object(k.a)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000"}},{key:"encode",value:function(e,t){try{t=me(t)}catch(r){this._throwError(r.message,t)}return e.writeValue(t)}},{key:"decode",value:function(e){return me(Object(E.h)(e.readValue().toHexString(),20))}}]),r}(Q),Re=function(e){p(r,e);var t=b(r);function r(e){var n;return Object(y.a)(this,r),(n=t.call(this,e.name,e.type,void 0,e.dynamic)).coder=e,n}return Object(k.a)(r,[{key:"defaultValue",value:function(){return this.coder.defaultValue()}},{key:"encode",value:function(e,t){return this.coder.encode(e,t)}},{key:"decode",value:function(e){return this.coder.decode(e)}}]),r}(Q),Je=new M.b("abi/5.4.1");function _e(e,t,r){var n=null;if(Array.isArray(r))n=r;else if(r&&"object"===typeof r){var o={};n=t.map((function(e){var t=e.localName;return t||Je.throwError("cannot encode object for signature with missing names",M.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]&&Je.throwError("cannot encode object for signature with duplicate names",M.b.errors.INVALID_ARGUMENT,{argument:"values",coder:e,value:r}),o[t]=!0,r[t]}))}else Je.throwArgumentError("invalid tuple value","tuple",r);t.length!==n.length&&Je.throwArgumentError("types/value length mismatch","tuple",r);var i=new q(e.wordSize),a=new q(e.wordSize),u=[];t.forEach((function(e,t){var r=n[t];if(e.dynamic){var o=a.length;e.encode(a,r);var s=i.writeUpdatableValue();u.push((function(e){s(e+o)}))}else e.encode(i,r)})),u.forEach((function(e){e(i.length)}));var s=e.appendWriter(i);return s+=e.appendWriter(a)}function De(e,t){var r=[],n=e.subReader(0);t.forEach((function(t){var o=null;if(t.dynamic){var i=e.readValue(),a=n.subReader(i.toNumber());try{o=t.decode(a)}catch(u){if(u.code===M.b.errors.BUFFER_OVERRUN)throw u;(o=u).baseType=t.name,o.name=t.localName,o.type=t.type}}else try{o=t.decode(e)}catch(u){if(u.code===M.b.errors.BUFFER_OVERRUN)throw u;(o=u).baseType=t.name,o.name=t.localName,o.type=t.type}void 0!=o&&r.push(o)}));var o=t.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});t.forEach((function(e,t){var n=e.localName;if(n&&1===o[n]&&("length"===n&&(n="_length"),null==r[n])){var i=r[t];i instanceof Error?Object.defineProperty(r,n,{enumerable:!0,get:function(){throw i}}):r[n]=i}}));for(var i=function(e){var t=r[e];t instanceof Error&&Object.defineProperty(r,e,{enumerable:!0,get:function(){throw t}})},a=0;a<r.length;a++)i(a);return Object.freeze(r)}var Ie=function(e){p(r,e);var t=b(r);function r(e,n,o){var i;Object(y.a)(this,r);var a=e.type+"["+(n>=0?n:"")+"]",u=-1===n||e.dynamic;return(i=t.call(this,"array",a,o,u)).coder=e,i.length=n,i}return Object(k.a)(r,[{key:"defaultValue",value:function(){for(var e=this.coder.defaultValue(),t=[],r=0;r<this.length;r++)t.push(e);return t}},{key:"encode",value:function(e,t){Array.isArray(t)||this._throwError("expected array value",t);var r=this.length;-1===r&&(r=t.length,e.writeValue(t.length)),Je.checkArgumentCount(t.length,r,"coder array"+(this.localName?" "+this.localName:""));for(var n=[],o=0;o<t.length;o++)n.push(this.coder);return _e(e,n,t)}},{key:"decode",value:function(e){var t=this.length;-1===t&&32*(t=e.readValue().toNumber())>e._data.length&&Je.throwError("insufficient data length",M.b.errors.BUFFER_OVERRUN,{length:e._data.length,count:t});for(var r=[],n=0;n<t;n++)r.push(new Re(this.coder));return e.coerce(this.name,De(e,r))}}]),r}(Q),je=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"bool","bool",e,!1)}return Object(k.a)(r,[{key:"defaultValue",value:function(){return!1}},{key:"encode",value:function(e,t){return e.writeValue(t?1:0)}},{key:"decode",value:function(e){return e.coerce(this.type,!e.readValue().isZero())}}]),r}(Q),Xe=function(e){p(r,e);var t=b(r);function r(e,n){return Object(y.a)(this,r),t.call(this,e,e,n,!0)}return Object(k.a)(r,[{key:"defaultValue",value:function(){return"0x"}},{key:"encode",value:function(e,t){t=Object(E.a)(t);var r=e.writeValue(t.length);return r+=e.writeBytes(t)}},{key:"decode",value:function(e){return e.readBytes(e.readValue().toNumber(),!0)}}]),r}(Q),Ue=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"bytes",e)}return Object(k.a)(r,[{key:"decode",value:function(e){return e.coerce(this.name,Object(E.i)(h(f(r.prototype),"decode",this).call(this,e)))}}]),r}(Xe),He=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r);var i="bytes"+String(e);return(o=t.call(this,i,i,n,!1)).size=e,o}return Object(k.a)(r,[{key:"defaultValue",value:function(){return"0x0000000000000000000000000000000000000000000000000000000000000000".substring(0,2+2*this.size)}},{key:"encode",value:function(e,t){var r=Object(E.a)(t);return r.length!==this.size&&this._throwError("incorrect data length",t),e.writeBytes(r)}},{key:"decode",value:function(e){return e.coerce(this.name,Object(E.i)(e.readBytes(this.size)))}}]),r}(Q),Ge=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"null","",e,!1)}return Object(k.a)(r,[{key:"defaultValue",value:function(){return null}},{key:"encode",value:function(e,t){return null!=t&&this._throwError("not null",t),e.writeBytes([])}},{key:"decode",value:function(e){return e.readBytes(0),e.coerce(this.name,null)}}]),r}(Q),ze=F.from(-1),Ve=F.from(0),Ze=F.from(1),Ke=F.from(2),Qe=F.from("1000000000000000000"),qe=F.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),We=F.from("-0x8000000000000000000000000000000000000000000000000000000000000000"),Ye=F.from("0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff"),$e=function(e){p(r,e);var t=b(r);function r(e,n,o){var i;Object(y.a)(this,r);var a=(n?"int":"uint")+8*e;return(i=t.call(this,a,a,o,!1)).size=e,i.signed=n,i}return Object(k.a)(r,[{key:"defaultValue",value:function(){return 0}},{key:"encode",value:function(e,t){var r=F.from(t),n=qe.mask(8*e.wordSize);if(this.signed){var o=n.mask(8*this.size-1);(r.gt(o)||r.lt(o.add(Ze).mul(ze)))&&this._throwError("value out-of-bounds",t)}else(r.lt(Ve)||r.gt(n.mask(8*this.size)))&&this._throwError("value out-of-bounds",t);return r=r.toTwos(8*this.size).mask(8*this.size),this.signed&&(r=r.fromTwos(8*this.size).toTwos(8*e.wordSize)),e.writeValue(r)}},{key:"decode",value:function(e){var t=e.readValue().mask(8*this.size);return this.signed&&(t=t.fromTwos(8*this.size)),e.coerce(this.name,t)}}]),r}(Q),et=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"string",e)}return Object(k.a)(r,[{key:"defaultValue",value:function(){return""}},{key:"encode",value:function(e,t){return h(f(r.prototype),"encode",this).call(this,e,Pe(t))}},{key:"decode",value:function(e){return Fe(h(f(r.prototype),"decode",this).call(this,e))}}]),r}(Xe),tt=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r);var i=!1,a=[];e.forEach((function(e){e.dynamic&&(i=!0),a.push(e.type)}));var u="tuple("+a.join(",")+")";return(o=t.call(this,"tuple",u,n,i)).coders=e,o}return Object(k.a)(r,[{key:"defaultValue",value:function(){var e=[];this.coders.forEach((function(t){e.push(t.defaultValue())}));var t=this.coders.reduce((function(e,t){var r=t.localName;return r&&(e[r]||(e[r]=0),e[r]++),e}),{});return this.coders.forEach((function(r,n){var o=r.localName;o&&1===t[o]&&("length"===o&&(o="_length"),null==e[o]&&(e[o]=e[n]))})),Object.freeze(e)}},{key:"encode",value:function(e,t){return _e(e,this.coders,t)}},{key:"decode",value:function(e){return e.coerce(this.name,De(e,this.coders))}}]),r}(Q),rt=new M.b("abi/5.4.1"),nt={},ot={calldata:!0,memory:!0,storage:!0},it={calldata:!0,memory:!0};function at(e,t){if("bytes"===e||"string"===e){if(ot[t])return!0}else if("address"===e){if("payable"===t)return!0}else if((e.indexOf("[")>=0||"tuple"===e)&&it[t])return!0;return(ot[t]||"payable"===t)&&rt.throwArgumentError("invalid modifier","name",t),!1}function ut(e,t){for(var r in t)D(e,r,t[r])}var st=Object.freeze({sighash:"sighash",minimal:"minimal",full:"full",json:"json"}),lt=new RegExp(/^(.*)\[([0-9]*)\]$/),ct=function(){function e(t,r){Object(y.a)(this,e),t!==nt&&rt.throwError("use fromString",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new ParamType()"}),ut(this,r);var n=this.type.match(lt);ut(this,n?{arrayLength:parseInt(n[2]||"-1"),arrayChildren:e.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)}return Object(k.a)(e,[{key:"format",value:function(e){if(e||(e=st.sighash),st[e]||rt.throwArgumentError("invalid format type","format",e),e===st.json){var t={type:"tuple"===this.baseType?"tuple":this.type,name:this.name||void 0};return"boolean"===typeof this.indexed&&(t.indexed=this.indexed),this.components&&(t.components=this.components.map((function(t){return JSON.parse(t.format(e))}))),JSON.stringify(t)}var r="";return"array"===this.baseType?(r+=this.arrayChildren.format(e),r+="["+(this.arrayLength<0?"":String(this.arrayLength))+"]"):"tuple"===this.baseType?(e!==st.sighash&&(r+=this.type),r+="("+this.components.map((function(t){return t.format(e)})).join(e===st.full?", ":",")+")"):r+=this.type,e!==st.sighash&&(!0===this.indexed&&(r+=" indexed"),e===st.full&&this.name&&(r+=" "+this.name)),r}}],[{key:"from",value:function(t,r){return"string"===typeof t?e.fromString(t,r):e.fromObject(t)}},{key:"fromObject",value:function(t){return e.isParamType(t)?t:new e(nt,{name:t.name||null,type:wt(t.type),indexed:null==t.indexed?null:!!t.indexed,components:t.components?t.components.map(e.fromObject):null})}},{key:"fromString",value:function(t,r){return function(t){return e.fromObject({name:t.name,type:t.type,indexed:t.indexed,components:t.components})}(function(e,t){var r=e;function n(t){rt.throwArgumentError("unexpected character at position ".concat(t),"param",e)}function o(e){var r={type:"",name:"",parent:e,state:{allowType:!0}};return t&&(r.indexed=!1),r}e=e.replace(/\s/g," ");for(var i={type:"",name:"",state:{allowType:!0}},a=i,u=0;u<e.length;u++){var s=e[u];switch(s){case"(":a.state.allowType&&""===a.type?a.type="tuple":a.state.allowParams||n(u),a.state.allowType=!1,a.type=wt(a.type),a.components=[o(a)],a=a.components[0];break;case")":delete a.state,"indexed"===a.name&&(t||n(u),a.indexed=!0,a.name=""),at(a.type,a.name)&&(a.name=""),a.type=wt(a.type);var l=a;(a=a.parent)||n(u),delete l.parent,a.state.allowParams=!1,a.state.allowName=!0,a.state.allowArray=!0;break;case",":delete a.state,"indexed"===a.name&&(t||n(u),a.indexed=!0,a.name=""),at(a.type,a.name)&&(a.name=""),a.type=wt(a.type);var c=o(a.parent);a.parent.components.push(c),delete a.parent,a=c;break;case" ":a.state.allowType&&""!==a.type&&(a.type=wt(a.type),delete a.state.allowType,a.state.allowName=!0,a.state.allowParams=!0),a.state.allowName&&""!==a.name&&("indexed"===a.name?(t||n(u),a.indexed&&n(u),a.indexed=!0,a.name=""):at(a.type,a.name)?a.name="":a.state.allowName=!1);break;case"[":a.state.allowArray||n(u),a.type+=s,a.state.allowArray=!1,a.state.allowName=!1,a.state.readArray=!0;break;case"]":a.state.readArray||n(u),a.type+=s,a.state.readArray=!1,a.state.allowArray=!0,a.state.allowName=!0;break;default:a.state.allowType?(a.type+=s,a.state.allowParams=!0,a.state.allowArray=!0):a.state.allowName?(a.name+=s,delete a.state.allowArray):a.state.readArray?a.type+=s:n(u)}}return a.parent&&rt.throwArgumentError("unexpected eof","param",e),delete i.state,"indexed"===a.name?(t||n(r.length-7),a.indexed&&n(r.length-7),a.indexed=!0,a.name=""):at(a.type,a.name)&&(a.name=""),i.type=wt(i.type),i}(t,!!r))}},{key:"isParamType",value:function(e){return!(null==e||!e._isParamType)}}]),e}();function ft(e,t){return function(e){e=e.trim();for(var t=[],r="",n=0,o=0;o<e.length;o++){var i=e[o];","===i&&0===n?(t.push(r),r=""):(r+=i,"("===i?n++:")"===i&&-1===--n&&rt.throwArgumentError("unbalanced parenthesis","value",e))}r&&t.push(r);return t}(e).map((function(e){return ct.fromString(e,t)}))}var ht=function(){function e(t,r){Object(y.a)(this,e),t!==nt&&rt.throwError("use a static from method",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new Fragment()"}),ut(this,r),this._isFragment=!0,Object.freeze(this)}return Object(k.a)(e,null,[{key:"from",value:function(t){return e.isFragment(t)?t:"string"===typeof t?e.fromString(t):e.fromObject(t)}},{key:"fromObject",value:function(t){if(e.isFragment(t))return t;switch(t.type){case"function":return bt.fromObject(t);case"event":return dt.fromObject(t);case"constructor":return gt.fromObject(t);case"error":return kt.fromObject(t);case"fallback":case"receive":return null}return rt.throwArgumentError("invalid fragment object","value",t)}},{key:"fromString",value:function(e){return"event"===(e=(e=(e=e.replace(/\s/g," ")).replace(/\(/g," (").replace(/\)/g,") ").replace(/\s+/g," ")).trim()).split(" ")[0]?dt.fromString(e.substring(5).trim()):"function"===e.split(" ")[0]?bt.fromString(e.substring(8).trim()):"constructor"===e.split("(")[0].trim()?gt.fromString(e.trim()):"error"===e.split(" ")[0]?kt.fromString(e.substring(5).trim()):rt.throwArgumentError("unsupported fragment","value",e)}},{key:"isFragment",value:function(e){return!(!e||!e._isFragment)}}]),e}(),dt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"format",value:function(e){if(e||(e=st.sighash),st[e]||rt.throwArgumentError("invalid format type","format",e),e===st.json)return JSON.stringify({type:"event",anonymous:this.anonymous,name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==st.sighash&&(t+="event "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===st.full?", ":",")+") ",e!==st.sighash&&this.anonymous&&(t+="anonymous "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isEventFragment(e))return e;"event"!==e.type&&rt.throwArgumentError("invalid event object","value",e);var t={name:Et(e.name),anonymous:e.anonymous,inputs:e.inputs?e.inputs.map(ct.fromObject):[],type:"event"};return new r(nt,t)}},{key:"fromString",value:function(e){var t=e.match(St);t||rt.throwArgumentError("invalid event string","value",e);var n=!1;return t[3].split(" ").forEach((function(e){switch(e.trim()){case"anonymous":n=!0;break;case"":break;default:rt.warn("unknown modifier: "+e)}})),r.fromObject({name:t[1].trim(),anonymous:n,inputs:ft(t[2],!0),type:"event"})}},{key:"isEventFragment",value:function(e){return e&&e._isFragment&&"event"===e.type}}]),r}(ht);function pt(e,t){t.gas=null;var r=e.split("@");return 1!==r.length?(r.length>2&&rt.throwArgumentError("invalid human-readable ABI signature","value",e),r[1].match(/^[0-9]+$/)||rt.throwArgumentError("invalid human-readable ABI signature gas","value",e),t.gas=F.from(r[1]),r[0]):e}function vt(e,t){t.constant=!1,t.payable=!1,t.stateMutability="nonpayable",e.split(" ").forEach((function(e){switch(e.trim()){case"constant":t.constant=!0;break;case"payable":t.payable=!0,t.stateMutability="payable";break;case"nonpayable":t.payable=!1,t.stateMutability="nonpayable";break;case"pure":t.constant=!0,t.stateMutability="pure";break;case"view":t.constant=!0,t.stateMutability="view";break;case"external":case"public":case"":break;default:console.log("unknown modifier: "+e)}}))}function mt(e){var t={constant:!1,payable:!0,stateMutability:"payable"};return null!=e.stateMutability?(t.stateMutability=e.stateMutability,t.constant="view"===t.stateMutability||"pure"===t.stateMutability,null!=e.constant&&!!e.constant!==t.constant&&rt.throwArgumentError("cannot have constant function with mutability "+t.stateMutability,"value",e),t.payable="payable"===t.stateMutability,null!=e.payable&&!!e.payable!==t.payable&&rt.throwArgumentError("cannot have payable function with mutability "+t.stateMutability,"value",e)):null!=e.payable?(t.payable=!!e.payable,null!=e.constant||t.payable||"constructor"===e.type||rt.throwArgumentError("unable to determine stateMutability","value",e),t.constant=!!e.constant,t.constant?t.stateMutability="view":t.stateMutability=t.payable?"payable":"nonpayable",t.payable&&t.constant&&rt.throwArgumentError("cannot have constant payable function","value",e)):null!=e.constant?(t.constant=!!e.constant,t.payable=!t.constant,t.stateMutability=t.constant?"view":"payable"):"constructor"!==e.type&&rt.throwArgumentError("unable to determine stateMutability","value",e),t}var gt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"format",value:function(e){if(e||(e=st.sighash),st[e]||rt.throwArgumentError("invalid format type","format",e),e===st.json)return JSON.stringify({type:"constructor",stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});e===st.sighash&&rt.throwError("cannot format a constructor for sighash",M.b.errors.UNSUPPORTED_OPERATION,{operation:"format(sighash)"});var t="constructor("+this.inputs.map((function(t){return t.format(e)})).join(e===st.full?", ":",")+") ";return this.stateMutability&&"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isConstructorFragment(e))return e;"constructor"!==e.type&&rt.throwArgumentError("invalid constructor object","value",e);var t=mt(e);t.constant&&rt.throwArgumentError("constructor cannot be constant","value",e);var n={name:null,type:e.type,inputs:e.inputs?e.inputs.map(ct.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?F.from(e.gas):null};return new r(nt,n)}},{key:"fromString",value:function(e){var t={type:"constructor"},n=(e=pt(e,t)).match(St);return n&&"constructor"===n[1].trim()||rt.throwArgumentError("invalid constructor string","value",e),t.inputs=ft(n[2].trim(),!1),vt(n[3].trim(),t),r.fromObject(t)}},{key:"isConstructorFragment",value:function(e){return e&&e._isFragment&&"constructor"===e.type}}]),r}(ht),bt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"format",value:function(e){if(e||(e=st.sighash),st[e]||rt.throwArgumentError("invalid format type","format",e),e===st.json)return JSON.stringify({type:"function",name:this.name,constant:this.constant,stateMutability:"nonpayable"!==this.stateMutability?this.stateMutability:void 0,payable:this.payable,gas:this.gas?this.gas.toNumber():void 0,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))})),outputs:this.outputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==st.sighash&&(t+="function "),t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===st.full?", ":",")+") ",e!==st.sighash&&(this.stateMutability?"nonpayable"!==this.stateMutability&&(t+=this.stateMutability+" "):this.constant&&(t+="view "),this.outputs&&this.outputs.length&&(t+="returns ("+this.outputs.map((function(t){return t.format(e)})).join(", ")+") "),null!=this.gas&&(t+="@"+this.gas.toString()+" ")),t.trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isFunctionFragment(e))return e;"function"!==e.type&&rt.throwArgumentError("invalid function object","value",e);var t=mt(e),n={type:e.type,name:Et(e.name),constant:t.constant,inputs:e.inputs?e.inputs.map(ct.fromObject):[],outputs:e.outputs?e.outputs.map(ct.fromObject):[],payable:t.payable,stateMutability:t.stateMutability,gas:e.gas?F.from(e.gas):null};return new r(nt,n)}},{key:"fromString",value:function(e){var t={type:"function"},n=(e=pt(e,t)).split(" returns ");n.length>2&&rt.throwArgumentError("invalid function string","value",e);var o=n[0].match(St);if(o||rt.throwArgumentError("invalid function signature","value",e),t.name=o[1].trim(),t.name&&Et(t.name),t.inputs=ft(o[2],!1),vt(o[3].trim(),t),n.length>1){var i=n[1].match(St);""==i[1].trim()&&""==i[3].trim()||rt.throwArgumentError("unexpected tokens","value",e),t.outputs=ft(i[2],!1)}else t.outputs=[];return r.fromObject(t)}},{key:"isFunctionFragment",value:function(e){return e&&e._isFragment&&"function"===e.type}}]),r}(gt);function yt(e){var t=e.format();return"Error(string)"!==t&&"Panic(uint256)"!==t||rt.throwArgumentError("cannot specify user defined ".concat(t," error"),"fragment",e),e}var kt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"format",value:function(e){if(e||(e=st.sighash),st[e]||rt.throwArgumentError("invalid format type","format",e),e===st.json)return JSON.stringify({type:"error",name:this.name,inputs:this.inputs.map((function(t){return JSON.parse(t.format(e))}))});var t="";return e!==st.sighash&&(t+="error "),(t+=this.name+"("+this.inputs.map((function(t){return t.format(e)})).join(e===st.full?", ":",")+") ").trim()}}],[{key:"from",value:function(e){return"string"===typeof e?r.fromString(e):r.fromObject(e)}},{key:"fromObject",value:function(e){if(r.isErrorFragment(e))return e;"error"!==e.type&&rt.throwArgumentError("invalid error object","value",e);var t={type:e.type,name:Et(e.name),inputs:e.inputs?e.inputs.map(ct.fromObject):[]};return yt(new r(nt,t))}},{key:"fromString",value:function(e){var t={type:"error"},n=e.match(St);return n||rt.throwArgumentError("invalid error signature","value",e),t.name=n[1].trim(),t.name&&Et(t.name),t.inputs=ft(n[2],!1),yt(r.fromObject(t))}},{key:"isErrorFragment",value:function(e){return e&&e._isFragment&&"error"===e.type}}]),r}(ht);function wt(e){return e.match(/^uint($|[^1-9])/)?e="uint256"+e.substring(4):e.match(/^int($|[^1-9])/)&&(e="int256"+e.substring(3)),e}var Tt=new RegExp("^[a-zA-Z$_][a-zA-Z0-9$_]*$");function Et(e){return e&&e.match(Tt)||rt.throwArgumentError('invalid identifier "'.concat(e,'"'),"value",e),e}var St=new RegExp("^([^)(]*)\\((.*)\\)([^)(]*)$");var At=new M.b("abi/5.4.1"),Mt=new RegExp(/^bytes([0-9]*)$/),Pt=new RegExp(/^(u?int)([0-9]*)$/),Ct=function(){function e(t){Object(y.a)(this,e),At.checkNew(this instanceof e?this.constructor:void 0,e),D(this,"coerceFunc",t||null)}return Object(k.a)(e,[{key:"_getCoder",value:function(e){var t=this;switch(e.baseType){case"address":return new Ne(e.name);case"bool":return new je(e.name);case"string":return new et(e.name);case"bytes":return new Ue(e.name);case"array":return new Ie(this._getCoder(e.arrayChildren),e.arrayLength,e.name);case"tuple":return new tt((e.components||[]).map((function(e){return t._getCoder(e)})),e.name);case"":return new Ge(e.name)}var r=e.type.match(Pt);if(r){var n=parseInt(r[2]||"256");return(0===n||n>256||n%8!==0)&&At.throwArgumentError("invalid "+r[1]+" bit length","param",e),new $e(n/8,"int"===r[1],e.name)}if(r=e.type.match(Mt)){var o=parseInt(r[1]);return(0===o||o>32)&&At.throwArgumentError("invalid bytes length","param",e),new He(o,e.name)}return At.throwArgumentError("invalid type","type",e.type)}},{key:"_getWordSize",value:function(){return 32}},{key:"_getReader",value:function(e,t){return new W(e,this._getWordSize(),this.coerceFunc,t)}},{key:"_getWriter",value:function(){return new q(this._getWordSize())}},{key:"getDefaultValue",value:function(e){var t=this,r=e.map((function(e){return t._getCoder(ct.from(e))}));return new tt(r,"_").defaultValue()}},{key:"encode",value:function(e,t){var r=this;e.length!==t.length&&At.throwError("types/values length mismatch",M.b.errors.INVALID_ARGUMENT,{count:{types:e.length,values:t.length},value:{types:e,values:t}});var n=e.map((function(e){return r._getCoder(ct.from(e))})),o=new tt(n,"_"),i=this._getWriter();return o.encode(i,t),i.data}},{key:"decode",value:function(e,t,r){var n=this,o=e.map((function(e){return n._getCoder(ct.from(e))}));return new tt(o,"_").decode(this._getReader(Object(E.a)(t),r))}}]),e}(),Ot=new Ct,xt=new M.b("abi/5.4.1"),Ft=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return r}(V),Lt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return r}(V),Bt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return r}(V),Nt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,null,[{key:"isIndexed",value:function(e){return!(!e||!e._isIndexed)}}]),r}(V),Rt={"0x08c379a0":{signature:"Error(string)",name:"Error",inputs:["string"],reason:!0},"0x4e487b71":{signature:"Panic(uint256)",name:"Panic",inputs:["uint256"]}};function Jt(e,t){var r=new Error("deferred error during ABI decoding triggered accessing ".concat(e));return r.error=t,r}var _t=function(){function e(t){var r=this;Object(y.a)(this,e),xt.checkNew(this instanceof e?this.constructor:void 0,e);D(this,"fragments",("string"===typeof t?JSON.parse(t):t).map((function(e){return ht.from(e)})).filter((function(e){return null!=e}))),D(this,"_abiCoder",I(this instanceof e?this.constructor:void 0,"getAbiCoder")()),D(this,"functions",{}),D(this,"errors",{}),D(this,"events",{}),D(this,"structs",{}),this.fragments.forEach((function(e){var t=null;switch(e.type){case"constructor":return r.deploy?void xt.warn("duplicate definition - constructor"):void D(r,"deploy",e);case"function":t=r.functions;break;case"event":t=r.events;break;case"error":t=r.errors;break;default:return}var n=e.format();t[n]?xt.warn("duplicate definition - "+n):t[n]=e})),this.deploy||D(this,"deploy",gt.from({payable:!1,type:"constructor"})),D(this,"_isInterface",!0)}return Object(k.a)(e,[{key:"format",value:function(e){e||(e=st.full),e===st.sighash&&xt.throwArgumentError("interface does not support formatting sighash","format",e);var t=this.fragments.map((function(t){return t.format(e)}));return e===st.json?JSON.stringify(t.map((function(e){return JSON.parse(e)}))):t}},{key:"getFunction",value:function(e){if(Object(E.l)(e)){for(var t in this.functions)if(e===this.getSighash(t))return this.functions[t];xt.throwArgumentError("no matching function","sighash",e)}if(-1===e.indexOf("(")){var r=e.trim(),n=Object.keys(this.functions).filter((function(e){return e.split("(")[0]===r}));return 0===n.length?xt.throwArgumentError("no matching function","name",r):n.length>1&&xt.throwArgumentError("multiple matching functions","name",r),this.functions[n[0]]}var o=this.functions[bt.fromString(e).format()];return o||xt.throwArgumentError("no matching function","signature",e),o}},{key:"getEvent",value:function(e){if(Object(E.l)(e)){var t=e.toLowerCase();for(var r in this.events)if(t===this.getEventTopic(r))return this.events[r];xt.throwArgumentError("no matching event","topichash",t)}if(-1===e.indexOf("(")){var n=e.trim(),o=Object.keys(this.events).filter((function(e){return e.split("(")[0]===n}));return 0===o.length?xt.throwArgumentError("no matching event","name",n):o.length>1&&xt.throwArgumentError("multiple matching events","name",n),this.events[o[0]]}var i=this.events[dt.fromString(e).format()];return i||xt.throwArgumentError("no matching event","signature",e),i}},{key:"getError",value:function(e){if(Object(E.l)(e)){var t=I(this.constructor,"getSighash");for(var r in this.errors){if(e===t(this.errors[r]))return this.errors[r]}xt.throwArgumentError("no matching error","sighash",e)}if(-1===e.indexOf("(")){var n=e.trim(),o=Object.keys(this.errors).filter((function(e){return e.split("(")[0]===n}));return 0===o.length?xt.throwArgumentError("no matching error","name",n):o.length>1&&xt.throwArgumentError("multiple matching errors","name",n),this.errors[o[0]]}var i=this.errors[bt.fromString(e).format()];return i||xt.throwArgumentError("no matching error","signature",e),i}},{key:"getSighash",value:function(e){if("string"===typeof e)try{e=this.getFunction(e)}catch(t){try{e=this.getError(e)}catch(r){throw t}}return I(this.constructor,"getSighash")(e)}},{key:"getEventTopic",value:function(e){return"string"===typeof e&&(e=this.getEvent(e)),I(this.constructor,"getEventTopic")(e)}},{key:"_decodeParams",value:function(e,t){return this._abiCoder.decode(e,t)}},{key:"_encodeParams",value:function(e,t){return this._abiCoder.encode(e,t)}},{key:"encodeDeploy",value:function(e){return this._encodeParams(this.deploy.inputs,e||[])}},{key:"decodeErrorResult",value:function(e,t){"string"===typeof e&&(e=this.getError(e));var r=Object(E.a)(t);return Object(E.i)(r.slice(0,4))!==this.getSighash(e)&&xt.throwArgumentError("data signature does not match error ".concat(e.name,"."),"data",Object(E.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeErrorResult",value:function(e,t){return"string"===typeof e&&(e=this.getError(e)),Object(E.i)(Object(E.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionData",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var r=Object(E.a)(t);return Object(E.i)(r.slice(0,4))!==this.getSighash(e)&&xt.throwArgumentError("data signature does not match function ".concat(e.name,"."),"data",Object(E.i)(r)),this._decodeParams(e.inputs,r.slice(4))}},{key:"encodeFunctionData",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(E.i)(Object(E.b)([this.getSighash(e),this._encodeParams(e.inputs,t||[])]))}},{key:"decodeFunctionResult",value:function(e,t){"string"===typeof e&&(e=this.getFunction(e));var r=Object(E.a)(t),n=null,o=null,i=null,a=null;switch(r.length%this._abiCoder._getWordSize()){case 0:try{return this._abiCoder.decode(e.outputs,r)}catch(l){}break;case 4:var u=Object(E.i)(r.slice(0,4)),s=Rt[u];if(s)o=this._abiCoder.decode(s.inputs,r.slice(4)),i=s.name,a=s.signature,s.reason&&(n=o[0]);else try{var l=this.getError(u);o=this._abiCoder.decode(l.inputs,r.slice(4)),i=l.name,a=l.format()}catch(l){console.log(l)}}return xt.throwError("call revert exception",M.b.errors.CALL_EXCEPTION,{method:e.format(),errorArgs:o,errorName:i,errorSignature:a,reason:n})}},{key:"encodeFunctionResult",value:function(e,t){return"string"===typeof e&&(e=this.getFunction(e)),Object(E.i)(this._abiCoder.encode(e.outputs,t||[]))}},{key:"encodeFilterTopics",value:function(e,t){var r=this;"string"===typeof e&&(e=this.getEvent(e)),t.length>e.inputs.length&&xt.throwError("too many arguments for "+e.format(),M.b.errors.UNEXPECTED_ARGUMENT,{argument:"values",value:t});var n=[];e.anonymous||n.push(this.getEventTopic(e));var o=function(e,t){return"string"===e.type?Be(t):"bytes"===e.type?ee(Object(E.i)(t)):("address"===e.type&&r._abiCoder.encode(["address"],[t]),Object(E.h)(Object(E.i)(t),32))};for(t.forEach((function(t,r){var i=e.inputs[r];i.indexed?null==t?n.push(null):"array"===i.baseType||"tuple"===i.baseType?xt.throwArgumentError("filtering with tuples or arrays not supported","contract."+i.name,t):Array.isArray(t)?n.push(t.map((function(e){return o(i,e)}))):n.push(o(i,t)):null!=t&&xt.throwArgumentError("cannot filter non-indexed parameters; must be null","contract."+i.name,t)}));n.length&&null===n[n.length-1];)n.pop();return n}},{key:"encodeEventLog",value:function(e,t){var r=this;"string"===typeof e&&(e=this.getEvent(e));var n=[],o=[],i=[];return e.anonymous||n.push(this.getEventTopic(e)),t.length!==e.inputs.length&&xt.throwArgumentError("event arguments/values mismatch","values",t),e.inputs.forEach((function(e,a){var u=t[a];if(e.indexed)if("string"===e.type)n.push(Be(u));else if("bytes"===e.type)n.push(ee(u));else{if("tuple"===e.baseType||"array"===e.baseType)throw new Error("not implemented");n.push(r._abiCoder.encode([e.type],[u]))}else o.push(e),i.push(u)})),{data:this._abiCoder.encode(o,i),topics:n}}},{key:"decodeEventLog",value:function(e,t,r){if("string"===typeof e&&(e=this.getEvent(e)),null!=r&&!e.anonymous){var n=this.getEventTopic(e);Object(E.l)(r[0],32)&&r[0].toLowerCase()===n||xt.throwError("fragment/topic mismatch",M.b.errors.INVALID_ARGUMENT,{argument:"topics[0]",expected:n,value:r[0]}),r=r.slice(1)}var o=[],i=[],a=[];e.inputs.forEach((function(e,t){e.indexed?"string"===e.type||"bytes"===e.type||"tuple"===e.baseType||"array"===e.baseType?(o.push(ct.fromObject({type:"bytes32",name:e.name})),a.push(!0)):(o.push(e),a.push(!1)):(i.push(e),a.push(!1))}));var u=null!=r?this._abiCoder.decode(o,Object(E.b)(r)):null,s=this._abiCoder.decode(i,t,!0),l=[],c=0,f=0;e.inputs.forEach((function(e,t){if(e.indexed)if(null==u)l[t]=new Nt({_isIndexed:!0,hash:null});else if(a[t])l[t]=new Nt({_isIndexed:!0,hash:u[f++]});else try{l[t]=u[f++]}catch(n){l[t]=n}else try{l[t]=s[c++]}catch(n){l[t]=n}if(e.name&&null==l[e.name]){var r=l[t];r instanceof Error?Object.defineProperty(l,e.name,{enumerable:!0,get:function(){throw Jt("property ".concat(JSON.stringify(e.name)),r)}}):l[e.name]=r}}));for(var h=function(e){var t=l[e];t instanceof Error&&Object.defineProperty(l,e,{enumerable:!0,get:function(){throw Jt("index ".concat(e),t)}})},d=0;d<l.length;d++)h(d);return Object.freeze(l)}},{key:"parseTransaction",value:function(e){var t=this.getFunction(e.data.substring(0,10).toLowerCase());return t?new Lt({args:this._abiCoder.decode(t.inputs,"0x"+e.data.substring(10)),functionFragment:t,name:t.name,signature:t.format(),sighash:this.getSighash(t),value:F.from(e.value||"0")}):null}},{key:"parseLog",value:function(e){var t=this.getEvent(e.topics[0]);return!t||t.anonymous?null:new Ft({eventFragment:t,name:t.name,signature:t.format(),topic:this.getEventTopic(t),args:this.decodeEventLog(t,e.data,e.topics)})}},{key:"parseError",value:function(e){var t=Object(E.i)(e),r=this.getError(t.substring(0,10).toLowerCase());return r?new Bt({args:this._abiCoder.decode(r.inputs,"0x"+t.substring(10)),errorFragment:r,name:r.name,signature:r.format(),sighash:this.getSighash(r)}):null}}],[{key:"getAbiCoder",value:function(){return Ot}},{key:"getAddress",value:function(e){return me(e)}},{key:"getSighash",value:function(e){return Object(E.e)(Be(e.format()),0,4)}},{key:"getEventTopic",value:function(e){return Be(e.format())}},{key:"isInterface",value:function(e){return!(!e||!e._isInterface)}}]),e}(),Dt=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},It=new M.b("abstract-provider/5.4.1"),jt=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,null,[{key:"isForkEvent",value:function(e){return!(!e||!e._isForkEvent)}}]),r}(V),Xt=function(){function e(){Object(y.a)(this,e),It.checkAbstract(this instanceof e?this.constructor:void 0,e),D(this,"_isProvider",!0)}return Object(k.a)(e,[{key:"getFeeData",value:function(){return Dt(this,void 0,void 0,T.a.mark((function e(){var t,r,n,o,i;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,j({block:this.getBlock("latest"),gasPrice:this.getGasPrice().catch((function(e){return null}))});case 2:return t=e.sent,r=t.block,n=t.gasPrice,o=null,i=null,r&&r.baseFeePerGas&&(i=F.from("2500000000"),o=r.baseFeePerGas.mul(2).add(i)),e.abrupt("return",{maxFeePerGas:o,maxPriorityFeePerGas:i,gasPrice:n});case 8:case"end":return e.stop()}}),e,this)})))}},{key:"addListener",value:function(e,t){return this.on(e,t)}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"isProvider",value:function(e){return!(!e||!e._isProvider)}}]),e}(),Ut=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Ht=new M.b("abstract-signer/5.4.1"),Gt=["accessList","chainId","data","from","gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","nonce","to","type","value"],zt=[M.b.errors.INSUFFICIENT_FUNDS,M.b.errors.NONCE_EXPIRED,M.b.errors.REPLACEMENT_UNDERPRICED],Vt=function(){function e(){Object(y.a)(this,e),Ht.checkAbstract(this instanceof e?this.constructor:void 0,e),D(this,"_isSigner",!0)}return Object(k.a)(e,[{key:"getBalance",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getBalance"),t.next=3,this.provider.getBalance(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionCount",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("getTransactionCount"),t.next=3,this.provider.getTransactionCount(this.getAddress(),e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"estimateGas",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("estimateGas"),t.next=3,j(this.checkTransaction(e));case 3:return r=t.sent,t.next=6,this.provider.estimateGas(r);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return Ut(this,void 0,void 0,T.a.mark((function r(){var n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return this._checkProvider("call"),r.next=3,j(this.checkTransaction(e));case 3:return n=r.sent,r.next=6,this.provider.call(n,t);case 6:return r.abrupt("return",r.sent);case 7:case"end":return r.stop()}}),r,this)})))}},{key:"sendTransaction",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("sendTransaction"),t.next=3,this.populateTransaction(e);case 3:return r=t.sent,t.next=6,this.signTransaction(r);case 6:return n=t.sent,t.next=9,this.provider.sendTransaction(n);case 9:return t.abrupt("return",t.sent);case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getChainId",value:function(){return Ut(this,void 0,void 0,T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getChainId"),e.next=3,this.provider.getNetwork();case 3:return t=e.sent,e.abrupt("return",t.chainId);case 5:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Ut(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getGasPrice"),e.next=3,this.provider.getGasPrice();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"getFeeData",value:function(){return Ut(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return this._checkProvider("getFeeData"),e.next=3,this.provider.getFeeData();case 3:return e.abrupt("return",e.sent);case 4:case"end":return e.stop()}}),e,this)})))}},{key:"resolveName",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return this._checkProvider("resolveName"),t.next=3,this.provider.resolveName(e);case 3:return t.abrupt("return",t.sent);case 4:case"end":return t.stop()}}),t,this)})))}},{key:"checkTransaction",value:function(e){for(var t in e)-1===Gt.indexOf(t)&&Ht.throwArgumentError("invalid transaction key: "+t,"transaction",e);var r=U(e);return null==r.from?r.from=this.getAddress():r.from=Promise.all([Promise.resolve(r.from),this.getAddress()]).then((function(t){return t[0].toLowerCase()!==t[1].toLowerCase()&&Ht.throwArgumentError("from address mismatch","transaction",e),t[0]})),r}},{key:"populateTransaction",value:function(e){return Ut(this,void 0,void 0,T.a.mark((function t(){var r,n,o,i,a=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,j(this.checkTransaction(e));case 2:if(null!=(r=t.sent).to&&(r.to=Promise.resolve(r.to).then((function(e){return Ut(a,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.resolveName(e);case 4:return null==(r=t.sent)&&Ht.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))})),r.to.catch((function(e){}))),n=null!=r.maxFeePerGas||null!=r.maxPriorityFeePerGas,null==r.gasPrice||2!==r.type&&!n?0!==r.type&&1!==r.type||!n||Ht.throwArgumentError("pre-eip-1559 transaction do not support maxFeePerGas/maxPriorityFeePerGas","transaction",e):Ht.throwArgumentError("eip-1559 transaction do not support gasPrice","transaction",e),2!==r.type&&null!=r.type||null==r.maxFeePerGas||null==r.maxPriorityFeePerGas){t.next=10;break}r.type=2,t.next=18;break;case 10:if(0!==r.type&&1!==r.type){t.next=14;break}null==r.gasPrice&&(r.gasPrice=this.getGasPrice()),t.next=18;break;case 14:return t.next=16,this.getFeeData();case 16:o=t.sent,null==r.type?null!=o.maxFeePerGas&&null!=o.maxPriorityFeePerGas?(r.type=2,null!=r.gasPrice?(i=r.gasPrice,delete r.gasPrice,r.maxFeePerGas=i,r.maxPriorityFeePerGas=i):(null==r.maxFeePerGas&&(r.maxFeePerGas=o.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas))):null!=o.gasPrice?(n&&Ht.throwError("network does not support EIP-1559",M.b.errors.UNSUPPORTED_OPERATION,{operation:"populateTransaction"}),null==r.gasPrice&&(r.gasPrice=o.gasPrice),r.type=0):Ht.throwError("failed to get consistent fee data",M.b.errors.UNSUPPORTED_OPERATION,{operation:"signer.getFeeData"}):2===r.type&&(null==r.maxFeePerGas&&(r.maxFeePerGas=o.maxFeePerGas),null==r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=o.maxPriorityFeePerGas));case 18:return null==r.nonce&&(r.nonce=this.getTransactionCount("pending")),null==r.gasLimit&&(r.gasLimit=this.estimateGas(r).catch((function(e){if(zt.indexOf(e.code)>=0)throw e;return Ht.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",M.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:e,tx:r})}))),null==r.chainId?r.chainId=this.getChainId():r.chainId=Promise.all([Promise.resolve(r.chainId),this.getChainId()]).then((function(t){return 0!==t[1]&&t[0]!==t[1]&&Ht.throwArgumentError("chainId address mismatch","transaction",e),t[0]})),t.next=23,j(r);case 23:return t.abrupt("return",t.sent);case 24:case"end":return t.stop()}}),t,this)})))}},{key:"_checkProvider",value:function(e){this.provider||Ht.throwError("missing provider",M.b.errors.UNSUPPORTED_OPERATION,{operation:e||"_checkProvider"})}}],[{key:"isSigner",value:function(e){return!(!e||!e._isSigner)}}]),e}(),Zt=function(e){p(r,e);var t=b(r);function r(e,n){var o;return Object(y.a)(this,r),Ht.checkNew(this instanceof r?this.constructor:void 0,r),D(c(o=t.call(this)),"address",e),D(c(o),"provider",n||null),o}return Object(k.a)(r,[{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"_fail",value:function(e,t){return Promise.resolve().then((function(){Ht.throwError(e,M.b.errors.UNSUPPORTED_OPERATION,{operation:t})}))}},{key:"signMessage",value:function(e){return this._fail("VoidSigner cannot sign messages","signMessage")}},{key:"signTransaction",value:function(e){return this._fail("VoidSigner cannot sign transactions","signTransaction")}},{key:"_signTypedData",value:function(e,t,r){return this._fail("VoidSigner cannot sign typed data","signTypedData")}},{key:"connect",value:function(e){return new r(this.address,e)}}]),r}(Vt),Kt=r(34),Qt=new M.b("signing-key/5.4.0"),qt=null;function Wt(){return qt||(qt=new Kt.a("secp256k1")),qt}var Yt=function(){function e(t){Object(y.a)(this,e),D(this,"curve","secp256k1"),D(this,"privateKey",Object(E.i)(t));var r=Wt().keyFromPrivate(Object(E.a)(this.privateKey));D(this,"publicKey","0x"+r.getPublic(!1,"hex")),D(this,"compressedPublicKey","0x"+r.getPublic(!0,"hex")),D(this,"_isSigningKey",!0)}return Object(k.a)(e,[{key:"_addPoint",value:function(e){var t=Wt().keyFromPublic(Object(E.a)(this.publicKey)),r=Wt().keyFromPublic(Object(E.a)(e));return"0x"+t.pub.add(r.pub).encodeCompressed("hex")}},{key:"signDigest",value:function(e){var t=Wt().keyFromPrivate(Object(E.a)(this.privateKey)),r=Object(E.a)(e);32!==r.length&&Qt.throwArgumentError("bad digest length","digest",e);var n=t.sign(r,{canonical:!0});return Object(E.n)({recoveryParam:n.recoveryParam,r:Object(E.h)("0x"+n.r.toString(16),32),s:Object(E.h)("0x"+n.s.toString(16),32)})}},{key:"computeSharedSecret",value:function(e){var t=Wt().keyFromPrivate(Object(E.a)(this.privateKey)),r=Wt().keyFromPublic(Object(E.a)(er(e)));return Object(E.h)("0x"+t.derive(r.getPublic()).toString(16),32)}}],[{key:"isSigningKey",value:function(e){return!(!e||!e._isSigningKey)}}]),e}();function $t(e,t){var r=Object(E.n)(t),n={r:Object(E.a)(r.r),s:Object(E.a)(r.s)};return"0x"+Wt().recoverPubKey(Object(E.a)(e),n,r.recoveryParam).encode("hex",!1)}function er(e,t){var r=Object(E.a)(e);if(32===r.length){var n=new Yt(r);return t?"0x"+Wt().keyFromPrivate(r).getPublic(!0,"hex"):n.publicKey}return 33===r.length?t?Object(E.i)(r):"0x"+Wt().keyFromPublic(r).getPublic(!1,"hex"):65===r.length?t?"0x"+Wt().keyFromPublic(r).getPublic(!0,"hex"):Object(E.i)(r):Qt.throwArgumentError("invalid public or private key","key","[REDACTED]")}var tr,rr=new M.b("transactions/5.4.0");function nr(e){return"0x"===e?null:me(e)}function or(e){return"0x"===e?Ve:F.from(e)}!function(e){e[e.legacy=0]="legacy",e[e.eip2930=1]="eip2930",e[e.eip1559=2]="eip1559"}(tr||(tr={}));var ir=[{name:"nonce",maxLength:32,numeric:!0},{name:"gasPrice",maxLength:32,numeric:!0},{name:"gasLimit",maxLength:32,numeric:!0},{name:"to",length:20},{name:"value",maxLength:32,numeric:!0},{name:"data"}],ar={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,type:!0,value:!0};function ur(e){var t=er(e);return me(Object(E.e)(ee(Object(E.e)(t,1)),12))}function sr(e,t){return ur($t(Object(E.a)(e),t))}function lr(e,t){var r=Object(E.o)(F.from(e).toHexString());return r.length>32&&rr.throwArgumentError("invalid length for "+t,"transaction:"+t,e),r}function cr(e,t){return{address:me(e),storageKeys:(t||[]).map((function(t,r){return 32!==Object(E.d)(t)&&rr.throwArgumentError("invalid access list storageKey","accessList[".concat(e,":").concat(r,"]"),t),t.toLowerCase()}))}}function fr(e){if(Array.isArray(e))return e.map((function(e,t){return Array.isArray(e)?(e.length>2&&rr.throwArgumentError("access list expected to be [ address, storageKeys[] ]","value[".concat(t,"]"),e),cr(e[0],e[1])):cr(e.address,e.storageKeys)}));var t=Object.keys(e).map((function(t){var r=e[t].reduce((function(e,t){return e[t]=!0,e}),{});return cr(t,Object.keys(r).sort())}));return t.sort((function(e,t){return e.address.localeCompare(t.address)})),t}function hr(e){return fr(e).map((function(e){return[e.address,e.storageKeys]}))}function dr(e,t){if(null!=e.gasPrice){var r=F.from(e.gasPrice),n=F.from(e.maxFeePerGas||0);r.eq(n)||rr.throwArgumentError("mismatch EIP-1559 gasPrice != maxFeePerGas","tx",{gasPrice:r,maxFeePerGas:n})}var o=[lr(e.chainId||0,"chainId"),lr(e.nonce||0,"nonce"),lr(e.maxPriorityFeePerGas||0,"maxPriorityFeePerGas"),lr(e.maxFeePerGas||0,"maxFeePerGas"),lr(e.gasLimit||0,"gasLimit"),null!=e.to?me(e.to):"0x",lr(e.value||0,"value"),e.data||"0x",hr(e.accessList||[])];if(t){var i=Object(E.n)(t);o.push(lr(i.recoveryParam,"recoveryParam")),o.push(Object(E.o)(i.r)),o.push(Object(E.o)(i.s))}return Object(E.c)(["0x02",oe(o)])}function pr(e,t){var r=[lr(e.chainId||0,"chainId"),lr(e.nonce||0,"nonce"),lr(e.gasPrice||0,"gasPrice"),lr(e.gasLimit||0,"gasLimit"),null!=e.to?me(e.to):"0x",lr(e.value||0,"value"),e.data||"0x",hr(e.accessList||[])];if(t){var n=Object(E.n)(t);r.push(lr(n.recoveryParam,"recoveryParam")),r.push(Object(E.o)(n.r)),r.push(Object(E.o)(n.s))}return Object(E.c)(["0x01",oe(r)])}function vr(e,t){if(null==e.type||0===e.type)return null!=e.accessList&&rr.throwArgumentError("untyped transactions do not support accessList; include type: 1","transaction",e),function(e,t){X(e,ar);var r=[];ir.forEach((function(t){var n=e[t.name]||[],o={};t.numeric&&(o.hexPad="left"),n=Object(E.a)(Object(E.i)(n,o)),t.length&&n.length!==t.length&&n.length>0&&rr.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),t.maxLength&&(n=Object(E.o)(n)).length>t.maxLength&&rr.throwArgumentError("invalid length for "+t.name,"transaction:"+t.name,n),r.push(Object(E.i)(n))}));var n=0;if(null!=e.chainId?"number"!==typeof(n=e.chainId)&&rr.throwArgumentError("invalid transaction.chainId","transaction",e):t&&!Object(E.k)(t)&&t.v>28&&(n=Math.floor((t.v-35)/2)),0!==n&&(r.push(Object(E.i)(n)),r.push("0x"),r.push("0x")),!t)return oe(r);var o=Object(E.n)(t),i=27+o.recoveryParam;return 0!==n?(r.pop(),r.pop(),r.pop(),i+=2*n+8,o.v>28&&o.v!==i&&rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t)):o.v!==i&&rr.throwArgumentError("transaction.chainId/signature.v mismatch","signature",t),r.push(Object(E.i)(i)),r.push(Object(E.o)(Object(E.a)(o.r))),r.push(Object(E.o)(Object(E.a)(o.s))),oe(r)}(e,t);switch(e.type){case 1:return pr(e,t);case 2:return dr(e,t)}return rr.throwError("unsupported transaction type: ".concat(e.type),M.b.errors.UNSUPPORTED_OPERATION,{operation:"serializeTransaction",transactionType:e.type})}function mr(e,t,r){try{var n=or(t[0]).toNumber();if(0!==n&&1!==n)throw new Error("bad recid");e.v=n}catch(i){rr.throwArgumentError("invalid v for transaction type: 1","v",t[0])}e.r=Object(E.h)(t[1],32),e.s=Object(E.h)(t[2],32);try{var o=ee(r(e));e.from=sr(o,{r:e.r,s:e.s,recoveryParam:e.v})}catch(i){console.log(i)}}function gr(e){var t=Object(E.a)(e);if(t[0]>127)return function(e){var t=ue(e);9!==t.length&&6!==t.length&&rr.throwArgumentError("invalid raw transaction","rawTransaction",e);var r={nonce:or(t[0]).toNumber(),gasPrice:or(t[1]),gasLimit:or(t[2]),to:nr(t[3]),value:or(t[4]),data:t[5],chainId:0};if(6===t.length)return r;try{r.v=F.from(t[6]).toNumber()}catch(a){return console.log(a),r}if(r.r=Object(E.h)(t[7],32),r.s=Object(E.h)(t[8],32),F.from(r.r).isZero()&&F.from(r.s).isZero())r.chainId=r.v,r.v=0;else{r.chainId=Math.floor((r.v-35)/2),r.chainId<0&&(r.chainId=0);var n=r.v-27,o=t.slice(0,6);0!==r.chainId&&(o.push(Object(E.i)(r.chainId)),o.push("0x"),o.push("0x"),n-=2*r.chainId+8);var i=ee(oe(o));try{r.from=sr(i,{r:Object(E.i)(r.r),s:Object(E.i)(r.s),recoveryParam:n})}catch(a){console.log(a)}r.hash=ee(e)}return r.type=null,r}(t);switch(t[0]){case 1:return function(e){var t=ue(e.slice(1));8!==t.length&&11!==t.length&&rr.throwArgumentError("invalid component count for transaction type: 1","payload",Object(E.i)(e));var r={type:1,chainId:or(t[0]).toNumber(),nonce:or(t[1]).toNumber(),gasPrice:or(t[2]),gasLimit:or(t[3]),to:nr(t[4]),value:or(t[5]),data:t[6],accessList:fr(t[7])};return 8===t.length||(r.hash=ee(e),mr(r,t.slice(8),pr)),r}(t);case 2:return function(e){var t=ue(e.slice(1));9!==t.length&&12!==t.length&&rr.throwArgumentError("invalid component count for transaction type: 2","payload",Object(E.i)(e));var r=or(t[2]),n=or(t[3]),o={type:2,chainId:or(t[0]).toNumber(),nonce:or(t[1]).toNumber(),maxPriorityFeePerGas:r,maxFeePerGas:n,gasPrice:null,gasLimit:or(t[4]),to:nr(t[5]),value:or(t[6]),data:t[7],accessList:fr(t[8])};return 9===t.length||(o.hash=ee(e),mr(o,t.slice(9),dr)),o}(t)}return rr.throwError("unsupported transaction type: ".concat(t[0]),M.b.errors.UNSUPPORTED_OPERATION,{operation:"parseTransaction",transactionType:t[0]})}var br=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},yr=new M.b("contracts/5.4.1"),kr={chainId:!0,data:!0,from:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0};function wr(e,t){return br(this,void 0,void 0,T.a.mark((function r(){var n,o;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,t;case 2:return n=r.sent,r.prev=3,r.abrupt("return",me(n));case 7:r.prev=7,r.t0=r.catch(3);case 9:return e||yr.throwError("a provider or signer is needed to resolve ENS names",M.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName"}),r.next=12,e.resolveName(n);case 12:return null==(o=r.sent)&&yr.throwArgumentError("resolver or addr is not configured for ENS name","name",n),r.abrupt("return",o);case 15:case"end":return r.stop()}}),r,null,[[3,7]])})))}function Tr(e,t,r){return br(this,void 0,void 0,T.a.mark((function n(){return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:if(!Array.isArray(r)){n.next=4;break}return n.next=3,Promise.all(r.map((function(r,n){return Tr(e,Array.isArray(t)?t[n]:t[r.name],r)})));case 3:return n.abrupt("return",n.sent);case 4:if("address"!==r.type){n.next=8;break}return n.next=7,wr(e,t);case 7:return n.abrupt("return",n.sent);case 8:if("tuple"!==r.type){n.next=12;break}return n.next=11,Tr(e,t,r.components);case 11:return n.abrupt("return",n.sent);case 12:if("array"!==r.baseType){n.next=18;break}if(Array.isArray(t)){n.next=15;break}return n.abrupt("return",Promise.reject(new Error("invalid value for array")));case 15:return n.next=17,Promise.all(t.map((function(t){return Tr(e,t,r.arrayChildren)})));case 17:return n.abrupt("return",n.sent);case 18:return n.abrupt("return",t);case 19:case"end":return n.stop()}}),n)})))}function Er(e,t,r){return br(this,void 0,void 0,T.a.mark((function n(){var o,i,a,u,s,l,c,f,h,d,p=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o={},r.length===t.inputs.length+1&&"object"===typeof r[r.length-1]&&(o=U(r.pop())),yr.checkArgumentCount(r.length,t.inputs.length,"passed to contract"),e.signer?o.from?o.from=j({override:wr(e.signer,o.from),signer:e.signer.getAddress()}).then((function(e){return br(p,void 0,void 0,T.a.mark((function t(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return me(e.signer)!==e.override&&yr.throwError("Contract with a Signer cannot override from",M.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.from"}),t.abrupt("return",e.override);case 2:case"end":return t.stop()}}),t)})))})):o.from=e.signer.getAddress():o.from&&(o.from=wr(e.provider,o.from)),n.next=6,j({args:Tr(e.signer||e.provider,r,t.inputs),address:e.resolvedAddress,overrides:j(o)||{}});case 6:if(i=n.sent,a=e.interface.encodeFunctionData(t,i.args),u={data:a,to:i.address},null!=(s=i.overrides).nonce&&(u.nonce=F.from(s.nonce).toNumber()),null!=s.gasLimit&&(u.gasLimit=F.from(s.gasLimit)),null!=s.gasPrice&&(u.gasPrice=F.from(s.gasPrice)),null!=s.maxFeePerGas&&(u.maxFeePerGas=F.from(s.maxFeePerGas)),null!=s.maxPriorityFeePerGas&&(u.maxPriorityFeePerGas=F.from(s.maxPriorityFeePerGas)),null!=s.from&&(u.from=s.from),null!=s.type&&(u.type=s.type),null!=s.accessList&&(u.accessList=fr(s.accessList)),null==u.gasLimit&&null!=t.gas){for(l=21e3,c=Object(E.a)(a),f=0;f<c.length;f++)l+=4,c[f]&&(l+=64);u.gasLimit=F.from(t.gas).add(l)}return s.value&&((h=F.from(s.value)).isZero()||t.payable||yr.throwError("non-payable method cannot override value",M.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:o.value}),u.value=h),delete o.nonce,delete o.gasLimit,delete o.gasPrice,delete o.from,delete o.value,delete o.type,delete o.accessList,delete o.maxFeePerGas,delete o.maxPriorityFeePerGas,(d=Object.keys(o).filter((function(e){return null!=o[e]}))).length&&yr.throwError("cannot override ".concat(d.map((function(e){return JSON.stringify(e)})).join(",")),M.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides",overrides:d}),n.abrupt("return",u);case 32:case"end":return n.stop()}}),n)})))}function Sr(e,t,r){var n=e.signer||e.provider;return function(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return br(this,void 0,void 0,T.a.mark((function o(){var a,u,s,l,c;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(a=void 0,i.length!==t.inputs.length+1||"object"!==typeof i[i.length-1]){o.next=9;break}if(null==(u=U(i.pop())).blockTag){o.next=7;break}return o.next=6,u.blockTag;case 6:a=o.sent;case 7:delete u.blockTag,i.push(u);case 9:if(null==e.deployTransaction){o.next=12;break}return o.next=12,e._deployed(a);case 12:return o.next=14,Er(e,t,i);case 14:return s=o.sent,o.next=17,n.call(s,a);case 17:return l=o.sent,o.prev=18,c=e.interface.decodeFunctionResult(t,l),r&&1===t.outputs.length&&(c=c[0]),o.abrupt("return",c);case 24:throw o.prev=24,o.t0=o.catch(18),o.t0.code===M.b.errors.CALL_EXCEPTION&&(o.t0.address=e.address,o.t0.args=i,o.t0.transaction=s),o.t0;case 28:case"end":return o.stop()}}),o,null,[[18,24]])})))}}function Ar(e,t,r){return t.constant?Sr(e,t,r):function(e,t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return br(this,void 0,void 0,T.a.mark((function r(){var o,i,a;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(e.signer||yr.throwError("sending a transaction requires a signer",M.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction"}),null==e.deployTransaction){r.next=4;break}return r.next=4,e._deployed();case 4:return r.next=6,Er(e,t,n);case 6:return o=r.sent,r.next=9,e.signer.sendTransaction(o);case 9:return i=r.sent,a=i.wait.bind(i),i.wait=function(t){return a(t).then((function(t){return t.events=t.logs.map((function(r){var n=z(r),o=null;try{o=e.interface.parseLog(r)}catch(i){}return o&&(n.args=o.args,n.decode=function(t,r){return e.interface.decodeEventLog(o.eventFragment,t,r)},n.event=o.name,n.eventSignature=o.signature),n.removeListener=function(){return e.provider},n.getBlock=function(){return e.provider.getBlock(t.blockHash)},n.getTransaction=function(){return e.provider.getTransaction(t.transactionHash)},n.getTransactionReceipt=function(){return Promise.resolve(t)},n})),t}))},r.abrupt("return",i);case 13:case"end":return r.stop()}}),r)})))}}(e,t)}function Mr(e){return!e.address||null!=e.topics&&0!==e.topics.length?(e.address||"*")+"@"+(e.topics?e.topics.map((function(e){return Array.isArray(e)?e.join("|"):e})).join(":"):""):"*"}var Pr=function(){function e(t,r){Object(y.a)(this,e),D(this,"tag",t),D(this,"filter",r),this._listeners=[]}return Object(k.a)(e,[{key:"addListener",value:function(e,t){this._listeners.push({listener:e,once:t})}},{key:"removeListener",value:function(e){var t=!1;this._listeners=this._listeners.filter((function(r){return!(!t&&r.listener===e)||(t=!0,!1)}))}},{key:"removeAllListeners",value:function(){this._listeners=[]}},{key:"listeners",value:function(){return this._listeners.map((function(e){return e.listener}))}},{key:"listenerCount",value:function(){return this._listeners.length}},{key:"run",value:function(e){var t=this,r=this.listenerCount();return this._listeners=this._listeners.filter((function(r){var n=e.slice();return setTimeout((function(){r.listener.apply(t,n)}),0),!r.once})),r}},{key:"prepareEvent",value:function(e){}},{key:"getEmit",value:function(e){return[e]}}]),e}(),Cr=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"error",null)}return r}(Pr),Or=function(e){p(r,e);var t=b(r);function r(e,n,o,i){var a;Object(y.a)(this,r);var u={address:e},s=n.getEventTopic(o);return i?(s!==i[0]&&yr.throwArgumentError("topic mismatch","topics",i),u.topics=i.slice()):u.topics=[s],D(c(a=t.call(this,Mr(u),u)),"address",e),D(c(a),"interface",n),D(c(a),"fragment",o),a}return Object(k.a)(r,[{key:"prepareEvent",value:function(e){var t=this;h(f(r.prototype),"prepareEvent",this).call(this,e),e.event=this.fragment.name,e.eventSignature=this.fragment.format(),e.decode=function(e,r){return t.interface.decodeEventLog(t.fragment,e,r)};try{e.args=this.interface.decodeEventLog(this.fragment,e.data,e.topics)}catch(n){e.args=null,e.decodeError=n}}},{key:"getEmit",value:function(e){var t=K(e.args);if(t.length)throw t[0].error;var r=(e.args||[]).slice();return r.push(e),r}}]),r}(Pr),xr=function(e){p(r,e);var t=b(r);function r(e,n){var o;return Object(y.a)(this,r),D(c(o=t.call(this,"*",{address:e})),"address",e),D(c(o),"interface",n),o}return Object(k.a)(r,[{key:"prepareEvent",value:function(e){var t=this;h(f(r.prototype),"prepareEvent",this).call(this,e);try{var n=this.interface.parseLog(e);e.event=n.name,e.eventSignature=n.signature,e.decode=function(e,r){return t.interface.decodeEventLog(n.eventFragment,e,r)},e.args=n.args}catch(o){}}}]),r}(Pr),Fr=function(){function e(t,r,n){var o=this;Object(y.a)(this,e),yr.checkNew(this instanceof e?this.constructor:void 0,Lr),D(this,"interface",I(this instanceof e?this.constructor:void 0,"getInterface")(r)),null==n?(D(this,"provider",null),D(this,"signer",null)):Vt.isSigner(n)?(D(this,"provider",n.provider||null),D(this,"signer",n)):Xt.isProvider(n)?(D(this,"provider",n),D(this,"signer",null)):yr.throwArgumentError("invalid signer or provider","signerOrProvider",n),D(this,"callStatic",{}),D(this,"estimateGas",{}),D(this,"functions",{}),D(this,"populateTransaction",{}),D(this,"filters",{});var i={};if(Object.keys(this.interface.events).forEach((function(e){var t=o.interface.events[e];D(o.filters,e,(function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return{address:o.address,topics:o.interface.encodeFilterTopics(t,r)}})),i[t.name]||(i[t.name]=[]),i[t.name].push(e)})),Object.keys(i).forEach((function(e){var t=i[e];1===t.length?D(o.filters,e,o.filters[t[0]]):yr.warn("Duplicate definition of ".concat(e," (").concat(t.join(", "),")"))})),D(this,"_runningEvents",{}),D(this,"_wrappedEmits",{}),null==t&&yr.throwArgumentError("invalid contract address or ENS name","addressOrName",t),D(this,"address",t),this.provider)D(this,"resolvedAddress",wr(this.provider,t));else try{D(this,"resolvedAddress",Promise.resolve(me(t)))}catch(s){yr.throwError("provider is required to use ENS name as contract address",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new Contract"})}var a={},u={};Object.keys(this.interface.functions).forEach((function(e){var t=o.interface.functions[e];if(u[e])yr.warn("Duplicate ABI entry for ".concat(JSON.stringify(e)));else{u[e]=!0;var r=t.name;a[r]||(a[r]=[]),a[r].push(e),null==o[e]&&D(o,e,Ar(o,t,!0)),null==o.functions[e]&&D(o.functions,e,Ar(o,t,!1)),null==o.callStatic[e]&&D(o.callStatic,e,Sr(o,t,!0)),null==o.populateTransaction[e]&&D(o.populateTransaction,e,function(e,t){return function(){for(var r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return Er(e,t,n)}}(o,t)),null==o.estimateGas[e]&&D(o.estimateGas,e,function(e,t){var r=e.signer||e.provider;return function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];return br(this,void 0,void 0,T.a.mark((function n(){var i;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r||yr.throwError("estimate require a provider or signer",M.b.errors.UNSUPPORTED_OPERATION,{operation:"estimateGas"}),n.next=3,Er(e,t,o);case 3:return i=n.sent,n.next=6,r.estimateGas(i);case 6:return n.abrupt("return",n.sent);case 7:case"end":return n.stop()}}),n)})))}}(o,t))}})),Object.keys(a).forEach((function(e){var t=a[e];if(!(t.length>1)){var r=t[0];try{null==o[e]&&D(o,e,o[r])}catch(n){}null==o.functions[e]&&D(o.functions,e,o.functions[r]),null==o.callStatic[e]&&D(o.callStatic,e,o.callStatic[r]),null==o.populateTransaction[e]&&D(o.populateTransaction,e,o.populateTransaction[r]),null==o.estimateGas[e]&&D(o.estimateGas,e,o.estimateGas[r])}}))}return Object(k.a)(e,[{key:"deployed",value:function(){return this._deployed()}},{key:"_deployed",value:function(e){var t=this;return this._deployedPromise||(this.deployTransaction?this._deployedPromise=this.deployTransaction.wait().then((function(){return t})):this._deployedPromise=this.provider.getCode(this.address,e).then((function(e){return"0x"===e&&yr.throwError("contract not deployed",M.b.errors.UNSUPPORTED_OPERATION,{contractAddress:t.address,operation:"getDeployed"}),t}))),this._deployedPromise}},{key:"fallback",value:function(e){var t=this;this.signer||yr.throwError("sending a transactions require a signer",M.b.errors.UNSUPPORTED_OPERATION,{operation:"sendTransaction(fallback)"});var r=U(e||{});return["from","to"].forEach((function(e){null!=r[e]&&yr.throwError("cannot override "+e,M.b.errors.UNSUPPORTED_OPERATION,{operation:e})})),r.to=this.resolvedAddress,this.deployed().then((function(){return t.signer.sendTransaction(r)}))}},{key:"connect",value:function(e){"string"===typeof e&&(e=new Zt(e,this.provider));var t=new this.constructor(this.address,this.interface,e);return this.deployTransaction&&D(t,"deployTransaction",this.deployTransaction),t}},{key:"attach",value:function(e){return new this.constructor(e,this.interface,this.signer||this.provider)}},{key:"_normalizeRunningEvent",value:function(e){return this._runningEvents[e.tag]?this._runningEvents[e.tag]:e}},{key:"_getRunningEvent",value:function(e){if("string"===typeof e){if("error"===e)return this._normalizeRunningEvent(new Cr);if("event"===e)return this._normalizeRunningEvent(new Pr("event",null));if("*"===e)return this._normalizeRunningEvent(new xr(this.address,this.interface));var t=this.interface.getEvent(e);return this._normalizeRunningEvent(new Or(this.address,this.interface,t))}if(e.topics&&e.topics.length>0){try{var r=e.topics[0];if("string"!==typeof r)throw new Error("invalid topic");var n=this.interface.getEvent(r);return this._normalizeRunningEvent(new Or(this.address,this.interface,n,e.topics))}catch(i){}var o={address:this.address,topics:e.topics};return this._normalizeRunningEvent(new Pr(Mr(o),o))}return this._normalizeRunningEvent(new xr(this.address,this.interface))}},{key:"_checkRunningEvents",value:function(e){if(0===e.listenerCount()){delete this._runningEvents[e.tag];var t=this._wrappedEmits[e.tag];t&&e.filter&&(this.provider.off(e.filter,t),delete this._wrappedEmits[e.tag])}}},{key:"_wrapEvent",value:function(e,t,r){var n=this,o=z(t);return o.removeListener=function(){r&&(e.removeListener(r),n._checkRunningEvents(e))},o.getBlock=function(){return n.provider.getBlock(t.blockHash)},o.getTransaction=function(){return n.provider.getTransaction(t.transactionHash)},o.getTransactionReceipt=function(){return n.provider.getTransactionReceipt(t.transactionHash)},e.prepareEvent(o),o}},{key:"_addEventListener",value:function(e,t,r){var n=this;if(this.provider||yr.throwError("events require a provider or a signer with a provider",M.b.errors.UNSUPPORTED_OPERATION,{operation:"once"}),e.addListener(t,r),this._runningEvents[e.tag]=e,!this._wrappedEmits[e.tag]){var o=function(r){var o=n._wrapEvent(e,r,t);if(null==o.decodeError)try{var i=e.getEmit(o);n.emit.apply(n,[e.filter].concat(Object(l.a)(i)))}catch(a){o.decodeError=a.error}null!=e.filter&&n.emit("event",o),null!=o.decodeError&&n.emit("error",o.decodeError,o)};this._wrappedEmits[e.tag]=o,null!=e.filter&&this.provider.on(e.filter,o)}}},{key:"queryFilter",value:function(e,t,r){var n=this,o=this._getRunningEvent(e),i=U(o.filter);return"string"===typeof t&&Object(E.l)(t,32)?(null!=r&&yr.throwArgumentError("cannot specify toBlock with blockhash","toBlock",r),i.blockHash=t):(i.fromBlock=null!=t?t:0,i.toBlock=null!=r?r:"latest"),this.provider.getLogs(i).then((function(e){return e.map((function(e){return n._wrapEvent(o,e,null)}))}))}},{key:"on",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!1),this}},{key:"once",value:function(e,t){return this._addEventListener(this._getRunningEvent(e),t,!0),this}},{key:"emit",value:function(e){if(!this.provider)return!1;for(var t=this._getRunningEvent(e),r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=t.run(n)>0;return this._checkRunningEvents(t),i}},{key:"listenerCount",value:function(e){var t=this;return this.provider?null==e?Object.keys(this._runningEvents).reduce((function(e,r){return e+t._runningEvents[r].listenerCount()}),0):this._getRunningEvent(e).listenerCount():0}},{key:"listeners",value:function(e){var t=this;if(!this.provider)return[];if(null==e){var r=function(){var e=[];for(var r in t._runningEvents)t._runningEvents[r].listeners().forEach((function(t){e.push(t)}));return{v:e}}();if("object"===typeof r)return r.v}return this._getRunningEvent(e).listeners()}},{key:"removeAllListeners",value:function(e){if(!this.provider)return this;if(null==e){for(var t in this._runningEvents){var r=this._runningEvents[t];r.removeAllListeners(),this._checkRunningEvents(r)}return this}var n=this._getRunningEvent(e);return n.removeAllListeners(),this._checkRunningEvents(n),this}},{key:"off",value:function(e,t){if(!this.provider)return this;var r=this._getRunningEvent(e);return r.removeListener(t),this._checkRunningEvents(r),this}},{key:"removeListener",value:function(e,t){return this.off(e,t)}}],[{key:"getContractAddress",value:function(e){return ye(e)}},{key:"getInterface",value:function(e){return _t.isInterface(e)?e:new _t(e)}},{key:"isIndexed",value:function(e){return Nt.isIndexed(e)}}]),e}(),Lr=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return r}(Fr),Br=function(){function e(t,r,n){Object(y.a)(this,e);var o=null;"0x"!==(o="string"===typeof r?r:Object(E.j)(r)?Object(E.i)(r):r&&"string"===typeof r.object?r.object:"!").substring(0,2)&&(o="0x"+o),(!Object(E.l)(o)||o.length%2)&&yr.throwArgumentError("invalid bytecode","bytecode",r),n&&!Vt.isSigner(n)&&yr.throwArgumentError("invalid signer","signer",n),D(this,"bytecode",o),D(this,"interface",I(this instanceof e?this.constructor:void 0,"getInterface")(t)),D(this,"signer",n||null)}return Object(k.a)(e,[{key:"getDeployTransaction",value:function(){for(var e={},t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];if(r.length===this.interface.deploy.inputs.length+1&&"object"===typeof r[r.length-1])for(var o in e=U(r.pop()))if(!kr[o])throw new Error("unknown transaction override "+o);if(["data","from","to"].forEach((function(t){null!=e[t]&&yr.throwError("cannot override "+t,M.b.errors.UNSUPPORTED_OPERATION,{operation:t})})),e.value){var i=F.from(e.value);i.isZero()||this.interface.deploy.payable||yr.throwError("non-payable constructor cannot override value",M.b.errors.UNSUPPORTED_OPERATION,{operation:"overrides.value",value:e.value})}return yr.checkArgumentCount(r.length,this.interface.deploy.inputs.length," in Contract constructor"),e.data=Object(E.i)(Object(E.b)([this.bytecode,this.interface.encodeDeploy(r)])),e}},{key:"deploy",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return br(this,void 0,void 0,T.a.mark((function e(){var r,n,o,i,a,u;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r={},t.length===this.interface.deploy.inputs.length+1&&(r=t.pop()),yr.checkArgumentCount(t.length,this.interface.deploy.inputs.length," in Contract constructor"),e.next=5,Tr(this.signer,t,this.interface.deploy.inputs);case 5:return(n=e.sent).push(r),o=this.getDeployTransaction.apply(this,Object(l.a)(n)),e.next=10,this.signer.sendTransaction(o);case 10:return i=e.sent,a=I(this.constructor,"getContractAddress")(i),D(u=I(this.constructor,"getContract")(a,this.interface,this.signer),"deployTransaction",i),e.abrupt("return",u);case 15:case"end":return e.stop()}}),e,this)})))}},{key:"attach",value:function(e){return this.constructor.getContract(e,this.interface,this.signer)}},{key:"connect",value:function(e){return new this.constructor(this.interface,this.bytecode,e)}}],[{key:"fromSolidity",value:function(e,t){null==e&&yr.throwError("missing compiler output",M.b.errors.MISSING_ARGUMENT,{argument:"compilerOutput"}),"string"===typeof e&&(e=JSON.parse(e));var r=e.abi,n=null;return e.bytecode?n=e.bytecode:e.evm&&e.evm.bytecode&&(n=e.evm.bytecode),new this(r,n,t)}},{key:"getInterface",value:function(e){return Lr.getInterface(e)}},{key:"getContractAddress",value:function(e){return ye(e)}},{key:"getContract",value:function(e,t,r){return new Lr(e,t,r)}}]),e}(),Nr=new M.b("bignumber/5.4.2"),Rr={},Jr=F.from(0),_r=F.from(-1);function Dr(e,t,r,n){var o={fault:t,operation:r};return void 0!==n&&(o.value=n),Nr.throwError(e,M.b.errors.NUMERIC_FAULT,o)}for(var Ir="0";Ir.length<256;)Ir+=Ir;function jr(e){if("number"!==typeof e)try{e=F.from(e).toNumber()}catch(t){}return"number"===typeof e&&e>=0&&e<=256&&!(e%1)?"1"+Ir.substring(0,e):Nr.throwArgumentError("invalid decimal size","decimals",e)}function Xr(e,t){null==t&&(t=0);var r=jr(t),n=(e=F.from(e)).lt(Jr);n&&(e=e.mul(_r));for(var o=e.mod(r).toString();o.length<r.length-1;)o="0"+o;o=o.match(/^([0-9]*[1-9]|0)(0*)/)[1];var i=e.div(r).toString();return e=1===r.length?i:i+"."+o,n&&(e="-"+e),e}function Ur(e,t){null==t&&(t=0);var r=jr(t);"string"===typeof e&&e.match(/^-?[0-9.,]+$/)||Nr.throwArgumentError("invalid decimal value","value",e);var n="-"===e.substring(0,1);n&&(e=e.substring(1)),"."===e&&Nr.throwArgumentError("missing value","value",e);var o=e.split(".");o.length>2&&Nr.throwArgumentError("too many decimal points","value",e);var i=o[0],a=o[1];for(i||(i="0"),a||(a="0");"0"===a[a.length-1];)a=a.substring(0,a.length-1);for(a.length>r.length-1&&Dr("fractional component exceeds decimals","underflow","parseFixed"),""===a&&(a="0");a.length<r.length-1;)a+="0";var u=F.from(i),s=F.from(a),l=u.mul(r).add(s);return n&&(l=l.mul(_r)),l}var Hr=function(){function e(t,r,n,o){Object(y.a)(this,e),t!==Rr&&Nr.throwError("cannot use FixedFormat constructor; use FixedFormat.from",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.signed=r,this.width=n,this.decimals=o,this.name=(r?"":"u")+"fixed"+String(n)+"x"+String(o),this._multiplier=jr(o),Object.freeze(this)}return Object(k.a)(e,null,[{key:"from",value:function(t){if(t instanceof e)return t;"number"===typeof t&&(t="fixed128x".concat(t));var r=!0,n=128,o=18;if("string"===typeof t)if("fixed"===t);else if("ufixed"===t)r=!1;else{var i=t.match(/^(u?)fixed([0-9]+)x([0-9]+)$/);i||Nr.throwArgumentError("invalid fixed format","format",t),r="u"!==i[1],n=parseInt(i[2]),o=parseInt(i[3])}else if(t){var a=function(e,r,n){return null==t[e]?n:(typeof t[e]!==r&&Nr.throwArgumentError("invalid fixed format ("+e+" not "+r+")","format."+e,t[e]),t[e])};r=a("signed","boolean",r),n=a("width","number",n),o=a("decimals","number",o)}return n%8&&Nr.throwArgumentError("invalid fixed format width (not byte aligned)","format.width",n),o>80&&Nr.throwArgumentError("invalid fixed format (decimals too large)","format.decimals",o),new e(Rr,r,n,o)}}]),e}(),Gr=function(){function e(t,r,n,o){Object(y.a)(this,e),Nr.checkNew(this instanceof e?this.constructor:void 0,e),t!==Rr&&Nr.throwError("cannot use FixedNumber constructor; use FixedNumber.from",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new FixedFormat"}),this.format=o,this._hex=r,this._value=n,this._isFixedNumber=!0,Object.freeze(this)}return Object(k.a)(e,[{key:"_checkFormat",value:function(e){this.format.name!==e.format.name&&Nr.throwArgumentError("incompatible format; use fixedNumber.toFormat","other",e)}},{key:"addUnsafe",value:function(t){this._checkFormat(t);var r=Ur(this._value,this.format.decimals),n=Ur(t._value,t.format.decimals);return e.fromValue(r.add(n),this.format.decimals,this.format)}},{key:"subUnsafe",value:function(t){this._checkFormat(t);var r=Ur(this._value,this.format.decimals),n=Ur(t._value,t.format.decimals);return e.fromValue(r.sub(n),this.format.decimals,this.format)}},{key:"mulUnsafe",value:function(t){this._checkFormat(t);var r=Ur(this._value,this.format.decimals),n=Ur(t._value,t.format.decimals);return e.fromValue(r.mul(n).div(this.format._multiplier),this.format.decimals,this.format)}},{key:"divUnsafe",value:function(t){this._checkFormat(t);var r=Ur(this._value,this.format.decimals),n=Ur(t._value,t.format.decimals);return e.fromValue(r.mul(this.format._multiplier).div(n),this.format.decimals,this.format)}},{key:"floor",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return this.isNegative()&&n&&(r=r.subUnsafe(zr.toFormat(r.format))),r}},{key:"ceiling",value:function(){var t=this.toString().split(".");1===t.length&&t.push("0");var r=e.from(t[0],this.format),n=!t[1].match(/^(0*)$/);return!this.isNegative()&&n&&(r=r.addUnsafe(zr.toFormat(r.format))),r}},{key:"round",value:function(t){null==t&&(t=0);var r=this.toString().split(".");if(1===r.length&&r.push("0"),(t<0||t>80||t%1)&&Nr.throwArgumentError("invalid decimal count","decimals",t),r[1].length<=t)return this;var n=e.from("1"+Ir.substring(0,t),this.format),o=Vr.toFormat(this.format);return this.mulUnsafe(n).addUnsafe(o).floor().divUnsafe(n)}},{key:"isZero",value:function(){return"0.0"===this._value||"0"===this._value}},{key:"isNegative",value:function(){return"-"===this._value[0]}},{key:"toString",value:function(){return this._value}},{key:"toHexString",value:function(e){if(null==e)return this._hex;e%8&&Nr.throwArgumentError("invalid byte width","width",e);var t=F.from(this._hex).fromTwos(this.format.width).toTwos(e).toHexString();return Object(E.h)(t,e/8)}},{key:"toUnsafeFloat",value:function(){return parseFloat(this.toString())}},{key:"toFormat",value:function(t){return e.fromString(this._value,t)}}],[{key:"fromValue",value:function(t,r,n){return null!=n||null==r||function(e){return null!=e&&(F.isBigNumber(e)||"number"===typeof e&&e%1===0||"string"===typeof e&&!!e.match(/^-?[0-9]+$/)||Object(E.l)(e)||"bigint"===typeof e||Object(E.j)(e))}(r)||(n=r,r=null),null==r&&(r=0),null==n&&(n="fixed"),e.fromString(Xr(t,r),Hr.from(n))}},{key:"fromString",value:function(t,r){null==r&&(r="fixed");var n=Hr.from(r),o=Ur(t,n.decimals);!n.signed&&o.lt(Jr)&&Dr("unsigned value cannot be negative","overflow","value",t);var i=null;n.signed?i=o.toTwos(n.width).toHexString():(i=o.toHexString(),i=Object(E.h)(i,n.width/8));var a=Xr(o,n.decimals);return new e(Rr,i,a,n)}},{key:"fromBytes",value:function(t,r){null==r&&(r="fixed");var n=Hr.from(r);if(Object(E.a)(t).length>n.width/8)throw new Error("overflow");var o=F.from(t);n.signed&&(o=o.fromTwos(n.width));var i=o.toTwos((n.signed?0:1)+n.width).toHexString(),a=Xr(o,n.decimals);return new e(Rr,i,a,n)}},{key:"from",value:function(t,r){if("string"===typeof t)return e.fromString(t,r);if(Object(E.j)(t))return e.fromBytes(t,r);try{return e.fromValue(t,0,r)}catch(n){if(n.code!==M.b.errors.INVALID_ARGUMENT)throw n}return Nr.throwArgumentError("invalid FixedNumber value","value",t)}},{key:"isFixedNumber",value:function(e){return!(!e||!e._isFixedNumber)}}]),e}(),zr=Gr.from(1),Vr=Gr.from("0.5");function Zr(e){return"string"===typeof e&&(e=Pe(e)),ee(Object(E.b)([Pe("\x19Ethereum Signed Message:\n"),Pe(String(e.length)),e]))}var Kr=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Qr=new M.b("hash/5.4.0"),qr=new Uint8Array(32);qr.fill(0);var Wr=F.from(-1),Yr=F.from(0),$r=F.from(1),en=F.from("0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff");var tn=Object(E.h)($r.toHexString(),32),rn=Object(E.h)(Yr.toHexString(),32),nn={name:"string",version:"string",chainId:"uint256",verifyingContract:"address",salt:"bytes32"},on=["name","version","chainId","verifyingContract","salt"];function an(e){return function(t){return"string"!==typeof t&&Qr.throwArgumentError("invalid domain value for ".concat(JSON.stringify(e)),"domain.".concat(e),t),t}}var un={name:an("name"),version:an("version"),chainId:function(e){try{return F.from(e).toString()}catch(t){}return Qr.throwArgumentError('invalid domain value for "chainId"',"domain.chainId",e)},verifyingContract:function(e){try{return me(e).toLowerCase()}catch(t){}return Qr.throwArgumentError('invalid domain value "verifyingContract"',"domain.verifyingContract",e)},salt:function(e){try{var t=Object(E.a)(e);if(32!==t.length)throw new Error("bad length");return Object(E.i)(t)}catch(r){}return Qr.throwArgumentError('invalid domain value "salt"',"domain.salt",e)}};function sn(e){var t=e.match(/^(u?)int(\d*)$/);if(t){var r=""===t[1],n=parseInt(t[2]||"256");(n%8!==0||n>256||t[2]&&t[2]!==String(n))&&Qr.throwArgumentError("invalid numeric width","type",e);var o=en.mask(r?n-1:n),i=r?o.add($r).mul(Wr):Yr;return function(t){var r=F.from(t);return(r.lt(i)||r.gt(o))&&Qr.throwArgumentError("value out-of-bounds for ".concat(e),"value",t),Object(E.h)(r.toTwos(256).toHexString(),32)}}var a=e.match(/^bytes(\d+)$/);if(a){var u=parseInt(a[1]);return(0===u||u>32||a[1]!==String(u))&&Qr.throwArgumentError("invalid bytes width","type",e),function(t){return Object(E.a)(t).length!==u&&Qr.throwArgumentError("invalid length for ".concat(e),"value",t),function(e){var t=Object(E.a)(e),r=t.length%32;return r?Object(E.c)([t,qr.slice(r)]):Object(E.i)(t)}(t)}}switch(e){case"address":return function(e){return Object(E.h)(me(e),32)};case"bool":return function(e){return e?tn:rn};case"bytes":return function(e){return ee(e)};case"string":return function(e){return Be(e)}}return null}function ln(e,t){return"".concat(e,"(").concat(t.map((function(e){var t=e.name;return e.type+" "+t})).join(","),")")}var cn,fn=function(){function e(t){Object(y.a)(this,e),D(this,"types",Object.freeze(z(t))),D(this,"_encoderCache",{}),D(this,"_types",{});var r={},n={},o={};Object.keys(t).forEach((function(e){r[e]={},n[e]=[],o[e]={}}));var i=function(e){var o={};t[e].forEach((function(i){o[i.name]&&Qr.throwArgumentError("duplicate variable name ".concat(JSON.stringify(i.name)," in ").concat(JSON.stringify(e)),"types",t),o[i.name]=!0;var a=i.type.match(/^([^\x5b]*)(\x5b|$)/)[1];a===e&&Qr.throwArgumentError("circular type reference to ".concat(JSON.stringify(a)),"types",t),sn(a)||(n[a]||Qr.throwArgumentError("unknown type ".concat(JSON.stringify(a)),"types",t),n[a].push(e),r[e][a]=!0)}))};for(var a in t)i(a);var u=Object.keys(n).filter((function(e){return 0===n[e].length}));for(var s in 0===u.length?Qr.throwArgumentError("missing primary type","types",t):u.length>1&&Qr.throwArgumentError("ambiguous primary types or unused types: ".concat(u.map((function(e){return JSON.stringify(e)})).join(", ")),"types",t),D(this,"primaryType",u[0]),function e(i,a){a[i]&&Qr.throwArgumentError("circular type reference to ".concat(JSON.stringify(i)),"types",t),a[i]=!0,Object.keys(r[i]).forEach((function(t){n[t]&&(e(t,a),Object.keys(a).forEach((function(e){o[e][t]=!0})))})),delete a[i]}(this.primaryType,{}),o){var l=Object.keys(o[s]);l.sort(),this._types[s]=ln(s,t[s])+l.map((function(e){return ln(e,t[e])})).join("")}}return Object(k.a)(e,[{key:"getEncoder",value:function(e){var t=this._encoderCache[e];return t||(t=this._encoderCache[e]=this._getEncoder(e)),t}},{key:"_getEncoder",value:function(e){var t=this,r=sn(e);if(r)return r;var n=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(n){var o=n[1],i=this.getEncoder(o),a=parseInt(n[3]);return function(e){a>=0&&e.length!==a&&Qr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",e);var r=e.map(i);return t._types[o]&&(r=r.map(ee)),ee(Object(E.c)(r))}}var u=this.types[e];if(u){var s=Be(this._types[e]);return function(e){var r=u.map((function(r){var n=r.name,o=r.type,i=t.getEncoder(o)(e[n]);return t._types[o]?ee(i):i}));return r.unshift(s),Object(E.c)(r)}}return Qr.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"encodeType",value:function(e){var t=this._types[e];return t||Qr.throwArgumentError("unknown type: ".concat(JSON.stringify(e)),"name",e),t}},{key:"encodeData",value:function(e,t){return this.getEncoder(e)(t)}},{key:"hashStruct",value:function(e,t){return ee(this.encodeData(e,t))}},{key:"encode",value:function(e){return this.encodeData(this.primaryType,e)}},{key:"hash",value:function(e){return this.hashStruct(this.primaryType,e)}},{key:"_visit",value:function(e,t,r){var n=this;if(sn(e))return r(e,t);var o=e.match(/^(.*)(\x5b(\d*)\x5d)$/);if(o){var i=o[1],a=parseInt(o[3]);return a>=0&&t.length!==a&&Qr.throwArgumentError("array length mismatch; expected length ${ arrayLength }","value",t),t.map((function(e){return n._visit(i,e,r)}))}var u=this.types[e];return u?u.reduce((function(e,o){var i=o.name,a=o.type;return e[i]=n._visit(a,t[i],r),e}),{}):Qr.throwArgumentError("unknown type: ".concat(e),"type",e)}},{key:"visit",value:function(e,t){return this._visit(this.primaryType,e,t)}}],[{key:"from",value:function(t){return new e(t)}},{key:"getPrimaryType",value:function(t){return e.from(t).primaryType}},{key:"hashStruct",value:function(t,r,n){return e.from(r).hashStruct(t,n)}},{key:"hashDomain",value:function(t){var r=[];for(var n in t){var o=nn[n];o||Qr.throwArgumentError("invalid typed-data domain key: ".concat(JSON.stringify(n)),"domain",t),r.push({name:n,type:o})}return r.sort((function(e,t){return on.indexOf(e.name)-on.indexOf(t.name)})),e.hashStruct("EIP712Domain",{EIP712Domain:r},t)}},{key:"encode",value:function(t,r,n){return Object(E.c)(["0x1901",e.hashDomain(t),e.from(r).hash(n)])}},{key:"hash",value:function(t,r,n){return ee(e.encode(t,r,n))}},{key:"resolveNames",value:function(t,r,n,o){return Kr(this,void 0,void 0,T.a.mark((function i(){var a,u,s;return T.a.wrap((function(i){for(;;)switch(i.prev=i.next){case 0:t=U(t),a={},t.verifyingContract&&!Object(E.l)(t.verifyingContract,20)&&(a[t.verifyingContract]="0x"),(u=e.from(r)).visit(n,(function(e,t){return"address"!==e||Object(E.l)(t,20)||(a[t]="0x"),t})),i.t0=T.a.keys(a);case 6:if((i.t1=i.t0()).done){i.next=13;break}return s=i.t1.value,i.next=10,o(s);case 10:a[s]=i.sent,i.next=6;break;case 13:return t.verifyingContract&&a[t.verifyingContract]&&(t.verifyingContract=a[t.verifyingContract]),n=u.visit(n,(function(e,t){return"address"===e&&a[t]?a[t]:t})),i.abrupt("return",{domain:t,value:n});case 16:case"end":return i.stop()}}),i)})))}},{key:"getPayload",value:function(t,r,n){e.hashDomain(t);var o={},i=[];on.forEach((function(e){var r=t[e];null!=r&&(o[e]=un[e](r),i.push({name:e,type:nn[e]}))}));var a=e.from(r),u=U(r);return u.EIP712Domain?Qr.throwArgumentError("types must not contain EIP712Domain type","types.EIP712Domain",r):u.EIP712Domain=i,a.encode(n),{types:u,domain:o,primaryType:a.primaryType,message:a.visit(n,(function(e,t){if(e.match(/^bytes(\d*)/))return Object(E.i)(Object(E.a)(t));if(e.match(/^u?int/))return F.from(t).toString();switch(e){case"address":return t.toLowerCase();case"bool":return!!t;case"string":return"string"!==typeof t&&Qr.throwArgumentError("invalid string","value",t),t}return Qr.throwArgumentError("unsupported type","type",e)}))}}}]),e}(),hn=function(){function e(t){Object(y.a)(this,e),D(this,"alphabet",t),D(this,"base",t.length),D(this,"_alphabetMap",{}),D(this,"_leader",t.charAt(0));for(var r=0;r<t.length;r++)this._alphabetMap[t.charAt(r)]=r}return Object(k.a)(e,[{key:"encode",value:function(e){var t=Object(E.a)(e);if(0===t.length)return"";for(var r=[0],n=0;n<t.length;++n){for(var o=t[n],i=0;i<r.length;++i)o+=r[i]<<8,r[i]=o%this.base,o=o/this.base|0;for(;o>0;)r.push(o%this.base),o=o/this.base|0}for(var a="",u=0;0===t[u]&&u<t.length-1;++u)a+=this._leader;for(var s=r.length-1;s>=0;--s)a+=this.alphabet[r[s]];return a}},{key:"decode",value:function(e){if("string"!==typeof e)throw new TypeError("Expected String");var t=[];if(0===e.length)return new Uint8Array(t);t.push(0);for(var r=0;r<e.length;r++){var n=this._alphabetMap[e[r]];if(void 0===n)throw new Error("Non-base"+this.base+" character");for(var o=n,i=0;i<t.length;++i)o+=t[i]*this.base,t[i]=255&o,o>>=8;for(;o>0;)t.push(255&o),o>>=8}for(var a=0;e[a]===this._leader&&a<e.length-1;++a)t.push(0);return Object(E.a)(new Uint8Array(t.reverse()))}}]),e}(),dn=(new hn("abcdefghijklmnopqrstuvwxyz234567"),new hn("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz")),pn=r(9),vn=r.n(pn);!function(e){e.sha256="sha256",e.sha512="sha512"}(cn||(cn={}));var mn=new M.b("sha2/5.4.0");function gn(e){return"0x"+vn.a.ripemd160().update(Object(E.a)(e)).digest("hex")}function bn(e){return"0x"+vn.a.sha256().update(Object(E.a)(e)).digest("hex")}function yn(e){return"0x"+vn.a.sha512().update(Object(E.a)(e)).digest("hex")}function kn(e,t,r){return cn[e]||mn.throwError("unsupported algorithm "+e,M.b.errors.UNSUPPORTED_OPERATION,{operation:"hmac",algorithm:e}),"0x"+vn.a.hmac(vn.a[e],Object(E.a)(t)).update(Object(E.a)(r)).digest("hex")}function wn(e,t,r,n,o){var i;e=Object(E.a)(e),t=Object(E.a)(t);var a,u,s=1,l=new Uint8Array(n),c=new Uint8Array(t.length+4);c.set(t);for(var f=1;f<=s;f++){c[t.length]=f>>24&255,c[t.length+1]=f>>16&255,c[t.length+2]=f>>8&255,c[t.length+3]=255&f;var h=Object(E.a)(kn(o,e,c));i||(i=h.length,u=new Uint8Array(i),a=n-((s=Math.ceil(n/i))-1)*i),u.set(h);for(var d=1;d<r;d++){h=Object(E.a)(kn(o,e,h));for(var p=0;p<i;p++)u[p]^=h[p]}var v=(f-1)*i,m=f===s?a:i;l.set(Object(E.a)(u).slice(0,m),v)}return Object(E.i)(l)}var Tn=new M.b("wordlists/5.4.0"),En=function(){function e(t){Object(y.a)(this,e),Tn.checkAbstract(this instanceof e?this.constructor:void 0,e),D(this,"locale",t)}return Object(k.a)(e,[{key:"split",value:function(e){return e.toLowerCase().split(/ +/g)}},{key:"join",value:function(e){return e.join(" ")}}],[{key:"check",value:function(e){for(var t=[],r=0;r<2048;r++){var n=e.getWord(r);if(r!==e.getWordIndex(n))return"0x";t.push(n)}return Be(t.join("\n")+"\n")}},{key:"register",value:function(e,t){t||(t=e.locale)}}]),e}(),Sn=null;function An(e){if(null==Sn&&(Sn="AbdikaceAbecedaAdresaAgreseAkceAktovkaAlejAlkoholAmputaceAnanasAndulkaAnekdotaAnketaAntikaAnulovatArchaAroganceAsfaltAsistentAspiraceAstmaAstronomAtlasAtletikaAtolAutobusAzylBabkaBachorBacilBaculkaBadatelBagetaBagrBahnoBakterieBaladaBaletkaBalkonBalonekBalvanBalzaBambusBankomatBarbarBaretBarmanBarokoBarvaBaterkaBatohBavlnaBazalkaBazilikaBazukaBednaBeranBesedaBestieBetonBezinkaBezmocBeztakBicyklBidloBiftekBikinyBilanceBiografBiologBitvaBizonBlahobytBlatouchBlechaBleduleBleskBlikatBliznaBlokovatBlouditBludBobekBobrBodlinaBodnoutBohatostBojkotBojovatBokorysBolestBorecBoroviceBotaBoubelBouchatBoudaBouleBouratBoxerBradavkaBramboraBrankaBratrBreptaBriketaBrkoBrlohBronzBroskevBrunetkaBrusinkaBrzdaBrzyBublinaBubnovatBuchtaBuditelBudkaBudovaBufetBujarostBukviceBuldokBulvaBundaBunkrBurzaButikBuvolBuzolaBydletBylinaBytovkaBzukotCapartCarevnaCedrCeduleCejchCejnCelaCelerCelkemCelniceCeninaCennostCenovkaCentrumCenzorCestopisCetkaChalupaChapadloCharitaChataChechtatChemieChichotChirurgChladChlebaChlubitChmelChmuraChobotChocholChodbaCholeraChomoutChopitChorobaChovChrapotChrlitChrtChrupChtivostChudinaChutnatChvatChvilkaChvostChybaChystatChytitCibuleCigaretaCihelnaCihlaCinkotCirkusCisternaCitaceCitrusCizinecCizostClonaCokolivCouvatCtitelCtnostCudnostCuketaCukrCupotCvaknoutCvalCvikCvrkotCyklistaDalekoDarebaDatelDatumDceraDebataDechovkaDecibelDeficitDeflaceDeklDekretDemokratDepreseDerbyDeskaDetektivDikobrazDiktovatDiodaDiplomDiskDisplejDivadloDivochDlahaDlouhoDluhopisDnesDobroDobytekDocentDochutitDodnesDohledDohodaDohraDojemDojniceDokladDokolaDoktorDokumentDolarDolevaDolinaDomaDominantDomluvitDomovDonutitDopadDopisDoplnitDoposudDoprovodDopustitDorazitDorostDortDosahDoslovDostatekDosudDosytaDotazDotekDotknoutDoufatDoutnatDovozceDozaduDoznatDozorceDrahotaDrakDramatikDravecDrazeDrdolDrobnostDrogerieDrozdDrsnostDrtitDrzostDubenDuchovnoDudekDuhaDuhovkaDusitDusnoDutostDvojiceDvorecDynamitEkologEkonomieElektronElipsaEmailEmiseEmoceEmpatieEpizodaEpochaEpopejEposEsejEsenceEskortaEskymoEtiketaEuforieEvoluceExekuceExkurzeExpediceExplozeExportExtraktFackaFajfkaFakultaFanatikFantazieFarmacieFavoritFazoleFederaceFejetonFenkaFialkaFigurantFilozofFiltrFinanceFintaFixaceFjordFlanelFlirtFlotilaFondFosforFotbalFotkaFotonFrakceFreskaFrontaFukarFunkceFyzikaGalejeGarantGenetikaGeologGilotinaGlazuraGlejtGolemGolfistaGotikaGrafGramofonGranuleGrepGrilGrogGroteskaGumaHadiceHadrHalaHalenkaHanbaHanopisHarfaHarpunaHavranHebkostHejkalHejnoHejtmanHektarHelmaHematomHerecHernaHesloHezkyHistorikHladovkaHlasivkyHlavaHledatHlenHlodavecHlohHloupostHltatHlubinaHluchotaHmatHmotaHmyzHnisHnojivoHnoutHoblinaHobojHochHodinyHodlatHodnotaHodovatHojnostHokejHolinkaHolkaHolubHomoleHonitbaHonoraceHoralHordaHorizontHorkoHorlivecHormonHorninaHoroskopHorstvoHospodaHostinaHotovostHoubaHoufHoupatHouskaHovorHradbaHraniceHravostHrazdaHrbolekHrdinaHrdloHrdostHrnekHrobkaHromadaHrotHroudaHrozenHrstkaHrubostHryzatHubenostHubnoutHudbaHukotHumrHusitaHustotaHvozdHybnostHydrantHygienaHymnaHysterikIdylkaIhnedIkonaIluzeImunitaInfekceInflaceInkasoInovaceInspekceInternetInvalidaInvestorInzerceIronieJablkoJachtaJahodaJakmileJakostJalovecJantarJarmarkJaroJasanJasnoJatkaJavorJazykJedinecJedleJednatelJehlanJekotJelenJelitoJemnostJenomJepiceJeseterJevitJezdecJezeroJinakJindyJinochJiskraJistotaJitrniceJizvaJmenovatJogurtJurtaKabaretKabelKabinetKachnaKadetKadidloKahanKajakKajutaKakaoKaktusKalamitaKalhotyKalibrKalnostKameraKamkolivKamnaKanibalKanoeKantorKapalinaKapelaKapitolaKapkaKapleKapotaKaprKapustaKapybaraKaramelKarotkaKartonKasaKatalogKatedraKauceKauzaKavalecKazajkaKazetaKazivostKdekolivKdesiKedlubenKempKeramikaKinoKlacekKladivoKlamKlapotKlasikaKlaunKlecKlenbaKlepatKlesnoutKlidKlimaKlisnaKloboukKlokanKlopaKloubKlubovnaKlusatKluzkostKmenKmitatKmotrKnihaKnotKoaliceKoberecKobkaKoblihaKobylaKocourKohoutKojenecKokosKoktejlKolapsKoledaKolizeKoloKomandoKometaKomikKomnataKomoraKompasKomunitaKonatKonceptKondiceKonecKonfeseKongresKoninaKonkursKontaktKonzervaKopanecKopieKopnoutKoprovkaKorbelKorektorKormidloKoroptevKorpusKorunaKorytoKorzetKosatecKostkaKotelKotletaKotoulKoukatKoupelnaKousekKouzloKovbojKozaKozorohKrabiceKrachKrajinaKralovatKrasopisKravataKreditKrejcarKresbaKrevetaKriketKritikKrizeKrkavecKrmelecKrmivoKrocanKrokKronikaKropitKroupaKrovkaKrtekKruhadloKrupiceKrutostKrvinkaKrychleKryptaKrystalKrytKudlankaKufrKujnostKuklaKulajdaKulichKulkaKulometKulturaKunaKupodivuKurtKurzorKutilKvalitaKvasinkaKvestorKynologKyselinaKytaraKyticeKytkaKytovecKyvadloLabradorLachtanLadnostLaikLakomecLamelaLampaLanovkaLasiceLasoLasturaLatinkaLavinaLebkaLeckdyLedenLedniceLedovkaLedvinaLegendaLegieLegraceLehceLehkostLehnoutLektvarLenochodLentilkaLepenkaLepidloLetadloLetecLetmoLetokruhLevhartLevitaceLevobokLibraLichotkaLidojedLidskostLihovinaLijavecLilekLimetkaLinieLinkaLinoleumListopadLitinaLitovatLobistaLodivodLogikaLogopedLokalitaLoketLomcovatLopataLopuchLordLososLotrLoudalLouhLoukaLouskatLovecLstivostLucernaLuciferLumpLuskLustraceLviceLyraLyrikaLysinaMadamMadloMagistrMahagonMajetekMajitelMajoritaMakakMakoviceMakrelaMalbaMalinaMalovatMalviceMaminkaMandleMankoMarnostMasakrMaskotMasopustMaticeMatrikaMaturitaMazanecMazivoMazlitMazurkaMdlobaMechanikMeditaceMedovinaMelasaMelounMentolkaMetlaMetodaMetrMezeraMigraceMihnoutMihuleMikinaMikrofonMilenecMilimetrMilostMimikaMincovnaMinibarMinometMinulostMiskaMistrMixovatMladostMlhaMlhovinaMlokMlsatMluvitMnichMnohemMobilMocnostModelkaModlitbaMohylaMokroMolekulaMomentkaMonarchaMonoklMonstrumMontovatMonzunMosazMoskytMostMotivaceMotorkaMotykaMouchaMoudrostMozaikaMozekMozolMramorMravenecMrkevMrtvolaMrzetMrzutostMstitelMudrcMuflonMulatMumieMuniceMusetMutaceMuzeumMuzikantMyslivecMzdaNabouratNachytatNadaceNadbytekNadhozNadobroNadpisNahlasNahnatNahodileNahraditNaivitaNajednouNajistoNajmoutNaklonitNakonecNakrmitNalevoNamazatNamluvitNanometrNaokoNaopakNaostroNapadatNapevnoNaplnitNapnoutNaposledNaprostoNaroditNarubyNarychloNasaditNasekatNaslepoNastatNatolikNavenekNavrchNavzdoryNazvatNebeNechatNeckyNedalekoNedbatNeduhNegaceNehetNehodaNejenNejprveNeklidNelibostNemilostNemocNeochotaNeonkaNepokojNerostNervNesmyslNesouladNetvorNeuronNevinaNezvykleNicotaNijakNikamNikdyNiklNikterakNitroNoclehNohaviceNominaceNoraNorekNositelNosnostNouzeNovinyNovotaNozdraNudaNudleNugetNutitNutnostNutrieNymfaObalObarvitObavaObdivObecObehnatObejmoutObezitaObhajobaObilniceObjasnitObjektObklopitOblastOblekOblibaOblohaObludaObnosObohatitObojekOboutObrazecObrnaObrubaObrysObsahObsluhaObstaratObuvObvazObvinitObvodObvykleObyvatelObzorOcasOcelOcenitOchladitOchotaOchranaOcitnoutOdbojOdbytOdchodOdcizitOdebratOdeslatOdevzdatOdezvaOdhadceOdhoditOdjetOdjinudOdkazOdkoupitOdlivOdlukaOdmlkaOdolnostOdpadOdpisOdploutOdporOdpustitOdpykatOdrazkaOdsouditOdstupOdsunOdtokOdtudOdvahaOdvetaOdvolatOdvracetOdznakOfinaOfsajdOhlasOhniskoOhradaOhrozitOhryzekOkapOkeniceOklikaOknoOkouzlitOkovyOkrasaOkresOkrsekOkruhOkupantOkurkaOkusitOlejninaOlizovatOmakOmeletaOmezitOmladinaOmlouvatOmluvaOmylOnehdyOpakovatOpasekOperaceOpiceOpilostOpisovatOporaOpoziceOpravduOprotiOrbitalOrchestrOrgieOrliceOrlojOrtelOsadaOschnoutOsikaOsivoOslavaOslepitOslnitOslovitOsnovaOsobaOsolitOspalecOstenOstrahaOstudaOstychOsvojitOteplitOtiskOtopOtrhatOtrlostOtrokOtrubyOtvorOvanoutOvarOvesOvlivnitOvoceOxidOzdobaPachatelPacientPadouchPahorekPaktPalandaPalecPalivoPalubaPamfletPamlsekPanenkaPanikaPannaPanovatPanstvoPantoflePaprikaParketaParodiePartaParukaParybaPasekaPasivitaPastelkaPatentPatronaPavoukPaznehtPazourekPeckaPedagogPejsekPekloPelotonPenaltaPendrekPenzePeriskopPeroPestrostPetardaPeticePetrolejPevninaPexesoPianistaPihaPijavicePiklePiknikPilinaPilnostPilulkaPinzetaPipetaPisatelPistolePitevnaPivnicePivovarPlacentaPlakatPlamenPlanetaPlastikaPlatitPlavidloPlazPlechPlemenoPlentaPlesPletivoPlevelPlivatPlnitPlnoPlochaPlodinaPlombaPloutPlukPlynPobavitPobytPochodPocitPoctivecPodatPodcenitPodepsatPodhledPodivitPodkladPodmanitPodnikPodobaPodporaPodrazPodstataPodvodPodzimPoeziePohankaPohnutkaPohovorPohromaPohybPointaPojistkaPojmoutPokazitPoklesPokojPokrokPokutaPokynPolednePolibekPolknoutPolohaPolynomPomaluPominoutPomlkaPomocPomstaPomysletPonechatPonorkaPonurostPopadatPopelPopisekPoplachPoprositPopsatPopudPoradcePorcePorodPoruchaPoryvPosaditPosedPosilaPoskokPoslanecPosouditPospoluPostavaPosudekPosypPotahPotkanPotleskPotomekPotravaPotupaPotvoraPoukazPoutoPouzdroPovahaPovidlaPovlakPovozPovrchPovstatPovykPovzdechPozdravPozemekPoznatekPozorPozvatPracovatPrahoryPraktikaPralesPraotecPraporekPrasePravdaPrincipPrknoProbuditProcentoProdejProfeseProhraProjektProlomitPromilePronikatPropadProrokProsbaProtonProutekProvazPrskavkaPrstenPrudkostPrutPrvekPrvohoryPsanecPsovodPstruhPtactvoPubertaPuchPudlPukavecPuklinaPukrlePultPumpaPuncPupenPusaPusinkaPustinaPutovatPutykaPyramidaPyskPytelRacekRachotRadiaceRadniceRadonRaftRagbyRaketaRakovinaRamenoRampouchRandeRarachRaritaRasovnaRastrRatolestRazanceRazidloReagovatReakceReceptRedaktorReferentReflexRejnokReklamaRekordRekrutRektorReputaceRevizeRevmaRevolverRezervaRiskovatRizikoRobotikaRodokmenRohovkaRokleRokokoRomanetoRopovodRopuchaRorejsRosolRostlinaRotmistrRotopedRotundaRoubenkaRouchoRoupRouraRovinaRovniceRozborRozchodRozdatRozeznatRozhodceRozinkaRozjezdRozkazRozlohaRozmarRozpadRozruchRozsahRoztokRozumRozvodRubrikaRuchadloRukaviceRukopisRybaRybolovRychlostRydloRypadloRytinaRyzostSadistaSahatSakoSamecSamizdatSamotaSanitkaSardinkaSasankaSatelitSazbaSazeniceSborSchovatSebrankaSeceseSedadloSedimentSedloSehnatSejmoutSekeraSektaSekundaSekvojeSemenoSenoServisSesaditSeshoraSeskokSeslatSestraSesuvSesypatSetbaSetinaSetkatSetnoutSetrvatSeverSeznamShodaShrnoutSifonSilniceSirkaSirotekSirupSituaceSkafandrSkaliskoSkanzenSkautSkeptikSkicaSkladbaSkleniceSkloSkluzSkobaSkokanSkoroSkriptaSkrzSkupinaSkvostSkvrnaSlabikaSladidloSlaninaSlastSlavnostSledovatSlepecSlevaSlezinaSlibSlinaSlizniceSlonSloupekSlovoSluchSluhaSlunceSlupkaSlzaSmaragdSmetanaSmilstvoSmlouvaSmogSmradSmrkSmrtkaSmutekSmyslSnadSnahaSnobSobotaSochaSodovkaSokolSopkaSotvaSoubojSoucitSoudceSouhlasSouladSoumrakSoupravaSousedSoutokSouvisetSpalovnaSpasitelSpisSplavSpodekSpojenecSpoluSponzorSpornostSpoustaSprchaSpustitSrandaSrazSrdceSrnaSrnecSrovnatSrpenSrstSrubStaniceStarostaStatikaStavbaStehnoStezkaStodolaStolekStopaStornoStoupatStrachStresStrhnoutStromStrunaStudnaStupniceStvolStykSubjektSubtropySucharSudostSuknoSundatSunoutSurikataSurovinaSvahSvalstvoSvetrSvatbaSvazekSvisleSvitekSvobodaSvodidloSvorkaSvrabSykavkaSykotSynekSynovecSypatSypkostSyrovostSyselSytostTabletkaTabuleTahounTajemnoTajfunTajgaTajitTajnostTaktikaTamhleTamponTancovatTanecTankerTapetaTaveninaTazatelTechnikaTehdyTekutinaTelefonTemnotaTendenceTenistaTenorTeplotaTepnaTeprveTerapieTermoskaTextilTichoTiskopisTitulekTkadlecTkaninaTlapkaTleskatTlukotTlupaTmelToaletaTopinkaTopolTorzoTouhaToulecTradiceTraktorTrampTrasaTraverzaTrefitTrestTrezorTrhavinaTrhlinaTrochuTrojiceTroskaTroubaTrpceTrpitelTrpkostTrubecTruchlitTruhliceTrusTrvatTudyTuhnoutTuhostTundraTuristaTurnajTuzemskoTvarohTvorbaTvrdostTvrzTygrTykevUbohostUbozeUbratUbrousekUbrusUbytovnaUchoUctivostUdivitUhraditUjednatUjistitUjmoutUkazatelUklidnitUklonitUkotvitUkrojitUliceUlitaUlovitUmyvadloUnavitUniformaUniknoutUpadnoutUplatnitUplynoutUpoutatUpravitUranUrazitUsednoutUsilovatUsmrtitUsnadnitUsnoutUsouditUstlatUstrnoutUtahovatUtkatUtlumitUtonoutUtopenecUtrousitUvalitUvolnitUvozovkaUzdravitUzelUzeninaUzlinaUznatVagonValchaValounVanaVandalVanilkaVaranVarhanyVarovatVcelkuVchodVdovaVedroVegetaceVejceVelbloudVeletrhVelitelVelmocVelrybaVenkovVerandaVerzeVeselkaVeskrzeVesniceVespoduVestaVeterinaVeverkaVibraceVichrVideohraVidinaVidleVilaViniceVisetVitalitaVizeVizitkaVjezdVkladVkusVlajkaVlakVlasecVlevoVlhkostVlivVlnovkaVloupatVnucovatVnukVodaVodivostVodoznakVodstvoVojenskyVojnaVojskoVolantVolbaVolitVolnoVoskovkaVozidloVozovnaVpravoVrabecVracetVrahVrataVrbaVrcholekVrhatVrstvaVrtuleVsaditVstoupitVstupVtipVybavitVybratVychovatVydatVydraVyfotitVyhledatVyhnoutVyhoditVyhraditVyhubitVyjasnitVyjetVyjmoutVyklopitVykonatVylekatVymazatVymezitVymizetVymysletVynechatVynikatVynutitVypadatVyplatitVypravitVypustitVyrazitVyrovnatVyrvatVyslovitVysokoVystavitVysunoutVysypatVytasitVytesatVytratitVyvinoutVyvolatVyvrhelVyzdobitVyznatVzaduVzbuditVzchopitVzdorVzduchVzdychatVzestupVzhledemVzkazVzlykatVznikVzorekVzpouraVztahVztekXylofonZabratZabydletZachovatZadarmoZadusitZafoukatZahltitZahoditZahradaZahynoutZajatecZajetZajistitZaklepatZakoupitZalepitZamezitZamotatZamysletZanechatZanikatZaplatitZapojitZapsatZarazitZastavitZasunoutZatajitZatemnitZatknoutZaujmoutZavalitZaveletZavinitZavolatZavrtatZazvonitZbavitZbrusuZbudovatZbytekZdalekaZdarmaZdatnostZdivoZdobitZdrojZdvihZdymadloZeleninaZemanZeminaZeptatZezaduZezdolaZhatitZhltnoutZhlubokaZhotovitZhrubaZimaZimniceZjemnitZklamatZkoumatZkratkaZkumavkaZlatoZlehkaZlobaZlomZlostZlozvykZmapovatZmarZmatekZmijeZmizetZmocnitZmodratZmrzlinaZmutovatZnakZnalostZnamenatZnovuZobrazitZotavitZoubekZoufaleZploditZpomalitZpravaZprostitZprudkaZprvuZradaZranitZrcadloZrnitostZrnoZrovnaZrychlitZrzavostZtichaZtratitZubovinaZubrZvednoutZvenkuZveselaZvonZvratZvukovodZvyk".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x25f44555f4af25b51a711136e1c7d6e50ce9f8917d39d6b1f076b2bb4d2fac1a"!==En.check(e)))throw Sn=null,new Error("BIP39 Wordlist for en (English) FAILED")}var Mn=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"cz")}return Object(k.a)(r,[{key:"getWord",value:function(e){return An(this),Sn[e]}},{key:"getWordIndex",value:function(e){return An(this),Sn.indexOf(e)}}]),r}(En));En.register(Mn);var Pn=null;function Cn(e){if(null==Pn&&(Pn="AbandonAbilityAbleAboutAboveAbsentAbsorbAbstractAbsurdAbuseAccessAccidentAccountAccuseAchieveAcidAcousticAcquireAcrossActActionActorActressActualAdaptAddAddictAddressAdjustAdmitAdultAdvanceAdviceAerobicAffairAffordAfraidAgainAgeAgentAgreeAheadAimAirAirportAisleAlarmAlbumAlcoholAlertAlienAllAlleyAllowAlmostAloneAlphaAlreadyAlsoAlterAlwaysAmateurAmazingAmongAmountAmusedAnalystAnchorAncientAngerAngleAngryAnimalAnkleAnnounceAnnualAnotherAnswerAntennaAntiqueAnxietyAnyApartApologyAppearAppleApproveAprilArchArcticAreaArenaArgueArmArmedArmorArmyAroundArrangeArrestArriveArrowArtArtefactArtistArtworkAskAspectAssaultAssetAssistAssumeAsthmaAthleteAtomAttackAttendAttitudeAttractAuctionAuditAugustAuntAuthorAutoAutumnAverageAvocadoAvoidAwakeAwareAwayAwesomeAwfulAwkwardAxisBabyBachelorBaconBadgeBagBalanceBalconyBallBambooBananaBannerBarBarelyBargainBarrelBaseBasicBasketBattleBeachBeanBeautyBecauseBecomeBeefBeforeBeginBehaveBehindBelieveBelowBeltBenchBenefitBestBetrayBetterBetweenBeyondBicycleBidBikeBindBiologyBirdBirthBitterBlackBladeBlameBlanketBlastBleakBlessBlindBloodBlossomBlouseBlueBlurBlushBoardBoatBodyBoilBombBoneBonusBookBoostBorderBoringBorrowBossBottomBounceBoxBoyBracketBrainBrandBrassBraveBreadBreezeBrickBridgeBriefBrightBringBriskBroccoliBrokenBronzeBroomBrotherBrownBrushBubbleBuddyBudgetBuffaloBuildBulbBulkBulletBundleBunkerBurdenBurgerBurstBusBusinessBusyButterBuyerBuzzCabbageCabinCableCactusCageCakeCallCalmCameraCampCanCanalCancelCandyCannonCanoeCanvasCanyonCapableCapitalCaptainCarCarbonCardCargoCarpetCarryCartCaseCashCasinoCastleCasualCatCatalogCatchCategoryCattleCaughtCauseCautionCaveCeilingCeleryCementCensusCenturyCerealCertainChairChalkChampionChangeChaosChapterChargeChaseChatCheapCheckCheeseChefCherryChestChickenChiefChildChimneyChoiceChooseChronicChuckleChunkChurnCigarCinnamonCircleCitizenCityCivilClaimClapClarifyClawClayCleanClerkCleverClickClientCliffClimbClinicClipClockClogCloseClothCloudClownClubClumpClusterClutchCoachCoastCoconutCodeCoffeeCoilCoinCollectColorColumnCombineComeComfortComicCommonCompanyConcertConductConfirmCongressConnectConsiderControlConvinceCookCoolCopperCopyCoralCoreCornCorrectCostCottonCouchCountryCoupleCourseCousinCoverCoyoteCrackCradleCraftCramCraneCrashCraterCrawlCrazyCreamCreditCreekCrewCricketCrimeCrispCriticCropCrossCrouchCrowdCrucialCruelCruiseCrumbleCrunchCrushCryCrystalCubeCultureCupCupboardCuriousCurrentCurtainCurveCushionCustomCuteCycleDadDamageDampDanceDangerDaringDashDaughterDawnDayDealDebateDebrisDecadeDecemberDecideDeclineDecorateDecreaseDeerDefenseDefineDefyDegreeDelayDeliverDemandDemiseDenialDentistDenyDepartDependDepositDepthDeputyDeriveDescribeDesertDesignDeskDespairDestroyDetailDetectDevelopDeviceDevoteDiagramDialDiamondDiaryDiceDieselDietDifferDigitalDignityDilemmaDinnerDinosaurDirectDirtDisagreeDiscoverDiseaseDishDismissDisorderDisplayDistanceDivertDivideDivorceDizzyDoctorDocumentDogDollDolphinDomainDonateDonkeyDonorDoorDoseDoubleDoveDraftDragonDramaDrasticDrawDreamDressDriftDrillDrinkDripDriveDropDrumDryDuckDumbDuneDuringDustDutchDutyDwarfDynamicEagerEagleEarlyEarnEarthEasilyEastEasyEchoEcologyEconomyEdgeEditEducateEffortEggEightEitherElbowElderElectricElegantElementElephantElevatorEliteElseEmbarkEmbodyEmbraceEmergeEmotionEmployEmpowerEmptyEnableEnactEndEndlessEndorseEnemyEnergyEnforceEngageEngineEnhanceEnjoyEnlistEnoughEnrichEnrollEnsureEnterEntireEntryEnvelopeEpisodeEqualEquipEraEraseErodeErosionErrorEruptEscapeEssayEssenceEstateEternalEthicsEvidenceEvilEvokeEvolveExactExampleExcessExchangeExciteExcludeExcuseExecuteExerciseExhaustExhibitExileExistExitExoticExpandExpectExpireExplainExposeExpressExtendExtraEyeEyebrowFabricFaceFacultyFadeFaintFaithFallFalseFameFamilyFamousFanFancyFantasyFarmFashionFatFatalFatherFatigueFaultFavoriteFeatureFebruaryFederalFeeFeedFeelFemaleFenceFestivalFetchFeverFewFiberFictionFieldFigureFileFilmFilterFinalFindFineFingerFinishFireFirmFirstFiscalFishFitFitnessFixFlagFlameFlashFlatFlavorFleeFlightFlipFloatFlockFloorFlowerFluidFlushFlyFoamFocusFogFoilFoldFollowFoodFootForceForestForgetForkFortuneForumForwardFossilFosterFoundFoxFragileFrameFrequentFreshFriendFringeFrogFrontFrostFrownFrozenFruitFuelFunFunnyFurnaceFuryFutureGadgetGainGalaxyGalleryGameGapGarageGarbageGardenGarlicGarmentGasGaspGateGatherGaugeGazeGeneralGeniusGenreGentleGenuineGestureGhostGiantGiftGiggleGingerGiraffeGirlGiveGladGlanceGlareGlassGlideGlimpseGlobeGloomGloryGloveGlowGlueGoatGoddessGoldGoodGooseGorillaGospelGossipGovernGownGrabGraceGrainGrantGrapeGrassGravityGreatGreenGridGriefGritGroceryGroupGrowGruntGuardGuessGuideGuiltGuitarGunGymHabitHairHalfHammerHamsterHandHappyHarborHardHarshHarvestHatHaveHawkHazardHeadHealthHeartHeavyHedgehogHeightHelloHelmetHelpHenHeroHiddenHighHillHintHipHireHistoryHobbyHockeyHoldHoleHolidayHollowHomeHoneyHoodHopeHornHorrorHorseHospitalHostHotelHourHoverHubHugeHumanHumbleHumorHundredHungryHuntHurdleHurryHurtHusbandHybridIceIconIdeaIdentifyIdleIgnoreIllIllegalIllnessImageImitateImmenseImmuneImpactImposeImproveImpulseInchIncludeIncomeIncreaseIndexIndicateIndoorIndustryInfantInflictInformInhaleInheritInitialInjectInjuryInmateInnerInnocentInputInquiryInsaneInsectInsideInspireInstallIntactInterestIntoInvestInviteInvolveIronIslandIsolateIssueItemIvoryJacketJaguarJarJazzJealousJeansJellyJewelJobJoinJokeJourneyJoyJudgeJuiceJumpJungleJuniorJunkJustKangarooKeenKeepKetchupKeyKickKidKidneyKindKingdomKissKitKitchenKiteKittenKiwiKneeKnifeKnockKnowLabLabelLaborLadderLadyLakeLampLanguageLaptopLargeLaterLatinLaughLaundryLavaLawLawnLawsuitLayerLazyLeaderLeafLearnLeaveLectureLeftLegLegalLegendLeisureLemonLendLengthLensLeopardLessonLetterLevelLiarLibertyLibraryLicenseLifeLiftLightLikeLimbLimitLinkLionLiquidListLittleLiveLizardLoadLoanLobsterLocalLockLogicLonelyLongLoopLotteryLoudLoungeLoveLoyalLuckyLuggageLumberLunarLunchLuxuryLyricsMachineMadMagicMagnetMaidMailMainMajorMakeMammalManManageMandateMangoMansionManualMapleMarbleMarchMarginMarineMarketMarriageMaskMassMasterMatchMaterialMathMatrixMatterMaximumMazeMeadowMeanMeasureMeatMechanicMedalMediaMelodyMeltMemberMemoryMentionMenuMercyMergeMeritMerryMeshMessageMetalMethodMiddleMidnightMilkMillionMimicMindMinimumMinorMinuteMiracleMirrorMiseryMissMistakeMixMixedMixtureMobileModelModifyMomMomentMonitorMonkeyMonsterMonthMoonMoralMoreMorningMosquitoMotherMotionMotorMountainMouseMoveMovieMuchMuffinMuleMultiplyMuscleMuseumMushroomMusicMustMutualMyselfMysteryMythNaiveNameNapkinNarrowNastyNationNatureNearNeckNeedNegativeNeglectNeitherNephewNerveNestNetNetworkNeutralNeverNewsNextNiceNightNobleNoiseNomineeNoodleNormalNorthNoseNotableNoteNothingNoticeNovelNowNuclearNumberNurseNutOakObeyObjectObligeObscureObserveObtainObviousOccurOceanOctoberOdorOffOfferOfficeOftenOilOkayOldOliveOlympicOmitOnceOneOnionOnlineOnlyOpenOperaOpinionOpposeOptionOrangeOrbitOrchardOrderOrdinaryOrganOrientOriginalOrphanOstrichOtherOutdoorOuterOutputOutsideOvalOvenOverOwnOwnerOxygenOysterOzonePactPaddlePagePairPalacePalmPandaPanelPanicPantherPaperParadeParentParkParrotPartyPassPatchPathPatientPatrolPatternPausePavePaymentPeacePeanutPearPeasantPelicanPenPenaltyPencilPeoplePepperPerfectPermitPersonPetPhonePhotoPhrasePhysicalPianoPicnicPicturePiecePigPigeonPillPilotPinkPioneerPipePistolPitchPizzaPlacePlanetPlasticPlatePlayPleasePledgePluckPlugPlungePoemPoetPointPolarPolePolicePondPonyPoolPopularPortionPositionPossiblePostPotatoPotteryPovertyPowderPowerPracticePraisePredictPreferPreparePresentPrettyPreventPricePridePrimaryPrintPriorityPrisonPrivatePrizeProblemProcessProduceProfitProgramProjectPromoteProofPropertyProsperProtectProudProvidePublicPuddingPullPulpPulsePumpkinPunchPupilPuppyPurchasePurityPurposePursePushPutPuzzlePyramidQualityQuantumQuarterQuestionQuickQuitQuizQuoteRabbitRaccoonRaceRackRadarRadioRailRainRaiseRallyRampRanchRandomRangeRapidRareRateRatherRavenRawRazorReadyRealReasonRebelRebuildRecallReceiveRecipeRecordRecycleReduceReflectReformRefuseRegionRegretRegularRejectRelaxReleaseReliefRelyRemainRememberRemindRemoveRenderRenewRentReopenRepairRepeatReplaceReportRequireRescueResembleResistResourceResponseResultRetireRetreatReturnReunionRevealReviewRewardRhythmRibRibbonRiceRichRideRidgeRifleRightRigidRingRiotRippleRiskRitualRivalRiverRoadRoastRobotRobustRocketRomanceRoofRookieRoomRoseRotateRoughRoundRouteRoyalRubberRudeRugRuleRunRunwayRuralSadSaddleSadnessSafeSailSaladSalmonSalonSaltSaluteSameSampleSandSatisfySatoshiSauceSausageSaveSayScaleScanScareScatterSceneSchemeSchoolScienceScissorsScorpionScoutScrapScreenScriptScrubSeaSearchSeasonSeatSecondSecretSectionSecuritySeedSeekSegmentSelectSellSeminarSeniorSenseSentenceSeriesServiceSessionSettleSetupSevenShadowShaftShallowShareShedShellSheriffShieldShiftShineShipShiverShockShoeShootShopShortShoulderShoveShrimpShrugShuffleShySiblingSickSideSiegeSightSignSilentSilkSillySilverSimilarSimpleSinceSingSirenSisterSituateSixSizeSkateSketchSkiSkillSkinSkirtSkullSlabSlamSleepSlenderSliceSlideSlightSlimSloganSlotSlowSlushSmallSmartSmileSmokeSmoothSnackSnakeSnapSniffSnowSoapSoccerSocialSockSodaSoftSolarSoldierSolidSolutionSolveSomeoneSongSoonSorrySortSoulSoundSoupSourceSouthSpaceSpareSpatialSpawnSpeakSpecialSpeedSpellSpendSphereSpiceSpiderSpikeSpinSpiritSplitSpoilSponsorSpoonSportSpotSpraySpreadSpringSpySquareSqueezeSquirrelStableStadiumStaffStageStairsStampStandStartStateStaySteakSteelStemStepStereoStickStillStingStockStomachStoneStoolStoryStoveStrategyStreetStrikeStrongStruggleStudentStuffStumbleStyleSubjectSubmitSubwaySuccessSuchSuddenSufferSugarSuggestSuitSummerSunSunnySunsetSuperSupplySupremeSureSurfaceSurgeSurpriseSurroundSurveySuspectSustainSwallowSwampSwapSwarmSwearSweetSwiftSwimSwingSwitchSwordSymbolSymptomSyrupSystemTableTackleTagTailTalentTalkTankTapeTargetTaskTasteTattooTaxiTeachTeamTellTenTenantTennisTentTermTestTextThankThatThemeThenTheoryThereTheyThingThisThoughtThreeThriveThrowThumbThunderTicketTideTigerTiltTimberTimeTinyTipTiredTissueTitleToastTobaccoTodayToddlerToeTogetherToiletTokenTomatoTomorrowToneTongueTonightToolToothTopTopicToppleTorchTornadoTortoiseTossTotalTouristTowardTowerTownToyTrackTradeTrafficTragicTrainTransferTrapTrashTravelTrayTreatTreeTrendTrialTribeTrickTriggerTrimTripTrophyTroubleTruckTrueTrulyTrumpetTrustTruthTryTubeTuitionTumbleTunaTunnelTurkeyTurnTurtleTwelveTwentyTwiceTwinTwistTwoTypeTypicalUglyUmbrellaUnableUnawareUncleUncoverUnderUndoUnfairUnfoldUnhappyUniformUniqueUnitUniverseUnknownUnlockUntilUnusualUnveilUpdateUpgradeUpholdUponUpperUpsetUrbanUrgeUsageUseUsedUsefulUselessUsualUtilityVacantVacuumVagueValidValleyValveVanVanishVaporVariousVastVaultVehicleVelvetVendorVentureVenueVerbVerifyVersionVeryVesselVeteranViableVibrantViciousVictoryVideoViewVillageVintageViolinVirtualVirusVisaVisitVisualVitalVividVocalVoiceVoidVolcanoVolumeVoteVoyageWageWagonWaitWalkWallWalnutWantWarfareWarmWarriorWashWaspWasteWaterWaveWayWealthWeaponWearWeaselWeatherWebWeddingWeekendWeirdWelcomeWestWetWhaleWhatWheatWheelWhenWhereWhipWhisperWideWidthWifeWildWillWinWindowWineWingWinkWinnerWinterWireWisdomWiseWishWitnessWolfWomanWonderWoodWoolWordWorkWorldWorryWorthWrapWreckWrestleWristWriteWrongYardYearYellowYouYoungYouthZebraZeroZoneZoo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x3c8acc1e7b08d8e76f9fda015ef48dc8c710a73cb7e0f77b2c18a9b5a7adde60"!==En.check(e)))throw Pn=null,new Error("BIP39 Wordlist for en (English) FAILED")}var On=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"en")}return Object(k.a)(r,[{key:"getWord",value:function(e){return Cn(this),Pn[e]}},{key:"getWordIndex",value:function(e){return Cn(this),Pn.indexOf(e)}}]),r}(En));En.register(On);var xn={},Fn=null;function Ln(e){return Tn.checkNormalize(),Fe(Array.prototype.filter.call(Pe(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function Bn(e){if(null==Fn&&((Fn="A/bacoAbdomenAbejaAbiertoAbogadoAbonoAbortoAbrazoAbrirAbueloAbusoAcabarAcademiaAccesoAccio/nAceiteAcelgaAcentoAceptarA/cidoAclararAcne/AcogerAcosoActivoActoActrizActuarAcudirAcuerdoAcusarAdictoAdmitirAdoptarAdornoAduanaAdultoAe/reoAfectarAficio/nAfinarAfirmarA/gilAgitarAgoni/aAgostoAgotarAgregarAgrioAguaAgudoA/guilaAgujaAhogoAhorroAireAislarAjedrezAjenoAjusteAlacra/nAlambreAlarmaAlbaA/lbumAlcaldeAldeaAlegreAlejarAlertaAletaAlfilerAlgaAlgodo/nAliadoAlientoAlivioAlmaAlmejaAlmi/barAltarAltezaAltivoAltoAlturaAlumnoAlzarAmableAmanteAmapolaAmargoAmasarA/mbarA/mbitoAmenoAmigoAmistadAmorAmparoAmplioAnchoAncianoAnclaAndarAnde/nAnemiaA/nguloAnilloA/nimoAni/sAnotarAntenaAntiguoAntojoAnualAnularAnuncioA~adirA~ejoA~oApagarAparatoApetitoApioAplicarApodoAporteApoyoAprenderAprobarApuestaApuroAradoAra~aArarA/rbitroA/rbolArbustoArchivoArcoArderArdillaArduoA/reaA/ridoAriesArmoni/aArne/sAromaArpaArpo/nArregloArrozArrugaArteArtistaAsaAsadoAsaltoAscensoAsegurarAseoAsesorAsientoAsiloAsistirAsnoAsombroA/speroAstillaAstroAstutoAsumirAsuntoAtajoAtaqueAtarAtentoAteoA/ticoAtletaA/tomoAtraerAtrozAtu/nAudazAudioAugeAulaAumentoAusenteAutorAvalAvanceAvaroAveAvellanaAvenaAvestruzAvio/nAvisoAyerAyudaAyunoAzafra/nAzarAzoteAzu/carAzufreAzulBabaBaborBacheBahi/aBaileBajarBalanzaBalco/nBaldeBambu/BancoBandaBa~oBarbaBarcoBarnizBarroBa/sculaBasto/nBasuraBatallaBateri/aBatirBatutaBau/lBazarBebe/BebidaBelloBesarBesoBestiaBichoBienBingoBlancoBloqueBlusaBoaBobinaBoboBocaBocinaBodaBodegaBoinaBolaBoleroBolsaBombaBondadBonitoBonoBonsa/iBordeBorrarBosqueBoteBoti/nBo/vedaBozalBravoBrazoBrechaBreveBrilloBrincoBrisaBrocaBromaBronceBroteBrujaBruscoBrutoBuceoBucleBuenoBueyBufandaBufo/nBu/hoBuitreBultoBurbujaBurlaBurroBuscarButacaBuzo/nCaballoCabezaCabinaCabraCacaoCada/verCadenaCaerCafe/Cai/daCaima/nCajaCajo/nCalCalamarCalcioCaldoCalidadCalleCalmaCalorCalvoCamaCambioCamelloCaminoCampoCa/ncerCandilCanelaCanguroCanicaCantoCa~aCa~o/nCaobaCaosCapazCapita/nCapoteCaptarCapuchaCaraCarbo/nCa/rcelCaretaCargaCari~oCarneCarpetaCarroCartaCasaCascoCaseroCaspaCastorCatorceCatreCaudalCausaCazoCebollaCederCedroCeldaCe/lebreCelosoCe/lulaCementoCenizaCentroCercaCerdoCerezaCeroCerrarCertezaCe/spedCetroChacalChalecoChampu/ChanclaChapaCharlaChicoChisteChivoChoqueChozaChuletaChuparCiclo/nCiegoCieloCienCiertoCifraCigarroCimaCincoCineCintaCipre/sCircoCiruelaCisneCitaCiudadClamorClanClaroClaseClaveClienteClimaCli/nicaCobreCoccio/nCochinoCocinaCocoCo/digoCodoCofreCogerCoheteCoji/nCojoColaColchaColegioColgarColinaCollarColmoColumnaCombateComerComidaCo/modoCompraCondeConejoCongaConocerConsejoContarCopaCopiaCorazo/nCorbataCorchoCordo/nCoronaCorrerCoserCosmosCostaCra/neoCra/terCrearCrecerCrei/doCremaCri/aCrimenCriptaCrisisCromoCro/nicaCroquetaCrudoCruzCuadroCuartoCuatroCuboCubrirCucharaCuelloCuentoCuerdaCuestaCuevaCuidarCulebraCulpaCultoCumbreCumplirCunaCunetaCuotaCupo/nCu/pulaCurarCuriosoCursoCurvaCutisDamaDanzaDarDardoDa/tilDeberDe/bilDe/cadaDecirDedoDefensaDefinirDejarDelfi/nDelgadoDelitoDemoraDensoDentalDeporteDerechoDerrotaDesayunoDeseoDesfileDesnudoDestinoDesvi/oDetalleDetenerDeudaDi/aDiabloDiademaDiamanteDianaDiarioDibujoDictarDienteDietaDiezDifi/cilDignoDilemaDiluirDineroDirectoDirigirDiscoDise~oDisfrazDivaDivinoDobleDoceDolorDomingoDonDonarDoradoDormirDorsoDosDosisDrago/nDrogaDuchaDudaDueloDue~oDulceDu/oDuqueDurarDurezaDuroE/banoEbrioEcharEcoEcuadorEdadEdicio/nEdificioEditorEducarEfectoEficazEjeEjemploElefanteElegirElementoElevarElipseE/liteElixirElogioEludirEmbudoEmitirEmocio/nEmpateEmpe~oEmpleoEmpresaEnanoEncargoEnchufeEnci/aEnemigoEneroEnfadoEnfermoEnga~oEnigmaEnlaceEnormeEnredoEnsayoEnse~arEnteroEntrarEnvaseEnvi/oE/pocaEquipoErizoEscalaEscenaEscolarEscribirEscudoEsenciaEsferaEsfuerzoEspadaEspejoEspi/aEsposaEspumaEsqui/EstarEsteEstiloEstufaEtapaEternoE/ticaEtniaEvadirEvaluarEventoEvitarExactoExamenExcesoExcusaExentoExigirExilioExistirE/xitoExpertoExplicarExponerExtremoFa/bricaFa/bulaFachadaFa/cilFactorFaenaFajaFaldaFalloFalsoFaltarFamaFamiliaFamosoFarao/nFarmaciaFarolFarsaFaseFatigaFaunaFavorFaxFebreroFechaFelizFeoFeriaFerozFe/rtilFervorFesti/nFiableFianzaFiarFibraFiccio/nFichaFideoFiebreFielFieraFiestaFiguraFijarFijoFilaFileteFilialFiltroFinFincaFingirFinitoFirmaFlacoFlautaFlechaFlorFlotaFluirFlujoFlu/orFobiaFocaFogataFogo/nFolioFolletoFondoFormaForroFortunaForzarFosaFotoFracasoFra/gilFranjaFraseFraudeFrei/rFrenoFresaFri/oFritoFrutaFuegoFuenteFuerzaFugaFumarFuncio/nFundaFurgo/nFuriaFusilFu/tbolFuturoGacelaGafasGaitaGajoGalaGaleri/aGalloGambaGanarGanchoGangaGansoGarajeGarzaGasolinaGastarGatoGavila/nGemeloGemirGenGe/neroGenioGenteGeranioGerenteGermenGestoGiganteGimnasioGirarGiroGlaciarGloboGloriaGolGolfoGolosoGolpeGomaGordoGorilaGorraGotaGoteoGozarGradaGra/ficoGranoGrasaGratisGraveGrietaGrilloGripeGrisGritoGrosorGru/aGruesoGrumoGrupoGuanteGuapoGuardiaGuerraGui/aGui~oGuionGuisoGuitarraGusanoGustarHaberHa/bilHablarHacerHachaHadaHallarHamacaHarinaHazHaza~aHebillaHebraHechoHeladoHelioHembraHerirHermanoHe/roeHervirHieloHierroHi/gadoHigieneHijoHimnoHistoriaHocicoHogarHogueraHojaHombreHongoHonorHonraHoraHormigaHornoHostilHoyoHuecoHuelgaHuertaHuesoHuevoHuidaHuirHumanoHu/medoHumildeHumoHundirHuraca/nHurtoIconoIdealIdiomaI/doloIglesiaIglu/IgualIlegalIlusio/nImagenIma/nImitarImparImperioImponerImpulsoIncapazI/ndiceInerteInfielInformeIngenioInicioInmensoInmuneInnatoInsectoInstanteIntere/sI/ntimoIntuirInu/tilInviernoIraIrisIroni/aIslaIsloteJabali/Jabo/nJamo/nJarabeJardi/nJarraJaulaJazmi/nJefeJeringaJineteJornadaJorobaJovenJoyaJuergaJuevesJuezJugadorJugoJugueteJuicioJuncoJunglaJunioJuntarJu/piterJurarJustoJuvenilJuzgarKiloKoalaLabioLacioLacraLadoLadro/nLagartoLa/grimaLagunaLaicoLamerLa/minaLa/mparaLanaLanchaLangostaLanzaLa/pizLargoLarvaLa/stimaLataLa/texLatirLaurelLavarLazoLealLeccio/nLecheLectorLeerLegio/nLegumbreLejanoLenguaLentoLe~aLeo/nLeopardoLesio/nLetalLetraLeveLeyendaLibertadLibroLicorLi/derLidiarLienzoLigaLigeroLimaLi/miteLimo/nLimpioLinceLindoLi/neaLingoteLinoLinternaLi/quidoLisoListaLiteraLitioLitroLlagaLlamaLlantoLlaveLlegarLlenarLlevarLlorarLloverLluviaLoboLocio/nLocoLocuraLo/gicaLogroLombrizLomoLonjaLoteLuchaLucirLugarLujoLunaLunesLupaLustroLutoLuzMacetaMachoMaderaMadreMaduroMaestroMafiaMagiaMagoMai/zMaldadMaletaMallaMaloMama/MamboMamutMancoMandoManejarMangaManiqui/ManjarManoMansoMantaMa~anaMapaMa/quinaMarMarcoMareaMarfilMargenMaridoMa/rmolMarro/nMartesMarzoMasaMa/scaraMasivoMatarMateriaMatizMatrizMa/ximoMayorMazorcaMechaMedallaMedioMe/dulaMejillaMejorMelenaMelo/nMemoriaMenorMensajeMenteMenu/MercadoMerengueMe/ritoMesMeso/nMetaMeterMe/todoMetroMezclaMiedoMielMiembroMigaMilMilagroMilitarMillo/nMimoMinaMineroMi/nimoMinutoMiopeMirarMisaMiseriaMisilMismoMitadMitoMochilaMocio/nModaModeloMohoMojarMoldeMolerMolinoMomentoMomiaMonarcaMonedaMonjaMontoMo~oMoradaMorderMorenoMorirMorroMorsaMortalMoscaMostrarMotivoMoverMo/vilMozoMuchoMudarMuebleMuelaMuerteMuestraMugreMujerMulaMuletaMultaMundoMu~ecaMuralMuroMu/sculoMuseoMusgoMu/sicaMusloNa/carNacio/nNadarNaipeNaranjaNarizNarrarNasalNatalNativoNaturalNa/useaNavalNaveNavidadNecioNe/ctarNegarNegocioNegroNeo/nNervioNetoNeutroNevarNeveraNichoNidoNieblaNietoNi~ezNi~oNi/tidoNivelNoblezaNocheNo/minaNoriaNormaNorteNotaNoticiaNovatoNovelaNovioNubeNucaNu/cleoNudilloNudoNueraNueveNuezNuloNu/meroNutriaOasisObesoObispoObjetoObraObreroObservarObtenerObvioOcaOcasoOce/anoOchentaOchoOcioOcreOctavoOctubreOcultoOcuparOcurrirOdiarOdioOdiseaOesteOfensaOfertaOficioOfrecerOgroOi/doOi/rOjoOlaOleadaOlfatoOlivoOllaOlmoOlorOlvidoOmbligoOndaOnzaOpacoOpcio/nO/peraOpinarOponerOptarO/pticaOpuestoOracio/nOradorOralO/rbitaOrcaOrdenOrejaO/rganoOrgi/aOrgulloOrienteOrigenOrillaOroOrquestaOrugaOsadi/aOscuroOseznoOsoOstraOto~oOtroOvejaO/vuloO/xidoOxi/genoOyenteOzonoPactoPadrePaellaPa/ginaPagoPai/sPa/jaroPalabraPalcoPaletaPa/lidoPalmaPalomaPalparPanPanalPa/nicoPanteraPa~ueloPapa/PapelPapillaPaquetePararParcelaParedParirParoPa/rpadoParquePa/rrafoPartePasarPaseoPasio/nPasoPastaPataPatioPatriaPausaPautaPavoPayasoPeato/nPecadoPeceraPechoPedalPedirPegarPeinePelarPelda~oPeleaPeligroPellejoPeloPelucaPenaPensarPe~o/nPeo/nPeorPepinoPeque~oPeraPerchaPerderPerezaPerfilPericoPerlaPermisoPerroPersonaPesaPescaPe/simoPesta~aPe/taloPetro/leoPezPezu~aPicarPicho/nPiePiedraPiernaPiezaPijamaPilarPilotoPimientaPinoPintorPinzaPi~aPiojoPipaPirataPisarPiscinaPisoPistaPito/nPizcaPlacaPlanPlataPlayaPlazaPleitoPlenoPlomoPlumaPluralPobrePocoPoderPodioPoemaPoesi/aPoetaPolenPolici/aPolloPolvoPomadaPomeloPomoPompaPonerPorcio/nPortalPosadaPoseerPosiblePostePotenciaPotroPozoPradoPrecozPreguntaPremioPrensaPresoPrevioPrimoPri/ncipePrisio/nPrivarProaProbarProcesoProductoProezaProfesorProgramaProlePromesaProntoPropioPro/ximoPruebaPu/blicoPucheroPudorPuebloPuertaPuestoPulgaPulirPulmo/nPulpoPulsoPumaPuntoPu~alPu~oPupaPupilaPure/QuedarQuejaQuemarQuererQuesoQuietoQui/micaQuinceQuitarRa/banoRabiaRaboRacio/nRadicalRai/zRamaRampaRanchoRangoRapazRa/pidoRaptoRasgoRaspaRatoRayoRazaRazo/nReaccio/nRealidadReba~oReboteRecaerRecetaRechazoRecogerRecreoRectoRecursoRedRedondoReducirReflejoReformaRefra/nRefugioRegaloRegirReglaRegresoRehe/nReinoRei/rRejaRelatoRelevoRelieveRellenoRelojRemarRemedioRemoRencorRendirRentaRepartoRepetirReposoReptilResRescateResinaRespetoRestoResumenRetiroRetornoRetratoReunirReve/sRevistaReyRezarRicoRiegoRiendaRiesgoRifaRi/gidoRigorRinco/nRi~o/nRi/oRiquezaRisaRitmoRitoRizoRobleRoceRociarRodarRodeoRodillaRoerRojizoRojoRomeroRomperRonRoncoRondaRopaRoperoRosaRoscaRostroRotarRubi/RuborRudoRuedaRugirRuidoRuinaRuletaRuloRumboRumorRupturaRutaRutinaSa/badoSaberSabioSableSacarSagazSagradoSalaSaldoSaleroSalirSalmo/nSalo/nSalsaSaltoSaludSalvarSambaSancio/nSandi/aSanearSangreSanidadSanoSantoSapoSaqueSardinaSarte/nSastreSata/nSaunaSaxofo/nSeccio/nSecoSecretoSectaSedSeguirSeisSelloSelvaSemanaSemillaSendaSensorSe~alSe~orSepararSepiaSequi/aSerSerieSermo/nServirSesentaSesio/nSetaSetentaSeveroSexoSextoSidraSiestaSieteSigloSignoSi/labaSilbarSilencioSillaSi/mboloSimioSirenaSistemaSitioSituarSobreSocioSodioSolSolapaSoldadoSoledadSo/lidoSoltarSolucio/nSombraSondeoSonidoSonoroSonrisaSopaSoplarSoporteSordoSorpresaSorteoSoste/nSo/tanoSuaveSubirSucesoSudorSuegraSueloSue~oSuerteSufrirSujetoSulta/nSumarSuperarSuplirSuponerSupremoSurSurcoSure~oSurgirSustoSutilTabacoTabiqueTablaTabu/TacoTactoTajoTalarTalcoTalentoTallaTalo/nTama~oTamborTangoTanqueTapaTapeteTapiaTapo/nTaquillaTardeTareaTarifaTarjetaTarotTarroTartaTatuajeTauroTazaTazo/nTeatroTechoTeclaTe/cnicaTejadoTejerTejidoTelaTele/fonoTemaTemorTemploTenazTenderTenerTenisTensoTeori/aTerapiaTercoTe/rminoTernuraTerrorTesisTesoroTestigoTeteraTextoTezTibioTiburo/nTiempoTiendaTierraTiesoTigreTijeraTildeTimbreTi/midoTimoTintaTi/oTi/picoTipoTiraTiro/nTita/nTi/tereTi/tuloTizaToallaTobilloTocarTocinoTodoTogaToldoTomarTonoTontoToparTopeToqueTo/raxToreroTormentaTorneoToroTorpedoTorreTorsoTortugaTosToscoToserTo/xicoTrabajoTractorTraerTra/ficoTragoTrajeTramoTranceTratoTraumaTrazarTre/bolTreguaTreintaTrenTreparTresTribuTrigoTripaTristeTriunfoTrofeoTrompaTroncoTropaTroteTrozoTrucoTruenoTrufaTuberi/aTuboTuertoTumbaTumorTu/nelTu/nicaTurbinaTurismoTurnoTutorUbicarU/lceraUmbralUnidadUnirUniversoUnoUntarU~aUrbanoUrbeUrgenteUrnaUsarUsuarioU/tilUtopi/aUvaVacaVaci/oVacunaVagarVagoVainaVajillaValeVa/lidoValleValorVa/lvulaVampiroVaraVariarVaro/nVasoVecinoVectorVehi/culoVeinteVejezVelaVeleroVelozVenaVencerVendaVenenoVengarVenirVentaVenusVerVeranoVerboVerdeVeredaVerjaVersoVerterVi/aViajeVibrarVicioVi/ctimaVidaVi/deoVidrioViejoViernesVigorVilVillaVinagreVinoVi~edoVioli/nViralVirgoVirtudVisorVi/speraVistaVitaminaViudoVivazViveroVivirVivoVolca/nVolumenVolverVorazVotarVotoVozVueloVulgarYacerYateYeguaYemaYernoYesoYodoYogaYogurZafiroZanjaZapatoZarzaZonaZorroZumoZurdo".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return function(e){var t=[];return Array.prototype.forEach.call(Pe(e),(function(e){47===e?(t.push(204),t.push(129)):126===e?(t.push(110),t.push(204),t.push(131)):t.push(e)})),Fe(t)}(e)}))).forEach((function(e,t){xn[Ln(e)]=t})),"0xf74fb7092aeacdfbf8959557de22098da512207fb9f109cb526994938cf40300"!==En.check(e)))throw Fn=null,new Error("BIP39 Wordlist for es (Spanish) FAILED")}var Nn=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"es")}return Object(k.a)(r,[{key:"getWord",value:function(e){return Bn(this),Fn[e]}},{key:"getWordIndex",value:function(e){return Bn(this),xn[Ln(e)]}}]),r}(En));En.register(Nn);var Rn=null,Jn={};function _n(e){return Tn.checkNormalize(),Fe(Array.prototype.filter.call(Pe(e.normalize("NFD").toLowerCase()),(function(e){return e>=65&&e<=90||e>=97&&e<=123})))}function Dn(e){if(null==Rn&&((Rn="AbaisserAbandonAbdiquerAbeilleAbolirAborderAboutirAboyerAbrasifAbreuverAbriterAbrogerAbruptAbsenceAbsoluAbsurdeAbusifAbyssalAcade/mieAcajouAcarienAccablerAccepterAcclamerAccoladeAccrocheAccuserAcerbeAchatAcheterAcidulerAcierAcompteAcque/rirAcronymeActeurActifActuelAdepteAde/quatAdhe/sifAdjectifAdjugerAdmettreAdmirerAdopterAdorerAdoucirAdresseAdroitAdulteAdverbeAe/rerAe/ronefAffaireAffecterAfficheAffreuxAffublerAgacerAgencerAgileAgiterAgraferAgre/ableAgrumeAiderAiguilleAilierAimableAisanceAjouterAjusterAlarmerAlchimieAlerteAlge-breAlgueAlie/nerAlimentAlle/gerAlliageAllouerAllumerAlourdirAlpagaAltesseAlve/oleAmateurAmbiguAmbreAme/nagerAmertumeAmidonAmiralAmorcerAmourAmovibleAmphibieAmpleurAmusantAnalyseAnaphoreAnarchieAnatomieAncienAne/antirAngleAngoisseAnguleuxAnimalAnnexerAnnonceAnnuelAnodinAnomalieAnonymeAnormalAntenneAntidoteAnxieuxApaiserApe/ritifAplanirApologieAppareilAppelerApporterAppuyerAquariumAqueducArbitreArbusteArdeurArdoiseArgentArlequinArmatureArmementArmoireArmureArpenterArracherArriverArroserArsenicArte/rielArticleAspectAsphalteAspirerAssautAsservirAssietteAssocierAssurerAsticotAstreAstuceAtelierAtomeAtriumAtroceAttaqueAttentifAttirerAttraperAubaineAubergeAudaceAudibleAugurerAuroreAutomneAutrucheAvalerAvancerAvariceAvenirAverseAveugleAviateurAvideAvionAviserAvoineAvouerAvrilAxialAxiomeBadgeBafouerBagageBaguetteBaignadeBalancerBalconBaleineBalisageBambinBancaireBandageBanlieueBannie-reBanquierBarbierBarilBaronBarqueBarrageBassinBastionBatailleBateauBatterieBaudrierBavarderBeletteBe/lierBeloteBe/ne/ficeBerceauBergerBerlineBermudaBesaceBesogneBe/tailBeurreBiberonBicycleBiduleBijouBilanBilingueBillardBinaireBiologieBiopsieBiotypeBiscuitBisonBistouriBitumeBizarreBlafardBlagueBlanchirBlessantBlinderBlondBloquerBlousonBobardBobineBoireBoiserBolideBonbonBondirBonheurBonifierBonusBordureBorneBotteBoucleBoueuxBougieBoulonBouquinBourseBoussoleBoutiqueBoxeurBrancheBrasierBraveBrebisBre-cheBreuvageBricolerBrigadeBrillantBriocheBriqueBrochureBroderBronzerBrousseBroyeurBrumeBrusqueBrutalBruyantBuffleBuissonBulletinBureauBurinBustierButinerButoirBuvableBuvetteCabanonCabineCachetteCadeauCadreCafe/ineCaillouCaissonCalculerCalepinCalibreCalmerCalomnieCalvaireCamaradeCame/raCamionCampagneCanalCanetonCanonCantineCanularCapableCaporalCapriceCapsuleCapterCapucheCarabineCarboneCaresserCaribouCarnageCarotteCarreauCartonCascadeCasierCasqueCassureCauserCautionCavalierCaverneCaviarCe/dilleCeintureCe/lesteCelluleCendrierCensurerCentralCercleCe/re/bralCeriseCernerCerveauCesserChagrinChaiseChaleurChambreChanceChapitreCharbonChasseurChatonChaussonChavirerChemiseChenilleChe/quierChercherChevalChienChiffreChignonChime-reChiotChlorureChocolatChoisirChoseChouetteChromeChuteCigareCigogneCimenterCine/maCintrerCirculerCirerCirqueCiterneCitoyenCitronCivilClaironClameurClaquerClasseClavierClientClignerClimatClivageClocheClonageCloporteCobaltCobraCocasseCocotierCoderCodifierCoffreCognerCohe/sionCoifferCoincerCole-reColibriCollineColmaterColonelCombatCome/dieCommandeCompactConcertConduireConfierCongelerConnoterConsonneContactConvexeCopainCopieCorailCorbeauCordageCornicheCorpusCorrectCorte-geCosmiqueCostumeCotonCoudeCoupureCourageCouteauCouvrirCoyoteCrabeCrainteCravateCrayonCre/atureCre/diterCre/meuxCreuserCrevetteCriblerCrierCristalCrite-reCroireCroquerCrotaleCrucialCruelCrypterCubiqueCueillirCuille-reCuisineCuivreCulminerCultiverCumulerCupideCuratifCurseurCyanureCycleCylindreCyniqueDaignerDamierDangerDanseurDauphinDe/battreDe/biterDe/borderDe/briderDe/butantDe/calerDe/cembreDe/chirerDe/ciderDe/clarerDe/corerDe/crireDe/cuplerDe/daleDe/ductifDe/esseDe/fensifDe/filerDe/frayerDe/gagerDe/givrerDe/glutirDe/graferDe/jeunerDe/liceDe/logerDemanderDemeurerDe/molirDe/nicherDe/nouerDentelleDe/nuderDe/partDe/penserDe/phaserDe/placerDe/poserDe/rangerDe/roberDe/sastreDescenteDe/sertDe/signerDe/sobe/irDessinerDestrierDe/tacherDe/testerDe/tourerDe/tresseDevancerDevenirDevinerDevoirDiableDialogueDiamantDicterDiffe/rerDige/rerDigitalDigneDiluerDimancheDiminuerDioxydeDirectifDirigerDiscuterDisposerDissiperDistanceDivertirDiviserDocileDocteurDogmeDoigtDomaineDomicileDompterDonateurDonjonDonnerDopamineDortoirDorureDosageDoseurDossierDotationDouanierDoubleDouceurDouterDoyenDragonDraperDresserDribblerDroitureDuperieDuplexeDurableDurcirDynastieE/blouirE/carterE/charpeE/chelleE/clairerE/clipseE/cloreE/cluseE/coleE/conomieE/corceE/couterE/craserE/cre/merE/crivainE/crouE/cumeE/cureuilE/difierE/duquerEffacerEffectifEffigieEffortEffrayerEffusionE/galiserE/garerE/jecterE/laborerE/largirE/lectronE/le/gantE/le/phantE/le-veE/ligibleE/litismeE/logeE/luciderE/luderEmballerEmbellirEmbryonE/meraudeE/missionEmmenerE/motionE/mouvoirEmpereurEmployerEmporterEmpriseE/mulsionEncadrerEnche-reEnclaveEncocheEndiguerEndosserEndroitEnduireE/nergieEnfanceEnfermerEnfouirEngagerEnginEngloberE/nigmeEnjamberEnjeuEnleverEnnemiEnnuyeuxEnrichirEnrobageEnseigneEntasserEntendreEntierEntourerEntraverE/nume/rerEnvahirEnviableEnvoyerEnzymeE/olienE/paissirE/pargneE/patantE/pauleE/picerieE/pide/mieE/pierE/pilogueE/pineE/pisodeE/pitapheE/poqueE/preuveE/prouverE/puisantE/querreE/quipeE/rigerE/rosionErreurE/ruptionEscalierEspadonEspe-ceEspie-gleEspoirEspritEsquiverEssayerEssenceEssieuEssorerEstimeEstomacEstradeE/tage-reE/talerE/tancheE/tatiqueE/teindreE/tendoirE/ternelE/thanolE/thiqueEthnieE/tirerE/tofferE/toileE/tonnantE/tourdirE/trangeE/troitE/tudeEuphorieE/valuerE/vasionE/ventailE/videnceE/viterE/volutifE/voquerExactExage/rerExaucerExcellerExcitantExclusifExcuseExe/cuterExempleExercerExhalerExhorterExigenceExilerExisterExotiqueExpe/dierExplorerExposerExprimerExquisExtensifExtraireExulterFableFabuleuxFacetteFacileFactureFaiblirFalaiseFameuxFamilleFarceurFarfeluFarineFaroucheFascinerFatalFatigueFauconFautifFaveurFavoriFe/brileFe/conderFe/de/rerFe/linFemmeFe/murFendoirFe/odalFermerFe/roceFerveurFestivalFeuilleFeutreFe/vrierFiascoFicelerFictifFide-leFigureFilatureFiletageFilie-reFilleulFilmerFilouFiltrerFinancerFinirFioleFirmeFissureFixerFlairerFlammeFlasqueFlatteurFle/auFle-cheFleurFlexionFloconFloreFluctuerFluideFluvialFolieFonderieFongibleFontaineForcerForgeronFormulerFortuneFossileFoudreFouge-reFouillerFoulureFourmiFragileFraiseFranchirFrapperFrayeurFre/gateFreinerFrelonFre/mirFre/ne/sieFre-reFriableFrictionFrissonFrivoleFroidFromageFrontalFrotterFruitFugitifFuiteFureurFurieuxFurtifFusionFuturGagnerGalaxieGalerieGambaderGarantirGardienGarnirGarrigueGazelleGazonGe/antGe/latineGe/luleGendarmeGe/ne/ralGe/nieGenouGentilGe/ologieGe/ome-treGe/raniumGermeGestuelGeyserGibierGiclerGirafeGivreGlaceGlaiveGlisserGlobeGloireGlorieuxGolfeurGommeGonflerGorgeGorilleGoudronGouffreGoulotGoupilleGourmandGoutteGraduelGraffitiGraineGrandGrappinGratuitGravirGrenatGriffureGrillerGrimperGrognerGronderGrotteGroupeGrugerGrutierGruye-reGue/pardGuerrierGuideGuimauveGuitareGustatifGymnasteGyrostatHabitudeHachoirHalteHameauHangarHannetonHaricotHarmonieHarponHasardHe/liumHe/matomeHerbeHe/rissonHermineHe/ronHe/siterHeureuxHibernerHibouHilarantHistoireHiverHomardHommageHomoge-neHonneurHonorerHonteuxHordeHorizonHorlogeHormoneHorribleHouleuxHousseHublotHuileuxHumainHumbleHumideHumourHurlerHydromelHygie-neHymneHypnoseIdylleIgnorerIguaneIlliciteIllusionImageImbiberImiterImmenseImmobileImmuableImpactImpe/rialImplorerImposerImprimerImputerIncarnerIncendieIncidentInclinerIncoloreIndexerIndiceInductifIne/ditIneptieInexactInfiniInfligerInformerInfusionInge/rerInhalerInhiberInjecterInjureInnocentInoculerInonderInscrireInsecteInsigneInsoliteInspirerInstinctInsulterIntactIntenseIntimeIntrigueIntuitifInutileInvasionInventerInviterInvoquerIroniqueIrradierIrre/elIrriterIsolerIvoireIvresseJaguarJaillirJambeJanvierJardinJaugerJauneJavelotJetableJetonJeudiJeunesseJoindreJoncherJonglerJoueurJouissifJournalJovialJoyauJoyeuxJubilerJugementJuniorJuponJuristeJusticeJuteuxJuve/nileKayakKimonoKiosqueLabelLabialLabourerLace/rerLactoseLaguneLaineLaisserLaitierLambeauLamelleLampeLanceurLangageLanterneLapinLargeurLarmeLaurierLavaboLavoirLectureLe/galLe/gerLe/gumeLessiveLettreLevierLexiqueLe/zardLiasseLibe/rerLibreLicenceLicorneLie-geLie-vreLigatureLigoterLigueLimerLimiteLimonadeLimpideLine/aireLingotLionceauLiquideLisie-reListerLithiumLitigeLittoralLivreurLogiqueLointainLoisirLombricLoterieLouerLourdLoutreLouveLoyalLubieLucideLucratifLueurLugubreLuisantLumie-reLunaireLundiLuronLutterLuxueuxMachineMagasinMagentaMagiqueMaigreMaillonMaintienMairieMaisonMajorerMalaxerMale/ficeMalheurMaliceMalletteMammouthMandaterManiableManquantManteauManuelMarathonMarbreMarchandMardiMaritimeMarqueurMarronMartelerMascotteMassifMate/rielMatie-reMatraqueMaudireMaussadeMauveMaximalMe/chantMe/connuMe/dailleMe/decinMe/diterMe/duseMeilleurMe/langeMe/lodieMembreMe/moireMenacerMenerMenhirMensongeMentorMercrediMe/riteMerleMessagerMesureMe/talMe/te/oreMe/thodeMe/tierMeubleMiaulerMicrobeMietteMignonMigrerMilieuMillionMimiqueMinceMine/ralMinimalMinorerMinuteMiracleMiroiterMissileMixteMobileModerneMoelleuxMondialMoniteurMonnaieMonotoneMonstreMontagneMonumentMoqueurMorceauMorsureMortierMoteurMotifMoucheMoufleMoulinMoussonMoutonMouvantMultipleMunitionMurailleMure-neMurmureMuscleMuse/umMusicienMutationMuterMutuelMyriadeMyrtilleMyste-reMythiqueNageurNappeNarquoisNarrerNatationNationNatureNaufrageNautiqueNavireNe/buleuxNectarNe/fasteNe/gationNe/gligerNe/gocierNeigeNerveuxNettoyerNeuroneNeutronNeveuNicheNickelNitrateNiveauNobleNocifNocturneNoirceurNoisetteNomadeNombreuxNommerNormatifNotableNotifierNotoireNourrirNouveauNovateurNovembreNoviceNuageNuancerNuireNuisibleNume/roNuptialNuqueNutritifObe/irObjectifObligerObscurObserverObstacleObtenirObturerOccasionOccuperOce/anOctobreOctroyerOctuplerOculaireOdeurOdorantOffenserOfficierOffrirOgiveOiseauOisillonOlfactifOlivierOmbrageOmettreOnctueuxOndulerOne/reuxOniriqueOpaleOpaqueOpe/rerOpinionOpportunOpprimerOpterOptiqueOrageuxOrangeOrbiteOrdonnerOreilleOrganeOrgueilOrificeOrnementOrqueOrtieOscillerOsmoseOssatureOtarieOuraganOursonOutilOutragerOuvrageOvationOxydeOxyge-neOzonePaisiblePalacePalmare-sPalourdePalperPanachePandaPangolinPaniquerPanneauPanoramaPantalonPapayePapierPapoterPapyrusParadoxeParcelleParesseParfumerParlerParoleParrainParsemerPartagerParureParvenirPassionPaste-quePaternelPatiencePatronPavillonPavoiserPayerPaysagePeignePeintrePelagePe/licanPellePelousePeluchePendulePe/ne/trerPe/niblePensifPe/nuriePe/pitePe/plumPerdrixPerforerPe/riodePermuterPerplexePersilPertePeserPe/talePetitPe/trirPeuplePharaonPhobiePhoquePhotonPhrasePhysiquePianoPicturalPie-cePierrePieuvrePilotePinceauPipettePiquerPiroguePiscinePistonPivoterPixelPizzaPlacardPlafondPlaisirPlanerPlaquePlastronPlateauPleurerPlexusPliagePlombPlongerPluiePlumagePochettePoe/siePoe-tePointePoirierPoissonPoivrePolairePolicierPollenPolygonePommadePompierPonctuelPonde/rerPoneyPortiquePositionPosse/derPosturePotagerPoteauPotionPoucePoulainPoumonPourprePoussinPouvoirPrairiePratiquePre/cieuxPre/direPre/fixePre/ludePre/nomPre/sencePre/textePre/voirPrimitifPrincePrisonPriverProble-meProce/derProdigeProfondProgre-sProieProjeterProloguePromenerPropreProspe-reProte/gerProuesseProverbePrudencePruneauPsychosePublicPuceronPuiserPulpePulsarPunaisePunitifPupitrePurifierPuzzlePyramideQuasarQuerelleQuestionQuie/tudeQuitterQuotientRacineRaconterRadieuxRagondinRaideurRaisinRalentirRallongeRamasserRapideRasageRatisserRavagerRavinRayonnerRe/actifRe/agirRe/aliserRe/animerRecevoirRe/citerRe/clamerRe/colterRecruterReculerRecyclerRe/digerRedouterRefaireRe/flexeRe/formerRefrainRefugeRe/galienRe/gionRe/glageRe/gulierRe/ite/rerRejeterRejouerRelatifReleverReliefRemarqueReme-deRemiseRemonterRemplirRemuerRenardRenfortReniflerRenoncerRentrerRenvoiReplierReporterRepriseReptileRequinRe/serveRe/sineuxRe/soudreRespectResterRe/sultatRe/tablirRetenirRe/ticuleRetomberRetracerRe/unionRe/ussirRevancheRevivreRe/volteRe/vulsifRichesseRideauRieurRigideRigolerRincerRiposterRisibleRisqueRituelRivalRivie-reRocheuxRomanceRompreRonceRondinRoseauRosierRotatifRotorRotuleRougeRouilleRouleauRoutineRoyaumeRubanRubisRucheRuelleRugueuxRuinerRuisseauRuserRustiqueRythmeSablerSaboterSabreSacocheSafariSagesseSaisirSaladeSaliveSalonSaluerSamediSanctionSanglierSarcasmeSardineSaturerSaugrenuSaumonSauterSauvageSavantSavonnerScalpelScandaleSce/le/ratSce/narioSceptreSche/maScienceScinderScoreScrutinSculpterSe/anceSe/cableSe/cherSecouerSe/cre/terSe/datifSe/duireSeigneurSe/jourSe/lectifSemaineSemblerSemenceSe/minalSe/nateurSensibleSentenceSe/parerSe/quenceSereinSergentSe/rieuxSerrureSe/rumServiceSe/sameSe/virSevrageSextupleSide/ralSie-cleSie/gerSifflerSigleSignalSilenceSiliciumSimpleSince-reSinistreSiphonSiropSismiqueSituerSkierSocialSocleSodiumSoigneuxSoldatSoleilSolitudeSolubleSombreSommeilSomnolerSondeSongeurSonnetteSonoreSorcierSortirSosieSottiseSoucieuxSoudureSouffleSouleverSoupapeSourceSoutirerSouvenirSpacieuxSpatialSpe/cialSphe-reSpiralStableStationSternumStimulusStipulerStrictStudieuxStupeurStylisteSublimeSubstratSubtilSubvenirSucce-sSucreSuffixeSugge/rerSuiveurSulfateSuperbeSupplierSurfaceSuricateSurmenerSurpriseSursautSurvieSuspectSyllabeSymboleSyme/trieSynapseSyntaxeSyste-meTabacTablierTactileTaillerTalentTalismanTalonnerTambourTamiserTangibleTapisTaquinerTarderTarifTartineTasseTatamiTatouageTaupeTaureauTaxerTe/moinTemporelTenailleTendreTeneurTenirTensionTerminerTerneTerribleTe/tineTexteThe-meThe/orieThe/rapieThoraxTibiaTie-deTimideTirelireTiroirTissuTitaneTitreTituberTobogganTole/rantTomateToniqueTonneauToponymeTorcheTordreTornadeTorpilleTorrentTorseTortueTotemToucherTournageTousserToxineTractionTraficTragiqueTrahirTrainTrancherTravailTre-fleTremperTre/sorTreuilTriageTribunalTricoterTrilogieTriompheTriplerTriturerTrivialTromboneTroncTropicalTroupeauTuileTulipeTumulteTunnelTurbineTuteurTutoyerTuyauTympanTyphonTypiqueTyranUbuesqueUltimeUltrasonUnanimeUnifierUnionUniqueUnitaireUniversUraniumUrbainUrticantUsageUsineUsuelUsureUtileUtopieVacarmeVaccinVagabondVagueVaillantVaincreVaisseauValableValiseVallonValveVampireVanilleVapeurVarierVaseuxVassalVasteVecteurVedetteVe/ge/talVe/hiculeVeinardVe/loceVendrediVe/ne/rerVengerVenimeuxVentouseVerdureVe/rinVernirVerrouVerserVertuVestonVe/te/ranVe/tusteVexantVexerViaducViandeVictoireVidangeVide/oVignetteVigueurVilainVillageVinaigreViolonVipe-reVirementVirtuoseVirusVisageViseurVisionVisqueuxVisuelVitalVitesseViticoleVitrineVivaceVivipareVocationVoguerVoileVoisinVoitureVolailleVolcanVoltigerVolumeVoraceVortexVoterVouloirVoyageVoyelleWagonXe/nonYachtZe-breZe/nithZesteZoologie".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" ").map((function(e){return function(e){var t=[];return Array.prototype.forEach.call(Pe(e),(function(e){47===e?(t.push(204),t.push(129)):45===e?(t.push(204),t.push(128)):t.push(e)})),Fe(t)}(e)}))).forEach((function(e,t){Jn[_n(e)]=t})),"0x51deb7ae009149dc61a6bd18a918eb7ac78d2775726c68e598b92d002519b045"!==En.check(e)))throw Rn=null,new Error("BIP39 Wordlist for fr (French) FAILED")}var In=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"fr")}return Object(k.a)(r,[{key:"getWord",value:function(e){return Dn(this),Rn[e]}},{key:"getWordIndex",value:function(e){return Dn(this),Jn[_n(e)]}}]),r}(En));En.register(In);var jn=["AQRASRAGBAGUAIRAHBAghAURAdBAdcAnoAMEAFBAFCBKFBQRBSFBCXBCDBCHBGFBEQBpBBpQBIkBHNBeOBgFBVCBhBBhNBmOBmRBiHBiFBUFBZDBvFBsXBkFBlcBjYBwDBMBBTBBTRBWBBWXXaQXaRXQWXSRXCFXYBXpHXOQXHRXhRXuRXmXXbRXlXXwDXTRXrCXWQXWGaBWaKcaYgasFadQalmaMBacAKaRKKBKKXKKjKQRKDRKCYKCRKIDKeVKHcKlXKjHKrYNAHNBWNaRNKcNIBNIONmXNsXNdXNnBNMBNRBNrXNWDNWMNFOQABQAHQBrQXBQXFQaRQKXQKDQKOQKFQNBQNDQQgQCXQCDQGBQGDQGdQYXQpBQpQQpHQLXQHuQgBQhBQhCQuFQmXQiDQUFQZDQsFQdRQkHQbRQlOQlmQPDQjDQwXQMBQMDQcFQTBQTHQrDDXQDNFDGBDGQDGRDpFDhFDmXDZXDbRDMYDRdDTRDrXSAhSBCSBrSGQSEQSHBSVRShYShkSyQSuFSiBSdcSoESocSlmSMBSFBSFKSFNSFdSFcCByCaRCKcCSBCSRCCrCGbCEHCYXCpBCpQCIBCIHCeNCgBCgFCVECVcCmkCmwCZXCZFCdRClOClmClFCjDCjdCnXCwBCwXCcRCFQCFjGXhGNhGDEGDMGCDGCHGIFGgBGVXGVEGVRGmXGsXGdYGoSGbRGnXGwXGwDGWRGFNGFLGFOGFdGFkEABEBDEBFEXOEaBEKSENBENDEYXEIgEIkEgBEgQEgHEhFEudEuFEiBEiHEiFEZDEvBEsXEsFEdXEdREkFEbBEbRElFEPCEfkEFNYAEYAhYBNYQdYDXYSRYCEYYoYgQYgRYuRYmCYZTYdBYbEYlXYjQYRbYWRpKXpQopQnpSFpCXpIBpISphNpdBpdRpbRpcZpFBpFNpFDpFopFrLADLBuLXQLXcLaFLCXLEhLpBLpFLHXLeVLhILdHLdRLoDLbRLrXIABIBQIBCIBsIBoIBMIBRIXaIaRIKYIKRINBINuICDIGBIIDIIkIgRIxFIyQIiHIdRIbYIbRIlHIwRIMYIcRIRVITRIFBIFNIFQOABOAFOBQOaFONBONMOQFOSFOCDOGBOEQOpBOLXOIBOIFOgQOgFOyQOycOmXOsXOdIOkHOMEOMkOWWHBNHXNHXWHNXHDuHDRHSuHSRHHoHhkHmRHdRHkQHlcHlRHwBHWcgAEgAggAkgBNgBQgBEgXOgYcgLXgHjgyQgiBgsFgdagMYgWSgFQgFEVBTVXEVKBVKNVKDVKYVKRVNBVNYVDBVDxVSBVSRVCjVGNVLXVIFVhBVhcVsXVdRVbRVlRhBYhKYhDYhGShxWhmNhdahdkhbRhjohMXhTRxAXxXSxKBxNBxEQxeNxeQxhXxsFxdbxlHxjcxFBxFNxFQxFOxFoyNYyYoybcyMYuBQuBRuBruDMuCouHBudQukkuoBulVuMXuFEmCYmCRmpRmeDmiMmjdmTFmFQiADiBOiaRiKRiNBiNRiSFiGkiGFiERipRiLFiIFihYibHijBijEiMXiWBiFBiFCUBQUXFUaRUNDUNcUNRUNFUDBUSHUCDUGBUGFUEqULNULoUIRUeEUeYUgBUhFUuRUiFUsXUdFUkHUbBUjSUjYUwXUMDUcHURdUTBUrBUrXUrQZAFZXZZaRZKFZNBZQFZCXZGBZYdZpBZLDZIFZHXZHNZeQZVRZVFZmXZiBZvFZdFZkFZbHZbFZwXZcCZcRZRBvBQvBGvBLvBWvCovMYsAFsBDsaRsKFsNFsDrsSHsSFsCXsCRsEBsEHsEfspBsLBsLDsIgsIRseGsbRsFBsFQsFSdNBdSRdCVdGHdYDdHcdVbdySduDdsXdlRdwXdWYdWcdWRkBMkXOkaRkNIkNFkSFkCFkYBkpRkeNkgBkhVkmXksFklVkMBkWDkFNoBNoaQoaFoNBoNXoNaoNEoSRoEroYXoYCoYbopRopFomXojkowXorFbBEbEIbdBbjYlaRlDElMXlFDjKjjSRjGBjYBjYkjpRjLXjIBjOFjeVjbRjwBnXQnSHnpFnLXnINnMBnTRwXBwXNwXYwNFwQFwSBwGFwLXwLDweNwgBwuHwjDwnXMBXMpFMIBMeNMTHcaQcNBcDHcSFcCXcpBcLXcLDcgFcuFcnXcwXccDcTQcrFTQErXNrCHrpFrgFrbFrTHrFcWNYWNbWEHWMXWTR","ABGHABIJAEAVAYJQALZJAIaRAHNXAHdcAHbRAZJMAZJRAZTRAdVJAklmAbcNAjdRAMnRAMWYAWpRAWgRAFgBAFhBAFdcBNJBBNJDBQKBBQhcBQlmBDEJBYJkBYJTBpNBBpJFBIJBBIJDBIcABOKXBOEJBOVJBOiJBOZJBepBBeLXBeIFBegBBgGJBVJXBuocBiJRBUJQBlXVBlITBwNFBMYVBcqXBTlmBWNFBWiJBWnRBFGHBFwXXKGJXNJBXNZJXDTTXSHSXSVRXSlHXCJDXGQJXEhXXYQJXYbRXOfXXeNcXVJFXhQJXhEJXdTRXjdXXMhBXcQTXRGBXTEBXTnQXFCXXFOFXFgFaBaFaBNJaBCJaBpBaBwXaNJKaNJDaQIBaDpRaEPDaHMFamDJalEJaMZJaFaFaFNBaFQJaFLDaFVHKBCYKBEBKBHDKXaFKXGdKXEJKXpHKXIBKXZDKXwXKKwLKNacKNYJKNJoKNWcKDGdKDTRKChXKGaRKGhBKGbRKEBTKEaRKEPTKLMDKLWRKOHDKVJcKdBcKlIBKlOPKFSBKFEPKFpFNBNJNJBQNBGHNBEPNBHXNBgFNBVXNBZDNBsXNBwXNNaRNNJDNNJENNJkNDCJNDVDNGJRNJiDNZJNNsCJNJFNNFSBNFCXNFEPNFLXNFIFQJBFQCaRQJEQQLJDQLJFQIaRQOqXQHaFQHHQQVJXQVJDQhNJQmEIQZJFQsJXQJrFQWbRDJABDBYJDXNFDXCXDXLXDXZDDXsJDQqXDSJFDJCXDEPkDEqXDYmQDpSJDOCkDOGQDHEIDVJDDuDuDWEBDJFgSBNDSBSFSBGHSBIBSBTQSKVYSJQNSJQiSJCXSEqXSJYVSIiJSOMYSHAHSHaQSeCFSepQSegBSHdHSHrFShSJSJuHSJUFSkNRSrSrSWEBSFaHSJFQSFCXSFGDSFYXSFODSFgBSFVXSFhBSFxFSFkFSFbBSFMFCADdCJXBCXaFCXKFCXNFCXCXCXGBCXEJCXYBCXLDCXIBCXOPCXHXCXgBCXhBCXiBCXlDCXcHCJNBCJNFCDCJCDGBCDVXCDhBCDiDCDJdCCmNCpJFCIaRCOqXCHCHCHZJCViJCuCuCmddCJiFCdNBCdHhClEJCnUJCreSCWlgCWTRCFBFCFNBCFYBCFVFCFhFCFdSCFTBCFWDGBNBGBQFGJBCGBEqGBpBGBgQGNBEGNJYGNkOGNJRGDUFGJpQGHaBGJeNGJeEGVBlGVKjGiJDGvJHGsVJGkEBGMIJGWjNGFBFGFCXGFGBGFYXGFpBGFMFEASJEAWpEJNFECJVEIXSEIQJEOqXEOcFEeNcEHEJEHlFEJgFEhlmEmDJEmZJEiMBEUqXEoSREPBFEPXFEPKFEPSFEPEFEPpFEPLXEPIBEJPdEPcFEPTBEJnXEqlHEMpREFCXEFODEFcFYASJYJAFYBaBYBVXYXpFYDhBYCJBYJGFYYbRYeNcYJeVYiIJYZJcYvJgYvJRYJsXYsJFYMYMYreVpBNHpBEJpBwXpQxFpYEJpeNDpJeDpeSFpeCHpHUJpHbBpHcHpmUJpiiJpUJrpsJuplITpFaBpFQqpFGBpFEfpFYBpFpBpFLJpFIDpFgBpFVXpFyQpFuFpFlFpFjDpFnXpFwXpJFMpFTBLXCJLXEFLXhFLXUJLXbFLalmLNJBLSJQLCLCLGJBLLDJLHaFLeNFLeSHLeCXLepFLhaRLZsJLsJDLsJrLocaLlLlLMdbLFNBLFSBLFEHLFkFIBBFIBXFIBaQIBKXIBSFIBpHIBLXIBgBIBhBIBuHIBmXIBiFIBZXIBvFIBbFIBjQIBwXIBWFIKTRIQUJIDGFICjQIYSRIINXIJeCIVaRImEkIZJFIvJRIsJXIdCJIJoRIbBQIjYBIcqXITFVIreVIFKFIFSFIFCJIFGFIFLDIFIBIJFOIFgBIFVXIJFhIFxFIFmXIFdHIFbBIJFrIJFWOBGBOQfXOOKjOUqXOfXBOqXEOcqXORVJOFIBOFlDHBIOHXiFHNTRHCJXHIaRHHJDHHEJHVbRHZJYHbIBHRsJHRkDHWlmgBKFgBSBgBCDgBGHgBpBgBIBgBVJgBuBgBvFgKDTgQVXgDUJgGSJgOqXgmUMgZIJgTUJgWIEgFBFgFNBgFDJgFSFgFGBgFYXgJFOgFgQgFVXgFhBgFbHgJFWVJABVQKcVDgFVOfXVeDFVhaRVmGdViJYVMaRVFNHhBNDhBCXhBEqhBpFhBLXhNJBhSJRheVXhhKEhxlmhZIJhdBQhkIJhbMNhMUJhMZJxNJgxQUJxDEkxDdFxSJRxplmxeSBxeCXxeGFxeYXxepQxegBxWVcxFEQxFLXxFIBxFgBxFxDxFZtxFdcxFbBxFwXyDJXyDlcuASJuDJpuDIBuCpJuGSJuIJFueEFuZIJusJXudWEuoIBuWGJuFBcuFKEuFNFuFQFuFDJuFGJuFVJuFUtuFdHuFTBmBYJmNJYmQhkmLJDmLJomIdXmiJYmvJRmsJRmklmmMBymMuCmclmmcnQiJABiJBNiJBDiBSFiBCJiBEFiBYBiBpFiBLXiBTHiJNciDEfiCZJiECJiJEqiOkHiHKFieNDiHJQieQcieDHieSFieCXieGFieEFieIHiegFihUJixNoioNXiFaBiFKFiFNDiFEPiFYXitFOitFHiFgBiFVEiFmXiFitiFbBiFMFiFrFUCXQUIoQUIJcUHQJUeCEUHwXUUJDUUqXUdWcUcqXUrnQUFNDUFSHUFCFUFEfUFLXUtFOZBXOZXSBZXpFZXVXZEQJZEJkZpDJZOqXZeNHZeCDZUqXZFBQZFEHZFLXvBAFvBKFvBCXvBEPvBpHvBIDvBgFvBuHvQNJvFNFvFGBvFIBvJFcsXCDsXLXsXsXsXlFsXcHsQqXsJQFsEqXseIFsFEHsFjDdBxOdNpRdNJRdEJbdpJRdhZJdnSJdrjNdFNJdFQHdFhNkNJDkYaRkHNRkHSRkVbRkuMRkjSJkcqDoSJFoEiJoYZJoOfXohEBoMGQocqXbBAFbBXFbBaFbBNDbBGBbBLXbBTBbBWDbGJYbIJHbFQqbFpQlDgQlOrFlVJRjGEBjZJRnXvJnXbBnEfHnOPDngJRnxfXnUJWwXEJwNpJwDpBwEfXwrEBMDCJMDGHMDIJMLJDcQGDcQpHcqXccqNFcqCXcFCJRBSBRBGBRBEJRBpQTBNFTBQJTBpBTBVXTFABTFSBTFCFTFGBTFMDrXCJrXLDrDNJrEfHrFQJrFitWNjdWNTR","AKLJMANOPFASNJIAEJWXAYJNRAIIbRAIcdaAeEfDAgidRAdjNYAMYEJAMIbRAFNJBAFpJFBBIJYBDZJFBSiJhBGdEBBEJfXBEJqXBEJWRBpaUJBLXrXBIYJMBOcfXBeEfFBestXBjNJRBcDJOBFEqXXNvJRXDMBhXCJNYXOAWpXONJWXHDEBXeIaRXhYJDXZJSJXMDJOXcASJXFVJXaBQqXaBZJFasXdQaFSJQaFEfXaFpJHaFOqXKBNSRKXvJBKQJhXKEJQJKEJGFKINJBKIJjNKgJNSKVElmKVhEBKiJGFKlBgJKjnUJKwsJYKMFIJKFNJDKFIJFKFOfXNJBSFNJBCXNBpJFNJBvQNJBMBNJLJXNJOqXNJeCXNJeGFNdsJCNbTKFNwXUJQNFEPQDiJcQDMSJQSFpBQGMQJQJeOcQyCJEQUJEBQJFBrQFEJqDXDJFDJXpBDJXIMDGiJhDIJGRDJeYcDHrDJDVXgFDkAWpDkIgRDjDEqDMvJRDJFNFDJFIBSKclmSJQOFSJQVHSJQjDSJGJBSJGJFSECJoSHEJqSJHTBSJVJDSViJYSZJNBSJsJDSFSJFSFEfXSJFLXCBUJVCJXSBCJXpBCXVJXCJXsXCJXdFCJNJHCLIJgCHiJFCVNJMChCJhCUHEJCsJTRCJdYcCoQJCCFEfXCFIJgCFUJxCFstFGJBaQGJBIDGQJqXGYJNRGJHKFGeQqDGHEJFGJeLXGHIiJGHdBlGUJEBGkIJTGFQPDGJFEqEAGegEJIJBEJVJXEhQJTEiJNcEJZJFEJoEqEjDEqEPDsXEPGJBEPOqXEPeQFEfDiDEJfEFEfepQEfMiJEqXNBEqDIDEqeSFEqVJXEMvJRYXNJDYXEJHYKVJcYYJEBYJeEcYJUqXYFpJFYFstXpAZJMpBSJFpNBNFpeQPDpHLJDpHIJFpHgJFpeitFpHZJFpJFADpFSJFpJFCJpFOqXpFitBpJFZJLXIJFLIJgRLVNJWLVHJMLwNpJLFGJBLFLJDLFOqXLJFUJIBDJXIBGJBIJBYQIJBIBIBOqXIBcqDIEGJFILNJTIIJEBIOiJhIJeNBIJeIBIhiJIIWoTRIJFAHIJFpBIJFuHIFUtFIJFTHOSBYJOEcqXOHEJqOvBpFOkVJrObBVJOncqDOcNJkHhNJRHuHJuHdMhBgBUqXgBsJXgONJBgHNJDgHHJQgJeitgHsJXgJyNagyDJBgZJDrgsVJQgkEJNgkjSJgJFAHgFCJDgFZtMVJXNFVXQfXVJXDJVXoQJVQVJQVDEfXVDvJHVEqNFVeQfXVHpJFVHxfXVVJSRVVmaRVlIJOhCXVJhHjYkhxCJVhWVUJhWiJcxBNJIxeEqDxfXBFxcFEPxFSJFxFYJXyBDQJydaUJyFOPDuYCJYuLvJRuHLJXuZJLDuFOPDuFZJHuFcqXmKHJdmCQJcmOsVJiJAGFitLCFieOfXiestXiZJMEikNJQirXzFiFQqXiFIJFiFZJFiFvtFUHpJFUteIcUteOcUVCJkUhdHcUbEJEUJqXQUMNJhURjYkUFitFZDGJHZJIxDZJVJXZJFDJZJFpQvBNJBvBSJFvJxBrseQqDsVFVJdFLJDkEJNBkmNJYkFLJDoQJOPoGsJRoEAHBoEJfFbBQqDbBZJHbFVJXlFIJBjYIrXjeitcjjCEBjWMNBwXQfXwXOaFwDsJXwCJTRwrCZJMDNJQcDDJFcqDOPRYiJFTBsJXTQIJBTFEfXTFLJDrXEJFrEJXMrFZJFWEJdEWYTlm","ABCDEFACNJTRAMBDJdAcNJVXBLNJEBXSIdWRXErNJkXYDJMBXZJCJaXMNJaYKKVJKcKDEJqXKDcNJhKVJrNYKbgJVXKFVJSBNBYBwDNJeQfXNJeEqXNhGJWENJFiJRQlIJbEQJfXxDQqXcfXQFNDEJQFwXUJDYcnUJDJIBgQDIUJTRDJFEqDSJQSJFSJQIJFSOPeZtSJFZJHCJXQfXCTDEqFGJBSJFGJBOfXGJBcqXGJHNJDGJRLiJEJfXEqEJFEJPEFpBEJYJBZJFYBwXUJYiJMEBYJZJyTYTONJXpQMFXFpeGIDdpJFstXpJFcPDLBVSJRLHQJqXLJFZJFIJBNJDIJBUqXIBkFDJIJEJPTIYJGWRIJeQPDIJeEfHIJFsJXOqGDSFHXEJqXgJCsJCgGQJqXgdQYJEgFMFNBgJFcqDVJwXUJVJFZJchIgJCCxOEJqXxOwXUJyDJBVRuscisciJBiJBieUtqXiJFDJkiFsJXQUGEZJcUJFsJXZtXIrXZDZJDrZJFNJDZJFstXvJFQqXvJFCJEsJXQJqkhkNGBbDJdTRbYJMEBlDwXUJMEFiJFcfXNJDRcNJWMTBLJXC","BraFUtHBFSJFdbNBLJXVJQoYJNEBSJBEJfHSJHwXUJCJdAZJMGjaFVJXEJPNJBlEJfFiJFpFbFEJqIJBVJCrIBdHiJhOPFChvJVJZJNJWxGFNIFLueIBQJqUHEJfUFstOZJDrlXEASJRlXVJXSFwVJNJWD","QJEJNNJDQJEJIBSFQJEJxegBQJEJfHEPSJBmXEJFSJCDEJqXLXNJFQqXIcQsFNJFIFEJqXUJgFsJXIJBUJEJfHNFvJxEqXNJnXUJFQqD","IJBEJqXZJ"],Xn=null;function Un(e){return Object(E.i)(Pe(e))}function Hn(e){if(null===Xn){Xn=[];var t={};t[Fe([227,130,154])]=!1,t[Fe([227,130,153])]=!1,t[Fe([227,130,133])]=Fe([227,130,134]),t[Fe([227,129,163])]=Fe([227,129,164]),t[Fe([227,130,131])]=Fe([227,130,132]),t[Fe([227,130,135])]=Fe([227,130,136]);for(var r=3;r<=9;r++)for(var n=jn[r-3],o=0;o<n.length;o+=r){for(var i=[],a=0;a<r;a++){var u="~~AzB~X~a~KN~Q~D~S~C~G~E~Y~p~L~I~O~eH~g~V~hxyumi~~U~~Z~~v~~s~~dkoblPjfnqwMcRTr~W~~~F~~~~~Jt".indexOf(n[o+a]);i.push(227),i.push(64&u?130:129),i.push(128+(63&u))}Xn.push(Fe(i))}if(Xn.sort((function(e,t){return(e=l(e))<(t=l(t))?-1:e>t?1:0})),"0xe3818de38284e3818f"===Un(Xn[442])&&"0xe3818de38283e3818f"===Un(Xn[443])){var s=Xn[442];Xn[442]=Xn[443],Xn[443]=s}if("0xcb36b09e6baa935787fd762ce65e80b0c6a8dabdfbc3a7f86ac0e2c4fd111600"!==En.check(e))throw Xn=null,new Error("BIP39 Wordlist for ja (Japanese) FAILED")}function l(e){for(var r="",n=0;n<e.length;n++){var o=e[n],i=t[o];!1!==i&&(i&&(o=i),r+=o)}return r}}var Gn=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"ja")}return Object(k.a)(r,[{key:"getWord",value:function(e){return Hn(this),Xn[e]}},{key:"getWordIndex",value:function(e){return Hn(this),Xn.indexOf(e)}},{key:"split",value:function(e){return Tn.checkNormalize(),e.split(/(?:\u3000| )+/g)}},{key:"join",value:function(e){return e.join("\u3000")}}]),r}(En));En.register(Gn);var zn=["OYAa","ATAZoATBl3ATCTrATCl8ATDloATGg3ATHT8ATJT8ATJl3ATLlvATLn4ATMT8ATMX8ATMboATMgoAToLbAToMTATrHgATvHnAT3AnAT3JbAT3MTAT8DbAT8JTAT8LmAT8MYAT8MbAT#LnAUHT8AUHZvAUJXrAUJX8AULnrAXJnvAXLUoAXLgvAXMn6AXRg3AXrMbAX3JTAX3QbAYLn3AZLgvAZrSUAZvAcAZ8AaAZ8AbAZ8AnAZ8HnAZ8LgAZ8MYAZ8MgAZ8OnAaAboAaDTrAaFTrAaJTrAaJboAaLVoAaMXvAaOl8AaSeoAbAUoAbAg8AbAl4AbGnrAbMT8AbMXrAbMn4AbQb8AbSV8AbvRlAb8AUAb8AnAb8HgAb8JTAb8NTAb8RbAcGboAcLnvAcMT8AcMX8AcSToAcrAaAcrFnAc8AbAc8MgAfGgrAfHboAfJnvAfLV8AfLkoAfMT8AfMnoAfQb8AfScrAfSgrAgAZ8AgFl3AgGX8AgHZvAgHgrAgJXoAgJX8AgJboAgLZoAgLn4AgOX8AgoATAgoAnAgoCUAgoJgAgoLXAgoMYAgoSeAgrDUAgrJTAhrFnAhrLjAhrQgAjAgoAjJnrAkMX8AkOnoAlCTvAlCV8AlClvAlFg4AlFl6AlFn3AloSnAlrAXAlrAfAlrFUAlrFbAlrGgAlrOXAlvKnAlvMTAl3AbAl3MnAnATrAnAcrAnCZ3AnCl8AnDg8AnFboAnFl3AnHX4AnHbrAnHgrAnIl3AnJgvAnLXoAnLX4AnLbrAnLgrAnLhrAnMXoAnMgrAnOn3AnSbrAnSeoAnvLnAn3OnCTGgvCTSlvCTvAUCTvKnCTvNTCT3CZCT3GUCT3MTCT8HnCUCZrCULf8CULnvCU3HnCU3JUCY6NUCbDb8CbFZoCbLnrCboOTCboScCbrFnCbvLnCb8AgCb8HgCb$LnCkLfoClBn3CloDUDTHT8DTLl3DTSU8DTrAaDTrLXDTrLjDTrOYDTrOgDTvFXDTvFnDT3HUDT3LfDUCT9DUDT4DUFVoDUFV8DUFkoDUGgrDUJnrDULl8DUMT8DUMXrDUMX4DUMg8DUOUoDUOgvDUOg8DUSToDUSZ8DbDXoDbDgoDbGT8DbJn3DbLg3DbLn4DbMXrDbMg8DbOToDboJXGTClvGTDT8GTFZrGTLVoGTLlvGTLl3GTMg8GTOTvGTSlrGToCUGTrDgGTrJYGTrScGTtLnGTvAnGTvQgGUCZrGUDTvGUFZoGUHXrGULnvGUMT8GUoMgGXoLnGXrMXGXrMnGXvFnGYLnvGZOnvGZvOnGZ8LaGZ8LmGbAl3GbDYvGbDlrGbHX3GbJl4GbLV8GbLn3GbMn4GboJTGboRfGbvFUGb3GUGb4JnGgDX3GgFl$GgJlrGgLX6GgLZoGgLf8GgOXoGgrAgGgrJXGgrMYGgrScGgvATGgvOYGnAgoGnJgvGnLZoGnLg3GnLnrGnQn8GnSbrGnrMgHTClvHTDToHTFT3HTQT8HToJTHToJgHTrDUHTrMnHTvFYHTvRfHT8MnHT8SUHUAZ8HUBb4HUDTvHUoMYHXFl6HXJX6HXQlrHXrAUHXrMnHXrSbHXvFYHXvKXHX3LjHX3MeHYvQlHZrScHZvDbHbAcrHbFT3HbFl3HbJT8HbLTrHbMT8HbMXrHbMbrHbQb8HbSX3HboDbHboJTHbrFUHbrHgHbrJTHb8JTHb8MnHb8QgHgAlrHgDT3HgGgrHgHgrHgJTrHgJT8HgLX@HgLnrHgMT8HgMX8HgMboHgOnrHgQToHgRg3HgoHgHgrCbHgrFnHgrLVHgvAcHgvAfHnAloHnCTrHnCnvHnGTrHnGZ8HnGnvHnJT8HnLf8HnLkvHnMg8HnRTrITvFUITvFnJTAXrJTCV8JTFT3JTFT8JTFn4JTGgvJTHT8JTJT8JTJXvJTJl3JTJnvJTLX4JTLf8JTLhvJTMT8JTMXrJTMnrJTObrJTQT8JTSlvJT8DUJT8FkJT8MTJT8OXJT8OgJT8QUJT8RfJUHZoJXFT4JXFlrJXGZ8JXGnrJXLV8JXLgvJXMXoJXMX3JXNboJXPlvJXoJTJXoLkJXrAXJXrHUJXrJgJXvJTJXvOnJX4KnJYAl3JYJT8JYLhvJYQToJYrQXJY6NUJbAl3JbCZrJbDloJbGT8JbGgrJbJXvJbJboJbLf8JbLhrJbLl3JbMnvJbRg8JbSZ8JboDbJbrCZJbrSUJb3KnJb8LnJfRn8JgAXrJgCZrJgDTrJgGZrJgGZ8JgHToJgJT8JgJXoJgJgvJgLX4JgLZ3JgLZ8JgLn4JgMgrJgMn4JgOgvJgPX6JgRnvJgSToJgoCZJgoJbJgoMYJgrJXJgrJgJgrLjJg6MTJlCn3JlGgvJlJl8Jl4AnJl8FnJl8HgJnAToJnATrJnAbvJnDUoJnGnrJnJXrJnJXvJnLhvJnLnrJnLnvJnMToJnMT8JnMXvJnMX3JnMg8JnMlrJnMn4JnOX8JnST4JnSX3JnoAgJnoAnJnoJTJnoObJnrAbJnrAkJnrHnJnrJTJnrJYJnrOYJnrScJnvCUJnvFaJnvJgJnvJnJnvOYJnvQUJnvRUJn3FnJn3JTKnFl3KnLT6LTDlvLTMnoLTOn3LTRl3LTSb4LTSlrLToAnLToJgLTrAULTrAcLTrCULTrHgLTrMgLT3JnLULnrLUMX8LUoJgLVATrLVDTrLVLb8LVoJgLV8MgLV8RTLXDg3LXFlrLXrCnLXrLXLX3GTLX4GgLX4OYLZAXrLZAcrLZAgrLZAhrLZDXyLZDlrLZFbrLZFl3LZJX6LZJX8LZLc8LZLnrLZSU8LZoJTLZoJnLZrAgLZrAnLZrJYLZrLULZrMgLZrSkLZvAnLZvGULZvJeLZvOTLZ3FZLZ4JXLZ8STLZ8ScLaAT3LaAl3LaHT8LaJTrLaJT8LaJXrLaJgvLaJl4LaLVoLaMXrLaMXvLaMX8LbClvLbFToLbHlrLbJn4LbLZ3LbLhvLbMXrLbMnoLbvSULcLnrLc8HnLc8MTLdrMnLeAgoLeOgvLeOn3LfAl3LfLnvLfMl3LfOX8Lf8AnLf8JXLf8LXLgJTrLgJXrLgJl8LgMX8LgRZrLhCToLhrAbLhrFULhrJXLhvJYLjHTrLjHX4LjJX8LjLhrLjSX3LjSZ4LkFX4LkGZ8LkGgvLkJTrLkMXoLkSToLkSU8LkSZ8LkoOYLl3FfLl3MgLmAZrLmCbrLmGgrLmHboLmJnoLmJn3LmLfoLmLhrLmSToLnAX6LnAb6LnCZ3LnCb3LnDTvLnDb8LnFl3LnGnrLnHZvLnHgvLnITvLnJT8LnJX8LnJlvLnLf8LnLg6LnLhvLnLnoLnMXrLnMg8LnQlvLnSbrLnrAgLnrAnLnrDbLnrFkLnrJdLnrMULnrOYLnrSTLnvAnLnvDULnvHgLnvOYLnvOnLn3GgLn4DULn4JTLn4JnMTAZoMTAloMTDb8MTFT8MTJnoMTJnrMTLZrMTLhrMTLkvMTMX8MTRTrMToATMTrDnMTrOnMT3JnMT4MnMT8FUMT8FaMT8FlMT8GTMT8GbMT8GnMT8HnMT8JTMT8JbMT8OTMUCl8MUJTrMUJU8MUMX8MURTrMUSToMXAX6MXAb6MXCZoMXFXrMXHXrMXLgvMXOgoMXrAUMXrAnMXrHgMXrJYMXrJnMXrMTMXrMgMXrOYMXrSZMXrSgMXvDUMXvOTMX3JgMX3OTMX4JnMX8DbMX8FnMX8HbMX8HgMX8HnMX8LbMX8MnMX8OnMYAb8MYGboMYHTvMYHX4MYLTrMYLnvMYMToMYOgvMYRg3MYSTrMbAToMbAXrMbAl3MbAn8MbGZ8MbJT8MbJXrMbMXvMbMX8MbMnoMbrMUMb8AfMb8FbMb8FkMcJXoMeLnrMgFl3MgGTvMgGXoMgGgrMgGnrMgHT8MgHZrMgJnoMgLnrMgLnvMgMT8MgQUoMgrHnMgvAnMg8HgMg8JYMg8LfMloJnMl8ATMl8AXMl8JYMnAToMnAT4MnAZ8MnAl3MnAl4MnCl8MnHT8MnHg8MnJnoMnLZoMnLhrMnMXoMnMX3MnMnrMnOgvMnrFbMnrFfMnrFnMnrNTMnvJXNTMl8OTCT3OTFV8OTFn3OTHZvOTJXrOTOl3OT3ATOT3JUOT3LZOT3LeOT3MbOT8ATOT8AbOT8AgOT8MbOUCXvOUMX3OXHXvOXLl3OXrMUOXvDbOX6NUOX8JbOYFZoOYLbrOYLkoOYMg8OYSX3ObHTrObHT4ObJgrObLhrObMX3ObOX8Ob8FnOeAlrOeJT8OeJXrOeJnrOeLToOeMb8OgJXoOgLXoOgMnrOgOXrOgOloOgoAgOgoJbOgoMYOgoSTOg8AbOjLX4OjMnoOjSV8OnLVoOnrAgOn3DUPXQlrPXvFXPbvFTPdAT3PlFn3PnvFbQTLn4QToAgQToMTQULV8QURg8QUoJnQXCXvQbFbrQb8AaQb8AcQb8FbQb8MYQb8ScQeAlrQeLhrQjAn3QlFXoQloJgQloSnRTLnvRTrGURTrJTRUJZrRUoJlRUrQnRZrLmRZrMnRZrSnRZ8ATRZ8JbRZ8ScRbMT8RbST3RfGZrRfMX8RfMgrRfSZrRnAbrRnGT8RnvJgRnvLfRnvMTRn8AaSTClvSTJgrSTOXrSTRg3STRnvSToAcSToAfSToAnSToHnSToLjSToMTSTrAaSTrEUST3BYST8AgST8LmSUAZvSUAgrSUDT4SUDT8SUGgvSUJXoSUJXvSULTrSU8JTSU8LjSV8AnSV8JgSXFToSXLf8SYvAnSZrDUSZrMUSZrMnSZ8HgSZ8JTSZ8JgSZ8MYSZ8QUSaQUoSbCT3SbHToSbQYvSbSl4SboJnSbvFbSb8HbSb8JgSb8OTScGZrScHgrScJTvScMT8ScSToScoHbScrMTScvAnSeAZrSeAcrSeHboSeJUoSeLhrSeMT8SeMXrSe6JgSgHTrSkJnoSkLnvSk8CUSlFl3SlrSnSl8GnSmAboSmGT8SmJU8","ATLnDlATrAZoATrJX4ATrMT8ATrMX4ATrRTrATvDl8ATvJUoATvMl8AT3AToAT3MX8AT8CT3AT8DT8AT8HZrAT8HgoAUAgFnAUCTFnAXoMX8AXrAT8AXrGgvAXrJXvAXrOgoAXvLl3AZvAgoAZvFbrAZvJXoAZvJl8AZvJn3AZvMX8AZvSbrAZ8FZoAZ8LZ8AZ8MU8AZ8OTvAZ8SV8AZ8SX3AbAgFZAboJnoAbvGboAb8ATrAb8AZoAb8AgrAb8Al4Ab8Db8Ab8JnoAb8LX4Ab8LZrAb8LhrAb8MT8Ab8OUoAb8Qb8Ab8ST8AcrAUoAcrAc8AcrCZ3AcrFT3AcrFZrAcrJl4AcrJn3AcrMX3AcrOTvAc8AZ8Ac8MT8AfAcJXAgoFn4AgoGgvAgoGnrAgoLc8AgoMXoAgrLnrAkrSZ8AlFXCTAloHboAlrHbrAlrLhrAlrLkoAl3CZrAl3LUoAl3LZrAnrAl4AnrMT8An3HT4BT3IToBX4MnvBb!Ln$CTGXMnCToLZ4CTrHT8CT3JTrCT3RZrCT#GTvCU6GgvCU8Db8CU8GZrCU8HT8CboLl3CbrGgrCbrMU8Cb8DT3Cb8GnrCb8LX4Cb8MT8Cb8ObrCgrGgvCgrKX4Cl8FZoDTrAbvDTrDboDTrGT6DTrJgrDTrMX3DTrRZrDTrRg8DTvAVvDTvFZoDT3DT8DT3Ln3DT4HZrDT4MT8DT8AlrDT8MT8DUAkGbDUDbJnDYLnQlDbDUOYDbMTAnDbMXSnDboAT3DboFn4DboLnvDj6JTrGTCgFTGTGgFnGTJTMnGTLnPlGToJT8GTrCT3GTrLVoGTrLnvGTrMX3GTrMboGTvKl3GZClFnGZrDT3GZ8DTrGZ8FZ8GZ8MXvGZ8On8GZ8ST3GbCnQXGbMbFnGboFboGboJg3GboMXoGb3JTvGb3JboGb3Mn6Gb3Qb8GgDXLjGgMnAUGgrDloGgrHX4GgrSToGgvAXrGgvAZvGgvFbrGgvLl3GgvMnvGnDnLXGnrATrGnrMboGnuLl3HTATMnHTAgCnHTCTCTHTrGTvHTrHTvHTrJX8HTrLl8HTrMT8HTrMgoHTrOTrHTuOn3HTvAZrHTvDTvHTvGboHTvJU8HTvLl3HTvMXrHTvQb4HT4GT6HT4JT8HT4Jb#HT8Al3HT8GZrHT8GgrHT8HX4HT8Jb8HT8JnoHT8LTrHT8LgvHT8SToHT8SV8HUoJUoHUoJX8HUoLnrHXrLZoHXvAl3HX3LnrHX4FkvHX4LhrHX4MXoHX4OnoHZrAZ8HZrDb8HZrGZ8HZrJnrHZvGZ8HZvLnvHZ8JnvHZ8LhrHbCXJlHbMTAnHboJl4HbpLl3HbrJX8HbrLnrHbrMnvHbvRYrHgoSTrHgrFV8HgrGZ8HgrJXoHgrRnvHgvBb!HgvGTrHgvHX4HgvHn!HgvLTrHgvSU8HnDnLbHnFbJbHnvDn8Hn6GgvHn!BTvJTCTLnJTQgFnJTrAnvJTrLX4JTrOUoJTvFn3JTvLnrJTvNToJT3AgoJT3Jn4JT3LhvJT3ObrJT8AcrJT8Al3JT8JT8JT8JnoJT8LX4JT8LnrJT8MX3JT8Rg3JT8Sc8JUoBTvJU8AToJU8GZ8JU8GgvJU8JTrJU8JXrJU8JnrJU8LnvJU8ScvJXHnJlJXrGgvJXrJU8JXrLhrJXrMT8JXrMXrJXrQUoJXvCTvJXvGZ8JXvGgrJXvQT8JX8Ab8JX8DT8JX8GZ8JX8HZvJX8LnrJX8MT8JX8MXoJX8MnvJX8ST3JYGnCTJbAkGbJbCTAnJbLTAcJboDT3JboLb6JbrAnvJbrCn3JbrDl8JbrGboJbrIZoJbrJnvJbrMnvJbrQb4Jb8RZrJeAbAnJgJnFbJgScAnJgrATrJgvHZ8JgvMn4JlJlFbJlLiQXJlLjOnJlRbOlJlvNXoJlvRl3Jl4AcrJl8AUoJl8MnrJnFnMlJnHgGbJnoDT8JnoFV8JnoGgvJnoIT8JnoQToJnoRg3JnrCZ3JnrGgrJnrHTvJnrLf8JnrOX8JnvAT3JnvFZoJnvGT8JnvJl4JnvMT8JnvMX8JnvOXrJnvPX6JnvSX3JnvSZrJn3MT8Jn3MX8Jn3RTrLTATKnLTJnLTLTMXKnLTRTQlLToGb8LTrAZ8LTrCZ8LTrDb8LTrHT8LT3PX6LT4FZoLT$CTvLT$GgrLUvHX3LVoATrLVoAgoLVoJboLVoMX3LVoRg3LV8CZ3LV8FZoLV8GTvLXrDXoLXrFbrLXvAgvLXvFlrLXvLl3LXvRn6LX4Mb8LX8GT8LYCXMnLYrMnrLZoSTvLZrAZvLZrAloLZrFToLZrJXvLZrJboLZrJl4LZrLnrLZrMT8LZrOgvLZrRnvLZrST4LZvMX8LZvSlvLZ8AgoLZ8CT3LZ8JT8LZ8LV8LZ8LZoLZ8Lg8LZ8SV8LZ8SbrLZ$HT8LZ$Mn4La6CTvLbFbMnLbRYFTLbSnFZLboJT8LbrAT9LbrGb3LbrQb8LcrJX8LcrMXrLerHTvLerJbrLerNboLgrDb8LgrGZ8LgrHTrLgrMXrLgrSU8LgvJTrLgvLl3Lg6Ll3LhrLnrLhrMT8LhvAl4LiLnQXLkoAgrLkoJT8LkoJn4LlrSU8Ll3FZoLl3HTrLl3JX8Ll3JnoLl3LToLmLeFbLnDUFbLnLVAnLnrATrLnrAZoLnrAb8LnrAlrLnrGgvLnrJU8LnrLZrLnrLhrLnrMb8LnrOXrLnrSZ8LnvAb4LnvDTrLnvDl8LnvHTrLnvHbrLnvJT8LnvJU8LnvJbrLnvLhvLnvMX8LnvMb8LnvNnoLnvSU8Ln3Al3Ln4FZoLn4GT6Ln4JgvLn4LhrLn4MT8Ln4SToMToCZrMToJX8MToLX4MToLf8MToRg3MTrEloMTvGb6MT3BTrMT3Lb6MT8AcrMT8AgrMT8GZrMT8JnoMT8LnrMT8MX3MUOUAnMXAbFnMXoAloMXoJX8MXoLf8MXoLl8MXrAb8MXrDTvMXrGT8MXrGgrMXrHTrMXrLf8MXrMU8MXrOXvMXrQb8MXvGT8MXvHTrMXvLVoMX3AX3MX3Jn3MX3LhrMX3MX3MX4AlrMX4OboMX8GTvMX8GZrMX8GgrMX8JT8MX8JX8MX8LhrMX8MT8MYDUFbMYMgDbMbGnFfMbvLX4MbvLl3Mb8Mb8Mb8ST4MgGXCnMg8ATrMg8AgoMg8CZrMg8DTrMg8DboMg8HTrMg8JgrMg8LT8MloJXoMl8AhrMl8JT8MnLgAUMnoJXrMnoLX4MnoLhrMnoMT8MnrAl4MnrDb8MnrOTvMnrOgvMnrQb8MnrSU8MnvGgrMnvHZ8Mn3MToMn4DTrMn4LTrMn4Mg8NnBXAnOTFTFnOToAToOTrGgvOTrJX8OT3JXoOT6MTrOT8GgrOT8HTpOT8MToOUoHT8OUoJT8OUoLn3OXrAgoOXrDg8OXrMT8OXvSToOX6CTvOX8CZrOX8OgrOb6HgvOb8AToOb8MT8OcvLZ8OgvAlrOgvHTvOgvJTrOgvJnrOgvLZrOgvLn4OgvMT8OgvRTrOg8AZoOg8DbvOnrOXoOnvJn4OnvLhvOnvRTrOn3GgoOn3JnvOn6JbvOn8OTrPTGYFTPbBnFnPbGnDnPgDYQTPlrAnvPlrETvPlrLnvPlrMXvPlvFX4QTMTAnQTrJU8QYCnJlQYJlQlQbGTQbQb8JnrQb8LZoQb8LnvQb8MT8Qb8Ml8Qb8ST4QloAl4QloHZvQloJX8QloMn8QnJZOlRTrAZvRTrDTrRTvJn4RTvLhvRT4Jb8RZrAZrRZ8AkrRZ8JU8RZ8LV8RZ8LnvRbJlQXRg3GboRg3MnvRg8AZ8Rg8JboRg8Jl4RnLTCbRnvFl3RnvQb8SToAl4SToCZrSToFZoSToHXrSToJU8SToJgvSToJl4SToLhrSToMX3STrAlvSTrCT9STrCgrSTrGgrSTrHXrSTrHboSTrJnoSTrNboSTvLnrST4AZoST8Ab8ST8JT8SUoJn3SU6HZ#SU6JTvSU8Db8SU8HboSU8LgrSV8JT8SZrAcrSZrAl3SZrJT8SZrJnvSZrMT8SZvLUoSZ4FZoSZ8JnoSZ8RZrScoLnrScoMT8ScoMX8ScrAT4ScrAZ8ScrLZ8ScrLkvScvDb8ScvLf8ScvNToSgrFZrShvKnrSloHUoSloLnrSlrMXoSl8HgrSmrJUoSn3BX6","ATFlOn3ATLgrDYAT4MTAnAT8LTMnAYJnRTrAbGgJnrAbLV8LnAbvNTAnAeFbLg3AgOYMXoAlQbFboAnDboAfAnJgoJTBToDgAnBUJbAl3BboDUAnCTDlvLnCTFTrSnCYoQTLnDTwAbAnDUDTrSnDUHgHgrDX8LXFnDbJXAcrETvLTLnGTFTQbrGTMnGToGT3DUFbGUJlPX3GbQg8LnGboJbFnGb3GgAYGgAg8ScGgMbAXrGgvAbAnGnJTLnvGnvATFgHTDT6ATHTrDlJnHYLnMn8HZrSbJTHZ8LTFnHbFTJUoHgSeMT8HgrLjAnHgvAbAnHlFUrDlHnDgvAnHnHTFT3HnQTGnrJTAaMXvJTGbCn3JTOgrAnJXvAXMnJbMg8SnJbMnRg3Jb8LTMnJnAl3OnJnGYrQlJnJlQY3LTDlCn3LTJjLg3LTLgvFXLTMg3GTLV8HUOgLXFZLg3LXNXrMnLX8QXFnLX9AlMYLYLXPXrLZAbJU8LZDUJU8LZMXrSnLZ$AgFnLaPXrDULbFYrMnLbMn8LXLboJgJgLeFbLg3LgLZrSnLgOYAgoLhrRnJlLkCTrSnLkOnLhrLnFX%AYLnFZoJXLnHTvJbLnLloAbMTATLf8MTHgJn3MTMXrAXMT3MTFnMUITvFnMXFX%AYMXMXvFbMXrFTDbMYAcMX3MbLf8SnMb8JbFnMgMXrMTMgvAXFnMgvGgCmMnAloSnMnFnJTrOXvMXSnOX8HTMnObJT8ScObLZFl3ObMXCZoPTLgrQXPUFnoQXPU3RXJlPX3RkQXPbrJXQlPlrJbFnQUAhrDbQXGnCXvQYLnHlvQbLfLnvRTOgvJbRXJYrQlRYLnrQlRbLnrQlRlFT8JlRlFnrQXSTClCn3STHTrAnSTLZQlrSTMnGTrSToHgGbSTrGTDnSTvGXCnST3HgFbSU3HXAXSbAnJn3SbFT8LnScLfLnv","AT3JgJX8AT8FZoSnAT8JgFV8AT8LhrDbAZ8JT8DbAb8GgLhrAb8SkLnvAe8MT8SnAlMYJXLVAl3GYDTvAl3LfLnvBUDTvLl3CTOn3HTrCT3DUGgrCU8MT8AbCbFTrJUoCgrDb8MTDTLV8JX8DTLnLXQlDT8LZrSnDUQb8FZ8DUST4JnvDb8ScOUoDj6GbJl4GTLfCYMlGToAXvFnGboAXvLnGgAcrJn3GgvFnSToGnLf8JnvGn#HTDToHTLnFXJlHTvATFToHTvHTDToHTvMTAgoHT3STClvHT4AlFl6HT8HTDToHUoDgJTrHUoScMX3HbRZrMXoHboJg8LTHgDb8JTrHgMToLf8HgvLnLnoHnHn3HT4Hn6MgvAnJTJU8ScvJT3AaQT8JT8HTrAnJXrRg8AnJbAloMXoJbrATFToJbvMnoSnJgDb6GgvJgDb8MXoJgSX3JU8JguATFToJlPYLnQlJlQkDnLbJlQlFYJlJl8Lf8OTJnCTFnLbJnLTHXMnJnLXGXCnJnoFfRg3JnrMYRg3Jn3HgFl3KT8Dg8LnLTRlFnPTLTvPbLbvLVoSbrCZLXMY6HT3LXNU7DlrLXNXDTATLX8DX8LnLZDb8JU8LZMnoLhrLZSToJU8LZrLaLnrLZvJn3SnLZ8LhrSnLaJnoMT8LbFlrHTvLbrFTLnrLbvATLlvLb6OTFn3LcLnJZOlLeAT6Mn4LeJT3ObrLg6LXFlrLhrJg8LnLhvDlPX4LhvLfLnvLj6JTFT3LnFbrMXoLnQluCTvLnrQXCY6LnvLfLnvLnvMgLnvLnvSeLf8MTMbrJn3MT3JgST3MT8AnATrMT8LULnrMUMToCZrMUScvLf8MXoDT8SnMX6ATFToMX8AXMT8MX8FkMT8MX8HTrDUMX8ScoSnMYJT6CTvMgAcrMXoMg8SToAfMlvAXLg3MnFl3AnvOT3AnFl3OUoATHT8OU3RnLXrOXrOXrSnObPbvFn6Og8HgrSnOg8OX8DbPTvAgoJgPU3RYLnrPXrDnJZrPb8CTGgvPlrLTDlvPlvFUJnoQUvFXrQlQeMnoAl3QlrQlrSnRTFTrJUoSTDlLiLXSTFg6HT3STJgoMn4STrFTJTrSTrLZFl3ST4FnMXoSUrDlHUoScvHTvSnSfLkvMXo","AUoAcrMXoAZ8HboAg8AbOg6ATFgAg8AloMXoAl3AT8JTrAl8MX8MXoCT3SToJU8Cl8Db8MXoDT8HgrATrDboOT8MXoGTOTrATMnGT8LhrAZ8GnvFnGnQXHToGgvAcrHTvAXvLl3HbrAZoMXoHgBlFXLg3HgMnFXrSnHgrSb8JUoHn6HT8LgvITvATrJUoJUoLZrRnvJU8HT8Jb8JXvFX8QT8JXvLToJTrJYrQnGnQXJgrJnoATrJnoJU8ScvJnvMnvMXoLTCTLgrJXLTJlRTvQlLbRnJlQYvLbrMb8LnvLbvFn3RnoLdCVSTGZrLeSTvGXCnLg3MnoLn3MToLlrETvMT8SToAl3MbrDU6GTvMb8LX4LhrPlrLXGXCnSToLf8Rg3STrDb8LTrSTvLTHXMnSb3RYLnMnSgOg6ATFg","HUDlGnrQXrJTrHgLnrAcJYMb8DULc8LTvFgGnCk3Mg8JbAnLX4QYvFYHnMXrRUoJnGnvFnRlvFTJlQnoSTrBXHXrLYSUJgLfoMT8Se8DTrHbDb","AbDl8SToJU8An3RbAb8ST8DUSTrGnrAgoLbFU6Db8LTrMg8AaHT8Jb8ObDl8SToJU8Pb3RlvFYoJl"];var Vn=null;function Zn(e){if(null==Vn&&(Vn=[],zn.forEach((function(e,t){t+=4;for(var r=0;r<e.length;r+=t){for(var n="",o=0;o<t;o++)n+=((i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*".indexOf(e[r+o]))>=40?i=i+168-40:i>=19&&(i=i+97-19),Fe([225,132+(i>>6),128+(63&i)]));Vn.push(n)}var i})),Vn.sort(),"0xf9eddeace9c5d3da9c93cf7d3cd38f6a13ed3affb933259ae865714e8a3ae71a"!==En.check(e)))throw Vn=null,new Error("BIP39 Wordlist for ko (Korean) FAILED")}var Kn=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"ko")}return Object(k.a)(r,[{key:"getWord",value:function(e){return Zn(this),Vn[e]}},{key:"getWordIndex",value:function(e){return Zn(this),Vn.indexOf(e)}}]),r}(En));En.register(Kn);var Qn=null;function qn(e){if(null==Qn&&(Qn="AbacoAbbaglioAbbinatoAbeteAbissoAbolireAbrasivoAbrogatoAccadereAccennoAccusatoAcetoneAchilleAcidoAcquaAcreAcrilicoAcrobataAcutoAdagioAddebitoAddomeAdeguatoAderireAdipeAdottareAdulareAffabileAffettoAffissoAffrantoAforismaAfosoAfricanoAgaveAgenteAgevoleAggancioAgireAgitareAgonismoAgricoloAgrumetoAguzzoAlabardaAlatoAlbatroAlberatoAlboAlbumeAlceAlcolicoAlettoneAlfaAlgebraAlianteAlibiAlimentoAllagatoAllegroAllievoAllodolaAllusivoAlmenoAlogenoAlpacaAlpestreAltalenaAlternoAlticcioAltroveAlunnoAlveoloAlzareAmalgamaAmanitaAmarenaAmbitoAmbratoAmebaAmericaAmetistaAmicoAmmassoAmmendaAmmirareAmmonitoAmoreAmpioAmpliareAmuletoAnacardoAnagrafeAnalistaAnarchiaAnatraAncaAncellaAncoraAndareAndreaAnelloAngeloAngolareAngustoAnimaAnnegareAnnidatoAnnoAnnuncioAnonimoAnticipoAnziApaticoAperturaApodeApparireAppetitoAppoggioApprodoAppuntoAprileArabicaArachideAragostaAraldicaArancioAraturaArazzoArbitroArchivioArditoArenileArgentoArgineArgutoAriaArmoniaArneseArredatoArringaArrostoArsenicoArsoArteficeArzilloAsciuttoAscoltoAsepsiAsetticoAsfaltoAsinoAsolaAspiratoAsproAssaggioAsseAssolutoAssurdoAstaAstenutoAsticeAstrattoAtavicoAteismoAtomicoAtonoAttesaAttivareAttornoAttritoAttualeAusilioAustriaAutistaAutonomoAutunnoAvanzatoAvereAvvenireAvvisoAvvolgereAzioneAzotoAzzimoAzzurroBabeleBaccanoBacinoBacoBadessaBadilataBagnatoBaitaBalconeBaldoBalenaBallataBalzanoBambinoBandireBaraondaBarbaroBarcaBaritonoBarlumeBaroccoBasilicoBassoBatostaBattutoBauleBavaBavosaBeccoBeffaBelgioBelvaBendaBenevoleBenignoBenzinaBereBerlinaBetaBibitaBiciBidoneBifidoBigaBilanciaBimboBinocoloBiologoBipedeBipolareBirbanteBirraBiscottoBisestoBisnonnoBisonteBisturiBizzarroBlandoBlattaBollitoBonificoBordoBoscoBotanicoBottinoBozzoloBraccioBradipoBramaBrancaBravuraBretellaBrevettoBrezzaBrigliaBrillanteBrindareBroccoloBrodoBronzinaBrulloBrunoBubboneBucaBudinoBuffoneBuioBulboBuonoBurloneBurrascaBussolaBustaCadettoCaducoCalamaroCalcoloCalesseCalibroCalmoCaloriaCambusaCamerataCamiciaCamminoCamolaCampaleCanapaCandelaCaneCaninoCanottoCantinaCapaceCapelloCapitoloCapogiroCapperoCapraCapsulaCarapaceCarcassaCardoCarismaCarovanaCarrettoCartolinaCasaccioCascataCasermaCasoCassoneCastelloCasualeCatastaCatenaCatrameCautoCavilloCedibileCedrataCefaloCelebreCellulareCenaCenoneCentesimoCeramicaCercareCertoCerumeCervelloCesoiaCespoCetoChelaChiaroChiccaChiedereChimeraChinaChirurgoChitarraCiaoCiclismoCifrareCignoCilindroCiottoloCircaCirrosiCitricoCittadinoCiuffoCivettaCivileClassicoClinicaCloroCoccoCodardoCodiceCoerenteCognomeCollareColmatoColoreColposoColtivatoColzaComaCometaCommandoComodoComputerComuneConcisoCondurreConfermaCongelareConiugeConnessoConoscereConsumoContinuoConvegnoCopertoCopioneCoppiaCopricapoCorazzaCordataCoricatoCorniceCorollaCorpoCorredoCorsiaCorteseCosmicoCostanteCotturaCovatoCratereCravattaCreatoCredereCremosoCrescitaCretaCricetoCrinaleCrisiCriticoCroceCronacaCrostataCrucialeCruscaCucireCuculoCuginoCullatoCupolaCuratoreCursoreCurvoCuscinoCustodeDadoDainoDalmataDamerinoDanielaDannosoDanzareDatatoDavantiDavveroDebuttoDecennioDecisoDeclinoDecolloDecretoDedicatoDefinitoDeformeDegnoDelegareDelfinoDelirioDeltaDemenzaDenotatoDentroDepositoDerapataDerivareDerogaDescrittoDesertoDesiderioDesumereDetersivoDevotoDiametroDicembreDiedroDifesoDiffusoDigerireDigitaleDiluvioDinamicoDinnanziDipintoDiplomaDipoloDiradareDireDirottoDirupoDisagioDiscretoDisfareDisgeloDispostoDistanzaDisumanoDitoDivanoDiveltoDividereDivoratoDobloneDocenteDoganaleDogmaDolceDomatoDomenicaDominareDondoloDonoDormireDoteDottoreDovutoDozzinaDragoDruidoDubbioDubitareDucaleDunaDuomoDupliceDuraturoEbanoEccessoEccoEclissiEconomiaEderaEdicolaEdileEditoriaEducareEgemoniaEgliEgoismoEgregioElaboratoElargireEleganteElencatoElettoElevareElficoElicaElmoElsaElusoEmanatoEmblemaEmessoEmiroEmotivoEmozioneEmpiricoEmuloEndemicoEnduroEnergiaEnfasiEnotecaEntrareEnzimaEpatiteEpilogoEpisodioEpocaleEppureEquatoreErarioErbaErbosoEredeEremitaErigereErmeticoEroeErosivoErranteEsagonoEsameEsanimeEsaudireEscaEsempioEsercitoEsibitoEsigenteEsistereEsitoEsofagoEsortatoEsosoEspansoEspressoEssenzaEssoEstesoEstimareEstoniaEstrosoEsultareEtilicoEtnicoEtruscoEttoEuclideoEuropaEvasoEvidenzaEvitatoEvolutoEvvivaFabbricaFaccendaFachiroFalcoFamigliaFanaleFanfaraFangoFantasmaFareFarfallaFarinosoFarmacoFasciaFastosoFasulloFaticareFatoFavolosoFebbreFecolaFedeFegatoFelpaFeltroFemminaFendereFenomenoFermentoFerroFertileFessuraFestivoFettaFeudoFiabaFiduciaFifaFiguratoFiloFinanzaFinestraFinireFioreFiscaleFisicoFiumeFlaconeFlamencoFleboFlemmaFloridoFluenteFluoroFobicoFocacciaFocosoFoderatoFoglioFolataFolcloreFolgoreFondenteFoneticoFoniaFontanaForbitoForchettaForestaFormicaFornaioForoFortezzaForzareFosfatoFossoFracassoFranaFrassinoFratelloFreccettaFrenataFrescoFrigoFrollinoFrondeFrugaleFruttaFucilataFucsiaFuggenteFulmineFulvoFumanteFumettoFumosoFuneFunzioneFuocoFurboFurgoneFuroreFusoFutileGabbianoGaffeGalateoGallinaGaloppoGamberoGammaGaranziaGarboGarofanoGarzoneGasdottoGasolioGastricoGattoGaudioGazeboGazzellaGecoGelatinaGelsoGemelloGemmatoGeneGenitoreGennaioGenotipoGergoGhepardoGhiaccioGhisaGialloGildaGineproGiocareGioielloGiornoGioveGiratoGironeGittataGiudizioGiuratoGiustoGlobuloGlutineGnomoGobbaGolfGomitoGommoneGonfioGonnaGovernoGracileGradoGraficoGrammoGrandeGrattareGravosoGraziaGrecaGreggeGrifoneGrigioGrinzaGrottaGruppoGuadagnoGuaioGuantoGuardareGufoGuidareIbernatoIconaIdenticoIdillioIdoloIdraIdricoIdrogenoIgieneIgnaroIgnoratoIlareIllesoIllogicoIlludereImballoImbevutoImboccoImbutoImmaneImmersoImmolatoImpaccoImpetoImpiegoImportoImprontaInalareInarcareInattivoIncantoIncendioInchinoIncisivoInclusoIncontroIncrocioIncuboIndagineIndiaIndoleIneditoInfattiInfilareInflittoIngaggioIngegnoIngleseIngordoIngrossoInnescoInodoreInoltrareInondatoInsanoInsettoInsiemeInsonniaInsulinaIntasatoInteroIntonacoIntuitoInumidireInvalidoInveceInvitoIperboleIpnoticoIpotesiIppicaIrideIrlandaIronicoIrrigatoIrrorareIsolatoIsotopoIstericoIstitutoIstriceItaliaIterareLabbroLabirintoLaccaLaceratoLacrimaLacunaLaddoveLagoLampoLancettaLanternaLardosoLargaLaringeLastraLatenzaLatinoLattugaLavagnaLavoroLegaleLeggeroLemboLentezzaLenzaLeoneLepreLesivoLessatoLestoLetteraleLevaLevigatoLiberoLidoLievitoLillaLimaturaLimitareLimpidoLineareLinguaLiquidoLiraLiricaLiscaLiteLitigioLivreaLocandaLodeLogicaLombareLondraLongevoLoquaceLorenzoLotoLotteriaLuceLucidatoLumacaLuminosoLungoLupoLuppoloLusingaLussoLuttoMacabroMacchinaMaceroMacinatoMadamaMagicoMagliaMagneteMagroMaiolicaMalafedeMalgradoMalintesoMalsanoMaltoMalumoreManaManciaMandorlaMangiareManifestoMannaroManovraMansardaMantideManubrioMappaMaratonaMarcireMarettaMarmoMarsupioMascheraMassaiaMastinoMaterassoMatricolaMattoneMaturoMazurcaMeandroMeccanicoMecenateMedesimoMeditareMegaMelassaMelisMelodiaMeningeMenoMensolaMercurioMerendaMerloMeschinoMeseMessereMestoloMetalloMetodoMettereMiagolareMicaMicelioMicheleMicroboMidolloMieleMiglioreMilanoMiliteMimosaMineraleMiniMinoreMirinoMirtilloMiscelaMissivaMistoMisurareMitezzaMitigareMitraMittenteMnemonicoModelloModificaModuloMoganoMogioMoleMolossoMonasteroMoncoMondinaMonetarioMonileMonotonoMonsoneMontatoMonvisoMoraMordereMorsicatoMostroMotivatoMotosegaMottoMovenzaMovimentoMozzoMuccaMucosaMuffaMughettoMugnaioMulattoMulinelloMultiploMummiaMuntoMuovereMuraleMusaMuscoloMusicaMutevoleMutoNababboNaftaNanometroNarcisoNariceNarratoNascereNastrareNaturaleNauticaNaviglioNebulosaNecrosiNegativoNegozioNemmenoNeofitaNerettoNervoNessunoNettunoNeutraleNeveNevroticoNicchiaNinfaNitidoNobileNocivoNodoNomeNominaNordicoNormaleNorvegeseNostranoNotareNotiziaNotturnoNovellaNucleoNullaNumeroNuovoNutrireNuvolaNuzialeOasiObbedireObbligoObeliscoOblioOboloObsoletoOccasioneOcchioOccidenteOccorrereOccultareOcraOculatoOdiernoOdorareOffertaOffrireOffuscatoOggettoOggiOgnunoOlandeseOlfattoOliatoOlivaOlogrammaOltreOmaggioOmbelicoOmbraOmegaOmissioneOndosoOnereOniceOnnivoroOnorevoleOntaOperatoOpinioneOppostoOracoloOrafoOrdineOrecchinoOreficeOrfanoOrganicoOrigineOrizzonteOrmaOrmeggioOrnativoOrologioOrrendoOrribileOrtensiaOrticaOrzataOrzoOsareOscurareOsmosiOspedaleOspiteOssaOssidareOstacoloOsteOtiteOtreOttagonoOttimoOttobreOvaleOvestOvinoOviparoOvocitoOvunqueOvviareOzioPacchettoPacePacificoPadellaPadronePaesePagaPaginaPalazzinaPalesarePallidoPaloPaludePandoroPannelloPaoloPaonazzoPapricaParabolaParcellaParerePargoloPariParlatoParolaPartireParvenzaParzialePassivoPasticcaPataccaPatologiaPattumePavonePeccatoPedalarePedonalePeggioPelosoPenarePendicePenisolaPennutoPenombraPensarePentolaPepePepitaPerbenePercorsoPerdonatoPerforarePergamenaPeriodoPermessoPernoPerplessoPersuasoPertugioPervasoPesatorePesistaPesoPestiferoPetaloPettinePetulantePezzoPiacerePiantaPiattinoPiccinoPicozzaPiegaPietraPifferoPigiamaPigolioPigroPilaPiliferoPillolaPilotaPimpantePinetaPinnaPinoloPioggiaPiomboPiramidePireticoPiritePirolisiPitonePizzicoPlaceboPlanarePlasmaPlatanoPlenarioPochezzaPoderosoPodismoPoesiaPoggiarePolentaPoligonoPollicePolmonitePolpettaPolsoPoltronaPolverePomicePomodoroPontePopolosoPorfidoPorosoPorporaPorrePortataPosaPositivoPossessoPostulatoPotassioPoterePranzoPrassiPraticaPreclusoPredicaPrefissoPregiatoPrelievoPremerePrenotarePreparatoPresenzaPretestoPrevalsoPrimaPrincipePrivatoProblemaProcuraProdurreProfumoProgettoProlungaPromessaPronomePropostaProrogaProtesoProvaPrudentePrugnaPruritoPsichePubblicoPudicaPugilatoPugnoPulcePulitoPulsantePuntarePupazzoPupillaPuroQuadroQualcosaQuasiQuerelaQuotaRaccoltoRaddoppioRadicaleRadunatoRafficaRagazzoRagioneRagnoRamarroRamingoRamoRandagioRantolareRapatoRapinaRappresoRasaturaRaschiatoRasenteRassegnaRastrelloRataRavvedutoRealeRecepireRecintoReclutaReconditoRecuperoRedditoRedimereRegalatoRegistroRegolaRegressoRelazioneRemareRemotoRennaReplicaReprimereReputareResaResidenteResponsoRestauroReteRetinaRetoricaRettificaRevocatoRiassuntoRibadireRibelleRibrezzoRicaricaRiccoRicevereRiciclatoRicordoRicredutoRidicoloRidurreRifasareRiflessoRiformaRifugioRigareRigettatoRighelloRilassatoRilevatoRimanereRimbalzoRimedioRimorchioRinascitaRincaroRinforzoRinnovoRinomatoRinsavitoRintoccoRinunciaRinvenireRiparatoRipetutoRipienoRiportareRipresaRipulireRisataRischioRiservaRisibileRisoRispettoRistoroRisultatoRisvoltoRitardoRitegnoRitmicoRitrovoRiunioneRivaRiversoRivincitaRivoltoRizomaRobaRoboticoRobustoRocciaRocoRodaggioRodereRoditoreRogitoRollioRomanticoRompereRonzioRosolareRospoRotanteRotondoRotulaRovescioRubizzoRubricaRugaRullinoRumineRumorosoRuoloRupeRussareRusticoSabatoSabbiareSabotatoSagomaSalassoSaldaturaSalgemmaSalivareSalmoneSaloneSaltareSalutoSalvoSapereSapidoSaporitoSaracenoSarcasmoSartoSassosoSatelliteSatiraSatolloSaturnoSavanaSavioSaziatoSbadiglioSbalzoSbancatoSbarraSbattereSbavareSbendareSbirciareSbloccatoSbocciatoSbrinareSbruffoneSbuffareScabrosoScadenzaScalaScambiareScandaloScapolaScarsoScatenareScavatoSceltoScenicoScettroSchedaSchienaSciarpaScienzaScindereScippoSciroppoScivoloSclerareScodellaScolpitoScompartoSconfortoScoprireScortaScossoneScozzeseScribaScrollareScrutinioScuderiaScultoreScuolaScuroScusareSdebitareSdoganareSeccaturaSecondoSedanoSeggiolaSegnalatoSegregatoSeguitoSelciatoSelettivoSellaSelvaggioSemaforoSembrareSemeSeminatoSempreSensoSentireSepoltoSequenzaSerataSerbatoSerenoSerioSerpenteSerraglioServireSestinaSetolaSettimanaSfaceloSfaldareSfamatoSfarzosoSfaticatoSferaSfidaSfilatoSfingeSfocatoSfoderareSfogoSfoltireSforzatoSfrattoSfruttatoSfuggitoSfumareSfusoSgabelloSgarbatoSgonfiareSgorbioSgrassatoSguardoSibiloSiccomeSierraSiglaSignoreSilenzioSillabaSimboloSimpaticoSimulatoSinfoniaSingoloSinistroSinoSintesiSinusoideSiparioSismaSistoleSituatoSlittaSlogaturaSlovenoSmarritoSmemoratoSmentitoSmeraldoSmilzoSmontareSmottatoSmussatoSnellireSnervatoSnodoSobbalzoSobrioSoccorsoSocialeSodaleSoffittoSognoSoldatoSolenneSolidoSollazzoSoloSolubileSolventeSomaticoSommaSondaSonettoSonniferoSopireSoppesoSopraSorgereSorpassoSorrisoSorsoSorteggioSorvolatoSospiroSostaSottileSpadaSpallaSpargereSpatolaSpaventoSpazzolaSpecieSpedireSpegnereSpelaturaSperanzaSpessoreSpettraleSpezzatoSpiaSpigolosoSpillatoSpinosoSpiraleSplendidoSportivoSposoSprangaSprecareSpronatoSpruzzoSpuntinoSquilloSradicareSrotolatoStabileStaccoStaffaStagnareStampatoStantioStarnutoStaseraStatutoSteloSteppaSterzoStilettoStimaStirpeStivaleStizzosoStonatoStoricoStrappoStregatoStriduloStrozzareStruttoStuccareStufoStupendoSubentroSuccosoSudoreSuggeritoSugoSultanoSuonareSuperboSupportoSurgelatoSurrogatoSussurroSuturaSvagareSvedeseSveglioSvelareSvenutoSveziaSviluppoSvistaSvizzeraSvoltaSvuotareTabaccoTabulatoTacciareTaciturnoTaleTalismanoTamponeTanninoTaraTardivoTargatoTariffaTarpareTartarugaTastoTatticoTavernaTavolataTazzaTecaTecnicoTelefonoTemerarioTempoTemutoTendoneTeneroTensioneTentacoloTeoremaTermeTerrazzoTerzettoTesiTesseratoTestatoTetroTettoiaTifareTigellaTimbroTintoTipicoTipografoTiraggioTiroTitanioTitoloTitubanteTizioTizzoneToccareTollerareToltoTombolaTomoTonfoTonsillaTopazioTopologiaToppaTorbaTornareTorroneTortoraToscanoTossireTostaturaTotanoTraboccoTracheaTrafilaTragediaTralcioTramontoTransitoTrapanoTrarreTraslocoTrattatoTraveTrecciaTremolioTrespoloTributoTrichecoTrifoglioTrilloTrinceaTrioTristezzaTrituratoTrivellaTrombaTronoTroppoTrottolaTrovareTruccatoTubaturaTuffatoTulipanoTumultoTunisiaTurbareTurchinoTutaTutelaUbicatoUccelloUccisoreUdireUditivoUffaUfficioUgualeUlisseUltimatoUmanoUmileUmorismoUncinettoUngereUnghereseUnicornoUnificatoUnisonoUnitarioUnteUovoUpupaUraganoUrgenzaUrloUsanzaUsatoUscitoUsignoloUsuraioUtensileUtilizzoUtopiaVacanteVaccinatoVagabondoVagliatoValangaValgoValicoVallettaValorosoValutareValvolaVampataVangareVanitosoVanoVantaggioVanveraVaporeVaranoVarcatoVarianteVascaVedettaVedovaVedutoVegetaleVeicoloVelcroVelinaVellutoVeloceVenatoVendemmiaVentoVeraceVerbaleVergognaVerificaVeroVerrucaVerticaleVescicaVessilloVestaleVeteranoVetrinaVetustoViandanteVibranteVicendaVichingoVicinanzaVidimareVigiliaVignetoVigoreVileVillanoViminiVincitoreViolaViperaVirgolaVirologoVirulentoViscosoVisioneVispoVissutoVisuraVitaVitelloVittimaVivandaVividoViziareVoceVogaVolatileVolereVolpeVoragineVulcanoZampognaZannaZappatoZatteraZavorraZefiroZelanteZeloZenzeroZerbinoZibettoZincoZirconeZittoZollaZoticoZuccheroZufoloZuluZuppa".replace(/([A-Z])/g," $1").toLowerCase().substring(1).split(" "),"0x5c1362d88fd4cf614a96f3234941d29f7d37c08c5292fde03bf62c2db6ff7620"!==En.check(e)))throw Qn=null,new Error("BIP39 Wordlist for it (Italian) FAILED")}var Wn=new(function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.call(this,"it")}return Object(k.a)(r,[{key:"getWord",value:function(e){return qn(this),Qn[e]}},{key:"getWordIndex",value:function(e){return qn(this),Qn.indexOf(e)}}]),r}(En));En.register(Wn);var Yn="}aE#4A=Yv&co#4N#6G=cJ&SM#66|/Z#4t&kn~46#4K~4q%b9=IR#7l,mB#7W_X2*dl}Uo~7s}Uf&Iw#9c&cw~6O&H6&wx&IG%v5=IQ~8a&Pv#47$PR&50%Ko&QM&3l#5f,D9#4L|/H&tQ;v0~6n]nN<di,AM=W5%QO&ka&ua,hM^tm=zV=JA=wR&+X]7P&NB#4J#5L|/b[dA}tJ<Do&6m&u2[U1&Kb.HM&mC=w0&MW<rY,Hq#6M}QG,13&wP}Jp]Ow%ue&Kg<HP<D9~4k~9T&I2_c6$9T#9/[C5~7O~4a=cs&O7=KK=An&l9$6U$8A&uD&QI|/Y&bg}Ux&F2#6b}E2&JN&kW&kp=U/&bb=Xl<Cj}k+~5J#6L&5z&9i}b4&Fo,ho(X0_g3~4O$Fz&QE<HN=Ww]6/%GF-Vw=tj&/D&PN#9g=YO}cL&Of&PI~5I&Ip=vU=IW#9G;0o-wU}ss&QR<BT&R9=tk$PY_dh&Pq-yh]7T,nj.Xu=EP&76=cI&Fs*Xg}z7$Gb&+I=DF,AF=cA}rL#7j=Dz&3y<Aa$52=PQ}b0(iY$Fa}oL&xV#6U=ec=WZ,xh%RY<dp#9N&Fl&44=WH*A7=sh&TB&8P=07;u+&PK}uh}J5#72)V/=xC,AB$k0&f6;1E|+5=1B,3v]6n&wR%b+&xx]7f=Ol}fl;+D^wG]7E;nB;uh^Ir&l5=JL,nS=cf=g5;u6|/Q$Gc=MH%Hg#5d%M6^86=U+$Gz,l/,ir^5y&Ba&/F-IY&FI&be%IZ#77&PW_Nu$kE(Yf&NX]7Z,Jy&FJ(Xo&Nz#/d=y7&MX<Ag}Z+;nE]Dt(iG#4D=13&Pj~4c%v8&Zo%OL&/X#4W<HR&ie~6J_1O(Y2=y5=Ad*cv_eB#6k&PX:BU#7A;uk&Ft&Fx_dD=U2;vB=U5=4F}+O&GN.HH:9s=b0%NV(jO&IH=JT}Z9=VZ<Af,Kx^4m&uJ%c6,6r;9m#+L}cf%Kh&F3~4H=vP}bu,Hz|++,1w]nv}k6;uu$jw*Kl*WX&uM[x7&Fr[m7$NO&QN]hu=JN}nR^8g#/h(ps|KC;vd}xz=V0}p6&FD$G1#7K<bG_4p~8g&cf;u4=tl}+k%5/}fz;uw<cA=u1}gU}VM=LJ=eX&+L&Pr#4U}p2:nC,2K]7H:jF&9x}uX#9O=MB<fz~8X~5m&4D&kN&u5%E/(h7(ZF&VG<de(qM|/e-Wt=3x(a+,/R]f/&ND$Ro&nU}0g=KA%kH&NK$Ke<dS}cB&IX~5g$TN]6m=Uv,Is&Py=Ef%Kz#+/%bi&+A<F4$OG&4C&FL#9V<Zk=2I_eE&6c]nw&kq$HG}y+&A8$P3}OH=XP]70%IS(AJ_gH%GZ&tY&AZ=vb~6y&/r=VI=Wv<Zi=fl=xf&eL}c8}OL=MJ=g8$F7=YT}9u=0+^xC}JH&nL^N0~4T]K2,Cy%OC#6s;vG(AC^xe^cG&MF}Br#9P;wD-7h$O/&xA}Fn^PC]6i]7G&8V$Qs;vl(TB~73~4l<mW&6V=2y&uY&+3)aP}XF;LP&kx$wU=t7;uy<FN&lz)7E=Oo*Y+;wI}9q}le;J6&Ri&4t&Qr#8B=cb&vG=J5|Ql(h5<Yy~4+}QD,Lx=wn%K/&RK=dO&Pw,Q9=co%4u;9u}g0@6a^4I%b0=zo|/c&tX=dQ=OS#+b=yz_AB&wB&Pm=W9$HP_gR=62=AO=ti=hI,oA&jr&dH=tm&b6$P2(x8=zi;nG~7F;05]0n[Ix&3m}rg=Xp=cd&uz]7t;97=cN;vV<jf&FF&F1=6Q&Ik*Kk&P4,2z=fQ]7D&3u,H0=d/}Uw<ZN<7R}Kv;0f$H7,MD]7n$F0#88~9Z%da=by;+T#/u=VF&fO&kr^kf<AB]sU,I5$Ng&Pz;0i&QD&vM=Yl:BM;nJ_xJ]U7&Kf&30,3f|Z9*dC)je_jA&Q4&Kp$NH(Yz#6S&Id%Ib=KX,AD=KV%dP}tW&Pk^+E_Ni=cq,3R}VZ(Si=b+}rv;0j}rZ]uA,/w(Sx&Jv$w9&4d&wE,NJ$Gy=J/]Ls#7k<ZQ<Y/&uj]Ov$PM;v3,2F&+u:up=On&3e,Jv;90=J+&Qm]6q}bK#+d~8Y(h2]hA;99&AS=I/}qB&dQ}yJ-VM}Vl&ui,iB&G3|Dc]7d=eQ%dX%JC_1L~4d^NP;vJ&/1)ZI#7N]9X[bQ&PL=0L(UZ,Lm&kc&IR}n7(iR<AQ<dg=33=vN}ft}au]7I,Ba=x9=dR~6R&Tq=Xi,3d$Nr&Bc}DI&ku&vf]Dn,/F&iD,Ll&Nw=0y&I7=Ls=/A&tU=Qe}Ua&uk&+F=g4=gh=Vj#+1&Qn}Uy*44#5F,Pc&Rz*Xn=oh=5W;0n_Nf(iE<Y7=vr=Zu]oz#5Z%mI=kN=Bv_Jp(T2;vt_Ml<FS&uI=L/&6P]64$M7}86<bo%QX(SI%IY&VK=Al&Ux;vv;ut*E/%uh<ZE|O3,M2(yc]yu=Wk&tp:Ex}hr,Cl&WE)+Z=8U}I2_4Q,hA_si=iw=OM=tM=yZ%Ia=U7;wT}b+;uo=Za}yS!5x}HD}fb#5O_dA;Nv%uB(yB;01(Sf}Fk;v7}Pt#8v<mZ#7L,/r&Pl~4w&f5=Ph$Fw_LF&8m,bL=yJ&BH}p/*Jn}tU~5Q;wB(h6]Df]8p^+B;E4&Wc=d+;Ea&bw$8C&FN,DM=Yf}mP~5w=fT#6V=mC=Fi=AV}jB&AN}lW}aH#/D)dZ;hl;vE}/7,CJ;31&w8,hj%u9_Js=jJ&4M~8k=TN&eC}nL&uc-wi&lX}dj=Mv=e2#6u=cr$uq$6G]8W}Jb:nm=Yg<b3(UA;vX&6n&xF=KT,jC,De&R8&oY=Zv&oB]7/=Z2&Oa}bf,hh(4h^tZ&72&Nx;D2&xL~5h~40)ZG)h+=OJ&RA]Bv$yB=Oq=df,AQ%Jn}OJ;11,3z&Tl&tj;v+^Hv,Dh(id=s+]7N&N3)9Q~8f,S4=uW=w4&uX,LX&3d]CJ&yp&8x<b2_do&lP=y/<cy_dG=Oi=7R(VH(lt_1T,Iq_AA;12^6T%k6#8K[B1{oO<AU[Bt;1b$9S&Ps<8T=St{bY,jB(Zp&63&Uv$9V,PM]6v&Af}zW[bW_oq}sm}nB&Kq&gC&ff_eq_2m&5F&TI}rf}Gf;Zr_z9;ER&jk}iz_sn<BN~+n&vo=Vi%97|ZR=Wc,WE&6t]6z%85(ly#84=KY)6m_5/=aX,N3}Tm&he&6K]tR_B2-I3;u/&hU&lH<AP=iB&IA=XL;/5&Nh=wv<BH#79=vS=zl<AA=0X_RG}Bw&9p$NW,AX&kP_Lp&/Z(Tc]Mu}hs#6I}5B&cI<bq&H9#6m=K9}vH(Y1(Y0#4B&w6,/9&gG<bE,/O=zb}I4_l8<B/;wL%Qo<HO[Mq=XX}0v&BP&F4(mG}0i}nm,EC=9u{I3,xG&/9=JY*DK&hR)BX=EI=cx=b/{6k}yX%A+&wa}Xb=la;wi^lL;0t}jo&Qb=xg=XB}iO<qo{bR=NV&8f=a0&Jy;0v=uK)HK;vN#6h&jB(h/%ud&NI%wY.X7=Pt}Cu-uL&Gs_hl%mH,tm]78=Lb^Q0#7Y=1u<Bt&+Q=Co_RH,w3;1e}ux<aU;ui}U3&Q5%bt]63&UQ|0l&uL}O7&3o,AV&dm|Nj(Xt*5+(Uu&Hh(p7(UF=VR=Bp^Jl&Hd[ix)9/=Iq]C8<67]66}mB%6f}bb}JI]8T$HA}db=YM&pa=2J}tS&Y0=PS&y4=cX$6E,hX,XP&nR;04,FQ&l0&Vm_Dv#5Y~8Z=Bi%MA]6x=JO:+p,Az&9q,Hj~6/}SD=K1:EJ}nA;Qo#/E]9R,Ie&6X%W3]61&v4=xX_MC=0q;06(Xq=fs}IG}Dv=0l}o7$iZ;9v&LH&DP-7a&OY,SZ,Kz,Cv&dh=fx|Nh,F/~7q=XF&w+;9n&Gw;0h}Z7<7O&JK(S7&LS<AD<ac=wo<Dt&zw%4B=4v#8P;9o~6p*vV=Tm,Or&I6=1q}nY=P0=gq&Bl&Uu,Ch%yb}UY=zh}dh}rl(T4_xk(YA#8R*xH,IN}Jn]7V}C4&Ty}j3]7p=cL=3h&wW%Qv<Z3=f0&RI&+S(ic_zq}oN&/Y=z1;Td=LW=0e=OI(Vc,+b^ju(UL;0r:Za%8v=Rp=zw&58&73&wK}qX]6y&8E)a2}WR=wP^ur&nQ<cH}Re=Aq&wk}Q0&+q=PP,Gc|/d^k5,Fw]8Y}Pg]p3=ju=ed}r5_yf&Cs]7z$/G<Cm&Jp&54_1G_gP_Ll}JZ;0u]k8_7k(Sg]65{9i=LN&Sx&WK,iW&fD&Lk{9a}Em-9c#8N&io=sy]8d&nT&IK(lx#7/$lW(Td<s8~49,3o<7Y=MW(T+_Jr&Wd,iL}Ct=xh&5V;v4&8n%Kx=iF&l2_0B{B+,If(J0,Lv;u8=Kx-vB=HC&vS=Z6&fU&vE^xK;3D=4h=MR#45:Jw;0d}iw=LU}I5=I0]gB*im,K9}GU,1k_4U&Tt=Vs(iX&lU(TF#7y,ZO}oA&m5#5P}PN}Uz=hM<B1&FB<aG,e6~7T<tP(UQ_ZT=wu&F8)aQ]iN,1r_Lo&/g:CD}84{J1_Ki&Na&3n$jz&FE=dc;uv;va}in}ll=fv(h1&3h}fp=Cy}BM(+E~8m}lo%v7=hC(T6$cj=BQ=Bw(DR,2j=Ks,NS|F+;00=fU=70}Mb(YU;+G&m7&hr=Sk%Co]t+(X5_Jw}0r}gC(AS-IP&QK<Z2#8Q$WC]WX}T2&pG_Ka,HC=R4&/N;Z+;ch(C7,D4$3p_Mk&B2$8D=n9%Ky#5z(CT&QJ#7B]DC]gW}nf~5M;Iw#80}Tc_1F#4Z-aC}Hl=ph=fz,/3=aW}JM}nn;DG;vm}wn,4P}T3;wx&RG$u+}zK=0b;+J_Ek{re<aZ=AS}yY#5D]7q,Cp}xN=VP*2C}GZ}aG~+m_Cs=OY#6r]6g<GS}LC(UB=3A=Bo}Jy<c4}Is;1P<AG}Op<Z1}ld}nS=1Z,yM&95&98=CJ(4t:2L$Hk=Zo}Vc;+I}np&N1}9y=iv}CO*7p=jL)px]tb^zh&GS&Vl%v/;vR=14=zJ&49|/f]hF}WG;03=8P}o/&Gg&rp;DB,Kv}Ji&Pb;aA^ll(4j%yt}+K$Ht#4y&hY]7Y<F1,eN}bG(Uh%6Z]t5%G7;+F_RE;it}tL=LS&Da=Xx(S+(4f=8G=yI}cJ}WP=37=jS}pX}hd)fp<A8=Jt~+o$HJ=M6}iX=g9}CS=dv=Cj(mP%Kd,xq|+9&LD(4/=Xm&QP=Lc}LX&fL;+K=Op(lu=Qs.qC:+e&L+=Jj#8w;SL]7S(b+#4I=c1&nG_Lf&uH;+R)ZV<bV%B/,TE&0H&Jq&Ah%OF&Ss(p2,Wv&I3=Wl}Vq;1L&lJ#9b_1H=8r=b8=JH(SZ=hD=J2#7U,/U#/X~6P,FU<eL=jx,mG=hG=CE&PU=Se(qX&LY=X6=y4&tk&QQ&tf=4g&xI}W+&mZ=Dc#7w}Lg;DA;wQ_Kb(cJ=hR%yX&Yb,hw{bX_4X;EP;1W_2M}Uc=b5(YF,CM&Tp^OJ{DD]6s=vF=Yo~8q}XH}Fu%P5(SJ=Qt;MO]s8<F3&B3&8T(Ul-BS*dw&dR<87}/8]62$PZ]Lx<Au}9Q]7c=ja=KR,Go,Us&v6(qk}pG&G2=ev^GM%w4&H4]7F&dv]J6}Ew:9w=sj-ZL}Ym$+h(Ut(Um~4n=Xs(U7%eE=Qc_JR<CA#6t<Fv|/I,IS,EG<F2(Xy$/n<Fa(h9}+9_2o&N4#7X<Zq|+f_Dp=dt&na,Ca=NJ)jY=8C=YG=s6&Q+<DO}D3=xB&R1(lw;Qn<bF(Cu|/B}HV=SS&n7,10&u0]Dm%A6^4Q=WR(TD=Xo<GH,Rj(l8)bP&n/=LM&CF,F5&ml=PJ;0k=LG=tq,Rh,D6@4i=1p&+9=YC%er_Mh;nI;0q=Fw]80=xq=FM$Gv;v6&nc;wK%H2&Kj;vs,AA=YP,66}bI(qR~5U=6q~4b$Ni=K5.X3$So&Iu(p+]8G=Cf=RY(TS_O3(iH&57=fE=Dg_Do#9z#7H;FK{qd_2k%JR}en&gh_z8;Rx}9p<cN_Ne,DO;LN_7o~/p=NF=5Y}gN<ce<C1,QE]Wv=3u<BC}GK]yq}DY&u/_hj=II(pz&rC,jV&+Z}ut=NQ;Cg-SR_ZS,+o=u/;Oy_RK_QF(Fx&xP}Wr&TA,Uh&g1=yr{ax[VF$Pg(YB;Ox=Vy;+W(Sp}XV%dd&33(l/]l4#4Y}OE=6c=bw(A7&9t%wd&N/&mo,JH&Qe)fm=Ao}fu=tH",$n={zh_cn:null,zh_tw:null},eo={zh_cn:"0x17bcc4d8547e5a7135e365d1ab443aaae95e76d8230c2782c67305d4f21497a1",zh_tw:"0x51e720e90c7b87bec1d70eb6e74a21a449bd3ec9c020b01d3a40ed991b60ce5d"},to="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function ro(e){if(null===$n[e.locale]){$n[e.locale]=[];for(var t=0,r=0;r<2048;r++){var n="~!@#$%^&*_-=[]{}|;:,.()<>?".indexOf(Yn[3*r]),o=[228+(n>>2),128+to.indexOf(Yn[3*r+1]),128+to.indexOf(Yn[3*r+2])];if("zh_tw"===e.locale)for(var i=n%4;i<3;i++)o[i]=to.indexOf("FAZDC6BALcLZCA+GBARCW8wNCcDDZ8LVFBOqqDUiou+M42TFAyERXFb7EjhP+vmBFpFrUpfDV2F7eB+eCltCHJFWLFCED+pWTojEIHFXc3aFn4F68zqjEuKidS1QBVPDEhE7NA4mhMF7oThD49ot3FgtzHFCK0acW1x8DH1EmLoIlrWFBLE+y5+NA3Cx65wJHTaEZVaK1mWAmPGxgYCdxwOjTDIt/faOEhTl1vqNsKtJCOhJWuio2g07KLZEQsFBUpNtwEByBgxFslFheFbiEPvi61msDvApxCzB6rBCzox7joYA5UdDc+Cb4FSgIabpXFAj3bjkmFAxCZE+mD/SFf/0ELecYCt3nLoxC6WEZf2tKDB4oZvrEmqFkKk7BwILA7gtYBpsTq//D4jD0F0wEB9pyQ1BD5Ba0oYHDI+sbDFhvrHXdDHfgFEIJLi5r8qercNFBgFLC4bo5ERJtamWBDFy73KCEb6M8VpmEt330ygCTK58EIIFkYgF84gtGA9Uyh3m68iVrFbWFbcbqiCYHZ9J1jeRPbL8yswhMiDbhEhdNoSwFbZrLT740ABEqgCkO8J1BLd1VhKKR4sD1yUo0z+FF59Mvg71CFbyEhbHSFBKEIKyoQNgQppq9T0KAqePu0ZFGrXOHdKJqkoTFhYvpDNyuuznrN84thJbsCoO6Cu6Xlvntvy0QYuAExQEYtTUBf3CoCqwgGFZ4u1HJFzDVwEy3cjcpV4QvsPaBC3rCGyCF23o4K3pp2gberGgFEJEHo4nHICtyKH2ZqyxhN05KBBJIQlKh/Oujv/DH32VrlqFdIFC7Fz9Ct4kaqFME0UETLprnN9kfy+kFmtQBB0+5CFu0N9Ij8l/VvJDh2oq3hT6EzjTHKFN7ZjZwoTsAZ4Exsko6Fpa6WC+sduz8jyrLpegTv2h1EBeYpLpm2czQW0KoCcS0bCVXCmuWJDBjN1nQNLdF58SFJ0h7i3pC3oEOKy/FjBklL70XvBEEIWp2yZ04xObzAWDDJG7f+DbqBEA7LyiR95j7MDVdDViz2RE5vWlBMv5e4+VfhP3aXNPhvLSynb9O2x4uFBV+3jqu6d5pCG28/sETByvmu/+IJ0L3wb4rj9DNOLBF6XPIODr4L19U9RRofAG6Nxydi8Bki8BhGJbBAJKzbJxkZSlF9Q2Cu8oKqggB9hBArwLLqEBWEtFowy8XK8bEyw9snT+BeyFk1ZCSrdmgfEwFePTgCjELBEnIbjaDDPJm36rG9pztcEzT8dGk23SBhXBB1H4z+OWze0ooFzz8pDBYFvp9j9tvFByf9y4EFdVnz026CGR5qMr7fxMHN8UUdlyJAzlTBDRC28k+L4FB8078ljyD91tUj1ocnTs8vdEf7znbzm+GIjEZnoZE5rnLL700Xc7yHfz05nWxy03vBB9YGHYOWxgMQGBCR24CVYNE1hpfKxN0zKnfJDmmMgMmBWqNbjfSyFCBWSCGCgR8yFXiHyEj+VtD1FB3FpC1zI0kFbzifiKTLm9yq5zFmur+q8FHqjoOBWsBPiDbnCC2ErunV6cJ6TygXFYHYp7MKN9RUlSIS8/xBAGYLzeqUnBF4QbsTuUkUqGs6CaiDWKWjQK9EJkjpkTmNCPYXL"[t++])+(0==i?228:128);$n[e.locale].push(Fe(o))}if(En.check(e)!==eo[e.locale])throw $n[e.locale]=null,new Error("BIP39 Wordlist for "+e.locale+" (Chinese) FAILED")}}var no=function(e){p(r,e);var t=b(r);function r(e){return Object(y.a)(this,r),t.call(this,"zh_"+e)}return Object(k.a)(r,[{key:"getWord",value:function(e){return ro(this),$n[this.locale][e]}},{key:"getWordIndex",value:function(e){return ro(this),$n[this.locale].indexOf(e)}},{key:"split",value:function(e){return(e=e.replace(/(?:\u3000| )+/g,"")).split("")}}]),r}(En),oo=new no("cn");En.register(oo),En.register(oo,"zh");var io=new no("tw");En.register(io);var ao={cz:Mn,en:On,es:Nn,fr:In,it:Wn,ja:Gn,ko:Kn,zh:oo,zh_cn:oo,zh_tw:io},uo=new M.b("hdnode/5.4.0"),so=F.from("0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141"),lo=Pe("Bitcoin seed");function co(e){return(1<<e)-1<<8-e}function fo(e){return Object(E.h)(Object(E.i)(e),32)}function ho(e){return dn.encode(Object(E.b)([e,Object(E.e)(bn(bn(e)),0,4)]))}function po(e){if(null==e)return ao.en;if("string"===typeof e){var t=ao[e];return null==t&&uo.throwArgumentError("unknown locale","wordlist",e),t}return e}var vo={},mo="m/44'/60'/0'/0/0",go=function(){function e(t,r,n,o,i,a,u,s){if(Object(y.a)(this,e),uo.checkNew(this instanceof e?this.constructor:void 0,e),t!==vo)throw new Error("HDNode constructor cannot be called directly");if(r){var l=new Yt(r);D(this,"privateKey",l.privateKey),D(this,"publicKey",l.compressedPublicKey)}else D(this,"privateKey",null),D(this,"publicKey",Object(E.i)(n));D(this,"parentFingerprint",o),D(this,"fingerprint",Object(E.e)(gn(bn(this.publicKey)),0,4)),D(this,"address",ur(this.publicKey)),D(this,"chainCode",i),D(this,"index",a),D(this,"depth",u),null==s?(D(this,"mnemonic",null),D(this,"path",null)):"string"===typeof s?(D(this,"mnemonic",null),D(this,"path",s)):(D(this,"mnemonic",s),D(this,"path",s.path))}return Object(k.a)(e,[{key:"extendedKey",get:function(){if(this.depth>=256)throw new Error("Depth too large!");return ho(Object(E.b)([null!=this.privateKey?"0x0488ADE4":"0x0488B21E",Object(E.i)(this.depth),this.parentFingerprint,Object(E.h)(Object(E.i)(this.index),4),this.chainCode,null!=this.privateKey?Object(E.b)(["0x00",this.privateKey]):this.publicKey]))}},{key:"neuter",value:function(){return new e(vo,null,this.publicKey,this.parentFingerprint,this.chainCode,this.index,this.depth,this.path)}},{key:"_derive",value:function(t){if(t>4294967295)throw new Error("invalid index - "+String(t));var r=this.path;r&&(r+="/"+(2147483647&t));var n=new Uint8Array(37);if(2147483648&t){if(!this.privateKey)throw new Error("cannot derive child of neutered node");n.set(Object(E.a)(this.privateKey),1),r&&(r+="'")}else n.set(Object(E.a)(this.publicKey));for(var o=24;o>=0;o-=8)n[33+(o>>3)]=t>>24-o&255;var i=Object(E.a)(kn(cn.sha512,this.chainCode,n)),a=i.slice(0,32),u=i.slice(32),s=null,l=null;this.privateKey?s=fo(F.from(a).add(this.privateKey).mod(so)):l=new Yt(Object(E.i)(a))._addPoint(this.publicKey);var c=r,f=this.mnemonic;return f&&(c=Object.freeze({phrase:f.phrase,path:r,locale:f.locale||"en"})),new e(vo,s,l,this.fingerprint,fo(u),t,this.depth+1,c)}},{key:"derivePath",value:function(e){var t=e.split("/");if(0===t.length||"m"===t[0]&&0!==this.depth)throw new Error("invalid path - "+e);"m"===t[0]&&t.shift();for(var r=this,n=0;n<t.length;n++){var o=t[n];if(o.match(/^[0-9]+'$/)){var i=parseInt(o.substring(0,o.length-1));if(i>=2147483648)throw new Error("invalid path index - "+o);r=r._derive(2147483648+i)}else{if(!o.match(/^[0-9]+$/))throw new Error("invalid path component - "+o);var a=parseInt(o);if(a>=2147483648)throw new Error("invalid path index - "+o);r=r._derive(a)}}return r}}],[{key:"_fromSeed",value:function(t,r){var n=Object(E.a)(t);if(n.length<16||n.length>64)throw new Error("invalid seed");var o=Object(E.a)(kn(cn.sha512,lo,n));return new e(vo,fo(o.slice(0,32)),null,"0x00000000",fo(o.slice(32)),0,0,r)}},{key:"fromMnemonic",value:function(t,r,n){return t=ko(yo(t,n=po(n)),n),e._fromSeed(bo(t,r),{phrase:t,path:"m",locale:n.locale})}},{key:"fromSeed",value:function(t){return e._fromSeed(t,null)}},{key:"fromExtendedKey",value:function(t){var r=dn.decode(t);82===r.length&&ho(r.slice(0,78))===t||uo.throwArgumentError("invalid extended key","extendedKey","[REDACTED]");var n=r[4],o=Object(E.i)(r.slice(5,9)),i=parseInt(Object(E.i)(r.slice(9,13)).substring(2),16),a=Object(E.i)(r.slice(13,45)),u=r.slice(45,78);switch(Object(E.i)(r.slice(0,4))){case"0x0488b21e":case"0x043587cf":return new e(vo,null,Object(E.i)(u),o,a,i,n,null);case"0x0488ade4":case"0x04358394 ":if(0!==u[0])break;return new e(vo,Object(E.i)(u.slice(1)),null,o,a,i,n,null)}return uo.throwArgumentError("invalid extended key","extendedKey","[REDACTED]")}}]),e}();function bo(e,t){t||(t="");var r=Pe("mnemonic"+t,we.NFKD);return wn(Pe(e,we.NFKD),r,2048,64,"sha512")}function yo(e,t){t=po(t),uo.checkNormalize();var r=t.split(e);if(r.length%3!==0)throw new Error("invalid mnemonic");for(var n=Object(E.a)(new Uint8Array(Math.ceil(11*r.length/8))),o=0,i=0;i<r.length;i++){var a=t.getWordIndex(r[i].normalize("NFKD"));if(-1===a)throw new Error("invalid mnemonic");for(var u=0;u<11;u++)a&1<<10-u&&(n[o>>3]|=1<<7-o%8),o++}var s=32*r.length/3,l=co(r.length/3);if((Object(E.a)(bn(n.slice(0,s/8)))[0]&l)!==(n[n.length-1]&l))throw new Error("invalid checksum");return Object(E.i)(n.slice(0,s/8))}function ko(e,t){if(t=po(t),(e=Object(E.a)(e)).length%4!==0||e.length<16||e.length>32)throw new Error("invalid entropy");for(var r=[0],n=11,o=0;o<e.length;o++)n>8?(r[r.length-1]<<=8,r[r.length-1]|=e[o],n-=8):(r[r.length-1]<<=n,r[r.length-1]|=e[o]>>8-n,r.push(e[o]&(1<<8-n)-1),n+=3);var i=e.length/4,a=Object(E.a)(bn(e))[0]&co(i);return r[r.length-1]<<=i,r[r.length-1]|=a>>8-i,t.join(r.map((function(e){return t.getWord(e)})))}function wo(e,t){try{return yo(e,t),!0}catch(r){}return!1}function To(e){return("number"!==typeof e||e<0||e>=2147483648||e%1)&&uo.throwArgumentError("invalid account index","index",e),"m/44'/60'/".concat(e,"'/0/0")}var Eo=r(62),So=r(10),Ao=r.n(So),Mo=r(24),Po=r.n(Mo);function Co(e){return"string"===typeof e&&"0x"!==e.substring(0,2)&&(e="0x"+e),Object(E.a)(e)}function Oo(e,t){for(e=String(e);e.length<t;)e="0"+e;return e}function xo(e){return"string"===typeof e?Pe(e,we.NFKC):Object(E.a)(e)}function Fo(e,t){for(var r=e,n=t.toLowerCase().split("/"),o=0;o<n.length;o++){var i=null;for(var a in r)if(a.toLowerCase()===n[o]){i=r[a];break}if(null===i)return null;r=i}return r}function Lo(e){var t=Object(E.a)(e);t[6]=15&t[6]|64,t[8]=63&t[8]|128;var r=Object(E.i)(t);return[r.substring(2,10),r.substring(10,14),r.substring(14,18),r.substring(18,22),r.substring(22,34)].join("-")}var Bo=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},No=new M.b("json-wallets/5.4.0");function Ro(e){return null!=e&&e.mnemonic&&e.mnemonic.phrase}var Jo=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"isKeystoreAccount",value:function(e){return!(!e||!e._isKeystoreAccount)}}]),r}(V);function _o(e,t){var r=Co(Fo(e,"crypto/ciphertext"));if(Object(E.i)(ee(Object(E.b)([t.slice(16,32),r]))).substring(2)!==Fo(e,"crypto/mac").toLowerCase())throw new Error("invalid password");var n=function(e,t,r){if("aes-128-ctr"===Fo(e,"crypto/cipher")){var n=Co(Fo(e,"crypto/cipherparams/iv")),o=new Ao.a.Counter(n),i=new Ao.a.ModeOfOperation.ctr(t,o);return Object(E.a)(i.decrypt(r))}return null}(e,t.slice(0,16),r);n||No.throwError("unsupported cipher",M.b.errors.UNSUPPORTED_OPERATION,{operation:"decrypt"});var o=t.slice(32,64),i=ur(n);if(e.address){var a=e.address.toLowerCase();if("0x"!==a.substring(0,2)&&(a="0x"+a),me(a)!==i)throw new Error("address mismatch")}var u={_isKeystoreAccount:!0,address:i,privateKey:Object(E.i)(n)};if("0.1"===Fo(e,"x-ethers/version")){var s=Co(Fo(e,"x-ethers/mnemonicCiphertext")),l=Co(Fo(e,"x-ethers/mnemonicCounter")),c=new Ao.a.Counter(l),f=new Ao.a.ModeOfOperation.ctr(o,c),h=Fo(e,"x-ethers/path")||mo,d=Fo(e,"x-ethers/locale")||"en",p=Object(E.a)(f.decrypt(s));try{var v=ko(p,d),m=go.fromMnemonic(v,null,d).derivePath(h);if(m.privateKey!=u.privateKey)throw new Error("mnemonic mismatch");u.mnemonic=m.mnemonic}catch(g){if(g.code!==M.b.errors.INVALID_ARGUMENT||"wordlist"!==g.argument)throw g}}return new Jo(u)}function Do(e,t,r,n,o){return Object(E.a)(wn(e,t,r,n,o))}function Io(e,t,r,n,o){return Promise.resolve(Do(e,t,r,n,o))}function jo(e,t,r,n,o){var i=xo(t),a=Fo(e,"crypto/kdf");if(a&&"string"===typeof a){var u=function(e,t){return No.throwArgumentError("invalid key-derivation function parameters",e,t)};if("scrypt"===a.toLowerCase()){var s=Co(Fo(e,"crypto/kdfparams/salt")),l=parseInt(Fo(e,"crypto/kdfparams/n")),c=parseInt(Fo(e,"crypto/kdfparams/r")),f=parseInt(Fo(e,"crypto/kdfparams/p"));l&&c&&f||u("kdf",a),0!==(l&l-1)&&u("N",l);var h=parseInt(Fo(e,"crypto/kdfparams/dklen"));return 32!==h&&u("dklen",h),n(i,s,l,c,f,64,o)}if("pbkdf2"===a.toLowerCase()){var d=Co(Fo(e,"crypto/kdfparams/salt")),p=null,v=Fo(e,"crypto/kdfparams/prf");"hmac-sha256"===v?p="sha256":"hmac-sha512"===v?p="sha512":u("prf",v);var m=parseInt(Fo(e,"crypto/kdfparams/c")),g=parseInt(Fo(e,"crypto/kdfparams/dklen"));return 32!==g&&u("dklen",g),r(i,d,m,g,p)}}return No.throwArgumentError("unsupported key-derivation function","kdf",a)}var Xo=new M.b("json-wallets/5.4.0"),Uo=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"isCrowdsaleAccount",value:function(e){return!(!e||!e._isCrowdsaleAccount)}}]),r}(V);function Ho(e,t){var r=JSON.parse(e);t=xo(t);var n=me(Fo(r,"ethaddr")),o=Co(Fo(r,"encseed"));o&&o.length%16===0||Xo.throwArgumentError("invalid encseed","json",e);for(var i=Object(E.a)(wn(t,t,2e3,32,"sha256")).slice(0,16),a=o.slice(0,16),u=o.slice(16),s=new Ao.a.ModeOfOperation.cbc(i,a),l=Ao.a.padding.pkcs7.strip(Object(E.a)(s.decrypt(u))),c="",f=0;f<l.length;f++)c+=String.fromCharCode(l[f]);var h=ee(Pe(c));return new Uo({_isCrowdsaleAccount:!0,address:n,privateKey:h})}function Go(e){var t=null;try{t=JSON.parse(e)}catch(r){return!1}return t.encseed&&t.ethaddr}function zo(e){var t=null;try{t=JSON.parse(e)}catch(r){return!1}return!(!t.version||parseInt(t.version)!==t.version||3!==parseInt(t.version))}function Vo(e){if(Go(e))try{return me(JSON.parse(e).ethaddr)}catch(t){return null}if(zo(e))try{return me(JSON.parse(e).address)}catch(t){return null}return null}function Zo(e,t,r){if(Go(e)){r&&r(0);var n=Ho(e,t);return r&&r(1),Promise.resolve(n)}return zo(e)?function(e,t,r){return Bo(this,void 0,void 0,T.a.mark((function n(){var o,i;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=JSON.parse(e),n.next=3,jo(o,t,Io,Po.a.scrypt,r);case 3:return i=n.sent,n.abrupt("return",_o(o,i));case 5:case"end":return n.stop()}}),n)})))}(e,t,r):Promise.reject(new Error("invalid JSON wallet"))}function Ko(e,t){if(Go(e))return Ho(e,t);if(zo(e))return function(e,t){var r=JSON.parse(e);return _o(r,jo(r,t,Do,Po.a.syncScrypt))}(e,t);throw new Error("invalid JSON wallet")}var Qo=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},qo=new M.b("wallet/5.4.0");var Wo=function(e){p(r,e);var t=b(r);function r(e,n){var o,i;if(Object(y.a)(this,r),qo.checkNew(this instanceof r?this.constructor:void 0,r),o=t.call(this),null!=(i=e)&&Object(E.l)(i.privateKey,32)&&null!=i.address){var a=new Yt(e.privateKey);if(D(c(o),"_signingKey",(function(){return a})),D(c(o),"address",ur(o.publicKey)),o.address!==me(e.address)&&qo.throwArgumentError("privateKey/address mismatch","privateKey","[REDACTED]"),function(e){var t=e.mnemonic;return t&&t.phrase}(e)){var u=e.mnemonic;D(c(o),"_mnemonic",(function(){return{phrase:u.phrase,path:u.path||mo,locale:u.locale||"en"}}));var s=o.mnemonic;ur(go.fromMnemonic(s.phrase,null,s.locale).derivePath(s.path).privateKey)!==o.address&&qo.throwArgumentError("mnemonic/address mismatch","privateKey","[REDACTED]")}else D(c(o),"_mnemonic",(function(){return null}))}else{if(Yt.isSigningKey(e))"secp256k1"!==e.curve&&qo.throwArgumentError("unsupported curve; must be secp256k1","privateKey","[REDACTED]"),D(c(o),"_signingKey",(function(){return e}));else{"string"===typeof e&&e.match(/^[0-9a-f]*$/i)&&64===e.length&&(e="0x"+e);var l=new Yt(e);D(c(o),"_signingKey",(function(){return l}))}D(c(o),"_mnemonic",(function(){return null})),D(c(o),"address",ur(o.publicKey))}return n&&!Xt.isProvider(n)&&qo.throwArgumentError("invalid provider","provider",n),D(c(o),"provider",n||null),o}return Object(k.a)(r,[{key:"mnemonic",get:function(){return this._mnemonic()}},{key:"privateKey",get:function(){return this._signingKey().privateKey}},{key:"publicKey",get:function(){return this._signingKey().publicKey}},{key:"getAddress",value:function(){return Promise.resolve(this.address)}},{key:"connect",value:function(e){return new r(this,e)}},{key:"signTransaction",value:function(e){var t=this;return j(e).then((function(r){null!=r.from&&(me(r.from)!==t.address&&qo.throwArgumentError("transaction from address mismatch","transaction.from",e.from),delete r.from);var n=t._signingKey().signDigest(ee(vr(r)));return vr(r,n)}))}},{key:"signMessage",value:function(e){return Qo(this,void 0,void 0,T.a.mark((function t(){return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(E.m)(this._signingKey().signDigest(Zr(e))));case 1:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return Qo(this,void 0,void 0,T.a.mark((function n(){var o,i=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fn.resolveNames(e,t,r,(function(e){return null==i.provider&&qo.throwError("cannot resolve ENS names without a provider",M.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName",value:e}),i.provider.resolveName(e)}));case 2:return o=n.sent,n.abrupt("return",Object(E.m)(this._signingKey().signDigest(fn.hash(o.domain,t,o.value))));case 4:case"end":return n.stop()}}),n,this)})))}},{key:"encrypt",value:function(e,t,r){if("function"!==typeof t||r||(r=t,t={}),r&&"function"!==typeof r)throw new Error("invalid callback");return t||(t={}),function(e,t,r,n){try{if(me(e.address)!==ur(e.privateKey))throw new Error("address/privateKey mismatch");if(Ro(e)){var o=e.mnemonic;if(go.fromMnemonic(o.phrase,null,o.locale).derivePath(o.path||mo).privateKey!=e.privateKey)throw new Error("mnemonic mismatch")}}catch(b){return Promise.reject(b)}"function"!==typeof r||n||(n=r,r={}),r||(r={});var i=Object(E.a)(e.privateKey),a=xo(t),u=null,s=null,l=null;if(Ro(e)){var c=e.mnemonic;u=Object(E.a)(yo(c.phrase,c.locale||"en")),s=c.path||mo,l=c.locale||"en"}var f=r.client;f||(f="ethers.js");var h=null;h=r.salt?Object(E.a)(r.salt):Object(Eo.a)(32);var d=null;if(r.iv){if(16!==(d=Object(E.a)(r.iv)).length)throw new Error("invalid iv")}else d=Object(Eo.a)(16);var p=null;if(r.uuid){if(16!==(p=Object(E.a)(r.uuid)).length)throw new Error("invalid uuid")}else p=Object(Eo.a)(16);var v=1<<17,m=8,g=1;return r.scrypt&&(r.scrypt.N&&(v=r.scrypt.N),r.scrypt.r&&(m=r.scrypt.r),r.scrypt.p&&(g=r.scrypt.p)),Po.a.scrypt(a,h,v,m,g,64,n).then((function(t){var r=(t=Object(E.a)(t)).slice(0,16),n=t.slice(16,32),o=t.slice(32,64),a=new Ao.a.Counter(d),c=new Ao.a.ModeOfOperation.ctr(r,a),b=Object(E.a)(c.encrypt(i)),y=ee(Object(E.b)([n,b])),k={address:e.address.substring(2).toLowerCase(),id:Lo(p),version:3,Crypto:{cipher:"aes-128-ctr",cipherparams:{iv:Object(E.i)(d).substring(2)},ciphertext:Object(E.i)(b).substring(2),kdf:"scrypt",kdfparams:{salt:Object(E.i)(h).substring(2),n:v,dklen:32,p:g,r:m},mac:y.substring(2)}};if(u){var w=Object(Eo.a)(16),T=new Ao.a.Counter(w),S=new Ao.a.ModeOfOperation.ctr(o,T),A=Object(E.a)(S.encrypt(u)),M=new Date,P=M.getUTCFullYear()+"-"+Oo(M.getUTCMonth()+1,2)+"-"+Oo(M.getUTCDate(),2)+"T"+Oo(M.getUTCHours(),2)+"-"+Oo(M.getUTCMinutes(),2)+"-"+Oo(M.getUTCSeconds(),2)+".0Z";k["x-ethers"]={client:f,gethFilename:"UTC--"+P+"--"+k.address,mnemonicCounter:Object(E.i)(w).substring(2),mnemonicCiphertext:Object(E.i)(A).substring(2),path:s,locale:l,version:"0.1"}}return JSON.stringify(k)}))}(this,e,t,r)}}],[{key:"createRandom",value:function(e){var t=Object(Eo.a)(16);e||(e={}),e.extraEntropy&&(t=Object(E.a)(Object(E.e)(ee(Object(E.b)([t,e.extraEntropy])),0,16)));var n=ko(t,e.locale);return r.fromMnemonic(n,e.path,e.locale)}},{key:"fromEncryptedJson",value:function(e,t,n){return Zo(e,t,n).then((function(e){return new r(e)}))}},{key:"fromEncryptedJsonSync",value:function(e,t){return new r(Ko(e,t))}},{key:"fromMnemonic",value:function(e,t,n){return t||(t=mo),new r(go.fromMnemonic(e,null,n).derivePath(t))}}]),r}(Vt);function Yo(e,t){return sr(Zr(e),t)}function $o(e,t,r,n){return sr(fn.hash(e,t,r),n)}var ei="0x0000000000000000000000000000000000000000",ti="0x0000000000000000000000000000000000000000000000000000000000000000",ri="\u039e",ni=new M.b("networks/5.4.2");function oi(e){var t=function(t,r){null==r&&(r={});var n=[];if(t.InfuraProvider)try{n.push(new t.InfuraProvider(e,r.infura))}catch(a){}if(t.EtherscanProvider)try{n.push(new t.EtherscanProvider(e,r.etherscan))}catch(a){}if(t.AlchemyProvider)try{n.push(new t.AlchemyProvider(e,r.alchemy))}catch(a){}if(t.PocketProvider){try{var o=new t.PocketProvider(e);o.network&&-1===["goerli","ropsten","rinkeby"].indexOf(o.network.name)&&n.push(o)}catch(a){}}if(t.CloudflareProvider)try{n.push(new t.CloudflareProvider(e))}catch(a){}if(0===n.length)return null;if(t.FallbackProvider){var i=1;return null!=r.quorum?i=r.quorum:"homestead"===e&&(i=2),new t.FallbackProvider(n,i)}return n[0]};return t.renetwork=function(e){return oi(e)},t}function ii(e,t){var r=function(r,n){return r.JsonRpcProvider?new r.JsonRpcProvider(e,t):null};return r.renetwork=function(t){return ii(e,t)},r}var ai={chainId:1,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"homestead",_defaultProvider:oi("homestead")},ui={chainId:3,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"ropsten",_defaultProvider:oi("ropsten")},si={chainId:63,name:"classicMordor",_defaultProvider:ii("https://www.ethercluster.com/mordor","classicMordor")},li={unspecified:{chainId:0,name:"unspecified"},homestead:ai,mainnet:ai,morden:{chainId:2,name:"morden"},ropsten:ui,testnet:ui,rinkeby:{chainId:4,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"rinkeby",_defaultProvider:oi("rinkeby")},kovan:{chainId:42,name:"kovan",_defaultProvider:oi("kovan")},goerli:{chainId:5,ensAddress:"0x00000000000C2E074eC69A0dFb2997BA6C7d2e1e",name:"goerli",_defaultProvider:oi("goerli")},classic:{chainId:61,name:"classic",_defaultProvider:ii("https://www.ethercluster.com/etc","classic")},classicMorden:{chainId:62,name:"classicMorden"},classicMordor:si,classicTestnet:si,classicKotti:{chainId:6,name:"classicKotti",_defaultProvider:ii("https://www.ethercluster.com/kotti","classicKotti")},xdai:{chainId:100,name:"xdai"},matic:{chainId:137,name:"matic"},maticmum:{chainId:80001,name:"maticmum"},bnb:{chainId:56,name:"bnb"},bnbt:{chainId:97,name:"bnbt"}};function ci(e){if(null==e)return null;if("number"===typeof e){for(var t in li){var r=li[t];if(r.chainId===e)return{name:r.name,chainId:r.chainId,ensAddress:r.ensAddress||null,_defaultProvider:r._defaultProvider||null}}return{chainId:e,name:"unknown"}}if("string"===typeof e){var n=li[e];return null==n?null:{name:n.name,chainId:n.chainId,ensAddress:n.ensAddress,_defaultProvider:n._defaultProvider||null}}var o=li[e.name];if(!o)return"number"!==typeof e.chainId&&ni.throwArgumentError("invalid network chainId","network",e),e;0!==e.chainId&&e.chainId!==o.chainId&&ni.throwArgumentError("network chainId mismatch","network",e);var i,a=e._defaultProvider||null;return null==a&&o._defaultProvider&&(a=(i=o._defaultProvider)&&"function"===typeof i.renetwork?o._defaultProvider.renetwork(e):o._defaultProvider),{name:e.name,chainId:o.chainId,ensAddress:e.ensAddress||o.ensAddress||null,_defaultProvider:a}}function fi(e,t){t||(t=function(e){return[parseInt(e,16)]});var r=0,n={};return e.split(",").forEach((function(e){var o=e.split(":");r+=parseInt(o[0],16),n[r]=t(o[1])})),n}function hi(e){var t=0;return e.split(",").map((function(e){var r=e.split("-");return 1===r.length?r[1]="0":""===r[1]&&(r[1]="1"),{l:t+parseInt(r[0],16),h:t=parseInt(r[1],16)}}))}function di(e,t){for(var r=0,n=0;n<t.length;n++){var o=t[n];if(e>=(r+=o.l)&&e<=r+o.h&&(e-r)%(o.d||1)===0){if(o.e&&-1!==o.e.indexOf(e-r))continue;return o}}return null}var pi=hi("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"),vi="ad,34f,1806,180b,180c,180d,200b,200c,200d,2060,feff".split(",").map((function(e){return parseInt(e,16)})),mi=[{h:25,s:32,l:65},{h:30,s:32,e:[23],l:127},{h:54,s:1,e:[48],l:64,d:2},{h:14,s:1,l:57,d:2},{h:44,s:1,l:17,d:2},{h:10,s:1,e:[2,6,8],l:61,d:2},{h:16,s:1,l:68,d:2},{h:84,s:1,e:[18,24,66],l:19,d:2},{h:26,s:32,e:[17],l:435},{h:22,s:1,l:71,d:2},{h:15,s:80,l:40},{h:31,s:32,l:16},{h:32,s:1,l:80,d:2},{h:52,s:1,l:42,d:2},{h:12,s:1,l:55,d:2},{h:40,s:1,e:[38],l:15,d:2},{h:14,s:1,l:48,d:2},{h:37,s:48,l:49},{h:148,s:1,l:6351,d:2},{h:88,s:1,l:160,d:2},{h:15,s:16,l:704},{h:25,s:26,l:854},{h:25,s:32,l:55915},{h:37,s:40,l:1247},{h:25,s:-119711,l:53248},{h:25,s:-119763,l:52},{h:25,s:-119815,l:52},{h:25,s:-119867,e:[1,4,5,7,8,11,12,17],l:52},{h:25,s:-119919,l:52},{h:24,s:-119971,e:[2,7,8,17],l:52},{h:24,s:-120023,e:[2,7,13,15,16,17],l:52},{h:25,s:-120075,l:52},{h:25,s:-120127,l:52},{h:25,s:-120179,l:52},{h:25,s:-120231,l:52},{h:25,s:-120283,l:52},{h:25,s:-120335,l:52},{h:24,s:-119543,e:[17],l:56},{h:24,s:-119601,e:[17],l:58},{h:24,s:-119659,e:[17],l:58},{h:24,s:-119717,e:[17],l:58},{h:24,s:-119775,e:[17],l:58}],gi=fi("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"),bi=fi("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"),yi=fi("df:00730073,51:00690307,19:02BC006E,a7:006A030C,18a:002003B9,16:03B903080301,20:03C503080301,1d7:05650582,190f:00680331,1:00740308,1:0077030A,1:0079030A,1:006102BE,b6:03C50313,2:03C503130300,2:03C503130301,2:03C503130342,2a:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F0003B9,1:1F0103B9,1:1F0203B9,1:1F0303B9,1:1F0403B9,1:1F0503B9,1:1F0603B9,1:1F0703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F2003B9,1:1F2103B9,1:1F2203B9,1:1F2303B9,1:1F2403B9,1:1F2503B9,1:1F2603B9,1:1F2703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,1:1F6003B9,1:1F6103B9,1:1F6203B9,1:1F6303B9,1:1F6403B9,1:1F6503B9,1:1F6603B9,1:1F6703B9,3:1F7003B9,1:03B103B9,1:03AC03B9,2:03B10342,1:03B1034203B9,5:03B103B9,6:1F7403B9,1:03B703B9,1:03AE03B9,2:03B70342,1:03B7034203B9,5:03B703B9,6:03B903080300,1:03B903080301,3:03B90342,1:03B903080342,b:03C503080300,1:03C503080301,1:03C10313,2:03C50342,1:03C503080342,b:1F7C03B9,1:03C903B9,1:03CE03B9,2:03C90342,1:03C9034203B9,5:03C903B9,ac:00720073,5b:00B00063,6:00B00066,d:006E006F,a:0073006D,1:00740065006C,1:0074006D,124f:006800700061,2:00610075,2:006F0076,b:00700061,1:006E0061,1:03BC0061,1:006D0061,1:006B0061,1:006B0062,1:006D0062,1:00670062,3:00700066,1:006E0066,1:03BC0066,4:0068007A,1:006B0068007A,1:006D0068007A,1:00670068007A,1:00740068007A,15:00700061,1:006B00700061,1:006D00700061,1:006700700061,8:00700076,1:006E0076,1:03BC0076,1:006D0076,1:006B0076,1:006D0076,1:00700077,1:006E0077,1:03BC0077,1:006D0077,1:006B0077,1:006D0077,1:006B03C9,1:006D03C9,2:00620071,3:00632215006B0067,1:0063006F002E,1:00640062,1:00670079,2:00680070,2:006B006B,1:006B006D,9:00700068,2:00700070006D,1:00700072,2:00730076,1:00770062,c723:00660066,1:00660069,1:0066006C,1:006600660069,1:00660066006C,1:00730074,1:00730074,d:05740576,1:05740565,1:0574056B,1:057E0576,1:0574056D",(function(e){if(e.length%4!==0)throw new Error("bad data");for(var t=[],r=0;r<e.length;r+=4)t.push(parseInt(e.substring(r,r+4),16));return t})),ki=hi("80-20,2a0-,39c,32,f71,18e,7f2-f,19-7,30-4,7-5,f81-b,5,a800-20ff,4d1-1f,110,fa-6,d174-7,2e84-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,ffff-,2,1f-5f,ff7f-20001");function wi(e){if(e.match(/^[a-z0-9-]*$/i)&&e.length<=59)return e.toLowerCase();var t,r=Le(e);t=r.map((function(e){if(vi.indexOf(e)>=0)return[];if(e>=65024&&e<=65039)return[];var t=function(e){var t=di(e,mi);if(t)return[e+t.s];var r=gi[e];if(r)return r;var n=bi[e];if(n)return[e+n[0]];var o=yi[e];return o||null}(e);return t||[e]})),(r=Le(xe(r=t.reduce((function(e,t){return t.forEach((function(t){e.push(t)})),e}),[])),we.NFKC)).forEach((function(e){if(di(e,ki))throw new Error("STRINGPREP_CONTAINS_PROHIBITED")})),r.forEach((function(e){if(di(e,pi))throw new Error("STRINGPREP_CONTAINS_UNASSIGNED")}));var n=xe(r);if("-"===n.substring(0,1)||"--"===n.substring(2,4)||"-"===n.substring(n.length-1))throw new Error("invalid hyphen");if(n.length>63)throw new Error("too long");return n}var Ti=new M.b("hash/5.4.0"),Ei=new Uint8Array(32);Ei.fill(0);var Si=new RegExp("^((.*)\\.)?([^.]+)$");function Ai(e){try{for(var t=e.split("."),r=0;r<t.length;r++)if(0===wi(t[r]).length)throw new Error("empty");return!0}catch(n){}return!1}function Mi(e){"string"!==typeof e&&Ti.throwArgumentError("invalid ENS name; not a string","name",e);for(var t=e,r=Ei;t.length;){var n=t.match(Si);null!=n&&""!==n[2]||Ti.throwArgumentError("invalid ENS address; missing component","name",e);var o=Pe(wi(n[3]));r=ee(Object(E.b)([r,ee(o)])),t=n[2]||""}return Object(E.i)(r)}function Pi(e){e=atob(e);for(var t=[],r=0;r<e.length;r++)t.push(e.charCodeAt(r));return Object(E.a)(t)}function Ci(e){e=Object(E.a)(e);for(var t="",r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Oi=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))};function xi(e,t){return Oi(this,void 0,void 0,T.a.mark((function r(){var n,o,i,a;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return null==t&&(t={}),n={method:t.method||"GET",headers:t.headers||{},body:t.body||void 0,mode:"cors",cache:"no-cache",credentials:"same-origin",redirect:"follow",referrer:"client"},r.next=4,fetch(e,n);case 4:return o=r.sent,r.next=7,o.arrayBuffer();case 7:return i=r.sent,a={},o.headers.forEach?o.headers.forEach((function(e,t){a[t.toLowerCase()]=e})):o.headers.keys().forEach((function(e){a[e.toLowerCase()]=o.headers.get(e)})),r.abrupt("return",{headers:a,statusCode:o.status,statusMessage:o.statusText,body:Object(E.a)(new Uint8Array(i))});case 11:case"end":return r.stop()}}),r)})))}var Fi=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Li=new M.b("web/5.4.0");function Bi(e){return new Promise((function(t){setTimeout(t,e)}))}function Ni(e,t){if(null==e)return null;if("string"===typeof e)return e;if(Object(E.k)(e)){if(t&&("text"===t.split("/")[0]||"application/json"===t.split(";")[0].trim()))try{return Fe(e)}catch(r){}return Object(E.i)(e)}return e}function Ri(e,t,r){var n="object"===typeof e&&null!=e.throttleLimit?e.throttleLimit:12;Li.assertArgument(n>0&&n%1===0,"invalid connection throttle limit","connection.throttleLimit",n);var o="object"===typeof e?e.throttleCallback:null,i="object"===typeof e&&"number"===typeof e.throttleSlotInterval?e.throttleSlotInterval:100;Li.assertArgument(i>0&&i%1===0,"invalid connection throttle slot interval","connection.throttleSlotInterval",i);var a={},u=null,s={method:"GET"},l=!1,c=12e4;if("string"===typeof e)u=e;else if("object"===typeof e){if(null!=e&&null!=e.url||Li.throwArgumentError("missing URL","connection.url",e),u=e.url,"number"===typeof e.timeout&&e.timeout>0&&(c=e.timeout),e.headers)for(var f in e.headers)a[f.toLowerCase()]={key:f,value:String(e.headers[f])},["if-none-match","if-modified-since"].indexOf(f.toLowerCase())>=0&&(l=!0);if(s.allowGzip=!!e.allowGzip,null!=e.user&&null!=e.password){"https:"!==u.substring(0,6)&&!0!==e.allowInsecureAuthentication&&Li.throwError("basic authentication requires a secure https url",M.b.errors.INVALID_ARGUMENT,{argument:"url",url:u,user:e.user,password:"[REDACTED]"});var h=e.user+":"+e.password;a.authorization={key:"Authorization",value:"Basic "+Ci(Pe(h))}}}t&&(s.method="POST",s.body=t,null==a["content-type"]&&(a["content-type"]={key:"Content-Type",value:"application/octet-stream"}),null==a["content-length"]&&(a["content-length"]={key:"Content-Length",value:String(t.length)}));var d={};Object.keys(a).forEach((function(e){var t=a[e];d[t.key]=t.value})),s.headers=d;var p=function(){var e=null;return{promise:new Promise((function(t,r){c&&(e=setTimeout((function(){null!=e&&(e=null,r(Li.makeError("timeout",M.b.errors.TIMEOUT,{requestBody:Ni(s.body,d["content-type"]),requestMethod:s.method,timeout:c,url:u})))}),c))})),cancel:function(){null!=e&&(clearTimeout(e),e=null)}}}(),v=function(){return Fi(this,void 0,void 0,T.a.mark((function e(){var t,a,c,f,h,v,m,g,b;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=0;case 1:if(!(t<n)){e.next=57;break}return a=null,e.prev=3,e.next=6,xi(u,s);case 6:if(!(429===(a=e.sent).statusCode&&t<n)){e.next=20;break}if(c=!0,!o){e.next=13;break}return e.next=12,o(t,u);case 12:c=e.sent;case 13:if(!c){e.next=20;break}return f=0,h=a.headers["retry-after"],f="string"===typeof h&&h.match(/^[1-9][0-9]*$/)?1e3*parseInt(h):i*parseInt(String(Math.random()*Math.pow(2,t))),e.next=19,Bi(f);case 19:return e.abrupt("continue",54);case 20:e.next=26;break;case 22:e.prev=22,e.t0=e.catch(3),null==(a=e.t0.response)&&(p.cancel(),Li.throwError("missing response",M.b.errors.SERVER_ERROR,{requestBody:Ni(s.body,d["content-type"]),requestMethod:s.method,serverError:e.t0,url:u}));case 26:if(v=a.body,l&&304===a.statusCode?v=null:(a.statusCode<200||a.statusCode>=300)&&(p.cancel(),Li.throwError("bad response",M.b.errors.SERVER_ERROR,{status:a.statusCode,headers:a.headers,body:Ni(v,a.headers?a.headers["content-type"]:null),requestBody:Ni(s.body,d["content-type"]),requestMethod:s.method,url:u})),!r){e.next=52;break}return e.prev=29,e.next=32,r(v,a);case 32:return m=e.sent,p.cancel(),e.abrupt("return",m);case 37:if(e.prev=37,e.t1=e.catch(29),!(e.t1.throttleRetry&&t<n)){e.next=50;break}if(g=!0,!o){e.next=45;break}return e.next=44,o(t,u);case 44:g=e.sent;case 45:if(!g){e.next=50;break}return b=i*parseInt(String(Math.random()*Math.pow(2,t))),e.next=49,Bi(b);case 49:return e.abrupt("continue",54);case 50:p.cancel(),Li.throwError("processing response error",M.b.errors.SERVER_ERROR,{body:Ni(v,a.headers?a.headers["content-type"]:null),error:e.t1,requestBody:Ni(s.body,d["content-type"]),requestMethod:s.method,url:u});case 52:return p.cancel(),e.abrupt("return",v);case 54:t++,e.next=1;break;case 57:return e.abrupt("return",Li.throwError("failed response",M.b.errors.SERVER_ERROR,{requestBody:Ni(s.body,d["content-type"]),requestMethod:s.method,url:u}));case 58:case"end":return e.stop()}}),e,null,[[3,22],[29,37]])})))}();return Promise.race([p.promise,v])}function Ji(e,t,r){var n=null;if(null!=t){n=Pe(t);var o="string"===typeof e?{url:e}:U(e);if(o.headers)0!==Object.keys(o.headers).filter((function(e){return"content-type"===e.toLowerCase()})).length||(o.headers=U(o.headers),o.headers["content-type"]="application/json");else o.headers={"content-type":"application/json"};e=o}return Ri(e,n,(function(e,t){var n=null;if(null!=e)try{n=JSON.parse(Fe(e))}catch(o){Li.throwError("invalid JSON",M.b.errors.SERVER_ERROR,{body:e,error:o})}return r&&(n=r(n,t)),n}))}function _i(e,t){return t||(t={}),null==(t=U(t)).floor&&(t.floor=0),null==t.ceiling&&(t.ceiling=1e4),null==t.interval&&(t.interval=250),new Promise((function(r,n){var o=null,i=!1,a=function(){return!i&&(i=!0,o&&clearTimeout(o),!0)};t.timeout&&(o=setTimeout((function(){a()&&n(new Error("timeout"))}),t.timeout));var u=t.retryLimit,s=0;!function o(){return e().then((function(e){if(void 0!==e)a()&&r(e);else if(t.oncePoll)t.oncePoll.once("poll",o);else if(t.onceBlock)t.onceBlock.once("block",o);else if(!i){if(++s>u)return void(a()&&n(new Error("retry limit reached")));var l=t.interval*parseInt(String(Math.random()*Math.pow(2,s)));l<t.floor&&(l=t.floor),l>t.ceiling&&(l=t.ceiling),setTimeout(o,l)}return null}),(function(e){a()&&n(e)}))}()}))}var Di=r(26),Ii=r.n(Di),ji=new M.b("providers/5.4.5"),Xi=function(){function e(){Object(y.a)(this,e),ji.checkNew(this instanceof e?this.constructor:void 0,e),this.formats=this.getDefaultFormats()}return Object(k.a)(e,[{key:"getDefaultFormats",value:function(){var t=this,r={},n=this.address.bind(this),o=this.bigNumber.bind(this),i=this.blockTag.bind(this),a=this.data.bind(this),u=this.hash.bind(this),s=this.hex.bind(this),l=this.number.bind(this),c=this.type.bind(this);return r.transaction={hash:u,type:c,accessList:e.allowNull(this.accessList.bind(this),null),blockHash:e.allowNull(u,null),blockNumber:e.allowNull(l,null),transactionIndex:e.allowNull(l,null),confirmations:e.allowNull(l,null),from:n,gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),gasLimit:o,to:e.allowNull(n,null),value:o,nonce:l,data:a,r:e.allowNull(this.uint256),s:e.allowNull(this.uint256),v:e.allowNull(l),creates:e.allowNull(n,null),raw:e.allowNull(a)},r.transactionRequest={from:e.allowNull(n),nonce:e.allowNull(l),gasLimit:e.allowNull(o),gasPrice:e.allowNull(o),maxPriorityFeePerGas:e.allowNull(o),maxFeePerGas:e.allowNull(o),to:e.allowNull(n),value:e.allowNull(o),data:e.allowNull((function(e){return t.data(e,!0)})),type:e.allowNull(l),accessList:e.allowNull(this.accessList.bind(this),null)},r.receiptLog={transactionIndex:l,blockNumber:l,transactionHash:u,address:n,topics:e.arrayOf(u),data:a,logIndex:l,blockHash:u},r.receipt={to:e.allowNull(this.address,null),from:e.allowNull(this.address,null),contractAddress:e.allowNull(n,null),transactionIndex:l,root:e.allowNull(s),gasUsed:o,logsBloom:e.allowNull(a),blockHash:u,transactionHash:u,logs:e.arrayOf(this.receiptLog.bind(this)),blockNumber:l,confirmations:e.allowNull(l,null),cumulativeGasUsed:o,effectiveGasPrice:e.allowNull(o),status:e.allowNull(l),type:c},r.block={hash:u,parentHash:u,number:l,timestamp:l,nonce:e.allowNull(s),difficulty:this.difficulty.bind(this),gasLimit:o,gasUsed:o,miner:n,extraData:a,transactions:e.allowNull(e.arrayOf(u)),baseFeePerGas:e.allowNull(o)},r.blockWithTransactions=U(r.block),r.blockWithTransactions.transactions=e.allowNull(e.arrayOf(this.transactionResponse.bind(this))),r.filter={fromBlock:e.allowNull(i,void 0),toBlock:e.allowNull(i,void 0),blockHash:e.allowNull(u,void 0),address:e.allowNull(n,void 0),topics:e.allowNull(this.topics.bind(this),void 0)},r.filterLog={blockNumber:e.allowNull(l),blockHash:e.allowNull(u),transactionIndex:l,removed:e.allowNull(this.boolean.bind(this)),address:n,data:e.allowFalsish(a,"0x"),topics:e.arrayOf(u),transactionHash:u,logIndex:l},r}},{key:"accessList",value:function(e){return fr(e||[])}},{key:"number",value:function(e){return"0x"===e?0:F.from(e).toNumber()}},{key:"type",value:function(e){return"0x"===e||null==e?0:F.from(e).toNumber()}},{key:"bigNumber",value:function(e){return F.from(e)}},{key:"boolean",value:function(e){if("boolean"===typeof e)return e;if("string"===typeof e){if("true"===(e=e.toLowerCase()))return!0;if("false"===e)return!1}throw new Error("invalid boolean - "+e)}},{key:"hex",value:function(e,t){return"string"===typeof e&&(t||"0x"===e.substring(0,2)||(e="0x"+e),Object(E.l)(e))?e.toLowerCase():ji.throwArgumentError("invalid hash","value",e)}},{key:"data",value:function(e,t){var r=this.hex(e,t);if(r.length%2!==0)throw new Error("invalid data; odd-length - "+e);return r}},{key:"address",value:function(e){return me(e)}},{key:"callAddress",value:function(e){if(!Object(E.l)(e,32))return null;var t=me(Object(E.e)(e,12));return t===ei?null:t}},{key:"contractAddress",value:function(e){return ye(e)}},{key:"blockTag",value:function(e){if(null==e)return"latest";if("earliest"===e)return"0x0";if("latest"===e||"pending"===e)return e;if("number"===typeof e||Object(E.l)(e))return Object(E.g)(e);throw new Error("invalid blockTag")}},{key:"hash",value:function(e,t){var r=this.hex(e,t);return 32!==Object(E.d)(r)?ji.throwArgumentError("invalid hash","value",e):r}},{key:"difficulty",value:function(e){if(null==e)return null;var t=F.from(e);try{return t.toNumber()}catch(r){}return null}},{key:"uint256",value:function(e){if(!Object(E.l)(e))throw new Error("invalid uint256");return Object(E.h)(e,32)}},{key:"_block",value:function(t,r){return null!=t.author&&null==t.miner&&(t.miner=t.author),e.check(r,t)}},{key:"block",value:function(e){return this._block(e,this.formats.block)}},{key:"blockWithTransactions",value:function(e){return this._block(e,this.formats.blockWithTransactions)}},{key:"transactionRequest",value:function(t){return e.check(this.formats.transactionRequest,t)}},{key:"transactionResponse",value:function(t){null!=t.gas&&null==t.gasLimit&&(t.gasLimit=t.gas),t.to&&F.from(t.to).isZero()&&(t.to="0x0000000000000000000000000000000000000000"),null!=t.input&&null==t.data&&(t.data=t.input),null==t.to&&null==t.creates&&(t.creates=this.contractAddress(t)),1!==t.type&&2!==t.type||null!=t.accessList||(t.accessList=[]);var r=e.check(this.formats.transaction,t);if(null!=t.chainId){var n=t.chainId;Object(E.l)(n)&&(n=F.from(n).toNumber()),r.chainId=n}else{var o=t.networkId;null==o&&null==r.v&&(o=t.chainId),Object(E.l)(o)&&(o=F.from(o).toNumber()),"number"!==typeof o&&null!=r.v&&((o=(r.v-35)/2)<0&&(o=0),o=parseInt(o)),"number"!==typeof o&&(o=0),r.chainId=o}return r.blockHash&&"x"===r.blockHash.replace(/0/g,"")&&(r.blockHash=null),r}},{key:"transaction",value:function(e){return gr(e)}},{key:"receiptLog",value:function(t){return e.check(this.formats.receiptLog,t)}},{key:"receipt",value:function(t){var r=e.check(this.formats.receipt,t);if(null!=r.root)if(r.root.length<=4){var n=F.from(r.root).toNumber();0===n||1===n?(null!=r.status&&r.status!==n&&ji.throwArgumentError("alt-root-status/status mismatch","value",{root:r.root,status:r.status}),r.status=n,delete r.root):ji.throwArgumentError("invalid alt-root-status","value.root",r.root)}else 66!==r.root.length&&ji.throwArgumentError("invalid root hash","value.root",r.root);return null!=r.status&&(r.byzantium=!0),r}},{key:"topics",value:function(e){var t=this;return Array.isArray(e)?e.map((function(e){return t.topics(e)})):null!=e?this.hash(e,!0):null}},{key:"filter",value:function(t){return e.check(this.formats.filter,t)}},{key:"filterLog",value:function(t){return e.check(this.formats.filterLog,t)}}],[{key:"check",value:function(e,t){var r={};for(var n in e)try{var o=e[n](t[n]);void 0!==o&&(r[n]=o)}catch(i){throw i.checkKey=n,i.checkValue=t[n],i}return r}},{key:"allowNull",value:function(e,t){return function(r){return null==r?t:e(r)}}},{key:"allowFalsish",value:function(e,t){return function(r){return r?e(r):t}}},{key:"arrayOf",value:function(e){return function(t){if(!Array.isArray(t))throw new Error("not an array");var r=[];return t.forEach((function(t){r.push(e(t))})),r}}}]),e}();function Ui(e){return e&&"function"===typeof e.isCommunityResource}function Hi(e){return Ui(e)&&e.isCommunityResource()}var Gi=!1;function zi(){Gi||(Gi=!0,console.log("========= NOTICE ========="),console.log("Request-Rate Exceeded  (this message will not be repeated)"),console.log(""),console.log("The default API keys for each service are provided as a highly-throttled,"),console.log("community resource for low-traffic projects and early prototyping."),console.log(""),console.log("While your application will continue to function, we highly recommended"),console.log("signing up for your own API keys to improve performance, increase your"),console.log("request rate/limit and enable other perks, such as metrics and advanced APIs."),console.log(""),console.log("For more details: https://docs.ethers.io/api-keys/"),console.log("=========================="))}var Vi=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Zi=new M.b("providers/5.4.5");function Ki(e){return null==e?"null":(32!==Object(E.d)(e)&&Zi.throwArgumentError("invalid topic","topic",e),e.toLowerCase())}function Qi(e){for(e=e.slice();e.length>0&&null==e[e.length-1];)e.pop();return e.map((function(e){if(Array.isArray(e)){var t={};e.forEach((function(e){t[Ki(e)]=!0}));var r=Object.keys(t);return r.sort(),r.join("|")}return Ki(e)})).join("&")}function qi(e){if("string"===typeof e){if(e=e.toLowerCase(),32===Object(E.d)(e))return"tx:"+e;if(-1===e.indexOf(":"))return e}else{if(Array.isArray(e))return"filter:*:"+Qi(e);if(jt.isForkEvent(e))throw Zi.warn("not implemented"),new Error("not implemented");if(e&&"object"===typeof e)return"filter:"+(e.address||"*")+":"+Qi(e.topics||[])}throw new Error("invalid event - "+e)}function Wi(){return(new Date).getTime()}function Yi(e){return new Promise((function(t){setTimeout(t,e)}))}var $i=["block","network","pending","poll"],ea=function(){function e(t,r,n){Object(y.a)(this,e),D(this,"tag",t),D(this,"listener",r),D(this,"once",n)}return Object(k.a)(e,[{key:"event",get:function(){switch(this.type){case"tx":return this.hash;case"filter":return this.filter}return this.tag}},{key:"type",get:function(){return this.tag.split(":")[0]}},{key:"hash",get:function(){var e=this.tag.split(":");return"tx"!==e[0]?null:e[1]}},{key:"filter",get:function(){var e=this.tag.split(":");if("filter"!==e[0])return null;var t,r=e[1],n=""===(t=e[2])?[]:t.split(/&/g).map((function(e){if(""===e)return[];var t=e.split("|").map((function(e){return"null"===e?null:e}));return 1===t.length?t[0]:t})),o={};return n.length>0&&(o.topics=n),r&&"*"!==r&&(o.address=r),o}},{key:"pollable",value:function(){return this.tag.indexOf(":")>=0||$i.indexOf(this.tag)>=0}}]),e}(),ta={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 ra(e){return Object(E.h)(F.from(e).toHexString(),32)}function na(e){return dn.encode(Object(E.b)([e,Object(E.e)(bn(bn(e)),0,4)]))}var oa=function(){function e(t,r,n){Object(y.a)(this,e),D(this,"provider",t),D(this,"name",n),D(this,"address",t.formatter.address(r))}return Object(k.a)(e,[{key:"_fetchBytes",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o,i,a;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return n={to:this.address,data:Object(E.c)([e,Mi(this.name),t||"0x"])},r.prev=1,r.next=4,this.provider.call(n);case 4:if("0x"!==(o=r.sent)){r.next=7;break}return r.abrupt("return",null);case 7:return i=F.from(Object(E.e)(o,0,32)).toNumber(),a=F.from(Object(E.e)(o,i,i+32)).toNumber(),r.abrupt("return",Object(E.e)(o,i+32,i+32+a));case 12:if(r.prev=12,r.t0=r.catch(1),r.t0.code!==M.b.errors.CALL_EXCEPTION){r.next=16;break}return r.abrupt("return",null);case 16:return r.abrupt("return",null);case 17:case"end":return r.stop()}}),r,this,[[1,12]])})))}},{key:"_getAddress",value:function(e,t){var r=ta[String(e)];if(null==r&&Zi.throwError("unsupported coin type: ".concat(e),M.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")")}),"eth"===r.ilk)return this.provider.formatter.address(t);var n=Object(E.a)(t);if(null!=r.p2pkh){var o=t.match(/^0x76a9([0-9a-f][0-9a-f])([0-9a-f]*)88ac$/);if(o){var i=parseInt(o[1],16);if(o[2].length===2*i&&i>=1&&i<=75)return na(Object(E.b)([[r.p2pkh],"0x"+o[2]]))}}if(null!=r.p2sh){var a=t.match(/^0xa9([0-9a-f][0-9a-f])([0-9a-f]*)87$/);if(a){var u=parseInt(a[1],16);if(a[2].length===2*u&&u>=1&&u<=75)return na(Object(E.b)([[r.p2sh],"0x"+a[2]]))}}if(null!=r.prefix){var s=n[1],l=n[0];if(0===l?20!==s&&32!==s&&(l=-1):l=-1,l>=0&&n.length===2+s&&s>=1&&s<=75){var c=Ii.a.toWords(n.slice(2));return c.unshift(l),Ii.a.encode(r.prefix,c)}}return null}},{key:"getAddress",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n,o,i;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null==e&&(e=60),60!==e){t.next=17;break}return t.prev=2,r={to:this.address,data:"0x3b3b57de"+Mi(this.name).substring(2)},t.next=6,this.provider.call(r);case 6:if("0x"!==(n=t.sent)&&n!==ti){t.next=9;break}return t.abrupt("return",null);case 9:return t.abrupt("return",this.provider.formatter.callAddress(n));case 12:if(t.prev=12,t.t0=t.catch(2),t.t0.code!==M.b.errors.CALL_EXCEPTION){t.next=16;break}return t.abrupt("return",null);case 16:throw t.t0;case 17:return t.next=19,this._fetchBytes("0xf1cb7e06",ra(e));case 19:if(null!=(o=t.sent)&&"0x"!==o){t.next=22;break}return t.abrupt("return",null);case 22:return null==(i=this._getAddress(e,o))&&Zi.throwError("invalid or unsupported coin data",M.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress(".concat(e,")"),coinType:e,data:o}),t.abrupt("return",i);case 25:case"end":return t.stop()}}),t,this,[[2,12]])})))}},{key:"getContentHash",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){var t,r,n,o;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._fetchBytes("0xbc1c58d1");case 2:if(null!=(t=e.sent)&&"0x"!==t){e.next=5;break}return e.abrupt("return",null);case 5:if(!(r=t.match(/^0xe3010170(([0-9a-f][0-9a-f])([0-9a-f][0-9a-f])([0-9a-f]*))$/))){e.next=10;break}if(n=parseInt(r[3],16),r[4].length!==2*n){e.next=10;break}return e.abrupt("return","ipfs://"+dn.encode("0x"+r[1]));case 10:if(!(o=t.match(/^0xe40101fa011b20([0-9a-f]*)$/))){e.next=14;break}if(64!==o[1].length){e.next=14;break}return e.abrupt("return","bzz://"+o[1]);case 14:return e.abrupt("return",Zi.throwError("invalid or unsupported content hash data",M.b.errors.UNSUPPORTED_OPERATION,{operation:"getContentHash()",data:t}));case 15:case"end":return e.stop()}}),e,this)})))}},{key:"getText",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=Pe(e),(r=Object(E.b)([ra(64),ra(r.length),r])).length%32!==0&&(r=Object(E.b)([r,Object(E.h)("0x",32-e.length%32)])),t.next=5,this._fetchBytes("0x59d1d43c",Object(E.i)(r));case 5:if(null!=(n=t.sent)&&"0x"!==n){t.next=8;break}return t.abrupt("return",null);case 8:return t.abrupt("return",Fe(n));case 9:case"end":return t.stop()}}),t,this)})))}}]),e}(),ia=null,aa=1,ua=function(e){p(r,e);var t=b(r);function r(e){var n;if(Object(y.a)(this,r),Zi.checkNew(this instanceof r?this.constructor:void 0,Xt),(n=t.call(this))._events=[],n._emitted={block:-2},n.formatter=(this instanceof r?this.constructor:void 0).getFormatter(),D(c(n),"anyNetwork","any"===e),n.anyNetwork&&(e=n.detectNetwork()),e instanceof Promise)n._networkPromise=e,e.catch((function(e){})),n._ready().catch((function(e){}));else{var o=I(this instanceof r?this.constructor:void 0,"getNetwork")(e);o?(D(c(n),"_network",o),n.emit("network",o,null)):Zi.throwArgumentError("invalid network","network",e)}return n._maxInternalBlockNumber=-1024,n._lastBlockNumber=-2,n._pollingInterval=4e3,n._fastQueryDate=0,n}return Object(k.a)(r,[{key:"_ready",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=this._network){e.next=17;break}if(t=null,!this._networkPromise){e.next=11;break}return e.prev=3,e.next=6,this._networkPromise;case 6:t=e.sent,e.next=11;break;case 9:e.prev=9,e.t0=e.catch(3);case 11:if(null!=t){e.next=15;break}return e.next=14,this.detectNetwork();case 14:t=e.sent;case 15:t||Zi.throwError("no network detected",M.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(this.anyNetwork?this._network=t:D(this,"_network",t),this.emit("network",t,null));case 17:return e.abrupt("return",this._network);case 18:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"ready",get:function(){var e=this;return _i((function(){return e._ready().then((function(e){return e}),(function(e){if(e.code!==M.b.errors.NETWORK_ERROR||"noNetwork"!==e.event)throw e}))}))}},{key:"_getInternalBlockNumber",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n,o,i,a=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this._ready();case 2:if(!(e>0)){t.next=20;break}case 3:if(!this._internalBlockNumber){t.next=20;break}return r=this._internalBlockNumber,t.prev=5,t.next=8,r;case 8:if(n=t.sent,!(Wi()-n.respTime<=e)){t.next=11;break}return t.abrupt("return",n.blockNumber);case 11:return t.abrupt("break",20);case 14:if(t.prev=14,t.t0=t.catch(5),this._internalBlockNumber!==r){t.next=18;break}return t.abrupt("break",20);case 18:t.next=3;break;case 20:return o=Wi(),i=j({blockNumber:this.perform("getBlockNumber",{}),networkError:this.getNetwork().then((function(e){return null}),(function(e){return e}))}).then((function(e){var t=e.blockNumber,r=e.networkError;if(r)throw a._internalBlockNumber===i&&(a._internalBlockNumber=null),r;var n=Wi();return(t=F.from(t).toNumber())<a._maxInternalBlockNumber&&(t=a._maxInternalBlockNumber),a._maxInternalBlockNumber=t,a._setFastBlockNumber(t),{blockNumber:t,reqTime:o,respTime:n}})),this._internalBlockNumber=i,i.catch((function(e){a._internalBlockNumber===i&&(a._internalBlockNumber=null)})),t.next=26,i;case 26:return t.abrupt("return",t.sent.blockNumber);case 27:case"end":return t.stop()}}),t,this,[[5,14]])})))}},{key:"poll",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){var t,r,n,o,i=this;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=aa++,r=[],n=null,e.prev=3,e.next=6,this._getInternalBlockNumber(100+this.pollingInterval/2);case 6:n=e.sent,e.next=13;break;case 9:return e.prev=9,e.t0=e.catch(3),this.emit("error",e.t0),e.abrupt("return");case 13:if(this._setFastBlockNumber(n),this.emit("poll",t,n),n!==this._lastBlockNumber){e.next=18;break}return this.emit("didPoll",t),e.abrupt("return");case 18:if(-2===this._emitted.block&&(this._emitted.block=n-1),Math.abs(this._emitted.block-n)>1e3)Zi.warn("network block skew detected; skipping block events (emitted=".concat(this._emitted.block," blockNumber").concat(n,")")),this.emit("error",Zi.makeError("network block skew detected",M.b.errors.NETWORK_ERROR,{blockNumber:n,event:"blockSkew",previousBlockNumber:this._emitted.block})),this.emit("block",n);else for(o=this._emitted.block+1;o<=n;o++)this.emit("block",o);return this._emitted.block!==n&&(this._emitted.block=n,Object.keys(this._emitted).forEach((function(e){if("block"!==e){var t=i._emitted[e];"pending"!==t&&n-t>12&&delete i._emitted[e]}}))),-2===this._lastBlockNumber&&(this._lastBlockNumber=n-1),this._events.forEach((function(e){switch(e.type){case"tx":var t=e.hash,o=i.getTransactionReceipt(t).then((function(e){return e&&null!=e.blockNumber?(i._emitted["t:"+t]=e.blockNumber,i.emit(t,e),null):null})).catch((function(e){i.emit("error",e)}));r.push(o);break;case"filter":var a=e.filter;a.fromBlock=i._lastBlockNumber+1,a.toBlock=n;var u=i.getLogs(a).then((function(e){0!==e.length&&e.forEach((function(e){i._emitted["b:"+e.blockHash]=e.blockNumber,i._emitted["t:"+e.transactionHash]=e.blockNumber,i.emit(a,e)}))})).catch((function(e){i.emit("error",e)}));r.push(u)}})),this._lastBlockNumber=n,Promise.all(r).then((function(){i.emit("didPoll",t)})).catch((function(e){i.emit("error",e)})),e.abrupt("return");case 26:case"end":return e.stop()}}),e,this,[[3,9]])})))}},{key:"resetEventsBlock",value:function(e){this._lastBlockNumber=e-1,this.polling&&this.poll()}},{key:"network",get:function(){return this._network}},{key:"detectNetwork",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Zi.throwError("provider does not support network detection",M.b.errors.UNSUPPORTED_OPERATION,{operation:"provider.detectNetwork"}));case 1:case"end":return e.stop()}}),e)})))}},{key:"getNetwork",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){var t,r,n;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this._ready();case 2:return t=e.sent,e.next=5,this.detectNetwork();case 5:if(r=e.sent,t.chainId===r.chainId){e.next=23;break}if(!this.anyNetwork){e.next=20;break}return this._network=r,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",r,t),e.next=19,Yi(0);case 19:return e.abrupt("return",this._network);case 20:throw n=Zi.makeError("underlying network changed",M.b.errors.NETWORK_ERROR,{event:"changed",network:t,detectedNetwork:r}),this.emit("error",n),n;case 23:return e.abrupt("return",t);case 24:case"end":return e.stop()}}),e,this)})))}},{key:"blockNumber",get:function(){var e=this;return this._getInternalBlockNumber(100+this.pollingInterval/2).then((function(t){e._setFastBlockNumber(t)}),(function(e){})),null!=this._fastBlockNumber?this._fastBlockNumber:-1}},{key:"polling",get:function(){return null!=this._poller},set:function(e){var t=this;e&&!this._poller?(this._poller=setInterval((function(){t.poll()}),this.pollingInterval),this._bootstrapPoll||(this._bootstrapPoll=setTimeout((function(){t.poll(),t._bootstrapPoll=setTimeout((function(){t._poller||t.poll(),t._bootstrapPoll=null}),t.pollingInterval)}),0))):!e&&this._poller&&(clearInterval(this._poller),this._poller=null)}},{key:"pollingInterval",get:function(){return this._pollingInterval},set:function(e){var t=this;if("number"!==typeof e||e<=0||parseInt(String(e))!=e)throw new Error("invalid polling interval");this._pollingInterval=e,this._poller&&(clearInterval(this._poller),this._poller=setInterval((function(){t.poll()}),this._pollingInterval))}},{key:"_getFastBlockNumber",value:function(){var e=this,t=Wi();return t-this._fastQueryDate>2*this._pollingInterval&&(this._fastQueryDate=t,this._fastBlockNumberPromise=this.getBlockNumber().then((function(t){return(null==e._fastBlockNumber||t>e._fastBlockNumber)&&(e._fastBlockNumber=t),e._fastBlockNumber}))),this._fastBlockNumberPromise}},{key:"_setFastBlockNumber",value:function(e){null!=this._fastBlockNumber&&e<this._fastBlockNumber||(this._fastQueryDate=Wi(),(null==this._fastBlockNumber||e>this._fastBlockNumber)&&(this._fastBlockNumber=e,this._fastBlockNumberPromise=Promise.resolve(e)))}},{key:"waitForTransaction",value:function(e,t,r){return Vi(this,void 0,void 0,T.a.mark((function n(){return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.abrupt("return",this._waitForTransaction(e,null==t?1:t,r||0,null));case 1:case"end":return n.stop()}}),n,this)})))}},{key:"_waitForTransaction",value:function(e,t,r,n){return Vi(this,void 0,void 0,T.a.mark((function o(){var i,a=this;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,this.getTransactionReceipt(e);case 2:if(!(((i=o.sent)?i.confirmations:0)>=t)){o.next=5;break}return o.abrupt("return",i);case 5:return o.abrupt("return",new Promise((function(o,i){var u=[],s=!1,l=function(){return!!s||(s=!0,u.forEach((function(e){e()})),!1)},c=function(e){e.confirmations<t||l()||o(e)};if(a.on(e,c),u.push((function(){a.removeListener(e,c)})),n){var f=n.startBlock,h=null,d=function r(o){return Vi(a,void 0,void 0,T.a.mark((function a(){var u=this;return T.a.wrap((function(a){for(;;)switch(a.prev=a.next){case 0:if(!s){a.next=2;break}return a.abrupt("return");case 2:return a.next=4,Yi(1e3);case 4:this.getTransactionCount(n.from).then((function(a){return Vi(u,void 0,void 0,T.a.mark((function u(){var c,d,p,v,m,g;return T.a.wrap((function(u){for(;;)switch(u.prev=u.next){case 0:if(!s){u.next=2;break}return u.abrupt("return");case 2:if(!(a<=n.nonce)){u.next=6;break}f=o,u.next=41;break;case 6:return u.next=8,this.getTransaction(e);case 8:if(!(c=u.sent)||null==c.blockNumber){u.next=11;break}return u.abrupt("return");case 11:null==h&&(h=f-3)<n.startBlock&&(h=n.startBlock);case 12:if(!(h<=o)){u.next=41;break}if(!s){u.next=15;break}return u.abrupt("return");case 15:return u.next=17,this.getBlockWithTransactions(h);case 17:d=u.sent,p=0;case 19:if(!(p<d.transactions.length)){u.next=38;break}if((v=d.transactions[p]).hash!==e){u.next=23;break}return u.abrupt("return");case 23:if(v.from!==n.from||v.nonce!==n.nonce){u.next=35;break}if(!s){u.next=26;break}return u.abrupt("return");case 26:return u.next=28,this.waitForTransaction(v.hash,t);case 28:if(m=u.sent,!l()){u.next=31;break}return u.abrupt("return");case 31:return g="replaced",v.data===n.data&&v.to===n.to&&v.value.eq(n.value)?g="repriced":"0x"===v.data&&v.from===v.to&&v.value.isZero()&&(g="cancelled"),i(Zi.makeError("transaction was replaced",M.b.errors.TRANSACTION_REPLACED,{cancelled:"replaced"===g||"cancelled"===g,reason:g,replacement:this._wrapTransaction(v),hash:e,receipt:m})),u.abrupt("return");case 35:p++,u.next=19;break;case 38:h++,u.next=12;break;case 41:if(!s){u.next=43;break}return u.abrupt("return");case 43:this.once("block",r);case 44:case"end":return u.stop()}}),u,this)})))}),(function(e){s||u.once("block",r)}));case 5:case"end":return a.stop()}}),a,this)})))};if(s)return;a.once("block",d),u.push((function(){a.removeListener("block",d)}))}if("number"===typeof r&&r>0){var p=setTimeout((function(){l()||i(Zi.makeError("timeout exceeded",M.b.errors.TIMEOUT,{timeout:r}))}),r);p.unref&&p.unref(),u.push((function(){clearTimeout(p)}))}})));case 6:case"end":return o.stop()}}),o,this)})))}},{key:"getBlockNumber",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._getInternalBlockNumber(0));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"getGasPrice",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.next=4,this.perform("getGasPrice",{});case 4:return t=e.sent,e.prev=5,e.abrupt("return",F.from(t));case 9:return e.prev=9,e.t0=e.catch(5),e.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"getGasPrice",result:t,error:e.t0}));case 12:case"end":return e.stop()}}),e,this,[[5,9]])})))}},{key:"getBalance",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getBalance",n);case 7:return o=r.sent,r.prev=8,r.abrupt("return",F.from(o));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"getBalance",params:n,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getTransactionCount",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getTransactionCount",n);case 7:return o=r.sent,r.prev=8,r.abrupt("return",F.from(o).toNumber());case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"getTransactionCount",params:n,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getCode",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("getCode",n);case 7:return o=r.sent,r.prev=8,r.abrupt("return",Object(E.i)(o));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"getCode",params:n,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"getStorageAt",value:function(e,t,r){return Vi(this,void 0,void 0,T.a.mark((function n(){var o,i;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.getNetwork();case 2:return n.next=4,j({address:this._getAddress(e),blockTag:this._getBlockTag(r),position:Promise.resolve(t).then((function(e){return Object(E.g)(e)}))});case 4:return o=n.sent,n.next=7,this.perform("getStorageAt",o);case 7:return i=n.sent,n.prev=8,n.abrupt("return",Object(E.i)(i));case 12:return n.prev=12,n.t0=n.catch(8),n.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"getStorageAt",params:o,result:i,error:n.t0}));case 15:case"end":return n.stop()}}),n,this,[[8,12]])})))}},{key:"_wrapTransaction",value:function(e,t,r){var n=this;if(null!=t&&32!==Object(E.d)(t))throw new Error("invalid response - sendTransaction");var o=e;return null!=t&&e.hash!==t&&Zi.throwError("Transaction hash mismatch from Provider.sendTransaction.",M.b.errors.UNKNOWN_ERROR,{expectedHash:e.hash,returnedHash:t}),o.wait=function(t,o){return Vi(n,void 0,void 0,T.a.mark((function n(){var i,a;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==t&&(t=1),null==o&&(o=0),i=void 0,0!==t&&null!=r&&(i={data:e.data,from:e.from,nonce:e.nonce,to:e.to,value:e.value,startBlock:r}),n.next=6,this._waitForTransaction(e.hash,t,o,i);case 6:if(null!=(a=n.sent)||0!==t){n.next=9;break}return n.abrupt("return",null);case 9:return this._emitted["t:"+e.hash]=a.blockNumber,0===a.status&&Zi.throwError("transaction failed",M.b.errors.CALL_EXCEPTION,{transactionHash:e.hash,transaction:e,receipt:a}),n.abrupt("return",a);case 12:case"end":return n.stop()}}),n,this)})))},o}},{key:"sendTransaction",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n,o,i;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,Promise.resolve(e).then((function(e){return Object(E.i)(e)}));case 4:return r=t.sent,null==(n=this.formatter.transaction(e)).confirmations&&(n.confirmations=0),t.next=9,this._getInternalBlockNumber(100+2*this.pollingInterval);case 9:return o=t.sent,t.prev=10,t.next=13,this.perform("sendTransaction",{signedTransaction:r});case 13:return i=t.sent,t.abrupt("return",this._wrapTransaction(n,i,o));case 17:throw t.prev=17,t.t0=t.catch(10),t.t0.transaction=n,t.t0.transactionHash=n.hash,t.t0;case 22:case"end":return t.stop()}}),t,this,[[10,17]])})))}},{key:"_getTransactionRequest",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n,o=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return r=t.sent,n={},["from","to"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?o._getAddress(e):null})))})),["gasLimit","gasPrice","maxFeePerGas","maxPriorityFeePerGas","value"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?F.from(e):null})))})),["type"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return null!=e?e:null})))})),r.accessList&&(n.accessList=this.formatter.accessList(r.accessList)),["data"].forEach((function(e){null!=r[e]&&(n[e]=Promise.resolve(r[e]).then((function(e){return e?Object(E.i)(e):null})))})),t.t0=this.formatter,t.next=12,j(n);case 12:return t.t1=t.sent,t.abrupt("return",t.t0.transactionRequest.call(t.t0,t.t1));case 14:case"end":return t.stop()}}),t,this)})))}},{key:"_getFilter",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,r={},null!=e.address&&(r.address=this._getAddress(e.address)),["blockHash","topics"].forEach((function(t){null!=e[t]&&(r[t]=e[t])})),["fromBlock","toBlock"].forEach((function(t){null!=e[t]&&(r[t]=n._getBlockTag(e[t]))})),t.t0=this.formatter,t.next=10,j(r);case 10:return t.t1=t.sent,t.abrupt("return",t.t0.filter.call(t.t0,t.t1));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"call",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,j({transaction:this._getTransactionRequest(e),blockTag:this._getBlockTag(t)});case 4:return n=r.sent,r.next=7,this.perform("call",n);case 7:return o=r.sent,r.prev=8,r.abrupt("return",Object(E.i)(o));case 12:return r.prev=12,r.t0=r.catch(8),r.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"call",params:n,result:o,error:r.t0}));case 15:case"end":return r.stop()}}),r,this,[[8,12]])})))}},{key:"estimateGas",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,j({transaction:this._getTransactionRequest(e)});case 4:return r=t.sent,t.next=7,this.perform("estimateGas",r);case 7:return n=t.sent,t.prev=8,t.abrupt("return",F.from(n));case 12:return t.prev=12,t.t0=t.catch(8),t.abrupt("return",Zi.throwError("bad result from backend",M.b.errors.SERVER_ERROR,{method:"estimateGas",params:r,result:n,error:t.t0}));case 15:case"end":return t.stop()}}),t,this,[[8,12]])})))}},{key:"_getAddress",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.resolveName(e);case 2:return null==(r=t.sent)&&Zi.throwError("ENS name not configured",M.b.errors.UNSUPPORTED_OPERATION,{operation:"resolveName(".concat(JSON.stringify(e),")")}),t.abrupt("return",r);case 5:case"end":return t.stop()}}),t,this)})))}},{key:"_getBlock",value:function(e,t){return Vi(this,void 0,void 0,T.a.mark((function r(){var n,o,i=this;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.next=2,this.getNetwork();case 2:return r.next=4,e;case 4:if(e=r.sent,n=-128,o={includeTransactions:!!t},!Object(E.l)(e,32)){r.next=11;break}o.blockHash=e,r.next=23;break;case 11:return r.prev=11,r.t0=this.formatter,r.next=15,this._getBlockTag(e);case 15:r.t1=r.sent,o.blockTag=r.t0.blockTag.call(r.t0,r.t1),Object(E.l)(o.blockTag)&&(n=parseInt(o.blockTag.substring(2),16)),r.next=23;break;case 20:r.prev=20,r.t2=r.catch(11),Zi.throwArgumentError("invalid block hash or block tag","blockHashOrBlockTag",e);case 23:return r.abrupt("return",_i((function(){return Vi(i,void 0,void 0,T.a.mark((function e(){var r,i,a,u,s,l,c=this;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.perform("getBlock",o);case 2:if(null!=(r=e.sent)){e.next=11;break}if(null==o.blockHash){e.next=7;break}if(null!=this._emitted["b:"+o.blockHash]){e.next=7;break}return e.abrupt("return",null);case 7:if(null==o.blockTag){e.next=10;break}if(!(n>this._emitted.block)){e.next=10;break}return e.abrupt("return",null);case 10:return e.abrupt("return",void 0);case 11:if(!t){e.next=34;break}i=null,a=0;case 14:if(!(a<r.transactions.length)){e.next=31;break}if(null!=(u=r.transactions[a]).blockNumber){e.next=20;break}u.confirmations=0,e.next=28;break;case 20:if(null!=u.confirmations){e.next=28;break}if(null!=i){e.next=25;break}return e.next=24,this._getInternalBlockNumber(100+2*this.pollingInterval);case 24:i=e.sent;case 25:(s=i-u.blockNumber+1)<=0&&(s=1),u.confirmations=s;case 28:a++,e.next=14;break;case 31:return(l=this.formatter.blockWithTransactions(r)).transactions=l.transactions.map((function(e){return c._wrapTransaction(e)})),e.abrupt("return",l);case 34:return e.abrupt("return",this.formatter.block(r));case 35:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this}));case 24:case"end":return r.stop()}}),r,this,[[11,20]])})))}},{key:"getBlock",value:function(e){return this._getBlock(e,!1)}},{key:"getBlockWithTransactions",value:function(e){return this._getBlock(e,!0)}},{key:"getTransaction",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",_i((function(){return Vi(n,void 0,void 0,T.a.mark((function t(){var n,o,i,a;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransaction",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=(o=this.formatter.transactionResponse(n)).blockNumber){t.next=12;break}o.confirmations=0,t.next=19;break;case 12:if(null!=o.confirmations){t.next=19;break}return t.next=15,this._getInternalBlockNumber(100+2*this.pollingInterval);case 15:i=t.sent,(a=i-o.blockNumber+1)<=0&&(a=1),o.confirmations=a;case 19:return t.abrupt("return",this._wrapTransaction(o));case 20:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getTransactionReceipt",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,e;case 4:return e=t.sent,r={transactionHash:this.formatter.hash(e,!0)},t.abrupt("return",_i((function(){return Vi(n,void 0,void 0,T.a.mark((function t(){var n,o,i,a;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.perform("getTransactionReceipt",r);case 2:if(null!=(n=t.sent)){t.next=7;break}if(null!=this._emitted["t:"+e]){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",void 0);case 7:if(null!=n.blockHash){t.next=9;break}return t.abrupt("return",void 0);case 9:if(null!=(o=this.formatter.receipt(n)).blockNumber){t.next=14;break}o.confirmations=0,t.next=21;break;case 14:if(null!=o.confirmations){t.next=21;break}return t.next=17,this._getInternalBlockNumber(100+2*this.pollingInterval);case 17:i=t.sent,(a=i-o.blockNumber+1)<=0&&(a=1),o.confirmations=a;case 21:return t.abrupt("return",o);case 22:case"end":return t.stop()}}),t,this)})))}),{oncePoll:this}));case 7:case"end":return t.stop()}}),t,this)})))}},{key:"getLogs",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return t.next=4,j({filter:this._getFilter(e)});case 4:return r=t.sent,t.next=7,this.perform("getLogs",r);case 7:return(n=t.sent).forEach((function(e){null==e.removed&&(e.removed=!1)})),t.abrupt("return",Xi.arrayOf(this.formatter.filterLog.bind(this.formatter))(n));case 10:case"end":return t.stop()}}),t,this)})))}},{key:"getEtherPrice",value:function(){return Vi(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.getNetwork();case 2:return e.abrupt("return",this.perform("getEtherPrice",{}));case 3:case"end":return e.stop()}}),e,this)})))}},{key:"_getBlockTag",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:if(!("number"===typeof(e=t.sent)&&e<0)){t.next=11;break}return e%1&&Zi.throwArgumentError("invalid BlockTag","blockTag",e),t.next=7,this._getInternalBlockNumber(100+2*this.pollingInterval);case 7:return r=t.sent,(r+=e)<0&&(r=0),t.abrupt("return",this.formatter.blockTag(r));case 11:return t.abrupt("return",this.formatter.blockTag(e));case 12:case"end":return t.stop()}}),t,this)})))}},{key:"getResolver",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,t.next=3,this._getResolver(e);case 3:if(null!=(r=t.sent)){t.next=6;break}return t.abrupt("return",null);case 6:return t.abrupt("return",new oa(this,r,e));case 9:if(t.prev=9,t.t0=t.catch(0),t.t0.code!==M.b.errors.CALL_EXCEPTION){t.next=13;break}return t.abrupt("return",null);case 13:return t.abrupt("return",null);case 14:case"end":return t.stop()}}),t,this,[[0,9]])})))}},{key:"_getResolver",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.getNetwork();case 2:return(r=t.sent).ensAddress||Zi.throwError("network does not support ENS",M.b.errors.UNSUPPORTED_OPERATION,{operation:"ENS",network:r.name}),n={to:r.ensAddress,data:"0x0178b8bf"+Mi(e).substring(2)},t.prev=5,t.t0=this.formatter,t.next=9,this.call(n);case 9:return t.t1=t.sent,t.abrupt("return",t.t0.callAddress.call(t.t0,t.t1));case 13:if(t.prev=13,t.t2=t.catch(5),t.t2.code!==M.b.errors.CALL_EXCEPTION){t.next=17;break}return t.abrupt("return",null);case 17:throw t.t2;case 18:case"end":return t.stop()}}),t,this,[[5,13]])})))}},{key:"resolveName",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,t.prev=3,t.abrupt("return",Promise.resolve(this.formatter.address(e)));case 7:if(t.prev=7,t.t0=t.catch(3),!Object(E.l)(e)){t.next=11;break}throw t.t0;case 11:return"string"!==typeof e&&Zi.throwArgumentError("invalid ENS name","name",e),t.next=14,this.getResolver(e);case 14:if(r=t.sent){t.next=17;break}return t.abrupt("return",null);case 17:return t.next=19,r.getAddress();case 19:return t.abrupt("return",t.sent);case 20:case"end":return t.stop()}}),t,this,[[3,7]])})))}},{key:"lookupAddress",value:function(e){return Vi(this,void 0,void 0,T.a.mark((function t(){var r,n,o,i,a;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,e;case 2:return e=t.sent,e=this.formatter.address(e),r=e.substring(2).toLowerCase()+".addr.reverse",t.next=7,this._getResolver(r);case 7:if(n=t.sent){t.next=10;break}return t.abrupt("return",null);case 10:return t.t0=E.a,t.next=13,this.call({to:n,data:"0x691f3431"+Mi(r).substring(2)});case 13:if(t.t1=t.sent,!((o=(0,t.t0)(t.t1)).length<32)&&F.from(o.slice(0,32)).eq(32)){t.next=17;break}return t.abrupt("return",null);case 17:if(!((o=o.slice(32)).length<32)){t.next=20;break}return t.abrupt("return",null);case 20:if(i=F.from(o.slice(0,32)).toNumber(),o=o.slice(32),!(i>o.length)){t.next=24;break}return t.abrupt("return",null);case 24:return a=Fe(o.slice(0,i)),t.next=27,this.resolveName(a);case 27:if(t.sent==e){t.next=30;break}return t.abrupt("return",null);case 30:return t.abrupt("return",a);case 31:case"end":return t.stop()}}),t,this)})))}},{key:"perform",value:function(e,t){return Zi.throwError(e+" not implemented",M.b.errors.NOT_IMPLEMENTED,{operation:e})}},{key:"_startEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_stopEvent",value:function(e){this.polling=this._events.filter((function(e){return e.pollable()})).length>0}},{key:"_addEventListener",value:function(e,t,r){var n=new ea(qi(e),t,r);return this._events.push(n),this._startEvent(n),this}},{key:"on",value:function(e,t){return this._addEventListener(e,t,!1)}},{key:"once",value:function(e,t){return this._addEventListener(e,t,!0)}},{key:"emit",value:function(e){for(var t=this,r=arguments.length,n=new Array(r>1?r-1:0),o=1;o<r;o++)n[o-1]=arguments[o];var i=!1,a=[],u=qi(e);return this._events=this._events.filter((function(e){return e.tag!==u||(setTimeout((function(){e.listener.apply(t,n)}),0),i=!0,!e.once||(a.push(e),!1))})),a.forEach((function(e){t._stopEvent(e)})),i}},{key:"listenerCount",value:function(e){if(!e)return this._events.length;var t=qi(e);return this._events.filter((function(e){return e.tag===t})).length}},{key:"listeners",value:function(e){if(null==e)return this._events.map((function(e){return e.listener}));var t=qi(e);return this._events.filter((function(e){return e.tag===t})).map((function(e){return e.listener}))}},{key:"off",value:function(e,t){var r=this;if(null==t)return this.removeAllListeners(e);var n=[],o=!1,i=qi(e);return this._events=this._events.filter((function(e){return e.tag!==i||e.listener!=t||(!!o||(o=!0,n.push(e),!1))})),n.forEach((function(e){r._stopEvent(e)})),this}},{key:"removeAllListeners",value:function(e){var t=this,r=[];if(null==e)r=this._events,this._events=[];else{var n=qi(e);this._events=this._events.filter((function(e){return e.tag!==n||(r.push(e),!1)}))}return r.forEach((function(e){t._stopEvent(e)})),this}}],[{key:"getFormatter",value:function(){return null==ia&&(ia=new Xi),ia}},{key:"getNetwork",value:function(e){return ci(null==e?"homestead":e)}}]),r}(Xt),sa=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},la=new M.b("providers/5.4.5"),ca=["call","estimateGas"];function fa(e,t,r){if("call"===e&&t.code===M.b.errors.SERVER_ERROR){var n=t.error;if(n&&n.message.match("reverted")&&Object(E.l)(n.data))return n.data;la.throwError("missing revert data in call exception",M.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}var o=t.message;t.code===M.b.errors.SERVER_ERROR&&t.error&&"string"===typeof t.error.message?o=t.error.message:"string"===typeof t.body?o=t.body:"string"===typeof t.responseText&&(o=t.responseText),o=(o||"").toLowerCase();var i=r.transaction||r.signedTransaction;throw o.match(/insufficient funds|base fee exceeds gas limit/)&&la.throwError("insufficient funds for intrinsic transaction cost",M.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:i}),o.match(/nonce too low/)&&la.throwError("nonce has already been used",M.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:i}),o.match(/replacement transaction underpriced/)&&la.throwError("replacement fee too low",M.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:i}),o.match(/only replay-protected/)&&la.throwError("legacy pre-eip-155 transactions not supported",M.b.errors.UNSUPPORTED_OPERATION,{error:t,method:e,transaction:i}),ca.indexOf(e)>=0&&o.match(/gas required exceeds allowance|always failing transaction|execution reverted/)&&la.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",M.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:i}),t}function ha(e){return new Promise((function(t){setTimeout(t,e)}))}function da(e){if(e.error){var t=new Error(e.error.message);throw t.code=e.error.code,t.data=e.error.data,t}return e.result}function pa(e){return e?e.toLowerCase():e}var va={},ma=function(e){p(r,e);var t=b(r);function r(e,n,o){var i;if(Object(y.a)(this,r),la.checkNew(this instanceof r?this.constructor:void 0,r),i=t.call(this),e!==va)throw new Error("do not call the JsonRpcSigner constructor directly; use provider.getSigner");return D(c(i),"provider",n),null==o&&(o=0),"string"===typeof o?(D(c(i),"_address",i.provider.formatter.address(o)),D(c(i),"_index",null)):"number"===typeof o?(D(c(i),"_index",o),D(c(i),"_address",null)):la.throwArgumentError("invalid address or index","addressOrIndex",o),i}return Object(k.a)(r,[{key:"connect",value:function(e){return la.throwError("cannot alter JSON-RPC Signer connection",M.b.errors.UNSUPPORTED_OPERATION,{operation:"connect"})}},{key:"connectUnchecked",value:function(){return new ga(va,this.provider,this._address||this._index)}},{key:"getAddress",value:function(){var e=this;return this._address?Promise.resolve(this._address):this.provider.send("eth_accounts",[]).then((function(t){return t.length<=e._index&&la.throwError("unknown account #"+e._index,M.b.errors.UNSUPPORTED_OPERATION,{operation:"getAddress"}),e.provider.formatter.address(t[e._index])}))}},{key:"sendUncheckedTransaction",value:function(e){var t=this;e=U(e);var r=this.getAddress().then((function(e){return e&&(e=e.toLowerCase()),e}));if(null==e.gasLimit){var n=U(e);n.from=r,e.gasLimit=this.provider.estimateGas(n)}return null!=e.to&&(e.to=Promise.resolve(e.to).then((function(e){return sa(t,void 0,void 0,T.a.mark((function t(){var r;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(null!=e){t.next=2;break}return t.abrupt("return",null);case 2:return t.next=4,this.provider.resolveName(e);case 4:return null==(r=t.sent)&&la.throwArgumentError("provided ENS name resolves to null","tx.to",e),t.abrupt("return",r);case 7:case"end":return t.stop()}}),t,this)})))}))),j({tx:j(e),sender:r}).then((function(r){var n=r.tx,o=r.sender;null!=n.from?n.from.toLowerCase()!==o&&la.throwArgumentError("from address mismatch","transaction",e):n.from=o;var i=t.provider.constructor.hexlifyTransaction(n,{from:!0});return t.provider.send("eth_sendTransaction",[i]).then((function(e){return e}),(function(e){return fa("sendTransaction",e,i)}))}))}},{key:"signTransaction",value:function(e){return la.throwError("signing transactions is unsupported",M.b.errors.UNSUPPORTED_OPERATION,{operation:"signTransaction"})}},{key:"sendTransaction",value:function(e){return sa(this,void 0,void 0,T.a.mark((function t(){var r,n,o=this;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.provider._getInternalBlockNumber(100+2*this.provider.pollingInterval);case 2:return r=t.sent,t.next=5,this.sendUncheckedTransaction(e);case 5:return n=t.sent,t.prev=6,t.next=9,_i((function(){return sa(o,void 0,void 0,T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,this.provider.getTransaction(n);case 2:if(null!==(t=e.sent)){e.next=5;break}return e.abrupt("return",void 0);case 5:return e.abrupt("return",this.provider._wrapTransaction(t,n,r));case 6:case"end":return e.stop()}}),e,this)})))}),{oncePoll:this.provider});case 9:return t.abrupt("return",t.sent);case 12:throw t.prev=12,t.t0=t.catch(6),t.t0.transactionHash=n,t.t0;case 16:case"end":return t.stop()}}),t,this,[[6,12]])})))}},{key:"signMessage",value:function(e){return sa(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r="string"===typeof e?Pe(e):e,t.next=3,this.getAddress();case 3:return n=t.sent,t.next=6,this.provider.send("eth_sign",[n.toLowerCase(),Object(E.i)(r)]);case 6:return t.abrupt("return",t.sent);case 7:case"end":return t.stop()}}),t,this)})))}},{key:"_signTypedData",value:function(e,t,r){return sa(this,void 0,void 0,T.a.mark((function n(){var o,i,a=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,fn.resolveNames(e,t,r,(function(e){return a.provider.resolveName(e)}));case 2:return o=n.sent,n.next=5,this.getAddress();case 5:return i=n.sent,n.next=8,this.provider.send("eth_signTypedData_v4",[i.toLowerCase(),JSON.stringify(fn.getPayload(o.domain,t,o.value))]);case 8:return n.abrupt("return",n.sent);case 9:case"end":return n.stop()}}),n,this)})))}},{key:"unlock",value:function(e){return sa(this,void 0,void 0,T.a.mark((function t(){var r,n;return T.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return r=this.provider,t.next=3,this.getAddress();case 3:return n=t.sent,t.abrupt("return",r.send("personal_unlockAccount",[n.toLowerCase(),e,null]));case 5:case"end":return t.stop()}}),t,this)})))}}]),r}(Vt),ga=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"sendTransaction",value:function(e){var t=this;return this.sendUncheckedTransaction(e).then((function(e){return{hash:e,nonce:null,gasLimit:null,gasPrice:null,data:null,value:null,chainId:null,confirmations:0,from:null,wait:function(r){return t.provider.waitForTransaction(e,r)}}}))}}]),r}(ma),ba={chainId:!0,data:!0,gasLimit:!0,gasPrice:!0,nonce:!0,to:!0,value:!0,type:!0,accessList:!0,maxFeePerGas:!0,maxPriorityFeePerGas:!0},ya=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r),la.checkNew(this instanceof r?this.constructor:void 0,r);var i=n;return null==i&&(i=new Promise((function(e,t){setTimeout((function(){o.detectNetwork().then((function(t){e(t)}),(function(e){t(e)}))}),0)}))),o=t.call(this,i),e||(e=I(o.constructor,"defaultUrl")()),D(c(o),"connection","string"===typeof e?Object.freeze({url:e}):Object.freeze(U(e))),o._nextId=42,o}return Object(k.a)(r,[{key:"_cache",get:function(){return null==this._eventLoopCache&&(this._eventLoopCache={}),this._eventLoopCache}},{key:"detectNetwork",value:function(){var e=this;return this._cache.detectNetwork||(this._cache.detectNetwork=this._uncachedDetectNetwork(),setTimeout((function(){e._cache.detectNetwork=null}),0)),this._cache.detectNetwork}},{key:"_uncachedDetectNetwork",value:function(){return sa(this,void 0,void 0,T.a.mark((function e(){var t,r;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,ha(0);case 2:return t=null,e.prev=3,e.next=6,this.send("eth_chainId",[]);case 6:t=e.sent,e.next=19;break;case 9:return e.prev=9,e.t0=e.catch(3),e.prev=11,e.next=14,this.send("net_version",[]);case 14:t=e.sent,e.next=19;break;case 17:e.prev=17,e.t1=e.catch(11);case 19:if(null==t){e.next=28;break}return r=I(this.constructor,"getNetwork"),e.prev=21,e.abrupt("return",r(F.from(t).toNumber()));case 25:return e.prev=25,e.t2=e.catch(21),e.abrupt("return",la.throwError("could not detect network",M.b.errors.NETWORK_ERROR,{chainId:t,event:"invalidNetwork",serverError:e.t2}));case 28:return e.abrupt("return",la.throwError("could not detect network",M.b.errors.NETWORK_ERROR,{event:"noNetwork"}));case 29:case"end":return e.stop()}}),e,this,[[3,9],[11,17],[21,25]])})))}},{key:"getSigner",value:function(e){return new ma(va,this,e)}},{key:"getUncheckedSigner",value:function(e){return this.getSigner(e).connectUnchecked()}},{key:"listAccounts",value:function(){var e=this;return this.send("eth_accounts",[]).then((function(t){return t.map((function(t){return e.formatter.address(t)}))}))}},{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};this.emit("debug",{action:"request",request:z(n),provider:this});var o=["eth_chainId","eth_blockNumber"].indexOf(e)>=0;if(o&&this._cache[e])return this._cache[e];var i=Ji(this.connection,JSON.stringify(n),da).then((function(e){return r.emit("debug",{action:"response",request:n,response:e,provider:r}),e}),(function(e){throw r.emit("debug",{action:"response",error:e,request:n,provider:r}),e}));return o&&(this._cache[e]=i,setTimeout((function(){r._cache[e]=null}),0)),i}},{key:"prepareRequest",value:function(e,t){switch(e){case"getBlockNumber":return["eth_blockNumber",[]];case"getGasPrice":return["eth_gasPrice",[]];case"getBalance":return["eth_getBalance",[pa(t.address),t.blockTag]];case"getTransactionCount":return["eth_getTransactionCount",[pa(t.address),t.blockTag]];case"getCode":return["eth_getCode",[pa(t.address),t.blockTag]];case"getStorageAt":return["eth_getStorageAt",[pa(t.address),t.position,t.blockTag]];case"sendTransaction":return["eth_sendRawTransaction",[t.signedTransaction]];case"getBlock":return t.blockTag?["eth_getBlockByNumber",[t.blockTag,!!t.includeTransactions]]:t.blockHash?["eth_getBlockByHash",[t.blockHash,!!t.includeTransactions]]:null;case"getTransaction":return["eth_getTransactionByHash",[t.transactionHash]];case"getTransactionReceipt":return["eth_getTransactionReceipt",[t.transactionHash]];case"call":return["eth_call",[I(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0}),t.blockTag]];case"estimateGas":return["eth_estimateGas",[I(this.constructor,"hexlifyTransaction")(t.transaction,{from:!0})]];case"getLogs":return t.filter&&null!=t.filter.address&&(t.filter.address=pa(t.filter.address)),["eth_getLogs",[t.filter]]}return null}},{key:"perform",value:function(e,t){return sa(this,void 0,void 0,T.a.mark((function r(){var n,o,i;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("call"!==e&&"estimateGas"!==e){r.next=8;break}if(!(n=t.transaction)||null==n.type||!F.from(n.type).isZero()){r.next=8;break}if(null!=n.maxFeePerGas||null!=n.maxPriorityFeePerGas){r.next=8;break}return r.next=6,this.getFeeData();case 6:null==(o=r.sent).maxFeePerGas&&null==o.maxPriorityFeePerGas&&((t=U(t)).transaction=U(n),delete t.transaction.type);case 8:return null==(i=this.prepareRequest(e,t))&&la.throwError(e+" not implemented",M.b.errors.NOT_IMPLEMENTED,{operation:e}),r.prev=10,r.next=13,this.send(i[0],i[1]);case 13:return r.abrupt("return",r.sent);case 16:return r.prev=16,r.t0=r.catch(10),r.abrupt("return",fa(e,r.t0,t));case 19:case"end":return r.stop()}}),r,this,[[10,16]])})))}},{key:"_startEvent",value:function(e){"pending"===e.tag&&this._startPending(),h(f(r.prototype),"_startEvent",this).call(this,e)}},{key:"_startPending",value:function(){if(null==this._pendingFilter){var e=this,t=this.send("eth_newPendingTransactionFilter",[]);this._pendingFilter=t,t.then((function(r){return function n(){e.send("eth_getFilterChanges",[r]).then((function(r){if(e._pendingFilter!=t)return null;var n=Promise.resolve();return r.forEach((function(t){e._emitted["t:"+t.toLowerCase()]="pending",n=n.then((function(){return e.getTransaction(t).then((function(t){return e.emit("pending",t),null}))}))})),n.then((function(){return ha(1e3)}))})).then((function(){if(e._pendingFilter==t)return setTimeout((function(){n()}),0),null;e.send("eth_uninstallFilter",[r])})).catch((function(e){}))}(),r})).catch((function(e){}))}}},{key:"_stopEvent",value:function(e){"pending"===e.tag&&0===this.listenerCount("pending")&&(this._pendingFilter=null),h(f(r.prototype),"_stopEvent",this).call(this,e)}}],[{key:"defaultUrl",value:function(){return"http://localhost:8545"}},{key:"hexlifyTransaction",value:function(e,t){var r=U(ba);if(t)for(var n in t)t[n]&&(r[n]=!0);X(e,r);var o={};return["gasLimit","gasPrice","type","maxFeePerGas","maxPriorityFeePerGas","nonce","value"].forEach((function(t){if(null!=e[t]){var r=Object(E.g)(e[t]);"gasLimit"===t&&(t="gas"),o[t]=r}})),["from","to","data"].forEach((function(t){null!=e[t]&&(o[t]=Object(E.i)(e[t]))})),e.accessList&&(o.accessList=fr(e.accessList)),o}}]),r}(ua),ka=null;try{if(null==(ka=WebSocket))throw new Error("inject please")}catch(Uu){var wa=new M.b("providers/5.4.5");ka=function(){wa.throwError("WebSockets not supported in this environment",M.b.errors.UNSUPPORTED_OPERATION,{operation:"new WebSocket()"})}}var Ta=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Ea=new M.b("providers/5.4.5"),Sa=1,Aa=function(e){p(r,e);var t=b(r);function r(e,n){var o,i;Object(y.a)(this,r),"any"===n&&Ea.throwError("WebSocketProvider does not support 'any' network yet",M.b.errors.UNSUPPORTED_OPERATION,{operation:"network:any"}),(i=t.call(this,e,n))._pollingInterval=-1,i._wsReady=!1,D(c(i),"_websocket",new ka(i.connection.url)),D(c(i),"_requests",{}),D(c(i),"_subs",{}),D(c(i),"_subIds",{}),D(c(i),"_detectNetwork",h((o=c(i),f(r.prototype)),"detectNetwork",o).call(o)),i._websocket.onopen=function(){i._wsReady=!0,Object.keys(i._requests).forEach((function(e){i._websocket.send(i._requests[e].payload)}))},i._websocket.onmessage=function(e){var t=e.data,r=JSON.parse(t);if(null!=r.id){var n=String(r.id),o=i._requests[n];if(delete i._requests[n],void 0!==r.result)o.callback(null,r.result),i.emit("debug",{action:"response",request:JSON.parse(o.payload),response:r.result,provider:c(i)});else{var a=null;r.error?(D(a=new Error(r.error.message||"unknown error"),"code",r.error.code||null),D(a,"response",t)):a=new Error("unknown error"),o.callback(a,void 0),i.emit("debug",{action:"response",error:a,request:JSON.parse(o.payload),provider:c(i)})}}else if("eth_subscription"===r.method){var u=i._subs[r.params.subscription];u&&u.processFunc(r.params.result)}else console.warn("this should not happen")};var a=setInterval((function(){i.emit("poll")}),1e3);return a.unref&&a.unref(),i}return Object(k.a)(r,[{key:"detectNetwork",value:function(){return this._detectNetwork}},{key:"pollingInterval",get:function(){return 0},set:function(e){Ea.throwError("cannot set polling interval on WebSocketProvider",M.b.errors.UNSUPPORTED_OPERATION,{operation:"setPollingInterval"})}},{key:"resetEventsBlock",value:function(e){Ea.throwError("cannot reset events block on WebSocketProvider",M.b.errors.UNSUPPORTED_OPERATION,{operation:"resetEventBlock"})}},{key:"poll",value:function(){return Ta(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",null);case 1:case"end":return e.stop()}}),e)})))}},{key:"polling",set:function(e){e&&Ea.throwError("cannot set polling on WebSocketProvider",M.b.errors.UNSUPPORTED_OPERATION,{operation:"setPolling"})}},{key:"send",value:function(e,t){var r=this,n=Sa++;return new Promise((function(o,i){var a=JSON.stringify({method:e,params:t,id:n,jsonrpc:"2.0"});r.emit("debug",{action:"request",request:JSON.parse(a),provider:r}),r._requests[String(n)]={callback:function(e,t){return e?i(e):o(t)},payload:a},r._wsReady&&r._websocket.send(a)}))}},{key:"_subscribe",value:function(e,t,r){return Ta(this,void 0,void 0,T.a.mark((function n(){var o,i,a=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return null==(o=this._subIds[e])&&(o=Promise.all(t).then((function(e){return a.send("eth_subscribe",e)})),this._subIds[e]=o),n.next=4,o;case 4:i=n.sent,this._subs[i]={tag:e,processFunc:r};case 6:case"end":return n.stop()}}),n,this)})))}},{key:"_startEvent",value:function(e){var t=this;switch(e.type){case"block":this._subscribe("block",["newHeads"],(function(e){var r=F.from(e.number).toNumber();t._emitted.block=r,t.emit("block",r)}));break;case"pending":this._subscribe("pending",["newPendingTransactions"],(function(e){t.emit("pending",e)}));break;case"filter":this._subscribe(e.tag,["logs",this._getFilter(e.filter)],(function(r){null==r.removed&&(r.removed=!1),t.emit(e.filter,t.formatter.filterLog(r))}));break;case"tx":var r=function(e){var r=e.hash;t.getTransactionReceipt(r).then((function(e){e&&t.emit(r,e)}))};r(e),this._subscribe("tx",["newHeads"],(function(e){t._events.filter((function(e){return"tx"===e.type})).forEach(r)}));break;case"debug":case"poll":case"willPoll":case"didPoll":case"error":break;default:console.log("unhandled:",e)}}},{key:"_stopEvent",value:function(e){var t=this,r=e.tag;if("tx"===e.type){if(this._events.filter((function(e){return"tx"===e.type})).length)return;r="tx"}else if(this.listenerCount(e.event))return;var n=this._subIds[r];n&&(delete this._subIds[r],n.then((function(e){t._subs[e]&&(delete t._subs[e],t.send("eth_unsubscribe",[e]))})))}},{key:"destroy",value:function(){return Ta(this,void 0,void 0,T.a.mark((function e(){var t=this;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._websocket.readyState!==ka.CONNECTING){e.next=3;break}return e.next=3,new Promise((function(e){t._websocket.onopen=function(){e(!0)},t._websocket.onerror=function(){e(!1)}}));case 3:this._websocket.close(1e3);case 4:case"end":return e.stop()}}),e,this)})))}}],[{key:"defaultUrl",value:function(){return"ws://localhost:8546"}}]),r}(ya),Ma=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Pa=new M.b("providers/5.4.5"),Ca=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"detectNetwork",value:function(){var e=this,t=Object.create(null,{detectNetwork:{get:function(){return h(f(r.prototype),"detectNetwork",e)}}});return Ma(this,void 0,void 0,T.a.mark((function e(){var r;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null!=(r=this.network)){e.next=7;break}return e.next=4,t.detectNetwork.call(this);case 4:(r=e.sent)||Pa.throwError("no network detected",M.b.errors.UNKNOWN_ERROR,{}),null==this._network&&(D(this,"_network",r),this.emit("network",r,null));case 7:return e.abrupt("return",r);case 8:case"end":return e.stop()}}),e,this)})))}}]),r}(ya),Oa=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r),Pa.checkAbstract(this instanceof r?this.constructor:void 0,r),e=I(this instanceof r?this.constructor:void 0,"getNetwork")(e),n=I(this instanceof r?this.constructor:void 0,"getApiKey")(n);var i=I(this instanceof r?this.constructor:void 0,"getUrl")(e,n);return o=t.call(this,i,e),"string"===typeof n?D(c(o),"apiKey",n):null!=n&&Object.keys(n).forEach((function(e){D(c(o),e,n[e])})),o}return Object(k.a)(r,[{key:"_startPending",value:function(){Pa.warn("WARNING: API provider does not support pending filters")}},{key:"isCommunityResource",value:function(){return!1}},{key:"getSigner",value:function(e){return Pa.throwError("API provider does not support signing",M.b.errors.UNSUPPORTED_OPERATION,{operation:"getSigner"})}},{key:"listAccounts",value:function(){return Promise.resolve([])}}],[{key:"getApiKey",value:function(e){return e}},{key:"getUrl",value:function(e,t){return Pa.throwError("not implemented; sub-classes must override getUrl",M.b.errors.NOT_IMPLEMENTED,{operation:"getUrl"})}}]),r}(Ca),xa=new M.b("providers/5.4.5"),Fa="_gg7wSSi0KMBsdKnGVfHDueq6xMB9EkC",La=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r);var i=new Ba(e,n),a=i.connection.url.replace(/^http/i,"ws").replace(".alchemyapi.",".ws.alchemyapi.");return D(c(o=t.call(this,a,i.network)),"apiKey",i.apiKey),o}return Object(k.a)(r,[{key:"isCommunityResource",value:function(){return this.apiKey===Fa}}]),r}(Aa),Ba=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"isCommunityResource",value:function(){return this.apiKey===Fa}}],[{key:"getWebSocketProvider",value:function(e,t){return new La(e,t)}},{key:"getApiKey",value:function(e){return null==e?Fa:(e&&"string"!==typeof e&&xa.throwArgumentError("invalid apiKey","apiKey",e),e)}},{key:"getUrl",value:function(e,t){var r=null;switch(e.name){case"homestead":r="eth-mainnet.alchemyapi.io/v2/";break;case"ropsten":r="eth-ropsten.alchemyapi.io/v2/";break;case"rinkeby":r="eth-rinkeby.alchemyapi.io/v2/";break;case"goerli":r="eth-goerli.alchemyapi.io/v2/";break;case"kovan":r="eth-kovan.alchemyapi.io/v2/";break;case"matic":r="polygon-mainnet.g.alchemy.com/v2/";break;case"maticmum":r="polygon-mumbai.g.alchemy.com/v2/";break;default:xa.throwArgumentError("unsupported network","network",arguments[0])}return{allowGzip:!0,url:"https://"+r+t,throttleCallback:function(e,r){return t===Fa&&zi(),Promise.resolve(!0)}}}}]),r}(Oa),Na=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Ra=new M.b("providers/5.4.5"),Ja=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"perform",value:function(e,t){var n=this,o=Object.create(null,{perform:{get:function(){return h(f(r.prototype),"perform",n)}}});return Na(this,void 0,void 0,T.a.mark((function r(){var n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("getBlockNumber"!==e){r.next=5;break}return r.next=3,o.perform.call(this,"getBlock",{blockTag:"latest"});case 3:return n=r.sent,r.abrupt("return",n.number);case 5:return r.abrupt("return",o.perform.call(this,e,t));case 6:case"end":return r.stop()}}),r,this)})))}}],[{key:"getApiKey",value:function(e){return null!=e&&Ra.throwArgumentError("apiKey not supported for cloudflare","apiKey",e),null}},{key:"getUrl",value:function(e,t){var r=null;switch(e.name){case"homestead":r="https://cloudflare-eth.com/";break;default:Ra.throwArgumentError("unsupported network","network",arguments[0])}return r}}]),r}(Oa),_a=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Da=new M.b("providers/5.4.5");function Ia(e){var t={};for(var r in e)if(null!=e[r]){var n=e[r];"type"===r&&0===n||(n={type:!0,gasLimit:!0,gasPrice:!0,maxFeePerGs:!0,maxPriorityFeePerGas:!0,nonce:!0,value:!0}[r]?Object(E.g)(Object(E.i)(n)):"accessList"===r?"["+fr(n).map((function(e){return'{address:"'.concat(e.address,'",storageKeys:["').concat(e.storageKeys.join('","'),'"]}')})).join(",")+"]":Object(E.i)(n),t[r]=n)}return t}function ja(e){if(0==e.status&&("No records found"===e.message||"No transactions found"===e.message))return e.result;if(1!=e.status||"OK"!=e.message){var t=new Error("invalid response");throw t.result=JSON.stringify(e),(e.result||"").toLowerCase().indexOf("rate limit")>=0&&(t.throttleRetry=!0),t}return e.result}function Xa(e){if(e&&0==e.status&&"NOTOK"==e.message&&(e.result||"").toLowerCase().indexOf("rate limit")>=0){var t=new Error("throttled response");throw t.result=JSON.stringify(e),t.throttleRetry=!0,t}if("2.0"!=e.jsonrpc){var r=new Error("invalid response");throw r.result=JSON.stringify(e),r}if(e.error){var n=new Error(e.error.message||"unknown error");throw e.error.code&&(n.code=e.error.code),e.error.data&&(n.data=e.error.data),n}return e.result}function Ua(e){if("pending"===e)throw new Error("pending not supported");return"latest"===e?e:parseInt(e.substring(2),16)}function Ha(e,t,r){if("call"===e&&t.code===M.b.errors.SERVER_ERROR){var n=t.error;if(n&&(n.message.match(/reverted/i)||n.message.match(/VM execution error/i))){var o=n.data;if(o&&(o="0x"+o.replace(/^.*0x/i,"")),Object(E.l)(o))return o;Da.throwError("missing revert data in call exception",M.b.errors.CALL_EXCEPTION,{error:t,data:"0x"})}}var i=t.message;throw t.code===M.b.errors.SERVER_ERROR&&(t.error&&"string"===typeof t.error.message?i=t.error.message:"string"===typeof t.body?i=t.body:"string"===typeof t.responseText&&(i=t.responseText)),(i=(i||"").toLowerCase()).match(/insufficient funds/)&&Da.throwError("insufficient funds for intrinsic transaction cost",M.b.errors.INSUFFICIENT_FUNDS,{error:t,method:e,transaction:r}),i.match(/same hash was already imported|transaction nonce is too low|nonce too low/)&&Da.throwError("nonce has already been used",M.b.errors.NONCE_EXPIRED,{error:t,method:e,transaction:r}),i.match(/another transaction with same nonce/)&&Da.throwError("replacement fee too low",M.b.errors.REPLACEMENT_UNDERPRICED,{error:t,method:e,transaction:r}),i.match(/execution failed due to an exception|execution reverted/)&&Da.throwError("cannot estimate gas; transaction may fail or may require manual gas limit",M.b.errors.UNPREDICTABLE_GAS_LIMIT,{error:t,method:e,transaction:r}),t}var Ga=function(e){p(r,e);var t=b(r);function r(e,n){var o;return Object(y.a)(this,r),Da.checkNew(this instanceof r?this.constructor:void 0,r),D(c(o=t.call(this,e)),"baseUrl",o.getBaseUrl()),D(c(o),"apiKey",n||"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"),o}return Object(k.a)(r,[{key:"getBaseUrl",value:function(){switch(this.network?this.network.name:"invalid"){case"homestead":return"https://api.etherscan.io";case"ropsten":return"https://api-ropsten.etherscan.io";case"rinkeby":return"https://api-rinkeby.etherscan.io";case"kovan":return"https://api-kovan.etherscan.io";case"goerli":return"https://api-goerli.etherscan.io"}return Da.throwArgumentError("unsupported network","network",name)}},{key:"getUrl",value:function(e,t){var r=Object.keys(t).reduce((function(e,r){var n=t[r];return null!=n&&(e+="&".concat(r,"=").concat(n)),e}),""),n=this.apiKey?"&apikey=".concat(this.apiKey):"";return"".concat(this.baseUrl,"/api?module=").concat(e).concat(r).concat(n)}},{key:"getPostUrl",value:function(){return"".concat(this.baseUrl,"/api")}},{key:"getPostData",value:function(e,t){return t.module=e,t.apikey=this.apiKey,t}},{key:"fetch",value:function(e,t,r){return _a(this,void 0,void 0,T.a.mark((function n(){var o,i,a,u,s,l,c=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return o=r?this.getPostUrl():this.getUrl(e,t),i=r?this.getPostData(e,t):null,a="proxy"===e?Xa:ja,this.emit("debug",{action:"request",request:o,provider:this}),u={url:o,throttleSlotInterval:1e3,throttleCallback:function(e,t){return c.isCommunityResource()&&zi(),Promise.resolve(!0)}},s=null,i&&(u.headers={"content-type":"application/x-www-form-urlencoded; charset=UTF-8"},s=Object.keys(i).map((function(e){return"".concat(e,"=").concat(i[e])})).join("&")),n.next=9,Ji(u,s,a||Xa);case 9:return l=n.sent,this.emit("debug",{action:"response",request:o,response:z(l),provider:this}),n.abrupt("return",l);case 12:case"end":return n.stop()}}),n,this)})))}},{key:"detectNetwork",value:function(){return _a(this,void 0,void 0,T.a.mark((function e(){return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.network);case 1:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){var n=this,o=Object.create(null,{perform:{get:function(){return h(f(r.prototype),"perform",n)}}});return _a(this,void 0,void 0,T.a.mark((function r(){var n,i,a,u,s,l,c,f,h;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:r.t0=e,r.next="getBlockNumber"===r.t0?3:"getGasPrice"===r.t0?4:"getBalance"===r.t0?5:"getTransactionCount"===r.t0?6:"getCode"===r.t0?7:"getStorageAt"===r.t0?8:"sendTransaction"===r.t0?9:"getBlock"===r.t0?10:"getTransaction"===r.t0?13:"getTransactionReceipt"===r.t0?14:"call"===r.t0?15:"estimateGas"===r.t0?29:"getLogs"===r.t0?41:"getEtherPrice"===r.t0?65:72;break;case 3:return r.abrupt("return",this.fetch("proxy",{action:"eth_blockNumber"}));case 4:return r.abrupt("return",this.fetch("proxy",{action:"eth_gasPrice"}));case 5:return r.abrupt("return",this.fetch("account",{action:"balance",address:t.address,tag:t.blockTag}));case 6:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionCount",address:t.address,tag:t.blockTag}));case 7:return r.abrupt("return",this.fetch("proxy",{action:"eth_getCode",address:t.address,tag:t.blockTag}));case 8:return r.abrupt("return",this.fetch("proxy",{action:"eth_getStorageAt",address:t.address,position:t.position,tag:t.blockTag}));case 9:return r.abrupt("return",this.fetch("proxy",{action:"eth_sendRawTransaction",hex:t.signedTransaction},!0).catch((function(e){return Ha("sendTransaction",e,t.signedTransaction)})));case 10:if(!t.blockTag){r.next=12;break}return r.abrupt("return",this.fetch("proxy",{action:"eth_getBlockByNumber",tag:t.blockTag,boolean:t.includeTransactions?"true":"false"}));case 12:throw new Error("getBlock by blockHash not implemented");case 13:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionByHash",txhash:t.transactionHash}));case 14:return r.abrupt("return",this.fetch("proxy",{action:"eth_getTransactionReceipt",txhash:t.transactionHash}));case 15:if("latest"===t.blockTag){r.next=17;break}throw new Error("EtherscanProvider does not support blockTag for call");case 17:return(n=Ia(t.transaction)).module="proxy",n.action="eth_call",r.prev=20,r.next=23,this.fetch("proxy",n,!0);case 23:return r.abrupt("return",r.sent);case 26:return r.prev=26,r.t1=r.catch(20),r.abrupt("return",Ha("call",r.t1,t.transaction));case 29:return(i=Ia(t.transaction)).module="proxy",i.action="eth_estimateGas",r.prev=32,r.next=35,this.fetch("proxy",i,!0);case 35:return r.abrupt("return",r.sent);case 38:return r.prev=38,r.t2=r.catch(32),r.abrupt("return",Ha("estimateGas",r.t2,t.transaction));case 41:return a={action:"getLogs"},t.filter.fromBlock&&(a.fromBlock=Ua(t.filter.fromBlock)),t.filter.toBlock&&(a.toBlock=Ua(t.filter.toBlock)),t.filter.address&&(a.address=t.filter.address),t.filter.topics&&t.filter.topics.length>0&&(t.filter.topics.length>1&&Da.throwError("unsupported topic count",M.b.errors.UNSUPPORTED_OPERATION,{topics:t.filter.topics}),1===t.filter.topics.length&&("string"===typeof(u=t.filter.topics[0])&&66===u.length||Da.throwError("unsupported topic format",M.b.errors.UNSUPPORTED_OPERATION,{topic0:u}),a.topic0=u)),r.next=48,this.fetch("logs",a);case 48:s=r.sent,l={},c=0;case 51:if(!(c<s.length)){r.next=64;break}if(null==(f=s[c]).blockHash){r.next=55;break}return r.abrupt("continue",61);case 55:if(null!=l[f.blockNumber]){r.next=60;break}return r.next=58,this.getBlock(f.blockNumber);case 58:(h=r.sent)&&(l[f.blockNumber]=h.hash);case 60:f.blockHash=l[f.blockNumber];case 61:c++,r.next=51;break;case 64:return r.abrupt("return",s);case 65:if("homestead"===this.network.name){r.next=67;break}return r.abrupt("return",0);case 67:return r.t3=parseFloat,r.next=70,this.fetch("stats",{action:"ethprice"});case 70:return r.t4=r.sent.ethusd,r.abrupt("return",(0,r.t3)(r.t4));case 72:return r.abrupt("break",73);case 73:return r.abrupt("return",o.perform.call(this,e,t));case 74:case"end":return r.stop()}}),r,this,[[20,26],[32,38]])})))}},{key:"getHistory",value:function(e,t,r){return _a(this,void 0,void 0,T.a.mark((function n(){var o,i,a=this;return T.a.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,this.resolveName(e);case 2:return n.t0=n.sent,n.t1=null==t?0:t,n.t2=null==r?99999999:r,o={action:"txlist",address:n.t0,startblock:n.t1,endblock:n.t2,sort:"asc"},n.next=8,this.fetch("account",o);case 8:return i=n.sent,n.abrupt("return",i.map((function(e){["contractAddress","to"].forEach((function(t){""==e[t]&&delete e[t]})),null==e.creates&&null!=e.contractAddress&&(e.creates=e.contractAddress);var t=a.formatter.transactionResponse(e);return e.timeStamp&&(t.timestamp=parseInt(e.timeStamp)),t})));case 10:case"end":return n.stop()}}),n,this)})))}},{key:"isCommunityResource",value:function(){return"9D13ZE7XSBTJ94N9BNJ2MA33VMAY2YPIRB"===this.apiKey}}]),r}(ua);function za(e){for(var t=(e=e.slice()).length-1;t>0;t--){var r=Math.floor(Math.random()*(t+1)),n=e[t];e[t]=e[r],e[r]=n}return e}var Va=function(e,t,r,n){return new(r||(r=Promise))((function(o,i){function a(e){try{s(n.next(e))}catch(t){i(t)}}function u(e){try{s(n.throw(e))}catch(t){i(t)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(a,u)}s((n=n.apply(e,t||[])).next())}))},Za=new M.b("providers/5.4.5");function Ka(){return(new Date).getTime()}function Qa(e){for(var t=null,r=0;r<e.length;r++){var n=e[r];if(null==n)return null;t?t.name===n.name&&t.chainId===n.chainId&&(t.ensAddress===n.ensAddress||null==t.ensAddress&&null==n.ensAddress)||Za.throwArgumentError("provider mismatch","networks",e):t=n}return t}function qa(e,t){e=e.slice().sort();var r=Math.floor(e.length/2);if(e.length%2)return e[r];var n=e[r-1],o=e[r];return null!=t&&Math.abs(n-o)>t?null:(n+o)/2}function Wa(e){if(null===e)return"null";if("number"===typeof e||"boolean"===typeof e)return JSON.stringify(e);if("string"===typeof e)return e;if(F.isBigNumber(e))return e.toString();if(Array.isArray(e))return JSON.stringify(e.map((function(e){return Wa(e)})));if("object"===typeof e){var t=Object.keys(e);return t.sort(),"{"+t.map((function(t){var r=e[t];return r="function"===typeof r?"[function]":Wa(r),JSON.stringify(t)+":"+r})).join(",")+"}"}throw new Error("unknown value type: "+typeof e)}var Ya=1;function $a(e){var t=null,r=null,n=new Promise((function(n){t=function(){r&&(clearTimeout(r),r=null),n()},r=setTimeout(t,e)}));return{cancel:t,getPromise:function(){return n},wait:function(e){return n=n.then(e)}}}var eu=[M.b.errors.CALL_EXCEPTION,M.b.errors.INSUFFICIENT_FUNDS,M.b.errors.NONCE_EXPIRED,M.b.errors.REPLACEMENT_UNDERPRICED,M.b.errors.UNPREDICTABLE_GAS_LIMIT],tu=["address","args","errorArgs","errorSignature","method","transaction"];function ru(e,t){var r={weight:e.weight};return Object.defineProperty(r,"provider",{get:function(){return e.provider}}),e.start&&(r.start=e.start),t&&(r.duration=t-e.start),e.done&&(e.error?r.error=e.error:r.result=e.result||null),r}function nu(e,t,r){var n=Wa;switch(t){case"getBlockNumber":return function(t){var r=t.map((function(e){return e.result})),n=qa(t.map((function(e){return e.result})),2);if(null!=n)return n=Math.ceil(n),r.indexOf(n+1)>=0&&n++,n>=e._highestBlockNumber&&(e._highestBlockNumber=n),e._highestBlockNumber};case"getGasPrice":return function(e){var t=e.map((function(e){return e.result}));return t.sort(),t[Math.floor(t.length/2)]};case"getEtherPrice":return function(e){return qa(e.map((function(e){return e.result})))};case"getBalance":case"getTransactionCount":case"getCode":case"getStorageAt":case"call":case"estimateGas":case"getLogs":break;case"getTransaction":case"getTransactionReceipt":n=function(e){return null==e?null:((e=U(e)).confirmations=-1,Wa(e))};break;case"getBlock":n=r.includeTransactions?function(e){return null==e?null:((e=U(e)).transactions=e.transactions.map((function(e){return(e=U(e)).confirmations=-1,e})),Wa(e))}:function(e){return null==e?null:Wa(e)};break;default:throw new Error("unknown method: "+t)}return function(e,t){return function(r){var n={};r.forEach((function(t){var r=e(t.result);n[r]||(n[r]={count:0,result:t.result}),n[r].count++}));for(var o=Object.keys(n),i=0;i<o.length;i++){var a=n[o[i]];if(a.count>=t)return a.result}}}(n,e.quorum)}function ou(e,t){return Va(this,void 0,void 0,T.a.mark((function r(){var n;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!(null!=(n=e.provider).blockNumber&&n.blockNumber>=t||-1===t)){r.next=3;break}return r.abrupt("return",n);case 3:return r.abrupt("return",_i((function(){return new Promise((function(r,o){setTimeout((function(){return n.blockNumber>=t?r(n):e.cancelled?r(null):r(void 0)}),0)}))}),{oncePoll:n}));case 4:case"end":return r.stop()}}),r)})))}function iu(e,t,r,n){return Va(this,void 0,void 0,T.a.mark((function o(){var i,a;return T.a.wrap((function(o){for(;;)switch(o.prev=o.next){case 0:i=e.provider,o.t0=r,o.next="getBlockNumber"===o.t0||"getGasPrice"===o.t0?4:"getEtherPrice"===o.t0?5:"getBalance"===o.t0||"getTransactionCount"===o.t0||"getCode"===o.t0?8:"getStorageAt"===o.t0?13:"getBlock"===o.t0?18:"call"===o.t0||"estimateGas"===o.t0?23:"getTransaction"===o.t0||"getTransactionReceipt"===o.t0?28:"getLogs"===o.t0?29:35;break;case 4:return o.abrupt("return",i[r]());case 5:if(!i.getEtherPrice){o.next=7;break}return o.abrupt("return",i.getEtherPrice());case 7:return o.abrupt("break",35);case 8:if(!n.blockTag||!Object(E.l)(n.blockTag)){o.next=12;break}return o.next=11,ou(e,t);case 11:i=o.sent;case 12:return o.abrupt("return",i[r](n.address,n.blockTag||"latest"));case 13:if(!n.blockTag||!Object(E.l)(n.blockTag)){o.next=17;break}return o.next=16,ou(e,t);case 16:i=o.sent;case 17:return o.abrupt("return",i.getStorageAt(n.address,n.position,n.blockTag||"latest"));case 18:if(!n.blockTag||!Object(E.l)(n.blockTag)){o.next=22;break}return o.next=21,ou(e,t);case 21:i=o.sent;case 22:return o.abrupt("return",i[n.includeTransactions?"getBlockWithTransactions":"getBlock"](n.blockTag||n.blockHash));case 23:if(!n.blockTag||!Object(E.l)(n.blockTag)){o.next=27;break}return o.next=26,ou(e,t);case 26:i=o.sent;case 27:return o.abrupt("return",i[r](n.transaction));case 28:return o.abrupt("return",i[r](n.transactionHash));case 29:if(!((a=n.filter).fromBlock&&Object(E.l)(a.fromBlock)||a.toBlock&&Object(E.l)(a.toBlock))){o.next=34;break}return o.next=33,ou(e,t);case 33:i=o.sent;case 34:return o.abrupt("return",i.getLogs(a));case 35:return o.abrupt("return",Za.throwError("unknown method error",M.b.errors.UNKNOWN_ERROR,{method:r,params:n}));case 36:case"end":return o.stop()}}),o)})))}var au=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r),Za.checkNew(this instanceof r?this.constructor:void 0,r),0===e.length&&Za.throwArgumentError("missing providers","providers",e);var i=e.map((function(e,t){if(Xt.isProvider(e)){var r=Hi(e)?2e3:750;return Object.freeze({provider:e,weight:1,stallTimeout:r,priority:1})}var n=U(e);null==n.priority&&(n.priority=1),null==n.stallTimeout&&(n.stallTimeout=Hi(e)?2e3:750),null==n.weight&&(n.weight=1);var o=n.weight;return(o%1||o>512||o<1)&&Za.throwArgumentError("invalid weight; must be integer in [1, 512]","providers[".concat(t,"].weight"),o),Object.freeze(n)})),a=i.reduce((function(e,t){return e+t.weight}),0);null==n?n=a/2:n>a&&Za.throwArgumentError("quorum will always fail; larger than total weight","quorum",n);var u=Qa(i.map((function(e){return e.provider.network})));return null==u&&(u=new Promise((function(e,t){setTimeout((function(){o.detectNetwork().then(e,t)}),0)}))),D(c(o=t.call(this,u)),"providerConfigs",Object.freeze(i)),D(c(o),"quorum",n),o._highestBlockNumber=-1,o}return Object(k.a)(r,[{key:"detectNetwork",value:function(){return Va(this,void 0,void 0,T.a.mark((function e(){var t;return T.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all(this.providerConfigs.map((function(e){return e.provider.getNetwork()})));case 2:return t=e.sent,e.abrupt("return",Qa(t));case 4:case"end":return e.stop()}}),e,this)})))}},{key:"perform",value:function(e,t){return Va(this,void 0,void 0,T.a.mark((function r(){var n,o,i,a,u,s,l,c,f,h,d=this;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if("sendTransaction"!==e){r.next=13;break}return r.next=3,Promise.all(this.providerConfigs.map((function(e){return e.provider.sendTransaction(t.signedTransaction).then((function(e){return e.hash}),(function(e){return e}))})));case 3:n=r.sent,o=0;case 5:if(!(o<n.length)){r.next=12;break}if("string"!==typeof(i=n[o])){r.next=9;break}return r.abrupt("return",i);case 9:o++,r.next=5;break;case 12:throw n[0];case 13:if(-1!==this._highestBlockNumber||"getBlockNumber"===e){r.next=16;break}return r.next=16,this.getBlockNumber();case 16:a=nu(this,e,t),(u=za(this.providerConfigs.map(U))).sort((function(e,t){return e.priority-t.priority})),s=this._highestBlockNumber,l=0,c=!0,f=T.a.mark((function r(){var n,o,i,f,h,p,v;return T.a.wrap((function(r){for(;;)switch(r.prev=r.next){case 0:for(n=Ka(),o=u.filter((function(e){return e.runner&&n-e.start<e.stallTimeout})).reduce((function(e,t){return e+t.weight}),0),i=function(){var r=u[l++],n=Ya++;r.start=Ka(),r.staller=$a(r.stallTimeout),r.staller.wait((function(){r.staller=null})),r.runner=iu(r,s,e,t).then((function(o){r.done=!0,r.result=o,d.listenerCount("debug")&&d.emit("debug",{action:"request",rid:n,backend:ru(r,Ka()),request:{method:e,params:z(t)},provider:d})}),(function(o){r.done=!0,r.error=o,d.listenerCount("debug")&&d.emit("debug",{action:"request",rid:n,backend:ru(r,Ka()),request:{method:e,params:z(t)},provider:d})})),d.listenerCount("debug")&&d.emit("debug",{action:"request",rid:n,backend:ru(r,null),request:{method:e,params:z(t)},provider:d}),o+=r.weight};o<d.quorum&&l<u.length;)i();if(f=[],u.forEach((function(e){!e.done&&e.runner&&(f.push(e.runner),e.staller&&f.push(e.staller.getPromise()))})),!f.length){r.next=9;break}return r.next=9,Promise.race(f);case 9:if(!((h=u.filter((function(e){return e.done&&null==e.error}))).length>=d.quorum)){r.next=19;break}if(void 0===(p=a(h))){r.next=15;break}return u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",{v:p});case 15:if(c){r.next=18;break}return r.next=18,$a(100).getPromise();case 18:c=!1;case 19:if(v=u.reduce((function(e,t){if(!t.done||null==t.error)return e;var r=t.error.code;return eu.indexOf(r)>=0&&(e[r]||(e[r]={error:t.error,weight:0}),e[r].weight+=t.weight),e}),{}),Object.keys(v).forEach((function(e){var t=v[e];if(!(t.weight<d.quorum)){u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0}));var r=t.error,n={};tu.forEach((function(e){null!=r[e]&&(n[e]=r[e])})),Za.throwError(r.reason||r.message,e,n)}})),0!==u.filter((function(e){return!e.done})).length){r.next=23;break}return r.abrupt("return","break");case 23:case"end":return r.stop()}}),r)}));case 23:return r.delegateYield(f(),"t0",25);case 25:if("break"!==(h=r.t0)){r.next=28;break}return r.abrupt("break",32);case 28:if("object"!==typeof h){r.next=30;break}return r.abrupt("return",h.v);case 30:r.next=23;break;case 32:return u.forEach((function(e){e.staller&&e.staller.cancel(),e.cancelled=!0})),r.abrupt("return",Za.throwError("failed to meet quorum",M.b.errors.SERVER_ERROR,{method:e,params:t,results:u.map((function(e){return ru(e)})),provider:this}));case 34:case"end":return r.stop()}}),r,this)})))}}]),r}(ua),uu=null,su=new M.b("providers/5.4.5"),lu="84842078b09946638c03157f83405213",cu=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r);var i=new fu(e,n),a=i.connection;a.password&&su.throwError("INFURA WebSocket project secrets unsupported",M.b.errors.UNSUPPORTED_OPERATION,{operation:"InfuraProvider.getWebSocketProvider()"});var u=a.url.replace(/^http/i,"ws").replace("/v3/","/ws/v3/");return D(c(o=t.call(this,u,e)),"apiKey",i.projectId),D(c(o),"projectId",i.projectId),D(c(o),"projectSecret",i.projectSecret),o}return Object(k.a)(r,[{key:"isCommunityResource",value:function(){return this.projectId===lu}}]),r}(Aa),fu=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"isCommunityResource",value:function(){return this.projectId===lu}}],[{key:"getWebSocketProvider",value:function(e,t){return new cu(e,t)}},{key:"getApiKey",value:function(e){var t={apiKey:lu,projectId:lu,projectSecret:null};return null==e||("string"===typeof e?t.projectId=e:null!=e.projectSecret?(su.assertArgument("string"===typeof e.projectId,"projectSecret requires a projectId","projectId",e.projectId),su.assertArgument("string"===typeof e.projectSecret,"invalid projectSecret","projectSecret","[REDACTED]"),t.projectId=e.projectId,t.projectSecret=e.projectSecret):e.projectId&&(t.projectId=e.projectId),t.apiKey=t.projectId),t}},{key:"getUrl",value:function(e,t){var r=null;switch(e?e.name:"unknown"){case"homestead":r="mainnet.infura.io";break;case"ropsten":r="ropsten.infura.io";break;case"rinkeby":r="rinkeby.infura.io";break;case"kovan":r="kovan.infura.io";break;case"goerli":r="goerli.infura.io";break;case"matic":r="polygon-mainnet.infura.io";break;case"maticmum":r="polygon-mumbai.infura.io";break;default:su.throwError("unsupported network",M.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={allowGzip:!0,url:"https://"+r+"/v3/"+t.projectId,throttleCallback:function(e,r){return t.projectId===lu&&zi(),Promise.resolve(!0)}};return null!=t.projectSecret&&(n.user="",n.password=t.projectSecret),n}}]),r}(Oa),hu=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,[{key:"send",value:function(e,t){var r=this,n={method:e,params:t,id:this._nextId++,jsonrpc:"2.0"};null==this._pendingBatch&&(this._pendingBatch=[]);var o={request:n,resolve:null,reject:null},i=new Promise((function(e,t){o.resolve=e,o.reject=t}));return this._pendingBatch.push(o),this._pendingBatchAggregator||(this._pendingBatchAggregator=setTimeout((function(){var e=r._pendingBatch;r._pendingBatch=null,r._pendingBatchAggregator=null;var t=e.map((function(e){return e.request}));return r.emit("debug",{action:"requestBatch",request:z(t),provider:r}),Ji(r.connection,JSON.stringify(t)).then((function(n){r.emit("debug",{action:"response",request:t,response:n,provider:r}),e.forEach((function(e,t){var r=n[t];if(r.error){var o=new Error(r.error.message);o.code=r.error.code,o.data=r.error.data,e.reject(o)}else e.resolve(r.result)}))}),(function(n){r.emit("debug",{action:"response",error:n,request:t,provider:r}),e.forEach((function(e){e.reject(n)}))}))}),10)),i}}]),r}(ya),du=new M.b("providers/5.4.5"),pu=function(e){p(r,e);var t=b(r);function r(){return Object(y.a)(this,r),t.apply(this,arguments)}return Object(k.a)(r,null,[{key:"getApiKey",value:function(e){return e&&"string"!==typeof e&&du.throwArgumentError("invalid apiKey","apiKey",e),e||"ETHERS_JS_SHARED"}},{key:"getUrl",value:function(e,t){du.warn("NodeSmith will be discontinued on 2019-12-20; please migrate to another platform.");var r=null;switch(e.name){case"homestead":r="https://ethereum.api.nodesmith.io/v1/mainnet/jsonrpc";break;case"ropsten":r="https://ethereum.api.nodesmith.io/v1/ropsten/jsonrpc";break;case"rinkeby":r="https://ethereum.api.nodesmith.io/v1/rinkeby/jsonrpc";break;case"goerli":r="https://ethereum.api.nodesmith.io/v1/goerli/jsonrpc";break;case"kovan":r="https://ethereum.api.nodesmith.io/v1/kovan/jsonrpc";break;default:du.throwArgumentError("unsupported network","network",arguments[0])}return r+"?apiKey="+t}}]),r}(Oa),vu=new M.b("providers/5.4.5"),mu={homestead:"6004bcd10040261633ade990",ropsten:"6004bd4d0040261633ade991",rinkeby:"6004bda20040261633ade994",goerli:"6004bd860040261633ade992"},gu=function(e){p(r,e);var t=b(r);function r(e,n){if(Object(y.a)(this,r),null==n){var o=I(this instanceof r?this.constructor:void 0,"getNetwork")(e);if(o){var i=mu[o.name];i&&(n={applicationId:i,loadBalancer:!0})}null==n&&vu.throwError("unsupported network",M.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}return t.call(this,e,n)}return Object(k.a)(r,[{key:"isCommunityResource",value:function(){return this.applicationId===mu[this.network.name]}}],[{key:"getApiKey",value:function(e){null==e&&vu.throwArgumentError("PocketProvider.getApiKey does not support null apiKey","apiKey",e);var t={applicationId:null,loadBalancer:!1,applicationSecretKey:null};return"string"===typeof e?t.applicationId=e:null!=e.applicationSecretKey?(vu.assertArgument("string"===typeof e.applicationId,"applicationSecretKey requires an applicationId","applicationId",e.applicationId),vu.assertArgument("string"===typeof e.applicationSecretKey,"invalid applicationSecretKey","applicationSecretKey","[REDACTED]"),t.applicationId=e.applicationId,t.applicationSecretKey=e.applicationSecretKey,t.loadBalancer=!!e.loadBalancer):e.applicationId?(vu.assertArgument("string"===typeof e.applicationId,"apiKey.applicationId must be a string","apiKey.applicationId",e.applicationId),t.applicationId=e.applicationId,t.loadBalancer=!!e.loadBalancer):vu.throwArgumentError("unsupported PocketProvider apiKey","apiKey",e),t}},{key:"getUrl",value:function(e,t){var r=null;switch(e?e.name:"unknown"){case"homestead":r="eth-mainnet.gateway.pokt.network";break;case"ropsten":r="eth-ropsten.gateway.pokt.network";break;case"rinkeby":r="eth-rinkeby.gateway.pokt.network";break;case"goerli":r="eth-goerli.gateway.pokt.network";break;default:vu.throwError("unsupported network",M.b.errors.INVALID_ARGUMENT,{argument:"network",value:e})}var n={url:t.loadBalancer?"https://".concat(r,"/v1/lb/").concat(t.applicationId):"https://".concat(r,"/v1/").concat(t.applicationId),headers:{}};return null!=t.applicationSecretKey&&(n.user="",n.password=t.applicationSecretKey),n}}]),r}(Oa),bu=new M.b("providers/5.4.5"),yu=1;function ku(e,t){var r="Web3LegacyFetcher";return function(n,o){var i=this;"eth_sign"==n&&(e.isMetaMask||e.isStatus)&&(n="personal_sign",o=[o[1],o[0]]);var a={method:n,params:o,id:yu++,jsonrpc:"2.0"};return new Promise((function(e,n){i.emit("debug",{action:"request",fetcher:r,request:z(a),provider:i}),t(a,(function(t,o){if(t)return i.emit("debug",{action:"response",fetcher:r,error:t,request:a,provider:i}),n(t);if(i.emit("debug",{action:"response",fetcher:r,request:a,response:o,provider:i}),o.error){var u=new Error(o.error.message);return u.code=o.error.code,u.data=o.error.data,n(u)}e(o.result)}))}))}}var wu=function(e){p(r,e);var t=b(r);function r(e,n){var o;Object(y.a)(this,r),bu.checkNew(this instanceof r?this.constructor:void 0,r),null==e&&bu.throwArgumentError("missing provider","provider",e);var i=null,a=null,u=null;return"function"===typeof e?(i="unknown:",a=e):(!(i=e.host||e.path||"")&&e.isMetaMask&&(i="metamask"),u=e,e.request?(""===i&&(i="eip-1193:"),a=function(e){return function(t,r){var n=this;null==r&&(r=[]),"eth_sign"==t&&(e.isMetaMask||e.isStatus)&&(t="personal_sign",r=[r[1],r[0]]);var o={method:t,params:r};return this.emit("debug",{action:"request",fetcher:"Eip1193Fetcher",request:z(o),provider:this}),e.request(o).then((function(e){return n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,response:e,provider:n}),e}),(function(e){throw n.emit("debug",{action:"response",fetcher:"Eip1193Fetcher",request:o,error:e,provider:n}),e}))}}(e)):e.sendAsync?a=ku(e,e.sendAsync.bind(e)):e.send?a=ku(e,e.send.bind(e)):bu.throwArgumentError("unsupported provider","provider",e),i||(i="unknown:")),D(c(o=t.call(this,i,n)),"jsonRpcFetchFunc",a),D(c(o),"provider",u),o}return Object(k.a)(r,[{key:"send",value:function(e,t){return this.jsonRpcFetchFunc(e,t)}}]),r}(ya),Tu=new M.b("providers/5.4.5");function Eu(e,t){if(null==e&&(e="homestead"),"string"===typeof e){var r=e.match(/^(ws|http)s?:/i);if(r)switch(r[1]){case"http":return new ya(e);case"ws":return new Aa(e);default:Tu.throwArgumentError("unsupported URL scheme","network",e)}}var n=ci(e);return n&&n._defaultProvider||Tu.throwError("unsupported getDefaultProvider network",M.b.errors.NETWORK_ERROR,{operation:"getDefaultProvider",network:e}),n._defaultProvider({FallbackProvider:au,AlchemyProvider:Ba,CloudflareProvider:Ja,EtherscanProvider:Ga,InfuraProvider:fu,JsonRpcProvider:ya,NodesmithProvider:pu,PocketProvider:gu,Web3Provider:wu,IpcProvider:uu},t)}var Su=new RegExp("^bytes([0-9]+)$"),Au=new RegExp("^(u?int)([0-9]*)$"),Mu=new RegExp("^(.*)\\[([0-9]*)\\]$");function Pu(e,t){if(e.length!=t.length)throw new Error("type/value count mismatch");var r=[];return e.forEach((function(e,n){r.push(function e(t,r,n){switch(t){case"address":return n?Object(E.p)(r,32):Object(E.a)(r);case"string":return Pe(r);case"bytes":return Object(E.a)(r);case"bool":return r=r?"0x01":"0x00",n?Object(E.p)(r,32):Object(E.a)(r)}var o=t.match(Au);if(o){var i=parseInt(o[2]||"256");if(o[2]&&String(i)!==o[2]||i%8!==0||0===i||i>256)throw new Error("invalid number type - "+t);return n&&(i=256),r=F.from(r).toTwos(i),Object(E.p)(r,i/8)}if(o=t.match(Su)){var a=parseInt(o[1]);if(String(a)!==o[1]||0===a||a>32)throw new Error("invalid bytes type - "+t);if(Object(E.a)(r).byteLength!==a)throw new Error("invalid value for "+t);return n?Object(E.a)((r+"0000000000000000000000000000000000000000000000000000000000000000").substring(0,66)):r}if((o=t.match(Mu))&&Array.isArray(r)){var u=o[1];if(parseInt(o[2]||String(r.length))!=r.length)throw new Error("invalid value for "+t);var s=[];return r.forEach((function(t){s.push(e(u,t,!0))})),Object(E.b)(s)}throw new Error("invalid type - "+t)}(e,t[n]))})),Object(E.i)(Object(E.b)(r))}function Cu(e,t){return ee(Pu(e,t))}function Ou(e,t){return bn(Pu(e,t))}function xu(e){var t=Pe(e);if(t.length>31)throw new Error("bytes32 string must be less than 32 bytes");return Object(E.i)(Object(E.b)([t,ti]).slice(0,32))}function Fu(e){var t=Object(E.a)(e);if(32!==t.length)throw new Error("invalid bytes32 - not 32 bytes long");if(0!==t[31])throw new Error("invalid bytes32 string - no null terminator");for(var r=31;0===t[r-1];)r--;return Fe(t.slice(0,r))}var Lu=new M.b("units/5.4.0"),Bu=["wei","kwei","mwei","gwei","szabo","finney","ether"];function Nu(e){var t=String(e).split(".");(t.length>2||!t[0].match(/^-?[0-9]*$/)||t[1]&&!t[1].match(/^[0-9]*$/)||"."===e||"-."===e)&&Lu.throwArgumentError("invalid value","value",e);var r=t[0],n="";for("-"===r.substring(0,1)&&(n="-",r=r.substring(1));"0"===r.substring(0,1);)r=r.substring(1);""===r&&(r="0");var o="";for(2===t.length&&(o="."+(t[1]||"0"));o.length>2&&"0"===o[o.length-1];)o=o.substring(0,o.length-1);for(var i=[];r.length;){if(r.length<=3){i.unshift(r);break}var a=r.length-3;i.unshift(r.substring(a)),r=r.substring(0,a)}return n+i.join(",")+o}function Ru(e,t){if("string"===typeof t){var r=Bu.indexOf(t);-1!==r&&(t=3*r)}return Xr(e,null!=t?t:18)}function Ju(e,t){if("string"!==typeof e&&Lu.throwArgumentError("value must be a string","value",e),"string"===typeof t){var r=Bu.indexOf(t);-1!==r&&(t=3*r)}return Ur(e,null!=t?t:18)}function _u(e){return Ru(e,18)}function Du(e){return Ju(e,18)}var Iu="ethers/5.4.7",ju=new M.b(Iu);r.d(t,"a",(function(){return s}));try{var Xu=window;null==Xu._ethers&&(Xu._ethers=s)}catch(Uu){}},function(e,t,r){"use strict";function n(e,t,r,n,o,i,a){try{var u=e[i](a),s=u.value}catch(l){return void r(l)}u.done?t(s):Promise.resolve(s).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var a=e.apply(t,r);function u(e){n(a,o,i,u,s,"next",e)}function s(e){n(a,o,i,u,s,"throw",e)}u(void 0)}))}}r.d(t,"a",(function(){return o}))},,,function(e,t){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch(n){"object"===typeof window&&(r=window)}e.exports=r},function(e,t){function r(e,t){if(!e)throw new Error(t||"Assertion failed")}e.exports=r,r.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)}},function(e,t,r){"use strict";var n=r(11),o=r(17);function i(){this.pending=null,this.pendingTotal=0,this.blockSize=this.constructor.blockSize,this.outSize=this.constructor.outSize,this.hmacStrength=this.constructor.hmacStrength,this.padLength=this.constructor.padLength/8,this.endian="big",this._delta8=this.blockSize/8,this._delta32=this.blockSize/32}t.BlockHash=i,i.prototype.update=function(e,t){if(e=n.toArray(e,t),this.pending?this.pending=this.pending.concat(e):this.pending=e,this.pendingTotal+=e.length,this.pending.length>=this._delta8){var r=(e=this.pending).length%this._delta8;this.pending=e.slice(e.length-r,e.length),0===this.pending.length&&(this.pending=null),e=n.join32(e,0,e.length-r,this.endian);for(var o=0;o<e.length;o+=this._delta32)this._update(e,o,o+this._delta32)}return this},i.prototype.digest=function(e){return this.update(this._pad()),o(null===this.pending),this._digest(e)},i.prototype._pad=function(){var e=this.pendingTotal,t=this._delta8,r=t-(e+this.padLength)%t,n=new Array(r+this.padLength);n[0]=128;for(var o=1;o<r;o++)n[o]=0;if(e<<=3,"big"===this.endian){for(var i=8;i<this.padLength;i++)n[o++]=0;n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=e>>>24&255,n[o++]=e>>>16&255,n[o++]=e>>>8&255,n[o++]=255&e}else for(n[o++]=255&e,n[o++]=e>>>8&255,n[o++]=e>>>16&255,n[o++]=e>>>24&255,n[o++]=0,n[o++]=0,n[o++]=0,n[o++]=0,i=8;i<this.padLength;i++)n[o++]=0;return n}},function(e,t,r){"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,"a",(function(){return n}))},function(e,t,r){"use strict";var n=r(19);var o=r(23);function i(e){return function(e){if(Array.isArray(e))return Object(n.a)(e)}(e)||function(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||Object(o.a)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}r.d(t,"a",(function(){return i}))},function(e,t,r){"use strict";var n=r(23);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e)){var r=[],n=!0,o=!1,i=void 0;try{for(var a,u=e[Symbol.iterator]();!(n=(a=u.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(s){o=!0,i=s}finally{try{n||null==u.return||u.return()}finally{if(o)throw i}}return r}}(e,t)||Object(n.a)(e,t)||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.")}()}r.d(t,"a",(function(){return o}))},function(e,t){var r,n,o=e.exports={};function i(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function u(e){if(r===setTimeout)return setTimeout(e,0);if((r===i||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"===typeof setTimeout?setTimeout:i}catch(e){r=i}try{n="function"===typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var s,l=[],c=!1,f=-1;function h(){c&&s&&(c=!1,s.length?l=s.concat(l):f=-1,l.length&&d())}function d(){if(!c){var e=u(h);c=!0;for(var t=l.length;t;){for(s=l,l=[];++f<t;)s&&s[f].run();f=-1,t=l.length}s=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function p(e,t){this.fun=e,this.array=t}function v(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];l.push(new p(e,t)),1!==l.length||c||u(d)},p.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=v,o.addListener=v,o.once=v,o.off=v,o.removeListener=v,o.removeAllListeners=v,o.emit=v,o.prependListener=v,o.prependOnceListener=v,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(19);function o(e,t){if(e){if("string"===typeof e)return Object(n.a)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Object(n.a)(e,t):void 0}}},function(e,t,r){"use strict";(function(t){!function(r){function n(e){var t=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),r=1779033703,n=3144134277,o=1013904242,i=2773480762,a=1359893119,u=2600822924,s=528734635,l=1541459225,c=new Uint32Array(64);function f(e){for(var f=0,h=e.length;h>=64;){var d=r,p=n,v=o,m=i,g=a,b=u,y=s,k=l,w=void 0,T=void 0,E=void 0,S=void 0,A=void 0;for(T=0;T<16;T++)E=f+4*T,c[T]=(255&e[E])<<24|(255&e[E+1])<<16|(255&e[E+2])<<8|255&e[E+3];for(T=16;T<64;T++)S=((w=c[T-2])>>>17|w<<15)^(w>>>19|w<<13)^w>>>10,A=((w=c[T-15])>>>7|w<<25)^(w>>>18|w<<14)^w>>>3,c[T]=(S+c[T-7]|0)+(A+c[T-16]|0)|0;for(T=0;T<64;T++)S=(((g>>>6|g<<26)^(g>>>11|g<<21)^(g>>>25|g<<7))+(g&b^~g&y)|0)+(k+(t[T]+c[T]|0)|0)|0,A=((d>>>2|d<<30)^(d>>>13|d<<19)^(d>>>22|d<<10))+(d&p^d&v^p&v)|0,k=y,y=b,b=g,g=m+S|0,m=v,v=p,p=d,d=S+A|0;r=r+d|0,n=n+p|0,o=o+v|0,i=i+m|0,a=a+g|0,u=u+b|0,s=s+y|0,l=l+k|0,f+=64,h-=64}}f(e);var h,d=e.length%64,p=e.length/536870912|0,v=e.length<<3,m=d<56?56:120,g=e.slice(e.length-d,e.length);for(g.push(128),h=d+1;h<m;h++)g.push(0);return g.push(p>>>24&255),g.push(p>>>16&255),g.push(p>>>8&255),g.push(p>>>0&255),g.push(v>>>24&255),g.push(v>>>16&255),g.push(v>>>8&255),g.push(v>>>0&255),f(g),[r>>>24&255,r>>>16&255,r>>>8&255,r>>>0&255,n>>>24&255,n>>>16&255,n>>>8&255,n>>>0&255,o>>>24&255,o>>>16&255,o>>>8&255,o>>>0&255,i>>>24&255,i>>>16&255,i>>>8&255,i>>>0&255,a>>>24&255,a>>>16&255,a>>>8&255,a>>>0&255,u>>>24&255,u>>>16&255,u>>>8&255,u>>>0&255,s>>>24&255,s>>>16&255,s>>>8&255,s>>>0&255,l>>>24&255,l>>>16&255,l>>>8&255,l>>>0&255]}function o(e,t,r){e=e.length<=64?e:n(e);var o,i=64+t.length+4,a=new Array(i),u=new Array(64),s=[];for(o=0;o<64;o++)a[o]=54;for(o=0;o<e.length;o++)a[o]^=e[o];for(o=0;o<t.length;o++)a[64+o]=t[o];for(o=i-4;o<i;o++)a[o]=0;for(o=0;o<64;o++)u[o]=92;for(o=0;o<e.length;o++)u[o]^=e[o];function l(){for(var e=i-1;e>=i-4;e--){if(a[e]++,a[e]<=255)return;a[e]=0}}for(;r>=32;)l(),s=s.concat(n(u.concat(n(a)))),r-=32;return r>0&&(l(),s=s.concat(n(u.concat(n(a))).slice(0,r))),s}function i(e,t,r,n,o){var i;for(l(e,16*(2*r-1),o,0,16),i=0;i<2*r;i++)s(e,16*i,o,16),u(o,n),l(o,0,e,t+16*i,16);for(i=0;i<r;i++)l(e,t+2*i*16,e,16*i,16);for(i=0;i<r;i++)l(e,t+16*(2*i+1),e,16*(i+r),16)}function a(e,t){return e<<t|e>>>32-t}function u(e,t){l(e,0,t,0,16);for(var r=8;r>0;r-=2)t[4]^=a(t[0]+t[12],7),t[8]^=a(t[4]+t[0],9),t[12]^=a(t[8]+t[4],13),t[0]^=a(t[12]+t[8],18),t[9]^=a(t[5]+t[1],7),t[13]^=a(t[9]+t[5],9),t[1]^=a(t[13]+t[9],13),t[5]^=a(t[1]+t[13],18),t[14]^=a(t[10]+t[6],7),t[2]^=a(t[14]+t[10],9),t[6]^=a(t[2]+t[14],13),t[10]^=a(t[6]+t[2],18),t[3]^=a(t[15]+t[11],7),t[7]^=a(t[3]+t[15],9),t[11]^=a(t[7]+t[3],13),t[15]^=a(t[11]+t[7],18),t[1]^=a(t[0]+t[3],7),t[2]^=a(t[1]+t[0],9),t[3]^=a(t[2]+t[1],13),t[0]^=a(t[3]+t[2],18),t[6]^=a(t[5]+t[4],7),t[7]^=a(t[6]+t[5],9),t[4]^=a(t[7]+t[6],13),t[5]^=a(t[4]+t[7],18),t[11]^=a(t[10]+t[9],7),t[8]^=a(t[11]+t[10],9),t[9]^=a(t[8]+t[11],13),t[10]^=a(t[9]+t[8],18),t[12]^=a(t[15]+t[14],7),t[13]^=a(t[12]+t[15],9),t[14]^=a(t[13]+t[12],13),t[15]^=a(t[14]+t[13],18);for(var n=0;n<16;++n)e[n]+=t[n]}function s(e,t,r,n){for(var o=0;o<n;o++)r[o]^=e[t+o]}function l(e,t,r,n,o){for(;o--;)r[n++]=e[t++]}function c(e){if(!e||"number"!==typeof e.length)return!1;for(var t=0;t<e.length;t++){var r=e[t];if("number"!==typeof r||r%1||r<0||r>=256)return!1}return!0}function f(e,t){if("number"!==typeof e||e%1)throw new Error("invalid "+t);return e}function h(e,r,n,a,u,h,d){if(n=f(n,"N"),a=f(a,"r"),u=f(u,"p"),h=f(h,"dkLen"),0===n||0!==(n&n-1))throw new Error("N must be power of 2");if(n>2147483647/128/a)throw new Error("N too large");if(a>2147483647/128/u)throw new Error("r too large");if(!c(e))throw new Error("password must be an array or buffer");if(e=Array.prototype.slice.call(e),!c(r))throw new Error("salt must be an array or buffer");r=Array.prototype.slice.call(r);for(var p=o(e,r,128*u*a),v=new Uint32Array(32*u*a),m=0;m<v.length;m++){var g=4*m;v[m]=(255&p[g+3])<<24|(255&p[g+2])<<16|(255&p[g+1])<<8|(255&p[g+0])<<0}var b,y,k=new Uint32Array(64*a),w=new Uint32Array(32*a*n),T=32*a,E=new Uint32Array(16),S=new Uint32Array(16),A=u*n*2,M=0,P=null,C=!1,O=0,x=0,F=d?parseInt(1e3/a):4294967295,L="undefined"!==typeof t?t:setTimeout,B=function t(){if(C)return d(new Error("cancelled"),M/A);var r;switch(O){case 0:l(v,y=32*x*a,k,0,T),O=1,b=0;case 1:(r=n-b)>F&&(r=F);for(var c=0;c<r;c++)l(k,0,w,(b+c)*T,T),i(k,T,a,E,S);if(b+=r,M+=r,d){var f=parseInt(1e3*M/A);if(f!==P){if(C=d(null,M/A))break;P=f}}if(b<n)break;b=0,O=2;case 2:(r=n-b)>F&&(r=F);for(var m=0;m<r;m++){var g=k[16*(2*a-1)]&n-1;s(w,g*T,k,T),i(k,T,a,E,S)}if(b+=r,M+=r,d){var B=parseInt(1e3*M/A);if(B!==P){if(C=d(null,M/A))break;P=B}}if(b<n)break;if(l(k,0,v,y,T),++x<u){O=0;break}p=[];for(var N=0;N<v.length;N++)p.push(v[N]>>0&255),p.push(v[N]>>8&255),p.push(v[N]>>16&255),p.push(v[N]>>24&255);var R=o(e,p,h);return d&&d(null,1,R),R}d&&L(t)};if(!d)for(;;){var N=B();if(void 0!=N)return N}B()}var d={scrypt:function(e,t,r,n,o,i,a){return new Promise((function(u,s){var l=0;a&&a(0),h(e,t,r,n,o,i,(function(e,t,r){if(e)s(e);else if(r)a&&1!==l&&a(1),u(new Uint8Array(r));else if(a&&t!==l)return l=t,a(t)}))}))},syncScrypt:function(e,t,r,n,o,i){return new Uint8Array(h(e,t,r,n,o,i))}};e.exports=d}()}).call(this,r(59).setImmediate)},,function(e,t,r){"use strict";for(var n="qpzry9x8gf2tvdw0s3jn54khce6mua7l",o={},i=0;i<n.length;i++){var a=n.charAt(i);if(void 0!==o[a])throw new TypeError(a+" is ambiguous");o[a]=i}function u(e){var t=e>>25;return(33554431&e)<<5^996825010&-(t>>0&1)^642813549&-(t>>1&1)^513874426&-(t>>2&1)^1027748829&-(t>>3&1)^705979059&-(t>>4&1)}function s(e){for(var t=1,r=0;r<e.length;++r){var n=e.charCodeAt(r);if(n<33||n>126)return"Invalid prefix ("+e+")";t=u(t)^n>>5}for(t=u(t),r=0;r<e.length;++r){var o=e.charCodeAt(r);t=u(t)^31&o}return t}function l(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";var r=e.toLowerCase(),n=e.toUpperCase();if(e!==r&&e!==n)return"Mixed-case string "+e;var i=(e=r).lastIndexOf("1");if(-1===i)return"No separator character for "+e;if(0===i)return"Missing prefix for "+e;var a=e.slice(0,i),l=e.slice(i+1);if(l.length<6)return"Data too short";var c=s(a);if("string"===typeof c)return c;for(var f=[],h=0;h<l.length;++h){var d=l.charAt(h),p=o[d];if(void 0===p)return"Unknown character "+d;c=u(c)^p,h+6>=l.length||f.push(p)}return 1!==c?"Invalid checksum for "+e:{prefix:a,words:f}}function c(e,t,r,n){for(var o=0,i=0,a=(1<<r)-1,u=[],s=0;s<e.length;++s)for(o=o<<t|e[s],i+=t;i>=r;)i-=r,u.push(o>>i&a);if(n)i>0&&u.push(o<<r-i&a);else{if(i>=t)return"Excess padding";if(o<<r-i&a)return"Non-zero padding"}return u}e.exports={decodeUnsafe:function(){var e=l.apply(null,arguments);if("object"===typeof e)return e},decode:function(e){var t=l.apply(null,arguments);if("object"===typeof t)return t;throw new Error(t)},encode:function(e,t,r){if(r=r||90,e.length+7+t.length>r)throw new TypeError("Exceeds length limit");var o=s(e=e.toLowerCase());if("string"===typeof o)throw new Error(o);for(var i=e+"1",a=0;a<t.length;++a){var l=t[a];if(l>>5!==0)throw new Error("Non 5-bit word");o=u(o)^l,i+=n.charAt(l)}for(a=0;a<6;++a)o=u(o);for(o^=1,a=0;a<6;++a){i+=n.charAt(o>>5*(5-a)&31)}return i},toWordsUnsafe:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t},toWords:function(e){var t=c(e,8,5,!0);if(Array.isArray(t))return t;throw new Error(t)},fromWordsUnsafe:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t},fromWords:function(e){var t=c(e,5,8,!1);if(Array.isArray(t))return t;throw new Error(t)}}},,function(e,t,r){"use strict";var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map((function(e){return t[e]})).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach((function(e){n[e]=e})),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}()?Object.assign:function(e,t){for(var r,u,s=a(e),l=1;l<arguments.length;l++){for(var c in r=Object(arguments[l]))o.call(r,c)&&(s[c]=r[c]);if(n){u=n(r);for(var f=0;f<u.length;f++)i.call(r,u[f])&&(s[u[f]]=r[u[f]])}}return s}},function(e,t,r){"use strict";var n=r(11).rotr32;function o(e,t,r){return e&t^~e&r}function i(e,t,r){return e&t^e&r^t&r}function a(e,t,r){return e^t^r}t.ft_1=function(e,t,r,n){return 0===e?o(t,r,n):1===e||3===e?a(t,r,n):2===e?i(t,r,n):void 0},t.ch32=o,t.maj32=i,t.p32=a,t.s0_256=function(e){return n(e,2)^n(e,13)^n(e,22)},t.s1_256=function(e){return n(e,6)^n(e,11)^n(e,25)},t.g0_256=function(e){return n(e,7)^n(e,18)^e>>>3},t.g1_256=function(e){return n(e,17)^n(e,19)^e>>>10}},function(e,t,r){"use strict";var n=r(11),o=r(18),i=r(29),a=r(17),u=n.sum32,s=n.sum32_4,l=n.sum32_5,c=i.ch32,f=i.maj32,h=i.s0_256,d=i.s1_256,p=i.g0_256,v=i.g1_256,m=o.BlockHash,g=[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 b(){if(!(this instanceof b))return new b;m.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}n.inherits(b,m),e.exports=b,b.blockSize=512,b.outSize=256,b.hmacStrength=192,b.padLength=64,b.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=s(v(r[n-2]),r[n-7],p(r[n-15]),r[n-16]);var o=this.h[0],i=this.h[1],m=this.h[2],g=this.h[3],b=this.h[4],y=this.h[5],k=this.h[6],w=this.h[7];for(a(this.k.length===r.length),n=0;n<r.length;n++){var T=l(w,d(b),c(b,y,k),this.k[n],r[n]),E=u(h(o),f(o,i,m));w=k,k=y,y=b,b=u(g,T),g=m,m=i,i=o,o=u(T,E)}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],m),this.h[3]=u(this.h[3],g),this.h[4]=u(this.h[4],b),this.h[5]=u(this.h[5],y),this.h[6]=u(this.h[6],k),this.h[7]=u(this.h[7],w)},b.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(11),o=r(18),i=r(17),a=n.rotr64_hi,u=n.rotr64_lo,s=n.shr64_hi,l=n.shr64_lo,c=n.sum64,f=n.sum64_hi,h=n.sum64_lo,d=n.sum64_4_hi,p=n.sum64_4_lo,v=n.sum64_5_hi,m=n.sum64_5_lo,g=o.BlockHash,b=[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 y(){if(!(this instanceof y))return new y;g.call(this),this.h=[1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209],this.k=b,this.W=new Array(160)}function k(e,t,r,n,o){var i=e&r^~e&o;return i<0&&(i+=4294967296),i}function w(e,t,r,n,o,i){var a=t&n^~t&i;return a<0&&(a+=4294967296),a}function T(e,t,r,n,o){var i=e&r^e&o^r&o;return i<0&&(i+=4294967296),i}function E(e,t,r,n,o,i){var a=t&n^t&i^n&i;return a<0&&(a+=4294967296),a}function S(e,t){var r=a(e,t,28)^a(t,e,2)^a(t,e,7);return r<0&&(r+=4294967296),r}function A(e,t){var r=u(e,t,28)^u(t,e,2)^u(t,e,7);return r<0&&(r+=4294967296),r}function M(e,t){var r=a(e,t,14)^a(e,t,18)^a(t,e,9);return r<0&&(r+=4294967296),r}function P(e,t){var r=u(e,t,14)^u(e,t,18)^u(t,e,9);return r<0&&(r+=4294967296),r}function C(e,t){var r=a(e,t,1)^a(e,t,8)^s(e,t,7);return r<0&&(r+=4294967296),r}function O(e,t){var r=u(e,t,1)^u(e,t,8)^l(e,t,7);return r<0&&(r+=4294967296),r}function x(e,t){var r=a(e,t,19)^a(t,e,29)^s(e,t,6);return r<0&&(r+=4294967296),r}function F(e,t){var r=u(e,t,19)^u(t,e,29)^l(e,t,6);return r<0&&(r+=4294967296),r}n.inherits(y,g),e.exports=y,y.blockSize=1024,y.outSize=512,y.hmacStrength=192,y.padLength=128,y.prototype._prepareBlock=function(e,t){for(var r=this.W,n=0;n<32;n++)r[n]=e[t+n];for(;n<r.length;n+=2){var o=x(r[n-4],r[n-3]),i=F(r[n-4],r[n-3]),a=r[n-14],u=r[n-13],s=C(r[n-30],r[n-29]),l=O(r[n-30],r[n-29]),c=r[n-32],f=r[n-31];r[n]=d(o,i,a,u,s,l,c,f),r[n+1]=p(o,i,a,u,s,l,c,f)}},y.prototype._update=function(e,t){this._prepareBlock(e,t);var r=this.W,n=this.h[0],o=this.h[1],a=this.h[2],u=this.h[3],s=this.h[4],l=this.h[5],d=this.h[6],p=this.h[7],g=this.h[8],b=this.h[9],y=this.h[10],C=this.h[11],O=this.h[12],x=this.h[13],F=this.h[14],L=this.h[15];i(this.k.length===r.length);for(var B=0;B<r.length;B+=2){var N=F,R=L,J=M(g,b),_=P(g,b),D=k(g,b,y,C,O),I=w(g,b,y,C,O,x),j=this.k[B],X=this.k[B+1],U=r[B],H=r[B+1],G=v(N,R,J,_,D,I,j,X,U,H),z=m(N,R,J,_,D,I,j,X,U,H);N=S(n,o),R=A(n,o),J=T(n,o,a,u,s),_=E(n,o,a,u,s,l);var V=f(N,R,J,_),Z=h(N,R,J,_);F=O,L=x,O=y,x=C,y=g,C=b,g=f(d,p,G,z),b=h(p,p,G,z),d=s,p=l,s=a,l=u,a=n,u=o,n=f(G,z,V,Z),o=h(G,z,V,Z)}c(this.h,0,n,o),c(this.h,2,a,u),c(this.h,4,s,l),c(this.h,6,d,p),c(this.h,8,g,b),c(this.h,10,y,C),c(this.h,12,O,x),c(this.h,14,F,L)},y.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}}(),e.exports=r(41)},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return U}));var n=r(5),o=r.n(n),i=r(9),a=r.n(i);"undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e||"undefined"!==typeof self&&self;function u(e,t,r){return e(r={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}((void 0===t||null===t)&&r.path)}},r.exports),r.exports}var s=l;function l(e,t){if(!e)throw new Error(t||"Assertion failed")}l.equal=function(e,t,r){if(e!=t)throw new Error(r||"Assertion failed: "+e+" != "+t)};var c=u((function(e,t){var r=t;function n(e){return 1===e.length?"0"+e:e}function o(e){for(var t="",r=0;r<e.length;r++)t+=n(e[r].toString(16));return t}r.toArray=function(e,t){if(Array.isArray(e))return e.slice();if(!e)return[];var r=[];if("string"!==typeof e){for(var n=0;n<e.length;n++)r[n]=0|e[n];return r}if("hex"===t){(e=e.replace(/[^a-z0-9]+/gi,"")).length%2!==0&&(e="0"+e);for(n=0;n<e.length;n+=2)r.push(parseInt(e[n]+e[n+1],16))}else for(n=0;n<e.length;n++){var o=e.charCodeAt(n),i=o>>8,a=255&o;i?r.push(i,a):r.push(a)}return r},r.zero2=n,r.toHex=o,r.encode=function(e,t){return"hex"===t?o(e):e}})),f=u((function(e,t){var r=t;r.assert=s,r.toArray=c.toArray,r.zero2=c.zero2,r.toHex=c.toHex,r.encode=c.encode,r.getNAF=function(e,t,r){var n=new Array(Math.max(e.bitLength(),r)+1);n.fill(0);for(var o=1<<t+1,i=e.clone(),a=0;a<n.length;a++){var u,s=i.andln(o-1);i.isOdd()?(u=s>(o>>1)-1?(o>>1)-s:s,i.isubn(u)):u=0,n[a]=u,i.iushrn(1)}return n},r.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n,o=0,i=0;e.cmpn(-o)>0||t.cmpn(-i)>0;){var a,u,s=e.andln(3)+o&3,l=t.andln(3)+i&3;3===s&&(s=-1),3===l&&(l=-1),a=0===(1&s)?0:3!==(n=e.andln(7)+o&7)&&5!==n||2!==l?s:-s,r[0].push(a),u=0===(1&l)?0:3!==(n=t.andln(7)+i&7)&&5!==n||2!==s?l:-l,r[1].push(u),2*o===a+1&&(o=1-o),2*i===u+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},r.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},r.parseBytes=function(e){return"string"===typeof e?r.toArray(e,"hex"):e},r.intFromLE=function(e){return new o.a(e,"hex","le")}})),h=f.getNAF,d=f.getJSF,p=f.assert;function v(e,t){this.type=e,this.p=new o.a(t.p,16),this.red=t.prime?o.a.red(t.prime):o.a.mont(this.p),this.zero=new o.a(0).toRed(this.red),this.one=new o.a(1).toRed(this.red),this.two=new o.a(2).toRed(this.red),this.n=t.n&&new o.a(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}var m=v;function g(e,t){this.curve=e,this.type=t,this.precomputed=null}v.prototype.point=function(){throw new Error("Not implemented")},v.prototype.validate=function(){throw new Error("Not implemented")},v.prototype._fixedNafMul=function(e,t){p(e.precomputed);var r=e._getDoubles(),n=h(t,1,this._bitLength),o=(1<<r.step+1)-(r.step%2===0?2:1);o/=3;var i,a,u=[];for(i=0;i<n.length;i+=r.step){a=0;for(var s=i+r.step-1;s>=i;s--)a=(a<<1)+n[s];u.push(a)}for(var l=this.jpoint(null,null,null),c=this.jpoint(null,null,null),f=o;f>0;f--){for(i=0;i<u.length;i++)(a=u[i])===f?c=c.mixedAdd(r.points[i]):a===-f&&(c=c.mixedAdd(r.points[i].neg()));l=l.add(c)}return l.toP()},v.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var o=n.points,i=h(t,r,this._bitLength),a=this.jpoint(null,null,null),u=i.length-1;u>=0;u--){for(var s=0;u>=0&&0===i[u];u--)s++;if(u>=0&&s++,a=a.dblp(s),u<0)break;var l=i[u];p(0!==l),a="affine"===e.type?l>0?a.mixedAdd(o[l-1>>1]):a.mixedAdd(o[-l-1>>1].neg()):l>0?a.add(o[l-1>>1]):a.add(o[-l-1>>1].neg())}return"affine"===e.type?a.toP():a},v.prototype._wnafMulAdd=function(e,t,r,n,o){var i,a,u,s=this._wnafT1,l=this._wnafT2,c=this._wnafT3,f=0;for(i=0;i<n;i++){var p=(u=t[i])._getNAFPoints(e);s[i]=p.wnd,l[i]=p.points}for(i=n-1;i>=1;i-=2){var v=i-1,m=i;if(1===s[v]&&1===s[m]){var g=[t[v],null,null,t[m]];0===t[v].y.cmp(t[m].y)?(g[1]=t[v].add(t[m]),g[2]=t[v].toJ().mixedAdd(t[m].neg())):0===t[v].y.cmp(t[m].y.redNeg())?(g[1]=t[v].toJ().mixedAdd(t[m]),g[2]=t[v].add(t[m].neg())):(g[1]=t[v].toJ().mixedAdd(t[m]),g[2]=t[v].toJ().mixedAdd(t[m].neg()));var b=[-3,-1,-5,-7,0,7,5,1,3],y=d(r[v],r[m]);for(f=Math.max(y[0].length,f),c[v]=new Array(f),c[m]=new Array(f),a=0;a<f;a++){var k=0|y[0][a],w=0|y[1][a];c[v][a]=b[3*(k+1)+(w+1)],c[m][a]=0,l[v]=g}}else c[v]=h(r[v],s[v],this._bitLength),c[m]=h(r[m],s[m],this._bitLength),f=Math.max(c[v].length,f),f=Math.max(c[m].length,f)}var T=this.jpoint(null,null,null),E=this._wnafT4;for(i=f;i>=0;i--){for(var S=0;i>=0;){var A=!0;for(a=0;a<n;a++)E[a]=0|c[a][i],0!==E[a]&&(A=!1);if(!A)break;S++,i--}if(i>=0&&S++,T=T.dblp(S),i<0)break;for(a=0;a<n;a++){var M=E[a];0!==M&&(M>0?u=l[a][M-1>>1]:M<0&&(u=l[a][-M-1>>1].neg()),T="affine"===u.type?T.mixedAdd(u):T.add(u))}}for(i=0;i<n;i++)l[i]=null;return o?T:T.toP()},v.BasePoint=g,g.prototype.eq=function(){throw new Error("Not implemented")},g.prototype.validate=function(){return this.curve.validate(this)},v.prototype.decodePoint=function(e,t){e=f.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1===2*r)return 6===e[0]?p(e[e.length-1]%2===0):7===e[0]&&p(e[e.length-1]%2===1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw new Error("Unknown point format")},g.prototype.encodeCompressed=function(e){return this.encode(e,!0)},g.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},g.prototype.encode=function(e,t){return f.encode(this._encode(t),e)},g.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},g.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},g.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,o=0;o<t;o+=e){for(var i=0;i<e;i++)n=n.dbl();r.push(n)}return{step:e,points:r}},g.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),o=1;o<r;o++)t[o]=t[o-1].add(n);return{wnd:e,points:t}},g.prototype._getBeta=function(){return null},g.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t};var b=u((function(e){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}})),y=f.assert;function k(e){m.call(this,"short",e),this.a=new o.a(e.a,16).toRed(this.red),this.b=new o.a(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}b(k,m);var w=k;function T(e,t,r,n){m.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new o.a(t,16),this.y=new o.a(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function E(e,t,r,n){m.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o.a(0)):(this.x=new o.a(t,16),this.y=new o.a(r,16),this.z=new o.a(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}k.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var t,r;if(e.beta)t=new o.a(e.beta,16).toRed(this.red);else{var n=this._getEndoRoots(this.p);t=(t=n[0].cmp(n[1])<0?n[0]:n[1]).toRed(this.red)}if(e.lambda)r=new o.a(e.lambda,16);else{var i=this._getEndoRoots(this.n);0===this.g.mul(i[0]).x.cmp(this.g.x.redMul(t))?r=i[0]:(r=i[1],y(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return{beta:t,lambda:r,basis:e.basis?e.basis.map((function(e){return{a:new o.a(e.a,16),b:new o.a(e.b,16)}})):this._getEndoBasis(r)}}},k.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:o.a.mont(e),r=new o.a(2).toRed(t).redInvm(),n=r.redNeg(),i=new o.a(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(i).fromRed(),n.redSub(i).fromRed()]},k.prototype._getEndoBasis=function(e){for(var t,r,n,i,a,u,s,l,c,f=this.n.ushrn(Math.floor(this.n.bitLength()/2)),h=e,d=this.n.clone(),p=new o.a(1),v=new o.a(0),m=new o.a(0),g=new o.a(1),b=0;0!==h.cmpn(0);){var y=d.div(h);l=d.sub(y.mul(h)),c=m.sub(y.mul(p));var k=g.sub(y.mul(v));if(!n&&l.cmp(f)<0)t=s.neg(),r=p,n=l.neg(),i=c;else if(n&&2===++b)break;s=l,d=h,h=l,m=p,p=c,g=v,v=k}a=l.neg(),u=c;var w=n.sqr().add(i.sqr());return a.sqr().add(u.sqr()).cmp(w)>=0&&(a=t,u=r),n.negative&&(n=n.neg(),i=i.neg()),a.negative&&(a=a.neg(),u=u.neg()),[{a:n,b:i},{a:a,b:u}]},k.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],o=n.b.mul(e).divRound(this.n),i=r.b.neg().mul(e).divRound(this.n),a=o.mul(r.a),u=i.mul(n.a),s=o.mul(r.b),l=i.mul(n.b);return{k1:e.sub(a).sub(u),k2:s.add(l).neg()}},k.prototype.pointFromX=function(e,t){(e=new o.a(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw new Error("invalid point");var i=n.fromRed().isOdd();return(t&&!i||!t&&i)&&(n=n.redNeg()),this.point(e,n)},k.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),o=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(o).cmpn(0)},k.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,o=this._endoWnafT2,i=0;i<e.length;i++){var a=this._endoSplit(t[i]),u=e[i],s=u._getBeta();a.k1.negative&&(a.k1.ineg(),u=u.neg(!0)),a.k2.negative&&(a.k2.ineg(),s=s.neg(!0)),n[2*i]=u,n[2*i+1]=s,o[2*i]=a.k1,o[2*i+1]=a.k2}for(var l=this._wnafMulAdd(1,n,o,2*i,r),c=0;c<2*i;c++)n[c]=null,o[c]=null;return l},b(T,m.BasePoint),k.prototype.point=function(e,t,r){return new T(this,e,t,r)},k.prototype.pointFromJSON=function(e,t){return T.fromJSON(this,e,t)},T.prototype._getBeta=function(){if(this.curve.endo){var e=this.precomputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},T.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},T.fromJSON=function(e,t,r){"string"===typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function o(t){return e.point(t[0],t[1],r)}var i=t[2];return n.precomputed={beta:null,doubles:i.doubles&&{step:i.doubles.step,points:[n].concat(i.doubles.points.map(o))},naf:i.naf&&{wnd:i.naf.wnd,points:[n].concat(i.naf.points.map(o))}},n},T.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},T.prototype.isInfinity=function(){return this.inf},T.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e))return this.curve.point(null,null);if(0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},T.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),o=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),i=o.redSqr().redISub(this.x.redAdd(this.x)),a=o.redMul(this.x.redSub(i)).redISub(this.y);return this.curve.point(i,a)},T.prototype.getX=function(){return this.x.fromRed()},T.prototype.getY=function(){return this.y.fromRed()},T.prototype.mul=function(e){return e=new o.a(e,16),this.isInfinity()?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},T.prototype.mulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o):this.curve._wnafMulAdd(1,n,o,2)},T.prototype.jmulAdd=function(e,t,r){var n=[this,t],o=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,o,!0):this.curve._wnafMulAdd(1,n,o,2,!0)},T.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},T.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},T.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},b(E,m.BasePoint),k.prototype.jpoint=function(e,t,r){return new E(this,e,t,r)},E.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},E.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},E.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),o=e.x.redMul(r),i=this.y.redMul(t.redMul(e.z)),a=e.y.redMul(r.redMul(this.z)),u=n.redSub(o),s=i.redSub(a);if(0===u.cmpn(0))return 0!==s.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=u.redSqr(),c=l.redMul(u),f=n.redMul(l),h=s.redSqr().redIAdd(c).redISub(f).redISub(f),d=s.redMul(f.redISub(h)).redISub(i.redMul(c)),p=this.z.redMul(e.z).redMul(u);return this.curve.jpoint(h,d,p)},E.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),o=this.y,i=e.y.redMul(t).redMul(this.z),a=r.redSub(n),u=o.redSub(i);if(0===a.cmpn(0))return 0!==u.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var s=a.redSqr(),l=s.redMul(a),c=r.redMul(s),f=u.redSqr().redIAdd(l).redISub(c).redISub(c),h=u.redMul(c.redISub(f)).redISub(o.redMul(l)),d=this.z.redMul(a);return this.curve.jpoint(f,h,d)},E.prototype.dblp=function(e){if(0===e)return this;if(this.isInfinity())return this;if(!e)return this.dbl();var t;if(this.curve.zeroA||this.curve.threeA){var r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,o=this.curve.tinv,i=this.x,a=this.y,u=this.z,s=u.redSqr().redSqr(),l=a.redAdd(a);for(t=0;t<e;t++){var c=i.redSqr(),f=l.redSqr(),h=f.redSqr(),d=c.redAdd(c).redIAdd(c).redIAdd(n.redMul(s)),p=i.redMul(f),v=d.redSqr().redISub(p.redAdd(p)),m=p.redISub(v),g=d.redMul(m);g=g.redIAdd(g).redISub(h);var b=l.redMul(u);t+1<e&&(s=s.redMul(h)),i=v,u=b,l=g}return this.curve.jpoint(i,l.redMul(o),u)},E.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},E.prototype._zeroDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n),s=u.redSqr().redISub(a).redISub(a),l=i.redIAdd(i);l=(l=l.redIAdd(l)).redIAdd(l),e=s,t=u.redMul(a.redISub(s)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.x.redSqr(),f=this.y.redSqr(),h=f.redSqr(),d=this.x.redAdd(f).redSqr().redISub(c).redISub(h);d=d.redIAdd(d);var p=c.redAdd(c).redIAdd(c),v=p.redSqr(),m=h.redIAdd(h);m=(m=m.redIAdd(m)).redIAdd(m),e=v.redISub(d).redISub(d),t=p.redMul(d.redISub(e)).redISub(m),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},E.prototype._threeDbl=function(){var e,t,r;if(this.zOne){var n=this.x.redSqr(),o=this.y.redSqr(),i=o.redSqr(),a=this.x.redAdd(o).redSqr().redISub(n).redISub(i);a=a.redIAdd(a);var u=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),s=u.redSqr().redISub(a).redISub(a);e=s;var l=i.redIAdd(i);l=(l=l.redIAdd(l)).redIAdd(l),t=u.redMul(a.redISub(s)).redISub(l),r=this.y.redAdd(this.y)}else{var c=this.z.redSqr(),f=this.y.redSqr(),h=this.x.redMul(f),d=this.x.redSub(c).redMul(this.x.redAdd(c));d=d.redAdd(d).redIAdd(d);var p=h.redIAdd(h),v=(p=p.redIAdd(p)).redAdd(p);e=d.redSqr().redISub(v),r=this.y.redAdd(this.z).redSqr().redISub(f).redISub(c);var m=f.redSqr();m=(m=(m=m.redIAdd(m)).redIAdd(m)).redIAdd(m),t=d.redMul(p.redISub(e)).redISub(m)}return this.curve.jpoint(e,t,r)},E.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,o=n.redSqr().redSqr(),i=t.redSqr(),a=r.redSqr(),u=i.redAdd(i).redIAdd(i).redIAdd(e.redMul(o)),s=t.redAdd(t),l=(s=s.redIAdd(s)).redMul(a),c=u.redSqr().redISub(l.redAdd(l)),f=l.redISub(c),h=a.redSqr();h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=u.redMul(f).redISub(h),p=r.redAdd(r).redMul(n);return this.curve.jpoint(c,d,p)},E.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),o=e.redAdd(e).redIAdd(e),i=o.redSqr(),a=this.x.redAdd(t).redSqr().redISub(e).redISub(n),u=(a=(a=(a=a.redIAdd(a)).redAdd(a).redIAdd(a)).redISub(i)).redSqr(),s=n.redIAdd(n);s=(s=(s=s.redIAdd(s)).redIAdd(s)).redIAdd(s);var l=o.redIAdd(a).redSqr().redISub(i).redISub(u).redISub(s),c=t.redMul(l);c=(c=c.redIAdd(c)).redIAdd(c);var f=this.x.redMul(u).redISub(c);f=(f=f.redIAdd(f)).redIAdd(f);var h=this.y.redMul(l.redMul(s.redISub(l)).redISub(a.redMul(u)));h=(h=(h=h.redIAdd(h)).redIAdd(h)).redIAdd(h);var d=this.z.redAdd(a).redSqr().redISub(r).redISub(u);return this.curve.jpoint(f,h,d)},E.prototype.mul=function(e,t){return e=new o.a(e,t),this.curve._wnafMul(this,e)},E.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),o=r.redMul(e.z);return 0===this.y.redMul(o).redISub(e.y.redMul(n)).cmpn(0)},E.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),o=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(o),0===this.x.cmp(r))return!0}},E.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},E.prototype.isInfinity=function(){return 0===this.z.cmpn(0)};var S=u((function(e,t){var r=t;r.base=m,r.short=w,r.mont=null,r.edwards=null})),A=u((function(e,t){var r,n=t,o=f.assert;function i(e){"short"===e.type?this.curve=new S.short(e):"edwards"===e.type?this.curve=new S.edwards(e):this.curve=new S.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,o(this.g.validate(),"Invalid curve"),o(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function u(e,t){Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get:function(){var r=new i(t);return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,value:r}),r}})}n.PresetCurve=i,u("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:a.a.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),u("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:a.a.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),u("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:a.a.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),u("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:a.a.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"]}),u("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:a.a.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"]}),u("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:a.a.sha256,gRed:!1,g:["9"]}),u("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:a.a.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{r=null.crash()}catch(s){r=void 0}u("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:a.a.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",r]})}));function M(e){if(!(this instanceof M))return new M(e);this.hash=e.hash,this.predResist=!!e.predResist,this.outLen=this.hash.outSize,this.minEntropy=e.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var t=c.toArray(e.entropy,e.entropyEnc||"hex"),r=c.toArray(e.nonce,e.nonceEnc||"hex"),n=c.toArray(e.pers,e.persEnc||"hex");s(t.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(t,r,n)}var P=M;M.prototype._init=function(e,t,r){var n=e.concat(t).concat(r);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o<this.V.length;o++)this.K[o]=0,this.V[o]=1;this._update(n),this._reseed=1,this.reseedInterval=281474976710656},M.prototype._hmac=function(){return new a.a.hmac(this.hash,this.K)},M.prototype._update=function(e){var t=this._hmac().update(this.V).update([0]);e&&(t=t.update(e)),this.K=t.digest(),this.V=this._hmac().update(this.V).digest(),e&&(this.K=this._hmac().update(this.V).update([1]).update(e).digest(),this.V=this._hmac().update(this.V).digest())},M.prototype.reseed=function(e,t,r,n){"string"!==typeof t&&(n=r,r=t,t=null),e=c.toArray(e,t),r=c.toArray(r,n),s(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(e.concat(r||[])),this._reseed=1},M.prototype.generate=function(e,t,r,n){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!==typeof t&&(n=r,r=t,t=null),r&&(r=c.toArray(r,n||"hex"),this._update(r));for(var o=[];o.length<e;)this.V=this._hmac().update(this.V).digest(),o=o.concat(this.V);var i=o.slice(0,e);return this._update(r),this._reseed++,c.encode(i,t)};var C=f.assert;function O(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}var x=O;O.fromPublic=function(e,t,r){return t instanceof O?t:new O(e,{pub:t,pubEnc:r})},O.fromPrivate=function(e,t,r){return t instanceof O?t:new O(e,{priv:t,privEnc:r})},O.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},O.prototype.getPublic=function(e,t){return"string"===typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t?this.pub.encode(t,e):this.pub},O.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},O.prototype._importPrivate=function(e,t){this.priv=new o.a(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},O.prototype._importPublic=function(e,t){if(e.x||e.y)return"mont"===this.ec.curve.type?C(e.x,"Need x coordinate"):"short"!==this.ec.curve.type&&"edwards"!==this.ec.curve.type||C(e.x&&e.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(e.x,e.y));this.pub=this.ec.curve.decodePoint(e,t)},O.prototype.derive=function(e){return e.validate()||C(e.validate(),"public point not validated"),e.mul(this.priv).getX()},O.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},O.prototype.verify=function(e,t){return this.ec.verify(e,t,this)},O.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"};var F=f.assert;function L(e,t){if(e instanceof L)return e;this._importDER(e,t)||(F(e.r&&e.s,"Signature without r or s"),this.r=new o.a(e.r,16),this.s=new o.a(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}var B=L;function N(){this.place=0}function R(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4)return!1;for(var o=0,i=0,a=t.place;i<n;i++,a++)o<<=8,o|=e[a],o>>>=0;return!(o<=127)&&(t.place=a,o)}function J(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function _(e,t){if(t<128)e.push(t);else{var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}}L.prototype._importDER=function(e,t){e=f.toArray(e,t);var r=new N;if(48!==e[r.place++])return!1;var n=R(e,r);if(!1===n)return!1;if(n+r.place!==e.length)return!1;if(2!==e[r.place++])return!1;var i=R(e,r);if(!1===i)return!1;var a=e.slice(r.place,i+r.place);if(r.place+=i,2!==e[r.place++])return!1;var u=R(e,r);if(!1===u)return!1;if(e.length!==u+r.place)return!1;var s=e.slice(r.place,u+r.place);if(0===a[0]){if(!(128&a[1]))return!1;a=a.slice(1)}if(0===s[0]){if(!(128&s[1]))return!1;s=s.slice(1)}return this.r=new o.a(a),this.s=new o.a(s),this.recoveryParam=null,!0},L.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=J(t),r=J(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];_(n,t.length),(n=n.concat(t)).push(2),_(n,r.length);var o=n.concat(r),i=[48];return _(i,o.length),i=i.concat(o),f.encode(i,e)};var D=function(){throw new Error("unsupported")},I=f.assert;function j(e){if(!(this instanceof j))return new j(e);"string"===typeof e&&(I(Object.prototype.hasOwnProperty.call(A,e),"Unknown curve "+e),e=A[e]),e instanceof A.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}var X=j;j.prototype.keyPair=function(e){return new x(this,e)},j.prototype.keyFromPrivate=function(e,t){return x.fromPrivate(this,e,t)},j.prototype.keyFromPublic=function(e,t){return x.fromPublic(this,e,t)},j.prototype.genKeyPair=function(e){e||(e={});for(var t=new P({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||D(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),n=this.n.sub(new o.a(2));;){var i=new o.a(t.generate(r));if(!(i.cmp(n)>0))return i.iaddn(1),this.keyFromPrivate(i)}},j.prototype._truncateToN=function(e,t){var r=8*e.byteLength()-this.n.bitLength();return r>0&&(e=e.ushrn(r)),!t&&e.cmp(this.n)>=0?e.sub(this.n):e},j.prototype.sign=function(e,t,r,n){"object"===typeof r&&(n=r,r=null),n||(n={}),t=this.keyFromPrivate(t,r),e=this._truncateToN(new o.a(e,16));for(var i=this.n.byteLength(),a=t.getPrivate().toArray("be",i),u=e.toArray("be",i),s=new P({hash:this.hash,entropy:a,nonce:u,pers:n.pers,persEnc:n.persEnc||"utf8"}),l=this.n.sub(new o.a(1)),c=0;;c++){var f=n.k?n.k(c):new o.a(s.generate(this.n.byteLength()));if(!((f=this._truncateToN(f,!0)).cmpn(1)<=0||f.cmp(l)>=0)){var h=this.g.mul(f);if(!h.isInfinity()){var d=h.getX(),p=d.umod(this.n);if(0!==p.cmpn(0)){var v=f.invm(this.n).mul(p.mul(t.getPrivate()).iadd(e));if(0!==(v=v.umod(this.n)).cmpn(0)){var m=(h.getY().isOdd()?1:0)|(0!==d.cmp(p)?2:0);return n.canonical&&v.cmp(this.nh)>0&&(v=this.n.sub(v),m^=1),new B({r:p,s:v,recoveryParam:m})}}}}}},j.prototype.verify=function(e,t,r,n){e=this._truncateToN(new o.a(e,16)),r=this.keyFromPublic(r,n);var i=(t=new B(t,"hex")).r,a=t.s;if(i.cmpn(1)<0||i.cmp(this.n)>=0)return!1;if(a.cmpn(1)<0||a.cmp(this.n)>=0)return!1;var u,s=a.invm(this.n),l=s.mul(e).umod(this.n),c=s.mul(i).umod(this.n);return this.curve._maxwellTrick?!(u=this.g.jmulAdd(l,r.getPublic(),c)).isInfinity()&&u.eqXToP(i):!(u=this.g.mulAdd(l,r.getPublic(),c)).isInfinity()&&0===u.getX().umod(this.n).cmp(i)},j.prototype.recoverPubKey=function(e,t,r,n){I((3&r)===r,"The recovery param is more than two bits"),t=new B(t,n);var i=this.n,a=new o.a(e),u=t.r,s=t.s,l=1&r,c=r>>1;if(u.cmp(this.curve.p.umod(this.curve.n))>=0&&c)throw new Error("Unable to find sencond key candinate");u=c?this.curve.pointFromX(u.add(this.curve.n),l):this.curve.pointFromX(u,l);var f=t.r.invm(i),h=i.sub(a).mul(f).umod(i),d=s.mul(f).umod(i);return this.g.mulAdd(h,u,d)},j.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new B(t,n)).recoveryParam)return t.recoveryParam;for(var o=0;o<4;o++){var i;try{i=this.recoverPubKey(e,t,o)}catch(e){continue}if(i.eq(r))return o}throw new Error("Unable to find valid recovery factor")};var U=u((function(e,t){var r=t;r.version="6.5.4",r.utils=f,r.rand=function(){throw new Error("unsupported")},r.curve=S,r.curves=A,r.ec=X,r.eddsa=null})).ec}).call(this,r(16))},function(e,t,r){(function(t,r){!function(){"use strict";var n="object"===typeof window?window:{};!n.JS_SHA3_NO_NODE_JS&&"object"===typeof t&&t.versions&&t.versions.node&&(n=r);for(var o=!n.JS_SHA3_NO_COMMON_JS&&"object"===typeof e&&e.exports,i="0123456789abcdef".split(""),a=[0,8,16,24],u=[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],s=[224,256,384,512],l=["hex","buffer","arrayBuffer","array"],c=function(e,t,r){return function(n){return new w(e,t,e).update(n)[r]()}},f=function(e,t,r){return function(n,o){return new w(e,t,o).update(n)[r]()}},h=function(e,t){var r=c(e,t,"hex");r.create=function(){return new w(e,t,e)},r.update=function(e){return r.create().update(e)};for(var n=0;n<l.length;++n){var o=l[n];r[o]=c(e,t,o)}return r},d=[{name:"keccak",padding:[1,256,65536,16777216],bits:s,createMethod:h},{name:"sha3",padding:[6,1536,393216,100663296],bits:s,createMethod:h},{name:"shake",padding:[31,7936,2031616,520093696],bits:[128,256],createMethod:function(e,t){var r=f(e,t,"hex");r.create=function(r){return new w(e,t,r)},r.update=function(e,t){return r.create(t).update(e)};for(var n=0;n<l.length;++n){var o=l[n];r[o]=f(e,t,o)}return r}}],p={},v=[],m=0;m<d.length;++m)for(var g=d[m],b=g.bits,y=0;y<b.length;++y){var k=g.name+"_"+b[y];v.push(k),p[k]=g.createMethod(b[y],g.padding)}function w(e,t,r){this.blocks=[],this.s=[],this.padding=t,this.outputBits=r,this.reset=!0,this.block=0,this.start=0,this.blockCount=1600-(e<<1)>>5,this.byteCount=this.blockCount<<2,this.outputBlocks=r>>5,this.extraBytes=(31&r)>>3;for(var n=0;n<50;++n)this.s[n]=0}w.prototype.update=function(e){var t="string"!==typeof e;t&&e.constructor===ArrayBuffer&&(e=new Uint8Array(e));for(var r,n,o=e.length,i=this.blocks,u=this.byteCount,s=this.blockCount,l=0,c=this.s;l<o;){if(this.reset)for(this.reset=!1,i[0]=this.block,r=1;r<s+1;++r)i[r]=0;if(t)for(r=this.start;l<o&&r<u;++l)i[r>>2]|=e[l]<<a[3&r++];else for(r=this.start;l<o&&r<u;++l)(n=e.charCodeAt(l))<128?i[r>>2]|=n<<a[3&r++]:n<2048?(i[r>>2]|=(192|n>>6)<<a[3&r++],i[r>>2]|=(128|63&n)<<a[3&r++]):n<55296||n>=57344?(i[r>>2]|=(224|n>>12)<<a[3&r++],i[r>>2]|=(128|n>>6&63)<<a[3&r++],i[r>>2]|=(128|63&n)<<a[3&r++]):(n=65536+((1023&n)<<10|1023&e.charCodeAt(++l)),i[r>>2]|=(240|n>>18)<<a[3&r++],i[r>>2]|=(128|n>>12&63)<<a[3&r++],i[r>>2]|=(128|n>>6&63)<<a[3&r++],i[r>>2]|=(128|63&n)<<a[3&r++]);if(this.lastByteIndex=r,r>=u){for(this.start=r-u,this.block=i[s],r=0;r<s;++r)c[r]^=i[r];T(c),this.reset=!0}else this.start=r}return this},w.prototype.finalize=function(){var e=this.blocks,t=this.lastByteIndex,r=this.blockCount,n=this.s;if(e[t>>2]|=this.padding[3&t],this.lastByteIndex===this.byteCount)for(e[0]=e[r],t=1;t<r+1;++t)e[t]=0;for(e[r-1]|=2147483648,t=0;t<r;++t)n[t]^=e[t];T(n)},w.prototype.toString=w.prototype.hex=function(){this.finalize();for(var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,a=0,u=0,s="";u<n;){for(a=0;a<t&&u<n;++a,++u)e=r[a],s+=i[e>>4&15]+i[15&e]+i[e>>12&15]+i[e>>8&15]+i[e>>20&15]+i[e>>16&15]+i[e>>28&15]+i[e>>24&15];u%t===0&&(T(r),a=0)}return o&&(e=r[a],o>0&&(s+=i[e>>4&15]+i[15&e]),o>1&&(s+=i[e>>12&15]+i[e>>8&15]),o>2&&(s+=i[e>>20&15]+i[e>>16&15])),s},w.prototype.arrayBuffer=function(){this.finalize();var e,t=this.blockCount,r=this.s,n=this.outputBlocks,o=this.extraBytes,i=0,a=0,u=this.outputBits>>3;e=o?new ArrayBuffer(n+1<<2):new ArrayBuffer(u);for(var s=new Uint32Array(e);a<n;){for(i=0;i<t&&a<n;++i,++a)s[a]=r[i];a%t===0&&T(r)}return o&&(s[i]=r[i],e=e.slice(0,u)),e},w.prototype.buffer=w.prototype.arrayBuffer,w.prototype.digest=w.prototype.array=function(){this.finalize();for(var e,t,r=this.blockCount,n=this.s,o=this.outputBlocks,i=this.extraBytes,a=0,u=0,s=[];u<o;){for(a=0;a<r&&u<o;++a,++u)e=u<<2,t=n[a],s[e]=255&t,s[e+1]=t>>8&255,s[e+2]=t>>16&255,s[e+3]=t>>24&255;u%r===0&&T(n)}return i&&(e=u<<2,t=n[a],i>0&&(s[e]=255&t),i>1&&(s[e+1]=t>>8&255),i>2&&(s[e+2]=t>>16&255)),s};var T=function(e){var t,r,n,o,i,a,s,l,c,f,h,d,p,v,m,g,b,y,k,w,T,E,S,A,M,P,C,O,x,F,L,B,N,R,J,_,D,I,j,X,U,H,G,z,V,Z,K,Q,q,W,Y,$,ee,te,re,ne,oe,ie,ae,ue,se,le,ce;for(n=0;n<48;n+=2)o=e[0]^e[10]^e[20]^e[30]^e[40],i=e[1]^e[11]^e[21]^e[31]^e[41],a=e[2]^e[12]^e[22]^e[32]^e[42],s=e[3]^e[13]^e[23]^e[33]^e[43],l=e[4]^e[14]^e[24]^e[34]^e[44],c=e[5]^e[15]^e[25]^e[35]^e[45],f=e[6]^e[16]^e[26]^e[36]^e[46],h=e[7]^e[17]^e[27]^e[37]^e[47],t=(d=e[8]^e[18]^e[28]^e[38]^e[48])^(a<<1|s>>>31),r=(p=e[9]^e[19]^e[29]^e[39]^e[49])^(s<<1|a>>>31),e[0]^=t,e[1]^=r,e[10]^=t,e[11]^=r,e[20]^=t,e[21]^=r,e[30]^=t,e[31]^=r,e[40]^=t,e[41]^=r,t=o^(l<<1|c>>>31),r=i^(c<<1|l>>>31),e[2]^=t,e[3]^=r,e[12]^=t,e[13]^=r,e[22]^=t,e[23]^=r,e[32]^=t,e[33]^=r,e[42]^=t,e[43]^=r,t=a^(f<<1|h>>>31),r=s^(h<<1|f>>>31),e[4]^=t,e[5]^=r,e[14]^=t,e[15]^=r,e[24]^=t,e[25]^=r,e[34]^=t,e[35]^=r,e[44]^=t,e[45]^=r,t=l^(d<<1|p>>>31),r=c^(p<<1|d>>>31),e[6]^=t,e[7]^=r,e[16]^=t,e[17]^=r,e[26]^=t,e[27]^=r,e[36]^=t,e[37]^=r,e[46]^=t,e[47]^=r,t=f^(o<<1|i>>>31),r=h^(i<<1|o>>>31),e[8]^=t,e[9]^=r,e[18]^=t,e[19]^=r,e[28]^=t,e[29]^=r,e[38]^=t,e[39]^=r,e[48]^=t,e[49]^=r,v=e[0],m=e[1],Z=e[11]<<4|e[10]>>>28,K=e[10]<<4|e[11]>>>28,O=e[20]<<3|e[21]>>>29,x=e[21]<<3|e[20]>>>29,ue=e[31]<<9|e[30]>>>23,se=e[30]<<9|e[31]>>>23,H=e[40]<<18|e[41]>>>14,G=e[41]<<18|e[40]>>>14,R=e[2]<<1|e[3]>>>31,J=e[3]<<1|e[2]>>>31,g=e[13]<<12|e[12]>>>20,b=e[12]<<12|e[13]>>>20,Q=e[22]<<10|e[23]>>>22,q=e[23]<<10|e[22]>>>22,F=e[33]<<13|e[32]>>>19,L=e[32]<<13|e[33]>>>19,le=e[42]<<2|e[43]>>>30,ce=e[43]<<2|e[42]>>>30,te=e[5]<<30|e[4]>>>2,re=e[4]<<30|e[5]>>>2,_=e[14]<<6|e[15]>>>26,D=e[15]<<6|e[14]>>>26,y=e[25]<<11|e[24]>>>21,k=e[24]<<11|e[25]>>>21,W=e[34]<<15|e[35]>>>17,Y=e[35]<<15|e[34]>>>17,B=e[45]<<29|e[44]>>>3,N=e[44]<<29|e[45]>>>3,A=e[6]<<28|e[7]>>>4,M=e[7]<<28|e[6]>>>4,ne=e[17]<<23|e[16]>>>9,oe=e[16]<<23|e[17]>>>9,I=e[26]<<25|e[27]>>>7,j=e[27]<<25|e[26]>>>7,w=e[36]<<21|e[37]>>>11,T=e[37]<<21|e[36]>>>11,$=e[47]<<24|e[46]>>>8,ee=e[46]<<24|e[47]>>>8,z=e[8]<<27|e[9]>>>5,V=e[9]<<27|e[8]>>>5,P=e[18]<<20|e[19]>>>12,C=e[19]<<20|e[18]>>>12,ie=e[29]<<7|e[28]>>>25,ae=e[28]<<7|e[29]>>>25,X=e[38]<<8|e[39]>>>24,U=e[39]<<8|e[38]>>>24,E=e[48]<<14|e[49]>>>18,S=e[49]<<14|e[48]>>>18,e[0]=v^~g&y,e[1]=m^~b&k,e[10]=A^~P&O,e[11]=M^~C&x,e[20]=R^~_&I,e[21]=J^~D&j,e[30]=z^~Z&Q,e[31]=V^~K&q,e[40]=te^~ne&ie,e[41]=re^~oe&ae,e[2]=g^~y&w,e[3]=b^~k&T,e[12]=P^~O&F,e[13]=C^~x&L,e[22]=_^~I&X,e[23]=D^~j&U,e[32]=Z^~Q&W,e[33]=K^~q&Y,e[42]=ne^~ie&ue,e[43]=oe^~ae&se,e[4]=y^~w&E,e[5]=k^~T&S,e[14]=O^~F&B,e[15]=x^~L&N,e[24]=I^~X&H,e[25]=j^~U&G,e[34]=Q^~W&$,e[35]=q^~Y&ee,e[44]=ie^~ue&le,e[45]=ae^~se&ce,e[6]=w^~E&v,e[7]=T^~S&m,e[16]=F^~B&A,e[17]=L^~N&M,e[26]=X^~H&R,e[27]=U^~G&J,e[36]=W^~$&z,e[37]=Y^~ee&V,e[46]=ue^~le&te,e[47]=se^~ce&re,e[8]=E^~v&g,e[9]=S^~m&b,e[18]=B^~A&P,e[19]=N^~M&C,e[28]=H^~R&_,e[29]=G^~J&D,e[38]=$^~z&Z,e[39]=ee^~V&K,e[48]=le^~te&ne,e[49]=ce^~re&oe,e[0]^=u[n],e[1]^=u[n+1]};if(o)e.exports=p;else for(m=0;m<v.length;++m)n[v[m]]=p[v[m]]}()}).call(this,r(22),r(16))},function(e,t,r){"use strict";r.d(t,"a",(function(){return n}));var n="random/5.4.0"},,,,function(e,t,r){"use strict";var n=r(28),o="function"===typeof Symbol&&Symbol.for,i=o?Symbol.for("react.element"):60103,a=o?Symbol.for("react.portal"):60106,u=o?Symbol.for("react.fragment"):60107,s=o?Symbol.for("react.strict_mode"):60108,l=o?Symbol.for("react.profiler"):60114,c=o?Symbol.for("react.provider"):60109,f=o?Symbol.for("react.context"):60110,h=o?Symbol.for("react.forward_ref"):60112,d=o?Symbol.for("react.suspense"):60113,p=o?Symbol.for("react.memo"):60115,v=o?Symbol.for("react.lazy"):60116,m="function"===typeof Symbol&&Symbol.iterator;function g(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var b={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},y={};function k(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||b}function w(){}function T(e,t,r){this.props=e,this.context=t,this.refs=y,this.updater=r||b}k.prototype.isReactComponent={},k.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error(g(85));this.updater.enqueueSetState(this,e,t,"setState")},k.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},w.prototype=k.prototype;var E=T.prototype=new w;E.constructor=T,n(E,k.prototype),E.isPureReactComponent=!0;var S={current:null},A=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};function P(e,t,r){var n,o={},a=null,u=null;if(null!=t)for(n in void 0!==t.ref&&(u=t.ref),void 0!==t.key&&(a=""+t.key),t)A.call(t,n)&&!M.hasOwnProperty(n)&&(o[n]=t[n]);var s=arguments.length-2;if(1===s)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(e&&e.defaultProps)for(n in s=e.defaultProps)void 0===o[n]&&(o[n]=s[n]);return{$$typeof:i,type:e,key:a,ref:u,props:o,_owner:S.current}}function C(e){return"object"===typeof e&&null!==e&&e.$$typeof===i}var O=/\/+/g,x=[];function F(e,t,r,n){if(x.length){var o=x.pop();return o.result=e,o.keyPrefix=t,o.func=r,o.context=n,o.count=0,o}return{result:e,keyPrefix:t,func:r,context:n,count:0}}function L(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,10>x.length&&x.push(e)}function B(e,t,r){return null==e?0:function e(t,r,n,o){var u=typeof t;"undefined"!==u&&"boolean"!==u||(t=null);var s=!1;if(null===t)s=!0;else switch(u){case"string":case"number":s=!0;break;case"object":switch(t.$$typeof){case i:case a:s=!0}}if(s)return n(o,t,""===r?"."+N(t,0):r),1;if(s=0,r=""===r?".":r+":",Array.isArray(t))for(var l=0;l<t.length;l++){var c=r+N(u=t[l],l);s+=e(u,c,n,o)}else if(null===t||"object"!==typeof t?c=null:c="function"===typeof(c=m&&t[m]||t["@@iterator"])?c:null,"function"===typeof c)for(t=c.call(t),l=0;!(u=t.next()).done;)s+=e(u=u.value,c=r+N(u,l++),n,o);else if("object"===u)throw n=""+t,Error(g(31,"[object Object]"===n?"object with keys {"+Object.keys(t).join(", ")+"}":n,""));return s}(e,"",t,r)}function N(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,(function(e){return t[e]}))}(e.key):t.toString(36)}function R(e,t){e.func.call(e.context,t,e.count++)}function J(e,t,r){var n=e.result,o=e.keyPrefix;e=e.func.call(e.context,t,e.count++),Array.isArray(e)?_(e,n,r,(function(e){return e})):null!=e&&(C(e)&&(e=function(e,t){return{$$typeof:i,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}(e,o+(!e.key||t&&t.key===e.key?"":(""+e.key).replace(O,"$&/")+"/")+r)),n.push(e))}function _(e,t,r,n,o){var i="";null!=r&&(i=(""+r).replace(O,"$&/")+"/"),B(e,J,t=F(t,i,n,o)),L(t)}var D={current:null};function I(){var e=D.current;if(null===e)throw Error(g(321));return e}var j={ReactCurrentDispatcher:D,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:S,IsSomeRendererActing:{current:!1},assign:n};t.Children={map:function(e,t,r){if(null==e)return e;var n=[];return _(e,n,null,t,r),n},forEach:function(e,t,r){if(null==e)return e;B(e,R,t=F(null,null,t,r)),L(t)},count:function(e){return B(e,(function(){return null}),null)},toArray:function(e){var t=[];return _(e,t,null,(function(e){return e})),t},only:function(e){if(!C(e))throw Error(g(143));return e}},t.Component=k,t.Fragment=u,t.Profiler=l,t.PureComponent=T,t.StrictMode=s,t.Suspense=d,t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=j,t.cloneElement=function(e,t,r){if(null===e||void 0===e)throw Error(g(267,e));var o=n({},e.props),a=e.key,u=e.ref,s=e._owner;if(null!=t){if(void 0!==t.ref&&(u=t.ref,s=S.current),void 0!==t.key&&(a=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)A.call(t,c)&&!M.hasOwnProperty(c)&&(o[c]=void 0===t[c]&&void 0!==l?l[c]:t[c])}var c=arguments.length-2;if(1===c)o.children=r;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];o.children=l}return{$$typeof:i,type:e.type,key:a,ref:u,props:o,_owner:s}},t.createContext=function(e,t){return void 0===t&&(t=null),(e={$$typeof:f,_calculateChangedBits:t,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:e},e.Consumer=e},t.createElement=P,t.createFactory=function(e){var t=P.bind(null,e);return t.type=e,t},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:h,render:e}},t.isValidElement=C,t.lazy=function(e){return{$$typeof:v,_ctor:e,_status:-1,_result:null}},t.memo=function(e,t){return{$$typeof:p,type:e,compare:void 0===t?null:t}},t.useCallback=function(e,t){return I().useCallback(e,t)},t.useContext=function(e,t){return I().useContext(e,t)},t.useDebugValue=function(){},t.useEffect=function(e,t){return I().useEffect(e,t)},t.useImperativeHandle=function(e,t,r){return I().useImperativeHandle(e,t,r)},t.useLayoutEffect=function(e,t){return I().useLayoutEffect(e,t)},t.useMemo=function(e,t){return I().useMemo(e,t)},t.useReducer=function(e,t,r){return I().useReducer(e,t,r)},t.useRef=function(e){return I().useRef(e)},t.useState=function(e){return I().useState(e)},t.version="16.14.0"},function(e,t,r){"use strict";var n=r(6),o=r(28),i=r(42);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,r=1;r<arguments.length;r++)t+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}if(!n)throw Error(a(227));function u(e,t,r,n,o,i,a,u,s){var l=Array.prototype.slice.call(arguments,3);try{t.apply(r,l)}catch(c){this.onError(c)}}var s=!1,l=null,c=!1,f=null,h={onError:function(e){s=!0,l=e}};function d(e,t,r,n,o,i,a,c,f){s=!1,l=null,u.apply(h,arguments)}var p=null,v=null,m=null;function g(e,t,r){var n=e.type||"unknown-event";e.currentTarget=m(r),function(e,t,r,n,o,i,u,h,p){if(d.apply(this,arguments),s){if(!s)throw Error(a(198));var v=l;s=!1,l=null,c||(c=!0,f=v)}}(n,t,void 0,e),e.currentTarget=null}var b=null,y={};function k(){if(b)for(var e in y){var t=y[e],r=b.indexOf(e);if(!(-1<r))throw Error(a(96,e));if(!T[r]){if(!t.extractEvents)throw Error(a(97,e));for(var n in T[r]=t,r=t.eventTypes){var o=void 0,i=r[n],u=t,s=n;if(E.hasOwnProperty(s))throw Error(a(99,s));E[s]=i;var l=i.phasedRegistrationNames;if(l){for(o in l)l.hasOwnProperty(o)&&w(l[o],u,s);o=!0}else i.registrationName?(w(i.registrationName,u,s),o=!0):o=!1;if(!o)throw Error(a(98,n,e))}}}}function w(e,t,r){if(S[e])throw Error(a(100,e));S[e]=t,A[e]=t.eventTypes[r].dependencies}var T=[],E={},S={},A={};function M(e){var t,r=!1;for(t in e)if(e.hasOwnProperty(t)){var n=e[t];if(!y.hasOwnProperty(t)||y[t]!==n){if(y[t])throw Error(a(102,t));y[t]=n,r=!0}}r&&k()}var P=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),C=null,O=null,x=null;function F(e){if(e=v(e)){if("function"!==typeof C)throw Error(a(280));var t=e.stateNode;t&&(t=p(t),C(e.stateNode,e.type,t))}}function L(e){O?x?x.push(e):x=[e]:O=e}function B(){if(O){var e=O,t=x;if(x=O=null,F(e),t)for(e=0;e<t.length;e++)F(t[e])}}function N(e,t){return e(t)}function R(e,t,r,n,o){return e(t,r,n,o)}function J(){}var _=N,D=!1,I=!1;function j(){null===O&&null===x||(J(),B())}function X(e,t,r){if(I)return e(t,r);I=!0;try{return _(e,t,r)}finally{I=!1,j()}}var U=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,H=Object.prototype.hasOwnProperty,G={},z={};function V(e,t,r,n,o,i){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i}var Z={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){Z[e]=new V(e,0,!1,e,null,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];Z[t]=new V(t,1,!1,e[1],null,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){Z[e]=new V(e,2,!1,e.toLowerCase(),null,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){Z[e]=new V(e,2,!1,e,null,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){Z[e]=new V(e,3,!1,e.toLowerCase(),null,!1)})),["checked","multiple","muted","selected"].forEach((function(e){Z[e]=new V(e,3,!0,e,null,!1)})),["capture","download"].forEach((function(e){Z[e]=new V(e,4,!1,e,null,!1)})),["cols","rows","size","span"].forEach((function(e){Z[e]=new V(e,6,!1,e,null,!1)})),["rowSpan","start"].forEach((function(e){Z[e]=new V(e,5,!1,e.toLowerCase(),null,!1)}));var K=/[\-:]([a-z])/g;function Q(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(K,Q);Z[t]=new V(t,1,!1,e,null,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(K,Q);Z[t]=new V(t,1,!1,e,"http://www.w3.org/1999/xlink",!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(K,Q);Z[t]=new V(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1)})),["tabIndex","crossOrigin"].forEach((function(e){Z[e]=new V(e,1,!1,e.toLowerCase(),null,!1)})),Z.xlinkHref=new V("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0),["src","href","action","formAction"].forEach((function(e){Z[e]=new V(e,1,!1,e.toLowerCase(),null,!0)}));var q=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function W(e,t,r,n){var o=Z.hasOwnProperty(t)?Z[t]:null;(null!==o?0===o.type:!n&&(2<t.length&&("o"===t[0]||"O"===t[0])&&("n"===t[1]||"N"===t[1])))||(function(e,t,r,n){if(null===t||"undefined"===typeof t||function(e,t,r,n){if(null!==r&&0===r.type)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return!n&&(null!==r?!r.acceptsBooleans:"data-"!==(e=e.toLowerCase().slice(0,5))&&"aria-"!==e);default:return!1}}(e,t,r,n))return!0;if(n)return!1;if(null!==r)switch(r.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}(t,r,o,n)&&(r=null),n||null===o?function(e){return!!H.call(z,e)||!H.call(G,e)&&(U.test(e)?z[e]=!0:(G[e]=!0,!1))}(t)&&(null===r?e.removeAttribute(t):e.setAttribute(t,""+r)):o.mustUseProperty?e[o.propertyName]=null===r?3!==o.type&&"":r:(t=o.attributeName,n=o.attributeNamespace,null===r?e.removeAttribute(t):(r=3===(o=o.type)||4===o&&!0===r?"":""+r,n?e.setAttributeNS(n,t,r):e.setAttribute(t,r))))}q.hasOwnProperty("ReactCurrentDispatcher")||(q.ReactCurrentDispatcher={current:null}),q.hasOwnProperty("ReactCurrentBatchConfig")||(q.ReactCurrentBatchConfig={suspense:null});var Y=/^(.*)[\\\/]/,$="function"===typeof Symbol&&Symbol.for,ee=$?Symbol.for("react.element"):60103,te=$?Symbol.for("react.portal"):60106,re=$?Symbol.for("react.fragment"):60107,ne=$?Symbol.for("react.strict_mode"):60108,oe=$?Symbol.for("react.profiler"):60114,ie=$?Symbol.for("react.provider"):60109,ae=$?Symbol.for("react.context"):60110,ue=$?Symbol.for("react.concurrent_mode"):60111,se=$?Symbol.for("react.forward_ref"):60112,le=$?Symbol.for("react.suspense"):60113,ce=$?Symbol.for("react.suspense_list"):60120,fe=$?Symbol.for("react.memo"):60115,he=$?Symbol.for("react.lazy"):60116,de=$?Symbol.for("react.block"):60121,pe="function"===typeof Symbol&&Symbol.iterator;function ve(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=pe&&e[pe]||e["@@iterator"])?e:null}function me(e){if(null==e)return null;if("function"===typeof e)return e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case re:return"Fragment";case te:return"Portal";case oe:return"Profiler";case ne:return"StrictMode";case le:return"Suspense";case ce:return"SuspenseList"}if("object"===typeof e)switch(e.$$typeof){case ae:return"Context.Consumer";case ie:return"Context.Provider";case se:var t=e.render;return t=t.displayName||t.name||"",e.displayName||(""!==t?"ForwardRef("+t+")":"ForwardRef");case fe:return me(e.type);case de:return me(e.render);case he:if(e=1===e._status?e._result:null)return me(e)}return null}function ge(e){var t="";do{e:switch(e.tag){case 3:case 4:case 6:case 7:case 10:case 9:var r="";break e;default:var n=e._debugOwner,o=e._debugSource,i=me(e.type);r=null,n&&(r=me(n.type)),n=i,i="",o?i=" (at "+o.fileName.replace(Y,"")+":"+o.lineNumber+")":r&&(i=" (created by "+r+")"),r="\n    in "+(n||"Unknown")+i}t+=r,e=e.return}while(e);return t}function be(e){switch(typeof e){case"boolean":case"number":case"object":case"string":case"undefined":return e;default:return""}}function ye(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function ke(e){e._valueTracker||(e._valueTracker=function(e){var t=ye(e)?"checked":"value",r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),n=""+e[t];if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var o=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(e){n=""+e,i.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e))}function we(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var r=t.getValue(),n="";return e&&(n=ye(e)?e.checked?"true":"false":e.value),(e=n)!==r&&(t.setValue(e),!0)}function Te(e,t){var r=t.checked;return o({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=r?r:e._wrapperState.initialChecked})}function Ee(e,t){var r=null==t.defaultValue?"":t.defaultValue,n=null!=t.checked?t.checked:t.defaultChecked;r=be(null!=t.value?t.value:r),e._wrapperState={initialChecked:n,initialValue:r,controlled:"checkbox"===t.type||"radio"===t.type?null!=t.checked:null!=t.value}}function Se(e,t){null!=(t=t.checked)&&W(e,"checked",t,!1)}function Ae(e,t){Se(e,t);var r=be(t.value),n=t.type;if(null!=r)"number"===n?(0===r&&""===e.value||e.value!=r)&&(e.value=""+r):e.value!==""+r&&(e.value=""+r);else if("submit"===n||"reset"===n)return void e.removeAttribute("value");t.hasOwnProperty("value")?Pe(e,t.type,r):t.hasOwnProperty("defaultValue")&&Pe(e,t.type,be(t.defaultValue)),null==t.checked&&null!=t.defaultChecked&&(e.defaultChecked=!!t.defaultChecked)}function Me(e,t,r){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var n=t.type;if(!("submit"!==n&&"reset"!==n||void 0!==t.value&&null!==t.value))return;t=""+e._wrapperState.initialValue,r||t===e.value||(e.value=t),e.defaultValue=t}""!==(r=e.name)&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,""!==r&&(e.name=r)}function Pe(e,t,r){"number"===t&&e.ownerDocument.activeElement===e||(null==r?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+r&&(e.defaultValue=""+r))}function Ce(e,t){return e=o({children:void 0},t),(t=function(e){var t="";return n.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(t.children))&&(e.children=t),e}function Oe(e,t,r,n){if(e=e.options,t){t={};for(var o=0;o<r.length;o++)t["$"+r[o]]=!0;for(r=0;r<e.length;r++)o=t.hasOwnProperty("$"+e[r].value),e[r].selected!==o&&(e[r].selected=o),o&&n&&(e[r].defaultSelected=!0)}else{for(r=""+be(r),t=null,o=0;o<e.length;o++){if(e[o].value===r)return e[o].selected=!0,void(n&&(e[o].defaultSelected=!0));null!==t||e[o].disabled||(t=e[o])}null!==t&&(t.selected=!0)}}function xe(e,t){if(null!=t.dangerouslySetInnerHTML)throw Error(a(91));return o({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Fe(e,t){var r=t.value;if(null==r){if(r=t.children,t=t.defaultValue,null!=r){if(null!=t)throw Error(a(92));if(Array.isArray(r)){if(!(1>=r.length))throw Error(a(93));r=r[0]}t=r}null==t&&(t=""),r=t}e._wrapperState={initialValue:be(r)}}function Le(e,t){var r=be(t.value),n=be(t.defaultValue);null!=r&&((r=""+r)!==e.value&&(e.value=r),null==t.defaultValue&&e.defaultValue!==r&&(e.defaultValue=r)),null!=n&&(e.defaultValue=""+n)}function Be(e){var t=e.textContent;t===e._wrapperState.initialValue&&""!==t&&null!==t&&(e.value=t)}var Ne="http://www.w3.org/1999/xhtml",Re="http://www.w3.org/2000/svg";function Je(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function _e(e,t){return null==e||"http://www.w3.org/1999/xhtml"===e?Je(t):"http://www.w3.org/2000/svg"===e&&"foreignObject"===t?"http://www.w3.org/1999/xhtml":e}var De,Ie=function(e){return"undefined"!==typeof MSApp&&MSApp.execUnsafeLocalFunction?function(t,r,n,o){MSApp.execUnsafeLocalFunction((function(){return e(t,r)}))}:e}((function(e,t){if(e.namespaceURI!==Re||"innerHTML"in e)e.innerHTML=t;else{for((De=De||document.createElement("div")).innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=De.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}}));function je(e,t){if(t){var r=e.firstChild;if(r&&r===e.lastChild&&3===r.nodeType)return void(r.nodeValue=t)}e.textContent=t}function Xe(e,t){var r={};return r[e.toLowerCase()]=t.toLowerCase(),r["Webkit"+e]="webkit"+t,r["Moz"+e]="moz"+t,r}var Ue={animationend:Xe("Animation","AnimationEnd"),animationiteration:Xe("Animation","AnimationIteration"),animationstart:Xe("Animation","AnimationStart"),transitionend:Xe("Transition","TransitionEnd")},He={},Ge={};function ze(e){if(He[e])return He[e];if(!Ue[e])return e;var t,r=Ue[e];for(t in r)if(r.hasOwnProperty(t)&&t in Ge)return He[e]=r[t];return e}P&&(Ge=document.createElement("div").style,"AnimationEvent"in window||(delete Ue.animationend.animation,delete Ue.animationiteration.animation,delete Ue.animationstart.animation),"TransitionEvent"in window||delete Ue.transitionend.transition);var Ve=ze("animationend"),Ze=ze("animationiteration"),Ke=ze("animationstart"),Qe=ze("transitionend"),qe="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),We=new("function"===typeof WeakMap?WeakMap:Map);function Ye(e){var t=We.get(e);return void 0===t&&(t=new Map,We.set(e,t)),t}function $e(e){var t=e,r=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(1026&(t=e).effectTag)&&(r=t.return),e=t.return}while(e)}return 3===t.tag?r:null}function et(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function tt(e){if($e(e)!==e)throw Error(a(188))}function rt(e){if(!(e=function(e){var t=e.alternate;if(!t){if(null===(t=$e(e)))throw Error(a(188));return t!==e?null:e}for(var r=e,n=t;;){var o=r.return;if(null===o)break;var i=o.alternate;if(null===i){if(null!==(n=o.return)){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return tt(o),e;if(i===n)return tt(o),t;i=i.sibling}throw Error(a(188))}if(r.return!==n.return)r=o,n=i;else{for(var u=!1,s=o.child;s;){if(s===r){u=!0,r=o,n=i;break}if(s===n){u=!0,n=o,r=i;break}s=s.sibling}if(!u){for(s=i.child;s;){if(s===r){u=!0,r=i,n=o;break}if(s===n){u=!0,n=i,r=o;break}s=s.sibling}if(!u)throw Error(a(189))}}if(r.alternate!==n)throw Error(a(190))}if(3!==r.tag)throw Error(a(188));return r.stateNode.current===r?e:t}(e)))return null;for(var t=e;;){if(5===t.tag||6===t.tag)return t;if(t.child)t.child.return=t,t=t.child;else{if(t===e)break;for(;!t.sibling;){if(!t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}}return null}function nt(e,t){if(null==t)throw Error(a(30));return null==e?t:Array.isArray(e)?Array.isArray(t)?(e.push.apply(e,t),e):(e.push(t),e):Array.isArray(t)?[e].concat(t):[e,t]}function ot(e,t,r){Array.isArray(e)?e.forEach(t,r):e&&t.call(r,e)}var it=null;function at(e){if(e){var t=e._dispatchListeners,r=e._dispatchInstances;if(Array.isArray(t))for(var n=0;n<t.length&&!e.isPropagationStopped();n++)g(e,t[n],r[n]);else t&&g(e,t,r);e._dispatchListeners=null,e._dispatchInstances=null,e.isPersistent()||e.constructor.release(e)}}function ut(e){if(null!==e&&(it=nt(it,e)),e=it,it=null,e){if(ot(e,at),it)throw Error(a(95));if(c)throw e=f,c=!1,f=null,e}}function st(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}function lt(e){if(!P)return!1;var t=(e="on"+e)in document;return t||((t=document.createElement("div")).setAttribute(e,"return;"),t="function"===typeof t[e]),t}var ct=[];function ft(e){e.topLevelType=null,e.nativeEvent=null,e.targetInst=null,e.ancestors.length=0,10>ct.length&&ct.push(e)}function ht(e,t,r,n){if(ct.length){var o=ct.pop();return o.topLevelType=e,o.eventSystemFlags=n,o.nativeEvent=t,o.targetInst=r,o}return{topLevelType:e,eventSystemFlags:n,nativeEvent:t,targetInst:r,ancestors:[]}}function dt(e){var t=e.targetInst,r=t;do{if(!r){e.ancestors.push(r);break}var n=r;if(3===n.tag)n=n.stateNode.containerInfo;else{for(;n.return;)n=n.return;n=3!==n.tag?null:n.stateNode.containerInfo}if(!n)break;5!==(t=r.tag)&&6!==t||e.ancestors.push(r),r=Mr(n)}while(r);for(r=0;r<e.ancestors.length;r++){t=e.ancestors[r];var o=st(e.nativeEvent);n=e.topLevelType;var i=e.nativeEvent,a=e.eventSystemFlags;0===r&&(a|=64);for(var u=null,s=0;s<T.length;s++){var l=T[s];l&&(l=l.extractEvents(n,t,i,o,a))&&(u=nt(u,l))}ut(u)}}function pt(e,t,r){if(!r.has(e)){switch(e){case"scroll":Kt(t,"scroll",!0);break;case"focus":case"blur":Kt(t,"focus",!0),Kt(t,"blur",!0),r.set("blur",null),r.set("focus",null);break;case"cancel":case"close":lt(e)&&Kt(t,e,!0);break;case"invalid":case"submit":case"reset":break;default:-1===qe.indexOf(e)&&Zt(e,t)}r.set(e,null)}}var vt,mt,gt,bt=!1,yt=[],kt=null,wt=null,Tt=null,Et=new Map,St=new Map,At=[],Mt="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput close cancel copy cut paste click change contextmenu reset submit".split(" "),Pt="focus blur dragenter dragleave mouseover mouseout pointerover pointerout gotpointercapture lostpointercapture".split(" ");function Ct(e,t,r,n,o){return{blockedOn:e,topLevelType:t,eventSystemFlags:32|r,nativeEvent:o,container:n}}function Ot(e,t){switch(e){case"focus":case"blur":kt=null;break;case"dragenter":case"dragleave":wt=null;break;case"mouseover":case"mouseout":Tt=null;break;case"pointerover":case"pointerout":Et.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":St.delete(t.pointerId)}}function xt(e,t,r,n,o,i){return null===e||e.nativeEvent!==i?(e=Ct(t,r,n,o,i),null!==t&&(null!==(t=Pr(t))&&mt(t)),e):(e.eventSystemFlags|=n,e)}function Ft(e){var t=Mr(e.target);if(null!==t){var r=$e(t);if(null!==r)if(13===(t=r.tag)){if(null!==(t=et(r)))return e.blockedOn=t,void i.unstable_runWithPriority(e.priority,(function(){gt(r)}))}else if(3===t&&r.stateNode.hydrate)return void(e.blockedOn=3===r.tag?r.stateNode.containerInfo:null)}e.blockedOn=null}function Lt(e){if(null!==e.blockedOn)return!1;var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);if(null!==t){var r=Pr(t);return null!==r&&mt(r),e.blockedOn=t,!1}return!0}function Bt(e,t,r){Lt(e)&&r.delete(t)}function Nt(){for(bt=!1;0<yt.length;){var e=yt[0];if(null!==e.blockedOn){null!==(e=Pr(e.blockedOn))&&vt(e);break}var t=Yt(e.topLevelType,e.eventSystemFlags,e.container,e.nativeEvent);null!==t?e.blockedOn=t:yt.shift()}null!==kt&&Lt(kt)&&(kt=null),null!==wt&&Lt(wt)&&(wt=null),null!==Tt&&Lt(Tt)&&(Tt=null),Et.forEach(Bt),St.forEach(Bt)}function Rt(e,t){e.blockedOn===t&&(e.blockedOn=null,bt||(bt=!0,i.unstable_scheduleCallback(i.unstable_NormalPriority,Nt)))}function Jt(e){function t(t){return Rt(t,e)}if(0<yt.length){Rt(yt[0],e);for(var r=1;r<yt.length;r++){var n=yt[r];n.blockedOn===e&&(n.blockedOn=null)}}for(null!==kt&&Rt(kt,e),null!==wt&&Rt(wt,e),null!==Tt&&Rt(Tt,e),Et.forEach(t),St.forEach(t),r=0;r<At.length;r++)(n=At[r]).blockedOn===e&&(n.blockedOn=null);for(;0<At.length&&null===(r=At[0]).blockedOn;)Ft(r),null===r.blockedOn&&At.shift()}var _t={},Dt=new Map,It=new Map,jt=["abort","abort",Ve,"animationEnd",Ze,"animationIteration",Ke,"animationStart","canplay","canPlay","canplaythrough","canPlayThrough","durationchange","durationChange","emptied","emptied","encrypted","encrypted","ended","ended","error","error","gotpointercapture","gotPointerCapture","load","load","loadeddata","loadedData","loadedmetadata","loadedMetadata","loadstart","loadStart","lostpointercapture","lostPointerCapture","playing","playing","progress","progress","seeking","seeking","stalled","stalled","suspend","suspend","timeupdate","timeUpdate",Qe,"transitionEnd","waiting","waiting"];function Xt(e,t){for(var r=0;r<e.length;r+=2){var n=e[r],o=e[r+1],i="on"+(o[0].toUpperCase()+o.slice(1));i={phasedRegistrationNames:{bubbled:i,captured:i+"Capture"},dependencies:[n],eventPriority:t},It.set(n,t),Dt.set(n,i),_t[o]=i}}Xt("blur blur cancel cancel click click close close contextmenu contextMenu copy copy cut cut auxclick auxClick dblclick doubleClick dragend dragEnd dragstart dragStart drop drop focus focus input input invalid invalid keydown keyDown keypress keyPress keyup keyUp mousedown mouseDown mouseup mouseUp paste paste pause pause play play pointercancel pointerCancel pointerdown pointerDown pointerup pointerUp ratechange rateChange reset reset seeked seeked submit submit touchcancel touchCancel touchend touchEnd touchstart touchStart volumechange volumeChange".split(" "),0),Xt("drag drag dragenter dragEnter dragexit dragExit dragleave dragLeave dragover dragOver mousemove mouseMove mouseout mouseOut mouseover mouseOver pointermove pointerMove pointerout pointerOut pointerover pointerOver scroll scroll toggle toggle touchmove touchMove wheel wheel".split(" "),1),Xt(jt,2);for(var Ut="change selectionchange textInput compositionstart compositionend compositionupdate".split(" "),Ht=0;Ht<Ut.length;Ht++)It.set(Ut[Ht],0);var Gt=i.unstable_UserBlockingPriority,zt=i.unstable_runWithPriority,Vt=!0;function Zt(e,t){Kt(t,e,!1)}function Kt(e,t,r){var n=It.get(t);switch(void 0===n?2:n){case 0:n=Qt.bind(null,t,1,e);break;case 1:n=qt.bind(null,t,1,e);break;default:n=Wt.bind(null,t,1,e)}r?e.addEventListener(t,n,!0):e.addEventListener(t,n,!1)}function Qt(e,t,r,n){D||J();var o=Wt,i=D;D=!0;try{R(o,e,t,r,n)}finally{(D=i)||j()}}function qt(e,t,r,n){zt(Gt,Wt.bind(null,e,t,r,n))}function Wt(e,t,r,n){if(Vt)if(0<yt.length&&-1<Mt.indexOf(e))e=Ct(null,e,t,r,n),yt.push(e);else{var o=Yt(e,t,r,n);if(null===o)Ot(e,n);else if(-1<Mt.indexOf(e))e=Ct(o,e,t,r,n),yt.push(e);else if(!function(e,t,r,n,o){switch(t){case"focus":return kt=xt(kt,e,t,r,n,o),!0;case"dragenter":return wt=xt(wt,e,t,r,n,o),!0;case"mouseover":return Tt=xt(Tt,e,t,r,n,o),!0;case"pointerover":var i=o.pointerId;return Et.set(i,xt(Et.get(i)||null,e,t,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,St.set(i,xt(St.get(i)||null,e,t,r,n,o)),!0}return!1}(o,e,t,r,n)){Ot(e,n),e=ht(e,n,null,t);try{X(dt,e)}finally{ft(e)}}}}function Yt(e,t,r,n){if(null!==(r=Mr(r=st(n)))){var o=$e(r);if(null===o)r=null;else{var i=o.tag;if(13===i){if(null!==(r=et(o)))return r;r=null}else if(3===i){if(o.stateNode.hydrate)return 3===o.tag?o.stateNode.containerInfo:null;r=null}else o!==r&&(r=null)}}e=ht(e,n,r,t);try{X(dt,e)}finally{ft(e)}return null}var $t={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},er=["Webkit","ms","Moz","O"];function tr(e,t,r){return null==t||"boolean"===typeof t||""===t?"":r||"number"!==typeof t||0===t||$t.hasOwnProperty(e)&&$t[e]?(""+t).trim():t+"px"}function rr(e,t){for(var r in e=e.style,t)if(t.hasOwnProperty(r)){var n=0===r.indexOf("--"),o=tr(r,t[r],n);"float"===r&&(r="cssFloat"),n?e.setProperty(r,o):e[r]=o}}Object.keys($t).forEach((function(e){er.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),$t[t]=$t[e]}))}));var nr=o({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function or(e,t){if(t){if(nr[e]&&(null!=t.children||null!=t.dangerouslySetInnerHTML))throw Error(a(137,e,""));if(null!=t.dangerouslySetInnerHTML){if(null!=t.children)throw Error(a(60));if("object"!==typeof t.dangerouslySetInnerHTML||!("__html"in t.dangerouslySetInnerHTML))throw Error(a(61))}if(null!=t.style&&"object"!==typeof t.style)throw Error(a(62,""))}}function ir(e,t){if(-1===e.indexOf("-"))return"string"===typeof t.is;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ar=Ne;function ur(e,t){var r=Ye(e=9===e.nodeType||11===e.nodeType?e:e.ownerDocument);t=A[t];for(var n=0;n<t.length;n++)pt(t[n],e,r)}function sr(){}function lr(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}function cr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function fr(e,t){var r,n=cr(e);for(e=0;n;){if(3===n.nodeType){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=cr(n)}}function hr(){for(var e=window,t=lr();t instanceof e.HTMLIFrameElement;){try{var r="string"===typeof t.contentWindow.location.href}catch(n){r=!1}if(!r)break;t=lr((e=t.contentWindow).document)}return t}function dr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var pr=null,vr=null;function mr(e,t){switch(e){case"button":case"input":case"select":case"textarea":return!!t.autoFocus}return!1}function gr(e,t){return"textarea"===e||"option"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var br="function"===typeof setTimeout?setTimeout:void 0,yr="function"===typeof clearTimeout?clearTimeout:void 0;function kr(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break}return e}function wr(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var r=e.data;if("$"===r||"$!"===r||"$?"===r){if(0===t)return e;t--}else"/$"===r&&t++}e=e.previousSibling}return null}var Tr=Math.random().toString(36).slice(2),Er="__reactInternalInstance$"+Tr,Sr="__reactEventHandlers$"+Tr,Ar="__reactContainere$"+Tr;function Mr(e){var t=e[Er];if(t)return t;for(var r=e.parentNode;r;){if(t=r[Ar]||r[Er]){if(r=t.alternate,null!==t.child||null!==r&&null!==r.child)for(e=wr(e);null!==e;){if(r=e[Er])return r;e=wr(e)}return t}r=(e=r).parentNode}return null}function Pr(e){return!(e=e[Er]||e[Ar])||5!==e.tag&&6!==e.tag&&13!==e.tag&&3!==e.tag?null:e}function Cr(e){if(5===e.tag||6===e.tag)return e.stateNode;throw Error(a(33))}function Or(e){return e[Sr]||null}function xr(e){do{e=e.return}while(e&&5!==e.tag);return e||null}function Fr(e,t){var r=e.stateNode;if(!r)return null;var n=p(r);if(!n)return null;r=n[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(n=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!n;break e;default:e=!1}if(e)return null;if(r&&"function"!==typeof r)throw Error(a(231,t,typeof r));return r}function Lr(e,t,r){(t=Fr(e,r.dispatchConfig.phasedRegistrationNames[t]))&&(r._dispatchListeners=nt(r._dispatchListeners,t),r._dispatchInstances=nt(r._dispatchInstances,e))}function Br(e){if(e&&e.dispatchConfig.phasedRegistrationNames){for(var t=e._targetInst,r=[];t;)r.push(t),t=xr(t);for(t=r.length;0<t--;)Lr(r[t],"captured",e);for(t=0;t<r.length;t++)Lr(r[t],"bubbled",e)}}function Nr(e,t,r){e&&r&&r.dispatchConfig.registrationName&&(t=Fr(e,r.dispatchConfig.registrationName))&&(r._dispatchListeners=nt(r._dispatchListeners,t),r._dispatchInstances=nt(r._dispatchInstances,e))}function Rr(e){e&&e.dispatchConfig.registrationName&&Nr(e._targetInst,null,e)}function Jr(e){ot(e,Br)}var _r=null,Dr=null,Ir=null;function jr(){if(Ir)return Ir;var e,t,r=Dr,n=r.length,o="value"in _r?_r.value:_r.textContent,i=o.length;for(e=0;e<n&&r[e]===o[e];e++);var a=n-e;for(t=1;t<=a&&r[n-t]===o[i-t];t++);return Ir=o.slice(e,1<t?1-t:void 0)}function Xr(){return!0}function Ur(){return!1}function Hr(e,t,r,n){for(var o in this.dispatchConfig=e,this._targetInst=t,this.nativeEvent=r,e=this.constructor.Interface)e.hasOwnProperty(o)&&((t=e[o])?this[o]=t(r):"target"===o?this.target=n:this[o]=r[o]);return this.isDefaultPrevented=(null!=r.defaultPrevented?r.defaultPrevented:!1===r.returnValue)?Xr:Ur,this.isPropagationStopped=Ur,this}function Gr(e,t,r,n){if(this.eventPool.length){var o=this.eventPool.pop();return this.call(o,e,t,r,n),o}return new this(e,t,r,n)}function zr(e){if(!(e instanceof this))throw Error(a(279));e.destructor(),10>this.eventPool.length&&this.eventPool.push(e)}function Vr(e){e.eventPool=[],e.getPooled=Gr,e.release=zr}o(Hr.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Xr)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Xr)},persist:function(){this.isPersistent=Xr},isPersistent:Ur,destructor:function(){var e,t=this.constructor.Interface;for(e in t)this[e]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=Ur,this._dispatchInstances=this._dispatchListeners=null}}),Hr.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},Hr.extend=function(e){function t(){}function r(){return n.apply(this,arguments)}var n=this;t.prototype=n.prototype;var i=new t;return o(i,r.prototype),r.prototype=i,r.prototype.constructor=r,r.Interface=o({},n.Interface,e),r.extend=n.extend,Vr(r),r},Vr(Hr);var Zr=Hr.extend({data:null}),Kr=Hr.extend({data:null}),Qr=[9,13,27,32],qr=P&&"CompositionEvent"in window,Wr=null;P&&"documentMode"in document&&(Wr=document.documentMode);var Yr=P&&"TextEvent"in window&&!Wr,$r=P&&(!qr||Wr&&8<Wr&&11>=Wr),en=String.fromCharCode(32),tn={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},rn=!1;function nn(e,t){switch(e){case"keyup":return-1!==Qr.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function on(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var an=!1;var un={eventTypes:tn,extractEvents:function(e,t,r,n){var o;if(qr)e:{switch(e){case"compositionstart":var i=tn.compositionStart;break e;case"compositionend":i=tn.compositionEnd;break e;case"compositionupdate":i=tn.compositionUpdate;break e}i=void 0}else an?nn(e,r)&&(i=tn.compositionEnd):"keydown"===e&&229===r.keyCode&&(i=tn.compositionStart);return i?($r&&"ko"!==r.locale&&(an||i!==tn.compositionStart?i===tn.compositionEnd&&an&&(o=jr()):(Dr="value"in(_r=n)?_r.value:_r.textContent,an=!0)),i=Zr.getPooled(i,t,r,n),o?i.data=o:null!==(o=on(r))&&(i.data=o),Jr(i),o=i):o=null,(e=Yr?function(e,t){switch(e){case"compositionend":return on(t);case"keypress":return 32!==t.which?null:(rn=!0,en);case"textInput":return(e=t.data)===en&&rn?null:e;default:return null}}(e,r):function(e,t){if(an)return"compositionend"===e||!qr&&nn(e,t)?(e=jr(),Ir=Dr=_r=null,an=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return $r&&"ko"!==t.locale?null:t.data;default:return null}}(e,r))?((t=Kr.getPooled(tn.beforeInput,t,r,n)).data=e,Jr(t)):t=null,null===o?t:null===t?o:[o,t]}},sn={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function ln(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!sn[e.type]:"textarea"===t}var cn={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function fn(e,t,r){return(e=Hr.getPooled(cn.change,e,t,r)).type="change",L(r),Jr(e),e}var hn=null,dn=null;function pn(e){ut(e)}function vn(e){if(we(Cr(e)))return e}function mn(e,t){if("change"===e)return t}var gn=!1;function bn(){hn&&(hn.detachEvent("onpropertychange",yn),dn=hn=null)}function yn(e){if("value"===e.propertyName&&vn(dn))if(e=fn(dn,e,st(e)),D)ut(e);else{D=!0;try{N(pn,e)}finally{D=!1,j()}}}function kn(e,t,r){"focus"===e?(bn(),dn=r,(hn=t).attachEvent("onpropertychange",yn)):"blur"===e&&bn()}function wn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return vn(dn)}function Tn(e,t){if("click"===e)return vn(t)}function En(e,t){if("input"===e||"change"===e)return vn(t)}P&&(gn=lt("input")&&(!document.documentMode||9<document.documentMode));var Sn={eventTypes:cn,_isInputEventSupported:gn,extractEvents:function(e,t,r,n){var o=t?Cr(t):window,i=o.nodeName&&o.nodeName.toLowerCase();if("select"===i||"input"===i&&"file"===o.type)var a=mn;else if(ln(o))if(gn)a=En;else{a=wn;var u=kn}else(i=o.nodeName)&&"input"===i.toLowerCase()&&("checkbox"===o.type||"radio"===o.type)&&(a=Tn);if(a&&(a=a(e,t)))return fn(a,r,n);u&&u(e,o,t),"blur"===e&&(e=o._wrapperState)&&e.controlled&&"number"===o.type&&Pe(o,"number",o.value)}},An=Hr.extend({view:null,detail:null}),Mn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=Mn[e])&&!!t[e]}function Cn(){return Pn}var On=0,xn=0,Fn=!1,Ln=!1,Bn=An.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Cn,button:null,buttons:null,relatedTarget:function(e){return e.relatedTarget||(e.fromElement===e.srcElement?e.toElement:e.fromElement)},movementX:function(e){if("movementX"in e)return e.movementX;var t=On;return On=e.screenX,Fn?"mousemove"===e.type?e.screenX-t:0:(Fn=!0,0)},movementY:function(e){if("movementY"in e)return e.movementY;var t=xn;return xn=e.screenY,Ln?"mousemove"===e.type?e.screenY-t:0:(Ln=!0,0)}}),Nn=Bn.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Rn={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Jn={eventTypes:Rn,extractEvents:function(e,t,r,n,o){var i="mouseover"===e||"pointerover"===e,a="mouseout"===e||"pointerout"===e;if(i&&0===(32&o)&&(r.relatedTarget||r.fromElement)||!a&&!i)return null;(i=n.window===n?n:(i=n.ownerDocument)?i.defaultView||i.parentWindow:window,a)?(a=t,null!==(t=(t=r.relatedTarget||r.toElement)?Mr(t):null)&&(t!==$e(t)||5!==t.tag&&6!==t.tag)&&(t=null)):a=null;if(a===t)return null;if("mouseout"===e||"mouseover"===e)var u=Bn,s=Rn.mouseLeave,l=Rn.mouseEnter,c="mouse";else"pointerout"!==e&&"pointerover"!==e||(u=Nn,s=Rn.pointerLeave,l=Rn.pointerEnter,c="pointer");if(e=null==a?i:Cr(a),i=null==t?i:Cr(t),(s=u.getPooled(s,a,r,n)).type=c+"leave",s.target=e,s.relatedTarget=i,(r=u.getPooled(l,t,r,n)).type=c+"enter",r.target=i,r.relatedTarget=e,c=t,(n=a)&&c)e:{for(l=c,a=0,e=u=n;e;e=xr(e))a++;for(e=0,t=l;t;t=xr(t))e++;for(;0<a-e;)u=xr(u),a--;for(;0<e-a;)l=xr(l),e--;for(;a--;){if(u===l||u===l.alternate)break e;u=xr(u),l=xr(l)}u=null}else u=null;for(l=u,u=[];n&&n!==l&&(null===(a=n.alternate)||a!==l);)u.push(n),n=xr(n);for(n=[];c&&c!==l&&(null===(a=c.alternate)||a!==l);)n.push(c),c=xr(c);for(c=0;c<u.length;c++)Nr(u[c],"bubbled",s);for(c=n.length;0<c--;)Nr(n[c],"captured",r);return 0===(64&o)?[s]:[s,r]}};var _n="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t},Dn=Object.prototype.hasOwnProperty;function In(e,t){if(_n(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++)if(!Dn.call(t,r[n])||!_n(e[r[n]],t[r[n]]))return!1;return!0}var jn=P&&"documentMode"in document&&11>=document.documentMode,Xn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,Hn=null,Gn=null,zn=!1;function Vn(e,t){var r=t.window===t?t.document:9===t.nodeType?t:t.ownerDocument;return zn||null==Un||Un!==lr(r)?null:("selectionStart"in(r=Un)&&dr(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},Gn&&In(Gn,r)?null:(Gn=r,(e=Hr.getPooled(Xn.select,Hn,e,t)).type="select",e.target=Un,Jr(e),e))}var Zn={eventTypes:Xn,extractEvents:function(e,t,r,n,o,i){if(!(i=!(o=i||(n.window===n?n.document:9===n.nodeType?n:n.ownerDocument)))){e:{o=Ye(o),i=A.onSelect;for(var a=0;a<i.length;a++)if(!o.has(i[a])){o=!1;break e}o=!0}i=!o}if(i)return null;switch(o=t?Cr(t):window,e){case"focus":(ln(o)||"true"===o.contentEditable)&&(Un=o,Hn=t,Gn=null);break;case"blur":Gn=Hn=Un=null;break;case"mousedown":zn=!0;break;case"contextmenu":case"mouseup":case"dragend":return zn=!1,Vn(r,n);case"selectionchange":if(jn)break;case"keydown":case"keyup":return Vn(r,n)}return null}},Kn=Hr.extend({animationName:null,elapsedTime:null,pseudoElement:null}),Qn=Hr.extend({clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),qn=An.extend({relatedTarget:null});function Wn(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}var Yn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$n={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},eo=An.extend({key:function(e){if(e.key){var t=Yn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Wn(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?$n[e.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Cn,charCode:function(e){return"keypress"===e.type?Wn(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Wn(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}}),to=Bn.extend({dataTransfer:null}),ro=An.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Cn}),no=Hr.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),oo=Bn.extend({deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:null,deltaMode:null}),io={eventTypes:_t,extractEvents:function(e,t,r,n){var o=Dt.get(e);if(!o)return null;switch(e){case"keypress":if(0===Wn(r))return null;case"keydown":case"keyup":e=eo;break;case"blur":case"focus":e=qn;break;case"click":if(2===r.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":e=Bn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":e=to;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":e=ro;break;case Ve:case Ze:case Ke:e=Kn;break;case Qe:e=no;break;case"scroll":e=An;break;case"wheel":e=oo;break;case"copy":case"cut":case"paste":e=Qn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":e=Nn;break;default:e=Hr}return Jr(t=e.getPooled(o,t,r,n)),t}};if(b)throw Error(a(101));b=Array.prototype.slice.call("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k(),p=Or,v=Pr,m=Cr,M({SimpleEventPlugin:io,EnterLeaveEventPlugin:Jn,ChangeEventPlugin:Sn,SelectEventPlugin:Zn,BeforeInputEventPlugin:un});var ao=[],uo=-1;function so(e){0>uo||(e.current=ao[uo],ao[uo]=null,uo--)}function lo(e,t){uo++,ao[uo]=e.current,e.current=t}var co={},fo={current:co},ho={current:!1},po=co;function vo(e,t){var r=e.type.contextTypes;if(!r)return co;var n=e.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===t)return n.__reactInternalMemoizedMaskedChildContext;var o,i={};for(o in r)i[o]=t[o];return n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function mo(e){return null!==(e=e.childContextTypes)&&void 0!==e}function go(){so(ho),so(fo)}function bo(e,t,r){if(fo.current!==co)throw Error(a(168));lo(fo,t),lo(ho,r)}function yo(e,t,r){var n=e.stateNode;if(e=t.childContextTypes,"function"!==typeof n.getChildContext)return r;for(var i in n=n.getChildContext())if(!(i in e))throw Error(a(108,me(t)||"Unknown",i));return o({},r,{},n)}function ko(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||co,po=fo.current,lo(fo,e),lo(ho,ho.current),!0}function wo(e,t,r){var n=e.stateNode;if(!n)throw Error(a(169));r?(e=yo(e,t,po),n.__reactInternalMemoizedMergedChildContext=e,so(ho),so(fo),lo(fo,e)):so(ho),lo(ho,r)}var To=i.unstable_runWithPriority,Eo=i.unstable_scheduleCallback,So=i.unstable_cancelCallback,Ao=i.unstable_requestPaint,Mo=i.unstable_now,Po=i.unstable_getCurrentPriorityLevel,Co=i.unstable_ImmediatePriority,Oo=i.unstable_UserBlockingPriority,xo=i.unstable_NormalPriority,Fo=i.unstable_LowPriority,Lo=i.unstable_IdlePriority,Bo={},No=i.unstable_shouldYield,Ro=void 0!==Ao?Ao:function(){},Jo=null,_o=null,Do=!1,Io=Mo(),jo=1e4>Io?Mo:function(){return Mo()-Io};function Xo(){switch(Po()){case Co:return 99;case Oo:return 98;case xo:return 97;case Fo:return 96;case Lo:return 95;default:throw Error(a(332))}}function Uo(e){switch(e){case 99:return Co;case 98:return Oo;case 97:return xo;case 96:return Fo;case 95:return Lo;default:throw Error(a(332))}}function Ho(e,t){return e=Uo(e),To(e,t)}function Go(e,t,r){return e=Uo(e),Eo(e,t,r)}function zo(e){return null===Jo?(Jo=[e],_o=Eo(Co,Zo)):Jo.push(e),Bo}function Vo(){if(null!==_o){var e=_o;_o=null,So(e)}Zo()}function Zo(){if(!Do&&null!==Jo){Do=!0;var e=0;try{var t=Jo;Ho(99,(function(){for(;e<t.length;e++){var r=t[e];do{r=r(!0)}while(null!==r)}})),Jo=null}catch(r){throw null!==Jo&&(Jo=Jo.slice(e+1)),Eo(Co,Vo),r}finally{Do=!1}}}function Ko(e,t,r){return 1073741821-(1+((1073741821-e+t/10)/(r/=10)|0))*r}function Qo(e,t){if(e&&e.defaultProps)for(var r in t=o({},t),e=e.defaultProps)void 0===t[r]&&(t[r]=e[r]);return t}var qo={current:null},Wo=null,Yo=null,$o=null;function ei(){$o=Yo=Wo=null}function ti(e){var t=qo.current;so(qo),e.type._context._currentValue=t}function ri(e,t){for(;null!==e;){var r=e.alternate;if(e.childExpirationTime<t)e.childExpirationTime=t,null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t);else{if(!(null!==r&&r.childExpirationTime<t))break;r.childExpirationTime=t}e=e.return}}function ni(e,t){Wo=e,$o=Yo=null,null!==(e=e.dependencies)&&null!==e.firstContext&&(e.expirationTime>=t&&(xa=!0),e.firstContext=null)}function oi(e,t){if($o!==e&&!1!==t&&0!==t)if("number"===typeof t&&1073741823!==t||($o=e,t=1073741823),t={context:e,observedBits:t,next:null},null===Yo){if(null===Wo)throw Error(a(308));Yo=t,Wo.dependencies={expirationTime:0,firstContext:t,responders:null}}else Yo=Yo.next=t;return e._currentValue}var ii=!1;function ai(e){e.updateQueue={baseState:e.memoizedState,baseQueue:null,shared:{pending:null},effects:null}}function ui(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,baseQueue:e.baseQueue,shared:e.shared,effects:e.effects})}function si(e,t){return(e={expirationTime:e,suspenseConfig:t,tag:0,payload:null,callback:null,next:null}).next=e}function li(e,t){if(null!==(e=e.updateQueue)){var r=(e=e.shared).pending;null===r?t.next=t:(t.next=r.next,r.next=t),e.pending=t}}function ci(e,t){var r=e.alternate;null!==r&&ui(r,e),null===(r=(e=e.updateQueue).baseQueue)?(e.baseQueue=t.next=t,t.next=t):(t.next=r.next,r.next=t)}function fi(e,t,r,n){var i=e.updateQueue;ii=!1;var a=i.baseQueue,u=i.shared.pending;if(null!==u){if(null!==a){var s=a.next;a.next=u.next,u.next=s}a=u,i.shared.pending=null,null!==(s=e.alternate)&&(null!==(s=s.updateQueue)&&(s.baseQueue=u))}if(null!==a){s=a.next;var l=i.baseState,c=0,f=null,h=null,d=null;if(null!==s)for(var p=s;;){if((u=p.expirationTime)<n){var v={expirationTime:p.expirationTime,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null};null===d?(h=d=v,f=l):d=d.next=v,u>c&&(c=u)}else{null!==d&&(d=d.next={expirationTime:1073741823,suspenseConfig:p.suspenseConfig,tag:p.tag,payload:p.payload,callback:p.callback,next:null}),is(u,p.suspenseConfig);e:{var m=e,g=p;switch(u=t,v=r,g.tag){case 1:if("function"===typeof(m=g.payload)){l=m.call(v,l,u);break e}l=m;break e;case 3:m.effectTag=-4097&m.effectTag|64;case 0:if(null===(u="function"===typeof(m=g.payload)?m.call(v,l,u):m)||void 0===u)break e;l=o({},l,u);break e;case 2:ii=!0}}null!==p.callback&&(e.effectTag|=32,null===(u=i.effects)?i.effects=[p]:u.push(p))}if(null===(p=p.next)||p===s){if(null===(u=i.shared.pending))break;p=a.next=u.next,u.next=s,i.baseQueue=a=u,i.shared.pending=null}}null===d?f=l:d.next=h,i.baseState=f,i.baseQueue=d,as(c),e.expirationTime=c,e.memoizedState=l}}function hi(e,t,r){if(e=t.effects,t.effects=null,null!==e)for(t=0;t<e.length;t++){var n=e[t],o=n.callback;if(null!==o){if(n.callback=null,n=o,o=r,"function"!==typeof n)throw Error(a(191,n));n.call(o)}}}var di=q.ReactCurrentBatchConfig,pi=(new n.Component).refs;function vi(e,t,r,n){r=null===(r=r(n,t=e.memoizedState))||void 0===r?t:o({},t,r),e.memoizedState=r,0===e.expirationTime&&(e.updateQueue.baseState=r)}var mi={isMounted:function(e){return!!(e=e._reactInternalFiber)&&$e(e)===e},enqueueSetState:function(e,t,r){e=e._reactInternalFiber;var n=Vu(),o=di.suspense;(o=si(n=Zu(n,e,o),o)).payload=t,void 0!==r&&null!==r&&(o.callback=r),li(e,o),Ku(e,n)},enqueueReplaceState:function(e,t,r){e=e._reactInternalFiber;var n=Vu(),o=di.suspense;(o=si(n=Zu(n,e,o),o)).tag=1,o.payload=t,void 0!==r&&null!==r&&(o.callback=r),li(e,o),Ku(e,n)},enqueueForceUpdate:function(e,t){e=e._reactInternalFiber;var r=Vu(),n=di.suspense;(n=si(r=Zu(r,e,n),n)).tag=2,void 0!==t&&null!==t&&(n.callback=t),li(e,n),Ku(e,r)}};function gi(e,t,r,n,o,i,a){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(n,i,a):!t.prototype||!t.prototype.isPureReactComponent||(!In(r,n)||!In(o,i))}function bi(e,t,r){var n=!1,o=co,i=t.contextType;return"object"===typeof i&&null!==i?i=oi(i):(o=mo(t)?po:fo.current,i=(n=null!==(n=t.contextTypes)&&void 0!==n)?vo(e,o):co),t=new t(r,i),e.memoizedState=null!==t.state&&void 0!==t.state?t.state:null,t.updater=mi,e.stateNode=t,t._reactInternalFiber=e,n&&((e=e.stateNode).__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function yi(e,t,r,n){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(r,n),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(r,n),t.state!==e&&mi.enqueueReplaceState(t,t.state,null)}function ki(e,t,r,n){var o=e.stateNode;o.props=r,o.state=e.memoizedState,o.refs=pi,ai(e);var i=t.contextType;"object"===typeof i&&null!==i?o.context=oi(i):(i=mo(t)?po:fo.current,o.context=vo(e,i)),fi(e,r,o,n),o.state=e.memoizedState,"function"===typeof(i=t.getDerivedStateFromProps)&&(vi(e,t,i,r),o.state=e.memoizedState),"function"===typeof t.getDerivedStateFromProps||"function"===typeof o.getSnapshotBeforeUpdate||"function"!==typeof o.UNSAFE_componentWillMount&&"function"!==typeof o.componentWillMount||(t=o.state,"function"===typeof o.componentWillMount&&o.componentWillMount(),"function"===typeof o.UNSAFE_componentWillMount&&o.UNSAFE_componentWillMount(),t!==o.state&&mi.enqueueReplaceState(o,o.state,null),fi(e,r,o,n),o.state=e.memoizedState),"function"===typeof o.componentDidMount&&(e.effectTag|=4)}var wi=Array.isArray;function Ti(e,t,r){if(null!==(e=r.ref)&&"function"!==typeof e&&"object"!==typeof e){if(r._owner){if(r=r._owner){if(1!==r.tag)throw Error(a(309));var n=r.stateNode}if(!n)throw Error(a(147,e));var o=""+e;return null!==t&&null!==t.ref&&"function"===typeof t.ref&&t.ref._stringRef===o?t.ref:((t=function(e){var t=n.refs;t===pi&&(t=n.refs={}),null===e?delete t[o]:t[o]=e})._stringRef=o,t)}if("string"!==typeof e)throw Error(a(284));if(!r._owner)throw Error(a(290,e))}return e}function Ei(e,t){if("textarea"!==e.type)throw Error(a(31,"[object Object]"===Object.prototype.toString.call(t)?"object with keys {"+Object.keys(t).join(", ")+"}":t,""))}function Si(e){function t(t,r){if(e){var n=t.lastEffect;null!==n?(n.nextEffect=r,t.lastEffect=r):t.firstEffect=t.lastEffect=r,r.nextEffect=null,r.effectTag=8}}function r(r,n){if(!e)return null;for(;null!==n;)t(r,n),n=n.sibling;return null}function n(e,t){for(e=new Map;null!==t;)null!==t.key?e.set(t.key,t):e.set(t.index,t),t=t.sibling;return e}function o(e,t){return(e=Ms(e,t)).index=0,e.sibling=null,e}function i(t,r,n){return t.index=n,e?null!==(n=t.alternate)?(n=n.index)<r?(t.effectTag=2,r):n:(t.effectTag=2,r):r}function u(t){return e&&null===t.alternate&&(t.effectTag=2),t}function s(e,t,r,n){return null===t||6!==t.tag?((t=Os(r,e.mode,n)).return=e,t):((t=o(t,r)).return=e,t)}function l(e,t,r,n){return null!==t&&t.elementType===r.type?((n=o(t,r.props)).ref=Ti(e,t,r),n.return=e,n):((n=Ps(r.type,r.key,r.props,null,e.mode,n)).ref=Ti(e,t,r),n.return=e,n)}function c(e,t,r,n){return null===t||4!==t.tag||t.stateNode.containerInfo!==r.containerInfo||t.stateNode.implementation!==r.implementation?((t=xs(r,e.mode,n)).return=e,t):((t=o(t,r.children||[])).return=e,t)}function f(e,t,r,n,i){return null===t||7!==t.tag?((t=Cs(r,e.mode,n,i)).return=e,t):((t=o(t,r)).return=e,t)}function h(e,t,r){if("string"===typeof t||"number"===typeof t)return(t=Os(""+t,e.mode,r)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case ee:return(r=Ps(t.type,t.key,t.props,null,e.mode,r)).ref=Ti(e,null,t),r.return=e,r;case te:return(t=xs(t,e.mode,r)).return=e,t}if(wi(t)||ve(t))return(t=Cs(t,e.mode,r,null)).return=e,t;Ei(e,t)}return null}function d(e,t,r,n){var o=null!==t?t.key:null;if("string"===typeof r||"number"===typeof r)return null!==o?null:s(e,t,""+r,n);if("object"===typeof r&&null!==r){switch(r.$$typeof){case ee:return r.key===o?r.type===re?f(e,t,r.props.children,n,o):l(e,t,r,n):null;case te:return r.key===o?c(e,t,r,n):null}if(wi(r)||ve(r))return null!==o?null:f(e,t,r,n,null);Ei(e,r)}return null}function p(e,t,r,n,o){if("string"===typeof n||"number"===typeof n)return s(t,e=e.get(r)||null,""+n,o);if("object"===typeof n&&null!==n){switch(n.$$typeof){case ee:return e=e.get(null===n.key?r:n.key)||null,n.type===re?f(t,e,n.props.children,o,n.key):l(t,e,n,o);case te:return c(t,e=e.get(null===n.key?r:n.key)||null,n,o)}if(wi(n)||ve(n))return f(t,e=e.get(r)||null,n,o,null);Ei(t,n)}return null}function v(o,a,u,s){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<u.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var g=d(o,f,u[v],s);if(null===g){null===f&&(f=m);break}e&&f&&null===g.alternate&&t(o,f),a=i(g,a,v),null===c?l=g:c.sibling=g,c=g,f=m}if(v===u.length)return r(o,f),l;if(null===f){for(;v<u.length;v++)null!==(f=h(o,u[v],s))&&(a=i(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=n(o,f);v<u.length;v++)null!==(m=p(f,o,v,u[v],s))&&(e&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=i(m,a,v),null===c?l=m:c.sibling=m,c=m);return e&&f.forEach((function(e){return t(o,e)})),l}function m(o,u,s,l){var c=ve(s);if("function"!==typeof c)throw Error(a(150));if(null==(s=c.call(s)))throw Error(a(151));for(var f=c=null,v=u,m=u=0,g=null,b=s.next();null!==v&&!b.done;m++,b=s.next()){v.index>m?(g=v,v=null):g=v.sibling;var y=d(o,v,b.value,l);if(null===y){null===v&&(v=g);break}e&&v&&null===y.alternate&&t(o,v),u=i(y,u,m),null===f?c=y:f.sibling=y,f=y,v=g}if(b.done)return r(o,v),c;if(null===v){for(;!b.done;m++,b=s.next())null!==(b=h(o,b.value,l))&&(u=i(b,u,m),null===f?c=b:f.sibling=b,f=b);return c}for(v=n(o,v);!b.done;m++,b=s.next())null!==(b=p(v,o,m,b.value,l))&&(e&&null!==b.alternate&&v.delete(null===b.key?m:b.key),u=i(b,u,m),null===f?c=b:f.sibling=b,f=b);return e&&v.forEach((function(e){return t(o,e)})),c}return function(e,n,i,s){var l="object"===typeof i&&null!==i&&i.type===re&&null===i.key;l&&(i=i.props.children);var c="object"===typeof i&&null!==i;if(c)switch(i.$$typeof){case ee:e:{for(c=i.key,l=n;null!==l;){if(l.key===c){switch(l.tag){case 7:if(i.type===re){r(e,l.sibling),(n=o(l,i.props.children)).return=e,e=n;break e}break;default:if(l.elementType===i.type){r(e,l.sibling),(n=o(l,i.props)).ref=Ti(e,l,i),n.return=e,e=n;break e}}r(e,l);break}t(e,l),l=l.sibling}i.type===re?((n=Cs(i.props.children,e.mode,s,i.key)).return=e,e=n):((s=Ps(i.type,i.key,i.props,null,e.mode,s)).ref=Ti(e,n,i),s.return=e,e=s)}return u(e);case te:e:{for(l=i.key;null!==n;){if(n.key===l){if(4===n.tag&&n.stateNode.containerInfo===i.containerInfo&&n.stateNode.implementation===i.implementation){r(e,n.sibling),(n=o(n,i.children||[])).return=e,e=n;break e}r(e,n);break}t(e,n),n=n.sibling}(n=xs(i,e.mode,s)).return=e,e=n}return u(e)}if("string"===typeof i||"number"===typeof i)return i=""+i,null!==n&&6===n.tag?(r(e,n.sibling),(n=o(n,i)).return=e,e=n):(r(e,n),(n=Os(i,e.mode,s)).return=e,e=n),u(e);if(wi(i))return v(e,n,i,s);if(ve(i))return m(e,n,i,s);if(c&&Ei(e,i),"undefined"===typeof i&&!l)switch(e.tag){case 1:case 0:throw e=e.type,Error(a(152,e.displayName||e.name||"Component"))}return r(e,n)}}var Ai=Si(!0),Mi=Si(!1),Pi={},Ci={current:Pi},Oi={current:Pi},xi={current:Pi};function Fi(e){if(e===Pi)throw Error(a(174));return e}function Li(e,t){switch(lo(xi,t),lo(Oi,e),lo(Ci,Pi),e=t.nodeType){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:_e(null,"");break;default:t=_e(t=(e=8===e?t.parentNode:t).namespaceURI||null,e=e.tagName)}so(Ci),lo(Ci,t)}function Bi(){so(Ci),so(Oi),so(xi)}function Ni(e){Fi(xi.current);var t=Fi(Ci.current),r=_e(t,e.type);t!==r&&(lo(Oi,e),lo(Ci,r))}function Ri(e){Oi.current===e&&(so(Ci),so(Oi))}var Ji={current:0};function _i(e){for(var t=e;null!==t;){if(13===t.tag){var r=t.memoizedState;if(null!==r&&(null===(r=r.dehydrated)||"$?"===r.data||"$!"===r.data))return t}else if(19===t.tag&&void 0!==t.memoizedProps.revealOrder){if(0!==(64&t.effectTag))return t}else if(null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function Di(e,t){return{responder:e,props:t}}var Ii=q.ReactCurrentDispatcher,ji=q.ReactCurrentBatchConfig,Xi=0,Ui=null,Hi=null,Gi=null,zi=!1;function Vi(){throw Error(a(321))}function Zi(e,t){if(null===t)return!1;for(var r=0;r<t.length&&r<e.length;r++)if(!_n(e[r],t[r]))return!1;return!0}function Ki(e,t,r,n,o,i){if(Xi=i,Ui=t,t.memoizedState=null,t.updateQueue=null,t.expirationTime=0,Ii.current=null===e||null===e.memoizedState?ga:ba,e=r(n,o),t.expirationTime===Xi){i=0;do{if(t.expirationTime=0,!(25>i))throw Error(a(301));i+=1,Gi=Hi=null,t.updateQueue=null,Ii.current=ya,e=r(n,o)}while(t.expirationTime===Xi)}if(Ii.current=ma,t=null!==Hi&&null!==Hi.next,Xi=0,Gi=Hi=Ui=null,zi=!1,t)throw Error(a(300));return e}function Qi(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e,Gi}function qi(){if(null===Hi){var e=Ui.alternate;e=null!==e?e.memoizedState:null}else e=Hi.next;var t=null===Gi?Ui.memoizedState:Gi.next;if(null!==t)Gi=t,Hi=e;else{if(null===e)throw Error(a(310));e={memoizedState:(Hi=e).memoizedState,baseState:Hi.baseState,baseQueue:Hi.baseQueue,queue:Hi.queue,next:null},null===Gi?Ui.memoizedState=Gi=e:Gi=Gi.next=e}return Gi}function Wi(e,t){return"function"===typeof t?t(e):t}function Yi(e){var t=qi(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=Hi,o=n.baseQueue,i=r.pending;if(null!==i){if(null!==o){var u=o.next;o.next=i.next,i.next=u}n.baseQueue=o=i,r.pending=null}if(null!==o){o=o.next,n=n.baseState;var s=u=i=null,l=o;do{var c=l.expirationTime;if(c<Xi){var f={expirationTime:l.expirationTime,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null};null===s?(u=s=f,i=n):s=s.next=f,c>Ui.expirationTime&&(Ui.expirationTime=c,as(c))}else null!==s&&(s=s.next={expirationTime:1073741823,suspenseConfig:l.suspenseConfig,action:l.action,eagerReducer:l.eagerReducer,eagerState:l.eagerState,next:null}),is(c,l.suspenseConfig),n=l.eagerReducer===e?l.eagerState:e(n,l.action);l=l.next}while(null!==l&&l!==o);null===s?i=n:s.next=u,_n(n,t.memoizedState)||(xa=!0),t.memoizedState=n,t.baseState=i,t.baseQueue=s,r.lastRenderedState=n}return[t.memoizedState,r.dispatch]}function $i(e){var t=qi(),r=t.queue;if(null===r)throw Error(a(311));r.lastRenderedReducer=e;var n=r.dispatch,o=r.pending,i=t.memoizedState;if(null!==o){r.pending=null;var u=o=o.next;do{i=e(i,u.action),u=u.next}while(u!==o);_n(i,t.memoizedState)||(xa=!0),t.memoizedState=i,null===t.baseQueue&&(t.baseState=i),r.lastRenderedState=i}return[i,n]}function ea(e){var t=Qi();return"function"===typeof e&&(e=e()),t.memoizedState=t.baseState=e,e=(e=t.queue={pending:null,dispatch:null,lastRenderedReducer:Wi,lastRenderedState:e}).dispatch=va.bind(null,Ui,e),[t.memoizedState,e]}function ta(e,t,r,n){return e={tag:e,create:t,destroy:r,deps:n,next:null},null===(t=Ui.updateQueue)?(t={lastEffect:null},Ui.updateQueue=t,t.lastEffect=e.next=e):null===(r=t.lastEffect)?t.lastEffect=e.next=e:(n=r.next,r.next=e,e.next=n,t.lastEffect=e),e}function ra(){return qi().memoizedState}function na(e,t,r,n){var o=Qi();Ui.effectTag|=e,o.memoizedState=ta(1|t,r,void 0,void 0===n?null:n)}function oa(e,t,r,n){var o=qi();n=void 0===n?null:n;var i=void 0;if(null!==Hi){var a=Hi.memoizedState;if(i=a.destroy,null!==n&&Zi(n,a.deps))return void ta(t,r,i,n)}Ui.effectTag|=e,o.memoizedState=ta(1|t,r,i,n)}function ia(e,t){return na(516,4,e,t)}function aa(e,t){return oa(516,4,e,t)}function ua(e,t){return oa(4,2,e,t)}function sa(e,t){return"function"===typeof t?(e=e(),t(e),function(){t(null)}):null!==t&&void 0!==t?(e=e(),t.current=e,function(){t.current=null}):void 0}function la(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,oa(4,2,sa.bind(null,t,e),r)}function ca(){}function fa(e,t){return Qi().memoizedState=[e,void 0===t?null:t],e}function ha(e,t){var r=qi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Zi(t,n[1])?n[0]:(r.memoizedState=[e,t],e)}function da(e,t){var r=qi();t=void 0===t?null:t;var n=r.memoizedState;return null!==n&&null!==t&&Zi(t,n[1])?n[0]:(e=e(),r.memoizedState=[e,t],e)}function pa(e,t,r){var n=Xo();Ho(98>n?98:n,(function(){e(!0)})),Ho(97<n?97:n,(function(){var n=ji.suspense;ji.suspense=void 0===t?null:t;try{e(!1),r()}finally{ji.suspense=n}}))}function va(e,t,r){var n=Vu(),o=di.suspense;o={expirationTime:n=Zu(n,e,o),suspenseConfig:o,action:r,eagerReducer:null,eagerState:null,next:null};var i=t.pending;if(null===i?o.next=o:(o.next=i.next,i.next=o),t.pending=o,i=e.alternate,e===Ui||null!==i&&i===Ui)zi=!0,o.expirationTime=Xi,Ui.expirationTime=Xi;else{if(0===e.expirationTime&&(null===i||0===i.expirationTime)&&null!==(i=t.lastRenderedReducer))try{var a=t.lastRenderedState,u=i(a,r);if(o.eagerReducer=i,o.eagerState=u,_n(u,a))return}catch(s){}Ku(e,n)}}var ma={readContext:oi,useCallback:Vi,useContext:Vi,useEffect:Vi,useImperativeHandle:Vi,useLayoutEffect:Vi,useMemo:Vi,useReducer:Vi,useRef:Vi,useState:Vi,useDebugValue:Vi,useResponder:Vi,useDeferredValue:Vi,useTransition:Vi},ga={readContext:oi,useCallback:fa,useContext:oi,useEffect:ia,useImperativeHandle:function(e,t,r){return r=null!==r&&void 0!==r?r.concat([e]):null,na(4,2,sa.bind(null,t,e),r)},useLayoutEffect:function(e,t){return na(4,2,e,t)},useMemo:function(e,t){var r=Qi();return t=void 0===t?null:t,e=e(),r.memoizedState=[e,t],e},useReducer:function(e,t,r){var n=Qi();return t=void 0!==r?r(t):t,n.memoizedState=n.baseState=t,e=(e=n.queue={pending:null,dispatch:null,lastRenderedReducer:e,lastRenderedState:t}).dispatch=va.bind(null,Ui,e),[n.memoizedState,e]},useRef:function(e){return e={current:e},Qi().memoizedState=e},useState:ea,useDebugValue:ca,useResponder:Di,useDeferredValue:function(e,t){var r=ea(e),n=r[0],o=r[1];return ia((function(){var r=ji.suspense;ji.suspense=void 0===t?null:t;try{o(e)}finally{ji.suspense=r}}),[e,t]),n},useTransition:function(e){var t=ea(!1),r=t[0];return t=t[1],[fa(pa.bind(null,t,e),[t,e]),r]}},ba={readContext:oi,useCallback:ha,useContext:oi,useEffect:aa,useImperativeHandle:la,useLayoutEffect:ua,useMemo:da,useReducer:Yi,useRef:ra,useState:function(){return Yi(Wi)},useDebugValue:ca,useResponder:Di,useDeferredValue:function(e,t){var r=Yi(Wi),n=r[0],o=r[1];return aa((function(){var r=ji.suspense;ji.suspense=void 0===t?null:t;try{o(e)}finally{ji.suspense=r}}),[e,t]),n},useTransition:function(e){var t=Yi(Wi),r=t[0];return t=t[1],[ha(pa.bind(null,t,e),[t,e]),r]}},ya={readContext:oi,useCallback:ha,useContext:oi,useEffect:aa,useImperativeHandle:la,useLayoutEffect:ua,useMemo:da,useReducer:$i,useRef:ra,useState:function(){return $i(Wi)},useDebugValue:ca,useResponder:Di,useDeferredValue:function(e,t){var r=$i(Wi),n=r[0],o=r[1];return aa((function(){var r=ji.suspense;ji.suspense=void 0===t?null:t;try{o(e)}finally{ji.suspense=r}}),[e,t]),n},useTransition:function(e){var t=$i(Wi),r=t[0];return t=t[1],[ha(pa.bind(null,t,e),[t,e]),r]}},ka=null,wa=null,Ta=!1;function Ea(e,t){var r=Ss(5,null,null,0);r.elementType="DELETED",r.type="DELETED",r.stateNode=t,r.return=e,r.effectTag=8,null!==e.lastEffect?(e.lastEffect.nextEffect=r,e.lastEffect=r):e.firstEffect=e.lastEffect=r}function Sa(e,t){switch(e.tag){case 5:var r=e.type;return null!==(t=1!==t.nodeType||r.toLowerCase()!==t.nodeName.toLowerCase()?null:t)&&(e.stateNode=t,!0);case 6:return null!==(t=""===e.pendingProps||3!==t.nodeType?null:t)&&(e.stateNode=t,!0);case 13:default:return!1}}function Aa(e){if(Ta){var t=wa;if(t){var r=t;if(!Sa(e,t)){if(!(t=kr(r.nextSibling))||!Sa(e,t))return e.effectTag=-1025&e.effectTag|2,Ta=!1,void(ka=e);Ea(ka,r)}ka=e,wa=kr(t.firstChild)}else e.effectTag=-1025&e.effectTag|2,Ta=!1,ka=e}}function Ma(e){for(e=e.return;null!==e&&5!==e.tag&&3!==e.tag&&13!==e.tag;)e=e.return;ka=e}function Pa(e){if(e!==ka)return!1;if(!Ta)return Ma(e),Ta=!0,!1;var t=e.type;if(5!==e.tag||"head"!==t&&"body"!==t&&!gr(t,e.memoizedProps))for(t=wa;t;)Ea(e,t),t=kr(t.nextSibling);if(Ma(e),13===e.tag){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(a(317));e:{for(e=e.nextSibling,t=0;e;){if(8===e.nodeType){var r=e.data;if("/$"===r){if(0===t){wa=kr(e.nextSibling);break e}t--}else"$"!==r&&"$!"!==r&&"$?"!==r||t++}e=e.nextSibling}wa=null}}else wa=ka?kr(e.stateNode.nextSibling):null;return!0}function Ca(){wa=ka=null,Ta=!1}var Oa=q.ReactCurrentOwner,xa=!1;function Fa(e,t,r,n){t.child=null===e?Mi(t,null,r,n):Ai(t,e.child,r,n)}function La(e,t,r,n,o){r=r.render;var i=t.ref;return ni(t,o),n=Ki(e,t,r,n,i,o),null===e||xa?(t.effectTag|=1,Fa(e,t,n,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function Ba(e,t,r,n,o,i){if(null===e){var a=r.type;return"function"!==typeof a||As(a)||void 0!==a.defaultProps||null!==r.compare||void 0!==r.defaultProps?((e=Ps(r.type,null,n,null,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Na(e,t,a,n,o,i))}return a=e.child,o<i&&(o=a.memoizedProps,(r=null!==(r=r.compare)?r:In)(o,n)&&e.ref===t.ref)?Ka(e,t,i):(t.effectTag|=1,(e=Ms(a,n)).ref=t.ref,e.return=t,t.child=e)}function Na(e,t,r,n,o,i){return null!==e&&In(e.memoizedProps,n)&&e.ref===t.ref&&(xa=!1,o<i)?(t.expirationTime=e.expirationTime,Ka(e,t,i)):Ja(e,t,r,n,i)}function Ra(e,t){var r=t.ref;(null===e&&null!==r||null!==e&&e.ref!==r)&&(t.effectTag|=128)}function Ja(e,t,r,n,o){var i=mo(r)?po:fo.current;return i=vo(t,i),ni(t,o),r=Ki(e,t,r,n,i,o),null===e||xa?(t.effectTag|=1,Fa(e,t,r,o),t.child):(t.updateQueue=e.updateQueue,t.effectTag&=-517,e.expirationTime<=o&&(e.expirationTime=0),Ka(e,t,o))}function _a(e,t,r,n,o){if(mo(r)){var i=!0;ko(t)}else i=!1;if(ni(t,o),null===t.stateNode)null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),bi(t,r,n),ki(t,r,n,o),n=!0;else if(null===e){var a=t.stateNode,u=t.memoizedProps;a.props=u;var s=a.context,l=r.contextType;"object"===typeof l&&null!==l?l=oi(l):l=vo(t,l=mo(r)?po:fo.current);var c=r.getDerivedStateFromProps,f="function"===typeof c||"function"===typeof a.getSnapshotBeforeUpdate;f||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==n||s!==l)&&yi(t,a,n,l),ii=!1;var h=t.memoizedState;a.state=h,fi(t,n,a,o),s=t.memoizedState,u!==n||h!==s||ho.current||ii?("function"===typeof c&&(vi(t,r,c,n),s=t.memoizedState),(u=ii||gi(t,r,u,n,h,s,l))?(f||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.effectTag|=4)):("function"===typeof a.componentDidMount&&(t.effectTag|=4),t.memoizedProps=n,t.memoizedState=s),a.props=n,a.state=s,a.context=l,n=u):("function"===typeof a.componentDidMount&&(t.effectTag|=4),n=!1)}else a=t.stateNode,ui(e,t),u=t.memoizedProps,a.props=t.type===t.elementType?u:Qo(t.type,u),s=a.context,"object"===typeof(l=r.contextType)&&null!==l?l=oi(l):l=vo(t,l=mo(r)?po:fo.current),(f="function"===typeof(c=r.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(u!==n||s!==l)&&yi(t,a,n,l),ii=!1,s=t.memoizedState,a.state=s,fi(t,n,a,o),h=t.memoizedState,u!==n||s!==h||ho.current||ii?("function"===typeof c&&(vi(t,r,c,n),h=t.memoizedState),(c=ii||gi(t,r,u,n,s,h,l))?(f||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(n,h,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(n,h,l)),"function"===typeof a.componentDidUpdate&&(t.effectTag|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.effectTag|=256)):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),t.memoizedProps=n,t.memoizedState=h),a.props=n,a.state=h,a.context=l,n=c):("function"!==typeof a.componentDidUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=4),"function"!==typeof a.getSnapshotBeforeUpdate||u===e.memoizedProps&&s===e.memoizedState||(t.effectTag|=256),n=!1);return Da(e,t,r,n,i,o)}function Da(e,t,r,n,o,i){Ra(e,t);var a=0!==(64&t.effectTag);if(!n&&!a)return o&&wo(t,r,!1),Ka(e,t,i);n=t.stateNode,Oa.current=t;var u=a&&"function"!==typeof r.getDerivedStateFromError?null:n.render();return t.effectTag|=1,null!==e&&a?(t.child=Ai(t,e.child,null,i),t.child=Ai(t,null,u,i)):Fa(e,t,u,i),t.memoizedState=n.state,o&&wo(t,r,!0),t.child}function Ia(e){var t=e.stateNode;t.pendingContext?bo(0,t.pendingContext,t.pendingContext!==t.context):t.context&&bo(0,t.context,!1),Li(e,t.containerInfo)}var ja,Xa,Ua,Ha={dehydrated:null,retryTime:0};function Ga(e,t,r){var n,o=t.mode,i=t.pendingProps,a=Ji.current,u=!1;if((n=0!==(64&t.effectTag))||(n=0!==(2&a)&&(null===e||null!==e.memoizedState)),n?(u=!0,t.effectTag&=-65):null!==e&&null===e.memoizedState||void 0===i.fallback||!0===i.unstable_avoidThisFallback||(a|=1),lo(Ji,1&a),null===e){if(void 0!==i.fallback&&Aa(t),u){if(u=i.fallback,(i=Cs(null,o,0,null)).return=t,0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Cs(u,o,r,null)).return=t,i.sibling=r,t.memoizedState=Ha,t.child=i,r}return o=i.children,t.memoizedState=null,t.child=Mi(t,null,o,r)}if(null!==e.memoizedState){if(o=(e=e.child).sibling,u){if(i=i.fallback,(r=Ms(e,e.pendingProps)).return=t,0===(2&t.mode)&&(u=null!==t.memoizedState?t.child.child:t.child)!==e.child)for(r.child=u;null!==u;)u.return=r,u=u.sibling;return(o=Ms(o,i)).return=t,r.sibling=o,r.childExpirationTime=0,t.memoizedState=Ha,t.child=r,o}return r=Ai(t,e.child,i.children,r),t.memoizedState=null,t.child=r}if(e=e.child,u){if(u=i.fallback,(i=Cs(null,o,0,null)).return=t,i.child=e,null!==e&&(e.return=i),0===(2&t.mode))for(e=null!==t.memoizedState?t.child.child:t.child,i.child=e;null!==e;)e.return=i,e=e.sibling;return(r=Cs(u,o,r,null)).return=t,i.sibling=r,r.effectTag|=2,i.childExpirationTime=0,t.memoizedState=Ha,t.child=i,r}return t.memoizedState=null,t.child=Ai(t,e,i.children,r)}function za(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t),ri(e.return,t)}function Va(e,t,r,n,o,i){var a=e.memoizedState;null===a?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:n,tail:r,tailExpiration:0,tailMode:o,lastEffect:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=n,a.tail=r,a.tailExpiration=0,a.tailMode=o,a.lastEffect=i)}function Za(e,t,r){var n=t.pendingProps,o=n.revealOrder,i=n.tail;if(Fa(e,t,n.children,r),0!==(2&(n=Ji.current)))n=1&n|2,t.effectTag|=64;else{if(null!==e&&0!==(64&e.effectTag))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&za(e,r);else if(19===e.tag)za(e,r);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}n&=1}if(lo(Ji,n),0===(2&t.mode))t.memoizedState=null;else switch(o){case"forwards":for(r=t.child,o=null;null!==r;)null!==(e=r.alternate)&&null===_i(e)&&(o=r),r=r.sibling;null===(r=o)?(o=t.child,t.child=null):(o=r.sibling,r.sibling=null),Va(t,!1,o,r,i,t.lastEffect);break;case"backwards":for(r=null,o=t.child,t.child=null;null!==o;){if(null!==(e=o.alternate)&&null===_i(e)){t.child=o;break}e=o.sibling,o.sibling=r,r=o,o=e}Va(t,!0,r,null,i,t.lastEffect);break;case"together":Va(t,!1,null,null,void 0,t.lastEffect);break;default:t.memoizedState=null}return t.child}function Ka(e,t,r){null!==e&&(t.dependencies=e.dependencies);var n=t.expirationTime;if(0!==n&&as(n),t.childExpirationTime<r)return null;if(null!==e&&t.child!==e.child)throw Error(a(153));if(null!==t.child){for(r=Ms(e=t.child,e.pendingProps),t.child=r,r.return=t;null!==e.sibling;)e=e.sibling,(r=r.sibling=Ms(e,e.pendingProps)).return=t;r.sibling=null}return t.child}function Qa(e,t){switch(e.tailMode){case"hidden":t=e.tail;for(var r=null;null!==t;)null!==t.alternate&&(r=t),t=t.sibling;null===r?e.tail=null:r.sibling=null;break;case"collapsed":r=e.tail;for(var n=null;null!==r;)null!==r.alternate&&(n=r),r=r.sibling;null===n?t||null===e.tail?e.tail=null:e.tail.sibling=null:n.sibling=null}}function qa(e,t,r){var n=t.pendingProps;switch(t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return null;case 1:return mo(t.type)&&go(),null;case 3:return Bi(),so(ho),so(fo),(r=t.stateNode).pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),null!==e&&null!==e.child||!Pa(t)||(t.effectTag|=4),null;case 5:Ri(t),r=Fi(xi.current);var i=t.type;if(null!==e&&null!=t.stateNode)Xa(e,t,i,n,r),e.ref!==t.ref&&(t.effectTag|=128);else{if(!n){if(null===t.stateNode)throw Error(a(166));return null}if(e=Fi(Ci.current),Pa(t)){n=t.stateNode,i=t.type;var u=t.memoizedProps;switch(n[Er]=t,n[Sr]=u,i){case"iframe":case"object":case"embed":Zt("load",n);break;case"video":case"audio":for(e=0;e<qe.length;e++)Zt(qe[e],n);break;case"source":Zt("error",n);break;case"img":case"image":case"link":Zt("error",n),Zt("load",n);break;case"form":Zt("reset",n),Zt("submit",n);break;case"details":Zt("toggle",n);break;case"input":Ee(n,u),Zt("invalid",n),ur(r,"onChange");break;case"select":n._wrapperState={wasMultiple:!!u.multiple},Zt("invalid",n),ur(r,"onChange");break;case"textarea":Fe(n,u),Zt("invalid",n),ur(r,"onChange")}for(var s in or(i,u),e=null,u)if(u.hasOwnProperty(s)){var l=u[s];"children"===s?"string"===typeof l?n.textContent!==l&&(e=["children",l]):"number"===typeof l&&n.textContent!==""+l&&(e=["children",""+l]):S.hasOwnProperty(s)&&null!=l&&ur(r,s)}switch(i){case"input":ke(n),Me(n,u,!0);break;case"textarea":ke(n),Be(n);break;case"select":case"option":break;default:"function"===typeof u.onClick&&(n.onclick=sr)}r=e,t.updateQueue=r,null!==r&&(t.effectTag|=4)}else{switch(s=9===r.nodeType?r:r.ownerDocument,e===ar&&(e=Je(i)),e===ar?"script"===i?((e=s.createElement("div")).innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):"string"===typeof n.is?e=s.createElement(i,{is:n.is}):(e=s.createElement(i),"select"===i&&(s=e,n.multiple?s.multiple=!0:n.size&&(s.size=n.size))):e=s.createElementNS(e,i),e[Er]=t,e[Sr]=n,ja(e,t),t.stateNode=e,s=ir(i,n),i){case"iframe":case"object":case"embed":Zt("load",e),l=n;break;case"video":case"audio":for(l=0;l<qe.length;l++)Zt(qe[l],e);l=n;break;case"source":Zt("error",e),l=n;break;case"img":case"image":case"link":Zt("error",e),Zt("load",e),l=n;break;case"form":Zt("reset",e),Zt("submit",e),l=n;break;case"details":Zt("toggle",e),l=n;break;case"input":Ee(e,n),l=Te(e,n),Zt("invalid",e),ur(r,"onChange");break;case"option":l=Ce(e,n);break;case"select":e._wrapperState={wasMultiple:!!n.multiple},l=o({},n,{value:void 0}),Zt("invalid",e),ur(r,"onChange");break;case"textarea":Fe(e,n),l=xe(e,n),Zt("invalid",e),ur(r,"onChange");break;default:l=n}or(i,l);var c=l;for(u in c)if(c.hasOwnProperty(u)){var f=c[u];"style"===u?rr(e,f):"dangerouslySetInnerHTML"===u?null!=(f=f?f.__html:void 0)&&Ie(e,f):"children"===u?"string"===typeof f?("textarea"!==i||""!==f)&&je(e,f):"number"===typeof f&&je(e,""+f):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?null!=f&&ur(r,u):null!=f&&W(e,u,f,s))}switch(i){case"input":ke(e),Me(e,n,!1);break;case"textarea":ke(e),Be(e);break;case"option":null!=n.value&&e.setAttribute("value",""+be(n.value));break;case"select":e.multiple=!!n.multiple,null!=(r=n.value)?Oe(e,!!n.multiple,r,!1):null!=n.defaultValue&&Oe(e,!!n.multiple,n.defaultValue,!0);break;default:"function"===typeof l.onClick&&(e.onclick=sr)}mr(i,n)&&(t.effectTag|=4)}null!==t.ref&&(t.effectTag|=128)}return null;case 6:if(e&&null!=t.stateNode)Ua(0,t,e.memoizedProps,n);else{if("string"!==typeof n&&null===t.stateNode)throw Error(a(166));r=Fi(xi.current),Fi(Ci.current),Pa(t)?(r=t.stateNode,n=t.memoizedProps,r[Er]=t,r.nodeValue!==n&&(t.effectTag|=4)):((r=(9===r.nodeType?r:r.ownerDocument).createTextNode(n))[Er]=t,t.stateNode=r)}return null;case 13:return so(Ji),n=t.memoizedState,0!==(64&t.effectTag)?(t.expirationTime=r,t):(r=null!==n,n=!1,null===e?void 0!==t.memoizedProps.fallback&&Pa(t):(n=null!==(i=e.memoizedState),r||null===i||null!==(i=e.child.sibling)&&(null!==(u=t.firstEffect)?(t.firstEffect=i,i.nextEffect=u):(t.firstEffect=t.lastEffect=i,i.nextEffect=null),i.effectTag=8)),r&&!n&&0!==(2&t.mode)&&(null===e&&!0!==t.memoizedProps.unstable_avoidThisFallback||0!==(1&Ji.current)?Pu===ku&&(Pu=wu):(Pu!==ku&&Pu!==wu||(Pu=Tu),0!==Lu&&null!==Su&&(Bs(Su,Mu),Ns(Su,Lu)))),(r||n)&&(t.effectTag|=4),null);case 4:return Bi(),null;case 10:return ti(t),null;case 17:return mo(t.type)&&go(),null;case 19:if(so(Ji),null===(n=t.memoizedState))return null;if(i=0!==(64&t.effectTag),null===(u=n.rendering)){if(i)Qa(n,!1);else if(Pu!==ku||null!==e&&0!==(64&e.effectTag))for(u=t.child;null!==u;){if(null!==(e=_i(u))){for(t.effectTag|=64,Qa(n,!1),null!==(i=e.updateQueue)&&(t.updateQueue=i,t.effectTag|=4),null===n.lastEffect&&(t.firstEffect=null),t.lastEffect=n.lastEffect,n=t.child;null!==n;)u=r,(i=n).effectTag&=2,i.nextEffect=null,i.firstEffect=null,i.lastEffect=null,null===(e=i.alternate)?(i.childExpirationTime=0,i.expirationTime=u,i.child=null,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null):(i.childExpirationTime=e.childExpirationTime,i.expirationTime=e.expirationTime,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,u=e.dependencies,i.dependencies=null===u?null:{expirationTime:u.expirationTime,firstContext:u.firstContext,responders:u.responders}),n=n.sibling;return lo(Ji,1&Ji.current|2),t.child}u=u.sibling}}else{if(!i)if(null!==(e=_i(u))){if(t.effectTag|=64,i=!0,null!==(r=e.updateQueue)&&(t.updateQueue=r,t.effectTag|=4),Qa(n,!0),null===n.tail&&"hidden"===n.tailMode&&!u.alternate)return null!==(t=t.lastEffect=n.lastEffect)&&(t.nextEffect=null),null}else 2*jo()-n.renderingStartTime>n.tailExpiration&&1<r&&(t.effectTag|=64,i=!0,Qa(n,!1),t.expirationTime=t.childExpirationTime=r-1);n.isBackwards?(u.sibling=t.child,t.child=u):(null!==(r=n.last)?r.sibling=u:t.child=u,n.last=u)}return null!==n.tail?(0===n.tailExpiration&&(n.tailExpiration=jo()+500),r=n.tail,n.rendering=r,n.tail=r.sibling,n.lastEffect=t.lastEffect,n.renderingStartTime=jo(),r.sibling=null,t=Ji.current,lo(Ji,i?1&t|2:1&t),r):null}throw Error(a(156,t.tag))}function Wa(e){switch(e.tag){case 1:mo(e.type)&&go();var t=e.effectTag;return 4096&t?(e.effectTag=-4097&t|64,e):null;case 3:if(Bi(),so(ho),so(fo),0!==(64&(t=e.effectTag)))throw Error(a(285));return e.effectTag=-4097&t|64,e;case 5:return Ri(e),null;case 13:return so(Ji),4096&(t=e.effectTag)?(e.effectTag=-4097&t|64,e):null;case 19:return so(Ji),null;case 4:return Bi(),null;case 10:return ti(e),null;default:return null}}function Ya(e,t){return{value:e,source:t,stack:ge(t)}}ja=function(e,t){for(var r=t.child;null!==r;){if(5===r.tag||6===r.tag)e.appendChild(r.stateNode);else if(4!==r.tag&&null!==r.child){r.child.return=r,r=r.child;continue}if(r===t)break;for(;null===r.sibling;){if(null===r.return||r.return===t)return;r=r.return}r.sibling.return=r.return,r=r.sibling}},Xa=function(e,t,r,n,i){var a=e.memoizedProps;if(a!==n){var u,s,l=t.stateNode;switch(Fi(Ci.current),e=null,r){case"input":a=Te(l,a),n=Te(l,n),e=[];break;case"option":a=Ce(l,a),n=Ce(l,n),e=[];break;case"select":a=o({},a,{value:void 0}),n=o({},n,{value:void 0}),e=[];break;case"textarea":a=xe(l,a),n=xe(l,n),e=[];break;default:"function"!==typeof a.onClick&&"function"===typeof n.onClick&&(l.onclick=sr)}for(u in or(r,n),r=null,a)if(!n.hasOwnProperty(u)&&a.hasOwnProperty(u)&&null!=a[u])if("style"===u)for(s in l=a[u])l.hasOwnProperty(s)&&(r||(r={}),r[s]="");else"dangerouslySetInnerHTML"!==u&&"children"!==u&&"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&"autoFocus"!==u&&(S.hasOwnProperty(u)?e||(e=[]):(e=e||[]).push(u,null));for(u in n){var c=n[u];if(l=null!=a?a[u]:void 0,n.hasOwnProperty(u)&&c!==l&&(null!=c||null!=l))if("style"===u)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(r||(r={}),r[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(r||(r={}),r[s]=c[s])}else r||(e||(e=[]),e.push(u,r)),r=c;else"dangerouslySetInnerHTML"===u?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(e=e||[]).push(u,c)):"children"===u?l===c||"string"!==typeof c&&"number"!==typeof c||(e=e||[]).push(u,""+c):"suppressContentEditableWarning"!==u&&"suppressHydrationWarning"!==u&&(S.hasOwnProperty(u)?(null!=c&&ur(i,u),e||l===c||(e=[])):(e=e||[]).push(u,c))}r&&(e=e||[]).push("style",r),i=e,(t.updateQueue=i)&&(t.effectTag|=4)}},Ua=function(e,t,r,n){r!==n&&(t.effectTag|=4)};var $a="function"===typeof WeakSet?WeakSet:Set;function eu(e,t){var r=t.source,n=t.stack;null===n&&null!==r&&(n=ge(r)),null!==r&&me(r.type),t=t.value,null!==e&&1===e.tag&&me(e.type);try{console.error(t)}catch(o){setTimeout((function(){throw o}))}}function tu(e){var t=e.ref;if(null!==t)if("function"===typeof t)try{t(null)}catch(r){bs(e,r)}else t.current=null}function ru(e,t){switch(t.tag){case 0:case 11:case 15:case 22:return;case 1:if(256&t.effectTag&&null!==e){var r=e.memoizedProps,n=e.memoizedState;t=(e=t.stateNode).getSnapshotBeforeUpdate(t.elementType===t.type?r:Qo(t.type,r),n),e.__reactInternalSnapshotBeforeUpdate=t}return;case 3:case 5:case 6:case 4:case 17:return}throw Error(a(163))}function nu(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.destroy;r.destroy=void 0,void 0!==n&&n()}r=r.next}while(r!==t)}}function ou(e,t){if(null!==(t=null!==(t=t.updateQueue)?t.lastEffect:null)){var r=t=t.next;do{if((r.tag&e)===e){var n=r.create;r.destroy=n()}r=r.next}while(r!==t)}}function iu(e,t,r){switch(r.tag){case 0:case 11:case 15:case 22:return void ou(3,r);case 1:if(e=r.stateNode,4&r.effectTag)if(null===t)e.componentDidMount();else{var n=r.elementType===r.type?t.memoizedProps:Qo(r.type,t.memoizedProps);e.componentDidUpdate(n,t.memoizedState,e.__reactInternalSnapshotBeforeUpdate)}return void(null!==(t=r.updateQueue)&&hi(r,t,e));case 3:if(null!==(t=r.updateQueue)){if(e=null,null!==r.child)switch(r.child.tag){case 5:e=r.child.stateNode;break;case 1:e=r.child.stateNode}hi(r,t,e)}return;case 5:return e=r.stateNode,void(null===t&&4&r.effectTag&&mr(r.type,r.memoizedProps)&&e.focus());case 6:case 4:case 12:return;case 13:return void(null===r.memoizedState&&(r=r.alternate,null!==r&&(r=r.memoizedState,null!==r&&(r=r.dehydrated,null!==r&&Jt(r)))));case 19:case 17:case 20:case 21:return}throw Error(a(163))}function au(e,t,r){switch("function"===typeof Ts&&Ts(t),t.tag){case 0:case 11:case 14:case 15:case 22:if(null!==(e=t.updateQueue)&&null!==(e=e.lastEffect)){var n=e.next;Ho(97<r?97:r,(function(){var e=n;do{var r=e.destroy;if(void 0!==r){var o=t;try{r()}catch(i){bs(o,i)}}e=e.next}while(e!==n)}))}break;case 1:tu(t),"function"===typeof(r=t.stateNode).componentWillUnmount&&function(e,t){try{t.props=e.memoizedProps,t.state=e.memoizedState,t.componentWillUnmount()}catch(r){bs(e,r)}}(t,r);break;case 5:tu(t);break;case 4:cu(e,t,r)}}function uu(e){var t=e.alternate;e.return=null,e.child=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.alternate=null,e.firstEffect=null,e.lastEffect=null,e.pendingProps=null,e.memoizedProps=null,e.stateNode=null,null!==t&&uu(t)}function su(e){return 5===e.tag||3===e.tag||4===e.tag}function lu(e){e:{for(var t=e.return;null!==t;){if(su(t)){var r=t;break e}t=t.return}throw Error(a(160))}switch(t=r.stateNode,r.tag){case 5:var n=!1;break;case 3:case 4:t=t.containerInfo,n=!0;break;default:throw Error(a(161))}16&r.effectTag&&(je(t,""),r.effectTag&=-17);e:t:for(r=e;;){for(;null===r.sibling;){if(null===r.return||su(r.return)){r=null;break e}r=r.return}for(r.sibling.return=r.return,r=r.sibling;5!==r.tag&&6!==r.tag&&18!==r.tag;){if(2&r.effectTag)continue t;if(null===r.child||4===r.tag)continue t;r.child.return=r,r=r.child}if(!(2&r.effectTag)){r=r.stateNode;break e}}n?function e(t,r,n){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,r?8===n.nodeType?n.parentNode.insertBefore(t,r):n.insertBefore(t,r):(8===n.nodeType?(r=n.parentNode).insertBefore(t,n):(r=n).appendChild(t),null!==(n=n._reactRootContainer)&&void 0!==n||null!==r.onclick||(r.onclick=sr));else if(4!==o&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t):function e(t,r,n){var o=t.tag,i=5===o||6===o;if(i)t=i?t.stateNode:t.stateNode.instance,r?n.insertBefore(t,r):n.appendChild(t);else if(4!==o&&null!==(t=t.child))for(e(t,r,n),t=t.sibling;null!==t;)e(t,r,n),t=t.sibling}(e,r,t)}function cu(e,t,r){for(var n,o,i=t,u=!1;;){if(!u){u=i.return;e:for(;;){if(null===u)throw Error(a(160));switch(n=u.stateNode,u.tag){case 5:o=!1;break e;case 3:case 4:n=n.containerInfo,o=!0;break e}u=u.return}u=!0}if(5===i.tag||6===i.tag){e:for(var s=e,l=i,c=r,f=l;;)if(au(s,f,c),null!==f.child&&4!==f.tag)f.child.return=f,f=f.child;else{if(f===l)break e;for(;null===f.sibling;){if(null===f.return||f.return===l)break e;f=f.return}f.sibling.return=f.return,f=f.sibling}o?(s=n,l=i.stateNode,8===s.nodeType?s.parentNode.removeChild(l):s.removeChild(l)):n.removeChild(i.stateNode)}else if(4===i.tag){if(null!==i.child){n=i.stateNode.containerInfo,o=!0,i.child.return=i,i=i.child;continue}}else if(au(e,i,r),null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;4===(i=i.return).tag&&(u=!1)}i.sibling.return=i.return,i=i.sibling}}function fu(e,t){switch(t.tag){case 0:case 11:case 14:case 15:case 22:return void nu(3,t);case 1:return;case 5:var r=t.stateNode;if(null!=r){var n=t.memoizedProps,o=null!==e?e.memoizedProps:n;e=t.type;var i=t.updateQueue;if(t.updateQueue=null,null!==i){for(r[Sr]=n,"input"===e&&"radio"===n.type&&null!=n.name&&Se(r,n),ir(e,o),t=ir(e,n),o=0;o<i.length;o+=2){var u=i[o],s=i[o+1];"style"===u?rr(r,s):"dangerouslySetInnerHTML"===u?Ie(r,s):"children"===u?je(r,s):W(r,u,s,t)}switch(e){case"input":Ae(r,n);break;case"textarea":Le(r,n);break;case"select":t=r._wrapperState.wasMultiple,r._wrapperState.wasMultiple=!!n.multiple,null!=(e=n.value)?Oe(r,!!n.multiple,e,!1):t!==!!n.multiple&&(null!=n.defaultValue?Oe(r,!!n.multiple,n.defaultValue,!0):Oe(r,!!n.multiple,n.multiple?[]:"",!1))}}}return;case 6:if(null===t.stateNode)throw Error(a(162));return void(t.stateNode.nodeValue=t.memoizedProps);case 3:return void((t=t.stateNode).hydrate&&(t.hydrate=!1,Jt(t.containerInfo)));case 12:return;case 13:if(r=t,null===t.memoizedState?n=!1:(n=!0,r=t.child,Nu=jo()),null!==r)e:for(e=r;;){if(5===e.tag)i=e.stateNode,n?"function"===typeof(i=i.style).setProperty?i.setProperty("display","none","important"):i.display="none":(i=e.stateNode,o=void 0!==(o=e.memoizedProps.style)&&null!==o&&o.hasOwnProperty("display")?o.display:null,i.style.display=tr("display",o));else if(6===e.tag)e.stateNode.nodeValue=n?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState&&null===e.memoizedState.dehydrated){(i=e.child.sibling).return=e,e=i;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===r)break;for(;null===e.sibling;){if(null===e.return||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}return void hu(t);case 19:return void hu(t);case 17:return}throw Error(a(163))}function hu(e){var t=e.updateQueue;if(null!==t){e.updateQueue=null;var r=e.stateNode;null===r&&(r=e.stateNode=new $a),t.forEach((function(t){var n=ks.bind(null,e,t);r.has(t)||(r.add(t),t.then(n,n))}))}}var du="function"===typeof WeakMap?WeakMap:Map;function pu(e,t,r){(r=si(r,null)).tag=3,r.payload={element:null};var n=t.value;return r.callback=function(){Ju||(Ju=!0,_u=n),eu(e,t)},r}function vu(e,t,r){(r=si(r,null)).tag=3;var n=e.type.getDerivedStateFromError;if("function"===typeof n){var o=t.value;r.payload=function(){return eu(e,t),n(o)}}var i=e.stateNode;return null!==i&&"function"===typeof i.componentDidCatch&&(r.callback=function(){"function"!==typeof n&&(null===Du?Du=new Set([this]):Du.add(this),eu(e,t));var r=t.stack;this.componentDidCatch(t.value,{componentStack:null!==r?r:""})}),r}var mu,gu=Math.ceil,bu=q.ReactCurrentDispatcher,yu=q.ReactCurrentOwner,ku=0,wu=3,Tu=4,Eu=0,Su=null,Au=null,Mu=0,Pu=ku,Cu=null,Ou=1073741823,xu=1073741823,Fu=null,Lu=0,Bu=!1,Nu=0,Ru=null,Ju=!1,_u=null,Du=null,Iu=!1,ju=null,Xu=90,Uu=null,Hu=0,Gu=null,zu=0;function Vu(){return 0!==(48&Eu)?1073741821-(jo()/10|0):0!==zu?zu:zu=1073741821-(jo()/10|0)}function Zu(e,t,r){if(0===(2&(t=t.mode)))return 1073741823;var n=Xo();if(0===(4&t))return 99===n?1073741823:1073741822;if(0!==(16&Eu))return Mu;if(null!==r)e=Ko(e,0|r.timeoutMs||5e3,250);else switch(n){case 99:e=1073741823;break;case 98:e=Ko(e,150,100);break;case 97:case 96:e=Ko(e,5e3,250);break;case 95:e=2;break;default:throw Error(a(326))}return null!==Su&&e===Mu&&--e,e}function Ku(e,t){if(50<Hu)throw Hu=0,Gu=null,Error(a(185));if(null!==(e=Qu(e,t))){var r=Xo();1073741823===t?0!==(8&Eu)&&0===(48&Eu)?$u(e):(Wu(e),0===Eu&&Vo()):Wu(e),0===(4&Eu)||98!==r&&99!==r||(null===Uu?Uu=new Map([[e,t]]):(void 0===(r=Uu.get(e))||r>t)&&Uu.set(e,t))}}function Qu(e,t){e.expirationTime<t&&(e.expirationTime=t);var r=e.alternate;null!==r&&r.expirationTime<t&&(r.expirationTime=t);var n=e.return,o=null;if(null===n&&3===e.tag)o=e.stateNode;else for(;null!==n;){if(r=n.alternate,n.childExpirationTime<t&&(n.childExpirationTime=t),null!==r&&r.childExpirationTime<t&&(r.childExpirationTime=t),null===n.return&&3===n.tag){o=n.stateNode;break}n=n.return}return null!==o&&(Su===o&&(as(t),Pu===Tu&&Bs(o,Mu)),Ns(o,t)),o}function qu(e){var t=e.lastExpiredTime;if(0!==t)return t;if(!Ls(e,t=e.firstPendingTime))return t;var r=e.lastPingedTime;return 2>=(e=r>(e=e.nextKnownPendingLevel)?r:e)&&t!==e?0:e}function Wu(e){if(0!==e.lastExpiredTime)e.callbackExpirationTime=1073741823,e.callbackPriority=99,e.callbackNode=zo($u.bind(null,e));else{var t=qu(e),r=e.callbackNode;if(0===t)null!==r&&(e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90);else{var n=Vu();if(1073741823===t?n=99:1===t||2===t?n=95:n=0>=(n=10*(1073741821-t)-10*(1073741821-n))?99:250>=n?98:5250>=n?97:95,null!==r){var o=e.callbackPriority;if(e.callbackExpirationTime===t&&o>=n)return;r!==Bo&&So(r)}e.callbackExpirationTime=t,e.callbackPriority=n,t=1073741823===t?zo($u.bind(null,e)):Go(n,Yu.bind(null,e),{timeout:10*(1073741821-t)-jo()}),e.callbackNode=t}}}function Yu(e,t){if(zu=0,t)return Rs(e,t=Vu()),Wu(e),null;var r=qu(e);if(0!==r){if(t=e.callbackNode,0!==(48&Eu))throw Error(a(327));if(vs(),e===Su&&r===Mu||rs(e,r),null!==Au){var n=Eu;Eu|=16;for(var o=os();;)try{ss();break}catch(s){ns(e,s)}if(ei(),Eu=n,bu.current=o,1===Pu)throw t=Cu,rs(e,r),Bs(e,r),Wu(e),t;if(null===Au)switch(o=e.finishedWork=e.current.alternate,e.finishedExpirationTime=r,n=Pu,Su=null,n){case ku:case 1:throw Error(a(345));case 2:Rs(e,2<r?2:r);break;case wu:if(Bs(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fs(o)),1073741823===Ou&&10<(o=Nu+500-jo())){if(Bu){var i=e.lastPingedTime;if(0===i||i>=r){e.lastPingedTime=r,rs(e,r);break}}if(0!==(i=qu(e))&&i!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}e.timeoutHandle=br(hs.bind(null,e),o);break}hs(e);break;case Tu:if(Bs(e,r),r===(n=e.lastSuspendedTime)&&(e.nextKnownPendingLevel=fs(o)),Bu&&(0===(o=e.lastPingedTime)||o>=r)){e.lastPingedTime=r,rs(e,r);break}if(0!==(o=qu(e))&&o!==r)break;if(0!==n&&n!==r){e.lastPingedTime=n;break}if(1073741823!==xu?n=10*(1073741821-xu)-jo():1073741823===Ou?n=0:(n=10*(1073741821-Ou)-5e3,0>(n=(o=jo())-n)&&(n=0),(r=10*(1073741821-r)-o)<(n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*gu(n/1960))-n)&&(n=r)),10<n){e.timeoutHandle=br(hs.bind(null,e),n);break}hs(e);break;case 5:if(1073741823!==Ou&&null!==Fu){i=Ou;var u=Fu;if(0>=(n=0|u.busyMinDurationMs)?n=0:(o=0|u.busyDelayMs,n=(i=jo()-(10*(1073741821-i)-(0|u.timeoutMs||5e3)))<=o?0:o+n-i),10<n){Bs(e,r),e.timeoutHandle=br(hs.bind(null,e),n);break}}hs(e);break;default:throw Error(a(329))}if(Wu(e),e.callbackNode===t)return Yu.bind(null,e)}}return null}function $u(e){var t=e.lastExpiredTime;if(t=0!==t?t:1073741823,0!==(48&Eu))throw Error(a(327));if(vs(),e===Su&&t===Mu||rs(e,t),null!==Au){var r=Eu;Eu|=16;for(var n=os();;)try{us();break}catch(o){ns(e,o)}if(ei(),Eu=r,bu.current=n,1===Pu)throw r=Cu,rs(e,t),Bs(e,t),Wu(e),r;if(null!==Au)throw Error(a(261));e.finishedWork=e.current.alternate,e.finishedExpirationTime=t,Su=null,hs(e),Wu(e)}return null}function es(e,t){var r=Eu;Eu|=1;try{return e(t)}finally{0===(Eu=r)&&Vo()}}function ts(e,t){var r=Eu;Eu&=-2,Eu|=8;try{return e(t)}finally{0===(Eu=r)&&Vo()}}function rs(e,t){e.finishedWork=null,e.finishedExpirationTime=0;var r=e.timeoutHandle;if(-1!==r&&(e.timeoutHandle=-1,yr(r)),null!==Au)for(r=Au.return;null!==r;){var n=r;switch(n.tag){case 1:null!==(n=n.type.childContextTypes)&&void 0!==n&&go();break;case 3:Bi(),so(ho),so(fo);break;case 5:Ri(n);break;case 4:Bi();break;case 13:case 19:so(Ji);break;case 10:ti(n)}r=r.return}Su=e,Au=Ms(e.current,null),Mu=t,Pu=ku,Cu=null,xu=Ou=1073741823,Fu=null,Lu=0,Bu=!1}function ns(e,t){for(;;){try{if(ei(),Ii.current=ma,zi)for(var r=Ui.memoizedState;null!==r;){var n=r.queue;null!==n&&(n.pending=null),r=r.next}if(Xi=0,Gi=Hi=Ui=null,zi=!1,null===Au||null===Au.return)return Pu=1,Cu=t,Au=null;e:{var o=e,i=Au.return,a=Au,u=t;if(t=Mu,a.effectTag|=2048,a.firstEffect=a.lastEffect=null,null!==u&&"object"===typeof u&&"function"===typeof u.then){var s=u;if(0===(2&a.mode)){var l=a.alternate;l?(a.updateQueue=l.updateQueue,a.memoizedState=l.memoizedState,a.expirationTime=l.expirationTime):(a.updateQueue=null,a.memoizedState=null)}var c=0!==(1&Ji.current),f=i;do{var h;if(h=13===f.tag){var d=f.memoizedState;if(null!==d)h=null!==d.dehydrated;else{var p=f.memoizedProps;h=void 0!==p.fallback&&(!0!==p.unstable_avoidThisFallback||!c)}}if(h){var v=f.updateQueue;if(null===v){var m=new Set;m.add(s),f.updateQueue=m}else v.add(s);if(0===(2&f.mode)){if(f.effectTag|=64,a.effectTag&=-2981,1===a.tag)if(null===a.alternate)a.tag=17;else{var g=si(1073741823,null);g.tag=2,li(a,g)}a.expirationTime=1073741823;break e}u=void 0,a=t;var b=o.pingCache;if(null===b?(b=o.pingCache=new du,u=new Set,b.set(s,u)):void 0===(u=b.get(s))&&(u=new Set,b.set(s,u)),!u.has(a)){u.add(a);var y=ys.bind(null,o,s,a);s.then(y,y)}f.effectTag|=4096,f.expirationTime=t;break e}f=f.return}while(null!==f);u=Error((me(a.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ge(a))}5!==Pu&&(Pu=2),u=Ya(u,a),f=i;do{switch(f.tag){case 3:s=u,f.effectTag|=4096,f.expirationTime=t,ci(f,pu(f,s,t));break e;case 1:s=u;var k=f.type,w=f.stateNode;if(0===(64&f.effectTag)&&("function"===typeof k.getDerivedStateFromError||null!==w&&"function"===typeof w.componentDidCatch&&(null===Du||!Du.has(w)))){f.effectTag|=4096,f.expirationTime=t,ci(f,vu(f,s,t));break e}}f=f.return}while(null!==f)}Au=cs(Au)}catch(T){t=T;continue}break}}function os(){var e=bu.current;return bu.current=ma,null===e?ma:e}function is(e,t){e<Ou&&2<e&&(Ou=e),null!==t&&e<xu&&2<e&&(xu=e,Fu=t)}function as(e){e>Lu&&(Lu=e)}function us(){for(;null!==Au;)Au=ls(Au)}function ss(){for(;null!==Au&&!No();)Au=ls(Au)}function ls(e){var t=mu(e.alternate,e,Mu);return e.memoizedProps=e.pendingProps,null===t&&(t=cs(e)),yu.current=null,t}function cs(e){Au=e;do{var t=Au.alternate;if(e=Au.return,0===(2048&Au.effectTag)){if(t=qa(t,Au,Mu),1===Mu||1!==Au.childExpirationTime){for(var r=0,n=Au.child;null!==n;){var o=n.expirationTime,i=n.childExpirationTime;o>r&&(r=o),i>r&&(r=i),n=n.sibling}Au.childExpirationTime=r}if(null!==t)return t;null!==e&&0===(2048&e.effectTag)&&(null===e.firstEffect&&(e.firstEffect=Au.firstEffect),null!==Au.lastEffect&&(null!==e.lastEffect&&(e.lastEffect.nextEffect=Au.firstEffect),e.lastEffect=Au.lastEffect),1<Au.effectTag&&(null!==e.lastEffect?e.lastEffect.nextEffect=Au:e.firstEffect=Au,e.lastEffect=Au))}else{if(null!==(t=Wa(Au)))return t.effectTag&=2047,t;null!==e&&(e.firstEffect=e.lastEffect=null,e.effectTag|=2048)}if(null!==(t=Au.sibling))return t;Au=e}while(null!==Au);return Pu===ku&&(Pu=5),null}function fs(e){var t=e.expirationTime;return t>(e=e.childExpirationTime)?t:e}function hs(e){var t=Xo();return Ho(99,ds.bind(null,e,t)),null}function ds(e,t){do{vs()}while(null!==ju);if(0!==(48&Eu))throw Error(a(327));var r=e.finishedWork,n=e.finishedExpirationTime;if(null===r)return null;if(e.finishedWork=null,e.finishedExpirationTime=0,r===e.current)throw Error(a(177));e.callbackNode=null,e.callbackExpirationTime=0,e.callbackPriority=90,e.nextKnownPendingLevel=0;var o=fs(r);if(e.firstPendingTime=o,n<=e.lastSuspendedTime?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:n<=e.firstSuspendedTime&&(e.firstSuspendedTime=n-1),n<=e.lastPingedTime&&(e.lastPingedTime=0),n<=e.lastExpiredTime&&(e.lastExpiredTime=0),e===Su&&(Au=Su=null,Mu=0),1<r.effectTag?null!==r.lastEffect?(r.lastEffect.nextEffect=r,o=r.firstEffect):o=r:o=r.firstEffect,null!==o){var i=Eu;Eu|=32,yu.current=null,pr=Vt;var u=hr();if(dr(u)){if("selectionStart"in u)var s={start:u.selectionStart,end:u.selectionEnd};else e:{var l=(s=(s=u.ownerDocument)&&s.defaultView||window).getSelection&&s.getSelection();if(l&&0!==l.rangeCount){s=l.anchorNode;var c=l.anchorOffset,f=l.focusNode;l=l.focusOffset;try{s.nodeType,f.nodeType}catch(M){s=null;break e}var h=0,d=-1,p=-1,v=0,m=0,g=u,b=null;t:for(;;){for(var y;g!==s||0!==c&&3!==g.nodeType||(d=h+c),g!==f||0!==l&&3!==g.nodeType||(p=h+l),3===g.nodeType&&(h+=g.nodeValue.length),null!==(y=g.firstChild);)b=g,g=y;for(;;){if(g===u)break t;if(b===s&&++v===c&&(d=h),b===f&&++m===l&&(p=h),null!==(y=g.nextSibling))break;b=(g=b).parentNode}g=y}s=-1===d||-1===p?null:{start:d,end:p}}else s=null}s=s||{start:0,end:0}}else s=null;vr={activeElementDetached:null,focusedElem:u,selectionRange:s},Vt=!1,Ru=o;do{try{ps()}catch(M){if(null===Ru)throw Error(a(330));bs(Ru,M),Ru=Ru.nextEffect}}while(null!==Ru);Ru=o;do{try{for(u=e,s=t;null!==Ru;){var k=Ru.effectTag;if(16&k&&je(Ru.stateNode,""),128&k){var w=Ru.alternate;if(null!==w){var T=w.ref;null!==T&&("function"===typeof T?T(null):T.current=null)}}switch(1038&k){case 2:lu(Ru),Ru.effectTag&=-3;break;case 6:lu(Ru),Ru.effectTag&=-3,fu(Ru.alternate,Ru);break;case 1024:Ru.effectTag&=-1025;break;case 1028:Ru.effectTag&=-1025,fu(Ru.alternate,Ru);break;case 4:fu(Ru.alternate,Ru);break;case 8:cu(u,c=Ru,s),uu(c)}Ru=Ru.nextEffect}}catch(M){if(null===Ru)throw Error(a(330));bs(Ru,M),Ru=Ru.nextEffect}}while(null!==Ru);if(T=vr,w=hr(),k=T.focusedElem,s=T.selectionRange,w!==k&&k&&k.ownerDocument&&function e(t,r){return!(!t||!r)&&(t===r||(!t||3!==t.nodeType)&&(r&&3===r.nodeType?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}(k.ownerDocument.documentElement,k)){null!==s&&dr(k)&&(w=s.start,void 0===(T=s.end)&&(T=w),"selectionStart"in k?(k.selectionStart=w,k.selectionEnd=Math.min(T,k.value.length)):(T=(w=k.ownerDocument||document)&&w.defaultView||window).getSelection&&(T=T.getSelection(),c=k.textContent.length,u=Math.min(s.start,c),s=void 0===s.end?u:Math.min(s.end,c),!T.extend&&u>s&&(c=s,s=u,u=c),c=fr(k,u),f=fr(k,s),c&&f&&(1!==T.rangeCount||T.anchorNode!==c.node||T.anchorOffset!==c.offset||T.focusNode!==f.node||T.focusOffset!==f.offset)&&((w=w.createRange()).setStart(c.node,c.offset),T.removeAllRanges(),u>s?(T.addRange(w),T.extend(f.node,f.offset)):(w.setEnd(f.node,f.offset),T.addRange(w))))),w=[];for(T=k;T=T.parentNode;)1===T.nodeType&&w.push({element:T,left:T.scrollLeft,top:T.scrollTop});for("function"===typeof k.focus&&k.focus(),k=0;k<w.length;k++)(T=w[k]).element.scrollLeft=T.left,T.element.scrollTop=T.top}Vt=!!pr,vr=pr=null,e.current=r,Ru=o;do{try{for(k=e;null!==Ru;){var E=Ru.effectTag;if(36&E&&iu(k,Ru.alternate,Ru),128&E){w=void 0;var S=Ru.ref;if(null!==S){var A=Ru.stateNode;switch(Ru.tag){case 5:w=A;break;default:w=A}"function"===typeof S?S(w):S.current=w}}Ru=Ru.nextEffect}}catch(M){if(null===Ru)throw Error(a(330));bs(Ru,M),Ru=Ru.nextEffect}}while(null!==Ru);Ru=null,Ro(),Eu=i}else e.current=r;if(Iu)Iu=!1,ju=e,Xu=t;else for(Ru=o;null!==Ru;)t=Ru.nextEffect,Ru.nextEffect=null,Ru=t;if(0===(t=e.firstPendingTime)&&(Du=null),1073741823===t?e===Gu?Hu++:(Hu=0,Gu=e):Hu=0,"function"===typeof ws&&ws(r.stateNode,n),Wu(e),Ju)throw Ju=!1,e=_u,_u=null,e;return 0!==(8&Eu)||Vo(),null}function ps(){for(;null!==Ru;){var e=Ru.effectTag;0!==(256&e)&&ru(Ru.alternate,Ru),0===(512&e)||Iu||(Iu=!0,Go(97,(function(){return vs(),null}))),Ru=Ru.nextEffect}}function vs(){if(90!==Xu){var e=97<Xu?97:Xu;return Xu=90,Ho(e,ms)}}function ms(){if(null===ju)return!1;var e=ju;if(ju=null,0!==(48&Eu))throw Error(a(331));var t=Eu;for(Eu|=32,e=e.current.firstEffect;null!==e;){try{var r=e;if(0!==(512&r.effectTag))switch(r.tag){case 0:case 11:case 15:case 22:nu(5,r),ou(5,r)}}catch(n){if(null===e)throw Error(a(330));bs(e,n)}r=e.nextEffect,e.nextEffect=null,e=r}return Eu=t,Vo(),!0}function gs(e,t,r){li(e,t=pu(e,t=Ya(r,t),1073741823)),null!==(e=Qu(e,1073741823))&&Wu(e)}function bs(e,t){if(3===e.tag)gs(e,e,t);else for(var r=e.return;null!==r;){if(3===r.tag){gs(r,e,t);break}if(1===r.tag){var n=r.stateNode;if("function"===typeof r.type.getDerivedStateFromError||"function"===typeof n.componentDidCatch&&(null===Du||!Du.has(n))){li(r,e=vu(r,e=Ya(t,e),1073741823)),null!==(r=Qu(r,1073741823))&&Wu(r);break}}r=r.return}}function ys(e,t,r){var n=e.pingCache;null!==n&&n.delete(t),Su===e&&Mu===r?Pu===Tu||Pu===wu&&1073741823===Ou&&jo()-Nu<500?rs(e,Mu):Bu=!0:Ls(e,r)&&(0!==(t=e.lastPingedTime)&&t<r||(e.lastPingedTime=r,Wu(e)))}function ks(e,t){var r=e.stateNode;null!==r&&r.delete(t),0===(t=0)&&(t=Zu(t=Vu(),e,null)),null!==(e=Qu(e,t))&&Wu(e)}mu=function(e,t,r){var n=t.expirationTime;if(null!==e){var o=t.pendingProps;if(e.memoizedProps!==o||ho.current)xa=!0;else{if(n<r){switch(xa=!1,t.tag){case 3:Ia(t),Ca();break;case 5:if(Ni(t),4&t.mode&&1!==r&&o.hidden)return t.expirationTime=t.childExpirationTime=1,null;break;case 1:mo(t.type)&&ko(t);break;case 4:Li(t,t.stateNode.containerInfo);break;case 10:n=t.memoizedProps.value,o=t.type._context,lo(qo,o._currentValue),o._currentValue=n;break;case 13:if(null!==t.memoizedState)return 0!==(n=t.child.childExpirationTime)&&n>=r?Ga(e,t,r):(lo(Ji,1&Ji.current),null!==(t=Ka(e,t,r))?t.sibling:null);lo(Ji,1&Ji.current);break;case 19:if(n=t.childExpirationTime>=r,0!==(64&e.effectTag)){if(n)return Za(e,t,r);t.effectTag|=64}if(null!==(o=t.memoizedState)&&(o.rendering=null,o.tail=null),lo(Ji,Ji.current),!n)return null}return Ka(e,t,r)}xa=!1}}else xa=!1;switch(t.expirationTime=0,t.tag){case 2:if(n=t.type,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,o=vo(t,fo.current),ni(t,r),o=Ki(null,t,n,e,o,r),t.effectTag|=1,"object"===typeof o&&null!==o&&"function"===typeof o.render&&void 0===o.$$typeof){if(t.tag=1,t.memoizedState=null,t.updateQueue=null,mo(n)){var i=!0;ko(t)}else i=!1;t.memoizedState=null!==o.state&&void 0!==o.state?o.state:null,ai(t);var u=n.getDerivedStateFromProps;"function"===typeof u&&vi(t,n,u,e),o.updater=mi,t.stateNode=o,o._reactInternalFiber=t,ki(t,n,e,r),t=Da(null,t,n,!0,i,r)}else t.tag=0,Fa(null,t,o,r),t=t.child;return t;case 16:e:{if(o=t.elementType,null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),e=t.pendingProps,function(e){if(-1===e._status){e._status=0;var t=e._ctor;t=t(),e._result=t,t.then((function(t){0===e._status&&(t=t.default,e._status=1,e._result=t)}),(function(t){0===e._status&&(e._status=2,e._result=t)}))}}(o),1!==o._status)throw o._result;switch(o=o._result,t.type=o,i=t.tag=function(e){if("function"===typeof e)return As(e)?1:0;if(void 0!==e&&null!==e){if((e=e.$$typeof)===se)return 11;if(e===fe)return 14}return 2}(o),e=Qo(o,e),i){case 0:t=Ja(null,t,o,e,r);break e;case 1:t=_a(null,t,o,e,r);break e;case 11:t=La(null,t,o,e,r);break e;case 14:t=Ba(null,t,o,Qo(o.type,e),n,r);break e}throw Error(a(306,o,""))}return t;case 0:return n=t.type,o=t.pendingProps,Ja(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 1:return n=t.type,o=t.pendingProps,_a(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 3:if(Ia(t),n=t.updateQueue,null===e||null===n)throw Error(a(282));if(n=t.pendingProps,o=null!==(o=t.memoizedState)?o.element:null,ui(e,t),fi(t,n,null,r),(n=t.memoizedState.element)===o)Ca(),t=Ka(e,t,r);else{if((o=t.stateNode.hydrate)&&(wa=kr(t.stateNode.containerInfo.firstChild),ka=t,o=Ta=!0),o)for(r=Mi(t,null,n,r),t.child=r;r;)r.effectTag=-3&r.effectTag|1024,r=r.sibling;else Fa(e,t,n,r),Ca();t=t.child}return t;case 5:return Ni(t),null===e&&Aa(t),n=t.type,o=t.pendingProps,i=null!==e?e.memoizedProps:null,u=o.children,gr(n,o)?u=null:null!==i&&gr(n,i)&&(t.effectTag|=16),Ra(e,t),4&t.mode&&1!==r&&o.hidden?(t.expirationTime=t.childExpirationTime=1,t=null):(Fa(e,t,u,r),t=t.child),t;case 6:return null===e&&Aa(t),null;case 13:return Ga(e,t,r);case 4:return Li(t,t.stateNode.containerInfo),n=t.pendingProps,null===e?t.child=Ai(t,null,n,r):Fa(e,t,n,r),t.child;case 11:return n=t.type,o=t.pendingProps,La(e,t,n,o=t.elementType===n?o:Qo(n,o),r);case 7:return Fa(e,t,t.pendingProps,r),t.child;case 8:case 12:return Fa(e,t,t.pendingProps.children,r),t.child;case 10:e:{n=t.type._context,o=t.pendingProps,u=t.memoizedProps,i=o.value;var s=t.type._context;if(lo(qo,s._currentValue),s._currentValue=i,null!==u)if(s=u.value,0===(i=_n(s,i)?0:0|("function"===typeof n._calculateChangedBits?n._calculateChangedBits(s,i):1073741823))){if(u.children===o.children&&!ho.current){t=Ka(e,t,r);break e}}else for(null!==(s=t.child)&&(s.return=t);null!==s;){var l=s.dependencies;if(null!==l){u=s.child;for(var c=l.firstContext;null!==c;){if(c.context===n&&0!==(c.observedBits&i)){1===s.tag&&((c=si(r,null)).tag=2,li(s,c)),s.expirationTime<r&&(s.expirationTime=r),null!==(c=s.alternate)&&c.expirationTime<r&&(c.expirationTime=r),ri(s.return,r),l.expirationTime<r&&(l.expirationTime=r);break}c=c.next}}else u=10===s.tag&&s.type===t.type?null:s.child;if(null!==u)u.return=s;else for(u=s;null!==u;){if(u===t){u=null;break}if(null!==(s=u.sibling)){s.return=u.return,u=s;break}u=u.return}s=u}Fa(e,t,o.children,r),t=t.child}return t;case 9:return o=t.type,n=(i=t.pendingProps).children,ni(t,r),n=n(o=oi(o,i.unstable_observedBits)),t.effectTag|=1,Fa(e,t,n,r),t.child;case 14:return i=Qo(o=t.type,t.pendingProps),Ba(e,t,o,i=Qo(o.type,i),n,r);case 15:return Na(e,t,t.type,t.pendingProps,n,r);case 17:return n=t.type,o=t.pendingProps,o=t.elementType===n?o:Qo(n,o),null!==e&&(e.alternate=null,t.alternate=null,t.effectTag|=2),t.tag=1,mo(n)?(e=!0,ko(t)):e=!1,ni(t,r),bi(t,n,o),ki(t,n,o,r),Da(null,t,n,!0,e,r);case 19:return Za(e,t,r)}throw Error(a(156,t.tag))};var ws=null,Ts=null;function Es(e,t,r,n){this.tag=e,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Ss(e,t,r,n){return new Es(e,t,r,n)}function As(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ms(e,t){var r=e.alternate;return null===r?((r=Ss(e.tag,t,e.key,e.mode)).elementType=e.elementType,r.type=e.type,r.stateNode=e.stateNode,r.alternate=e,e.alternate=r):(r.pendingProps=t,r.effectTag=0,r.nextEffect=null,r.firstEffect=null,r.lastEffect=null),r.childExpirationTime=e.childExpirationTime,r.expirationTime=e.expirationTime,r.child=e.child,r.memoizedProps=e.memoizedProps,r.memoizedState=e.memoizedState,r.updateQueue=e.updateQueue,t=e.dependencies,r.dependencies=null===t?null:{expirationTime:t.expirationTime,firstContext:t.firstContext,responders:t.responders},r.sibling=e.sibling,r.index=e.index,r.ref=e.ref,r}function Ps(e,t,r,n,o,i){var u=2;if(n=e,"function"===typeof e)As(e)&&(u=1);else if("string"===typeof e)u=5;else e:switch(e){case re:return Cs(r.children,o,i,t);case ue:u=8,o|=7;break;case ne:u=8,o|=1;break;case oe:return(e=Ss(12,r,t,8|o)).elementType=oe,e.type=oe,e.expirationTime=i,e;case le:return(e=Ss(13,r,t,o)).type=le,e.elementType=le,e.expirationTime=i,e;case ce:return(e=Ss(19,r,t,o)).elementType=ce,e.expirationTime=i,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case ie:u=10;break e;case ae:u=9;break e;case se:u=11;break e;case fe:u=14;break e;case he:u=16,n=null;break e;case de:u=22;break e}throw Error(a(130,null==e?e:typeof e,""))}return(t=Ss(u,r,t,o)).elementType=e,t.type=n,t.expirationTime=i,t}function Cs(e,t,r,n){return(e=Ss(7,e,n,t)).expirationTime=r,e}function Os(e,t,r){return(e=Ss(6,e,null,t)).expirationTime=r,e}function xs(e,t,r){return(t=Ss(4,null!==e.children?e.children:[],e.key,t)).expirationTime=r,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Fs(e,t,r){this.tag=t,this.current=null,this.containerInfo=e,this.pingCache=this.pendingChildren=null,this.finishedExpirationTime=0,this.finishedWork=null,this.timeoutHandle=-1,this.pendingContext=this.context=null,this.hydrate=r,this.callbackNode=null,this.callbackPriority=90,this.lastExpiredTime=this.lastPingedTime=this.nextKnownPendingLevel=this.lastSuspendedTime=this.firstSuspendedTime=this.firstPendingTime=0}function Ls(e,t){var r=e.firstSuspendedTime;return e=e.lastSuspendedTime,0!==r&&r>=t&&e<=t}function Bs(e,t){var r=e.firstSuspendedTime,n=e.lastSuspendedTime;r<t&&(e.firstSuspendedTime=t),(n>t||0===r)&&(e.lastSuspendedTime=t),t<=e.lastPingedTime&&(e.lastPingedTime=0),t<=e.lastExpiredTime&&(e.lastExpiredTime=0)}function Ns(e,t){t>e.firstPendingTime&&(e.firstPendingTime=t);var r=e.firstSuspendedTime;0!==r&&(t>=r?e.firstSuspendedTime=e.lastSuspendedTime=e.nextKnownPendingLevel=0:t>=e.lastSuspendedTime&&(e.lastSuspendedTime=t+1),t>e.nextKnownPendingLevel&&(e.nextKnownPendingLevel=t))}function Rs(e,t){var r=e.lastExpiredTime;(0===r||r>t)&&(e.lastExpiredTime=t)}function Js(e,t,r,n){var o=t.current,i=Vu(),u=di.suspense;i=Zu(i,o,u);e:if(r){t:{if($e(r=r._reactInternalFiber)!==r||1!==r.tag)throw Error(a(170));var s=r;do{switch(s.tag){case 3:s=s.stateNode.context;break t;case 1:if(mo(s.type)){s=s.stateNode.__reactInternalMemoizedMergedChildContext;break t}}s=s.return}while(null!==s);throw Error(a(171))}if(1===r.tag){var l=r.type;if(mo(l)){r=yo(r,l,s);break e}}r=s}else r=co;return null===t.context?t.context=r:t.pendingContext=r,(t=si(i,u)).payload={element:e},null!==(n=void 0===n?null:n)&&(t.callback=n),li(o,t),Ku(o,i),i}function _s(e){if(!(e=e.current).child)return null;switch(e.child.tag){case 5:default:return e.child.stateNode}}function Ds(e,t){null!==(e=e.memoizedState)&&null!==e.dehydrated&&e.retryTime<t&&(e.retryTime=t)}function Is(e,t){Ds(e,t),(e=e.alternate)&&Ds(e,t)}function js(e,t,r){var n=new Fs(e,t,r=null!=r&&!0===r.hydrate),o=Ss(3,null,null,2===t?7:1===t?3:0);n.current=o,o.stateNode=n,ai(o),e[Ar]=n.current,r&&0!==t&&function(e,t){var r=Ye(t);Mt.forEach((function(e){pt(e,t,r)})),Pt.forEach((function(e){pt(e,t,r)}))}(0,9===e.nodeType?e:e.ownerDocument),this._internalRoot=n}function Xs(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType&&(8!==e.nodeType||" react-mount-point-unstable "!==e.nodeValue))}function Us(e,t,r,n,o){var i=r._reactRootContainer;if(i){var a=i._internalRoot;if("function"===typeof o){var u=o;o=function(){var e=_s(a);u.call(e)}}Js(t,a,e,o)}else{if(i=r._reactRootContainer=function(e,t){if(t||(t=!(!(t=e?9===e.nodeType?e.documentElement:e.firstChild:null)||1!==t.nodeType||!t.hasAttribute("data-reactroot"))),!t)for(var r;r=e.lastChild;)e.removeChild(r);return new js(e,0,t?{hydrate:!0}:void 0)}(r,n),a=i._internalRoot,"function"===typeof o){var s=o;o=function(){var e=_s(a);s.call(e)}}ts((function(){Js(t,a,e,o)}))}return _s(a)}function Hs(e,t,r){var n=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:te,key:null==n?null:""+n,children:e,containerInfo:t,implementation:r}}function Gs(e,t){var r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!Xs(t))throw Error(a(200));return Hs(e,t,null,r)}js.prototype.render=function(e){Js(e,this._internalRoot,null,null)},js.prototype.unmount=function(){var e=this._internalRoot,t=e.containerInfo;Js(null,e,null,(function(){t[Ar]=null}))},vt=function(e){if(13===e.tag){var t=Ko(Vu(),150,100);Ku(e,t),Is(e,t)}},mt=function(e){13===e.tag&&(Ku(e,3),Is(e,3))},gt=function(e){if(13===e.tag){var t=Vu();Ku(e,t=Zu(t,e,null)),Is(e,t)}},C=function(e,t,r){switch(t){case"input":if(Ae(e,r),t=r.name,"radio"===r.type&&null!=t){for(r=e;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<r.length;t++){var n=r[t];if(n!==e&&n.form===e.form){var o=Or(n);if(!o)throw Error(a(90));we(n),Ae(n,o)}}}break;case"textarea":Le(e,r);break;case"select":null!=(t=r.value)&&Oe(e,!!r.multiple,t,!1)}},N=es,R=function(e,t,r,n,o){var i=Eu;Eu|=4;try{return Ho(98,e.bind(null,t,r,n,o))}finally{0===(Eu=i)&&Vo()}},J=function(){0===(49&Eu)&&(function(){if(null!==Uu){var e=Uu;Uu=null,e.forEach((function(e,t){Rs(t,e),Wu(t)})),Vo()}}(),vs())},_=function(e,t){var r=Eu;Eu|=2;try{return e(t)}finally{0===(Eu=r)&&Vo()}};var zs={Events:[Pr,Cr,Or,M,E,Jr,function(e){ot(e,Rr)},L,B,Wt,ut,vs,{current:!1}]};!function(e){var t=e.findFiberByHostInstance;(function(e){if("undefined"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled||!t.supportsFiber)return!0;try{var r=t.inject(e);ws=function(e){try{t.onCommitFiberRoot(r,e,void 0,64===(64&e.current.effectTag))}catch(n){}},Ts=function(e){try{t.onCommitFiberUnmount(r,e)}catch(n){}}}catch(n){}})(o({},e,{overrideHookState:null,overrideProps:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:q.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return null===(e=rt(e))?null:e.stateNode},findFiberByHostInstance:function(e){return t?t(e):null},findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null}))}({findFiberByHostInstance:Mr,bundleType:0,version:"16.14.0",rendererPackageName:"react-dom"}),t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=zs,t.createPortal=Gs,t.findDOMNode=function(e){if(null==e)return null;if(1===e.nodeType)return e;var t=e._reactInternalFiber;if(void 0===t){if("function"===typeof e.render)throw Error(a(188));throw Error(a(268,Object.keys(e)))}return e=null===(e=rt(t))?null:e.stateNode},t.flushSync=function(e,t){if(0!==(48&Eu))throw Error(a(187));var r=Eu;Eu|=1;try{return Ho(99,e.bind(null,t))}finally{Eu=r,Vo()}},t.hydrate=function(e,t,r){if(!Xs(t))throw Error(a(200));return Us(null,e,t,!0,r)},t.render=function(e,t,r){if(!Xs(t))throw Error(a(200));return Us(null,e,t,!1,r)},t.unmountComponentAtNode=function(e){if(!Xs(e))throw Error(a(40));return!!e._reactRootContainer&&(ts((function(){Us(null,null,e,!1,(function(){e._reactRootContainer=null,e[Ar]=null}))})),!0)},t.unstable_batchedUpdates=es,t.unstable_createPortal=function(e,t){return Gs(e,t,2<arguments.length&&void 0!==arguments[2]?arguments[2]:null)},t.unstable_renderSubtreeIntoContainer=function(e,t,r,n){if(!Xs(r))throw Error(a(200));if(null==e||void 0===e._reactInternalFiber)throw Error(a(38));return Us(e,t,r,!1,n)},t.version="16.14.0"},function(e,t,r){"use strict";e.exports=r(43)},function(e,t,r){"use strict";var n,o,i,a,u;if("undefined"===typeof window||"function"!==typeof MessageChannel){var s=null,l=null,c=function e(){if(null!==s)try{var r=t.unstable_now();s(!0,r),s=null}catch(n){throw setTimeout(e,0),n}},f=Date.now();t.unstable_now=function(){return Date.now()-f},n=function(e){null!==s?setTimeout(n,0,e):(s=e,setTimeout(c,0))},o=function(e,t){l=setTimeout(e,t)},i=function(){clearTimeout(l)},a=function(){return!1},u=t.unstable_forceFrameRate=function(){}}else{var h=window.performance,d=window.Date,p=window.setTimeout,v=window.clearTimeout;if("undefined"!==typeof console){var m=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof m&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof h&&"function"===typeof h.now)t.unstable_now=function(){return h.now()};else{var g=d.now();t.unstable_now=function(){return d.now()-g}}var b=!1,y=null,k=-1,w=5,T=0;a=function(){return t.unstable_now()>=T},u=function(){},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing framerates higher than 125 fps is not unsupported"):w=0<e?Math.floor(1e3/e):5};var E=new MessageChannel,S=E.port2;E.port1.onmessage=function(){if(null!==y){var e=t.unstable_now();T=e+w;try{y(!0,e)?S.postMessage(null):(b=!1,y=null)}catch(r){throw S.postMessage(null),r}}else b=!1},n=function(e){y=e,b||(b=!0,S.postMessage(null))},o=function(e,r){k=p((function(){e(t.unstable_now())}),r)},i=function(){v(k),k=-1}}function A(e,t){var r=e.length;e.push(t);e:for(;;){var n=r-1>>>1,o=e[n];if(!(void 0!==o&&0<C(o,t)))break e;e[n]=t,e[r]=o,r=n}}function M(e){return void 0===(e=e[0])?null:e}function P(e){var t=e[0];if(void 0!==t){var r=e.pop();if(r!==t){e[0]=r;e:for(var n=0,o=e.length;n<o;){var i=2*(n+1)-1,a=e[i],u=i+1,s=e[u];if(void 0!==a&&0>C(a,r))void 0!==s&&0>C(s,a)?(e[n]=s,e[u]=r,n=u):(e[n]=a,e[i]=r,n=i);else{if(!(void 0!==s&&0>C(s,r)))break e;e[n]=s,e[u]=r,n=u}}}return t}return null}function C(e,t){var r=e.sortIndex-t.sortIndex;return 0!==r?r:e.id-t.id}var O=[],x=[],F=1,L=null,B=3,N=!1,R=!1,J=!1;function _(e){for(var t=M(x);null!==t;){if(null===t.callback)P(x);else{if(!(t.startTime<=e))break;P(x),t.sortIndex=t.expirationTime,A(O,t)}t=M(x)}}function D(e){if(J=!1,_(e),!R)if(null!==M(O))R=!0,n(I);else{var t=M(x);null!==t&&o(D,t.startTime-e)}}function I(e,r){R=!1,J&&(J=!1,i()),N=!0;var n=B;try{for(_(r),L=M(O);null!==L&&(!(L.expirationTime>r)||e&&!a());){var u=L.callback;if(null!==u){L.callback=null,B=L.priorityLevel;var s=u(L.expirationTime<=r);r=t.unstable_now(),"function"===typeof s?L.callback=s:L===M(O)&&P(O),_(r)}else P(O);L=M(O)}if(null!==L)var l=!0;else{var c=M(x);null!==c&&o(D,c.startTime-r),l=!1}return l}finally{L=null,B=n,N=!1}}function j(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var X=u;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){R||N||(R=!0,n(I))},t.unstable_getCurrentPriorityLevel=function(){return B},t.unstable_getFirstCallbackNode=function(){return M(O)},t.unstable_next=function(e){switch(B){case 1:case 2:case 3:var t=3;break;default:t=B}var r=B;B=t;try{return e()}finally{B=r}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=X,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var r=B;B=e;try{return t()}finally{B=r}},t.unstable_scheduleCallback=function(e,r,a){var u=t.unstable_now();if("object"===typeof a&&null!==a){var s=a.delay;s="number"===typeof s&&0<s?u+s:u,a="number"===typeof a.timeout?a.timeout:j(e)}else a=j(e),s=u;return e={id:F++,callback:r,priorityLevel:e,startTime:s,expirationTime:a=s+a,sortIndex:-1},s>u?(e.sortIndex=s,A(x,e),null===M(O)&&e===M(x)&&(J?i():J=!0,o(D,s-u))):(e.sortIndex=a,A(O,e),R||N||(R=!0,n(I))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();_(e);var r=M(O);return r!==L&&null!==L&&null!==r&&null!==r.callback&&r.startTime<=e&&r.expirationTime<L.expirationTime||a()},t.unstable_wrapCallback=function(e){var t=B;return function(){var r=B;B=t;try{return e.apply(this,arguments)}finally{B=r}}}},,function(e,t,r){var n=function(e){"use strict";var t=Object.prototype,r=t.hasOwnProperty,n="function"===typeof Symbol?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",a=n.toStringTag||"@@toStringTag";function u(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(M){u=function(e,t,r){return e[t]=r}}function s(e,t,r,n){var o=t&&t.prototype instanceof f?t:f,i=Object.create(o.prototype),a=new E(n||[]);return i._invoke=function(e,t,r){var n="suspendedStart";return function(o,i){if("executing"===n)throw new Error("Generator is already running");if("completed"===n){if("throw"===o)throw i;return A()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=k(a,r);if(u){if(u===c)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if("suspendedStart"===n)throw n="completed",r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n="executing";var s=l(e,t,r);if("normal"===s.type){if(n=r.done?"completed":"suspendedYield",s.arg===c)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n="completed",r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function l(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(M){return{type:"throw",arg:M}}}e.wrap=s;var c={};function f(){}function h(){}function d(){}var p={};u(p,o,(function(){return this}));var v=Object.getPrototypeOf,m=v&&v(v(S([])));m&&m!==t&&r.call(m,o)&&(p=m);var g=d.prototype=f.prototype=Object.create(p);function b(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function y(e,t){var n;this._invoke=function(o,i){function a(){return new t((function(n,a){!function n(o,i,a,u){var s=l(e[o],e,i);if("throw"!==s.type){var c=s.arg,f=c.value;return f&&"object"===typeof f&&r.call(f,"__await")?t.resolve(f.__await).then((function(e){n("next",e,a,u)}),(function(e){n("throw",e,a,u)})):t.resolve(f).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,u)}))}u(s.arg)}(o,i,n,a)}))}return n=n?n.then(a,a):a()}}function k(e,t){var r=e.iterator[t.method];if(void 0===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=void 0,k(e,t),"throw"===t.method))return c;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return c}var n=l(r,e.iterator,t.arg);if("throw"===n.type)return t.method="throw",t.arg=n.arg,t.delegate=null,c;var o=n.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,c):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,c)}function w(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function E(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(w,this),this.reset(!0)}function S(e){if(e){var t=e[o];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(r.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return i.next=i}}return{next:A}}function A(){return{value:void 0,done:!0}}return h.prototype=d,u(g,"constructor",d),u(d,"constructor",h),h.displayName=u(d,a,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===h||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,d):(e.__proto__=d,u(e,a,"GeneratorFunction")),e.prototype=Object.create(g),e},e.awrap=function(e){return{__await:e}},b(y.prototype),u(y.prototype,i,(function(){return this})),e.AsyncIterator=y,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new y(s(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},b(g),u(g,a,"Generator"),u(g,o,(function(){return this})),u(g,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},e.values=S,E.prototype={constructor:E,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(r,n){return a.type="throw",a.arg=e,t.next=r,n&&(t.method="next",t.arg=void 0),!!n}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=r.call(i,"catchLoc"),s=r.call(i,"finallyLoc");if(u&&s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!s)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,c):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),c},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),T(r),c}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;T(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:S(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=void 0),c}},e}(e.exports);try{regeneratorRuntime=n}catch(o){"object"===typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},,function(e,t,r){(function(t){var n=r(48),o=r(49);function i(e){console.log("[dotenv][DEBUG] ".concat(e))}function a(e,t){var r=Boolean(t&&t.debug),n={};return e.toString().split("\n").forEach((function(e,t){var o=e.match(/^\s*([\w.-]+)\s*=\s*(.*)?\s*$/);if(null!=o){var a=o[1],u=o[2]||"",s=u?u.length:0;s>0&&'"'===u.charAt(0)&&'"'===u.charAt(s-1)&&(u=u.replace(/\\n/gm,"\n")),u=u.replace(/(^['"]|['"]$)/g,"").trim(),n[a]=u}else r&&i("did not match key and value when parsing line ".concat(t+1,": ").concat(e))})),n}function u(e){var r=o.resolve(t.cwd(),".env"),u="utf8",s=!1;e&&(null!=e.path&&(r=e.path),null!=e.encoding&&(u=e.encoding),null!=e.debug&&(s=!0));try{var l=a(n.readFileSync(r,{encoding:u}),{debug:s});return Object.keys(l).forEach((function(e){Object({NODE_ENV:"production",PUBLIC_URL:""}).hasOwnProperty(e)?s&&i('"'.concat(e,'" is already defined in `process.env` and will not be overwritten')):Object({NODE_ENV:"production",PUBLIC_URL:""})[e]=l[e]})),{parsed:l}}catch(c){return{error:c}}}e.exports.config=u,e.exports.load=u,e.exports.parse=a}).call(this,r(22))},function(e,t){},function(e,t,r){(function(e){function r(e,t){for(var r=0,n=e.length-1;n>=0;n--){var o=e[n];"."===o?e.splice(n,1):".."===o?(e.splice(n,1),r++):r&&(e.splice(n,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function n(e,t){if(e.filter)return e.filter(t);for(var r=[],n=0;n<e.length;n++)t(e[n],n,e)&&r.push(e[n]);return r}t.resolve=function(){for(var t="",o=!1,i=arguments.length-1;i>=-1&&!o;i--){var a=i>=0?arguments[i]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,o="/"===a.charAt(0))}return(o?"/":"")+(t=r(n(t.split("/"),(function(e){return!!e})),!o).join("/"))||"."},t.normalize=function(e){var i=t.isAbsolute(e),a="/"===o(e,-1);return(e=r(n(e.split("/"),(function(e){return!!e})),!i).join("/"))||i||(e="."),e&&a&&(e+="/"),(i?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(n(e,(function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e})).join("/"))},t.relative=function(e,r){function n(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var o=n(e.split("/")),i=n(r.split("/")),a=Math.min(o.length,i.length),u=a,s=0;s<a;s++)if(o[s]!==i[s]){u=s;break}var l=[];for(s=u;s<o.length;s++)l.push("..");return(l=l.concat(i.slice(u))).join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){if("string"!==typeof e&&(e+=""),0===e.length)return".";for(var t=e.charCodeAt(0),r=47===t,n=-1,o=!0,i=e.length-1;i>=1;--i)if(47===(t=e.charCodeAt(i))){if(!o){n=i;break}}else o=!1;return-1===n?r?"/":".":r&&1===n?"/":e.slice(0,n)},t.basename=function(e,t){var r=function(e){"string"!==typeof e&&(e+="");var t,r=0,n=-1,o=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!o){r=t+1;break}}else-1===n&&(o=!1,n=t+1);return-1===n?"":e.slice(r,n)}(e);return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,r=0,n=-1,o=!0,i=0,a=e.length-1;a>=0;--a){var u=e.charCodeAt(a);if(47!==u)-1===n&&(o=!1,n=a+1),46===u?-1===t?t=a:1!==i&&(i=1):-1!==t&&(i=-1);else if(!o){r=a+1;break}}return-1===t||-1===n||0===i||1===i&&t===n-1&&t===r+1?"":e.slice(t,n)};var o="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(this,r(22))},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},,function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var r=function(){};r.prototype=t.prototype,e.prototype=new r,e.prototype.constructor=e}}},function(e,t,r){"use strict";t.sha1=r(54),t.sha224=r(55),t.sha256=r(30),t.sha384=r(56),t.sha512=r(31)},function(e,t,r){"use strict";var n=r(11),o=r(18),i=r(29),a=n.rotl32,u=n.sum32,s=n.sum32_5,l=i.ft_1,c=o.BlockHash,f=[1518500249,1859775393,2400959708,3395469782];function h(){if(!(this instanceof h))return new h;c.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}n.inherits(h,c),e.exports=h,h.blockSize=512,h.outSize=160,h.hmacStrength=80,h.padLength=64,h.prototype._update=function(e,t){for(var r=this.W,n=0;n<16;n++)r[n]=e[t+n];for(;n<r.length;n++)r[n]=a(r[n-3]^r[n-8]^r[n-14]^r[n-16],1);var o=this.h[0],i=this.h[1],c=this.h[2],h=this.h[3],d=this.h[4];for(n=0;n<r.length;n++){var p=~~(n/20),v=s(a(o,5),l(p,i,c,h),d,r[n],f[p]);d=h,h=c,c=a(i,30),i=o,o=v}this.h[0]=u(this.h[0],o),this.h[1]=u(this.h[1],i),this.h[2]=u(this.h[2],c),this.h[3]=u(this.h[3],h),this.h[4]=u(this.h[4],d)},h.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"big"):n.split32(this.h,"big")}},function(e,t,r){"use strict";var n=r(11),o=r(30);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=512,i.outSize=224,i.hmacStrength=192,i.padLength=64,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,7),"big"):n.split32(this.h.slice(0,7),"big")}},function(e,t,r){"use strict";var n=r(11),o=r(31);function i(){if(!(this instanceof i))return new i;o.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}n.inherits(i,o),e.exports=i,i.blockSize=1024,i.outSize=384,i.hmacStrength=192,i.padLength=128,i.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h.slice(0,12),"big"):n.split32(this.h.slice(0,12),"big")}},function(e,t,r){"use strict";var n=r(11),o=r(18),i=n.rotl32,a=n.sum32,u=n.sum32_3,s=n.sum32_4,l=o.BlockHash;function c(){if(!(this instanceof c))return new c;l.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function f(e,t,r,n){return e<=15?t^r^n:e<=31?t&r|~t&n:e<=47?(t|~r)^n:e<=63?t&n|r&~n:t^(r|~n)}function h(e){return e<=15?0:e<=31?1518500249:e<=47?1859775393:e<=63?2400959708:2840853838}function d(e){return e<=15?1352829926:e<=31?1548603684:e<=47?1836072691:e<=63?2053994217:0}n.inherits(c,l),t.ripemd160=c,c.blockSize=512,c.outSize=160,c.hmacStrength=192,c.padLength=64,c.prototype._update=function(e,t){for(var r=this.h[0],n=this.h[1],o=this.h[2],l=this.h[3],c=this.h[4],b=r,y=n,k=o,w=l,T=c,E=0;E<80;E++){var S=a(i(s(r,f(E,n,o,l),e[p[E]+t],h(E)),m[E]),c);r=c,c=l,l=i(o,10),o=n,n=S,S=a(i(s(b,f(79-E,y,k,w),e[v[E]+t],d(E)),g[E]),T),b=T,T=w,w=i(k,10),k=y,y=S}S=u(this.h[1],o,w),this.h[1]=u(this.h[2],l,T),this.h[2]=u(this.h[3],c,b),this.h[3]=u(this.h[4],r,y),this.h[4]=u(this.h[0],n,k),this.h[0]=S},c.prototype._digest=function(e){return"hex"===e?n.toHex32(this.h,"little"):n.split32(this.h,"little")};var p=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13],v=[5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11],m=[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6],g=[8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]},function(e,t,r){"use strict";var n=r(11),o=r(17);function i(e,t,r){if(!(this instanceof i))return new i(e,t,r);this.Hash=e,this.blockSize=e.blockSize/8,this.outSize=e.outSize/8,this.inner=null,this.outer=null,this._init(n.toArray(t,r))}e.exports=i,i.prototype._init=function(e){e.length>this.blockSize&&(e=(new this.Hash).update(e).digest()),o(e.length<=this.blockSize);for(var t=e.length;t<this.blockSize;t++)e.push(0);for(t=0;t<e.length;t++)e[t]^=54;for(this.inner=(new this.Hash).update(e),t=0;t<e.length;t++)e[t]^=106;this.outer=(new this.Hash).update(e)},i.prototype.update=function(e,t){return this.inner.update(e,t),this},i.prototype.digest=function(e){return this.outer.update(this.inner.digest()),this.outer.digest(e)}},function(e,t,r){(function(e){var n="undefined"!==typeof e&&e||"undefined"!==typeof self&&self||window,o=Function.prototype.apply;function i(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new i(o.call(setTimeout,n,arguments),clearTimeout)},t.setInterval=function(){return new i(o.call(setInterval,n,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(n,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},r(60),t.setImmediate="undefined"!==typeof self&&self.setImmediate||"undefined"!==typeof e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!==typeof self&&self.clearImmediate||"undefined"!==typeof e&&e.clearImmediate||this&&this.clearImmediate}).call(this,r(16))},function(e,t,r){(function(e,t){!function(e,r){"use strict";if(!e.setImmediate){var n,o=1,i={},a=!1,u=e.document,s=Object.getPrototypeOf&&Object.getPrototypeOf(e);s=s&&s.setTimeout?s:e,"[object process]"==={}.toString.call(e.process)?n=function(e){t.nextTick((function(){c(e)}))}:function(){if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}}()?function(){var t="setImmediate$"+Math.random()+"$",r=function(r){r.source===e&&"string"===typeof r.data&&0===r.data.indexOf(t)&&c(+r.data.slice(t.length))};e.addEventListener?e.addEventListener("message",r,!1):e.attachEvent("onmessage",r),n=function(r){e.postMessage(t+r,"*")}}():e.MessageChannel?function(){var e=new MessageChannel;e.port1.onmessage=function(e){c(e.data)},n=function(t){e.port2.postMessage(t)}}():u&&"onreadystatechange"in u.createElement("script")?function(){var e=u.documentElement;n=function(t){var r=u.createElement("script");r.onreadystatechange=function(){c(t),r.onreadystatechange=null,e.removeChild(r),r=null},e.appendChild(r)}}():n=function(e){setTimeout(c,0,e)},s.setImmediate=function(e){"function"!==typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),r=0;r<t.length;r++)t[r]=arguments[r+1];var a={callback:e,args:t};return i[o]=a,n(o),o++},s.clearImmediate=l}function l(e){delete i[e]}function c(e){if(a)setTimeout(c,0,e);else{var t=i[e];if(t){a=!0;try{!function(e){var t=e.callback,r=e.args;switch(r.length){case 0:t();break;case 1:t(r[0]);break;case 2:t(r[0],r[1]);break;case 3:t(r[0],r[1],r[2]);break;default:t.apply(void 0,r)}}(t)}finally{l(e),a=!1}}}}}("undefined"===typeof self?"undefined"===typeof e?this:e:self)}).call(this,r(16),r(22))},,function(e,t,r){"use strict";(function(e){r.d(t,"a",(function(){return l}));var n=r(0),o=r(1),i=r(36),a=new o.b(i.a),u=null;try{if(null==(u=window))throw new Error("try next")}catch(c){try{if(null==(u=e))throw new Error("try next")}catch(c){u={}}}var s=u.crypto||u.msCrypto;function l(e){(e<=0||e>1024||e%1)&&a.throwArgumentError("invalid length","length",e);var t=new Uint8Array(e);return s.getRandomValues(t),Object(n.a)(t)}s&&s.getRandomValues||(a.warn("WARNING: Missing strong random number source"),s={getRandomValues:function(e){return a.throwError("no secure random source avaialble",o.b.errors.UNSUPPORTED_OPERATION,{operation:"crypto.getRandomValues"})}})}).call(this,r(16))}]]);
  //# sourceMappingURL=2.267eb7a3.chunk.js.map